@scalekit-sdk/node 1.0.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.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +49 -0
  3. package/buf.gen.yaml +14 -0
  4. package/lib/connect.d.ts +9 -0
  5. package/lib/connect.js +31 -0
  6. package/lib/connect.js.map +1 -0
  7. package/lib/connection.d.ts +28 -0
  8. package/lib/connection.js +68 -0
  9. package/lib/connection.js.map +1 -0
  10. package/lib/constants/user.d.ts +4 -0
  11. package/lib/constants/user.js +24 -0
  12. package/lib/constants/user.js.map +1 -0
  13. package/lib/core.d.ts +37 -0
  14. package/lib/core.js +160 -0
  15. package/lib/core.js.map +1 -0
  16. package/lib/domain.d.ts +33 -0
  17. package/lib/domain.js +74 -0
  18. package/lib/domain.js.map +1 -0
  19. package/lib/index.d.ts +5 -0
  20. package/lib/index.js +26 -0
  21. package/lib/index.js.map +1 -0
  22. package/lib/organization.d.ts +64 -0
  23. package/lib/organization.js +116 -0
  24. package/lib/organization.js.map +1 -0
  25. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +20 -0
  26. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +36 -0
  27. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -0
  28. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +73 -0
  29. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +81 -0
  30. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -0
  31. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +1252 -0
  32. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +1536 -0
  33. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -0
  34. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +55 -0
  35. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +63 -0
  36. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +1 -0
  37. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +394 -0
  38. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +469 -0
  39. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -0
  40. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +245 -0
  41. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +369 -0
  42. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -0
  43. package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +98 -0
  44. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +135 -0
  45. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -0
  46. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +92 -0
  47. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +100 -0
  48. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -0
  49. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +424 -0
  50. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +559 -0
  51. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -0
  52. package/lib/scalekit.d.ts +60 -0
  53. package/lib/scalekit.js +140 -0
  54. package/lib/scalekit.js.map +1 -0
  55. package/lib/types/scalekit.d.ts +26 -0
  56. package/lib/types/scalekit.js +10 -0
  57. package/lib/types/scalekit.js.map +1 -0
  58. package/lib/types/user.d.ts +56 -0
  59. package/lib/types/user.js +3 -0
  60. package/lib/types/user.js.map +1 -0
  61. package/package.json +45 -0
  62. package/src/connect.ts +33 -0
  63. package/src/connection.ts +69 -0
  64. package/src/constants/user.ts +22 -0
  65. package/src/core.ts +127 -0
  66. package/src/domain.ts +75 -0
  67. package/src/index.ts +7 -0
  68. package/src/organization.ts +129 -0
  69. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +36 -0
  70. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +80 -0
  71. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +2138 -0
  72. package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +62 -0
  73. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +687 -0
  74. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +461 -0
  75. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +156 -0
  76. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +99 -0
  77. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +774 -0
  78. package/src/scalekit.ts +155 -0
  79. package/src/types/scalekit.ts +30 -0
  80. package/src/types/user.ts +59 -0
  81. package/tsconfig.json +18 -0
