@wundergraph/cosmo-connect 0.146.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.
@@ -916,6 +916,155 @@ export class SubgraphPublishStats extends Message {
916
916
  return proto3.util.equals(SubgraphPublishStats, a, b);
917
917
  }
918
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
+ }
919
1068
  /**
920
1069
  * @generated from message wg.cosmo.platform.v1.GitInfo
921
1070
  */
@@ -11829,9 +11978,9 @@ export class CreateOIDCProviderRequest extends Message {
11829
11978
  */
11830
11979
  clientID = "";
11831
11980
  /**
11832
- * @generated from field: string clientSecrect = 4;
11981
+ * @generated from field: string clientSecret = 4;
11833
11982
  */
11834
- clientSecrect = "";
11983
+ clientSecret = "";
11835
11984
  /**
11836
11985
  * @generated from field: repeated wg.cosmo.platform.v1.GroupMapper mappers = 5;
11837
11986
  */
@@ -11846,7 +11995,7 @@ export class CreateOIDCProviderRequest extends Message {
11846
11995
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11847
11996
  { no: 2, name: "discoveryEndpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11848
11997
  { no: 3, name: "clientID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11849
- { no: 4, name: "clientSecrect", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11998
+ { no: 4, name: "clientSecret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11850
11999
  { no: 5, name: "mappers", kind: "message", T: GroupMapper, repeated: true },
11851
12000
  ]);
11852
12001
  static fromBinary(bytes, options) {
@@ -19754,9 +19903,9 @@ export class GetNamespaceProposalConfigResponse extends Message {
19754
19903
  }
19755
19904
  }
19756
19905
  /**
19757
- * @generated from message wg.cosmo.platform.v1.NamespaceSSOMapping
19906
+ * @generated from message wg.cosmo.platform.v1.NamespaceLoginMethodMapping
19758
19907
  */
19759
- export class NamespaceSSOMapping extends Message {
19908
+ export class NamespaceLoginMethodMapping extends Message {
19760
19909
  /**
19761
19910
  * @generated from field: string namespace_id = 1;
19762
19911
  */
@@ -19782,7 +19931,7 @@ export class NamespaceSSOMapping extends Message {
19782
19931
  proto3.util.initPartial(data, this);
19783
19932
  }
19784
19933
  static runtime = proto3;
19785
- static typeName = "wg.cosmo.platform.v1.NamespaceSSOMapping";
19934
+ static typeName = "wg.cosmo.platform.v1.NamespaceLoginMethodMapping";
19786
19935
  static fields = proto3.util.newFieldList(() => [
19787
19936
  { no: 1, name: "namespace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
19788
19937
  { no: 2, name: "allowed_sso_provider_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
@@ -19791,24 +19940,24 @@ export class NamespaceSSOMapping extends Message {
19791
19940
  { no: 5, name: "allow_github_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
19792
19941
  ]);
19793
19942
  static fromBinary(bytes, options) {
19794
- return new NamespaceSSOMapping().fromBinary(bytes, options);
19943
+ return new NamespaceLoginMethodMapping().fromBinary(bytes, options);
19795
19944
  }
19796
19945
  static fromJson(jsonValue, options) {
19797
- return new NamespaceSSOMapping().fromJson(jsonValue, options);
19946
+ return new NamespaceLoginMethodMapping().fromJson(jsonValue, options);
19798
19947
  }
19799
19948
  static fromJsonString(jsonString, options) {
19800
- return new NamespaceSSOMapping().fromJsonString(jsonString, options);
19949
+ return new NamespaceLoginMethodMapping().fromJsonString(jsonString, options);
19801
19950
  }
19802
19951
  static equals(a, b) {
19803
- return proto3.util.equals(NamespaceSSOMapping, a, b);
19952
+ return proto3.util.equals(NamespaceLoginMethodMapping, a, b);
19804
19953
  }
19805
19954
  }
19806
19955
  /**
19807
- * @generated from message wg.cosmo.platform.v1.UpdateNamespaceSSOMappingsRequest
19956
+ * @generated from message wg.cosmo.platform.v1.UpdateNamespaceLoginMethodsRequest
19808
19957
  */
19809
- export class UpdateNamespaceSSOMappingsRequest extends Message {
19958
+ export class UpdateNamespaceLoginMethodsRequest extends Message {
19810
19959
  /**
19811
- * @generated from field: repeated wg.cosmo.platform.v1.NamespaceSSOMapping mappings = 1;
19960
+ * @generated from field: repeated wg.cosmo.platform.v1.NamespaceLoginMethodMapping mappings = 1;
19812
19961
  */
19813
19962
  mappings = [];
19814
19963
  constructor(data) {
@@ -19816,27 +19965,27 @@ export class UpdateNamespaceSSOMappingsRequest extends Message {
19816
19965
  proto3.util.initPartial(data, this);
19817
19966
  }
19818
19967
  static runtime = proto3;
19819
- static typeName = "wg.cosmo.platform.v1.UpdateNamespaceSSOMappingsRequest";
19968
+ static typeName = "wg.cosmo.platform.v1.UpdateNamespaceLoginMethodsRequest";
19820
19969
  static fields = proto3.util.newFieldList(() => [
19821
- { no: 1, name: "mappings", kind: "message", T: NamespaceSSOMapping, repeated: true },
19970
+ { no: 1, name: "mappings", kind: "message", T: NamespaceLoginMethodMapping, repeated: true },
19822
19971
  ]);
19823
19972
  static fromBinary(bytes, options) {
19824
- return new UpdateNamespaceSSOMappingsRequest().fromBinary(bytes, options);
19973
+ return new UpdateNamespaceLoginMethodsRequest().fromBinary(bytes, options);
19825
19974
  }
19826
19975
  static fromJson(jsonValue, options) {
19827
- return new UpdateNamespaceSSOMappingsRequest().fromJson(jsonValue, options);
19976
+ return new UpdateNamespaceLoginMethodsRequest().fromJson(jsonValue, options);
19828
19977
  }
19829
19978
  static fromJsonString(jsonString, options) {
19830
- return new UpdateNamespaceSSOMappingsRequest().fromJsonString(jsonString, options);
19979
+ return new UpdateNamespaceLoginMethodsRequest().fromJsonString(jsonString, options);
19831
19980
  }
19832
19981
  static equals(a, b) {
19833
- return proto3.util.equals(UpdateNamespaceSSOMappingsRequest, a, b);
19982
+ return proto3.util.equals(UpdateNamespaceLoginMethodsRequest, a, b);
19834
19983
  }
19835
19984
  }
19836
19985
  /**
19837
- * @generated from message wg.cosmo.platform.v1.UpdateNamespaceSSOMappingsResponse
19986
+ * @generated from message wg.cosmo.platform.v1.UpdateNamespaceLoginMethodsResponse
19838
19987
  */
19839
- export class UpdateNamespaceSSOMappingsResponse extends Message {
19988
+ export class UpdateNamespaceLoginMethodsResponse extends Message {
19840
19989
  /**
19841
19990
  * @generated from field: wg.cosmo.platform.v1.Response response = 1;
19842
19991
  */
@@ -19846,51 +19995,51 @@ export class UpdateNamespaceSSOMappingsResponse extends Message {
19846
19995
  proto3.util.initPartial(data, this);
19847
19996
  }
19848
19997
  static runtime = proto3;
19849
- static typeName = "wg.cosmo.platform.v1.UpdateNamespaceSSOMappingsResponse";
19998
+ static typeName = "wg.cosmo.platform.v1.UpdateNamespaceLoginMethodsResponse";
19850
19999
  static fields = proto3.util.newFieldList(() => [
19851
20000
  { no: 1, name: "response", kind: "message", T: Response },
19852
20001
  ]);
19853
20002
  static fromBinary(bytes, options) {
19854
- return new UpdateNamespaceSSOMappingsResponse().fromBinary(bytes, options);
20003
+ return new UpdateNamespaceLoginMethodsResponse().fromBinary(bytes, options);
19855
20004
  }
19856
20005
  static fromJson(jsonValue, options) {
19857
- return new UpdateNamespaceSSOMappingsResponse().fromJson(jsonValue, options);
20006
+ return new UpdateNamespaceLoginMethodsResponse().fromJson(jsonValue, options);
19858
20007
  }
19859
20008
  static fromJsonString(jsonString, options) {
19860
- return new UpdateNamespaceSSOMappingsResponse().fromJsonString(jsonString, options);
20009
+ return new UpdateNamespaceLoginMethodsResponse().fromJsonString(jsonString, options);
19861
20010
  }
19862
20011
  static equals(a, b) {
19863
- return proto3.util.equals(UpdateNamespaceSSOMappingsResponse, a, b);
20012
+ return proto3.util.equals(UpdateNamespaceLoginMethodsResponse, a, b);
19864
20013
  }
19865
20014
  }
19866
20015
  /**
19867
- * @generated from message wg.cosmo.platform.v1.ListNamespaceSSOMappingsRequest
20016
+ * @generated from message wg.cosmo.platform.v1.ListNamespaceLoginMethodsRequest
19868
20017
  */
19869
- export class ListNamespaceSSOMappingsRequest extends Message {
20018
+ export class ListNamespaceLoginMethodsRequest extends Message {
19870
20019
  constructor(data) {
19871
20020
  super();
19872
20021
  proto3.util.initPartial(data, this);
19873
20022
  }
19874
20023
  static runtime = proto3;
19875
- static typeName = "wg.cosmo.platform.v1.ListNamespaceSSOMappingsRequest";
20024
+ static typeName = "wg.cosmo.platform.v1.ListNamespaceLoginMethodsRequest";
19876
20025
  static fields = proto3.util.newFieldList(() => []);
19877
20026
  static fromBinary(bytes, options) {
19878
- return new ListNamespaceSSOMappingsRequest().fromBinary(bytes, options);
20027
+ return new ListNamespaceLoginMethodsRequest().fromBinary(bytes, options);
19879
20028
  }
19880
20029
  static fromJson(jsonValue, options) {
19881
- return new ListNamespaceSSOMappingsRequest().fromJson(jsonValue, options);
20030
+ return new ListNamespaceLoginMethodsRequest().fromJson(jsonValue, options);
19882
20031
  }
19883
20032
  static fromJsonString(jsonString, options) {
19884
- return new ListNamespaceSSOMappingsRequest().fromJsonString(jsonString, options);
20033
+ return new ListNamespaceLoginMethodsRequest().fromJsonString(jsonString, options);
19885
20034
  }
19886
20035
  static equals(a, b) {
19887
- return proto3.util.equals(ListNamespaceSSOMappingsRequest, a, b);
20036
+ return proto3.util.equals(ListNamespaceLoginMethodsRequest, a, b);
19888
20037
  }
19889
20038
  }
19890
20039
  /**
19891
- * @generated from message wg.cosmo.platform.v1.ListNamespaceSSOMappingsResponse
20040
+ * @generated from message wg.cosmo.platform.v1.ListNamespaceLoginMethodsResponse
19892
20041
  */
19893
- export class ListNamespaceSSOMappingsResponse extends Message {
20042
+ export class ListNamespaceLoginMethodsResponse extends Message {
19894
20043
  /**
19895
20044
  * @generated from field: wg.cosmo.platform.v1.Response response = 1;
19896
20045
  */
@@ -19899,7 +20048,7 @@ export class ListNamespaceSSOMappingsResponse extends Message {
19899
20048
  * One entry per namespace that is restricted to specific login methods.
19900
20049
  * Namespaces with no mapping (default-open) are omitted.
19901
20050
  *
19902
- * @generated from field: repeated wg.cosmo.platform.v1.NamespaceSSOMapping mappings = 2;
20051
+ * @generated from field: repeated wg.cosmo.platform.v1.NamespaceLoginMethodMapping mappings = 2;
19903
20052
  */
19904
20053
  mappings = [];
19905
20054
  constructor(data) {
@@ -19907,22 +20056,230 @@ export class ListNamespaceSSOMappingsResponse extends Message {
19907
20056
  proto3.util.initPartial(data, this);
19908
20057
  }
19909
20058
  static runtime = proto3;
19910
- static typeName = "wg.cosmo.platform.v1.ListNamespaceSSOMappingsResponse";
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";
19911
20267
  static fields = proto3.util.newFieldList(() => [
19912
20268
  { no: 1, name: "response", kind: "message", T: Response },
19913
- { no: 2, name: "mappings", kind: "message", T: NamespaceSSOMapping, repeated: true },
20269
+ { no: 2, name: "requires_confirmation", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
20270
+ { no: 3, name: "affected_namespaces", kind: "message", T: Namespace, repeated: true },
19914
20271
  ]);
19915
20272
  static fromBinary(bytes, options) {
19916
- return new ListNamespaceSSOMappingsResponse().fromBinary(bytes, options);
20273
+ return new UpdateOrganizationLoginMethodsResponse().fromBinary(bytes, options);
19917
20274
  }
19918
20275
  static fromJson(jsonValue, options) {
19919
- return new ListNamespaceSSOMappingsResponse().fromJson(jsonValue, options);
20276
+ return new UpdateOrganizationLoginMethodsResponse().fromJson(jsonValue, options);
19920
20277
  }
19921
20278
  static fromJsonString(jsonString, options) {
19922
- return new ListNamespaceSSOMappingsResponse().fromJsonString(jsonString, options);
20279
+ return new UpdateOrganizationLoginMethodsResponse().fromJsonString(jsonString, options);
19923
20280
  }
19924
20281
  static equals(a, b) {
19925
- return proto3.util.equals(ListNamespaceSSOMappingsResponse, a, b);
20282
+ return proto3.util.equals(UpdateOrganizationLoginMethodsResponse, a, b);
19926
20283
  }
19927
20284
  }
19928
20285
  /**