@scalekit-sdk/node 1.0.4 → 1.0.6

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 (48) hide show
  1. package/README.md +32 -6
  2. package/lib/connection.js +5 -20
  3. package/lib/connection.js.map +1 -1
  4. package/lib/core.js +1 -1
  5. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +1 -1
  6. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  7. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +64 -1
  8. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +63 -0
  9. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
  10. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +278 -149
  11. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +362 -70
  12. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  13. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +10 -1
  14. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +9 -0
  15. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +1 -1
  16. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +34 -0
  17. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +64 -2
  18. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
  19. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +1 -1
  20. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
  21. package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +6 -0
  22. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +8 -1
  23. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
  24. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +19 -1
  25. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +18 -0
  26. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -1
  27. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +71 -0
  28. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +120 -2
  29. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
  30. package/lib/scalekit.d.ts +1 -0
  31. package/lib/scalekit.js +2 -1
  32. package/lib/scalekit.js.map +1 -1
  33. package/lib/types/scalekit.d.ts +1 -0
  34. package/package.json +10 -11
  35. package/src/connection.ts +5 -20
  36. package/src/core.ts +1 -1
  37. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +1 -1
  38. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +64 -1
  39. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +508 -156
  40. package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +10 -1
  41. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +75 -1
  42. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +1 -1
  43. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +9 -1
  44. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +19 -1
  45. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +142 -1
  46. package/src/scalekit.ts +34 -7
  47. package/src/types/auth.ts +7 -0
  48. package/src/types/scalekit.ts +2 -1
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- // @generated by protoc-gen-es v1.9.0 with parameter "target=ts"
2
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
3
3
  // @generated from file scalekit/v1/connections/connections.proto (package scalekit.v1.connections, syntax proto3)
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
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.ToggleConnectionRequest = 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;
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.OAuthConnectionConfig = exports.OIDCConnectionConfig = exports.ToggleConnectionResponse = exports.ToggleConnectionRequest = exports.ToggleEnvironmentConnectionRequest = exports.ListConnection = exports.ListConnectionsResponse = exports.ListConnectionsRequest = exports.GetConnectionResponse = exports.GetConnectionRequest = exports.GetEnvironmentConnectionRequest = exports.DeleteConnectionRequest = exports.DeleteEnvironmentConnectionRequest = exports.UpdateConnectionResponse = exports.UpdateConnection = exports.UpdateConnectionRequest = exports.UpdateEnvironmentConnectionRequest = exports.CreateConnectionResponse = exports.Connection = exports.CreateConnection = exports.CreateConnectionRequest = exports.CreateEnvironmentConnectionRequest = exports.Provider = exports.GetProvidersResponse = exports.GetProvidersRequest = exports.ConnectionProvider = exports.ConnectionStatus = exports.ConnectionType = exports.OIDCScope = exports.TokenAuthType = exports.RequestBinding = exports.SAMLSigningOptions = exports.NameIdFormat = exports.ConfigurationType = void 0;
8
8
  const protobuf_1 = require("@bufbuild/protobuf");
9
9
  /**
10
10
  * @generated from enum scalekit.v1.connections.ConfigurationType
@@ -208,6 +208,10 @@ var ConnectionType;
208
208
  * @generated from enum value: PASSWORD = 3;
209
209
  */
210
210
  ConnectionType[ConnectionType["PASSWORD"] = 3] = "PASSWORD";
211
+ /**
212
+ * @generated from enum value: OAUTH = 4;
213
+ */
214
+ ConnectionType[ConnectionType["OAUTH"] = 4] = "OAUTH";
211
215
  })(ConnectionType || (exports.ConnectionType = ConnectionType = {}));
212
216
  // Retrieve enum metadata with: proto3.getEnumType(ConnectionType)
213
217
  protobuf_1.proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType", [
@@ -215,6 +219,7 @@ protobuf_1.proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.Conn
215
219
  { no: 1, name: "OIDC" },
216
220
  { no: 2, name: "SAML" },
217
221
  { no: 3, name: "PASSWORD" },
222
+ { no: 4, name: "OAUTH" },
218
223
  ]);
219
224
  /**
220
225
  * @generated from enum scalekit.v1.connections.ConnectionStatus
@@ -286,6 +291,22 @@ var ConnectionProvider;
286
291
  * @generated from enum value: CUSTOM = 8;
287
292
  */
