@scalekit-sdk/node 1.0.10 → 1.0.12

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 (58) hide show
  1. package/README.md +11 -0
  2. package/buf.gen.yaml +2 -1
  3. package/lib/core.js +1 -1
  4. package/lib/core.js.map +1 -1
  5. package/lib/passwordless.d.ts +55 -0
  6. package/lib/passwordless.js +111 -0
  7. package/lib/passwordless.js.map +1 -0
  8. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.d.ts +37 -0
  9. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js +45 -0
  10. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js.map +1 -0
  11. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.d.ts +184 -0
  12. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js +245 -0
  13. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js.map +1 -0
  14. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +28 -1
  15. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +27 -0
  16. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
  17. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +349 -3
  18. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +406 -1
  19. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  20. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.d.ts +38 -2
  21. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js +36 -0
  22. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js.map +1 -1
  23. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.d.ts +152 -3
  24. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +234 -3
  25. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js.map +1 -1
  26. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +11 -2
  27. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +9 -0
  28. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +1 -1
  29. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +36 -0
  30. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +38 -1
  31. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
  32. package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +6 -2
  33. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +7 -2
  34. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
  35. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +37 -1
  36. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +36 -0
  37. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -1
  38. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +233 -10
  39. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +325 -7
  40. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
  41. package/lib/scalekit.d.ts +2 -0
  42. package/lib/scalekit.js +2 -0
  43. package/lib/scalekit.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/core.ts +1 -1
  46. package/src/passwordless.ts +135 -0
  47. package/src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts +44 -0
  48. package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +330 -0
  49. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +28 -1
  50. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +598 -1
  51. package/src/pkg/grpc/scalekit/v1/directories/directories_connect.ts +38 -2
  52. package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +283 -2
  53. package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +11 -2
  54. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +56 -0
  55. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +8 -2
  56. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +37 -1
  57. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +435 -11
  58. package/src/scalekit.ts +6 -0
@@ -4,7 +4,33 @@
4
4
  // @ts-nocheck
5
5
 
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { BoolValue, Message, proto3, protoInt64, StringValue, Timestamp } from "@bufbuild/protobuf";
7
+ import { BoolValue, Message, proto3, protoInt64, StringValue, Timestamp, UInt32Value } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from enum scalekit.v1.connections.CodeChallengeType
11
+ */
12
+ export enum CodeChallengeType {
13
+ /**
14
+ * @generated from enum value: CODE_CHALLENGE_TYPE_UNSPECIFIED = 0;
15
+ */
16
+ CODE_CHALLENGE_TYPE_UNSPECIFIED = 0,
17
+
18
+ /**
19
+ * @generated from enum value: NUMERIC = 1;
20
+ */
21
+ NUMERIC = 1,
22
+
23
+ /**
24
+ * @generated from enum value: ALPHANUMERIC = 2;
25
+ */
26
+ ALPHANUMERIC = 2,
27
+ }
28
+ // Retrieve enum metadata with: proto3.getEnumType(CodeChallengeType)
29
+ proto3.util.setEnumType(CodeChallengeType, "scalekit.v1.connections.CodeChallengeType", [
30
+ { no: 0, name: "CODE_CHALLENGE_TYPE_UNSPECIFIED" },
31
+ { no: 1, name: "NUMERIC" },
32
+ { no: 2, name: "ALPHANUMERIC" },
33
+ ]);
8
34
 
