@scalekit-sdk/node 2.2.0-beta.0 → 2.2.0

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 (209) hide show
  1. package/.nvmrc +1 -1
  2. package/README.md +5 -5
  3. package/buf.gen.yaml +1 -5
  4. package/lib/auth.d.ts +9 -6
  5. package/lib/auth.js +4 -20
  6. package/lib/auth.js.map +1 -1
  7. package/lib/connect.d.ts +3 -3
  8. package/lib/connect.js +1 -2
  9. package/lib/connect.js.map +1 -1
  10. package/lib/connection.d.ts +2 -2
  11. package/lib/connection.js +4 -4
  12. package/lib/connection.js.map +1 -1
  13. package/lib/core.js +2 -2
  14. package/lib/core.js.map +1 -1
  15. package/lib/directory.d.ts +2 -2
  16. package/lib/directory.js +7 -7
  17. package/lib/directory.js.map +1 -1
  18. package/lib/domain.d.ts +6 -5
  19. package/lib/domain.js +4 -5
  20. package/lib/domain.js.map +1 -1
  21. package/lib/errors/base-exception.d.ts +1 -1
  22. package/lib/errors/base-exception.js +1 -1
  23. package/lib/errors/base-exception.js.map +1 -1
  24. package/lib/organization.d.ts +10 -9
  25. package/lib/organization.js +11 -9
  26. package/lib/organization.js.map +1 -1
  27. package/lib/passwordless.d.ts +2 -2
  28. package/lib/passwordless.js +8 -7
  29. package/lib/passwordless.js.map +1 -1
  30. package/lib/permission.d.ts +6 -5
  31. package/lib/permission.js +10 -11
  32. package/lib/permission.js.map +1 -1
  33. package/lib/pkg/grpc/buf/validate/validate_pb.d.ts +7 -0
  34. package/lib/pkg/grpc/buf/validate/validate_pb.js +25 -0
  35. package/lib/pkg/grpc/buf/validate/validate_pb.js.map +1 -0
  36. package/lib/pkg/grpc/google/api/annotations_pb.d.ts +7 -0
  37. package/lib/pkg/grpc/google/api/annotations_pb.js +25 -0
  38. package/lib/pkg/grpc/google/api/annotations_pb.js.map +1 -0
  39. package/lib/pkg/grpc/google/api/field_behavior_pb.d.ts +7 -0
  40. package/lib/pkg/grpc/google/api/field_behavior_pb.js +25 -0
  41. package/lib/pkg/grpc/google/api/field_behavior_pb.js.map +1 -0
  42. package/lib/pkg/grpc/google/api/visibility_pb.d.ts +7 -0
  43. package/lib/pkg/grpc/google/api/visibility_pb.js +25 -0
  44. package/lib/pkg/grpc/google/api/visibility_pb.js.map +1 -0
  45. package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.d.ts +7 -0
  46. package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js +25 -0
  47. package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js.map +1 -0
  48. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +48 -42
  49. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +27 -263
  50. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
  51. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +371 -325
  52. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +132 -835
  53. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
  54. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.d.ts +113 -87
  55. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js +45 -201
  56. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js.map +1 -1
  57. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.d.ts +262 -265
  58. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +92 -938
  59. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js.map +1 -1
  60. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +162 -157
  61. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +42 -313
  62. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  63. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +1488 -1459
  64. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +353 -2362
  65. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  66. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.d.ts +520 -483
  67. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +224 -1555
  68. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js.map +1 -1
  69. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +219 -191
  70. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +96 -553
  71. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
  72. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +76 -102
  73. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +37 -393
  74. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
  75. package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +36 -26
  76. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +20 -69
  77. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
  78. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +447 -400
  79. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +163 -1238
  80. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
  81. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.d.ts +622 -556
  82. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js +201 -1718
  83. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js.map +1 -1
  84. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +135 -132
  85. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +55 -518
  86. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
  87. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +445 -413
  88. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +142 -1490
  89. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  90. package/lib/role.d.ts +8 -7
  91. package/lib/role.js +14 -14
  92. package/lib/role.js.map +1 -1
  93. package/lib/scalekit.d.ts +0 -4
  94. package/lib/scalekit.js +0 -4
  95. package/lib/scalekit.js.map +1 -1
  96. package/lib/session.js +15 -24
  97. package/lib/session.js.map +1 -1
  98. package/lib/user.d.ts +6 -5
  99. package/lib/user.js +17 -20
  100. package/lib/user.js.map +1 -1
  101. package/lib/webauthn.js +6 -5
  102. package/lib/webauthn.js.map +1 -1
  103. package/package.json +6 -10
  104. package/reference.md +0 -671
  105. package/src/auth.ts +17 -17
  106. package/src/connect.ts +4 -5
  107. package/src/connection.ts +5 -5
  108. package/src/core.ts +2 -2
  109. package/src/directory.ts +8 -8
  110. package/src/domain.ts +9 -8
  111. package/src/errors/base-exception.ts +3 -2
  112. package/src/organization.ts +18 -15
  113. package/src/passwordless.ts +12 -11
  114. package/src/permission.ts +15 -15
  115. package/src/pkg/grpc/buf/validate/validate_pb.ts +28 -0
  116. package/src/pkg/grpc/google/api/annotations_pb.ts +28 -0
  117. package/src/pkg/grpc/google/api/field_behavior_pb.ts +28 -0
  118. package/src/pkg/grpc/google/api/visibility_pb.ts +28 -0
  119. package/src/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.ts +28 -0
  120. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +97 -182
  121. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +473 -850
  122. package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +153 -225
  123. package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +361 -830
  124. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +237 -358
  125. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +1625 -2826
  126. package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +687 -1413
  127. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +286 -542
  128. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +115 -328
  129. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +50 -80
  130. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +558 -1183
  131. package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +765 -1669
  132. package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +195 -447
  133. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +592 -1339
  134. package/src/role.ts +21 -19
  135. package/src/scalekit.ts +0 -9
  136. package/src/session.ts +20 -34
  137. package/src/user.ts +30 -26
  138. package/src/webauthn.ts +10 -9
  139. package/tests/utils/test-data.ts +17 -8
  140. package/lib/connected-accounts.d.ts +0 -96
  141. package/lib/connected-accounts.js +0 -186
  142. package/lib/connected-accounts.js.map +0 -1
  143. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.d.ts +0 -19
  144. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js +0 -27
  145. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js.map +0 -1
  146. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +0 -118
  147. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +0 -126
  148. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +0 -1
  149. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.d.ts +0 -37
  150. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js +0 -45
  151. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js.map +0 -1
  152. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.d.ts +0 -82
  153. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +0 -90
  154. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js.map +0 -1
  155. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.d.ts +0 -87
  156. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js +0 -95
  157. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js.map +0 -1
  158. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.d.ts +0 -718
  159. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js +0 -893
  160. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js.map +0 -1
  161. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +0 -172
  162. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +0 -180
  163. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +0 -1
  164. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.d.ts +0 -154
  165. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js +0 -162
  166. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js.map +0 -1
  167. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +0 -73
  168. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +0 -81
  169. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +0 -1
  170. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +0 -171
  171. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +0 -179
  172. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +0 -1
  173. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.d.ts +0 -250
  174. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js +0 -258
  175. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js.map +0 -1
  176. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.d.ts +0 -46
  177. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js +0 -54
  178. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js.map +0 -1
  179. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.d.ts +0 -75
  180. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js +0 -83
  181. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js.map +0 -1
  182. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.d.ts +0 -431
  183. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js +0 -627
  184. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js.map +0 -1
  185. package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +0 -173
  186. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +0 -181
  187. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +0 -1
  188. package/lib/tools.d.ts +0 -75
  189. package/lib/tools.js +0 -127
  190. package/lib/tools.js.map +0 -1
  191. package/src/connected-accounts.ts +0 -283
  192. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.ts +0 -26
  193. package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +0 -125
  194. package/src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts +0 -44
  195. package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +0 -89
  196. package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.ts +0 -94
  197. package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.ts +0 -1294
  198. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +0 -179
  199. package/src/pkg/grpc/scalekit/v1/directories/directories_connect.ts +0 -161
  200. package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +0 -80
  201. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +0 -178
  202. package/src/pkg/grpc/scalekit/v1/roles/roles_connect.ts +0 -257
  203. package/src/pkg/grpc/scalekit/v1/sessions/sessions_connect.ts +0 -53
  204. package/src/pkg/grpc/scalekit/v1/tools/tools_connect.ts +0 -82
  205. package/src/pkg/grpc/scalekit/v1/tools/tools_pb.ts +0 -847
  206. package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +0 -180
  207. package/src/tools.ts +0 -166
  208. package/tests/connected-accounts.test.ts +0 -434
  209. package/tests/tools.test.ts +0 -239
