@scalekit-sdk/node 2.0.1 → 2.1.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 (77) hide show
  1. package/jest.config.js +15 -0
  2. package/lib/core.d.ts +1 -1
  3. package/lib/core.js +31 -31
  4. package/lib/core.js.map +1 -1
  5. package/lib/errors/base-exception.d.ts +32 -0
  6. package/lib/errors/base-exception.js +238 -0
  7. package/lib/errors/base-exception.js.map +1 -0
  8. package/lib/errors/index.d.ts +2 -0
  9. package/lib/errors/index.js +20 -0
  10. package/lib/errors/index.js.map +1 -0
  11. package/lib/errors/specific-exceptions.d.ts +39 -0
  12. package/lib/errors/specific-exceptions.js +90 -0
  13. package/lib/errors/specific-exceptions.js.map +1 -0
  14. package/lib/index.d.ts +1 -0
  15. package/lib/index.js +1 -0
  16. package/lib/index.js.map +1 -1
  17. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +34 -87
  18. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +31 -120
  19. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  20. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +19 -10
  21. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +18 -9
  22. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
  23. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +209 -6
  24. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +272 -5
  25. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  26. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +29 -0
  27. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +40 -1
  28. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
  29. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +25 -0
  30. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +38 -1
  31. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
  32. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +21 -1
  33. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +20 -0
  34. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -1
  35. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +110 -5
  36. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +164 -5
  37. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
  38. package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +48 -1
  39. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +47 -0
  40. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +1 -1
  41. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +280 -4
  42. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +449 -11
  43. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  44. package/lib/scalekit.d.ts +3 -3
  45. package/lib/scalekit.js +35 -22
  46. package/lib/scalekit.js.map +1 -1
  47. package/lib/types/user.d.ts +1 -1
  48. package/lib/user.d.ts +10 -3
  49. package/lib/user.js +26 -5
  50. package/lib/user.js.map +1 -1
  51. package/package.json +6 -2
  52. package/src/core.ts +31 -32
  53. package/src/errors/base-exception.ts +262 -0
  54. package/src/errors/index.ts +3 -0
  55. package/src/errors/specific-exceptions.ts +88 -0
  56. package/src/index.ts +3 -1
  57. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +49 -129
  58. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +19 -10
  59. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +377 -8
  60. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +44 -0
  61. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +49 -0
  62. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +21 -1
  63. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +218 -5
  64. package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +48 -1
  65. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +558 -6
  66. package/src/scalekit.ts +39 -23
  67. package/src/types/user.ts +1 -1
  68. package/src/user.ts +34 -7
  69. package/tests/README.md +25 -0
  70. package/tests/connection.test.ts +42 -0
  71. package/tests/directory.test.ts +46 -0
  72. package/tests/organization.test.ts +65 -0
  73. package/tests/passwordless.test.ts +108 -0
  74. package/tests/scalekit.test.ts +104 -0
  75. package/tests/setup.ts +34 -0
  76. package/tests/users.test.ts +168 -0
  77. package/tests/utils/test-data.ts +248 -0