9
35
  /**
10
36
  * @generated from enum scalekit.v1.connections.ConfigurationType
@@ -70,6 +96,64 @@ proto3.util.setEnumType(NameIdFormat, "scalekit.v1.connections.NameIdFormat", [
70
96
  { no: 4, name: "PERSISTENT" },
71
97
  ]);
72
98
 
99
+ /**
100
+ * @generated from enum scalekit.v1.connections.PasswordlessType
101
+ */
102
+ export enum PasswordlessType {
103
+ /**
104
+ * @generated from enum value: PasswordlessType_UNSPECIFIED = 0;
105
+ */
106
+ PasswordlessType_UNSPECIFIED = 0,
107
+
108
+ /**
109
+ * @generated from enum value: LINK = 1;
110
+ */
111
+ LINK = 1,
112
+
113
+ /**
114
+ * @generated from enum value: OTP = 2;
115
+ */
116
+ OTP = 2,
117
+
118
+ /**
119
+ * @generated from enum value: LINK_OTP = 3;
120
+ */
121
+ LINK_OTP = 3,
122
+ }
123
+ // Retrieve enum metadata with: proto3.getEnumType(PasswordlessType)
124
+ proto3.util.setEnumType(PasswordlessType, "scalekit.v1.connections.PasswordlessType", [
125
+ { no: 0, name: "PasswordlessType_UNSPECIFIED" },
126
+ { no: 1, name: "LINK" },
127
+ { no: 2, name: "OTP" },
128
+ { no: 3, name: "LINK_OTP" },
129
+ ]);
130
+
131
+ /**
132
+ * @generated from enum scalekit.v1.connections.TestResultStatus
133
+ */
134
+ export enum TestResultStatus {
135
+ /**
136
+ * @generated from enum value: PENDING = 0;
137
+ */
138
+ PENDING = 0,
139
+
140
+ /**
141
+ * @generated from enum value: SUCCESS = 1;
142
+ */
143
+ SUCCESS = 1,
144
+
145
+ /**
146
+ * @generated from enum value: FAILURE = 2;
147
+ */
148
+ FAILURE = 2,
149
+ }
150
+ // Retrieve enum metadata with: proto3.getEnumType(TestResultStatus)
151
+ proto3.util.setEnumType(TestResultStatus, "scalekit.v1.connections.TestResultStatus", [
152
+ { no: 0, name: "PENDING" },
153
+ { no: 1, name: "SUCCESS" },
154
+ { no: 2, name: "FAILURE" },
155
+ ]);
156
+
73
157
  /**
74
158
  * enums all
75
159
  *
@@ -100,6 +184,11 @@ export enum SAMLSigningOptions {
100
184
  * @generated from enum value: SAML_RESPONSE_ASSERTION_SIGNING = 4;
101
185
  */
102
186
  SAML_RESPONSE_ASSERTION_SIGNING = 4,
187
+
188
+ /**
189
+ * @generated from enum value: SAML_RESPONSE_OR_ASSERTION_SIGNING = 5;
190
+ */
191
+ SAML_RESPONSE_OR_ASSERTION_SIGNING = 5,
103
192
  }
104
193
  // Retrieve enum metadata with: proto3.getEnumType(SAMLSigningOptions)
105
194
  proto3.util.setEnumType(SAMLSigningOptions, "scalekit.v1.connections.SAMLSigningOptions", [
@@ -108,6 +197,7 @@ proto3.util.setEnumType(SAMLSigningOptions, "scalekit.v1.connections.SAMLSigning
108
197
  { no: 2, name: "SAML_ONLY_RESPONSE_SIGNING" },
109
198
  { no: 3, name: "SAML_ONLY_ASSERTION_SIGNING" },
110
199
  { no: 4, name: "SAML_RESPONSE_ASSERTION_SIGNING" },
200
+ { no: 5, name: "SAML_RESPONSE_OR_ASSERTION_SIGNING" },
111
201
  ]);
112
202
 
113
203
  /**
@@ -234,6 +324,11 @@ export enum ConnectionType {
234
324
  * @generated from enum value: OAUTH = 4;
235
325
  */
236
326
  OAUTH = 4,
327
+
328
+ /**
329
+ * @generated from enum value: PASSWORDLESS = 5;
330
+ */
331
+ PASSWORDLESS = 5,
237
332
  }
238
333
  // Retrieve enum metadata with: proto3.getEnumType(ConnectionType)
239
334
  proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType", [
@@ -242,6 +337,7 @@ proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType"
242
337
  { no: 2, name: "SAML" },
243
338
  { no: 3, name: "PASSWORD" },
244
339
  { no: 4, name: "OAUTH" },
340
+ { no: 5, name: "PASSWORDLESS" },
245
341
  ]);
246
342
 
247
343
  /**
@@ -344,6 +440,26 @@ export enum ConnectionProvider {
344
440
  * @generated from enum value: SALESFORCE = 12;
345
441
  */
346
442
  SALESFORCE = 12,
443
+
444
+ /**
445
+ * @generated from enum value: MICROSOFT = 13;
446
+ */
447
+ MICROSOFT = 13,
448
+
449
+ /**
450
+ * @generated from enum value: IDP_SIMULATOR = 14;
451
+ */
452
+ IDP_SIMULATOR = 14,
453
+
454
+ /**
455
+ * @generated from enum value: SCALEKIT = 15;
456
+ */
457
+ SCALEKIT = 15,
458
+
459
+ /**
460
+ * @generated from enum value: ADFS = 16;
461
+ */
462
+ ADFS = 16,
347
463
  }
348
464
  // Retrieve enum metadata with: proto3.getEnumType(ConnectionProvider)
349
465
  proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.ConnectionProvider", [
@@ -360,6 +476,10 @@ proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.ConnectionP
360
476
  { no: 10, name: "GITLAB" },
