@turnkey/http 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +46 -1
  3. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +76 -1
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +722 -2061
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +76 -4
  9. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  10. package/dist/__generated__/services/coordinator/public/v1/public_api.swagger.json +343 -197
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +164 -74
  12. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  13. package/dist/esm/__generated__/barrel.js +4 -0
  14. package/dist/esm/__generated__/barrel.js.map +1 -0
  15. package/dist/esm/__generated__/services/coordinator/public/v1/public_api.client.js +1212 -0
  16. package/dist/esm/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -0
  17. package/dist/esm/__generated__/services/coordinator/public/v1/public_api.fetcher.js +1052 -0
  18. package/dist/esm/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -0
  19. package/dist/esm/__generated__/services/coordinator/public/v1/public_api.swagger.json +5941 -0
  20. package/dist/esm/__generated__/services/coordinator/public/v1/public_api.types.js +6 -0
  21. package/dist/esm/__generated__/services/coordinator/public/v1/public_api.types.js.map +1 -0
  22. package/dist/esm/async.js +158 -0
  23. package/dist/esm/async.js.map +1 -0
  24. package/dist/esm/base.js +157 -0
  25. package/dist/esm/base.js.map +1 -0
  26. package/dist/esm/config.js +41 -0
  27. package/dist/esm/config.js.map +1 -0
  28. package/dist/esm/encoding.js +15 -0
  29. package/dist/esm/encoding.js.map +1 -0
  30. package/dist/esm/index.js +15 -0
  31. package/dist/esm/index.js.map +1 -0
  32. package/dist/esm/shared.js +15 -0
  33. package/dist/esm/shared.js.map +1 -0
  34. package/dist/esm/universal.js +10 -0
  35. package/dist/esm/universal.js.map +1 -0
  36. package/dist/esm/webauthn-json/api.js +24 -0
  37. package/dist/esm/webauthn-json/api.js.map +1 -0
  38. package/dist/esm/webauthn-json/base64url.js +32 -0
  39. package/dist/esm/webauthn-json/base64url.js.map +1 -0
  40. package/dist/esm/webauthn-json/convert.js +62 -0
  41. package/dist/esm/webauthn-json/convert.js.map +1 -0
  42. package/dist/esm/webauthn-json/index.js +13 -0
  43. package/dist/esm/webauthn-json/index.js.map +1 -0
  44. package/dist/esm/webauthn-json/json.js +2 -0
  45. package/dist/esm/webauthn-json/json.js.map +1 -0
  46. package/dist/esm/webauthn-json/schema-format.js +2 -0
  47. package/dist/esm/webauthn-json/schema-format.js.map +1 -0
  48. package/dist/esm/webauthn-json/schema.js +83 -0
  49. package/dist/esm/webauthn-json/schema.js.map +1 -0
  50. package/dist/esm/webauthn.js +90 -0
  51. package/dist/esm/webauthn.js.map +1 -0
  52. package/dist/webauthn.d.ts +1 -1
  53. package/dist/webauthn.d.ts.map +1 -1
  54. package/dist/webauthn.js.map +1 -1
  55. package/package.json +12 -2
@@ -31,6 +31,10 @@ export type paths = {
31
31
  /** Get details about a User */
32
32
  post: operations["PublicApiService_GetUser"];
33
33
  };
