@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,647 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from message scalekit.v1.auth.webauthn.BeginRegistrationRequest
5
+ */
6
+ export declare class BeginRegistrationRequest extends Message<BeginRegistrationRequest> {
7
+ constructor(data?: PartialMessage<BeginRegistrationRequest>);
8
+ static readonly runtime: typeof proto3;
9
+ static readonly typeName = "scalekit.v1.auth.webauthn.BeginRegistrationRequest";
10
+ static readonly fields: FieldList;
11
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BeginRegistrationRequest;
12
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BeginRegistrationRequest;
13
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BeginRegistrationRequest;
14
+ static equals(a: BeginRegistrationRequest | PlainMessage<BeginRegistrationRequest> | undefined, b: BeginRegistrationRequest | PlainMessage<BeginRegistrationRequest> | undefined): boolean;
15
+ }
16
+ /**
17
+ * @generated from message scalekit.v1.auth.webauthn.BeginRegistrationResponse
18
+ */
19
+ export declare class BeginRegistrationResponse extends Message<BeginRegistrationResponse> {
20
+ /**
21
+ * @generated from field: google.protobuf.Struct options = 1;
22
+ */
23
+ options?: Struct;
24
+ constructor(data?: PartialMessage<BeginRegistrationResponse>);
25
+ static readonly runtime: typeof proto3;
26
+ static readonly typeName = "scalekit.v1.auth.webauthn.BeginRegistrationResponse";
27
+ static readonly fields: FieldList;
28
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BeginRegistrationResponse;
29
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BeginRegistrationResponse;
30
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BeginRegistrationResponse;
31
+ static equals(a: BeginRegistrationResponse | PlainMessage<BeginRegistrationResponse> | undefined, b: BeginRegistrationResponse | PlainMessage<BeginRegistrationResponse> | undefined): boolean;
32
+ }
33
+ /**
34
+ * @generated from message scalekit.v1.auth.webauthn.FinishRegistrationRequest
35
+ */
36
+ export declare class FinishRegistrationRequest extends Message<FinishRegistrationRequest> {
37
+ /**
38
+ * @generated from field: bytes credential_id = 1;
39
+ */
40
+ credentialId: Uint8Array;
41
+ /**
42
+ * @generated from field: bytes attestation_object = 2;
43
+ */
44
+ attestationObject: Uint8Array;
45
+ /**
46
+ * @generated from field: bytes client_data_json = 3;
47
+ */
48
+ clientDataJson: Uint8Array;
49
+ /**
50
+ * @generated from field: string type = 4;
51
+ */
52
+ type: string;
53
+ /**
54
+ * @generated from field: repeated string transports = 5;
55
+ */
56
+ transports: string[];
57
+ /**
58
+ * @generated from field: string authenticator_attachment = 6;
59
+ */
60
+ authenticatorAttachment: string;
61
+ /**
62
+ * @generated from field: google.protobuf.Struct client_extension_results = 7;
63
+ */
64
+ clientExtensionResults?: Struct;
65
+ constructor(data?: PartialMessage<FinishRegistrationRequest>);
66
+ static readonly runtime: typeof proto3;
67
+ static readonly typeName = "scalekit.v1.auth.webauthn.FinishRegistrationRequest";
68
+ static readonly fields: FieldList;
69
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FinishRegistrationRequest;
70
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FinishRegistrationRequest;
71
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FinishRegistrationRequest;
72
+ static equals(a: FinishRegistrationRequest | PlainMessage<FinishRegistrationRequest> | undefined, b: FinishRegistrationRequest | PlainMessage<FinishRegistrationRequest> | undefined): boolean;
73
+ }
74
+ /**
75
+ * @generated from message scalekit.v1.auth.webauthn.FinishRegistrationResponse
76
+ */
77
+ export declare class FinishRegistrationResponse extends Message<FinishRegistrationResponse> {
78
+ /**
79
+ * @generated from field: bool success = 1;
80
+ */
81
+ success: boolean;
82
+ constructor(data?: PartialMessage<FinishRegistrationResponse>);
83
+ static readonly runtime: typeof proto3;
84
+ static readonly typeName = "scalekit.v1.auth.webauthn.FinishRegistrationResponse";
85
+ static readonly fields: FieldList;
86
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FinishRegistrationResponse;
87
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FinishRegistrationResponse;
88
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FinishRegistrationResponse;
89
+ static equals(a: FinishRegistrationResponse | PlainMessage<FinishRegistrationResponse> | undefined, b: FinishRegistrationResponse | PlainMessage<FinishRegistrationResponse> | undefined): boolean;
90
+ }
91
+ /**
92
+ * @generated from message scalekit.v1.auth.webauthn.BeginAuthenticationRequest
93
+ */
94
+ export declare class BeginAuthenticationRequest extends Message<BeginAuthenticationRequest> {
95
+ /**
96
+ * @generated from field: optional string email = 1;
97
+ */
98
+ email?: string;
99
+ constructor(data?: PartialMessage<BeginAuthenticationRequest>);
100
+ static readonly runtime: typeof proto3;
101
+ static readonly typeName = "scalekit.v1.auth.webauthn.BeginAuthenticationRequest";
102
+ static readonly fields: FieldList;
103
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BeginAuthenticationRequest;
104
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BeginAuthenticationRequest;
105
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BeginAuthenticationRequest;
106
+ static equals(a: BeginAuthenticationRequest | PlainMessage<BeginAuthenticationRequest> | undefined, b: BeginAuthenticationRequest | PlainMessage<BeginAuthenticationRequest> | undefined): boolean;
107
+ }
108
+ /**
109
+ * @generated from message scalekit.v1.auth.webauthn.BeginAuthenticationResponse
110
+ */
111
+ export declare class BeginAuthenticationResponse extends Message<BeginAuthenticationResponse> {
112
+ /**
113
+ * @generated from field: string session_id = 1;
114
+ */
115
+ sessionId: string;
116
+ /**
117
+ * @generated from field: google.protobuf.Struct options = 2;
118
+ */
119
+ options?: Struct;
120
+ constructor(data?: PartialMessage<BeginAuthenticationResponse>);
121
+ static readonly runtime: typeof proto3;
122
+ static readonly typeName = "scalekit.v1.auth.webauthn.BeginAuthenticationResponse";
123
+ static readonly fields: FieldList;
124
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BeginAuthenticationResponse;
125
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BeginAuthenticationResponse;
126
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BeginAuthenticationResponse;
127
+ static equals(a: BeginAuthenticationResponse | PlainMessage<BeginAuthenticationResponse> | undefined, b: BeginAuthenticationResponse | PlainMessage<BeginAuthenticationResponse> | undefined): boolean;
128
+ }
129
+ /**
130
+ * @generated from message scalekit.v1.auth.webauthn.FinishAuthenticationRequest
131
+ */
132
+ export declare class FinishAuthenticationRequest extends Message<FinishAuthenticationRequest> {
133
+ /**
134
+ * @generated from field: string session_id = 1;
135
+ */
136
+ sessionId: string;
137
+ /**
138
+ * @generated from field: bytes credential_id = 2;
139
+ */
140
+ credentialId: Uint8Array;
141
+ /**
142
+ * @generated from field: google.protobuf.Struct client_extension_results = 3;
143
+ */
144
+ clientExtensionResults?: Struct;
145
+ /**
146
+ * @generated from field: string type = 4;
147
+ */
148
+ type: string;
149
+ /**
150
+ * @generated from field: scalekit.v1.auth.webauthn.AuthenticatorAssertionResponse response = 5;
151
+ */
152
+ response?: AuthenticatorAssertionResponse;
153
+ /**
154
+ * @generated from field: string authenticator_attachment = 6;
155
+ */
156
+ authenticatorAttachment: string;
157
+ constructor(data?: PartialMessage<FinishAuthenticationRequest>);
158
+ static readonly runtime: typeof proto3;
159
+ static readonly typeName = "scalekit.v1.auth.webauthn.FinishAuthenticationRequest";
160
+ static readonly fields: FieldList;
161
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FinishAuthenticationRequest;
162
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FinishAuthenticationRequest;
163
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FinishAuthenticationRequest;
164
+ static equals(a: FinishAuthenticationRequest | PlainMessage<FinishAuthenticationRequest> | undefined, b: FinishAuthenticationRequest | PlainMessage<FinishAuthenticationRequest> | undefined): boolean;
165
+ }
166
+ /**
167
+ * @generated from message scalekit.v1.auth.webauthn.AuthenticatorAssertionResponse
168
+ */
169
+ export declare class AuthenticatorAssertionResponse extends Message<AuthenticatorAssertionResponse> {
170
+ /**
171
+ * @generated from field: bytes authenticator_data = 1;
172
+ */
173
+ authenticatorData: Uint8Array;
174
+ /**
175
+ * @generated from field: bytes client_data_json = 2;
176
+ */
177
+ clientDataJson: Uint8Array;
178
+ /**
179
+ * @generated from field: bytes signature = 3;
180
+ */
181
+ signature: Uint8Array;
182
+ /**
183
+ * @generated from field: bytes user_handle = 4;
184
+ */
185
+ userHandle: Uint8Array;
186
+ constructor(data?: PartialMessage<AuthenticatorAssertionResponse>);
187
+ static readonly runtime: typeof proto3;
188
+ static readonly typeName = "scalekit.v1.auth.webauthn.AuthenticatorAssertionResponse";
189
+ static readonly fields: FieldList;
190
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuthenticatorAssertionResponse;
191
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuthenticatorAssertionResponse;
192
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuthenticatorAssertionResponse;
193
+ static equals(a: AuthenticatorAssertionResponse | PlainMessage<AuthenticatorAssertionResponse> | undefined, b: AuthenticatorAssertionResponse | PlainMessage<AuthenticatorAssertionResponse> | undefined): boolean;
194
+ }
195
+ /**
196
+ * @generated from message scalekit.v1.auth.webauthn.FinishAuthenticationResponse
197
+ */
198
+ export declare class FinishAuthenticationResponse extends Message<FinishAuthenticationResponse> {
199
+ /**
200
+ * @generated from field: bool success = 1;
201
+ */
202
+ success: boolean;
203
+ /**
204
+ * @generated from field: string user_id = 2;
205
+ */
206
+ userId: string;
207
+ /**
208
+ * @generated from field: string session_token = 3;
209
+ */
210
+ sessionToken: string;
211
+ constructor(data?: PartialMessage<FinishAuthenticationResponse>);
212
+ static readonly runtime: typeof proto3;
213
+ static readonly typeName = "scalekit.v1.auth.webauthn.FinishAuthenticationResponse";
214
+ static readonly fields: FieldList;
215
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FinishAuthenticationResponse;
216
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FinishAuthenticationResponse;
217
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FinishAuthenticationResponse;
218
+ static equals(a: FinishAuthenticationResponse | PlainMessage<FinishAuthenticationResponse> | undefined, b: FinishAuthenticationResponse | PlainMessage<FinishAuthenticationResponse> | undefined): boolean;
219
+ }
220
+ /**
221
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnConfiguration
222
+ */
223
+ export declare class WebAuthnConfiguration extends Message<WebAuthnConfiguration> {
224
+ /**
225
+ * @generated from field: string rp_id = 1;
226
+ */
227
+ rpId: string;
228
+ /**
229
+ * @generated from field: string rp_origin = 2;
230
+ */
231
+ rpOrigin: string;
232
+ /**
233
+ * @generated from field: string user_verification = 3;
234
+ */
235
+ userVerification: string;
236
+ /**
237
+ * @generated from field: string authenticator_attachment = 4;
238
+ */
239
+ authenticatorAttachment: string;
240
+ /**
241
+ * @generated from field: string resident_key = 5;
242
+ */
243
+ residentKey: string;
244
+ /**
245
+ * @generated from field: int64 timeout = 6;
246
+ */
247
+ timeout: bigint;
248
+ /**
249
+ * @generated from field: repeated string allowed_transports = 7;
250
+ */
251
+ allowedTransports: string[];
252
+ constructor(data?: PartialMessage<WebAuthnConfiguration>);
253
+ static readonly runtime: typeof proto3;
254
+ static readonly typeName = "scalekit.v1.auth.webauthn.WebAuthnConfiguration";
255
+ static readonly fields: FieldList;
256
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthnConfiguration;
257
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthnConfiguration;
258
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthnConfiguration;
259
+ static equals(a: WebAuthnConfiguration | PlainMessage<WebAuthnConfiguration> | undefined, b: WebAuthnConfiguration | PlainMessage<WebAuthnConfiguration> | undefined): boolean;
260
+ }
261
+ /**
262
+ * @generated from message scalekit.v1.auth.webauthn.ListCredentialsRequest
263
+ */
264
+ export declare class ListCredentialsRequest extends Message<ListCredentialsRequest> {
265
+ /**
266
+ * @generated from field: string user_id = 1;
267
+ */
268
+ userId: string;
269
+ constructor(data?: PartialMessage<ListCredentialsRequest>);
270
+ static readonly runtime: typeof proto3;
271
+ static readonly typeName = "scalekit.v1.auth.webauthn.ListCredentialsRequest";
272
+ static readonly fields: FieldList;
273
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListCredentialsRequest;
274
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListCredentialsRequest;
275
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListCredentialsRequest;
276
+ static equals(a: ListCredentialsRequest | PlainMessage<ListCredentialsRequest> | undefined, b: ListCredentialsRequest | PlainMessage<ListCredentialsRequest> | undefined): boolean;
277
+ }
278
+ /**
279
+ * @generated from message scalekit.v1.auth.webauthn.ListCredentialsResponse
280
+ */
281
+ export declare class ListCredentialsResponse extends Message<ListCredentialsResponse> {
282
+ /**
283
+ * @generated from field: repeated scalekit.v1.auth.webauthn.WebAuthnCredential credentials = 1;
284
+ */
285
+ credentials: WebAuthnCredential[];
286
+ /**
287
+ * @generated from field: scalekit.v1.auth.webauthn.AllAcceptedCredentialsOptions all_accepted_credentials_options = 2;
288
+ */
289
+ allAcceptedCredentialsOptions?: AllAcceptedCredentialsOptions;
290
+ constructor(data?: PartialMessage<ListCredentialsResponse>);
291
+ static readonly runtime: typeof proto3;
292
+ static readonly typeName = "scalekit.v1.auth.webauthn.ListCredentialsResponse";
293
+ static readonly fields: FieldList;
294
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListCredentialsResponse;
295
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListCredentialsResponse;
296
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListCredentialsResponse;
297
+ static equals(a: ListCredentialsResponse | PlainMessage<ListCredentialsResponse> | undefined, b: ListCredentialsResponse | PlainMessage<ListCredentialsResponse> | undefined): boolean;
298
+ }
299
+ /**
300
+ * @generated from message scalekit.v1.auth.webauthn.DeleteCredentialRequest
301
+ */
302
+ export declare class DeleteCredentialRequest extends Message<DeleteCredentialRequest> {
303
+ /**
304
+ * @generated from field: string credential_id = 1;
305
+ */
306
+ credentialId: string;
307
+ constructor(data?: PartialMessage<DeleteCredentialRequest>);
308
+ static readonly runtime: typeof proto3;
309
+ static readonly typeName = "scalekit.v1.auth.webauthn.DeleteCredentialRequest";
310
+ static readonly fields: FieldList;
311
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteCredentialRequest;
312
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteCredentialRequest;
313
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteCredentialRequest;
314
+ static equals(a: DeleteCredentialRequest | PlainMessage<DeleteCredentialRequest> | undefined, b: DeleteCredentialRequest | PlainMessage<DeleteCredentialRequest> | undefined): boolean;
315
+ }
316
+ /**
317
+ * @generated from message scalekit.v1.auth.webauthn.DeleteCredentialResponse
318
+ */
319
+ export declare class DeleteCredentialResponse extends Message<DeleteCredentialResponse> {
320
+ /**
321
+ * @generated from field: bool success = 1;
322
+ */
323
+ success: boolean;
324
+ /**
325
+ * @generated from field: scalekit.v1.auth.webauthn.UnknownCredentialOptions unknown_credential_options = 2;
326
+ */
327
+ unknownCredentialOptions?: UnknownCredentialOptions;
328
+ constructor(data?: PartialMessage<DeleteCredentialResponse>);
329
+ static readonly runtime: typeof proto3;
330
+ static readonly typeName = "scalekit.v1.auth.webauthn.DeleteCredentialResponse";
331
+ static readonly fields: FieldList;
332
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteCredentialResponse;
333
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteCredentialResponse;
334
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteCredentialResponse;
335
+ static equals(a: DeleteCredentialResponse | PlainMessage<DeleteCredentialResponse> | undefined, b: DeleteCredentialResponse | PlainMessage<DeleteCredentialResponse> | undefined): boolean;
336
+ }
337
+ /**
338
+ * @generated from message scalekit.v1.auth.webauthn.UnknownCredentialOptions
339
+ */
340
+ export declare class UnknownCredentialOptions extends Message<UnknownCredentialOptions> {
341
+ /**
342
+ * @generated from field: string rp_id = 1;
343
+ */
344
+ rpId: string;
345
+ /**
346
+ * @generated from field: string credential_id = 2;
347
+ */
348
+ credentialId: string;
349
+ constructor(data?: PartialMessage<UnknownCredentialOptions>);
350
+ static readonly runtime: typeof proto3;
351
+ static readonly typeName = "scalekit.v1.auth.webauthn.UnknownCredentialOptions";
352
+ static readonly fields: FieldList;
353
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnknownCredentialOptions;
354
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnknownCredentialOptions;
355
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnknownCredentialOptions;
356
+ static equals(a: UnknownCredentialOptions | PlainMessage<UnknownCredentialOptions> | undefined, b: UnknownCredentialOptions | PlainMessage<UnknownCredentialOptions> | undefined): boolean;
357
+ }
358
+ /**
359
+ * @generated from message scalekit.v1.auth.webauthn.AllAcceptedCredentialsOptions
360
+ */
361
+ export declare class AllAcceptedCredentialsOptions extends Message<AllAcceptedCredentialsOptions> {
362
+ /**
363
+ * @generated from field: string rp_id = 1;
364
+ */
365
+ rpId: string;
366
+ /**
367
+ * @generated from field: string user_id = 2;
368
+ */
369
+ userId: string;
370
+ /**
371
+ * @generated from field: repeated string all_accepted_credential_ids = 3;
372
+ */
373
+ allAcceptedCredentialIds: string[];
374
+ constructor(data?: PartialMessage<AllAcceptedCredentialsOptions>);
375
+ static readonly runtime: typeof proto3;
376
+ static readonly typeName = "scalekit.v1.auth.webauthn.AllAcceptedCredentialsOptions";
377
+ static readonly fields: FieldList;
378
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllAcceptedCredentialsOptions;
379
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllAcceptedCredentialsOptions;
380
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllAcceptedCredentialsOptions;
381
+ static equals(a: AllAcceptedCredentialsOptions | PlainMessage<AllAcceptedCredentialsOptions> | undefined, b: AllAcceptedCredentialsOptions | PlainMessage<AllAcceptedCredentialsOptions> | undefined): boolean;
382
+ }
383
+ /**
384
+ * @generated from message scalekit.v1.auth.webauthn.UpdateCredentialRequest
385
+ */
386
+ export declare class UpdateCredentialRequest extends Message<UpdateCredentialRequest> {
387
+ /**
388
+ * @generated from field: string credential_id = 1;
389
+ */
390
+ credentialId: string;
391
+ /**
392
+ * @generated from field: string display_name = 2;
393
+ */
394
+ displayName: string;
395
+ constructor(data?: PartialMessage<UpdateCredentialRequest>);
396
+ static readonly runtime: typeof proto3;
397
+ static readonly typeName = "scalekit.v1.auth.webauthn.UpdateCredentialRequest";
398
+ static readonly fields: FieldList;
399
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateCredentialRequest;
400
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateCredentialRequest;
401
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateCredentialRequest;
402
+ static equals(a: UpdateCredentialRequest | PlainMessage<UpdateCredentialRequest> | undefined, b: UpdateCredentialRequest | PlainMessage<UpdateCredentialRequest> | undefined): boolean;
403
+ }
404
+ /**
405
+ * @generated from message scalekit.v1.auth.webauthn.UpdateCredentialResponse
406
+ */
407
+ export declare class UpdateCredentialResponse extends Message<UpdateCredentialResponse> {
408
+ /**
409
+ * @generated from field: scalekit.v1.auth.webauthn.WebAuthnCredential credential = 1;
410
+ */
411
+ credential?: WebAuthnCredential;
412
+ constructor(data?: PartialMessage<UpdateCredentialResponse>);
413
+ static readonly runtime: typeof proto3;
414
+ static readonly typeName = "scalekit.v1.auth.webauthn.UpdateCredentialResponse";
415
+ static readonly fields: FieldList;
416
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateCredentialResponse;
417
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateCredentialResponse;
418
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateCredentialResponse;
419
+ static equals(a: UpdateCredentialResponse | PlainMessage<UpdateCredentialResponse> | undefined, b: UpdateCredentialResponse | PlainMessage<UpdateCredentialResponse> | undefined): boolean;
420
+ }
421
+ /**
422
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential
423
+ */
424
+ export declare class WebAuthnCredential extends Message<WebAuthnCredential> {
425
+ /**
426
+ * @generated from field: string id = 1;
427
+ */
428
+ id: string;
429
+ /**
430
+ * @generated from field: string user_id = 2;
431
+ */
432
+ userId: string;
433
+ /**
434
+ * @generated from field: bytes credential_id = 3;
435
+ */
436
+ credentialId: Uint8Array;
437
+ /**
438
+ * @generated from field: string attestation_type = 4;
439
+ */
440
+ attestationType: string;
441
+ /**
442
+ * @generated from field: scalekit.v1.auth.webauthn.WebAuthnCredential.Authenticator authenticator = 5;
443
+ */
444
+ authenticator?: WebAuthnCredential_Authenticator;
445
+ /**
446
+ * @generated from field: repeated string transports = 6;
447
+ */
448
+ transports: string[];
449
+ /**
450
+ * @generated from field: scalekit.v1.auth.webauthn.WebAuthnCredential.AuthenticatorFlags authenticator_flags = 7;
451
+ */
452
+ authenticatorFlags?: WebAuthnCredential_AuthenticatorFlags;
453
+ /**
454
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
455
+ */
456
+ createdAt?: Timestamp;
457
+ /**
458
+ * @generated from field: google.protobuf.Timestamp updated_at = 9;
459
+ */
460
+ updatedAt?: Timestamp;
461
+ /**
462
+ * @generated from field: scalekit.v1.auth.webauthn.WebAuthnCredential.UserAgent user_agent = 10;
463
+ */
464
+ userAgent?: WebAuthnCredential_UserAgent;
465
+ /**
466
+ * @generated from field: scalekit.v1.auth.webauthn.WebAuthnCredential.ClientInfo client_info = 11;
467
+ */
468
+ clientInfo?: WebAuthnCredential_ClientInfo;
469
+ /**
470
+ * @generated from field: optional string display_name = 12;
471
+ */
472
+ displayName?: string;
473
+ constructor(data?: PartialMessage<WebAuthnCredential>);
474
+ static readonly runtime: typeof proto3;
475
+ static readonly typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential";
476
+ static readonly fields: FieldList;
477
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthnCredential;
478
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthnCredential;
479
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthnCredential;
480
+ static equals(a: WebAuthnCredential | PlainMessage<WebAuthnCredential> | undefined, b: WebAuthnCredential | PlainMessage<WebAuthnCredential> | undefined): boolean;
481
+ }
482
+ /**
483
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.AuthenticatorFlags
484
+ */
485
+ export declare class WebAuthnCredential_AuthenticatorFlags extends Message<WebAuthnCredential_AuthenticatorFlags> {
486
+ /**
487
+ * @generated from field: bool user_present = 1;
488
+ */
489
+ userPresent: boolean;
490
+ /**
491
+ * @generated from field: bool user_verified = 2;
492
+ */
493
+ userVerified: boolean;
494
+ /**
495
+ * @generated from field: bool backup_eligible = 3;
496
+ */
497
+ backupEligible: boolean;
498
+ /**
499
+ * @generated from field: bool backup_state = 4;
500
+ */
501
+ backupState: boolean;
502
+ constructor(data?: PartialMessage<WebAuthnCredential_AuthenticatorFlags>);
503
+ static readonly runtime: typeof proto3;
504
+ static readonly typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential.AuthenticatorFlags";
505
+ static readonly fields: FieldList;
506
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthnCredential_AuthenticatorFlags;
507
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthnCredential_AuthenticatorFlags;
508
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthnCredential_AuthenticatorFlags;
509
+ static equals(a: WebAuthnCredential_AuthenticatorFlags | PlainMessage<WebAuthnCredential_AuthenticatorFlags> | undefined, b: WebAuthnCredential_AuthenticatorFlags | PlainMessage<WebAuthnCredential_AuthenticatorFlags> | undefined): boolean;
510
+ }
511
+ /**
512
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.Authenticator
513
+ */
514
+ export declare class WebAuthnCredential_Authenticator extends Message<WebAuthnCredential_Authenticator> {
515
+ /**
516
+ * @generated from field: string aaguid = 1;
517
+ */
518
+ aaguid: string;
519
+ /**
520
+ * @generated from field: string name = 2;
521
+ */
522
+ name: string;
523
+ /**
524
+ * @generated from field: string attachment = 3;
525
+ */
526
+ attachment: string;
527
+ /**
528
+ * @generated from field: string icon_dark = 4;
529
+ */
530
+ iconDark: string;
531
+ /**
532
+ * @generated from field: string icon_light = 5;
533
+ */
534
+ iconLight: string;
535
+ constructor(data?: PartialMessage<WebAuthnCredential_Authenticator>);
536
+ static readonly runtime: typeof proto3;
537
+ static readonly typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential.Authenticator";
538
+ static readonly fields: FieldList;
539
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthnCredential_Authenticator;
540
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthnCredential_Authenticator;
541
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthnCredential_Authenticator;
542
+ static equals(a: WebAuthnCredential_Authenticator | PlainMessage<WebAuthnCredential_Authenticator> | undefined, b: WebAuthnCredential_Authenticator | PlainMessage<WebAuthnCredential_Authenticator> | undefined): boolean;
543
+ }
544
+ /**
545
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.UserAgent
546
+ */
547
+ export declare class WebAuthnCredential_UserAgent extends Message<WebAuthnCredential_UserAgent> {
548
+ /**
549
+ * @generated from field: string raw = 1;
550
+ */
551
+ raw: string;
552
+ /**
553
+ * @generated from field: string url = 2;
554
+ */
555
+ url: string;
556
+ /**
557
+ * @generated from field: string browser = 3;
558
+ */
559
+ browser: string;
560
+ /**
561
+ * @generated from field: string browser_version = 4;
562
+ */
563
+ browserVersion: string;
564
+ /**
565
+ * @generated from field: string os = 5;
566
+ */
567
+ os: string;
568
+ /**
569
+ * @generated from field: string os_version = 6;
570
+ */
571
+ osVersion: string;
572
+ /**
573
+ * @generated from field: string device_type = 7;
574
+ */
575
+ deviceType: string;
576
+ /**
577
+ * @generated from field: string device_model = 8;
578
+ */
579
+ deviceModel: string;
580
+ constructor(data?: PartialMessage<WebAuthnCredential_UserAgent>);
581
+ static readonly runtime: typeof proto3;
582
+ static readonly typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential.UserAgent";
583
+ static readonly fields: FieldList;
584
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthnCredential_UserAgent;
585
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthnCredential_UserAgent;
586
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthnCredential_UserAgent;
587
+ static equals(a: WebAuthnCredential_UserAgent | PlainMessage<WebAuthnCredential_UserAgent> | undefined, b: WebAuthnCredential_UserAgent | PlainMessage<WebAuthnCredential_UserAgent> | undefined): boolean;
588
+ }
589
+ /**
590
+ * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.ClientInfo
591
+ */
592
+ export declare class WebAuthnCredential_ClientInfo extends Message<WebAuthnCredential_ClientInfo> {
593
+ /**
594
+ * @generated from field: string ip = 1;
595
+ */
596
+ ip: string;
597
+ /**
598
+ * @generated from field: string region = 2;
599
+ */
600
+ region: string;
601
+ /**
602
+ * @generated from field: string region_subdivision = 3;
603
+ */
604
+ regionSubdivision: string;
605
+ /**
606
+ * @generated from field: string city = 4;
607
+ */
608
+ city: string;
609
+ constructor(data?: PartialMessage<WebAuthnCredential_ClientInfo>);
610
+ static readonly runtime: typeof proto3;
611
+ static readonly typeName = "scalekit.v1.auth.webauthn.WebAuthnCredential.ClientInfo";
612
+ static readonly fields: FieldList;
613
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthnCredential_ClientInfo;
614
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthnCredential_ClientInfo;
615
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthnCredential_ClientInfo;
616
+ static equals(a: WebAuthnCredential_ClientInfo | PlainMessage<WebAuthnCredential_ClientInfo> | undefined, b: WebAuthnCredential_ClientInfo | PlainMessage<WebAuthnCredential_ClientInfo> | undefined): boolean;
617
+ }
618
+ /**
619
+ * @generated from message scalekit.v1.auth.webauthn.GetRelatedOriginsRequest
620
+ */
621
+ export declare class GetRelatedOriginsRequest extends Message<GetRelatedOriginsRequest> {
622
+ constructor(data?: PartialMessage<GetRelatedOriginsRequest>);
623
+ static readonly runtime: typeof proto3;
624
+ static readonly typeName = "scalekit.v1.auth.webauthn.GetRelatedOriginsRequest";
625
+ static readonly fields: FieldList;
626
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRelatedOriginsRequest;
627
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRelatedOriginsRequest;
628
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRelatedOriginsRequest;
629
+ static equals(a: GetRelatedOriginsRequest | PlainMessage<GetRelatedOriginsRequest> | undefined, b: GetRelatedOriginsRequest | PlainMessage<GetRelatedOriginsRequest> | undefined): boolean;
630
+ }
631
+ /**
632
+ * @generated from message scalekit.v1.auth.webauthn.GetRelatedOriginsResponse
633
+ */
634
+ export declare class GetRelatedOriginsResponse extends Message<GetRelatedOriginsResponse> {
635
+ /**
636
+ * @generated from field: repeated string origins = 1;
637
+ */
638
+ origins: string[];
639
+ constructor(data?: PartialMessage<GetRelatedOriginsResponse>);
640
+ static readonly runtime: typeof proto3;
641
+ static readonly typeName = "scalekit.v1.auth.webauthn.GetRelatedOriginsResponse";
642
+ static readonly fields: FieldList;
643
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRelatedOriginsResponse;
644
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRelatedOriginsResponse;
645
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRelatedOriginsResponse;
646
+ static equals(a: GetRelatedOriginsResponse | PlainMessage<GetRelatedOriginsResponse> | undefined, b: GetRelatedOriginsResponse | PlainMessage<GetRelatedOriginsResponse> | undefined): boolean;
647
+ }