@@ -1,51 +1,49 @@
1
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file scalekit/v1/auth/webauthn.proto.
6
+ */
7
+ export declare const file_scalekit_v1_auth_webauthn: GenFile;
3
8
  /**
4
9
  * @generated from message scalekit.v1.auth.webauthn.BeginRegistrationRequest
5
10
  */
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
- }
11
+ export type BeginRegistrationRequest = Message<"scalekit.v1.auth.webauthn.BeginRegistrationRequest"> & {};
12
+ /**
13
+ * Describes the message scalekit.v1.auth.webauthn.BeginRegistrationRequest.
14
+ * Use `create(BeginRegistrationRequestSchema)` to create a new message.
15
+ */
16
+ export declare const BeginRegistrationRequestSchema: GenMessage<BeginRegistrationRequest>;
16
17
  /**
17
18
  * @generated from message scalekit.v1.auth.webauthn.BeginRegistrationResponse
18
19
  */
19
- export declare class BeginRegistrationResponse extends Message<BeginRegistrationResponse> {
20
+ export type BeginRegistrationResponse = Message<"scalekit.v1.auth.webauthn.BeginRegistrationResponse"> & {
20
21
  /**
21
22
  * @generated from field: google.protobuf.Struct options = 1;
22
23
  */
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
- }
24
+ options?: JsonObject;
25
+ };
26
+ /**
27
+ * Describes the message scalekit.v1.auth.webauthn.BeginRegistrationResponse.
28
+ * Use `create(BeginRegistrationResponseSchema)` to create a new message.
29
+ */
30
+ export declare const BeginRegistrationResponseSchema: GenMessage<BeginRegistrationResponse>;
33
31
  /**
34
32
  * @generated from message scalekit.v1.auth.webauthn.FinishRegistrationRequest
35
33
  */
