@scalekit-sdk/node 2.2.0-beta.1 → 2.2.0-beta.3

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 (88) hide show
  1. package/lib/actions.d.ts +126 -0
  2. package/lib/actions.js +199 -0
  3. package/lib/actions.js.map +1 -0
  4. package/lib/core.js +2 -2
  5. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js +1 -1
  6. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +1 -1
  7. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +1 -1
  8. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +32 -0
  9. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +40 -2
  10. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
  11. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js +1 -1
  12. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js +1 -1
  13. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +1 -1
  14. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +1 -1
  15. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +1 -1
  16. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js +1 -1
  17. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js +1 -1
  18. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +1 -1
  19. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +4 -0
  20. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +2 -1
  21. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  22. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js +1 -1
  23. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +1 -1
  24. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +1 -1
  25. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +1 -1
  26. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +1 -1
  27. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +1 -1
  28. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +1 -1
  29. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +1 -1
  30. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js +1 -1
  31. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js +1 -1
  32. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js +1 -1
  33. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +1 -1
  34. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.d.ts +10 -1
  35. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js +10 -1
  36. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js.map +1 -1
  37. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.d.ts +54 -0
  38. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js +89 -2
  39. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js.map +1 -1
  40. package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +10 -1
  41. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +10 -1
  42. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +1 -1
  43. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +17 -0
  44. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +33 -2
  45. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  46. package/lib/scalekit.d.ts +2 -0
  47. package/lib/scalekit.js +2 -0
  48. package/lib/scalekit.js.map +1 -1
  49. package/lib/tools.d.ts +22 -5
  50. package/lib/tools.js +30 -5
  51. package/lib/tools.js.map +1 -1
  52. package/package.json +1 -1
  53. package/reference.md +378 -0
  54. package/src/actions.ts +349 -0
  55. package/src/core.ts +2 -2
  56. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.ts +1 -1
  57. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +1 -1
  58. package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +1 -1
  59. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +57 -1
  60. package/src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts +1 -1
  61. package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +1 -1
  62. package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +1 -1
  63. package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +1 -1
  64. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +1 -1
  65. package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.ts +1 -1
  66. package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.ts +1 -1
  67. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +1 -1
  68. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +7 -1
  69. package/src/pkg/grpc/scalekit/v1/directories/directories_connect.ts +1 -1
  70. package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +1 -1
  71. package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +1 -1
  72. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +1 -1
  73. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +1 -1
  74. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +1 -1
  75. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +1 -1
  76. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +1 -1
  77. package/src/pkg/grpc/scalekit/v1/roles/roles_connect.ts +1 -1
  78. package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +1 -1
  79. package/src/pkg/grpc/scalekit/v1/sessions/sessions_connect.ts +1 -1
  80. package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +1 -1
  81. package/src/pkg/grpc/scalekit/v1/tools/tools_connect.ts +11 -2
  82. package/src/pkg/grpc/scalekit/v1/tools/tools_pb.ts +105 -1
  83. package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +11 -2
  84. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +38 -1
  85. package/src/scalekit.ts +7 -0
  86. package/src/tools.ts +44 -7
  87. package/tests/actions.test.ts +356 -0
  88. package/tests/tools.test.ts +46 -0
