@scalekit-sdk/node 2.1.5 → 2.1.7

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/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/organization.d.ts +9 -2
  7. package/lib/organization.js +19 -0
  8. package/lib/organization.js.map +1 -1
  9. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +16 -0
  10. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +20 -0
  11. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
  12. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +118 -0
  13. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +126 -0
  14. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +1 -0
  15. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +617 -0
  16. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +927 -0
  17. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -0
  18. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +34 -4
  19. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +43 -6
  20. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  21. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +10 -1
  22. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +9 -0
  23. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
  24. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +277 -2
  25. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +324 -2
  26. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  27. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +6 -6
  28. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +5 -5
  29. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +19 -30
  30. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +22 -31
  31. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
  32. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +43 -50
  33. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +66 -73
  34. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
  35. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +62 -14
  36. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +46 -17
  37. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  38. package/lib/scalekit.d.ts +2 -0
  39. package/lib/scalekit.js +2 -0
  40. package/lib/scalekit.js.map +1 -1
  41. package/lib/types/organization.d.ts +3 -0
  42. package/package.json +1 -1
  43. package/src/auth.ts +65 -0
  44. package/src/core.ts +1 -1
  45. package/src/organization.ts +25 -2
  46. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +24 -0
  47. package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +125 -0
  48. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +1183 -0
  49. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +50 -6
  50. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +10 -1
  51. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +504 -1
  52. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +6 -6
  53. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +28 -43
  54. package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +82 -81
  55. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +92 -22
  56. package/src/scalekit.ts +6 -0
  57. package/src/types/organization.ts +4 -0
  58. package/tests/organization.test.ts +16 -0
