@turnkey/http 2.1.0 → 2.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +30 -15
  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 +50 -25
  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 +1724 -1618
  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 +50 -26
  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 +227 -269
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +111 -110
  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 +1237 -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 +1074 -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 +5975 -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 +13 -3
@@ -43,10 +43,18 @@ export type paths = {
43
43
  /** List all Policies within an Organization */
44
44
  post: operations["PublicApiService_GetPolicies"];
45
45
  };
46
+ "/public/v1/query/list_private_key_tags": {
47
+ /** List all Private Key Tags within an Organization */
48
+ post: operations["PublicApiService_ListPrivateKeyTags"];
49
+ };
46
50
  "/public/v1/query/list_private_keys": {
47
51
  /** List all Private Keys within an Organization */
48
52
  post: operations["PublicApiService_GetPrivateKeys"];
49
53
  };
54
+ "/public/v1/query/list_user_tags": {
55
+ /** List all User Tags within an Organization */
56
+ post: operations["PublicApiService_ListUserTags"];
57
+ };
50
58
  "/public/v1/query/list_users": {
51
59
  /** List all Users within an Organization */
52
60
  post: operations["PublicApiService_GetUsers"];
@@ -167,10 +175,6 @@ export type paths = {
167
175
  /** Sign a transaction */
168
176
  post: operations["PublicApiService_SignTransaction"];
169
177
  };
170
- "/public/v1/submit/update_allowed_origins": {
171
- /** Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations. */
172
- post: operations["PublicApiService_UpdateAllowedOrigins"];
173
- };
174
178
  "/public/v1/submit/update_policy": {
175
179
  /** Update an existing Policy */
176
180
  post: operations["PublicApiService_UpdatePolicy"];
@@ -205,29 +209,15 @@ export type definitions = {
205
209
  createdAt: definitions["externaldatav1Timestamp"];
206
210
  updatedAt: definitions["externaldatav1Timestamp"];
207
211
  };
208
- /** @enum {string} */
209
- externaldatav1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
210
212
  externaldatav1Address: {
211
- format?: definitions["externaldatav1AddressFormat"];
213
+ format?: definitions["v1AddressFormat"];
212
214
  address?: string;
213
215
  };
214
- /** @enum {string} */
215
- externaldatav1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM";
216
- /** @enum {string} */
217
- externaldatav1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
218
216
  externaldatav1Credential: {
219
217
  /** @description The public component of a cryptographic key pair used to sign messages and transactions. */
220
218
  publicKey: string;
221
- type: definitions["externaldatav1CredentialType"];
219
+ type: definitions["v1CredentialType"];
222
220
  };
223
- /** @enum {string} */
224
- externaldatav1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
225
- /** @enum {string} */
226
- externaldatav1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
227
- /** @enum {string} */
228
- externaldatav1Effect: "EFFECT_ALLOW" | "EFFECT_DENY";
229
- /** @enum {string} */
230
- 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";
231
221
  externaldatav1Quorum: {
232
222
  /**
233
223
  * Format: int32
@@ -237,43 +227,14 @@ export type definitions = {
237
227
  /** @description Unique identifiers of quorum set members. */
238
228
  userIds: string[];
239
229
  };
240
- externaldatav1Selector: {
241
- /** @description The resource being referenced within a policy (e.g., user.tags or activities.type). */
242
- subject: string;
243
- /** @description Logical operators like OPERATOR_CONTAINS or OPERATOR_EQUAL. */
244
- operator: definitions["externaldatav1Operator"];
245
- /** @description The specific parameter from the subject being referenced, like a specific user ID. */
246
- targets: string[];
247
- };
248
230
  externaldatav1Timestamp: {
249
231
  seconds: string;
250
232
  nanos: string;
251
233
  };
252
- /** @enum {string} */
253
- immutableactivityv1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
254
234
  immutableactivityv1Address: {
255
- format?: definitions["immutablecommonv1AddressFormat"];
235
+ format?: definitions["v1AddressFormat"];
256
236
  address?: string;
257
237
  };
258
- /** @enum {string} */
259
- immutableactivityv1Effect: "EFFECT_ALLOW" | "EFFECT_DENY";
260
- /** @enum {string} */
261
- immutableactivityv1HashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
262
- /** @enum {string} */
263
- 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";
264
- /** @enum {string} */
265
- immutableactivityv1PayloadEncoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
266
- immutableactivityv1Selector: {
267
- subject?: string;
268
- operator?: definitions["immutableactivityv1Operator"];
269
- target?: string;
270
- };
271
- /** @enum {string} */
272
- immutablecommonv1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
273
- /** @enum {string} */
274
- immutablecommonv1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
275
- /** @enum {string} */
276
- immutablewebauthnv1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
277
238
  protobufAny: {
278
239
  "@type"?: string;
279
240
  } & {
@@ -307,6 +268,8 @@ export type definitions = {
307
268
  /** @description Unique identifier for a given User. */
308
269
  userId: string;
309
270
  };
271
+ /** @enum {string} */
272
+ v1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
310
273
  v1ActivateBillingTierIntent: {
311
274
  /** @description The product that the customer wants to subscribe to. */
312
275
  productId: string;
@@ -345,6 +308,8 @@ export type definitions = {
345
308
  v1ActivityStatus: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
346
309
  /** @enum {string} */
347
310
  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";
311
+ /** @enum {string} */
312
+ v1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS";
348
313
  v1ApiKey: {
349
314
  /** @description A User credential that can be used to authenticate to Turnkey. */
350
315
  credential: definitions["externaldatav1Credential"];
@@ -392,11 +357,11 @@ export type definitions = {
392
357
  /** @description A base64 url encoded payload containing authenticator data and any attestation the webauthn provider chooses. */
393
358
  attestationObject: string;
394
359
  /** @description The type of authenticator transports. */
395
- transports: definitions["immutablewebauthnv1AuthenticatorTransport"][];
360
+ transports: definitions["v1AuthenticatorTransport"][];
396
361
  };
397
362
  v1Authenticator: {
398
363
  /** @description Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). */
399
- transports: definitions["externaldatav1AuthenticatorTransport"][];
364
+ transports: definitions["v1AuthenticatorTransport"][];
400
365
  attestationType: string;
401
366
  /** @description Identifier indicating the type of the Security Key. */
402
367
  aaguid: string;
@@ -416,7 +381,7 @@ export type definitions = {
416
381
  v1AuthenticatorAttestationResponse: {
417
382
  clientDataJson: string;
418
383
  attestationObject: string;
419
- transports?: definitions["immutablewebauthnv1AuthenticatorTransport"][];
384
+ transports?: definitions["v1AuthenticatorTransport"][];
420
385
  /** @enum {string} */
421
386
  authenticatorAttachment?: "cross-platform" | "platform" | null;
422
387
  };
@@ -437,6 +402,8 @@ export type definitions = {
437
402
  /** @description The attestation that proves custody of the authenticator and provides metadata about it. */
438
403
  attestation: definitions["v1Attestation"];
439
404
  };
405
+ /** @enum {string} */
406
+ v1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
440
407
  v1CreateApiKeysIntent: {
441
408
  /** @description A list of API Keys. */
442
409
  apiKeys: definitions["v1ApiKeyParams"][];
@@ -543,9 +510,9 @@ export type definitions = {
543
510
  /** @description Human-readable name for a Policy. */
544
511
  policyName: string;
545
512
  /** @description A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
546
- selectors: definitions["immutableactivityv1Selector"][];
513
+ selectors: definitions["v1Selector"][];
547
514
  /** @description The instruction to DENY or ALLOW a particular activity following policy selector(s). */
548
- effect: definitions["immutableactivityv1Effect"];
515
+ effect: definitions["v1Effect"];
549
516
  notes?: string;
550
517
  };
551
518
  v1CreatePolicyIntentV2: {
@@ -554,14 +521,14 @@ export type definitions = {
554
521
  /** @description A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
555
522
  selectors: definitions["v1SelectorV2"][];
556
523
  /** @description Whether to ALLOW or DENY requests that match the condition and consensus requirements. */
557
- effect: definitions["immutableactivityv1Effect"];
524
+ effect: definitions["v1Effect"];
558
525
  notes?: string;
559
526
  };
560
527
  v1CreatePolicyIntentV3: {
561
528
  /** @description Human-readable name for a Policy. */
562
529
  policyName: string;
563
530
  /** @description The instruction to DENY or ALLOW an activity. */
564
- effect: definitions["immutableactivityv1Effect"];
531
+ effect: definitions["v1Effect"];
565
532
  /** @description The condition expression that triggers the Effect */
566
533
  condition?: string;
567
534
  /** @description The consensus expression that triggers the Effect */
@@ -778,6 +745,10 @@ export type definitions = {
778
745
  v1CredPropsAuthenticationExtensionsClientOutputs: {
779
746
  rk: boolean;
780
747
  };
748
+ /** @enum {string} */
749
+ v1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
750
+ /** @enum {string} */
751
+ v1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
781
752
  v1DeleteApiKeysIntent: {
782
753
  /** @description Unique identifier for a given User. */
783
754
  userId: string;
@@ -902,6 +873,8 @@ export type definitions = {
902
873
  /** @description Unique identifier for a given Private Key. */
903
874
  privateKeyId: string;
904
875
  };
876
+ /** @enum {string} */
877
+ v1Effect: "EFFECT_ALLOW" | "EFFECT_DENY";
905
878
  v1ExportPrivateKeyIntent: {
906
879
  /** @description Unique identifier for a given Private Key. */
907
880
  privateKeyId: string;
@@ -951,7 +924,7 @@ export type definitions = {
951
924
  value?: string;
952
925
  };
953
926
  /** @enum {string} */
954
- v1FeatureName: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY";
927
+ v1FeatureName: "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS";
955
928
  v1GetActivitiesRequest: {
956
929
  /** @description Unique identifier for a given Organization. */
957
930
  organizationId: string;
@@ -1096,6 +1069,8 @@ export type definitions = {
1096
1069
  /** @description Human-readable name for a User. */
1097
1070
  username: string;
1098
1071
  };
1072
+ /** @enum {string} */
1073
+ v1HashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
1099
1074
  v1InitUserEmailRecoveryIntent: {
1100
1075
  /** @description Email of the user starting recovery */
1101
1076
  email: string;
@@ -1182,7 +1157,7 @@ export type definitions = {
1182
1157
  /** @description A list of tags assigned to the Invitation recipient. */
1183
1158
  receiverUserTags: string[];
1184
1159
  /** @description The User's permissible access method(s). */
1185
- accessType: definitions["externaldatav1AccessType"];
1160
+ accessType: definitions["v1AccessType"];
1186
1161
  /** @description The current processing status of a specified Invitation. */
1187
1162
  status: definitions["v1InvitationStatus"];
1188
1163
  createdAt: definitions["externaldatav1Timestamp"];
@@ -1198,17 +1173,35 @@ export type definitions = {
1198
1173
  /** @description A list of tags assigned to the Invitation recipient. */
1199
1174
  receiverUserTags: string[];
1200
1175
  /** @description The User's permissible access method(s). */
1201
- accessType: definitions["immutableactivityv1AccessType"];
1176
+ accessType: definitions["v1AccessType"];
1202
1177
  /** @description Unique identifier for the Sender of an Invitation. */
1203
1178
  senderUserId: string;
1204
1179
  };
1205
1180
  /** @enum {string} */
1206
1181
  v1InvitationStatus: "INVITATION_STATUS_CREATED" | "INVITATION_STATUS_ACCEPTED" | "INVITATION_STATUS_REVOKED";
1182
+ v1ListPrivateKeyTagsRequest: {
1183
+ /** @description Unique identifier for a given Organization. */
1184
+ organizationId: string;
1185
+ };
1186
+ v1ListPrivateKeyTagsResponse: {
1187
+ /** @description A list of Private Key Tags */
1188
+ privateKeyTags: definitions["datav1Tag"][];
1189
+ };
1190
+ v1ListUserTagsRequest: {
1191
+ /** @description Unique identifier for a given Organization. */
1192
+ organizationId: string;
1193
+ };
1194
+ v1ListUserTagsResponse: {
1195
+ /** @description A list of User Tags */
1196
+ userTags: definitions["datav1Tag"][];
1197
+ };
1207
1198
  /** @enum {string} */
1208
1199
  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";
1209
1200
  v1NOOPCodegenAnchorResponse: {
1210
1201
  stamp: definitions["v1WebAuthnStamp"];
1211
1202
  };
1203
+ /** @enum {string} */
1204
+ 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";
1212
1205
  v1OrganizationData: {
1213
1206
  organizationId?: string;
1214
1207
  name?: string;
@@ -1217,9 +1210,7 @@ export type definitions = {
1217
1210
  privateKeys?: definitions["v1PrivateKey"][];
1218
1211
  invitations?: definitions["v1Invitation"][];
1219
1212
  tags?: definitions["datav1Tag"][];
1220
- disabledPrivateKeys?: definitions["v1PrivateKey"][];
1221
1213
  rootQuorum?: definitions["externaldatav1Quorum"];
1222
- allowedOrigins?: string[];
1223
1214
  features?: definitions["v1Feature"][];
1224
1215
  wallets?: definitions["v1Wallet"][];
1225
1216
  };
@@ -1233,15 +1224,15 @@ export type definitions = {
1233
1224
  };
1234
1225
  /** @enum {string} */
1235
1226
  v1PathFormat: "PATH_FORMAT_BIP32";
1227
+ /** @enum {string} */
1228
+ v1PayloadEncoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
1236
1229
  v1Policy: {
1237
1230
  /** @description Unique identifier for a given Policy. */
1238
1231
  policyId: string;
1239
1232
  /** @description Human-readable name for a Policy. */
1240
1233
  policyName: string;
1241
1234
  /** @description The instruction to DENY or ALLOW a particular activity following policy selector(s). */
1242
- effect: definitions["externaldatav1Effect"];
1243
- /** @description A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. */
1244
- selectors: definitions["externaldatav1Selector"][];
1235
+ effect: definitions["v1Effect"];
1245
1236
  createdAt: definitions["externaldatav1Timestamp"];
1246
1237
  updatedAt: definitions["externaldatav1Timestamp"];
1247
1238
  /** @description Human-readable notes added by a User to describe a particular policy. */
@@ -1259,7 +1250,7 @@ export type definitions = {
1259
1250
  /** @description Human-readable name for a Private Key. */
1260
1251
  privateKeyName: string;
1261
1252
  /** @description Cryptographic Curve used to generate a given Private Key. */
1262
- curve: definitions["externaldatav1Curve"];
1253
+ curve: definitions["v1Curve"];
1263
1254
  /** @description Derived cryptocurrency addresses for a given Private Key. */
1264
1255
  addresses: definitions["externaldatav1Address"][];
1265
1256
  /** @description A list of Private Key Tag IDs. */
@@ -1273,11 +1264,11 @@ export type definitions = {
1273
1264
  /** @description Human-readable name for a Private Key. */
1274
1265
  privateKeyName: string;
1275
1266
  /** @description Cryptographic Curve used to generate a given Private Key. */
1276
- curve: definitions["immutablecommonv1Curve"];
1267
+ curve: definitions["v1Curve"];
1277
1268
  /** @description A list of Private Key Tag IDs. */
1278
1269
  privateKeyTags: string[];
1279
1270
  /** @description Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
1280
- addressFormats: definitions["immutablecommonv1AddressFormat"][];
1271
+ addressFormats: definitions["v1AddressFormat"][];
1281
1272
  };
1282
1273
  v1PrivateKeyResult: {
1283
1274
  privateKeyId?: string;
@@ -1397,9 +1388,14 @@ export type definitions = {
1397
1388
  /** @description A list of Authenticator parameters. */
1398
1389
  authenticators: definitions["v1AuthenticatorParamsV2"][];
1399
1390
  };
1391
+ v1Selector: {
1392
+ subject?: string;
1393
+ operator?: definitions["v1Operator"];
1394
+ target?: string;
1395
+ };
1400
1396
  v1SelectorV2: {
1401
1397
  subject?: string;
1402
- operator?: definitions["immutableactivityv1Operator"];
1398
+ operator?: definitions["v1Operator"];
1403
1399
  targets?: string[];
1404
1400
  };
1405
1401
  v1SetOrganizationFeatureIntent: {
@@ -1457,9 +1453,9 @@ export type definitions = {
1457
1453
  /** @description Raw unsigned payload to be signed. */
1458
1454
  payload: string;
1459
1455
  /** @description Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
1460
- encoding: definitions["immutableactivityv1PayloadEncoding"];
1456
+ encoding: definitions["v1PayloadEncoding"];
1461
1457
  /** @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. */
1462
- hashFunction: definitions["immutableactivityv1HashFunction"];
1458
+ hashFunction: definitions["v1HashFunction"];
1463
1459
  };
1464
1460
  v1SignRawPayloadIntentV2: {
1465
1461
  /** @description A Wallet account address, Private Key address, or Private Key identifier. */
@@ -1467,9 +1463,9 @@ export type definitions = {
1467
1463
  /** @description Raw unsigned payload to be signed. */
1468
1464
  payload: string;
1469
1465
  /** @description Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8). */
1470
- encoding: definitions["immutableactivityv1PayloadEncoding"];
1466
+ encoding: definitions["v1PayloadEncoding"];
1471
1467
  /** @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. */
1472
- hashFunction: definitions["immutableactivityv1HashFunction"];
1468
+ hashFunction: definitions["v1HashFunction"];
1473
1469
  };
1474
1470
  v1SignRawPayloadRequest: {
1475
1471
  /** @enum {string} */
@@ -1527,15 +1523,6 @@ export type definitions = {
1527
1523
  /** @description Additional origins requests are allowed from besides Turnkey origins */
1528
1524
  allowedOrigins: string[];
1529
1525
  };
1530
- v1UpdateAllowedOriginsRequest: {
1531
- /** @enum {string} */
1532
- type: "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS";
1533
- /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1534
- timestampMs: string;
1535
- /** @description Unique identifier for a given Organization. */
1536
- organizationId: string;
1537
- parameters: definitions["v1UpdateAllowedOriginsIntent"];
1538
- };
1539
1526
  v1UpdateAllowedOriginsResult: {
1540
1527
  [key: string]: unknown;
1541
1528
  };
@@ -1545,7 +1532,7 @@ export type definitions = {
1545
1532
  /** @description Human-readable name for a Policy. */
1546
1533
  policyName?: string;
1547
1534
  /** @description The instruction to DENY or ALLOW an activity (optional). */
1548
- policyEffect?: definitions["immutableactivityv1Effect"];
1535
+ policyEffect?: definitions["v1Effect"];
1549
1536
  /** @description The condition expression that triggers the Effect (optional). */
1550
1537
  policyCondition?: string;
1551
1538
  /** @description The consensus expression that triggers the Effect (optional). */
@@ -1663,8 +1650,6 @@ export type definitions = {
1663
1650
  userName: string;
1664
1651
  /** @description The user's email address. */
1665
1652
  userEmail?: string;
1666
- /** @description The User's permissible access method(s). */
1667
- accessType: definitions["externaldatav1AccessType"];
1668
1653
  /** @description A list of Authenticator parameters. */
1669
1654
  authenticators: definitions["v1Authenticator"][];
1670
1655
  /** @description A list of API Key parameters. */
@@ -1680,7 +1665,7 @@ export type definitions = {
1680
1665
  /** @description The user's email address. */
1681
1666
  userEmail?: string;
1682
1667
  /** @description The User's permissible access method(s). */
1683
- accessType: definitions["immutableactivityv1AccessType"];
1668
+ accessType: definitions["v1AccessType"];
1684
1669
  /** @description A list of API Key parameters. */
1685
1670
  apiKeys: definitions["v1ApiKeyParams"][];
1686
1671
  /** @description A list of Authenticator parameters. */
@@ -1693,8 +1678,6 @@ export type definitions = {
1693
1678
  userName: string;
1694
1679
  /** @description The user's email address. */
1695
1680
  userEmail?: string;
1696
- /** @description The User's permissible access method(s). */
1697
- accessType: definitions["immutableactivityv1AccessType"];
1698
1681
  /** @description A list of API Key parameters. */
1699
1682
  apiKeys: definitions["v1ApiKeyParams"][];
1700
1683
  /** @description A list of Authenticator parameters. */
@@ -1739,13 +1722,13 @@ export type definitions = {
1739
1722
  /** @description The Wallet the Account was derived from. */
1740
1723
  walletId: string;
1741
1724
  /** @description Cryptographic curve used to generate the Account. */
1742
- curve: definitions["immutablecommonv1Curve"];
1725
+ curve: definitions["v1Curve"];
1743
1726
  /** @description Path format used to generate the Account. */
1744
1727
  pathFormat: definitions["v1PathFormat"];
1745
1728
  /** @description Path used to generate the Account. */
1746
1729
  path: string;
1747
1730
  /** @description Address format used to generate the Acccount. */
1748
- addressFormat: definitions["immutablecommonv1AddressFormat"];
1731
+ addressFormat: definitions["v1AddressFormat"];
1749
1732
  /** @description Address generated using the Wallet seed and Account parameters. */
1750
1733
  address: string;
1751
1734
  createdAt: definitions["externaldatav1Timestamp"];
@@ -1753,13 +1736,13 @@ export type definitions = {
1753
1736
  };
1754
1737
  v1WalletAccountParams: {
1755
1738
  /** @description Cryptographic curve used to generate a wallet Account. */
1756
- curve: definitions["immutablecommonv1Curve"];
1739
+ curve: definitions["v1Curve"];
1757
1740
  /** @description Path format used to generate a wallet Account. */
1758
1741
  pathFormat: definitions["v1PathFormat"];
1759
1742
  /** @description Path used to generate a wallet Account. */
1760
1743
  path: string;
1761
1744
  /** @description Address format used to generate a wallet Acccount. */
1762
- addressFormat: definitions["immutablecommonv1AddressFormat"];
1745
+ addressFormat: definitions["v1AddressFormat"];
1763
1746
  };
1764
1747
  v1WalletParams: {
1765
1748
  /** @description Human-readable name for a Wallet. */
@@ -1964,6 +1947,24 @@ export type operations = {
1964
1947
  };
1965
1948
  };
1966
1949
  };
1950
+ /** List all Private Key Tags within an Organization */
1951
+ PublicApiService_ListPrivateKeyTags: {
1952
+ parameters: {
1953
+ body: {
1954
+ body: definitions["v1ListPrivateKeyTagsRequest"];
1955
+ };
1956
+ };
1957
+ responses: {
1958
+ /** A successful response. */
1959
+ 200: {
1960
+ schema: definitions["v1ListPrivateKeyTagsResponse"];
1961
+ };
1962
+ /** An unexpected error response. */
1963
+ default: {
1964
+ schema: definitions["rpcStatus"];
1965
+ };
1966
+ };
1967
+ };
1967
1968
  /** List all Private Keys within an Organization */
1968
1969
  PublicApiService_GetPrivateKeys: {
1969
1970
  parameters: {
@@ -1982,6 +1983,24 @@ export type operations = {
1982
1983
  };
1983
1984
  };
1984
1985
  };
1986
+ /** List all User Tags within an Organization */
1987
+ PublicApiService_ListUserTags: {
1988
+ parameters: {
1989
+ body: {
1990
+ body: definitions["v1ListUserTagsRequest"];
1991
+ };
1992
+ };
1993
+ responses: {
1994
+ /** A successful response. */
1995
+ 200: {
1996
+ schema: definitions["v1ListUserTagsResponse"];
1997
+ };
1998
+ /** An unexpected error response. */
1999
+ default: {
2000
+ schema: definitions["rpcStatus"];
2001
+ };
2002
+ };
2003
+ };
1985
2004
  /** List all Users within an Organization */
1986
2005
  PublicApiService_GetUsers: {
1987
2006
  parameters: {
@@ -2522,24 +2541,6 @@ export type operations = {
2522
2541
  };
2523
2542
  };
2524
2543
  };
2525
- /** Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations. */
2526
- PublicApiService_UpdateAllowedOrigins: {
2527
- parameters: {
2528
- body: {
2529
- body: definitions["v1UpdateAllowedOriginsRequest"];
2530
- };
2531
- };
2532
- responses: {
2533
- /** A successful response. */
2534
- 200: {
2535
- schema: definitions["v1ActivityResponse"];
2536
- };
2537
- /** An unexpected error response. */
2538
- default: {
2539
- schema: definitions["rpcStatus"];
2540
- };
2541
- };
2542
- };
2543
2544
  /** Update an existing Policy */
2544
2545
  PublicApiService_UpdatePolicy: {
2545
2546
  parameters: {