@turnkey/http 1.1.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/README.md +3 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +121 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +204 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +9939 -620
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +195 -3
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.swagger.json +925 -97
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +450 -58
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -48,7 +48,7 @@ export type paths = {
|
|
|
48
48
|
post: operations["PublicApiService_GetUsers"];
|
|
49
49
|
};
|
|
50
50
|
"/public/v1/query/whoami": {
|
|
51
|
-
/** Get basic information about your current API user and
|
|
51
|
+
/** Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN users. */
|
|
52
52
|
post: operations["PublicApiService_GetWhoami"];
|
|
53
53
|
};
|
|
54
54
|
"/public/v1/submit/approve_activity": {
|
|
@@ -95,6 +95,14 @@ export type paths = {
|
|
|
95
95
|
/** Create Users in an existing Organization */
|
|
96
96
|
post: operations["PublicApiService_CreateUsers"];
|
|
97
97
|
};
|
|
98
|
+
"/public/v1/submit/create_wallet": {
|
|
99
|
+
/** Create a Wallet */
|
|
100
|
+
post: operations["PublicApiService_CreateWallet"];
|
|
101
|
+
};
|
|
102
|
+
"/public/v1/submit/create_wallet_accounts": {
|
|
103
|
+
/** Create Wallet accounts */
|
|
104
|
+
post: operations["PublicApiService_CreateWalletAccounts"];
|
|
105
|
+
};
|
|
98
106
|
"/public/v1/submit/delete_api_keys": {
|
|
99
107
|
/** Remove api keys from a User */
|
|
100
108
|
post: operations["PublicApiService_DeleteApiKeys"];
|
|
@@ -111,18 +119,42 @@ export type paths = {
|
|
|
111
119
|
/** Delete an existing Policy */
|
|
112
120
|
post: operations["PublicApiService_DeletePolicy"];
|
|
113
121
|
};
|
|
122
|
+
"/public/v1/submit/export_private_key": {
|
|
123
|
+
/** Exports a Private Key */
|
|
124
|
+
post: operations["PublicApiService_ExportPrivateKey"];
|
|
125
|
+
};
|
|
126
|
+
"/public/v1/submit/init_user_email_recovery": {
|
|
127
|
+
/** Initializes a new recovery */
|
|
128
|
+
post: operations["PublicApiService_InitUserEmailRecovery"];
|
|
129
|
+
};
|
|
114
130
|
"/public/v1/submit/reject_activity": {
|
|
115
131
|
/** Reject an Activity */
|
|
116
132
|
post: operations["PublicApiService_RejectActivity"];
|
|
117
133
|
};
|
|
134
|
+
"/public/v1/submit/remove_organization_feature": {
|
|
135
|
+
/** Removes an organization feature */
|
|
136
|
+
post: operations["PublicApiService_RemoveOrganizationFeature"];
|
|
137
|
+
};
|
|
138
|
+
"/public/v1/submit/set_organization_feature": {
|
|
139
|
+
/** Sets an organization feature */
|
|
140
|
+
post: operations["PublicApiService_SetOrganizationFeature"];
|
|
141
|
+
};
|
|
118
142
|
"/public/v1/submit/sign_raw_payload": {
|
|
119
143
|
/** Sign a raw payload with a Private Key */
|
|
120
144
|
post: operations["PublicApiService_SignRawPayload"];
|
|
121
145
|
};
|
|
146
|
+
"/public/v1/submit/sign_raw_payload_v2": {
|
|
147
|
+
/** Sign a raw payload with a Private Key id or address */
|
|
148
|
+
post: operations["PublicApiService_SignRawPayloadV2"];
|
|
149
|
+
};
|
|
122
150
|
"/public/v1/submit/sign_transaction": {
|
|
123
151
|
/** Sign a transaction with a Private Key */
|
|
124
152
|
post: operations["PublicApiService_SignTransaction"];
|
|
125
153
|
};
|
|
154
|
+
"/public/v1/submit/sign_transaction_v2": {
|
|
155
|
+
/** Sign a transaction with a Private Key id or address */
|
|
156
|
+
post: operations["PublicApiService_SignTransactionV2"];
|
|
157
|
+
};
|
|
126
158
|
"/public/v1/submit/update_allowed_origins": {
|
|
127
159
|
/** Update the allowable origins for credentials and requests */
|
|
128
160
|
post: operations["PublicApiService_UpdateAllowedOrigins"];
|
|
@@ -158,8 +190,8 @@ export type definitions = {
|
|
|
158
190
|
/** @description Human-readable name for a Tag. */
|
|
159
191
|
tagName: string;
|
|
160
192
|
tagType: definitions["v1TagType"];
|
|
161
|
-
createdAt: definitions["
|
|
162
|
-
updatedAt: definitions["
|
|
193
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
194
|
+
updatedAt: definitions["externaldatav1Timestamp"];
|
|
163
195
|
};
|
|
164
196
|
/** @enum {string} */
|
|
165
197
|
externaldatav1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
|
|
@@ -171,12 +203,28 @@ export type definitions = {
|
|
|
171
203
|
externaldatav1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM";
|
|
172
204
|
/** @enum {string} */
|
|
173
205
|
externaldatav1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
|
|
206
|
+
externaldatav1Credential: {
|
|
207
|
+
/** @description The public component of a cryptographic key pair used to sign messages and transactions. */
|
|
208
|
+
publicKey: string;
|
|
209
|
+
type: definitions["externaldatav1CredentialType"];
|
|
210
|
+
};
|
|
211
|
+
/** @enum {string} */
|
|
212
|
+
externaldatav1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
|
|
174
213
|
/** @enum {string} */
|
|
175
214
|
externaldatav1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
|
|
176
215
|
/** @enum {string} */
|
|
177
216
|
externaldatav1Effect: "EFFECT_ALLOW" | "EFFECT_DENY";
|
|
178
217
|
/** @enum {string} */
|
|
179
218
|
externaldatav1Operator: "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";
|
|
219
|
+
externaldatav1Quorum: {
|
|
220
|
+
/**
|
|
221
|
+
* Format: int32
|
|
222
|
+
* @description Count of unique approvals required to meet quorum.
|
|
223
|
+
*/
|
|
224
|
+
threshold: number;
|
|
225
|
+
/** @description Unique identifiers of quorum set members. */
|
|
226
|
+
userIds: string[];
|
|
227
|
+
};
|
|
180
228
|
externaldatav1Selector: {
|
|
181
229
|
/** @description The resource being referenced within a policy (e.g., user.tags or activities.type). */
|
|
182
230
|
subject: string;
|
|
@@ -185,27 +233,33 @@ export type definitions = {
|
|
|
185
233
|
/** @description The specific parameter from the subject being referenced, like a specific user ID. */
|
|
186
234
|
targets: string[];
|
|
187
235
|
};
|
|
236
|
+
externaldatav1Timestamp: {
|
|
237
|
+
seconds: string;
|
|
238
|
+
nanos: string;
|
|
239
|
+
};
|
|
188
240
|
/** @enum {string} */
|
|
189
241
|
immutableactivityv1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
|
|
190
242
|
immutableactivityv1Address: {
|
|
191
|
-
format?: definitions["
|
|
243
|
+
format?: definitions["immutablecommonv1AddressFormat"];
|
|
192
244
|
address?: string;
|
|
193
245
|
};
|
|
194
246
|
/** @enum {string} */
|
|
195
|
-
immutableactivityv1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM";
|
|
196
|
-
/** @enum {string} */
|
|
197
|
-
immutableactivityv1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
|
|
198
|
-
/** @enum {string} */
|
|
199
247
|
immutableactivityv1Effect: "EFFECT_ALLOW" | "EFFECT_DENY";
|
|
200
248
|
/** @enum {string} */
|
|
249
|
+
immutableactivityv1HashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
|
|
250
|
+
/** @enum {string} */
|
|
201
251
|
immutableactivityv1Operator: "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";
|
|
252
|
+
/** @enum {string} */
|
|
253
|
+
immutableactivityv1PayloadEncoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
|
|
202
254
|
immutableactivityv1Selector: {
|
|
203
255
|
subject?: string;
|
|
204
256
|
operator?: definitions["immutableactivityv1Operator"];
|
|
205
257
|
target?: string;
|
|
206
258
|
};
|
|
207
259
|
/** @enum {string} */
|
|
208
|
-
|
|
260
|
+
immutablecommonv1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
|
|
261
|
+
/** @enum {string} */
|
|
262
|
+
immutablecommonv1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
|
|
209
263
|
/** @enum {string} */
|
|
210
264
|
immutablewebauthnv1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
|
|
211
265
|
protobufAny: {
|
|
@@ -268,8 +322,8 @@ export type definitions = {
|
|
|
268
322
|
fingerprint: string;
|
|
269
323
|
canApprove: boolean;
|
|
270
324
|
canReject: boolean;
|
|
271
|
-
createdAt: definitions["
|
|
272
|
-
updatedAt: definitions["
|
|
325
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
326
|
+
updatedAt: definitions["externaldatav1Timestamp"];
|
|
273
327
|
};
|
|
274
328
|
v1ActivityResponse: {
|
|
275
329
|
/** @description An action that can that can be taken within the Turnkey infrastructure. */
|
|
@@ -278,16 +332,16 @@ export type definitions = {
|
|
|
278
332
|
/** @enum {string} */
|
|
279
333
|
v1ActivityStatus: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
|
|
280
334
|
/** @enum {string} */
|
|
281
|
-
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";
|
|
335
|
+
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";
|
|
282
336
|
v1ApiKey: {
|
|
283
337
|
/** @description A User credential that can be used to authenticate to Turnkey. */
|
|
284
|
-
credential: definitions["
|
|
338
|
+
credential: definitions["externaldatav1Credential"];
|
|
285
339
|
/** @description Unique identifier for a given API Key. */
|
|
286
340
|
apiKeyId: string;
|
|
287
341
|
/** @description Human-readable name for an API Key. */
|
|
288
342
|
apiKeyName: string;
|
|
289
|
-
createdAt: definitions["
|
|
290
|
-
updatedAt: definitions["
|
|
343
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
344
|
+
updatedAt: definitions["externaldatav1Timestamp"];
|
|
291
345
|
};
|
|
292
346
|
v1ApiKeyParams: {
|
|
293
347
|
/** @description Human-readable name for an API Key. */
|
|
@@ -339,13 +393,13 @@ export type definitions = {
|
|
|
339
393
|
/** @description The type of Authenticator device. */
|
|
340
394
|
model: string;
|
|
341
395
|
/** @description A User credential that can be used to authenticate to Turnkey. */
|
|
342
|
-
credential: definitions["
|
|
396
|
+
credential: definitions["externaldatav1Credential"];
|
|
343
397
|
/** @description Unique identifier for a given Authenticator. */
|
|
344
398
|
authenticatorId: string;
|
|
345
399
|
/** @description Human-readable name for an Authenticator. */
|
|
346
400
|
authenticatorName: string;
|
|
347
|
-
createdAt: definitions["
|
|
348
|
-
updatedAt: definitions["
|
|
401
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
402
|
+
updatedAt: definitions["externaldatav1Timestamp"];
|
|
349
403
|
};
|
|
350
404
|
v1AuthenticatorAttestationResponse: {
|
|
351
405
|
clientDataJson: string;
|
|
@@ -578,18 +632,36 @@ export type definitions = {
|
|
|
578
632
|
*/
|
|
579
633
|
rootQuorumThreshold: number;
|
|
580
634
|
};
|
|
635
|
+
v1CreateSubOrganizationIntentV3: {
|
|
636
|
+
/** @description Name for this sub-organization */
|
|
637
|
+
subOrganizationName: string;
|
|
638
|
+
/** @description Root users to create within this sub-organization */
|
|
639
|
+
rootUsers: definitions["v1RootUserParams"][];
|
|
640
|
+
/**
|
|
641
|
+
* Format: int32
|
|
642
|
+
* @description The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users
|
|
643
|
+
*/
|
|
644
|
+
rootQuorumThreshold: number;
|
|
645
|
+
/** @description A list of Private Keys. */
|
|
646
|
+
privateKeys: definitions["v1PrivateKeyParams"][];
|
|
647
|
+
};
|
|
581
648
|
v1CreateSubOrganizationRequest: {
|
|
582
649
|
/** @enum {string} */
|
|
583
|
-
type: "
|
|
650
|
+
type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3";
|
|
584
651
|
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
585
652
|
timestampMs: string;
|
|
586
653
|
/** @description Unique identifier for a given Organization. */
|
|
587
654
|
organizationId: string;
|
|
588
|
-
parameters: definitions["
|
|
655
|
+
parameters: definitions["v1CreateSubOrganizationIntentV3"];
|
|
589
656
|
};
|
|
590
657
|
v1CreateSubOrganizationResult: {
|
|
591
658
|
subOrganizationId: string;
|
|
592
659
|
};
|
|
660
|
+
v1CreateSubOrganizationResultV3: {
|
|
661
|
+
subOrganizationId: string;
|
|
662
|
+
/** @description A list of Private Key IDs and addresses. */
|
|
663
|
+
privateKeys: definitions["v1PrivateKeyResult"][];
|
|
664
|
+
};
|
|
593
665
|
v1CreateUserTagIntent: {
|
|
594
666
|
/** @description Human-readable name for a User Tag. */
|
|
595
667
|
userTagName: string;
|
|
@@ -632,16 +704,49 @@ export type definitions = {
|
|
|
632
704
|
/** @description A list of User IDs. */
|
|
633
705
|
userIds: string[];
|
|
634
706
|
};
|
|
707
|
+
v1CreateWalletAccountsIntent: {
|
|
708
|
+
/** @description Unique identifier for a given Wallet. */
|
|
709
|
+
walletId: string;
|
|
710
|
+
/** @description A list of wallet Accounts. */
|
|
711
|
+
accounts: definitions["v1WalletAccountParams"][];
|
|
712
|
+
};
|
|
713
|
+
v1CreateWalletAccountsRequest: {
|
|
714
|
+
/** @enum {string} */
|
|
715
|
+
type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS";
|
|
716
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
717
|
+
timestampMs: string;
|
|
718
|
+
/** @description Unique identifier for a given Organization. */
|
|
719
|
+
organizationId: string;
|
|
720
|
+
parameters: definitions["v1CreateWalletAccountsIntent"];
|
|
721
|
+
};
|
|
722
|
+
v1CreateWalletAccountsResult: {
|
|
723
|
+
/** @description A list of derived addresses. */
|
|
724
|
+
addresses: string[];
|
|
725
|
+
};
|
|
726
|
+
v1CreateWalletIntent: {
|
|
727
|
+
/** @description Human-readable name for a Wallet. */
|
|
728
|
+
walletName: string;
|
|
729
|
+
/** @description A list of wallet Accounts. */
|
|
730
|
+
accounts: definitions["v1WalletAccountParams"][];
|
|
731
|
+
};
|
|
732
|
+
v1CreateWalletRequest: {
|
|
733
|
+
/** @enum {string} */
|
|
734
|
+
type: "ACTIVITY_TYPE_CREATE_WALLET";
|
|
735
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
736
|
+
timestampMs: string;
|
|
737
|
+
/** @description Unique identifier for a given Organization. */
|
|
738
|
+
organizationId: string;
|
|
739
|
+
parameters: definitions["v1CreateWalletIntent"];
|
|
740
|
+
};
|
|
741
|
+
v1CreateWalletResult: {
|
|
742
|
+
/** @description A list of Wallet IDs. */
|
|
743
|
+
walletId: string;
|
|
744
|
+
/** @description A list of account addresses. */
|
|
745
|
+
addresses: string[];
|
|
746
|
+
};
|
|
635
747
|
v1CredPropsAuthenticationExtensionsClientOutputs: {
|
|
636
748
|
rk: boolean;
|
|
637
749
|
};
|
|
638
|
-
v1Credential: {
|
|
639
|
-
/** @description The public component of a cryptographic key pair used to sign messages and transactions. */
|
|
640
|
-
publicKey: string;
|
|
641
|
-
type: definitions["v1CredentialType"];
|
|
642
|
-
};
|
|
643
|
-
/** @enum {string} */
|
|
644
|
-
v1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
|
|
645
750
|
v1DeleteApiKeysIntent: {
|
|
646
751
|
/** @description Unique identifier for a given User. */
|
|
647
752
|
userId: string;
|
|
@@ -766,6 +871,33 @@ export type definitions = {
|
|
|
766
871
|
/** @description Unique identifier for a given Private Key. */
|
|
767
872
|
privateKeyId: string;
|
|
768
873
|
};
|
|
874
|
+
v1ExportPrivateKeyIntent: {
|
|
875
|
+
/** @description Unique identifier for a given Private Key. */
|
|
876
|
+
privateKeyId: string;
|
|
877
|
+
/** @description Client-side public key generated by the user, to which the export bundle will be encrypted. */
|
|
878
|
+
targetPublicKey: string;
|
|
879
|
+
};
|
|
880
|
+
v1ExportPrivateKeyRequest: {
|
|
881
|
+
/** @enum {string} */
|
|
882
|
+
type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY";
|
|
883
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
884
|
+
timestampMs: string;
|
|
885
|
+
/** @description Unique identifier for a given Organization. */
|
|
886
|
+
organizationId: string;
|
|
887
|
+
parameters: definitions["v1ExportPrivateKeyIntent"];
|
|
888
|
+
};
|
|
889
|
+
v1ExportPrivateKeyResult: {
|
|
890
|
+
/** @description Unique identifier for a given Private Key. */
|
|
891
|
+
privateKeyId: string;
|
|
892
|
+
/** @description Export bundle containing a private key encrypted to the client's target public key. */
|
|
893
|
+
exportBundle: string;
|
|
894
|
+
};
|
|
895
|
+
v1Feature: {
|
|
896
|
+
name?: definitions["v1FeatureName"];
|
|
897
|
+
value?: string;
|
|
898
|
+
};
|
|
899
|
+
/** @enum {string} */
|
|
900
|
+
v1FeatureName: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY";
|
|
769
901
|
v1GetActivitiesRequest: {
|
|
770
902
|
/** @description Unique identifier for a given Organization. */
|
|
771
903
|
organizationId: string;
|
|
@@ -869,7 +1001,7 @@ export type definitions = {
|
|
|
869
1001
|
users: definitions["v1User"][];
|
|
870
1002
|
};
|
|
871
1003
|
v1GetWhoamiRequest: {
|
|
872
|
-
/** @description Unique identifier for a given Organization. */
|
|
1004
|
+
/** @description 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. */
|
|
873
1005
|
organizationId: string;
|
|
874
1006
|
};
|
|
875
1007
|
v1GetWhoamiResponse: {
|
|
@@ -882,8 +1014,25 @@ export type definitions = {
|
|
|
882
1014
|
/** @description Human-readable name for a User. */
|
|
883
1015
|
username: string;
|
|
884
1016
|
};
|
|
885
|
-
|
|
886
|
-
|
|
1017
|
+
v1InitUserEmailRecoveryIntent: {
|
|
1018
|
+
/** @description Email of the user starting recovery */
|
|
1019
|
+
email: string;
|
|
1020
|
+
/** @description Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
|
|
1021
|
+
targetPublicKey: string;
|
|
1022
|
+
};
|
|
1023
|
+
v1InitUserEmailRecoveryRequest: {
|
|
1024
|
+
/** @enum {string} */
|
|
1025
|
+
type: "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY";
|
|
1026
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1027
|
+
timestampMs: string;
|
|
1028
|
+
/** @description Unique identifier for a given Organization. */
|
|
1029
|
+
organizationId: string;
|
|
1030
|
+
parameters: definitions["v1InitUserEmailRecoveryIntent"];
|
|
1031
|
+
};
|
|
1032
|
+
v1InitUserEmailRecoveryResult: {
|
|
1033
|
+
/** @description Unique identifier for the user being recovered. */
|
|
1034
|
+
userId: string;
|
|
1035
|
+
};
|
|
887
1036
|
v1Intent: {
|
|
888
1037
|
createOrganizationIntent: definitions["v1CreateOrganizationIntent"];
|
|
889
1038
|
createAuthenticatorsIntent?: definitions["v1CreateAuthenticatorsIntent"];
|
|
@@ -928,6 +1077,16 @@ export type definitions = {
|
|
|
928
1077
|
updateUserIntent?: definitions["v1UpdateUserIntent"];
|
|
929
1078
|
updatePolicyIntent?: definitions["v1UpdatePolicyIntent"];
|
|
930
1079
|
setPaymentMethodIntentV2?: definitions["v1SetPaymentMethodIntentV2"];
|
|
1080
|
+
createSubOrganizationIntentV3?: definitions["v1CreateSubOrganizationIntentV3"];
|
|
1081
|
+
createWalletIntent?: definitions["v1CreateWalletIntent"];
|
|
1082
|
+
createWalletAccountsIntent?: definitions["v1CreateWalletAccountsIntent"];
|
|
1083
|
+
initUserEmailRecoveryIntent?: definitions["v1InitUserEmailRecoveryIntent"];
|
|
1084
|
+
recoverUserIntent?: definitions["v1RecoverUserIntent"];
|
|
1085
|
+
setOrganizationFeatureIntent?: definitions["v1SetOrganizationFeatureIntent"];
|
|
1086
|
+
removeOrganizationFeatureIntent?: definitions["v1RemoveOrganizationFeatureIntent"];
|
|
1087
|
+
signRawPayloadIntentV2?: definitions["v1SignRawPayloadIntentV2"];
|
|
1088
|
+
signTransactionIntentV2?: definitions["v1SignTransactionIntentV2"];
|
|
1089
|
+
exportPrivateKeyIntent?: definitions["v1ExportPrivateKeyIntent"];
|
|
931
1090
|
};
|
|
932
1091
|
v1Invitation: {
|
|
933
1092
|
/** @description Unique identifier for a given Invitation object. */
|
|
@@ -942,8 +1101,8 @@ export type definitions = {
|
|
|
942
1101
|
accessType: definitions["externaldatav1AccessType"];
|
|
943
1102
|
/** @description The current processing status of a specified Invitation. */
|
|
944
1103
|
status: definitions["v1InvitationStatus"];
|
|
945
|
-
createdAt: definitions["
|
|
946
|
-
updatedAt: definitions["
|
|
1104
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
1105
|
+
updatedAt: definitions["externaldatav1Timestamp"];
|
|
947
1106
|
/** @description Unique identifier for the Sender of an Invitation. */
|
|
948
1107
|
senderUserId: string;
|
|
949
1108
|
};
|
|
@@ -973,8 +1132,9 @@ export type definitions = {
|
|
|
973
1132
|
invitations?: definitions["v1Invitation"][];
|
|
974
1133
|
tags?: definitions["datav1Tag"][];
|
|
975
1134
|
disabledPrivateKeys?: definitions["v1PrivateKey"][];
|
|
976
|
-
rootQuorum?: definitions["
|
|
1135
|
+
rootQuorum?: definitions["externaldatav1Quorum"];
|
|
977
1136
|
allowedOrigins?: string[];
|
|
1137
|
+
features?: definitions["v1Feature"][];
|
|
978
1138
|
};
|
|
979
1139
|
v1Pagination: {
|
|
980
1140
|
/** @description A limit of the number of object to be returned, between 1 and 100. Defaults to 10. */
|
|
@@ -985,7 +1145,7 @@ export type definitions = {
|
|
|
985
1145
|
after?: string;
|
|
986
1146
|
};
|
|
987
1147
|
/** @enum {string} */
|
|
988
|
-
|
|
1148
|
+
v1PathFormat: "PATH_FORMAT_BIP32";
|
|
989
1149
|
v1Policy: {
|
|
990
1150
|
/** @description Unique identifier for a given Policy. */
|
|
991
1151
|
policyId: string;
|
|
@@ -995,8 +1155,8 @@ export type definitions = {
|
|
|
995
1155
|
effect: definitions["externaldatav1Effect"];
|
|
996
1156
|
/** @description A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
|
|
997
1157
|
selectors: definitions["externaldatav1Selector"][];
|
|
998
|
-
createdAt: definitions["
|
|
999
|
-
updatedAt: definitions["
|
|
1158
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
1159
|
+
updatedAt: definitions["externaldatav1Timestamp"];
|
|
1000
1160
|
/** @description Human-readable notes added by a User to describe a particular policy. */
|
|
1001
1161
|
notes: string;
|
|
1002
1162
|
/** @description A consensus expression that evalutes to true or false. */
|
|
@@ -1017,17 +1177,17 @@ export type definitions = {
|
|
|
1017
1177
|
addresses: definitions["externaldatav1Address"][];
|
|
1018
1178
|
/** @description A list of Private Key Tag IDs. */
|
|
1019
1179
|
privateKeyTags: string[];
|
|
1020
|
-
createdAt: definitions["
|
|
1180
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
1021
1181
|
};
|
|
1022
1182
|
v1PrivateKeyParams: {
|
|
1023
1183
|
/** @description Human-readable name for a Private Key. */
|
|
1024
1184
|
privateKeyName: string;
|
|
1025
1185
|
/** @description Cryptographic Curve used to generate a given Private Key. */
|
|
1026
|
-
curve: definitions["
|
|
1186
|
+
curve: definitions["immutablecommonv1Curve"];
|
|
1027
1187
|
/** @description A list of Private Key Tag IDs. */
|
|
1028
1188
|
privateKeyTags: string[];
|
|
1029
1189
|
/** @description Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
|
|
1030
|
-
addressFormats: definitions["
|
|
1190
|
+
addressFormats: definitions["immutablecommonv1AddressFormat"][];
|
|
1031
1191
|
};
|
|
1032
1192
|
v1PrivateKeyResult: {
|
|
1033
1193
|
privateKeyId?: string;
|
|
@@ -1043,14 +1203,15 @@ export type definitions = {
|
|
|
1043
1203
|
response: definitions["v1AuthenticatorAttestationResponse"];
|
|
1044
1204
|
clientExtensionResults: definitions["v1SimpleClientExtensionResults"];
|
|
1045
1205
|
};
|
|
1046
|
-
|
|
1047
|
-
/**
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1206
|
+
v1RecoverUserIntent: {
|
|
1207
|
+
/** @description The new authenticator to register. */
|
|
1208
|
+
authenticator: definitions["v1AuthenticatorParamsV2"];
|
|
1209
|
+
/** @description Unique identifier for the user performing recovery. */
|
|
1210
|
+
userId: string;
|
|
1211
|
+
};
|
|
1212
|
+
v1RecoverUserResult: {
|
|
1213
|
+
/** @description ID of the authenticator created. */
|
|
1214
|
+
authenticatorId: string[];
|
|
1054
1215
|
};
|
|
1055
1216
|
v1RejectActivityIntent: {
|
|
1056
1217
|
/** @description An artifact verifying a User's action. */
|
|
@@ -1065,6 +1226,23 @@ export type definitions = {
|
|
|
1065
1226
|
organizationId: string;
|
|
1066
1227
|
parameters: definitions["v1RejectActivityIntent"];
|
|
1067
1228
|
};
|
|
1229
|
+
v1RemoveOrganizationFeatureIntent: {
|
|
1230
|
+
/** @description Name of the feature to remove */
|
|
1231
|
+
name: definitions["v1FeatureName"];
|
|
1232
|
+
};
|
|
1233
|
+
v1RemoveOrganizationFeatureRequest: {
|
|
1234
|
+
/** @enum {string} */
|
|
1235
|
+
type: "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE";
|
|
1236
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1237
|
+
timestampMs: string;
|
|
1238
|
+
/** @description Unique identifier for a given Organization. */
|
|
1239
|
+
organizationId: string;
|
|
1240
|
+
parameters: definitions["v1RemoveOrganizationFeatureIntent"];
|
|
1241
|
+
};
|
|
1242
|
+
v1RemoveOrganizationFeatureResult: {
|
|
1243
|
+
/** @description Resulting list of organization features. */
|
|
1244
|
+
features: definitions["v1Feature"][];
|
|
1245
|
+
};
|
|
1068
1246
|
v1Result: {
|
|
1069
1247
|
createOrganizationResult?: definitions["v1CreateOrganizationResult"];
|
|
1070
1248
|
createAuthenticatorsResult?: definitions["v1CreateAuthenticatorsResult"];
|
|
@@ -1099,6 +1277,14 @@ export type definitions = {
|
|
|
1099
1277
|
createPrivateKeysResultV2?: definitions["v1CreatePrivateKeysResultV2"];
|
|
1100
1278
|
updateUserResult?: definitions["v1UpdateUserResult"];
|
|
1101
1279
|
updatePolicyResult?: definitions["v1UpdatePolicyResult"];
|
|
1280
|
+
createSubOrganizationResultV3?: definitions["v1CreateSubOrganizationResultV3"];
|
|
1281
|
+
createWalletResult?: definitions["v1CreateWalletResult"];
|
|
1282
|
+
createWalletAccountsResult?: definitions["v1CreateWalletAccountsResult"];
|
|
1283
|
+
initUserEmailRecoveryResult?: definitions["v1InitUserEmailRecoveryResult"];
|
|
1284
|
+
recoverUserResult?: definitions["v1RecoverUserResult"];
|
|
1285
|
+
setOrganizationFeatureResult?: definitions["v1SetOrganizationFeatureResult"];
|
|
1286
|
+
removeOrganizationFeatureResult?: definitions["v1RemoveOrganizationFeatureResult"];
|
|
1287
|
+
exportPrivateKeyResult?: definitions["v1ExportPrivateKeyResult"];
|
|
1102
1288
|
};
|
|
1103
1289
|
v1RootUserParams: {
|
|
1104
1290
|
/** @description Human-readable name for a User. */
|
|
@@ -1115,6 +1301,25 @@ export type definitions = {
|
|
|
1115
1301
|
operator?: definitions["immutableactivityv1Operator"];
|
|
1116
1302
|
targets?: string[];
|
|
1117
1303
|
};
|
|
1304
|
+
v1SetOrganizationFeatureIntent: {
|
|
1305
|
+
/** @description Name of the feature to set */
|
|
1306
|
+
name: definitions["v1FeatureName"];
|
|
1307
|
+
/** @description Optional value for the feature. Will override existing values if feature is already set. */
|
|
1308
|
+
value: string;
|
|
1309
|
+
};
|
|
1310
|
+
v1SetOrganizationFeatureRequest: {
|
|
1311
|
+
/** @enum {string} */
|
|
1312
|
+
type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE";
|
|
1313
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1314
|
+
timestampMs: string;
|
|
1315
|
+
/** @description Unique identifier for a given Organization. */
|
|
1316
|
+
organizationId: string;
|
|
1317
|
+
parameters: definitions["v1SetOrganizationFeatureIntent"];
|
|
1318
|
+
};
|
|
1319
|
+
v1SetOrganizationFeatureResult: {
|
|
1320
|
+
/** @description Resulting list of organization features. */
|
|
1321
|
+
features: definitions["v1Feature"][];
|
|
1322
|
+
};
|
|
1118
1323
|
v1SetPaymentMethodIntent: {
|
|
1119
1324
|
/** @description The account number of the customer's credit card. */
|
|
1120
1325
|
number: string;
|
|
@@ -1151,9 +1356,19 @@ export type definitions = {
|
|
|
1151
1356
|
/** @description Raw unsigned payload to be signed. */
|
|
1152
1357
|
payload: string;
|
|
1153
1358
|
/** @description Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
|
|
1154
|
-
encoding: definitions["
|
|
1359
|
+
encoding: definitions["immutableactivityv1PayloadEncoding"];
|
|
1360
|
+
/** @description 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. */
|
|
1361
|
+
hashFunction: definitions["immutableactivityv1HashFunction"];
|
|
1362
|
+
};
|
|
1363
|
+
v1SignRawPayloadIntentV2: {
|
|
1364
|
+
/** @description The Private Key identifier or address. */
|
|
1365
|
+
signWith: string;
|
|
1366
|
+
/** @description Raw unsigned payload to be signed. */
|
|
1367
|
+
payload: string;
|
|
1368
|
+
/** @description Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
|
|
1369
|
+
encoding: definitions["immutableactivityv1PayloadEncoding"];
|
|
1155
1370
|
/** @description 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. */
|
|
1156
|
-
hashFunction: definitions["
|
|
1371
|
+
hashFunction: definitions["immutableactivityv1HashFunction"];
|
|
1157
1372
|
};
|
|
1158
1373
|
v1SignRawPayloadRequest: {
|
|
1159
1374
|
/** @enum {string} */
|
|
@@ -1172,12 +1387,28 @@ export type definitions = {
|
|
|
1172
1387
|
/** @description Component of an ECSDA signature. */
|
|
1173
1388
|
v: string;
|
|
1174
1389
|
};
|
|
1390
|
+
v1SignRawPayloadV2Request: {
|
|
1391
|
+
/** @enum {string} */
|
|
1392
|
+
type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2";
|
|
1393
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1394
|
+
timestampMs: string;
|
|
1395
|
+
/** @description Unique identifier for a given Organization. */
|
|
1396
|
+
organizationId: string;
|
|
1397
|
+
parameters: definitions["v1SignRawPayloadIntentV2"];
|
|
1398
|
+
};
|
|
1175
1399
|
v1SignTransactionIntent: {
|
|
1176
1400
|
/** @description Unique identifier for a given Private Key. */
|
|
1177
1401
|
privateKeyId: string;
|
|
1178
1402
|
/** @description Raw unsigned transaction to be signed by a particular Private Key. */
|
|
1179
1403
|
unsignedTransaction: string;
|
|
1180
|
-
type: definitions["
|
|
1404
|
+
type: definitions["v1TransactionType"];
|
|
1405
|
+
};
|
|
1406
|
+
v1SignTransactionIntentV2: {
|
|
1407
|
+
/** @description The Private Key identifier or address. */
|
|
1408
|
+
signWith: string;
|
|
1409
|
+
/** @description Raw unsigned transaction to be signed */
|
|
1410
|
+
unsignedTransaction: string;
|
|
1411
|
+
type: definitions["v1TransactionType"];
|
|
1181
1412
|
};
|
|
1182
1413
|
v1SignTransactionRequest: {
|
|
1183
1414
|
/** @enum {string} */
|
|
@@ -1191,6 +1422,15 @@ export type definitions = {
|
|
|
1191
1422
|
v1SignTransactionResult: {
|
|
1192
1423
|
signedTransaction: string;
|
|
1193
1424
|
};
|
|
1425
|
+
v1SignTransactionV2Request: {
|
|
1426
|
+
/** @enum {string} */
|
|
1427
|
+
type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2";
|
|
1428
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1429
|
+
timestampMs: string;
|
|
1430
|
+
/** @description Unique identifier for a given Organization. */
|
|
1431
|
+
organizationId: string;
|
|
1432
|
+
parameters: definitions["v1SignTransactionIntentV2"];
|
|
1433
|
+
};
|
|
1194
1434
|
v1SimpleClientExtensionResults: {
|
|
1195
1435
|
appid?: boolean;
|
|
1196
1436
|
appidExclude?: boolean;
|
|
@@ -1198,10 +1438,8 @@ export type definitions = {
|
|
|
1198
1438
|
};
|
|
1199
1439
|
/** @enum {string} */
|
|
1200
1440
|
v1TagType: "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
nanos: string;
|
|
1204
|
-
};
|
|
1441
|
+
/** @enum {string} */
|
|
1442
|
+
v1TransactionType: "TRANSACTION_TYPE_ETHEREUM";
|
|
1205
1443
|
v1UpdateAllowedOriginsIntent: {
|
|
1206
1444
|
/** @description Additional origins requests are allowed from besides Turnkey origins */
|
|
1207
1445
|
allowedOrigins: string[];
|
|
@@ -1350,8 +1588,8 @@ export type definitions = {
|
|
|
1350
1588
|
apiKeys: definitions["v1ApiKey"][];
|
|
1351
1589
|
/** @description A list of User Tag IDs. */
|
|
1352
1590
|
userTags: string[];
|
|
1353
|
-
createdAt: definitions["
|
|
1354
|
-
updatedAt: definitions["
|
|
1591
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
1592
|
+
updatedAt: definitions["externaldatav1Timestamp"];
|
|
1355
1593
|
};
|
|
1356
1594
|
v1UserParams: {
|
|
1357
1595
|
/** @description Human-readable name for a User. */
|
|
@@ -1400,7 +1638,17 @@ export type definitions = {
|
|
|
1400
1638
|
signature: string;
|
|
1401
1639
|
/** @description Method used to produce a signature. */
|
|
1402
1640
|
scheme: string;
|
|
1403
|
-
createdAt: definitions["
|
|
1641
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
1642
|
+
};
|
|
1643
|
+
v1WalletAccountParams: {
|
|
1644
|
+
/** @description Cryptographic curve used to generate a wallet Account. */
|
|
1645
|
+
curve: definitions["immutablecommonv1Curve"];
|
|
1646
|
+
/** @description Path format used to generate a wallet Account. */
|
|
1647
|
+
pathFormat: definitions["v1PathFormat"];
|
|
1648
|
+
/** @description Path used to generate a wallet Account. */
|
|
1649
|
+
path: string;
|
|
1650
|
+
/** @description Address format used to generate a wallet Acccount. */
|
|
1651
|
+
addressFormat: definitions["immutablecommonv1AddressFormat"];
|
|
1404
1652
|
};
|
|
1405
1653
|
v1WebAuthnStamp: {
|
|
1406
1654
|
/** @description A base64 url encoded Unique identifier for a given credential. */
|
|
@@ -1612,7 +1860,7 @@ export type operations = {
|
|
|
1612
1860
|
};
|
|
1613
1861
|
};
|
|
1614
1862
|
};
|
|
1615
|
-
/** Get basic information about your current API user and
|
|
1863
|
+
/** Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN users. */
|
|
1616
1864
|
PublicApiService_GetWhoami: {
|
|
1617
1865
|
parameters: {
|
|
1618
1866
|
body: {
|
|
@@ -1828,6 +2076,42 @@ export type operations = {
|
|
|
1828
2076
|
};
|
|
1829
2077
|
};
|
|
1830
2078
|
};
|
|
2079
|
+
/** Create a Wallet */
|
|
2080
|
+
PublicApiService_CreateWallet: {
|
|
2081
|
+
parameters: {
|
|
2082
|
+
body: {
|
|
2083
|
+
body: definitions["v1CreateWalletRequest"];
|
|
2084
|
+
};
|
|
2085
|
+
};
|
|
2086
|
+
responses: {
|
|
2087
|
+
/** A successful response. */
|
|
2088
|
+
200: {
|
|
2089
|
+
schema: definitions["v1ActivityResponse"];
|
|
2090
|
+
};
|
|
2091
|
+
/** An unexpected error response. */
|
|
2092
|
+
default: {
|
|
2093
|
+
schema: definitions["rpcStatus"];
|
|
2094
|
+
};
|
|
2095
|
+
};
|
|
2096
|
+
};
|
|
2097
|
+
/** Create Wallet accounts */
|
|
2098
|
+
PublicApiService_CreateWalletAccounts: {
|
|
2099
|
+
parameters: {
|
|
2100
|
+
body: {
|
|
2101
|
+
body: definitions["v1CreateWalletAccountsRequest"];
|
|
2102
|
+
};
|
|
2103
|
+
};
|
|
2104
|
+
responses: {
|
|
2105
|
+
/** A successful response. */
|
|
2106
|
+
200: {
|
|
2107
|
+
schema: definitions["v1ActivityResponse"];
|
|
2108
|
+
};
|
|
2109
|
+
/** An unexpected error response. */
|
|
2110
|
+
default: {
|
|
2111
|
+
schema: definitions["rpcStatus"];
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2114
|
+
};
|
|
1831
2115
|
/** Remove api keys from a User */
|
|
1832
2116
|
PublicApiService_DeleteApiKeys: {
|
|
1833
2117
|
parameters: {
|
|
@@ -1900,6 +2184,42 @@ export type operations = {
|
|
|
1900
2184
|
};
|
|
1901
2185
|
};
|
|
1902
2186
|
};
|
|
2187
|
+
/** Exports a Private Key */
|
|
2188
|
+
PublicApiService_ExportPrivateKey: {
|
|
2189
|
+
parameters: {
|
|
2190
|
+
body: {
|
|
2191
|
+
body: definitions["v1ExportPrivateKeyRequest"];
|
|
2192
|
+
};
|
|
2193
|
+
};
|
|
2194
|
+
responses: {
|
|
2195
|
+
/** A successful response. */
|
|
2196
|
+
200: {
|
|
2197
|
+
schema: definitions["v1ActivityResponse"];
|
|
2198
|
+
};
|
|
2199
|
+
/** An unexpected error response. */
|
|
2200
|
+
default: {
|
|
2201
|
+
schema: definitions["rpcStatus"];
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
};
|
|
2205
|
+
/** Initializes a new recovery */
|
|
2206
|
+
PublicApiService_InitUserEmailRecovery: {
|
|
2207
|
+
parameters: {
|
|
2208
|
+
body: {
|
|
2209
|
+
body: definitions["v1InitUserEmailRecoveryRequest"];
|
|
2210
|
+
};
|
|
2211
|
+
};
|
|
2212
|
+
responses: {
|
|
2213
|
+
/** A successful response. */
|
|
2214
|
+
200: {
|
|
2215
|
+
schema: definitions["v1ActivityResponse"];
|
|
2216
|
+
};
|
|
2217
|
+
/** An unexpected error response. */
|
|
2218
|
+
default: {
|
|
2219
|
+
schema: definitions["rpcStatus"];
|
|
2220
|
+
};
|
|
2221
|
+
};
|
|
2222
|
+
};
|
|
1903
2223
|
/** Reject an Activity */
|
|
1904
2224
|
PublicApiService_RejectActivity: {
|
|
1905
2225
|
parameters: {
|
|
@@ -1918,6 +2238,42 @@ export type operations = {
|
|
|
1918
2238
|
};
|
|
1919
2239
|
};
|
|
1920
2240
|
};
|
|
2241
|
+
/** Removes an organization feature */
|
|
2242
|
+
PublicApiService_RemoveOrganizationFeature: {
|
|
2243
|
+
parameters: {
|
|
2244
|
+
body: {
|
|
2245
|
+
body: definitions["v1RemoveOrganizationFeatureRequest"];
|
|
2246
|
+
};
|
|
2247
|
+
};
|
|
2248
|
+
responses: {
|
|
2249
|
+
/** A successful response. */
|
|
2250
|
+
200: {
|
|
2251
|
+
schema: definitions["v1ActivityResponse"];
|
|
2252
|
+
};
|
|
2253
|
+
/** An unexpected error response. */
|
|
2254
|
+
default: {
|
|
2255
|
+
schema: definitions["rpcStatus"];
|
|
2256
|
+
};
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
/** Sets an organization feature */
|
|
2260
|
+
PublicApiService_SetOrganizationFeature: {
|
|
2261
|
+
parameters: {
|
|
2262
|
+
body: {
|
|
2263
|
+
body: definitions["v1SetOrganizationFeatureRequest"];
|
|
2264
|
+
};
|
|
2265
|
+
};
|
|
2266
|
+
responses: {
|
|
2267
|
+
/** A successful response. */
|
|
2268
|
+
200: {
|
|
2269
|
+
schema: definitions["v1ActivityResponse"];
|
|
2270
|
+
};
|
|
2271
|
+
/** An unexpected error response. */
|
|
2272
|
+
default: {
|
|
2273
|
+
schema: definitions["rpcStatus"];
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2276
|
+
};
|
|
1921
2277
|
/** Sign a raw payload with a Private Key */
|
|
1922
2278
|
PublicApiService_SignRawPayload: {
|
|
1923
2279
|
parameters: {
|
|
@@ -1936,6 +2292,24 @@ export type operations = {
|
|
|
1936
2292
|
};
|
|
1937
2293
|
};
|
|
1938
2294
|
};
|
|
2295
|
+
/** Sign a raw payload with a Private Key id or address */
|
|
2296
|
+
PublicApiService_SignRawPayloadV2: {
|
|
2297
|
+
parameters: {
|
|
2298
|
+
body: {
|
|
2299
|
+
body: definitions["v1SignRawPayloadV2Request"];
|
|
2300
|
+
};
|
|
2301
|
+
};
|
|
2302
|
+
responses: {
|
|
2303
|
+
/** A successful response. */
|
|
2304
|
+
200: {
|
|
2305
|
+
schema: definitions["v1ActivityResponse"];
|
|
2306
|
+
};
|
|
2307
|
+
/** An unexpected error response. */
|
|
2308
|
+
default: {
|
|
2309
|
+
schema: definitions["rpcStatus"];
|
|
2310
|
+
};
|
|
2311
|
+
};
|
|
2312
|
+
};
|
|
1939
2313
|
/** Sign a transaction with a Private Key */
|
|
1940
2314
|
PublicApiService_SignTransaction: {
|
|
1941
2315
|
parameters: {
|
|
@@ -1954,6 +2328,24 @@ export type operations = {
|
|
|
1954
2328
|
};
|
|
1955
2329
|
};
|
|
1956
2330
|
};
|
|
2331
|
+
/** Sign a transaction with a Private Key id or address */
|
|
2332
|
+
PublicApiService_SignTransactionV2: {
|
|
2333
|
+
parameters: {
|
|
2334
|
+
body: {
|
|
2335
|
+
body: definitions["v1SignTransactionV2Request"];
|
|
2336
|
+
};
|
|
2337
|
+
};
|
|
2338
|
+
responses: {
|
|
2339
|
+
/** A successful response. */
|
|
2340
|
+
200: {
|
|
2341
|
+
schema: definitions["v1ActivityResponse"];
|
|
2342
|
+
};
|
|
2343
|
+
/** An unexpected error response. */
|
|
2344
|
+
default: {
|
|
2345
|
+
schema: definitions["rpcStatus"];
|
|
2346
|
+
};
|
|
2347
|
+
};
|
|
2348
|
+
};
|
|
1957
2349
|
/** Update the allowable origins for credentials and requests */
|
|
1958
2350
|
PublicApiService_UpdateAllowedOrigins: {
|
|
1959
2351
|
parameters: {
|