288
293
  ConnectionProvider[ConnectionProvider["CUSTOM"] = 8] = "CUSTOM";
294
+ /**
295
+ * @generated from enum value: GITHUB = 9;
296
+ */
297
+ ConnectionProvider[ConnectionProvider["GITHUB"] = 9] = "GITHUB";
298
+ /**
299
+ * @generated from enum value: GITLAB = 10;
300
+ */
301
+ ConnectionProvider[ConnectionProvider["GITLAB"] = 10] = "GITLAB";
302
+ /**
303
+ * @generated from enum value: LINKEDIN = 11;
304
+ */
305
+ ConnectionProvider[ConnectionProvider["LINKEDIN"] = 11] = "LINKEDIN";
306
+ /**
307
+ * @generated from enum value: SALESFORCE = 12;
308
+ */
309
+ ConnectionProvider[ConnectionProvider["SALESFORCE"] = 12] = "SALESFORCE";
289
310
  })(ConnectionProvider || (exports.ConnectionProvider = ConnectionProvider = {}));
290
311
  // Retrieve enum metadata with: proto3.getEnumType(ConnectionProvider)
291
312
  protobuf_1.proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.ConnectionProvider", [
@@ -298,6 +319,130 @@ protobuf_1.proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.
298
319
  { no: 6, name: "PING_IDENTITY" },
299
320
  { no: 7, name: "JUMPCLOUD" },
300
321
  { no: 8, name: "CUSTOM" },