36
- export declare class FinishRegistrationRequest extends Message<FinishRegistrationRequest> {
34
+ export type FinishRegistrationRequest = Message<"scalekit.v1.auth.webauthn.FinishRegistrationRequest"> & {
37
35
  /**
38
36
  * @generated from field: bytes credential_id = 1;
39
37
  */
40
- credentialId: Uint8Array<ArrayBuffer>;
38
+ credentialId: Uint8Array;
41
39
  /**
42
40
  * @generated from field: bytes attestation_object = 2;
43
41
  */
44
- attestationObject: Uint8Array<ArrayBuffer>;
42
+ attestationObject: Uint8Array;
45
43
  /**
46
44
  * @generated from field: bytes client_data_json = 3;
47
45
  */
48
- clientDataJson: Uint8Array<ArrayBuffer>;
46
+ clientDataJson: Uint8Array;
49
47
  /**
50
48
  * @generated from field: string type = 4;
51
49
  */
@@ -61,54 +59,45 @@ export declare class FinishRegistrationRequest extends Message<FinishRegistratio
61
59
  /**
62
60
  * @generated from field: google.protobuf.Struct client_extension_results = 7;
63
61
  */
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
- }
62
+ clientExtensionResults?: JsonObject;
63
+ };
64
+ /**
65
+ * Describes the message scalekit.v1.auth.webauthn.FinishRegistrationRequest.
66
+ * Use `create(FinishRegistrationRequestSchema)` to create a new message.
67
+ */
68
+ export declare const FinishRegistrationRequestSchema: GenMessage<FinishRegistrationRequest>;
74
69
  /**
75
70
  * @generated from message scalekit.v1.auth.webauthn.FinishRegistrationResponse
76
71
  */
77
- export declare class FinishRegistrationResponse extends Message<FinishRegistrationResponse> {
72
+ export type FinishRegistrationResponse = Message<"scalekit.v1.auth.webauthn.FinishRegistrationResponse"> & {
78
73
  /**
79
74
  * @generated from field: bool success = 1;
80
75
  */
81
76
  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
- }
77
+ };
78
+ /**
79
+ * Describes the message scalekit.v1.auth.webauthn.FinishRegistrationResponse.
80
+ * Use `create(FinishRegistrationResponseSchema)` to create a new message.
81
+ */
82
+ export declare const FinishRegistrationResponseSchema: GenMessage<FinishRegistrationResponse>;
91
83
  /**
92
84
  * @generated from message scalekit.v1.auth.webauthn.BeginAuthenticationRequest
93
85
  */
94
- export declare class BeginAuthenticationRequest extends Message<BeginAuthenticationRequest> {
86
+ export type BeginAuthenticationRequest = Message<"scalekit.v1.auth.webauthn.BeginAuthenticationRequest"> & {
95
87
  /**
96
88
  * @generated from field: optional string email = 1;
97
89
  */
98
90
  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
- }
91
+ };
92
+ /**
93
+ * Describes the message scalekit.v1.auth.webauthn.BeginAuthenticationRequest.
94
+ * Use `create(BeginAuthenticationRequestSchema)` to create a new message.
95
+ */
96
+ export declare const BeginAuthenticationRequestSchema: GenMessage<BeginAuthenticationRequest>;
108
97
  /**
109
98
  * @generated from message scalekit.v1.auth.webauthn.BeginAuthenticationResponse
110
99
  */
