@scalekit-sdk/node 2.1.4 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/buf.gen.yaml +1 -0
  2. package/lib/auth.d.ts +22 -0
  3. package/lib/auth.js +65 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/core.js +1 -1
  6. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +16 -0
  7. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +20 -0
  8. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
  9. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +118 -0
  10. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +126 -0
  11. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +1 -0
  12. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +617 -0
  13. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +927 -0
  14. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -0
  15. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +34 -4
  16. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +43 -6
  17. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  18. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +10 -1
  19. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +9 -0
  20. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
  21. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +277 -2
  22. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +324 -2
  23. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  24. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +43 -50
  25. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +66 -73
  26. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
  27. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +62 -14
  28. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +46 -17
  29. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  30. package/lib/scalekit.d.ts +22 -0
  31. package/lib/scalekit.js +35 -6
  32. package/lib/scalekit.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/auth.ts +65 -0
  35. package/src/core.ts +1 -1
  36. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +24 -0
  37. package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +125 -0
  38. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +1183 -0
  39. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +50 -6
  40. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +10 -1
  41. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +504 -1
  42. package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +82 -81
  43. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +92 -22
  44. package/src/scalekit.ts +42 -6
@@ -0,0 +1,1183 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file scalekit/v1/auth/auth.proto (package scalekit.v1.auth, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf";
8
+ import { ConnectionType, PasswordlessType } from "../connections/connections_pb.js";
9
+
10
+ /**
11
+ * @generated from enum scalekit.v1.auth.Intent
12
+ */
13
+ export enum Intent {
14
+ /**
15
+ * @generated from enum value: INTENT_UNSPECIFIED = 0;
16
+ */
17
+ INTENT_UNSPECIFIED = 0,
18
+
19
+ /**
20
+ * @generated from enum value: sign_in = 1;
21
+ */
22
+ sign_in = 1,
23
+
24
+ /**
25
+ * @generated from enum value: sign_up = 2;
26
+ */
27
+ sign_up = 2,
28
+ }
29
+ // Retrieve enum metadata with: proto3.getEnumType(Intent)
30
+ proto3.util.setEnumType(Intent, "scalekit.v1.auth.Intent", [
31
+ { no: 0, name: "INTENT_UNSPECIFIED" },
32
+ { no: 1, name: "sign_in" },
33
+ { no: 2, name: "sign_up" },
34
+ ]);
35
+
36
+ /**
37
+ * @generated from enum scalekit.v1.auth.AuthState
38
+ */
39
+ export enum AuthState {
40
+ /**
41
+ * @generated from enum value: AUTH_STATE_UNSPECIFIED = 0;
42
+ */
43
+ AUTH_STATE_UNSPECIFIED = 0,
44
+
45
+ /**
46
+ * @generated from enum value: AUTHENTICATION_IN_PROGRESS = 1;
47
+ */
48
+ AUTHENTICATION_IN_PROGRESS = 1,
49
+
50
+ /**
51
+ * @generated from enum value: ORGANIZATION_SWITCHER = 2;
52
+ */
53
+ ORGANIZATION_SWITCHER = 2,
54
+
55
+ /**
56
+ * @generated from enum value: ORGANIZATION_SELECTED = 3;
57
+ */
58
+ ORGANIZATION_SELECTED = 3,
59
+
60
+ /**
61
+ * @generated from enum value: ORGANIZATION_SIGNUP = 4;
62
+ */
63
+ ORGANIZATION_SIGNUP = 4,
64
+
65
+ /**
66
+ * @generated from enum value: ORGANIZATION_SWITCHER_SIGNUP = 5;
67
+ */
68
+ ORGANIZATION_SWITCHER_SIGNUP = 5,
69
+
70
+ /**
71
+ * @generated from enum value: OTP_VERIFICATION_PENDING = 6;
72
+ */
73
+ OTP_VERIFICATION_PENDING = 6,
74
+
75
+ /**
76
+ * @generated from enum value: MAGIC_LINK_SENT = 7;
77
+ */
78
+ MAGIC_LINK_SENT = 7,
79
+
80
+ /**
81
+ * @generated from enum value: LINK_SENT_OTP_VERIFICATION_PENDING = 8;
82
+ */
83
+ LINK_SENT_OTP_VERIFICATION_PENDING = 8,
84
+
85
+ /**
86
+ * @generated from enum value: OTP_VERIFIED = 9;
87
+ */
88
+ OTP_VERIFIED = 9,
89
+
90
+ /**
91
+ * @generated from enum value: LINK_VERIFIED = 10;
92
+ */
93
+ LINK_VERIFIED = 10,
94
+
95
+ /**
96
+ * @generated from enum value: SSO_AUTHENTICATED = 11;
97
+ */
98
+ SSO_AUTHENTICATED = 11,
99
+
100
+ /**
101
+ * @generated from enum value: ORG_USER_CREATED = 12;
102
+ */
103
+ ORG_USER_CREATED = 12,
104
+
105
+ /**
106
+ * @generated from enum value: AUTHENTICATION_COMPLETED = 13;
107
+ */
108
+ AUTHENTICATION_COMPLETED = 13,
109
+
110
+ /**
111
+ * @generated from enum value: AUTHENTICATION_FAILED = 14;
112
+ */
113
+ AUTHENTICATION_FAILED = 14,
114
+
115
+ /**
116
+ * @generated from enum value: WEBAUTHN_VERIFIED = 15;
117
+ */
118
+ WEBAUTHN_VERIFIED = 15,
119
+ }
120
+ // Retrieve enum metadata with: proto3.getEnumType(AuthState)
121
+ proto3.util.setEnumType(AuthState, "scalekit.v1.auth.AuthState", [
122
+ { no: 0, name: "AUTH_STATE_UNSPECIFIED" },
123
+ { no: 1, name: "AUTHENTICATION_IN_PROGRESS" },
124
+ { no: 2, name: "ORGANIZATION_SWITCHER" },
125
+ { no: 3, name: "ORGANIZATION_SELECTED" },
126
+ { no: 4, name: "ORGANIZATION_SIGNUP" },
127
+ { no: 5, name: "ORGANIZATION_SWITCHER_SIGNUP" },
128
+ { no: 6, name: "OTP_VERIFICATION_PENDING" },
129
+ { no: 7, name: "MAGIC_LINK_SENT" },
130
+ { no: 8, name: "LINK_SENT_OTP_VERIFICATION_PENDING" },
131
+ { no: 9, name: "OTP_VERIFIED" },
132
+ { no: 10, name: "LINK_VERIFIED" },
133
+ { no: 11, name: "SSO_AUTHENTICATED" },
134
+ { no: 12, name: "ORG_USER_CREATED" },
135
+ { no: 13, name: "AUTHENTICATION_COMPLETED" },
136
+ { no: 14, name: "AUTHENTICATION_FAILED" },
137
+ { no: 15, name: "WEBAUTHN_VERIFIED" },
138
+ ]);
139
+
140
+ /**
141
+ * @generated from message scalekit.v1.auth.ListAuthMethodsRequest
142
+ */
143
+ export class ListAuthMethodsRequest extends Message<ListAuthMethodsRequest> {
144
+ /**
145
+ * @generated from field: string intent = 1;
146
+ */
147
+ intent = "";
148
+
149
+ constructor(data?: PartialMessage<ListAuthMethodsRequest>) {
150
+ super();
151
+ proto3.util.initPartial(data, this);
152
+ }
153
+
154
+ static readonly runtime: typeof proto3 = proto3;
155
+ static readonly typeName = "scalekit.v1.auth.ListAuthMethodsRequest";
156
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
157
+ { no: 1, name: "intent", kind: "scalar", T: 9 /* ScalarType.STRING */ },
158
+ ]);
159
+
160
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAuthMethodsRequest {
161
+ return new ListAuthMethodsRequest().fromBinary(bytes, options);
162
+ }
163
+
164
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAuthMethodsRequest {
165
+ return new ListAuthMethodsRequest().fromJson(jsonValue, options);
166
+ }
167
+
168
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAuthMethodsRequest {
169
+ return new ListAuthMethodsRequest().fromJsonString(jsonString, options);
170
+ }
171
+
172
+ static equals(a: ListAuthMethodsRequest | PlainMessage<ListAuthMethodsRequest> | undefined, b: ListAuthMethodsRequest | PlainMessage<ListAuthMethodsRequest> | undefined): boolean {
173
+ return proto3.util.equals(ListAuthMethodsRequest, a, b);
174
+ }
175
+ }
176
+
177
+ /**
178
+ * @generated from message scalekit.v1.auth.ListAuthMethodsResponse
179
+ */
180
+ export class ListAuthMethodsResponse extends Message<ListAuthMethodsResponse> {
181
+ /**
182
+ * @generated from field: repeated scalekit.v1.auth.AuthMethod auth_methods = 1;
183
+ */
184
+ authMethods: AuthMethod[] = [];
185
+
186
+ constructor(data?: PartialMessage<ListAuthMethodsResponse>) {
187
+ super();
188
+ proto3.util.initPartial(data, this);
189
+ }
190
+
191
+ static readonly runtime: typeof proto3 = proto3;
192
+ static readonly typeName = "scalekit.v1.auth.ListAuthMethodsResponse";
193
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
194
+ { no: 1, name: "auth_methods", kind: "message", T: AuthMethod, repeated: true },
195
+ ]);
196
+
197
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAuthMethodsResponse {
198
+ return new ListAuthMethodsResponse().fromBinary(bytes, options);
199
+ }
200
+
201
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAuthMethodsResponse {
202
+ return new ListAuthMethodsResponse().fromJson(jsonValue, options);
203
+ }
204
+
205
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAuthMethodsResponse {
206
+ return new ListAuthMethodsResponse().fromJsonString(jsonString, options);
207
+ }
208
+
209
+ static equals(a: ListAuthMethodsResponse | PlainMessage<ListAuthMethodsResponse> | undefined, b: ListAuthMethodsResponse | PlainMessage<ListAuthMethodsResponse> | undefined): boolean {
210
+ return proto3.util.equals(ListAuthMethodsResponse, a, b);
211
+ }
212
+ }
213
+
214
+ /**
215
+ * @generated from message scalekit.v1.auth.AuthMethod
216
+ */
217
+ export class AuthMethod extends Message<AuthMethod> {
218
+ /**
219
+ * @generated from field: string connection_id = 1;
220
+ */
221
+ connectionId = "";
222
+
223
+ /**
224
+ * @generated from field: scalekit.v1.connections.ConnectionType connection_type = 2;
225
+ */
226
+ connectionType = ConnectionType.INVALID;
227
+
228
+ /**
229
+ * @generated from field: string provider = 3;
230
+ */
231
+ provider = "";
232
+
233
+ /**
234
+ * @generated from field: string auth_initiation_uri = 4;
235
+ */
236
+ authInitiationUri = "";
237
+
238
+ /**
239
+ * @generated from field: optional scalekit.v1.connections.PasswordlessType passwordless_type = 5;
240
+ */
241
+ passwordlessType?: PasswordlessType;
242
+
243
+ /**
244
+ * @generated from field: optional uint32 code_challenge_length = 6;
245
+ */
246
+ codeChallengeLength?: number;
247
+
248
+ /**
249
+ * @generated from field: optional bool enable_webauthn_auto_registration = 7;
250
+ */
251
+ enableWebauthnAutoRegistration?: boolean;
252
+
253
+ /**
254
+ * @generated from field: optional bool show_passkey_button = 8;
255
+ */
256
+ showPasskeyButton?: boolean;
257
+
258
+ /**
259
+ * @generated from field: optional bool enable_webauthn_conditional_login = 9;
260
+ */
261
+ enableWebauthnConditionalLogin?: boolean;
262
+
263
+ constructor(data?: PartialMessage<AuthMethod>) {
264
+ super();
265
+ proto3.util.initPartial(data, this);
266
+ }
267
+
268
+ static readonly runtime: typeof proto3 = proto3;
269
+ static readonly typeName = "scalekit.v1.auth.AuthMethod";
270
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
271
+ { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
272
+ { no: 2, name: "connection_type", kind: "enum", T: proto3.getEnumType(ConnectionType) },
273
+ { no: 3, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
274
+ { no: 4, name: "auth_initiation_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
275
+ { no: 5, name: "passwordless_type", kind: "enum", T: proto3.getEnumType(PasswordlessType), opt: true },
276
+ { no: 6, name: "code_challenge_length", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
277
+ { no: 7, name: "enable_webauthn_auto_registration", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
278
+ { no: 8, name: "show_passkey_button", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
279
+ { no: 9, name: "enable_webauthn_conditional_login", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
280
+ ]);
281
+
282
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuthMethod {
283
+ return new AuthMethod().fromBinary(bytes, options);
284
+ }
285
+
286
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuthMethod {
287
+ return new AuthMethod().fromJson(jsonValue, options);
288
+ }
289
+
290
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuthMethod {
291
+ return new AuthMethod().fromJsonString(jsonString, options);
292
+ }
293
+
294
+ static equals(a: AuthMethod | PlainMessage<AuthMethod> | undefined, b: AuthMethod | PlainMessage<AuthMethod> | undefined): boolean {
295
+ return proto3.util.equals(AuthMethod, a, b);
296
+ }
297
+ }
298
+
299
+ /**
300
+ * @generated from message scalekit.v1.auth.DiscoveryAuthMethodRequest
301
+ */
302
+ export class DiscoveryAuthMethodRequest extends Message<DiscoveryAuthMethodRequest> {
303
+ /**
304
+ * @generated from field: scalekit.v1.auth.DiscoveryRequest discovery_request = 2;
305
+ */
306
+ discoveryRequest?: DiscoveryRequest;
307
+
308
+ constructor(data?: PartialMessage<DiscoveryAuthMethodRequest>) {
309
+ super();
310
+ proto3.util.initPartial(data, this);
311
+ }
312
+
313
+ static readonly runtime: typeof proto3 = proto3;
314
+ static readonly typeName = "scalekit.v1.auth.DiscoveryAuthMethodRequest";
315
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
316
+ { no: 2, name: "discovery_request", kind: "message", T: DiscoveryRequest },
317
+ ]);
318
+
319
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DiscoveryAuthMethodRequest {
320
+ return new DiscoveryAuthMethodRequest().fromBinary(bytes, options);
321
+ }
322
+
323
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DiscoveryAuthMethodRequest {
324
+ return new DiscoveryAuthMethodRequest().fromJson(jsonValue, options);
325
+ }
326
+
327
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DiscoveryAuthMethodRequest {
328
+ return new DiscoveryAuthMethodRequest().fromJsonString(jsonString, options);
329
+ }
330
+
331
+ static equals(a: DiscoveryAuthMethodRequest | PlainMessage<DiscoveryAuthMethodRequest> | undefined, b: DiscoveryAuthMethodRequest | PlainMessage<DiscoveryAuthMethodRequest> | undefined): boolean {
332
+ return proto3.util.equals(DiscoveryAuthMethodRequest, a, b);
333
+ }
334
+ }
335
+
336
+ /**
337
+ * @generated from message scalekit.v1.auth.DiscoveryRequest
338
+ */
339
+ export class DiscoveryRequest extends Message<DiscoveryRequest> {
340
+ /**
341
+ * @generated from field: string email = 1;
342
+ */
343
+ email = "";
344
+
345
+ /**
346
+ * @generated from field: scalekit.v1.auth.Intent intent = 2;
347
+ */
348
+ intent = Intent.INTENT_UNSPECIFIED;
349
+
350
+ constructor(data?: PartialMessage<DiscoveryRequest>) {
351
+ super();
352
+ proto3.util.initPartial(data, this);
353
+ }
354
+
355
+ static readonly runtime: typeof proto3 = proto3;
356
+ static readonly typeName = "scalekit.v1.auth.DiscoveryRequest";
357
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
358
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
359
+ { no: 2, name: "intent", kind: "enum", T: proto3.getEnumType(Intent) },
360
+ ]);
361
+
362
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DiscoveryRequest {
363
+ return new DiscoveryRequest().fromBinary(bytes, options);
364
+ }
365
+
366
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DiscoveryRequest {
367
+ return new DiscoveryRequest().fromJson(jsonValue, options);
368
+ }
369
+
370
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DiscoveryRequest {
371
+ return new DiscoveryRequest().fromJsonString(jsonString, options);
372
+ }
373
+
374
+ static equals(a: DiscoveryRequest | PlainMessage<DiscoveryRequest> | undefined, b: DiscoveryRequest | PlainMessage<DiscoveryRequest> | undefined): boolean {
375
+ return proto3.util.equals(DiscoveryRequest, a, b);
376
+ }
377
+ }
378
+
379
+ /**
380
+ * @generated from message scalekit.v1.auth.DiscoveryAuthMethodResponse
381
+ */
382
+ export class DiscoveryAuthMethodResponse extends Message<DiscoveryAuthMethodResponse> {
383
+ /**
384
+ * @generated from field: scalekit.v1.auth.AuthMethod auth_method = 1;
385
+ */
386
+ authMethod?: AuthMethod;
387
+
388
+ constructor(data?: PartialMessage<DiscoveryAuthMethodResponse>) {
389
+ super();
390
+ proto3.util.initPartial(data, this);
391
+ }
392
+
393
+ static readonly runtime: typeof proto3 = proto3;
394
+ static readonly typeName = "scalekit.v1.auth.DiscoveryAuthMethodResponse";
395
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
396
+ { no: 1, name: "auth_method", kind: "message", T: AuthMethod },
397
+ ]);
398
+
399
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DiscoveryAuthMethodResponse {
400
+ return new DiscoveryAuthMethodResponse().fromBinary(bytes, options);
401
+ }
402
+
403
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DiscoveryAuthMethodResponse {
404
+ return new DiscoveryAuthMethodResponse().fromJson(jsonValue, options);
405
+ }
406
+
407
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DiscoveryAuthMethodResponse {
408
+ return new DiscoveryAuthMethodResponse().fromJsonString(jsonString, options);
409
+ }
410
+
411
+ static equals(a: DiscoveryAuthMethodResponse | PlainMessage<DiscoveryAuthMethodResponse> | undefined, b: DiscoveryAuthMethodResponse | PlainMessage<DiscoveryAuthMethodResponse> | undefined): boolean {
412
+ return proto3.util.equals(DiscoveryAuthMethodResponse, a, b);
413
+ }
414
+ }
415
+
416
+ /**
417
+ * @generated from message scalekit.v1.auth.GetAuthCustomizationsRequest
418
+ */
419
+ export class GetAuthCustomizationsRequest extends Message<GetAuthCustomizationsRequest> {
420
+ constructor(data?: PartialMessage<GetAuthCustomizationsRequest>) {
421
+ super();
422
+ proto3.util.initPartial(data, this);
423
+ }
424
+
425
+ static readonly runtime: typeof proto3 = proto3;
426
+ static readonly typeName = "scalekit.v1.auth.GetAuthCustomizationsRequest";
427
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
428
+ ]);
429
+
430
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthCustomizationsRequest {
431
+ return new GetAuthCustomizationsRequest().fromBinary(bytes, options);
432
+ }
433
+
434
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthCustomizationsRequest {
435
+ return new GetAuthCustomizationsRequest().fromJson(jsonValue, options);
436
+ }
437
+
438
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthCustomizationsRequest {
439
+ return new GetAuthCustomizationsRequest().fromJsonString(jsonString, options);
440
+ }
441
+
442
+ static equals(a: GetAuthCustomizationsRequest | PlainMessage<GetAuthCustomizationsRequest> | undefined, b: GetAuthCustomizationsRequest | PlainMessage<GetAuthCustomizationsRequest> | undefined): boolean {
443
+ return proto3.util.equals(GetAuthCustomizationsRequest, a, b);
444
+ }
445
+ }
446
+
447
+ /**
448
+ * @generated from message scalekit.v1.auth.GetAuthCustomizationsResponse
449
+ */
450
+ export class GetAuthCustomizationsResponse extends Message<GetAuthCustomizationsResponse> {
451
+ /**
452
+ * @generated from field: google.protobuf.Struct customization_settings = 2;
453
+ */
454
+ customizationSettings?: Struct;
455
+
456
+ constructor(data?: PartialMessage<GetAuthCustomizationsResponse>) {
457
+ super();
458
+ proto3.util.initPartial(data, this);
459
+ }
460
+
461
+ static readonly runtime: typeof proto3 = proto3;
462
+ static readonly typeName = "scalekit.v1.auth.GetAuthCustomizationsResponse";
463
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
464
+ { no: 2, name: "customization_settings", kind: "message", T: Struct },
465
+ ]);
466
+
467
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthCustomizationsResponse {
468
+ return new GetAuthCustomizationsResponse().fromBinary(bytes, options);
469
+ }
470
+
471
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthCustomizationsResponse {
472
+ return new GetAuthCustomizationsResponse().fromJson(jsonValue, options);
473
+ }
474
+
475
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthCustomizationsResponse {
476
+ return new GetAuthCustomizationsResponse().fromJsonString(jsonString, options);
477
+ }
478
+
479
+ static equals(a: GetAuthCustomizationsResponse | PlainMessage<GetAuthCustomizationsResponse> | undefined, b: GetAuthCustomizationsResponse | PlainMessage<GetAuthCustomizationsResponse> | undefined): boolean {
480
+ return proto3.util.equals(GetAuthCustomizationsResponse, a, b);
481
+ }
482
+ }
483
+
484
+ /**
485
+ * @generated from message scalekit.v1.auth.GetAuthFeaturesResponse
486
+ */
487
+ export class GetAuthFeaturesResponse extends Message<GetAuthFeaturesResponse> {
488
+ /**
489
+ * @generated from field: google.protobuf.Struct features = 1;
490
+ */
491
+ features?: Struct;
492
+
493
+ constructor(data?: PartialMessage<GetAuthFeaturesResponse>) {
494
+ super();
495
+ proto3.util.initPartial(data, this);
496
+ }
497
+
498
+ static readonly runtime: typeof proto3 = proto3;
499
+ static readonly typeName = "scalekit.v1.auth.GetAuthFeaturesResponse";
500
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
501
+ { no: 1, name: "features", kind: "message", T: Struct },
502
+ ]);
503
+
504
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthFeaturesResponse {
505
+ return new GetAuthFeaturesResponse().fromBinary(bytes, options);
506
+ }
507
+
508
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthFeaturesResponse {
509
+ return new GetAuthFeaturesResponse().fromJson(jsonValue, options);
510
+ }
511
+
512
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthFeaturesResponse {
513
+ return new GetAuthFeaturesResponse().fromJsonString(jsonString, options);
514
+ }
515
+
516
+ static equals(a: GetAuthFeaturesResponse | PlainMessage<GetAuthFeaturesResponse> | undefined, b: GetAuthFeaturesResponse | PlainMessage<GetAuthFeaturesResponse> | undefined): boolean {
517
+ return proto3.util.equals(GetAuthFeaturesResponse, a, b);
518
+ }
519
+ }
520
+
521
+ /**
522
+ * @generated from message scalekit.v1.auth.VerifyPasswordLessRequest
523
+ */
524
+ export class VerifyPasswordLessRequest extends Message<VerifyPasswordLessRequest> {
525
+ /**
526
+ * @generated from field: scalekit.v1.auth.OTPRequest otp_req = 2;
527
+ */
528
+ otpReq?: OTPRequest;
529
+
530
+ constructor(data?: PartialMessage<VerifyPasswordLessRequest>) {
531
+ super();
532
+ proto3.util.initPartial(data, this);
533
+ }
534
+
535
+ static readonly runtime: typeof proto3 = proto3;
536
+ static readonly typeName = "scalekit.v1.auth.VerifyPasswordLessRequest";
537
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
538
+ { no: 2, name: "otp_req", kind: "message", T: OTPRequest },
539
+ ]);
540
+
541
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyPasswordLessRequest {
542
+ return new VerifyPasswordLessRequest().fromBinary(bytes, options);
543
+ }
544
+
545
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyPasswordLessRequest {
546
+ return new VerifyPasswordLessRequest().fromJson(jsonValue, options);
547
+ }
548
+
549
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyPasswordLessRequest {
550
+ return new VerifyPasswordLessRequest().fromJsonString(jsonString, options);
551
+ }
552
+
553
+ static equals(a: VerifyPasswordLessRequest | PlainMessage<VerifyPasswordLessRequest> | undefined, b: VerifyPasswordLessRequest | PlainMessage<VerifyPasswordLessRequest> | undefined): boolean {
554
+ return proto3.util.equals(VerifyPasswordLessRequest, a, b);
555
+ }
556
+ }
557
+
558
+ /**
559
+ * @generated from message scalekit.v1.auth.VerifyPasswordLessResponse
560
+ */
561
+ export class VerifyPasswordLessResponse extends Message<VerifyPasswordLessResponse> {
562
+ constructor(data?: PartialMessage<VerifyPasswordLessResponse>) {
563
+ super();
564
+ proto3.util.initPartial(data, this);
565
+ }
566
+
567
+ static readonly runtime: typeof proto3 = proto3;
568
+ static readonly typeName = "scalekit.v1.auth.VerifyPasswordLessResponse";
569
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
570
+ ]);
571
+
572
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyPasswordLessResponse {
573
+ return new VerifyPasswordLessResponse().fromBinary(bytes, options);
574
+ }
575
+
576
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyPasswordLessResponse {
577
+ return new VerifyPasswordLessResponse().fromJson(jsonValue, options);
578
+ }
579
+
580
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyPasswordLessResponse {
581
+ return new VerifyPasswordLessResponse().fromJsonString(jsonString, options);
582
+ }
583
+
584
+ static equals(a: VerifyPasswordLessResponse | PlainMessage<VerifyPasswordLessResponse> | undefined, b: VerifyPasswordLessResponse | PlainMessage<VerifyPasswordLessResponse> | undefined): boolean {
585
+ return proto3.util.equals(VerifyPasswordLessResponse, a, b);
586
+ }
587
+ }
588
+
589
+ /**
590
+ * @generated from message scalekit.v1.auth.OTPRequest
591
+ */
592
+ export class OTPRequest extends Message<OTPRequest> {
593
+ /**
594
+ * @generated from field: string code_challenge = 1;
595
+ */
596
+ codeChallenge = "";
597
+
598
+ constructor(data?: PartialMessage<OTPRequest>) {
599
+ super();
600
+ proto3.util.initPartial(data, this);
601
+ }
602
+
603
+ static readonly runtime: typeof proto3 = proto3;
604
+ static readonly typeName = "scalekit.v1.auth.OTPRequest";
605
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
606
+ { no: 1, name: "code_challenge", kind: "scalar", T: 9 /* ScalarType.STRING */ },
607
+ ]);
608
+
609
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OTPRequest {
610
+ return new OTPRequest().fromBinary(bytes, options);
611
+ }
612
+
613
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OTPRequest {
614
+ return new OTPRequest().fromJson(jsonValue, options);
615
+ }
616
+
617
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OTPRequest {
618
+ return new OTPRequest().fromJsonString(jsonString, options);
619
+ }
620
+
621
+ static equals(a: OTPRequest | PlainMessage<OTPRequest> | undefined, b: OTPRequest | PlainMessage<OTPRequest> | undefined): boolean {
622
+ return proto3.util.equals(OTPRequest, a, b);
623
+ }
624
+ }
625
+
626
+ /**
627
+ * @generated from message scalekit.v1.auth.ListUserOrganizationsResponse
628
+ */
629
+ export class ListUserOrganizationsResponse extends Message<ListUserOrganizationsResponse> {
630
+ /**
631
+ * @generated from field: repeated scalekit.v1.auth.Organization organizations = 1;
632
+ */
633
+ organizations: Organization[] = [];
634
+
635
+ /**
636
+ * @generated from field: scalekit.v1.auth.UserDetails user = 2;
637
+ */
638
+ user?: UserDetails;
639
+
640
+ /**
641
+ * @generated from field: scalekit.v1.auth.Intent intent = 3;
642
+ */
643
+ intent = Intent.INTENT_UNSPECIFIED;
644
+
645
+ constructor(data?: PartialMessage<ListUserOrganizationsResponse>) {
646
+ super();
647
+ proto3.util.initPartial(data, this);
648
+ }
649
+
650
+ static readonly runtime: typeof proto3 = proto3;
651
+ static readonly typeName = "scalekit.v1.auth.ListUserOrganizationsResponse";
652
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
653
+ { no: 1, name: "organizations", kind: "message", T: Organization, repeated: true },
654
+ { no: 2, name: "user", kind: "message", T: UserDetails },
655
+ { no: 3, name: "intent", kind: "enum", T: proto3.getEnumType(Intent) },
656
+ ]);
657
+
658
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserOrganizationsResponse {
659
+ return new ListUserOrganizationsResponse().fromBinary(bytes, options);
660
+ }
661
+
662
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserOrganizationsResponse {
663
+ return new ListUserOrganizationsResponse().fromJson(jsonValue, options);
664
+ }
665
+
666
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserOrganizationsResponse {
667
+ return new ListUserOrganizationsResponse().fromJsonString(jsonString, options);
668
+ }
669
+
670
+ static equals(a: ListUserOrganizationsResponse | PlainMessage<ListUserOrganizationsResponse> | undefined, b: ListUserOrganizationsResponse | PlainMessage<ListUserOrganizationsResponse> | undefined): boolean {
671
+ return proto3.util.equals(ListUserOrganizationsResponse, a, b);
672
+ }
673
+ }
674
+
675
+ /**
676
+ * @generated from message scalekit.v1.auth.Organization
677
+ */
678
+ export class Organization extends Message<Organization> {
679
+ /**
680
+ * @generated from field: string id = 1;
681
+ */
682
+ id = "";
683
+
684
+ /**
685
+ * @generated from field: string name = 2;
686
+ */
687
+ name = "";
688
+
689
+ /**
690
+ * @generated from field: string membership_status = 3;
691
+ */
692
+ membershipStatus = "";
693
+
694
+ /**
695
+ * @generated from field: optional string invitation_inviter_email = 4;
696
+ */
697
+ invitationInviterEmail?: string;
698
+
699
+ /**
700
+ * @generated from field: optional google.protobuf.Timestamp invitation_accepted_at = 5;
701
+ */
702
+ invitationAcceptedAt?: Timestamp;
703
+
704
+ /**
705
+ * @generated from field: optional google.protobuf.Timestamp invitation_created_at = 6;
706
+ */
707
+ invitationCreatedAt?: Timestamp;
708
+
709
+ /**
710
+ * @generated from field: optional google.protobuf.Timestamp invitation_expires_at = 7;
711
+ */
712
+ invitationExpiresAt?: Timestamp;
713
+
714
+ constructor(data?: PartialMessage<Organization>) {
715
+ super();
716
+ proto3.util.initPartial(data, this);
717
+ }
718
+
719
+ static readonly runtime: typeof proto3 = proto3;
720
+ static readonly typeName = "scalekit.v1.auth.Organization";
721
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
722
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
723
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
724
+ { no: 3, name: "membership_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
725
+ { no: 4, name: "invitation_inviter_email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
726
+ { no: 5, name: "invitation_accepted_at", kind: "message", T: Timestamp, opt: true },
727
+ { no: 6, name: "invitation_created_at", kind: "message", T: Timestamp, opt: true },
728
+ { no: 7, name: "invitation_expires_at", kind: "message", T: Timestamp, opt: true },
729
+ ]);
730
+
731
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Organization {
732
+ return new Organization().fromBinary(bytes, options);
733
+ }
734
+
735
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Organization {
736
+ return new Organization().fromJson(jsonValue, options);
737
+ }
738
+
739
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Organization {
740
+ return new Organization().fromJsonString(jsonString, options);
741
+ }
742
+
743
+ static equals(a: Organization | PlainMessage<Organization> | undefined, b: Organization | PlainMessage<Organization> | undefined): boolean {
744
+ return proto3.util.equals(Organization, a, b);
745
+ }
746
+ }
747
+
748
+ /**
749
+ * @generated from message scalekit.v1.auth.UserDetails
750
+ */
751
+ export class UserDetails extends Message<UserDetails> {
752
+ /**
753
+ * @generated from field: string email = 1;
754
+ */
755
+ email = "";
756
+
757
+ /**
758
+ * @generated from field: string first_name = 2;
759
+ */
760
+ firstName = "";
761
+
762
+ /**
763
+ * @generated from field: string last_name = 3;
764
+ */
765
+ lastName = "";
766
+
767
+ constructor(data?: PartialMessage<UserDetails>) {
768
+ super();
769
+ proto3.util.initPartial(data, this);
770
+ }
771
+
772
+ static readonly runtime: typeof proto3 = proto3;
773
+ static readonly typeName = "scalekit.v1.auth.UserDetails";
774
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
775
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
776
+ { no: 2, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
777
+ { no: 3, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
778
+ ]);
779
+
780
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserDetails {
781
+ return new UserDetails().fromBinary(bytes, options);
782
+ }
783
+
784
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserDetails {
785
+ return new UserDetails().fromJson(jsonValue, options);
786
+ }
787
+
788
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserDetails {
789
+ return new UserDetails().fromJsonString(jsonString, options);
790
+ }
791
+
792
+ static equals(a: UserDetails | PlainMessage<UserDetails> | undefined, b: UserDetails | PlainMessage<UserDetails> | undefined): boolean {
793
+ return proto3.util.equals(UserDetails, a, b);
794
+ }
795
+ }
796
+
797
+ /**
798
+ * @generated from message scalekit.v1.auth.SignupOrganizationRequest
799
+ */
800
+ export class SignupOrganizationRequest extends Message<SignupOrganizationRequest> {
801
+ /**
802
+ * making all optional for now
803
+ *
804
+ * @generated from field: string organization_name = 1;
805
+ */
806
+ organizationName = "";
807
+
808
+ /**
809
+ * @generated from field: string first_name = 2;
810
+ */
811
+ firstName = "";
812
+
813
+ /**
814
+ * @generated from field: string last_name = 3;
815
+ */
816
+ lastName = "";
817
+
818
+ /**
819
+ * @generated from field: string full_name = 4;
820
+ */
821
+ fullName = "";
822
+
823
+ /**
824
+ * @generated from field: string phone_number = 5;
825
+ */
826
+ phoneNumber = "";
827
+
828
+ constructor(data?: PartialMessage<SignupOrganizationRequest>) {
829
+ super();
830
+ proto3.util.initPartial(data, this);
831
+ }
832
+
833
+ static readonly runtime: typeof proto3 = proto3;
834
+ static readonly typeName = "scalekit.v1.auth.SignupOrganizationRequest";
835
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
836
+ { no: 1, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
837
+ { no: 2, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
838
+ { no: 3, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
839
+ { no: 4, name: "full_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
840
+ { no: 5, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
841
+ ]);
842
+
843
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignupOrganizationRequest {
844
+ return new SignupOrganizationRequest().fromBinary(bytes, options);
845
+ }
846
+
847
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignupOrganizationRequest {
848
+ return new SignupOrganizationRequest().fromJson(jsonValue, options);
849
+ }
850
+
851
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignupOrganizationRequest {
852
+ return new SignupOrganizationRequest().fromJsonString(jsonString, options);
853
+ }
854
+
855
+ static equals(a: SignupOrganizationRequest | PlainMessage<SignupOrganizationRequest> | undefined, b: SignupOrganizationRequest | PlainMessage<SignupOrganizationRequest> | undefined): boolean {
856
+ return proto3.util.equals(SignupOrganizationRequest, a, b);
857
+ }
858
+ }
859
+
860
+ /**
861
+ * @generated from message scalekit.v1.auth.SignupOrganizationResponse
862
+ */
863
+ export class SignupOrganizationResponse extends Message<SignupOrganizationResponse> {
864
+ /**
865
+ * @generated from field: string organization_id = 1;
866
+ */
867
+ organizationId = "";
868
+
869
+ /**
870
+ * @generated from field: string organization_name = 2;
871
+ */
872
+ organizationName = "";
873
+
874
+ constructor(data?: PartialMessage<SignupOrganizationResponse>) {
875
+ super();
876
+ proto3.util.initPartial(data, this);
877
+ }
878
+
879
+ static readonly runtime: typeof proto3 = proto3;
880
+ static readonly typeName = "scalekit.v1.auth.SignupOrganizationResponse";
881
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
882
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
883
+ { no: 2, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
884
+ ]);
885
+
886
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignupOrganizationResponse {
887
+ return new SignupOrganizationResponse().fromBinary(bytes, options);
888
+ }
889
+
890
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignupOrganizationResponse {
891
+ return new SignupOrganizationResponse().fromJson(jsonValue, options);
892
+ }
893
+
894
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignupOrganizationResponse {
895
+ return new SignupOrganizationResponse().fromJsonString(jsonString, options);
896
+ }
897
+
898
+ static equals(a: SignupOrganizationResponse | PlainMessage<SignupOrganizationResponse> | undefined, b: SignupOrganizationResponse | PlainMessage<SignupOrganizationResponse> | undefined): boolean {
899
+ return proto3.util.equals(SignupOrganizationResponse, a, b);
900
+ }
901
+ }
902
+
903
+ /**
904
+ * @generated from message scalekit.v1.auth.UpdateLoginUserDetailsRequest
905
+ */
906
+ export class UpdateLoginUserDetailsRequest extends Message<UpdateLoginUserDetailsRequest> {
907
+ /**
908
+ * @generated from field: string connection_id = 1;
909
+ */
910
+ connectionId = "";
911
+
912
+ /**
913
+ * @generated from field: string login_request_id = 2;
914
+ */
915
+ loginRequestId = "";
916
+
917
+ /**
918
+ * @generated from field: scalekit.v1.auth.User user = 3;
919
+ */
920
+ user?: User;
921
+
922
+ constructor(data?: PartialMessage<UpdateLoginUserDetailsRequest>) {
923
+ super();
924
+ proto3.util.initPartial(data, this);
925
+ }
926
+
927
+ static readonly runtime: typeof proto3 = proto3;
928
+ static readonly typeName = "scalekit.v1.auth.UpdateLoginUserDetailsRequest";
929
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
930
+ { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
931
+ { no: 2, name: "login_request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
932
+ { no: 3, name: "user", kind: "message", T: User },
933
+ ]);
934
+
935
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLoginUserDetailsRequest {
936
+ return new UpdateLoginUserDetailsRequest().fromBinary(bytes, options);
937
+ }
938
+
939
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLoginUserDetailsRequest {
940
+ return new UpdateLoginUserDetailsRequest().fromJson(jsonValue, options);
941
+ }
942
+
943
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLoginUserDetailsRequest {
944
+ return new UpdateLoginUserDetailsRequest().fromJsonString(jsonString, options);
945
+ }
946
+
947
+ static equals(a: UpdateLoginUserDetailsRequest | PlainMessage<UpdateLoginUserDetailsRequest> | undefined, b: UpdateLoginUserDetailsRequest | PlainMessage<UpdateLoginUserDetailsRequest> | undefined): boolean {
948
+ return proto3.util.equals(UpdateLoginUserDetailsRequest, a, b);
949
+ }
950
+ }
951
+
952
+ /**
953
+ * @generated from message scalekit.v1.auth.User
954
+ */
955
+ export class User extends Message<User> {
956
+ /**
957
+ * @generated from field: string sub = 1;
958
+ */
959
+ sub = "";
960
+
961
+ /**
962
+ * @generated from field: string email = 2;
963
+ */
964
+ email = "";
965
+
966
+ /**
967
+ * @generated from field: string given_name = 3;
968
+ */
969
+ givenName = "";
970
+
971
+ /**
972
+ * @generated from field: string family_name = 4;
973
+ */
974
+ familyName = "";
975
+
976
+ /**
977
+ * @generated from field: bool email_verified = 5;
978
+ */
979
+ emailVerified = false;
980
+
981
+ /**
982
+ * @generated from field: string phone_number = 6;
983
+ */
984
+ phoneNumber = "";
985
+
986
+ /**
987
+ * @generated from field: bool phone_number_verified = 7;
988
+ */
989
+ phoneNumberVerified = false;
990
+
991
+ /**
992
+ * @generated from field: string name = 8;
993
+ */
994
+ name = "";
995
+
996
+ /**
997
+ * @generated from field: string preferred_username = 9;
998
+ */
999
+ preferredUsername = "";
1000
+
1001
+ /**
1002
+ * @generated from field: string picture = 10;
1003
+ */
1004
+ picture = "";
1005
+
1006
+ /**
1007
+ * @generated from field: string gender = 11;
1008
+ */
1009
+ gender = "";
1010
+
1011
+ /**
1012
+ * @generated from field: string locale = 12;
1013
+ */
1014
+ locale = "";
1015
+
1016
+ /**
1017
+ * @generated from field: repeated string groups = 13;
1018
+ */
1019
+ groups: string[] = [];
1020
+
1021
+ /**
1022
+ * @generated from field: google.protobuf.Struct custom_attributes = 14;
1023
+ */
1024
+ customAttributes?: Struct;
1025
+
1026
+ constructor(data?: PartialMessage<User>) {
1027
+ super();
1028
+ proto3.util.initPartial(data, this);
1029
+ }
1030
+
1031
+ static readonly runtime: typeof proto3 = proto3;
1032
+ static readonly typeName = "scalekit.v1.auth.User";
1033
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1034
+ { no: 1, name: "sub", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1035
+ { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1036
+ { no: 3, name: "given_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1037
+ { no: 4, name: "family_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1038
+ { no: 5, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1039
+ { no: 6, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1040
+ { no: 7, name: "phone_number_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1041
+ { no: 8, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1042
+ { no: 9, name: "preferred_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1043
+ { no: 10, name: "picture", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1044
+ { no: 11, name: "gender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1045
+ { no: 12, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1046
+ { no: 13, name: "groups", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1047
+ { no: 14, name: "custom_attributes", kind: "message", T: Struct },
1048
+ ]);
1049
+
1050
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {
1051
+ return new User().fromBinary(bytes, options);
1052
+ }
1053
+
1054
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User {
1055
+ return new User().fromJson(jsonValue, options);
1056
+ }
1057
+
1058
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User {
1059
+ return new User().fromJsonString(jsonString, options);
1060
+ }
1061
+
1062
+ static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean {
1063
+ return proto3.util.equals(User, a, b);
1064
+ }
1065
+ }
1066
+
1067
+ /**
1068
+ * @generated from message scalekit.v1.auth.GetAuthStateResponse
1069
+ */
1070
+ export class GetAuthStateResponse extends Message<GetAuthStateResponse> {
1071
+ /**
1072
+ * @generated from field: scalekit.v1.auth.AuthState auth_state = 1;
1073
+ */
1074
+ authState = AuthState.AUTH_STATE_UNSPECIFIED;
1075
+
1076
+ constructor(data?: PartialMessage<GetAuthStateResponse>) {
1077
+ super();
1078
+ proto3.util.initPartial(data, this);
1079
+ }
1080
+
1081
+ static readonly runtime: typeof proto3 = proto3;
1082
+ static readonly typeName = "scalekit.v1.auth.GetAuthStateResponse";
1083
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1084
+ { no: 1, name: "auth_state", kind: "enum", T: proto3.getEnumType(AuthState) },
1085
+ ]);
1086
+
1087
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthStateResponse {
1088
+ return new GetAuthStateResponse().fromBinary(bytes, options);
1089
+ }
1090
+
1091
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthStateResponse {
1092
+ return new GetAuthStateResponse().fromJson(jsonValue, options);
1093
+ }
1094
+
1095
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthStateResponse {
1096
+ return new GetAuthStateResponse().fromJsonString(jsonString, options);
1097
+ }
1098
+
1099
+ static equals(a: GetAuthStateResponse | PlainMessage<GetAuthStateResponse> | undefined, b: GetAuthStateResponse | PlainMessage<GetAuthStateResponse> | undefined): boolean {
1100
+ return proto3.util.equals(GetAuthStateResponse, a, b);
1101
+ }
1102
+ }
1103
+
1104
+ /**
1105
+ * @generated from message scalekit.v1.auth.GetAuthErrorRequest
1106
+ */
1107
+ export class GetAuthErrorRequest extends Message<GetAuthErrorRequest> {
1108
+ /**
1109
+ * @generated from field: string error_id = 1;
1110
+ */
1111
+ errorId = "";
1112
+
1113
+ constructor(data?: PartialMessage<GetAuthErrorRequest>) {
1114
+ super();
1115
+ proto3.util.initPartial(data, this);
1116
+ }
1117
+
1118
+ static readonly runtime: typeof proto3 = proto3;
1119
+ static readonly typeName = "scalekit.v1.auth.GetAuthErrorRequest";
1120
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1121
+ { no: 1, name: "error_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1122
+ ]);
1123
+
1124
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthErrorRequest {
1125
+ return new GetAuthErrorRequest().fromBinary(bytes, options);
1126
+ }
1127
+
1128
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthErrorRequest {
1129
+ return new GetAuthErrorRequest().fromJson(jsonValue, options);
1130
+ }
1131
+
1132
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthErrorRequest {
1133
+ return new GetAuthErrorRequest().fromJsonString(jsonString, options);
1134
+ }
1135
+
1136
+ static equals(a: GetAuthErrorRequest | PlainMessage<GetAuthErrorRequest> | undefined, b: GetAuthErrorRequest | PlainMessage<GetAuthErrorRequest> | undefined): boolean {
1137
+ return proto3.util.equals(GetAuthErrorRequest, a, b);
1138
+ }
1139
+ }
1140
+
1141
+ /**
1142
+ * @generated from message scalekit.v1.auth.GetAuthErrorResponse
1143
+ */
1144
+ export class GetAuthErrorResponse extends Message<GetAuthErrorResponse> {
1145
+ /**
1146
+ * @generated from field: string error = 1;
1147
+ */
1148
+ error = "";
1149
+
1150
+ /**
1151
+ * @generated from field: string error_description = 2;
1152
+ */
1153
+ errorDescription = "";
1154
+
1155
+ constructor(data?: PartialMessage<GetAuthErrorResponse>) {
1156
+ super();
1157
+ proto3.util.initPartial(data, this);
1158
+ }
1159
+
1160
+ static readonly runtime: typeof proto3 = proto3;
1161
+ static readonly typeName = "scalekit.v1.auth.GetAuthErrorResponse";
1162
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1163
+ { no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1164
+ { no: 2, name: "error_description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1165
+ ]);
1166
+
1167
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthErrorResponse {
1168
+ return new GetAuthErrorResponse().fromBinary(bytes, options);
1169
+ }
1170
+
1171
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthErrorResponse {
1172
+ return new GetAuthErrorResponse().fromJson(jsonValue, options);
1173
+ }
1174
+
1175
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthErrorResponse {
1176
+ return new GetAuthErrorResponse().fromJsonString(jsonString, options);
1177
+ }
1178
+
1179
+ static equals(a: GetAuthErrorResponse | PlainMessage<GetAuthErrorResponse> | undefined, b: GetAuthErrorResponse | PlainMessage<GetAuthErrorResponse> | undefined): boolean {
1180
+ return proto3.util.equals(GetAuthErrorResponse, a, b);
1181
+ }
1182
+ }
1183
+