322
+ { no: 9, name: "GITHUB" },
323
+ { no: 10, name: "GITLAB" },
324
+ { no: 11, name: "LINKEDIN" },
325
+ { no: 12, name: "SALESFORCE" },
326
+ ]);
327
+ /**
328
+ * @generated from message scalekit.v1.connections.GetProvidersRequest
329
+ */
330
+ class GetProvidersRequest extends protobuf_1.Message {
331
+ constructor(data) {
332
+ super();
333
+ protobuf_1.proto3.util.initPartial(data, this);
334
+ }
335
+ static fromBinary(bytes, options) {
336
+ return new GetProvidersRequest().fromBinary(bytes, options);
337
+ }
338
+ static fromJson(jsonValue, options) {
339
+ return new GetProvidersRequest().fromJson(jsonValue, options);
340
+ }
341
+ static fromJsonString(jsonString, options) {
342
+ return new GetProvidersRequest().fromJsonString(jsonString, options);
343
+ }
344
+ static equals(a, b) {
345
+ return protobuf_1.proto3.util.equals(GetProvidersRequest, a, b);
346
+ }
347
+ }
348
+ exports.GetProvidersRequest = GetProvidersRequest;
349
+ GetProvidersRequest.runtime = protobuf_1.proto3;
350
+ GetProvidersRequest.typeName = "scalekit.v1.connections.GetProvidersRequest";
351
+ GetProvidersRequest.fields = protobuf_1.proto3.util.newFieldList(() => []);
352
+ /**
353
+ * @generated from message scalekit.v1.connections.GetProvidersResponse
354
+ */
355
+ class GetProvidersResponse extends protobuf_1.Message {
356
+ constructor(data) {
357
+ super();
358
+ /**
359
+ * @generated from field: repeated scalekit.v1.connections.Provider providers = 1;
360
+ */
361
+ this.providers = [];
362
+ protobuf_1.proto3.util.initPartial(data, this);
363
+ }
364
+ static fromBinary(bytes, options) {
365
+ return new GetProvidersResponse().fromBinary(bytes, options);
366
+ }
367
+ static fromJson(jsonValue, options) {
368
+ return new GetProvidersResponse().fromJson(jsonValue, options);
369
+ }
370
+ static fromJsonString(jsonString, options) {
371
+ return new GetProvidersResponse().fromJsonString(jsonString, options);
372
+ }
373
+ static equals(a, b) {
374
+ return protobuf_1.proto3.util.equals(GetProvidersResponse, a, b);
375
+ }
376
+ }
377
+ exports.GetProvidersResponse = GetProvidersResponse;
378
+ GetProvidersResponse.runtime = protobuf_1.proto3;
379
+ GetProvidersResponse.typeName = "scalekit.v1.connections.GetProvidersResponse";
380
+ GetProvidersResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
381
+ { no: 1, name: "providers", kind: "message", T: Provider, repeated: true },
382
+ ]);
383
+ /**
384
+ * @generated from message scalekit.v1.connections.Provider
385
+ */
386
+ class Provider extends protobuf_1.Message {
387
+ constructor(data) {
388
+ super();
389
+ /**
390
+ * @generated from field: string key_id = 1;
391
+ */
392
+ this.keyId = "";
393
+ /**
394
+ * @generated from field: string display_name = 2;
395
+ */
396
+ this.displayName = "";
397
+ protobuf_1.proto3.util.initPartial(data, this);
398
+ }
399
+ static fromBinary(bytes, options) {
400
+ return new Provider().fromBinary(bytes, options);
401
+ }
402
+ static fromJson(jsonValue, options) {
403
+ return new Provider().fromJson(jsonValue, options);
404
+ }
405
+ static fromJsonString(jsonString, options) {
406
+ return new Provider().fromJsonString(jsonString, options);
407
+ }
408
+ static equals(a, b) {
409
+ return protobuf_1.proto3.util.equals(Provider, a, b);
410
+ }
411
+ }
412
+ exports.Provider = Provider;
413
+ Provider.runtime = protobuf_1.proto3;
414
+ Provider.typeName = "scalekit.v1.connections.Provider";
415
+ Provider.fields = protobuf_1.proto3.util.newFieldList(() => [
416
+ { no: 1, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
417
+ { no: 2, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
418
+ { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
419
+ ]);
420
+ /**
421
+ * @generated from message scalekit.v1.connections.CreateEnvironmentConnectionRequest
422
+ */
423
+ class CreateEnvironmentConnectionRequest extends protobuf_1.Message {
424
+ constructor(data) {
425
+ super();
426
+ protobuf_1.proto3.util.initPartial(data, this);
427
+ }
428
+ static fromBinary(bytes, options) {
429
+ return new CreateEnvironmentConnectionRequest().fromBinary(bytes, options);
430
+ }
431
+ static fromJson(jsonValue, options) {
432
+ return new CreateEnvironmentConnectionRequest().fromJson(jsonValue, options);
433
+ }
434
+ static fromJsonString(jsonString, options) {
435
+ return new CreateEnvironmentConnectionRequest().fromJsonString(jsonString, options);
436
+ }
437
+ static equals(a, b) {
438
+ return protobuf_1.proto3.util.equals(CreateEnvironmentConnectionRequest, a, b);
439
+ }
440
+ }
441
+ exports.CreateEnvironmentConnectionRequest = CreateEnvironmentConnectionRequest;
442
+ CreateEnvironmentConnectionRequest.runtime = protobuf_1.proto3;
443
+ CreateEnvironmentConnectionRequest.typeName = "scalekit.v1.connections.CreateEnvironmentConnectionRequest";
444
+ CreateEnvironmentConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
445
+ { no: 1, name: "connection", kind: "message", T: CreateConnection },
301
446
  ]);
302
447
  /**
303
448
  * @generated from message scalekit.v1.connections.CreateConnectionRequest
@@ -306,9 +451,9 @@ class CreateConnectionRequest extends protobuf_1.Message {
306
451
  constructor(data) {
307
452
  super();
308
453
  /**
309
- * @generated from oneof scalekit.v1.connections.CreateConnectionRequest.identities
454
+ * @generated from field: string organization_id = 1;
310
455
  */
311
- this.identities = { case: undefined };
456
+ this.organizationId = "";
312
457
  protobuf_1.proto3.util.initPartial(data, this);
313
458
  }
314
459
  static fromBinary(bytes, options) {
@@ -328,8 +473,7 @@ exports.CreateConnectionRequest = CreateConnectionRequest;
328
473
  CreateConnectionRequest.runtime = protobuf_1.proto3;
329
474
  CreateConnectionRequest.typeName = "scalekit.v1.connections.CreateConnectionRequest";
330
475
  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" },
476
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
333
477
  { no: 3, name: "connection", kind: "message", T: CreateConnection },
334
478
  ]);
335
479
  /**
@@ -398,38 +542,26 @@ class Connection extends protobuf_1.Message {
398
542
  * @generated from field: bool debug_enabled = 6;
399
543
  */
400
544
  this.debugEnabled = false;
401
- /**
402
- * @generated from field: string organization_id = 7;
403
- */
404
- this.organizationId = "";
405
545
  /**
406
546
  * @generated from field: string ui_button_title = 8;
407
547
  */
408
548
  this.uiButtonTitle = "";