111
- export declare class BeginAuthenticationResponse extends Message<BeginAuthenticationResponse> {
100
+ export type BeginAuthenticationResponse = Message<"scalekit.v1.auth.webauthn.BeginAuthenticationResponse"> & {
112
101
  /**
113
102
  * @generated from field: string session_id = 1;
114
103
  */
@@ -116,20 +105,17 @@ export declare class BeginAuthenticationResponse extends Message<BeginAuthentica
116
105
  /**
117
106
  * @generated from field: google.protobuf.Struct options = 2;
118
107
  */
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
- }
108
+ options?: JsonObject;
109
+ };
110
+ /**
111
+ * Describes the message scalekit.v1.auth.webauthn.BeginAuthenticationResponse.
112
+ * Use `create(BeginAuthenticationResponseSchema)` to create a new message.
113
+ */
114
+ export declare const BeginAuthenticationResponseSchema: GenMessage<BeginAuthenticationResponse>;
129
115
  /**
130
116
  * @generated from message scalekit.v1.auth.webauthn.FinishAuthenticationRequest
131
117
  */
132
- export declare class FinishAuthenticationRequest extends Message<FinishAuthenticationRequest> {
118
+ export type FinishAuthenticationRequest = Message<"scalekit.v1.auth.webauthn.FinishAuthenticationRequest"> & {
133
119
  /**
134
120
  * @generated from field: string session_id = 1;
135
121
  */
@@ -137,11 +123,11 @@ export declare class FinishAuthenticationRequest extends Message<FinishAuthentic
137
123
  /**
138
124
  * @generated from field: bytes credential_id = 2;
139
125
  */
140
- credentialId: Uint8Array<ArrayBuffer>;
126
+ credentialId: Uint8Array;
141
127
  /**
142
128
  * @generated from field: google.protobuf.Struct client_extension_results = 3;
143
129
  */
144
- clientExtensionResults?: Struct;
130
+ clientExtensionResults?: JsonObject;
145
131
  /**
146
132
  * @generated from field: string type = 4;
147
133
  */
@@ -154,48 +140,42 @@ export declare class FinishAuthenticationRequest extends Message<FinishAuthentic
154
140
  * @generated from field: string authenticator_attachment = 6;
155
141
  */
156
142
  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
- }
143
+ };
144
+ /**
145
+ * Describes the message scalekit.v1.auth.webauthn.FinishAuthenticationRequest.
146
+ * Use `create(FinishAuthenticationRequestSchema)` to create a new message.
147
+ */
148
+ export declare const FinishAuthenticationRequestSchema: GenMessage<FinishAuthenticationRequest>;
166
149
  /**
167
150
  * @generated from message scalekit.v1.auth.webauthn.AuthenticatorAssertionResponse
168
151
  */
169
- export declare class AuthenticatorAssertionResponse extends Message<AuthenticatorAssertionResponse> {
152
+ export type AuthenticatorAssertionResponse = Message<"scalekit.v1.auth.webauthn.AuthenticatorAssertionResponse"> & {
170
153
  /**
171
154
  * @generated from field: bytes authenticator_data = 1;
172
155
  */
173
- authenticatorData: Uint8Array<ArrayBuffer>;
156
+ authenticatorData: Uint8Array;
174
157
  /**
175
158
  * @generated from field: bytes client_data_json = 2;
176
159
  */
177
- clientDataJson: Uint8Array<ArrayBuffer>;
160
+ clientDataJson: Uint8Array;
178
161
  /**
179
162
  * @generated from field: bytes signature = 3;
180
163
  */
181
- signature: Uint8Array<ArrayBuffer>;
164
+ signature: Uint8Array;
182
165
  /**
183
166
  * @generated from field: bytes user_handle = 4;
184
167
  */
185
- userHandle: Uint8Array<ArrayBuffer>;
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
- }
168
+ userHandle: Uint8Array;
169
+ };
170
+ /**
171
+ * Describes the message scalekit.v1.auth.webauthn.AuthenticatorAssertionResponse.
172
+ * Use `create(AuthenticatorAssertionResponseSchema)` to create a new message.
173
+ */
174
+ export declare const AuthenticatorAssertionResponseSchema: GenMessage<AuthenticatorAssertionResponse>;
195
175
  /**
196
176
  * @generated from message scalekit.v1.auth.webauthn.FinishAuthenticationResponse
197
177
  */
