@scalekit-sdk/node 1.0.9 → 1.0.11

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 +249 -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 +10 -1
  15. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +9 -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 +225 -3
  18. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +228 -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 +10 -1
  50. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +366 -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
 
@@ -1551,6 +1685,21 @@ export class OIDCConnectionConfig extends Message<OIDCConnectionConfig> {
1551
1685
  */
1552
1686
  pkceEnabled?: boolean;
1553
1687
 
1688
+ /**
1689
+ * @generated from field: google.protobuf.BoolValue idp_logout_required = 14;
1690
+ */
1691
+ idpLogoutRequired?: boolean;
1692
+
1693
+ /**
1694
+ * @generated from field: google.protobuf.StringValue post_logout_redirect_uri = 15;
1695
+ */
1696
+ postLogoutRedirectUri?: string;
1697
+
1698
+ /**
1699
+ * @generated from field: google.protobuf.StringValue backchannel_logout_redirect_uri = 16;
1700
+ */
1701
+ backchannelLogoutRedirectUri?: string;
1702
+
1554
1703
  constructor(data?: PartialMessage<OIDCConnectionConfig>) {
1555
1704
  super();
1556
1705
  proto3.util.initPartial(data, this);
@@ -1571,6 +1720,9 @@ export class OIDCConnectionConfig extends Message<OIDCConnectionConfig> {
1571
1720
  { no: 11, name: "token_auth_type", kind: "enum", T: proto3.getEnumType(TokenAuthType) },
1572
1721
  { no: 12, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1573
1722
  { no: 13, name: "pkce_enabled", kind: "message", T: BoolValue },
1723
+ { no: 14, name: "idp_logout_required", kind: "message", T: BoolValue },
1724
+ { no: 15, name: "post_logout_redirect_uri", kind: "message", T: StringValue },
1725
+ { no: 16, name: "backchannel_logout_redirect_uri", kind: "message", T: StringValue },
1574
1726
  ]);
1575
1727
 
1576
1728
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OIDCConnectionConfig {
@@ -1634,6 +1786,16 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
1634
1786
  */
1635
1787
  pkceEnabled?: boolean;
1636
1788
 
1789
+ /**
1790
+ * @generated from field: google.protobuf.StringValue prompt = 14;
1791
+ */
1792
+ prompt?: string;
1793
+
1794
+ /**
1795
+ * @generated from field: google.protobuf.BoolValue use_platform_creds = 15;
1796
+ */
1797
+ usePlatformCreds?: boolean;
1798
+
1637
1799
  constructor(data?: PartialMessage<OAuthConnectionConfig>) {
1638
1800
  super();
1639
1801
  proto3.util.initPartial(data, this);
@@ -1650,6 +1812,8 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
1650
1812
  { no: 10, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1651
1813
  { no: 12, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1652
1814
  { no: 13, name: "pkce_enabled", kind: "message", T: BoolValue },
1815
+ { no: 14, name: "prompt", kind: "message", T: StringValue },
1816
+ { no: 15, name: "use_platform_creds", kind: "message", T: BoolValue },
1653
1817
  ]);
1654
1818
 
1655
1819
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthConnectionConfig {
@@ -1669,6 +1833,73 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
1669
1833
  }
1670
1834
  }
1671
1835
 
1836
+ /**
1837
+ * @generated from message scalekit.v1.connections.PasswordLessConfig
1838
+ */
1839
+ export class PasswordLessConfig extends Message<PasswordLessConfig> {
1840
+ /**
1841
+ * @generated from field: scalekit.v1.connections.PasswordlessType type = 1;
1842
+ */
1843
+ type = PasswordlessType.PasswordlessType_UNSPECIFIED;
1844
+
1845
+ /**
1846
+ * @generated from field: optional google.protobuf.UInt32Value frequency = 2;
1847
+ */
1848
+ frequency?: number;
1849
+
1850
+ /**
1851
+ * @generated from field: optional google.protobuf.UInt32Value validity = 3;
1852
+ */
1853
+ validity?: number;
1854
+
1855
+ /**
1856
+ * @generated from field: optional google.protobuf.BoolValue enforce_same_browser_origin = 4;
1857
+ */
1858
+ enforceSameBrowserOrigin?: boolean;
1859
+
1860
+ /**
1861
+ * @generated from field: optional google.protobuf.UInt32Value code_challenge_length = 5;
1862
+ */
1863
+ codeChallengeLength?: number;
1864
+
1865
+ /**
1866
+ * @generated from field: optional scalekit.v1.connections.CodeChallengeType code_challenge_type = 6;
1867
+ */
1868
+ codeChallengeType?: CodeChallengeType;
1869
+
1870
+ constructor(data?: PartialMessage<PasswordLessConfig>) {
1871
+ super();
1872
+ proto3.util.initPartial(data, this);
1873
+ }
1874
+
1875
+ static readonly runtime: typeof proto3 = proto3;
1876
+ static readonly typeName = "scalekit.v1.connections.PasswordLessConfig";
1877
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1878
+ { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(PasswordlessType) },
1879
+ { no: 2, name: "frequency", kind: "message", T: UInt32Value, opt: true },
1880
+ { no: 3, name: "validity", kind: "message", T: UInt32Value, opt: true },
1881
+ { no: 4, name: "enforce_same_browser_origin", kind: "message", T: BoolValue, opt: true },
1882
+ { no: 5, name: "code_challenge_length", kind: "message", T: UInt32Value, opt: true },
1883
+ { no: 6, name: "code_challenge_type", kind: "enum", T: proto3.getEnumType(CodeChallengeType), opt: true },
1884
+ ]);
1885
+
1886
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PasswordLessConfig {
1887
+ return new PasswordLessConfig().fromBinary(bytes, options);
1888
+ }
1889
+
1890
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PasswordLessConfig {
1891
+ return new PasswordLessConfig().fromJson(jsonValue, options);
1892
+ }
1893
+
1894
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PasswordLessConfig {
1895
+ return new PasswordLessConfig().fromJsonString(jsonString, options);
1896
+ }
1897
+
1898
+ static equals(a: PasswordLessConfig | PlainMessage<PasswordLessConfig> | undefined, b: PasswordLessConfig | PlainMessage<PasswordLessConfig> | undefined): boolean {
1899
+ return proto3.util.equals(PasswordLessConfig, a, b);
1900
+ }
1901
+ }
1902
+
1672
1903
  /**
1673
1904
  * @generated from message scalekit.v1.connections.SAMLConnectionConfigRequest
1674
1905
  */
@@ -1743,6 +1974,16 @@ export class SAMLConnectionConfigRequest extends Message<SAMLConnectionConfigReq
1743
1974
  */
1744
1975
  wantRequestSigned?: boolean;
1745
1976
 
1977
+ /**
1978
+ * @generated from field: google.protobuf.StringValue certificate_id = 18;
1979
+ */
1980
+ certificateId?: string;
1981
+
1982
+ /**
1983
+ * @generated from field: google.protobuf.BoolValue idp_slo_required = 19;
1984
+ */
1985
+ idpSloRequired?: boolean;
1986
+
1746
1987
  constructor(data?: PartialMessage<SAMLConnectionConfigRequest>) {
1747
1988
  super();
1748
1989
  proto3.util.initPartial(data, this);
@@ -1765,6 +2006,8 @@ export class SAMLConnectionConfigRequest extends Message<SAMLConnectionConfigReq
1765
2006
  { no: 15, name: "default_redirect_uri", kind: "message", T: StringValue },
1766
2007
  { no: 16, name: "assertion_encrypted", kind: "message", T: BoolValue },
1767
2008
  { no: 17, name: "want_request_signed", kind: "message", T: BoolValue },
2009
+ { no: 18, name: "certificate_id", kind: "message", T: StringValue },
2010
+ { no: 19, name: "idp_slo_required", kind: "message", T: BoolValue },
1768
2011
  ]);