409
549
  /**
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;
550
+ * @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 9;
419
551
  */
420
552
  this.configurationType = ConfigurationType.CONFIGURATION_TYPE_UNSPECIFIED;
421
553
  /**
422
554
  * @generated from field: string test_connection_uri = 12;
423
555
  */
424
556
  this.testConnectionUri = "";
425
- /**
426
- * @generated from oneof scalekit.v1.connections.Connection.settings
427
- */
428
- this.settings = { case: undefined };
429
557
  /**
430
558
  * @generated from field: map<string, string> attribute_mapping = 15;
431
559
  */
432
560
  this.attributeMapping = {};
561
+ /**
562
+ * @generated from oneof scalekit.v1.connections.Connection.settings
563
+ */
564
+ this.settings = { case: undefined };
433
565
  protobuf_1.proto3.util.initPartial(data, this);
434
566
  }
435
567
  static fromBinary(bytes, options) {
@@ -455,15 +587,17 @@ Connection.fields = protobuf_1.proto3.util.newFieldList(() => [
455
587
  { no: 4, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionStatus) },
456
588
  { no: 5, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
457
589
  { no: 6, name: "debug_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
458
- { no: 7, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
590
+ { no: 7, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
459
591
  { 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) },
592
+ { no: 9, name: "configuration_type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConfigurationType) },
463
593
  { 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
594
  { no: 15, name: "attribute_mapping", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
595
+ { no: 16, name: "create_time", kind: "message", T: protobuf_1.Timestamp },
596
+ { no: 17, name: "update_time", kind: "message", T: protobuf_1.Timestamp },
597
+ { no: 18, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
598
+ { no: 19, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
599
+ { no: 20, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
600
+ { no: 21, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
467
601
  ]);
468
602
  /**
469
603
  * @generated from message scalekit.v1.connections.CreateConnectionResponse
@@ -492,6 +626,38 @@ CreateConnectionResponse.typeName = "scalekit.v1.connections.CreateConnectionRes
492
626
  CreateConnectionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
493
627
  { no: 1, name: "connection", kind: "message", T: Connection },
494
628
  ]);
629
+ /**
630
+ * @generated from message scalekit.v1.connections.UpdateEnvironmentConnectionRequest
631
+ */
632
+ class UpdateEnvironmentConnectionRequest extends protobuf_1.Message {
633
+ constructor(data) {
634
+ super();
635
+ /**
636
+ * @generated from field: string connection_id = 1;
637
+ */
638
+ this.connectionId = "";
639
+ protobuf_1.proto3.util.initPartial(data, this);
640
+ }
641
+ static fromBinary(bytes, options) {
642
+ return new UpdateEnvironmentConnectionRequest().fromBinary(bytes, options);
643
+ }
644
+ static fromJson(jsonValue, options) {
645
+ return new UpdateEnvironmentConnectionRequest().fromJson(jsonValue, options);
646
+ }
647
+ static fromJsonString(jsonString, options) {
648
+ return new UpdateEnvironmentConnectionRequest().fromJsonString(jsonString, options);
649
+ }
650
+ static equals(a, b) {
651
+ return protobuf_1.proto3.util.equals(UpdateEnvironmentConnectionRequest, a, b);
652
+ }
653
+ }
654
+ exports.UpdateEnvironmentConnectionRequest = UpdateEnvironmentConnectionRequest;
655
+ UpdateEnvironmentConnectionRequest.runtime = protobuf_1.proto3;
656
+ UpdateEnvironmentConnectionRequest.typeName = "scalekit.v1.connections.UpdateEnvironmentConnectionRequest";
657
+ UpdateEnvironmentConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
658
+ { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
659
+ { no: 3, name: "connection", kind: "message", T: UpdateConnection },
660
+ ]);
495
661
  /**
496
662
  * @generated from message scalekit.v1.connections.UpdateConnectionRequest
497
663
  */
@@ -499,9 +665,9 @@ class UpdateConnectionRequest extends protobuf_1.Message {
499
665
  constructor(data) {
500
666
  super();
501
667
  /**
502
- * @generated from oneof scalekit.v1.connections.UpdateConnectionRequest.identities
668
+ * @generated from field: string organization_id = 1;
503
669
  */
504
- this.identities = { case: undefined };
670
+ this.organizationId = "";
505
671
  /**
506
672
  * @generated from field: string id = 3;
507
673
  */
@@ -525,8 +691,7 @@ exports.UpdateConnectionRequest = UpdateConnectionRequest;
525
691
  UpdateConnectionRequest.runtime = protobuf_1.proto3;
526
692
  UpdateConnectionRequest.typeName = "scalekit.v1.connections.UpdateConnectionRequest";
527
693
  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" },
694
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
530
695
  { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
531
696
  { no: 4, name: "connection", kind: "message", T: UpdateConnection },
532
697
  ]);
@@ -548,14 +713,14 @@ class UpdateConnection extends protobuf_1.Message {
548
713
  * @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 11;
549
714
  */
550
715
  this.configurationType = ConfigurationType.CONFIGURATION_TYPE_UNSPECIFIED;
551
- /**
552
- * @generated from oneof scalekit.v1.connections.UpdateConnection.settings
553
- */
554
- this.settings = { case: undefined };
555
716
  /**
556
717
  * @generated from field: map<string, string> attribute_mapping = 15;
557
718
  */
558
719
  this.attributeMapping = {};
720
+ /**
721
+ * @generated from oneof scalekit.v1.connections.UpdateConnection.settings
722
+ */
723
+ this.settings = { case: undefined };
559
724
  protobuf_1.proto3.util.initPartial(data, this);
560
725
  }
561
726
  static fromBinary(bytes, options) {
@@ -579,11 +744,12 @@ UpdateConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
579
744
  { no: 3, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionType) },
580
745
  { no: 6, name: "debug_enabled", kind: "message", T: protobuf_1.BoolValue },
581
746
  { no: 8, name: "ui_button_title", kind: "message", T: protobuf_1.StringValue },
582
- { no: 10, name: "logout_uri", kind: "message", T: protobuf_1.StringValue },
583
747
  { no: 11, name: "configuration_type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConfigurationType) },
584
- { no: 13, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
585
- { no: 14, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
586
748
  { no: 15, name: "attribute_mapping", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
749
+ { no: 16, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
750
+ { no: 17, name: "saml_config", kind: "message", T: SAMLConnectionConfigRequest, oneof: "settings" },
751
+ { no: 18, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
752
+ { no: 19, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
587
753
  ]);
588
754
  /**
589
755
  * @generated from message scalekit.v1.connections.UpdateConnectionResponse
@@ -612,6 +778,37 @@ UpdateConnectionResponse.typeName = "scalekit.v1.connections.UpdateConnectionRes
612
778
  UpdateConnectionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
613
779
  { no: 1, name: "connection", kind: "message", T: Connection },
614
780
  ]);
781
+ /**
782
+ * @generated from message scalekit.v1.connections.DeleteEnvironmentConnectionRequest
783
+ */
784
+ class DeleteEnvironmentConnectionRequest extends protobuf_1.Message {
785
+ constructor(data) {
786
+ super();
787
+ /**
788
+ * @generated from field: string connection_id = 3;
789
+ */
790
+ this.connectionId = "";
791
+ protobuf_1.proto3.util.initPartial(data, this);
792
+ }
793
+ static fromBinary(bytes, options) {
794
+ return new DeleteEnvironmentConnectionRequest().fromBinary(bytes, options);
795
+ }
796
+ static fromJson(jsonValue, options) {
797
+ return new DeleteEnvironmentConnectionRequest().fromJson(jsonValue, options);
798
+ }
799
+ static fromJsonString(jsonString, options) {
800
+ return new DeleteEnvironmentConnectionRequest().fromJsonString(jsonString, options);
801
+ }
802
+ static equals(a, b) {
803
+ return protobuf_1.proto3.util.equals(DeleteEnvironmentConnectionRequest, a, b);
804
+ }
805
+ }
806
+ exports.DeleteEnvironmentConnectionRequest = DeleteEnvironmentConnectionRequest;
807
+ DeleteEnvironmentConnectionRequest.runtime = protobuf_1.proto3;
808
+ DeleteEnvironmentConnectionRequest.typeName = "scalekit.v1.connections.DeleteEnvironmentConnectionRequest";
809
+ DeleteEnvironmentConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
810
+ { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
811
+ ]);
615
812
  /**
616
813
  * @generated from message scalekit.v1.connections.DeleteConnectionRequest
617
814
  */
@@ -619,9 +816,9 @@ class DeleteConnectionRequest extends protobuf_1.Message {
619
816
  constructor(data) {
620
817
  super();
621
818
  /**
622
- * @generated from oneof scalekit.v1.connections.DeleteConnectionRequest.identities
819
+ * @generated from field: string organization_id = 1;
623
820
  */
624
- this.identities = { case: undefined };
821
+ this.organizationId = "";
625
822
  /**
626
823
  * @generated from field: string id = 3;
627
824
  */
@@ -645,10 +842,40 @@ exports.DeleteConnectionRequest = DeleteConnectionRequest;
645
842
  DeleteConnectionRequest.runtime = protobuf_1.proto3;
646
843
  DeleteConnectionRequest.typeName = "scalekit.v1.connections.DeleteConnectionRequest";
647
844
  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" },
845
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
650
846
  { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
651
847
  ]);
848
+ /**
849
+ * @generated from message scalekit.v1.connections.GetEnvironmentConnectionRequest
850
+ */
851
+ class GetEnvironmentConnectionRequest extends protobuf_1.Message {
852
+ constructor(data) {
853
+ super();
854
+ /**
855
+ * @generated from field: string connection_id = 1;
856
+ */
857
+ this.connectionId = "";
858
+ protobuf_1.proto3.util.initPartial(data, this);
859
+ }
860
+ static fromBinary(bytes, options) {
861
+ return new GetEnvironmentConnectionRequest().fromBinary(bytes, options);
862
+ }
863
+ static fromJson(jsonValue, options) {
864
+ return new GetEnvironmentConnectionRequest().fromJson(jsonValue, options);
865
+ }
866
+ static fromJsonString(jsonString, options) {
867
+ return new GetEnvironmentConnectionRequest().fromJsonString(jsonString, options);
868
+ }
869
+ static equals(a, b) {
870
+ return protobuf_1.proto3.util.equals(GetEnvironmentConnectionRequest, a, b);
871
+ }
872
+ }
873
+ exports.GetEnvironmentConnectionRequest = GetEnvironmentConnectionRequest;
874
+ GetEnvironmentConnectionRequest.runtime = protobuf_1.proto3;
875
+ GetEnvironmentConnectionRequest.typeName = "scalekit.v1.connections.GetEnvironmentConnectionRequest";
876
+ GetEnvironmentConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
877
+ { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
878
+ ]);
652
879
  /**
653
880
  * @generated from message scalekit.v1.connections.GetConnectionRequest
654
881
  */
@@ -656,9 +883,9 @@ class GetConnectionRequest extends protobuf_1.Message {
656
883
  constructor(data) {
657
884
  super();
658
885
  /**
659
- * @generated from oneof scalekit.v1.connections.GetConnectionRequest.identities
886
+ * @generated from field: string organization_id = 1;
660
887
  */
661
- this.identities = { case: undefined };
888
+ this.organizationId = "";
662
889
  /**
663
890
  * @generated from field: string id = 3;
664
891
  */
@@ -682,8 +909,7 @@ exports.GetConnectionRequest = GetConnectionRequest;
682
909
  GetConnectionRequest.runtime = protobuf_1.proto3;
683
910
  GetConnectionRequest.typeName = "scalekit.v1.connections.GetConnectionRequest";
684
911
  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" },
912
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
687
913
  { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
688
914
  ]);
689
915
  /**
@@ -719,10 +945,6 @@ GetConnectionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
719
945
  class ListConnectionsRequest extends protobuf_1.Message {
720
946
  constructor(data) {
721
947
  super();
722
- /**
723
- * @generated from oneof scalekit.v1.connections.ListConnectionsRequest.identities
724
- */
725
- this.identities = { case: undefined };
726
948
  protobuf_1.proto3.util.initPartial(data, this);
727
949
  }
728
950
  static fromBinary(bytes, options) {
@@ -742,9 +964,8 @@ exports.ListConnectionsRequest = ListConnectionsRequest;
742
964
  ListConnectionsRequest.runtime = protobuf_1.proto3;
743
965
  ListConnectionsRequest.typeName = "scalekit.v1.connections.ListConnectionsRequest";
744
966
  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" },
967
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
968
+ { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
748
969
  { no: 4, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
749
970
  ]);
750
971
  /**
@@ -839,6 +1060,37 @@ ListConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
839
1060
  { no: 6, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
840
1061
  { no: 7, name: "ui_button_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
841
1062
  ]);
1063
+ /**
1064
+ * @generated from message scalekit.v1.connections.ToggleEnvironmentConnectionRequest
1065
+ */
1066
+ class ToggleEnvironmentConnectionRequest extends protobuf_1.Message {
1067
+ constructor(data) {
1068
+ super();
1069
+ /**
1070
+ * @generated from field: string connection_id = 2;
1071
+ */
1072
+ this.connectionId = "";
1073
+ protobuf_1.proto3.util.initPartial(data, this);
1074
+ }
1075
+ static fromBinary(bytes, options) {
1076
+ return new ToggleEnvironmentConnectionRequest().fromBinary(bytes, options);
1077
+ }
1078
+ static fromJson(jsonValue, options) {
1079
+ return new ToggleEnvironmentConnectionRequest().fromJson(jsonValue, options);
1080
+ }
1081
+ static fromJsonString(jsonString, options) {
1082
+ return new ToggleEnvironmentConnectionRequest().fromJsonString(jsonString, options);
1083
+ }
1084
+ static equals(a, b) {
1085
+ return protobuf_1.proto3.util.equals(ToggleEnvironmentConnectionRequest, a, b);
1086
+ }
1087
+ }
1088
+ exports.ToggleEnvironmentConnectionRequest = ToggleEnvironmentConnectionRequest;
1089
+ ToggleEnvironmentConnectionRequest.runtime = protobuf_1.proto3;
1090
+ ToggleEnvironmentConnectionRequest.typeName = "scalekit.v1.connections.ToggleEnvironmentConnectionRequest";
1091
+ ToggleEnvironmentConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1092
+ { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1093
+ ]);
842
1094
  /**
843
1095
  * @generated from message scalekit.v1.connections.ToggleConnectionRequest
844
1096
  */
@@ -846,9 +1098,9 @@ class ToggleConnectionRequest extends protobuf_1.Message {
846
1098
  constructor(data) {
847
1099
  super();
848
1100
  /**
849
- * @generated from oneof scalekit.v1.connections.ToggleConnectionRequest.identities
1101
+ * @generated from field: string organization_id = 1;
850
1102
  */
851
- this.identities = { case: undefined };
1103
+ this.organizationId = "";
852
1104
  /**
853
1105
  * @generated from field: string id = 3;
854
1106
  */
@@ -872,8 +1124,7 @@ exports.ToggleConnectionRequest = ToggleConnectionRequest;
872
1124
  ToggleConnectionRequest.runtime = protobuf_1.proto3;
873
1125
  ToggleConnectionRequest.typeName = "scalekit.v1.connections.ToggleConnectionRequest";
874
1126
  ToggleConnectionRequest.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" },
1127
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
877
1128
  { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
878
1129
  ]);
879
1130
  /**
@@ -958,6 +1209,48 @@ OIDCConnectionConfig.fields = protobuf_1.proto3.util.newFieldList(() => [
958
1209
  { no: 12, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
959
1210
  { no: 13, name: "pkce_enabled", kind: "message", T: protobuf_1.BoolValue },
960
1211
  ]);
1212
+ /**
1213
+ * @generated from message scalekit.v1.connections.OAuthConnectionConfig
1214
+ */
1215
+ class OAuthConnectionConfig extends protobuf_1.Message {
1216
+ constructor(data) {
1217
+ super();
1218
+ /**
1219
+ * @generated from field: repeated string scopes = 10;
1220
+ */
1221
+ this.scopes = [];
1222
+ /**
1223
+ * @generated from field: string redirect_uri = 12;
1224
+ */
1225
+ this.redirectUri = "";
1226
+ protobuf_1.proto3.util.initPartial(data, this);
1227
+ }
1228
+ static fromBinary(bytes, options) {
1229
+ return new OAuthConnectionConfig().fromBinary(bytes, options);
1230
+ }
1231
+ static fromJson(jsonValue, options) {
1232
+ return new OAuthConnectionConfig().fromJson(jsonValue, options);
1233
+ }
1234
+ static fromJsonString(jsonString, options) {
1235
+ return new OAuthConnectionConfig().fromJsonString(jsonString, options);
1236
+ }
1237
+ static equals(a, b) {
1238
+ return protobuf_1.proto3.util.equals(OAuthConnectionConfig, a, b);
1239
+ }
1240
+ }
1241
+ exports.OAuthConnectionConfig = OAuthConnectionConfig;
1242
+ OAuthConnectionConfig.runtime = protobuf_1.proto3;
1243
+ OAuthConnectionConfig.typeName = "scalekit.v1.connections.OAuthConnectionConfig";
1244
+ OAuthConnectionConfig.fields = protobuf_1.proto3.util.newFieldList(() => [
1245
+ { no: 3, name: "authorize_uri", kind: "message", T: protobuf_1.StringValue },
1246
+ { no: 4, name: "token_uri", kind: "message", T: protobuf_1.StringValue },
1247
+ { no: 5, name: "user_info_uri", kind: "message", T: protobuf_1.StringValue },
1248
+ { no: 8, name: "client_id", kind: "message", T: protobuf_1.StringValue },
1249
+ { no: 9, name: "client_secret", kind: "message", T: protobuf_1.StringValue },
1250
+ { no: 10, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1251
+ { no: 12, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1252
+ { no: 13, name: "pkce_enabled", kind: "message", T: protobuf_1.BoolValue },
1253
+ ]);
961
1254
  /**
962
1255
  * @generated from message scalekit.v1.connections.SAMLConnectionConfigRequest
963
1256
  */
@@ -969,13 +1262,13 @@ class SAMLConnectionConfigRequest extends protobuf_1.Message {
969
1262
  */
970
1263
  this.idpNameIdFormat = NameIdFormat.NAME_ID_FORMAT_NIL;
971
1264
  /**
972
- * @generated from field: scalekit.v1.connections.RequestBinding sso_request_binding = 8;
1265
+ * @generated from field: scalekit.v1.connections.RequestBinding idp_sso_request_binding = 8;
973
1266
  */
974
- this.ssoRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
1267
+ this.idpSsoRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
975
1268
  /**
976
- * @generated from field: scalekit.v1.connections.RequestBinding slo_request_binding = 9;
1269
+ * @generated from field: scalekit.v1.connections.RequestBinding idp_slo_request_binding = 9;
977
1270
  */
978
- this.sloRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
1271
+ this.idpSloRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
979
1272
  /**
980
1273
  * @generated from field: scalekit.v1.connections.SAMLSigningOptions saml_signing_option = 10;
981
1274
  */
@@ -1006,14 +1299,13 @@ SAMLConnectionConfigRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1006
1299
  { no: 5, name: "idp_slo_url", kind: "message", T: protobuf_1.StringValue },
1007
1300
  { no: 6, name: "ui_button_title", kind: "message", T: protobuf_1.StringValue },
1008
1301
  { no: 7, name: "idp_name_id_format", kind: "enum", T: protobuf_1.proto3.getEnumType(NameIdFormat) },
1009
- { no: 8, name: "sso_request_binding", kind: "enum", T: protobuf_1.proto3.getEnumType(RequestBinding) },
1010
- { no: 9, name: "slo_request_binding", kind: "enum", T: protobuf_1.proto3.getEnumType(RequestBinding) },
1302
+ { no: 8, name: "idp_sso_request_binding", kind: "enum", T: protobuf_1.proto3.getEnumType(RequestBinding) },
1303
+ { no: 9, name: "idp_slo_request_binding", kind: "enum", T: protobuf_1.proto3.getEnumType(RequestBinding) },
1011
1304
  { no: 10, name: "saml_signing_option", kind: "enum", T: protobuf_1.proto3.getEnumType(SAMLSigningOptions) },
1012
- { no: 11, name: "allow_idp_initiated_login", kind: "message", T: protobuf_1.BoolValue },
1013
- { no: 12, name: "force_authn", kind: "message", T: protobuf_1.BoolValue },
1014
- { no: 13, name: "default_redirect_uri", kind: "message", T: protobuf_1.StringValue },
1015
- { no: 14, name: "assertion_encrypted", kind: "message", T: protobuf_1.BoolValue },
1016
- { no: 15, name: "want_request_signed", kind: "message", T: protobuf_1.BoolValue },
1305
+ { no: 14, name: "force_authn", kind: "message", T: protobuf_1.BoolValue },
1306
+ { no: 15, name: "default_redirect_uri", kind: "message", T: protobuf_1.StringValue },
1307
+ { no: 16, name: "assertion_encrypted", kind: "message", T: protobuf_1.BoolValue },
1308
+ { no: 17, name: "want_request_signed", kind: "message", T: protobuf_1.BoolValue },
1017
1309
  ]);
1018
1310
  /**
1019
1311
  * @generated from message scalekit.v1.connections.SAMLConnectionConfigResponse