198
- export declare class FinishAuthenticationResponse extends Message<FinishAuthenticationResponse> {
178
+ export type FinishAuthenticationResponse = Message<"scalekit.v1.auth.webauthn.FinishAuthenticationResponse"> & {
199
179
  /**
200
180
  * @generated from field: bool success = 1;
201
181
  */
@@ -208,19 +188,16 @@ export declare class FinishAuthenticationResponse extends Message<FinishAuthenti
208
188
  * @generated from field: string session_token = 3;
209
189
  */
210
190
  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
- }
191
+ };
192
+ /**
193
+ * Describes the message scalekit.v1.auth.webauthn.FinishAuthenticationResponse.
194
+ * Use `create(FinishAuthenticationResponseSchema)` to create a new message.
195
+ */
196
+ export declare const FinishAuthenticationResponseSchema: GenMessage<FinishAuthenticationResponse>;
220
197
  /**
221
198
  * @generated from message scalekit.v1.auth.webauthn.WebAuthnConfiguration
222
199
  */
223
- export declare class WebAuthnConfiguration extends Message<WebAuthnConfiguration> {
200
+ export type WebAuthnConfiguration = Message<"scalekit.v1.auth.webauthn.WebAuthnConfiguration"> & {
224
201
  /**
225
202
  * @generated from field: string rp_id = 1;
226
203
  */
@@ -249,36 +226,30 @@ export declare class WebAuthnConfiguration extends Message<WebAuthnConfiguration
249
226
  * @generated from field: repeated string allowed_transports = 7;
250
227
  */
251
228
  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
- }
229
+ };
230
+ /**
231
+ * Describes the message scalekit.v1.auth.webauthn.WebAuthnConfiguration.
232
+ * Use `create(WebAuthnConfigurationSchema)` to create a new message.
233
+ */
234
+ export declare const WebAuthnConfigurationSchema: GenMessage<WebAuthnConfiguration>;
261
235
  /**
262
236
  * @generated from message scalekit.v1.auth.webauthn.ListCredentialsRequest
263
237
  */
264
- export declare class ListCredentialsRequest extends Message<ListCredentialsRequest> {
238
+ export type ListCredentialsRequest = Message<"scalekit.v1.auth.webauthn.ListCredentialsRequest"> & {
265
239
  /**
266
240
  * @generated from field: string user_id = 1;
267
241
  */
268
242
  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
- }
243
+ };
244
+ /**
245
+ * Describes the message scalekit.v1.auth.webauthn.ListCredentialsRequest.
246
+ * Use `create(ListCredentialsRequestSchema)` to create a new message.
247
+ */
248
+ export declare const ListCredentialsRequestSchema: GenMessage<ListCredentialsRequest>;
278
249
  /**
279
250
  * @generated from message scalekit.v1.auth.webauthn.ListCredentialsResponse
280
251
  */
281
- export declare class ListCredentialsResponse extends Message<ListCredentialsResponse> {
252
+ export type ListCredentialsResponse = Message<"scalekit.v1.auth.webauthn.ListCredentialsResponse"> & {
282
253
  /**
283
254
  * @generated from field: repeated scalekit.v1.auth.webauthn.WebAuthnCredential credentials = 1;
284
255
  */
@@ -287,36 +258,30 @@ export declare class ListCredentialsResponse extends Message<ListCredentialsResp
287
258
  * @generated from field: scalekit.v1.auth.webauthn.AllAcceptedCredentialsOptions all_accepted_credentials_options = 2;
288
259
  */
289
260
  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
- }
261
+ };
262
+ /**
263
+ * Describes the message scalekit.v1.auth.webauthn.ListCredentialsResponse.
264
+ * Use `create(ListCredentialsResponseSchema)` to create a new message.
265
+ */
266
+ export declare const ListCredentialsResponseSchema: GenMessage<ListCredentialsResponse>;
299
267
  /**
300
268
  * @generated from message scalekit.v1.auth.webauthn.DeleteCredentialRequest
301
269
  */
302
- export declare class DeleteCredentialRequest extends Message<DeleteCredentialRequest> {
270
+ export type DeleteCredentialRequest = Message<"scalekit.v1.auth.webauthn.DeleteCredentialRequest"> & {
303
271
  /**
304
272
  * @generated from field: string credential_id = 1;
305
273
  */
306
274
  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
- }
275
+ };
276
+ /**
277
+ * Describes the message scalekit.v1.auth.webauthn.DeleteCredentialRequest.
278
+ * Use `create(DeleteCredentialRequestSchema)` to create a new message.
279
+ */
280
+ export declare const DeleteCredentialRequestSchema: GenMessage<DeleteCredentialRequest>;
316
281
  /**
317
282
  * @generated from message scalekit.v1.auth.webauthn.DeleteCredentialResponse
318
283
  */