1769
2012
 
1770
2013
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SAMLConnectionConfigRequest {
@@ -1878,6 +2121,21 @@ export class SAMLConnectionConfigResponse extends Message<SAMLConnectionConfigRe
1878
2121
  */
1879
2122
  wantRequestSigned?: boolean;
1880
2123
 
2124
+ /**
2125
+ * @generated from field: google.protobuf.StringValue certificate_id = 19;
2126
+ */
2127
+ certificateId?: string;
2128
+
2129
+ /**
2130
+ * @generated from field: google.protobuf.BoolValue idp_slo_required = 20;
2131
+ */
2132
+ idpSloRequired?: boolean;
2133
+
2134
+ /**
2135
+ * @generated from field: google.protobuf.StringValue sp_slo_url = 21;
2136
+ */
2137
+ spSloUrl?: string;
2138
+
1881
2139
  constructor(data?: PartialMessage<SAMLConnectionConfigResponse>) {
1882
2140
  super();
1883
2141
  proto3.util.initPartial(data, this);
@@ -1904,6 +2162,9 @@ export class SAMLConnectionConfigResponse extends Message<SAMLConnectionConfigRe
1904
2162
  { no: 16, name: "default_redirect_uri", kind: "message", T: StringValue },
1905
2163
  { no: 17, name: "assertion_encrypted", kind: "message", T: BoolValue },
1906
2164
  { no: 18, name: "want_request_signed", kind: "message", T: BoolValue },
2165
+ { no: 19, name: "certificate_id", kind: "message", T: StringValue },
2166
+ { no: 20, name: "idp_slo_required", kind: "message", T: BoolValue },
2167
+ { no: 21, name: "sp_slo_url", kind: "message", T: StringValue },
1907
2168
  ]);
