@dynamic-labs/embedded-wallet 3.0.0-alpha.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 (53) hide show
  1. package/CHANGELOG.md +3494 -0
  2. package/LICENSE +21 -0
  3. package/README.md +7 -0
  4. package/_virtual/_tslib.cjs +36 -0
  5. package/_virtual/_tslib.js +32 -0
  6. package/package.json +39 -0
  7. package/src/index.cjs +23 -0
  8. package/src/index.d.ts +7 -0
  9. package/src/index.js +9 -0
  10. package/src/lib/AuthenticatorHandler/TurnkeyAuthenticatorRecoveryHandler.cjs +226 -0
  11. package/src/lib/AuthenticatorHandler/TurnkeyAuthenticatorRecoveryHandler.d.ts +1640 -0
  12. package/src/lib/AuthenticatorHandler/TurnkeyAuthenticatorRecoveryHandler.js +222 -0
  13. package/src/lib/AuthenticatorHandler/index.d.ts +1 -0
  14. package/src/lib/ExportHandler/ExportHandler.cjs +141 -0
  15. package/src/lib/ExportHandler/ExportHandler.d.ts +1630 -0
  16. package/src/lib/ExportHandler/ExportHandler.js +137 -0
  17. package/src/lib/ExportHandler/index.d.ts +1 -0
  18. package/src/lib/TurnkeyWalletConnectorBase/TurnkeyWalletConnectorBase.cjs +217 -0
  19. package/src/lib/TurnkeyWalletConnectorBase/TurnkeyWalletConnectorBase.d.ts +68 -0
  20. package/src/lib/TurnkeyWalletConnectorBase/TurnkeyWalletConnectorBase.js +213 -0
  21. package/src/lib/TurnkeyWalletConnectorBase/index.d.ts +1 -0
  22. package/src/lib/constants.cjs +8 -0
  23. package/src/lib/constants.d.ts +1 -0
  24. package/src/lib/constants.js +4 -0
  25. package/src/lib/utils/PasskeyService/PasskeyService.cjs +41 -0
  26. package/src/lib/utils/PasskeyService/PasskeyService.d.ts +23 -0
  27. package/src/lib/utils/PasskeyService/PasskeyService.js +37 -0
  28. package/src/lib/utils/PasskeyService/index.d.ts +2 -0
  29. package/src/lib/utils/PasskeyService/types.d.ts +6 -0
  30. package/src/lib/utils/PasskeyService/utils/createTurnkeyPasskeyService/createTurnkeyPasskeyService.cjs +14 -0
  31. package/src/lib/utils/PasskeyService/utils/createTurnkeyPasskeyService/createTurnkeyPasskeyService.d.ts +2 -0
  32. package/src/lib/utils/PasskeyService/utils/createTurnkeyPasskeyService/createTurnkeyPasskeyService.js +10 -0
  33. package/src/lib/utils/PasskeyService/utils/createTurnkeyPasskeyService/index.d.ts +1 -0
  34. package/src/lib/utils/base64UrlEncode/base64UrlEncode.cjs +12 -0
  35. package/src/lib/utils/base64UrlEncode/base64UrlEncode.d.ts +1 -0
  36. package/src/lib/utils/base64UrlEncode/base64UrlEncode.js +8 -0
  37. package/src/lib/utils/base64UrlEncode/index.d.ts +1 -0
  38. package/src/lib/utils/convertAttestationTransports/convertAttestationTransports.cjs +17 -0
  39. package/src/lib/utils/convertAttestationTransports/convertAttestationTransports.d.ts +4 -0
  40. package/src/lib/utils/convertAttestationTransports/convertAttestationTransports.js +13 -0
  41. package/src/lib/utils/convertAttestationTransports/index.d.ts +1 -0
  42. package/src/lib/utils/findTurnkeyVerifiedCredential/findTurnkeyVerifiedCredential.cjs +8 -0
  43. package/src/lib/utils/findTurnkeyVerifiedCredential/findTurnkeyVerifiedCredential.d.ts +2 -0
  44. package/src/lib/utils/findTurnkeyVerifiedCredential/findTurnkeyVerifiedCredential.js +4 -0
  45. package/src/lib/utils/findTurnkeyVerifiedCredential/index.d.ts +1 -0
  46. package/src/lib/utils/generateRandomBuffer/generateRandomBuffer.cjs +12 -0
  47. package/src/lib/utils/generateRandomBuffer/generateRandomBuffer.d.ts +1 -0
  48. package/src/lib/utils/generateRandomBuffer/generateRandomBuffer.js +8 -0
  49. package/src/lib/utils/generateRandomBuffer/index.d.ts +1 -0
  50. package/src/lib/utils/index.d.ts +4 -0
  51. package/src/types.cjs +17 -0
  52. package/src/types.d.ts +8 -0
  53. package/src/types.js +13 -0