@@ -4,9 +4,10 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.SAMLMetadataRequest = exports.GetSAMLMetadataRequest = exports.GetOIDCMetadataResponse = exports.OIDCMetadataRequest = exports.GetOIDCMetadataRequest = exports.IDPCertificate = exports.SAMLConnectionConfigResponse = exports.SAMLConnectionConfigRequest = exports.PasswordLessConfig = exports.OAuthConnectionConfig = exports.OIDCConnectionConfig = exports.ToggleConnectionResponse = exports.ToggleConnectionRequest = exports.ToggleEnvironmentConnectionRequest = exports.SearchOrganizationConnectionsResponse = exports.SearchOrganizationConnectionsRequest = exports.ListOrganizationConnectionsResponse = exports.ListOrganizationConnectionsRequest = 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.TestResultStatus = exports.PasswordlessType = exports.NameIdFormat = exports.ConfigurationType = exports.CodeChallengeType = void 0;
8
- exports.PasswordConnectionConfig = exports.GetConnectionTestResultResponse = exports.GetConnectionTestResultRequest = exports.GetSAMLCertificateDetailsResponse = exports.SAMLCertificateRequest = exports.GetSAMLCertificateDetailsRequest = exports.GetSAMLMetadataResponse = void 0;
7
+ exports.OIDCMetadataRequest = exports.GetOIDCMetadataRequest = exports.IDPCertificate = exports.SAMLConnectionConfigResponse = exports.SAMLConnectionConfigRequest = exports.StaticAuthConfig = exports.PasswordLessConfig = exports.OAuthConnectionConfig = exports.OIDCConnectionConfig = exports.ToggleConnectionResponse = exports.ToggleConnectionRequest = exports.ToggleEnvironmentConnectionRequest = exports.SearchOrganizationConnectionsResponse = exports.SearchOrganizationConnectionsRequest = exports.ListOrganizationConnectionsResponse = exports.ListOrganizationConnectionsRequest = 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.AssignDomainsToConnectionResponse = exports.AssignDomainsToConnectionRequest = exports.ConnectionProvider = exports.ConnectionStatus = exports.ConnectionType = exports.OIDCScope = exports.TokenAuthType = exports.RequestBinding = exports.SAMLSigningOptions = exports.TestResultStatus = exports.PasswordlessType = exports.NameIdFormat = exports.ConfigurationType = exports.CodeChallengeType = void 0;
8
+ exports.ListAppConnectionsResponse = exports.ListAppConnectionsRequest = exports.Flags = exports.PasswordConnectionConfig = exports.GetConnectionTestResultResponse = exports.GetConnectionTestResultRequest = exports.GetSAMLCertificateDetailsResponse = exports.SAMLCertificateRequest = exports.GetSAMLCertificateDetailsRequest = exports.GetSAMLMetadataResponse = exports.SAMLMetadataRequest = exports.GetSAMLMetadataRequest = exports.GetOIDCMetadataResponse = void 0;
9
9
  const protobuf_1 = require("@bufbuild/protobuf");
10
+ const domains_pb_js_1 = require("../domains/domains_pb.js");
10
11
  /**
11
12
  * @generated from enum scalekit.v1.connections.CodeChallengeType
12
13
  */
@@ -299,6 +300,18 @@ var ConnectionType;
299
300
  * @generated from enum value: PASSWORDLESS = 5;
300
301
  */
301
302
  ConnectionType[ConnectionType["PASSWORDLESS"] = 5] = "PASSWORDLESS";
303
+ /**
304
+ * @generated from enum value: BASIC = 6;
305
+ */
306
+ ConnectionType[ConnectionType["BASIC"] = 6] = "BASIC";
307
+ /**
308
+ * @generated from enum value: BEARER = 7;
309
+ */
310
+ ConnectionType[ConnectionType["BEARER"] = 7] = "BEARER";
311
+ /**
312
+ * @generated from enum value: API_KEY = 8;
313
+ */
314
+ ConnectionType[ConnectionType["API_KEY"] = 8] = "API_KEY";
302
315
  })(ConnectionType || (exports.ConnectionType = ConnectionType = {}));
303
316
  // Retrieve enum metadata with: proto3.getEnumType(ConnectionType)
304
317
  protobuf_1.proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType", [
@@ -308,6 +321,9 @@ protobuf_1.proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.Conn
308
321
  { no: 3, name: "PASSWORD" },
309
322
  { no: 4, name: "OAUTH" },
310
323
  { no: 5, name: "PASSWORDLESS" },
324
+ { no: 6, name: "BASIC" },
325
+ { no: 7, name: "BEARER" },
326
+ { no: 8, name: "API_KEY" },
311
327
  ]);