1908
2169
 
1909
2170
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SAMLConnectionConfigResponse {
@@ -2401,6 +2662,110 @@ export class GetSAMLCertificateDetailsResponse extends Message<GetSAMLCertificat
2401
2662
  }
2402
2663
  }
2403
2664
 
2665
+ /**
2666
+ * @generated from message scalekit.v1.connections.GetConnectionTestResultRequest
2667
+ */
2668
+ export class GetConnectionTestResultRequest extends Message<GetConnectionTestResultRequest> {
2669
+ /**
2670
+ * @generated from field: string connection_id = 1;
2671
+ */
2672
+ connectionId = "";
2673
+
2674
+ /**
2675
+ * @generated from field: string test_request_id = 2;
2676
+ */
2677
+ testRequestId = "";
2678
+
2679
+ constructor(data?: PartialMessage<GetConnectionTestResultRequest>) {
2680
+ super();
2681
+ proto3.util.initPartial(data, this);
2682
+ }
2683
+
2684
+ static readonly runtime: typeof proto3 = proto3;
2685
+ static readonly typeName = "scalekit.v1.connections.GetConnectionTestResultRequest";
2686
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2687
+ { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2688
+ { no: 2, name: "test_request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2689
+ ]);
2690
+
2691
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConnectionTestResultRequest {
2692
+ return new GetConnectionTestResultRequest().fromBinary(bytes, options);
2693
+ }
2694
+
2695
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConnectionTestResultRequest {
2696
+ return new GetConnectionTestResultRequest().fromJson(jsonValue, options);
2697
+ }
2698
+
2699
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConnectionTestResultRequest {
2700
+ return new GetConnectionTestResultRequest().fromJsonString(jsonString, options);
2701
+ }
2702
+
2703
+ static equals(a: GetConnectionTestResultRequest | PlainMessage<GetConnectionTestResultRequest> | undefined, b: GetConnectionTestResultRequest | PlainMessage<GetConnectionTestResultRequest> | undefined): boolean {
2704
+ return proto3.util.equals(GetConnectionTestResultRequest, a, b);
2705
+ }
2706
+ }
2707
+
2708
+ /**
2709
+ * @generated from message scalekit.v1.connections.GetConnectionTestResultResponse
2710
+ */
2711
+ export class GetConnectionTestResultResponse extends Message<GetConnectionTestResultResponse> {
2712
+ /**
2713
+ * @generated from field: scalekit.v1.connections.TestResultStatus status = 1;
2714
+ */
2715
+ status = TestResultStatus.PENDING;
2716
+
2717
+ /**
2718
+ * @generated from field: optional string user_info = 2;
2719
+ */
2720
+ userInfo?: string;
2721
+
2722
+ /**
2723
+ * @generated from field: optional string error = 3;
2724
+ */
2725
+ error?: string;
2726
+
2727
+ /**
2728
+ * @generated from field: optional string error_description = 4;
2729
+ */
2730
+ errorDescription?: string;
2731
+
2732
+ /**
2733
+ * @generated from field: optional string error_details = 5;
2734
+ */
2735
+ errorDetails?: string;
2736
+
2737
+ constructor(data?: PartialMessage<GetConnectionTestResultResponse>) {
2738
+ super();
2739
+ proto3.util.initPartial(data, this);
2740
+ }
2741
+
2742
+ static readonly runtime: typeof proto3 = proto3;
2743
+ static readonly typeName = "scalekit.v1.connections.GetConnectionTestResultResponse";
2744
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2745
+ { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(TestResultStatus) },
2746
+ { no: 2, name: "user_info", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2747
+ { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2748
+ { no: 4, name: "error_description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2749
+ { no: 5, name: "error_details", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2750
+ ]);
2751
+
2752
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConnectionTestResultResponse {
2753
+ return new GetConnectionTestResultResponse().fromBinary(bytes, options);
2754
+ }
2755
+
2756
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConnectionTestResultResponse {
2757
+ return new GetConnectionTestResultResponse().fromJson(jsonValue, options);
2758
+ }
2759
+
2760
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConnectionTestResultResponse {
2761
+ return new GetConnectionTestResultResponse().fromJsonString(jsonString, options);
2762
+ }
2763
+
2764
+ static equals(a: GetConnectionTestResultResponse | PlainMessage<GetConnectionTestResultResponse> | undefined, b: GetConnectionTestResultResponse | PlainMessage<GetConnectionTestResultResponse> | undefined): boolean {
2765
+ return proto3.util.equals(GetConnectionTestResultResponse, a, b);
2766
+ }
2767
+ }
2768
+
2404
2769
  /**
2405
2770
  * @generated from message scalekit.v1.connections.PasswordConnectionConfig
2406
2771
  */
@@ -3,8 +3,8 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { AssignRolesRequest, AssignRolesResponse, CreateDirectoryRequest, CreateDirectoryResponse, CreateDirectorySecretRequest, CreateDirectorySecretResponse, GetDirectoryRequest, GetDirectoryResponse, ListDirectoriesRequest, ListDirectoriesResponse, ListDirectoryGroupsRequest, ListDirectoryGroupsResponse, ListDirectoryUsersRequest, ListDirectoryUsersResponse, RegenerateDirectorySecretRequest, RegenerateDirectorySecretResponse, ToggleDirectoryRequest, ToggleDirectoryResponse, UpdateAttributesRequest, UpdateAttributesResponse, UpdateDirectoryRequest, UpdateDirectoryResponse } from "./directories_pb.js";
7
- import { MethodKind } from "@bufbuild/protobuf";
6
+ import { AssignGroupsForDirectoryRequest, AssignRolesRequest, AssignRolesResponse, CreateDirectoryRequest, CreateDirectoryResponse, CreateDirectorySecretRequest, CreateDirectorySecretResponse, DeleteDirectoryRequest, GetDirectoryRequest, GetDirectoryResponse, ListDirectoriesRequest, ListDirectoriesResponse, ListDirectoryGroupsRequest, ListDirectoryGroupsResponse, ListDirectoryGroupsSummaryRequest, ListDirectoryUsersRequest, ListDirectoryUsersResponse, RegenerateDirectorySecretRequest, RegenerateDirectorySecretResponse, ToggleDirectoryRequest, ToggleDirectoryResponse, TriggerDirectorySyncRequest, UpdateAttributesRequest, UpdateAttributesResponse, UpdateDirectoryRequest, UpdateDirectoryResponse } from "./directories_pb.js";
7
+ import { Empty, MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
10
10
  * @generated from service scalekit.v1.directories.DirectoryService
@@ -21,6 +21,15 @@ export const DirectoryService = {
21
21
  O: CreateDirectoryResponse,
22
22
  kind: MethodKind.Unary,
23
23
  },
24
+ /**
25
+ * @generated from rpc scalekit.v1.directories.DirectoryService.DeleteDirectory
26
+ */
27
+ deleteDirectory: {
28
+ name: "DeleteDirectory",
29
+ I: DeleteDirectoryRequest,
30
+ O: Empty,
31
+ kind: MethodKind.Unary,
32
+ },
24
33
  /**
25
34
  * @generated from rpc scalekit.v1.directories.DirectoryService.UpdateDirectory
26
35
  */
@@ -30,6 +39,15 @@ export const DirectoryService = {
30
39
  O: UpdateDirectoryResponse,
31
40
  kind: MethodKind.Unary,
32
41
  },
42
+ /**
43
+ * @generated from rpc scalekit.v1.directories.DirectoryService.AssignGroupsForDirectory
44
+ */
45
+ assignGroupsForDirectory: {
46
+ name: "AssignGroupsForDirectory",
47
+ I: AssignGroupsForDirectoryRequest,
48
+ O: Empty,
49
+ kind: MethodKind.Unary,
50
+ },
33
51
  /**
34
52
  * @generated from rpc scalekit.v1.directories.DirectoryService.AssignRoles
35
53
  */
@@ -102,6 +120,15 @@ export const DirectoryService = {
102
120
  O: ListDirectoryGroupsResponse,
103
121
  kind: MethodKind.Unary,
104
122
  },
123
+ /**
124
+ * @generated from rpc scalekit.v1.directories.DirectoryService.ListDirectoryGroupsSummary
125
+ */
126
+ listDirectoryGroupsSummary: {
127
+ name: "ListDirectoryGroupsSummary",
128
+ I: ListDirectoryGroupsSummaryRequest,
129
+ O: ListDirectoryGroupsResponse,
130
+ kind: MethodKind.Unary,
131
+ },
105
132
  /**
106
133
  * @generated from rpc scalekit.v1.directories.DirectoryService.CreateDirectorySecret
107
134
  */
@@ -120,6 +147,15 @@ export const DirectoryService = {
120
147
  O: RegenerateDirectorySecretResponse,
121
148
  kind: MethodKind.Unary,
122
149
  },
150
+ /**
151
+ * @generated from rpc scalekit.v1.directories.DirectoryService.TriggerDirectorySync
152
+ */
153
+ triggerDirectorySync: {
154
+ name: "TriggerDirectorySync",
155
+ I: TriggerDirectorySyncRequest,
156
+ O: Empty,
157
+ kind: MethodKind.Unary,
158
+ },
123
159
  }
124
160
  } as const;
125
161