@turnkey/http 1.2.0 → 2.0.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.
@@ -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 and derive addresses */
100
+ post: operations["PublicApiService_CreateWallet"];
101
+ };
102
+ "/public/v1/submit/create_wallet_accounts": {
103
+ /** Derive additional addresses using an existing wallet */
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"];
@@ -103,7 +111,7 @@ export type paths = {
103
111
  /** Remove authenticators from a User */
104
112
  post: operations["PublicApiService_DeleteAuthenticators"];
105
113
  };
106
- "/public/v1/submit/delete_invitations": {
114
+ "/public/v1/submit/delete_invitation": {
107
115
  /** Delete an existing Invitation */
108
116
  post: operations["PublicApiService_DeleteInvitation"];
109
117
  };
@@ -111,16 +119,40 @@ 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/export_wallet": {
127
+ /** Exports a Wallet */
128
+ post: operations["PublicApiService_ExportWallet"];
129
+ };
130
+ "/public/v1/submit/init_user_email_recovery": {
131
+ /** Initializes a new email recovery */
132
+ post: operations["PublicApiService_InitUserEmailRecovery"];
133
+ };
134
+ "/public/v1/submit/recover_user": {
135
+ /** Completes the process of recovering a user by adding an authenticator */
136
+ post: operations["PublicApiService_RecoverUser"];
137
+ };
114
138
  "/public/v1/submit/reject_activity": {
115
139
  /** Reject an Activity */
116
140
  post: operations["PublicApiService_RejectActivity"];
117
141
  };
142
+ "/public/v1/submit/remove_organization_feature": {
143
+ /** Removes an organization feature */
144
+ post: operations["PublicApiService_RemoveOrganizationFeature"];
145
+ };
146
+ "/public/v1/submit/set_organization_feature": {
147
+ /** Sets an organization feature */
148
+ post: operations["PublicApiService_SetOrganizationFeature"];
149
+ };
118
150
  "/public/v1/submit/sign_raw_payload": {
119
- /** Sign a raw payload with a Private Key */
151
+ /** Sign a raw payload */
120
152
  post: operations["PublicApiService_SignRawPayload"];
121
153
  };
122
154
  "/public/v1/submit/sign_transaction": {
123
- /** Sign a transaction with a Private Key */
155
+ /** Sign a transaction */
124
156
  post: operations["PublicApiService_SignTransaction"];
125
157
  };
126
158
  "/public/v1/submit/update_allowed_origins": {
@@ -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["v1Timestamp"];
162
- updatedAt: definitions["v1Timestamp"];
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["immutableactivityv1AddressFormat"];
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
- immutableactivityv1TransactionType: "TRANSACTION_TYPE_ETHEREUM";
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["v1Timestamp"];
272
- updatedAt: definitions["v1Timestamp"];
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" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3";
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" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4";
282
336
  v1ApiKey: {
283
337
  /** @description A User credential that can be used to authenticate to Turnkey. */
284
- credential: definitions["v1Credential"];
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["v1Timestamp"];
290
- updatedAt: definitions["v1Timestamp"];
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["v1Credential"];
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["v1Timestamp"];
348
- updatedAt: definitions["v1Timestamp"];
401
+ createdAt: definitions["externaldatav1Timestamp"];
402
+ updatedAt: definitions["externaldatav1Timestamp"];
349
403
  };
350
404
  v1AuthenticatorAttestationResponse: {
351
405
  clientDataJson: string;
@@ -591,14 +645,29 @@ export type definitions = {
591
645
  /** @description A list of Private Keys. */
592
646
  privateKeys: definitions["v1PrivateKeyParams"][];
593
647
  };
648
+ v1CreateSubOrganizationIntentV4: {
649
+ /** @description Name for this sub-organization */
650
+ subOrganizationName: string;
651
+ /** @description Root users to create within this sub-organization */
652
+ rootUsers: definitions["v1RootUserParams"][];
653
+ /**
654
+ * Format: int32
655
+ * @description The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users
656
+ */
657
+ rootQuorumThreshold: number;
658
+ /** @description The wallet to create for the sub-organization */
659
+ wallet?: definitions["v1WalletParams"];
660
+ /** @description Disable email recovery for the sub-organization */
661
+ disableEmailRecovery?: boolean;
662
+ };
594
663
  v1CreateSubOrganizationRequest: {
595
664
  /** @enum {string} */
596
- type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3";
665
+ type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4";
597
666
  /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
598
667
  timestampMs: string;
599
668
  /** @description Unique identifier for a given Organization. */
600
669
  organizationId: string;
601
- parameters: definitions["v1CreateSubOrganizationIntentV3"];
670
+ parameters: definitions["v1CreateSubOrganizationIntentV4"];
602
671
  };
603
672
  v1CreateSubOrganizationResult: {
604
673
  subOrganizationId: string;
@@ -608,6 +677,10 @@ export type definitions = {
608
677
  /** @description A list of Private Key IDs and addresses. */
609
678
  privateKeys: definitions["v1PrivateKeyResult"][];
610
679
  };
680
+ v1CreateSubOrganizationResultV4: {
681
+ subOrganizationId: string;
682
+ wallet?: definitions["v1WalletResult"];
683
+ };
611
684
  v1CreateUserTagIntent: {
612
685
  /** @description Human-readable name for a User Tag. */
613
686
  userTagName: string;
@@ -650,16 +723,49 @@ export type definitions = {
650
723
  /** @description A list of User IDs. */
651
724
  userIds: string[];
652
725
  };
726
+ v1CreateWalletAccountsIntent: {
727
+ /** @description Unique identifier for a given Wallet. */
728
+ walletId: string;
729
+ /** @description A list of wallet Accounts. */
730
+ accounts: definitions["v1WalletAccountParams"][];
731
+ };
732
+ v1CreateWalletAccountsRequest: {
733
+ /** @enum {string} */
734
+ type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS";
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["v1CreateWalletAccountsIntent"];
740
+ };
741
+ v1CreateWalletAccountsResult: {
742
+ /** @description A list of derived addresses. */
743
+ addresses: string[];
744
+ };
745
+ v1CreateWalletIntent: {
746
+ /** @description Human-readable name for a Wallet. */
747
+ walletName: string;
748
+ /** @description A list of wallet Accounts. */
749
+ accounts: definitions["v1WalletAccountParams"][];
750
+ };
751
+ v1CreateWalletRequest: {
752
+ /** @enum {string} */
753
+ type: "ACTIVITY_TYPE_CREATE_WALLET";
754
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
755
+ timestampMs: string;
756
+ /** @description Unique identifier for a given Organization. */
757
+ organizationId: string;
758
+ parameters: definitions["v1CreateWalletIntent"];
759
+ };
760
+ v1CreateWalletResult: {
761
+ /** @description A list of Wallet IDs. */
762
+ walletId: string;
763
+ /** @description A list of account addresses. */
764
+ addresses: string[];
765
+ };
653
766
  v1CredPropsAuthenticationExtensionsClientOutputs: {
654
767
  rk: boolean;
655
768
  };
656
- v1Credential: {
657
- /** @description The public component of a cryptographic key pair used to sign messages and transactions. */
658
- publicKey: string;
659
- type: definitions["v1CredentialType"];
660
- };
661
- /** @enum {string} */
662
- v1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
663
769
  v1DeleteApiKeysIntent: {
664
770
  /** @description Unique identifier for a given User. */
665
771
  userId: string;
@@ -784,6 +890,56 @@ export type definitions = {
784
890
  /** @description Unique identifier for a given Private Key. */
785
891
  privateKeyId: string;
786
892
  };
893
+ v1ExportPrivateKeyIntent: {
894
+ /** @description Unique identifier for a given Private Key. */
895
+ privateKeyId: string;
896
+ /** @description Client-side public key generated by the user, to which the export bundle will be encrypted. */
897
+ targetPublicKey: string;
898
+ };
899
+ v1ExportPrivateKeyRequest: {
900
+ /** @enum {string} */
901
+ type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY";
902
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
903
+ timestampMs: string;
904
+ /** @description Unique identifier for a given Organization. */
905
+ organizationId: string;
906
+ parameters: definitions["v1ExportPrivateKeyIntent"];
907
+ };
908
+ v1ExportPrivateKeyResult: {
909
+ /** @description Unique identifier for a given Private Key. */
910
+ privateKeyId: string;
911
+ /** @description Export bundle containing a private key encrypted to the client's target public key. */
912
+ exportBundle: string;
913
+ };
914
+ v1ExportWalletIntent: {
915
+ /** @description Unique identifier for a given Wallet. */
916
+ walletId: string;
917
+ /** @description Client-side public key generated by the user, to which the export bundle will be encrypted. */
918
+ targetPublicKey: string;
919
+ /** @description The language of the mnemonic to export. Defaults to English. */
920
+ language?: definitions["v1MnemonicLanguage"];
921
+ };
922
+ v1ExportWalletRequest: {
923
+ /** @enum {string} */
924
+ type: "ACTIVITY_TYPE_EXPORT_WALLET";
925
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
926
+ timestampMs: string;
927
+ /** @description Unique identifier for a given Organization. */
928
+ organizationId: string;
929
+ parameters: definitions["v1ExportWalletIntent"];
930
+ };
931
+ v1ExportWalletResult: {
932
+ /** @description Unique identifier for a given Wallet. */
933
+ walletId: string;
934
+ /** @description Export bundle containing a wallet mnemonic + optional newline passphrase encrypted by the client's target public key. */
935
+ exportBundle: string;
936
+ };
937
+ v1Feature: {
938
+ name?: definitions["v1FeatureName"];
939
+ value?: string;
940
+ };
941
+ /** @enum {string} */
942
+ v1FeatureName: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY";
787
943
  v1GetActivitiesRequest: {
788
944
  /** @description Unique identifier for a given Organization. */
789
945
  organizationId: string;
@@ -900,8 +1056,25 @@ export type definitions = {
900
1056
  /** @description Human-readable name for a User. */
901
1057
  username: string;
902
1058
  };
903
- /** @enum {string} */
904
- v1HashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
1059
+ v1InitUserEmailRecoveryIntent: {
1060
+ /** @description Email of the user starting recovery */
1061
+ email: string;
1062
+ /** @description Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
1063
+ targetPublicKey: string;
1064
+ };
1065
+ v1InitUserEmailRecoveryRequest: {
1066
+ /** @enum {string} */
1067
+ type: "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY";
1068
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1069
+ timestampMs: string;
1070
+ /** @description Unique identifier for a given Organization. */
1071
+ organizationId: string;
1072
+ parameters: definitions["v1InitUserEmailRecoveryIntent"];
1073
+ };
1074
+ v1InitUserEmailRecoveryResult: {
1075
+ /** @description Unique identifier for the user being recovered. */
1076
+ userId: string;
1077
+ };
905
1078
  v1Intent: {
906
1079
  createOrganizationIntent: definitions["v1CreateOrganizationIntent"];
907
1080
  createAuthenticatorsIntent?: definitions["v1CreateAuthenticatorsIntent"];
@@ -947,6 +1120,17 @@ export type definitions = {
947
1120
  updatePolicyIntent?: definitions["v1UpdatePolicyIntent"];
948
1121
  setPaymentMethodIntentV2?: definitions["v1SetPaymentMethodIntentV2"];
949
1122
  createSubOrganizationIntentV3?: definitions["v1CreateSubOrganizationIntentV3"];
1123
+ createWalletIntent?: definitions["v1CreateWalletIntent"];
1124
+ createWalletAccountsIntent?: definitions["v1CreateWalletAccountsIntent"];
1125
+ initUserEmailRecoveryIntent?: definitions["v1InitUserEmailRecoveryIntent"];
1126
+ recoverUserIntent?: definitions["v1RecoverUserIntent"];
1127
+ setOrganizationFeatureIntent?: definitions["v1SetOrganizationFeatureIntent"];
1128
+ removeOrganizationFeatureIntent?: definitions["v1RemoveOrganizationFeatureIntent"];
1129
+ signRawPayloadIntentV2?: definitions["v1SignRawPayloadIntentV2"];
1130
+ signTransactionIntentV2?: definitions["v1SignTransactionIntentV2"];
1131
+ exportPrivateKeyIntent?: definitions["v1ExportPrivateKeyIntent"];
1132
+ exportWalletIntent?: definitions["v1ExportWalletIntent"];
1133
+ createSubOrganizationIntentV4?: definitions["v1CreateSubOrganizationIntentV4"];
950
1134
  };
951
1135
  v1Invitation: {
952
1136
  /** @description Unique identifier for a given Invitation object. */
@@ -961,8 +1145,8 @@ export type definitions = {
961
1145
  accessType: definitions["externaldatav1AccessType"];
962
1146
  /** @description The current processing status of a specified Invitation. */
963
1147
  status: definitions["v1InvitationStatus"];
964
- createdAt: definitions["v1Timestamp"];
965
- updatedAt: definitions["v1Timestamp"];
1148
+ createdAt: definitions["externaldatav1Timestamp"];
1149
+ updatedAt: definitions["externaldatav1Timestamp"];
966
1150
  /** @description Unique identifier for the Sender of an Invitation. */
967
1151
  senderUserId: string;
968
1152
  };
@@ -980,6 +1164,8 @@ export type definitions = {
980
1164
  };
981
1165
  /** @enum {string} */
982
1166
  v1InvitationStatus: "INVITATION_STATUS_CREATED" | "INVITATION_STATUS_ACCEPTED" | "INVITATION_STATUS_REVOKED";
1167
+ /** @enum {string} */
1168
+ 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";
983
1169
  v1NOOPCodegenAnchorResponse: {
984
1170
  stamp: definitions["v1WebAuthnStamp"];
985
1171
  };
@@ -992,8 +1178,10 @@ export type definitions = {
992
1178
  invitations?: definitions["v1Invitation"][];
993
1179
  tags?: definitions["datav1Tag"][];
994
1180
  disabledPrivateKeys?: definitions["v1PrivateKey"][];
995
- rootQuorum?: definitions["v1Quorum"];
1181
+ rootQuorum?: definitions["externaldatav1Quorum"];
996
1182
  allowedOrigins?: string[];
1183
+ features?: definitions["v1Feature"][];
1184
+ wallets?: definitions["v1Wallet"][];
997
1185
  };
998
1186
  v1Pagination: {
999
1187
  /** @description A limit of the number of object to be returned, between 1 and 100. Defaults to 10. */
@@ -1004,7 +1192,7 @@ export type definitions = {
1004
1192
  after?: string;
1005
1193
  };
1006
1194
  /** @enum {string} */
1007
- v1PayloadEncoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
1195
+ v1PathFormat: "PATH_FORMAT_BIP32";
1008
1196
  v1Policy: {
1009
1197
  /** @description Unique identifier for a given Policy. */
1010
1198
  policyId: string;
@@ -1014,8 +1202,8 @@ export type definitions = {
1014
1202
  effect: definitions["externaldatav1Effect"];
1015
1203
  /** @description A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
1016
1204
  selectors: definitions["externaldatav1Selector"][];
1017
- createdAt: definitions["v1Timestamp"];
1018
- updatedAt: definitions["v1Timestamp"];
1205
+ createdAt: definitions["externaldatav1Timestamp"];
1206
+ updatedAt: definitions["externaldatav1Timestamp"];
1019
1207
  /** @description Human-readable notes added by a User to describe a particular policy. */
1020
1208
  notes: string;
1021
1209
  /** @description A consensus expression that evalutes to true or false. */
@@ -1036,17 +1224,20 @@ export type definitions = {
1036
1224
  addresses: definitions["externaldatav1Address"][];
1037
1225
  /** @description A list of Private Key Tag IDs. */
1038
1226
  privateKeyTags: string[];
1039
- createdAt: definitions["v1Timestamp"];
1227
+ createdAt: definitions["externaldatav1Timestamp"];
1228
+ updatedAt: definitions["externaldatav1Timestamp"];
1229
+ /** @description True when a given Private Key is exported, false otherwise. */
1230
+ exported: boolean;
1040
1231
  };
1041
1232
  v1PrivateKeyParams: {
1042
1233
  /** @description Human-readable name for a Private Key. */
1043
1234
  privateKeyName: string;
1044
1235
  /** @description Cryptographic Curve used to generate a given Private Key. */
1045
- curve: definitions["immutableactivityv1Curve"];
1236
+ curve: definitions["immutablecommonv1Curve"];
1046
1237
  /** @description A list of Private Key Tag IDs. */
1047
1238
  privateKeyTags: string[];
1048
1239
  /** @description Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
1049
- addressFormats: definitions["immutableactivityv1AddressFormat"][];
1240
+ addressFormats: definitions["immutablecommonv1AddressFormat"][];
1050
1241
  };
1051
1242
  v1PrivateKeyResult: {
1052
1243
  privateKeyId?: string;
@@ -1062,14 +1253,24 @@ export type definitions = {
1062
1253
  response: definitions["v1AuthenticatorAttestationResponse"];
1063
1254
  clientExtensionResults: definitions["v1SimpleClientExtensionResults"];
1064
1255
  };
1065
- v1Quorum: {
1066
- /**
1067
- * Format: int32
1068
- * @description Count of unique approvals required to meet quorum.
1069
- */
1070
- threshold: number;
1071
- /** @description Unique identifiers of quorum set members. */
1072
- userIds: string[];
1256
+ v1RecoverUserIntent: {
1257
+ /** @description The new authenticator to register. */
1258
+ authenticator: definitions["v1AuthenticatorParamsV2"];
1259
+ /** @description Unique identifier for the user performing recovery. */
1260
+ userId: string;
1261
+ };
1262
+ v1RecoverUserRequest: {
1263
+ /** @enum {string} */
1264
+ type: "ACTIVITY_TYPE_RECOVER_USER";
1265
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1266
+ timestampMs: string;
1267
+ /** @description Unique identifier for a given Organization. */
1268
+ organizationId: string;
1269
+ parameters: definitions["v1RecoverUserIntent"];
1270
+ };
1271
+ v1RecoverUserResult: {
1272
+ /** @description ID of the authenticator created. */
1273
+ authenticatorId: string[];
1073
1274
  };
1074
1275
  v1RejectActivityIntent: {
1075
1276
  /** @description An artifact verifying a User's action. */
@@ -1084,6 +1285,23 @@ export type definitions = {
1084
1285
  organizationId: string;
1085
1286
  parameters: definitions["v1RejectActivityIntent"];
1086
1287
  };
1288
+ v1RemoveOrganizationFeatureIntent: {
1289
+ /** @description Name of the feature to remove */
1290
+ name: definitions["v1FeatureName"];
1291
+ };
1292
+ v1RemoveOrganizationFeatureRequest: {
1293
+ /** @enum {string} */
1294
+ type: "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE";
1295
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1296
+ timestampMs: string;
1297
+ /** @description Unique identifier for a given Organization. */
1298
+ organizationId: string;
1299
+ parameters: definitions["v1RemoveOrganizationFeatureIntent"];
1300
+ };
1301
+ v1RemoveOrganizationFeatureResult: {
1302
+ /** @description Resulting list of organization features. */
1303
+ features: definitions["v1Feature"][];
1304
+ };
1087
1305
  v1Result: {
1088
1306
  createOrganizationResult?: definitions["v1CreateOrganizationResult"];
1089
1307
  createAuthenticatorsResult?: definitions["v1CreateAuthenticatorsResult"];
@@ -1119,6 +1337,15 @@ export type definitions = {
1119
1337
  updateUserResult?: definitions["v1UpdateUserResult"];
1120
1338
  updatePolicyResult?: definitions["v1UpdatePolicyResult"];
1121
1339
  createSubOrganizationResultV3?: definitions["v1CreateSubOrganizationResultV3"];
1340
+ createWalletResult?: definitions["v1CreateWalletResult"];
1341
+ createWalletAccountsResult?: definitions["v1CreateWalletAccountsResult"];
1342
+ initUserEmailRecoveryResult?: definitions["v1InitUserEmailRecoveryResult"];
1343
+ recoverUserResult?: definitions["v1RecoverUserResult"];
1344
+ setOrganizationFeatureResult?: definitions["v1SetOrganizationFeatureResult"];
1345
+ removeOrganizationFeatureResult?: definitions["v1RemoveOrganizationFeatureResult"];
1346
+ exportPrivateKeyResult?: definitions["v1ExportPrivateKeyResult"];
1347
+ exportWalletResult?: definitions["v1ExportWalletResult"];
1348
+ createSubOrganizationResultV4?: definitions["v1CreateSubOrganizationResultV4"];
1122
1349
  };
1123
1350
  v1RootUserParams: {
1124
1351
  /** @description Human-readable name for a User. */
@@ -1135,6 +1362,25 @@ export type definitions = {
1135
1362
  operator?: definitions["immutableactivityv1Operator"];
1136
1363
  targets?: string[];
1137
1364
  };
1365
+ v1SetOrganizationFeatureIntent: {
1366
+ /** @description Name of the feature to set */
1367
+ name: definitions["v1FeatureName"];
1368
+ /** @description Optional value for the feature. Will override existing values if feature is already set. */
1369
+ value: string;
1370
+ };
1371
+ v1SetOrganizationFeatureRequest: {
1372
+ /** @enum {string} */
1373
+ type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE";
1374
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1375
+ timestampMs: string;
1376
+ /** @description Unique identifier for a given Organization. */
1377
+ organizationId: string;
1378
+ parameters: definitions["v1SetOrganizationFeatureIntent"];
1379
+ };
1380
+ v1SetOrganizationFeatureResult: {
1381
+ /** @description Resulting list of organization features. */
1382
+ features: definitions["v1Feature"][];
1383
+ };
1138
1384
  v1SetPaymentMethodIntent: {
1139
1385
  /** @description The account number of the customer's credit card. */
1140
1386
  number: string;
@@ -1171,18 +1417,28 @@ export type definitions = {
1171
1417
  /** @description Raw unsigned payload to be signed. */
1172
1418
  payload: string;
1173
1419
  /** @description Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
1174
- encoding: definitions["v1PayloadEncoding"];
1420
+ encoding: definitions["immutableactivityv1PayloadEncoding"];
1421
+ /** @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. */
1422
+ hashFunction: definitions["immutableactivityv1HashFunction"];
1423
+ };
1424
+ v1SignRawPayloadIntentV2: {
1425
+ /** @description A Wallet account address, Private Key address, or Private Key identifier. */
1426
+ signWith: string;
1427
+ /** @description Raw unsigned payload to be signed. */
1428
+ payload: string;
1429
+ /** @description Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
1430
+ encoding: definitions["immutableactivityv1PayloadEncoding"];
1175
1431
  /** @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. */
1176
- hashFunction: definitions["v1HashFunction"];
1432
+ hashFunction: definitions["immutableactivityv1HashFunction"];
1177
1433
  };
1178
1434
  v1SignRawPayloadRequest: {
1179
1435
  /** @enum {string} */
1180
- type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD";
1436
+ type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2";
1181
1437
  /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1182
1438
  timestampMs: string;
1183
1439
  /** @description Unique identifier for a given Organization. */
1184
1440
  organizationId: string;
1185
- parameters: definitions["v1SignRawPayloadIntent"];
1441
+ parameters: definitions["v1SignRawPayloadIntentV2"];
1186
1442
  };
1187
1443
  v1SignRawPayloadResult: {
1188
1444
  /** @description Component of an ECSDA signature. */
@@ -1197,16 +1453,23 @@ export type definitions = {
1197
1453
  privateKeyId: string;
1198
1454
  /** @description Raw unsigned transaction to be signed by a particular Private Key. */
1199
1455
  unsignedTransaction: string;
1200
- type: definitions["immutableactivityv1TransactionType"];
1456
+ type: definitions["v1TransactionType"];
1457
+ };
1458
+ v1SignTransactionIntentV2: {
1459
+ /** @description A Wallet account address, Private Key address, or Private Key identifier. */
1460
+ signWith: string;
1461
+ /** @description Raw unsigned transaction to be signed */
1462
+ unsignedTransaction: string;
1463
+ type: definitions["v1TransactionType"];
1201
1464
  };
1202
1465
  v1SignTransactionRequest: {
1203
1466
  /** @enum {string} */
1204
- type: "ACTIVITY_TYPE_SIGN_TRANSACTION";
1467
+ type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2";
1205
1468
  /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1206
1469
  timestampMs: string;
1207
1470
  /** @description Unique identifier for a given Organization. */
1208
1471
  organizationId: string;
1209
- parameters: definitions["v1SignTransactionIntent"];
1472
+ parameters: definitions["v1SignTransactionIntentV2"];
1210
1473
  };
1211
1474
  v1SignTransactionResult: {
1212
1475
  signedTransaction: string;
@@ -1218,10 +1481,8 @@ export type definitions = {
1218
1481
  };
1219
1482
  /** @enum {string} */
1220
1483
  v1TagType: "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
1221
- v1Timestamp: {
1222
- seconds: string;
1223
- nanos: string;
1224
- };
1484
+ /** @enum {string} */
1485
+ v1TransactionType: "TRANSACTION_TYPE_ETHEREUM";
1225
1486
  v1UpdateAllowedOriginsIntent: {
1226
1487
  /** @description Additional origins requests are allowed from besides Turnkey origins */
1227
1488
  allowedOrigins: string[];
@@ -1370,8 +1631,8 @@ export type definitions = {
1370
1631
  apiKeys: definitions["v1ApiKey"][];
1371
1632
  /** @description A list of User Tag IDs. */
1372
1633
  userTags: string[];
1373
- createdAt: definitions["v1Timestamp"];
1374
- updatedAt: definitions["v1Timestamp"];
1634
+ createdAt: definitions["externaldatav1Timestamp"];
1635
+ updatedAt: definitions["externaldatav1Timestamp"];
1375
1636
  };
1376
1637
  v1UserParams: {
1377
1638
  /** @description Human-readable name for a User. */
@@ -1420,7 +1681,38 @@ export type definitions = {
1420
1681
  signature: string;
1421
1682
  /** @description Method used to produce a signature. */
1422
1683
  scheme: string;
1423
- createdAt: definitions["v1Timestamp"];
1684
+ createdAt: definitions["externaldatav1Timestamp"];
1685
+ };
1686
+ v1Wallet: {
1687
+ /** @description Unique identifier for a given Wallet. */
1688
+ walletId: string;
1689
+ /** @description Human-readable name for a Wallet. */
1690
+ walletName: string;
1691
+ createdAt: definitions["externaldatav1Timestamp"];
1692
+ updatedAt: definitions["externaldatav1Timestamp"];
1693
+ /** @description True when a given Wallet is exported, false otherwise. */
1694
+ exported: boolean;
1695
+ };
1696
+ v1WalletAccountParams: {
1697
+ /** @description Cryptographic curve used to generate a wallet Account. */
1698
+ curve: definitions["immutablecommonv1Curve"];
1699
+ /** @description Path format used to generate a wallet Account. */
1700
+ pathFormat: definitions["v1PathFormat"];
1701
+ /** @description Path used to generate a wallet Account. */
1702
+ path: string;
1703
+ /** @description Address format used to generate a wallet Acccount. */
1704
+ addressFormat: definitions["immutablecommonv1AddressFormat"];
1705
+ };
1706
+ v1WalletParams: {
1707
+ /** @description Human-readable name for a Wallet. */
1708
+ walletName: string;
1709
+ /** @description A list of wallet Accounts. */
1710
+ accounts: definitions["v1WalletAccountParams"][];
1711
+ };
1712
+ v1WalletResult: {
1713
+ walletId: string;
1714
+ /** @description A list of account addresses. */
1715
+ addresses: string[];
1424
1716
  };
1425
1717
  v1WebAuthnStamp: {
1426
1718
  /** @description A base64 url encoded Unique identifier for a given credential. */
@@ -1848,6 +2140,42 @@ export type operations = {
1848
2140
  };
1849
2141
  };
1850
2142
  };
2143
+ /** Create a Wallet and derive addresses */
2144
+ PublicApiService_CreateWallet: {
2145
+ parameters: {
2146
+ body: {
2147
+ body: definitions["v1CreateWalletRequest"];
2148
+ };
2149
+ };
2150
+ responses: {
2151
+ /** A successful response. */
2152
+ 200: {
2153
+ schema: definitions["v1ActivityResponse"];
2154
+ };
2155
+ /** An unexpected error response. */
2156
+ default: {
2157
+ schema: definitions["rpcStatus"];
2158
+ };
2159
+ };
2160
+ };
2161
+ /** Derive additional addresses using an existing wallet */
2162
+ PublicApiService_CreateWalletAccounts: {
2163
+ parameters: {
2164
+ body: {
2165
+ body: definitions["v1CreateWalletAccountsRequest"];
2166
+ };
2167
+ };
2168
+ responses: {
2169
+ /** A successful response. */
2170
+ 200: {
2171
+ schema: definitions["v1ActivityResponse"];
2172
+ };
2173
+ /** An unexpected error response. */
2174
+ default: {
2175
+ schema: definitions["rpcStatus"];
2176
+ };
2177
+ };
2178
+ };
1851
2179
  /** Remove api keys from a User */
1852
2180
  PublicApiService_DeleteApiKeys: {
1853
2181
  parameters: {
@@ -1920,6 +2248,78 @@ export type operations = {
1920
2248
  };
1921
2249
  };
1922
2250
  };
2251
+ /** Exports a Private Key */
2252
+ PublicApiService_ExportPrivateKey: {
2253
+ parameters: {
2254
+ body: {
2255
+ body: definitions["v1ExportPrivateKeyRequest"];
2256
+ };
2257
+ };
2258
+ responses: {
2259
+ /** A successful response. */
2260
+ 200: {
2261
+ schema: definitions["v1ActivityResponse"];
2262
+ };
2263
+ /** An unexpected error response. */
2264
+ default: {
2265
+ schema: definitions["rpcStatus"];
2266
+ };
2267
+ };
2268
+ };
2269
+ /** Exports a Wallet */
2270
+ PublicApiService_ExportWallet: {
2271
+ parameters: {
2272
+ body: {
2273
+ body: definitions["v1ExportWalletRequest"];
2274
+ };
2275
+ };
2276
+ responses: {
2277
+ /** A successful response. */
2278
+ 200: {
2279
+ schema: definitions["v1ActivityResponse"];
2280
+ };
2281
+ /** An unexpected error response. */
2282
+ default: {
2283
+ schema: definitions["rpcStatus"];
2284
+ };
2285
+ };
2286
+ };
2287
+ /** Initializes a new email recovery */
2288
+ PublicApiService_InitUserEmailRecovery: {
2289
+ parameters: {
2290
+ body: {
2291
+ body: definitions["v1InitUserEmailRecoveryRequest"];
2292
+ };
2293
+ };
2294
+ responses: {
2295
+ /** A successful response. */
2296
+ 200: {
2297
+ schema: definitions["v1ActivityResponse"];
2298
+ };
2299
+ /** An unexpected error response. */
2300
+ default: {
2301
+ schema: definitions["rpcStatus"];
2302
+ };
2303
+ };
2304
+ };
2305
+ /** Completes the process of recovering a user by adding an authenticator */
2306
+ PublicApiService_RecoverUser: {
2307
+ parameters: {
2308
+ body: {
2309
+ body: definitions["v1RecoverUserRequest"];
2310
+ };
2311
+ };
2312
+ responses: {
2313
+ /** A successful response. */
2314
+ 200: {
2315
+ schema: definitions["v1ActivityResponse"];
2316
+ };
2317
+ /** An unexpected error response. */
2318
+ default: {
2319
+ schema: definitions["rpcStatus"];
2320
+ };
2321
+ };
2322
+ };
1923
2323
  /** Reject an Activity */
1924
2324
  PublicApiService_RejectActivity: {
1925
2325
  parameters: {
@@ -1938,7 +2338,43 @@ export type operations = {
1938
2338
  };
1939
2339
  };
1940
2340
  };
1941
- /** Sign a raw payload with a Private Key */
2341
+ /** Removes an organization feature */
2342
+ PublicApiService_RemoveOrganizationFeature: {
2343
+ parameters: {
2344
+ body: {
2345
+ body: definitions["v1RemoveOrganizationFeatureRequest"];
2346
+ };
2347
+ };
2348
+ responses: {
2349
+ /** A successful response. */
2350
+ 200: {
2351
+ schema: definitions["v1ActivityResponse"];
2352
+ };
2353
+ /** An unexpected error response. */
2354
+ default: {
2355
+ schema: definitions["rpcStatus"];
2356
+ };
2357
+ };
2358
+ };
2359
+ /** Sets an organization feature */
2360
+ PublicApiService_SetOrganizationFeature: {
2361
+ parameters: {
2362
+ body: {
2363
+ body: definitions["v1SetOrganizationFeatureRequest"];
2364
+ };
2365
+ };
2366
+ responses: {
2367
+ /** A successful response. */
2368
+ 200: {
2369
+ schema: definitions["v1ActivityResponse"];
2370
+ };
2371
+ /** An unexpected error response. */
2372
+ default: {
2373
+ schema: definitions["rpcStatus"];
2374
+ };
2375
+ };
2376
+ };
2377
+ /** Sign a raw payload */
1942
2378
  PublicApiService_SignRawPayload: {
1943
2379
  parameters: {
1944
2380
  body: {
@@ -1956,7 +2392,7 @@ export type operations = {
1956
2392
  };
1957
2393
  };
1958
2394
  };
1959
- /** Sign a transaction with a Private Key */
2395
+ /** Sign a transaction */
1960
2396
  PublicApiService_SignTransaction: {
1961
2397
  parameters: {
1962
2398
  body: {