361
477
  { no: 11, name: "LINKEDIN" },
362
478
  { no: 12, name: "SALESFORCE" },
479
+ { no: 13, name: "MICROSOFT" },
480
+ { no: 14, name: "IDP_SIMULATOR" },
481
+ { no: 15, name: "SCALEKIT" },
482
+ { no: 16, name: "ADFS" },
363
483
  ]);
364
484
 
365
485
  /**
@@ -692,6 +812,12 @@ export class Connection extends Message<Connection> {
692
812
  */
693
813
  value: OAuthConnectionConfig;
694
814
  case: "oauthConfig";
815
+ } | {
816
+ /**
817
+ * @generated from field: scalekit.v1.connections.PasswordLessConfig passwordless_config = 22;
818
+ */
819
+ value: PasswordLessConfig;
820
+ case: "passwordlessConfig";
695
821
  } | { case: undefined; value?: undefined } = { case: undefined };
696
822
 
697
823
  /**
@@ -723,6 +849,7 @@ export class Connection extends Message<Connection> {
723
849
  { no: 18, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
724
850
  { no: 19, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
725
851
  { no: 20, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
852
+ { no: 22, name: "passwordless_config", kind: "message", T: PasswordLessConfig, oneof: "settings" },
726
853
  { no: 21, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
727
854
  ]);
728
855
 
@@ -927,6 +1054,12 @@ export class UpdateConnection extends Message<UpdateConnection> {
927
1054
  */
928
1055
  value: OAuthConnectionConfig;
929
1056
  case: "oauthConfig";
1057
+ } | {
1058
+ /**
1059
+ * @generated from field: scalekit.v1.connections.PasswordLessConfig passwordless_config = 20;
1060
+ */
1061
+ value: PasswordLessConfig;
1062
+ case: "passwordlessConfig";
930
1063
  } | { case: undefined; value?: undefined } = { case: undefined };
931
1064
 
932
1065
  /**
@@ -951,6 +1084,7 @@ export class UpdateConnection extends Message<UpdateConnection> {
951
1084
  { no: 16, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
952
1085
  { no: 17, name: "saml_config", kind: "message", T: SAMLConnectionConfigRequest, oneof: "settings" },
953
1086
  { no: 18, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
1087
+ { no: 20, name: "passwordless_config", kind: "message", T: PasswordLessConfig, oneof: "settings" },
954
1088
  { no: 19, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
955
1089
  ]);
956
1090
 
@@ -1330,6 +1464,16 @@ export class ListConnection extends Message<ListConnection> {
1330
1464
  */
1331
1465
  uiButtonTitle = "";
1332
1466
 