@@ -0,0 +1,1536 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
3
+ // @generated from file scalekit/v1/connections/connections.proto (package scalekit.v1.connections, syntax proto3)
4
+ /* eslint-disable */
5
+ // @ts-nocheck
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.PasswordConnectionConfig = exports.GetSAMLCertificateDetailsResponse = exports.SAMLCertificateRequest = exports.GetSAMLCertificateDetailsRequest = exports.GetSAMLMetadataResponse = exports.SAMLMetadataRequest = exports.GetSAMLMetadataRequest = exports.GetOIDCMetadataResponse = exports.OIDCMetadataRequest = exports.GetOIDCMetadataRequest = exports.IDPCertificate = exports.SAMLConnectionConfigResponse = exports.SAMLConnectionConfigRequest = exports.OIDCConnectionConfig = exports.ToggleConnectionResponse = exports.DisableConnectionRequest = exports.EnableConnectionRequest = exports.ListConnection = exports.ListConnectionsResponse = exports.ListConnectionsRequest = exports.GetConnectionResponse = exports.GetConnectionRequest = exports.DeleteConnectionRequest = exports.UpdateConnectionResponse = exports.UpdateConnection = exports.UpdateConnectionRequest = exports.CreateConnectionResponse = exports.Connection = exports.CreateConnection = exports.CreateConnectionRequest = exports.ConnectionProvider = exports.ConnectionStatus = exports.ConnectionType = exports.OIDCScope = exports.TokenAuthType = exports.RequestBinding = exports.SAMLSigningOptions = exports.NameIdFormat = exports.ConfigurationType = void 0;
8
+ const protobuf_1 = require("@bufbuild/protobuf");
9
+ /**
10
+ * @generated from enum scalekit.v1.connections.ConfigurationType
11
+ */
12
+ var ConfigurationType;
13
+ (function (ConfigurationType) {
14
+ /**
15
+ * @generated from enum value: CONFIGURATION_TYPE_UNSPECIFIED = 0;
16
+ */
17
+ ConfigurationType[ConfigurationType["CONFIGURATION_TYPE_UNSPECIFIED"] = 0] = "CONFIGURATION_TYPE_UNSPECIFIED";
18
+ /**
19
+ * @generated from enum value: DISCOVERY = 1;
20
+ */
21
+ ConfigurationType[ConfigurationType["DISCOVERY"] = 1] = "DISCOVERY";
22
+ /**
23
+ * @generated from enum value: MANUAL = 2;
24
+ */
25
+ ConfigurationType[ConfigurationType["MANUAL"] = 2] = "MANUAL";
26
+ })(ConfigurationType || (exports.ConfigurationType = ConfigurationType = {}));
27
+ // Retrieve enum metadata with: proto3.getEnumType(ConfigurationType)
28
+ protobuf_1.proto3.util.setEnumType(ConfigurationType, "scalekit.v1.connections.ConfigurationType", [
29
+ { no: 0, name: "CONFIGURATION_TYPE_UNSPECIFIED" },
30
+ { no: 1, name: "DISCOVERY" },
31
+ { no: 2, name: "MANUAL" },
32
+ ]);
33
+ /**
34
+ * @generated from enum scalekit.v1.connections.NameIdFormat
35
+ */
36
+ var NameIdFormat;
37
+ (function (NameIdFormat) {
38
+ /**
39
+ * @generated from enum value: NAME_ID_FORMAT_NIL = 0;
40
+ */
41
+ NameIdFormat[NameIdFormat["NAME_ID_FORMAT_NIL"] = 0] = "NAME_ID_FORMAT_NIL";
42
+ /**
43
+ * @generated from enum value: UNSPECIFIED = 1;
44
+ */
45
+ NameIdFormat[NameIdFormat["UNSPECIFIED"] = 1] = "UNSPECIFIED";
46
+ /**
47
+ * @generated from enum value: EMAIL = 2;
48
+ */
49
+ NameIdFormat[NameIdFormat["EMAIL"] = 2] = "EMAIL";
50
+ /**
51
+ * @generated from enum value: TRANSIENT = 3;
52
+ */
53
+ NameIdFormat[NameIdFormat["TRANSIENT"] = 3] = "TRANSIENT";
54
+ /**
55
+ * @generated from enum value: PERSISTENT = 4;
56
+ */
57
+ NameIdFormat[NameIdFormat["PERSISTENT"] = 4] = "PERSISTENT";
58
+ })(NameIdFormat || (exports.NameIdFormat = NameIdFormat = {}));
59
+ // Retrieve enum metadata with: proto3.getEnumType(NameIdFormat)
60
+ protobuf_1.proto3.util.setEnumType(NameIdFormat, "scalekit.v1.connections.NameIdFormat", [
61
+ { no: 0, name: "NAME_ID_FORMAT_NIL" },
62
+ { no: 1, name: "UNSPECIFIED" },
63
+ { no: 2, name: "EMAIL" },
64
+ { no: 3, name: "TRANSIENT" },
65
+ { no: 4, name: "PERSISTENT" },
66
+ ]);
67
+ /**
68
+ * enums all
69
+ *
70
+ * @generated from enum scalekit.v1.connections.SAMLSigningOptions
71
+ */
72
+ var SAMLSigningOptions;
73
+ (function (SAMLSigningOptions) {
74
+ /**
75
+ * @generated from enum value: SAML_SIGNING_OPTIONS_UNSPECIFIED = 0;
76
+ */
77
+ SAMLSigningOptions[SAMLSigningOptions["SAML_SIGNING_OPTIONS_UNSPECIFIED"] = 0] = "SAML_SIGNING_OPTIONS_UNSPECIFIED";
78
+ /**
79
+ * @generated from enum value: NO_SIGNING = 1;
80
+ */
81
+ SAMLSigningOptions[SAMLSigningOptions["NO_SIGNING"] = 1] = "NO_SIGNING";
82
+ /**
83
+ * @generated from enum value: SAML_ONLY_RESPONSE_SIGNING = 2;
84
+ */
85
+ SAMLSigningOptions[SAMLSigningOptions["SAML_ONLY_RESPONSE_SIGNING"] = 2] = "SAML_ONLY_RESPONSE_SIGNING";
86
+ /**
87
+ * @generated from enum value: SAML_ONLY_ASSERTION_SIGNING = 3;
88
+ */
89
+ SAMLSigningOptions[SAMLSigningOptions["SAML_ONLY_ASSERTION_SIGNING"] = 3] = "SAML_ONLY_ASSERTION_SIGNING";
90
+ /**
91
+ * @generated from enum value: SAML_RESPONSE_ASSERTION_SIGNING = 4;
92
+ */
93
+ SAMLSigningOptions[SAMLSigningOptions["SAML_RESPONSE_ASSERTION_SIGNING"] = 4] = "SAML_RESPONSE_ASSERTION_SIGNING";
94
+ })(SAMLSigningOptions || (exports.SAMLSigningOptions = SAMLSigningOptions = {}));
95
+ // Retrieve enum metadata with: proto3.getEnumType(SAMLSigningOptions)
96
+ protobuf_1.proto3.util.setEnumType(SAMLSigningOptions, "scalekit.v1.connections.SAMLSigningOptions", [
97
+ { no: 0, name: "SAML_SIGNING_OPTIONS_UNSPECIFIED" },
98
+ { no: 1, name: "NO_SIGNING" },
99
+ { no: 2, name: "SAML_ONLY_RESPONSE_SIGNING" },
100
+ { no: 3, name: "SAML_ONLY_ASSERTION_SIGNING" },
101
+ { no: 4, name: "SAML_RESPONSE_ASSERTION_SIGNING" },
102
+ ]);
103
+ /**
104
+ * @generated from enum scalekit.v1.connections.RequestBinding
105
+ */
106
+ var RequestBinding;
107
+ (function (RequestBinding) {
108
+ /**
109
+ * @generated from enum value: REQUEST_BINDING_UNSPECIFIED = 0;
110
+ */
111
+ RequestBinding[RequestBinding["REQUEST_BINDING_UNSPECIFIED"] = 0] = "REQUEST_BINDING_UNSPECIFIED";
112
+ /**
113
+ * @generated from enum value: HTTP_POST = 1;
114
+ */
115
+ RequestBinding[RequestBinding["HTTP_POST"] = 1] = "HTTP_POST";
116
+ /**
117
+ * @generated from enum value: HTTP_REDIRECT = 2;
118
+ */
119
+ RequestBinding[RequestBinding["HTTP_REDIRECT"] = 2] = "HTTP_REDIRECT";
120
+ })(RequestBinding || (exports.RequestBinding = RequestBinding = {}));
121
+ // Retrieve enum metadata with: proto3.getEnumType(RequestBinding)
122
+ protobuf_1.proto3.util.setEnumType(RequestBinding, "scalekit.v1.connections.RequestBinding", [
123
+ { no: 0, name: "REQUEST_BINDING_UNSPECIFIED" },
124
+ { no: 1, name: "HTTP_POST" },
125
+ { no: 2, name: "HTTP_REDIRECT" },
126
+ ]);
127
+ /**
128
+ * @generated from enum scalekit.v1.connections.TokenAuthType
129
+ */
130
+ var TokenAuthType;
131
+ (function (TokenAuthType) {
132
+ /**
133
+ * @generated from enum value: TOKEN_AUTH_TYPE_UNSPECIFIED = 0;
134
+ */
135
+ TokenAuthType[TokenAuthType["TOKEN_AUTH_TYPE_UNSPECIFIED"] = 0] = "TOKEN_AUTH_TYPE_UNSPECIFIED";
136
+ /**
137
+ * @generated from enum value: URL_PARAMS = 1;
138
+ */
139
+ TokenAuthType[TokenAuthType["URL_PARAMS"] = 1] = "URL_PARAMS";
140
+ /**
141
+ * @generated from enum value: BASIC_AUTH = 2;
142
+ */
143
+ TokenAuthType[TokenAuthType["BASIC_AUTH"] = 2] = "BASIC_AUTH";
144
+ })(TokenAuthType || (exports.TokenAuthType = TokenAuthType = {}));
145
+ // Retrieve enum metadata with: proto3.getEnumType(TokenAuthType)
146
+ protobuf_1.proto3.util.setEnumType(TokenAuthType, "scalekit.v1.connections.TokenAuthType", [
147
+ { no: 0, name: "TOKEN_AUTH_TYPE_UNSPECIFIED" },
148
+ { no: 1, name: "URL_PARAMS" },
149
+ { no: 2, name: "BASIC_AUTH" },
150
+ ]);
151
+ /**
152
+ * @generated from enum scalekit.v1.connections.OIDCScope
153
+ */
154
+ var OIDCScope;
155
+ (function (OIDCScope) {
156
+ /**
157
+ * @generated from enum value: OIDC_SCOPE_UNSPECIFIED = 0;
158
+ */
159
+ OIDCScope[OIDCScope["OIDC_SCOPE_UNSPECIFIED"] = 0] = "OIDC_SCOPE_UNSPECIFIED";
160
+ /**
161
+ * @generated from enum value: openid = 1;
162
+ */
163
+ OIDCScope[OIDCScope["openid"] = 1] = "openid";
164
+ /**
165
+ * @generated from enum value: profile = 2;
166
+ */
167
+ OIDCScope[OIDCScope["profile"] = 2] = "profile";
168
+ /**
169
+ * @generated from enum value: email = 3;
170
+ */
171
+ OIDCScope[OIDCScope["email"] = 3] = "email";
172
+ /**
173
+ * @generated from enum value: address = 4;
174
+ */
175
+ OIDCScope[OIDCScope["address"] = 4] = "address";
176
+ /**
177
+ * @generated from enum value: phone = 5;
178
+ */
179
+ OIDCScope[OIDCScope["phone"] = 5] = "phone";
180
+ })(OIDCScope || (exports.OIDCScope = OIDCScope = {}));
181
+ // Retrieve enum metadata with: proto3.getEnumType(OIDCScope)
182
+ protobuf_1.proto3.util.setEnumType(OIDCScope, "scalekit.v1.connections.OIDCScope", [
183
+ { no: 0, name: "OIDC_SCOPE_UNSPECIFIED" },
184
+ { no: 1, name: "openid" },
185
+ { no: 2, name: "profile" },
186
+ { no: 3, name: "email" },
187
+ { no: 4, name: "address" },
188
+ { no: 5, name: "phone" },
189
+ ]);
190
+ /**
191
+ * @generated from enum scalekit.v1.connections.ConnectionType
192
+ */
193
+ var ConnectionType;
194
+ (function (ConnectionType) {
195
+ /**
196
+ * @generated from enum value: INVALID = 0;
197
+ */
198
+ ConnectionType[ConnectionType["INVALID"] = 0] = "INVALID";
199
+ /**
200
+ * @generated from enum value: OIDC = 1;
201
+ */
202
+ ConnectionType[ConnectionType["OIDC"] = 1] = "OIDC";
203
+ /**
204
+ * @generated from enum value: SAML = 2;
205
+ */
206
+ ConnectionType[ConnectionType["SAML"] = 2] = "SAML";
207
+ /**
208
+ * @generated from enum value: PASSWORD = 3;
209
+ */
210
+ ConnectionType[ConnectionType["PASSWORD"] = 3] = "PASSWORD";
211
+ })(ConnectionType || (exports.ConnectionType = ConnectionType = {}));
212
+ // Retrieve enum metadata with: proto3.getEnumType(ConnectionType)
213
+ protobuf_1.proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType", [
214
+ { no: 0, name: "INVALID" },
215
+ { no: 1, name: "OIDC" },
216
+ { no: 2, name: "SAML" },
217
+ { no: 3, name: "PASSWORD" },
218
+ ]);
219
+ /**
220
+ * @generated from enum scalekit.v1.connections.ConnectionStatus
221
+ */
222
+ var ConnectionStatus;
223
+ (function (ConnectionStatus) {
224
+ /**
225
+ * @generated from enum value: CONNECTION_STATUS_UNSPECIFIED = 0;
226
+ */
227
+ ConnectionStatus[ConnectionStatus["CONNECTION_STATUS_UNSPECIFIED"] = 0] = "CONNECTION_STATUS_UNSPECIFIED";
228
+ /**
229
+ * @generated from enum value: DRAFT = 1;
230
+ */
231
+ ConnectionStatus[ConnectionStatus["DRAFT"] = 1] = "DRAFT";
232
+ /**
233
+ * @generated from enum value: IN_PROGRESS = 2;
234
+ */
235
+ ConnectionStatus[ConnectionStatus["IN_PROGRESS"] = 2] = "IN_PROGRESS";
236
+ /**
237
+ * @generated from enum value: COMPLETED = 3;
238
+ */
239
+ ConnectionStatus[ConnectionStatus["COMPLETED"] = 3] = "COMPLETED";
240
+ })(ConnectionStatus || (exports.ConnectionStatus = ConnectionStatus = {}));
241
+ // Retrieve enum metadata with: proto3.getEnumType(ConnectionStatus)
242
+ protobuf_1.proto3.util.setEnumType(ConnectionStatus, "scalekit.v1.connections.ConnectionStatus", [
243
+ { no: 0, name: "CONNECTION_STATUS_UNSPECIFIED" },
244
+ { no: 1, name: "DRAFT" },
245
+ { no: 2, name: "IN_PROGRESS" },
246
+ { no: 3, name: "COMPLETED" },
247
+ ]);
248
+ /**
249
+ * @generated from enum scalekit.v1.connections.ConnectionProvider
250
+ */
251
+ var ConnectionProvider;
252
+ (function (ConnectionProvider) {
253
+ /**
254
+ * @generated from enum value: CONNECTION_PROVIDER_UNSPECIFIED = 0;
255
+ */
256
+ ConnectionProvider[ConnectionProvider["CONNECTION_PROVIDER_UNSPECIFIED"] = 0] = "CONNECTION_PROVIDER_UNSPECIFIED";
257
+ /**
258
+ * @generated from enum value: OKTA = 1;
259
+ */
260
+ ConnectionProvider[ConnectionProvider["OKTA"] = 1] = "OKTA";
261
+ /**
262
+ * @generated from enum value: GOOGLE = 2;
263
+ */
264
+ ConnectionProvider[ConnectionProvider["GOOGLE"] = 2] = "GOOGLE";
265
+ /**
266
+ * @generated from enum value: MICROSOFT_AD = 3;
267
+ */
268
+ ConnectionProvider[ConnectionProvider["MICROSOFT_AD"] = 3] = "MICROSOFT_AD";
269
+ /**
270
+ * @generated from enum value: AUTH0 = 4;
271
+ */
272
+ ConnectionProvider[ConnectionProvider["AUTH0"] = 4] = "AUTH0";
273
+ /**
274
+ * @generated from enum value: ONELOGIN = 5;
275
+ */
276
+ ConnectionProvider[ConnectionProvider["ONELOGIN"] = 5] = "ONELOGIN";
277
+ /**
278
+ * @generated from enum value: PING_IDENTITY = 6;
279
+ */
280
+ ConnectionProvider[ConnectionProvider["PING_IDENTITY"] = 6] = "PING_IDENTITY";
281
+ /**
282
+ * @generated from enum value: JUMPCLOUD = 7;
283
+ */
284
+ ConnectionProvider[ConnectionProvider["JUMPCLOUD"] = 7] = "JUMPCLOUD";
285
+ /**
286
+ * @generated from enum value: CUSTOM = 8;
287
+ */
288
+ ConnectionProvider[ConnectionProvider["CUSTOM"] = 8] = "CUSTOM";
289
+ })(ConnectionProvider || (exports.ConnectionProvider = ConnectionProvider = {}));
290
+ // Retrieve enum metadata with: proto3.getEnumType(ConnectionProvider)
291
+ protobuf_1.proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.ConnectionProvider", [
292
+ { no: 0, name: "CONNECTION_PROVIDER_UNSPECIFIED" },
293
+ { no: 1, name: "OKTA" },
294
+ { no: 2, name: "GOOGLE" },
295
+ { no: 3, name: "MICROSOFT_AD" },
296
+ { no: 4, name: "AUTH0" },
297
+ { no: 5, name: "ONELOGIN" },
298
+ { no: 6, name: "PING_IDENTITY" },
299
+ { no: 7, name: "JUMPCLOUD" },
300
+ { no: 8, name: "CUSTOM" },
301
+ ]);
302
+ /**
303
+ * @generated from message scalekit.v1.connections.CreateConnectionRequest
304
+ */
305
+ class CreateConnectionRequest extends protobuf_1.Message {
306
+ constructor(data) {
307
+ super();
308
+ /**
309
+ * @generated from oneof scalekit.v1.connections.CreateConnectionRequest.identities
310
+ */
311
+ this.identities = { case: undefined };
312
+ protobuf_1.proto3.util.initPartial(data, this);
313
+ }
314
+ static fromBinary(bytes, options) {
315
+ return new CreateConnectionRequest().fromBinary(bytes, options);
316
+ }
317
+ static fromJson(jsonValue, options) {
318
+ return new CreateConnectionRequest().fromJson(jsonValue, options);
319
+ }
320
+ static fromJsonString(jsonString, options) {
321
+ return new CreateConnectionRequest().fromJsonString(jsonString, options);
322
+ }
323
+ static equals(a, b) {
324
+ return protobuf_1.proto3.util.equals(CreateConnectionRequest, a, b);
325
+ }
326
+ }
327
+ exports.CreateConnectionRequest = CreateConnectionRequest;
328
+ CreateConnectionRequest.runtime = protobuf_1.proto3;
329
+ CreateConnectionRequest.typeName = "scalekit.v1.connections.CreateConnectionRequest";
330
+ CreateConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
331
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
332
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
333
+ { no: 3, name: "connection", kind: "message", T: CreateConnection },
334
+ ]);
335
+ /**
336
+ * @generated from message scalekit.v1.connections.CreateConnection
337
+ */
338
+ class CreateConnection extends protobuf_1.Message {
339
+ constructor(data) {
340
+ super();
341
+ /**
342
+ * @generated from field: scalekit.v1.connections.ConnectionProvider provider = 1;
343
+ */
344
+ this.provider = ConnectionProvider.CONNECTION_PROVIDER_UNSPECIFIED;
345
+ /**
346
+ * @generated from field: scalekit.v1.connections.ConnectionType type = 2;
347
+ */
348
+ this.type = ConnectionType.INVALID;
349
+ protobuf_1.proto3.util.initPartial(data, this);
350
+ }
351
+ static fromBinary(bytes, options) {
352
+ return new CreateConnection().fromBinary(bytes, options);
353
+ }
354
+ static fromJson(jsonValue, options) {
355
+ return new CreateConnection().fromJson(jsonValue, options);
356
+ }
357
+ static fromJsonString(jsonString, options) {
358
+ return new CreateConnection().fromJsonString(jsonString, options);
359
+ }
360
+ static equals(a, b) {
361
+ return protobuf_1.proto3.util.equals(CreateConnection, a, b);
362
+ }
363
+ }
364
+ exports.CreateConnection = CreateConnection;
365
+ CreateConnection.runtime = protobuf_1.proto3;
366
+ CreateConnection.typeName = "scalekit.v1.connections.CreateConnection";
367
+ CreateConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
368
+ { no: 1, name: "provider", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionProvider) },
369
+ { no: 2, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionType) },
370
+ ]);
371
+ /**
372
+ * @generated from message scalekit.v1.connections.Connection
373
+ */
374
+ class Connection extends protobuf_1.Message {
375
+ constructor(data) {
376
+ super();
377
+ /**
378
+ * @generated from field: string id = 1;
379
+ */
380
+ this.id = "";
381
+ /**
382
+ * @generated from field: scalekit.v1.connections.ConnectionProvider provider = 2;
383
+ */
384
+ this.provider = ConnectionProvider.CONNECTION_PROVIDER_UNSPECIFIED;
385
+ /**
386
+ * @generated from field: scalekit.v1.connections.ConnectionType type = 3;
387
+ */
388
+ this.type = ConnectionType.INVALID;
389
+ /**
390
+ * @generated from field: scalekit.v1.connections.ConnectionStatus status = 4;
391
+ */
392
+ this.status = ConnectionStatus.CONNECTION_STATUS_UNSPECIFIED;
393
+ /**
394
+ * @generated from field: bool enabled = 5;
395
+ */
396
+ this.enabled = false;
397
+ /**
398
+ * @generated from field: bool debug_enabled = 6;
399
+ */
400
+ this.debugEnabled = false;
401
+ /**
402
+ * @generated from field: string organization_id = 7;
403
+ */
404
+ this.organizationId = "";
405
+ /**
406
+ * @generated from field: string ui_button_title = 8;
407
+ */
408
+ this.uiButtonTitle = "";
409
+ /**
410
+ * @generated from field: string login_initiation_uri = 9;
411
+ */
412
+ this.loginInitiationUri = "";
413
+ /**
414
+ * @generated from field: string logout_uri = 10;
415
+ */
416
+ this.logoutUri = "";
417
+ /**
418
+ * @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 11;
419
+ */
420
+ this.configurationType = ConfigurationType.CONFIGURATION_TYPE_UNSPECIFIED;
421
+ /**
422
+ * @generated from field: string test_connection_uri = 12;
423
+ */
424
+ this.testConnectionUri = "";
425
+ /**
426
+ * @generated from oneof scalekit.v1.connections.Connection.settings
427
+ */
428
+ this.settings = { case: undefined };
429
+ /**
430
+ * @generated from field: map<string, string> attribute_mapping = 15;
431
+ */
432
+ this.attributeMapping = {};
433
+ protobuf_1.proto3.util.initPartial(data, this);
434
+ }
435
+ static fromBinary(bytes, options) {
436
+ return new Connection().fromBinary(bytes, options);
437
+ }
438
+ static fromJson(jsonValue, options) {
439
+ return new Connection().fromJson(jsonValue, options);
440
+ }
441
+ static fromJsonString(jsonString, options) {
442
+ return new Connection().fromJsonString(jsonString, options);
443
+ }
444
+ static equals(a, b) {
445
+ return protobuf_1.proto3.util.equals(Connection, a, b);
446
+ }
447
+ }
448
+ exports.Connection = Connection;
449
+ Connection.runtime = protobuf_1.proto3;
450
+ Connection.typeName = "scalekit.v1.connections.Connection";
451
+ Connection.fields = protobuf_1.proto3.util.newFieldList(() => [
452
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
453
+ { no: 2, name: "provider", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionProvider) },
454
+ { no: 3, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionType) },
455
+ { no: 4, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionStatus) },
456
+ { no: 5, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
457
+ { no: 6, name: "debug_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
458
+ { no: 7, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
459
+ { no: 8, name: "ui_button_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
460
+ { no: 9, name: "login_initiation_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
461
+ { no: 10, name: "logout_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
462
+ { no: 11, name: "configuration_type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConfigurationType) },
463
+ { no: 12, name: "test_connection_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
464
+ { no: 13, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
465
+ { no: 14, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
466
+ { no: 15, name: "attribute_mapping", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
467
+ ]);
468
+ /**
469
+ * @generated from message scalekit.v1.connections.CreateConnectionResponse
470
+ */
471
+ class CreateConnectionResponse extends protobuf_1.Message {
472
+ constructor(data) {
473
+ super();
474
+ protobuf_1.proto3.util.initPartial(data, this);
475
+ }
476
+ static fromBinary(bytes, options) {
477
+ return new CreateConnectionResponse().fromBinary(bytes, options);
478
+ }
479
+ static fromJson(jsonValue, options) {
480
+ return new CreateConnectionResponse().fromJson(jsonValue, options);
481
+ }
482
+ static fromJsonString(jsonString, options) {
483
+ return new CreateConnectionResponse().fromJsonString(jsonString, options);
484
+ }
485
+ static equals(a, b) {
486
+ return protobuf_1.proto3.util.equals(CreateConnectionResponse, a, b);
487
+ }
488
+ }
489
+ exports.CreateConnectionResponse = CreateConnectionResponse;
490
+ CreateConnectionResponse.runtime = protobuf_1.proto3;
491
+ CreateConnectionResponse.typeName = "scalekit.v1.connections.CreateConnectionResponse";
492
+ CreateConnectionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
493
+ { no: 1, name: "connection", kind: "message", T: Connection },
494
+ ]);
495
+ /**
496
+ * @generated from message scalekit.v1.connections.UpdateConnectionRequest
497
+ */
498
+ class UpdateConnectionRequest extends protobuf_1.Message {
499
+ constructor(data) {
500
+ super();
501
+ /**
502
+ * @generated from oneof scalekit.v1.connections.UpdateConnectionRequest.identities
503
+ */
504
+ this.identities = { case: undefined };
505
+ /**
506
+ * @generated from field: string id = 3;
507
+ */
508
+ this.id = "";
509
+ protobuf_1.proto3.util.initPartial(data, this);
510
+ }
511
+ static fromBinary(bytes, options) {
512
+ return new UpdateConnectionRequest().fromBinary(bytes, options);
513
+ }
514
+ static fromJson(jsonValue, options) {
515
+ return new UpdateConnectionRequest().fromJson(jsonValue, options);
516
+ }
517
+ static fromJsonString(jsonString, options) {
518
+ return new UpdateConnectionRequest().fromJsonString(jsonString, options);
519
+ }
520
+ static equals(a, b) {
521
+ return protobuf_1.proto3.util.equals(UpdateConnectionRequest, a, b);
522
+ }
523
+ }
524
+ exports.UpdateConnectionRequest = UpdateConnectionRequest;
525
+ UpdateConnectionRequest.runtime = protobuf_1.proto3;
526
+ UpdateConnectionRequest.typeName = "scalekit.v1.connections.UpdateConnectionRequest";
527
+ UpdateConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
528
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
529
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
530
+ { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
531
+ { no: 4, name: "connection", kind: "message", T: UpdateConnection },
532
+ ]);
533
+ /**
534
+ * @generated from message scalekit.v1.connections.UpdateConnection
535
+ */
536
+ class UpdateConnection extends protobuf_1.Message {
537
+ constructor(data) {
538
+ super();
539
+ /**
540
+ * @generated from field: scalekit.v1.connections.ConnectionProvider provider = 1;
541
+ */
542
+ this.provider = ConnectionProvider.CONNECTION_PROVIDER_UNSPECIFIED;
543
+ /**
544
+ * @generated from field: scalekit.v1.connections.ConnectionType type = 2;
545
+ */
546
+ this.type = ConnectionType.INVALID;
547
+ /**
548
+ * @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 6;
549
+ */
550
+ this.configurationType = ConfigurationType.CONFIGURATION_TYPE_UNSPECIFIED;
551
+ /**
552
+ * @generated from oneof scalekit.v1.connections.UpdateConnection.settings
553
+ */
554
+ this.settings = { case: undefined };
555
+ /**
556
+ * @generated from field: map<string, string> attribute_mapping = 9;
557
+ */
558
+ this.attributeMapping = {};
559
+ protobuf_1.proto3.util.initPartial(data, this);
560
+ }
561
+ static fromBinary(bytes, options) {
562
+ return new UpdateConnection().fromBinary(bytes, options);
563
+ }
564
+ static fromJson(jsonValue, options) {
565
+ return new UpdateConnection().fromJson(jsonValue, options);
566
+ }
567
+ static fromJsonString(jsonString, options) {
568
+ return new UpdateConnection().fromJsonString(jsonString, options);
569
+ }
570
+ static equals(a, b) {
571
+ return protobuf_1.proto3.util.equals(UpdateConnection, a, b);
572
+ }
573
+ }
574
+ exports.UpdateConnection = UpdateConnection;
575
+ UpdateConnection.runtime = protobuf_1.proto3;
576
+ UpdateConnection.typeName = "scalekit.v1.connections.UpdateConnection";
577
+ UpdateConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
578
+ { no: 1, name: "provider", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionProvider) },
579
+ { no: 2, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionType) },
580
+ { no: 3, name: "debug_enabled", kind: "message", T: protobuf_1.BoolValue },
581
+ { no: 4, name: "ui_button_title", kind: "message", T: protobuf_1.StringValue },
582
+ { no: 5, name: "logout_uri", kind: "message", T: protobuf_1.StringValue },
583
+ { no: 6, name: "configuration_type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConfigurationType) },
584
+ { no: 7, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
585
+ { no: 8, name: "saml_config", kind: "message", T: SAMLConnectionConfigRequest, oneof: "settings" },
586
+ { no: 9, name: "attribute_mapping", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
587
+ ]);
588
+ /**
589
+ * @generated from message scalekit.v1.connections.UpdateConnectionResponse
590
+ */
591
+ class UpdateConnectionResponse extends protobuf_1.Message {
592
+ constructor(data) {
593
+ super();
594
+ protobuf_1.proto3.util.initPartial(data, this);
595
+ }
596
+ static fromBinary(bytes, options) {
597
+ return new UpdateConnectionResponse().fromBinary(bytes, options);
598
+ }
599
+ static fromJson(jsonValue, options) {
600
+ return new UpdateConnectionResponse().fromJson(jsonValue, options);
601
+ }
602
+ static fromJsonString(jsonString, options) {
603
+ return new UpdateConnectionResponse().fromJsonString(jsonString, options);
604
+ }
605
+ static equals(a, b) {
606
+ return protobuf_1.proto3.util.equals(UpdateConnectionResponse, a, b);
607
+ }
608
+ }
609
+ exports.UpdateConnectionResponse = UpdateConnectionResponse;
610
+ UpdateConnectionResponse.runtime = protobuf_1.proto3;
611
+ UpdateConnectionResponse.typeName = "scalekit.v1.connections.UpdateConnectionResponse";
612
+ UpdateConnectionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
613
+ { no: 1, name: "connection", kind: "message", T: Connection },
614
+ ]);
615
+ /**
616
+ * @generated from message scalekit.v1.connections.DeleteConnectionRequest
617
+ */
618
+ class DeleteConnectionRequest extends protobuf_1.Message {
619
+ constructor(data) {
620
+ super();
621
+ /**
622
+ * @generated from oneof scalekit.v1.connections.DeleteConnectionRequest.identities
623
+ */
624
+ this.identities = { case: undefined };
625
+ /**
626
+ * @generated from field: string id = 3;
627
+ */
628
+ this.id = "";
629
+ protobuf_1.proto3.util.initPartial(data, this);
630
+ }
631
+ static fromBinary(bytes, options) {
632
+ return new DeleteConnectionRequest().fromBinary(bytes, options);
633
+ }
634
+ static fromJson(jsonValue, options) {
635
+ return new DeleteConnectionRequest().fromJson(jsonValue, options);
636
+ }
637
+ static fromJsonString(jsonString, options) {
638
+ return new DeleteConnectionRequest().fromJsonString(jsonString, options);
639
+ }
640
+ static equals(a, b) {
641
+ return protobuf_1.proto3.util.equals(DeleteConnectionRequest, a, b);
642
+ }
643
+ }
644
+ exports.DeleteConnectionRequest = DeleteConnectionRequest;
645
+ DeleteConnectionRequest.runtime = protobuf_1.proto3;
646
+ DeleteConnectionRequest.typeName = "scalekit.v1.connections.DeleteConnectionRequest";
647
+ DeleteConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
648
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
649
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
650
+ { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
651
+ ]);
652
+ /**
653
+ * @generated from message scalekit.v1.connections.GetConnectionRequest
654
+ */
655
+ class GetConnectionRequest extends protobuf_1.Message {
656
+ constructor(data) {
657
+ super();
658
+ /**
659
+ * @generated from oneof scalekit.v1.connections.GetConnectionRequest.identities
660
+ */
661
+ this.identities = { case: undefined };
662
+ /**
663
+ * @generated from field: string id = 3;
664
+ */
665
+ this.id = "";
666
+ protobuf_1.proto3.util.initPartial(data, this);
667
+ }
668
+ static fromBinary(bytes, options) {
669
+ return new GetConnectionRequest().fromBinary(bytes, options);
670
+ }
671
+ static fromJson(jsonValue, options) {
672
+ return new GetConnectionRequest().fromJson(jsonValue, options);
673
+ }
674
+ static fromJsonString(jsonString, options) {
675
+ return new GetConnectionRequest().fromJsonString(jsonString, options);
676
+ }
677
+ static equals(a, b) {
678
+ return protobuf_1.proto3.util.equals(GetConnectionRequest, a, b);
679
+ }
680
+ }
681
+ exports.GetConnectionRequest = GetConnectionRequest;
682
+ GetConnectionRequest.runtime = protobuf_1.proto3;
683
+ GetConnectionRequest.typeName = "scalekit.v1.connections.GetConnectionRequest";
684
+ GetConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
685
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
686
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
687
+ { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
688
+ ]);
689
+ /**
690
+ * @generated from message scalekit.v1.connections.GetConnectionResponse
691
+ */
692
+ class GetConnectionResponse extends protobuf_1.Message {
693
+ constructor(data) {
694
+ super();
695
+ protobuf_1.proto3.util.initPartial(data, this);
696
+ }
697
+ static fromBinary(bytes, options) {
698
+ return new GetConnectionResponse().fromBinary(bytes, options);
699
+ }
700
+ static fromJson(jsonValue, options) {
701
+ return new GetConnectionResponse().fromJson(jsonValue, options);
702
+ }
703
+ static fromJsonString(jsonString, options) {
704
+ return new GetConnectionResponse().fromJsonString(jsonString, options);
705
+ }
706
+ static equals(a, b) {
707
+ return protobuf_1.proto3.util.equals(GetConnectionResponse, a, b);
708
+ }
709
+ }
710
+ exports.GetConnectionResponse = GetConnectionResponse;
711
+ GetConnectionResponse.runtime = protobuf_1.proto3;
712
+ GetConnectionResponse.typeName = "scalekit.v1.connections.GetConnectionResponse";
713
+ GetConnectionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
714
+ { no: 1, name: "connection", kind: "message", T: Connection },
715
+ ]);
716
+ /**
717
+ * @generated from message scalekit.v1.connections.ListConnectionsRequest
718
+ */
719
+ class ListConnectionsRequest extends protobuf_1.Message {
720
+ constructor(data) {
721
+ super();
722
+ /**
723
+ * @generated from oneof scalekit.v1.connections.ListConnectionsRequest.identities
724
+ */
725
+ this.identities = { case: undefined };
726
+ protobuf_1.proto3.util.initPartial(data, this);
727
+ }
728
+ static fromBinary(bytes, options) {
729
+ return new ListConnectionsRequest().fromBinary(bytes, options);
730
+ }
731
+ static fromJson(jsonValue, options) {
732
+ return new ListConnectionsRequest().fromJson(jsonValue, options);
733
+ }
734
+ static fromJsonString(jsonString, options) {
735
+ return new ListConnectionsRequest().fromJsonString(jsonString, options);
736
+ }
737
+ static equals(a, b) {
738
+ return protobuf_1.proto3.util.equals(ListConnectionsRequest, a, b);
739
+ }
740
+ }
741
+ exports.ListConnectionsRequest = ListConnectionsRequest;
742
+ ListConnectionsRequest.runtime = protobuf_1.proto3;
743
+ ListConnectionsRequest.typeName = "scalekit.v1.connections.ListConnectionsRequest";
744
+ ListConnectionsRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
745
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
746
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
747
+ { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
748
+ { no: 4, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
749
+ ]);
750
+ /**
751
+ * @generated from message scalekit.v1.connections.ListConnectionsResponse
752
+ */
753
+ class ListConnectionsResponse extends protobuf_1.Message {
754
+ constructor(data) {
755
+ super();
756
+ /**
757
+ * @generated from field: repeated scalekit.v1.connections.ListConnection connections = 1;
758
+ */
759
+ this.connections = [];
760
+ protobuf_1.proto3.util.initPartial(data, this);
761
+ }
762
+ static fromBinary(bytes, options) {
763
+ return new ListConnectionsResponse().fromBinary(bytes, options);
764
+ }
765
+ static fromJson(jsonValue, options) {
766
+ return new ListConnectionsResponse().fromJson(jsonValue, options);
767
+ }
768
+ static fromJsonString(jsonString, options) {
769
+ return new ListConnectionsResponse().fromJsonString(jsonString, options);
770
+ }
771
+ static equals(a, b) {
772
+ return protobuf_1.proto3.util.equals(ListConnectionsResponse, a, b);
773
+ }
774
+ }
775
+ exports.ListConnectionsResponse = ListConnectionsResponse;
776
+ ListConnectionsResponse.runtime = protobuf_1.proto3;
777
+ ListConnectionsResponse.typeName = "scalekit.v1.connections.ListConnectionsResponse";
778
+ ListConnectionsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
779
+ { no: 1, name: "connections", kind: "message", T: ListConnection, repeated: true },
780
+ ]);
781
+ /**
782
+ * @generated from message scalekit.v1.connections.ListConnection
783
+ */
784
+ class ListConnection extends protobuf_1.Message {
785
+ constructor(data) {
786
+ super();
787
+ /**
788
+ * @generated from field: string id = 1;
789
+ */
790
+ this.id = "";
791
+ /**
792
+ * @generated from field: scalekit.v1.connections.ConnectionProvider provider = 2;
793
+ */
794
+ this.provider = ConnectionProvider.CONNECTION_PROVIDER_UNSPECIFIED;
795
+ /**
796
+ * @generated from field: scalekit.v1.connections.ConnectionType type = 3;
797
+ */
798
+ this.type = ConnectionType.INVALID;
799
+ /**
800
+ * @generated from field: scalekit.v1.connections.ConnectionStatus status = 4;
801
+ */
802
+ this.status = ConnectionStatus.CONNECTION_STATUS_UNSPECIFIED;
803
+ /**
804
+ * @generated from field: bool enabled = 5;
805
+ */
806
+ this.enabled = false;
807
+ /**
808
+ * @generated from field: string organization_id = 6;
809
+ */
810
+ this.organizationId = "";
811
+ /**
812
+ * @generated from field: string ui_button_title = 7;
813
+ */
814
+ this.uiButtonTitle = "";
815
+ protobuf_1.proto3.util.initPartial(data, this);
816
+ }
817
+ static fromBinary(bytes, options) {
818
+ return new ListConnection().fromBinary(bytes, options);
819
+ }
820
+ static fromJson(jsonValue, options) {
821
+ return new ListConnection().fromJson(jsonValue, options);
822
+ }
823
+ static fromJsonString(jsonString, options) {
824
+ return new ListConnection().fromJsonString(jsonString, options);
825
+ }
826
+ static equals(a, b) {
827
+ return protobuf_1.proto3.util.equals(ListConnection, a, b);
828
+ }
829
+ }
830
+ exports.ListConnection = ListConnection;
831
+ ListConnection.runtime = protobuf_1.proto3;
832
+ ListConnection.typeName = "scalekit.v1.connections.ListConnection";
833
+ ListConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
834
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
835
+ { no: 2, name: "provider", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionProvider) },
836
+ { no: 3, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionType) },
837
+ { no: 4, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionStatus) },
838
+ { no: 5, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
839
+ { no: 6, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
840
+ { no: 7, name: "ui_button_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
841
+ ]);
842
+ /**
843
+ * @generated from message scalekit.v1.connections.EnableConnectionRequest
844
+ */
845
+ class EnableConnectionRequest extends protobuf_1.Message {
846
+ constructor(data) {
847
+ super();
848
+ /**
849
+ * @generated from oneof scalekit.v1.connections.EnableConnectionRequest.identities
850
+ */
851
+ this.identities = { case: undefined };
852
+ /**
853
+ * @generated from field: string id = 3;
854
+ */
855
+ this.id = "";
856
+ protobuf_1.proto3.util.initPartial(data, this);
857
+ }
858
+ static fromBinary(bytes, options) {
859
+ return new EnableConnectionRequest().fromBinary(bytes, options);
860
+ }
861
+ static fromJson(jsonValue, options) {
862
+ return new EnableConnectionRequest().fromJson(jsonValue, options);
863
+ }
864
+ static fromJsonString(jsonString, options) {
865
+ return new EnableConnectionRequest().fromJsonString(jsonString, options);
866
+ }
867
+ static equals(a, b) {
868
+ return protobuf_1.proto3.util.equals(EnableConnectionRequest, a, b);
869
+ }
870
+ }
871
+ exports.EnableConnectionRequest = EnableConnectionRequest;
872
+ EnableConnectionRequest.runtime = protobuf_1.proto3;
873
+ EnableConnectionRequest.typeName = "scalekit.v1.connections.EnableConnectionRequest";
874
+ EnableConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
875
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
876
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
877
+ { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
878
+ ]);
879
+ /**
880
+ * @generated from message scalekit.v1.connections.DisableConnectionRequest
881
+ */
882
+ class DisableConnectionRequest extends protobuf_1.Message {
883
+ constructor(data) {
884
+ super();
885
+ /**
886
+ * @generated from oneof scalekit.v1.connections.DisableConnectionRequest.identities
887
+ */
888
+ this.identities = { case: undefined };
889
+ /**
890
+ * @generated from field: string id = 3;
891
+ */
892
+ this.id = "";
893
+ protobuf_1.proto3.util.initPartial(data, this);
894
+ }
895
+ static fromBinary(bytes, options) {
896
+ return new DisableConnectionRequest().fromBinary(bytes, options);
897
+ }
898
+ static fromJson(jsonValue, options) {
899
+ return new DisableConnectionRequest().fromJson(jsonValue, options);
900
+ }
901
+ static fromJsonString(jsonString, options) {
902
+ return new DisableConnectionRequest().fromJsonString(jsonString, options);
903
+ }
904
+ static equals(a, b) {
905
+ return protobuf_1.proto3.util.equals(DisableConnectionRequest, a, b);
906
+ }
907
+ }
908
+ exports.DisableConnectionRequest = DisableConnectionRequest;
909
+ DisableConnectionRequest.runtime = protobuf_1.proto3;
910
+ DisableConnectionRequest.typeName = "scalekit.v1.connections.DisableConnectionRequest";
911
+ DisableConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
912
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
913
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
914
+ { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
915
+ ]);
916
+ /**
917
+ * @generated from message scalekit.v1.connections.ToggleConnectionResponse
918
+ */
919
+ class ToggleConnectionResponse extends protobuf_1.Message {
920
+ constructor(data) {
921
+ super();
922
+ /**
923
+ * @generated from field: bool enabled = 1;
924
+ */
925
+ this.enabled = false;
926
+ protobuf_1.proto3.util.initPartial(data, this);
927
+ }
928
+ static fromBinary(bytes, options) {
929
+ return new ToggleConnectionResponse().fromBinary(bytes, options);
930
+ }
931
+ static fromJson(jsonValue, options) {
932
+ return new ToggleConnectionResponse().fromJson(jsonValue, options);
933
+ }
934
+ static fromJsonString(jsonString, options) {
935
+ return new ToggleConnectionResponse().fromJsonString(jsonString, options);
936
+ }
937
+ static equals(a, b) {
938
+ return protobuf_1.proto3.util.equals(ToggleConnectionResponse, a, b);
939
+ }
940
+ }
941
+ exports.ToggleConnectionResponse = ToggleConnectionResponse;
942
+ ToggleConnectionResponse.runtime = protobuf_1.proto3;
943
+ ToggleConnectionResponse.typeName = "scalekit.v1.connections.ToggleConnectionResponse";
944
+ ToggleConnectionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
945
+ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
946
+ { no: 2, name: "error_message", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
947
+ ]);
948
+ /**
949
+ * @generated from message scalekit.v1.connections.OIDCConnectionConfig
950
+ */
951
+ class OIDCConnectionConfig extends protobuf_1.Message {
952
+ constructor(data) {
953
+ super();
954
+ /**
955
+ * @generated from field: repeated scalekit.v1.connections.OIDCScope scopes = 10;
956
+ */
957
+ this.scopes = [];
958
+ /**
959
+ * @generated from field: scalekit.v1.connections.TokenAuthType token_auth_type = 11;
960
+ */
961
+ this.tokenAuthType = TokenAuthType.TOKEN_AUTH_TYPE_UNSPECIFIED;
962
+ /**
963
+ * @generated from field: string redirect_uri = 12;
964
+ */
965
+ this.redirectUri = "";
966
+ protobuf_1.proto3.util.initPartial(data, this);
967
+ }
968
+ static fromBinary(bytes, options) {
969
+ return new OIDCConnectionConfig().fromBinary(bytes, options);
970
+ }
971
+ static fromJson(jsonValue, options) {
972
+ return new OIDCConnectionConfig().fromJson(jsonValue, options);
973
+ }
974
+ static fromJsonString(jsonString, options) {
975
+ return new OIDCConnectionConfig().fromJsonString(jsonString, options);
976
+ }
977
+ static equals(a, b) {
978
+ return protobuf_1.proto3.util.equals(OIDCConnectionConfig, a, b);
979
+ }
980
+ }
981
+ exports.OIDCConnectionConfig = OIDCConnectionConfig;
982
+ OIDCConnectionConfig.runtime = protobuf_1.proto3;
983
+ OIDCConnectionConfig.typeName = "scalekit.v1.connections.OIDCConnectionConfig";
984
+ OIDCConnectionConfig.fields = protobuf_1.proto3.util.newFieldList(() => [
985
+ { no: 1, name: "issuer", kind: "message", T: protobuf_1.StringValue },
986
+ { no: 2, name: "discovery_endpoint", kind: "message", T: protobuf_1.StringValue },
987
+ { no: 3, name: "authorize_uri", kind: "message", T: protobuf_1.StringValue },
988
+ { no: 4, name: "token_uri", kind: "message", T: protobuf_1.StringValue },
989
+ { no: 5, name: "user_info_uri", kind: "message", T: protobuf_1.StringValue },
990
+ { no: 6, name: "jwks_uri", kind: "message", T: protobuf_1.StringValue },
991
+ { no: 8, name: "client_id", kind: "message", T: protobuf_1.StringValue },
992
+ { no: 9, name: "client_secret", kind: "message", T: protobuf_1.StringValue },
993
+ { no: 10, name: "scopes", kind: "enum", T: protobuf_1.proto3.getEnumType(OIDCScope), repeated: true },
994
+ { no: 11, name: "token_auth_type", kind: "enum", T: protobuf_1.proto3.getEnumType(TokenAuthType) },
995
+ { no: 12, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
996
+ { no: 13, name: "pkce_enabled", kind: "message", T: protobuf_1.BoolValue },
997
+ ]);
998
+ /**
999
+ * @generated from message scalekit.v1.connections.SAMLConnectionConfigRequest
1000
+ */
1001
+ class SAMLConnectionConfigRequest extends protobuf_1.Message {
1002
+ constructor(data) {
1003
+ super();
1004
+ /**
1005
+ * @generated from field: scalekit.v1.connections.NameIdFormat idp_name_id_format = 7;
1006
+ */
1007
+ this.idpNameIdFormat = NameIdFormat.NAME_ID_FORMAT_NIL;
1008
+ /**
1009
+ * @generated from field: scalekit.v1.connections.RequestBinding sso_request_binding = 8;
1010
+ */
1011
+ this.ssoRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
1012
+ /**
1013
+ * @generated from field: scalekit.v1.connections.RequestBinding slo_request_binding = 9;
1014
+ */
1015
+ this.sloRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
1016
+ /**
1017
+ * @generated from field: scalekit.v1.connections.SAMLSigningOptions saml_signing_option = 10;
1018
+ */
1019
+ this.samlSigningOption = SAMLSigningOptions.SAML_SIGNING_OPTIONS_UNSPECIFIED;
1020
+ protobuf_1.proto3.util.initPartial(data, this);
1021
+ }
1022
+ static fromBinary(bytes, options) {
1023
+ return new SAMLConnectionConfigRequest().fromBinary(bytes, options);
1024
+ }
1025
+ static fromJson(jsonValue, options) {
1026
+ return new SAMLConnectionConfigRequest().fromJson(jsonValue, options);
1027
+ }
1028
+ static fromJsonString(jsonString, options) {
1029
+ return new SAMLConnectionConfigRequest().fromJsonString(jsonString, options);
1030
+ }
1031
+ static equals(a, b) {
1032
+ return protobuf_1.proto3.util.equals(SAMLConnectionConfigRequest, a, b);
1033
+ }
1034
+ }
1035
+ exports.SAMLConnectionConfigRequest = SAMLConnectionConfigRequest;
1036
+ SAMLConnectionConfigRequest.runtime = protobuf_1.proto3;
1037
+ SAMLConnectionConfigRequest.typeName = "scalekit.v1.connections.SAMLConnectionConfigRequest";
1038
+ SAMLConnectionConfigRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1039
+ { no: 1, name: "idp_metadata_url", kind: "message", T: protobuf_1.StringValue },
1040
+ { no: 2, name: "idp_entity_id", kind: "message", T: protobuf_1.StringValue },
1041
+ { no: 3, name: "idp_sso_url", kind: "message", T: protobuf_1.StringValue },
1042
+ { no: 4, name: "idp_certificate", kind: "message", T: protobuf_1.StringValue },
1043
+ { no: 5, name: "idp_slo_url", kind: "message", T: protobuf_1.StringValue },
1044
+ { no: 6, name: "ui_button_title", kind: "message", T: protobuf_1.StringValue },
1045
+ { no: 7, name: "idp_name_id_format", kind: "enum", T: protobuf_1.proto3.getEnumType(NameIdFormat) },
1046
+ { no: 8, name: "sso_request_binding", kind: "enum", T: protobuf_1.proto3.getEnumType(RequestBinding) },
1047
+ { no: 9, name: "slo_request_binding", kind: "enum", T: protobuf_1.proto3.getEnumType(RequestBinding) },
1048
+ { no: 10, name: "saml_signing_option", kind: "enum", T: protobuf_1.proto3.getEnumType(SAMLSigningOptions) },
1049
+ { no: 11, name: "allow_idp_initiated_login", kind: "message", T: protobuf_1.BoolValue },
1050
+ { no: 12, name: "force_authn", kind: "message", T: protobuf_1.BoolValue },
1051
+ { no: 13, name: "default_redirect_uri", kind: "message", T: protobuf_1.StringValue },
1052
+ { no: 14, name: "assertion_encrypted", kind: "message", T: protobuf_1.BoolValue },
1053
+ { no: 15, name: "want_request_signed", kind: "message", T: protobuf_1.BoolValue },
1054
+ ]);
1055
+ /**
1056
+ * @generated from message scalekit.v1.connections.SAMLConnectionConfigResponse
1057
+ */
1058
+ class SAMLConnectionConfigResponse extends protobuf_1.Message {
1059
+ constructor(data) {
1060
+ super();
1061
+ /**
1062
+ * @generated from field: string sp_entity_id = 1;
1063
+ */
1064
+ this.spEntityId = "";
1065
+ /**
1066
+ * @generated from field: string sp_assertion_url = 2;
1067
+ */
1068
+ this.spAssertionUrl = "";
1069
+ /**
1070
+ * @generated from field: string sp_metadata_url = 3;
1071
+ */
1072
+ this.spMetadataUrl = "";
1073
+ /**
1074
+ * @generated from field: repeated scalekit.v1.connections.IDPCertificate idp_certificates = 7;
1075
+ */
1076
+ this.idpCertificates = [];
1077
+ /**
1078
+ * @generated from field: scalekit.v1.connections.NameIdFormat idp_name_id_format = 10;
1079
+ */
1080
+ this.idpNameIdFormat = NameIdFormat.NAME_ID_FORMAT_NIL;
1081
+ /**
1082
+ * @generated from field: scalekit.v1.connections.RequestBinding idp_sso_request_binding = 11;
1083
+ */
1084
+ this.idpSsoRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
1085
+ /**
1086
+ * @generated from field: scalekit.v1.connections.RequestBinding idp_slo_request_binding = 12;
1087
+ */
1088
+ this.idpSloRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
1089
+ /**
1090
+ * @generated from field: scalekit.v1.connections.SAMLSigningOptions saml_signing_option = 13;
1091
+ */
1092
+ this.samlSigningOption = SAMLSigningOptions.SAML_SIGNING_OPTIONS_UNSPECIFIED;
1093
+ protobuf_1.proto3.util.initPartial(data, this);
1094
+ }
1095
+ static fromBinary(bytes, options) {
1096
+ return new SAMLConnectionConfigResponse().fromBinary(bytes, options);
1097
+ }
1098
+ static fromJson(jsonValue, options) {
1099
+ return new SAMLConnectionConfigResponse().fromJson(jsonValue, options);
1100
+ }
1101
+ static fromJsonString(jsonString, options) {
1102
+ return new SAMLConnectionConfigResponse().fromJsonString(jsonString, options);
1103
+ }
1104
+ static equals(a, b) {
1105
+ return protobuf_1.proto3.util.equals(SAMLConnectionConfigResponse, a, b);
1106
+ }
1107
+ }
1108
+ exports.SAMLConnectionConfigResponse = SAMLConnectionConfigResponse;
1109
+ SAMLConnectionConfigResponse.runtime = protobuf_1.proto3;
1110
+ SAMLConnectionConfigResponse.typeName = "scalekit.v1.connections.SAMLConnectionConfigResponse";
1111
+ SAMLConnectionConfigResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
1112
+ { no: 1, name: "sp_entity_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1113
+ { no: 2, name: "sp_assertion_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1114
+ { no: 3, name: "sp_metadata_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1115
+ { no: 4, name: "idp_metadata_url", kind: "message", T: protobuf_1.StringValue },
1116
+ { no: 5, name: "idp_entity_id", kind: "message", T: protobuf_1.StringValue },
1117
+ { no: 6, name: "idp_sso_url", kind: "message", T: protobuf_1.StringValue },
1118
+ { no: 7, name: "idp_certificates", kind: "message", T: IDPCertificate, repeated: true },
1119
+ { no: 8, name: "idp_slo_url", kind: "message", T: protobuf_1.StringValue },
1120
+ { no: 9, name: "ui_button_title", kind: "message", T: protobuf_1.StringValue },
1121
+ { no: 10, name: "idp_name_id_format", kind: "enum", T: protobuf_1.proto3.getEnumType(NameIdFormat) },
1122
+ { no: 11, name: "idp_sso_request_binding", kind: "enum", T: protobuf_1.proto3.getEnumType(RequestBinding) },
1123
+ { no: 12, name: "idp_slo_request_binding", kind: "enum", T: protobuf_1.proto3.getEnumType(RequestBinding) },
1124
+ { no: 13, name: "saml_signing_option", kind: "enum", T: protobuf_1.proto3.getEnumType(SAMLSigningOptions) },
1125
+ { no: 14, name: "allow_idp_initiated_login", kind: "message", T: protobuf_1.BoolValue },
1126
+ { no: 15, name: "force_authn", kind: "message", T: protobuf_1.BoolValue },
1127
+ { no: 16, name: "default_redirect_uri", kind: "message", T: protobuf_1.StringValue },
1128
+ { no: 17, name: "assertion_encrypted", kind: "message", T: protobuf_1.BoolValue },
1129
+ { no: 18, name: "want_request_signed", kind: "message", T: protobuf_1.BoolValue },
1130
+ ]);
1131
+ /**
1132
+ * @generated from message scalekit.v1.connections.IDPCertificate
1133
+ */
1134
+ class IDPCertificate extends protobuf_1.Message {
1135
+ constructor(data) {
1136
+ super();
1137
+ /**
1138
+ * @generated from field: string certificate = 1;
1139
+ */
1140
+ this.certificate = "";
1141
+ /**
1142
+ * @generated from field: string id = 4;
1143
+ */
1144
+ this.id = "";
1145
+ /**
1146
+ * @generated from field: string issuer = 5;
1147
+ */
1148
+ this.issuer = "";
1149
+ protobuf_1.proto3.util.initPartial(data, this);
1150
+ }
1151
+ static fromBinary(bytes, options) {
1152
+ return new IDPCertificate().fromBinary(bytes, options);
1153
+ }
1154
+ static fromJson(jsonValue, options) {
1155
+ return new IDPCertificate().fromJson(jsonValue, options);
1156
+ }
1157
+ static fromJsonString(jsonString, options) {
1158
+ return new IDPCertificate().fromJsonString(jsonString, options);
1159
+ }
1160
+ static equals(a, b) {
1161
+ return protobuf_1.proto3.util.equals(IDPCertificate, a, b);
1162
+ }
1163
+ }
1164
+ exports.IDPCertificate = IDPCertificate;
1165
+ IDPCertificate.runtime = protobuf_1.proto3;
1166
+ IDPCertificate.typeName = "scalekit.v1.connections.IDPCertificate";
1167
+ IDPCertificate.fields = protobuf_1.proto3.util.newFieldList(() => [
1168
+ { no: 1, name: "certificate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1169
+ { no: 2, name: "create_time", kind: "message", T: protobuf_1.Timestamp },
1170
+ { no: 3, name: "expiry_time", kind: "message", T: protobuf_1.Timestamp },
1171
+ { no: 4, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1172
+ { no: 5, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1173
+ ]);
1174
+ /**
1175
+ * @generated from message scalekit.v1.connections.GetOIDCMetadataRequest
1176
+ */
1177
+ class GetOIDCMetadataRequest extends protobuf_1.Message {
1178
+ constructor(data) {
1179
+ super();
1180
+ protobuf_1.proto3.util.initPartial(data, this);
1181
+ }
1182
+ static fromBinary(bytes, options) {
1183
+ return new GetOIDCMetadataRequest().fromBinary(bytes, options);
1184
+ }
1185
+ static fromJson(jsonValue, options) {
1186
+ return new GetOIDCMetadataRequest().fromJson(jsonValue, options);
1187
+ }
1188
+ static fromJsonString(jsonString, options) {
1189
+ return new GetOIDCMetadataRequest().fromJsonString(jsonString, options);
1190
+ }
1191
+ static equals(a, b) {
1192
+ return protobuf_1.proto3.util.equals(GetOIDCMetadataRequest, a, b);
1193
+ }
1194
+ }
1195
+ exports.GetOIDCMetadataRequest = GetOIDCMetadataRequest;
1196
+ GetOIDCMetadataRequest.runtime = protobuf_1.proto3;
1197
+ GetOIDCMetadataRequest.typeName = "scalekit.v1.connections.GetOIDCMetadataRequest";
1198
+ GetOIDCMetadataRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1199
+ { no: 1, name: "metadata", kind: "message", T: OIDCMetadataRequest },
1200
+ ]);
1201
+ /**
1202
+ * @generated from message scalekit.v1.connections.OIDCMetadataRequest
1203
+ */
1204
+ class OIDCMetadataRequest extends protobuf_1.Message {
1205
+ constructor(data) {
1206
+ super();
1207
+ /**
1208
+ * @generated from field: string issuer = 1;
1209
+ */
1210
+ this.issuer = "";
1211
+ protobuf_1.proto3.util.initPartial(data, this);
1212
+ }
1213
+ static fromBinary(bytes, options) {
1214
+ return new OIDCMetadataRequest().fromBinary(bytes, options);
1215
+ }
1216
+ static fromJson(jsonValue, options) {
1217
+ return new OIDCMetadataRequest().fromJson(jsonValue, options);
1218
+ }
1219
+ static fromJsonString(jsonString, options) {
1220
+ return new OIDCMetadataRequest().fromJsonString(jsonString, options);
1221
+ }
1222
+ static equals(a, b) {
1223
+ return protobuf_1.proto3.util.equals(OIDCMetadataRequest, a, b);
1224
+ }
1225
+ }
1226
+ exports.OIDCMetadataRequest = OIDCMetadataRequest;
1227
+ OIDCMetadataRequest.runtime = protobuf_1.proto3;
1228
+ OIDCMetadataRequest.typeName = "scalekit.v1.connections.OIDCMetadataRequest";
1229
+ OIDCMetadataRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1230
+ { no: 1, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1231
+ ]);
1232
+ /**
1233
+ * @generated from message scalekit.v1.connections.GetOIDCMetadataResponse
1234
+ */
1235
+ class GetOIDCMetadataResponse extends protobuf_1.Message {
1236
+ constructor(data) {
1237
+ super();
1238
+ /**
1239
+ * @generated from field: string issuer = 1;
1240
+ */
1241
+ this.issuer = "";
1242
+ /**
1243
+ * @generated from field: string authorization_endpoint = 2;
1244
+ */
1245
+ this.authorizationEndpoint = "";
1246
+ /**
1247
+ * @generated from field: string token_endpoint = 3;
1248
+ */
1249
+ this.tokenEndpoint = "";
1250
+ /**
1251
+ * @generated from field: string userinfo_endpoint = 4;
1252
+ */
1253
+ this.userinfoEndpoint = "";
1254
+ /**
1255
+ * @generated from field: string jwks_uri = 5;
1256
+ */
1257
+ this.jwksUri = "";
1258
+ protobuf_1.proto3.util.initPartial(data, this);
1259
+ }
1260
+ static fromBinary(bytes, options) {
1261
+ return new GetOIDCMetadataResponse().fromBinary(bytes, options);
1262
+ }
1263
+ static fromJson(jsonValue, options) {
1264
+ return new GetOIDCMetadataResponse().fromJson(jsonValue, options);
1265
+ }
1266
+ static fromJsonString(jsonString, options) {
1267
+ return new GetOIDCMetadataResponse().fromJsonString(jsonString, options);
1268
+ }
1269
+ static equals(a, b) {
1270
+ return protobuf_1.proto3.util.equals(GetOIDCMetadataResponse, a, b);
1271
+ }
1272
+ }
1273
+ exports.GetOIDCMetadataResponse = GetOIDCMetadataResponse;
1274
+ GetOIDCMetadataResponse.runtime = protobuf_1.proto3;
1275
+ GetOIDCMetadataResponse.typeName = "scalekit.v1.connections.GetOIDCMetadataResponse";
1276
+ GetOIDCMetadataResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
1277
+ { no: 1, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1278
+ { no: 2, name: "authorization_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1279
+ { no: 3, name: "token_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1280
+ { no: 4, name: "userinfo_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1281
+ { no: 5, name: "jwks_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1282
+ ]);
1283
+ /**
1284
+ * @generated from message scalekit.v1.connections.GetSAMLMetadataRequest
1285
+ */
1286
+ class GetSAMLMetadataRequest extends protobuf_1.Message {
1287
+ constructor(data) {
1288
+ super();
1289
+ protobuf_1.proto3.util.initPartial(data, this);
1290
+ }
1291
+ static fromBinary(bytes, options) {
1292
+ return new GetSAMLMetadataRequest().fromBinary(bytes, options);
1293
+ }
1294
+ static fromJson(jsonValue, options) {
1295
+ return new GetSAMLMetadataRequest().fromJson(jsonValue, options);
1296
+ }
1297
+ static fromJsonString(jsonString, options) {
1298
+ return new GetSAMLMetadataRequest().fromJsonString(jsonString, options);
1299
+ }
1300
+ static equals(a, b) {
1301
+ return protobuf_1.proto3.util.equals(GetSAMLMetadataRequest, a, b);
1302
+ }
1303
+ }
1304
+ exports.GetSAMLMetadataRequest = GetSAMLMetadataRequest;
1305
+ GetSAMLMetadataRequest.runtime = protobuf_1.proto3;
1306
+ GetSAMLMetadataRequest.typeName = "scalekit.v1.connections.GetSAMLMetadataRequest";
1307
+ GetSAMLMetadataRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1308
+ { no: 1, name: "metadata", kind: "message", T: SAMLMetadataRequest },
1309
+ ]);
1310
+ /**
1311
+ * @generated from message scalekit.v1.connections.SAMLMetadataRequest
1312
+ */
1313
+ class SAMLMetadataRequest extends protobuf_1.Message {
1314
+ constructor(data) {
1315
+ super();
1316
+ /**
1317
+ * @generated from field: string metadata_url = 1;
1318
+ */
1319
+ this.metadataUrl = "";
1320
+ protobuf_1.proto3.util.initPartial(data, this);
1321
+ }
1322
+ static fromBinary(bytes, options) {
1323
+ return new SAMLMetadataRequest().fromBinary(bytes, options);
1324
+ }
1325
+ static fromJson(jsonValue, options) {
1326
+ return new SAMLMetadataRequest().fromJson(jsonValue, options);
1327
+ }
1328
+ static fromJsonString(jsonString, options) {
1329
+ return new SAMLMetadataRequest().fromJsonString(jsonString, options);
1330
+ }
1331
+ static equals(a, b) {
1332
+ return protobuf_1.proto3.util.equals(SAMLMetadataRequest, a, b);
1333
+ }
1334
+ }
1335
+ exports.SAMLMetadataRequest = SAMLMetadataRequest;
1336
+ SAMLMetadataRequest.runtime = protobuf_1.proto3;
1337
+ SAMLMetadataRequest.typeName = "scalekit.v1.connections.SAMLMetadataRequest";
1338
+ SAMLMetadataRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1339
+ { no: 1, name: "metadata_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1340
+ ]);
1341
+ /**
1342
+ * @generated from message scalekit.v1.connections.GetSAMLMetadataResponse
1343
+ */
1344
+ class GetSAMLMetadataResponse extends protobuf_1.Message {
1345
+ constructor(data) {
1346
+ super();
1347
+ /**
1348
+ * @generated from field: string idp_entity_id = 1;
1349
+ */
1350
+ this.idpEntityId = "";
1351
+ /**
1352
+ * @generated from field: string idp_sso_url = 2;
1353
+ */
1354
+ this.idpSsoUrl = "";
1355
+ /**
1356
+ * @generated from field: string idp_slo_url = 3;
1357
+ */
1358
+ this.idpSloUrl = "";
1359
+ /**
1360
+ * @generated from field: repeated string idp_certificates = 4;
1361
+ */
1362
+ this.idpCertificates = [];
1363
+ /**
1364
+ * @generated from field: string idp_name_id_format = 5;
1365
+ */
1366
+ this.idpNameIdFormat = "";
1367
+ /**
1368
+ * @generated from field: string request_binding = 6;
1369
+ */
1370
+ this.requestBinding = "";
1371
+ /**
1372
+ * @generated from field: bool want_assertions_signed = 7;
1373
+ */
1374
+ this.wantAssertionsSigned = false;
1375
+ protobuf_1.proto3.util.initPartial(data, this);
1376
+ }
1377
+ static fromBinary(bytes, options) {
1378
+ return new GetSAMLMetadataResponse().fromBinary(bytes, options);
1379
+ }
1380
+ static fromJson(jsonValue, options) {
1381
+ return new GetSAMLMetadataResponse().fromJson(jsonValue, options);
1382
+ }
1383
+ static fromJsonString(jsonString, options) {
1384
+ return new GetSAMLMetadataResponse().fromJsonString(jsonString, options);
1385
+ }
1386
+ static equals(a, b) {
1387
+ return protobuf_1.proto3.util.equals(GetSAMLMetadataResponse, a, b);
1388
+ }
1389
+ }
1390
+ exports.GetSAMLMetadataResponse = GetSAMLMetadataResponse;
1391
+ GetSAMLMetadataResponse.runtime = protobuf_1.proto3;
1392
+ GetSAMLMetadataResponse.typeName = "scalekit.v1.connections.GetSAMLMetadataResponse";
1393
+ GetSAMLMetadataResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
1394
+ { no: 1, name: "idp_entity_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1395
+ { no: 2, name: "idp_sso_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1396
+ { no: 3, name: "idp_slo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1397
+ { no: 4, name: "idp_certificates", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1398
+ { no: 5, name: "idp_name_id_format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1399
+ { no: 6, name: "request_binding", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1400
+ { no: 7, name: "want_assertions_signed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1401
+ ]);
1402
+ /**
1403
+ * @generated from message scalekit.v1.connections.GetSAMLCertificateDetailsRequest
1404
+ */
1405
+ class GetSAMLCertificateDetailsRequest extends protobuf_1.Message {
1406
+ constructor(data) {
1407
+ super();
1408
+ protobuf_1.proto3.util.initPartial(data, this);
1409
+ }
1410
+ static fromBinary(bytes, options) {
1411
+ return new GetSAMLCertificateDetailsRequest().fromBinary(bytes, options);
1412
+ }
1413
+ static fromJson(jsonValue, options) {
1414
+ return new GetSAMLCertificateDetailsRequest().fromJson(jsonValue, options);
1415
+ }
1416
+ static fromJsonString(jsonString, options) {
1417
+ return new GetSAMLCertificateDetailsRequest().fromJsonString(jsonString, options);
1418
+ }
1419
+ static equals(a, b) {
1420
+ return protobuf_1.proto3.util.equals(GetSAMLCertificateDetailsRequest, a, b);
1421
+ }
1422
+ }
1423
+ exports.GetSAMLCertificateDetailsRequest = GetSAMLCertificateDetailsRequest;
1424
+ GetSAMLCertificateDetailsRequest.runtime = protobuf_1.proto3;
1425
+ GetSAMLCertificateDetailsRequest.typeName = "scalekit.v1.connections.GetSAMLCertificateDetailsRequest";
1426
+ GetSAMLCertificateDetailsRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1427
+ { no: 1, name: "certificate", kind: "message", T: SAMLCertificateRequest },
1428
+ ]);
1429
+ /**
1430
+ * @generated from message scalekit.v1.connections.SAMLCertificateRequest
1431
+ */
1432
+ class SAMLCertificateRequest extends protobuf_1.Message {
1433
+ constructor(data) {
1434
+ super();
1435
+ /**
1436
+ * @generated from field: string text = 1;
1437
+ */
1438
+ this.text = "";
1439
+ protobuf_1.proto3.util.initPartial(data, this);
1440
+ }
1441
+ static fromBinary(bytes, options) {
1442
+ return new SAMLCertificateRequest().fromBinary(bytes, options);
1443
+ }
1444
+ static fromJson(jsonValue, options) {
1445
+ return new SAMLCertificateRequest().fromJson(jsonValue, options);
1446
+ }
1447
+ static fromJsonString(jsonString, options) {
1448
+ return new SAMLCertificateRequest().fromJsonString(jsonString, options);
1449
+ }
1450
+ static equals(a, b) {
1451
+ return protobuf_1.proto3.util.equals(SAMLCertificateRequest, a, b);
1452
+ }
1453
+ }
1454
+ exports.SAMLCertificateRequest = SAMLCertificateRequest;
1455
+ SAMLCertificateRequest.runtime = protobuf_1.proto3;
1456
+ SAMLCertificateRequest.typeName = "scalekit.v1.connections.SAMLCertificateRequest";
1457
+ SAMLCertificateRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1458
+ { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1459
+ ]);
1460
+ /**
1461
+ * @generated from message scalekit.v1.connections.GetSAMLCertificateDetailsResponse
1462
+ */
1463
+ class GetSAMLCertificateDetailsResponse extends protobuf_1.Message {
1464
+ constructor(data) {
1465
+ super();
1466
+ /**
1467
+ * @generated from field: string text = 1;
1468
+ */
1469
+ this.text = "";
1470
+ /**
1471
+ * @generated from field: int64 not_after = 2;
1472
+ */
1473
+ this.notAfter = protobuf_1.protoInt64.zero;
1474
+ /**
1475
+ * @generated from field: int64 not_before = 3;
1476
+ */
1477
+ this.notBefore = protobuf_1.protoInt64.zero;
1478
+ /**
1479
+ * @generated from field: string subject = 4;
1480
+ */
1481
+ this.subject = "";
1482
+ /**
1483
+ * @generated from field: string issuer = 5;
1484
+ */
1485
+ this.issuer = "";
1486
+ protobuf_1.proto3.util.initPartial(data, this);
1487
+ }
1488
+ static fromBinary(bytes, options) {
1489
+ return new GetSAMLCertificateDetailsResponse().fromBinary(bytes, options);
1490
+ }
1491
+ static fromJson(jsonValue, options) {
1492
+ return new GetSAMLCertificateDetailsResponse().fromJson(jsonValue, options);
1493
+ }
1494
+ static fromJsonString(jsonString, options) {
1495
+ return new GetSAMLCertificateDetailsResponse().fromJsonString(jsonString, options);
1496
+ }
1497
+ static equals(a, b) {
1498
+ return protobuf_1.proto3.util.equals(GetSAMLCertificateDetailsResponse, a, b);
1499
+ }
1500
+ }
1501
+ exports.GetSAMLCertificateDetailsResponse = GetSAMLCertificateDetailsResponse;
1502
+ GetSAMLCertificateDetailsResponse.runtime = protobuf_1.proto3;
1503
+ GetSAMLCertificateDetailsResponse.typeName = "scalekit.v1.connections.GetSAMLCertificateDetailsResponse";
1504
+ GetSAMLCertificateDetailsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
1505
+ { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1506
+ { no: 2, name: "not_after", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1507
+ { no: 3, name: "not_before", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1508
+ { no: 4, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1509
+ { no: 5, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1510
+ ]);
1511
+ /**
1512
+ * @generated from message scalekit.v1.connections.PasswordConnectionConfig
1513
+ */
1514
+ class PasswordConnectionConfig extends protobuf_1.Message {
1515
+ constructor(data) {
1516
+ super();
1517
+ protobuf_1.proto3.util.initPartial(data, this);
1518
+ }
1519
+ static fromBinary(bytes, options) {
1520
+ return new PasswordConnectionConfig().fromBinary(bytes, options);
1521
+ }
1522
+ static fromJson(jsonValue, options) {
1523
+ return new PasswordConnectionConfig().fromJson(jsonValue, options);
1524
+ }
1525
+ static fromJsonString(jsonString, options) {
1526
+ return new PasswordConnectionConfig().fromJsonString(jsonString, options);
1527
+ }
1528
+ static equals(a, b) {
1529
+ return protobuf_1.proto3.util.equals(PasswordConnectionConfig, a, b);
1530
+ }
1531
+ }
1532
+ exports.PasswordConnectionConfig = PasswordConnectionConfig;
1533
+ PasswordConnectionConfig.runtime = protobuf_1.proto3;
1534
+ PasswordConnectionConfig.typeName = "scalekit.v1.connections.PasswordConnectionConfig";
1535
+ PasswordConnectionConfig.fields = protobuf_1.proto3.util.newFieldList(() => []);
1536
+ //# sourceMappingURL=connections_pb.js.map