UNPKG

@ragnaraven/zitadel-node-dual

Version:

Library for API access to ZITADEL with modern ES import syntax. Works everywhere - NestJS, Node.js, any TypeScript environment. No more require()!

2,578 lines (2,577 loc) 55.1 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var feature_service_exports = {}; __export(feature_service_exports, { FeatureServiceDefinition: () => FeatureServiceDefinition, protobufPackage: () => protobufPackage }); module.exports = __toCommonJS(feature_service_exports); var import_instance = require("./instance.js"); var import_organization = require("./organization.js"); var import_system = require("./system.js"); var import_user = require("./user.js"); const protobufPackage = "zitadel.feature.v2beta"; const FeatureServiceDefinition = { name: "FeatureService", fullName: "zitadel.feature.v2beta.FeatureService", methods: { setSystemFeatures: { name: "SetSystemFeatures", requestType: import_system.SetSystemFeaturesRequest, requestStream: false, responseType: import_system.SetSystemFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 156, 1, 18, 25, 83, 101, 116, 32, 115, 121, 115, 116, 101, 109, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 114, 67, 111, 110, 102, 105, 103, 117, 114, 101, 32, 97, 110, 100, 32, 115, 101, 116, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 116, 104, 97, 116, 32, 97, 112, 112, 108, 121, 32, 116, 111, 32, 116, 104, 101, 32, 99, 111, 109, 112, 108, 101, 116, 101, 32, 115, 121, 115, 116, 101, 109, 46, 32, 79, 110, 108, 121, 32, 102, 105, 101, 108, 100, 115, 32, 112, 114, 101, 115, 101, 110, 116, 32, 105, 110, 32, 116, 104, 101, 32, 114, 101, 113, 117, 101, 115, 116, 32, 97, 114, 101, 32, 115, 101, 116, 32, 111, 114, 32, 117, 110, 115, 101, 116, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 24, 10, 22, 10, 20, 115, 121, 115, 116, 101, 109, 46, 102, 101, 97, 116, 117, 114, 101, 46, 119, 114, 105, 116, 101 ]) ], 578365826: [ Buffer.from([ 28, 58, 1, 42, 26, 23, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 115, 121, 115, 116, 101, 109 ]) ] } } }, resetSystemFeatures: { name: "ResetSystemFeatures", requestType: import_system.ResetSystemFeaturesRequest, requestStream: false, responseType: import_system.ResetSystemFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 135, 1, 18, 27, 82, 101, 115, 101, 116, 32, 115, 121, 115, 116, 101, 109, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 91, 68, 101, 108, 101, 116, 101, 115, 32, 65, 76, 76, 32, 99, 111, 110, 102, 105, 103, 117, 114, 101, 100, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 102, 111, 114, 32, 116, 104, 101, 32, 115, 121, 115, 116, 101, 109, 44, 32, 114, 101, 118, 101, 114, 116, 105, 110, 103, 32, 116, 104, 101, 32, 98, 101, 104, 97, 118, 105, 111, 114, 115, 32, 116, 111, 32, 115, 121, 115, 116, 101, 109, 32, 100, 101, 102, 97, 117, 108, 116, 115, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 25, 10, 23, 10, 21, 115, 121, 115, 116, 101, 109, 46, 102, 101, 97, 116, 117, 114, 101, 46, 100, 101, 108, 101, 116, 101 ]) ], 578365826: [ Buffer.from([ 25, 42, 23, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 115, 121, 115, 116, 101, 109 ]) ] } } }, getSystemFeatures: { name: "GetSystemFeatures", requestType: import_system.GetSystemFeaturesRequest, requestStream: false, responseType: import_system.GetSystemFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 150, 1, 18, 25, 71, 101, 116, 32, 115, 121, 115, 116, 101, 109, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 108, 82, 101, 116, 117, 114, 110, 115, 32, 97, 108, 108, 32, 99, 111, 110, 102, 105, 103, 117, 114, 101, 100, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 102, 111, 114, 32, 116, 104, 101, 32, 115, 121, 115, 116, 101, 109, 46, 32, 85, 110, 115, 101, 116, 32, 102, 105, 101, 108, 100, 115, 32, 109, 101, 97, 110, 32, 116, 104, 101, 32, 102, 101, 97, 116, 117, 114, 101, 32, 105, 115, 32, 116, 104, 101, 32, 99, 117, 114, 114, 101, 110, 116, 32, 115, 121, 115, 116, 101, 109, 32, 100, 101, 102, 97, 117, 108, 116, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 23, 10, 21, 10, 19, 115, 121, 115, 116, 101, 109, 46, 102, 101, 97, 116, 117, 114, 101, 46, 114, 101, 97, 100 ]) ], 578365826: [ Buffer.from([ 25, 18, 23, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 115, 121, 115, 116, 101, 109 ]) ] } } }, setInstanceFeatures: { name: "SetInstanceFeatures", requestType: import_instance.SetInstanceFeaturesRequest, requestStream: false, responseType: import_instance.SetInstanceFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 158, 1, 18, 27, 83, 101, 116, 32, 105, 110, 115, 116, 97, 110, 99, 101, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 114, 67, 111, 110, 102, 105, 103, 117, 114, 101, 32, 97, 110, 100, 32, 115, 101, 116, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 116, 104, 97, 116, 32, 97, 112, 112, 108, 121, 32, 116, 111, 32, 97, 32, 99, 111, 109, 112, 108, 101, 116, 101, 32, 105, 110, 115, 116, 97, 110, 99, 101, 46, 32, 79, 110, 108, 121, 32, 102, 105, 101, 108, 100, 115, 32, 112, 114, 101, 115, 101, 110, 116, 32, 105, 110, 32, 116, 104, 101, 32, 114, 101, 113, 117, 101, 115, 116, 32, 97, 114, 101, 32, 115, 101, 116, 32, 111, 114, 32, 117, 110, 115, 101, 116, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 21, 10, 19, 10, 17, 105, 97, 109, 46, 102, 101, 97, 116, 117, 114, 101, 46, 119, 114, 105, 116, 101 ]) ], 578365826: [ Buffer.from([ 30, 58, 1, 42, 26, 25, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 105, 110, 115, 116, 97, 110, 99, 101 ]) ] } } }, resetInstanceFeatures: { name: "ResetInstanceFeatures", requestType: import_instance.ResetInstanceFeaturesRequest, requestStream: false, responseType: import_instance.ResetInstanceFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 138, 1, 18, 29, 82, 101, 115, 101, 116, 32, 105, 110, 115, 116, 97, 110, 99, 101, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 92, 68, 101, 108, 101, 116, 101, 115, 32, 65, 76, 76, 32, 99, 111, 110, 102, 105, 103, 117, 114, 101, 100, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 102, 111, 114, 32, 97, 110, 32, 105, 110, 115, 116, 97, 110, 99, 101, 44, 32, 114, 101, 118, 101, 114, 116, 105, 110, 103, 32, 116, 104, 101, 32, 98, 101, 104, 97, 118, 105, 111, 114, 115, 32, 116, 111, 32, 115, 121, 115, 116, 101, 109, 32, 100, 101, 102, 97, 117, 108, 116, 115, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 22, 10, 20, 10, 18, 105, 97, 109, 46, 102, 101, 97, 116, 117, 114, 101, 46, 100, 101, 108, 101, 116, 101 ]) ], 578365826: [ Buffer.from([ 27, 42, 25, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 105, 110, 115, 116, 97, 110, 99, 101 ]) ] } } }, getInstanceFeatures: { name: "GetInstanceFeatures", requestType: import_instance.GetInstanceFeaturesRequest, requestStream: false, responseType: import_instance.GetInstanceFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 153, 1, 18, 27, 71, 101, 116, 32, 105, 110, 115, 116, 97, 110, 99, 101, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 109, 82, 101, 116, 117, 114, 110, 115, 32, 97, 108, 108, 32, 99, 111, 110, 102, 105, 103, 117, 114, 101, 100, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 102, 111, 114, 32, 97, 110, 32, 105, 110, 115, 116, 97, 110, 99, 101, 46, 32, 85, 110, 115, 101, 116, 32, 102, 105, 101, 108, 100, 115, 32, 109, 101, 97, 110, 32, 116, 104, 101, 32, 102, 101, 97, 116, 117, 114, 101, 32, 105, 115, 32, 116, 104, 101, 32, 99, 117, 114, 114, 101, 110, 116, 32, 115, 121, 115, 116, 101, 109, 32, 100, 101, 102, 97, 117, 108, 116, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 20, 10, 18, 10, 16, 105, 97, 109, 46, 102, 101, 97, 116, 117, 114, 101, 46, 114, 101, 97, 100 ]) ], 578365826: [ Buffer.from([ 27, 18, 25, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 105, 110, 115, 116, 97, 110, 99, 101 ]) ] } } }, setOrganizationFeatures: { name: "SetOrganizationFeatures", requestType: import_organization.SetOrganizationFeaturesRequest, requestStream: false, responseType: import_organization.SetOrganizationFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 162, 1, 18, 31, 83, 101, 116, 32, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 114, 67, 111, 110, 102, 105, 103, 117, 114, 101, 32, 97, 110, 100, 32, 115, 101, 116, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 116, 104, 97, 116, 32, 97, 112, 112, 108, 121, 32, 116, 111, 32, 97, 32, 99, 111, 109, 112, 108, 101, 116, 101, 32, 105, 110, 115, 116, 97, 110, 99, 101, 46, 32, 79, 110, 108, 121, 32, 102, 105, 101, 108, 100, 115, 32, 112, 114, 101, 115, 101, 110, 116, 32, 105, 110, 32, 116, 104, 101, 32, 114, 101, 113, 117, 101, 115, 116, 32, 97, 114, 101, 32, 115, 101, 116, 32, 111, 114, 32, 117, 110, 115, 101, 116, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 21, 10, 19, 10, 17, 111, 114, 103, 46, 102, 101, 97, 116, 117, 114, 101, 46, 119, 114, 105, 116, 101 ]) ], 578365826: [ Buffer.from([ 52, 58, 1, 42, 26, 47, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 47, 123, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 95, 105, 100, 125 ]) ] } } }, resetOrganizationFeatures: { name: "ResetOrganizationFeatures", requestType: import_organization.ResetOrganizationFeaturesRequest, requestStream: false, responseType: import_organization.ResetOrganizationFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 148, 1, 18, 33, 82, 101, 115, 101, 116, 32, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 98, 68, 101, 108, 101, 116, 101, 115, 32, 65, 76, 76, 32, 99, 111, 110, 102, 105, 103, 117, 114, 101, 100, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 102, 111, 114, 32, 97, 110, 32, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 44, 32, 114, 101, 118, 101, 114, 116, 105, 110, 103, 32, 116, 104, 101, 32, 98, 101, 104, 97, 118, 105, 111, 114, 115, 32, 116, 111, 32, 105, 110, 115, 116, 97, 110, 99, 101, 32, 100, 101, 102, 97, 117, 108, 116, 115, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 21, 10, 19, 10, 17, 111, 114, 103, 46, 102, 101, 97, 116, 117, 114, 101, 46, 119, 114, 105, 116, 101 ]) ], 578365826: [ Buffer.from([ 49, 42, 47, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 47, 123, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 95, 105, 100, 125 ]) ] } } }, getOrganizationFeatures: { name: "GetOrganizationFeatures", requestType: import_organization.GetOrganizationFeaturesRequest, requestStream: false, responseType: import_organization.GetOrganizationFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 163, 1, 18, 31, 71, 101, 116, 32, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 115, 82, 101, 116, 117, 114, 110, 115, 32, 97, 108, 108, 32, 99, 111, 110, 102, 105, 103, 117, 114, 101, 100, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 102, 111, 114, 32, 97, 110, 32, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 46, 32, 85, 110, 115, 101, 116, 32, 102, 105, 101, 108, 100, 115, 32, 109, 101, 97, 110, 32, 116, 104, 101, 32, 102, 101, 97, 116, 117, 114, 101, 32, 105, 115, 32, 116, 104, 101, 32, 99, 117, 114, 114, 101, 110, 116, 32, 105, 110, 115, 116, 97, 110, 99, 101, 32, 100, 101, 102, 97, 117, 108, 116, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 20, 10, 18, 10, 16, 111, 114, 103, 46, 102, 101, 97, 116, 117, 114, 101, 46, 114, 101, 97, 100 ]) ], 578365826: [ Buffer.from([ 49, 18, 47, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 47, 123, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 95, 105, 100, 125 ]) ] } } }, setUserFeatures: { name: "SetUserFeatures", requestType: import_user.SetUserFeatureRequest, requestStream: false, responseType: import_user.SetUserFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 142, 1, 18, 23, 83, 101, 116, 32, 117, 115, 101, 114, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 102, 67, 111, 110, 102, 105, 103, 117, 114, 101, 32, 97, 110, 100, 32, 115, 101, 116, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 116, 104, 97, 116, 32, 97, 112, 112, 108, 121, 32, 116, 111, 32, 97, 110, 32, 117, 115, 101, 114, 46, 32, 79, 110, 108, 121, 32, 102, 105, 101, 108, 100, 115, 32, 112, 114, 101, 115, 101, 110, 116, 32, 105, 110, 32, 116, 104, 101, 32, 114, 101, 113, 117, 101, 115, 116, 32, 97, 114, 101, 32, 115, 101, 116, 32, 111, 114, 32, 117, 110, 115, 101, 116, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 22, 10, 20, 10, 18, 117, 115, 101, 114, 46, 102, 101, 97, 116, 117, 114, 101, 46, 119, 114, 105, 116, 101 ]) ], 578365826: [ Buffer.from([ 36, 58, 1, 42, 26, 31, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 117, 115, 101, 114, 47, 123, 117, 115, 101, 114, 95, 105, 100, 125 ]) ] } } }, resetUserFeatures: { name: "ResetUserFeatures", requestType: import_user.ResetUserFeaturesRequest, requestStream: false, responseType: import_user.ResetUserFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [ Buffer.from([ 135, 1, 18, 25, 82, 101, 115, 101, 116, 32, 117, 115, 101, 114, 32, 108, 101, 118, 101, 108, 32, 102, 101, 97, 116, 117, 114, 101, 115, 26, 93, 68, 101, 108, 101, 116, 101, 115, 32, 65, 76, 76, 32, 99, 111, 110, 102, 105, 103, 117, 114, 101, 100, 32, 102, 101, 97, 116, 117, 114, 101, 115, 32, 102, 111, 114, 32, 97, 32, 117, 115, 101, 114, 44, 32, 114, 101, 118, 101, 114, 116, 105, 110, 103, 32, 116, 104, 101, 32, 98, 101, 104, 97, 118, 105, 111, 114, 115, 32, 116, 111, 32, 111, 114, 103, 97, 110, 105, 122, 97, 116, 105, 111, 110, 32, 100, 101, 102, 97, 117, 108, 116, 115, 46, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75 ]) ], 400010: [ Buffer.from([ 22, 10, 20, 10, 18, 117, 115, 101, 114, 46, 102, 101, 97, 116, 117, 114, 101, 46, 119, 114, 105, 116, 101 ]) ], 578365826: [ Buffer.from([ 33, 42, 31, 47, 118, 50, 98, 101, 116, 97, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 117, 115, 101, 114,