319
- export declare class DeleteCredentialResponse extends Message<DeleteCredentialResponse> {
284
+ export type DeleteCredentialResponse = Message<"scalekit.v1.auth.webauthn.DeleteCredentialResponse"> & {
320
285
  /**
321
286
  * @generated from field: bool success = 1;
322
287
  */
@@ -325,19 +290,16 @@ export declare class DeleteCredentialResponse extends Message<DeleteCredentialRe
325
290
  * @generated from field: scalekit.v1.auth.webauthn.UnknownCredentialOptions unknown_credential_options = 2;
326
291
  */
327
292
  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
- }
293
+ };
294
+ /**
295
+ * Describes the message scalekit.v1.auth.webauthn.DeleteCredentialResponse.
296
+ * Use `create(DeleteCredentialResponseSchema)` to create a new message.
297
+ */
298
+ export declare const DeleteCredentialResponseSchema: GenMessage<DeleteCredentialResponse>;
337
299
  /**
338
300
  * @generated from message scalekit.v1.auth.webauthn.UnknownCredentialOptions
339
301
  */
340
- export declare class UnknownCredentialOptions extends Message<UnknownCredentialOptions> {
302
+ export type UnknownCredentialOptions = Message<"scalekit.v1.auth.webauthn.UnknownCredentialOptions"> & {
341
303
  /**
342
304
  * @generated from field: string rp_id = 1;
343
305
  */
@@ -346,19 +308,16 @@ export declare class UnknownCredentialOptions extends Message<UnknownCredentialO
346
308
  * @generated from field: string credential_id = 2;
347
309
  */
348
310
  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
- }
311
+ };
312
+ /**
313
+ * Describes the message scalekit.v1.auth.webauthn.UnknownCredentialOptions.
314
+ * Use `create(UnknownCredentialOptionsSchema)` to create a new message.
315
+ */
316
+ export declare const UnknownCredentialOptionsSchema: GenMessage<UnknownCredentialOptions>;
358
317
  /**
359
318
  * @generated from message scalekit.v1.auth.webauthn.AllAcceptedCredentialsOptions
360
319
  */
361
- export declare class AllAcceptedCredentialsOptions extends Message<AllAcceptedCredentialsOptions> {
320
+ export type AllAcceptedCredentialsOptions = Message<"scalekit.v1.auth.webauthn.AllAcceptedCredentialsOptions"> & {
362
321
  /**
363
322
  * @generated from field: string rp_id = 1;
364
323
  */
@@ -371,19 +330,16 @@ export declare class AllAcceptedCredentialsOptions extends Message<AllAcceptedCr
371
330
  * @generated from field: repeated string all_accepted_credential_ids = 3;
372
331
  */
373
332
  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
- }
333
+ };
334
+ /**
335
+ * Describes the message scalekit.v1.auth.webauthn.AllAcceptedCredentialsOptions.
336
+ * Use `create(AllAcceptedCredentialsOptionsSchema)` to create a new message.
337
+ */
338
+ export declare const AllAcceptedCredentialsOptionsSchema: GenMessage<AllAcceptedCredentialsOptions>;
383
339
  /**
384
340
  * @generated from message scalekit.v1.auth.webauthn.UpdateCredentialRequest
385
341
  */
386
- export declare class UpdateCredentialRequest extends Message<UpdateCredentialRequest> {
342
+ export type UpdateCredentialRequest = Message<"scalekit.v1.auth.webauthn.UpdateCredentialRequest"> & {
387
343
  /**
388
344
  * @generated from field: string credential_id = 1;
389
345
  */
@@ -392,36 +348,30 @@ export declare class UpdateCredentialRequest extends Message<UpdateCredentialReq
392
348
  * @generated from field: string display_name = 2;
393
349
  */
394
350
  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
- }
351
+ };
352
+ /**
353
+ * Describes the message scalekit.v1.auth.webauthn.UpdateCredentialRequest.
354
+ * Use `create(UpdateCredentialRequestSchema)` to create a new message.
355
+ */
356
+ export declare const UpdateCredentialRequestSchema: GenMessage<UpdateCredentialRequest>;
404
357
  /**
405
358
  * @generated from message scalekit.v1.auth.webauthn.UpdateCredentialResponse
406
359
  */
407
- export declare class UpdateCredentialResponse extends Message<UpdateCredentialResponse> {
360
+ export type UpdateCredentialResponse = Message<"scalekit.v1.auth.webauthn.UpdateCredentialResponse"> & {
408
361
  /**
409
362
  * @generated from field: scalekit.v1.auth.webauthn.WebAuthnCredential credential = 1;
410
363
  */
411
364
  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
- }
365
+ };
366
+ /**
367
+ * Describes the message scalekit.v1.auth.webauthn.UpdateCredentialResponse.
368
+ * Use `create(UpdateCredentialResponseSchema)` to create a new message.
369
+ */
370
+ export declare const UpdateCredentialResponseSchema: GenMessage<UpdateCredentialResponse>;
421
371
  /**
422
372
  * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential
423
373
  */