312
328
  /**
313
329
  * @generated from enum scalekit.v1.connections.ConnectionStatus
@@ -432,6 +448,74 @@ protobuf_1.proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.
432
448
  { no: 15, name: "SCALEKIT" },
433
449
  { no: 16, name: "ADFS" },
434
450
  ]);
451
+ /**
452
+ * @generated from message scalekit.v1.connections.AssignDomainsToConnectionRequest
453
+ */
454
+ class AssignDomainsToConnectionRequest extends protobuf_1.Message {
455
+ constructor(data) {
456
+ super();
457
+ /**
458
+ * @generated from field: string organization_id = 1;
459
+ */
460
+ this.organizationId = "";
461
+ /**
462
+ * @generated from field: string connection_id = 2;
463
+ */
464
+ this.connectionId = "";
465
+ /**
466
+ * @generated from field: repeated string domain_ids = 3;
467
+ */
468
+ this.domainIds = [];
469
+ protobuf_1.proto3.util.initPartial(data, this);
470
+ }
471
+ static fromBinary(bytes, options) {
472
+ return new AssignDomainsToConnectionRequest().fromBinary(bytes, options);
473
+ }
474
+ static fromJson(jsonValue, options) {
475
+ return new AssignDomainsToConnectionRequest().fromJson(jsonValue, options);
476
+ }
477
+ static fromJsonString(jsonString, options) {
478
+ return new AssignDomainsToConnectionRequest().fromJsonString(jsonString, options);
479
+ }
480
+ static equals(a, b) {
481
+ return protobuf_1.proto3.util.equals(AssignDomainsToConnectionRequest, a, b);
482
+ }
483
+ }
484
+ exports.AssignDomainsToConnectionRequest = AssignDomainsToConnectionRequest;
485
+ AssignDomainsToConnectionRequest.runtime = protobuf_1.proto3;
486
+ AssignDomainsToConnectionRequest.typeName = "scalekit.v1.connections.AssignDomainsToConnectionRequest";
487
+ AssignDomainsToConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
488
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
489
+ { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
490
+ { no: 3, name: "domain_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
491
+ ]);
492
+ /**
493
+ * @generated from message scalekit.v1.connections.AssignDomainsToConnectionResponse
494
+ */
495
+ class AssignDomainsToConnectionResponse extends protobuf_1.Message {
496
+ constructor(data) {
497
+ super();
498
+ protobuf_1.proto3.util.initPartial(data, this);
499
+ }
500
+ static fromBinary(bytes, options) {
501
+ return new AssignDomainsToConnectionResponse().fromBinary(bytes, options);
502
+ }
503
+ static fromJson(jsonValue, options) {
504
+ return new AssignDomainsToConnectionResponse().fromJson(jsonValue, options);
505
+ }
506
+ static fromJsonString(jsonString, options) {
507
+ return new AssignDomainsToConnectionResponse().fromJsonString(jsonString, options);
508
+ }
509
+ static equals(a, b) {
510
+ return protobuf_1.proto3.util.equals(AssignDomainsToConnectionResponse, a, b);
511
+ }
512
+ }
513
+ exports.AssignDomainsToConnectionResponse = AssignDomainsToConnectionResponse;
514
+ AssignDomainsToConnectionResponse.runtime = protobuf_1.proto3;
515
+ AssignDomainsToConnectionResponse.typeName = "scalekit.v1.connections.AssignDomainsToConnectionResponse";
516
+ AssignDomainsToConnectionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
517
+ { no: 1, name: "connection", kind: "message", T: Connection },
518
+ ]);
435
519
  /**
436
520
  * @generated from message scalekit.v1.connections.GetProvidersRequest
437
521
  */
@@ -551,6 +635,7 @@ CreateEnvironmentConnectionRequest.runtime = protobuf_1.proto3;
551
635
  CreateEnvironmentConnectionRequest.typeName = "scalekit.v1.connections.CreateEnvironmentConnectionRequest";
552
636
  CreateEnvironmentConnectionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
553
637
  { no: 1, name: "connection", kind: "message", T: CreateConnection },
638
+ { no: 2, name: "flags", kind: "message", T: Flags, opt: true },
554
639
  ]);
555
640
  /**
556
641
  * @generated from message scalekit.v1.connections.CreateConnectionRequest
@@ -598,6 +683,10 @@ class CreateConnection extends protobuf_1.Message {
598
683
  * @generated from field: scalekit.v1.connections.ConnectionType type = 2;
599
684
  */
600
685
  this.type = ConnectionType.INVALID;
686
+ /**
687
+ * @generated from field: string provider_key = 3;
688
+ */
689
+ this.providerKey = "";
601
690
  protobuf_1.proto3.util.initPartial(data, this);
602
691
  }
603
692
  static fromBinary(bytes, options) {
@@ -619,6 +708,8 @@ CreateConnection.typeName = "scalekit.v1.connections.CreateConnection";
619
708
  CreateConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
620
709
  { no: 1, name: "provider", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionProvider) },
621
710
  { no: 2, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionType) },
711
+ { no: 3, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
712
+ { no: 4, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
622
713
  ]);
623
714
  /**
624
715
  * @generated from message scalekit.v1.connections.Connection
@@ -670,6 +761,14 @@ class Connection extends protobuf_1.Message {
670
761
  * @generated from oneof scalekit.v1.connections.Connection.settings
671
762
  */
