UNPKG

@zitadel/node

Version:

Library for API access to ZITADEL. Provides compiled gRPC service clients and helpers for applications and service accounts.

909 lines (908 loc) 31.2 kB
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.7.5 // protoc unknown // source: zitadel/feature/v2/feature_service.proto import { GetInstanceFeaturesRequest, GetInstanceFeaturesResponse, ResetInstanceFeaturesRequest, ResetInstanceFeaturesResponse, SetInstanceFeaturesRequest, SetInstanceFeaturesResponse, } from "./instance.js"; import { GetOrganizationFeaturesRequest, GetOrganizationFeaturesResponse, ResetOrganizationFeaturesRequest, ResetOrganizationFeaturesResponse, SetOrganizationFeaturesRequest, SetOrganizationFeaturesResponse, } from "./organization.js"; import { GetSystemFeaturesRequest, GetSystemFeaturesResponse, ResetSystemFeaturesRequest, ResetSystemFeaturesResponse, SetSystemFeaturesRequest, SetSystemFeaturesResponse, } from "./system.js"; import { GetUserFeaturesRequest, GetUserFeaturesResponse, ResetUserFeaturesRequest, ResetUserFeaturesResponse, SetUserFeatureRequest, SetUserFeaturesResponse, } from "./user.js"; export const protobufPackage = "zitadel.feature.v2"; export 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: SetSystemFeaturesRequest, requestStream: false, responseType: 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: ResetSystemFeaturesRequest, requestStream: false, responseType: 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: GetSystemFeaturesRequest, requestStream: false, responseType: 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: SetInstanceFeaturesRequest, requestStream: false, responseType: 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: ResetInstanceFeaturesRequest, requestStream: false, responseType: 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: GetInstanceFeaturesRequest, requestStream: false, responseType: 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: SetOrganizationFeaturesRequest, requestStream: false, responseType: 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: ResetOrganizationFeaturesRequest, requestStream: false, responseType: 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: GetOrganizationFeaturesRequest, requestStream: false, responseType: 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: SetUserFeatureRequest, requestStream: false, responseType: 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: ResetUserFeaturesRequest, requestStream: false, responseType: 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: GetUserFeaturesRequest, requestStream: false, responseType: 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, ]), ], }, }, }, }, };