package/src/actions.ts ADDED
@@ -0,0 +1,349 @@
1
+ import { AxiosResponse } from "axios";
2
+ import CoreClient from "./core";
3
+ import ToolsClient from "./tools";
4
+ import ConnectedAccountsClient from "./connected-accounts";
5
+ import {
6
+ CreateConnectedAccount,
7
+ CreateConnectedAccountResponse,
8
+ DeleteConnectedAccountResponse,
9
+ GetConnectedAccountByIdentifierResponse,
10
+ GetMagicLinkForConnectedAccountResponse,
11
+ ListConnectedAccountsResponse,
12
+ UpdateConnectedAccount,
13
+ UpdateConnectedAccountResponse,
14
+ } from "./pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb";
15
+ import { ExecuteToolResponse } from "./pkg/grpc/scalekit/v1/tools/tools_pb";
16
+
17
+ /**
18
+ * This class is intended to be accessed via `ScalekitClient.actions`.
19
+ * It composes the existing ToolsClient and ConnectedAccountsClient
20
+ * without changing their behavior.
21
+ */
22
+ export default class ActionsClient {
23
+ constructor(
24
+ private readonly tools: ToolsClient,
25
+ private readonly connectedAccounts: ConnectedAccountsClient,
26
+ private readonly coreClient: CoreClient
27
+ ) {}
28
+
29
+ /**
30
+ * Execute a tool on behalf of a connected account.
31
+ *
32
+ * Thin wrapper around ToolsClient.executeTool, reserved for future
33
+ * pre/post modifier support.
34
+ */
35
+ async executeTool(params: {
36
+ toolName: string;
37
+ toolInput: Record<string, unknown>;
38
+ identifier?: string;
39
+ connectedAccountId?: string;
40
+ connector?: string;
41
+ organizationId?: string;
42
+ userId?: string;
43
+ }): Promise<ExecuteToolResponse> {
44
+ const {
45
+ toolName,
46
+ toolInput,
47
+ identifier,
48
+ connectedAccountId,
49
+ connector,
50
+ organizationId,
51
+ userId,
52
+ } = params;
53
+
54
+ if (!toolName?.trim()) {
55
+ throw new Error("toolName is required");
56
+ }
57
+
58
+ return this.tools.executeTool({
59
+ toolName,
60
+ identifier,
61
+ params: toolInput,
62
+ connectedAccountId,
63
+ connector,
64
+ organizationId,
65
+ userId,
66
+ });
67
+ }
68
+
69
+ /**
70
+ * Get an authorization magic link for a connected account.
71
+ */
72
+ async getAuthorizationLink(params: {
73
+ connectionName?: string;
74
+ identifier?: string;
75
+ connectedAccountId?: string;
76
+ organizationId?: string;
77
+ userId?: string;
78
+ }): Promise<GetMagicLinkForConnectedAccountResponse> {
79
+ const {
80
+ connectionName,
81
+ identifier,
82
+ connectedAccountId,
83
+ organizationId,
84
+ userId,
85
+ } = params;
86
+
87
+ return this.connectedAccounts.getMagicLinkForConnectedAccount({
88
+ connector: connectionName ?? "",
89
+ identifier: identifier ?? "",
90
+ organizationId,
91
+ userId,
92
+ connectedAccountId,
93
+ });
94
+ }
95
+
96
+ /**
97
+ * List connected accounts with optional filters.
98
+ */
99
+ async listConnectedAccounts(params?: {
100
+ connectionName?: string;
101
+ identifier?: string;
102
+ provider?: string;
103
+ organizationId?: string;
104
+ userId?: string;
105
+ pageSize?: number;
106
+ pageToken?: string;
107
+ query?: string;
108
+ }): Promise<ListConnectedAccountsResponse> {
109
+ return this.connectedAccounts.listConnectedAccounts({
110
+ organizationId: params?.organizationId,
111
+ userId: params?.userId,
112
+ connector: params?.connectionName,
113
+ identifier: params?.identifier,
114
+ provider: params?.provider,
115
+ pageSize: params?.pageSize,
116
+ pageToken: params?.pageToken,
117
+ query: params?.query,
118
+ });
119
+ }
120
+
121
+ /**
122
+ * Delete a connected account.
123
+ */
124
+ async deleteConnectedAccount(params: {
125
+ connectionName: string;
126
+ identifier: string;
127
+ connectedAccountId?: string;
128
+ organizationId?: string;
129
+ userId?: string;
130
+ }): Promise<DeleteConnectedAccountResponse> {
131
+ const {
132
+ connectionName,
133
+ identifier,
134
+ connectedAccountId,
135
+ organizationId,
136
+ userId,
137
+ } = params;
138
+
139
+ return this.connectedAccounts.deleteConnectedAccount({
140
+ connector: connectionName,
141
+ identifier,
142
+ organizationId,
143
+ userId,
144
+ connectedAccountId,
145
+ });
146
+ }
147
+
148
+ /**
149
+ * Get connected account authorization details.
150
+ */
151
+ async getConnectedAccount(params: {
152
+ connectionName: string;
153
+ identifier: string;
154
+ connectedAccountId?: string;
155
+ organizationId?: string;
156
+ userId?: string;
157
+ }): Promise<GetConnectedAccountByIdentifierResponse> {
158
+ const {
159
+ connectionName,
160
+ identifier,
161
+ connectedAccountId,
162
+ organizationId,
163
+ userId,
164
+ } = params;
165
+
166
+ return this.connectedAccounts.getConnectedAccountByIdentifier({
167
+ connector: connectionName,
168
+ identifier,
169
+ organizationId,
170
+ userId,
171
+ connectedAccountId,
172
+ });
173
+ }
174
+
175
+ /**
176
+ * Create a new connected account.
177
+ *
178
+ * This helper accepts a high-level payload and builds the
179
+ * underlying CreateConnectedAccount message.
180
+ */
181
+ async createConnectedAccount(params: {
182
+ connectionName: string;
183
+ identifier: string;
184
+ authorizationDetails: CreateConnectedAccount["authorizationDetails"];
185
+ organizationId?: string;
186
+ userId?: string;
187
+ apiConfig?: Record<string, unknown>;
188
+ }): Promise<CreateConnectedAccountResponse> {
189
+ const {
190
+ connectionName,
191
+ identifier,
192
+ authorizationDetails,
193
+ organizationId,
194
+ userId,
195
+ apiConfig,
196
+ } = params;
197
+
198
+ if (!connectionName?.trim()) {
199
+ throw new Error("connectionName is required");
200
+ }
201
+ if (!identifier?.trim()) {
202
+ throw new Error("identifier is required");
203
+ }
204
+
205
+ const connectedAccount = new CreateConnectedAccount({
206
+ authorizationDetails,
207
+ ...(apiConfig != null && {
208
+ apiConfig: apiConfig as unknown as CreateConnectedAccount["apiConfig"],
209
+ }),
210
+ });
211
+
212
+ return this.connectedAccounts.createConnectedAccount({
213
+ connector: connectionName,
214
+ identifier,
215
+ connectedAccount,
216
+ organizationId,
217
+ userId,
218
+ });
219
+ }
220
+
221
+ /**
222
+ * Get an existing connected account or create a new one if it doesn't exist.
223
+ */
224
+ async getOrCreateConnectedAccount(params: {
225
+ connectionName: string;
226
+ identifier: string;
227
+ authorizationDetails?: CreateConnectedAccount["authorizationDetails"];
228
+ organizationId?: string;
229
+ userId?: string;
230
+ apiConfig?: Record<string, unknown>;
231
+ }): Promise<CreateConnectedAccountResponse> {
232
+ const {
233
+ connectionName,
234
+ identifier,
235
+ authorizationDetails,
236
+ organizationId,
237
+ userId,
238
+ apiConfig,
239
+ } = params;
240
+
241
+ return this.connectedAccounts.getOrCreateConnectedAccount({
242
+ connector: connectionName,
243
+ identifier,
244
+ authorizationDetails,
245
+ organizationId,
246
+ userId,
247
+ apiConfig,
248
+ });
249
+ }
250
+
251
+ /**
252
+ * Update an existing connected account.
253
+ */
254
+ async updateConnectedAccount(params: {
255
+ connectionName: string;
256
+ identifier: string;
257
+ authorizationDetails?: UpdateConnectedAccount["authorizationDetails"];
258
+ organizationId?: string;
259
+ userId?: string;
260
+ connectedAccountId?: string;
261
+ apiConfig?: UpdateConnectedAccount["apiConfig"];
262
+ }): Promise<UpdateConnectedAccountResponse> {
263
+ const {
264
+ connectionName,
265
+ identifier,
266
+ authorizationDetails,
267
+ organizationId,
268
+ userId,
269
+ connectedAccountId,
270
+ apiConfig,
271
+ } = params;
272
+
273
+ const connectedAccount = new UpdateConnectedAccount({
274
+ ...(authorizationDetails && { authorizationDetails }),
275
+ ...(apiConfig != null && { apiConfig }),
276
+ });
277
+
278
+ return this.connectedAccounts.updateConnectedAccount({
279
+ connector: connectionName,
280
+ identifier,
281
+ connectedAccount,
282
+ organizationId,
283
+ userId,
284
+ connectedAccountId,
285
+ });
286
+ }
287
+
288
+ /**
289
+ * Make a proxied REST API call on behalf of a connected account.
290
+ */
291
+ async request(params: {
292
+ connectionName: string;
293
+ identifier: string;
294
+ path: string;
295
+ method?: string;
296
+ queryParams?: Record<string, unknown>;
297
+ body?: unknown;
298
+ formData?: Record<string, unknown>;
299
+ headers?: Record<string, string>;
300
+ timeoutMs?: number;
301
+ }): Promise<AxiosResponse<any>> {
302
+ const {
303
+ connectionName,
304
+ identifier,
305
+ path,
306
+ method = "GET",
307
+ queryParams,
308
+ body,
309
+ formData,
310
+ headers,
311
+ timeoutMs,
312
+ } = params;
313
+
314
+ if (!connectionName?.trim()) {
315
+ throw new Error("connectionName is required");
316
+ }
317
+ if (!identifier?.trim()) {
318
+ throw new Error("identifier is required");
319
+ }
320
+ if (!path?.trim()) {
321
+ throw new Error("path is required");
322
+ }
323
+
324
+ const url = `${this.coreClient.envUrl.replace(/\/$/, "")}/proxy${path}`;
325
+ const timeout = timeoutMs ?? 30_000;
326
+
327
+ const proxyHeaders: Record<string, string> = {
328
+ connection_name: connectionName,
329
+ Connection_name: connectionName,
330
+ identifier,
331
+ ...(headers ?? {}),
332
+ };
333
+
334
+
335
+
336
+ return this.coreClient.connectExec(
337
+ (config) => this.coreClient.axios.request(config),
338
+ {
339
+ url,
340
+ method: method.toUpperCase(),
341
+ params: queryParams,
342
+ data: body ?? formData,
343
+ headers: proxyHeaders,
344
+ timeout,
345
+ }
346
+ );
347
+ }
348
+ }
349
+
package/src/core.ts CHANGED
@@ -23,8 +23,8 @@ export default class CoreClient {
23
23
  public keys: JWK[] = [];
24
24
  public accessToken: string | null = null;
25
25
  public axios: Axios;
26
- public sdkVersion = `Scalekit-Node/2.2.0-beta.1`;
27
- public apiVersion = "20260123";
26
+ public sdkVersion = `Scalekit-Node/2.2.0-beta.3`;
27
+ public apiVersion = "20260310";
28
28
  public userAgent = `${this.sdkVersion} Node/${process.version} (${
29
29
  process.platform
30
30
  }; ${os.arch()})`;
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/auditlogs/auditlogs.proto (package scalekit.v1.auditlogs, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/auditlogs/auditlogs.proto (package scalekit.v1.auditlogs, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/auth/auth.proto (package scalekit.v1.auth, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/auth/auth.proto (package scalekit.v1.auth, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -468,6 +468,48 @@ export class GetAuthCustomizationsRequest extends Message<GetAuthCustomizationsR
468
468
  }
469
469
  }
470
470
 
471
+ /**
472
+ * PortalSettings contains feature flags and settings derived from the workspace's billing subscription
473
+ *
474
+ * @generated from message scalekit.v1.auth.PortalSettings
475
+ */
476
+ export class PortalSettings extends Message<PortalSettings> {
477
+ /**
478
+ * custom_branding indicates whether the workspace has the Customization billing item enabled,
479
+ * allowing custom portal branding (logos, colors, etc.)
480
+ *
481
+ * @generated from field: bool custom_branding = 1;
482
+ */
483
+ customBranding = false;
484
+
485
+ constructor(data?: PartialMessage<PortalSettings>) {
486
+ super();
487
+ proto3.util.initPartial(data, this);
488
+ }
489
+
490
+ static readonly runtime: typeof proto3 = proto3;
491
+ static readonly typeName = "scalekit.v1.auth.PortalSettings";
492
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
493
+ { no: 1, name: "custom_branding", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
494
+ ]);
495
+
496
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PortalSettings {
497
+ return new PortalSettings().fromBinary(bytes, options);
498
+ }
499
+
500
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PortalSettings {
501
+ return new PortalSettings().fromJson(jsonValue, options);
502
+ }
503
+
504
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PortalSettings {
505
+ return new PortalSettings().fromJsonString(jsonString, options);
506
+ }
507
+
508
+ static equals(a: PortalSettings | PlainMessage<PortalSettings> | undefined, b: PortalSettings | PlainMessage<PortalSettings> | undefined): boolean {
509
+ return proto3.util.equals(PortalSettings, a, b);
510
+ }
511
+ }
512
+
471
513
  /**
472
514
  * @generated from message scalekit.v1.auth.GetAuthCustomizationsResponse
473
515
  */
@@ -477,6 +519,13 @@ export class GetAuthCustomizationsResponse extends Message<GetAuthCustomizations
477
519
  */
478
520
  customizationSettings?: Struct;
479
521
 
522
+ /**
523
+ * settings contains feature flags derived from the workspace's billing subscription
524
+ *
525
+ * @generated from field: scalekit.v1.auth.PortalSettings settings = 3;
526
+ */
527
+ settings?: PortalSettings;
528
+
480
529
  constructor(data?: PartialMessage<GetAuthCustomizationsResponse>) {
481
530
  super();
482
531
  proto3.util.initPartial(data, this);
@@ -486,6 +535,7 @@ export class GetAuthCustomizationsResponse extends Message<GetAuthCustomizations
486
535
  static readonly typeName = "scalekit.v1.auth.GetAuthCustomizationsResponse";
487
536
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
488
537
  { no: 2, name: "customization_settings", kind: "message", T: Struct },
538
+ { no: 3, name: "settings", kind: "message", T: PortalSettings },
489
539
  ]);
490
540
 
491
541
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthCustomizationsResponse {
@@ -1047,6 +1097,11 @@ export class User extends Message<User> {
1047
1097
  */
1048
1098
  customAttributes?: Struct;
1049
1099
 
1100
+ /**
1101
+ * @generated from field: optional string organization_external_id = 15;
1102
+ */
1103
+ organizationExternalId?: string;
1104
+
1050
1105
  constructor(data?: PartialMessage<User>) {
1051
1106
  super();
1052
1107
  proto3.util.initPartial(data, this);
@@ -1069,6 +1124,7 @@ export class User extends Message<User> {
1069
1124
  { no: 12, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1070
1125
  { no: 13, name: "groups", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1071
1126
  { no: 14, name: "custom_attributes", kind: "message", T: Struct },
1127
+ { no: 15, name: "organization_external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1072
1128
  ]);
1073
1129
 
1074
1130
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/auth/passwordless.proto (package scalekit.v1.auth.passwordless, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/auth/passwordless.proto (package scalekit.v1.auth.passwordless, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/auth/webauthn.proto (package scalekit.v1.auth.webauthn, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/auth/webauthn.proto (package scalekit.v1.auth.webauthn, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/commons/commons.proto (package scalekit.v1.commons, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/connected_accounts/connected_accounts.proto (package scalekit.v1.connected_accounts, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/connected_accounts/connected_accounts.proto (package scalekit.v1.connected_accounts, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/connections/connections.proto (package scalekit.v1.connections, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/connections/connections.proto (package scalekit.v1.connections, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -2254,6 +2254,11 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
2254
2254
  */
2255
2255
  syncUserProfileOnLogin?: boolean;
2256
2256
 
2257
+ /**
2258
+ * @generated from field: google.protobuf.StringValue token_access_type = 19;
2259
+ */
2260
+ tokenAccessType?: string;
2261
+
2257
2262
  constructor(data?: PartialMessage<OAuthConnectionConfig>) {
2258
2263
  super();
2259
2264
  proto3.util.initPartial(data, this);
@@ -2275,6 +2280,7 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
2275
2280
  { no: 16, name: "access_type", kind: "message", T: StringValue },
2276
2281
  { no: 17, name: "custom_scope_name", kind: "message", T: StringValue },
2277
2282
  { no: 18, name: "sync_user_profile_on_login", kind: "message", T: BoolValue },
2283
+ { no: 19, name: "token_access_type", kind: "message", T: StringValue },
2278
2284
  ]);
2279
2285
 
2280
2286
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthConnectionConfig {
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/directories/directories.proto (package scalekit.v1.directories, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/directories/directories.proto (package scalekit.v1.directories, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/domains/domains.proto (package scalekit.v1.domains, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/domains/domains.proto (package scalekit.v1.domains, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/errdetails/errdetails.proto (package scalekit.v1.errdetails, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/options/options.proto (package scalekit.v1.options, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/organizations/organizations.proto (package scalekit.v1.organizations, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/organizations/organizations.proto (package scalekit.v1.organizations, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/roles/roles.proto (package scalekit.v1.roles, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/roles/roles.proto (package scalekit.v1.roles, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/sessions/sessions.proto (package scalekit.v1.sessions, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file scalekit/v1/sessions/sessions.proto (package scalekit.v1.sessions, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck