@scalekit-sdk/node 2.1.7 → 2.1.8

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 (82) hide show
  1. package/buf.gen.yaml +1 -0
  2. package/lib/auth.d.ts +41 -9
  3. package/lib/auth.js +44 -12
  4. package/lib/auth.js.map +1 -1
  5. package/lib/connection.d.ts +195 -21
  6. package/lib/connection.js +197 -23
  7. package/lib/connection.js.map +1 -1
  8. package/lib/core.d.ts +2 -2
  9. package/lib/core.js +13 -12
  10. package/lib/core.js.map +1 -1
  11. package/lib/directory.d.ts +293 -40
  12. package/lib/directory.js +308 -44
  13. package/lib/directory.js.map +1 -1
  14. package/lib/domain.d.ts +166 -18
  15. package/lib/domain.js +178 -29
  16. package/lib/domain.js.map +1 -1
  17. package/lib/organization.d.ts +404 -44
  18. package/lib/organization.js +419 -54
  19. package/lib/organization.js.map +1 -1
  20. package/lib/permission.d.ts +179 -35
  21. package/lib/permission.js +190 -38
  22. package/lib/permission.js.map +1 -1
  23. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +3 -3
  24. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +2 -2
  25. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +1 -1
  26. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +16 -16
  27. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +21 -21
  28. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
  29. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.d.ts +82 -0
  30. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +90 -0
  31. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js.map +1 -0
  32. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.d.ts +647 -0
  33. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +993 -0
  34. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js.map +1 -0
  35. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +142 -0
  36. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +165 -1
  37. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  38. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +1 -10
  39. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +0 -9
  40. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
  41. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +28 -63
  42. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +9 -90
  43. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  44. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +2 -2
  45. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +1 -1
  46. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  47. package/lib/role.d.ts +252 -56
  48. package/lib/role.js +262 -62
  49. package/lib/role.js.map +1 -1
  50. package/lib/scalekit.d.ts +323 -54
  51. package/lib/scalekit.js +354 -76
  52. package/lib/scalekit.js.map +1 -1
  53. package/lib/session.d.ts +235 -22
  54. package/lib/session.js +237 -24
  55. package/lib/session.js.map +1 -1
  56. package/lib/user.d.ts +571 -53
  57. package/lib/user.js +598 -89
  58. package/lib/user.js.map +1 -1
  59. package/lib/webauthn.d.ts +33 -0
  60. package/lib/webauthn.js +80 -0
  61. package/lib/webauthn.js.map +1 -0
  62. package/package.json +2 -2
  63. package/src/auth.ts +53 -19
  64. package/src/connection.ts +237 -62
  65. package/src/core.ts +39 -33
  66. package/src/directory.ts +356 -98
  67. package/src/domain.ts +215 -68
  68. package/src/organization.ts +490 -112
  69. package/src/permission.ts +234 -88
  70. package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +3 -3
  71. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +24 -24
  72. package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +89 -0
  73. package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +1263 -0
  74. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +217 -0
  75. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +1 -10
  76. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +42 -129
  77. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +3 -3
  78. package/src/role.ts +336 -136
  79. package/src/scalekit.ts +478 -149
  80. package/src/session.ts +266 -63
  81. package/src/user.ts +675 -168
  82. package/src/webauthn.ts +98 -0
@@ -0,0 +1,993 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
3
+ // @generated from file scalekit/v1/auth/webauthn.proto (package scalekit.v1.auth.webauthn, syntax proto3)
4
+ /* eslint-disable */
5
+ // @ts-nocheck
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.GetRelatedOriginsResponse = exports.GetRelatedOriginsRequest = exports.WebAuthnCredential_ClientInfo = exports.WebAuthnCredential_UserAgent = exports.WebAuthnCredential_Authenticator = exports.WebAuthnCredential_AuthenticatorFlags = exports.WebAuthnCredential = exports.UpdateCredentialResponse = exports.UpdateCredentialRequest = exports.AllAcceptedCredentialsOptions = exports.UnknownCredentialOptions = exports.DeleteCredentialResponse = exports.DeleteCredentialRequest = exports.ListCredentialsResponse = exports.ListCredentialsRequest = exports.WebAuthnConfiguration = exports.FinishAuthenticationResponse = exports.AuthenticatorAssertionResponse = exports.FinishAuthenticationRequest = exports.BeginAuthenticationResponse = exports.BeginAuthenticationRequest = exports.FinishRegistrationResponse = exports.FinishRegistrationRequest = exports.BeginRegistrationResponse = exports.BeginRegistrationRequest = void 0;
8
+ const protobuf_1 = require("@bufbuild/protobuf");
9
+ /**
10
+ * @generated from message scalekit.v1.auth.webauthn.BeginRegistrationRequest
11
+ */
12
+ class BeginRegistrationRequest extends protobuf_1.Message {
13
+ constructor(data) {
14
+ super();
15
+ protobuf_1.proto3.util.initPartial(data, this);
16
+ }
17
+ static fromBinary(bytes, options) {
18
+ return new BeginRegistrationRequest().fromBinary(bytes, options);
19
+ }
20
+ static fromJson(jsonValue, options) {
21
+ return new BeginRegistrationRequest().fromJson(jsonValue, options);
22
+ }
23
+ static fromJsonString(jsonString, options) {
24
+ return new BeginRegistrationRequest().fromJsonString(jsonString, options);
25
+ }
26
+ static equals(a, b) {
27
+ return protobuf_1.proto3.util.equals(BeginRegistrationRequest, a, b);
28
+ }
29
+ }
30
+ exports.BeginRegistrationRequest = BeginRegistrationRequest;
31
+ BeginRegistrationRequest.runtime = protobuf_1.proto3;
32
+ BeginRegistrationRequest.typeName = "scalekit.v1.auth.webauthn.BeginRegistrationRequest";
33
+ BeginRegistrationRequest.fields = protobuf_1.proto3.util.newFieldList(() => []);
34
+ /**
35
+ * @generated from message scalekit.v1.auth.webauthn.BeginRegistrationResponse
36
+ */
37
+ class BeginRegistrationResponse extends protobuf_1.Message {
38
+ constructor(data) {
39
+ super();
40
+ protobuf_1.proto3.util.initPartial(data, this);
41
+ }
42
+ static fromBinary(bytes, options) {
43
+ return new BeginRegistrationResponse().fromBinary(bytes, options);
44
+ }
45
+ static fromJson(jsonValue, options) {
46
+ return new BeginRegistrationResponse().fromJson(jsonValue, options);
47
+ }
48
+ static fromJsonString(jsonString, options) {
49
+ return new BeginRegistrationResponse().fromJsonString(jsonString, options);
50
+ }
51
+ static equals(a, b) {
52
+ return protobuf_1.proto3.util.equals(BeginRegistrationResponse, a, b);
53
+ }
54
+ }
55
+ exports.BeginRegistrationResponse = BeginRegistrationResponse;
56
+ BeginRegistrationResponse.runtime = protobuf_1.proto3;
57
+ BeginRegistrationResponse.typeName = "scalekit.v1.auth.webauthn.BeginRegistrationResponse";
58
+ BeginRegistrationResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
59
+ { no: 1, name: "options", kind: "message", T: protobuf_1.Struct },
60
+ ]);
61
+ /**
62
+ * @generated from message scalekit.v1.auth.webauthn.FinishRegistrationRequest
63
+ */
64
+ class FinishRegistrationRequest extends protobuf_1.Message {
65
+ constructor(data) {
66
+ super();
67
+ /**
68
+ * @generated from field: bytes credential_id = 1;
69
+ */
70
+ this.credentialId = new Uint8Array(0);
71
+ /**
72
+ * @generated from field: bytes attestation_object = 2;
73
+ */
74
+ this.attestationObject = new Uint8Array(0);
75
+ /**
76
+ * @generated from field: bytes client_data_json = 3;
77
+ */
78
+ this.clientDataJson = new Uint8Array(0);
79
+ /**
80
+ * @generated from field: string type = 4;
81
+ */
82
+ this.type = "";
83
+ /**
84
+ * @generated from field: repeated string transports = 5;
85
+ */
86
+ this.transports = [];
87
+ /**
88
+ * @generated from field: string authenticator_attachment = 6;
89
+ */
90
+ this.authenticatorAttachment = "";
91
+ protobuf_1.proto3.util.initPartial(data, this);
92
+ }
93
+ static fromBinary(bytes, options) {
94
+ return new FinishRegistrationRequest().fromBinary(bytes, options);
95
+ }
96
+ static fromJson(jsonValue, options) {
97
+ return new FinishRegistrationRequest().fromJson(jsonValue, options);
98
+ }
99
+ static fromJsonString(jsonString, options) {
100
+ return new FinishRegistrationRequest().fromJsonString(jsonString, options);
101
+ }
102
+ static equals(a, b) {
103
+ return protobuf_1.proto3.util.equals(FinishRegistrationRequest, a, b);
104
+ }
105
+ }
106
+ exports.FinishRegistrationRequest = FinishRegistrationRequest;
107
+ FinishRegistrationRequest.runtime = protobuf_1.proto3;
108
+ FinishRegistrationRequest.typeName = "scalekit.v1.auth.webauthn.FinishRegistrationRequest";
109
+ FinishRegistrationRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
110
+ { no: 1, name: "credential_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
111
+ { no: 2, name: "attestation_object", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
112
+ { no: 3, name: "client_data_json", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
113
+ { no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
114
+ { no: 5, name: "transports", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
115
+ { no: 6, name: "authenticator_attachment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
116
+ { no: 7, name: "client_extension_results", kind: "message", T: protobuf_1.Struct },
117
+ ]);
118
+ /**
119
+ * @generated from message scalekit.v1.auth.webauthn.FinishRegistrationResponse
120
+ */
121
+ class FinishRegistrationResponse extends protobuf_1.Message {
122
+ constructor(data) {
123
+ super();
124
+ /**
125
+ * @generated from field: bool success = 1;
126
+ */
127
+ this.success = false;
128
+ protobuf_1.proto3.util.initPartial(data, this);
129
+ }
130
+ static fromBinary(bytes, options) {
131
+ return new FinishRegistrationResponse().fromBinary(bytes, options);
132
+ }
133
+ static fromJson(jsonValue, options) {
134
+ return new FinishRegistrationResponse().fromJson(jsonValue, options);
135
+ }
136
+ static fromJsonString(jsonString, options) {
137
+ return new FinishRegistrationResponse().fromJsonString(jsonString, options);
138
+ }
139
+ static equals(a, b) {
140
+ return protobuf_1.proto3.util.equals(FinishRegistrationResponse, a, b);
141
+ }
142
+ }
143
+ exports.FinishRegistrationResponse = FinishRegistrationResponse;
144
+ FinishRegistrationResponse.runtime = protobuf_1.proto3;
145
+ FinishRegistrationResponse.typeName = "scalekit.v1.auth.webauthn.FinishRegistrationResponse";
146
+ FinishRegistrationResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
147
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
148
+ ]);
149
+ /**
150
+ * @generated from message scalekit.v1.auth.webauthn.BeginAuthenticationRequest
151
+ */
152
+ class BeginAuthenticationRequest extends protobuf_1.Message {
153
+ constructor(data) {
154
+ super();
155
+ protobuf_1.proto3.util.initPartial(data, this);
156
+ }
157
+ static fromBinary(bytes, options) {
158
+ return new BeginAuthenticationRequest().fromBinary(bytes, options);
159
+ }
160
+ static fromJson(jsonValue, options) {
161
+ return new BeginAuthenticationRequest().fromJson(jsonValue, options);
162
+ }
163
+ static fromJsonString(jsonString, options) {
164
+ return new BeginAuthenticationRequest().fromJsonString(jsonString, options);
165
+ }
166
+ static equals(a, b) {
167
+ return protobuf_1.proto3.util.equals(BeginAuthenticationRequest, a, b);
168
+ }
169
+ }
170
+ exports.BeginAuthenticationRequest = BeginAuthenticationRequest;
171
+ BeginAuthenticationRequest.runtime = protobuf_1.proto3;
172
+ BeginAuthenticationRequest.typeName = "scalekit.v1.auth.webauthn.BeginAuthenticationRequest";
173
+ BeginAuthenticationRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
174
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
175
+ ]);
176
+ /**
177
+ * @generated from message scalekit.v1.auth.webauthn.BeginAuthenticationResponse
178
+ */
179
+ class BeginAuthenticationResponse extends protobuf_1.Message {
180
+ constructor(data) {
181
+ super();
182
+ /**
183
+ * @generated from field: string session_id = 1;
184
+ */
185
+ this.sessionId = "";
186
+ protobuf_1.proto3.util.initPartial(data, this);
187
+ }
188
+ static fromBinary(bytes, options) {
189
+ return new BeginAuthenticationResponse().fromBinary(bytes, options);
190
+ }
191
+ static fromJson(jsonValue, options) {
192
+ return new BeginAuthenticationResponse().fromJson(jsonValue, options);
193
+ }
194
+ static fromJsonString(jsonString, options) {
195
+ return new BeginAuthenticationResponse().fromJsonString(jsonString, options);
196
+ }
197
+ static equals(a, b) {
198
+ return protobuf_1.proto3.util.equals(BeginAuthenticationResponse, a, b);
199
+ }
200
+ }
201
+ exports.BeginAuthenticationResponse = BeginAuthenticationResponse;
202
+ BeginAuthenticationResponse.runtime = protobuf_1.proto3;
203
+ BeginAuthenticationResponse.typeName = "scalekit.v1.auth.webauthn.BeginAuthenticationResponse";
204
+ BeginAuthenticationResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
205
+ { no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
206
+ { no: 2, name: "options", kind: "message", T: protobuf_1.Struct },
207
+ ]);
208
+ /**
209
+ * @generated from message scalekit.v1.auth.webauthn.FinishAuthenticationRequest
210
+ */
211
+ class FinishAuthenticationRequest extends protobuf_1.Message {
212
+ constructor(data) {
213
+ super();
214
+ /**
215
+ * @generated from field: string session_id = 1;
216
+ */
217
+ this.sessionId = "";
218
+ /**
219
+ * @generated from field: bytes credential_id = 2;
220
+ */
221
+ this.credentialId = new Uint8Array(0);
222
+ /**
223
+ * @generated from field: string type = 4;
224
+ */
225
+ this.type = "";
226
+ /**
227
+ * @generated from field: string authenticator_attachment = 6;
228
+ */
229
+ this.authenticatorAttachment = "";
230
+ protobuf_1.proto3.util.initPartial(data, this);
231
+ }
232
+ static fromBinary(bytes, options) {
233
+ return new FinishAuthenticationRequest().fromBinary(bytes, options);
234
+ }
235
+ static fromJson(jsonValue, options) {
236
+ return new FinishAuthenticationRequest().fromJson(jsonValue, options);
237
+ }
238
+ static fromJsonString(jsonString, options) {
239
+ return new FinishAuthenticationRequest().fromJsonString(jsonString, options);
240
+ }
241
+ static equals(a, b) {
242
+ return protobuf_1.proto3.util.equals(FinishAuthenticationRequest, a, b);
243
+ }
244
+ }
245
+ exports.FinishAuthenticationRequest = FinishAuthenticationRequest;
246
+ FinishAuthenticationRequest.runtime = protobuf_1.proto3;
247
+ FinishAuthenticationRequest.typeName = "scalekit.v1.auth.webauthn.FinishAuthenticationRequest";
248
+ FinishAuthenticationRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
249
+ { no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
250
+ { no: 2, name: "credential_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
251
+ { no: 3, name: "client_extension_results", kind: "message", T: protobuf_1.Struct },
252
+ { no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
253
+ { no: 5, name: "response", kind: "message", T: AuthenticatorAssertionResponse },
254
+ { no: 6, name: "authenticator_attachment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
255
+ ]);
256
+ /**
257
+ * @generated from message scalekit.v1.auth.webauthn.AuthenticatorAssertionResponse
258
+ */
259
+ class AuthenticatorAssertionResponse extends protobuf_1.Message {
260
+ constructor(data) {
261
+ super();
262
+ /**
263
+ * @generated from field: bytes authenticator_data = 1;
264
+ */
265
+ this.authenticatorData = new Uint8Array(0);
266
+ /**
267
+ * @generated from field: bytes client_data_json = 2;
268
+ */
269
+ this.clientDataJson = new Uint8Array(0);
270
+ /**
271
+ * @generated from field: bytes signature = 3;
272
+ */
273
+ this.signature = new Uint8Array(0);
274
+ /**
275
+ * @generated from field: bytes user_handle = 4;
276
+ */
277
+ this.userHandle = new Uint8Array(0);
278
+ protobuf_1.proto3.util.initPartial(data, this);
279
+ }
280
+ static fromBinary(bytes, options) {
281
+ return new AuthenticatorAssertionResponse().fromBinary(bytes, options);
282
+ }
283
+ static fromJson(jsonValue, options) {
284
+ return new AuthenticatorAssertionResponse().fromJson(jsonValue, options);
285
+ }
286
+ static fromJsonString(jsonString, options) {
287
+ return new AuthenticatorAssertionResponse().fromJsonString(jsonString, options);
288
+ }
289
+ static equals(a, b) {
290
+ return protobuf_1.proto3.util.equals(AuthenticatorAssertionResponse, a, b);
291
+ }
292
+ }
293
+ exports.AuthenticatorAssertionResponse = AuthenticatorAssertionResponse;
294
+ AuthenticatorAssertionResponse.runtime = protobuf_1.proto3;
295
+ AuthenticatorAssertionResponse.typeName = "scalekit.v1.auth.webauthn.AuthenticatorAssertionResponse";
296
+ AuthenticatorAssertionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
297
+ { no: 1, name: "authenticator_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
298
+ { no: 2, name: "client_data_json", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
299
+ { no: 3, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
300
+ { no: 4, name: "user_handle", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
301
+ ]);
302
+ /**
303
+ * @generated from message scalekit.v1.auth.webauthn.FinishAuthenticationResponse
304
+ */
305
+ class FinishAuthenticationResponse extends protobuf_1.Message {
306
+ constructor(data) {
307
+ super();
308
+ /**
309
+ * @generated from field: bool success = 1;
310
+ */
311
+ this.success = false;
312
+ /**
313
+ * @generated from field: string user_id = 2;
314
+ */
315
+ this.userId = "";
316
+ /**
317
+ * @generated from field: string session_token = 3;
318
+ */
319
+ this.sessionToken = "";
320
+ protobuf_1.proto3.util.initPartial(data, this);
321
+ }
322
+ static fromBinary(bytes, options) {
323
+ return new FinishAuthenticationResponse().fromBinary(bytes, options);
324
+ }
325
+ static fromJson(jsonValue, options) {
326
+ return new FinishAuthenticationResponse().fromJson(jsonValue, options);
327
+ }
328
+ static fromJsonString(jsonString, options) {
329
+ return new FinishAuthenticationResponse().fromJsonString(jsonString, options);
330
+ }
331
+ static equals(a, b) {
332
+ return protobuf_1.proto3.util.equals(FinishAuthenticationResponse, a, b);
333
+ }
334
+ }
335
+ exports.FinishAuthenticationResponse = FinishAuthenticationResponse;
336
+ FinishAuthenticationResponse.runtime = protobuf_1.proto3;
337
+ FinishAuthenticationResponse.typeName = "scalekit.v1.auth.webauthn.FinishAuthenticationResponse";
338
+ FinishAuthenticationResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
339
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
340
+ { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
341
+ { no: 3, name: "session_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
342
+ ]);
343
+ /**
344
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnConfiguration
345
+ */
346
+ class WebAuthnConfiguration extends protobuf_1.Message {
347
+ constructor(data) {
348
+ super();
349
+ /**
350
+ * @generated from field: string rp_id = 1;
351
+ */
352
+ this.rpId = "";
353
+ /**
354
+ * @generated from field: string rp_origin = 2;
355
+ */
356
+ this.rpOrigin = "";
357
+ /**
358
+ * @generated from field: string user_verification = 3;
359
+ */
360
+ this.userVerification = "";
361
+ /**
362
+ * @generated from field: string authenticator_attachment = 4;
363
+ */
364
+ this.authenticatorAttachment = "";
365
+ /**
366
+ * @generated from field: string resident_key = 5;
367
+ */
368
+ this.residentKey = "";
369
+ /**
370
+ * @generated from field: int64 timeout = 6;
371
+ */
372
+ this.timeout = protobuf_1.protoInt64.zero;
373
+ /**
374
+ * @generated from field: repeated string allowed_transports = 7;
375
+ */
376
+ this.allowedTransports = [];
377
+ protobuf_1.proto3.util.initPartial(data, this);
378
+ }
379
+ static fromBinary(bytes, options) {
380
+ return new WebAuthnConfiguration().fromBinary(bytes, options);
381
+ }
382
+ static fromJson(jsonValue, options) {
383
+ return new WebAuthnConfiguration().fromJson(jsonValue, options);
384
+ }
385
+ static fromJsonString(jsonString, options) {
386
+ return new WebAuthnConfiguration().fromJsonString(jsonString, options);
387
+ }
388
+ static equals(a, b) {
389
+ return protobuf_1.proto3.util.equals(WebAuthnConfiguration, a, b);
390
+ }
391
+ }
392
+ exports.WebAuthnConfiguration = WebAuthnConfiguration;
393
+ WebAuthnConfiguration.runtime = protobuf_1.proto3;
394
+ WebAuthnConfiguration.typeName = "scalekit.v1.auth.webauthn.WebAuthnConfiguration";
395
+ WebAuthnConfiguration.fields = protobuf_1.proto3.util.newFieldList(() => [
396
+ { no: 1, name: "rp_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
397
+ { no: 2, name: "rp_origin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
398
+ { no: 3, name: "user_verification", kind: "scalar", T: 9 /* ScalarType.STRING */ },
399
+ { no: 4, name: "authenticator_attachment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
400
+ { no: 5, name: "resident_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
401
+ { no: 6, name: "timeout", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
402
+ { no: 7, name: "allowed_transports", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
403
+ ]);
404
+ /**
405
+ * @generated from message scalekit.v1.auth.webauthn.ListCredentialsRequest
406
+ */
407
+ class ListCredentialsRequest extends protobuf_1.Message {
408
+ constructor(data) {
409
+ super();
410
+ /**
411
+ * @generated from field: string user_id = 1;
412
+ */
413
+ this.userId = "";
414
+ protobuf_1.proto3.util.initPartial(data, this);
415
+ }
416
+ static fromBinary(bytes, options) {
417
+ return new ListCredentialsRequest().fromBinary(bytes, options);
418
+ }
419
+ static fromJson(jsonValue, options) {
420
+ return new ListCredentialsRequest().fromJson(jsonValue, options);
421
+ }
422
+ static fromJsonString(jsonString, options) {
423
+ return new ListCredentialsRequest().fromJsonString(jsonString, options);
424
+ }
425
+ static equals(a, b) {
426
+ return protobuf_1.proto3.util.equals(ListCredentialsRequest, a, b);
427
+ }
428
+ }
429
+ exports.ListCredentialsRequest = ListCredentialsRequest;
430
+ ListCredentialsRequest.runtime = protobuf_1.proto3;
431
+ ListCredentialsRequest.typeName = "scalekit.v1.auth.webauthn.ListCredentialsRequest";
432
+ ListCredentialsRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
433
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
434
+ ]);
435
+ /**
436
+ * @generated from message scalekit.v1.auth.webauthn.ListCredentialsResponse
437
+ */
438
+ class ListCredentialsResponse extends protobuf_1.Message {
439
+ constructor(data) {
440
+ super();
441
+ /**
442
+ * @generated from field: repeated scalekit.v1.auth.webauthn.WebAuthnCredential credentials = 1;
443
+ */
444
+ this.credentials = [];
445
+ protobuf_1.proto3.util.initPartial(data, this);
446
+ }
447
+ static fromBinary(bytes, options) {
448
+ return new ListCredentialsResponse().fromBinary(bytes, options);
449
+ }
450
+ static fromJson(jsonValue, options) {
451
+ return new ListCredentialsResponse().fromJson(jsonValue, options);
452
+ }
453
+ static fromJsonString(jsonString, options) {
454
+ return new ListCredentialsResponse().fromJsonString(jsonString, options);
455
+ }
456
+ static equals(a, b) {
457
+ return protobuf_1.proto3.util.equals(ListCredentialsResponse, a, b);
458
+ }
459
+ }
460
+ exports.ListCredentialsResponse = ListCredentialsResponse;
461
+ ListCredentialsResponse.runtime = protobuf_1.proto3;
462
+ ListCredentialsResponse.typeName = "scalekit.v1.auth.webauthn.ListCredentialsResponse";
463
+ ListCredentialsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
464
+ { no: 1, name: "credentials", kind: "message", T: WebAuthnCredential, repeated: true },
465
+ { no: 2, name: "all_accepted_credentials_options", kind: "message", T: AllAcceptedCredentialsOptions },
466
+ ]);
467
+ /**
468
+ * @generated from message scalekit.v1.auth.webauthn.DeleteCredentialRequest
469
+ */
470
+ class DeleteCredentialRequest extends protobuf_1.Message {
471
+ constructor(data) {
472
+ super();
473
+ /**
474
+ * @generated from field: string credential_id = 1;
475
+ */
476
+ this.credentialId = "";
477
+ protobuf_1.proto3.util.initPartial(data, this);
478
+ }
479
+ static fromBinary(bytes, options) {
480
+ return new DeleteCredentialRequest().fromBinary(bytes, options);
481
+ }
482
+ static fromJson(jsonValue, options) {
483
+ return new DeleteCredentialRequest().fromJson(jsonValue, options);
484
+ }
485
+ static fromJsonString(jsonString, options) {
486
+ return new DeleteCredentialRequest().fromJsonString(jsonString, options);
487
+ }
488
+ static equals(a, b) {
489
+ return protobuf_1.proto3.util.equals(DeleteCredentialRequest, a, b);
490
+ }
491
+ }
492
+ exports.DeleteCredentialRequest = DeleteCredentialRequest;
493
+ DeleteCredentialRequest.runtime = protobuf_1.proto3;
494
+ DeleteCredentialRequest.typeName = "scalekit.v1.auth.webauthn.DeleteCredentialRequest";
495
+ DeleteCredentialRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
496
+ { no: 1, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
497
+ ]);
498
+ /**
499
+ * @generated from message scalekit.v1.auth.webauthn.DeleteCredentialResponse
500
+ */
501
+ class DeleteCredentialResponse extends protobuf_1.Message {
502
+ constructor(data) {
503
+ super();
504
+ /**
505
+ * @generated from field: bool success = 1;
506
+ */
507
+ this.success = false;
508
+ protobuf_1.proto3.util.initPartial(data, this);
509
+ }
510
+ static fromBinary(bytes, options) {
511
+ return new DeleteCredentialResponse().fromBinary(bytes, options);
512
+ }
513
+ static fromJson(jsonValue, options) {
514
+ return new DeleteCredentialResponse().fromJson(jsonValue, options);
515
+ }
516
+ static fromJsonString(jsonString, options) {
517
+ return new DeleteCredentialResponse().fromJsonString(jsonString, options);
518
+ }
519
+ static equals(a, b) {
520
+ return protobuf_1.proto3.util.equals(DeleteCredentialResponse, a, b);
521
+ }
522
+ }
523
+ exports.DeleteCredentialResponse = DeleteCredentialResponse;
524
+ DeleteCredentialResponse.runtime = protobuf_1.proto3;
525
+ DeleteCredentialResponse.typeName = "scalekit.v1.auth.webauthn.DeleteCredentialResponse";
526
+ DeleteCredentialResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
527
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
528
+ { no: 2, name: "unknown_credential_options", kind: "message", T: UnknownCredentialOptions },
529
+ ]);
530
+ /**
531
+ * @generated from message scalekit.v1.auth.webauthn.UnknownCredentialOptions
532
+ */
533
+ class UnknownCredentialOptions extends protobuf_1.Message {
534
+ constructor(data) {
535
+ super();
536
+ /**
537
+ * @generated from field: string rp_id = 1;
538
+ */
539
+ this.rpId = "";
540
+ /**
541
+ * @generated from field: string credential_id = 2;
542
+ */
543
+ this.credentialId = "";
544
+ protobuf_1.proto3.util.initPartial(data, this);
545
+ }
546
+ static fromBinary(bytes, options) {
547
+ return new UnknownCredentialOptions().fromBinary(bytes, options);
548
+ }
549
+ static fromJson(jsonValue, options) {
550
+ return new UnknownCredentialOptions().fromJson(jsonValue, options);
551
+ }
552
+ static fromJsonString(jsonString, options) {
553
+ return new UnknownCredentialOptions().fromJsonString(jsonString, options);
554
+ }
555
+ static equals(a, b) {
556
+ return protobuf_1.proto3.util.equals(UnknownCredentialOptions, a, b);
557
+ }
558
+ }
559
+ exports.UnknownCredentialOptions = UnknownCredentialOptions;
560
+ UnknownCredentialOptions.runtime = protobuf_1.proto3;
561
+ UnknownCredentialOptions.typeName = "scalekit.v1.auth.webauthn.UnknownCredentialOptions";
562
+ UnknownCredentialOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
563
+ { no: 1, name: "rp_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
564
+ { no: 2, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
565
+ ]);
566
+ /**
567
+ * @generated from message scalekit.v1.auth.webauthn.AllAcceptedCredentialsOptions
568
+ */
569
+ class AllAcceptedCredentialsOptions extends protobuf_1.Message {
570
+ constructor(data) {
571
+ super();
572
+ /**
573
+ * @generated from field: string rp_id = 1;
574
+ */
575
+ this.rpId = "";
576
+ /**
577
+ * @generated from field: string user_id = 2;
578
+ */
579
+ this.userId = "";
580
+ /**
581
+ * @generated from field: repeated string all_accepted_credential_ids = 3;
582
+ */
583
+ this.allAcceptedCredentialIds = [];
584
+ protobuf_1.proto3.util.initPartial(data, this);
585
+ }
586
+ static fromBinary(bytes, options) {
587
+ return new AllAcceptedCredentialsOptions().fromBinary(bytes, options);
588
+ }
589
+ static fromJson(jsonValue, options) {
590
+ return new AllAcceptedCredentialsOptions().fromJson(jsonValue, options);
591
+ }
592
+ static fromJsonString(jsonString, options) {
593
+ return new AllAcceptedCredentialsOptions().fromJsonString(jsonString, options);
594
+ }
595
+ static equals(a, b) {
596
+ return protobuf_1.proto3.util.equals(AllAcceptedCredentialsOptions, a, b);
597
+ }
598
+ }
599
+ exports.AllAcceptedCredentialsOptions = AllAcceptedCredentialsOptions;
600
+ AllAcceptedCredentialsOptions.runtime = protobuf_1.proto3;
601
+ AllAcceptedCredentialsOptions.typeName = "scalekit.v1.auth.webauthn.AllAcceptedCredentialsOptions";
602
+ AllAcceptedCredentialsOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
603
+ { no: 1, name: "rp_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
604
+ { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
605
+ { no: 3, name: "all_accepted_credential_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
606
+ ]);
607
+ /**
608
+ * @generated from message scalekit.v1.auth.webauthn.UpdateCredentialRequest
609
+ */
610
+ class UpdateCredentialRequest extends protobuf_1.Message {
611
+ constructor(data) {
612
+ super();
613
+ /**
614
+ * @generated from field: string credential_id = 1;
615
+ */
616
+ this.credentialId = "";
617
+ /**
618
+ * @generated from field: string display_name = 2;
619
+ */
620
+ this.displayName = "";
621
+ protobuf_1.proto3.util.initPartial(data, this);
622
+ }
623
+ static fromBinary(bytes, options) {
624
+ return new UpdateCredentialRequest().fromBinary(bytes, options);
625
+ }
626
+ static fromJson(jsonValue, options) {
627
+ return new UpdateCredentialRequest().fromJson(jsonValue, options);
628
+ }
629
+ static fromJsonString(jsonString, options) {
630
+ return new UpdateCredentialRequest().fromJsonString(jsonString, options);
631
+ }
632
+ static equals(a, b) {
633
+ return protobuf_1.proto3.util.equals(UpdateCredentialRequest, a, b);
634
+ }
635
+ }
636
+ exports.UpdateCredentialRequest = UpdateCredentialRequest;
637
+ UpdateCredentialRequest.runtime = protobuf_1.proto3;
638
+ UpdateCredentialRequest.typeName = "scalekit.v1.auth.webauthn.UpdateCredentialRequest";
639
+ UpdateCredentialRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
640
+ { no: 1, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
641
+ { no: 2, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
642
+ ]);
643
+ /**
644
+ * @generated from message scalekit.v1.auth.webauthn.UpdateCredentialResponse
645
+ */
646
+ class UpdateCredentialResponse extends protobuf_1.Message {
647
+ constructor(data) {
648
+ super();
649
+ protobuf_1.proto3.util.initPartial(data, this);
650
+ }
651
+ static fromBinary(bytes, options) {
652
+ return new UpdateCredentialResponse().fromBinary(bytes, options);
653
+ }
654
+ static fromJson(jsonValue, options) {
655
+ return new UpdateCredentialResponse().fromJson(jsonValue, options);
656
+ }
657
+ static fromJsonString(jsonString, options) {
658
+ return new UpdateCredentialResponse().fromJsonString(jsonString, options);
659
+ }
660
+ static equals(a, b) {
661
+ return protobuf_1.proto3.util.equals(UpdateCredentialResponse, a, b);
662
+ }
663
+ }
664
+ exports.UpdateCredentialResponse = UpdateCredentialResponse;
665
+ UpdateCredentialResponse.runtime = protobuf_1.proto3;
666
+ UpdateCredentialResponse.typeName = "scalekit.v1.auth.webauthn.UpdateCredentialResponse";
667
+ UpdateCredentialResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
668
+ { no: 1, name: "credential", kind: "message", T: WebAuthnCredential },
669
+ ]);
670
+ /**
671
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential
672
+ */
673
+ class WebAuthnCredential extends protobuf_1.Message {
674
+ constructor(data) {
675
+ super();
676
+ /**
677
+ * @generated from field: string id = 1;
678
+ */
679
+ this.id = "";
680
+ /**
681
+ * @generated from field: string user_id = 2;
682
+ */
683
+ this.userId = "";
684
+ /**
685
+ * @generated from field: bytes credential_id = 3;
686
+ */
687
+ this.credentialId = new Uint8Array(0);
688
+ /**
689
+ * @generated from field: string attestation_type = 4;
690
+ */
691
+ this.attestationType = "";
692
+ /**
693
+ * @generated from field: repeated string transports = 6;
694
+ */
695
+ this.transports = [];
696
+ protobuf_1.proto3.util.initPartial(data, this);
697
+ }
698
+ static fromBinary(bytes, options) {
699
+ return new WebAuthnCredential().fromBinary(bytes, options);
700
+ }
701
+ static fromJson(jsonValue, options) {
702
+ return new WebAuthnCredential().fromJson(jsonValue, options);
703
+ }
704
+ static fromJsonString(jsonString, options) {
705
+ return new WebAuthnCredential().fromJsonString(jsonString, options);
706
+ }
707
+ static equals(a, b) {
708
+ return protobuf_1.proto3.util.equals(WebAuthnCredential, a, b);
709
+ }
710
+ }
711
+ exports.WebAuthnCredential = WebAuthnCredential;
712
+ WebAuthnCredential.runtime = protobuf_1.proto3;
713
+ WebAuthnCredential.typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential";
714
+ WebAuthnCredential.fields = protobuf_1.proto3.util.newFieldList(() => [
715
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
716
+ { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
717
+ { no: 3, name: "credential_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
718
+ { no: 4, name: "attestation_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
719
+ { no: 5, name: "authenticator", kind: "message", T: WebAuthnCredential_Authenticator },
720
+ { no: 6, name: "transports", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
721
+ { no: 7, name: "authenticator_flags", kind: "message", T: WebAuthnCredential_AuthenticatorFlags },
722
+ { no: 8, name: "created_at", kind: "message", T: protobuf_1.Timestamp },
723
+ { no: 9, name: "updated_at", kind: "message", T: protobuf_1.Timestamp },
724
+ { no: 10, name: "user_agent", kind: "message", T: WebAuthnCredential_UserAgent },
725
+ { no: 11, name: "client_info", kind: "message", T: WebAuthnCredential_ClientInfo },
726
+ { no: 12, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
727
+ ]);
728
+ /**
729
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.AuthenticatorFlags
730
+ */
731
+ class WebAuthnCredential_AuthenticatorFlags extends protobuf_1.Message {
732
+ constructor(data) {
733
+ super();
734
+ /**
735
+ * @generated from field: bool user_present = 1;
736
+ */
737
+ this.userPresent = false;
738
+ /**
739
+ * @generated from field: bool user_verified = 2;
740
+ */
741
+ this.userVerified = false;
742
+ /**
743
+ * @generated from field: bool backup_eligible = 3;
744
+ */
745
+ this.backupEligible = false;
746
+ /**
747
+ * @generated from field: bool backup_state = 4;
748
+ */
749
+ this.backupState = false;
750
+ protobuf_1.proto3.util.initPartial(data, this);
751
+ }
752
+ static fromBinary(bytes, options) {
753
+ return new WebAuthnCredential_AuthenticatorFlags().fromBinary(bytes, options);
754
+ }
755
+ static fromJson(jsonValue, options) {
756
+ return new WebAuthnCredential_AuthenticatorFlags().fromJson(jsonValue, options);
757
+ }
758
+ static fromJsonString(jsonString, options) {
759
+ return new WebAuthnCredential_AuthenticatorFlags().fromJsonString(jsonString, options);
760
+ }
761
+ static equals(a, b) {
762
+ return protobuf_1.proto3.util.equals(WebAuthnCredential_AuthenticatorFlags, a, b);
763
+ }
764
+ }
765
+ exports.WebAuthnCredential_AuthenticatorFlags = WebAuthnCredential_AuthenticatorFlags;
766
+ WebAuthnCredential_AuthenticatorFlags.runtime = protobuf_1.proto3;
767
+ WebAuthnCredential_AuthenticatorFlags.typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential.AuthenticatorFlags";
768
+ WebAuthnCredential_AuthenticatorFlags.fields = protobuf_1.proto3.util.newFieldList(() => [
769
+ { no: 1, name: "user_present", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
770
+ { no: 2, name: "user_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
771
+ { no: 3, name: "backup_eligible", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
772
+ { no: 4, name: "backup_state", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
773
+ ]);
774
+ /**
775
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.Authenticator
776
+ */
777
+ class WebAuthnCredential_Authenticator extends protobuf_1.Message {
778
+ constructor(data) {
779
+ super();
780
+ /**
781
+ * @generated from field: string aaguid = 1;
782
+ */
783
+ this.aaguid = "";
784
+ /**
785
+ * @generated from field: string name = 2;
786
+ */
787
+ this.name = "";
788
+ /**
789
+ * @generated from field: string attachment = 3;
790
+ */
791
+ this.attachment = "";
792
+ /**
793
+ * @generated from field: string icon_dark = 4;
794
+ */
795
+ this.iconDark = "";
796
+ /**
797
+ * @generated from field: string icon_light = 5;
798
+ */
799
+ this.iconLight = "";
800
+ protobuf_1.proto3.util.initPartial(data, this);
801
+ }
802
+ static fromBinary(bytes, options) {
803
+ return new WebAuthnCredential_Authenticator().fromBinary(bytes, options);
804
+ }
805
+ static fromJson(jsonValue, options) {
806
+ return new WebAuthnCredential_Authenticator().fromJson(jsonValue, options);
807
+ }
808
+ static fromJsonString(jsonString, options) {
809
+ return new WebAuthnCredential_Authenticator().fromJsonString(jsonString, options);
810
+ }
811
+ static equals(a, b) {
812
+ return protobuf_1.proto3.util.equals(WebAuthnCredential_Authenticator, a, b);
813
+ }
814
+ }
815
+ exports.WebAuthnCredential_Authenticator = WebAuthnCredential_Authenticator;
816
+ WebAuthnCredential_Authenticator.runtime = protobuf_1.proto3;
817
+ WebAuthnCredential_Authenticator.typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential.Authenticator";
818
+ WebAuthnCredential_Authenticator.fields = protobuf_1.proto3.util.newFieldList(() => [
819
+ { no: 1, name: "aaguid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
820
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
821
+ { no: 3, name: "attachment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
822
+ { no: 4, name: "icon_dark", kind: "scalar", T: 9 /* ScalarType.STRING */ },
823
+ { no: 5, name: "icon_light", kind: "scalar", T: 9 /* ScalarType.STRING */ },
824
+ ]);
825
+ /**
826
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.UserAgent
827
+ */
828
+ class WebAuthnCredential_UserAgent extends protobuf_1.Message {
829
+ constructor(data) {
830
+ super();
831
+ /**
832
+ * @generated from field: string raw = 1;
833
+ */
834
+ this.raw = "";
835
+ /**
836
+ * @generated from field: string url = 2;
837
+ */
838
+ this.url = "";
839
+ /**
840
+ * @generated from field: string browser = 3;
841
+ */
842
+ this.browser = "";
843
+ /**
844
+ * @generated from field: string browser_version = 4;
845
+ */
846
+ this.browserVersion = "";
847
+ /**
848
+ * @generated from field: string os = 5;
849
+ */
850
+ this.os = "";
851
+ /**
852
+ * @generated from field: string os_version = 6;
853
+ */
854
+ this.osVersion = "";
855
+ /**
856
+ * @generated from field: string device_type = 7;
857
+ */
858
+ this.deviceType = "";
859
+ /**
860
+ * @generated from field: string device_model = 8;
861
+ */
862
+ this.deviceModel = "";
863
+ protobuf_1.proto3.util.initPartial(data, this);
864
+ }
865
+ static fromBinary(bytes, options) {
866
+ return new WebAuthnCredential_UserAgent().fromBinary(bytes, options);
867
+ }
868
+ static fromJson(jsonValue, options) {
869
+ return new WebAuthnCredential_UserAgent().fromJson(jsonValue, options);
870
+ }
871
+ static fromJsonString(jsonString, options) {
872
+ return new WebAuthnCredential_UserAgent().fromJsonString(jsonString, options);
873
+ }
874
+ static equals(a, b) {
875
+ return protobuf_1.proto3.util.equals(WebAuthnCredential_UserAgent, a, b);
876
+ }
877
+ }
878
+ exports.WebAuthnCredential_UserAgent = WebAuthnCredential_UserAgent;
879
+ WebAuthnCredential_UserAgent.runtime = protobuf_1.proto3;
880
+ WebAuthnCredential_UserAgent.typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential.UserAgent";
881
+ WebAuthnCredential_UserAgent.fields = protobuf_1.proto3.util.newFieldList(() => [
882
+ { no: 1, name: "raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
883
+ { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
884
+ { no: 3, name: "browser", kind: "scalar", T: 9 /* ScalarType.STRING */ },
885
+ { no: 4, name: "browser_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
886
+ { no: 5, name: "os", kind: "scalar", T: 9 /* ScalarType.STRING */ },
887
+ { no: 6, name: "os_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
888
+ { no: 7, name: "device_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
889
+ { no: 8, name: "device_model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
890
+ ]);
891
+ /**
892
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.ClientInfo
893
+ */
894
+ class WebAuthnCredential_ClientInfo extends protobuf_1.Message {
895
+ constructor(data) {
896
+ super();
897
+ /**
898
+ * @generated from field: string ip = 1;
899
+ */
900
+ this.ip = "";
901
+ /**
902
+ * @generated from field: string region = 2;
903
+ */
904
+ this.region = "";
905
+ /**
906
+ * @generated from field: string region_subdivision = 3;
907
+ */
908
+ this.regionSubdivision = "";
909
+ /**
910
+ * @generated from field: string city = 4;
911
+ */
912
+ this.city = "";
913
+ protobuf_1.proto3.util.initPartial(data, this);
914
+ }
915
+ static fromBinary(bytes, options) {
916
+ return new WebAuthnCredential_ClientInfo().fromBinary(bytes, options);
917
+ }
918
+ static fromJson(jsonValue, options) {
919
+ return new WebAuthnCredential_ClientInfo().fromJson(jsonValue, options);
920
+ }
921
+ static fromJsonString(jsonString, options) {
922
+ return new WebAuthnCredential_ClientInfo().fromJsonString(jsonString, options);
923
+ }
924
+ static equals(a, b) {
925
+ return protobuf_1.proto3.util.equals(WebAuthnCredential_ClientInfo, a, b);
926
+ }
927
+ }
928
+ exports.WebAuthnCredential_ClientInfo = WebAuthnCredential_ClientInfo;
929
+ WebAuthnCredential_ClientInfo.runtime = protobuf_1.proto3;
930
+ WebAuthnCredential_ClientInfo.typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential.ClientInfo";
931
+ WebAuthnCredential_ClientInfo.fields = protobuf_1.proto3.util.newFieldList(() => [
932
+ { no: 1, name: "ip", kind: "scalar", T: 9 /* ScalarType.STRING */ },
933
+ { no: 2, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
934
+ { no: 3, name: "region_subdivision", kind: "scalar", T: 9 /* ScalarType.STRING */ },
935
+ { no: 4, name: "city", kind: "scalar", T: 9 /* ScalarType.STRING */ },
936
+ ]);
937
+ /**
938
+ * @generated from message scalekit.v1.auth.webauthn.GetRelatedOriginsRequest
939
+ */
940
+ class GetRelatedOriginsRequest extends protobuf_1.Message {
941
+ constructor(data) {
942
+ super();
943
+ protobuf_1.proto3.util.initPartial(data, this);
944
+ }
945
+ static fromBinary(bytes, options) {
946
+ return new GetRelatedOriginsRequest().fromBinary(bytes, options);
947
+ }
948
+ static fromJson(jsonValue, options) {
949
+ return new GetRelatedOriginsRequest().fromJson(jsonValue, options);
950
+ }
951
+ static fromJsonString(jsonString, options) {
952
+ return new GetRelatedOriginsRequest().fromJsonString(jsonString, options);
953
+ }
954
+ static equals(a, b) {
955
+ return protobuf_1.proto3.util.equals(GetRelatedOriginsRequest, a, b);
956
+ }
957
+ }
958
+ exports.GetRelatedOriginsRequest = GetRelatedOriginsRequest;
959
+ GetRelatedOriginsRequest.runtime = protobuf_1.proto3;
960
+ GetRelatedOriginsRequest.typeName = "scalekit.v1.auth.webauthn.GetRelatedOriginsRequest";
961
+ GetRelatedOriginsRequest.fields = protobuf_1.proto3.util.newFieldList(() => []);
962
+ /**
963
+ * @generated from message scalekit.v1.auth.webauthn.GetRelatedOriginsResponse
964
+ */
965
+ class GetRelatedOriginsResponse extends protobuf_1.Message {
966
+ constructor(data) {
967
+ super();
968
+ /**
969
+ * @generated from field: repeated string origins = 1;
970
+ */
971
+ this.origins = [];
972
+ protobuf_1.proto3.util.initPartial(data, this);
973
+ }
974
+ static fromBinary(bytes, options) {
975
+ return new GetRelatedOriginsResponse().fromBinary(bytes, options);
976
+ }
977
+ static fromJson(jsonValue, options) {
978
+ return new GetRelatedOriginsResponse().fromJson(jsonValue, options);
979
+ }
980
+ static fromJsonString(jsonString, options) {
981
+ return new GetRelatedOriginsResponse().fromJsonString(jsonString, options);
982
+ }
983
+ static equals(a, b) {
984
+ return protobuf_1.proto3.util.equals(GetRelatedOriginsResponse, a, b);
985
+ }
986
+ }
987
+ exports.GetRelatedOriginsResponse = GetRelatedOriginsResponse;
988
+ GetRelatedOriginsResponse.runtime = protobuf_1.proto3;
989
+ GetRelatedOriginsResponse.typeName = "scalekit.v1.auth.webauthn.GetRelatedOriginsResponse";
990
+ GetRelatedOriginsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
991
+ { no: 1, name: "origins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
992
+ ]);
993
+ //# sourceMappingURL=webauthn_pb.js.map