@@ -0,0 +1,617 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf";
3
+ import { ConnectionType, PasswordlessType } from "../connections/connections_pb.js";
4
+ /**
5
+ * @generated from enum scalekit.v1.auth.Intent
6
+ */
7
+ export declare enum Intent {
8
+ /**
9
+ * @generated from enum value: INTENT_UNSPECIFIED = 0;
10
+ */
11
+ INTENT_UNSPECIFIED = 0,
12
+ /**
13
+ * @generated from enum value: sign_in = 1;
14
+ */
15
+ sign_in = 1,
16
+ /**
17
+ * @generated from enum value: sign_up = 2;
18
+ */
19
+ sign_up = 2
20
+ }
21
+ /**
22
+ * @generated from enum scalekit.v1.auth.AuthState
23
+ */
24
+ export declare enum AuthState {
25
+ /**
26
+ * @generated from enum value: AUTH_STATE_UNSPECIFIED = 0;
27
+ */
28
+ AUTH_STATE_UNSPECIFIED = 0,
29
+ /**
30
+ * @generated from enum value: AUTHENTICATION_IN_PROGRESS = 1;
31
+ */
32
+ AUTHENTICATION_IN_PROGRESS = 1,
33
+ /**
34
+ * @generated from enum value: ORGANIZATION_SWITCHER = 2;
35
+ */
36
+ ORGANIZATION_SWITCHER = 2,
37
+ /**
38
+ * @generated from enum value: ORGANIZATION_SELECTED = 3;
39
+ */
40
+ ORGANIZATION_SELECTED = 3,
41
+ /**
42
+ * @generated from enum value: ORGANIZATION_SIGNUP = 4;
43
+ */
44
+ ORGANIZATION_SIGNUP = 4,
45
+ /**
46
+ * @generated from enum value: ORGANIZATION_SWITCHER_SIGNUP = 5;
47
+ */
48
+ ORGANIZATION_SWITCHER_SIGNUP = 5,
49
+ /**
50
+ * @generated from enum value: OTP_VERIFICATION_PENDING = 6;
51
+ */
52
+ OTP_VERIFICATION_PENDING = 6,
53
+ /**
54
+ * @generated from enum value: MAGIC_LINK_SENT = 7;
55
+ */
56
+ MAGIC_LINK_SENT = 7,
57
+ /**
58
+ * @generated from enum value: LINK_SENT_OTP_VERIFICATION_PENDING = 8;
59
+ */
60
+ LINK_SENT_OTP_VERIFICATION_PENDING = 8,
61
+ /**
62
+ * @generated from enum value: OTP_VERIFIED = 9;
63
+ */
64
+ OTP_VERIFIED = 9,
65
+ /**
66
+ * @generated from enum value: LINK_VERIFIED = 10;
67
+ */
68
+ LINK_VERIFIED = 10,
69
+ /**
70
+ * @generated from enum value: SSO_AUTHENTICATED = 11;
71
+ */
72
+ SSO_AUTHENTICATED = 11,
73
+ /**
74
+ * @generated from enum value: ORG_USER_CREATED = 12;
75
+ */
76
+ ORG_USER_CREATED = 12,
77
+ /**
78
+ * @generated from enum value: AUTHENTICATION_COMPLETED = 13;
79
+ */
80
+ AUTHENTICATION_COMPLETED = 13,
81
+ /**
82
+ * @generated from enum value: AUTHENTICATION_FAILED = 14;
83
+ */
84
+ AUTHENTICATION_FAILED = 14,
85
+ /**
86
+ * @generated from enum value: WEBAUTHN_VERIFIED = 15;
87
+ */
88
+ WEBAUTHN_VERIFIED = 15
89
+ }
90
+ /**
91
+ * @generated from message scalekit.v1.auth.ListAuthMethodsRequest
92
+ */
93
+ export declare class ListAuthMethodsRequest extends Message<ListAuthMethodsRequest> {
94
+ /**
95
+ * @generated from field: string intent = 1;
96
+ */
97
+ intent: string;
98
+ constructor(data?: PartialMessage<ListAuthMethodsRequest>);
99
+ static readonly runtime: typeof proto3;
100
+ static readonly typeName = "scalekit.v1.auth.ListAuthMethodsRequest";
101
+ static readonly fields: FieldList;
102
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAuthMethodsRequest;
103
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAuthMethodsRequest;
104
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAuthMethodsRequest;
105
+ static equals(a: ListAuthMethodsRequest | PlainMessage<ListAuthMethodsRequest> | undefined, b: ListAuthMethodsRequest | PlainMessage<ListAuthMethodsRequest> | undefined): boolean;
106
+ }
107
+ /**
108
+ * @generated from message scalekit.v1.auth.ListAuthMethodsResponse
109
+ */
110
+ export declare class ListAuthMethodsResponse extends Message<ListAuthMethodsResponse> {
111
+ /**
112
+ * @generated from field: repeated scalekit.v1.auth.AuthMethod auth_methods = 1;
113
+ */
114
+ authMethods: AuthMethod[];
115
+ constructor(data?: PartialMessage<ListAuthMethodsResponse>);
116
+ static readonly runtime: typeof proto3;
117
+ static readonly typeName = "scalekit.v1.auth.ListAuthMethodsResponse";
118
+ static readonly fields: FieldList;
119
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAuthMethodsResponse;
120
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAuthMethodsResponse;
121
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAuthMethodsResponse;
122
+ static equals(a: ListAuthMethodsResponse | PlainMessage<ListAuthMethodsResponse> | undefined, b: ListAuthMethodsResponse | PlainMessage<ListAuthMethodsResponse> | undefined): boolean;
123
+ }
124
+ /**
125
+ * @generated from message scalekit.v1.auth.AuthMethod
126
+ */
127
+ export declare class AuthMethod extends Message<AuthMethod> {
128
+ /**
129
+ * @generated from field: string connection_id = 1;
130
+ */
131
+ connectionId: string;
132
+ /**
133
+ * @generated from field: scalekit.v1.connections.ConnectionType connection_type = 2;
134
+ */
135
+ connectionType: ConnectionType;
136
+ /**
137
+ * @generated from field: string provider = 3;
138
+ */
139
+ provider: string;
140
+ /**
141
+ * @generated from field: string auth_initiation_uri = 4;
142
+ */
143
+ authInitiationUri: string;
144
+ /**
145
+ * @generated from field: optional scalekit.v1.connections.PasswordlessType passwordless_type = 5;
146
+ */
147
+ passwordlessType?: PasswordlessType;
148
+ /**
149
+ * @generated from field: optional uint32 code_challenge_length = 6;
150
+ */
151
+ codeChallengeLength?: number;
152
+ /**
153
+ * @generated from field: optional bool enable_webauthn_auto_registration = 7;
154
+ */
155
+ enableWebauthnAutoRegistration?: boolean;
156
+ /**
157
+ * @generated from field: optional bool show_passkey_button = 8;
158
+ */
159
+ showPasskeyButton?: boolean;
160
+ /**
161
+ * @generated from field: optional bool enable_webauthn_conditional_login = 9;
162
+ */
163
+ enableWebauthnConditionalLogin?: boolean;
164
+ constructor(data?: PartialMessage<AuthMethod>);
165
+ static readonly runtime: typeof proto3;
166
+ static readonly typeName = "scalekit.v1.auth.AuthMethod";
167
+ static readonly fields: FieldList;
168
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuthMethod;
169
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuthMethod;
170
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuthMethod;
171
+ static equals(a: AuthMethod | PlainMessage<AuthMethod> | undefined, b: AuthMethod | PlainMessage<AuthMethod> | undefined): boolean;
172
+ }
173
+ /**
174
+ * @generated from message scalekit.v1.auth.DiscoveryAuthMethodRequest
175
+ */
176
+ export declare class DiscoveryAuthMethodRequest extends Message<DiscoveryAuthMethodRequest> {
177
+ /**
178
+ * @generated from field: scalekit.v1.auth.DiscoveryRequest discovery_request = 2;
179
+ */
180
+ discoveryRequest?: DiscoveryRequest;
181
+ constructor(data?: PartialMessage<DiscoveryAuthMethodRequest>);
182
+ static readonly runtime: typeof proto3;
183
+ static readonly typeName = "scalekit.v1.auth.DiscoveryAuthMethodRequest";
184
+ static readonly fields: FieldList;
185
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DiscoveryAuthMethodRequest;
186
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DiscoveryAuthMethodRequest;
187
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DiscoveryAuthMethodRequest;
188
+ static equals(a: DiscoveryAuthMethodRequest | PlainMessage<DiscoveryAuthMethodRequest> | undefined, b: DiscoveryAuthMethodRequest | PlainMessage<DiscoveryAuthMethodRequest> | undefined): boolean;
189
+ }
190
+ /**
191
+ * @generated from message scalekit.v1.auth.DiscoveryRequest
192
+ */
193
+ export declare class DiscoveryRequest extends Message<DiscoveryRequest> {
194
+ /**
195
+ * @generated from field: string email = 1;
196
+ */
197
+ email: string;
198
+ /**
199
+ * @generated from field: scalekit.v1.auth.Intent intent = 2;
200
+ */
201
+ intent: Intent;
202
+ constructor(data?: PartialMessage<DiscoveryRequest>);
203
+ static readonly runtime: typeof proto3;
204
+ static readonly typeName = "scalekit.v1.auth.DiscoveryRequest";
205
+ static readonly fields: FieldList;
206
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DiscoveryRequest;
207
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DiscoveryRequest;
208
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DiscoveryRequest;
209
+ static equals(a: DiscoveryRequest | PlainMessage<DiscoveryRequest> | undefined, b: DiscoveryRequest | PlainMessage<DiscoveryRequest> | undefined): boolean;
210
+ }
211
+ /**
212
+ * @generated from message scalekit.v1.auth.DiscoveryAuthMethodResponse
213
+ */
214
+ export declare class DiscoveryAuthMethodResponse extends Message<DiscoveryAuthMethodResponse> {
215
+ /**
216
+ * @generated from field: scalekit.v1.auth.AuthMethod auth_method = 1;
217
+ */
218
+ authMethod?: AuthMethod;
219
+ constructor(data?: PartialMessage<DiscoveryAuthMethodResponse>);
220
+ static readonly runtime: typeof proto3;
221
+ static readonly typeName = "scalekit.v1.auth.DiscoveryAuthMethodResponse";
222
+ static readonly fields: FieldList;
223
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DiscoveryAuthMethodResponse;
224
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DiscoveryAuthMethodResponse;
225
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DiscoveryAuthMethodResponse;
226
+ static equals(a: DiscoveryAuthMethodResponse | PlainMessage<DiscoveryAuthMethodResponse> | undefined, b: DiscoveryAuthMethodResponse | PlainMessage<DiscoveryAuthMethodResponse> | undefined): boolean;
227
+ }
228
+ /**
229
+ * @generated from message scalekit.v1.auth.GetAuthCustomizationsRequest
230
+ */
231
+ export declare class GetAuthCustomizationsRequest extends Message<GetAuthCustomizationsRequest> {
232
+ constructor(data?: PartialMessage<GetAuthCustomizationsRequest>);
233
+ static readonly runtime: typeof proto3;
234
+ static readonly typeName = "scalekit.v1.auth.GetAuthCustomizationsRequest";
235
+ static readonly fields: FieldList;
236
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthCustomizationsRequest;
237
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthCustomizationsRequest;
238
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthCustomizationsRequest;
239
+ static equals(a: GetAuthCustomizationsRequest | PlainMessage<GetAuthCustomizationsRequest> | undefined, b: GetAuthCustomizationsRequest | PlainMessage<GetAuthCustomizationsRequest> | undefined): boolean;
240
+ }
241
+ /**
242
+ * @generated from message scalekit.v1.auth.GetAuthCustomizationsResponse
243
+ */
244
+ export declare class GetAuthCustomizationsResponse extends Message<GetAuthCustomizationsResponse> {
245
+ /**
246
+ * @generated from field: google.protobuf.Struct customization_settings = 2;
247
+ */
248
+ customizationSettings?: Struct;
249
+ constructor(data?: PartialMessage<GetAuthCustomizationsResponse>);
250
+ static readonly runtime: typeof proto3;
251
+ static readonly typeName = "scalekit.v1.auth.GetAuthCustomizationsResponse";
252
+ static readonly fields: FieldList;
253
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthCustomizationsResponse;
254
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthCustomizationsResponse;
255
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthCustomizationsResponse;
256
+ static equals(a: GetAuthCustomizationsResponse | PlainMessage<GetAuthCustomizationsResponse> | undefined, b: GetAuthCustomizationsResponse | PlainMessage<GetAuthCustomizationsResponse> | undefined): boolean;
257
+ }
258
+ /**
259
+ * @generated from message scalekit.v1.auth.GetAuthFeaturesResponse
260
+ */
261
+ export declare class GetAuthFeaturesResponse extends Message<GetAuthFeaturesResponse> {
262
+ /**
263
+ * @generated from field: google.protobuf.Struct features = 1;
264
+ */
265
+ features?: Struct;
266
+ constructor(data?: PartialMessage<GetAuthFeaturesResponse>);
267
+ static readonly runtime: typeof proto3;
268
+ static readonly typeName = "scalekit.v1.auth.GetAuthFeaturesResponse";
269
+ static readonly fields: FieldList;
270
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthFeaturesResponse;
271
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthFeaturesResponse;
272
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthFeaturesResponse;
273
+ static equals(a: GetAuthFeaturesResponse | PlainMessage<GetAuthFeaturesResponse> | undefined, b: GetAuthFeaturesResponse | PlainMessage<GetAuthFeaturesResponse> | undefined): boolean;
274
+ }
275
+ /**
276
+ * @generated from message scalekit.v1.auth.VerifyPasswordLessRequest
277
+ */
278
+ export declare class VerifyPasswordLessRequest extends Message<VerifyPasswordLessRequest> {
279
+ /**
280
+ * @generated from field: scalekit.v1.auth.OTPRequest otp_req = 2;
281
+ */
282
+ otpReq?: OTPRequest;
283
+ constructor(data?: PartialMessage<VerifyPasswordLessRequest>);
284
+ static readonly runtime: typeof proto3;
285
+ static readonly typeName = "scalekit.v1.auth.VerifyPasswordLessRequest";
286
+ static readonly fields: FieldList;
287
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyPasswordLessRequest;
288
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyPasswordLessRequest;
289
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyPasswordLessRequest;
290
+ static equals(a: VerifyPasswordLessRequest | PlainMessage<VerifyPasswordLessRequest> | undefined, b: VerifyPasswordLessRequest | PlainMessage<VerifyPasswordLessRequest> | undefined): boolean;
291
+ }
292
+ /**
293
+ * @generated from message scalekit.v1.auth.VerifyPasswordLessResponse
294
+ */
295
+ export declare class VerifyPasswordLessResponse extends Message<VerifyPasswordLessResponse> {
296
+ constructor(data?: PartialMessage<VerifyPasswordLessResponse>);
297
+ static readonly runtime: typeof proto3;
298
+ static readonly typeName = "scalekit.v1.auth.VerifyPasswordLessResponse";
299
+ static readonly fields: FieldList;
300
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyPasswordLessResponse;
301
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyPasswordLessResponse;
302
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyPasswordLessResponse;
303
+ static equals(a: VerifyPasswordLessResponse | PlainMessage<VerifyPasswordLessResponse> | undefined, b: VerifyPasswordLessResponse | PlainMessage<VerifyPasswordLessResponse> | undefined): boolean;
304
+ }
305
+ /**
306
+ * @generated from message scalekit.v1.auth.OTPRequest
307
+ */
308
+ export declare class OTPRequest extends Message<OTPRequest> {
309
+ /**
310
+ * @generated from field: string code_challenge = 1;
311
+ */
312
+ codeChallenge: string;
313
+ constructor(data?: PartialMessage<OTPRequest>);
314
+ static readonly runtime: typeof proto3;
315
+ static readonly typeName = "scalekit.v1.auth.OTPRequest";
316
+ static readonly fields: FieldList;
317
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OTPRequest;
318
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OTPRequest;
319
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OTPRequest;
320
+ static equals(a: OTPRequest | PlainMessage<OTPRequest> | undefined, b: OTPRequest | PlainMessage<OTPRequest> | undefined): boolean;
321
+ }
322
+ /**
323
+ * @generated from message scalekit.v1.auth.ListUserOrganizationsResponse
324
+ */
325
+ export declare class ListUserOrganizationsResponse extends Message<ListUserOrganizationsResponse> {
326
+ /**
327
+ * @generated from field: repeated scalekit.v1.auth.Organization organizations = 1;
328
+ */
329
+ organizations: Organization[];
330
+ /**
331
+ * @generated from field: scalekit.v1.auth.UserDetails user = 2;
332
+ */
333
+ user?: UserDetails;
334
+ /**
335
+ * @generated from field: scalekit.v1.auth.Intent intent = 3;
336
+ */
337
+ intent: Intent;
338
+ constructor(data?: PartialMessage<ListUserOrganizationsResponse>);
339
+ static readonly runtime: typeof proto3;
340
+ static readonly typeName = "scalekit.v1.auth.ListUserOrganizationsResponse";
341
+ static readonly fields: FieldList;
342
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserOrganizationsResponse;
343
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserOrganizationsResponse;
344
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserOrganizationsResponse;
345
+ static equals(a: ListUserOrganizationsResponse | PlainMessage<ListUserOrganizationsResponse> | undefined, b: ListUserOrganizationsResponse | PlainMessage<ListUserOrganizationsResponse> | undefined): boolean;
346
+ }
347
+ /**
348
+ * @generated from message scalekit.v1.auth.Organization
349
+ */
350
+ export declare class Organization extends Message<Organization> {
351
+ /**
352
+ * @generated from field: string id = 1;
353
+ */
354
+ id: string;
355
+ /**
356
+ * @generated from field: string name = 2;
357
+ */
358
+ name: string;
359
+ /**
360
+ * @generated from field: string membership_status = 3;
361
+ */
362
+ membershipStatus: string;
363
+ /**
364
+ * @generated from field: optional string invitation_inviter_email = 4;
365
+ */
366
+ invitationInviterEmail?: string;
367
+ /**
368
+ * @generated from field: optional google.protobuf.Timestamp invitation_accepted_at = 5;
369
+ */
370
+ invitationAcceptedAt?: Timestamp;
371
+ /**
372
+ * @generated from field: optional google.protobuf.Timestamp invitation_created_at = 6;
373
+ */
374
+ invitationCreatedAt?: Timestamp;
375
+ /**
376
+ * @generated from field: optional google.protobuf.Timestamp invitation_expires_at = 7;
377
+ */
378
+ invitationExpiresAt?: Timestamp;
379
+ constructor(data?: PartialMessage<Organization>);
380
+ static readonly runtime: typeof proto3;
381
+ static readonly typeName = "scalekit.v1.auth.Organization";
382
+ static readonly fields: FieldList;
383
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Organization;
384
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Organization;
385
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Organization;
386
+ static equals(a: Organization | PlainMessage<Organization> | undefined, b: Organization | PlainMessage<Organization> | undefined): boolean;
387
+ }
388
+ /**
389
+ * @generated from message scalekit.v1.auth.UserDetails
390
+ */
391
+ export declare class UserDetails extends Message<UserDetails> {
392
+ /**
393
+ * @generated from field: string email = 1;
394
+ */
395
+ email: string;
396
+ /**
397
+ * @generated from field: string first_name = 2;
398
+ */
399
+ firstName: string;
400
+ /**
401
+ * @generated from field: string last_name = 3;
402
+ */
403
+ lastName: string;
404
+ constructor(data?: PartialMessage<UserDetails>);
405
+ static readonly runtime: typeof proto3;
406
+ static readonly typeName = "scalekit.v1.auth.UserDetails";
407
+ static readonly fields: FieldList;
408
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserDetails;
409
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserDetails;
410
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserDetails;
411
+ static equals(a: UserDetails | PlainMessage<UserDetails> | undefined, b: UserDetails | PlainMessage<UserDetails> | undefined): boolean;
412
+ }
413
+ /**
414
+ * @generated from message scalekit.v1.auth.SignupOrganizationRequest
415
+ */
416
+ export declare class SignupOrganizationRequest extends Message<SignupOrganizationRequest> {
417
+ /**
418
+ * making all optional for now
419
+ *
420
+ * @generated from field: string organization_name = 1;
421
+ */
422
+ organizationName: string;
423
+ /**
424
+ * @generated from field: string first_name = 2;
425
+ */
426
+ firstName: string;
427
+ /**
428
+ * @generated from field: string last_name = 3;
429
+ */
430
+ lastName: string;
431
+ /**
432
+ * @generated from field: string full_name = 4;
433
+ */
434
+ fullName: string;
435
+ /**
436
+ * @generated from field: string phone_number = 5;
437
+ */
438
+ phoneNumber: string;
439
+ constructor(data?: PartialMessage<SignupOrganizationRequest>);
440
+ static readonly runtime: typeof proto3;
441
+ static readonly typeName = "scalekit.v1.auth.SignupOrganizationRequest";
442
+ static readonly fields: FieldList;
443
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignupOrganizationRequest;
444
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignupOrganizationRequest;
445
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignupOrganizationRequest;
446
+ static equals(a: SignupOrganizationRequest | PlainMessage<SignupOrganizationRequest> | undefined, b: SignupOrganizationRequest | PlainMessage<SignupOrganizationRequest> | undefined): boolean;
447
+ }
448
+ /**
449
+ * @generated from message scalekit.v1.auth.SignupOrganizationResponse
450
+ */
451
+ export declare class SignupOrganizationResponse extends Message<SignupOrganizationResponse> {
452
+ /**
453
+ * @generated from field: string organization_id = 1;
454
+ */
455
+ organizationId: string;
456
+ /**
457
+ * @generated from field: string organization_name = 2;
458
+ */
459
+ organizationName: string;
460
+ constructor(data?: PartialMessage<SignupOrganizationResponse>);
461
+ static readonly runtime: typeof proto3;
462
+ static readonly typeName = "scalekit.v1.auth.SignupOrganizationResponse";
463
+ static readonly fields: FieldList;
464
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignupOrganizationResponse;
465
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignupOrganizationResponse;
466
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignupOrganizationResponse;
467
+ static equals(a: SignupOrganizationResponse | PlainMessage<SignupOrganizationResponse> | undefined, b: SignupOrganizationResponse | PlainMessage<SignupOrganizationResponse> | undefined): boolean;
468
+ }
469
+ /**
470
+ * @generated from message scalekit.v1.auth.UpdateLoginUserDetailsRequest
471
+ */
472
+ export declare class UpdateLoginUserDetailsRequest extends Message<UpdateLoginUserDetailsRequest> {
473
+ /**
474
+ * @generated from field: string connection_id = 1;
475
+ */
476
+ connectionId: string;
477
+ /**
478
+ * @generated from field: string login_request_id = 2;
479
+ */
480
+ loginRequestId: string;
481
+ /**
482
+ * @generated from field: scalekit.v1.auth.User user = 3;
483
+ */
484
+ user?: User;
485
+ constructor(data?: PartialMessage<UpdateLoginUserDetailsRequest>);
486
+ static readonly runtime: typeof proto3;
487
+ static readonly typeName = "scalekit.v1.auth.UpdateLoginUserDetailsRequest";
488
+ static readonly fields: FieldList;
489
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLoginUserDetailsRequest;
490
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLoginUserDetailsRequest;
491
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLoginUserDetailsRequest;
492
+ static equals(a: UpdateLoginUserDetailsRequest | PlainMessage<UpdateLoginUserDetailsRequest> | undefined, b: UpdateLoginUserDetailsRequest | PlainMessage<UpdateLoginUserDetailsRequest> | undefined): boolean;
493
+ }
494
+ /**
495
+ * @generated from message scalekit.v1.auth.User
496
+ */
497
+ export declare class User extends Message<User> {
498
+ /**
499
+ * @generated from field: string sub = 1;
500
+ */
501
+ sub: string;
502
+ /**
503
+ * @generated from field: string email = 2;
504
+ */
505
+ email: string;
506
+ /**
507
+ * @generated from field: string given_name = 3;
508
+ */
509
+ givenName: string;
510
+ /**
511
+ * @generated from field: string family_name = 4;
512
+ */
513
+ familyName: string;
514
+ /**
515
+ * @generated from field: bool email_verified = 5;
516
+ */
517
+ emailVerified: boolean;
518
+ /**
519
+ * @generated from field: string phone_number = 6;
520
+ */
521
+ phoneNumber: string;
522
+ /**
523
+ * @generated from field: bool phone_number_verified = 7;
524
+ */
525
+ phoneNumberVerified: boolean;
526
+ /**
527
+ * @generated from field: string name = 8;
528
+ */
529
+ name: string;
530
+ /**
531
+ * @generated from field: string preferred_username = 9;
532
+ */
533
+ preferredUsername: string;
534
+ /**
535
+ * @generated from field: string picture = 10;
536
+ */
537
+ picture: string;
538
+ /**
539
+ * @generated from field: string gender = 11;
540
+ */
541
+ gender: string;
542
+ /**
543
+ * @generated from field: string locale = 12;
544
+ */
545
+ locale: string;
546
+ /**
547
+ * @generated from field: repeated string groups = 13;
548
+ */
549
+ groups: string[];
550
+ /**
551
+ * @generated from field: google.protobuf.Struct custom_attributes = 14;
552
+ */
553
+ customAttributes?: Struct;
554
+ constructor(data?: PartialMessage<User>);
555
+ static readonly runtime: typeof proto3;
556
+ static readonly typeName = "scalekit.v1.auth.User";
557
+ static readonly fields: FieldList;
558
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User;
559
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User;
560
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User;
561
+ static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean;
562
+ }
563
+ /**
564
+ * @generated from message scalekit.v1.auth.GetAuthStateResponse
565
+ */
566
+ export declare class GetAuthStateResponse extends Message<GetAuthStateResponse> {
567
+ /**
568
+ * @generated from field: scalekit.v1.auth.AuthState auth_state = 1;
569
+ */
570
+ authState: AuthState;
571
+ constructor(data?: PartialMessage<GetAuthStateResponse>);
572
+ static readonly runtime: typeof proto3;
573
+ static readonly typeName = "scalekit.v1.auth.GetAuthStateResponse";
574
+ static readonly fields: FieldList;
575
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthStateResponse;
576
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthStateResponse;
577
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthStateResponse;
578
+ static equals(a: GetAuthStateResponse | PlainMessage<GetAuthStateResponse> | undefined, b: GetAuthStateResponse | PlainMessage<GetAuthStateResponse> | undefined): boolean;
579
+ }
580
+ /**
581
+ * @generated from message scalekit.v1.auth.GetAuthErrorRequest
582
+ */
583
+ export declare class GetAuthErrorRequest extends Message<GetAuthErrorRequest> {
584
+ /**
585
+ * @generated from field: string error_id = 1;
586
+ */
587
+ errorId: string;
588
+ constructor(data?: PartialMessage<GetAuthErrorRequest>);
589
+ static readonly runtime: typeof proto3;
590
+ static readonly typeName = "scalekit.v1.auth.GetAuthErrorRequest";
591
+ static readonly fields: FieldList;
592
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthErrorRequest;
593
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthErrorRequest;
594
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthErrorRequest;
595
+ static equals(a: GetAuthErrorRequest | PlainMessage<GetAuthErrorRequest> | undefined, b: GetAuthErrorRequest | PlainMessage<GetAuthErrorRequest> | undefined): boolean;
596
+ }
597
+ /**
598
+ * @generated from message scalekit.v1.auth.GetAuthErrorResponse
599
+ */
600
+ export declare class GetAuthErrorResponse extends Message<GetAuthErrorResponse> {
601
+ /**
602
+ * @generated from field: string error = 1;
603
+ */
604
+ error: string;
605
+ /**
606
+ * @generated from field: string error_description = 2;
607
+ */
608
+ errorDescription: string;
609
+ constructor(data?: PartialMessage<GetAuthErrorResponse>);
610
+ static readonly runtime: typeof proto3;
611
+ static readonly typeName = "scalekit.v1.auth.GetAuthErrorResponse";
612
+ static readonly fields: FieldList;
613
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthErrorResponse;
614
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAuthErrorResponse;
615
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuthErrorResponse;
616
+ static equals(a: GetAuthErrorResponse | PlainMessage<GetAuthErrorResponse> | undefined, b: GetAuthErrorResponse | PlainMessage<GetAuthErrorResponse> | undefined): boolean;
617
+ }