1467
+ /**
1468
+ * @generated from field: repeated string domains = 8;
1469
+ */
1470
+ domains: string[] = [];
1471
+
1472
+ /**
1473
+ * @generated from field: string organization_name = 9;
1474
+ */
1475
+ organizationName = "";
1476
+
1333
1477
  constructor(data?: PartialMessage<ListConnection>) {
1334
1478
  super();
1335
1479
  proto3.util.initPartial(data, this);
@@ -1345,6 +1489,8 @@ export class ListConnection extends Message<ListConnection> {
1345
1489
  { no: 5, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1346
1490
  { no: 6, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1347
1491
  { no: 7, name: "ui_button_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1492
+ { no: 8, name: "domains", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1493
+ { no: 9, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1348
1494
  ]);
1349
1495
 
1350
1496
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListConnection {
@@ -1364,6 +1510,226 @@ export class ListConnection extends Message<ListConnection> {
1364
1510
  }
1365
1511
  }
1366
1512
 
1513
+ /**
1514
+ * @generated from message scalekit.v1.connections.ListOrganizationConnectionsRequest
1515
+ */
1516
+ export class ListOrganizationConnectionsRequest extends Message<ListOrganizationConnectionsRequest> {
1517
+ /**
1518
+ * @generated from field: uint32 page_size = 1;
1519
+ */
1520
+ pageSize = 0;
1521
+
1522
+ /**
1523
+ * @generated from field: string page_token = 2;
1524
+ */
1525
+ pageToken = "";
1526
+
1527
+ constructor(data?: PartialMessage<ListOrganizationConnectionsRequest>) {
1528
+ super();
1529
+ proto3.util.initPartial(data, this);
1530
+ }
1531
+
1532
+ static readonly runtime: typeof proto3 = proto3;
1533
+ static readonly typeName = "scalekit.v1.connections.ListOrganizationConnectionsRequest";
1534
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1535
+ { no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1536
+ { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1537
+ ]);
1538
+
1539
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationConnectionsRequest {
1540
+ return new ListOrganizationConnectionsRequest().fromBinary(bytes, options);
1541
+ }
1542
+
1543
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationConnectionsRequest {
1544
+ return new ListOrganizationConnectionsRequest().fromJson(jsonValue, options);
1545
+ }
1546
+
1547
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationConnectionsRequest {
1548
+ return new ListOrganizationConnectionsRequest().fromJsonString(jsonString, options);
1549
+ }
1550
+
1551
+ static equals(a: ListOrganizationConnectionsRequest | PlainMessage<ListOrganizationConnectionsRequest> | undefined, b: ListOrganizationConnectionsRequest | PlainMessage<ListOrganizationConnectionsRequest> | undefined): boolean {
1552
+ return proto3.util.equals(ListOrganizationConnectionsRequest, a, b);
1553
+ }
1554
+ }
1555
+
1556
+ /**
1557
+ * @generated from message scalekit.v1.connections.ListOrganizationConnectionsResponse
1558
+ */
1559
+ export class ListOrganizationConnectionsResponse extends Message<ListOrganizationConnectionsResponse> {
1560
+ /**
1561
+ * @generated from field: string next_page_token = 1;
1562
+ */
1563
+ nextPageToken = "";
1564
+
1565
+ /**
1566
+ * @generated from field: uint32 total_size = 2;
1567
+ */
1568
+ totalSize = 0;
1569
+
1570
+ /**
1571
+ * @generated from field: string prev_page_token = 3;
1572
+ */
1573
+ prevPageToken = "";
1574
+
1575
+ /**
1576
+ * @generated from field: repeated scalekit.v1.connections.ListConnection connections = 4;
1577
+ */
1578
+ connections: ListConnection[] = [];
1579
+
1580
+ constructor(data?: PartialMessage<ListOrganizationConnectionsResponse>) {
1581
+ super();
1582
+ proto3.util.initPartial(data, this);
1583
+ }
1584
+
1585
+ static readonly runtime: typeof proto3 = proto3;
1586
+ static readonly typeName = "scalekit.v1.connections.ListOrganizationConnectionsResponse";
1587
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1588
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1589
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1590
+ { no: 3, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1591
+ { no: 4, name: "connections", kind: "message", T: ListConnection, repeated: true },
1592
+ ]);
1593
+
1594
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationConnectionsResponse {
1595
+ return new ListOrganizationConnectionsResponse().fromBinary(bytes, options);
1596
+ }
1597
+
1598
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationConnectionsResponse {
1599
+ return new ListOrganizationConnectionsResponse().fromJson(jsonValue, options);
1600
+ }
1601
+
1602
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationConnectionsResponse {
1603
+ return new ListOrganizationConnectionsResponse().fromJsonString(jsonString, options);
1604
+ }
1605
+
1606
+ static equals(a: ListOrganizationConnectionsResponse | PlainMessage<ListOrganizationConnectionsResponse> | undefined, b: ListOrganizationConnectionsResponse | PlainMessage<ListOrganizationConnectionsResponse> | undefined): boolean {
1607
+ return proto3.util.equals(ListOrganizationConnectionsResponse, a, b);
1608
+ }
1609
+ }
1610
+
1611
+ /**
1612
+ * @generated from message scalekit.v1.connections.SearchOrganizationConnectionsRequest
1613
+ */
1614
+ export class SearchOrganizationConnectionsRequest extends Message<SearchOrganizationConnectionsRequest> {
1615
+ /**
1616
+ * @generated from field: optional string query = 1;
1617
+ */
1618
+ query?: string;
1619
+
1620
+ /**
1621
+ * @generated from field: optional scalekit.v1.connections.ConnectionProvider provider = 2;
1622
+ */
1623
+ provider?: ConnectionProvider;
1624
+
1625
+ /**
1626
+ * @generated from field: optional scalekit.v1.connections.ConnectionStatus status = 3;
1627
+ */
1628
+ status?: ConnectionStatus;
1629
+
1630
+ /**
1631
+ * @generated from field: optional scalekit.v1.connections.ConnectionType connection_type = 4;
1632
+ */
1633
+ connectionType?: ConnectionType;
1634
+
1635
+ /**
1636
+ * @generated from field: uint32 page_size = 5;
1637
+ */
1638
+ pageSize = 0;
1639
+
1640
+ /**
1641
+ * @generated from field: string page_token = 6;
1642
+ */
1643
+ pageToken = "";
1644
+
1645
+ constructor(data?: PartialMessage<SearchOrganizationConnectionsRequest>) {
1646
+ super();
1647
+ proto3.util.initPartial(data, this);
1648
+ }
1649
+
1650
+ static readonly runtime: typeof proto3 = proto3;
1651
+ static readonly typeName = "scalekit.v1.connections.SearchOrganizationConnectionsRequest";
1652
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1653
+ { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1654
+ { no: 2, name: "provider", kind: "enum", T: proto3.getEnumType(ConnectionProvider), opt: true },
1655
+ { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ConnectionStatus), opt: true },
1656
+ { no: 4, name: "connection_type", kind: "enum", T: proto3.getEnumType(ConnectionType), opt: true },
1657
+ { no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1658
+ { no: 6, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1659
+ ]);
1660
+
1661
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationConnectionsRequest {
1662
+ return new SearchOrganizationConnectionsRequest().fromBinary(bytes, options);
1663
+ }
1664
+
1665
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationConnectionsRequest {
1666
+ return new SearchOrganizationConnectionsRequest().fromJson(jsonValue, options);
1667
+ }
1668
+
1669
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationConnectionsRequest {
1670
+ return new SearchOrganizationConnectionsRequest().fromJsonString(jsonString, options);
1671
+ }
1672
+
1673
+ static equals(a: SearchOrganizationConnectionsRequest | PlainMessage<SearchOrganizationConnectionsRequest> | undefined, b: SearchOrganizationConnectionsRequest | PlainMessage<SearchOrganizationConnectionsRequest> | undefined): boolean {
1674
+ return proto3.util.equals(SearchOrganizationConnectionsRequest, a, b);
1675
+ }
1676
+ }
1677
+
1678
+ /**
1679
+ * @generated from message scalekit.v1.connections.SearchOrganizationConnectionsResponse
1680
+ */
1681
+ export class SearchOrganizationConnectionsResponse extends Message<SearchOrganizationConnectionsResponse> {
1682
+ /**
1683
+ * @generated from field: string next_page_token = 1;
1684
+ */
1685
+ nextPageToken = "";
1686
+
1687
+ /**
1688
+ * @generated from field: uint32 total_size = 2;
1689
+ */
1690
+ totalSize = 0;
1691
+
1692
+ /**
1693
+ * @generated from field: string prev_page_token = 3;
1694
+ */
1695
+ prevPageToken = "";
1696
+
1697
+ /**
1698
+ * @generated from field: repeated scalekit.v1.connections.ListConnection connections = 4;
1699
+ */
1700
+ connections: ListConnection[] = [];
1701
+
1702
+ constructor(data?: PartialMessage<SearchOrganizationConnectionsResponse>) {
1703
+ super();
1704
+ proto3.util.initPartial(data, this);
1705
+ }
1706
+
1707
+ static readonly runtime: typeof proto3 = proto3;
1708
+ static readonly typeName = "scalekit.v1.connections.SearchOrganizationConnectionsResponse";
1709
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1710
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1711
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1712
+ { no: 3, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1713
+ { no: 4, name: "connections", kind: "message", T: ListConnection, repeated: true },
1714
+ ]);
1715
+
1716
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationConnectionsResponse {
1717
+ return new SearchOrganizationConnectionsResponse().fromBinary(bytes, options);
1718
+ }
1719
+
1720
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationConnectionsResponse {
1721
+ return new SearchOrganizationConnectionsResponse().fromJson(jsonValue, options);
1722
+ }
1723
+
1724
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationConnectionsResponse {
1725
+ return new SearchOrganizationConnectionsResponse().fromJsonString(jsonString, options);
1726
+ }
1727
+
1728
+ static equals(a: SearchOrganizationConnectionsResponse | PlainMessage<SearchOrganizationConnectionsResponse> | undefined, b: SearchOrganizationConnectionsResponse | PlainMessage<SearchOrganizationConnectionsResponse> | undefined): boolean {
1729
+ return proto3.util.equals(SearchOrganizationConnectionsResponse, a, b);
1730
+ }
1731
+ }
1732
+
1367
1733
  /**
1368
1734
  * @generated from message scalekit.v1.connections.ToggleEnvironmentConnectionRequest
1369
1735
  */
@@ -1551,6 +1917,21 @@ export class OIDCConnectionConfig extends Message<OIDCConnectionConfig> {
1551
1917
  */
1552
1918
  pkceEnabled?: boolean;
1553
1919
 
1920
+ /**
1921
+ * @generated from field: google.protobuf.BoolValue idp_logout_required = 14;
1922
+ */
1923
+ idpLogoutRequired?: boolean;
1924
+
1925
+ /**
1926
+ * @generated from field: google.protobuf.StringValue post_logout_redirect_uri = 15;
1927
+ */
1928
+ postLogoutRedirectUri?: string;
1929
+
1930
+ /**
1931
+ * @generated from field: google.protobuf.StringValue backchannel_logout_redirect_uri = 16;
1932
+ */
1933
+ backchannelLogoutRedirectUri?: string;
1934
+
1554
1935
  constructor(data?: PartialMessage<OIDCConnectionConfig>) {
1555
1936
  super();
1556
1937
  proto3.util.initPartial(data, this);
@@ -1571,6 +1952,9 @@ export class OIDCConnectionConfig extends Message<OIDCConnectionConfig> {
1571
1952
  { no: 11, name: "token_auth_type", kind: "enum", T: proto3.getEnumType(TokenAuthType) },
1572
1953
  { no: 12, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1573
1954
  { no: 13, name: "pkce_enabled", kind: "message", T: BoolValue },
1955
+ { no: 14, name: "idp_logout_required", kind: "message", T: BoolValue },
1956
+ { no: 15, name: "post_logout_redirect_uri", kind: "message", T: StringValue },
1957
+ { no: 16, name: "backchannel_logout_redirect_uri", kind: "message", T: StringValue },
1574
1958
  ]);
1575
1959
 
1576
1960
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OIDCConnectionConfig {
@@ -1634,6 +2018,16 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
1634
2018
  */
1635
2019
  pkceEnabled?: boolean;
1636
2020
 
2021
+ /**
2022
+ * @generated from field: google.protobuf.StringValue prompt = 14;
2023
+ */
2024
+ prompt?: string;
2025
+
2026
+ /**
2027
+ * @generated from field: google.protobuf.BoolValue use_platform_creds = 15;
2028
+ */
2029
+ usePlatformCreds?: boolean;
2030
+
1637
2031
  constructor(data?: PartialMessage<OAuthConnectionConfig>) {
1638
2032
  super();
1639
2033
  proto3.util.initPartial(data, this);
@@ -1650,6 +2044,8 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
1650
2044
  { no: 10, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1651
2045
  { no: 12, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1652
2046
  { no: 13, name: "pkce_enabled", kind: "message", T: BoolValue },
2047
+ { no: 14, name: "prompt", kind: "message", T: StringValue },
2048
+ { no: 15, name: "use_platform_creds", kind: "message", T: BoolValue },
1653
2049
  ]);
1654
2050
 
1655
2051
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthConnectionConfig {
@@ -1669,6 +2065,73 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
1669
2065
  }
1670
2066
  }
1671
2067
 
2068
+ /**
2069
+ * @generated from message scalekit.v1.connections.PasswordLessConfig
2070
+ */
2071
+ export class PasswordLessConfig extends Message<PasswordLessConfig> {
2072
+ /**
2073
+ * @generated from field: scalekit.v1.connections.PasswordlessType type = 1;
2074
+ */
2075
+ type = PasswordlessType.PasswordlessType_UNSPECIFIED;
2076
+
2077
+ /**
2078
+ * @generated from field: optional google.protobuf.UInt32Value frequency = 2;
2079
+ */
2080
+ frequency?: number;
2081
+
2082
+ /**
2083
+ * @generated from field: optional google.protobuf.UInt32Value validity = 3;
2084
+ */
2085
+ validity?: number;
2086
+
2087
+ /**
2088
+ * @generated from field: optional google.protobuf.BoolValue enforce_same_browser_origin = 4;
2089
+ */
2090
+ enforceSameBrowserOrigin?: boolean;
2091
+
2092
+ /**
2093
+ * @generated from field: optional google.protobuf.UInt32Value code_challenge_length = 5;
2094
+ */
2095
+ codeChallengeLength?: number;
2096
+
2097
+ /**
2098
+ * @generated from field: optional scalekit.v1.connections.CodeChallengeType code_challenge_type = 6;
2099
+ */
2100
+ codeChallengeType?: CodeChallengeType;
2101
+
2102
+ constructor(data?: PartialMessage<PasswordLessConfig>) {
2103
+ super();
2104
+ proto3.util.initPartial(data, this);
2105
+ }
2106
+
2107
+ static readonly runtime: typeof proto3 = proto3;
2108
+ static readonly typeName = "scalekit.v1.connections.PasswordLessConfig";
2109
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2110
+ { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(PasswordlessType) },
2111
+ { no: 2, name: "frequency", kind: "message", T: UInt32Value, opt: true },
2112
+ { no: 3, name: "validity", kind: "message", T: UInt32Value, opt: true },
2113
+ { no: 4, name: "enforce_same_browser_origin", kind: "message", T: BoolValue, opt: true },
2114
+ { no: 5, name: "code_challenge_length", kind: "message", T: UInt32Value, opt: true },
2115
+ { no: 6, name: "code_challenge_type", kind: "enum", T: proto3.getEnumType(CodeChallengeType), opt: true },
2116
+ ]);
2117
+
2118
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PasswordLessConfig {
2119
+ return new PasswordLessConfig().fromBinary(bytes, options);
2120
+ }
2121
+
2122
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PasswordLessConfig {
2123
+ return new PasswordLessConfig().fromJson(jsonValue, options);
2124
+ }
2125
+
2126
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PasswordLessConfig {
2127
+ return new PasswordLessConfig().fromJsonString(jsonString, options);
2128
+ }
2129
+
2130
+ static equals(a: PasswordLessConfig | PlainMessage<PasswordLessConfig> | undefined, b: PasswordLessConfig | PlainMessage<PasswordLessConfig> | undefined): boolean {
2131
+ return proto3.util.equals(PasswordLessConfig, a, b);
2132
+ }
2133
+ }
2134
+
1672
2135
  /**
1673
2136
  * @generated from message scalekit.v1.connections.SAMLConnectionConfigRequest
1674
2137
  */
@@ -1743,6 +2206,16 @@ export class SAMLConnectionConfigRequest extends Message<SAMLConnectionConfigReq
1743
2206
  */
1744
2207
  wantRequestSigned?: boolean;
1745
2208
 
2209
+ /**
2210
+ * @generated from field: google.protobuf.StringValue certificate_id = 18;
2211
+ */
2212
+ certificateId?: string;
2213
+
2214
+ /**
2215
+ * @generated from field: google.protobuf.BoolValue idp_slo_required = 19;
2216
+ */
2217
+ idpSloRequired?: boolean;
2218
+
1746
2219
  constructor(data?: PartialMessage<SAMLConnectionConfigRequest>) {
1747
2220
  super();
1748
2221
  proto3.util.initPartial(data, this);
@@ -1765,6 +2238,8 @@ export class SAMLConnectionConfigRequest extends Message<SAMLConnectionConfigReq
1765
2238
  { no: 15, name: "default_redirect_uri", kind: "message", T: StringValue },
1766
2239
  { no: 16, name: "assertion_encrypted", kind: "message", T: BoolValue },
1767
2240
  { no: 17, name: "want_request_signed", kind: "message", T: BoolValue },
2241
+ { no: 18, name: "certificate_id", kind: "message", T: StringValue },
2242
+ { no: 19, name: "idp_slo_required", kind: "message", T: BoolValue },
1768
2243
  ]);
1769
2244
 
1770
2245
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SAMLConnectionConfigRequest {
@@ -1878,6 +2353,21 @@ export class SAMLConnectionConfigResponse extends Message<SAMLConnectionConfigRe
1878
2353
  */
1879
2354
  wantRequestSigned?: boolean;
1880
2355
 
2356
+ /**
2357
+ * @generated from field: google.protobuf.StringValue certificate_id = 19;
2358
+ */
2359
+ certificateId?: string;
2360
+
2361
+ /**
2362
+ * @generated from field: google.protobuf.BoolValue idp_slo_required = 20;
2363
+ */
2364
+ idpSloRequired?: boolean;
2365
+
2366
+ /**
2367
+ * @generated from field: google.protobuf.StringValue sp_slo_url = 21;
2368
+ */
2369
+ spSloUrl?: string;
2370
+
1881
2371
  constructor(data?: PartialMessage<SAMLConnectionConfigResponse>) {
1882
2372
  super();
1883
2373
  proto3.util.initPartial(data, this);
@@ -1904,6 +2394,9 @@ export class SAMLConnectionConfigResponse extends Message<SAMLConnectionConfigRe
1904
2394
  { no: 16, name: "default_redirect_uri", kind: "message", T: StringValue },
1905
2395
  { no: 17, name: "assertion_encrypted", kind: "message", T: BoolValue },
1906
2396
  { no: 18, name: "want_request_signed", kind: "message", T: BoolValue },
2397
+ { no: 19, name: "certificate_id", kind: "message", T: StringValue },
2398
+ { no: 20, name: "idp_slo_required", kind: "message", T: BoolValue },
2399
+ { no: 21, name: "sp_slo_url", kind: "message", T: StringValue },
1907
2400
  ]);
1908
2401
 
1909
2402
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SAMLConnectionConfigResponse {
@@ -2401,6 +2894,110 @@ export class GetSAMLCertificateDetailsResponse extends Message<GetSAMLCertificat
2401
2894
  }
2402
2895
  }
2403
2896
 
2897
+ /**
2898
+ * @generated from message scalekit.v1.connections.GetConnectionTestResultRequest
2899
+ */
2900
+ export class GetConnectionTestResultRequest extends Message<GetConnectionTestResultRequest> {
2901
+ /**
2902
+ * @generated from field: string connection_id = 1;
2903
+ */
2904
+ connectionId = "";
2905
+
2906
+ /**
2907
+ * @generated from field: string test_request_id = 2;
2908
+ */
2909
+ testRequestId = "";
2910
+
2911
+ constructor(data?: PartialMessage<GetConnectionTestResultRequest>) {
2912
+ super();
2913
+ proto3.util.initPartial(data, this);
2914
+ }
2915
+
2916
+ static readonly runtime: typeof proto3 = proto3;
2917
+ static readonly typeName = "scalekit.v1.connections.GetConnectionTestResultRequest";
2918
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2919
+ { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2920
+ { no: 2, name: "test_request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2921
+ ]);
2922
+
2923
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConnectionTestResultRequest {
2924
+ return new GetConnectionTestResultRequest().fromBinary(bytes, options);
2925
+ }
2926
+
2927
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConnectionTestResultRequest {
2928
+ return new GetConnectionTestResultRequest().fromJson(jsonValue, options);
2929
+ }
2930
+
2931
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConnectionTestResultRequest {
2932
+ return new GetConnectionTestResultRequest().fromJsonString(jsonString, options);
2933
+ }
2934
+
2935
+ static equals(a: GetConnectionTestResultRequest | PlainMessage<GetConnectionTestResultRequest> | undefined, b: GetConnectionTestResultRequest | PlainMessage<GetConnectionTestResultRequest> | undefined): boolean {
2936
+ return proto3.util.equals(GetConnectionTestResultRequest, a, b);
2937
+ }
2938
+ }
2939
+
2940
+ /**
2941
+ * @generated from message scalekit.v1.connections.GetConnectionTestResultResponse
2942
+ */
2943
+ export class GetConnectionTestResultResponse extends Message<GetConnectionTestResultResponse> {
2944
+ /**
2945
+ * @generated from field: scalekit.v1.connections.TestResultStatus status = 1;
2946
+ */
2947
+ status = TestResultStatus.PENDING;
2948
+
2949
+ /**
2950
+ * @generated from field: optional string user_info = 2;
2951
+ */
2952
+ userInfo?: string;
2953
+
2954
+ /**
2955
+ * @generated from field: optional string error = 3;
2956
+ */
2957
+ error?: string;
2958
+
2959
+ /**
2960
+ * @generated from field: optional string error_description = 4;
2961
+ */
2962
+ errorDescription?: string;
2963
+
2964
+ /**
2965
+ * @generated from field: optional string error_details = 5;
2966
+ */
2967
+ errorDetails?: string;
2968
+
2969
+ constructor(data?: PartialMessage<GetConnectionTestResultResponse>) {
2970
+ super();
2971
+ proto3.util.initPartial(data, this);
2972
+ }
2973
+
2974
+ static readonly runtime: typeof proto3 = proto3;
2975
+ static readonly typeName = "scalekit.v1.connections.GetConnectionTestResultResponse";
2976
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2977
+ { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(TestResultStatus) },
2978
+ { no: 2, name: "user_info", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2979
+ { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2980
+ { no: 4, name: "error_description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2981
+ { no: 5, name: "error_details", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2982
+ ]);
2983
+
2984
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConnectionTestResultResponse {
2985
+ return new GetConnectionTestResultResponse().fromBinary(bytes, options);
2986
+ }
2987
+
2988
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConnectionTestResultResponse {
2989
+ return new GetConnectionTestResultResponse().fromJson(jsonValue, options);
2990
+ }
2991
+
2992
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConnectionTestResultResponse {
2993
+ return new GetConnectionTestResultResponse().fromJsonString(jsonString, options);
2994
+ }
2995
+
2996
+ static equals(a: GetConnectionTestResultResponse | PlainMessage<GetConnectionTestResultResponse> | undefined, b: GetConnectionTestResultResponse | PlainMessage<GetConnectionTestResultResponse> | undefined): boolean {
2997
+ return proto3.util.equals(GetConnectionTestResultResponse, a, b);
2998
+ }
2999
+ }
3000
+
2404
3001
  /**
2405
3002
  * @generated from message scalekit.v1.connections.PasswordConnectionConfig
2406
3003
  */