@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,927 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
3
+ // @generated from file scalekit/v1/auth/auth.proto (package scalekit.v1.auth, syntax proto3)
4
+ /* eslint-disable */
5
+ // @ts-nocheck
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.GetAuthErrorResponse = exports.GetAuthErrorRequest = exports.GetAuthStateResponse = exports.User = exports.UpdateLoginUserDetailsRequest = exports.SignupOrganizationResponse = exports.SignupOrganizationRequest = exports.UserDetails = exports.Organization = exports.ListUserOrganizationsResponse = exports.OTPRequest = exports.VerifyPasswordLessResponse = exports.VerifyPasswordLessRequest = exports.GetAuthFeaturesResponse = exports.GetAuthCustomizationsResponse = exports.GetAuthCustomizationsRequest = exports.DiscoveryAuthMethodResponse = exports.DiscoveryRequest = exports.DiscoveryAuthMethodRequest = exports.AuthMethod = exports.ListAuthMethodsResponse = exports.ListAuthMethodsRequest = exports.AuthState = exports.Intent = void 0;
8
+ const protobuf_1 = require("@bufbuild/protobuf");
9
+ const connections_pb_js_1 = require("../connections/connections_pb.js");
10
+ /**
11
+ * @generated from enum scalekit.v1.auth.Intent
12
+ */
13
+ var Intent;
14
+ (function (Intent) {
15
+ /**
16
+ * @generated from enum value: INTENT_UNSPECIFIED = 0;
17
+ */
18
+ Intent[Intent["INTENT_UNSPECIFIED"] = 0] = "INTENT_UNSPECIFIED";
19
+ /**
20
+ * @generated from enum value: sign_in = 1;
21
+ */
22
+ Intent[Intent["sign_in"] = 1] = "sign_in";
23
+ /**
24
+ * @generated from enum value: sign_up = 2;
25
+ */
26
+ Intent[Intent["sign_up"] = 2] = "sign_up";
27
+ })(Intent || (exports.Intent = Intent = {}));
28
+ // Retrieve enum metadata with: proto3.getEnumType(Intent)
29
+ protobuf_1.proto3.util.setEnumType(Intent, "scalekit.v1.auth.Intent", [
30
+ { no: 0, name: "INTENT_UNSPECIFIED" },
31
+ { no: 1, name: "sign_in" },
32
+ { no: 2, name: "sign_up" },
33
+ ]);
34
+ /**
35
+ * @generated from enum scalekit.v1.auth.AuthState
36
+ */
37
+ var AuthState;
38
+ (function (AuthState) {
39
+ /**
40
+ * @generated from enum value: AUTH_STATE_UNSPECIFIED = 0;
41
+ */
42
+ AuthState[AuthState["AUTH_STATE_UNSPECIFIED"] = 0] = "AUTH_STATE_UNSPECIFIED";
43
+ /**
44
+ * @generated from enum value: AUTHENTICATION_IN_PROGRESS = 1;
45
+ */
46
+ AuthState[AuthState["AUTHENTICATION_IN_PROGRESS"] = 1] = "AUTHENTICATION_IN_PROGRESS";
47
+ /**
48
+ * @generated from enum value: ORGANIZATION_SWITCHER = 2;
49
+ */
50
+ AuthState[AuthState["ORGANIZATION_SWITCHER"] = 2] = "ORGANIZATION_SWITCHER";
51
+ /**
52
+ * @generated from enum value: ORGANIZATION_SELECTED = 3;
53
+ */
54
+ AuthState[AuthState["ORGANIZATION_SELECTED"] = 3] = "ORGANIZATION_SELECTED";
55
+ /**
56
+ * @generated from enum value: ORGANIZATION_SIGNUP = 4;
57
+ */
58
+ AuthState[AuthState["ORGANIZATION_SIGNUP"] = 4] = "ORGANIZATION_SIGNUP";
59
+ /**
60
+ * @generated from enum value: ORGANIZATION_SWITCHER_SIGNUP = 5;
61
+ */
62
+ AuthState[AuthState["ORGANIZATION_SWITCHER_SIGNUP"] = 5] = "ORGANIZATION_SWITCHER_SIGNUP";
63
+ /**
64
+ * @generated from enum value: OTP_VERIFICATION_PENDING = 6;
65
+ */
66
+ AuthState[AuthState["OTP_VERIFICATION_PENDING"] = 6] = "OTP_VERIFICATION_PENDING";
67
+ /**
68
+ * @generated from enum value: MAGIC_LINK_SENT = 7;
69
+ */
70
+ AuthState[AuthState["MAGIC_LINK_SENT"] = 7] = "MAGIC_LINK_SENT";
71
+ /**
72
+ * @generated from enum value: LINK_SENT_OTP_VERIFICATION_PENDING = 8;
73
+ */
74
+ AuthState[AuthState["LINK_SENT_OTP_VERIFICATION_PENDING"] = 8] = "LINK_SENT_OTP_VERIFICATION_PENDING";
75
+ /**
76
+ * @generated from enum value: OTP_VERIFIED = 9;
77
+ */
78
+ AuthState[AuthState["OTP_VERIFIED"] = 9] = "OTP_VERIFIED";
79
+ /**
80
+ * @generated from enum value: LINK_VERIFIED = 10;
81
+ */
82
+ AuthState[AuthState["LINK_VERIFIED"] = 10] = "LINK_VERIFIED";
83
+ /**
84
+ * @generated from enum value: SSO_AUTHENTICATED = 11;
85
+ */
86
+ AuthState[AuthState["SSO_AUTHENTICATED"] = 11] = "SSO_AUTHENTICATED";
87
+ /**
88
+ * @generated from enum value: ORG_USER_CREATED = 12;
89
+ */
90
+ AuthState[AuthState["ORG_USER_CREATED"] = 12] = "ORG_USER_CREATED";
91
+ /**
92
+ * @generated from enum value: AUTHENTICATION_COMPLETED = 13;
93
+ */
94
+ AuthState[AuthState["AUTHENTICATION_COMPLETED"] = 13] = "AUTHENTICATION_COMPLETED";
95
+ /**
96
+ * @generated from enum value: AUTHENTICATION_FAILED = 14;
97
+ */
98
+ AuthState[AuthState["AUTHENTICATION_FAILED"] = 14] = "AUTHENTICATION_FAILED";
99
+ /**
100
+ * @generated from enum value: WEBAUTHN_VERIFIED = 15;
101
+ */
102
+ AuthState[AuthState["WEBAUTHN_VERIFIED"] = 15] = "WEBAUTHN_VERIFIED";
103
+ })(AuthState || (exports.AuthState = AuthState = {}));
104
+ // Retrieve enum metadata with: proto3.getEnumType(AuthState)
105
+ protobuf_1.proto3.util.setEnumType(AuthState, "scalekit.v1.auth.AuthState", [
106
+ { no: 0, name: "AUTH_STATE_UNSPECIFIED" },
107
+ { no: 1, name: "AUTHENTICATION_IN_PROGRESS" },
108
+ { no: 2, name: "ORGANIZATION_SWITCHER" },
109
+ { no: 3, name: "ORGANIZATION_SELECTED" },
110
+ { no: 4, name: "ORGANIZATION_SIGNUP" },
111
+ { no: 5, name: "ORGANIZATION_SWITCHER_SIGNUP" },
112
+ { no: 6, name: "OTP_VERIFICATION_PENDING" },
113
+ { no: 7, name: "MAGIC_LINK_SENT" },
114
+ { no: 8, name: "LINK_SENT_OTP_VERIFICATION_PENDING" },
115
+ { no: 9, name: "OTP_VERIFIED" },
116
+ { no: 10, name: "LINK_VERIFIED" },
117
+ { no: 11, name: "SSO_AUTHENTICATED" },
118
+ { no: 12, name: "ORG_USER_CREATED" },
119
+ { no: 13, name: "AUTHENTICATION_COMPLETED" },
120
+ { no: 14, name: "AUTHENTICATION_FAILED" },
121
+ { no: 15, name: "WEBAUTHN_VERIFIED" },
122
+ ]);
123
+ /**
124
+ * @generated from message scalekit.v1.auth.ListAuthMethodsRequest
125
+ */
126
+ class ListAuthMethodsRequest extends protobuf_1.Message {
127
+ constructor(data) {
128
+ super();
129
+ /**
130
+ * @generated from field: string intent = 1;
131
+ */
132
+ this.intent = "";
133
+ protobuf_1.proto3.util.initPartial(data, this);
134
+ }
135
+ static fromBinary(bytes, options) {
136
+ return new ListAuthMethodsRequest().fromBinary(bytes, options);
137
+ }
138
+ static fromJson(jsonValue, options) {
139
+ return new ListAuthMethodsRequest().fromJson(jsonValue, options);
140
+ }
141
+ static fromJsonString(jsonString, options) {
142
+ return new ListAuthMethodsRequest().fromJsonString(jsonString, options);
143
+ }
144
+ static equals(a, b) {
145
+ return protobuf_1.proto3.util.equals(ListAuthMethodsRequest, a, b);
146
+ }
147
+ }
148
+ exports.ListAuthMethodsRequest = ListAuthMethodsRequest;
149
+ ListAuthMethodsRequest.runtime = protobuf_1.proto3;
150
+ ListAuthMethodsRequest.typeName = "scalekit.v1.auth.ListAuthMethodsRequest";
151
+ ListAuthMethodsRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
152
+ { no: 1, name: "intent", kind: "scalar", T: 9 /* ScalarType.STRING */ },
153
+ ]);
154
+ /**
155
+ * @generated from message scalekit.v1.auth.ListAuthMethodsResponse
156
+ */
157
+ class ListAuthMethodsResponse extends protobuf_1.Message {
158
+ constructor(data) {
159
+ super();
160
+ /**
161
+ * @generated from field: repeated scalekit.v1.auth.AuthMethod auth_methods = 1;
162
+ */
163
+ this.authMethods = [];
164
+ protobuf_1.proto3.util.initPartial(data, this);
165
+ }
166
+ static fromBinary(bytes, options) {
167
+ return new ListAuthMethodsResponse().fromBinary(bytes, options);
168
+ }
169
+ static fromJson(jsonValue, options) {
170
+ return new ListAuthMethodsResponse().fromJson(jsonValue, options);
171
+ }
172
+ static fromJsonString(jsonString, options) {
173
+ return new ListAuthMethodsResponse().fromJsonString(jsonString, options);
174
+ }
175
+ static equals(a, b) {
176
+ return protobuf_1.proto3.util.equals(ListAuthMethodsResponse, a, b);
177
+ }
178
+ }
179
+ exports.ListAuthMethodsResponse = ListAuthMethodsResponse;
180
+ ListAuthMethodsResponse.runtime = protobuf_1.proto3;
181
+ ListAuthMethodsResponse.typeName = "scalekit.v1.auth.ListAuthMethodsResponse";
182
+ ListAuthMethodsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
183
+ { no: 1, name: "auth_methods", kind: "message", T: AuthMethod, repeated: true },
184
+ ]);
185
+ /**
186
+ * @generated from message scalekit.v1.auth.AuthMethod
187
+ */
188
+ class AuthMethod extends protobuf_1.Message {
189
+ constructor(data) {
190
+ super();
191
+ /**
192
+ * @generated from field: string connection_id = 1;
193
+ */
194
+ this.connectionId = "";
195
+ /**
196
+ * @generated from field: scalekit.v1.connections.ConnectionType connection_type = 2;
197
+ */
198
+ this.connectionType = connections_pb_js_1.ConnectionType.INVALID;
199
+ /**
200
+ * @generated from field: string provider = 3;
201
+ */
202
+ this.provider = "";
203
+ /**
204
+ * @generated from field: string auth_initiation_uri = 4;
205
+ */
206
+ this.authInitiationUri = "";
207
+ protobuf_1.proto3.util.initPartial(data, this);
208
+ }
209
+ static fromBinary(bytes, options) {
210
+ return new AuthMethod().fromBinary(bytes, options);
211
+ }
212
+ static fromJson(jsonValue, options) {
213
+ return new AuthMethod().fromJson(jsonValue, options);
214
+ }
215
+ static fromJsonString(jsonString, options) {
216
+ return new AuthMethod().fromJsonString(jsonString, options);
217
+ }
218
+ static equals(a, b) {
219
+ return protobuf_1.proto3.util.equals(AuthMethod, a, b);
220
+ }
221
+ }
222
+ exports.AuthMethod = AuthMethod;
223
+ AuthMethod.runtime = protobuf_1.proto3;
224
+ AuthMethod.typeName = "scalekit.v1.auth.AuthMethod";
225
+ AuthMethod.fields = protobuf_1.proto3.util.newFieldList(() => [
226
+ { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
227
+ { no: 2, name: "connection_type", kind: "enum", T: protobuf_1.proto3.getEnumType(connections_pb_js_1.ConnectionType) },
228
+ { no: 3, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
229
+ { no: 4, name: "auth_initiation_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
230
+ { no: 5, name: "passwordless_type", kind: "enum", T: protobuf_1.proto3.getEnumType(connections_pb_js_1.PasswordlessType), opt: true },
231
+ { no: 6, name: "code_challenge_length", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
232
+ { no: 7, name: "enable_webauthn_auto_registration", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
233
+ { no: 8, name: "show_passkey_button", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
234
+ { no: 9, name: "enable_webauthn_conditional_login", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
235
+ ]);
236
+ /**
237
+ * @generated from message scalekit.v1.auth.DiscoveryAuthMethodRequest
238
+ */
239
+ class DiscoveryAuthMethodRequest extends protobuf_1.Message {
240
+ constructor(data) {
241
+ super();
242
+ protobuf_1.proto3.util.initPartial(data, this);
243
+ }
244
+ static fromBinary(bytes, options) {
245
+ return new DiscoveryAuthMethodRequest().fromBinary(bytes, options);
246
+ }
247
+ static fromJson(jsonValue, options) {
248
+ return new DiscoveryAuthMethodRequest().fromJson(jsonValue, options);
249
+ }
250
+ static fromJsonString(jsonString, options) {
251
+ return new DiscoveryAuthMethodRequest().fromJsonString(jsonString, options);
252
+ }
253
+ static equals(a, b) {
254
+ return protobuf_1.proto3.util.equals(DiscoveryAuthMethodRequest, a, b);
255
+ }
256
+ }
257
+ exports.DiscoveryAuthMethodRequest = DiscoveryAuthMethodRequest;
258
+ DiscoveryAuthMethodRequest.runtime = protobuf_1.proto3;
259
+ DiscoveryAuthMethodRequest.typeName = "scalekit.v1.auth.DiscoveryAuthMethodRequest";
260
+ DiscoveryAuthMethodRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
261
+ { no: 2, name: "discovery_request", kind: "message", T: DiscoveryRequest },
262
+ ]);
263
+ /**
264
+ * @generated from message scalekit.v1.auth.DiscoveryRequest
265
+ */
266
+ class DiscoveryRequest extends protobuf_1.Message {
267
+ constructor(data) {
268
+ super();
269
+ /**
270
+ * @generated from field: string email = 1;
271
+ */
272
+ this.email = "";
273
+ /**
274
+ * @generated from field: scalekit.v1.auth.Intent intent = 2;
275
+ */
276
+ this.intent = Intent.INTENT_UNSPECIFIED;
277
+ protobuf_1.proto3.util.initPartial(data, this);
278
+ }
279
+ static fromBinary(bytes, options) {
280
+ return new DiscoveryRequest().fromBinary(bytes, options);
281
+ }
282
+ static fromJson(jsonValue, options) {
283
+ return new DiscoveryRequest().fromJson(jsonValue, options);
284
+ }
285
+ static fromJsonString(jsonString, options) {
286
+ return new DiscoveryRequest().fromJsonString(jsonString, options);
287
+ }
288
+ static equals(a, b) {
289
+ return protobuf_1.proto3.util.equals(DiscoveryRequest, a, b);
290
+ }
291
+ }
292
+ exports.DiscoveryRequest = DiscoveryRequest;
293
+ DiscoveryRequest.runtime = protobuf_1.proto3;
294
+ DiscoveryRequest.typeName = "scalekit.v1.auth.DiscoveryRequest";
295
+ DiscoveryRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
296
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
297
+ { no: 2, name: "intent", kind: "enum", T: protobuf_1.proto3.getEnumType(Intent) },
298
+ ]);
299
+ /**
300
+ * @generated from message scalekit.v1.auth.DiscoveryAuthMethodResponse
301
+ */
302
+ class DiscoveryAuthMethodResponse extends protobuf_1.Message {
303
+ constructor(data) {
304
+ super();
305
+ protobuf_1.proto3.util.initPartial(data, this);
306
+ }
307
+ static fromBinary(bytes, options) {
308
+ return new DiscoveryAuthMethodResponse().fromBinary(bytes, options);
309
+ }
310
+ static fromJson(jsonValue, options) {
311
+ return new DiscoveryAuthMethodResponse().fromJson(jsonValue, options);
312
+ }
313
+ static fromJsonString(jsonString, options) {
314
+ return new DiscoveryAuthMethodResponse().fromJsonString(jsonString, options);
315
+ }
316
+ static equals(a, b) {
317
+ return protobuf_1.proto3.util.equals(DiscoveryAuthMethodResponse, a, b);
318
+ }
319
+ }
320
+ exports.DiscoveryAuthMethodResponse = DiscoveryAuthMethodResponse;
321
+ DiscoveryAuthMethodResponse.runtime = protobuf_1.proto3;
322
+ DiscoveryAuthMethodResponse.typeName = "scalekit.v1.auth.DiscoveryAuthMethodResponse";
323
+ DiscoveryAuthMethodResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
324
+ { no: 1, name: "auth_method", kind: "message", T: AuthMethod },
325
+ ]);
326
+ /**
327
+ * @generated from message scalekit.v1.auth.GetAuthCustomizationsRequest
328
+ */
329
+ class GetAuthCustomizationsRequest extends protobuf_1.Message {
330
+ constructor(data) {
331
+ super();
332
+ protobuf_1.proto3.util.initPartial(data, this);
333
+ }
334
+ static fromBinary(bytes, options) {
335
+ return new GetAuthCustomizationsRequest().fromBinary(bytes, options);
336
+ }
337
+ static fromJson(jsonValue, options) {
338
+ return new GetAuthCustomizationsRequest().fromJson(jsonValue, options);
339
+ }
340
+ static fromJsonString(jsonString, options) {
341
+ return new GetAuthCustomizationsRequest().fromJsonString(jsonString, options);
342
+ }
343
+ static equals(a, b) {
344
+ return protobuf_1.proto3.util.equals(GetAuthCustomizationsRequest, a, b);
345
+ }
346
+ }
347
+ exports.GetAuthCustomizationsRequest = GetAuthCustomizationsRequest;
348
+ GetAuthCustomizationsRequest.runtime = protobuf_1.proto3;
349
+ GetAuthCustomizationsRequest.typeName = "scalekit.v1.auth.GetAuthCustomizationsRequest";
350
+ GetAuthCustomizationsRequest.fields = protobuf_1.proto3.util.newFieldList(() => []);
351
+ /**
352
+ * @generated from message scalekit.v1.auth.GetAuthCustomizationsResponse
353
+ */
354
+ class GetAuthCustomizationsResponse extends protobuf_1.Message {
355
+ constructor(data) {
356
+ super();
357
+ protobuf_1.proto3.util.initPartial(data, this);
358
+ }
359
+ static fromBinary(bytes, options) {
360
+ return new GetAuthCustomizationsResponse().fromBinary(bytes, options);
361
+ }
362
+ static fromJson(jsonValue, options) {
363
+ return new GetAuthCustomizationsResponse().fromJson(jsonValue, options);
364
+ }
365
+ static fromJsonString(jsonString, options) {
366
+ return new GetAuthCustomizationsResponse().fromJsonString(jsonString, options);
367
+ }
368
+ static equals(a, b) {
369
+ return protobuf_1.proto3.util.equals(GetAuthCustomizationsResponse, a, b);
370
+ }
371
+ }
372
+ exports.GetAuthCustomizationsResponse = GetAuthCustomizationsResponse;
373
+ GetAuthCustomizationsResponse.runtime = protobuf_1.proto3;
374
+ GetAuthCustomizationsResponse.typeName = "scalekit.v1.auth.GetAuthCustomizationsResponse";
375
+ GetAuthCustomizationsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
376
+ { no: 2, name: "customization_settings", kind: "message", T: protobuf_1.Struct },
377
+ ]);
378
+ /**
379
+ * @generated from message scalekit.v1.auth.GetAuthFeaturesResponse
380
+ */
381
+ class GetAuthFeaturesResponse extends protobuf_1.Message {
382
+ constructor(data) {
383
+ super();
384
+ protobuf_1.proto3.util.initPartial(data, this);
385
+ }
386
+ static fromBinary(bytes, options) {
387
+ return new GetAuthFeaturesResponse().fromBinary(bytes, options);
388
+ }
389
+ static fromJson(jsonValue, options) {
390
+ return new GetAuthFeaturesResponse().fromJson(jsonValue, options);
391
+ }
392
+ static fromJsonString(jsonString, options) {
393
+ return new GetAuthFeaturesResponse().fromJsonString(jsonString, options);
394
+ }
395
+ static equals(a, b) {
396
+ return protobuf_1.proto3.util.equals(GetAuthFeaturesResponse, a, b);
397
+ }
398
+ }
399
+ exports.GetAuthFeaturesResponse = GetAuthFeaturesResponse;
400
+ GetAuthFeaturesResponse.runtime = protobuf_1.proto3;
401
+ GetAuthFeaturesResponse.typeName = "scalekit.v1.auth.GetAuthFeaturesResponse";
402
+ GetAuthFeaturesResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
403
+ { no: 1, name: "features", kind: "message", T: protobuf_1.Struct },
404
+ ]);
405
+ /**
406
+ * @generated from message scalekit.v1.auth.VerifyPasswordLessRequest
407
+ */
408
+ class VerifyPasswordLessRequest extends protobuf_1.Message {
409
+ constructor(data) {
410
+ super();
411
+ protobuf_1.proto3.util.initPartial(data, this);
412
+ }
413
+ static fromBinary(bytes, options) {
414
+ return new VerifyPasswordLessRequest().fromBinary(bytes, options);
415
+ }
416
+ static fromJson(jsonValue, options) {
417
+ return new VerifyPasswordLessRequest().fromJson(jsonValue, options);
418
+ }
419
+ static fromJsonString(jsonString, options) {
420
+ return new VerifyPasswordLessRequest().fromJsonString(jsonString, options);
421
+ }
422
+ static equals(a, b) {
423
+ return protobuf_1.proto3.util.equals(VerifyPasswordLessRequest, a, b);
424
+ }
425
+ }
426
+ exports.VerifyPasswordLessRequest = VerifyPasswordLessRequest;
427
+ VerifyPasswordLessRequest.runtime = protobuf_1.proto3;
428
+ VerifyPasswordLessRequest.typeName = "scalekit.v1.auth.VerifyPasswordLessRequest";
429
+ VerifyPasswordLessRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
430
+ { no: 2, name: "otp_req", kind: "message", T: OTPRequest },
431
+ ]);
432
+ /**
433
+ * @generated from message scalekit.v1.auth.VerifyPasswordLessResponse
434
+ */
435
+ class VerifyPasswordLessResponse extends protobuf_1.Message {
436
+ constructor(data) {
437
+ super();
438
+ protobuf_1.proto3.util.initPartial(data, this);
439
+ }
440
+ static fromBinary(bytes, options) {
441
+ return new VerifyPasswordLessResponse().fromBinary(bytes, options);
442
+ }
443
+ static fromJson(jsonValue, options) {
444
+ return new VerifyPasswordLessResponse().fromJson(jsonValue, options);
445
+ }
446
+ static fromJsonString(jsonString, options) {
447
+ return new VerifyPasswordLessResponse().fromJsonString(jsonString, options);
448
+ }
449
+ static equals(a, b) {
450
+ return protobuf_1.proto3.util.equals(VerifyPasswordLessResponse, a, b);
451
+ }
452
+ }
453
+ exports.VerifyPasswordLessResponse = VerifyPasswordLessResponse;
454
+ VerifyPasswordLessResponse.runtime = protobuf_1.proto3;
455
+ VerifyPasswordLessResponse.typeName = "scalekit.v1.auth.VerifyPasswordLessResponse";
456
+ VerifyPasswordLessResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
457
+ /**
458
+ * @generated from message scalekit.v1.auth.OTPRequest
459
+ */
460
+ class OTPRequest extends protobuf_1.Message {
461
+ constructor(data) {
462
+ super();
463
+ /**
464
+ * @generated from field: string code_challenge = 1;
465
+ */
466
+ this.codeChallenge = "";
467
+ protobuf_1.proto3.util.initPartial(data, this);
468
+ }
469
+ static fromBinary(bytes, options) {
470
+ return new OTPRequest().fromBinary(bytes, options);
471
+ }
472
+ static fromJson(jsonValue, options) {
473
+ return new OTPRequest().fromJson(jsonValue, options);
474
+ }
475
+ static fromJsonString(jsonString, options) {
476
+ return new OTPRequest().fromJsonString(jsonString, options);
477
+ }
478
+ static equals(a, b) {
479
+ return protobuf_1.proto3.util.equals(OTPRequest, a, b);
480
+ }
481
+ }
482
+ exports.OTPRequest = OTPRequest;
483
+ OTPRequest.runtime = protobuf_1.proto3;
484
+ OTPRequest.typeName = "scalekit.v1.auth.OTPRequest";
485
+ OTPRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
486
+ { no: 1, name: "code_challenge", kind: "scalar", T: 9 /* ScalarType.STRING */ },
487
+ ]);
488
+ /**
489
+ * @generated from message scalekit.v1.auth.ListUserOrganizationsResponse
490
+ */
491
+ class ListUserOrganizationsResponse extends protobuf_1.Message {
492
+ constructor(data) {
493
+ super();
494
+ /**
495
+ * @generated from field: repeated scalekit.v1.auth.Organization organizations = 1;
496
+ */
497
+ this.organizations = [];
498
+ /**
499
+ * @generated from field: scalekit.v1.auth.Intent intent = 3;
500
+ */
501
+ this.intent = Intent.INTENT_UNSPECIFIED;
502
+ protobuf_1.proto3.util.initPartial(data, this);
503
+ }
504
+ static fromBinary(bytes, options) {
505
+ return new ListUserOrganizationsResponse().fromBinary(bytes, options);
506
+ }
507
+ static fromJson(jsonValue, options) {
508
+ return new ListUserOrganizationsResponse().fromJson(jsonValue, options);
509
+ }
510
+ static fromJsonString(jsonString, options) {
511
+ return new ListUserOrganizationsResponse().fromJsonString(jsonString, options);
512
+ }
513
+ static equals(a, b) {
514
+ return protobuf_1.proto3.util.equals(ListUserOrganizationsResponse, a, b);
515
+ }
516
+ }
517
+ exports.ListUserOrganizationsResponse = ListUserOrganizationsResponse;
518
+ ListUserOrganizationsResponse.runtime = protobuf_1.proto3;
519
+ ListUserOrganizationsResponse.typeName = "scalekit.v1.auth.ListUserOrganizationsResponse";
520
+ ListUserOrganizationsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
521
+ { no: 1, name: "organizations", kind: "message", T: Organization, repeated: true },
522
+ { no: 2, name: "user", kind: "message", T: UserDetails },
523
+ { no: 3, name: "intent", kind: "enum", T: protobuf_1.proto3.getEnumType(Intent) },
524
+ ]);
525
+ /**
526
+ * @generated from message scalekit.v1.auth.Organization
527
+ */
528
+ class Organization extends protobuf_1.Message {
529
+ constructor(data) {
530
+ super();
531
+ /**
532
+ * @generated from field: string id = 1;
533
+ */
534
+ this.id = "";
535
+ /**
536
+ * @generated from field: string name = 2;
537
+ */
538
+ this.name = "";
539
+ /**
540
+ * @generated from field: string membership_status = 3;
541
+ */
542
+ this.membershipStatus = "";
543
+ protobuf_1.proto3.util.initPartial(data, this);
544
+ }
545
+ static fromBinary(bytes, options) {
546
+ return new Organization().fromBinary(bytes, options);
547
+ }
548
+ static fromJson(jsonValue, options) {
549
+ return new Organization().fromJson(jsonValue, options);
550
+ }
551
+ static fromJsonString(jsonString, options) {
552
+ return new Organization().fromJsonString(jsonString, options);
553
+ }
554
+ static equals(a, b) {
555
+ return protobuf_1.proto3.util.equals(Organization, a, b);
556
+ }
557
+ }
558
+ exports.Organization = Organization;
559
+ Organization.runtime = protobuf_1.proto3;
560
+ Organization.typeName = "scalekit.v1.auth.Organization";
561
+ Organization.fields = protobuf_1.proto3.util.newFieldList(() => [
562
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
563
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
564
+ { no: 3, name: "membership_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
565
+ { no: 4, name: "invitation_inviter_email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
566
+ { no: 5, name: "invitation_accepted_at", kind: "message", T: protobuf_1.Timestamp, opt: true },
567
+ { no: 6, name: "invitation_created_at", kind: "message", T: protobuf_1.Timestamp, opt: true },
568
+ { no: 7, name: "invitation_expires_at", kind: "message", T: protobuf_1.Timestamp, opt: true },
569
+ ]);
570
+ /**
571
+ * @generated from message scalekit.v1.auth.UserDetails
572
+ */
573
+ class UserDetails extends protobuf_1.Message {
574
+ constructor(data) {
575
+ super();
576
+ /**
577
+ * @generated from field: string email = 1;
578
+ */
579
+ this.email = "";
580
+ /**
581
+ * @generated from field: string first_name = 2;
582
+ */
583
+ this.firstName = "";
584
+ /**
585
+ * @generated from field: string last_name = 3;
586
+ */
587
+ this.lastName = "";
588
+ protobuf_1.proto3.util.initPartial(data, this);
589
+ }
590
+ static fromBinary(bytes, options) {
591
+ return new UserDetails().fromBinary(bytes, options);
592
+ }
593
+ static fromJson(jsonValue, options) {
594
+ return new UserDetails().fromJson(jsonValue, options);
595
+ }
596
+ static fromJsonString(jsonString, options) {
597
+ return new UserDetails().fromJsonString(jsonString, options);
598
+ }
599
+ static equals(a, b) {
600
+ return protobuf_1.proto3.util.equals(UserDetails, a, b);
601
+ }
602
+ }
603
+ exports.UserDetails = UserDetails;
604
+ UserDetails.runtime = protobuf_1.proto3;
605
+ UserDetails.typeName = "scalekit.v1.auth.UserDetails";
606
+ UserDetails.fields = protobuf_1.proto3.util.newFieldList(() => [
607
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
608
+ { no: 2, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
609
+ { no: 3, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
610
+ ]);
611
+ /**
612
+ * @generated from message scalekit.v1.auth.SignupOrganizationRequest
613
+ */
614
+ class SignupOrganizationRequest extends protobuf_1.Message {
615
+ constructor(data) {
616
+ super();
617
+ /**
618
+ * making all optional for now
619
+ *
620
+ * @generated from field: string organization_name = 1;
621
+ */
622
+ this.organizationName = "";
623
+ /**
624
+ * @generated from field: string first_name = 2;
625
+ */
626
+ this.firstName = "";
627
+ /**
628
+ * @generated from field: string last_name = 3;
629
+ */
630
+ this.lastName = "";
631
+ /**
632
+ * @generated from field: string full_name = 4;
633
+ */
634
+ this.fullName = "";
635
+ /**
636
+ * @generated from field: string phone_number = 5;
637
+ */
638
+ this.phoneNumber = "";
639
+ protobuf_1.proto3.util.initPartial(data, this);
640
+ }
641
+ static fromBinary(bytes, options) {
642
+ return new SignupOrganizationRequest().fromBinary(bytes, options);
643
+ }
644
+ static fromJson(jsonValue, options) {
645
+ return new SignupOrganizationRequest().fromJson(jsonValue, options);
646
+ }
647
+ static fromJsonString(jsonString, options) {
648
+ return new SignupOrganizationRequest().fromJsonString(jsonString, options);
649
+ }
650
+ static equals(a, b) {
651
+ return protobuf_1.proto3.util.equals(SignupOrganizationRequest, a, b);
652
+ }
653
+ }
654
+ exports.SignupOrganizationRequest = SignupOrganizationRequest;
655
+ SignupOrganizationRequest.runtime = protobuf_1.proto3;
656
+ SignupOrganizationRequest.typeName = "scalekit.v1.auth.SignupOrganizationRequest";
657
+ SignupOrganizationRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
658
+ { no: 1, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
659
+ { no: 2, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
660
+ { no: 3, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
661
+ { no: 4, name: "full_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
662
+ { no: 5, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
663
+ ]);
664
+ /**
665
+ * @generated from message scalekit.v1.auth.SignupOrganizationResponse
666
+ */
667
+ class SignupOrganizationResponse extends protobuf_1.Message {
668
+ constructor(data) {
669
+ super();
670
+ /**
671
+ * @generated from field: string organization_id = 1;
672
+ */
673
+ this.organizationId = "";
674
+ /**
675
+ * @generated from field: string organization_name = 2;
676
+ */
677
+ this.organizationName = "";
678
+ protobuf_1.proto3.util.initPartial(data, this);
679
+ }
680
+ static fromBinary(bytes, options) {
681
+ return new SignupOrganizationResponse().fromBinary(bytes, options);
682
+ }
683
+ static fromJson(jsonValue, options) {
684
+ return new SignupOrganizationResponse().fromJson(jsonValue, options);
685
+ }
686
+ static fromJsonString(jsonString, options) {
687
+ return new SignupOrganizationResponse().fromJsonString(jsonString, options);
688
+ }
689
+ static equals(a, b) {
690
+ return protobuf_1.proto3.util.equals(SignupOrganizationResponse, a, b);
691
+ }
692
+ }
693
+ exports.SignupOrganizationResponse = SignupOrganizationResponse;
694
+ SignupOrganizationResponse.runtime = protobuf_1.proto3;
695
+ SignupOrganizationResponse.typeName = "scalekit.v1.auth.SignupOrganizationResponse";
696
+ SignupOrganizationResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
697
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
698
+ { no: 2, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
699
+ ]);
700
+ /**
701
+ * @generated from message scalekit.v1.auth.UpdateLoginUserDetailsRequest
702
+ */
703
+ class UpdateLoginUserDetailsRequest extends protobuf_1.Message {
704
+ constructor(data) {
705
+ super();
706
+ /**
707
+ * @generated from field: string connection_id = 1;
708
+ */
709
+ this.connectionId = "";
710
+ /**
711
+ * @generated from field: string login_request_id = 2;
712
+ */
713
+ this.loginRequestId = "";
714
+ protobuf_1.proto3.util.initPartial(data, this);
715
+ }
716
+ static fromBinary(bytes, options) {
717
+ return new UpdateLoginUserDetailsRequest().fromBinary(bytes, options);
718
+ }
719
+ static fromJson(jsonValue, options) {
720
+ return new UpdateLoginUserDetailsRequest().fromJson(jsonValue, options);
721
+ }
722
+ static fromJsonString(jsonString, options) {
723
+ return new UpdateLoginUserDetailsRequest().fromJsonString(jsonString, options);
724
+ }
725
+ static equals(a, b) {
726
+ return protobuf_1.proto3.util.equals(UpdateLoginUserDetailsRequest, a, b);
727
+ }
728
+ }
729
+ exports.UpdateLoginUserDetailsRequest = UpdateLoginUserDetailsRequest;
730
+ UpdateLoginUserDetailsRequest.runtime = protobuf_1.proto3;
731
+ UpdateLoginUserDetailsRequest.typeName = "scalekit.v1.auth.UpdateLoginUserDetailsRequest";
732
+ UpdateLoginUserDetailsRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
733
+ { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
734
+ { no: 2, name: "login_request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
735
+ { no: 3, name: "user", kind: "message", T: User },
736
+ ]);
737
+ /**
738
+ * @generated from message scalekit.v1.auth.User
739
+ */
740
+ class User extends protobuf_1.Message {
741
+ constructor(data) {
742
+ super();
743
+ /**
744
+ * @generated from field: string sub = 1;
745
+ */
746
+ this.sub = "";
747
+ /**
748
+ * @generated from field: string email = 2;
749
+ */
750
+ this.email = "";
751
+ /**
752
+ * @generated from field: string given_name = 3;
753
+ */
754
+ this.givenName = "";
755
+ /**
756
+ * @generated from field: string family_name = 4;
757
+ */
758
+ this.familyName = "";
759
+ /**
760
+ * @generated from field: bool email_verified = 5;
761
+ */
762
+ this.emailVerified = false;
763
+ /**
764
+ * @generated from field: string phone_number = 6;
765
+ */
766
+ this.phoneNumber = "";
767
+ /**
768
+ * @generated from field: bool phone_number_verified = 7;
769
+ */
770
+ this.phoneNumberVerified = false;
771
+ /**
772
+ * @generated from field: string name = 8;
773
+ */
774
+ this.name = "";
775
+ /**
776
+ * @generated from field: string preferred_username = 9;
777
+ */
778
+ this.preferredUsername = "";
779
+ /**
780
+ * @generated from field: string picture = 10;
781
+ */
782
+ this.picture = "";
783
+ /**
784
+ * @generated from field: string gender = 11;
785
+ */
786
+ this.gender = "";
787
+ /**
788
+ * @generated from field: string locale = 12;
789
+ */
790
+ this.locale = "";
791
+ /**
792
+ * @generated from field: repeated string groups = 13;
793
+ */
794
+ this.groups = [];
795
+ protobuf_1.proto3.util.initPartial(data, this);
796
+ }
797
+ static fromBinary(bytes, options) {
798
+ return new User().fromBinary(bytes, options);
799
+ }
800
+ static fromJson(jsonValue, options) {
801
+ return new User().fromJson(jsonValue, options);
802
+ }
803
+ static fromJsonString(jsonString, options) {
804
+ return new User().fromJsonString(jsonString, options);
805
+ }
806
+ static equals(a, b) {
807
+ return protobuf_1.proto3.util.equals(User, a, b);
808
+ }
809
+ }
810
+ exports.User = User;
811
+ User.runtime = protobuf_1.proto3;
812
+ User.typeName = "scalekit.v1.auth.User";
813
+ User.fields = protobuf_1.proto3.util.newFieldList(() => [
814
+ { no: 1, name: "sub", kind: "scalar", T: 9 /* ScalarType.STRING */ },
815
+ { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
816
+ { no: 3, name: "given_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
817
+ { no: 4, name: "family_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
818
+ { no: 5, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
819
+ { no: 6, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
820
+ { no: 7, name: "phone_number_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
821
+ { no: 8, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
822
+ { no: 9, name: "preferred_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
823
+ { no: 10, name: "picture", kind: "scalar", T: 9 /* ScalarType.STRING */ },
824
+ { no: 11, name: "gender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
825
+ { no: 12, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */ },
826
+ { no: 13, name: "groups", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
827
+ { no: 14, name: "custom_attributes", kind: "message", T: protobuf_1.Struct },
828
+ ]);
829
+ /**
830
+ * @generated from message scalekit.v1.auth.GetAuthStateResponse
831
+ */
832
+ class GetAuthStateResponse extends protobuf_1.Message {
833
+ constructor(data) {
834
+ super();
835
+ /**
836
+ * @generated from field: scalekit.v1.auth.AuthState auth_state = 1;
837
+ */
838
+ this.authState = AuthState.AUTH_STATE_UNSPECIFIED;
839
+ protobuf_1.proto3.util.initPartial(data, this);
840
+ }
841
+ static fromBinary(bytes, options) {
842
+ return new GetAuthStateResponse().fromBinary(bytes, options);
843
+ }
844
+ static fromJson(jsonValue, options) {
845
+ return new GetAuthStateResponse().fromJson(jsonValue, options);
846
+ }
847
+ static fromJsonString(jsonString, options) {
848
+ return new GetAuthStateResponse().fromJsonString(jsonString, options);
849
+ }
850
+ static equals(a, b) {
851
+ return protobuf_1.proto3.util.equals(GetAuthStateResponse, a, b);
852
+ }
853
+ }
854
+ exports.GetAuthStateResponse = GetAuthStateResponse;
855
+ GetAuthStateResponse.runtime = protobuf_1.proto3;
856
+ GetAuthStateResponse.typeName = "scalekit.v1.auth.GetAuthStateResponse";
857
+ GetAuthStateResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
858
+ { no: 1, name: "auth_state", kind: "enum", T: protobuf_1.proto3.getEnumType(AuthState) },
859
+ ]);
860
+ /**
861
+ * @generated from message scalekit.v1.auth.GetAuthErrorRequest
862
+ */
863
+ class GetAuthErrorRequest extends protobuf_1.Message {
864
+ constructor(data) {
865
+ super();
866
+ /**
867
+ * @generated from field: string error_id = 1;
868
+ */
869
+ this.errorId = "";
870
+ protobuf_1.proto3.util.initPartial(data, this);
871
+ }
872
+ static fromBinary(bytes, options) {
873
+ return new GetAuthErrorRequest().fromBinary(bytes, options);
874
+ }
875
+ static fromJson(jsonValue, options) {
876
+ return new GetAuthErrorRequest().fromJson(jsonValue, options);
877
+ }
878
+ static fromJsonString(jsonString, options) {
879
+ return new GetAuthErrorRequest().fromJsonString(jsonString, options);
880
+ }
881
+ static equals(a, b) {
882
+ return protobuf_1.proto3.util.equals(GetAuthErrorRequest, a, b);
883
+ }
884
+ }
885
+ exports.GetAuthErrorRequest = GetAuthErrorRequest;
886
+ GetAuthErrorRequest.runtime = protobuf_1.proto3;
887
+ GetAuthErrorRequest.typeName = "scalekit.v1.auth.GetAuthErrorRequest";
888
+ GetAuthErrorRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
889
+ { no: 1, name: "error_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
890
+ ]);
891
+ /**
892
+ * @generated from message scalekit.v1.auth.GetAuthErrorResponse
893
+ */
894
+ class GetAuthErrorResponse extends protobuf_1.Message {
895
+ constructor(data) {
896
+ super();
897
+ /**
898
+ * @generated from field: string error = 1;
899
+ */
900
+ this.error = "";
901
+ /**
902
+ * @generated from field: string error_description = 2;
903
+ */
904
+ this.errorDescription = "";
905
+ protobuf_1.proto3.util.initPartial(data, this);
906
+ }
907
+ static fromBinary(bytes, options) {
908
+ return new GetAuthErrorResponse().fromBinary(bytes, options);
909
+ }
910
+ static fromJson(jsonValue, options) {
911
+ return new GetAuthErrorResponse().fromJson(jsonValue, options);
912
+ }
913
+ static fromJsonString(jsonString, options) {
914
+ return new GetAuthErrorResponse().fromJsonString(jsonString, options);
915
+ }
916
+ static equals(a, b) {
917
+ return protobuf_1.proto3.util.equals(GetAuthErrorResponse, a, b);
918
+ }
919
+ }
920
+ exports.GetAuthErrorResponse = GetAuthErrorResponse;
921
+ GetAuthErrorResponse.runtime = protobuf_1.proto3;
922
+ GetAuthErrorResponse.typeName = "scalekit.v1.auth.GetAuthErrorResponse";
923
+ GetAuthErrorResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
924
+ { no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
925
+ { no: 2, name: "error_description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
926
+ ]);
927
+ //# sourceMappingURL=auth_pb.js.map