@turnkey/sdk-types 0.3.0 → 0.4.0-beta.2

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.
@@ -0,0 +1,4458 @@
1
+ export type apiApiKeyParams = {
2
+ /** Human-readable name for an API Key. */
3
+ apiKeyName: string;
4
+ /** The public component of a cryptographic key pair used to sign messages and transactions. */
5
+ publicKey: string;
6
+ /** Optional window (in seconds) indicating how long the API Key should last. */
7
+ expirationSeconds?: string;
8
+ };
9
+ export type billingActivateBillingTierIntent = {
10
+ /** The product that the customer wants to subscribe to. */
11
+ productId: string;
12
+ };
13
+ export type billingActivateBillingTierResult = {
14
+ /** The id of the product being subscribed to. */
15
+ productId: string;
16
+ };
17
+ export type billingDeletePaymentMethodIntent = {
18
+ /** The payment method that the customer wants to remove. */
19
+ paymentMethodId: string;
20
+ };
21
+ export type billingDeletePaymentMethodResult = {
22
+ /** The payment method that was removed. */
23
+ paymentMethodId: string;
24
+ };
25
+ export type billingSetPaymentMethodIntent = {
26
+ /** The account number of the customer's credit card. */
27
+ number: string;
28
+ /** The verification digits of the customer's credit card. */
29
+ cvv: string;
30
+ /** The month that the credit card expires. */
31
+ expiryMonth: string;
32
+ /** The year that the credit card expires. */
33
+ expiryYear: string;
34
+ /** The email that will receive invoices for the credit card. */
35
+ cardHolderEmail: string;
36
+ /** The name associated with the credit card. */
37
+ cardHolderName: string;
38
+ };
39
+ export type billingSetPaymentMethodIntentV2 = {
40
+ /** The id of the payment method that was created clientside. */
41
+ paymentMethodId: string;
42
+ /** The email that will receive invoices for the credit card. */
43
+ cardHolderEmail: string;
44
+ /** The name associated with the credit card. */
45
+ cardHolderName: string;
46
+ };
47
+ export type billingSetPaymentMethodResult = {
48
+ /** The last four digits of the credit card added. */
49
+ lastFour: string;
50
+ /** The name associated with the payment method. */
51
+ cardHolderName: string;
52
+ /** The email address associated with the payment method. */
53
+ cardHolderEmail: string;
54
+ };
55
+ export type datav1Tag = {
56
+ /** Unique identifier for a given Tag. */
57
+ tagId: string;
58
+ /** Human-readable name for a Tag. */
59
+ tagName: string;
60
+ tagType: v1TagType;
61
+ createdAt: externaldatav1Timestamp;
62
+ updatedAt: externaldatav1Timestamp;
63
+ };
64
+ export type externalactivityv1PolicyEvaluation = {
65
+ /** Unique identifier for a given policy evaluation. */
66
+ id: string;
67
+ /** Unique identifier for a given Activity. */
68
+ activityId: string;
69
+ /** Unique identifier for the Organization the Activity belongs to. */
70
+ organizationId: string;
71
+ /** Unique identifier for the Vote associated with this policy evaluation. */
72
+ voteId: string;
73
+ /** Detailed evaluation result for each Policy that was run. */
74
+ policyEvaluations: privateumpv1PolicyEvaluation[];
75
+ createdAt: externaldatav1Timestamp;
76
+ };
77
+ export type externaldatav1Address = {
78
+ format?: v1AddressFormat;
79
+ address?: string;
80
+ };
81
+ export type externaldatav1Credential = {
82
+ /** The public component of a cryptographic key pair used to sign messages and transactions. */
83
+ publicKey: string;
84
+ type: v1CredentialType;
85
+ };
86
+ export type externaldatav1Quorum = {
87
+ /** Count of unique approvals required to meet quorum. */
88
+ threshold: number;
89
+ /** Unique identifiers of quorum set members. */
90
+ userIds: string[];
91
+ };
92
+ export type externaldatav1SmartContractInterface = {
93
+ /** The Organization the Smart Contract Interface belongs to. */
94
+ organizationId: string;
95
+ /** Unique identifier for a given Smart Contract Interface (ABI or IDL). */
96
+ smartContractInterfaceId: string;
97
+ /** The address corresponding to the Smart Contract or Program. */
98
+ smartContractAddress: string;
99
+ /** The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
100
+ smartContractInterface: string;
101
+ /** The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
102
+ type: string;
103
+ /** The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
104
+ label: string;
105
+ /** The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
106
+ notes: string;
107
+ createdAt: externaldatav1Timestamp;
108
+ updatedAt: externaldatav1Timestamp;
109
+ };
110
+ export type externaldatav1Timestamp = {
111
+ seconds: string;
112
+ nanos: string;
113
+ };
114
+ export type immutableactivityv1Address = {
115
+ format?: v1AddressFormat;
116
+ address?: string;
117
+ };
118
+ export type privateumpv1PolicyEvaluation = {
119
+ policyId?: string;
120
+ outcome?: v1Outcome;
121
+ };
122
+ export type protobufAny = {
123
+ "@type"?: string;
124
+ [key: string]: any;
125
+ };
126
+ export type rpcStatus = {
127
+ code?: number;
128
+ message?: string;
129
+ details?: protobufAny[];
130
+ };
131
+ export type v1AcceptInvitationIntent = {
132
+ /** Unique identifier for a given Invitation object. */
133
+ invitationId: string;
134
+ /** Unique identifier for a given User. */
135
+ userId: string;
136
+ /** WebAuthN hardware devices that can be used to log in to the Turnkey web app. */
137
+ authenticator: v1AuthenticatorParams;
138
+ };
139
+ export type v1AcceptInvitationIntentV2 = {
140
+ /** Unique identifier for a given Invitation object. */
141
+ invitationId: string;
142
+ /** Unique identifier for a given User. */
143
+ userId: string;
144
+ /** WebAuthN hardware devices that can be used to log in to the Turnkey web app. */
145
+ authenticator: v1AuthenticatorParamsV2;
146
+ };
147
+ export type v1AcceptInvitationResult = {
148
+ /** Unique identifier for a given Invitation. */
149
+ invitationId: string;
150
+ /** Unique identifier for a given User. */
151
+ userId: string;
152
+ };
153
+ export type v1AccessType = "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
154
+ export type v1Activity = {
155
+ /** Unique identifier for a given Activity object. */
156
+ id: string;
157
+ /** Unique identifier for a given Organization. */
158
+ organizationId: string;
159
+ /** The current processing status of a specified Activity. */
160
+ status: v1ActivityStatus;
161
+ /** Type of Activity, such as Add User, or Sign Transaction. */
162
+ type: v1ActivityType;
163
+ /** Intent object crafted by Turnkey based on the user request, used to assess the permissibility of an action. */
164
+ intent: v1Intent;
165
+ /** Result of the intended action. */
166
+ result: v1Result;
167
+ /** A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata. */
168
+ votes: v1Vote[];
169
+ /** An artifact verifying a User's action. */
170
+ fingerprint: string;
171
+ canApprove: boolean;
172
+ canReject: boolean;
173
+ createdAt: externaldatav1Timestamp;
174
+ updatedAt: externaldatav1Timestamp;
175
+ /** Failure reason of the intended action. */
176
+ failure?: rpcStatus;
177
+ };
178
+ export type v1ActivityResponse = {
179
+ /** An action that can be taken within the Turnkey infrastructure. */
180
+ activity: v1Activity;
181
+ };
182
+ export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
183
+ export type v1ActivityType = "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_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG";
184
+ export type v1AddressFormat = "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | "ADDRESS_FORMAT_TRON" | "ADDRESS_FORMAT_SUI" | "ADDRESS_FORMAT_APTOS" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR" | "ADDRESS_FORMAT_SEI" | "ADDRESS_FORMAT_XLM" | "ADDRESS_FORMAT_DOGE_MAINNET" | "ADDRESS_FORMAT_DOGE_TESTNET" | "ADDRESS_FORMAT_TON_V3R2" | "ADDRESS_FORMAT_TON_V4R2" | "ADDRESS_FORMAT_TON_V5R1" | "ADDRESS_FORMAT_XRP";
185
+ export type v1ApiKey = {
186
+ /** A User credential that can be used to authenticate to Turnkey. */
187
+ credential: externaldatav1Credential;
188
+ /** Unique identifier for a given API Key. */
189
+ apiKeyId: string;
190
+ /** Human-readable name for an API Key. */
191
+ apiKeyName: string;
192
+ createdAt: externaldatav1Timestamp;
193
+ updatedAt: externaldatav1Timestamp;
194
+ /** Optional window (in seconds) indicating how long the API Key should last. */
195
+ expirationSeconds?: string;
196
+ };
197
+ export type v1ApiKeyCurve = "API_KEY_CURVE_P256" | "API_KEY_CURVE_SECP256K1" | "API_KEY_CURVE_ED25519";
198
+ export type v1ApiKeyParamsV2 = {
199
+ /** Human-readable name for an API Key. */
200
+ apiKeyName: string;
201
+ /** The public component of a cryptographic key pair used to sign messages and transactions. */
202
+ publicKey: string;
203
+ /** The curve type to be used for processing API key signatures. */
204
+ curveType: v1ApiKeyCurve;
205
+ /** Optional window (in seconds) indicating how long the API Key should last. */
206
+ expirationSeconds?: string;
207
+ };
208
+ export type v1ApiOnlyUserParams = {
209
+ /** The name of the new API-only User. */
210
+ userName: string;
211
+ /** The email address for this API-only User (optional). */
212
+ userEmail?: string;
213
+ /** A list of tags assigned to the new API-only User. This field, if not needed, should be an empty array in your request body. */
214
+ userTags: string[];
215
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
216
+ apiKeys: apiApiKeyParams[];
217
+ };
218
+ export type v1ApproveActivityIntent = {
219
+ /** An artifact verifying a User's action. */
220
+ fingerprint: string;
221
+ };
222
+ export type v1ApproveActivityRequest = {
223
+ type: string;
224
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
225
+ timestampMs: string;
226
+ /** Unique identifier for a given Organization. */
227
+ organizationId: string;
228
+ parameters: v1ApproveActivityIntent;
229
+ };
230
+ export type v1Attestation = {
231
+ /** The cbor encoded then base64 url encoded id of the credential. */
232
+ credentialId: string;
233
+ /** A base64 url encoded payload containing metadata about the signing context and the challenge. */
234
+ clientDataJson: string;
235
+ /** A base64 url encoded payload containing authenticator data and any attestation the webauthn provider chooses. */
236
+ attestationObject: string;
237
+ /** The type of authenticator transports. */
238
+ transports: v1AuthenticatorTransport[];
239
+ };
240
+ export type v1Authenticator = {
241
+ /** Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). */
242
+ transports: v1AuthenticatorTransport[];
243
+ attestationType: string;
244
+ /** Identifier indicating the type of the Security Key. */
245
+ aaguid: string;
246
+ /** Unique identifier for a WebAuthn credential. */
247
+ credentialId: string;
248
+ /** The type of Authenticator device. */
249
+ model: string;
250
+ /** A User credential that can be used to authenticate to Turnkey. */
251
+ credential: externaldatav1Credential;
252
+ /** Unique identifier for a given Authenticator. */
253
+ authenticatorId: string;
254
+ /** Human-readable name for an Authenticator. */
255
+ authenticatorName: string;
256
+ createdAt: externaldatav1Timestamp;
257
+ updatedAt: externaldatav1Timestamp;
258
+ };
259
+ export type v1AuthenticatorAttestationResponse = {
260
+ clientDataJson: string;
261
+ attestationObject: string;
262
+ transports?: v1AuthenticatorTransport[];
263
+ authenticatorAttachment?: string;
264
+ };
265
+ export type v1AuthenticatorParams = {
266
+ /** Human-readable name for an Authenticator. */
267
+ authenticatorName: string;
268
+ /** Unique identifier for a given User. */
269
+ userId: string;
270
+ attestation: v1PublicKeyCredentialWithAttestation;
271
+ /** Challenge presented for authentication purposes. */
272
+ challenge: string;
273
+ };
274
+ export type v1AuthenticatorParamsV2 = {
275
+ /** Human-readable name for an Authenticator. */
276
+ authenticatorName: string;
277
+ /** Challenge presented for authentication purposes. */
278
+ challenge: string;
279
+ /** The attestation that proves custody of the authenticator and provides metadata about it. */
280
+ attestation: v1Attestation;
281
+ };
282
+ export type v1AuthenticatorTransport = "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
283
+ export type v1Config = {
284
+ features?: v1Feature[];
285
+ quorum?: externaldatav1Quorum;
286
+ };
287
+ export type v1CreateApiKeysIntent = {
288
+ /** A list of API Keys. */
289
+ apiKeys: apiApiKeyParams[];
290
+ /** Unique identifier for a given User. */
291
+ userId: string;
292
+ };
293
+ export type v1CreateApiKeysIntentV2 = {
294
+ /** A list of API Keys. */
295
+ apiKeys: v1ApiKeyParamsV2[];
296
+ /** Unique identifier for a given User. */
297
+ userId: string;
298
+ };
299
+ export type v1CreateApiKeysRequest = {
300
+ type: string;
301
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
302
+ timestampMs: string;
303
+ /** Unique identifier for a given Organization. */
304
+ organizationId: string;
305
+ parameters: v1CreateApiKeysIntentV2;
306
+ };
307
+ export type v1CreateApiKeysResult = {
308
+ /** A list of API Key IDs. */
309
+ apiKeyIds: string[];
310
+ };
311
+ export type v1CreateApiOnlyUsersIntent = {
312
+ /** A list of API-only Users to create. */
313
+ apiOnlyUsers: v1ApiOnlyUserParams[];
314
+ };
315
+ export type v1CreateApiOnlyUsersRequest = {
316
+ type: string;
317
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
318
+ timestampMs: string;
319
+ /** Unique identifier for a given Organization. */
320
+ organizationId: string;
321
+ parameters: v1CreateApiOnlyUsersIntent;
322
+ };
323
+ export type v1CreateApiOnlyUsersResult = {
324
+ /** A list of API-only User IDs. */
325
+ userIds: string[];
326
+ };
327
+ export type v1CreateAuthenticatorsIntent = {
328
+ /** A list of Authenticators. */
329
+ authenticators: v1AuthenticatorParams[];
330
+ /** Unique identifier for a given User. */
331
+ userId: string;
332
+ };
333
+ export type v1CreateAuthenticatorsIntentV2 = {
334
+ /** A list of Authenticators. */
335
+ authenticators: v1AuthenticatorParamsV2[];
336
+ /** Unique identifier for a given User. */
337
+ userId: string;
338
+ };
339
+ export type v1CreateAuthenticatorsRequest = {
340
+ type: string;
341
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
342
+ timestampMs: string;
343
+ /** Unique identifier for a given Organization. */
344
+ organizationId: string;
345
+ parameters: v1CreateAuthenticatorsIntentV2;
346
+ };
347
+ export type v1CreateAuthenticatorsResult = {
348
+ /** A list of Authenticator IDs. */
349
+ authenticatorIds: string[];
350
+ };
351
+ export type v1CreateInvitationsIntent = {
352
+ /** A list of Invitations. */
353
+ invitations: v1InvitationParams[];
354
+ };
355
+ export type v1CreateInvitationsRequest = {
356
+ type: string;
357
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
358
+ timestampMs: string;
359
+ /** Unique identifier for a given Organization. */
360
+ organizationId: string;
361
+ parameters: v1CreateInvitationsIntent;
362
+ };
363
+ export type v1CreateInvitationsResult = {
364
+ /** A list of Invitation IDs */
365
+ invitationIds: string[];
366
+ };
367
+ export type v1CreateOauthProvidersIntent = {
368
+ /** The ID of the User to add an Oauth provider to */
369
+ userId: string;
370
+ /** A list of Oauth providers. */
371
+ oauthProviders: v1OauthProviderParams[];
372
+ };
373
+ export type v1CreateOauthProvidersRequest = {
374
+ type: string;
375
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
376
+ timestampMs: string;
377
+ /** Unique identifier for a given Organization. */
378
+ organizationId: string;
379
+ parameters: v1CreateOauthProvidersIntent;
380
+ };
381
+ export type v1CreateOauthProvidersResult = {
382
+ /** A list of unique identifiers for Oauth Providers */
383
+ providerIds: string[];
384
+ };
385
+ export type v1CreateOrganizationIntent = {
386
+ /** Human-readable name for an Organization. */
387
+ organizationName: string;
388
+ /** The root user's email address. */
389
+ rootEmail: string;
390
+ /** The root user's Authenticator. */
391
+ rootAuthenticator: v1AuthenticatorParams;
392
+ /** Unique identifier for the root user object. */
393
+ rootUserId?: string;
394
+ };
395
+ export type v1CreateOrganizationIntentV2 = {
396
+ /** Human-readable name for an Organization. */
397
+ organizationName: string;
398
+ /** The root user's email address. */
399
+ rootEmail: string;
400
+ /** The root user's Authenticator. */
401
+ rootAuthenticator: v1AuthenticatorParamsV2;
402
+ /** Unique identifier for the root user object. */
403
+ rootUserId?: string;
404
+ };
405
+ export type v1CreateOrganizationResult = {
406
+ /** Unique identifier for a given Organization. */
407
+ organizationId: string;
408
+ };
409
+ export type v1CreatePoliciesIntent = {
410
+ /** An array of policy intents to be created. */
411
+ policies: v1CreatePolicyIntentV3[];
412
+ };
413
+ export type v1CreatePoliciesRequest = {
414
+ type: string;
415
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
416
+ timestampMs: string;
417
+ /** Unique identifier for a given Organization. */
418
+ organizationId: string;
419
+ parameters: v1CreatePoliciesIntent;
420
+ };
421
+ export type v1CreatePoliciesResult = {
422
+ /** A list of unique identifiers for the created policies. */
423
+ policyIds: string[];
424
+ };
425
+ export type v1CreatePolicyIntent = {
426
+ /** Human-readable name for a Policy. */
427
+ policyName: string;
428
+ /** A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
429
+ selectors: v1Selector[];
430
+ /** The instruction to DENY or ALLOW a particular activity following policy selector(s). */
431
+ effect: v1Effect;
432
+ notes?: string;
433
+ };
434
+ export type v1CreatePolicyIntentV2 = {
435
+ /** Human-readable name for a Policy. */
436
+ policyName: string;
437
+ /** A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
438
+ selectors: v1SelectorV2[];
439
+ /** Whether to ALLOW or DENY requests that match the condition and consensus requirements. */
440
+ effect: v1Effect;
441
+ notes?: string;
442
+ };
443
+ export type v1CreatePolicyIntentV3 = {
444
+ /** Human-readable name for a Policy. */
445
+ policyName: string;
446
+ /** The instruction to DENY or ALLOW an activity. */
447
+ effect: v1Effect;
448
+ /** The condition expression that triggers the Effect */
449
+ condition?: string;
450
+ /** The consensus expression that triggers the Effect */
451
+ consensus?: string;
452
+ notes?: string;
453
+ };
454
+ export type v1CreatePolicyRequest = {
455
+ type: string;
456
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
457
+ timestampMs: string;
458
+ /** Unique identifier for a given Organization. */
459
+ organizationId: string;
460
+ parameters: v1CreatePolicyIntentV3;
461
+ };
462
+ export type v1CreatePolicyResult = {
463
+ /** Unique identifier for a given Policy. */
464
+ policyId: string;
465
+ };
466
+ export type v1CreatePrivateKeyTagIntent = {
467
+ /** Human-readable name for a Private Key Tag. */
468
+ privateKeyTagName: string;
469
+ /** A list of Private Key IDs. */
470
+ privateKeyIds: string[];
471
+ };
472
+ export type v1CreatePrivateKeyTagRequest = {
473
+ type: string;
474
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
475
+ timestampMs: string;
476
+ /** Unique identifier for a given Organization. */
477
+ organizationId: string;
478
+ parameters: v1CreatePrivateKeyTagIntent;
479
+ };
480
+ export type v1CreatePrivateKeyTagResult = {
481
+ /** Unique identifier for a given Private Key Tag. */
482
+ privateKeyTagId: string;
483
+ /** A list of Private Key IDs. */
484
+ privateKeyIds: string[];
485
+ };
486
+ export type v1CreatePrivateKeysIntent = {
487
+ /** A list of Private Keys. */
488
+ privateKeys: v1PrivateKeyParams[];
489
+ };
490
+ export type v1CreatePrivateKeysIntentV2 = {
491
+ /** A list of Private Keys. */
492
+ privateKeys: v1PrivateKeyParams[];
493
+ };
494
+ export type v1CreatePrivateKeysRequest = {
495
+ type: string;
496
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
497
+ timestampMs: string;
498
+ /** Unique identifier for a given Organization. */
499
+ organizationId: string;
500
+ parameters: v1CreatePrivateKeysIntentV2;
501
+ };
502
+ export type v1CreatePrivateKeysResult = {
503
+ /** A list of Private Key IDs. */
504
+ privateKeyIds: string[];
505
+ };
506
+ export type v1CreatePrivateKeysResultV2 = {
507
+ /** A list of Private Key IDs and addresses. */
508
+ privateKeys: v1PrivateKeyResult[];
509
+ };
510
+ export type v1CreateReadOnlySessionIntent = {};
511
+ export type v1CreateReadOnlySessionRequest = {
512
+ type: string;
513
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
514
+ timestampMs: string;
515
+ /** Unique identifier for a given Organization. */
516
+ organizationId: string;
517
+ parameters: v1CreateReadOnlySessionIntent;
518
+ };
519
+ export type v1CreateReadOnlySessionResult = {
520
+ /** Unique identifier for a given Organization. If the request is being made by a user and their Sub-Organization ID is unknown, this can be the Parent Organization ID. However, using the Sub-Organization ID is preferred due to performance reasons. */
521
+ organizationId: string;
522
+ /** Human-readable name for an Organization. */
523
+ organizationName: string;
524
+ /** Unique identifier for a given User. */
525
+ userId: string;
526
+ /** Human-readable name for a User. */
527
+ username: string;
528
+ /** String representing a read only session */
529
+ session: string;
530
+ /** UTC timestamp in seconds representing the expiry time for the read only session. */
531
+ sessionExpiry: string;
532
+ };
533
+ export type v1CreateReadWriteSessionIntent = {
534
+ /** Client-side public key generated by the user, to which the read write session bundle (credentials) will be encrypted. */
535
+ targetPublicKey: string;
536
+ /** Email of the user to create a read write session for */
537
+ email: string;
538
+ /** Optional human-readable name for an API Key. If none provided, default to Read Write Session - <Timestamp> */
539
+ apiKeyName?: string;
540
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
541
+ expirationSeconds?: string;
542
+ };
543
+ export type v1CreateReadWriteSessionIntentV2 = {
544
+ /** Client-side public key generated by the user, to which the read write session bundle (credentials) will be encrypted. */
545
+ targetPublicKey: string;
546
+ /** Unique identifier for a given User. */
547
+ userId?: string;
548
+ /** Optional human-readable name for an API Key. If none provided, default to Read Write Session - <Timestamp> */
549
+ apiKeyName?: string;
550
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
551
+ expirationSeconds?: string;
552
+ /** Invalidate all other previously generated ReadWriteSession API keys */
553
+ invalidateExisting?: boolean;
554
+ };
555
+ export type v1CreateReadWriteSessionRequest = {
556
+ type: string;
557
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
558
+ timestampMs: string;
559
+ /** Unique identifier for a given Organization. */
560
+ organizationId: string;
561
+ parameters: v1CreateReadWriteSessionIntentV2;
562
+ };
563
+ export type v1CreateReadWriteSessionResult = {
564
+ /** Unique identifier for a given Organization. If the request is being made by a user and their Sub-Organization ID is unknown, this can be the Parent Organization ID. However, using the Sub-Organization ID is preferred due to performance reasons. */
565
+ organizationId: string;
566
+ /** Human-readable name for an Organization. */
567
+ organizationName: string;
568
+ /** Unique identifier for a given User. */
569
+ userId: string;
570
+ /** Human-readable name for a User. */
571
+ username: string;
572
+ /** Unique identifier for the created API key. */
573
+ apiKeyId: string;
574
+ /** HPKE encrypted credential bundle */
575
+ credentialBundle: string;
576
+ };
577
+ export type v1CreateReadWriteSessionResultV2 = {
578
+ /** Unique identifier for a given Organization. If the request is being made by a user and their Sub-Organization ID is unknown, this can be the Parent Organization ID. However, using the Sub-Organization ID is preferred due to performance reasons. */
579
+ organizationId: string;
580
+ /** Human-readable name for an Organization. */
581
+ organizationName: string;
582
+ /** Unique identifier for a given User. */
583
+ userId: string;
584
+ /** Human-readable name for a User. */
585
+ username: string;
586
+ /** Unique identifier for the created API key. */
587
+ apiKeyId: string;
588
+ /** HPKE encrypted credential bundle */
589
+ credentialBundle: string;
590
+ };
591
+ export type v1CreateSmartContractInterfaceIntent = {
592
+ /** Corresponding contract address or program ID */
593
+ smartContractAddress: string;
594
+ /** ABI/IDL as a JSON string */
595
+ smartContractInterface: string;
596
+ type: v1SmartContractInterfaceType;
597
+ /** Human-readable name for a Smart Contract Interface. */
598
+ label: string;
599
+ /** Notes for a Smart Contract Interface. */
600
+ notes?: string;
601
+ };
602
+ export type v1CreateSmartContractInterfaceRequest = {
603
+ type: string;
604
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
605
+ timestampMs: string;
606
+ /** Unique identifier for a given Organization. */
607
+ organizationId: string;
608
+ parameters: v1CreateSmartContractInterfaceIntent;
609
+ };
610
+ export type v1CreateSmartContractInterfaceResult = {
611
+ /** The ID of the created Smart Contract Interface. */
612
+ smartContractInterfaceId: string;
613
+ };
614
+ export type v1CreateSubOrganizationIntent = {
615
+ /** Name for this sub-organization */
616
+ name: string;
617
+ /** Root User authenticator for this new sub-organization */
618
+ rootAuthenticator: v1AuthenticatorParamsV2;
619
+ };
620
+ export type v1CreateSubOrganizationIntentV2 = {
621
+ /** Name for this sub-organization */
622
+ subOrganizationName: string;
623
+ /** Root users to create within this sub-organization */
624
+ rootUsers: v1RootUserParams[];
625
+ /** The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users */
626
+ rootQuorumThreshold: number;
627
+ };
628
+ export type v1CreateSubOrganizationIntentV3 = {
629
+ /** Name for this sub-organization */
630
+ subOrganizationName: string;
631
+ /** Root users to create within this sub-organization */
632
+ rootUsers: v1RootUserParams[];
633
+ /** The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users */
634
+ rootQuorumThreshold: number;
635
+ /** A list of Private Keys. */
636
+ privateKeys: v1PrivateKeyParams[];
637
+ };
638
+ export type v1CreateSubOrganizationIntentV4 = {
639
+ /** Name for this sub-organization */
640
+ subOrganizationName: string;
641
+ /** Root users to create within this sub-organization */
642
+ rootUsers: v1RootUserParams[];
643
+ /** The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users */
644
+ rootQuorumThreshold: number;
645
+ /** The wallet to create for the sub-organization */
646
+ wallet?: v1WalletParams;
647
+ /** Disable email recovery for the sub-organization */
648
+ disableEmailRecovery?: boolean;
649
+ /** Disable email auth for the sub-organization */
650
+ disableEmailAuth?: boolean;
651
+ };
652
+ export type v1CreateSubOrganizationIntentV5 = {
653
+ /** Name for this sub-organization */
654
+ subOrganizationName: string;
655
+ /** Root users to create within this sub-organization */
656
+ rootUsers: v1RootUserParamsV2[];
657
+ /** The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users */
658
+ rootQuorumThreshold: number;
659
+ /** The wallet to create for the sub-organization */
660
+ wallet?: v1WalletParams;
661
+ /** Disable email recovery for the sub-organization */
662
+ disableEmailRecovery?: boolean;
663
+ /** Disable email auth for the sub-organization */
664
+ disableEmailAuth?: boolean;
665
+ };
666
+ export type v1CreateSubOrganizationIntentV6 = {
667
+ /** Name for this sub-organization */
668
+ subOrganizationName: string;
669
+ /** Root users to create within this sub-organization */
670
+ rootUsers: v1RootUserParamsV3[];
671
+ /** The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users */
672
+ rootQuorumThreshold: number;
673
+ /** The wallet to create for the sub-organization */
674
+ wallet?: v1WalletParams;
675
+ /** Disable email recovery for the sub-organization */
676
+ disableEmailRecovery?: boolean;
677
+ /** Disable email auth for the sub-organization */
678
+ disableEmailAuth?: boolean;
679
+ };
680
+ export type v1CreateSubOrganizationIntentV7 = {
681
+ /** Name for this sub-organization */
682
+ subOrganizationName: string;
683
+ /** Root users to create within this sub-organization */
684
+ rootUsers: v1RootUserParamsV4[];
685
+ /** The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users */
686
+ rootQuorumThreshold: number;
687
+ /** The wallet to create for the sub-organization */
688
+ wallet?: v1WalletParams;
689
+ /** Disable email recovery for the sub-organization */
690
+ disableEmailRecovery?: boolean;
691
+ /** Disable email auth for the sub-organization */
692
+ disableEmailAuth?: boolean;
693
+ /** Disable OTP SMS auth for the sub-organization */
694
+ disableSmsAuth?: boolean;
695
+ /** Disable OTP email auth for the sub-organization */
696
+ disableOtpEmailAuth?: boolean;
697
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
698
+ verificationToken?: string;
699
+ };
700
+ export type v1CreateSubOrganizationRequest = {
701
+ type: string;
702
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
703
+ timestampMs: string;
704
+ /** Unique identifier for a given Organization. */
705
+ organizationId: string;
706
+ parameters: v1CreateSubOrganizationIntentV7;
707
+ };
708
+ export type v1CreateSubOrganizationResult = {
709
+ subOrganizationId: string;
710
+ rootUserIds?: string[];
711
+ };
712
+ export type v1CreateSubOrganizationResultV3 = {
713
+ subOrganizationId: string;
714
+ /** A list of Private Key IDs and addresses. */
715
+ privateKeys: v1PrivateKeyResult[];
716
+ rootUserIds?: string[];
717
+ };
718
+ export type v1CreateSubOrganizationResultV4 = {
719
+ subOrganizationId: string;
720
+ wallet?: v1WalletResult;
721
+ rootUserIds?: string[];
722
+ };
723
+ export type v1CreateSubOrganizationResultV5 = {
724
+ subOrganizationId: string;
725
+ wallet?: v1WalletResult;
726
+ rootUserIds?: string[];
727
+ };
728
+ export type v1CreateSubOrganizationResultV6 = {
729
+ subOrganizationId: string;
730
+ wallet?: v1WalletResult;
731
+ rootUserIds?: string[];
732
+ };
733
+ export type v1CreateSubOrganizationResultV7 = {
734
+ subOrganizationId: string;
735
+ wallet?: v1WalletResult;
736
+ rootUserIds?: string[];
737
+ };
738
+ export type v1CreateUserTagIntent = {
739
+ /** Human-readable name for a User Tag. */
740
+ userTagName: string;
741
+ /** A list of User IDs. */
742
+ userIds: string[];
743
+ };
744
+ export type v1CreateUserTagRequest = {
745
+ type: string;
746
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
747
+ timestampMs: string;
748
+ /** Unique identifier for a given Organization. */
749
+ organizationId: string;
750
+ parameters: v1CreateUserTagIntent;
751
+ };
752
+ export type v1CreateUserTagResult = {
753
+ /** Unique identifier for a given User Tag. */
754
+ userTagId: string;
755
+ /** A list of User IDs. */
756
+ userIds: string[];
757
+ };
758
+ export type v1CreateUsersIntent = {
759
+ /** A list of Users. */
760
+ users: v1UserParams[];
761
+ };
762
+ export type v1CreateUsersIntentV2 = {
763
+ /** A list of Users. */
764
+ users: v1UserParamsV2[];
765
+ };
766
+ export type v1CreateUsersIntentV3 = {
767
+ /** A list of Users. */
768
+ users: v1UserParamsV3[];
769
+ };
770
+ export type v1CreateUsersRequest = {
771
+ type: string;
772
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
773
+ timestampMs: string;
774
+ /** Unique identifier for a given Organization. */
775
+ organizationId: string;
776
+ parameters: v1CreateUsersIntentV3;
777
+ };
778
+ export type v1CreateUsersResult = {
779
+ /** A list of User IDs. */
780
+ userIds: string[];
781
+ };
782
+ export type v1CreateWalletAccountsIntent = {
783
+ /** Unique identifier for a given Wallet. */
784
+ walletId: string;
785
+ /** A list of wallet Accounts. */
786
+ accounts: v1WalletAccountParams[];
787
+ };
788
+ export type v1CreateWalletAccountsRequest = {
789
+ type: string;
790
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
791
+ timestampMs: string;
792
+ /** Unique identifier for a given Organization. */
793
+ organizationId: string;
794
+ parameters: v1CreateWalletAccountsIntent;
795
+ };
796
+ export type v1CreateWalletAccountsResult = {
797
+ /** A list of derived addresses. */
798
+ addresses: string[];
799
+ };
800
+ export type v1CreateWalletIntent = {
801
+ /** Human-readable name for a Wallet. */
802
+ walletName: string;
803
+ /** A list of wallet Accounts. This field, if not needed, should be an empty array in your request body. */
804
+ accounts: v1WalletAccountParams[];
805
+ /** Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24. */
806
+ mnemonicLength?: number;
807
+ };
808
+ export type v1CreateWalletRequest = {
809
+ type: string;
810
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
811
+ timestampMs: string;
812
+ /** Unique identifier for a given Organization. */
813
+ organizationId: string;
814
+ parameters: v1CreateWalletIntent;
815
+ };
816
+ export type v1CreateWalletResult = {
817
+ /** Unique identifier for a Wallet. */
818
+ walletId: string;
819
+ /** A list of account addresses. */
820
+ addresses: string[];
821
+ };
822
+ export type v1CredPropsAuthenticationExtensionsClientOutputs = {
823
+ rk: boolean;
824
+ };
825
+ export type v1CredentialType = "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_SECP256K1" | "CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_ED25519" | "CREDENTIAL_TYPE_OTP_AUTH_KEY_P256" | "CREDENTIAL_TYPE_READ_WRITE_SESSION_KEY_P256" | "CREDENTIAL_TYPE_OAUTH_KEY_P256" | "CREDENTIAL_TYPE_LOGIN";
826
+ export type v1Curve = "CURVE_SECP256K1" | "CURVE_ED25519";
827
+ export type v1DeleteApiKeysIntent = {
828
+ /** Unique identifier for a given User. */
829
+ userId: string;
830
+ /** A list of API Key IDs. */
831
+ apiKeyIds: string[];
832
+ };
833
+ export type v1DeleteApiKeysRequest = {
834
+ type: string;
835
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
836
+ timestampMs: string;
837
+ /** Unique identifier for a given Organization. */
838
+ organizationId: string;
839
+ parameters: v1DeleteApiKeysIntent;
840
+ };
841
+ export type v1DeleteApiKeysResult = {
842
+ /** A list of API Key IDs. */
843
+ apiKeyIds: string[];
844
+ };
845
+ export type v1DeleteAuthenticatorsIntent = {
846
+ /** Unique identifier for a given User. */
847
+ userId: string;
848
+ /** A list of Authenticator IDs. */
849
+ authenticatorIds: string[];
850
+ };
851
+ export type v1DeleteAuthenticatorsRequest = {
852
+ type: string;
853
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
854
+ timestampMs: string;
855
+ /** Unique identifier for a given Organization. */
856
+ organizationId: string;
857
+ parameters: v1DeleteAuthenticatorsIntent;
858
+ };
859
+ export type v1DeleteAuthenticatorsResult = {
860
+ /** Unique identifier for a given Authenticator. */
861
+ authenticatorIds: string[];
862
+ };
863
+ export type v1DeleteInvitationIntent = {
864
+ /** Unique identifier for a given Invitation object. */
865
+ invitationId: string;
866
+ };
867
+ export type v1DeleteInvitationRequest = {
868
+ type: string;
869
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
870
+ timestampMs: string;
871
+ /** Unique identifier for a given Organization. */
872
+ organizationId: string;
873
+ parameters: v1DeleteInvitationIntent;
874
+ };
875
+ export type v1DeleteInvitationResult = {
876
+ /** Unique identifier for a given Invitation. */
877
+ invitationId: string;
878
+ };
879
+ export type v1DeleteOauthProvidersIntent = {
880
+ /** The ID of the User to remove an Oauth provider from */
881
+ userId: string;
882
+ /** Unique identifier for a given Provider. */
883
+ providerIds: string[];
884
+ };
885
+ export type v1DeleteOauthProvidersRequest = {
886
+ type: string;
887
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
888
+ timestampMs: string;
889
+ /** Unique identifier for a given Organization. */
890
+ organizationId: string;
891
+ parameters: v1DeleteOauthProvidersIntent;
892
+ };
893
+ export type v1DeleteOauthProvidersResult = {
894
+ /** A list of unique identifiers for Oauth Providers */
895
+ providerIds: string[];
896
+ };
897
+ export type v1DeleteOrganizationIntent = {
898
+ /** Unique identifier for a given Organization. */
899
+ organizationId: string;
900
+ };
901
+ export type v1DeleteOrganizationResult = {
902
+ /** Unique identifier for a given Organization. */
903
+ organizationId: string;
904
+ };
905
+ export type v1DeletePolicyIntent = {
906
+ /** Unique identifier for a given Policy. */
907
+ policyId: string;
908
+ };
909
+ export type v1DeletePolicyRequest = {
910
+ type: string;
911
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
912
+ timestampMs: string;
913
+ /** Unique identifier for a given Organization. */
914
+ organizationId: string;
915
+ parameters: v1DeletePolicyIntent;
916
+ };
917
+ export type v1DeletePolicyResult = {
918
+ /** Unique identifier for a given Policy. */
919
+ policyId: string;
920
+ };
921
+ export type v1DeletePrivateKeyTagsIntent = {
922
+ /** A list of Private Key Tag IDs. */
923
+ privateKeyTagIds: string[];
924
+ };
925
+ export type v1DeletePrivateKeyTagsRequest = {
926
+ type: string;
927
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
928
+ timestampMs: string;
929
+ /** Unique identifier for a given Organization. */
930
+ organizationId: string;
931
+ parameters: v1DeletePrivateKeyTagsIntent;
932
+ };
933
+ export type v1DeletePrivateKeyTagsResult = {
934
+ /** A list of Private Key Tag IDs. */
935
+ privateKeyTagIds: string[];
936
+ /** A list of Private Key IDs. */
937
+ privateKeyIds: string[];
938
+ };
939
+ export type v1DeletePrivateKeysIntent = {
940
+ /** List of unique identifiers for private keys within an organization */
941
+ privateKeyIds: string[];
942
+ /** Optional parameter for deleting the private keys, even if any have not been previously exported. If they have been exported, this field is ignored. */
943
+ deleteWithoutExport?: boolean;
944
+ };
945
+ export type v1DeletePrivateKeysRequest = {
946
+ type: string;
947
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
948
+ timestampMs: string;
949
+ /** Unique identifier for a given Organization. */
950
+ organizationId: string;
951
+ parameters: v1DeletePrivateKeysIntent;
952
+ };
953
+ export type v1DeletePrivateKeysResult = {
954
+ /** A list of private key unique identifiers that were removed */
955
+ privateKeyIds: string[];
956
+ };
957
+ export type v1DeleteSmartContractInterfaceIntent = {
958
+ /** The ID of a Smart Contract Interface intended for deletion. */
959
+ smartContractInterfaceId: string;
960
+ };
961
+ export type v1DeleteSmartContractInterfaceRequest = {
962
+ type: string;
963
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
964
+ timestampMs: string;
965
+ /** Unique identifier for a given Organization. */
966
+ organizationId: string;
967
+ parameters: v1DeleteSmartContractInterfaceIntent;
968
+ };
969
+ export type v1DeleteSmartContractInterfaceResult = {
970
+ /** The ID of the deleted Smart Contract Interface. */
971
+ smartContractInterfaceId: string;
972
+ };
973
+ export type v1DeleteSubOrganizationIntent = {
974
+ /** Sub-organization deletion, by default, requires associated wallets and private keys to be exported for security reasons. Set this boolean to true to force sub-organization deletion even if some wallets or private keys within it have not been exported yet. Default: false. */
975
+ deleteWithoutExport?: boolean;
976
+ };
977
+ export type v1DeleteSubOrganizationRequest = {
978
+ type: string;
979
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
980
+ timestampMs: string;
981
+ /** Unique identifier for a given Organization. */
982
+ organizationId: string;
983
+ parameters: v1DeleteSubOrganizationIntent;
984
+ };
985
+ export type v1DeleteSubOrganizationResult = {
986
+ /** Unique identifier of the sub organization that was removed */
987
+ subOrganizationUuid: string;
988
+ };
989
+ export type v1DeleteUserTagsIntent = {
990
+ /** A list of User Tag IDs. */
991
+ userTagIds: string[];
992
+ };
993
+ export type v1DeleteUserTagsRequest = {
994
+ type: string;
995
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
996
+ timestampMs: string;
997
+ /** Unique identifier for a given Organization. */
998
+ organizationId: string;
999
+ parameters: v1DeleteUserTagsIntent;
1000
+ };
1001
+ export type v1DeleteUserTagsResult = {
1002
+ /** A list of User Tag IDs. */
1003
+ userTagIds: string[];
1004
+ /** A list of User IDs. */
1005
+ userIds: string[];
1006
+ };
1007
+ export type v1DeleteUsersIntent = {
1008
+ /** A list of User IDs. */
1009
+ userIds: string[];
1010
+ };
1011
+ export type v1DeleteUsersRequest = {
1012
+ type: string;
1013
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1014
+ timestampMs: string;
1015
+ /** Unique identifier for a given Organization. */
1016
+ organizationId: string;
1017
+ parameters: v1DeleteUsersIntent;
1018
+ };
1019
+ export type v1DeleteUsersResult = {
1020
+ /** A list of User IDs. */
1021
+ userIds: string[];
1022
+ };
1023
+ export type v1DeleteWalletsIntent = {
1024
+ /** List of unique identifiers for wallets within an organization */
1025
+ walletIds: string[];
1026
+ /** Optional parameter for deleting the wallets, even if any have not been previously exported. If they have been exported, this field is ignored. */
1027
+ deleteWithoutExport?: boolean;
1028
+ };
1029
+ export type v1DeleteWalletsRequest = {
1030
+ type: string;
1031
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1032
+ timestampMs: string;
1033
+ /** Unique identifier for a given Organization. */
1034
+ organizationId: string;
1035
+ parameters: v1DeleteWalletsIntent;
1036
+ };
1037
+ export type v1DeleteWalletsResult = {
1038
+ /** A list of wallet unique identifiers that were removed */
1039
+ walletIds: string[];
1040
+ };
1041
+ export type v1DisableAuthProxyIntent = {};
1042
+ export type v1DisableAuthProxyResult = {};
1043
+ export type v1DisablePrivateKeyIntent = {
1044
+ /** Unique identifier for a given Private Key. */
1045
+ privateKeyId: string;
1046
+ };
1047
+ export type v1DisablePrivateKeyResult = {
1048
+ /** Unique identifier for a given Private Key. */
1049
+ privateKeyId: string;
1050
+ };
1051
+ export type v1Effect = "EFFECT_ALLOW" | "EFFECT_DENY";
1052
+ export type v1EmailAuthIntent = {
1053
+ /** Email of the authenticating user. */
1054
+ email: string;
1055
+ /** Client-side public key generated by the user, to which the email auth bundle (credentials) will be encrypted. */
1056
+ targetPublicKey: string;
1057
+ /** Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
1058
+ apiKeyName?: string;
1059
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
1060
+ expirationSeconds?: string;
1061
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
1062
+ emailCustomization?: v1EmailCustomizationParams;
1063
+ /** Invalidate all other previously generated Email Auth API keys */
1064
+ invalidateExisting?: boolean;
1065
+ /** Optional custom email address from which to send the email */
1066
+ sendFromEmailAddress?: string;
1067
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
1068
+ sendFromEmailSenderName?: string;
1069
+ /** Optional custom email address to use as reply-to */
1070
+ replyToEmailAddress?: string;
1071
+ };
1072
+ export type v1EmailAuthIntentV2 = {
1073
+ /** Email of the authenticating user. */
1074
+ email: string;
1075
+ /** Client-side public key generated by the user, to which the email auth bundle (credentials) will be encrypted. */
1076
+ targetPublicKey: string;
1077
+ /** Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
1078
+ apiKeyName?: string;
1079
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
1080
+ expirationSeconds?: string;
1081
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
1082
+ emailCustomization?: v1EmailCustomizationParams;
1083
+ /** Invalidate all other previously generated Email Auth API keys */
1084
+ invalidateExisting?: boolean;
1085
+ /** Optional custom email address from which to send the email */
1086
+ sendFromEmailAddress?: string;
1087
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
1088
+ sendFromEmailSenderName?: string;
1089
+ /** Optional custom email address to use as reply-to */
1090
+ replyToEmailAddress?: string;
1091
+ };
1092
+ export type v1EmailAuthRequest = {
1093
+ type: string;
1094
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1095
+ timestampMs: string;
1096
+ /** Unique identifier for a given Organization. */
1097
+ organizationId: string;
1098
+ parameters: v1EmailAuthIntentV2;
1099
+ };
1100
+ export type v1EmailAuthResult = {
1101
+ /** Unique identifier for the authenticating User. */
1102
+ userId: string;
1103
+ /** Unique identifier for the created API key. */
1104
+ apiKeyId: string;
1105
+ };
1106
+ export type v1EmailCustomizationParams = {
1107
+ /** The name of the application. */
1108
+ appName?: string;
1109
+ /** A URL pointing to a logo in PNG format. Note this logo will be resized to fit into 340px x 124px. */
1110
+ logoUrl?: string;
1111
+ /** A template for the URL to be used in a magic link button, e.g. `https://dapp.xyz/%s`. The auth bundle will be interpolated into the `%s`. */
1112
+ magicLinkTemplate?: string;
1113
+ /** JSON object containing key/value pairs to be used with custom templates. */
1114
+ templateVariables?: string;
1115
+ /** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
1116
+ templateId?: string;
1117
+ };
1118
+ export type v1EnableAuthProxyIntent = {};
1119
+ export type v1EnableAuthProxyResult = {
1120
+ /** A User ID with permission to initiate authentication. */
1121
+ userId: string;
1122
+ };
1123
+ export type v1ExportPrivateKeyIntent = {
1124
+ /** Unique identifier for a given Private Key. */
1125
+ privateKeyId: string;
1126
+ /** Client-side public key generated by the user, to which the export bundle will be encrypted. */
1127
+ targetPublicKey: string;
1128
+ };
1129
+ export type v1ExportPrivateKeyRequest = {
1130
+ type: string;
1131
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1132
+ timestampMs: string;
1133
+ /** Unique identifier for a given Organization. */
1134
+ organizationId: string;
1135
+ parameters: v1ExportPrivateKeyIntent;
1136
+ };
1137
+ export type v1ExportPrivateKeyResult = {
1138
+ /** Unique identifier for a given Private Key. */
1139
+ privateKeyId: string;
1140
+ /** Export bundle containing a private key encrypted to the client's target public key. */
1141
+ exportBundle: string;
1142
+ };
1143
+ export type v1ExportWalletAccountIntent = {
1144
+ /** Address to identify Wallet Account. */
1145
+ address: string;
1146
+ /** Client-side public key generated by the user, to which the export bundle will be encrypted. */
1147
+ targetPublicKey: string;
1148
+ };
1149
+ export type v1ExportWalletAccountRequest = {
1150
+ type: string;
1151
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1152
+ timestampMs: string;
1153
+ /** Unique identifier for a given Organization. */
1154
+ organizationId: string;
1155
+ parameters: v1ExportWalletAccountIntent;
1156
+ };
1157
+ export type v1ExportWalletAccountResult = {
1158
+ /** Address to identify Wallet Account. */
1159
+ address: string;
1160
+ /** Export bundle containing a private key encrypted by the client's target public key. */
1161
+ exportBundle: string;
1162
+ };
1163
+ export type v1ExportWalletIntent = {
1164
+ /** Unique identifier for a given Wallet. */
1165
+ walletId: string;
1166
+ /** Client-side public key generated by the user, to which the export bundle will be encrypted. */
1167
+ targetPublicKey: string;
1168
+ /** The language of the mnemonic to export. Defaults to English. */
1169
+ language?: v1MnemonicLanguage;
1170
+ };
1171
+ export type v1ExportWalletRequest = {
1172
+ type: string;
1173
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1174
+ timestampMs: string;
1175
+ /** Unique identifier for a given Organization. */
1176
+ organizationId: string;
1177
+ parameters: v1ExportWalletIntent;
1178
+ };
1179
+ export type v1ExportWalletResult = {
1180
+ /** Unique identifier for a given Wallet. */
1181
+ walletId: string;
1182
+ /** Export bundle containing a wallet mnemonic + optional newline passphrase encrypted by the client's target public key. */
1183
+ exportBundle: string;
1184
+ };
1185
+ export type v1Feature = {
1186
+ name?: v1FeatureName;
1187
+ value?: string;
1188
+ };
1189
+ export type v1FeatureName = "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY" | "FEATURE_NAME_WEBHOOK" | "FEATURE_NAME_SMS_AUTH" | "FEATURE_NAME_OTP_EMAIL_AUTH" | "FEATURE_NAME_AUTH_PROXY";
1190
+ export type v1FiatOnRampBlockchainNetwork = "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BITCOIN" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_ETHEREUM" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_SOLANA" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BASE";
1191
+ export type v1FiatOnRampCryptoCurrency = "FIAT_ON_RAMP_CRYPTO_CURRENCY_BTC" | "FIAT_ON_RAMP_CRYPTO_CURRENCY_ETH" | "FIAT_ON_RAMP_CRYPTO_CURRENCY_SOL" | "FIAT_ON_RAMP_CRYPTO_CURRENCY_USDC";
1192
+ export type v1FiatOnRampCurrency = "FIAT_ON_RAMP_CURRENCY_AUD" | "FIAT_ON_RAMP_CURRENCY_BGN" | "FIAT_ON_RAMP_CURRENCY_BRL" | "FIAT_ON_RAMP_CURRENCY_CAD" | "FIAT_ON_RAMP_CURRENCY_CHF" | "FIAT_ON_RAMP_CURRENCY_COP" | "FIAT_ON_RAMP_CURRENCY_CZK" | "FIAT_ON_RAMP_CURRENCY_DKK" | "FIAT_ON_RAMP_CURRENCY_DOP" | "FIAT_ON_RAMP_CURRENCY_EGP" | "FIAT_ON_RAMP_CURRENCY_EUR" | "FIAT_ON_RAMP_CURRENCY_GBP" | "FIAT_ON_RAMP_CURRENCY_HKD" | "FIAT_ON_RAMP_CURRENCY_IDR" | "FIAT_ON_RAMP_CURRENCY_ILS" | "FIAT_ON_RAMP_CURRENCY_JOD" | "FIAT_ON_RAMP_CURRENCY_KES" | "FIAT_ON_RAMP_CURRENCY_KWD" | "FIAT_ON_RAMP_CURRENCY_LKR" | "FIAT_ON_RAMP_CURRENCY_MXN" | "FIAT_ON_RAMP_CURRENCY_NGN" | "FIAT_ON_RAMP_CURRENCY_NOK" | "FIAT_ON_RAMP_CURRENCY_NZD" | "FIAT_ON_RAMP_CURRENCY_OMR" | "FIAT_ON_RAMP_CURRENCY_PEN" | "FIAT_ON_RAMP_CURRENCY_PLN" | "FIAT_ON_RAMP_CURRENCY_RON" | "FIAT_ON_RAMP_CURRENCY_SEK" | "FIAT_ON_RAMP_CURRENCY_THB" | "FIAT_ON_RAMP_CURRENCY_TRY" | "FIAT_ON_RAMP_CURRENCY_TWD" | "FIAT_ON_RAMP_CURRENCY_USD" | "FIAT_ON_RAMP_CURRENCY_VND" | "FIAT_ON_RAMP_CURRENCY_ZAR";
1193
+ export type v1FiatOnRampPaymentMethod = "FIAT_ON_RAMP_PAYMENT_METHOD_CREDIT_DEBIT_CARD" | "FIAT_ON_RAMP_PAYMENT_METHOD_APPLE_PAY" | "FIAT_ON_RAMP_PAYMENT_METHOD_GBP_BANK_TRANSFER" | "FIAT_ON_RAMP_PAYMENT_METHOD_GBP_OPEN_BANKING_PAYMENT" | "FIAT_ON_RAMP_PAYMENT_METHOD_GOOGLE_PAY" | "FIAT_ON_RAMP_PAYMENT_METHOD_SEPA_BANK_TRANSFER" | "FIAT_ON_RAMP_PAYMENT_METHOD_PIX_INSTANT_PAYMENT" | "FIAT_ON_RAMP_PAYMENT_METHOD_PAYPAL" | "FIAT_ON_RAMP_PAYMENT_METHOD_VENMO" | "FIAT_ON_RAMP_PAYMENT_METHOD_MOONPAY_BALANCE" | "FIAT_ON_RAMP_PAYMENT_METHOD_CRYPTO_ACCOUNT" | "FIAT_ON_RAMP_PAYMENT_METHOD_FIAT_WALLET" | "FIAT_ON_RAMP_PAYMENT_METHOD_ACH_BANK_ACCOUNT";
1194
+ export type v1FiatOnRampProvider = "FIAT_ON_RAMP_PROVIDER_COINBASE" | "FIAT_ON_RAMP_PROVIDER_MOONPAY";
1195
+ export type v1GetActivitiesRequest = {
1196
+ /** Unique identifier for a given organization. */
1197
+ organizationId: string;
1198
+ /** Array of activity statuses filtering which activities will be listed in the response. */
1199
+ filterByStatus?: v1ActivityStatus[];
1200
+ /** Parameters used for cursor-based pagination. */
1201
+ paginationOptions?: v1Pagination;
1202
+ /** Array of activity types filtering which activities will be listed in the response. */
1203
+ filterByType?: v1ActivityType[];
1204
+ };
1205
+ export type v1GetActivitiesResponse = {
1206
+ /** A list of activities. */
1207
+ activities: v1Activity[];
1208
+ };
1209
+ export type v1GetActivityRequest = {
1210
+ /** Unique identifier for a given organization. */
1211
+ organizationId: string;
1212
+ /** Unique identifier for a given activity object. */
1213
+ activityId: string;
1214
+ };
1215
+ export type v1GetApiKeyRequest = {
1216
+ /** Unique identifier for a given organization. */
1217
+ organizationId: string;
1218
+ /** Unique identifier for a given API key. */
1219
+ apiKeyId: string;
1220
+ };
1221
+ export type v1GetApiKeyResponse = {
1222
+ /** An API key. */
1223
+ apiKey: v1ApiKey;
1224
+ };
1225
+ export type v1GetApiKeysRequest = {
1226
+ /** Unique identifier for a given organization. */
1227
+ organizationId: string;
1228
+ /** Unique identifier for a given user. */
1229
+ userId?: string;
1230
+ };
1231
+ export type v1GetApiKeysResponse = {
1232
+ /** A list of API keys. */
1233
+ apiKeys: v1ApiKey[];
1234
+ };
1235
+ export type v1GetAttestationDocumentRequest = {
1236
+ /** Unique identifier for a given organization. */
1237
+ organizationId: string;
1238
+ /** The enclave type, one of: ump, notarizer, signer, evm-parser. */
1239
+ enclaveType: string;
1240
+ };
1241
+ export type v1GetAttestationDocumentResponse = {
1242
+ /** Raw (CBOR-encoded) attestation document. */
1243
+ attestationDocument: string;
1244
+ };
1245
+ export type v1GetAuthenticatorRequest = {
1246
+ /** Unique identifier for a given organization. */
1247
+ organizationId: string;
1248
+ /** Unique identifier for a given authenticator. */
1249
+ authenticatorId: string;
1250
+ };
1251
+ export type v1GetAuthenticatorResponse = {
1252
+ /** An authenticator. */
1253
+ authenticator: v1Authenticator;
1254
+ };
1255
+ export type v1GetAuthenticatorsRequest = {
1256
+ /** Unique identifier for a given organization. */
1257
+ organizationId: string;
1258
+ /** Unique identifier for a given user. */
1259
+ userId: string;
1260
+ };
1261
+ export type v1GetAuthenticatorsResponse = {
1262
+ /** A list of authenticators. */
1263
+ authenticators: v1Authenticator[];
1264
+ };
1265
+ export type v1GetOauthProvidersRequest = {
1266
+ /** Unique identifier for a given organization. */
1267
+ organizationId: string;
1268
+ /** Unique identifier for a given user. */
1269
+ userId?: string;
1270
+ };
1271
+ export type v1GetOauthProvidersResponse = {
1272
+ /** A list of Oauth providers. */
1273
+ oauthProviders: v1OauthProvider[];
1274
+ };
1275
+ export type v1GetOrganizationConfigsRequest = {
1276
+ /** Unique identifier for a given organization. */
1277
+ organizationId: string;
1278
+ };
1279
+ export type v1GetOrganizationConfigsResponse = {
1280
+ /** Organization configs including quorum settings and organization features. */
1281
+ configs: v1Config;
1282
+ };
1283
+ export type v1GetOrganizationRequest = {
1284
+ /** Unique identifier for a given organization. */
1285
+ organizationId: string;
1286
+ };
1287
+ export type v1GetOrganizationResponse = {
1288
+ /** Object representing the full current and deleted / disabled collection of users, policies, private keys, and invitations attributable to a particular organization. */
1289
+ organizationData: v1OrganizationData;
1290
+ };
1291
+ export type v1GetPoliciesRequest = {
1292
+ /** Unique identifier for a given organization. */
1293
+ organizationId: string;
1294
+ };
1295
+ export type v1GetPoliciesResponse = {
1296
+ /** A list of policies. */
1297
+ policies: v1Policy[];
1298
+ };
1299
+ export type v1GetPolicyEvaluationsRequest = {
1300
+ /** Unique identifier for a given organization. */
1301
+ organizationId: string;
1302
+ /** Unique identifier for a given activity. */
1303
+ activityId: string;
1304
+ };
1305
+ export type v1GetPolicyEvaluationsResponse = {
1306
+ policyEvaluations: externalactivityv1PolicyEvaluation[];
1307
+ };
1308
+ export type v1GetPolicyRequest = {
1309
+ /** Unique identifier for a given organization. */
1310
+ organizationId: string;
1311
+ /** Unique identifier for a given policy. */
1312
+ policyId: string;
1313
+ };
1314
+ export type v1GetPolicyResponse = {
1315
+ /** Object that codifies rules defining the actions that are permissible within an organization. */
1316
+ policy: v1Policy;
1317
+ };
1318
+ export type v1GetPrivateKeyRequest = {
1319
+ /** Unique identifier for a given organization. */
1320
+ organizationId: string;
1321
+ /** Unique identifier for a given private key. */
1322
+ privateKeyId: string;
1323
+ };
1324
+ export type v1GetPrivateKeyResponse = {
1325
+ /** Cryptographic public/private key pair that can be used for cryptocurrency needs or more generalized encryption. */
1326
+ privateKey: v1PrivateKey;
1327
+ };
1328
+ export type v1GetPrivateKeysRequest = {
1329
+ /** Unique identifier for a given organization. */
1330
+ organizationId: string;
1331
+ };
1332
+ export type v1GetPrivateKeysResponse = {
1333
+ /** A list of private keys. */
1334
+ privateKeys: v1PrivateKey[];
1335
+ };
1336
+ export type v1GetSmartContractInterfaceRequest = {
1337
+ /** Unique identifier for a given organization. */
1338
+ organizationId: string;
1339
+ /** Unique identifier for a given smart contract interface. */
1340
+ smartContractInterfaceId: string;
1341
+ };
1342
+ export type v1GetSmartContractInterfaceResponse = {
1343
+ /** Object to be used in conjunction with policies to guard transaction signing. */
1344
+ smartContractInterface: externaldatav1SmartContractInterface;
1345
+ };
1346
+ export type v1GetSmartContractInterfacesRequest = {
1347
+ /** Unique identifier for a given organization. */
1348
+ organizationId: string;
1349
+ };
1350
+ export type v1GetSmartContractInterfacesResponse = {
1351
+ /** A list of smart contract interfaces. */
1352
+ smartContractInterfaces: externaldatav1SmartContractInterface[];
1353
+ };
1354
+ export type v1GetSubOrgIdsRequest = {
1355
+ /** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
1356
+ organizationId: string;
1357
+ /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'WALLET_ACCOUNT_ADDRESS' or 'PUBLIC_KEY' */
1358
+ filterType?: string;
1359
+ /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
1360
+ filterValue?: string;
1361
+ /** Parameters used for cursor-based pagination. */
1362
+ paginationOptions?: v1Pagination;
1363
+ };
1364
+ export type v1GetSubOrgIdsResponse = {
1365
+ /** List of unique identifiers for the matching sub-organizations. */
1366
+ organizationIds: string[];
1367
+ };
1368
+ export type v1GetUserRequest = {
1369
+ /** Unique identifier for a given organization. */
1370
+ organizationId: string;
1371
+ /** Unique identifier for a given user. */
1372
+ userId: string;
1373
+ };
1374
+ export type v1GetUserResponse = {
1375
+ /** Web and/or API user within your organization. */
1376
+ user: v1User;
1377
+ };
1378
+ export type v1GetUsersRequest = {
1379
+ /** Unique identifier for a given organization. */
1380
+ organizationId: string;
1381
+ };
1382
+ export type v1GetUsersResponse = {
1383
+ /** A list of users. */
1384
+ users: v1User[];
1385
+ };
1386
+ export type v1GetVerifiedSubOrgIdsRequest = {
1387
+ /** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
1388
+ organizationId: string;
1389
+ /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER'. */
1390
+ filterType?: string;
1391
+ /** The value of the filter to apply for the specified type. For example, a specific email or phone number string. */
1392
+ filterValue?: string;
1393
+ /** Parameters used for cursor-based pagination. */
1394
+ paginationOptions?: v1Pagination;
1395
+ };
1396
+ export type v1GetVerifiedSubOrgIdsResponse = {
1397
+ /** List of unique identifiers for the matching sub-organizations. */
1398
+ organizationIds: string[];
1399
+ };
1400
+ export type v1GetWalletAccountRequest = {
1401
+ /** Unique identifier for a given organization. */
1402
+ organizationId: string;
1403
+ /** Unique identifier for a given wallet. */
1404
+ walletId: string;
1405
+ /** Address corresponding to a wallet account. */
1406
+ address?: string;
1407
+ /** Path corresponding to a wallet account. */
1408
+ path?: string;
1409
+ };
1410
+ export type v1GetWalletAccountResponse = {
1411
+ /** The resulting wallet account. */
1412
+ account: v1WalletAccount;
1413
+ };
1414
+ export type v1GetWalletAccountsRequest = {
1415
+ /** Unique identifier for a given organization. */
1416
+ organizationId: string;
1417
+ /** Unique identifier for a given wallet. If not provided, all accounts for the organization will be returned. */
1418
+ walletId?: string;
1419
+ /** Parameters used for cursor-based pagination. */
1420
+ paginationOptions?: v1Pagination;
1421
+ };
1422
+ export type v1GetWalletAccountsResponse = {
1423
+ /** A list of accounts generated from a wallet that share a common seed. */
1424
+ accounts: v1WalletAccount[];
1425
+ };
1426
+ export type v1GetWalletRequest = {
1427
+ /** Unique identifier for a given organization. */
1428
+ organizationId: string;
1429
+ /** Unique identifier for a given wallet. */
1430
+ walletId: string;
1431
+ };
1432
+ export type v1GetWalletResponse = {
1433
+ /** A collection of deterministically generated cryptographic public / private key pairs that share a common seed. */
1434
+ wallet: v1Wallet;
1435
+ };
1436
+ export type v1GetWalletsRequest = {
1437
+ /** Unique identifier for a given organization. */
1438
+ organizationId: string;
1439
+ };
1440
+ export type v1GetWalletsResponse = {
1441
+ /** A list of wallets. */
1442
+ wallets: v1Wallet[];
1443
+ };
1444
+ export type v1GetWhoamiRequest = {
1445
+ /** Unique identifier for a given organization. If the request is being made by a WebAuthN user and their sub-organization ID is unknown, this can be the parent organization ID; using the sub-organization ID when possible is preferred due to performance reasons. */
1446
+ organizationId: string;
1447
+ };
1448
+ export type v1GetWhoamiResponse = {
1449
+ /** Unique identifier for a given organization. */
1450
+ organizationId: string;
1451
+ /** Human-readable name for an organization. */
1452
+ organizationName: string;
1453
+ /** Unique identifier for a given user. */
1454
+ userId: string;
1455
+ /** Human-readable name for a user. */
1456
+ username: string;
1457
+ };
1458
+ export type v1HashFunction = "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
1459
+ export type v1ImportPrivateKeyIntent = {
1460
+ /** The ID of the User importing a Private Key. */
1461
+ userId: string;
1462
+ /** Human-readable name for a Private Key. */
1463
+ privateKeyName: string;
1464
+ /** Bundle containing a raw private key encrypted to the enclave's target public key. */
1465
+ encryptedBundle: string;
1466
+ /** Cryptographic Curve used to generate a given Private Key. */
1467
+ curve: v1Curve;
1468
+ /** Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
1469
+ addressFormats: v1AddressFormat[];
1470
+ };
1471
+ export type v1ImportPrivateKeyRequest = {
1472
+ type: string;
1473
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1474
+ timestampMs: string;
1475
+ /** Unique identifier for a given Organization. */
1476
+ organizationId: string;
1477
+ parameters: v1ImportPrivateKeyIntent;
1478
+ };
1479
+ export type v1ImportPrivateKeyResult = {
1480
+ /** Unique identifier for a Private Key. */
1481
+ privateKeyId: string;
1482
+ /** A list of addresses. */
1483
+ addresses: immutableactivityv1Address[];
1484
+ };
1485
+ export type v1ImportWalletIntent = {
1486
+ /** The ID of the User importing a Wallet. */
1487
+ userId: string;
1488
+ /** Human-readable name for a Wallet. */
1489
+ walletName: string;
1490
+ /** Bundle containing a wallet mnemonic encrypted to the enclave's target public key. */
1491
+ encryptedBundle: string;
1492
+ /** A list of wallet Accounts. */
1493
+ accounts: v1WalletAccountParams[];
1494
+ };
1495
+ export type v1ImportWalletRequest = {
1496
+ type: string;
1497
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1498
+ timestampMs: string;
1499
+ /** Unique identifier for a given Organization. */
1500
+ organizationId: string;
1501
+ parameters: v1ImportWalletIntent;
1502
+ };
1503
+ export type v1ImportWalletResult = {
1504
+ /** Unique identifier for a Wallet. */
1505
+ walletId: string;
1506
+ /** A list of account addresses. */
1507
+ addresses: string[];
1508
+ };
1509
+ export type v1InitFiatOnRampIntent = {
1510
+ /** Enum to specifiy which on-ramp provider to use */
1511
+ onrampProvider: v1FiatOnRampProvider;
1512
+ /** Destination wallet address for the buy transaction. */
1513
+ walletAddress: string;
1514
+ /** Blockchain network to be used for the transaction, e.g., bitcoin, ethereum. Maps to MoonPay's network or Coinbase's defaultNetwork. */
1515
+ network: v1FiatOnRampBlockchainNetwork;
1516
+ /** Code for the cryptocurrency to be purchased, e.g., btc, eth. Maps to MoonPay's currencyCode or Coinbase's defaultAsset. */
1517
+ cryptoCurrencyCode: v1FiatOnRampCryptoCurrency;
1518
+ /** Code for the fiat currency to be used in the transaction, e.g., USD, EUR. */
1519
+ fiatCurrencyCode?: v1FiatOnRampCurrency;
1520
+ /** Specifies a preset fiat amount for the transaction, e.g., '100'. Must be greater than '20'. If not provided, the user will be prompted to enter an amount. */
1521
+ fiatCurrencyAmount?: string;
1522
+ /** Pre-selected payment method, e.g., CREDIT_DEBIT_CARD, APPLE_PAY. Validated against the chosen provider. */
1523
+ paymentMethod?: v1FiatOnRampPaymentMethod;
1524
+ /** ISO 3166-1 two-digit country code for Coinbase representing the purchasing user’s country of residence, e.g., US, GB. */
1525
+ countryCode?: string;
1526
+ /** ISO 3166-2 two-digit country subdivision code for Coinbase representing the purchasing user’s subdivision of residence within their country, e.g. NY. Required if country_code=US. */
1527
+ countrySubdivisionCode?: string;
1528
+ /** Optional flag to indicate whether to use the sandbox mode to simulate transactions for the on-ramp provider. Default is false. */
1529
+ sandboxMode?: boolean;
1530
+ };
1531
+ export type v1InitFiatOnRampRequest = {
1532
+ type: string;
1533
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1534
+ timestampMs: string;
1535
+ /** Unique identifier for a given Organization. */
1536
+ organizationId: string;
1537
+ parameters: v1InitFiatOnRampIntent;
1538
+ };
1539
+ export type v1InitFiatOnRampResult = {
1540
+ /** Unique URL for a given fiat on-ramp flow. */
1541
+ onRampUrl: string;
1542
+ /** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
1543
+ onRampTransactionId: string;
1544
+ };
1545
+ export type v1InitImportPrivateKeyIntent = {
1546
+ /** The ID of the User importing a Private Key. */
1547
+ userId: string;
1548
+ };
1549
+ export type v1InitImportPrivateKeyRequest = {
1550
+ type: string;
1551
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1552
+ timestampMs: string;
1553
+ /** Unique identifier for a given Organization. */
1554
+ organizationId: string;
1555
+ parameters: v1InitImportPrivateKeyIntent;
1556
+ };
1557
+ export type v1InitImportPrivateKeyResult = {
1558
+ /** Import bundle containing a public key and signature to use for importing client data. */
1559
+ importBundle: string;
1560
+ };
1561
+ export type v1InitImportWalletIntent = {
1562
+ /** The ID of the User importing a Wallet. */
1563
+ userId: string;
1564
+ };
1565
+ export type v1InitImportWalletRequest = {
1566
+ type: string;
1567
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1568
+ timestampMs: string;
1569
+ /** Unique identifier for a given Organization. */
1570
+ organizationId: string;
1571
+ parameters: v1InitImportWalletIntent;
1572
+ };
1573
+ export type v1InitImportWalletResult = {
1574
+ /** Import bundle containing a public key and signature to use for importing client data. */
1575
+ importBundle: string;
1576
+ };
1577
+ export type v1InitOtpAuthIntent = {
1578
+ /** Enum to specifiy whether to send OTP via SMS or email */
1579
+ otpType: string;
1580
+ /** Email or phone number to send the OTP code to */
1581
+ contact: string;
1582
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
1583
+ emailCustomization?: v1EmailCustomizationParams;
1584
+ /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
1585
+ smsCustomization?: v1SmsCustomizationParams;
1586
+ /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
1587
+ userIdentifier?: string;
1588
+ /** Optional custom email address from which to send the OTP email */
1589
+ sendFromEmailAddress?: string;
1590
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
1591
+ sendFromEmailSenderName?: string;
1592
+ /** Optional custom email address to use as reply-to */
1593
+ replyToEmailAddress?: string;
1594
+ };
1595
+ export type v1InitOtpAuthIntentV2 = {
1596
+ /** Enum to specifiy whether to send OTP via SMS or email */
1597
+ otpType: string;
1598
+ /** Email or phone number to send the OTP code to */
1599
+ contact: string;
1600
+ /** Optional length of the OTP code. Default = 9 */
1601
+ otpLength?: number;
1602
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
1603
+ emailCustomization?: v1EmailCustomizationParams;
1604
+ /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
1605
+ smsCustomization?: v1SmsCustomizationParams;
1606
+ /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
1607
+ userIdentifier?: string;
1608
+ /** Optional custom email address from which to send the OTP email */
1609
+ sendFromEmailAddress?: string;
1610
+ /** Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true */
1611
+ alphanumeric?: boolean;
1612
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
1613
+ sendFromEmailSenderName?: string;
1614
+ /** Optional custom email address to use as reply-to */
1615
+ replyToEmailAddress?: string;
1616
+ };
1617
+ export type v1InitOtpAuthRequest = {
1618
+ type: string;
1619
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1620
+ timestampMs: string;
1621
+ /** Unique identifier for a given Organization. */
1622
+ organizationId: string;
1623
+ parameters: v1InitOtpAuthIntentV2;
1624
+ };
1625
+ export type v1InitOtpAuthResult = {
1626
+ /** Unique identifier for an OTP authentication */
1627
+ otpId: string;
1628
+ };
1629
+ export type v1InitOtpAuthResultV2 = {
1630
+ /** Unique identifier for an OTP authentication */
1631
+ otpId: string;
1632
+ };
1633
+ export type v1InitOtpIntent = {
1634
+ /** Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL */
1635
+ otpType: string;
1636
+ /** Email or phone number to send the OTP code to */
1637
+ contact: string;
1638
+ /** Optional length of the OTP code. Default = 9 */
1639
+ otpLength?: number;
1640
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
1641
+ emailCustomization?: v1EmailCustomizationParams;
1642
+ /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
1643
+ smsCustomization?: v1SmsCustomizationParams;
1644
+ /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
1645
+ userIdentifier?: string;
1646
+ /** Optional custom email address from which to send the OTP email */
1647
+ sendFromEmailAddress?: string;
1648
+ /** Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true */
1649
+ alphanumeric?: boolean;
1650
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
1651
+ sendFromEmailSenderName?: string;
1652
+ /** Expiration window (in seconds) indicating how long the OTP is valid for. If not provided, a default of 5 minutes will be used. Maximum value is 600 seconds (10 minutes) */
1653
+ expirationSeconds?: string;
1654
+ /** Optional custom email address to use as reply-to */
1655
+ replyToEmailAddress?: string;
1656
+ };
1657
+ export type v1InitOtpRequest = {
1658
+ type: string;
1659
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1660
+ timestampMs: string;
1661
+ /** Unique identifier for a given Organization. */
1662
+ organizationId: string;
1663
+ parameters: v1InitOtpIntent;
1664
+ };
1665
+ export type v1InitOtpResult = {
1666
+ /** Unique identifier for an OTP authentication */
1667
+ otpId: string;
1668
+ };
1669
+ export type v1InitUserEmailRecoveryIntent = {
1670
+ /** Email of the user starting recovery */
1671
+ email: string;
1672
+ /** Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
1673
+ targetPublicKey: string;
1674
+ /** Expiration window (in seconds) indicating how long the recovery credential is valid for. If not provided, a default of 15 minutes will be used. */
1675
+ expirationSeconds?: string;
1676
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
1677
+ emailCustomization?: v1EmailCustomizationParams;
1678
+ };
1679
+ export type v1InitUserEmailRecoveryRequest = {
1680
+ type: string;
1681
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1682
+ timestampMs: string;
1683
+ /** Unique identifier for a given Organization. */
1684
+ organizationId: string;
1685
+ parameters: v1InitUserEmailRecoveryIntent;
1686
+ };
1687
+ export type v1InitUserEmailRecoveryResult = {
1688
+ /** Unique identifier for the user being recovered. */
1689
+ userId: string;
1690
+ };
1691
+ export type v1Intent = {
1692
+ createOrganizationIntent?: v1CreateOrganizationIntent;
1693
+ createAuthenticatorsIntent?: v1CreateAuthenticatorsIntent;
1694
+ createUsersIntent?: v1CreateUsersIntent;
1695
+ createPrivateKeysIntent?: v1CreatePrivateKeysIntent;
1696
+ signRawPayloadIntent?: v1SignRawPayloadIntent;
1697
+ createInvitationsIntent?: v1CreateInvitationsIntent;
1698
+ acceptInvitationIntent?: v1AcceptInvitationIntent;
1699
+ createPolicyIntent?: v1CreatePolicyIntent;
1700
+ disablePrivateKeyIntent?: v1DisablePrivateKeyIntent;
1701
+ deleteUsersIntent?: v1DeleteUsersIntent;
1702
+ deleteAuthenticatorsIntent?: v1DeleteAuthenticatorsIntent;
1703
+ deleteInvitationIntent?: v1DeleteInvitationIntent;
1704
+ deleteOrganizationIntent?: v1DeleteOrganizationIntent;
1705
+ deletePolicyIntent?: v1DeletePolicyIntent;
1706
+ createUserTagIntent?: v1CreateUserTagIntent;
1707
+ deleteUserTagsIntent?: v1DeleteUserTagsIntent;
1708
+ signTransactionIntent?: v1SignTransactionIntent;
1709
+ createApiKeysIntent?: v1CreateApiKeysIntent;
1710
+ deleteApiKeysIntent?: v1DeleteApiKeysIntent;
1711
+ approveActivityIntent?: v1ApproveActivityIntent;
1712
+ rejectActivityIntent?: v1RejectActivityIntent;
1713
+ createPrivateKeyTagIntent?: v1CreatePrivateKeyTagIntent;
1714
+ deletePrivateKeyTagsIntent?: v1DeletePrivateKeyTagsIntent;
1715
+ createPolicyIntentV2?: v1CreatePolicyIntentV2;
1716
+ setPaymentMethodIntent?: billingSetPaymentMethodIntent;
1717
+ activateBillingTierIntent?: billingActivateBillingTierIntent;
1718
+ deletePaymentMethodIntent?: billingDeletePaymentMethodIntent;
1719
+ createPolicyIntentV3?: v1CreatePolicyIntentV3;
1720
+ createApiOnlyUsersIntent?: v1CreateApiOnlyUsersIntent;
1721
+ updateRootQuorumIntent?: v1UpdateRootQuorumIntent;
1722
+ updateUserTagIntent?: v1UpdateUserTagIntent;
1723
+ updatePrivateKeyTagIntent?: v1UpdatePrivateKeyTagIntent;
1724
+ createAuthenticatorsIntentV2?: v1CreateAuthenticatorsIntentV2;
1725
+ acceptInvitationIntentV2?: v1AcceptInvitationIntentV2;
1726
+ createOrganizationIntentV2?: v1CreateOrganizationIntentV2;
1727
+ createUsersIntentV2?: v1CreateUsersIntentV2;
1728
+ createSubOrganizationIntent?: v1CreateSubOrganizationIntent;
1729
+ createSubOrganizationIntentV2?: v1CreateSubOrganizationIntentV2;
1730
+ updateAllowedOriginsIntent?: v1UpdateAllowedOriginsIntent;
1731
+ createPrivateKeysIntentV2?: v1CreatePrivateKeysIntentV2;
1732
+ updateUserIntent?: v1UpdateUserIntent;
1733
+ updatePolicyIntent?: v1UpdatePolicyIntent;
1734
+ setPaymentMethodIntentV2?: billingSetPaymentMethodIntentV2;
1735
+ createSubOrganizationIntentV3?: v1CreateSubOrganizationIntentV3;
1736
+ createWalletIntent?: v1CreateWalletIntent;
1737
+ createWalletAccountsIntent?: v1CreateWalletAccountsIntent;
1738
+ initUserEmailRecoveryIntent?: v1InitUserEmailRecoveryIntent;
1739
+ recoverUserIntent?: v1RecoverUserIntent;
1740
+ setOrganizationFeatureIntent?: v1SetOrganizationFeatureIntent;
1741
+ removeOrganizationFeatureIntent?: v1RemoveOrganizationFeatureIntent;
1742
+ signRawPayloadIntentV2?: v1SignRawPayloadIntentV2;
1743
+ signTransactionIntentV2?: v1SignTransactionIntentV2;
1744
+ exportPrivateKeyIntent?: v1ExportPrivateKeyIntent;
1745
+ exportWalletIntent?: v1ExportWalletIntent;
1746
+ createSubOrganizationIntentV4?: v1CreateSubOrganizationIntentV4;
1747
+ emailAuthIntent?: v1EmailAuthIntent;
1748
+ exportWalletAccountIntent?: v1ExportWalletAccountIntent;
1749
+ initImportWalletIntent?: v1InitImportWalletIntent;
1750
+ importWalletIntent?: v1ImportWalletIntent;
1751
+ initImportPrivateKeyIntent?: v1InitImportPrivateKeyIntent;
1752
+ importPrivateKeyIntent?: v1ImportPrivateKeyIntent;
1753
+ createPoliciesIntent?: v1CreatePoliciesIntent;
1754
+ signRawPayloadsIntent?: v1SignRawPayloadsIntent;
1755
+ createReadOnlySessionIntent?: v1CreateReadOnlySessionIntent;
1756
+ createOauthProvidersIntent?: v1CreateOauthProvidersIntent;
1757
+ deleteOauthProvidersIntent?: v1DeleteOauthProvidersIntent;
1758
+ createSubOrganizationIntentV5?: v1CreateSubOrganizationIntentV5;
1759
+ oauthIntent?: v1OauthIntent;
1760
+ createApiKeysIntentV2?: v1CreateApiKeysIntentV2;
1761
+ createReadWriteSessionIntent?: v1CreateReadWriteSessionIntent;
1762
+ emailAuthIntentV2?: v1EmailAuthIntentV2;
1763
+ createSubOrganizationIntentV6?: v1CreateSubOrganizationIntentV6;
1764
+ deletePrivateKeysIntent?: v1DeletePrivateKeysIntent;
1765
+ deleteWalletsIntent?: v1DeleteWalletsIntent;
1766
+ createReadWriteSessionIntentV2?: v1CreateReadWriteSessionIntentV2;
1767
+ deleteSubOrganizationIntent?: v1DeleteSubOrganizationIntent;
1768
+ initOtpAuthIntent?: v1InitOtpAuthIntent;
1769
+ otpAuthIntent?: v1OtpAuthIntent;
1770
+ createSubOrganizationIntentV7?: v1CreateSubOrganizationIntentV7;
1771
+ updateWalletIntent?: v1UpdateWalletIntent;
1772
+ updatePolicyIntentV2?: v1UpdatePolicyIntentV2;
1773
+ createUsersIntentV3?: v1CreateUsersIntentV3;
1774
+ initOtpAuthIntentV2?: v1InitOtpAuthIntentV2;
1775
+ initOtpIntent?: v1InitOtpIntent;
1776
+ verifyOtpIntent?: v1VerifyOtpIntent;
1777
+ otpLoginIntent?: v1OtpLoginIntent;
1778
+ stampLoginIntent?: v1StampLoginIntent;
1779
+ oauthLoginIntent?: v1OauthLoginIntent;
1780
+ updateUserNameIntent?: v1UpdateUserNameIntent;
1781
+ updateUserEmailIntent?: v1UpdateUserEmailIntent;
1782
+ updateUserPhoneNumberIntent?: v1UpdateUserPhoneNumberIntent;
1783
+ initFiatOnRampIntent?: v1InitFiatOnRampIntent;
1784
+ createSmartContractInterfaceIntent?: v1CreateSmartContractInterfaceIntent;
1785
+ deleteSmartContractInterfaceIntent?: v1DeleteSmartContractInterfaceIntent;
1786
+ enableAuthProxyIntent?: v1EnableAuthProxyIntent;
1787
+ disableAuthProxyIntent?: v1DisableAuthProxyIntent;
1788
+ updateAuthProxyConfigIntent?: v1UpdateAuthProxyConfigIntent;
1789
+ };
1790
+ export type v1Invitation = {
1791
+ /** Unique identifier for a given Invitation object. */
1792
+ invitationId: string;
1793
+ /** The name of the intended Invitation recipient. */
1794
+ receiverUserName: string;
1795
+ /** The email address of the intended Invitation recipient. */
1796
+ receiverEmail: string;
1797
+ /** A list of tags assigned to the Invitation recipient. */
1798
+ receiverUserTags: string[];
1799
+ /** The User's permissible access method(s). */
1800
+ accessType: v1AccessType;
1801
+ /** The current processing status of a specified Invitation. */
1802
+ status: v1InvitationStatus;
1803
+ createdAt: externaldatav1Timestamp;
1804
+ updatedAt: externaldatav1Timestamp;
1805
+ /** Unique identifier for the Sender of an Invitation. */
1806
+ senderUserId: string;
1807
+ };
1808
+ export type v1InvitationParams = {
1809
+ /** The name of the intended Invitation recipient. */
1810
+ receiverUserName: string;
1811
+ /** The email address of the intended Invitation recipient. */
1812
+ receiverUserEmail: string;
1813
+ /** A list of tags assigned to the Invitation recipient. This field, if not needed, should be an empty array in your request body. */
1814
+ receiverUserTags: string[];
1815
+ /** The User's permissible access method(s). */
1816
+ accessType: v1AccessType;
1817
+ /** Unique identifier for the Sender of an Invitation. */
1818
+ senderUserId: string;
1819
+ };
1820
+ export type v1InvitationStatus = "INVITATION_STATUS_CREATED" | "INVITATION_STATUS_ACCEPTED" | "INVITATION_STATUS_REVOKED";
1821
+ export type v1ListPrivateKeyTagsRequest = {
1822
+ /** Unique identifier for a given organization. */
1823
+ organizationId: string;
1824
+ };
1825
+ export type v1ListPrivateKeyTagsResponse = {
1826
+ /** A list of private key tags. */
1827
+ privateKeyTags: datav1Tag[];
1828
+ };
1829
+ export type v1ListUserTagsRequest = {
1830
+ /** Unique identifier for a given organization. */
1831
+ organizationId: string;
1832
+ };
1833
+ export type v1ListUserTagsResponse = {
1834
+ /** A list of user tags. */
1835
+ userTags: datav1Tag[];
1836
+ };
1837
+ export type v1MnemonicLanguage = "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";
1838
+ export type v1NOOPCodegenAnchorResponse = {
1839
+ stamp: v1WebAuthnStamp;
1840
+ };
1841
+ export type v1OauthIntent = {
1842
+ /** Base64 encoded OIDC token */
1843
+ oidcToken: string;
1844
+ /** Client-side public key generated by the user, to which the oauth bundle (credentials) will be encrypted. */
1845
+ targetPublicKey: string;
1846
+ /** Optional human-readable name for an API Key. If none provided, default to Oauth - <Timestamp> */
1847
+ apiKeyName?: string;
1848
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
1849
+ expirationSeconds?: string;
1850
+ /** Invalidate all other previously generated Oauth API keys */
1851
+ invalidateExisting?: boolean;
1852
+ };
1853
+ export type v1OauthLoginIntent = {
1854
+ /** Base64 encoded OIDC token */
1855
+ oidcToken: string;
1856
+ /** Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the oidc token associated with this request */
1857
+ publicKey: string;
1858
+ /** Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
1859
+ expirationSeconds?: string;
1860
+ /** Invalidate all other previously generated Login API keys */
1861
+ invalidateExisting?: boolean;
1862
+ };
1863
+ export type v1OauthLoginRequest = {
1864
+ type: string;
1865
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1866
+ timestampMs: string;
1867
+ /** Unique identifier for a given Organization. */
1868
+ organizationId: string;
1869
+ parameters: v1OauthLoginIntent;
1870
+ };
1871
+ export type v1OauthLoginResult = {
1872
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
1873
+ session: string;
1874
+ };
1875
+ export type v1OauthProvider = {
1876
+ /** Unique identifier for an OAuth Provider */
1877
+ providerId: string;
1878
+ /** Human-readable name to identify a Provider. */
1879
+ providerName: string;
1880
+ /** The issuer of the token, typically a URL indicating the authentication server, e.g https://accounts.google.com */
1881
+ issuer: string;
1882
+ /** Expected audience ('aud' attribute of the signed token) which represents the app ID */
1883
+ audience: string;
1884
+ /** Expected subject ('sub' attribute of the signed token) which represents the user ID */
1885
+ subject: string;
1886
+ createdAt: externaldatav1Timestamp;
1887
+ updatedAt: externaldatav1Timestamp;
1888
+ };
1889
+ export type v1OauthProviderParams = {
1890
+ /** Human-readable name to identify a Provider. */
1891
+ providerName: string;
1892
+ /** Base64 encoded OIDC token */
1893
+ oidcToken: string;
1894
+ };
1895
+ export type v1OauthRequest = {
1896
+ type: string;
1897
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1898
+ timestampMs: string;
1899
+ /** Unique identifier for a given Organization. */
1900
+ organizationId: string;
1901
+ parameters: v1OauthIntent;
1902
+ };
1903
+ export type v1OauthResult = {
1904
+ /** Unique identifier for the authenticating User. */
1905
+ userId: string;
1906
+ /** Unique identifier for the created API key. */
1907
+ apiKeyId: string;
1908
+ /** HPKE encrypted credential bundle */
1909
+ credentialBundle: string;
1910
+ };
1911
+ export type v1Operator = "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";
1912
+ export type v1OrganizationData = {
1913
+ organizationId?: string;
1914
+ name?: string;
1915
+ users?: v1User[];
1916
+ policies?: v1Policy[];
1917
+ privateKeys?: v1PrivateKey[];
1918
+ invitations?: v1Invitation[];
1919
+ tags?: datav1Tag[];
1920
+ rootQuorum?: externaldatav1Quorum;
1921
+ features?: v1Feature[];
1922
+ wallets?: v1Wallet[];
1923
+ smartContractInterfaceReferences?: v1SmartContractInterfaceReference[];
1924
+ };
1925
+ export type v1OtpAuthIntent = {
1926
+ /** ID representing the result of an init OTP activity. */
1927
+ otpId: string;
1928
+ /** OTP sent out to a user's contact (email or SMS) */
1929
+ otpCode: string;
1930
+ /** Client-side public key generated by the user, to which the OTP bundle (credentials) will be encrypted. */
1931
+ targetPublicKey: string;
1932
+ /** Optional human-readable name for an API Key. If none provided, default to OTP Auth - <Timestamp> */
1933
+ apiKeyName?: string;
1934
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
1935
+ expirationSeconds?: string;
1936
+ /** Invalidate all other previously generated OTP Auth API keys */
1937
+ invalidateExisting?: boolean;
1938
+ };
1939
+ export type v1OtpAuthRequest = {
1940
+ type: string;
1941
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1942
+ timestampMs: string;
1943
+ /** Unique identifier for a given Organization. */
1944
+ organizationId: string;
1945
+ parameters: v1OtpAuthIntent;
1946
+ };
1947
+ export type v1OtpAuthResult = {
1948
+ /** Unique identifier for the authenticating User. */
1949
+ userId: string;
1950
+ /** Unique identifier for the created API key. */
1951
+ apiKeyId?: string;
1952
+ /** HPKE encrypted credential bundle */
1953
+ credentialBundle?: string;
1954
+ };
1955
+ export type v1OtpLoginIntent = {
1956
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
1957
+ verificationToken: string;
1958
+ /** Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the verification token */
1959
+ publicKey: string;
1960
+ /** Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
1961
+ expirationSeconds?: string;
1962
+ /** Invalidate all other previously generated Login API keys */
1963
+ invalidateExisting?: boolean;
1964
+ };
1965
+ export type v1OtpLoginRequest = {
1966
+ type: string;
1967
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1968
+ timestampMs: string;
1969
+ /** Unique identifier for a given Organization. */
1970
+ organizationId: string;
1971
+ parameters: v1OtpLoginIntent;
1972
+ };
1973
+ export type v1OtpLoginResult = {
1974
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
1975
+ session: string;
1976
+ };
1977
+ export type v1Outcome = "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR";
1978
+ export type v1Pagination = {
1979
+ /** A limit of the number of object to be returned, between 1 and 100. Defaults to 10. */
1980
+ limit?: string;
1981
+ /** A pagination cursor. This is an object ID that enables you to fetch all objects before this ID. */
1982
+ before?: string;
1983
+ /** A pagination cursor. This is an object ID that enables you to fetch all objects after this ID. */
1984
+ after?: string;
1985
+ };
1986
+ export type v1PathFormat = "PATH_FORMAT_BIP32";
1987
+ export type v1PayloadEncoding = "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8" | "PAYLOAD_ENCODING_EIP712";
1988
+ export type v1Policy = {
1989
+ /** Unique identifier for a given Policy. */
1990
+ policyId: string;
1991
+ /** Human-readable name for a Policy. */
1992
+ policyName: string;
1993
+ /** The instruction to DENY or ALLOW a particular activity following policy selector(s). */
1994
+ effect: v1Effect;
1995
+ createdAt: externaldatav1Timestamp;
1996
+ updatedAt: externaldatav1Timestamp;
1997
+ /** Human-readable notes added by a User to describe a particular policy. */
1998
+ notes: string;
1999
+ /** A consensus expression that evalutes to true or false. */
2000
+ consensus: string;
2001
+ /** A condition expression that evalutes to true or false. */
2002
+ condition: string;
2003
+ };
2004
+ export type v1PrivateKey = {
2005
+ /** Unique identifier for a given Private Key. */
2006
+ privateKeyId: string;
2007
+ /** The public component of a cryptographic key pair used to sign messages and transactions. */
2008
+ publicKey: string;
2009
+ /** Human-readable name for a Private Key. */
2010
+ privateKeyName: string;
2011
+ /** Cryptographic Curve used to generate a given Private Key. */
2012
+ curve: v1Curve;
2013
+ /** Derived cryptocurrency addresses for a given Private Key. */
2014
+ addresses: externaldatav1Address[];
2015
+ /** A list of Private Key Tag IDs. */
2016
+ privateKeyTags: string[];
2017
+ createdAt: externaldatav1Timestamp;
2018
+ updatedAt: externaldatav1Timestamp;
2019
+ /** True when a given Private Key is exported, false otherwise. */
2020
+ exported: boolean;
2021
+ /** True when a given Private Key is imported, false otherwise. */
2022
+ imported: boolean;
2023
+ };
2024
+ export type v1PrivateKeyParams = {
2025
+ /** Human-readable name for a Private Key. */
2026
+ privateKeyName: string;
2027
+ /** Cryptographic Curve used to generate a given Private Key. */
2028
+ curve: v1Curve;
2029
+ /** A list of Private Key Tag IDs. This field, if not needed, should be an empty array in your request body. */
2030
+ privateKeyTags: string[];
2031
+ /** Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
2032
+ addressFormats: v1AddressFormat[];
2033
+ };
2034
+ export type v1PrivateKeyResult = {
2035
+ privateKeyId?: string;
2036
+ addresses?: immutableactivityv1Address[];
2037
+ };
2038
+ export type v1PublicKeyCredentialWithAttestation = {
2039
+ id: string;
2040
+ type: string;
2041
+ rawId: string;
2042
+ authenticatorAttachment?: string;
2043
+ response: v1AuthenticatorAttestationResponse;
2044
+ clientExtensionResults: v1SimpleClientExtensionResults;
2045
+ };
2046
+ export type v1RecoverUserIntent = {
2047
+ /** The new authenticator to register. */
2048
+ authenticator: v1AuthenticatorParamsV2;
2049
+ /** Unique identifier for the user performing recovery. */
2050
+ userId: string;
2051
+ };
2052
+ export type v1RecoverUserRequest = {
2053
+ type: string;
2054
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2055
+ timestampMs: string;
2056
+ /** Unique identifier for a given Organization. */
2057
+ organizationId: string;
2058
+ parameters: v1RecoverUserIntent;
2059
+ };
2060
+ export type v1RecoverUserResult = {
2061
+ /** ID of the authenticator created. */
2062
+ authenticatorId: string[];
2063
+ };
2064
+ export type v1RejectActivityIntent = {
2065
+ /** An artifact verifying a User's action. */
2066
+ fingerprint: string;
2067
+ };
2068
+ export type v1RejectActivityRequest = {
2069
+ type: string;
2070
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2071
+ timestampMs: string;
2072
+ /** Unique identifier for a given Organization. */
2073
+ organizationId: string;
2074
+ parameters: v1RejectActivityIntent;
2075
+ };
2076
+ export type v1RemoveOrganizationFeatureIntent = {
2077
+ /** Name of the feature to remove */
2078
+ name: v1FeatureName;
2079
+ };
2080
+ export type v1RemoveOrganizationFeatureRequest = {
2081
+ type: string;
2082
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2083
+ timestampMs: string;
2084
+ /** Unique identifier for a given Organization. */
2085
+ organizationId: string;
2086
+ parameters: v1RemoveOrganizationFeatureIntent;
2087
+ };
2088
+ export type v1RemoveOrganizationFeatureResult = {
2089
+ /** Resulting list of organization features. */
2090
+ features: v1Feature[];
2091
+ };
2092
+ export type v1Result = {
2093
+ createOrganizationResult?: v1CreateOrganizationResult;
2094
+ createAuthenticatorsResult?: v1CreateAuthenticatorsResult;
2095
+ createUsersResult?: v1CreateUsersResult;
2096
+ createPrivateKeysResult?: v1CreatePrivateKeysResult;
2097
+ createInvitationsResult?: v1CreateInvitationsResult;
2098
+ acceptInvitationResult?: v1AcceptInvitationResult;
2099
+ signRawPayloadResult?: v1SignRawPayloadResult;
2100
+ createPolicyResult?: v1CreatePolicyResult;
2101
+ disablePrivateKeyResult?: v1DisablePrivateKeyResult;
2102
+ deleteUsersResult?: v1DeleteUsersResult;
2103
+ deleteAuthenticatorsResult?: v1DeleteAuthenticatorsResult;
2104
+ deleteInvitationResult?: v1DeleteInvitationResult;
2105
+ deleteOrganizationResult?: v1DeleteOrganizationResult;
2106
+ deletePolicyResult?: v1DeletePolicyResult;
2107
+ createUserTagResult?: v1CreateUserTagResult;
2108
+ deleteUserTagsResult?: v1DeleteUserTagsResult;
2109
+ signTransactionResult?: v1SignTransactionResult;
2110
+ deleteApiKeysResult?: v1DeleteApiKeysResult;
2111
+ createApiKeysResult?: v1CreateApiKeysResult;
2112
+ createPrivateKeyTagResult?: v1CreatePrivateKeyTagResult;
2113
+ deletePrivateKeyTagsResult?: v1DeletePrivateKeyTagsResult;
2114
+ setPaymentMethodResult?: billingSetPaymentMethodResult;
2115
+ activateBillingTierResult?: billingActivateBillingTierResult;
2116
+ deletePaymentMethodResult?: billingDeletePaymentMethodResult;
2117
+ createApiOnlyUsersResult?: v1CreateApiOnlyUsersResult;
2118
+ updateRootQuorumResult?: v1UpdateRootQuorumResult;
2119
+ updateUserTagResult?: v1UpdateUserTagResult;
2120
+ updatePrivateKeyTagResult?: v1UpdatePrivateKeyTagResult;
2121
+ createSubOrganizationResult?: v1CreateSubOrganizationResult;
2122
+ updateAllowedOriginsResult?: v1UpdateAllowedOriginsResult;
2123
+ createPrivateKeysResultV2?: v1CreatePrivateKeysResultV2;
2124
+ updateUserResult?: v1UpdateUserResult;
2125
+ updatePolicyResult?: v1UpdatePolicyResult;
2126
+ createSubOrganizationResultV3?: v1CreateSubOrganizationResultV3;
2127
+ createWalletResult?: v1CreateWalletResult;
2128
+ createWalletAccountsResult?: v1CreateWalletAccountsResult;
2129
+ initUserEmailRecoveryResult?: v1InitUserEmailRecoveryResult;
2130
+ recoverUserResult?: v1RecoverUserResult;
2131
+ setOrganizationFeatureResult?: v1SetOrganizationFeatureResult;
2132
+ removeOrganizationFeatureResult?: v1RemoveOrganizationFeatureResult;
2133
+ exportPrivateKeyResult?: v1ExportPrivateKeyResult;
2134
+ exportWalletResult?: v1ExportWalletResult;
2135
+ createSubOrganizationResultV4?: v1CreateSubOrganizationResultV4;
2136
+ emailAuthResult?: v1EmailAuthResult;
2137
+ exportWalletAccountResult?: v1ExportWalletAccountResult;
2138
+ initImportWalletResult?: v1InitImportWalletResult;
2139
+ importWalletResult?: v1ImportWalletResult;
2140
+ initImportPrivateKeyResult?: v1InitImportPrivateKeyResult;
2141
+ importPrivateKeyResult?: v1ImportPrivateKeyResult;
2142
+ createPoliciesResult?: v1CreatePoliciesResult;
2143
+ signRawPayloadsResult?: v1SignRawPayloadsResult;
2144
+ createReadOnlySessionResult?: v1CreateReadOnlySessionResult;
2145
+ createOauthProvidersResult?: v1CreateOauthProvidersResult;
2146
+ deleteOauthProvidersResult?: v1DeleteOauthProvidersResult;
2147
+ createSubOrganizationResultV5?: v1CreateSubOrganizationResultV5;
2148
+ oauthResult?: v1OauthResult;
2149
+ createReadWriteSessionResult?: v1CreateReadWriteSessionResult;
2150
+ createSubOrganizationResultV6?: v1CreateSubOrganizationResultV6;
2151
+ deletePrivateKeysResult?: v1DeletePrivateKeysResult;
2152
+ deleteWalletsResult?: v1DeleteWalletsResult;
2153
+ createReadWriteSessionResultV2?: v1CreateReadWriteSessionResultV2;
2154
+ deleteSubOrganizationResult?: v1DeleteSubOrganizationResult;
2155
+ initOtpAuthResult?: v1InitOtpAuthResult;
2156
+ otpAuthResult?: v1OtpAuthResult;
2157
+ createSubOrganizationResultV7?: v1CreateSubOrganizationResultV7;
2158
+ updateWalletResult?: v1UpdateWalletResult;
2159
+ updatePolicyResultV2?: v1UpdatePolicyResultV2;
2160
+ initOtpAuthResultV2?: v1InitOtpAuthResultV2;
2161
+ initOtpResult?: v1InitOtpResult;
2162
+ verifyOtpResult?: v1VerifyOtpResult;
2163
+ otpLoginResult?: v1OtpLoginResult;
2164
+ stampLoginResult?: v1StampLoginResult;
2165
+ oauthLoginResult?: v1OauthLoginResult;
2166
+ updateUserNameResult?: v1UpdateUserNameResult;
2167
+ updateUserEmailResult?: v1UpdateUserEmailResult;
2168
+ updateUserPhoneNumberResult?: v1UpdateUserPhoneNumberResult;
2169
+ initFiatOnRampResult?: v1InitFiatOnRampResult;
2170
+ createSmartContractInterfaceResult?: v1CreateSmartContractInterfaceResult;
2171
+ deleteSmartContractInterfaceResult?: v1DeleteSmartContractInterfaceResult;
2172
+ enableAuthProxyResult?: v1EnableAuthProxyResult;
2173
+ disableAuthProxyResult?: v1DisableAuthProxyResult;
2174
+ updateAuthProxyConfigResult?: v1UpdateAuthProxyConfigResult;
2175
+ };
2176
+ export type v1RootUserParams = {
2177
+ /** Human-readable name for a User. */
2178
+ userName: string;
2179
+ /** The user's email address. */
2180
+ userEmail?: string;
2181
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
2182
+ apiKeys: apiApiKeyParams[];
2183
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
2184
+ authenticators: v1AuthenticatorParamsV2[];
2185
+ };
2186
+ export type v1RootUserParamsV2 = {
2187
+ /** Human-readable name for a User. */
2188
+ userName: string;
2189
+ /** The user's email address. */
2190
+ userEmail?: string;
2191
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
2192
+ apiKeys: apiApiKeyParams[];
2193
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
2194
+ authenticators: v1AuthenticatorParamsV2[];
2195
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
2196
+ oauthProviders: v1OauthProviderParams[];
2197
+ };
2198
+ export type v1RootUserParamsV3 = {
2199
+ /** Human-readable name for a User. */
2200
+ userName: string;
2201
+ /** The user's email address. */
2202
+ userEmail?: string;
2203
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
2204
+ apiKeys: v1ApiKeyParamsV2[];
2205
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
2206
+ authenticators: v1AuthenticatorParamsV2[];
2207
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
2208
+ oauthProviders: v1OauthProviderParams[];
2209
+ };
2210
+ export type v1RootUserParamsV4 = {
2211
+ /** Human-readable name for a User. */
2212
+ userName: string;
2213
+ /** The user's email address. */
2214
+ userEmail?: string;
2215
+ /** The user's phone number in E.164 format e.g. +13214567890 */
2216
+ userPhoneNumber?: string;
2217
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
2218
+ apiKeys: v1ApiKeyParamsV2[];
2219
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
2220
+ authenticators: v1AuthenticatorParamsV2[];
2221
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
2222
+ oauthProviders: v1OauthProviderParams[];
2223
+ };
2224
+ export type v1Selector = {
2225
+ subject?: string;
2226
+ operator?: v1Operator;
2227
+ target?: string;
2228
+ };
2229
+ export type v1SelectorV2 = {
2230
+ subject?: string;
2231
+ operator?: v1Operator;
2232
+ targets?: string[];
2233
+ };
2234
+ export type v1SetOrganizationFeatureIntent = {
2235
+ /** Name of the feature to set */
2236
+ name: v1FeatureName;
2237
+ /** Optional value for the feature. Will override existing values if feature is already set. */
2238
+ value: string;
2239
+ };
2240
+ export type v1SetOrganizationFeatureRequest = {
2241
+ type: string;
2242
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2243
+ timestampMs: string;
2244
+ /** Unique identifier for a given Organization. */
2245
+ organizationId: string;
2246
+ parameters: v1SetOrganizationFeatureIntent;
2247
+ };
2248
+ export type v1SetOrganizationFeatureResult = {
2249
+ /** Resulting list of organization features. */
2250
+ features: v1Feature[];
2251
+ };
2252
+ export type v1SignRawPayloadIntent = {
2253
+ /** Unique identifier for a given Private Key. */
2254
+ privateKeyId: string;
2255
+ /** Raw unsigned payload to be signed. */
2256
+ payload: string;
2257
+ /** Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
2258
+ encoding: v1PayloadEncoding;
2259
+ /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
2260
+ hashFunction: v1HashFunction;
2261
+ };
2262
+ export type v1SignRawPayloadIntentV2 = {
2263
+ /** A Wallet account address, Private Key address, or Private Key identifier. */
2264
+ signWith: string;
2265
+ /** Raw unsigned payload to be signed. */
2266
+ payload: string;
2267
+ /** Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
2268
+ encoding: v1PayloadEncoding;
2269
+ /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
2270
+ hashFunction: v1HashFunction;
2271
+ };
2272
+ export type v1SignRawPayloadRequest = {
2273
+ type: string;
2274
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2275
+ timestampMs: string;
2276
+ /** Unique identifier for a given Organization. */
2277
+ organizationId: string;
2278
+ parameters: v1SignRawPayloadIntentV2;
2279
+ };
2280
+ export type v1SignRawPayloadResult = {
2281
+ /** Component of an ECSDA signature. */
2282
+ r: string;
2283
+ /** Component of an ECSDA signature. */
2284
+ s: string;
2285
+ /** Component of an ECSDA signature. */
2286
+ v: string;
2287
+ };
2288
+ export type v1SignRawPayloadsIntent = {
2289
+ /** A Wallet account address, Private Key address, or Private Key identifier. */
2290
+ signWith: string;
2291
+ /** An array of raw unsigned payloads to be signed. */
2292
+ payloads: string[];
2293
+ /** Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
2294
+ encoding: v1PayloadEncoding;
2295
+ /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
2296
+ hashFunction: v1HashFunction;
2297
+ };
2298
+ export type v1SignRawPayloadsRequest = {
2299
+ type: string;
2300
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2301
+ timestampMs: string;
2302
+ /** Unique identifier for a given Organization. */
2303
+ organizationId: string;
2304
+ parameters: v1SignRawPayloadsIntent;
2305
+ };
2306
+ export type v1SignRawPayloadsResult = {
2307
+ signatures?: v1SignRawPayloadResult[];
2308
+ };
2309
+ export type v1SignTransactionIntent = {
2310
+ /** Unique identifier for a given Private Key. */
2311
+ privateKeyId: string;
2312
+ /** Raw unsigned transaction to be signed by a particular Private Key. */
2313
+ unsignedTransaction: string;
2314
+ type: v1TransactionType;
2315
+ };
2316
+ export type v1SignTransactionIntentV2 = {
2317
+ /** A Wallet account address, Private Key address, or Private Key identifier. */
2318
+ signWith: string;
2319
+ /** Raw unsigned transaction to be signed */
2320
+ unsignedTransaction: string;
2321
+ type: v1TransactionType;
2322
+ };
2323
+ export type v1SignTransactionRequest = {
2324
+ type: string;
2325
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2326
+ timestampMs: string;
2327
+ /** Unique identifier for a given Organization. */
2328
+ organizationId: string;
2329
+ parameters: v1SignTransactionIntentV2;
2330
+ };
2331
+ export type v1SignTransactionResult = {
2332
+ signedTransaction: string;
2333
+ };
2334
+ export type v1SimpleClientExtensionResults = {
2335
+ appid?: boolean;
2336
+ appidExclude?: boolean;
2337
+ credProps?: v1CredPropsAuthenticationExtensionsClientOutputs;
2338
+ };
2339
+ export type v1SmartContractInterfaceReference = {
2340
+ smartContractInterfaceId?: string;
2341
+ smartContractAddress?: string;
2342
+ digest?: string;
2343
+ };
2344
+ export type v1SmartContractInterfaceType = "SMART_CONTRACT_INTERFACE_TYPE_ETHEREUM" | "SMART_CONTRACT_INTERFACE_TYPE_SOLANA";
2345
+ export type v1SmsCustomizationParams = {
2346
+ /** Template containing references to .OtpCode i.e Your OTP is {{.OtpCode}} */
2347
+ template?: string;
2348
+ };
2349
+ export type v1StampLoginIntent = {
2350
+ /** Client-side public key generated by the user, which will be conditionally added to org data based on the passkey stamp associated with this request */
2351
+ publicKey: string;
2352
+ /** Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
2353
+ expirationSeconds?: string;
2354
+ /** Invalidate all other previously generated Login API keys */
2355
+ invalidateExisting?: boolean;
2356
+ };
2357
+ export type v1StampLoginRequest = {
2358
+ type: string;
2359
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2360
+ timestampMs: string;
2361
+ /** Unique identifier for a given Organization. */
2362
+ organizationId: string;
2363
+ parameters: v1StampLoginIntent;
2364
+ };
2365
+ export type v1StampLoginResult = {
2366
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
2367
+ session: string;
2368
+ };
2369
+ export type v1TagType = "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
2370
+ export type v1TestRateLimitsRequest = {
2371
+ /** Unique identifier for a given organization. If the request is being made by a WebAuthN user and their sub-organization ID is unknown, this can be the parent organization ID; using the sub-organization ID when possible is preferred due to performance reasons. */
2372
+ organizationId: string;
2373
+ /** Whether or not to set a limit on this request. */
2374
+ isSetLimit: boolean;
2375
+ /** Rate limit to set for org, if is_set_limit is set to true. */
2376
+ limit: number;
2377
+ };
2378
+ export type v1TestRateLimitsResponse = {};
2379
+ export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON";
2380
+ export type v1UpdateAllowedOriginsIntent = {
2381
+ /** Additional origins requests are allowed from besides Turnkey origins */
2382
+ allowedOrigins: string[];
2383
+ };
2384
+ export type v1UpdateAllowedOriginsResult = {};
2385
+ export type v1UpdateAuthProxyConfigIntent = {
2386
+ /** Updated list of allowed origins for CORS. */
2387
+ allowedOrigins?: string[];
2388
+ /** Updated list of allowed proxy authentication methods. */
2389
+ allowedAuthMethods?: string[];
2390
+ /** Custom 'from' address for auth-related emails. */
2391
+ sendFromEmailAddress?: string;
2392
+ /** Custom reply-to address for auth-related emails. */
2393
+ replyToEmailAddress?: string;
2394
+ /** Template ID for email-auth messages. */
2395
+ emailAuthTemplateId?: string;
2396
+ /** Template ID for OTP SMS messages. */
2397
+ otpTemplateId?: string;
2398
+ /** Overrides for auth-related email content. */
2399
+ emailCustomizationParams?: v1EmailCustomizationParams;
2400
+ /** Overrides for auth-related SMS content. */
2401
+ smsCustomizationParams?: v1SmsCustomizationParams;
2402
+ /** Overrides for react wallet kit related settings. */
2403
+ walletKitSettings?: v1WalletKitSettingsParams;
2404
+ /** OTP code lifetime in seconds. */
2405
+ otpExpirationSeconds?: number;
2406
+ /** Verification-token lifetime in seconds. */
2407
+ verificationTokenExpirationSeconds?: number;
2408
+ /** Session lifetime in seconds. */
2409
+ sessionExpirationSeconds?: number;
2410
+ /** Enable alphanumeric OTP codes. */
2411
+ otpAlphanumeric?: boolean;
2412
+ /** Desired OTP code length (6–9). */
2413
+ otpLength?: number;
2414
+ };
2415
+ export type v1UpdateAuthProxyConfigResult = {
2416
+ /** Unique identifier for a given User. (representing the turnkey signer user id) */
2417
+ configId?: string;
2418
+ };
2419
+ export type v1UpdatePolicyIntent = {
2420
+ /** Unique identifier for a given Policy. */
2421
+ policyId: string;
2422
+ /** Human-readable name for a Policy. */
2423
+ policyName?: string;
2424
+ /** The instruction to DENY or ALLOW an activity (optional). */
2425
+ policyEffect?: v1Effect;
2426
+ /** The condition expression that triggers the Effect (optional). */
2427
+ policyCondition?: string;
2428
+ /** The consensus expression that triggers the Effect (optional). */
2429
+ policyConsensus?: string;
2430
+ /** Accompanying notes for a Policy (optional). */
2431
+ policyNotes?: string;
2432
+ };
2433
+ export type v1UpdatePolicyIntentV2 = {
2434
+ /** Unique identifier for a given Policy. */
2435
+ policyId: string;
2436
+ /** Human-readable name for a Policy. */
2437
+ policyName?: string;
2438
+ /** The instruction to DENY or ALLOW an activity (optional). */
2439
+ policyEffect?: v1Effect;
2440
+ /** The condition expression that triggers the Effect (optional). */
2441
+ policyCondition?: string;
2442
+ /** The consensus expression that triggers the Effect (optional). */
2443
+ policyConsensus?: string;
2444
+ /** Accompanying notes for a Policy (optional). */
2445
+ policyNotes?: string;
2446
+ };
2447
+ export type v1UpdatePolicyRequest = {
2448
+ type: string;
2449
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2450
+ timestampMs: string;
2451
+ /** Unique identifier for a given Organization. */
2452
+ organizationId: string;
2453
+ parameters: v1UpdatePolicyIntentV2;
2454
+ };
2455
+ export type v1UpdatePolicyResult = {
2456
+ /** Unique identifier for a given Policy. */
2457
+ policyId: string;
2458
+ };
2459
+ export type v1UpdatePolicyResultV2 = {
2460
+ /** Unique identifier for a given Policy. */
2461
+ policyId: string;
2462
+ };
2463
+ export type v1UpdatePrivateKeyTagIntent = {
2464
+ /** Unique identifier for a given Private Key Tag. */
2465
+ privateKeyTagId: string;
2466
+ /** The new, human-readable name for the tag with the given ID. */
2467
+ newPrivateKeyTagName?: string;
2468
+ /** A list of Private Keys IDs to add this tag to. */
2469
+ addPrivateKeyIds: string[];
2470
+ /** A list of Private Key IDs to remove this tag from. */
2471
+ removePrivateKeyIds: string[];
2472
+ };
2473
+ export type v1UpdatePrivateKeyTagRequest = {
2474
+ type: string;
2475
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2476
+ timestampMs: string;
2477
+ /** Unique identifier for a given Organization. */
2478
+ organizationId: string;
2479
+ parameters: v1UpdatePrivateKeyTagIntent;
2480
+ };
2481
+ export type v1UpdatePrivateKeyTagResult = {
2482
+ /** Unique identifier for a given Private Key Tag. */
2483
+ privateKeyTagId: string;
2484
+ };
2485
+ export type v1UpdateRootQuorumIntent = {
2486
+ /** The threshold of unique approvals to reach quorum. */
2487
+ threshold: number;
2488
+ /** The unique identifiers of users who comprise the quorum set. */
2489
+ userIds: string[];
2490
+ };
2491
+ export type v1UpdateRootQuorumRequest = {
2492
+ type: string;
2493
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2494
+ timestampMs: string;
2495
+ /** Unique identifier for a given Organization. */
2496
+ organizationId: string;
2497
+ parameters: v1UpdateRootQuorumIntent;
2498
+ };
2499
+ export type v1UpdateRootQuorumResult = {};
2500
+ export type v1UpdateUserEmailIntent = {
2501
+ /** Unique identifier for a given User. */
2502
+ userId: string;
2503
+ /** The user's email address. Setting this to an empty string will remove the user's email. */
2504
+ userEmail: string;
2505
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
2506
+ verificationToken?: string;
2507
+ };
2508
+ export type v1UpdateUserEmailRequest = {
2509
+ type: string;
2510
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2511
+ timestampMs: string;
2512
+ /** Unique identifier for a given Organization. */
2513
+ organizationId: string;
2514
+ parameters: v1UpdateUserEmailIntent;
2515
+ };
2516
+ export type v1UpdateUserEmailResult = {
2517
+ /** Unique identifier of the User whose email was updated. */
2518
+ userId: string;
2519
+ };
2520
+ export type v1UpdateUserIntent = {
2521
+ /** Unique identifier for a given User. */
2522
+ userId: string;
2523
+ /** Human-readable name for a User. */
2524
+ userName?: string;
2525
+ /** The user's email address. */
2526
+ userEmail?: string;
2527
+ /** An updated list of User Tags to apply to this User. This field, if not needed, should be an empty array in your request body. */
2528
+ userTagIds?: string[];
2529
+ /** The user's phone number in E.164 format e.g. +13214567890 */
2530
+ userPhoneNumber?: string;
2531
+ };
2532
+ export type v1UpdateUserNameIntent = {
2533
+ /** Unique identifier for a given User. */
2534
+ userId: string;
2535
+ /** Human-readable name for a User. */
2536
+ userName: string;
2537
+ };
2538
+ export type v1UpdateUserNameRequest = {
2539
+ type: string;
2540
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2541
+ timestampMs: string;
2542
+ /** Unique identifier for a given Organization. */
2543
+ organizationId: string;
2544
+ parameters: v1UpdateUserNameIntent;
2545
+ };
2546
+ export type v1UpdateUserNameResult = {
2547
+ /** Unique identifier of the User whose name was updated. */
2548
+ userId: string;
2549
+ };
2550
+ export type v1UpdateUserPhoneNumberIntent = {
2551
+ /** Unique identifier for a given User. */
2552
+ userId: string;
2553
+ /** The user's phone number in E.164 format e.g. +13214567890. Setting this to an empty string will remove the user's phone number. */
2554
+ userPhoneNumber: string;
2555
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
2556
+ verificationToken?: string;
2557
+ };
2558
+ export type v1UpdateUserPhoneNumberRequest = {
2559
+ type: string;
2560
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2561
+ timestampMs: string;
2562
+ /** Unique identifier for a given Organization. */
2563
+ organizationId: string;
2564
+ parameters: v1UpdateUserPhoneNumberIntent;
2565
+ };
2566
+ export type v1UpdateUserPhoneNumberResult = {
2567
+ /** Unique identifier of the User whose phone number was updated. */
2568
+ userId: string;
2569
+ };
2570
+ export type v1UpdateUserRequest = {
2571
+ type: string;
2572
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2573
+ timestampMs: string;
2574
+ /** Unique identifier for a given Organization. */
2575
+ organizationId: string;
2576
+ parameters: v1UpdateUserIntent;
2577
+ };
2578
+ export type v1UpdateUserResult = {
2579
+ /** A User ID. */
2580
+ userId: string;
2581
+ };
2582
+ export type v1UpdateUserTagIntent = {
2583
+ /** Unique identifier for a given User Tag. */
2584
+ userTagId: string;
2585
+ /** The new, human-readable name for the tag with the given ID. */
2586
+ newUserTagName?: string;
2587
+ /** A list of User IDs to add this tag to. */
2588
+ addUserIds: string[];
2589
+ /** A list of User IDs to remove this tag from. */
2590
+ removeUserIds: string[];
2591
+ };
2592
+ export type v1UpdateUserTagRequest = {
2593
+ type: string;
2594
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2595
+ timestampMs: string;
2596
+ /** Unique identifier for a given Organization. */
2597
+ organizationId: string;
2598
+ parameters: v1UpdateUserTagIntent;
2599
+ };
2600
+ export type v1UpdateUserTagResult = {
2601
+ /** Unique identifier for a given User Tag. */
2602
+ userTagId: string;
2603
+ };
2604
+ export type v1UpdateWalletIntent = {
2605
+ /** Unique identifier for a given Wallet. */
2606
+ walletId: string;
2607
+ /** Human-readable name for a Wallet. */
2608
+ walletName?: string;
2609
+ };
2610
+ export type v1UpdateWalletRequest = {
2611
+ type: string;
2612
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2613
+ timestampMs: string;
2614
+ /** Unique identifier for a given Organization. */
2615
+ organizationId: string;
2616
+ parameters: v1UpdateWalletIntent;
2617
+ };
2618
+ export type v1UpdateWalletResult = {
2619
+ /** A Wallet ID. */
2620
+ walletId: string;
2621
+ };
2622
+ export type v1User = {
2623
+ /** Unique identifier for a given User. */
2624
+ userId: string;
2625
+ /** Human-readable name for a User. */
2626
+ userName: string;
2627
+ /** The user's email address. */
2628
+ userEmail?: string;
2629
+ /** The user's phone number in E.164 format e.g. +13214567890 */
2630
+ userPhoneNumber?: string;
2631
+ /** A list of Authenticator parameters. */
2632
+ authenticators: v1Authenticator[];
2633
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
2634
+ apiKeys: v1ApiKey[];
2635
+ /** A list of User Tag IDs. */
2636
+ userTags: string[];
2637
+ /** A list of Oauth Providers. */
2638
+ oauthProviders: v1OauthProvider[];
2639
+ createdAt: externaldatav1Timestamp;
2640
+ updatedAt: externaldatav1Timestamp;
2641
+ };
2642
+ export type v1UserParams = {
2643
+ /** Human-readable name for a User. */
2644
+ userName: string;
2645
+ /** The user's email address. */
2646
+ userEmail?: string;
2647
+ /** The User's permissible access method(s). */
2648
+ accessType: v1AccessType;
2649
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
2650
+ apiKeys: apiApiKeyParams[];
2651
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
2652
+ authenticators: v1AuthenticatorParams[];
2653
+ /** A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
2654
+ userTags: string[];
2655
+ };
2656
+ export type v1UserParamsV2 = {
2657
+ /** Human-readable name for a User. */
2658
+ userName: string;
2659
+ /** The user's email address. */
2660
+ userEmail?: string;
2661
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
2662
+ apiKeys: apiApiKeyParams[];
2663
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
2664
+ authenticators: v1AuthenticatorParamsV2[];
2665
+ /** A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
2666
+ userTags: string[];
2667
+ };
2668
+ export type v1UserParamsV3 = {
2669
+ /** Human-readable name for a User. */
2670
+ userName: string;
2671
+ /** The user's email address. */
2672
+ userEmail?: string;
2673
+ /** The user's phone number in E.164 format e.g. +13214567890 */
2674
+ userPhoneNumber?: string;
2675
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
2676
+ apiKeys: v1ApiKeyParamsV2[];
2677
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
2678
+ authenticators: v1AuthenticatorParamsV2[];
2679
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
2680
+ oauthProviders: v1OauthProviderParams[];
2681
+ /** A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
2682
+ userTags: string[];
2683
+ };
2684
+ export type v1VerifyOtpIntent = {
2685
+ /** ID representing the result of an init OTP activity. */
2686
+ otpId: string;
2687
+ /** OTP sent out to a user's contact (email or SMS) */
2688
+ otpCode: string;
2689
+ /** Expiration window (in seconds) indicating how long the verification token is valid for. If not provided, a default of 1 hour will be used. Maximum value is 86400 seconds (24 hours) */
2690
+ expirationSeconds?: string;
2691
+ };
2692
+ export type v1VerifyOtpRequest = {
2693
+ type: string;
2694
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2695
+ timestampMs: string;
2696
+ /** Unique identifier for a given Organization. */
2697
+ organizationId: string;
2698
+ parameters: v1VerifyOtpIntent;
2699
+ };
2700
+ export type v1VerifyOtpResult = {
2701
+ /** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
2702
+ verificationToken: string;
2703
+ };
2704
+ export type v1Vote = {
2705
+ /** Unique identifier for a given Vote object. */
2706
+ id: string;
2707
+ /** Unique identifier for a given User. */
2708
+ userId: string;
2709
+ /** Web and/or API user within your Organization. */
2710
+ user: v1User;
2711
+ /** Unique identifier for a given Activity object. */
2712
+ activityId: string;
2713
+ selection: string;
2714
+ /** The raw message being signed within a Vote. */
2715
+ message: string;
2716
+ /** The public component of a cryptographic key pair used to sign messages and transactions. */
2717
+ publicKey: string;
2718
+ /** The signature applied to a particular vote. */
2719
+ signature: string;
2720
+ /** Method used to produce a signature. */
2721
+ scheme: string;
2722
+ createdAt: externaldatav1Timestamp;
2723
+ };
2724
+ export type v1Wallet = {
2725
+ /** Unique identifier for a given Wallet. */
2726
+ walletId: string;
2727
+ /** Human-readable name for a Wallet. */
2728
+ walletName: string;
2729
+ createdAt: externaldatav1Timestamp;
2730
+ updatedAt: externaldatav1Timestamp;
2731
+ /** True when a given Wallet is exported, false otherwise. */
2732
+ exported: boolean;
2733
+ /** True when a given Wallet is imported, false otherwise. */
2734
+ imported: boolean;
2735
+ };
2736
+ export type v1WalletAccount = {
2737
+ /** Unique identifier for a given Wallet Account. */
2738
+ walletAccountId: string;
2739
+ /** The Organization the Account belongs to. */
2740
+ organizationId: string;
2741
+ /** The Wallet the Account was derived from. */
2742
+ walletId: string;
2743
+ /** Cryptographic curve used to generate the Account. */
2744
+ curve: v1Curve;
2745
+ /** Path format used to generate the Account. */
2746
+ pathFormat: v1PathFormat;
2747
+ /** Path used to generate the Account. */
2748
+ path: string;
2749
+ /** Address format used to generate the Account. */
2750
+ addressFormat: v1AddressFormat;
2751
+ /** Address generated using the Wallet seed and Account parameters. */
2752
+ address: string;
2753
+ createdAt: externaldatav1Timestamp;
2754
+ updatedAt: externaldatav1Timestamp;
2755
+ /** The public component of this wallet account's underlying cryptographic key pair. */
2756
+ publicKey?: string;
2757
+ };
2758
+ export type v1WalletAccountParams = {
2759
+ /** Cryptographic curve used to generate a wallet Account. */
2760
+ curve: v1Curve;
2761
+ /** Path format used to generate a wallet Account. */
2762
+ pathFormat: v1PathFormat;
2763
+ /** Path used to generate a wallet Account. */
2764
+ path: string;
2765
+ /** Address format used to generate a wallet Acccount. */
2766
+ addressFormat: v1AddressFormat;
2767
+ };
2768
+ export type v1WalletKitSettingsParams = {
2769
+ /** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
2770
+ enabledSocialProviders?: string[];
2771
+ };
2772
+ export type v1WalletParams = {
2773
+ /** Human-readable name for a Wallet. */
2774
+ walletName: string;
2775
+ /** A list of wallet Accounts. This field, if not needed, should be an empty array in your request body. */
2776
+ accounts: v1WalletAccountParams[];
2777
+ /** Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24. */
2778
+ mnemonicLength?: number;
2779
+ };
2780
+ export type v1WalletResult = {
2781
+ walletId: string;
2782
+ /** A list of account addresses. */
2783
+ addresses: string[];
2784
+ };
2785
+ export type v1WebAuthnStamp = {
2786
+ /** A base64 url encoded Unique identifier for a given credential. */
2787
+ credentialId: string;
2788
+ /** A base64 encoded payload containing metadata about the signing context and the challenge. */
2789
+ clientDataJson: string;
2790
+ /** A base64 encoded payload containing metadata about the authenticator. */
2791
+ authenticatorData: string;
2792
+ /** The base64 url encoded signature bytes contained within the WebAuthn assertion response. */
2793
+ signature: string;
2794
+ };
2795
+ export type TGetActivityResponse = {
2796
+ /** An action that can be taken within the Turnkey infrastructure. */
2797
+ activity: v1Activity;
2798
+ };
2799
+ export type TGetActivityBody = {
2800
+ organizationId?: string;
2801
+ /** Unique identifier for a given activity object. */
2802
+ activityId: string;
2803
+ };
2804
+ export type TGetActivityInput = {
2805
+ body: TGetActivityBody;
2806
+ };
2807
+ export type TGetApiKeyResponse = {
2808
+ /** An API key. */
2809
+ apiKey: v1ApiKey;
2810
+ };
2811
+ export type TGetApiKeyBody = {
2812
+ organizationId?: string;
2813
+ /** Unique identifier for a given API key. */
2814
+ apiKeyId: string;
2815
+ };
2816
+ export type TGetApiKeyInput = {
2817
+ body: TGetApiKeyBody;
2818
+ };
2819
+ export type TGetApiKeysResponse = {
2820
+ /** A list of API keys. */
2821
+ apiKeys: v1ApiKey[];
2822
+ };
2823
+ export type TGetApiKeysBody = {
2824
+ organizationId?: string;
2825
+ /** Unique identifier for a given user. */
2826
+ userId?: string;
2827
+ };
2828
+ export type TGetApiKeysInput = {
2829
+ body: TGetApiKeysBody;
2830
+ };
2831
+ export type TGetAttestationDocumentResponse = {
2832
+ /** Raw (CBOR-encoded) attestation document. */
2833
+ attestationDocument: string;
2834
+ };
2835
+ export type TGetAttestationDocumentBody = {
2836
+ organizationId?: string;
2837
+ /** The enclave type, one of: ump, notarizer, signer, evm-parser. */
2838
+ enclaveType: string;
2839
+ };
2840
+ export type TGetAttestationDocumentInput = {
2841
+ body: TGetAttestationDocumentBody;
2842
+ };
2843
+ export type TGetAuthenticatorResponse = {
2844
+ /** An authenticator. */
2845
+ authenticator: v1Authenticator;
2846
+ };
2847
+ export type TGetAuthenticatorBody = {
2848
+ organizationId?: string;
2849
+ /** Unique identifier for a given authenticator. */
2850
+ authenticatorId: string;
2851
+ };
2852
+ export type TGetAuthenticatorInput = {
2853
+ body: TGetAuthenticatorBody;
2854
+ };
2855
+ export type TGetAuthenticatorsResponse = {
2856
+ /** A list of authenticators. */
2857
+ authenticators: v1Authenticator[];
2858
+ };
2859
+ export type TGetAuthenticatorsBody = {
2860
+ organizationId?: string;
2861
+ /** Unique identifier for a given user. */
2862
+ userId: string;
2863
+ };
2864
+ export type TGetAuthenticatorsInput = {
2865
+ body: TGetAuthenticatorsBody;
2866
+ };
2867
+ export type TGetOauthProvidersResponse = {
2868
+ /** A list of Oauth providers. */
2869
+ oauthProviders: v1OauthProvider[];
2870
+ };
2871
+ export type TGetOauthProvidersBody = {
2872
+ organizationId?: string;
2873
+ /** Unique identifier for a given user. */
2874
+ userId?: string;
2875
+ };
2876
+ export type TGetOauthProvidersInput = {
2877
+ body: TGetOauthProvidersBody;
2878
+ };
2879
+ export type TGetOrganizationResponse = {
2880
+ /** Object representing the full current and deleted / disabled collection of users, policies, private keys, and invitations attributable to a particular organization. */
2881
+ organizationData: v1OrganizationData;
2882
+ };
2883
+ export type TGetOrganizationBody = {
2884
+ organizationId?: string;
2885
+ };
2886
+ export type TGetOrganizationInput = {
2887
+ body: TGetOrganizationBody;
2888
+ };
2889
+ export type TGetOrganizationConfigsResponse = {
2890
+ /** Organization configs including quorum settings and organization features. */
2891
+ configs: v1Config;
2892
+ };
2893
+ export type TGetOrganizationConfigsBody = {
2894
+ organizationId?: string;
2895
+ };
2896
+ export type TGetOrganizationConfigsInput = {
2897
+ body: TGetOrganizationConfigsBody;
2898
+ };
2899
+ export type TGetPolicyResponse = {
2900
+ /** Object that codifies rules defining the actions that are permissible within an organization. */
2901
+ policy: v1Policy;
2902
+ };
2903
+ export type TGetPolicyBody = {
2904
+ organizationId?: string;
2905
+ /** Unique identifier for a given policy. */
2906
+ policyId: string;
2907
+ };
2908
+ export type TGetPolicyInput = {
2909
+ body: TGetPolicyBody;
2910
+ };
2911
+ export type TGetPolicyEvaluationsResponse = {
2912
+ policyEvaluations: externalactivityv1PolicyEvaluation[];
2913
+ };
2914
+ export type TGetPolicyEvaluationsBody = {
2915
+ organizationId?: string;
2916
+ /** Unique identifier for a given activity. */
2917
+ activityId: string;
2918
+ };
2919
+ export type TGetPolicyEvaluationsInput = {
2920
+ body: TGetPolicyEvaluationsBody;
2921
+ };
2922
+ export type TGetPrivateKeyResponse = {
2923
+ /** Cryptographic public/private key pair that can be used for cryptocurrency needs or more generalized encryption. */
2924
+ privateKey: v1PrivateKey;
2925
+ };
2926
+ export type TGetPrivateKeyBody = {
2927
+ organizationId?: string;
2928
+ /** Unique identifier for a given private key. */
2929
+ privateKeyId: string;
2930
+ };
2931
+ export type TGetPrivateKeyInput = {
2932
+ body: TGetPrivateKeyBody;
2933
+ };
2934
+ export type TGetSmartContractInterfaceResponse = {
2935
+ /** Object to be used in conjunction with policies to guard transaction signing. */
2936
+ smartContractInterface: externaldatav1SmartContractInterface;
2937
+ };
2938
+ export type TGetSmartContractInterfaceBody = {
2939
+ organizationId?: string;
2940
+ /** Unique identifier for a given smart contract interface. */
2941
+ smartContractInterfaceId: string;
2942
+ };
2943
+ export type TGetSmartContractInterfaceInput = {
2944
+ body: TGetSmartContractInterfaceBody;
2945
+ };
2946
+ export type TGetUserResponse = {
2947
+ /** Web and/or API user within your organization. */
2948
+ user: v1User;
2949
+ };
2950
+ export type TGetUserBody = {
2951
+ organizationId?: string;
2952
+ /** Unique identifier for a given user. */
2953
+ userId: string;
2954
+ };
2955
+ export type TGetUserInput = {
2956
+ body: TGetUserBody;
2957
+ };
2958
+ export type TGetWalletResponse = {
2959
+ /** A collection of deterministically generated cryptographic public / private key pairs that share a common seed. */
2960
+ wallet: v1Wallet;
2961
+ };
2962
+ export type TGetWalletBody = {
2963
+ organizationId?: string;
2964
+ /** Unique identifier for a given wallet. */
2965
+ walletId: string;
2966
+ };
2967
+ export type TGetWalletInput = {
2968
+ body: TGetWalletBody;
2969
+ };
2970
+ export type TGetWalletAccountResponse = {
2971
+ /** The resulting wallet account. */
2972
+ account: v1WalletAccount;
2973
+ };
2974
+ export type TGetWalletAccountBody = {
2975
+ organizationId?: string;
2976
+ /** Unique identifier for a given wallet. */
2977
+ walletId: string;
2978
+ /** Address corresponding to a wallet account. */
2979
+ address?: string;
2980
+ /** Path corresponding to a wallet account. */
2981
+ path?: string;
2982
+ };
2983
+ export type TGetWalletAccountInput = {
2984
+ body: TGetWalletAccountBody;
2985
+ };
2986
+ export type TGetActivitiesResponse = {
2987
+ /** A list of activities. */
2988
+ activities: v1Activity[];
2989
+ };
2990
+ export type TGetActivitiesBody = {
2991
+ organizationId?: string;
2992
+ /** Array of activity statuses filtering which activities will be listed in the response. */
2993
+ filterByStatus?: v1ActivityStatus[];
2994
+ /** Parameters used for cursor-based pagination. */
2995
+ paginationOptions?: v1Pagination;
2996
+ /** Array of activity types filtering which activities will be listed in the response. */
2997
+ filterByType?: v1ActivityType[];
2998
+ };
2999
+ export type TGetActivitiesInput = {
3000
+ body: TGetActivitiesBody;
3001
+ };
3002
+ export type TGetPoliciesResponse = {
3003
+ /** A list of policies. */
3004
+ policies: v1Policy[];
3005
+ };
3006
+ export type TGetPoliciesBody = {
3007
+ organizationId?: string;
3008
+ };
3009
+ export type TGetPoliciesInput = {
3010
+ body: TGetPoliciesBody;
3011
+ };
3012
+ export type TListPrivateKeyTagsResponse = {
3013
+ /** A list of private key tags. */
3014
+ privateKeyTags: datav1Tag[];
3015
+ };
3016
+ export type TListPrivateKeyTagsBody = {
3017
+ organizationId?: string;
3018
+ };
3019
+ export type TListPrivateKeyTagsInput = {
3020
+ body: TListPrivateKeyTagsBody;
3021
+ };
3022
+ export type TGetPrivateKeysResponse = {
3023
+ /** A list of private keys. */
3024
+ privateKeys: v1PrivateKey[];
3025
+ };
3026
+ export type TGetPrivateKeysBody = {
3027
+ organizationId?: string;
3028
+ };
3029
+ export type TGetPrivateKeysInput = {
3030
+ body: TGetPrivateKeysBody;
3031
+ };
3032
+ export type TGetSmartContractInterfacesResponse = {
3033
+ /** A list of smart contract interfaces. */
3034
+ smartContractInterfaces: externaldatav1SmartContractInterface[];
3035
+ };
3036
+ export type TGetSmartContractInterfacesBody = {
3037
+ organizationId?: string;
3038
+ };
3039
+ export type TGetSmartContractInterfacesInput = {
3040
+ body: TGetSmartContractInterfacesBody;
3041
+ };
3042
+ export type TGetSubOrgIdsResponse = {
3043
+ /** List of unique identifiers for the matching sub-organizations. */
3044
+ organizationIds: string[];
3045
+ };
3046
+ export type TGetSubOrgIdsBody = {
3047
+ organizationId?: string;
3048
+ /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'WALLET_ACCOUNT_ADDRESS' or 'PUBLIC_KEY' */
3049
+ filterType?: string;
3050
+ /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
3051
+ filterValue?: string;
3052
+ /** Parameters used for cursor-based pagination. */
3053
+ paginationOptions?: v1Pagination;
3054
+ };
3055
+ export type TGetSubOrgIdsInput = {
3056
+ body: TGetSubOrgIdsBody;
3057
+ };
3058
+ export type TListUserTagsResponse = {
3059
+ /** A list of user tags. */
3060
+ userTags: datav1Tag[];
3061
+ };
3062
+ export type TListUserTagsBody = {
3063
+ organizationId?: string;
3064
+ };
3065
+ export type TListUserTagsInput = {
3066
+ body: TListUserTagsBody;
3067
+ };
3068
+ export type TGetUsersResponse = {
3069
+ /** A list of users. */
3070
+ users: v1User[];
3071
+ };
3072
+ export type TGetUsersBody = {
3073
+ organizationId?: string;
3074
+ };
3075
+ export type TGetUsersInput = {
3076
+ body: TGetUsersBody;
3077
+ };
3078
+ export type TGetVerifiedSubOrgIdsResponse = {
3079
+ /** List of unique identifiers for the matching sub-organizations. */
3080
+ organizationIds: string[];
3081
+ };
3082
+ export type TGetVerifiedSubOrgIdsBody = {
3083
+ organizationId?: string;
3084
+ /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER'. */
3085
+ filterType?: string;
3086
+ /** The value of the filter to apply for the specified type. For example, a specific email or phone number string. */
3087
+ filterValue?: string;
3088
+ /** Parameters used for cursor-based pagination. */
3089
+ paginationOptions?: v1Pagination;
3090
+ };
3091
+ export type TGetVerifiedSubOrgIdsInput = {
3092
+ body: TGetVerifiedSubOrgIdsBody;
3093
+ };
3094
+ export type TGetWalletAccountsResponse = {
3095
+ /** A list of accounts generated from a wallet that share a common seed. */
3096
+ accounts: v1WalletAccount[];
3097
+ };
3098
+ export type TGetWalletAccountsBody = {
3099
+ organizationId?: string;
3100
+ /** Unique identifier for a given wallet. If not provided, all accounts for the organization will be returned. */
3101
+ walletId?: string;
3102
+ /** Parameters used for cursor-based pagination. */
3103
+ paginationOptions?: v1Pagination;
3104
+ };
3105
+ export type TGetWalletAccountsInput = {
3106
+ body: TGetWalletAccountsBody;
3107
+ };
3108
+ export type TGetWalletsResponse = {
3109
+ /** A list of wallets. */
3110
+ wallets: v1Wallet[];
3111
+ };
3112
+ export type TGetWalletsBody = {
3113
+ organizationId?: string;
3114
+ };
3115
+ export type TGetWalletsInput = {
3116
+ body: TGetWalletsBody;
3117
+ };
3118
+ export type TGetWhoamiResponse = {
3119
+ /** Unique identifier for a given organization. */
3120
+ organizationId: string;
3121
+ /** Human-readable name for an organization. */
3122
+ organizationName: string;
3123
+ /** Unique identifier for a given user. */
3124
+ userId: string;
3125
+ /** Human-readable name for a user. */
3126
+ username: string;
3127
+ };
3128
+ export type TGetWhoamiBody = {
3129
+ organizationId?: string;
3130
+ };
3131
+ export type TGetWhoamiInput = {
3132
+ body: TGetWhoamiBody;
3133
+ };
3134
+ export type TApproveActivityResponse = {
3135
+ activity: v1Activity;
3136
+ };
3137
+ export type TApproveActivityBody = {
3138
+ timestampMs?: string;
3139
+ organizationId?: string;
3140
+ /** An artifact verifying a User's action. */
3141
+ fingerprint: string;
3142
+ };
3143
+ export type TApproveActivityInput = {
3144
+ body: TApproveActivityBody;
3145
+ };
3146
+ export type TCreateApiKeysResponse = {
3147
+ activity: v1Activity;
3148
+ /** A list of API Key IDs. */
3149
+ apiKeyIds: string[];
3150
+ };
3151
+ export type TCreateApiKeysBody = {
3152
+ timestampMs?: string;
3153
+ organizationId?: string;
3154
+ /** A list of API Keys. */
3155
+ apiKeys: v1ApiKeyParamsV2[];
3156
+ /** Unique identifier for a given User. */
3157
+ userId: string;
3158
+ };
3159
+ export type TCreateApiKeysInput = {
3160
+ body: TCreateApiKeysBody;
3161
+ };
3162
+ export type TCreateApiOnlyUsersResponse = {
3163
+ activity: v1Activity;
3164
+ /** A list of API-only User IDs. */
3165
+ userIds: string[];
3166
+ };
3167
+ export type TCreateApiOnlyUsersBody = {
3168
+ timestampMs?: string;
3169
+ organizationId?: string;
3170
+ /** A list of API-only Users to create. */
3171
+ apiOnlyUsers: v1ApiOnlyUserParams[];
3172
+ };
3173
+ export type TCreateApiOnlyUsersInput = {
3174
+ body: TCreateApiOnlyUsersBody;
3175
+ };
3176
+ export type TCreateAuthenticatorsResponse = {
3177
+ activity: v1Activity;
3178
+ /** A list of Authenticator IDs. */
3179
+ authenticatorIds: string[];
3180
+ };
3181
+ export type TCreateAuthenticatorsBody = {
3182
+ timestampMs?: string;
3183
+ organizationId?: string;
3184
+ /** A list of Authenticators. */
3185
+ authenticators: v1AuthenticatorParamsV2[];
3186
+ /** Unique identifier for a given User. */
3187
+ userId: string;
3188
+ };
3189
+ export type TCreateAuthenticatorsInput = {
3190
+ body: TCreateAuthenticatorsBody;
3191
+ };
3192
+ export type TCreateInvitationsResponse = {
3193
+ activity: v1Activity;
3194
+ /** A list of Invitation IDs */
3195
+ invitationIds: string[];
3196
+ };
3197
+ export type TCreateInvitationsBody = {
3198
+ timestampMs?: string;
3199
+ organizationId?: string;
3200
+ /** A list of Invitations. */
3201
+ invitations: v1InvitationParams[];
3202
+ };
3203
+ export type TCreateInvitationsInput = {
3204
+ body: TCreateInvitationsBody;
3205
+ };
3206
+ export type TCreateOauthProvidersResponse = {
3207
+ activity: v1Activity;
3208
+ /** A list of unique identifiers for Oauth Providers */
3209
+ providerIds: string[];
3210
+ };
3211
+ export type TCreateOauthProvidersBody = {
3212
+ timestampMs?: string;
3213
+ organizationId?: string;
3214
+ /** The ID of the User to add an Oauth provider to */
3215
+ userId: string;
3216
+ /** A list of Oauth providers. */
3217
+ oauthProviders: v1OauthProviderParams[];
3218
+ };
3219
+ export type TCreateOauthProvidersInput = {
3220
+ body: TCreateOauthProvidersBody;
3221
+ };
3222
+ export type TCreatePoliciesResponse = {
3223
+ activity: v1Activity;
3224
+ /** A list of unique identifiers for the created policies. */
3225
+ policyIds: string[];
3226
+ };
3227
+ export type TCreatePoliciesBody = {
3228
+ timestampMs?: string;
3229
+ organizationId?: string;
3230
+ /** An array of policy intents to be created. */
3231
+ policies: v1CreatePolicyIntentV3[];
3232
+ };
3233
+ export type TCreatePoliciesInput = {
3234
+ body: TCreatePoliciesBody;
3235
+ };
3236
+ export type TCreatePolicyResponse = {
3237
+ activity: v1Activity;
3238
+ /** Unique identifier for a given Policy. */
3239
+ policyId: string;
3240
+ };
3241
+ export type TCreatePolicyBody = {
3242
+ timestampMs?: string;
3243
+ organizationId?: string;
3244
+ /** Human-readable name for a Policy. */
3245
+ policyName: string;
3246
+ /** The instruction to DENY or ALLOW an activity. */
3247
+ effect: v1Effect;
3248
+ /** The condition expression that triggers the Effect */
3249
+ condition?: string;
3250
+ /** The consensus expression that triggers the Effect */
3251
+ consensus?: string;
3252
+ notes?: string;
3253
+ };
3254
+ export type TCreatePolicyInput = {
3255
+ body: TCreatePolicyBody;
3256
+ };
3257
+ export type TCreatePrivateKeyTagResponse = {
3258
+ activity: v1Activity;
3259
+ /** Unique identifier for a given Private Key Tag. */
3260
+ privateKeyTagId: string;
3261
+ /** A list of Private Key IDs. */
3262
+ privateKeyIds: string[];
3263
+ };
3264
+ export type TCreatePrivateKeyTagBody = {
3265
+ timestampMs?: string;
3266
+ organizationId?: string;
3267
+ /** Human-readable name for a Private Key Tag. */
3268
+ privateKeyTagName: string;
3269
+ /** A list of Private Key IDs. */
3270
+ privateKeyIds: string[];
3271
+ };
3272
+ export type TCreatePrivateKeyTagInput = {
3273
+ body: TCreatePrivateKeyTagBody;
3274
+ };
3275
+ export type TCreatePrivateKeysResponse = {
3276
+ activity: v1Activity;
3277
+ /** A list of Private Key IDs and addresses. */
3278
+ privateKeys: v1PrivateKeyResult[];
3279
+ };
3280
+ export type TCreatePrivateKeysBody = {
3281
+ timestampMs?: string;
3282
+ organizationId?: string;
3283
+ /** A list of Private Keys. */
3284
+ privateKeys: v1PrivateKeyParams[];
3285
+ };
3286
+ export type TCreatePrivateKeysInput = {
3287
+ body: TCreatePrivateKeysBody;
3288
+ };
3289
+ export type TCreateReadOnlySessionResponse = {
3290
+ activity: v1Activity;
3291
+ /** Unique identifier for a given Organization. If the request is being made by a user and their Sub-Organization ID is unknown, this can be the Parent Organization ID. However, using the Sub-Organization ID is preferred due to performance reasons. */
3292
+ organizationId: string;
3293
+ /** Human-readable name for an Organization. */
3294
+ organizationName: string;
3295
+ /** Unique identifier for a given User. */
3296
+ userId: string;
3297
+ /** Human-readable name for a User. */
3298
+ username: string;
3299
+ /** String representing a read only session */
3300
+ session: string;
3301
+ /** UTC timestamp in seconds representing the expiry time for the read only session. */
3302
+ sessionExpiry: string;
3303
+ };
3304
+ export type TCreateReadOnlySessionBody = {
3305
+ timestampMs?: string;
3306
+ organizationId?: string;
3307
+ };
3308
+ export type TCreateReadOnlySessionInput = {
3309
+ body: TCreateReadOnlySessionBody;
3310
+ };
3311
+ export type TCreateReadWriteSessionResponse = {
3312
+ activity: v1Activity;
3313
+ /** Unique identifier for a given Organization. If the request is being made by a user and their Sub-Organization ID is unknown, this can be the Parent Organization ID. However, using the Sub-Organization ID is preferred due to performance reasons. */
3314
+ organizationId: string;
3315
+ /** Human-readable name for an Organization. */
3316
+ organizationName: string;
3317
+ /** Unique identifier for a given User. */
3318
+ userId: string;
3319
+ /** Human-readable name for a User. */
3320
+ username: string;
3321
+ /** Unique identifier for the created API key. */
3322
+ apiKeyId: string;
3323
+ /** HPKE encrypted credential bundle */
3324
+ credentialBundle: string;
3325
+ };
3326
+ export type TCreateReadWriteSessionBody = {
3327
+ timestampMs?: string;
3328
+ organizationId?: string;
3329
+ /** Client-side public key generated by the user, to which the read write session bundle (credentials) will be encrypted. */
3330
+ targetPublicKey: string;
3331
+ /** Unique identifier for a given User. */
3332
+ userId?: string;
3333
+ /** Optional human-readable name for an API Key. If none provided, default to Read Write Session - <Timestamp> */
3334
+ apiKeyName?: string;
3335
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
3336
+ expirationSeconds?: string;
3337
+ /** Invalidate all other previously generated ReadWriteSession API keys */
3338
+ invalidateExisting?: boolean;
3339
+ };
3340
+ export type TCreateReadWriteSessionInput = {
3341
+ body: TCreateReadWriteSessionBody;
3342
+ };
3343
+ export type TCreateSmartContractInterfaceResponse = {
3344
+ activity: v1Activity;
3345
+ /** The ID of the created Smart Contract Interface. */
3346
+ smartContractInterfaceId: string;
3347
+ };
3348
+ export type TCreateSmartContractInterfaceBody = {
3349
+ timestampMs?: string;
3350
+ organizationId?: string;
3351
+ /** Corresponding contract address or program ID */
3352
+ smartContractAddress: string;
3353
+ /** ABI/IDL as a JSON string */
3354
+ smartContractInterface: string;
3355
+ type: v1SmartContractInterfaceType;
3356
+ /** Human-readable name for a Smart Contract Interface. */
3357
+ label: string;
3358
+ /** Notes for a Smart Contract Interface. */
3359
+ notes?: string;
3360
+ };
3361
+ export type TCreateSmartContractInterfaceInput = {
3362
+ body: TCreateSmartContractInterfaceBody;
3363
+ };
3364
+ export type TCreateSubOrganizationResponse = {
3365
+ activity: v1Activity;
3366
+ subOrganizationId: string;
3367
+ wallet?: v1WalletResult;
3368
+ rootUserIds?: string[];
3369
+ };
3370
+ export type TCreateSubOrganizationBody = {
3371
+ timestampMs?: string;
3372
+ organizationId?: string;
3373
+ /** Name for this sub-organization */
3374
+ subOrganizationName: string;
3375
+ /** Root users to create within this sub-organization */
3376
+ rootUsers: v1RootUserParamsV4[];
3377
+ /** The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users */
3378
+ rootQuorumThreshold: number;
3379
+ /** The wallet to create for the sub-organization */
3380
+ wallet?: v1WalletParams;
3381
+ /** Disable email recovery for the sub-organization */
3382
+ disableEmailRecovery?: boolean;
3383
+ /** Disable email auth for the sub-organization */
3384
+ disableEmailAuth?: boolean;
3385
+ /** Disable OTP SMS auth for the sub-organization */
3386
+ disableSmsAuth?: boolean;
3387
+ /** Disable OTP email auth for the sub-organization */
3388
+ disableOtpEmailAuth?: boolean;
3389
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
3390
+ verificationToken?: string;
3391
+ };
3392
+ export type TCreateSubOrganizationInput = {
3393
+ body: TCreateSubOrganizationBody;
3394
+ };
3395
+ export type TCreateUserTagResponse = {
3396
+ activity: v1Activity;
3397
+ /** Unique identifier for a given User Tag. */
3398
+ userTagId: string;
3399
+ /** A list of User IDs. */
3400
+ userIds: string[];
3401
+ };
3402
+ export type TCreateUserTagBody = {
3403
+ timestampMs?: string;
3404
+ organizationId?: string;
3405
+ /** Human-readable name for a User Tag. */
3406
+ userTagName: string;
3407
+ /** A list of User IDs. */
3408
+ userIds: string[];
3409
+ };
3410
+ export type TCreateUserTagInput = {
3411
+ body: TCreateUserTagBody;
3412
+ };
3413
+ export type TCreateUsersResponse = {
3414
+ activity: v1Activity;
3415
+ /** A list of User IDs. */
3416
+ userIds: string[];
3417
+ };
3418
+ export type TCreateUsersBody = {
3419
+ timestampMs?: string;
3420
+ organizationId?: string;
3421
+ /** A list of Users. */
3422
+ users: v1UserParamsV3[];
3423
+ };
3424
+ export type TCreateUsersInput = {
3425
+ body: TCreateUsersBody;
3426
+ };
3427
+ export type TCreateWalletResponse = {
3428
+ activity: v1Activity;
3429
+ /** Unique identifier for a Wallet. */
3430
+ walletId: string;
3431
+ /** A list of account addresses. */
3432
+ addresses: string[];
3433
+ };
3434
+ export type TCreateWalletBody = {
3435
+ timestampMs?: string;
3436
+ organizationId?: string;
3437
+ /** Human-readable name for a Wallet. */
3438
+ walletName: string;
3439
+ /** A list of wallet Accounts. This field, if not needed, should be an empty array in your request body. */
3440
+ accounts: v1WalletAccountParams[];
3441
+ /** Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24. */
3442
+ mnemonicLength?: number;
3443
+ };
3444
+ export type TCreateWalletInput = {
3445
+ body: TCreateWalletBody;
3446
+ };
3447
+ export type TCreateWalletAccountsResponse = {
3448
+ activity: v1Activity;
3449
+ /** A list of derived addresses. */
3450
+ addresses: string[];
3451
+ };
3452
+ export type TCreateWalletAccountsBody = {
3453
+ timestampMs?: string;
3454
+ organizationId?: string;
3455
+ /** Unique identifier for a given Wallet. */
3456
+ walletId: string;
3457
+ /** A list of wallet Accounts. */
3458
+ accounts: v1WalletAccountParams[];
3459
+ };
3460
+ export type TCreateWalletAccountsInput = {
3461
+ body: TCreateWalletAccountsBody;
3462
+ };
3463
+ export type TDeleteApiKeysResponse = {
3464
+ activity: v1Activity;
3465
+ /** A list of API Key IDs. */
3466
+ apiKeyIds: string[];
3467
+ };
3468
+ export type TDeleteApiKeysBody = {
3469
+ timestampMs?: string;
3470
+ organizationId?: string;
3471
+ /** Unique identifier for a given User. */
3472
+ userId: string;
3473
+ /** A list of API Key IDs. */
3474
+ apiKeyIds: string[];
3475
+ };
3476
+ export type TDeleteApiKeysInput = {
3477
+ body: TDeleteApiKeysBody;
3478
+ };
3479
+ export type TDeleteAuthenticatorsResponse = {
3480
+ activity: v1Activity;
3481
+ /** Unique identifier for a given Authenticator. */
3482
+ authenticatorIds: string[];
3483
+ };
3484
+ export type TDeleteAuthenticatorsBody = {
3485
+ timestampMs?: string;
3486
+ organizationId?: string;
3487
+ /** Unique identifier for a given User. */
3488
+ userId: string;
3489
+ /** A list of Authenticator IDs. */
3490
+ authenticatorIds: string[];
3491
+ };
3492
+ export type TDeleteAuthenticatorsInput = {
3493
+ body: TDeleteAuthenticatorsBody;
3494
+ };
3495
+ export type TDeleteInvitationResponse = {
3496
+ activity: v1Activity;
3497
+ /** Unique identifier for a given Invitation. */
3498
+ invitationId: string;
3499
+ };
3500
+ export type TDeleteInvitationBody = {
3501
+ timestampMs?: string;
3502
+ organizationId?: string;
3503
+ /** Unique identifier for a given Invitation object. */
3504
+ invitationId: string;
3505
+ };
3506
+ export type TDeleteInvitationInput = {
3507
+ body: TDeleteInvitationBody;
3508
+ };
3509
+ export type TDeleteOauthProvidersResponse = {
3510
+ activity: v1Activity;
3511
+ /** A list of unique identifiers for Oauth Providers */
3512
+ providerIds: string[];
3513
+ };
3514
+ export type TDeleteOauthProvidersBody = {
3515
+ timestampMs?: string;
3516
+ organizationId?: string;
3517
+ /** The ID of the User to remove an Oauth provider from */
3518
+ userId: string;
3519
+ /** Unique identifier for a given Provider. */
3520
+ providerIds: string[];
3521
+ };
3522
+ export type TDeleteOauthProvidersInput = {
3523
+ body: TDeleteOauthProvidersBody;
3524
+ };
3525
+ export type TDeletePolicyResponse = {
3526
+ activity: v1Activity;
3527
+ /** Unique identifier for a given Policy. */
3528
+ policyId: string;
3529
+ };
3530
+ export type TDeletePolicyBody = {
3531
+ timestampMs?: string;
3532
+ organizationId?: string;
3533
+ /** Unique identifier for a given Policy. */
3534
+ policyId: string;
3535
+ };
3536
+ export type TDeletePolicyInput = {
3537
+ body: TDeletePolicyBody;
3538
+ };
3539
+ export type TDeletePrivateKeyTagsResponse = {
3540
+ activity: v1Activity;
3541
+ /** A list of Private Key Tag IDs. */
3542
+ privateKeyTagIds: string[];
3543
+ /** A list of Private Key IDs. */
3544
+ privateKeyIds: string[];
3545
+ };
3546
+ export type TDeletePrivateKeyTagsBody = {
3547
+ timestampMs?: string;
3548
+ organizationId?: string;
3549
+ /** A list of Private Key Tag IDs. */
3550
+ privateKeyTagIds: string[];
3551
+ };
3552
+ export type TDeletePrivateKeyTagsInput = {
3553
+ body: TDeletePrivateKeyTagsBody;
3554
+ };
3555
+ export type TDeletePrivateKeysResponse = {
3556
+ activity: v1Activity;
3557
+ /** A list of private key unique identifiers that were removed */
3558
+ privateKeyIds: string[];
3559
+ };
3560
+ export type TDeletePrivateKeysBody = {
3561
+ timestampMs?: string;
3562
+ organizationId?: string;
3563
+ /** List of unique identifiers for private keys within an organization */
3564
+ privateKeyIds: string[];
3565
+ /** Optional parameter for deleting the private keys, even if any have not been previously exported. If they have been exported, this field is ignored. */
3566
+ deleteWithoutExport?: boolean;
3567
+ };
3568
+ export type TDeletePrivateKeysInput = {
3569
+ body: TDeletePrivateKeysBody;
3570
+ };
3571
+ export type TDeleteSmartContractInterfaceResponse = {
3572
+ activity: v1Activity;
3573
+ /** The ID of the deleted Smart Contract Interface. */
3574
+ smartContractInterfaceId: string;
3575
+ };
3576
+ export type TDeleteSmartContractInterfaceBody = {
3577
+ timestampMs?: string;
3578
+ organizationId?: string;
3579
+ /** The ID of a Smart Contract Interface intended for deletion. */
3580
+ smartContractInterfaceId: string;
3581
+ };
3582
+ export type TDeleteSmartContractInterfaceInput = {
3583
+ body: TDeleteSmartContractInterfaceBody;
3584
+ };
3585
+ export type TDeleteSubOrganizationResponse = {
3586
+ activity: v1Activity;
3587
+ /** Unique identifier of the sub organization that was removed */
3588
+ subOrganizationUuid: string;
3589
+ };
3590
+ export type TDeleteSubOrganizationBody = {
3591
+ timestampMs?: string;
3592
+ organizationId?: string;
3593
+ /** Sub-organization deletion, by default, requires associated wallets and private keys to be exported for security reasons. Set this boolean to true to force sub-organization deletion even if some wallets or private keys within it have not been exported yet. Default: false. */
3594
+ deleteWithoutExport?: boolean;
3595
+ };
3596
+ export type TDeleteSubOrganizationInput = {
3597
+ body: TDeleteSubOrganizationBody;
3598
+ };
3599
+ export type TDeleteUserTagsResponse = {
3600
+ activity: v1Activity;
3601
+ /** A list of User Tag IDs. */
3602
+ userTagIds: string[];
3603
+ /** A list of User IDs. */
3604
+ userIds: string[];
3605
+ };
3606
+ export type TDeleteUserTagsBody = {
3607
+ timestampMs?: string;
3608
+ organizationId?: string;
3609
+ /** A list of User Tag IDs. */
3610
+ userTagIds: string[];
3611
+ };
3612
+ export type TDeleteUserTagsInput = {
3613
+ body: TDeleteUserTagsBody;
3614
+ };
3615
+ export type TDeleteUsersResponse = {
3616
+ activity: v1Activity;
3617
+ /** A list of User IDs. */
3618
+ userIds: string[];
3619
+ };
3620
+ export type TDeleteUsersBody = {
3621
+ timestampMs?: string;
3622
+ organizationId?: string;
3623
+ /** A list of User IDs. */
3624
+ userIds: string[];
3625
+ };
3626
+ export type TDeleteUsersInput = {
3627
+ body: TDeleteUsersBody;
3628
+ };
3629
+ export type TDeleteWalletsResponse = {
3630
+ activity: v1Activity;
3631
+ /** A list of wallet unique identifiers that were removed */
3632
+ walletIds: string[];
3633
+ };
3634
+ export type TDeleteWalletsBody = {
3635
+ timestampMs?: string;
3636
+ organizationId?: string;
3637
+ /** List of unique identifiers for wallets within an organization */
3638
+ walletIds: string[];
3639
+ /** Optional parameter for deleting the wallets, even if any have not been previously exported. If they have been exported, this field is ignored. */
3640
+ deleteWithoutExport?: boolean;
3641
+ };
3642
+ export type TDeleteWalletsInput = {
3643
+ body: TDeleteWalletsBody;
3644
+ };
3645
+ export type TEmailAuthResponse = {
3646
+ activity: v1Activity;
3647
+ /** Unique identifier for the authenticating User. */
3648
+ userId: string;
3649
+ /** Unique identifier for the created API key. */
3650
+ apiKeyId: string;
3651
+ };
3652
+ export type TEmailAuthBody = {
3653
+ timestampMs?: string;
3654
+ organizationId?: string;
3655
+ /** Email of the authenticating user. */
3656
+ email: string;
3657
+ /** Client-side public key generated by the user, to which the email auth bundle (credentials) will be encrypted. */
3658
+ targetPublicKey: string;
3659
+ /** Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
3660
+ apiKeyName?: string;
3661
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
3662
+ expirationSeconds?: string;
3663
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
3664
+ emailCustomization?: v1EmailCustomizationParams;
3665
+ /** Invalidate all other previously generated Email Auth API keys */
3666
+ invalidateExisting?: boolean;
3667
+ /** Optional custom email address from which to send the email */
3668
+ sendFromEmailAddress?: string;
3669
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
3670
+ sendFromEmailSenderName?: string;
3671
+ /** Optional custom email address to use as reply-to */
3672
+ replyToEmailAddress?: string;
3673
+ };
3674
+ export type TEmailAuthInput = {
3675
+ body: TEmailAuthBody;
3676
+ };
3677
+ export type TExportPrivateKeyResponse = {
3678
+ activity: v1Activity;
3679
+ /** Unique identifier for a given Private Key. */
3680
+ privateKeyId: string;
3681
+ /** Export bundle containing a private key encrypted to the client's target public key. */
3682
+ exportBundle: string;
3683
+ };
3684
+ export type TExportPrivateKeyBody = {
3685
+ timestampMs?: string;
3686
+ organizationId?: string;
3687
+ /** Unique identifier for a given Private Key. */
3688
+ privateKeyId: string;
3689
+ /** Client-side public key generated by the user, to which the export bundle will be encrypted. */
3690
+ targetPublicKey: string;
3691
+ };
3692
+ export type TExportPrivateKeyInput = {
3693
+ body: TExportPrivateKeyBody;
3694
+ };
3695
+ export type TExportWalletResponse = {
3696
+ activity: v1Activity;
3697
+ /** Unique identifier for a given Wallet. */
3698
+ walletId: string;
3699
+ /** Export bundle containing a wallet mnemonic + optional newline passphrase encrypted by the client's target public key. */
3700
+ exportBundle: string;
3701
+ };
3702
+ export type TExportWalletBody = {
3703
+ timestampMs?: string;
3704
+ organizationId?: string;
3705
+ /** Unique identifier for a given Wallet. */
3706
+ walletId: string;
3707
+ /** Client-side public key generated by the user, to which the export bundle will be encrypted. */
3708
+ targetPublicKey: string;
3709
+ /** The language of the mnemonic to export. Defaults to English. */
3710
+ language?: v1MnemonicLanguage;
3711
+ };
3712
+ export type TExportWalletInput = {
3713
+ body: TExportWalletBody;
3714
+ };
3715
+ export type TExportWalletAccountResponse = {
3716
+ activity: v1Activity;
3717
+ /** Address to identify Wallet Account. */
3718
+ address: string;
3719
+ /** Export bundle containing a private key encrypted by the client's target public key. */
3720
+ exportBundle: string;
3721
+ };
3722
+ export type TExportWalletAccountBody = {
3723
+ timestampMs?: string;
3724
+ organizationId?: string;
3725
+ /** Address to identify Wallet Account. */
3726
+ address: string;
3727
+ /** Client-side public key generated by the user, to which the export bundle will be encrypted. */
3728
+ targetPublicKey: string;
3729
+ };
3730
+ export type TExportWalletAccountInput = {
3731
+ body: TExportWalletAccountBody;
3732
+ };
3733
+ export type TImportPrivateKeyResponse = {
3734
+ activity: v1Activity;
3735
+ /** Unique identifier for a Private Key. */
3736
+ privateKeyId: string;
3737
+ /** A list of addresses. */
3738
+ addresses: immutableactivityv1Address[];
3739
+ };
3740
+ export type TImportPrivateKeyBody = {
3741
+ timestampMs?: string;
3742
+ organizationId?: string;
3743
+ /** The ID of the User importing a Private Key. */
3744
+ userId: string;
3745
+ /** Human-readable name for a Private Key. */
3746
+ privateKeyName: string;
3747
+ /** Bundle containing a raw private key encrypted to the enclave's target public key. */
3748
+ encryptedBundle: string;
3749
+ /** Cryptographic Curve used to generate a given Private Key. */
3750
+ curve: v1Curve;
3751
+ /** Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
3752
+ addressFormats: v1AddressFormat[];
3753
+ };
3754
+ export type TImportPrivateKeyInput = {
3755
+ body: TImportPrivateKeyBody;
3756
+ };
3757
+ export type TImportWalletResponse = {
3758
+ activity: v1Activity;
3759
+ /** Unique identifier for a Wallet. */
3760
+ walletId: string;
3761
+ /** A list of account addresses. */
3762
+ addresses: string[];
3763
+ };
3764
+ export type TImportWalletBody = {
3765
+ timestampMs?: string;
3766
+ organizationId?: string;
3767
+ /** The ID of the User importing a Wallet. */
3768
+ userId: string;
3769
+ /** Human-readable name for a Wallet. */
3770
+ walletName: string;
3771
+ /** Bundle containing a wallet mnemonic encrypted to the enclave's target public key. */
3772
+ encryptedBundle: string;
3773
+ /** A list of wallet Accounts. */
3774
+ accounts: v1WalletAccountParams[];
3775
+ };
3776
+ export type TImportWalletInput = {
3777
+ body: TImportWalletBody;
3778
+ };
3779
+ export type TInitFiatOnRampResponse = {
3780
+ activity: v1Activity;
3781
+ /** Unique URL for a given fiat on-ramp flow. */
3782
+ onRampUrl: string;
3783
+ /** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
3784
+ onRampTransactionId: string;
3785
+ };
3786
+ export type TInitFiatOnRampBody = {
3787
+ timestampMs?: string;
3788
+ organizationId?: string;
3789
+ /** Enum to specifiy which on-ramp provider to use */
3790
+ onrampProvider: v1FiatOnRampProvider;
3791
+ /** Destination wallet address for the buy transaction. */
3792
+ walletAddress: string;
3793
+ /** Blockchain network to be used for the transaction, e.g., bitcoin, ethereum. Maps to MoonPay's network or Coinbase's defaultNetwork. */
3794
+ network: v1FiatOnRampBlockchainNetwork;
3795
+ /** Code for the cryptocurrency to be purchased, e.g., btc, eth. Maps to MoonPay's currencyCode or Coinbase's defaultAsset. */
3796
+ cryptoCurrencyCode: v1FiatOnRampCryptoCurrency;
3797
+ /** Code for the fiat currency to be used in the transaction, e.g., USD, EUR. */
3798
+ fiatCurrencyCode?: v1FiatOnRampCurrency;
3799
+ /** Specifies a preset fiat amount for the transaction, e.g., '100'. Must be greater than '20'. If not provided, the user will be prompted to enter an amount. */
3800
+ fiatCurrencyAmount?: string;
3801
+ /** Pre-selected payment method, e.g., CREDIT_DEBIT_CARD, APPLE_PAY. Validated against the chosen provider. */
3802
+ paymentMethod?: v1FiatOnRampPaymentMethod;
3803
+ /** ISO 3166-1 two-digit country code for Coinbase representing the purchasing user’s country of residence, e.g., US, GB. */
3804
+ countryCode?: string;
3805
+ /** ISO 3166-2 two-digit country subdivision code for Coinbase representing the purchasing user’s subdivision of residence within their country, e.g. NY. Required if country_code=US. */
3806
+ countrySubdivisionCode?: string;
3807
+ /** Optional flag to indicate whether to use the sandbox mode to simulate transactions for the on-ramp provider. Default is false. */
3808
+ sandboxMode?: boolean;
3809
+ };
3810
+ export type TInitFiatOnRampInput = {
3811
+ body: TInitFiatOnRampBody;
3812
+ };
3813
+ export type TInitImportPrivateKeyResponse = {
3814
+ activity: v1Activity;
3815
+ /** Import bundle containing a public key and signature to use for importing client data. */
3816
+ importBundle: string;
3817
+ };
3818
+ export type TInitImportPrivateKeyBody = {
3819
+ timestampMs?: string;
3820
+ organizationId?: string;
3821
+ /** The ID of the User importing a Private Key. */
3822
+ userId: string;
3823
+ };
3824
+ export type TInitImportPrivateKeyInput = {
3825
+ body: TInitImportPrivateKeyBody;
3826
+ };
3827
+ export type TInitImportWalletResponse = {
3828
+ activity: v1Activity;
3829
+ /** Import bundle containing a public key and signature to use for importing client data. */
3830
+ importBundle: string;
3831
+ };
3832
+ export type TInitImportWalletBody = {
3833
+ timestampMs?: string;
3834
+ organizationId?: string;
3835
+ /** The ID of the User importing a Wallet. */
3836
+ userId: string;
3837
+ };
3838
+ export type TInitImportWalletInput = {
3839
+ body: TInitImportWalletBody;
3840
+ };
3841
+ export type TInitOtpResponse = {
3842
+ activity: v1Activity;
3843
+ /** Unique identifier for an OTP authentication */
3844
+ otpId: string;
3845
+ };
3846
+ export type TInitOtpBody = {
3847
+ timestampMs?: string;
3848
+ organizationId?: string;
3849
+ /** Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL */
3850
+ otpType: string;
3851
+ /** Email or phone number to send the OTP code to */
3852
+ contact: string;
3853
+ /** Optional length of the OTP code. Default = 9 */
3854
+ otpLength?: number;
3855
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
3856
+ emailCustomization?: v1EmailCustomizationParams;
3857
+ /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
3858
+ smsCustomization?: v1SmsCustomizationParams;
3859
+ /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
3860
+ userIdentifier?: string;
3861
+ /** Optional custom email address from which to send the OTP email */
3862
+ sendFromEmailAddress?: string;
3863
+ /** Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true */
3864
+ alphanumeric?: boolean;
3865
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
3866
+ sendFromEmailSenderName?: string;
3867
+ /** Expiration window (in seconds) indicating how long the OTP is valid for. If not provided, a default of 5 minutes will be used. Maximum value is 600 seconds (10 minutes) */
3868
+ expirationSeconds?: string;
3869
+ /** Optional custom email address to use as reply-to */
3870
+ replyToEmailAddress?: string;
3871
+ };
3872
+ export type TInitOtpInput = {
3873
+ body: TInitOtpBody;
3874
+ };
3875
+ export type TInitOtpAuthResponse = {
3876
+ activity: v1Activity;
3877
+ /** Unique identifier for an OTP authentication */
3878
+ otpId: string;
3879
+ };
3880
+ export type TInitOtpAuthBody = {
3881
+ timestampMs?: string;
3882
+ organizationId?: string;
3883
+ /** Enum to specifiy whether to send OTP via SMS or email */
3884
+ otpType: string;
3885
+ /** Email or phone number to send the OTP code to */
3886
+ contact: string;
3887
+ /** Optional length of the OTP code. Default = 9 */
3888
+ otpLength?: number;
3889
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
3890
+ emailCustomization?: v1EmailCustomizationParams;
3891
+ /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
3892
+ smsCustomization?: v1SmsCustomizationParams;
3893
+ /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
3894
+ userIdentifier?: string;
3895
+ /** Optional custom email address from which to send the OTP email */
3896
+ sendFromEmailAddress?: string;
3897
+ /** Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true */
3898
+ alphanumeric?: boolean;
3899
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
3900
+ sendFromEmailSenderName?: string;
3901
+ /** Optional custom email address to use as reply-to */
3902
+ replyToEmailAddress?: string;
3903
+ };
3904
+ export type TInitOtpAuthInput = {
3905
+ body: TInitOtpAuthBody;
3906
+ };
3907
+ export type TInitUserEmailRecoveryResponse = {
3908
+ activity: v1Activity;
3909
+ /** Unique identifier for the user being recovered. */
3910
+ userId: string;
3911
+ };
3912
+ export type TInitUserEmailRecoveryBody = {
3913
+ timestampMs?: string;
3914
+ organizationId?: string;
3915
+ /** Email of the user starting recovery */
3916
+ email: string;
3917
+ /** Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
3918
+ targetPublicKey: string;
3919
+ /** Expiration window (in seconds) indicating how long the recovery credential is valid for. If not provided, a default of 15 minutes will be used. */
3920
+ expirationSeconds?: string;
3921
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
3922
+ emailCustomization?: v1EmailCustomizationParams;
3923
+ };
3924
+ export type TInitUserEmailRecoveryInput = {
3925
+ body: TInitUserEmailRecoveryBody;
3926
+ };
3927
+ export type TOauthResponse = {
3928
+ activity: v1Activity;
3929
+ /** Unique identifier for the authenticating User. */
3930
+ userId: string;
3931
+ /** Unique identifier for the created API key. */
3932
+ apiKeyId: string;
3933
+ /** HPKE encrypted credential bundle */
3934
+ credentialBundle: string;
3935
+ };
3936
+ export type TOauthBody = {
3937
+ timestampMs?: string;
3938
+ organizationId?: string;
3939
+ /** Base64 encoded OIDC token */
3940
+ oidcToken: string;
3941
+ /** Client-side public key generated by the user, to which the oauth bundle (credentials) will be encrypted. */
3942
+ targetPublicKey: string;
3943
+ /** Optional human-readable name for an API Key. If none provided, default to Oauth - <Timestamp> */
3944
+ apiKeyName?: string;
3945
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
3946
+ expirationSeconds?: string;
3947
+ /** Invalidate all other previously generated Oauth API keys */
3948
+ invalidateExisting?: boolean;
3949
+ };
3950
+ export type TOauthInput = {
3951
+ body: TOauthBody;
3952
+ };
3953
+ export type TOauthLoginResponse = {
3954
+ activity: v1Activity;
3955
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
3956
+ session: string;
3957
+ };
3958
+ export type TOauthLoginBody = {
3959
+ timestampMs?: string;
3960
+ organizationId?: string;
3961
+ /** Base64 encoded OIDC token */
3962
+ oidcToken: string;
3963
+ /** Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the oidc token associated with this request */
3964
+ publicKey: string;
3965
+ /** Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
3966
+ expirationSeconds?: string;
3967
+ /** Invalidate all other previously generated Login API keys */
3968
+ invalidateExisting?: boolean;
3969
+ };
3970
+ export type TOauthLoginInput = {
3971
+ body: TOauthLoginBody;
3972
+ };
3973
+ export type TOtpAuthResponse = {
3974
+ activity: v1Activity;
3975
+ /** Unique identifier for the authenticating User. */
3976
+ userId: string;
3977
+ /** Unique identifier for the created API key. */
3978
+ apiKeyId?: string;
3979
+ /** HPKE encrypted credential bundle */
3980
+ credentialBundle?: string;
3981
+ };
3982
+ export type TOtpAuthBody = {
3983
+ timestampMs?: string;
3984
+ organizationId?: string;
3985
+ /** ID representing the result of an init OTP activity. */
3986
+ otpId: string;
3987
+ /** OTP sent out to a user's contact (email or SMS) */
3988
+ otpCode: string;
3989
+ /** Client-side public key generated by the user, to which the OTP bundle (credentials) will be encrypted. */
3990
+ targetPublicKey: string;
3991
+ /** Optional human-readable name for an API Key. If none provided, default to OTP Auth - <Timestamp> */
3992
+ apiKeyName?: string;
3993
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
3994
+ expirationSeconds?: string;
3995
+ /** Invalidate all other previously generated OTP Auth API keys */
3996
+ invalidateExisting?: boolean;
3997
+ };
3998
+ export type TOtpAuthInput = {
3999
+ body: TOtpAuthBody;
4000
+ };
4001
+ export type TOtpLoginResponse = {
4002
+ activity: v1Activity;
4003
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
4004
+ session: string;
4005
+ };
4006
+ export type TOtpLoginBody = {
4007
+ timestampMs?: string;
4008
+ organizationId?: string;
4009
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
4010
+ verificationToken: string;
4011
+ /** Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the verification token */
4012
+ publicKey: string;
4013
+ /** Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
4014
+ expirationSeconds?: string;
4015
+ /** Invalidate all other previously generated Login API keys */
4016
+ invalidateExisting?: boolean;
4017
+ };
4018
+ export type TOtpLoginInput = {
4019
+ body: TOtpLoginBody;
4020
+ };
4021
+ export type TRecoverUserResponse = {
4022
+ activity: v1Activity;
4023
+ /** ID of the authenticator created. */
4024
+ authenticatorId: string[];
4025
+ };
4026
+ export type TRecoverUserBody = {
4027
+ timestampMs?: string;
4028
+ organizationId?: string;
4029
+ /** The new authenticator to register. */
4030
+ authenticator: v1AuthenticatorParamsV2;
4031
+ /** Unique identifier for the user performing recovery. */
4032
+ userId: string;
4033
+ };
4034
+ export type TRecoverUserInput = {
4035
+ body: TRecoverUserBody;
4036
+ };
4037
+ export type TRejectActivityResponse = {
4038
+ activity: v1Activity;
4039
+ };
4040
+ export type TRejectActivityBody = {
4041
+ timestampMs?: string;
4042
+ organizationId?: string;
4043
+ /** An artifact verifying a User's action. */
4044
+ fingerprint: string;
4045
+ };
4046
+ export type TRejectActivityInput = {
4047
+ body: TRejectActivityBody;
4048
+ };
4049
+ export type TRemoveOrganizationFeatureResponse = {
4050
+ activity: v1Activity;
4051
+ /** Resulting list of organization features. */
4052
+ features: v1Feature[];
4053
+ };
4054
+ export type TRemoveOrganizationFeatureBody = {
4055
+ timestampMs?: string;
4056
+ organizationId?: string;
4057
+ /** Name of the feature to remove */
4058
+ name: v1FeatureName;
4059
+ };
4060
+ export type TRemoveOrganizationFeatureInput = {
4061
+ body: TRemoveOrganizationFeatureBody;
4062
+ };
4063
+ export type TSetOrganizationFeatureResponse = {
4064
+ activity: v1Activity;
4065
+ /** Resulting list of organization features. */
4066
+ features: v1Feature[];
4067
+ };
4068
+ export type TSetOrganizationFeatureBody = {
4069
+ timestampMs?: string;
4070
+ organizationId?: string;
4071
+ /** Name of the feature to set */
4072
+ name: v1FeatureName;
4073
+ /** Optional value for the feature. Will override existing values if feature is already set. */
4074
+ value: string;
4075
+ };
4076
+ export type TSetOrganizationFeatureInput = {
4077
+ body: TSetOrganizationFeatureBody;
4078
+ };
4079
+ export type TSignRawPayloadResponse = {
4080
+ activity: v1Activity;
4081
+ /** Component of an ECSDA signature. */
4082
+ r: string;
4083
+ /** Component of an ECSDA signature. */
4084
+ s: string;
4085
+ /** Component of an ECSDA signature. */
4086
+ v: string;
4087
+ };
4088
+ export type TSignRawPayloadBody = {
4089
+ timestampMs?: string;
4090
+ organizationId?: string;
4091
+ /** A Wallet account address, Private Key address, or Private Key identifier. */
4092
+ signWith: string;
4093
+ /** Raw unsigned payload to be signed. */
4094
+ payload: string;
4095
+ /** Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
4096
+ encoding: v1PayloadEncoding;
4097
+ /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
4098
+ hashFunction: v1HashFunction;
4099
+ };
4100
+ export type TSignRawPayloadInput = {
4101
+ body: TSignRawPayloadBody;
4102
+ };
4103
+ export type TSignRawPayloadsResponse = {
4104
+ activity: v1Activity;
4105
+ signatures?: v1SignRawPayloadResult[];
4106
+ };
4107
+ export type TSignRawPayloadsBody = {
4108
+ timestampMs?: string;
4109
+ organizationId?: string;
4110
+ /** A Wallet account address, Private Key address, or Private Key identifier. */
4111
+ signWith: string;
4112
+ /** An array of raw unsigned payloads to be signed. */
4113
+ payloads: string[];
4114
+ /** Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
4115
+ encoding: v1PayloadEncoding;
4116
+ /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
4117
+ hashFunction: v1HashFunction;
4118
+ };
4119
+ export type TSignRawPayloadsInput = {
4120
+ body: TSignRawPayloadsBody;
4121
+ };
4122
+ export type TSignTransactionResponse = {
4123
+ activity: v1Activity;
4124
+ signedTransaction: string;
4125
+ };
4126
+ export type TSignTransactionBody = {
4127
+ timestampMs?: string;
4128
+ organizationId?: string;
4129
+ /** A Wallet account address, Private Key address, or Private Key identifier. */
4130
+ signWith: string;
4131
+ /** Raw unsigned transaction to be signed */
4132
+ unsignedTransaction: string;
4133
+ type: v1TransactionType;
4134
+ };
4135
+ export type TSignTransactionInput = {
4136
+ body: TSignTransactionBody;
4137
+ };
4138
+ export type TStampLoginResponse = {
4139
+ activity: v1Activity;
4140
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
4141
+ session: string;
4142
+ };
4143
+ export type TStampLoginBody = {
4144
+ timestampMs?: string;
4145
+ organizationId?: string;
4146
+ /** Client-side public key generated by the user, which will be conditionally added to org data based on the passkey stamp associated with this request */
4147
+ publicKey: string;
4148
+ /** Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
4149
+ expirationSeconds?: string;
4150
+ /** Invalidate all other previously generated Login API keys */
4151
+ invalidateExisting?: boolean;
4152
+ };
4153
+ export type TStampLoginInput = {
4154
+ body: TStampLoginBody;
4155
+ };
4156
+ export type TUpdatePolicyResponse = {
4157
+ activity: v1Activity;
4158
+ /** Unique identifier for a given Policy. */
4159
+ policyId: string;
4160
+ };
4161
+ export type TUpdatePolicyBody = {
4162
+ timestampMs?: string;
4163
+ organizationId?: string;
4164
+ /** Unique identifier for a given Policy. */
4165
+ policyId: string;
4166
+ /** Human-readable name for a Policy. */
4167
+ policyName?: string;
4168
+ /** The instruction to DENY or ALLOW an activity (optional). */
4169
+ policyEffect?: v1Effect;
4170
+ /** The condition expression that triggers the Effect (optional). */
4171
+ policyCondition?: string;
4172
+ /** The consensus expression that triggers the Effect (optional). */
4173
+ policyConsensus?: string;
4174
+ /** Accompanying notes for a Policy (optional). */
4175
+ policyNotes?: string;
4176
+ };
4177
+ export type TUpdatePolicyInput = {
4178
+ body: TUpdatePolicyBody;
4179
+ };
4180
+ export type TUpdatePrivateKeyTagResponse = {
4181
+ activity: v1Activity;
4182
+ /** Unique identifier for a given Private Key Tag. */
4183
+ privateKeyTagId: string;
4184
+ };
4185
+ export type TUpdatePrivateKeyTagBody = {
4186
+ timestampMs?: string;
4187
+ organizationId?: string;
4188
+ /** Unique identifier for a given Private Key Tag. */
4189
+ privateKeyTagId: string;
4190
+ /** The new, human-readable name for the tag with the given ID. */
4191
+ newPrivateKeyTagName?: string;
4192
+ /** A list of Private Keys IDs to add this tag to. */
4193
+ addPrivateKeyIds: string[];
4194
+ /** A list of Private Key IDs to remove this tag from. */
4195
+ removePrivateKeyIds: string[];
4196
+ };
4197
+ export type TUpdatePrivateKeyTagInput = {
4198
+ body: TUpdatePrivateKeyTagBody;
4199
+ };
4200
+ export type TUpdateRootQuorumResponse = {
4201
+ activity: v1Activity;
4202
+ };
4203
+ export type TUpdateRootQuorumBody = {
4204
+ timestampMs?: string;
4205
+ organizationId?: string;
4206
+ /** The threshold of unique approvals to reach quorum. */
4207
+ threshold: number;
4208
+ /** The unique identifiers of users who comprise the quorum set. */
4209
+ userIds: string[];
4210
+ };
4211
+ export type TUpdateRootQuorumInput = {
4212
+ body: TUpdateRootQuorumBody;
4213
+ };
4214
+ export type TUpdateUserResponse = {
4215
+ activity: v1Activity;
4216
+ /** A User ID. */
4217
+ userId: string;
4218
+ };
4219
+ export type TUpdateUserBody = {
4220
+ timestampMs?: string;
4221
+ organizationId?: string;
4222
+ /** Unique identifier for a given User. */
4223
+ userId: string;
4224
+ /** Human-readable name for a User. */
4225
+ userName?: string;
4226
+ /** The user's email address. */
4227
+ userEmail?: string;
4228
+ /** An updated list of User Tags to apply to this User. This field, if not needed, should be an empty array in your request body. */
4229
+ userTagIds?: string[];
4230
+ /** The user's phone number in E.164 format e.g. +13214567890 */
4231
+ userPhoneNumber?: string;
4232
+ };
4233
+ export type TUpdateUserInput = {
4234
+ body: TUpdateUserBody;
4235
+ };
4236
+ export type TUpdateUserEmailResponse = {
4237
+ activity: v1Activity;
4238
+ /** Unique identifier of the User whose email was updated. */
4239
+ userId: string;
4240
+ };
4241
+ export type TUpdateUserEmailBody = {
4242
+ timestampMs?: string;
4243
+ organizationId?: string;
4244
+ /** Unique identifier for a given User. */
4245
+ userId: string;
4246
+ /** The user's email address. Setting this to an empty string will remove the user's email. */
4247
+ userEmail: string;
4248
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
4249
+ verificationToken?: string;
4250
+ };
4251
+ export type TUpdateUserEmailInput = {
4252
+ body: TUpdateUserEmailBody;
4253
+ };
4254
+ export type TUpdateUserNameResponse = {
4255
+ activity: v1Activity;
4256
+ /** Unique identifier of the User whose name was updated. */
4257
+ userId: string;
4258
+ };
4259
+ export type TUpdateUserNameBody = {
4260
+ timestampMs?: string;
4261
+ organizationId?: string;
4262
+ /** Unique identifier for a given User. */
4263
+ userId: string;
4264
+ /** Human-readable name for a User. */
4265
+ userName: string;
4266
+ };
4267
+ export type TUpdateUserNameInput = {
4268
+ body: TUpdateUserNameBody;
4269
+ };
4270
+ export type TUpdateUserPhoneNumberResponse = {
4271
+ activity: v1Activity;
4272
+ /** Unique identifier of the User whose phone number was updated. */
4273
+ userId: string;
4274
+ };
4275
+ export type TUpdateUserPhoneNumberBody = {
4276
+ timestampMs?: string;
4277
+ organizationId?: string;
4278
+ /** Unique identifier for a given User. */
4279
+ userId: string;
4280
+ /** The user's phone number in E.164 format e.g. +13214567890. Setting this to an empty string will remove the user's phone number. */
4281
+ userPhoneNumber: string;
4282
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
4283
+ verificationToken?: string;
4284
+ };
4285
+ export type TUpdateUserPhoneNumberInput = {
4286
+ body: TUpdateUserPhoneNumberBody;
4287
+ };
4288
+ export type TUpdateUserTagResponse = {
4289
+ activity: v1Activity;
4290
+ /** Unique identifier for a given User Tag. */
4291
+ userTagId: string;
4292
+ };
4293
+ export type TUpdateUserTagBody = {
4294
+ timestampMs?: string;
4295
+ organizationId?: string;
4296
+ /** Unique identifier for a given User Tag. */
4297
+ userTagId: string;
4298
+ /** The new, human-readable name for the tag with the given ID. */
4299
+ newUserTagName?: string;
4300
+ /** A list of User IDs to add this tag to. */
4301
+ addUserIds: string[];
4302
+ /** A list of User IDs to remove this tag from. */
4303
+ removeUserIds: string[];
4304
+ };
4305
+ export type TUpdateUserTagInput = {
4306
+ body: TUpdateUserTagBody;
4307
+ };
4308
+ export type TUpdateWalletResponse = {
4309
+ activity: v1Activity;
4310
+ /** A Wallet ID. */
4311
+ walletId: string;
4312
+ };
4313
+ export type TUpdateWalletBody = {
4314
+ timestampMs?: string;
4315
+ organizationId?: string;
4316
+ /** Unique identifier for a given Wallet. */
4317
+ walletId: string;
4318
+ /** Human-readable name for a Wallet. */
4319
+ walletName?: string;
4320
+ };
4321
+ export type TUpdateWalletInput = {
4322
+ body: TUpdateWalletBody;
4323
+ };
4324
+ export type TVerifyOtpResponse = {
4325
+ activity: v1Activity;
4326
+ /** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
4327
+ verificationToken: string;
4328
+ };
4329
+ export type TVerifyOtpBody = {
4330
+ timestampMs?: string;
4331
+ organizationId?: string;
4332
+ /** ID representing the result of an init OTP activity. */
4333
+ otpId: string;
4334
+ /** OTP sent out to a user's contact (email or SMS) */
4335
+ otpCode: string;
4336
+ /** Expiration window (in seconds) indicating how long the verification token is valid for. If not provided, a default of 1 hour will be used. Maximum value is 86400 seconds (24 hours) */
4337
+ expirationSeconds?: string;
4338
+ };
4339
+ export type TVerifyOtpInput = {
4340
+ body: TVerifyOtpBody;
4341
+ };
4342
+ export type TNOOPCodegenAnchorResponse = {
4343
+ activity: v1Activity;
4344
+ };
4345
+ export type TTestRateLimitsResponse = {};
4346
+ export type TTestRateLimitsBody = {
4347
+ organizationId?: string;
4348
+ /** Whether or not to set a limit on this request. */
4349
+ isSetLimit: boolean;
4350
+ /** Rate limit to set for org, if is_set_limit is set to true. */
4351
+ limit: number;
4352
+ };
4353
+ export type TTestRateLimitsInput = {
4354
+ body: TTestRateLimitsBody;
4355
+ };
4356
+ export type ProxyTGetAccountResponse = {
4357
+ organizationId: string;
4358
+ };
4359
+ export type ProxyTGetAccountBody = {
4360
+ /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN' or 'PUBLIC_KEY' */
4361
+ filterType: string;
4362
+ /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
4363
+ filterValue: string;
4364
+ };
4365
+ export type ProxyTGetAccountInput = {
4366
+ body: ProxyTGetAccountBody;
4367
+ };
4368
+ export type ProxyTOAuthLoginResponse = {
4369
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
4370
+ session: string;
4371
+ };
4372
+ export type ProxyTOAuthLoginBody = {
4373
+ /** Base64 encoded OIDC token */
4374
+ oidcToken: string;
4375
+ /** Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the oidc token associated with this request */
4376
+ publicKey: string;
4377
+ /** Invalidate all other previously generated Login API keys */
4378
+ invalidateExisting?: boolean;
4379
+ };
4380
+ export type ProxyTOAuthLoginInput = {
4381
+ body: ProxyTOAuthLoginBody;
4382
+ };
4383
+ export type ProxyTInitOtpResponse = {
4384
+ /** Unique identifier for an OTP authentication */
4385
+ otpId: string;
4386
+ };
4387
+ export type ProxyTInitOtpBody = {
4388
+ /** Enum to specifiy whether to send OTP via SMS or email */
4389
+ otpType: string;
4390
+ /** Email or phone number to send the OTP code to */
4391
+ contact: string;
4392
+ };
4393
+ export type ProxyTInitOtpInput = {
4394
+ body: ProxyTInitOtpBody;
4395
+ };
4396
+ export type ProxyTOtpLoginResponse = {
4397
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
4398
+ session: string;
4399
+ };
4400
+ export type ProxyTOtpLoginBody = {
4401
+ /** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
4402
+ verificationToken: string;
4403
+ /** Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the verification token */
4404
+ publicKey: string;
4405
+ /** Invalidate all other previously generated Login API keys */
4406
+ invalidateExisting?: boolean;
4407
+ };
4408
+ export type ProxyTOtpLoginInput = {
4409
+ body: ProxyTOtpLoginBody;
4410
+ };
4411
+ export type ProxyTVerifyOtpResponse = {
4412
+ /** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
4413
+ verificationToken: string;
4414
+ };
4415
+ export type ProxyTVerifyOtpBody = {
4416
+ /** ID representing the result of an init OTP activity. */
4417
+ otpId: string;
4418
+ /** OTP sent out to a user's contact (email or SMS) */
4419
+ otpCode: string;
4420
+ };
4421
+ export type ProxyTVerifyOtpInput = {
4422
+ body: ProxyTVerifyOtpBody;
4423
+ };
4424
+ export type ProxyTSignupResponse = {
4425
+ organizationId: string;
4426
+ };
4427
+ export type ProxyTSignupBody = {
4428
+ userEmail?: string;
4429
+ userPhoneNumber?: string;
4430
+ userTag?: string;
4431
+ userName?: string;
4432
+ organizationName?: string;
4433
+ verificationToken?: string;
4434
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
4435
+ apiKeys: v1ApiKeyParamsV2[];
4436
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
4437
+ authenticators: v1AuthenticatorParamsV2[];
4438
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
4439
+ oauthProviders: v1OauthProviderParams[];
4440
+ /** The wallet to create for the sub-organization */
4441
+ wallet?: v1WalletParams;
4442
+ };
4443
+ export type ProxyTSignupInput = {
4444
+ body: ProxyTSignupBody;
4445
+ };
4446
+ export type ProxyTGetWalletKitConfigResponse = {
4447
+ /** List of enabled authentication providers (e.g., 'facebook', 'google', 'apple', 'email', 'sms', 'passkey', 'wallet') */
4448
+ enabledProviders: string[];
4449
+ /** Session expiration duration in seconds */
4450
+ sessionExpirationSeconds: string;
4451
+ /** The organization ID this configuration applies to */
4452
+ organizationId: string;
4453
+ };
4454
+ export type ProxyTGetWalletKitConfigBody = {};
4455
+ export type ProxyTGetWalletKitConfigInput = {
4456
+ body: ProxyTGetWalletKitConfigBody;
4457
+ };
4458
+ //# sourceMappingURL=types.d.ts.map