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()!

933 lines 21.7 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.v2"; const FeatureServiceDefinition = { name: "FeatureService", fullName: "zitadel.feature.v2.FeatureService", methods: { /** * Set System Features * * Configure and set features that apply to the complete system. Only fields present in the request are set or unset. * * Required permissions: * - system.feature.write */ setSystemFeatures: { name: "SetSystemFeatures", requestType: import_system.SetSystemFeaturesRequest, requestStream: false, responseType: import_system.SetSystemFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 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([ 24, 58, 1, 42, 26, 19, 47, 118, 50, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 115, 121, 115, 116, 101, 109 ]) ] } } }, /** * Reset System Features * * Deletes ALL configured features for the system, reverting the behaviors to system defaults. * * Required permissions: * - system.feature.delete */ resetSystemFeatures: { name: "ResetSystemFeatures", requestType: import_system.ResetSystemFeaturesRequest, requestStream: false, responseType: import_system.ResetSystemFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 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([ 21, 42, 19, 47, 118, 50, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 115, 121, 115, 116, 101, 109 ]) ] } } }, /** * Get System Features * * Returns all configured features for the system. Unset fields mean the feature is the current system default. * * Required permissions: * - none */ getSystemFeatures: { name: "GetSystemFeatures", requestType: import_system.GetSystemFeaturesRequest, requestStream: false, responseType: import_system.GetSystemFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75])], 400010: [Buffer.from([17, 10, 15, 10, 13, 97, 117, 116, 104, 101, 110, 116, 105, 99, 97, 116, 101, 100])], 578365826: [ Buffer.from([ 21, 18, 19, 47, 118, 50, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 115, 121, 115, 116, 101, 109 ]) ] } } }, /** * Set Instance Features * * Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. * * Required permissions: * - iam.feature.write */ setInstanceFeatures: { name: "SetInstanceFeatures", requestType: import_instance.SetInstanceFeaturesRequest, requestStream: false, responseType: import_instance.SetInstanceFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 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([ 26, 58, 1, 42, 26, 21, 47, 118, 50, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 105, 110, 115, 116, 97, 110, 99, 101 ]) ] } } }, /** * Reset Instance Features * * Deletes ALL configured features for an instance, reverting the behaviors to system defaults. * * Required permissions: * - iam.feature.delete */ resetInstanceFeatures: { name: "ResetInstanceFeatures", requestType: import_instance.ResetInstanceFeaturesRequest, requestStream: false, responseType: import_instance.ResetInstanceFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 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([ 23, 42, 21, 47, 118, 50, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 105, 110, 115, 116, 97, 110, 99, 101 ]) ] } } }, /** * Get Instance Features * * Returns all configured features for an instance. Unset fields mean the feature is the current system default. * * Required permissions: * - none */ getInstanceFeatures: { name: "GetInstanceFeatures", requestType: import_instance.GetInstanceFeaturesRequest, requestStream: false, responseType: import_instance.GetInstanceFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75])], 400010: [Buffer.from([17, 10, 15, 10, 13, 97, 117, 116, 104, 101, 110, 116, 105, 99, 97, 116, 101, 100])], 578365826: [ Buffer.from([ 23, 18, 21, 47, 118, 50, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 105, 110, 115, 116, 97, 110, 99, 101 ]) ] } } }, /** * Set Organization Features * * Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. * * Required permissions: * - org.feature.write */ setOrganizationFeatures: { name: "SetOrganizationFeatures", requestType: import_organization.SetOrganizationFeaturesRequest, requestStream: false, responseType: import_organization.SetOrganizationFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 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([ 48, 58, 1, 42, 26, 43, 47, 118, 50, 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 ]) ] } } }, /** * Reset Organization Features * * Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. * * Required permissions: * - org.feature.delete */ resetOrganizationFeatures: { name: "ResetOrganizationFeatures", requestType: import_organization.ResetOrganizationFeaturesRequest, requestStream: false, responseType: import_organization.ResetOrganizationFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75])], 400010: [ Buffer.from([ 22, 10, 20, 10, 18, 111, 114, 103, 46, 102, 101, 97, 116, 117, 114, 101, 46, 100, 101, 108, 101, 116, 101 ]) ], 578365826: [ Buffer.from([ 45, 42, 43, 47, 118, 50, 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 ]) ] } } }, /** * Get Organization Features * * Returns all configured features for an organization. Unset fields mean the feature is the current instance default. * * Required permissions: * - org.feature.read * - no permission required for the organization the user belongs to */ getOrganizationFeatures: { name: "GetOrganizationFeatures", requestType: import_organization.GetOrganizationFeaturesRequest, requestStream: false, responseType: import_organization.GetOrganizationFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75])], 400010: [Buffer.from([17, 10, 15, 10, 13, 97, 117, 116, 104, 101, 110, 116, 105, 99, 97, 116, 101, 100])], 578365826: [ Buffer.from([ 45, 18, 43, 47, 118, 50, 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 ]) ] } } }, /** * Set User Features * * Configure and set features that apply to an user. Only fields present in the request are set or unset. * * Required permissions: * - user.feature.write */ setUserFeatures: { name: "SetUserFeatures", requestType: import_user.SetUserFeatureRequest, requestStream: false, responseType: import_user.SetUserFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 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([ 32, 58, 1, 42, 26, 27, 47, 118, 50, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 117, 115, 101, 114, 47, 123, 117, 115, 101, 114, 95, 105, 100, 125 ]) ] } } }, /** * Reset User Features * * Deletes ALL configured features for a user, reverting the behaviors to organization defaults. * * Required permissions: * - user.feature.delete */ resetUserFeatures: { name: "ResetUserFeatures", requestType: import_user.ResetUserFeaturesRequest, requestStream: false, responseType: import_user.ResetUserFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75])], 400010: [ Buffer.from([ 23, 10, 21, 10, 19, 117, 115, 101, 114, 46, 102, 101, 97, 116, 117, 114, 101, 46, 100, 101, 108, 101, 116, 101 ]) ], 578365826: [ Buffer.from([ 29, 42, 27, 47, 118, 50, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 117, 115, 101, 114, 47, 123, 117, 115, 101, 114, 95, 105, 100, 125 ]) ] } } }, /** * Get User Features * * Returns all configured features for a user. Unset fields mean the feature is the current organization default. * * Required permissions: * - user.feature.read * - no permission required for the own user */ getUserFeatures: { name: "GetUserFeatures", requestType: import_user.GetUserFeaturesRequest, requestStream: false, responseType: import_user.GetUserFeaturesResponse, responseStream: false, options: { _unknownFields: { 8338: [Buffer.from([13, 74, 11, 10, 3, 50, 48, 48, 18, 4, 10, 2, 79, 75])], 400010: [Buffer.from([17, 10, 15, 10, 13, 97, 117, 116, 104, 101, 110, 116, 105, 99, 97, 116, 101, 100])], 578365826: [ Buffer.from([ 29, 18, 27, 47, 118, 50, 47, 102, 101, 97, 116, 117, 114, 101, 115, 47, 117, 115, 101, 114, 47, 123, 117, 115, 101, 114, 95, 105, 100, 125 ]) ] } } } } }; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { FeatureServiceDefinition, protobufPackage }); //# sourceMappingURL=feature_service.js.map