424
- export declare class WebAuthnCredential extends Message<WebAuthnCredential> {
374
+ export type WebAuthnCredential = Message<"scalekit.v1.auth.webauthn.WebAuthnCredential"> & {
425
375
  /**
426
376
  * @generated from field: string id = 1;
427
377
  */
@@ -433,7 +383,7 @@ export declare class WebAuthnCredential extends Message<WebAuthnCredential> {
433
383
  /**
434
384
  * @generated from field: bytes credential_id = 3;
435
385
  */
436
- credentialId: Uint8Array<ArrayBuffer>;
386
+ credentialId: Uint8Array;
437
387
  /**
438
388
  * @generated from field: string attestation_type = 4;
439
389
  */
@@ -470,19 +420,16 @@ export declare class WebAuthnCredential extends Message<WebAuthnCredential> {
470
420
  * @generated from field: optional string display_name = 12;
471
421
  */
472
422
  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
- }
423
+ };
424
+ /**
425
+ * Describes the message scalekit.v1.auth.webauthn.WebAuthnCredential.
426
+ * Use `create(WebAuthnCredentialSchema)` to create a new message.
427
+ */
428
+ export declare const WebAuthnCredentialSchema: GenMessage<WebAuthnCredential>;
482
429
  /**
483
430
  * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.AuthenticatorFlags
484
431
  */
485
- export declare class WebAuthnCredential_AuthenticatorFlags extends Message<WebAuthnCredential_AuthenticatorFlags> {
432
+ export type WebAuthnCredential_AuthenticatorFlags = Message<"scalekit.v1.auth.webauthn.WebAuthnCredential.AuthenticatorFlags"> & {
486
433
  /**
487
434
  * @generated from field: bool user_present = 1;
488
435
  */
@@ -499,19 +446,16 @@ export declare class WebAuthnCredential_AuthenticatorFlags extends Message<WebAu
499
446
  * @generated from field: bool backup_state = 4;
500
447
  */
501
448
  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
- }
449
+ };
450
+ /**
451
+ * Describes the message scalekit.v1.auth.webauthn.WebAuthnCredential.AuthenticatorFlags.
452
+ * Use `create(WebAuthnCredential_AuthenticatorFlagsSchema)` to create a new message.
453
+ */
454
+ export declare const WebAuthnCredential_AuthenticatorFlagsSchema: GenMessage<WebAuthnCredential_AuthenticatorFlags>;
511
455
  /**
512
456
  * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.Authenticator
513
457
  */
514
- export declare class WebAuthnCredential_Authenticator extends Message<WebAuthnCredential_Authenticator> {
458
+ export type WebAuthnCredential_Authenticator = Message<"scalekit.v1.auth.webauthn.WebAuthnCredential.Authenticator"> & {
515
459
  /**
516
460
  * @generated from field: string aaguid = 1;
517
461
  */
@@ -532,19 +476,16 @@ export declare class WebAuthnCredential_Authenticator extends Message<WebAuthnCr
532
476
  * @generated from field: string icon_light = 5;
533
477
  */
534
478
  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
- }
479
+ };
480
+ /**
481
+ * Describes the message scalekit.v1.auth.webauthn.WebAuthnCredential.Authenticator.
482
+ * Use `create(WebAuthnCredential_AuthenticatorSchema)` to create a new message.
483
+ */
484
+ export declare const WebAuthnCredential_AuthenticatorSchema: GenMessage<WebAuthnCredential_Authenticator>;
544
485
  /**
545
486
  * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.UserAgent
546
487
  */
547
- export declare class WebAuthnCredential_UserAgent extends Message<WebAuthnCredential_UserAgent> {
488
+ export type WebAuthnCredential_UserAgent = Message<"scalekit.v1.auth.webauthn.WebAuthnCredential.UserAgent"> & {
548
489
  /**
549
490
  * @generated from field: string raw = 1;
550
491
  */
@@ -577,19 +518,16 @@ export declare class WebAuthnCredential_UserAgent extends Message<WebAuthnCreden
577
518
  * @generated from field: string device_model = 8;
578
519
  */
579
520
  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
- }
521
+ };
522
+ /**
523
+ * Describes the message scalekit.v1.auth.webauthn.WebAuthnCredential.UserAgent.
524
+ * Use `create(WebAuthnCredential_UserAgentSchema)` to create a new message.
525
+ */
526
+ export declare const WebAuthnCredential_UserAgentSchema: GenMessage<WebAuthnCredential_UserAgent>;
589
527
  /**
590
528
  * @generated from message scalekit.v1.auth.webauthn.WebAuthnCredential.ClientInfo
591
529
  */
592
- export declare class WebAuthnCredential_ClientInfo extends Message<WebAuthnCredential_ClientInfo> {
530
+ export type WebAuthnCredential_ClientInfo = Message<"scalekit.v1.auth.webauthn.WebAuthnCredential.ClientInfo"> & {
593
531
  /**
594
532
  * @generated from field: string ip = 1;
595
533
  */
@@ -606,42 +544,101 @@ export declare class WebAuthnCredential_ClientInfo extends Message<WebAuthnCrede
606
544
  * @generated from field: string city = 4;
607
545
  */
608
546
  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
- }
547
+ };
548
+ /**
549
+ * Describes the message scalekit.v1.auth.webauthn.WebAuthnCredential.ClientInfo.
550
+ * Use `create(WebAuthnCredential_ClientInfoSchema)` to create a new message.
551
+ */
552
+ export declare const WebAuthnCredential_ClientInfoSchema: GenMessage<WebAuthnCredential_ClientInfo>;
618
553
  /**
619
554
  * @generated from message scalekit.v1.auth.webauthn.GetRelatedOriginsRequest
620
555
  */
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
- }
556
+ export type GetRelatedOriginsRequest = Message<"scalekit.v1.auth.webauthn.GetRelatedOriginsRequest"> & {};
557
+ /**
558
+ * Describes the message scalekit.v1.auth.webauthn.GetRelatedOriginsRequest.
559
+ * Use `create(GetRelatedOriginsRequestSchema)` to create a new message.
560
+ */
561
+ export declare const GetRelatedOriginsRequestSchema: GenMessage<GetRelatedOriginsRequest>;
631
562
  /**
632
563
  * @generated from message scalekit.v1.auth.webauthn.GetRelatedOriginsResponse
633
564
  */
634
- export declare class GetRelatedOriginsResponse extends Message<GetRelatedOriginsResponse> {
565
+ export type GetRelatedOriginsResponse = Message<"scalekit.v1.auth.webauthn.GetRelatedOriginsResponse"> & {
635
566
  /**
636
567
  * @generated from field: repeated string origins = 1;
637
568
  */
638
569
  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
- }
570
+ };
571
+ /**
572
+ * Describes the message scalekit.v1.auth.webauthn.GetRelatedOriginsResponse.
573
+ * Use `create(GetRelatedOriginsResponseSchema)` to create a new message.
574
+ */
575
+ export declare const GetRelatedOriginsResponseSchema: GenMessage<GetRelatedOriginsResponse>;
576
+ /**
577
+ * @generated from service scalekit.v1.auth.webauthn.WebAuthnService
578
+ */
579
+ export declare const WebAuthnService: GenService<{
580
+ /**
581
+ * @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.BeginRegistration
582
+ */
583
+ beginRegistration: {
584
+ methodKind: "unary";
585
+ input: typeof BeginRegistrationRequestSchema;
586
+ output: typeof BeginRegistrationResponseSchema;
587
+ };
588
+ /**
589
+ * @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.FinishRegistration
590
+ */
591
+ finishRegistration: {
592
+ methodKind: "unary";
593
+ input: typeof FinishRegistrationRequestSchema;
594
+ output: typeof FinishRegistrationResponseSchema;
595
+ };
596
+ /**
597
+ * @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.BeginAuthentication
598
+ */
599
+ beginAuthentication: {
600
+ methodKind: "unary";
601
+ input: typeof BeginAuthenticationRequestSchema;
602
+ output: typeof BeginAuthenticationResponseSchema;
603
+ };
604
+ /**
605
+ * @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.FinishAuthentication
606
+ */
607
+ finishAuthentication: {
608
+ methodKind: "unary";
609
+ input: typeof FinishAuthenticationRequestSchema;
610
+ output: typeof FinishAuthenticationResponseSchema;
611
+ };
612
+ /**
613
+ * @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.ListCredentials
614
+ */
615
+ listCredentials: {
616
+ methodKind: "unary";
617
+ input: typeof ListCredentialsRequestSchema;
618
+ output: typeof ListCredentialsResponseSchema;
619
+ };
620
+ /**
621
+ * @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.DeleteCredential
622
+ */
623
+ deleteCredential: {
624
+ methodKind: "unary";
625
+ input: typeof DeleteCredentialRequestSchema;
626
+ output: typeof DeleteCredentialResponseSchema;
627
+ };
628
+ /**
629
+ * @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.UpdateCredential
630
+ */
631
+ updateCredential: {
632
+ methodKind: "unary";
633
+ input: typeof UpdateCredentialRequestSchema;
634
+ output: typeof UpdateCredentialResponseSchema;
635
+ };
636
+ /**
637
+ * @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.GetRelatedOrigins
638
+ */
639
+ getRelatedOrigins: {
640
+ methodKind: "unary";
641
+ input: typeof GetRelatedOriginsRequestSchema;
642
+ output: typeof GetRelatedOriginsResponseSchema;
643
+ };
644
+ }>;