@wundergraph/cosmo-connect 0.145.0 → 0.148.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -260,6 +260,64 @@ proto3.util.setEnumType(ExpiresAt, "wg.cosmo.platform.v1.ExpiresAt", [
260
260
  { no: 2, name: "SIX_MONTHS" },
261
261
  { no: 3, name: "ONE_YEAR" },
262
262
  ]);
263
+ /**
264
+ * @generated from enum wg.cosmo.platform.v1.LoginMethodType
265
+ */
266
+ export var LoginMethodType;
267
+ (function (LoginMethodType) {
268
+ /**
269
+ * @generated from enum value: LOGIN_METHOD_TYPE_UNSPECIFIED = 0;
270
+ */
271
+ LoginMethodType[LoginMethodType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
272
+ /**
273
+ * @generated from enum value: LOGIN_METHOD_TYPE_SSO = 1;
274
+ */
275
+ LoginMethodType[LoginMethodType["SSO"] = 1] = "SSO";
276
+ /**
277
+ * @generated from enum value: LOGIN_METHOD_TYPE_PASSWORD = 2;
278
+ */
279
+ LoginMethodType[LoginMethodType["PASSWORD"] = 2] = "PASSWORD";
280
+ /**
281
+ * @generated from enum value: LOGIN_METHOD_TYPE_API_KEY = 3;
282
+ */
283
+ LoginMethodType[LoginMethodType["API_KEY"] = 3] = "API_KEY";
284
+ /**
285
+ * @generated from enum value: LOGIN_METHOD_TYPE_SOCIAL = 4;
286
+ */
287
+ LoginMethodType[LoginMethodType["SOCIAL"] = 4] = "SOCIAL";
288
+ })(LoginMethodType || (LoginMethodType = {}));
289
+ // Retrieve enum metadata with: proto3.getEnumType(LoginMethodType)
290
+ proto3.util.setEnumType(LoginMethodType, "wg.cosmo.platform.v1.LoginMethodType", [
291
+ { no: 0, name: "LOGIN_METHOD_TYPE_UNSPECIFIED" },
292
+ { no: 1, name: "LOGIN_METHOD_TYPE_SSO" },
293
+ { no: 2, name: "LOGIN_METHOD_TYPE_PASSWORD" },
294
+ { no: 3, name: "LOGIN_METHOD_TYPE_API_KEY" },
295
+ { no: 4, name: "LOGIN_METHOD_TYPE_SOCIAL" },
296
+ ]);
297
+ /**
298
+ * @generated from enum wg.cosmo.platform.v1.SocialLoginProvider
299
+ */
300
+ export var SocialLoginProvider;
301
+ (function (SocialLoginProvider) {
302
+ /**
303
+ * @generated from enum value: SOCIAL_LOGIN_PROVIDER_UNSPECIFIED = 0;
304
+ */
305
+ SocialLoginProvider[SocialLoginProvider["UNSPECIFIED"] = 0] = "UNSPECIFIED";
306
+ /**
307
+ * @generated from enum value: SOCIAL_LOGIN_PROVIDER_GOOGLE = 1;
308
+ */
309
+ SocialLoginProvider[SocialLoginProvider["GOOGLE"] = 1] = "GOOGLE";
310
+ /**
311
+ * @generated from enum value: SOCIAL_LOGIN_PROVIDER_GITHUB = 2;
312
+ */
313
+ SocialLoginProvider[SocialLoginProvider["GITHUB"] = 2] = "GITHUB";
314
+ })(SocialLoginProvider || (SocialLoginProvider = {}));
315
+ // Retrieve enum metadata with: proto3.getEnumType(SocialLoginProvider)
316
+ proto3.util.setEnumType(SocialLoginProvider, "wg.cosmo.platform.v1.SocialLoginProvider", [
317
+ { no: 0, name: "SOCIAL_LOGIN_PROVIDER_UNSPECIFIED" },
318
+ { no: 1, name: "SOCIAL_LOGIN_PROVIDER_GOOGLE" },
319
+ { no: 2, name: "SOCIAL_LOGIN_PROVIDER_GITHUB" },
320
+ ]);
263
321
  /**
264
322
  * @generated from enum wg.cosmo.platform.v1.PublishedOperationStatus
265
323
  */
@@ -858,6 +916,155 @@ export class SubgraphPublishStats extends Message {
858
916
  return proto3.util.equals(SubgraphPublishStats, a, b);
859
917
  }
860
918
  }