672
763
  this.settings = { case: undefined };
764
+ /**
765
+ * @generated from field: string provider_key = 23;
766
+ */
767
+ this.providerKey = "";
768
+ /**
769
+ * @generated from field: repeated scalekit.v1.domains.Domain domains = 24;
770
+ */
771
+ this.domains = [];
673
772
  protobuf_1.proto3.util.initPartial(data, this);
674
773
  }
675
774
  static fromBinary(bytes, options) {
@@ -706,7 +805,10 @@ Connection.fields = protobuf_1.proto3.util.newFieldList(() => [
706
805
  { no: 19, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
707
806
  { no: 20, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
708
807
  { no: 22, name: "passwordless_config", kind: "message", T: PasswordLessConfig, oneof: "settings" },
709
- { no: 21, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
808
+ { no: 26, name: "static_config", kind: "message", T: StaticAuthConfig, oneof: "settings" },
809
+ { no: 25, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
810
+ { no: 23, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
811
+ { no: 24, name: "domains", kind: "message", T: domains_pb_js_1.Domain, repeated: true },
710
812
  ]);
711
813
  /**
712
814
  * @generated from message scalekit.v1.connections.CreateConnectionResponse
@@ -830,6 +932,10 @@ class UpdateConnection extends protobuf_1.Message {
830
932
  * @generated from oneof scalekit.v1.connections.UpdateConnection.settings
831
933
  */
832
934
  this.settings = { case: undefined };
935
+ /**
936
+ * @generated from field: string provider_key = 21;
937
+ */
938
+ this.providerKey = "";
833
939
  protobuf_1.proto3.util.initPartial(data, this);
834
940
  }
835
941
  static fromBinary(bytes, options) {
@@ -859,7 +965,9 @@ UpdateConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
859
965
  { no: 17, name: "saml_config", kind: "message", T: SAMLConnectionConfigRequest, oneof: "settings" },
860
966
  { no: 18, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
861
967
  { no: 20, name: "passwordless_config", kind: "message", T: PasswordLessConfig, oneof: "settings" },
862
- { no: 19, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
968
+ { no: 23, name: "static_config", kind: "message", T: StaticAuthConfig, oneof: "settings" },
969
+ { no: 22, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
970
+ { no: 21, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
863
971
  ]);
864
972
  /**
865
973
  * @generated from message scalekit.v1.connections.UpdateConnectionResponse
@@ -1151,6 +1259,14 @@ class ListConnection extends protobuf_1.Message {
1151
1259
  * @generated from field: string organization_name = 9;
1152
1260
  */
1153
1261
  this.organizationName = "";
1262
+ /**
1263
+ * @generated from field: string provider_key = 10;
1264
+ */
1265
+ this.providerKey = "";
1266
+ /**
1267
+ * @generated from field: string key_id = 11;
1268
+ */
1269
+ this.keyId = "";
1154
1270
  protobuf_1.proto3.util.initPartial(data, this);
1155
1271
  }
1156
1272
  static fromBinary(bytes, options) {
@@ -1179,6 +1295,9 @@ ListConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
1179
1295
  { no: 7, name: "ui_button_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1180
1296
  { no: 8, name: "domains", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1181
1297
  { no: 9, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1298
+ { no: 10, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1299
+ { no: 11, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1300
+ { no: 12, name: "created_at", kind: "message", T: protobuf_1.Timestamp },
1182
1301
  ]);
1183
1302
  /**
1184
1303
  * @generated from message scalekit.v1.connections.ListOrganizationConnectionsRequest
@@ -1296,9 +1415,10 @@ SearchOrganizationConnectionsRequest.runtime = protobuf_1.proto3;
1296
1415
  SearchOrganizationConnectionsRequest.typeName = "scalekit.v1.connections.SearchOrganizationConnectionsRequest";
1297
1416
  SearchOrganizationConnectionsRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1298
1417
  { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1299
- { no: 2, name: "provider", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionProvider), opt: true },
1418
+ { no: 2, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1300
1419
  { no: 3, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionStatus), opt: true },
1301
1420
  { no: 4, name: "connection_type", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionType), opt: true },
1421
+ { no: 7, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1302
1422
  { no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1303
1423
  { no: 6, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1304
1424
  ]);
@@ -1543,6 +1663,7 @@ OAuthConnectionConfig.fields = protobuf_1.proto3.util.newFieldList(() => [
1543
1663
  { no: 13, name: "pkce_enabled", kind: "message", T: protobuf_1.BoolValue },
1544
1664
  { no: 14, name: "prompt", kind: "message", T: protobuf_1.StringValue },
1545
1665
  { no: 15, name: "use_platform_creds", kind: "message", T: protobuf_1.BoolValue },
1666
+ { no: 16, name: "access_type", kind: "message", T: protobuf_1.StringValue },
1546
1667
  ]);
1547
1668
  /**
1548
1669
  * @generated from message scalekit.v1.connections.PasswordLessConfig
@@ -1579,6 +1700,34 @@ PasswordLessConfig.fields = protobuf_1.proto3.util.newFieldList(() => [
1579
1700
  { no: 4, name: "enforce_same_browser_origin", kind: "message", T: protobuf_1.BoolValue, opt: true },
1580
1701
  { no: 5, name: "code_challenge_length", kind: "message", T: protobuf_1.UInt32Value, opt: true },
1581
1702
  { no: 6, name: "code_challenge_type", kind: "enum", T: protobuf_1.proto3.getEnumType(CodeChallengeType), opt: true },
1703
+ { no: 7, name: "regenerate_passwordless_credentials_on_resend", kind: "message", T: protobuf_1.BoolValue, opt: true },
1704
+ ]);
1705
+ /**
1706
+ * @generated from message scalekit.v1.connections.StaticAuthConfig
1707
+ */
1708
+ class StaticAuthConfig extends protobuf_1.Message {
1709
+ constructor(data) {
1710
+ super();
1711
+ protobuf_1.proto3.util.initPartial(data, this);
1712
+ }
1713
+ static fromBinary(bytes, options) {
1714
+ return new StaticAuthConfig().fromBinary(bytes, options);
1715
+ }
1716
+ static fromJson(jsonValue, options) {
1717
+ return new StaticAuthConfig().fromJson(jsonValue, options);
1718
+ }
1719
+ static fromJsonString(jsonString, options) {
1720
+ return new StaticAuthConfig().fromJsonString(jsonString, options);
1721
+ }
1722
+ static equals(a, b) {
1723
+ return protobuf_1.proto3.util.equals(StaticAuthConfig, a, b);
1724
+ }
1725
+ }
1726
+ exports.StaticAuthConfig = StaticAuthConfig;
1727
+ StaticAuthConfig.runtime = protobuf_1.proto3;
1728
+ StaticAuthConfig.typeName = "scalekit.v1.connections.StaticAuthConfig";
1729
+ StaticAuthConfig.fields = protobuf_1.proto3.util.newFieldList(() => [
1730
+ { no: 1, name: "static_config", kind: "message", T: protobuf_1.Struct },
1582
1731
  ]);
1583
1732
  /**
1584
1733
  * @generated from message scalekit.v1.connections.SAMLConnectionConfigRequest
@@ -2193,4 +2342,122 @@ exports.PasswordConnectionConfig = PasswordConnectionConfig;
2193
2342
  PasswordConnectionConfig.runtime = protobuf_1.proto3;
2194
2343
  PasswordConnectionConfig.typeName = "scalekit.v1.connections.PasswordConnectionConfig";
2195
2344
  PasswordConnectionConfig.fields = protobuf_1.proto3.util.newFieldList(() => []);
2345
+ /**
2346
+ * @generated from message scalekit.v1.connections.Flags
2347
+ */
2348
+ class Flags extends protobuf_1.Message {
2349
+ constructor(data) {
2350
+ super();
2351
+ /**
2352
+ * @generated from field: bool is_login = 1;
2353
+ */
2354
+ this.isLogin = false;
2355
+ /**
2356
+ * @generated from field: bool is_app = 2;
2357
+ */
2358
+ this.isApp = false;
2359
+ protobuf_1.proto3.util.initPartial(data, this);
2360
+ }
2361
+ static fromBinary(bytes, options) {
2362
+ return new Flags().fromBinary(bytes, options);
2363
+ }
2364
+ static fromJson(jsonValue, options) {
2365
+ return new Flags().fromJson(jsonValue, options);
2366
+ }
2367
+ static fromJsonString(jsonString, options) {
2368
+ return new Flags().fromJsonString(jsonString, options);
2369
+ }
2370
+ static equals(a, b) {
2371
+ return protobuf_1.proto3.util.equals(Flags, a, b);
2372
+ }
2373
+ }
2374
+ exports.Flags = Flags;
2375
+ Flags.runtime = protobuf_1.proto3;
2376
+ Flags.typeName = "scalekit.v1.connections.Flags";
2377
+ Flags.fields = protobuf_1.proto3.util.newFieldList(() => [
2378
+ { no: 1, name: "is_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2379
+ { no: 2, name: "is_app", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2380
+ ]);
2381
+ /**
2382
+ * @generated from message scalekit.v1.connections.ListAppConnectionsRequest
2383
+ */
2384
+ class ListAppConnectionsRequest extends protobuf_1.Message {
2385
+ constructor(data) {
2386
+ super();
2387
+ /**
2388
+ * @generated from field: uint32 page_size = 1;
2389
+ */
2390
+ this.pageSize = 0;
2391
+ /**
2392
+ * @generated from field: string page_token = 2;
2393
+ */
2394
+ this.pageToken = "";
2395
+ protobuf_1.proto3.util.initPartial(data, this);
2396
+ }
2397
+ static fromBinary(bytes, options) {
2398
+ return new ListAppConnectionsRequest().fromBinary(bytes, options);
2399
+ }
2400
+ static fromJson(jsonValue, options) {
2401
+ return new ListAppConnectionsRequest().fromJson(jsonValue, options);
2402
+ }
2403
+ static fromJsonString(jsonString, options) {
2404
+ return new ListAppConnectionsRequest().fromJsonString(jsonString, options);
2405
+ }
2406
+ static equals(a, b) {
2407
+ return protobuf_1.proto3.util.equals(ListAppConnectionsRequest, a, b);
2408
+ }
2409
+ }
2410
+ exports.ListAppConnectionsRequest = ListAppConnectionsRequest;
2411
+ ListAppConnectionsRequest.runtime = protobuf_1.proto3;
2412
+ ListAppConnectionsRequest.typeName = "scalekit.v1.connections.ListAppConnectionsRequest";
2413
+ ListAppConnectionsRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
2414
+ { no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2415
+ { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2416
+ ]);
2417
+ /**
2418
+ * @generated from message scalekit.v1.connections.ListAppConnectionsResponse
2419
+ */
2420
+ class ListAppConnectionsResponse extends protobuf_1.Message {
2421
+ constructor(data) {
2422
+ super();
2423
+ /**
2424
+ * @generated from field: repeated scalekit.v1.connections.ListConnection connections = 1;
2425
+ */
2426
+ this.connections = [];
2427
+ /**
2428
+ * @generated from field: string next_page_token = 2;
2429
+ */
2430
+ this.nextPageToken = "";
2431
+ /**
2432
+ * @generated from field: string prev_page_token = 3;
2433
+ */
2434
+ this.prevPageToken = "";
2435
+ /**
2436
+ * @generated from field: uint32 total_size = 4;
2437
+ */
2438
+ this.totalSize = 0;
2439
+ protobuf_1.proto3.util.initPartial(data, this);
2440
+ }
2441
+ static fromBinary(bytes, options) {
2442
+ return new ListAppConnectionsResponse().fromBinary(bytes, options);
2443
+ }
2444
+ static fromJson(jsonValue, options) {
2445
+ return new ListAppConnectionsResponse().fromJson(jsonValue, options);
2446
+ }
2447
+ static fromJsonString(jsonString, options) {
2448
+ return new ListAppConnectionsResponse().fromJsonString(jsonString, options);
2449
+ }
2450
+ static equals(a, b) {
2451
+ return protobuf_1.proto3.util.equals(ListAppConnectionsResponse, a, b);
2452
+ }
2453
+ }
2454
+ exports.ListAppConnectionsResponse = ListAppConnectionsResponse;
2455
+ ListAppConnectionsResponse.runtime = protobuf_1.proto3;
2456
+ ListAppConnectionsResponse.typeName = "scalekit.v1.connections.ListAppConnectionsResponse";
2457
+ ListAppConnectionsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
2458
+ { no: 1, name: "connections", kind: "message", T: ListConnection, repeated: true },
2459
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2460
+ { no: 3, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2461
+ { no: 4, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2462
+ ]);
2196
2463
  //# sourceMappingURL=connections_pb.js.map