@@ -0,0 +1,1630 @@
1
+ import { ApiKeyStamper } from '@turnkey/api-key-stamper';
2
+ export declare class ExportHandler {
3
+ static apiKeyStamper: ApiKeyStamper | undefined;
4
+ private __iframeStamper;
5
+ private __publicKey;
6
+ private __turnkeyClient;
7
+ get publicKey(): string | null | undefined;
8
+ clear(): void;
9
+ initExport(iframeContainer: HTMLElement, iframeElementId: string): Promise<string | null>;
10
+ verifyExportWallet({ exportBundle, organizationId, }: {
11
+ exportBundle: string;
12
+ organizationId: string;
13
+ }): Promise<boolean>;
14
+ verifyExportPrivateKey({ exportBundle, organizationId, chain, }: {
15
+ exportBundle: string;
16
+ organizationId: string;
17
+ chain?: string;
18
+ }): Promise<boolean>;
19
+ exportPrivateKey({ privateKeyId, organizationId, }: {
20
+ privateKeyId: string;
21
+ organizationId: string;
22
+ }): Promise<{
23
+ id: string;
24
+ organizationId: string;
25
+ status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
26
+ type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH";
27
+ intent: {
28
+ createOrganizationIntent: {
29
+ organizationName: string;
30
+ rootEmail: string;
31
+ rootAuthenticator: {
32
+ authenticatorName: string;
33
+ userId: string;
34
+ attestation: {
35
+ id: string;
36
+ type: "public-key";
37
+ rawId: string;
38
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
39
+ response: {
40
+ clientDataJson: string;
41
+ attestationObject: string;
42
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[] | undefined;
43
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
44
+ };
45
+ clientExtensionResults: {
46
+ appid?: boolean | undefined;
47
+ appidExclude?: boolean | undefined;
48
+ credProps?: {
49
+ rk: boolean;
50
+ } | undefined;
51
+ };
52
+ };
53
+ challenge: string;
54
+ };
55
+ rootUserId?: string | undefined;
56
+ };
57
+ createAuthenticatorsIntent?: {
58
+ authenticators: {
59
+ authenticatorName: string;
60
+ userId: string;
61
+ attestation: {
62
+ id: string;
63
+ type: "public-key";
64
+ rawId: string;
65
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
66
+ response: {
67
+ clientDataJson: string;
68
+ attestationObject: string;
69
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[] | undefined;
70
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
71
+ };
72
+ clientExtensionResults: {
73
+ appid?: boolean | undefined;
74
+ appidExclude?: boolean | undefined;
75
+ credProps?: {
76
+ rk: boolean;
77
+ } | undefined;
78
+ };
79
+ };
80
+ challenge: string;
81
+ }[];
82
+ userId: string;
83
+ } | undefined;
84
+ createUsersIntent?: {
85
+ users: {
86
+ userName: string;
87
+ userEmail?: string | undefined;
88
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
89
+ apiKeys: {
90
+ apiKeyName: string;
91
+ publicKey: string;
92
+ expirationSeconds?: string | undefined;
93
+ }[];
94
+ authenticators: {
95
+ authenticatorName: string;
96
+ userId: string;
97
+ attestation: {
98
+ id: string;
99
+ type: "public-key";
100
+ rawId: string;
101
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
102
+ response: {
103
+ clientDataJson: string;
104
+ attestationObject: string;
105
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[] | undefined;
106
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
107
+ };
108
+ clientExtensionResults: {
109
+ appid?: boolean | undefined;
110
+ appidExclude?: boolean | undefined;
111
+ credProps?: {
112
+ rk: boolean;
113
+ } | undefined;
114
+ };
115
+ };
116
+ challenge: string;
117
+ }[];
118
+ userTags: string[];
119
+ }[];
120
+ } | undefined;
121
+ createPrivateKeysIntent?: {
122
+ privateKeys: {
123
+ privateKeyName: string;
124
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
125
+ privateKeyTags: string[];
126
+ addressFormats: ("ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS")[];
127
+ }[];
128
+ } | undefined;
129
+ signRawPayloadIntent?: {
130
+ privateKeyId: string;
131
+ payload: string;
132
+ encoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
133
+ hashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
134
+ } | undefined;
135
+ createInvitationsIntent?: {
136
+ invitations: {
137
+ receiverUserName: string;
138
+ receiverUserEmail: string;
139
+ receiverUserTags: string[];
140
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
141
+ senderUserId: string;
142
+ }[];
143
+ } | undefined;
144
+ acceptInvitationIntent?: {
145
+ invitationId: string;
146
+ userId: string;
147
+ authenticator: {
148
+ authenticatorName: string;
149
+ userId: string;
150
+ attestation: {
151
+ id: string;
152
+ type: "public-key";
153
+ rawId: string;
154
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
155
+ response: {
156
+ clientDataJson: string;
157
+ attestationObject: string;
158
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[] | undefined;
159
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
160
+ };
161
+ clientExtensionResults: {
162
+ appid?: boolean | undefined;
163
+ appidExclude?: boolean | undefined;
164
+ credProps?: {
165
+ rk: boolean;
166
+ } | undefined;
167
+ };
168
+ };
169
+ challenge: string;
170
+ };
171
+ } | undefined;
172
+ createPolicyIntent?: {
173
+ policyName: string;
174
+ selectors: {
175
+ subject?: string | undefined;
176
+ operator?: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL" | undefined;
177
+ target?: string | undefined;
178
+ }[];
179
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
180
+ notes?: string | undefined;
181
+ } | undefined;
182
+ disablePrivateKeyIntent?: {
183
+ privateKeyId: string;
184
+ } | undefined;
185
+ deleteUsersIntent?: {
186
+ userIds: string[];
187
+ } | undefined;
188
+ deleteAuthenticatorsIntent?: {
189
+ userId: string;
190
+ authenticatorIds: string[];
191
+ } | undefined;
192
+ deleteInvitationIntent?: {
193
+ invitationId: string;
194
+ } | undefined;
195
+ deleteOrganizationIntent?: {
196
+ organizationId: string;
197
+ } | undefined;
198
+ deletePolicyIntent?: {
199
+ policyId: string;
200
+ } | undefined;
201
+ createUserTagIntent?: {
202
+ userTagName: string;
203
+ userIds: string[];
204
+ } | undefined;
205
+ deleteUserTagsIntent?: {
206
+ userTagIds: string[];
207
+ } | undefined;
208
+ signTransactionIntent?: {
209
+ privateKeyId: string;
210
+ unsignedTransaction: string;
211
+ type: "TRANSACTION_TYPE_ETHEREUM";
212
+ } | undefined;
213
+ createApiKeysIntent?: {
214
+ apiKeys: {
215
+ apiKeyName: string;
216
+ publicKey: string;
217
+ expirationSeconds?: string | undefined;
218
+ }[];
219
+ userId: string;
220
+ } | undefined;
221
+ deleteApiKeysIntent?: {
222
+ userId: string;
223
+ apiKeyIds: string[];
224
+ } | undefined;
225
+ approveActivityIntent?: {
226
+ fingerprint: string;
227
+ } | undefined;
228
+ rejectActivityIntent?: {
229
+ fingerprint: string;
230
+ } | undefined;
231
+ createPrivateKeyTagIntent?: {
232
+ privateKeyTagName: string;
233
+ privateKeyIds: string[];
234
+ } | undefined;
235
+ deletePrivateKeyTagsIntent?: {
236
+ privateKeyTagIds: string[];
237
+ } | undefined;
238
+ createPolicyIntentV2?: {
239
+ policyName: string;
240
+ selectors: {
241
+ subject?: string | undefined;
242
+ operator?: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL" | undefined;
243
+ targets?: string[] | undefined;
244
+ }[];
245
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
246
+ notes?: string | undefined;
247
+ } | undefined;
248
+ setPaymentMethodIntent?: {
249
+ number: string;
250
+ cvv: string;
251
+ expiryMonth: string;
252
+ expiryYear: string;
253
+ cardHolderEmail: string;
254
+ cardHolderName: string;
255
+ } | undefined;
256
+ activateBillingTierIntent?: {
257
+ productId: string;
258
+ } | undefined;
259
+ deletePaymentMethodIntent?: {
260
+ paymentMethodId: string;
261
+ } | undefined;
262
+ createPolicyIntentV3?: {
263
+ policyName: string;
264
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
265
+ condition?: string | undefined;
266
+ consensus?: string | undefined;
267
+ notes?: string | undefined;
268
+ } | undefined;
269
+ createApiOnlyUsersIntent?: {
270
+ apiOnlyUsers: {
271
+ userName: string;
272
+ userEmail?: string | undefined;
273
+ userTags: string[];
274
+ apiKeys: {
275
+ apiKeyName: string;
276
+ publicKey: string;
277
+ expirationSeconds?: string | undefined;
278
+ }[];
279
+ }[];
280
+ } | undefined;
281
+ updateRootQuorumIntent?: {
282
+ threshold: number;
283
+ userIds: string[];
284
+ } | undefined;
285
+ updateUserTagIntent?: {
286
+ userTagId: string;
287
+ newUserTagName?: string | undefined;
288
+ addUserIds: string[];
289
+ removeUserIds: string[];
290
+ } | undefined;
291
+ updatePrivateKeyTagIntent?: {
292
+ privateKeyTagId: string;
293
+ newPrivateKeyTagName?: string | undefined;
294
+ addPrivateKeyIds: string[];
295
+ removePrivateKeyIds: string[];
296
+ } | undefined;
297
+ createAuthenticatorsIntentV2?: {
298
+ authenticators: {
299
+ authenticatorName: string;
300
+ challenge: string;
301
+ attestation: {
302
+ credentialId: string;
303
+ clientDataJson: string;
304
+ attestationObject: string;
305
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
306
+ };
307
+ }[];
308
+ userId: string;
309
+ } | undefined;
310
+ acceptInvitationIntentV2?: {
311
+ invitationId: string;
312
+ userId: string;
313
+ authenticator: {
314
+ authenticatorName: string;
315
+ challenge: string;
316
+ attestation: {
317
+ credentialId: string;
318
+ clientDataJson: string;
319
+ attestationObject: string;
320
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
321
+ };
322
+ };
323
+ } | undefined;
324
+ createOrganizationIntentV2?: {
325
+ organizationName: string;
326
+ rootEmail: string;
327
+ rootAuthenticator: {
328
+ authenticatorName: string;
329
+ challenge: string;
330
+ attestation: {
331
+ credentialId: string;
332
+ clientDataJson: string;
333
+ attestationObject: string;
334
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
335
+ };
336
+ };
337
+ rootUserId?: string | undefined;
338
+ } | undefined;
339
+ createUsersIntentV2?: {
340
+ users: {
341
+ userName: string;
342
+ userEmail?: string | undefined;
343
+ apiKeys: {
344
+ apiKeyName: string;
345
+ publicKey: string;
346
+ expirationSeconds?: string | undefined;
347
+ }[];
348
+ authenticators: {
349
+ authenticatorName: string;
350
+ challenge: string;
351
+ attestation: {
352
+ credentialId: string;
353
+ clientDataJson: string;
354
+ attestationObject: string;
355
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
356
+ };
357
+ }[];
358
+ userTags: string[];
359
+ }[];
360
+ } | undefined;
361
+ createSubOrganizationIntent?: {
362
+ name: string;
363
+ rootAuthenticator: {
364
+ authenticatorName: string;
365
+ challenge: string;
366
+ attestation: {
367
+ credentialId: string;
368
+ clientDataJson: string;
369
+ attestationObject: string;
370
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
371
+ };
372
+ };
373
+ } | undefined;
374
+ createSubOrganizationIntentV2?: {
375
+ subOrganizationName: string;
376
+ rootUsers: {
377
+ userName: string;
378
+ userEmail?: string | undefined;
379
+ apiKeys: {
380
+ apiKeyName: string;
381
+ publicKey: string;
382
+ expirationSeconds?: string | undefined;
383
+ }[];
384
+ authenticators: {
385
+ authenticatorName: string;
386
+ challenge: string;
387
+ attestation: {
388
+ credentialId: string;
389
+ clientDataJson: string;
390
+ attestationObject: string;
391
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
392
+ };
393
+ }[];
394
+ }[];
395
+ rootQuorumThreshold: number;
396
+ } | undefined;
397
+ updateAllowedOriginsIntent?: {
398
+ allowedOrigins: string[];
399
+ } | undefined;
400
+ createPrivateKeysIntentV2?: {
401
+ privateKeys: {
402
+ privateKeyName: string;
403
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
404
+ privateKeyTags: string[];
405
+ addressFormats: ("ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS")[];
406
+ }[];
407
+ } | undefined;
408
+ updateUserIntent?: {
409
+ userId: string;
410
+ userName?: string | undefined;
411
+ userEmail?: string | undefined;
412
+ userTagIds?: string[] | undefined;
413
+ } | undefined;
414
+ updatePolicyIntent?: {
415
+ policyId: string;
416
+ policyName?: string | undefined;
417
+ policyEffect?: "EFFECT_ALLOW" | "EFFECT_DENY" | undefined;
418
+ policyCondition?: string | undefined;
419
+ policyConsensus?: string | undefined;
420
+ policyNotes?: string | undefined;
421
+ } | undefined;
422
+ setPaymentMethodIntentV2?: {
423
+ paymentMethodId: string;
424
+ cardHolderEmail: string;
425
+ cardHolderName: string;
426
+ } | undefined;
427
+ createSubOrganizationIntentV3?: {
428
+ subOrganizationName: string;
429
+ rootUsers: {
430
+ userName: string;
431
+ userEmail?: string | undefined;
432
+ apiKeys: {
433
+ apiKeyName: string;
434
+ publicKey: string;
435
+ expirationSeconds?: string | undefined;
436
+ }[];
437
+ authenticators: {
438
+ authenticatorName: string;
439
+ challenge: string;
440
+ attestation: {
441
+ credentialId: string;
442
+ clientDataJson: string;
443
+ attestationObject: string;
444
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
445
+ };
446
+ }[];
447
+ }[];
448
+ rootQuorumThreshold: number;
449
+ privateKeys: {
450
+ privateKeyName: string;
451
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
452
+ privateKeyTags: string[];
453
+ addressFormats: ("ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS")[];
454
+ }[];
455
+ } | undefined;
456
+ createWalletIntent?: {
457
+ walletName: string;
458
+ accounts: {
459
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
460
+ pathFormat: "PATH_FORMAT_BIP32";
461
+ path: string;
462
+ addressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
463
+ }[];
464
+ mnemonicLength?: number | undefined;
465
+ } | undefined;
466
+ createWalletAccountsIntent?: {
467
+ walletId: string;
468
+ accounts: {
469
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
470
+ pathFormat: "PATH_FORMAT_BIP32";
471
+ path: string;
472
+ addressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
473
+ }[];
474
+ } | undefined;
475
+ initUserEmailRecoveryIntent?: {
476
+ email: string;
477
+ targetPublicKey: string;
478
+ expirationSeconds?: string | undefined;
479
+ } | undefined;
480
+ recoverUserIntent?: {
481
+ authenticator: {
482
+ authenticatorName: string;
483
+ challenge: string;
484
+ attestation: {
485
+ credentialId: string;
486
+ clientDataJson: string;
487
+ attestationObject: string;
488
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
489
+ };
490
+ };
491
+ userId: string;
492
+ } | undefined;
493
+ setOrganizationFeatureIntent?: {
494
+ name: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY";
495
+ value: string;
496
+ } | undefined;
497
+ removeOrganizationFeatureIntent?: {
498
+ name: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY";
499
+ } | undefined;
500
+ signRawPayloadIntentV2?: {
501
+ signWith: string;
502
+ payload: string;
503
+ encoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
504
+ hashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
505
+ } | undefined;
506
+ signTransactionIntentV2?: {
507
+ signWith: string;
508
+ unsignedTransaction: string;
509
+ type: "TRANSACTION_TYPE_ETHEREUM";
510
+ } | undefined;
511
+ exportPrivateKeyIntent?: {
512
+ privateKeyId: string;
513
+ targetPublicKey: string;
514
+ } | undefined;
515
+ exportWalletIntent?: {
516
+ walletId: string;
517
+ targetPublicKey: string;
518
+ language?: "MNEMONIC_LANGUAGE_ENGLISH" | "MNEMONIC_LANGUAGE_SIMPLIFIED_CHINESE" | "MNEMONIC_LANGUAGE_TRADITIONAL_CHINESE" | "MNEMONIC_LANGUAGE_CZECH" | "MNEMONIC_LANGUAGE_FRENCH" | "MNEMONIC_LANGUAGE_ITALIAN" | "MNEMONIC_LANGUAGE_JAPANESE" | "MNEMONIC_LANGUAGE_KOREAN" | "MNEMONIC_LANGUAGE_SPANISH" | undefined;
519
+ } | undefined;
520
+ createSubOrganizationIntentV4?: {
521
+ subOrganizationName: string;
522
+ rootUsers: {
523
+ userName: string;
524
+ userEmail?: string | undefined;
525
+ apiKeys: {
526
+ apiKeyName: string;
527
+ publicKey: string;
528
+ expirationSeconds?: string | undefined;
529
+ }[];
530
+ authenticators: {
531
+ authenticatorName: string;
532
+ challenge: string;
533
+ attestation: {
534
+ credentialId: string;
535
+ clientDataJson: string;
536
+ attestationObject: string;
537
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
538
+ };
539
+ }[];
540
+ }[];
541
+ rootQuorumThreshold: number;
542
+ wallet?: {
543
+ walletName: string;
544
+ accounts: {
545
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
546
+ pathFormat: "PATH_FORMAT_BIP32";
547
+ path: string;
548
+ addressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
549
+ }[];
550
+ mnemonicLength?: number | undefined;
551
+ } | undefined;
552
+ disableEmailRecovery?: boolean | undefined;
553
+ disableEmailAuth?: boolean | undefined;
554
+ } | undefined;
555
+ emailAuthIntent?: {
556
+ email: string;
557
+ targetPublicKey: string;
558
+ apiKeyName?: string | undefined;
559
+ expirationSeconds?: string | undefined;
560
+ emailCustomization?: {
561
+ subject?: string | undefined;
562
+ body?: string | undefined;
563
+ styling?: string | undefined;
564
+ urlPrefix?: string | undefined;
565
+ } | undefined;
566
+ } | undefined;
567
+ exportWalletAccountIntent?: {
568
+ address: string;
569
+ targetPublicKey: string;
570
+ } | undefined;
571
+ };
572
+ result: {
573
+ createOrganizationResult?: {
574
+ organizationId: string;
575
+ } | undefined;
576
+ createAuthenticatorsResult?: {
577
+ authenticatorIds: string[];
578
+ } | undefined;
579
+ createUsersResult?: {
580
+ userIds: string[];
581
+ } | undefined;
582
+ createPrivateKeysResult?: {
583
+ privateKeyIds: string[];
584
+ } | undefined;
585
+ createInvitationsResult?: {
586
+ invitationIds: string[];
587
+ } | undefined;
588
+ acceptInvitationResult?: {
589
+ invitationId: string;
590
+ userId: string;
591
+ } | undefined;
592
+ signRawPayloadResult?: {
593
+ r: string;
594
+ s: string;
595
+ v: string;
596
+ } | undefined;
597
+ createPolicyResult?: {
598
+ policyId: string;
599
+ } | undefined;
600
+ disablePrivateKeyResult?: {
601
+ privateKeyId: string;
602
+ } | undefined;
603
+ deleteUsersResult?: {
604
+ userIds: string[];
605
+ } | undefined;
606
+ deleteAuthenticatorsResult?: {
607
+ authenticatorIds: string[];
608
+ } | undefined;
609
+ deleteInvitationResult?: {
610
+ invitationId: string;
611
+ } | undefined;
612
+ deleteOrganizationResult?: {
613
+ organizationId: string;
614
+ } | undefined;
615
+ deletePolicyResult?: {
616
+ policyId: string;
617
+ } | undefined;
618
+ createUserTagResult?: {
619
+ userTagId: string;
620
+ userIds: string[];
621
+ } | undefined;
622
+ deleteUserTagsResult?: {
623
+ userTagIds: string[];
624
+ userIds: string[];
625
+ } | undefined;
626
+ signTransactionResult?: {
627
+ signedTransaction: string;
628
+ } | undefined;
629
+ deleteApiKeysResult?: {
630
+ apiKeyIds: string[];
631
+ } | undefined;
632
+ createApiKeysResult?: {
633
+ apiKeyIds: string[];
634
+ } | undefined;
635
+ createPrivateKeyTagResult?: {
636
+ privateKeyTagId: string;
637
+ privateKeyIds: string[];
638
+ } | undefined;
639
+ deletePrivateKeyTagsResult?: {
640
+ privateKeyTagIds: string[];
641
+ privateKeyIds: string[];
642
+ } | undefined;
643
+ setPaymentMethodResult?: {
644
+ lastFour: string;
645
+ cardHolderName: string;
646
+ cardHolderEmail: string;
647
+ } | undefined;
648
+ activateBillingTierResult?: {
649
+ productId: string;
650
+ } | undefined;
651
+ deletePaymentMethodResult?: {
652
+ paymentMethodId: string;
653
+ } | undefined;
654
+ createApiOnlyUsersResult?: {
655
+ userIds: string[];
656
+ } | undefined;
657
+ updateRootQuorumResult?: {
658
+ [key: string]: unknown;
659
+ } | undefined;
660
+ updateUserTagResult?: {
661
+ userTagId: string;
662
+ } | undefined;
663
+ updatePrivateKeyTagResult?: {
664
+ privateKeyTagId: string;
665
+ } | undefined;
666
+ createSubOrganizationResult?: {
667
+ subOrganizationId: string;
668
+ } | undefined;
669
+ updateAllowedOriginsResult?: {
670
+ [key: string]: unknown;
671
+ } | undefined;
672
+ createPrivateKeysResultV2?: {
673
+ privateKeys: {
674
+ privateKeyId?: string | undefined;
675
+ addresses?: {
676
+ format?: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | undefined;
677
+ address?: string | undefined;
678
+ }[] | undefined;
679
+ }[];
680
+ } | undefined;
681
+ updateUserResult?: {
682
+ userId: string;
683
+ } | undefined;
684
+ updatePolicyResult?: {
685
+ policyId: string;
686
+ } | undefined;
687
+ createSubOrganizationResultV3?: {
688
+ subOrganizationId: string;
689
+ privateKeys: {
690
+ privateKeyId?: string | undefined;
691
+ addresses?: {
692
+ format?: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | undefined;
693
+ address?: string | undefined;
694
+ }[] | undefined;
695
+ }[];
696
+ } | undefined;
697
+ createWalletResult?: {
698
+ walletId: string;
699
+ addresses: string[];
700
+ } | undefined;
701
+ createWalletAccountsResult?: {
702
+ addresses: string[];
703
+ } | undefined;
704
+ initUserEmailRecoveryResult?: {
705
+ userId: string;
706
+ } | undefined;
707
+ recoverUserResult?: {
708
+ authenticatorId: string[];
709
+ } | undefined;
710
+ setOrganizationFeatureResult?: {
711
+ features: {
712
+ name?: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY" | undefined;
713
+ value?: string | undefined;
714
+ }[];
715
+ } | undefined;
716
+ removeOrganizationFeatureResult?: {
717
+ features: {
718
+ name?: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY" | undefined;
719
+ value?: string | undefined;
720
+ }[];
721
+ } | undefined;
722
+ exportPrivateKeyResult?: {
723
+ privateKeyId: string;
724
+ exportBundle: string;
725
+ } | undefined;
726
+ exportWalletResult?: {
727
+ walletId: string;
728
+ exportBundle: string;
729
+ } | undefined;
730
+ createSubOrganizationResultV4?: {
731
+ subOrganizationId: string;
732
+ wallet?: {
733
+ walletId: string;
734
+ addresses: string[];
735
+ } | undefined;
736
+ } | undefined;
737
+ emailAuthResult?: {
738
+ userId: string;
739
+ apiKeyId: string;
740
+ } | undefined;
741
+ exportWalletAccountResult?: {
742
+ address: string;
743
+ exportBundle: string;
744
+ } | undefined;
745
+ };
746
+ votes: {
747
+ id: string;
748
+ userId: string;
749
+ user: {
750
+ userId: string;
751
+ userName: string;
752
+ userEmail?: string | undefined;
753
+ authenticators: {
754
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
755
+ attestationType: string;
756
+ aaguid: string;
757
+ credentialId: string;
758
+ model: string;
759
+ credential: {
760
+ publicKey: string;
761
+ type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
762
+ };
763
+ authenticatorId: string;
764
+ authenticatorName: string;
765
+ createdAt: {
766
+ seconds: string;
767
+ nanos: string;
768
+ };
769
+ updatedAt: {
770
+ seconds: string;
771
+ nanos: string;
772
+ };
773
+ }[];
774
+ apiKeys: {
775
+ credential: {
776
+ publicKey: string;
777
+ type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
778
+ };
779
+ apiKeyId: string;
780
+ apiKeyName: string;
781
+ createdAt: {
782
+ seconds: string;
783
+ nanos: string;
784
+ };
785
+ updatedAt: {
786
+ seconds: string;
787
+ nanos: string;
788
+ };
789
+ expirationSeconds?: string | undefined;
790
+ }[];
791
+ userTags: string[];
792
+ createdAt: {
793
+ seconds: string;
794
+ nanos: string;
795
+ };
796
+ updatedAt: {
797
+ seconds: string;
798
+ nanos: string;
799
+ };
800
+ };
801
+ activityId: string;
802
+ selection: "VOTE_SELECTION_APPROVED" | "VOTE_SELECTION_REJECTED";
803
+ message: string;
804
+ publicKey: string;
805
+ signature: string;
806
+ scheme: string;
807
+ createdAt: {
808
+ seconds: string;
809
+ nanos: string;
810
+ };
811
+ }[];
812
+ fingerprint: string;
813
+ canApprove: boolean;
814
+ canReject: boolean;
815
+ createdAt: {
816
+ seconds: string;
817
+ nanos: string;
818
+ };
819
+ updatedAt: {
820
+ seconds: string;
821
+ nanos: string;
822
+ };
823
+ }>;
824
+ exportWallet({ walletId, organizationId, address, }: {
825
+ walletId: string;
826
+ organizationId: string;
827
+ address?: string;
828
+ }): Promise<{
829
+ id: string;
830
+ organizationId: string;
831
+ status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
832
+ type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH";
833
+ intent: {
834
+ createOrganizationIntent: {
835
+ organizationName: string;
836
+ rootEmail: string;
837
+ rootAuthenticator: {
838
+ authenticatorName: string;
839
+ userId: string;
840
+ attestation: {
841
+ id: string;
842
+ type: "public-key";
843
+ rawId: string;
844
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
845
+ response: {
846
+ clientDataJson: string;
847
+ attestationObject: string;
848
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[] | undefined;
849
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
850
+ };
851
+ clientExtensionResults: {
852
+ appid?: boolean | undefined;
853
+ appidExclude?: boolean | undefined;
854
+ credProps?: {
855
+ rk: boolean;
856
+ } | undefined;
857
+ };
858
+ };
859
+ challenge: string;
860
+ };
861
+ rootUserId?: string | undefined;
862
+ };
863
+ createAuthenticatorsIntent?: {
864
+ authenticators: {
865
+ authenticatorName: string;
866
+ userId: string;
867
+ attestation: {
868
+ id: string;
869
+ type: "public-key";
870
+ rawId: string;
871
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
872
+ response: {
873
+ clientDataJson: string;
874
+ attestationObject: string;
875
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[] | undefined;
876
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
877
+ };
878
+ clientExtensionResults: {
879
+ appid?: boolean | undefined;
880
+ appidExclude?: boolean | undefined;
881
+ credProps?: {
882
+ rk: boolean;
883
+ } | undefined;
884
+ };
885
+ };
886
+ challenge: string;
887
+ }[];
888
+ userId: string;
889
+ } | undefined;
890
+ createUsersIntent?: {
891
+ users: {
892
+ userName: string;
893
+ userEmail?: string | undefined;
894
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
895
+ apiKeys: {
896
+ apiKeyName: string;
897
+ publicKey: string;
898
+ expirationSeconds?: string | undefined;
899
+ }[];
900
+ authenticators: {
901
+ authenticatorName: string;
902
+ userId: string;
903
+ attestation: {
904
+ id: string;
905
+ type: "public-key";
906
+ rawId: string;
907
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
908
+ response: {
909
+ clientDataJson: string;
910
+ attestationObject: string;
911
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[] | undefined;
912
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
913
+ };
914
+ clientExtensionResults: {
915
+ appid?: boolean | undefined;
916
+ appidExclude?: boolean | undefined;
917
+ credProps?: {
918
+ rk: boolean;
919
+ } | undefined;
920
+ };
921
+ };
922
+ challenge: string;
923
+ }[];
924
+ userTags: string[];
925
+ }[];
926
+ } | undefined;
927
+ createPrivateKeysIntent?: {
928
+ privateKeys: {
929
+ privateKeyName: string;
930
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
931
+ privateKeyTags: string[];
932
+ addressFormats: ("ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS")[];
933
+ }[];
934
+ } | undefined;
935
+ signRawPayloadIntent?: {
936
+ privateKeyId: string;
937
+ payload: string;
938
+ encoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
939
+ hashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
940
+ } | undefined;
941
+ createInvitationsIntent?: {
942
+ invitations: {
943
+ receiverUserName: string;
944
+ receiverUserEmail: string;
945
+ receiverUserTags: string[];
946
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
947
+ senderUserId: string;
948
+ }[];
949
+ } | undefined;
950
+ acceptInvitationIntent?: {
951
+ invitationId: string;
952
+ userId: string;
953
+ authenticator: {
954
+ authenticatorName: string;
955
+ userId: string;
956
+ attestation: {
957
+ id: string;
958
+ type: "public-key";
959
+ rawId: string;
960
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
961
+ response: {
962
+ clientDataJson: string;
963
+ attestationObject: string;
964
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[] | undefined;
965
+ authenticatorAttachment?: "cross-platform" | "platform" | null | undefined;
966
+ };
967
+ clientExtensionResults: {
968
+ appid?: boolean | undefined;
969
+ appidExclude?: boolean | undefined;
970
+ credProps?: {
971
+ rk: boolean;
972
+ } | undefined;
973
+ };
974
+ };
975
+ challenge: string;
976
+ };
977
+ } | undefined;
978
+ createPolicyIntent?: {
979
+ policyName: string;
980
+ selectors: {
981
+ subject?: string | undefined;
982
+ operator?: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL" | undefined;
983
+ target?: string | undefined;
984
+ }[];
985
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
986
+ notes?: string | undefined;
987
+ } | undefined;
988
+ disablePrivateKeyIntent?: {
989
+ privateKeyId: string;
990
+ } | undefined;
991
+ deleteUsersIntent?: {
992
+ userIds: string[];
993
+ } | undefined;
994
+ deleteAuthenticatorsIntent?: {
995
+ userId: string;
996
+ authenticatorIds: string[];
997
+ } | undefined;
998
+ deleteInvitationIntent?: {
999
+ invitationId: string;
1000
+ } | undefined;
1001
+ deleteOrganizationIntent?: {
1002
+ organizationId: string;
1003
+ } | undefined;
1004
+ deletePolicyIntent?: {
1005
+ policyId: string;
1006
+ } | undefined;
1007
+ createUserTagIntent?: {
1008
+ userTagName: string;
1009
+ userIds: string[];
1010
+ } | undefined;
1011
+ deleteUserTagsIntent?: {
1012
+ userTagIds: string[];
1013
+ } | undefined;
1014
+ signTransactionIntent?: {
1015
+ privateKeyId: string;
1016
+ unsignedTransaction: string;
1017
+ type: "TRANSACTION_TYPE_ETHEREUM";
1018
+ } | undefined;
1019
+ createApiKeysIntent?: {
1020
+ apiKeys: {
1021
+ apiKeyName: string;
1022
+ publicKey: string;
1023
+ expirationSeconds?: string | undefined;
1024
+ }[];
1025
+ userId: string;
1026
+ } | undefined;
1027
+ deleteApiKeysIntent?: {
1028
+ userId: string;
1029
+ apiKeyIds: string[];
1030
+ } | undefined;
1031
+ approveActivityIntent?: {
1032
+ fingerprint: string;
1033
+ } | undefined;
1034
+ rejectActivityIntent?: {
1035
+ fingerprint: string;
1036
+ } | undefined;
1037
+ createPrivateKeyTagIntent?: {
1038
+ privateKeyTagName: string;
1039
+ privateKeyIds: string[];
1040
+ } | undefined;
1041
+ deletePrivateKeyTagsIntent?: {
1042
+ privateKeyTagIds: string[];
1043
+ } | undefined;
1044
+ createPolicyIntentV2?: {
1045
+ policyName: string;
1046
+ selectors: {
1047
+ subject?: string | undefined;
1048
+ operator?: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL" | undefined;
1049
+ targets?: string[] | undefined;
1050
+ }[];
1051
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
1052
+ notes?: string | undefined;
1053
+ } | undefined;
1054
+ setPaymentMethodIntent?: {
1055
+ number: string;
1056
+ cvv: string;
1057
+ expiryMonth: string;
1058
+ expiryYear: string;
1059
+ cardHolderEmail: string;
1060
+ cardHolderName: string;
1061
+ } | undefined;
1062
+ activateBillingTierIntent?: {
1063
+ productId: string;
1064
+ } | undefined;
1065
+ deletePaymentMethodIntent?: {
1066
+ paymentMethodId: string;
1067
+ } | undefined;
1068
+ createPolicyIntentV3?: {
1069
+ policyName: string;
1070
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
1071
+ condition?: string | undefined;
1072
+ consensus?: string | undefined;
1073
+ notes?: string | undefined;
1074
+ } | undefined;
1075
+ createApiOnlyUsersIntent?: {
1076
+ apiOnlyUsers: {
1077
+ userName: string;
1078
+ userEmail?: string | undefined;
1079
+ userTags: string[];
1080
+ apiKeys: {
1081
+ apiKeyName: string;
1082
+ publicKey: string;
1083
+ expirationSeconds?: string | undefined;
1084
+ }[];
1085
+ }[];
1086
+ } | undefined;
1087
+ updateRootQuorumIntent?: {
1088
+ threshold: number;
1089
+ userIds: string[];
1090
+ } | undefined;
1091
+ updateUserTagIntent?: {
1092
+ userTagId: string;
1093
+ newUserTagName?: string | undefined;
1094
+ addUserIds: string[];
1095
+ removeUserIds: string[];
1096
+ } | undefined;
1097
+ updatePrivateKeyTagIntent?: {
1098
+ privateKeyTagId: string;
1099
+ newPrivateKeyTagName?: string | undefined;
1100
+ addPrivateKeyIds: string[];
1101
+ removePrivateKeyIds: string[];
1102
+ } | undefined;
1103
+ createAuthenticatorsIntentV2?: {
1104
+ authenticators: {
1105
+ authenticatorName: string;
1106
+ challenge: string;
1107
+ attestation: {
1108
+ credentialId: string;
1109
+ clientDataJson: string;
1110
+ attestationObject: string;
1111
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1112
+ };
1113
+ }[];
1114
+ userId: string;
1115
+ } | undefined;
1116
+ acceptInvitationIntentV2?: {
1117
+ invitationId: string;
1118
+ userId: string;
1119
+ authenticator: {
1120
+ authenticatorName: string;
1121
+ challenge: string;
1122
+ attestation: {
1123
+ credentialId: string;
1124
+ clientDataJson: string;
1125
+ attestationObject: string;
1126
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1127
+ };
1128
+ };
1129
+ } | undefined;
1130
+ createOrganizationIntentV2?: {
1131
+ organizationName: string;
1132
+ rootEmail: string;
1133
+ rootAuthenticator: {
1134
+ authenticatorName: string;
1135
+ challenge: string;
1136
+ attestation: {
1137
+ credentialId: string;
1138
+ clientDataJson: string;
1139
+ attestationObject: string;
1140
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1141
+ };
1142
+ };
1143
+ rootUserId?: string | undefined;
1144
+ } | undefined;
1145
+ createUsersIntentV2?: {
1146
+ users: {
1147
+ userName: string;
1148
+ userEmail?: string | undefined;
1149
+ apiKeys: {
1150
+ apiKeyName: string;
1151
+ publicKey: string;
1152
+ expirationSeconds?: string | undefined;
1153
+ }[];
1154
+ authenticators: {
1155
+ authenticatorName: string;
1156
+ challenge: string;
1157
+ attestation: {
1158
+ credentialId: string;
1159
+ clientDataJson: string;
1160
+ attestationObject: string;
1161
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1162
+ };
1163
+ }[];
1164
+ userTags: string[];
1165
+ }[];
1166
+ } | undefined;
1167
+ createSubOrganizationIntent?: {
1168
+ name: string;
1169
+ rootAuthenticator: {
1170
+ authenticatorName: string;
1171
+ challenge: string;
1172
+ attestation: {
1173
+ credentialId: string;
1174
+ clientDataJson: string;
1175
+ attestationObject: string;
1176
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1177
+ };
1178
+ };
1179
+ } | undefined;
1180
+ createSubOrganizationIntentV2?: {
1181
+ subOrganizationName: string;
1182
+ rootUsers: {
1183
+ userName: string;
1184
+ userEmail?: string | undefined;
1185
+ apiKeys: {
1186
+ apiKeyName: string;
1187
+ publicKey: string;
1188
+ expirationSeconds?: string | undefined;
1189
+ }[];
1190
+ authenticators: {
1191
+ authenticatorName: string;
1192
+ challenge: string;
1193
+ attestation: {
1194
+ credentialId: string;
1195
+ clientDataJson: string;
1196
+ attestationObject: string;
1197
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1198
+ };
1199
+ }[];
1200
+ }[];
1201
+ rootQuorumThreshold: number;
1202
+ } | undefined;
1203
+ updateAllowedOriginsIntent?: {
1204
+ allowedOrigins: string[];
1205
+ } | undefined;
1206
+ createPrivateKeysIntentV2?: {
1207
+ privateKeys: {
1208
+ privateKeyName: string;
1209
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
1210
+ privateKeyTags: string[];
1211
+ addressFormats: ("ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS")[];
1212
+ }[];
1213
+ } | undefined;
1214
+ updateUserIntent?: {
1215
+ userId: string;
1216
+ userName?: string | undefined;
1217
+ userEmail?: string | undefined;
1218
+ userTagIds?: string[] | undefined;
1219
+ } | undefined;
1220
+ updatePolicyIntent?: {
1221
+ policyId: string;
1222
+ policyName?: string | undefined;
1223
+ policyEffect?: "EFFECT_ALLOW" | "EFFECT_DENY" | undefined;
1224
+ policyCondition?: string | undefined;
1225
+ policyConsensus?: string | undefined;
1226
+ policyNotes?: string | undefined;
1227
+ } | undefined;
1228
+ setPaymentMethodIntentV2?: {
1229
+ paymentMethodId: string;
1230
+ cardHolderEmail: string;
1231
+ cardHolderName: string;
1232
+ } | undefined;
1233
+ createSubOrganizationIntentV3?: {
1234
+ subOrganizationName: string;
1235
+ rootUsers: {
1236
+ userName: string;
1237
+ userEmail?: string | undefined;
1238
+ apiKeys: {
1239
+ apiKeyName: string;
1240
+ publicKey: string;
1241
+ expirationSeconds?: string | undefined;
1242
+ }[];
1243
+ authenticators: {
1244
+ authenticatorName: string;
1245
+ challenge: string;
1246
+ attestation: {
1247
+ credentialId: string;
1248
+ clientDataJson: string;
1249
+ attestationObject: string;
1250
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1251
+ };
1252
+ }[];
1253
+ }[];
1254
+ rootQuorumThreshold: number;
1255
+ privateKeys: {
1256
+ privateKeyName: string;
1257
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
1258
+ privateKeyTags: string[];
1259
+ addressFormats: ("ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS")[];
1260
+ }[];
1261
+ } | undefined;
1262
+ createWalletIntent?: {
1263
+ walletName: string;
1264
+ accounts: {
1265
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
1266
+ pathFormat: "PATH_FORMAT_BIP32";
1267
+ path: string;
1268
+ addressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
1269
+ }[];
1270
+ mnemonicLength?: number | undefined;
1271
+ } | undefined;
1272
+ createWalletAccountsIntent?: {
1273
+ walletId: string;
1274
+ accounts: {
1275
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
1276
+ pathFormat: "PATH_FORMAT_BIP32";
1277
+ path: string;
1278
+ addressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
1279
+ }[];
1280
+ } | undefined;
1281
+ initUserEmailRecoveryIntent?: {
1282
+ email: string;
1283
+ targetPublicKey: string;
1284
+ expirationSeconds?: string | undefined;
1285
+ } | undefined;
1286
+ recoverUserIntent?: {
1287
+ authenticator: {
1288
+ authenticatorName: string;
1289
+ challenge: string;
1290
+ attestation: {
1291
+ credentialId: string;
1292
+ clientDataJson: string;
1293
+ attestationObject: string;
1294
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1295
+ };
1296
+ };
1297
+ userId: string;
1298
+ } | undefined;
1299
+ setOrganizationFeatureIntent?: {
1300
+ name: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY";
1301
+ value: string;
1302
+ } | undefined;
1303
+ removeOrganizationFeatureIntent?: {
1304
+ name: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY";
1305
+ } | undefined;
1306
+ signRawPayloadIntentV2?: {
1307
+ signWith: string;
1308
+ payload: string;
1309
+ encoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
1310
+ hashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
1311
+ } | undefined;
1312
+ signTransactionIntentV2?: {
1313
+ signWith: string;
1314
+ unsignedTransaction: string;
1315
+ type: "TRANSACTION_TYPE_ETHEREUM";
1316
+ } | undefined;
1317
+ exportPrivateKeyIntent?: {
1318
+ privateKeyId: string;
1319
+ targetPublicKey: string;
1320
+ } | undefined;
1321
+ exportWalletIntent?: {
1322
+ walletId: string;
1323
+ targetPublicKey: string;
1324
+ language?: "MNEMONIC_LANGUAGE_ENGLISH" | "MNEMONIC_LANGUAGE_SIMPLIFIED_CHINESE" | "MNEMONIC_LANGUAGE_TRADITIONAL_CHINESE" | "MNEMONIC_LANGUAGE_CZECH" | "MNEMONIC_LANGUAGE_FRENCH" | "MNEMONIC_LANGUAGE_ITALIAN" | "MNEMONIC_LANGUAGE_JAPANESE" | "MNEMONIC_LANGUAGE_KOREAN" | "MNEMONIC_LANGUAGE_SPANISH" | undefined;
1325
+ } | undefined;
1326
+ createSubOrganizationIntentV4?: {
1327
+ subOrganizationName: string;
1328
+ rootUsers: {
1329
+ userName: string;
1330
+ userEmail?: string | undefined;
1331
+ apiKeys: {
1332
+ apiKeyName: string;
1333
+ publicKey: string;
1334
+ expirationSeconds?: string | undefined;
1335
+ }[];
1336
+ authenticators: {
1337
+ authenticatorName: string;
1338
+ challenge: string;
1339
+ attestation: {
1340
+ credentialId: string;
1341
+ clientDataJson: string;
1342
+ attestationObject: string;
1343
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1344
+ };
1345
+ }[];
1346
+ }[];
1347
+ rootQuorumThreshold: number;
1348
+ wallet?: {
1349
+ walletName: string;
1350
+ accounts: {
1351
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
1352
+ pathFormat: "PATH_FORMAT_BIP32";
1353
+ path: string;
1354
+ addressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
1355
+ }[];
1356
+ mnemonicLength?: number | undefined;
1357
+ } | undefined;
1358
+ disableEmailRecovery?: boolean | undefined;
1359
+ disableEmailAuth?: boolean | undefined;
1360
+ } | undefined;
1361
+ emailAuthIntent?: {
1362
+ email: string;
1363
+ targetPublicKey: string;
1364
+ apiKeyName?: string | undefined;
1365
+ expirationSeconds?: string | undefined;
1366
+ emailCustomization?: {
1367
+ subject?: string | undefined;
1368
+ body?: string | undefined;
1369
+ styling?: string | undefined;
1370
+ urlPrefix?: string | undefined;
1371
+ } | undefined;
1372
+ } | undefined;
1373
+ exportWalletAccountIntent?: {
1374
+ address: string;
1375
+ targetPublicKey: string;
1376
+ } | undefined;
1377
+ };
1378
+ result: {
1379
+ createOrganizationResult?: {
1380
+ organizationId: string;
1381
+ } | undefined;
1382
+ createAuthenticatorsResult?: {
1383
+ authenticatorIds: string[];
1384
+ } | undefined;
1385
+ createUsersResult?: {
1386
+ userIds: string[];
1387
+ } | undefined;
1388
+ createPrivateKeysResult?: {
1389
+ privateKeyIds: string[];
1390
+ } | undefined;
1391
+ createInvitationsResult?: {
1392
+ invitationIds: string[];
1393
+ } | undefined;
1394
+ acceptInvitationResult?: {
1395
+ invitationId: string;
1396
+ userId: string;
1397
+ } | undefined;
1398
+ signRawPayloadResult?: {
1399
+ r: string;
1400
+ s: string;
1401
+ v: string;
1402
+ } | undefined;
1403
+ createPolicyResult?: {
1404
+ policyId: string;
1405
+ } | undefined;
1406
+ disablePrivateKeyResult?: {
1407
+ privateKeyId: string;
1408
+ } | undefined;
1409
+ deleteUsersResult?: {
1410
+ userIds: string[];
1411
+ } | undefined;
1412
+ deleteAuthenticatorsResult?: {
1413
+ authenticatorIds: string[];
1414
+ } | undefined;
1415
+ deleteInvitationResult?: {
1416
+ invitationId: string;
1417
+ } | undefined;
1418
+ deleteOrganizationResult?: {
1419
+ organizationId: string;
1420
+ } | undefined;
1421
+ deletePolicyResult?: {
1422
+ policyId: string;
1423
+ } | undefined;
1424
+ createUserTagResult?: {
1425
+ userTagId: string;
1426
+ userIds: string[];
1427
+ } | undefined;
1428
+ deleteUserTagsResult?: {
1429
+ userTagIds: string[];
1430
+ userIds: string[];
1431
+ } | undefined;
1432
+ signTransactionResult?: {
1433
+ signedTransaction: string;
1434
+ } | undefined;
1435
+ deleteApiKeysResult?: {
1436
+ apiKeyIds: string[];
1437
+ } | undefined;
1438
+ createApiKeysResult?: {
1439
+ apiKeyIds: string[];
1440
+ } | undefined;
1441
+ createPrivateKeyTagResult?: {
1442
+ privateKeyTagId: string;
1443
+ privateKeyIds: string[];
1444
+ } | undefined;
1445
+ deletePrivateKeyTagsResult?: {
1446
+ privateKeyTagIds: string[];
1447
+ privateKeyIds: string[];
1448
+ } | undefined;
1449
+ setPaymentMethodResult?: {
1450
+ lastFour: string;
1451
+ cardHolderName: string;
1452
+ cardHolderEmail: string;
1453
+ } | undefined;
1454
+ activateBillingTierResult?: {
1455
+ productId: string;
1456
+ } | undefined;
1457
+ deletePaymentMethodResult?: {
1458
+ paymentMethodId: string;
1459
+ } | undefined;
1460
+ createApiOnlyUsersResult?: {
1461
+ userIds: string[];
1462
+ } | undefined;
1463
+ updateRootQuorumResult?: {
1464
+ [key: string]: unknown;
1465
+ } | undefined;
1466
+ updateUserTagResult?: {
1467
+ userTagId: string;
1468
+ } | undefined;
1469
+ updatePrivateKeyTagResult?: {
1470
+ privateKeyTagId: string;
1471
+ } | undefined;
1472
+ createSubOrganizationResult?: {
1473
+ subOrganizationId: string;
1474
+ } | undefined;
1475
+ updateAllowedOriginsResult?: {
1476
+ [key: string]: unknown;
1477
+ } | undefined;
1478
+ createPrivateKeysResultV2?: {
1479
+ privateKeys: {
1480
+ privateKeyId?: string | undefined;
1481
+ addresses?: {
1482
+ format?: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | undefined;
1483
+ address?: string | undefined;
1484
+ }[] | undefined;
1485
+ }[];
1486
+ } | undefined;
1487
+ updateUserResult?: {
1488
+ userId: string;
1489
+ } | undefined;
1490
+ updatePolicyResult?: {
1491
+ policyId: string;
1492
+ } | undefined;
1493
+ createSubOrganizationResultV3?: {
1494
+ subOrganizationId: string;
1495
+ privateKeys: {
1496
+ privateKeyId?: string | undefined;
1497
+ addresses?: {
1498
+ format?: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | undefined;
1499
+ address?: string | undefined;
1500
+ }[] | undefined;
1501
+ }[];
1502
+ } | undefined;
1503
+ createWalletResult?: {
1504
+ walletId: string;
1505
+ addresses: string[];
1506
+ } | undefined;
1507
+ createWalletAccountsResult?: {
1508
+ addresses: string[];
1509
+ } | undefined;
1510
+ initUserEmailRecoveryResult?: {
1511
+ userId: string;
1512
+ } | undefined;
1513
+ recoverUserResult?: {
1514
+ authenticatorId: string[];
1515
+ } | undefined;
1516
+ setOrganizationFeatureResult?: {
1517
+ features: {
1518
+ name?: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY" | undefined;
1519
+ value?: string | undefined;
1520
+ }[];
1521
+ } | undefined;
1522
+ removeOrganizationFeatureResult?: {
1523
+ features: {
1524
+ name?: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY" | undefined;
1525
+ value?: string | undefined;
1526
+ }[];
1527
+ } | undefined;
1528
+ exportPrivateKeyResult?: {
1529
+ privateKeyId: string;
1530
+ exportBundle: string;
1531
+ } | undefined;
1532
+ exportWalletResult?: {
1533
+ walletId: string;
1534
+ exportBundle: string;
1535
+ } | undefined;
1536
+ createSubOrganizationResultV4?: {
1537
+ subOrganizationId: string;
1538
+ wallet?: {
1539
+ walletId: string;
1540
+ addresses: string[];
1541
+ } | undefined;
1542
+ } | undefined;
1543
+ emailAuthResult?: {
1544
+ userId: string;
1545
+ apiKeyId: string;
1546
+ } | undefined;
1547
+ exportWalletAccountResult?: {
1548
+ address: string;
1549
+ exportBundle: string;
1550
+ } | undefined;
1551
+ };
1552
+ votes: {
1553
+ id: string;
1554
+ userId: string;
1555
+ user: {
1556
+ userId: string;
1557
+ userName: string;
1558
+ userEmail?: string | undefined;
1559
+ authenticators: {
1560
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1561
+ attestationType: string;
1562
+ aaguid: string;
1563
+ credentialId: string;
1564
+ model: string;
1565
+ credential: {
1566
+ publicKey: string;
1567
+ type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
1568
+ };
1569
+ authenticatorId: string;
1570
+ authenticatorName: string;
1571
+ createdAt: {
1572
+ seconds: string;
1573
+ nanos: string;
1574
+ };
1575
+ updatedAt: {
1576
+ seconds: string;
1577
+ nanos: string;
1578
+ };
1579
+ }[];
1580
+ apiKeys: {
1581
+ credential: {
1582
+ publicKey: string;
1583
+ type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
1584
+ };
1585
+ apiKeyId: string;
1586
+ apiKeyName: string;
1587
+ createdAt: {
1588
+ seconds: string;
1589
+ nanos: string;
1590
+ };
1591
+ updatedAt: {
1592
+ seconds: string;
1593
+ nanos: string;
1594
+ };
1595
+ expirationSeconds?: string | undefined;
1596
+ }[];
1597
+ userTags: string[];
1598
+ createdAt: {
1599
+ seconds: string;
1600
+ nanos: string;
1601
+ };
1602
+ updatedAt: {
1603
+ seconds: string;
1604
+ nanos: string;
1605
+ };
1606
+ };
1607
+ activityId: string;
1608
+ selection: "VOTE_SELECTION_APPROVED" | "VOTE_SELECTION_REJECTED";
1609
+ message: string;
1610
+ publicKey: string;
1611
+ signature: string;
1612
+ scheme: string;
1613
+ createdAt: {
1614
+ seconds: string;
1615
+ nanos: string;
1616
+ };
1617
+ }[];
1618
+ fingerprint: string;
1619
+ canApprove: boolean;
1620
+ canReject: boolean;
1621
+ createdAt: {
1622
+ seconds: string;
1623
+ nanos: string;
1624
+ };
1625
+ updatedAt: {
1626
+ seconds: string;
1627
+ nanos: string;
1628
+ };
1629
+ }>;
1630
+ }