919
+ /**
920
+ * A single subgraph entry to publish as part of a batch publish request.
921
+ *
922
+ * @generated from message wg.cosmo.platform.v1.PublishSubgraph
923
+ */
924
+ export class PublishSubgraph extends Message {
925
+ /**
926
+ * The name of the subgraph to publish.
927
+ *
928
+ * @generated from field: string name = 1;
929
+ */
930
+ name = "";
931
+ /**
932
+ * The schema to publish for the subgraph.
933
+ *
934
+ * @generated from field: string schema = 2;
935
+ */
936
+ schema = "";
937
+ constructor(data) {
938
+ super();
939
+ proto3.util.initPartial(data, this);
940
+ }
941
+ static runtime = proto3;
942
+ static typeName = "wg.cosmo.platform.v1.PublishSubgraph";
943
+ static fields = proto3.util.newFieldList(() => [
944
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
945
+ { no: 2, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ },
946
+ ]);
947
+ static fromBinary(bytes, options) {
948
+ return new PublishSubgraph().fromBinary(bytes, options);
949
+ }
950
+ static fromJson(jsonValue, options) {
951
+ return new PublishSubgraph().fromJson(jsonValue, options);
952
+ }
953
+ static fromJsonString(jsonString, options) {
954
+ return new PublishSubgraph().fromJsonString(jsonString, options);
955
+ }
956
+ static equals(a, b) {
957
+ return proto3.util.equals(PublishSubgraph, a, b);
958
+ }
959
+ }
960
+ /**
961
+ * @generated from message wg.cosmo.platform.v1.PublishFederatedSubgraphsRequest
962
+ */
963
+ export class PublishFederatedSubgraphsRequest extends Message {
964
+ /**
965
+ * The namespace all the subgraphs belong to.
966
+ *
967
+ * @generated from field: string namespace = 1;
968
+ */
969
+ namespace = "";
970
+ /**
971
+ * The subgraphs to publish. Each must already exist in the namespace. Feature subgraphs are detected automatically.
972
+ *
973
+ * @generated from field: repeated wg.cosmo.platform.v1.PublishSubgraph subgraphs = 2;
974
+ */
975
+ subgraphs = [];
976
+ /**
977
+ * @generated from field: optional bool disable_resolvability_validation = 3;
978
+ */
979
+ disableResolvabilityValidation;
980
+ /**
981
+ * Optional limit for the number of errors/warnings returned.
982
+ *
983
+ * @generated from field: optional int32 limit = 4;
984
+ */
985
+ limit;
986
+ constructor(data) {
987
+ super();
988
+ proto3.util.initPartial(data, this);
989
+ }
990
+ static runtime = proto3;
991
+ static typeName = "wg.cosmo.platform.v1.PublishFederatedSubgraphsRequest";
992
+ static fields = proto3.util.newFieldList(() => [
993
+ { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
994
+ { no: 2, name: "subgraphs", kind: "message", T: PublishSubgraph, repeated: true },
995
+ { no: 3, name: "disable_resolvability_validation", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
996
+ { no: 4, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
997
+ ]);
998
+ static fromBinary(bytes, options) {
999
+ return new PublishFederatedSubgraphsRequest().fromBinary(bytes, options);
1000
+ }
1001
+ static fromJson(jsonValue, options) {
1002
+ return new PublishFederatedSubgraphsRequest().fromJson(jsonValue, options);
1003
+ }
1004
+ static fromJsonString(jsonString, options) {
1005
+ return new PublishFederatedSubgraphsRequest().fromJsonString(jsonString, options);
1006
+ }
1007
+ static equals(a, b) {
1008
+ return proto3.util.equals(PublishFederatedSubgraphsRequest, a, b);
1009
+ }
1010
+ }
1011
+ /**
1012
+ * @generated from message wg.cosmo.platform.v1.PublishFederatedSubgraphsResponse
1013
+ */
1014
+ export class PublishFederatedSubgraphsResponse extends Message {
1015
+ /**
1016
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
1017
+ */
1018
+ response;
1019
+ /**
1020
+ * @generated from field: repeated wg.cosmo.platform.v1.CompositionError compositionErrors = 2;
1021
+ */
1022
+ compositionErrors = [];
1023
+ /**
1024
+ * @generated from field: repeated wg.cosmo.platform.v1.DeploymentError deploymentErrors = 3;
1025
+ */
1026
+ deploymentErrors = [];
1027
+ /**
1028
+ * @generated from field: repeated wg.cosmo.platform.v1.CompositionWarning compositionWarnings = 4;
1029
+ */
1030
+ compositionWarnings = [];
1031
+ /**
1032
+ * @generated from field: optional wg.cosmo.platform.v1.SubgraphPublishStats counts = 5;
1033
+ */
1034
+ counts;
1035
+ /**
1036
+ * The names of the subgraphs whose schema actually changed as a result of this batch publish.
1037
+ *
1038
+ * @generated from field: repeated string updatedSubgraphNames = 6;
1039
+ */
1040
+ updatedSubgraphNames = [];
1041
+ constructor(data) {
1042
+ super();
1043
+ proto3.util.initPartial(data, this);
1044
+ }
1045
+ static runtime = proto3;
1046
+ static typeName = "wg.cosmo.platform.v1.PublishFederatedSubgraphsResponse";
1047
+ static fields = proto3.util.newFieldList(() => [
1048
+ { no: 1, name: "response", kind: "message", T: Response },
1049
+ { no: 2, name: "compositionErrors", kind: "message", T: CompositionError, repeated: true },
1050
+ { no: 3, name: "deploymentErrors", kind: "message", T: DeploymentError, repeated: true },
1051
+ { no: 4, name: "compositionWarnings", kind: "message", T: CompositionWarning, repeated: true },
1052
+ { no: 5, name: "counts", kind: "message", T: SubgraphPublishStats, opt: true },
1053
+ { no: 6, name: "updatedSubgraphNames", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1054
+ ]);
1055
+ static fromBinary(bytes, options) {
1056
+ return new PublishFederatedSubgraphsResponse().fromBinary(bytes, options);
1057
+ }
1058
+ static fromJson(jsonValue, options) {
1059
+ return new PublishFederatedSubgraphsResponse().fromJson(jsonValue, options);
1060
+ }
1061
+ static fromJsonString(jsonString, options) {
1062
+ return new PublishFederatedSubgraphsResponse().fromJsonString(jsonString, options);
1063
+ }
1064
+ static equals(a, b) {
1065
+ return proto3.util.equals(PublishFederatedSubgraphsResponse, a, b);
1066
+ }
1067
+ }
861
1068
  /**
862
1069
  * @generated from message wg.cosmo.platform.v1.GitInfo
863
1070
  */
@@ -7714,6 +7921,10 @@ export class WhoAmIResponse extends Message {
7714
7921
  * @generated from field: string organizationId = 5;
7715
7922
  */
7716
7923
  organizationId = "";
7924
+ /**
7925
+ * @generated from field: wg.cosmo.platform.v1.LoginMethod login_method = 6;
7926
+ */
7927
+ loginMethod;
7717
7928
  constructor(data) {
7718
7929
  super();
7719
7930
  proto3.util.initPartial(data, this);
@@ -7726,6 +7937,7 @@ export class WhoAmIResponse extends Message {
7726
7937
  { no: 3, name: "userEmail", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7727
7938
  { no: 4, name: "organizationSlug", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7728
7939
  { no: 5, name: "organizationId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7940
+ { no: 6, name: "login_method", kind: "message", T: LoginMethod },
7729
7941
  ]);
7730
7942
  static fromBinary(bytes, options) {
7731
7943
  return new WhoAmIResponse().fromBinary(bytes, options);
@@ -7740,6 +7952,60 @@ export class WhoAmIResponse extends Message {
7740
7952
  return proto3.util.equals(WhoAmIResponse, a, b);
7741
7953
  }
7742
7954
  }
7955
+ /**
7956
+ * @generated from message wg.cosmo.platform.v1.LoginMethod
7957
+ */
7958
+ export class LoginMethod extends Message {
7959
+ /**
7960
+ * @generated from field: wg.cosmo.platform.v1.LoginMethodType type = 1;
7961
+ */
7962
+ type = LoginMethodType.UNSPECIFIED;
7963
+ /**
7964
+ * Only populated when type = LOGIN_METHOD_TYPE_SSO.
7965
+ *
7966
+ * @generated from field: string sso_provider_id = 2;
7967
+ */
7968
+ ssoProviderId = "";
7969
+ /**
7970
+ * @generated from field: string sso_provider_name = 3;
7971
+ */
7972
+ ssoProviderName = "";
7973
+ /**
7974
+ * @generated from field: string sso_alias = 4;
7975
+ */
7976
+ ssoAlias = "";
7977
+ /**
7978
+ * Only populated when type = LOGIN_METHOD_TYPE_SOCIAL.
7979
+ *
7980
+ * @generated from field: wg.cosmo.platform.v1.SocialLoginProvider social_provider = 5;
7981
+ */
7982
+ socialProvider = SocialLoginProvider.UNSPECIFIED;
7983
+ constructor(data) {
7984
+ super();
7985
+ proto3.util.initPartial(data, this);
7986
+ }
7987
+ static runtime = proto3;
7988
+ static typeName = "wg.cosmo.platform.v1.LoginMethod";
7989
+ static fields = proto3.util.newFieldList(() => [
7990
+ { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(LoginMethodType) },
7991
+ { no: 2, name: "sso_provider_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7992
+ { no: 3, name: "sso_provider_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7993
+ { no: 4, name: "sso_alias", kind: "scalar", T: 9 /* ScalarType.STRING */ },
7994
+ { no: 5, name: "social_provider", kind: "enum", T: proto3.getEnumType(SocialLoginProvider) },
7995
+ ]);
7996
+ static fromBinary(bytes, options) {
7997
+ return new LoginMethod().fromBinary(bytes, options);
7998
+ }
7999
+ static fromJson(jsonValue, options) {
8000
+ return new LoginMethod().fromJson(jsonValue, options);
8001
+ }
8002
+ static fromJsonString(jsonString, options) {
8003
+ return new LoginMethod().fromJsonString(jsonString, options);
8004
+ }
8005
+ static equals(a, b) {
8006
+ return proto3.util.equals(LoginMethod, a, b);
8007
+ }
8008
+ }
7743
8009
  /**
7744
8010
  * @generated from message wg.cosmo.platform.v1.RouterToken
7745
8011
  */
@@ -11712,9 +11978,9 @@ export class CreateOIDCProviderRequest extends Message {
11712
11978
  */
11713
11979
  clientID = "";
11714
11980
  /**
11715
- * @generated from field: string clientSecrect = 4;
11981
+ * @generated from field: string clientSecret = 4;
11716
11982
  */
11717
- clientSecrect = "";
11983
+ clientSecret = "";
11718
11984
  /**
11719
11985
  * @generated from field: repeated wg.cosmo.platform.v1.GroupMapper mappers = 5;
11720
11986
  */
@@ -11729,7 +11995,7 @@ export class CreateOIDCProviderRequest extends Message {
11729
11995
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11730
11996
  { no: 2, name: "discoveryEndpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11731
11997
  { no: 3, name: "clientID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11732
- { no: 4, name: "clientSecrect", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11998
+ { no: 4, name: "clientSecret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11733
11999
  { no: 5, name: "mappers", kind: "message", T: GroupMapper, repeated: true },
11734
12000
  ]);
11735
12001
  static fromBinary(bytes, options) {
@@ -11791,168 +12057,309 @@ export class CreateOIDCProviderResponse extends Message {
11791
12057
  }
11792
12058
  }
11793
12059
  /**
11794
- * @generated from message wg.cosmo.platform.v1.GetOIDCProviderRequest
11795
- */
11796
- export class GetOIDCProviderRequest extends Message {
11797
- constructor(data) {
11798
- super();
11799
- proto3.util.initPartial(data, this);
11800
- }
11801
- static runtime = proto3;
11802
- static typeName = "wg.cosmo.platform.v1.GetOIDCProviderRequest";
11803
- static fields = proto3.util.newFieldList(() => []);
11804
- static fromBinary(bytes, options) {
11805
- return new GetOIDCProviderRequest().fromBinary(bytes, options);
11806
- }
11807
- static fromJson(jsonValue, options) {
11808
- return new GetOIDCProviderRequest().fromJson(jsonValue, options);
11809
- }
11810
- static fromJsonString(jsonString, options) {
11811
- return new GetOIDCProviderRequest().fromJsonString(jsonString, options);
11812
- }
11813
- static equals(a, b) {
11814
- return proto3.util.equals(GetOIDCProviderRequest, a, b);
11815
- }
11816
- }
11817
- /**
11818
- * @generated from message wg.cosmo.platform.v1.GetOIDCProviderResponse
12060
+ * @generated from message wg.cosmo.platform.v1.OIDCProvider
11819
12061
  */
11820
- export class GetOIDCProviderResponse extends Message {
12062
+ export class OIDCProvider extends Message {
11821
12063
  /**
11822
- * @generated from field: wg.cosmo.platform.v1.Response response = 1;
12064
+ * @generated from field: string id = 1;
11823
12065
  */
11824
- response;
12066
+ id = "";
11825
12067
  /**
11826
12068
  * @generated from field: string name = 2;
11827
12069
  */
11828
12070
  name = "";
11829
12071
  /**
11830
- * @generated from field: string endpoint = 3;
12072
+ * @generated from field: string alias = 3;
12073
+ */
12074
+ alias = "";
12075
+ /**
12076
+ * @generated from field: string endpoint = 4;
11831
12077
  */
11832
12078
  endpoint = "";
11833
12079
  /**
11834
- * @generated from field: string loginURL = 4;
12080
+ * @generated from field: string login_url = 5;
11835
12081
  */
11836
- loginURL = "";
12082
+ loginUrl = "";
11837
12083
  /**
11838
- * @generated from field: string signInRedirectURL = 5;
12084
+ * @generated from field: string sign_in_redirect_url = 6;
11839
12085
  */
11840
- signInRedirectURL = "";
12086
+ signInRedirectUrl = "";
11841
12087
  /**
11842
- * @generated from field: string signOutRedirectURL = 6;
12088
+ * @generated from field: string sign_out_redirect_url = 7;
11843
12089
  */
11844
- signOutRedirectURL = "";
12090
+ signOutRedirectUrl = "";
11845
12091
  /**
11846
- * @generated from field: repeated wg.cosmo.platform.v1.GroupMapper mappers = 7;
12092
+ * @generated from field: string createdAt = 8;
11847
12093
  */
11848
- mappers = [];
12094
+ createdAt = "";
11849
12095
  constructor(data) {
11850
12096
  super();
11851
12097
  proto3.util.initPartial(data, this);
11852
12098
  }
11853
12099
  static runtime = proto3;
11854
- static typeName = "wg.cosmo.platform.v1.GetOIDCProviderResponse";
12100
+ static typeName = "wg.cosmo.platform.v1.OIDCProvider";
11855
12101
  static fields = proto3.util.newFieldList(() => [
11856
- { no: 1, name: "response", kind: "message", T: Response },
12102
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11857
12103
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11858
- { no: 3, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11859
- { no: 4, name: "loginURL", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11860
- { no: 5, name: "signInRedirectURL", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11861
- { no: 6, name: "signOutRedirectURL", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11862
- { no: 7, name: "mappers", kind: "message", T: GroupMapper, repeated: true },
12104
+ { no: 3, name: "alias", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12105
+ { no: 4, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12106
+ { no: 5, name: "login_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12107
+ { no: 6, name: "sign_in_redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12108
+ { no: 7, name: "sign_out_redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12109
+ { no: 8, name: "createdAt", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11863
12110
  ]);
11864
12111
  static fromBinary(bytes, options) {
11865
- return new GetOIDCProviderResponse().fromBinary(bytes, options);
12112
+ return new OIDCProvider().fromBinary(bytes, options);
11866
12113
  }
11867
12114
  static fromJson(jsonValue, options) {
11868
- return new GetOIDCProviderResponse().fromJson(jsonValue, options);
12115
+ return new OIDCProvider().fromJson(jsonValue, options);
11869
12116
  }
11870
12117
  static fromJsonString(jsonString, options) {
11871
- return new GetOIDCProviderResponse().fromJsonString(jsonString, options);
12118
+ return new OIDCProvider().fromJsonString(jsonString, options);
11872
12119
  }
11873
12120
  static equals(a, b) {
11874
- return proto3.util.equals(GetOIDCProviderResponse, a, b);
12121
+ return proto3.util.equals(OIDCProvider, a, b);
11875
12122
  }
11876
12123
  }
11877
12124
  /**
11878
- * @generated from message wg.cosmo.platform.v1.DeleteOIDCProviderRequest
12125
+ * @generated from message wg.cosmo.platform.v1.ListOIDCProvidersRequest
11879
12126
  */
11880
- export class DeleteOIDCProviderRequest extends Message {
12127
+ export class ListOIDCProvidersRequest extends Message {
11881
12128
  constructor(data) {
11882
12129
  super();
11883
12130
  proto3.util.initPartial(data, this);
11884
12131
  }
11885
12132
  static runtime = proto3;
11886
- static typeName = "wg.cosmo.platform.v1.DeleteOIDCProviderRequest";
12133
+ static typeName = "wg.cosmo.platform.v1.ListOIDCProvidersRequest";
11887
12134
  static fields = proto3.util.newFieldList(() => []);
11888
12135
  static fromBinary(bytes, options) {
11889
- return new DeleteOIDCProviderRequest().fromBinary(bytes, options);
12136
+ return new ListOIDCProvidersRequest().fromBinary(bytes, options);
11890
12137
  }
11891
12138
  static fromJson(jsonValue, options) {
11892
- return new DeleteOIDCProviderRequest().fromJson(jsonValue, options);
12139
+ return new ListOIDCProvidersRequest().fromJson(jsonValue, options);
11893
12140
  }
11894
12141
  static fromJsonString(jsonString, options) {
11895
- return new DeleteOIDCProviderRequest().fromJsonString(jsonString, options);
12142
+ return new ListOIDCProvidersRequest().fromJsonString(jsonString, options);
11896
12143
  }
11897
12144
  static equals(a, b) {
11898
- return proto3.util.equals(DeleteOIDCProviderRequest, a, b);
12145
+ return proto3.util.equals(ListOIDCProvidersRequest, a, b);
11899
12146
  }
11900
12147
  }
11901
12148
  /**
11902
- * @generated from message wg.cosmo.platform.v1.DeleteOIDCProviderResponse
12149
+ * @generated from message wg.cosmo.platform.v1.ListOIDCProvidersResponse
11903
12150
  */
11904
- export class DeleteOIDCProviderResponse extends Message {
12151
+ export class ListOIDCProvidersResponse extends Message {
11905
12152
  /**
11906
12153
  * @generated from field: wg.cosmo.platform.v1.Response response = 1;
11907
12154
  */
11908
12155
  response;
12156
+ /**
12157
+ * @generated from field: repeated wg.cosmo.platform.v1.OIDCProvider providers = 2;
12158
+ */
12159
+ providers = [];
11909
12160
  constructor(data) {
11910
12161
  super();
11911
12162
  proto3.util.initPartial(data, this);
11912
12163
  }
11913
12164
  static runtime = proto3;
11914
- static typeName = "wg.cosmo.platform.v1.DeleteOIDCProviderResponse";
12165
+ static typeName = "wg.cosmo.platform.v1.ListOIDCProvidersResponse";
11915
12166
  static fields = proto3.util.newFieldList(() => [
11916
12167
  { no: 1, name: "response", kind: "message", T: Response },
12168
+ { no: 2, name: "providers", kind: "message", T: OIDCProvider, repeated: true },
11917
12169
  ]);
11918
12170
  static fromBinary(bytes, options) {
11919
- return new DeleteOIDCProviderResponse().fromBinary(bytes, options);
12171
+ return new ListOIDCProvidersResponse().fromBinary(bytes, options);
11920
12172
  }
11921
12173
  static fromJson(jsonValue, options) {
11922
- return new DeleteOIDCProviderResponse().fromJson(jsonValue, options);
12174
+ return new ListOIDCProvidersResponse().fromJson(jsonValue, options);
11923
12175
  }
11924
12176
  static fromJsonString(jsonString, options) {
11925
- return new DeleteOIDCProviderResponse().fromJsonString(jsonString, options);
12177
+ return new ListOIDCProvidersResponse().fromJsonString(jsonString, options);
11926
12178
  }
11927
12179
  static equals(a, b) {
11928
- return proto3.util.equals(DeleteOIDCProviderResponse, a, b);
12180
+ return proto3.util.equals(ListOIDCProvidersResponse, a, b);
11929
12181
  }
11930
12182
  }
11931
12183
  /**
11932
- * @generated from message wg.cosmo.platform.v1.UpdateIDPMappersRequest
12184
+ * @generated from message wg.cosmo.platform.v1.GetOIDCProviderRequest
11933
12185
  */
11934
- export class UpdateIDPMappersRequest extends Message {
12186
+ export class GetOIDCProviderRequest extends Message {
11935
12187
  /**
11936
- * @generated from field: repeated wg.cosmo.platform.v1.GroupMapper mappers = 1;
12188
+ * @generated from field: string id = 1;
11937
12189
  */
11938
- mappers = [];
12190
+ id = "";
11939
12191
  constructor(data) {
11940
12192
  super();
11941
12193
  proto3.util.initPartial(data, this);
11942
12194
  }
11943
12195
  static runtime = proto3;
11944
- static typeName = "wg.cosmo.platform.v1.UpdateIDPMappersRequest";
12196
+ static typeName = "wg.cosmo.platform.v1.GetOIDCProviderRequest";
11945
12197
  static fields = proto3.util.newFieldList(() => [
11946
- { no: 1, name: "mappers", kind: "message", T: GroupMapper, repeated: true },
12198
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11947
12199
  ]);
11948
12200
  static fromBinary(bytes, options) {
11949
- return new UpdateIDPMappersRequest().fromBinary(bytes, options);
12201
+ return new GetOIDCProviderRequest().fromBinary(bytes, options);
11950
12202
  }
11951
12203
  static fromJson(jsonValue, options) {
11952
- return new UpdateIDPMappersRequest().fromJson(jsonValue, options);
12204
+ return new GetOIDCProviderRequest().fromJson(jsonValue, options);
11953
12205
  }
11954
12206
  static fromJsonString(jsonString, options) {
11955
- return new UpdateIDPMappersRequest().fromJsonString(jsonString, options);
12207
+ return new GetOIDCProviderRequest().fromJsonString(jsonString, options);
12208
+ }
12209
+ static equals(a, b) {
12210
+ return proto3.util.equals(GetOIDCProviderRequest, a, b);
12211
+ }
12212
+ }
12213
+ /**
12214
+ * @generated from message wg.cosmo.platform.v1.GetOIDCProviderResponse
12215
+ */
12216
+ export class GetOIDCProviderResponse extends Message {
12217
+ /**
12218
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
12219
+ */
12220
+ response;
12221
+ /**
12222
+ * @generated from field: string name = 2;
12223
+ */
12224
+ name = "";
12225
+ /**
12226
+ * @generated from field: string endpoint = 3;
12227
+ */
12228
+ endpoint = "";
12229
+ /**
12230
+ * @generated from field: string loginURL = 4;
12231
+ */
12232
+ loginURL = "";
12233
+ /**
12234
+ * @generated from field: string signInRedirectURL = 5;
12235
+ */
12236
+ signInRedirectURL = "";
12237
+ /**
12238
+ * @generated from field: string signOutRedirectURL = 6;
12239
+ */
12240
+ signOutRedirectURL = "";
12241
+ /**
12242
+ * @generated from field: repeated wg.cosmo.platform.v1.GroupMapper mappers = 7;
12243
+ */
12244
+ mappers = [];
12245
+ constructor(data) {
12246
+ super();
12247
+ proto3.util.initPartial(data, this);
12248
+ }
12249
+ static runtime = proto3;
12250
+ static typeName = "wg.cosmo.platform.v1.GetOIDCProviderResponse";
12251
+ static fields = proto3.util.newFieldList(() => [
12252
+ { no: 1, name: "response", kind: "message", T: Response },
12253
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12254
+ { no: 3, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12255
+ { no: 4, name: "loginURL", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12256
+ { no: 5, name: "signInRedirectURL", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12257
+ { no: 6, name: "signOutRedirectURL", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12258
+ { no: 7, name: "mappers", kind: "message", T: GroupMapper, repeated: true },
12259
+ ]);
12260
+ static fromBinary(bytes, options) {
12261
+ return new GetOIDCProviderResponse().fromBinary(bytes, options);
12262
+ }
12263
+ static fromJson(jsonValue, options) {
12264
+ return new GetOIDCProviderResponse().fromJson(jsonValue, options);
12265
+ }
12266
+ static fromJsonString(jsonString, options) {
12267
+ return new GetOIDCProviderResponse().fromJsonString(jsonString, options);
12268
+ }
12269
+ static equals(a, b) {
12270
+ return proto3.util.equals(GetOIDCProviderResponse, a, b);
12271
+ }
12272
+ }
12273
+ /**
12274
+ * @generated from message wg.cosmo.platform.v1.DeleteOIDCProviderRequest
12275
+ */
12276
+ export class DeleteOIDCProviderRequest extends Message {
12277
+ /**
12278
+ * @generated from field: string id = 1;
12279
+ */
12280
+ id = "";
12281
+ constructor(data) {
12282
+ super();
12283
+ proto3.util.initPartial(data, this);
12284
+ }
12285
+ static runtime = proto3;
12286
+ static typeName = "wg.cosmo.platform.v1.DeleteOIDCProviderRequest";
12287
+ static fields = proto3.util.newFieldList(() => [
12288
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12289
+ ]);
12290
+ static fromBinary(bytes, options) {
12291
+ return new DeleteOIDCProviderRequest().fromBinary(bytes, options);
12292
+ }
12293
+ static fromJson(jsonValue, options) {
12294
+ return new DeleteOIDCProviderRequest().fromJson(jsonValue, options);
12295
+ }
12296
+ static fromJsonString(jsonString, options) {
12297
+ return new DeleteOIDCProviderRequest().fromJsonString(jsonString, options);
12298
+ }
12299
+ static equals(a, b) {
12300
+ return proto3.util.equals(DeleteOIDCProviderRequest, a, b);
12301
+ }
12302
+ }
12303
+ /**
12304
+ * @generated from message wg.cosmo.platform.v1.DeleteOIDCProviderResponse
12305
+ */
12306
+ export class DeleteOIDCProviderResponse extends Message {
12307
+ /**
12308
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
12309
+ */
12310
+ response;
12311
+ constructor(data) {
12312
+ super();
12313
+ proto3.util.initPartial(data, this);
12314
+ }
12315
+ static runtime = proto3;
12316
+ static typeName = "wg.cosmo.platform.v1.DeleteOIDCProviderResponse";
12317
+ static fields = proto3.util.newFieldList(() => [
12318
+ { no: 1, name: "response", kind: "message", T: Response },
12319
+ ]);
12320
+ static fromBinary(bytes, options) {
12321
+ return new DeleteOIDCProviderResponse().fromBinary(bytes, options);
12322
+ }
12323
+ static fromJson(jsonValue, options) {
12324
+ return new DeleteOIDCProviderResponse().fromJson(jsonValue, options);
12325
+ }
12326
+ static fromJsonString(jsonString, options) {
12327
+ return new DeleteOIDCProviderResponse().fromJsonString(jsonString, options);
12328
+ }
12329
+ static equals(a, b) {
12330
+ return proto3.util.equals(DeleteOIDCProviderResponse, a, b);
12331
+ }
12332
+ }
12333
+ /**
12334
+ * @generated from message wg.cosmo.platform.v1.UpdateIDPMappersRequest
12335
+ */
12336
+ export class UpdateIDPMappersRequest extends Message {
12337
+ /**
12338
+ * @generated from field: repeated wg.cosmo.platform.v1.GroupMapper mappers = 1;
12339
+ */
12340
+ mappers = [];
12341
+ /**
12342
+ * @generated from field: string id = 2;
12343
+ */
12344
+ id = "";
12345
+ constructor(data) {
12346
+ super();
12347
+ proto3.util.initPartial(data, this);
12348
+ }
12349
+ static runtime = proto3;
12350
+ static typeName = "wg.cosmo.platform.v1.UpdateIDPMappersRequest";
12351
+ static fields = proto3.util.newFieldList(() => [
12352
+ { no: 1, name: "mappers", kind: "message", T: GroupMapper, repeated: true },
12353
+ { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12354
+ ]);
12355
+ static fromBinary(bytes, options) {
12356
+ return new UpdateIDPMappersRequest().fromBinary(bytes, options);
12357
+ }
12358
+ static fromJson(jsonValue, options) {
12359
+ return new UpdateIDPMappersRequest().fromJson(jsonValue, options);
12360
+ }
12361
+ static fromJsonString(jsonString, options) {
12362
+ return new UpdateIDPMappersRequest().fromJsonString(jsonString, options);
11956
12363
  }
11957
12364
  static equals(a, b) {
11958
12365
  return proto3.util.equals(UpdateIDPMappersRequest, a, b);
@@ -19495,6 +19902,386 @@ export class GetNamespaceProposalConfigResponse extends Message {
19495
19902
  return proto3.util.equals(GetNamespaceProposalConfigResponse, a, b);
19496
19903
  }
19497
19904
  }
19905
+ /**
19906
+ * @generated from message wg.cosmo.platform.v1.NamespaceLoginMethodMapping
19907
+ */
19908
+ export class NamespaceLoginMethodMapping extends Message {
19909
+ /**
19910
+ * @generated from field: string namespace_id = 1;
19911
+ */
19912
+ namespaceId = "";
19913
+ /**
19914
+ * @generated from field: repeated string allowed_sso_provider_ids = 2;
19915
+ */
19916
+ allowedSsoProviderIds = [];
19917
+ /**
19918
+ * @generated from field: bool allow_password_login = 3;
19919
+ */
19920
+ allowPasswordLogin = false;
19921
+ /**
19922
+ * @generated from field: bool allow_google_login = 4;
19923
+ */
19924
+ allowGoogleLogin = false;
19925
+ /**
19926
+ * @generated from field: bool allow_github_login = 5;
19927
+ */
19928
+ allowGithubLogin = false;
19929
+ constructor(data) {
19930
+ super();
19931
+ proto3.util.initPartial(data, this);
19932
+ }
19933
+ static runtime = proto3;
19934
+ static typeName = "wg.cosmo.platform.v1.NamespaceLoginMethodMapping";
19935
+ static fields = proto3.util.newFieldList(() => [
19936
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
19937
+ { no: 2, name: "allowed_sso_provider_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
19938
+ { no: 3, name: "allow_password_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
19939
+ { no: 4, name: "allow_google_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
19940
+ { no: 5, name: "allow_github_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
19941
+ ]);
19942
+ static fromBinary(bytes, options) {
19943
+ return new NamespaceLoginMethodMapping().fromBinary(bytes, options);
19944
+ }
19945
+ static fromJson(jsonValue, options) {
19946
+ return new NamespaceLoginMethodMapping().fromJson(jsonValue, options);
19947
+ }
19948
+ static fromJsonString(jsonString, options) {
19949
+ return new NamespaceLoginMethodMapping().fromJsonString(jsonString, options);
19950
+ }
19951
+ static equals(a, b) {
19952
+ return proto3.util.equals(NamespaceLoginMethodMapping, a, b);
19953
+ }
19954
+ }
19955
+ /**
19956
+ * @generated from message wg.cosmo.platform.v1.UpdateNamespaceLoginMethodsRequest
19957
+ */
19958
+ export class UpdateNamespaceLoginMethodsRequest extends Message {
19959
+ /**
19960
+ * @generated from field: repeated wg.cosmo.platform.v1.NamespaceLoginMethodMapping mappings = 1;
19961
+ */
19962
+ mappings = [];
19963
+ constructor(data) {
19964
+ super();
19965
+ proto3.util.initPartial(data, this);
19966
+ }
19967
+ static runtime = proto3;
19968
+ static typeName = "wg.cosmo.platform.v1.UpdateNamespaceLoginMethodsRequest";
19969
+ static fields = proto3.util.newFieldList(() => [
19970
+ { no: 1, name: "mappings", kind: "message", T: NamespaceLoginMethodMapping, repeated: true },
19971
+ ]);
19972
+ static fromBinary(bytes, options) {
19973
+ return new UpdateNamespaceLoginMethodsRequest().fromBinary(bytes, options);
19974
+ }
19975
+ static fromJson(jsonValue, options) {
19976
+ return new UpdateNamespaceLoginMethodsRequest().fromJson(jsonValue, options);
19977
+ }
19978
+ static fromJsonString(jsonString, options) {
19979
+ return new UpdateNamespaceLoginMethodsRequest().fromJsonString(jsonString, options);
19980
+ }
19981
+ static equals(a, b) {
19982
+ return proto3.util.equals(UpdateNamespaceLoginMethodsRequest, a, b);
19983
+ }
19984
+ }
19985
+ /**
19986
+ * @generated from message wg.cosmo.platform.v1.UpdateNamespaceLoginMethodsResponse
19987
+ */
19988
+ export class UpdateNamespaceLoginMethodsResponse extends Message {
19989
+ /**
19990
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
19991
+ */
19992
+ response;
19993
+ constructor(data) {
19994
+ super();
19995
+ proto3.util.initPartial(data, this);
19996
+ }
19997
+ static runtime = proto3;
19998
+ static typeName = "wg.cosmo.platform.v1.UpdateNamespaceLoginMethodsResponse";
19999
+ static fields = proto3.util.newFieldList(() => [
20000
+ { no: 1, name: "response", kind: "message", T: Response },
20001
+ ]);
20002
+ static fromBinary(bytes, options) {
20003
+ return new UpdateNamespaceLoginMethodsResponse().fromBinary(bytes, options);
20004
+ }
20005
+ static fromJson(jsonValue, options) {
20006
+ return new UpdateNamespaceLoginMethodsResponse().fromJson(jsonValue, options);
20007
+ }
20008
+ static fromJsonString(jsonString, options) {
20009
+ return new UpdateNamespaceLoginMethodsResponse().fromJsonString(jsonString, options);
20010
+ }
20011
+ static equals(a, b) {
20012
+ return proto3.util.equals(UpdateNamespaceLoginMethodsResponse, a, b);
20013
+ }
20014
+ }
20015
+ /**
20016
+ * @generated from message wg.cosmo.platform.v1.ListNamespaceLoginMethodsRequest
20017
+ */
20018
+ export class ListNamespaceLoginMethodsRequest extends Message {
20019
+ constructor(data) {
20020
+ super();
20021
+ proto3.util.initPartial(data, this);
20022
+ }
20023
+ static runtime = proto3;
20024
+ static typeName = "wg.cosmo.platform.v1.ListNamespaceLoginMethodsRequest";
20025
+ static fields = proto3.util.newFieldList(() => []);
20026
+ static fromBinary(bytes, options) {
20027
+ return new ListNamespaceLoginMethodsRequest().fromBinary(bytes, options);
20028
+ }
20029
+ static fromJson(jsonValue, options) {
20030
+ return new ListNamespaceLoginMethodsRequest().fromJson(jsonValue, options);
20031
+ }
20032
+ static fromJsonString(jsonString, options) {
20033
+ return new ListNamespaceLoginMethodsRequest().fromJsonString(jsonString, options);
20034
+ }
20035
+ static equals(a, b) {
20036
+ return proto3.util.equals(ListNamespaceLoginMethodsRequest, a, b);
20037
+ }
20038
+ }
20039
+ /**
20040
+ * @generated from message wg.cosmo.platform.v1.ListNamespaceLoginMethodsResponse
20041
+ */
20042
+ export class ListNamespaceLoginMethodsResponse extends Message {
20043
+ /**
20044
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
20045
+ */
20046
+ response;
20047
+ /**
20048
+ * One entry per namespace that is restricted to specific login methods.
20049
+ * Namespaces with no mapping (default-open) are omitted.
20050
+ *
20051
+ * @generated from field: repeated wg.cosmo.platform.v1.NamespaceLoginMethodMapping mappings = 2;
20052
+ */
20053
+ mappings = [];
20054
+ constructor(data) {
20055
+ super();
20056
+ proto3.util.initPartial(data, this);
20057
+ }
20058
+ static runtime = proto3;
20059
+ static typeName = "wg.cosmo.platform.v1.ListNamespaceLoginMethodsResponse";
20060
+ static fields = proto3.util.newFieldList(() => [
20061
+ { no: 1, name: "response", kind: "message", T: Response },
20062
+ { no: 2, name: "mappings", kind: "message", T: NamespaceLoginMethodMapping, repeated: true },
20063
+ ]);
20064
+ static fromBinary(bytes, options) {
20065
+ return new ListNamespaceLoginMethodsResponse().fromBinary(bytes, options);
20066
+ }
20067
+ static fromJson(jsonValue, options) {
20068
+ return new ListNamespaceLoginMethodsResponse().fromJson(jsonValue, options);
20069
+ }
20070
+ static fromJsonString(jsonString, options) {
20071
+ return new ListNamespaceLoginMethodsResponse().fromJsonString(jsonString, options);
20072
+ }
20073
+ static equals(a, b) {
20074
+ return proto3.util.equals(ListNamespaceLoginMethodsResponse, a, b);
20075
+ }
20076
+ }
20077
+ /**
20078
+ * @generated from message wg.cosmo.platform.v1.OrganizationLoginMethods
20079
+ */
20080
+ export class OrganizationLoginMethods extends Message {
20081
+ /**
20082
+ * @generated from field: repeated string allowed_sso_provider_ids = 1;
20083
+ */
20084
+ allowedSsoProviderIds = [];
20085
+ /**
20086
+ * @generated from field: bool allow_password_login = 2;
20087
+ */
20088
+ allowPasswordLogin = false;
20089
+ /**
20090
+ * @generated from field: bool allow_google_login = 3;
20091
+ */
20092
+ allowGoogleLogin = false;
20093
+ /**
20094
+ * @generated from field: bool allow_github_login = 4;
20095
+ */
20096
+ allowGithubLogin = false;
20097
+ /**
20098
+ * Output only. False when the org has no restriction configured (all methods allowed).
20099
+ *
20100
+ * @generated from field: bool is_restricted = 5;
20101
+ */
20102
+ isRestricted = false;
20103
+ constructor(data) {
20104
+ super();
20105
+ proto3.util.initPartial(data, this);
20106
+ }
20107
+ static runtime = proto3;
20108
+ static typeName = "wg.cosmo.platform.v1.OrganizationLoginMethods";
20109
+ static fields = proto3.util.newFieldList(() => [
20110
+ { no: 1, name: "allowed_sso_provider_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
20111
+ { no: 2, name: "allow_password_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20112
+ { no: 3, name: "allow_google_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20113
+ { no: 4, name: "allow_github_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20114
+ { no: 5, name: "is_restricted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20115
+ ]);
20116
+ static fromBinary(bytes, options) {
20117
+ return new OrganizationLoginMethods().fromBinary(bytes, options);
20118
+ }
20119
+ static fromJson(jsonValue, options) {
20120
+ return new OrganizationLoginMethods().fromJson(jsonValue, options);
20121
+ }
20122
+ static fromJsonString(jsonString, options) {
20123
+ return new OrganizationLoginMethods().fromJsonString(jsonString, options);
20124
+ }
20125
+ static equals(a, b) {
20126
+ return proto3.util.equals(OrganizationLoginMethods, a, b);
20127
+ }
20128
+ }
20129
+ /**
20130
+ * @generated from message wg.cosmo.platform.v1.GetOrganizationLoginMethodsRequest
20131
+ */
20132
+ export class GetOrganizationLoginMethodsRequest extends Message {
20133
+ constructor(data) {
20134
+ super();
20135
+ proto3.util.initPartial(data, this);
20136
+ }
20137
+ static runtime = proto3;
20138
+ static typeName = "wg.cosmo.platform.v1.GetOrganizationLoginMethodsRequest";
20139
+ static fields = proto3.util.newFieldList(() => []);
20140
+ static fromBinary(bytes, options) {
20141
+ return new GetOrganizationLoginMethodsRequest().fromBinary(bytes, options);
20142
+ }
20143
+ static fromJson(jsonValue, options) {
20144
+ return new GetOrganizationLoginMethodsRequest().fromJson(jsonValue, options);
20145
+ }
20146
+ static fromJsonString(jsonString, options) {
20147
+ return new GetOrganizationLoginMethodsRequest().fromJsonString(jsonString, options);
20148
+ }
20149
+ static equals(a, b) {
20150
+ return proto3.util.equals(GetOrganizationLoginMethodsRequest, a, b);
20151
+ }
20152
+ }
20153
+ /**
20154
+ * @generated from message wg.cosmo.platform.v1.GetOrganizationLoginMethodsResponse
20155
+ */
20156
+ export class GetOrganizationLoginMethodsResponse extends Message {
20157
+ /**
20158
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
20159
+ */
20160
+ response;
20161
+ /**
20162
+ * @generated from field: wg.cosmo.platform.v1.OrganizationLoginMethods login_methods = 2;
20163
+ */
20164
+ loginMethods;
20165
+ constructor(data) {
20166
+ super();
20167
+ proto3.util.initPartial(data, this);
20168
+ }
20169
+ static runtime = proto3;
20170
+ static typeName = "wg.cosmo.platform.v1.GetOrganizationLoginMethodsResponse";
20171
+ static fields = proto3.util.newFieldList(() => [
20172
+ { no: 1, name: "response", kind: "message", T: Response },
20173
+ { no: 2, name: "login_methods", kind: "message", T: OrganizationLoginMethods },
20174
+ ]);
20175
+ static fromBinary(bytes, options) {
20176
+ return new GetOrganizationLoginMethodsResponse().fromBinary(bytes, options);
20177
+ }
20178
+ static fromJson(jsonValue, options) {
20179
+ return new GetOrganizationLoginMethodsResponse().fromJson(jsonValue, options);
20180
+ }
20181
+ static fromJsonString(jsonString, options) {
20182
+ return new GetOrganizationLoginMethodsResponse().fromJsonString(jsonString, options);
20183
+ }
20184
+ static equals(a, b) {
20185
+ return proto3.util.equals(GetOrganizationLoginMethodsResponse, a, b);
20186
+ }
20187
+ }
20188
+ /**
20189
+ * @generated from message wg.cosmo.platform.v1.UpdateOrganizationLoginMethodsRequest
20190
+ */
20191
+ export class UpdateOrganizationLoginMethodsRequest extends Message {
20192
+ /**
20193
+ * @generated from field: repeated string allowed_sso_provider_ids = 1;
20194
+ */
20195
+ allowedSsoProviderIds = [];
20196
+ /**
20197
+ * @generated from field: bool allow_password_login = 2;
20198
+ */
20199
+ allowPasswordLogin = false;
20200
+ /**
20201
+ * @generated from field: bool allow_google_login = 3;
20202
+ */
20203
+ allowGoogleLogin = false;
20204
+ /**
20205
+ * @generated from field: bool allow_github_login = 4;
20206
+ */
20207
+ allowGithubLogin = false;
20208
+ /**
20209
+ * Set true to confirm that namespace mappings may be altered by this change.
20210
+ * Left false (a preview), if the change would strip methods from existing
20211
+ * namespace mappings the server returns requires_confirmation and makes no changes.
20212
+ *
20213
+ * @generated from field: bool confirm_namespace_changes = 5;
20214
+ */
20215
+ confirmNamespaceChanges = false;
20216
+ constructor(data) {
20217
+ super();
20218
+ proto3.util.initPartial(data, this);
20219
+ }
20220
+ static runtime = proto3;
20221
+ static typeName = "wg.cosmo.platform.v1.UpdateOrganizationLoginMethodsRequest";
20222
+ static fields = proto3.util.newFieldList(() => [
20223
+ { no: 1, name: "allowed_sso_provider_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
20224
+ { no: 2, name: "allow_password_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20225
+ { no: 3, name: "allow_google_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20226
+ { no: 4, name: "allow_github_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20227
+ { no: 5, name: "confirm_namespace_changes", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20228
+ ]);
20229
+ static fromBinary(bytes, options) {
20230
+ return new UpdateOrganizationLoginMethodsRequest().fromBinary(bytes, options);
20231
+ }
20232
+ static fromJson(jsonValue, options) {
20233
+ return new UpdateOrganizationLoginMethodsRequest().fromJson(jsonValue, options);
20234
+ }
20235
+ static fromJsonString(jsonString, options) {
20236
+ return new UpdateOrganizationLoginMethodsRequest().fromJsonString(jsonString, options);
20237
+ }
20238
+ static equals(a, b) {
20239
+ return proto3.util.equals(UpdateOrganizationLoginMethodsRequest, a, b);
20240
+ }
20241
+ }
20242
+ /**
20243
+ * @generated from message wg.cosmo.platform.v1.UpdateOrganizationLoginMethodsResponse
20244
+ */
20245
+ export class UpdateOrganizationLoginMethodsResponse extends Message {
20246
+ /**
20247
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
20248
+ */
20249
+ response;
20250
+ /**
20251
+ * True when the change needs confirmation because it would alter namespace
20252
+ * mappings listed in affected_namespaces. No changes were made in this case.
20253
+ *
20254
+ * @generated from field: bool requires_confirmation = 2;
20255
+ */
20256
+ requiresConfirmation = false;
20257
+ /**
20258
+ * @generated from field: repeated wg.cosmo.platform.v1.Namespace affected_namespaces = 3;
20259
+ */
20260
+ affectedNamespaces = [];
20261
+ constructor(data) {
20262
+ super();
20263
+ proto3.util.initPartial(data, this);
20264
+ }
20265
+ static runtime = proto3;
20266
+ static typeName = "wg.cosmo.platform.v1.UpdateOrganizationLoginMethodsResponse";
20267
+ static fields = proto3.util.newFieldList(() => [
20268
+ { no: 1, name: "response", kind: "message", T: Response },
20269
+ { no: 2, name: "requires_confirmation", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20270
+ { no: 3, name: "affected_namespaces", kind: "message", T: Namespace, repeated: true },
20271
+ ]);
20272
+ static fromBinary(bytes, options) {
20273
+ return new UpdateOrganizationLoginMethodsResponse().fromBinary(bytes, options);
20274
+ }
20275
+ static fromJson(jsonValue, options) {
20276
+ return new UpdateOrganizationLoginMethodsResponse().fromJson(jsonValue, options);
20277
+ }
20278
+ static fromJsonString(jsonString, options) {
20279
+ return new UpdateOrganizationLoginMethodsResponse().fromJsonString(jsonString, options);
20280
+ }
20281
+ static equals(a, b) {
20282
+ return proto3.util.equals(UpdateOrganizationLoginMethodsResponse, a, b);
20283
+ }
20284
+ }
19498
20285
  /**
19499
20286
  * @generated from message wg.cosmo.platform.v1.GetOperationsRequest
19500
20287
  */