34
+ "/public/v1/query/get_wallet": {
35
+ /** Get details about a Wallet */
36
+ post: operations["PublicApiService_GetWallet"];
37
+ };
34
38
  "/public/v1/query/list_activities": {
35
39
  /** List all Activities within an Organization */
36
40
  post: operations["PublicApiService_GetActivities"];
@@ -47,6 +51,14 @@ export type paths = {
47
51
  /** List all Users within an Organization */
48
52
  post: operations["PublicApiService_GetUsers"];
49
53
  };
54
+ "/public/v1/query/list_wallet_accounts": {
55
+ /** List all Accounts wirhin a Wallet */
56
+ post: operations["PublicApiService_GetWalletAccounts"];
57
+ };
58
+ "/public/v1/query/list_wallets": {
59
+ /** List all Wallets within an Organization */
60
+ post: operations["PublicApiService_GetWallets"];
61
+ };
50
62
  "/public/v1/query/whoami": {
51
63
  /** 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
64
  post: operations["PublicApiService_GetWhoami"];
@@ -156,7 +168,7 @@ export type paths = {
156
168
  post: operations["PublicApiService_SignTransaction"];
157
169
  };
158
170
  "/public/v1/submit/update_allowed_origins": {
159
- /** Update the allowable origins for credentials and requests */
171
+ /** Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations. */
160
172
  post: operations["PublicApiService_UpdateAllowedOrigins"];
161
173
  };
162
174
  "/public/v1/submit/update_policy": {
@@ -193,29 +205,15 @@ export type definitions = {
193
205
  createdAt: definitions["externaldatav1Timestamp"];
194
206
  updatedAt: definitions["externaldatav1Timestamp"];
195
207
  };
196
- /** @enum {string} */
197
- externaldatav1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
198
208
  externaldatav1Address: {
199
- format?: definitions["externaldatav1AddressFormat"];
209
+ format?: definitions["v1AddressFormat"];
200
210
  address?: string;
201
211
  };
202
- /** @enum {string} */
203
- externaldatav1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM";
204
- /** @enum {string} */
205
- externaldatav1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
206
212
  externaldatav1Credential: {
207
213
  /** @description The public component of a cryptographic key pair used to sign messages and transactions. */
208
214
  publicKey: string;
209
- type: definitions["externaldatav1CredentialType"];
215
+ type: definitions["v1CredentialType"];
210
216
  };
211
- /** @enum {string} */
212
- externaldatav1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
213
- /** @enum {string} */
214
- externaldatav1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
215
- /** @enum {string} */
216
- externaldatav1Effect: "EFFECT_ALLOW" | "EFFECT_DENY";
217
- /** @enum {string} */
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
217
  externaldatav1Quorum: {
220
218
  /**
221
219
  * Format: int32
@@ -225,43 +223,14 @@ export type definitions = {
225
223
  /** @description Unique identifiers of quorum set members. */
226
224
  userIds: string[];
227
225
  };
228
- externaldatav1Selector: {
229
- /** @description The resource being referenced within a policy (e.g., user.tags or activities.type). */
230
- subject: string;
231
- /** @description Logical operators like OPERATOR_CONTAINS or OPERATOR_EQUAL. */
232
- operator: definitions["externaldatav1Operator"];
233
- /** @description The specific parameter from the subject being referenced, like a specific user ID. */
234
- targets: string[];
235
- };
236
226
  externaldatav1Timestamp: {
237
227
  seconds: string;
238
228
  nanos: string;
239
229
  };
240
- /** @enum {string} */
241
- immutableactivityv1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
242
230
  immutableactivityv1Address: {
243
- format?: definitions["immutablecommonv1AddressFormat"];
231
+ format?: definitions["v1AddressFormat"];
244
232
  address?: string;
245
233
  };
246
- /** @enum {string} */
247
- immutableactivityv1Effect: "EFFECT_ALLOW" | "EFFECT_DENY";
248
- /** @enum {string} */
249
- immutableactivityv1HashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
250
- /** @enum {string} */
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";
254
- immutableactivityv1Selector: {
255
- subject?: string;
256
- operator?: definitions["immutableactivityv1Operator"];
257
- target?: string;
258
- };
259
- /** @enum {string} */
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";
263
- /** @enum {string} */
264
- immutablewebauthnv1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
265
234
  protobufAny: {
266
235
  "@type"?: string;
267
236
  } & {
@@ -295,6 +264,8 @@ export type definitions = {
295
264
  /** @description Unique identifier for a given User. */
296
265
  userId: string;
297
266
  };
267
+ /** @enum {string} */
268
+ v1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
298
269
  v1ActivateBillingTierIntent: {
299
270
  /** @description The product that the customer wants to subscribe to. */
300
271
  productId: string;
@@ -333,6 +304,8 @@ export type definitions = {
333
304
  v1ActivityStatus: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
334
305
  /** @enum {string} */
335
306
  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";
307
+ /** @enum {string} */
308
+ v1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
336
309
  v1ApiKey: {
337
310
  /** @description A User credential that can be used to authenticate to Turnkey. */
338
311
  credential: definitions["externaldatav1Credential"];
@@ -380,11 +353,11 @@ export type definitions = {
380
353
  /** @description A base64 url encoded payload containing authenticator data and any attestation the webauthn provider chooses. */
381
354
  attestationObject: string;
382
355
  /** @description The type of authenticator transports. */
383
- transports: definitions["immutablewebauthnv1AuthenticatorTransport"][];
356
+ transports: definitions["v1AuthenticatorTransport"][];
384
357
  };
385
358
  v1Authenticator: {
386
359
  /** @description Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). */
387
- transports: definitions["externaldatav1AuthenticatorTransport"][];
360
+ transports: definitions["v1AuthenticatorTransport"][];
388
361
  attestationType: string;
389
362
  /** @description Identifier indicating the type of the Security Key. */
390
363
  aaguid: string;
@@ -404,7 +377,7 @@ export type definitions = {
404
377
  v1AuthenticatorAttestationResponse: {
405
378
  clientDataJson: string;
406
379
  attestationObject: string;
407
- transports?: definitions["immutablewebauthnv1AuthenticatorTransport"][];
380
+ transports?: definitions["v1AuthenticatorTransport"][];
408
381
  /** @enum {string} */
409
382
  authenticatorAttachment?: "cross-platform" | "platform" | null;
410
383
  };
@@ -425,6 +398,8 @@ export type definitions = {
425
398
  /** @description The attestation that proves custody of the authenticator and provides metadata about it. */
426
399
  attestation: definitions["v1Attestation"];
427
400
  };
401
+ /** @enum {string} */
402
+ v1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
428
403
  v1CreateApiKeysIntent: {
429
404
  /** @description A list of API Keys. */
430
405
  apiKeys: definitions["v1ApiKeyParams"][];
@@ -531,9 +506,9 @@ export type definitions = {
531
506
  /** @description Human-readable name for a Policy. */
532
507
  policyName: string;
533
508
  /** @description A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
534
- selectors: definitions["immutableactivityv1Selector"][];
509
+ selectors: definitions["v1Selector"][];
535
510
  /** @description The instruction to DENY or ALLOW a particular activity following policy selector(s). */
536
- effect: definitions["immutableactivityv1Effect"];
511
+ effect: definitions["v1Effect"];
537
512
  notes?: string;
538
513
  };
539
514
  v1CreatePolicyIntentV2: {
@@ -542,14 +517,14 @@ export type definitions = {
542
517
  /** @description A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
543
518
  selectors: definitions["v1SelectorV2"][];
544
519
  /** @description Whether to ALLOW or DENY requests that match the condition and consensus requirements. */
545
- effect: definitions["immutableactivityv1Effect"];
520
+ effect: definitions["v1Effect"];
546
521
  notes?: string;
547
522
  };
548
523
  v1CreatePolicyIntentV3: {
549
524
  /** @description Human-readable name for a Policy. */
550
525
  policyName: string;
551
526
  /** @description The instruction to DENY or ALLOW an activity. */
552
- effect: definitions["immutableactivityv1Effect"];
527
+ effect: definitions["v1Effect"];
553
528
  /** @description The condition expression that triggers the Effect */
554
529
  condition?: string;
555
530
  /** @description The consensus expression that triggers the Effect */
@@ -766,6 +741,10 @@ export type definitions = {
766
741
  v1CredPropsAuthenticationExtensionsClientOutputs: {
767
742
  rk: boolean;
768
743
  };
744
+ /** @enum {string} */
745
+ v1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
746
+ /** @enum {string} */
747
+ v1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
769
748
  v1DeleteApiKeysIntent: {
770
749
  /** @description Unique identifier for a given User. */
771
750
  userId: string;
@@ -890,6 +869,8 @@ export type definitions = {
890
869
  /** @description Unique identifier for a given Private Key. */
891
870
  privateKeyId: string;
892
871
  };
872
+ /** @enum {string} */
873
+ v1Effect: "EFFECT_ALLOW" | "EFFECT_DENY";
893
874
  v1ExportPrivateKeyIntent: {
894
875
  /** @description Unique identifier for a given Private Key. */
895
876
  privateKeyId: string;
@@ -1042,6 +1023,34 @@ export type definitions = {
1042
1023
  /** @description A list of Users. */
1043
1024
  users: definitions["v1User"][];
1044
1025
  };
1026
+ v1GetWalletAccountsRequest: {
1027
+ /** @description Unique identifier for a given Organization. */
1028
+ organizationId: string;
1029
+ /** @description Unique identifier for a given Wallet. */
1030
+ walletId: string;
1031
+ };
1032
+ v1GetWalletAccountsResponse: {
1033
+ /** @description A list of Accounts generated from a Wallet that share a common seed */
1034
+ accounts: definitions["v1WalletAccount"][];
1035
+ };
1036
+ v1GetWalletRequest: {
1037
+ /** @description Unique identifier for a given Organization. */
1038
+ organizationId: string;
1039
+ /** @description Unique identifier for a given Wallet. */
1040
+ walletId: string;
1041
+ };
1042
+ v1GetWalletResponse: {
1043
+ /** @description A collection of deterministically generated cryptographic public / private key pairs that share a common seed */
1044
+ wallet: definitions["v1Wallet"];
1045
+ };
1046
+ v1GetWalletsRequest: {
1047
+ /** @description Unique identifier for a given Organization. */
1048
+ organizationId: string;
1049
+ };
1050
+ v1GetWalletsResponse: {
1051
+ /** @description A list of Wallets. */
1052
+ wallets: definitions["v1Wallet"][];
1053
+ };
1045
1054
  v1GetWhoamiRequest: {
1046
1055
  /** @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. */
1047
1056
  organizationId: string;
@@ -1056,6 +1065,8 @@ export type definitions = {
1056
1065
  /** @description Human-readable name for a User. */
1057
1066
  username: string;
1058
1067
  };
1068
+ /** @enum {string} */
1069
+ v1HashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
1059
1070
  v1InitUserEmailRecoveryIntent: {
1060
1071
  /** @description Email of the user starting recovery */
1061
1072
  email: string;
@@ -1142,7 +1153,7 @@ export type definitions = {
1142
1153
  /** @description A list of tags assigned to the Invitation recipient. */
1143
1154
  receiverUserTags: string[];
1144
1155
  /** @description The User's permissible access method(s). */
1145
- accessType: definitions["externaldatav1AccessType"];
1156
+ accessType: definitions["v1AccessType"];
1146
1157
  /** @description The current processing status of a specified Invitation. */
1147
1158
  status: definitions["v1InvitationStatus"];
1148
1159
  createdAt: definitions["externaldatav1Timestamp"];
@@ -1158,7 +1169,7 @@ export type definitions = {
1158
1169
  /** @description A list of tags assigned to the Invitation recipient. */
1159
1170
  receiverUserTags: string[];
1160
1171
  /** @description The User's permissible access method(s). */
1161
- accessType: definitions["immutableactivityv1AccessType"];
1172
+ accessType: definitions["v1AccessType"];
1162
1173
  /** @description Unique identifier for the Sender of an Invitation. */
1163
1174
  senderUserId: string;
1164
1175
  };
@@ -1169,6 +1180,8 @@ export type definitions = {
1169
1180
  v1NOOPCodegenAnchorResponse: {
1170
1181
  stamp: definitions["v1WebAuthnStamp"];
1171
1182
  };
1183
+ /** @enum {string} */
1184
+ 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";
1172
1185
  v1OrganizationData: {
1173
1186
  organizationId?: string;
1174
1187
  name?: string;
@@ -1193,15 +1206,15 @@ export type definitions = {
1193
1206
  };
1194
1207
  /** @enum {string} */
1195
1208
  v1PathFormat: "PATH_FORMAT_BIP32";
1209
+ /** @enum {string} */
1210
+ v1PayloadEncoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
1196
1211
  v1Policy: {
1197
1212
  /** @description Unique identifier for a given Policy. */
1198
1213
  policyId: string;
1199
1214
  /** @description Human-readable name for a Policy. */
1200
1215
  policyName: string;
1201
1216
  /** @description The instruction to DENY or ALLOW a particular activity following policy selector(s). */
1202
- effect: definitions["externaldatav1Effect"];
1203
- /** @description A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
1204
- selectors: definitions["externaldatav1Selector"][];
1217
+ effect: definitions["v1Effect"];
1205
1218
  createdAt: definitions["externaldatav1Timestamp"];
1206
1219
  updatedAt: definitions["externaldatav1Timestamp"];
1207
1220
  /** @description Human-readable notes added by a User to describe a particular policy. */
@@ -1219,7 +1232,7 @@ export type definitions = {
1219
1232
  /** @description Human-readable name for a Private Key. */
1220
1233
  privateKeyName: string;
1221
1234
  /** @description Cryptographic Curve used to generate a given Private Key. */
1222
- curve: definitions["externaldatav1Curve"];
1235
+ curve: definitions["v1Curve"];
1223
1236
  /** @description Derived cryptocurrency addresses for a given Private Key. */
1224
1237
  addresses: definitions["externaldatav1Address"][];
1225
1238
  /** @description A list of Private Key Tag IDs. */
@@ -1233,11 +1246,11 @@ export type definitions = {
1233
1246
  /** @description Human-readable name for a Private Key. */
1234
1247
  privateKeyName: string;
1235
1248
  /** @description Cryptographic Curve used to generate a given Private Key. */
1236
- curve: definitions["immutablecommonv1Curve"];
1249
+ curve: definitions["v1Curve"];
1237
1250
  /** @description A list of Private Key Tag IDs. */
1238
1251
  privateKeyTags: string[];
1239
1252
  /** @description Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
1240
- addressFormats: definitions["immutablecommonv1AddressFormat"][];
1253
+ addressFormats: definitions["v1AddressFormat"][];
1241
1254
  };
1242
1255
  v1PrivateKeyResult: {
1243
1256
  privateKeyId?: string;
@@ -1357,9 +1370,14 @@ export type definitions = {
1357
1370
  /** @description A list of Authenticator parameters. */
1358
1371
  authenticators: definitions["v1AuthenticatorParamsV2"][];
1359
1372
  };
1373
+ v1Selector: {
1374
+ subject?: string;
1375
+ operator?: definitions["v1Operator"];
1376
+ target?: string;
1377
+ };
1360
1378
  v1SelectorV2: {
1361
1379
  subject?: string;
1362
- operator?: definitions["immutableactivityv1Operator"];
1380
+ operator?: definitions["v1Operator"];
1363
1381
  targets?: string[];
1364
1382
  };
1365
1383
  v1SetOrganizationFeatureIntent: {
@@ -1417,9 +1435,9 @@ export type definitions = {
1417
1435
  /** @description Raw unsigned payload to be signed. */
1418
1436
  payload: string;
1419
1437
  /** @description Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
1420
- encoding: definitions["immutableactivityv1PayloadEncoding"];
1438
+ encoding: definitions["v1PayloadEncoding"];
1421
1439
  /** @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"];
1440
+ hashFunction: definitions["v1HashFunction"];
1423
1441
  };
1424
1442
  v1SignRawPayloadIntentV2: {
1425
1443
  /** @description A Wallet account address, Private Key address, or Private Key identifier. */
@@ -1427,9 +1445,9 @@ export type definitions = {
1427
1445
  /** @description Raw unsigned payload to be signed. */
1428
1446
  payload: string;
1429
1447
  /** @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"];
1448
+ encoding: definitions["v1PayloadEncoding"];
1431
1449
  /** @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. */
1432
- hashFunction: definitions["immutableactivityv1HashFunction"];
1450
+ hashFunction: definitions["v1HashFunction"];
1433
1451
  };
1434
1452
  v1SignRawPayloadRequest: {
1435
1453
  /** @enum {string} */
@@ -1505,7 +1523,7 @@ export type definitions = {
1505
1523
  /** @description Human-readable name for a Policy. */
1506
1524
  policyName?: string;
1507
1525
  /** @description The instruction to DENY or ALLOW an activity (optional). */
1508
- policyEffect?: definitions["immutableactivityv1Effect"];
1526
+ policyEffect?: definitions["v1Effect"];
1509
1527
  /** @description The condition expression that triggers the Effect (optional). */
1510
1528
  policyCondition?: string;
1511
1529
  /** @description The consensus expression that triggers the Effect (optional). */
@@ -1624,7 +1642,7 @@ export type definitions = {
1624
1642
  /** @description The user's email address. */
1625
1643
  userEmail?: string;
1626
1644
  /** @description The User's permissible access method(s). */
1627
- accessType: definitions["externaldatav1AccessType"];
1645
+ accessType: definitions["v1AccessType"];
1628
1646
  /** @description A list of Authenticator parameters. */
1629
1647
  authenticators: definitions["v1Authenticator"][];
1630
1648
  /** @description A list of API Key parameters. */
@@ -1640,7 +1658,7 @@ export type definitions = {
1640
1658
  /** @description The user's email address. */
1641
1659
  userEmail?: string;
1642
1660
  /** @description The User's permissible access method(s). */
1643
- accessType: definitions["immutableactivityv1AccessType"];
1661
+ accessType: definitions["v1AccessType"];
1644
1662
  /** @description A list of API Key parameters. */
1645
1663
  apiKeys: definitions["v1ApiKeyParams"][];
1646
1664
  /** @description A list of Authenticator parameters. */
@@ -1654,7 +1672,7 @@ export type definitions = {
1654
1672
  /** @description The user's email address. */
1655
1673
  userEmail?: string;
1656
1674
  /** @description The User's permissible access method(s). */
1657
- accessType: definitions["immutableactivityv1AccessType"];
1675
+ accessType: definitions["v1AccessType"];
1658
1676
  /** @description A list of API Key parameters. */
1659
1677
  apiKeys: definitions["v1ApiKeyParams"][];
1660
1678
  /** @description A list of Authenticator parameters. */
@@ -1693,15 +1711,33 @@ export type definitions = {
1693
1711
  /** @description True when a given Wallet is exported, false otherwise. */
1694
1712
  exported: boolean;
1695
1713
  };
1714
+ v1WalletAccount: {
1715
+ /** @description The Organization the Account belongs to. */
1716
+ organizationId: string;
1717
+ /** @description The Wallet the Account was derived from. */
1718
+ walletId: string;
1719
+ /** @description Cryptographic curve used to generate the Account. */
1720
+ curve: definitions["v1Curve"];
1721
+ /** @description Path format used to generate the Account. */
1722
+ pathFormat: definitions["v1PathFormat"];
1723
+ /** @description Path used to generate the Account. */
1724
+ path: string;
1725
+ /** @description Address format used to generate the Acccount. */
1726
+ addressFormat: definitions["v1AddressFormat"];
1727
+ /** @description Address generated using the Wallet seed and Account parameters. */
1728
+ address: string;
1729
+ createdAt: definitions["externaldatav1Timestamp"];
1730
+ updatedAt: definitions["externaldatav1Timestamp"];
1731
+ };
1696
1732
  v1WalletAccountParams: {
1697
1733
  /** @description Cryptographic curve used to generate a wallet Account. */
1698
- curve: definitions["immutablecommonv1Curve"];
1734
+ curve: definitions["v1Curve"];
1699
1735
  /** @description Path format used to generate a wallet Account. */
1700
1736
  pathFormat: definitions["v1PathFormat"];
1701
1737
  /** @description Path used to generate a wallet Account. */
1702
1738
  path: string;
1703
1739
  /** @description Address format used to generate a wallet Acccount. */
1704
- addressFormat: definitions["immutablecommonv1AddressFormat"];
1740
+ addressFormat: definitions["v1AddressFormat"];
1705
1741
  };
1706
1742
  v1WalletParams: {
1707
1743
  /** @description Human-readable name for a Wallet. */
@@ -1852,6 +1888,24 @@ export type operations = {
1852
1888
  };
1853
1889
  };
1854
1890
  };
1891
+ /** Get details about a Wallet */
1892
+ PublicApiService_GetWallet: {
1893
+ parameters: {
1894
+ body: {
1895
+ body: definitions["v1GetWalletRequest"];
1896
+ };
1897
+ };
1898
+ responses: {
1899
+ /** A successful response. */
1900
+ 200: {
1901
+ schema: definitions["v1GetWalletResponse"];
1902
+ };
1903
+ /** An unexpected error response. */
1904
+ default: {
1905
+ schema: definitions["rpcStatus"];
1906
+ };
1907
+ };
1908
+ };
1855
1909
  /** List all Activities within an Organization */
1856
1910
  PublicApiService_GetActivities: {
1857
1911
  parameters: {
@@ -1924,6 +1978,42 @@ export type operations = {
1924
1978
  };
1925
1979
  };
1926
1980
  };
1981
+ /** List all Accounts wirhin a Wallet */
1982
+ PublicApiService_GetWalletAccounts: {
1983
+ parameters: {
1984
+ body: {
1985
+ body: definitions["v1GetWalletAccountsRequest"];
1986
+ };
1987
+ };
1988
+ responses: {
1989
+ /** A successful response. */
1990
+ 200: {
1991
+ schema: definitions["v1GetWalletAccountsResponse"];
1992
+ };
1993
+ /** An unexpected error response. */
1994
+ default: {
1995
+ schema: definitions["rpcStatus"];
1996
+ };
1997
+ };
1998
+ };
1999
+ /** List all Wallets within an Organization */
2000
+ PublicApiService_GetWallets: {
2001
+ parameters: {
2002
+ body: {
2003
+ body: definitions["v1GetWalletsRequest"];
2004
+ };
2005
+ };
2006
+ responses: {
2007
+ /** A successful response. */
2008
+ 200: {
2009
+ schema: definitions["v1GetWalletsResponse"];
2010
+ };
2011
+ /** An unexpected error response. */
2012
+ default: {
2013
+ schema: definitions["rpcStatus"];
2014
+ };
2015
+ };
2016
+ };
1927
2017
  /** Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN users. */
1928
2018
  PublicApiService_GetWhoami: {
1929
2019
  parameters: {
@@ -2410,7 +2500,7 @@ export type operations = {
2410
2500
  };
2411
2501
  };
2412
2502
  };
2413
- /** Update the allowable origins for credentials and requests */
2503
+ /** Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations. */
2414
2504
  PublicApiService_UpdateAllowedOrigins: {
2415
2505
  parameters: {
2416
2506
  body: {