@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
@@ -388,6 +388,38 @@
388
388
  "tags": ["Policies"]
389
389
  }
390
390
  },
391
+ "/public/v1/query/list_private_key_tags": {
392
+ "post": {
393
+ "summary": "List Private Key Tags",
394
+ "description": "List all Private Key Tags within an Organization",
395
+ "operationId": "PublicApiService_ListPrivateKeyTags",
396
+ "responses": {
397
+ "200": {
398
+ "description": "A successful response.",
399
+ "schema": {
400
+ "$ref": "#/definitions/v1ListPrivateKeyTagsResponse"
401
+ }
402
+ },
403
+ "default": {
404
+ "description": "An unexpected error response.",
405
+ "schema": {
406
+ "$ref": "#/definitions/rpcStatus"
407
+ }
408
+ }
409
+ },
410
+ "parameters": [
411
+ {
412
+ "name": "body",
413
+ "in": "body",
414
+ "required": true,
415
+ "schema": {
416
+ "$ref": "#/definitions/v1ListPrivateKeyTagsRequest"
417
+ }
418
+ }
419
+ ],
420
+ "tags": ["Private Key Tags"]
421
+ }
422
+ },
391
423
  "/public/v1/query/list_private_keys": {
392
424
  "post": {
393
425
  "summary": "List Private Keys",
@@ -420,6 +452,38 @@
420
452
  "tags": ["Private Keys"]
421
453
  }
422
454
  },
455
+ "/public/v1/query/list_user_tags": {
456
+ "post": {
457
+ "summary": "List User Tags",
458
+ "description": "List all User Tags within an Organization",
459
+ "operationId": "PublicApiService_ListUserTags",
460
+ "responses": {
461
+ "200": {
462
+ "description": "A successful response.",
463
+ "schema": {
464
+ "$ref": "#/definitions/v1ListUserTagsResponse"
465
+ }
466
+ },
467
+ "default": {
468
+ "description": "An unexpected error response.",
469
+ "schema": {
470
+ "$ref": "#/definitions/rpcStatus"
471
+ }
472
+ }
473
+ },
474
+ "parameters": [
475
+ {
476
+ "name": "body",
477
+ "in": "body",
478
+ "required": true,
479
+ "schema": {
480
+ "$ref": "#/definitions/v1ListUserTagsRequest"
481
+ }
482
+ }
483
+ ],
484
+ "tags": ["User Tags"]
485
+ }
486
+ },
423
487
  "/public/v1/query/list_users": {
424
488
  "post": {
425
489
  "summary": "List Users",
@@ -1380,38 +1444,6 @@
1380
1444
  "tags": ["Signers"]
1381
1445
  }
1382
1446
  },
1383
- "/public/v1/submit/update_allowed_origins": {
1384
- "post": {
1385
- "summary": "Update Allowed Origins",
1386
- "description": "Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations.",
1387
- "operationId": "PublicApiService_UpdateAllowedOrigins",
1388
- "responses": {
1389
- "200": {
1390
- "description": "A successful response.",
1391
- "schema": {
1392
- "$ref": "#/definitions/v1ActivityResponse"
1393
- }
1394
- },
1395
- "default": {
1396
- "description": "An unexpected error response.",
1397
- "schema": {
1398
- "$ref": "#/definitions/rpcStatus"
1399
- }
1400
- }
1401
- },
1402
- "parameters": [
1403
- {
1404
- "name": "body",
1405
- "in": "body",
1406
- "required": true,
1407
- "schema": {
1408
- "$ref": "#/definitions/v1UpdateAllowedOriginsRequest"
1409
- }
1410
- }
1411
- ],
1412
- "tags": ["Features"]
1413
- }
1414
- },
1415
1447
  "/public/v1/submit/update_policy": {
1416
1448
  "post": {
1417
1449
  "summary": "Update Policy",
@@ -1617,39 +1649,17 @@
1617
1649
  },
1618
1650
  "required": ["tagId", "tagName", "tagType", "createdAt", "updatedAt"]
1619
1651
  },
1620
- "externaldatav1AccessType": {
1621
- "type": "string",
1622
- "enum": ["ACCESS_TYPE_WEB", "ACCESS_TYPE_API", "ACCESS_TYPE_ALL"]
1623
- },
1624
1652
  "externaldatav1Address": {
1625
1653
  "type": "object",
1626
1654
  "properties": {
1627
1655
  "format": {
1628
- "$ref": "#/definitions/externaldatav1AddressFormat"
1656
+ "$ref": "#/definitions/v1AddressFormat"
1629
1657
  },
1630
1658
  "address": {
1631
1659
  "type": "string"
1632
1660
  }
1633
1661
  }
1634
1662
  },
1635
- "externaldatav1AddressFormat": {
1636
- "type": "string",
1637
- "enum": [
1638
- "ADDRESS_FORMAT_UNCOMPRESSED",
1639
- "ADDRESS_FORMAT_COMPRESSED",
1640
- "ADDRESS_FORMAT_ETHEREUM"
1641
- ]
1642
- },
1643
- "externaldatav1AuthenticatorTransport": {
1644
- "type": "string",
1645
- "enum": [
1646
- "AUTHENTICATOR_TRANSPORT_BLE",
1647
- "AUTHENTICATOR_TRANSPORT_INTERNAL",
1648
- "AUTHENTICATOR_TRANSPORT_NFC",
1649
- "AUTHENTICATOR_TRANSPORT_USB",
1650
- "AUTHENTICATOR_TRANSPORT_HYBRID"
1651
- ]
1652
- },
1653
1663
  "externaldatav1Credential": {
1654
1664
  "type": "object",
1655
1665
  "properties": {
@@ -1658,43 +1668,11 @@
1658
1668
  "description": "The public component of a cryptographic key pair used to sign messages and transactions."
1659
1669
  },
1660
1670
  "type": {
1661
- "$ref": "#/definitions/externaldatav1CredentialType"
1671
+ "$ref": "#/definitions/v1CredentialType"
1662
1672
  }
1663
1673
  },
1664
1674
  "required": ["publicKey", "type"]
1665
1675
  },
1666
- "externaldatav1CredentialType": {
1667
- "type": "string",
1668
- "enum": [
1669
- "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR",
1670
- "CREDENTIAL_TYPE_API_KEY_P256",
1671
- "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256"
1672
- ]
1673
- },
1674
- "externaldatav1Curve": {
1675
- "type": "string",
1676
- "enum": ["CURVE_SECP256K1", "CURVE_ED25519"]
1677
- },
1678
- "externaldatav1Effect": {
1679
- "type": "string",
1680
- "enum": ["EFFECT_ALLOW", "EFFECT_DENY"]
1681
- },
1682
- "externaldatav1Operator": {
1683
- "type": "string",
1684
- "enum": [
1685
- "OPERATOR_EQUAL",
1686
- "OPERATOR_MORE_THAN",
1687
- "OPERATOR_MORE_THAN_OR_EQUAL",
1688
- "OPERATOR_LESS_THAN",
1689
- "OPERATOR_LESS_THAN_OR_EQUAL",
1690
- "OPERATOR_CONTAINS",
1691
- "OPERATOR_NOT_EQUAL",
1692
- "OPERATOR_IN",
1693
- "OPERATOR_NOT_IN",
1694
- "OPERATOR_CONTAINS_ONE",
1695
- "OPERATOR_CONTAINS_ALL"
1696
- ]
1697
- },
1698
1676
  "externaldatav1Quorum": {
1699
1677
  "type": "object",
1700
1678
  "properties": {
@@ -1713,27 +1691,6 @@
1713
1691
  },
1714
1692
  "required": ["threshold", "userIds"]
1715
1693
  },
1716
- "externaldatav1Selector": {
1717
- "type": "object",
1718
- "properties": {
1719
- "subject": {
1720
- "type": "string",
1721
- "description": "The resource being referenced within a policy (e.g., user.tags or activities.type)."
1722
- },
1723
- "operator": {
1724
- "$ref": "#/definitions/externaldatav1Operator",
1725
- "description": "Logical operators like OPERATOR_CONTAINS or OPERATOR_EQUAL."
1726
- },
1727
- "targets": {
1728
- "type": "array",
1729
- "items": {
1730
- "type": "string"
1731
- },
1732
- "description": "The specific parameter from the subject being referenced, like a specific user ID."
1733
- }
1734
- },
1735
- "required": ["subject", "operator", "targets"]
1736
- },
1737
1694
  "externaldatav1Timestamp": {
1738
1695
  "type": "object",
1739
1696
  "properties": {
@@ -1746,92 +1703,17 @@
1746
1703
  },
1747
1704
  "required": ["seconds", "nanos"]
1748
1705
  },
1749
- "immutableactivityv1AccessType": {
1750
- "type": "string",
1751
- "enum": ["ACCESS_TYPE_WEB", "ACCESS_TYPE_API", "ACCESS_TYPE_ALL"]
1752
- },
1753
1706
  "immutableactivityv1Address": {
1754
1707
  "type": "object",
1755
1708
  "properties": {
1756
1709
  "format": {
1757
- "$ref": "#/definitions/immutablecommonv1AddressFormat"
1710
+ "$ref": "#/definitions/v1AddressFormat"
1758
1711
  },
1759
1712
  "address": {
1760
1713
  "type": "string"
1761
1714
  }
1762
1715
  }
1763
1716
  },
1764
- "immutableactivityv1Effect": {
1765
- "type": "string",
1766
- "enum": ["EFFECT_ALLOW", "EFFECT_DENY"]
1767
- },
1768
- "immutableactivityv1HashFunction": {
1769
- "type": "string",
1770
- "enum": [
1771
- "HASH_FUNCTION_NO_OP",
1772
- "HASH_FUNCTION_SHA256",
1773
- "HASH_FUNCTION_KECCAK256",
1774
- "HASH_FUNCTION_NOT_APPLICABLE"
1775
- ]
1776
- },
1777
- "immutableactivityv1Operator": {
1778
- "type": "string",
1779
- "enum": [
1780
- "OPERATOR_EQUAL",
1781
- "OPERATOR_MORE_THAN",
1782
- "OPERATOR_MORE_THAN_OR_EQUAL",
1783
- "OPERATOR_LESS_THAN",
1784
- "OPERATOR_LESS_THAN_OR_EQUAL",
1785
- "OPERATOR_CONTAINS",
1786
- "OPERATOR_NOT_EQUAL",
1787
- "OPERATOR_IN",
1788
- "OPERATOR_NOT_IN",
1789
- "OPERATOR_CONTAINS_ONE",
1790
- "OPERATOR_CONTAINS_ALL"
1791
- ]
1792
- },
1793
- "immutableactivityv1PayloadEncoding": {
1794
- "type": "string",
1795
- "enum": ["PAYLOAD_ENCODING_HEXADECIMAL", "PAYLOAD_ENCODING_TEXT_UTF8"]
1796
- },
1797
- "immutableactivityv1Selector": {
1798
- "type": "object",
1799
- "properties": {
1800
- "subject": {
1801
- "type": "string"
1802
- },
1803
- "operator": {
1804
- "$ref": "#/definitions/immutableactivityv1Operator"
1805
- },
1806
- "target": {
1807
- "type": "string"
1808
- }
1809
- }
1810
- },
1811
- "immutablecommonv1AddressFormat": {
1812
- "type": "string",
1813
- "enum": [
1814
- "ADDRESS_FORMAT_UNCOMPRESSED",
1815
- "ADDRESS_FORMAT_COMPRESSED",
1816
- "ADDRESS_FORMAT_ETHEREUM",
1817
- "ADDRESS_FORMAT_SOLANA",
1818
- "ADDRESS_FORMAT_COSMOS"
1819
- ]
1820
- },
1821
- "immutablecommonv1Curve": {
1822
- "type": "string",
1823
- "enum": ["CURVE_SECP256K1", "CURVE_ED25519"]
1824
- },
1825
- "immutablewebauthnv1AuthenticatorTransport": {
1826
- "type": "string",
1827
- "enum": [
1828
- "AUTHENTICATOR_TRANSPORT_BLE",
1829
- "AUTHENTICATOR_TRANSPORT_INTERNAL",
1830
- "AUTHENTICATOR_TRANSPORT_NFC",
1831
- "AUTHENTICATOR_TRANSPORT_USB",
1832
- "AUTHENTICATOR_TRANSPORT_HYBRID"
1833
- ]
1834
- },
1835
1717
  "protobufAny": {
1836
1718
  "type": "object",
1837
1719
  "properties": {
@@ -1910,6 +1792,10 @@
1910
1792
  },
1911
1793
  "required": ["invitationId", "userId"]
1912
1794
  },
1795
+ "v1AccessType": {
1796
+ "type": "string",
1797
+ "enum": ["ACCESS_TYPE_WEB", "ACCESS_TYPE_API", "ACCESS_TYPE_ALL"]
1798
+ },
1913
1799
  "v1ActivateBillingTierIntent": {
1914
1800
  "type": "object",
1915
1801
  "properties": {
@@ -2078,6 +1964,16 @@
2078
1964
  "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4"
2079
1965
  ]
2080
1966
  },
1967
+ "v1AddressFormat": {
1968
+ "type": "string",
1969
+ "enum": [
1970
+ "ADDRESS_FORMAT_UNCOMPRESSED",
1971
+ "ADDRESS_FORMAT_COMPRESSED",
1972
+ "ADDRESS_FORMAT_ETHEREUM",
1973
+ "ADDRESS_FORMAT_SOLANA",
1974
+ "ADDRESS_FORMAT_COSMOS"
1975
+ ]
1976
+ },
2081
1977
  "v1ApiKey": {
2082
1978
  "type": "object",
2083
1979
  "properties": {
@@ -2200,7 +2096,7 @@
2200
2096
  "transports": {
2201
2097
  "type": "array",
2202
2098
  "items": {
2203
- "$ref": "#/definitions/immutablewebauthnv1AuthenticatorTransport"
2099
+ "$ref": "#/definitions/v1AuthenticatorTransport"
2204
2100
  },
2205
2101
  "description": "The type of authenticator transports."
2206
2102
  }
@@ -2218,7 +2114,7 @@
2218
2114
  "transports": {
2219
2115
  "type": "array",
2220
2116
  "items": {
2221
- "$ref": "#/definitions/externaldatav1AuthenticatorTransport"
2117
+ "$ref": "#/definitions/v1AuthenticatorTransport"
2222
2118
  },
2223
2119
  "description": "Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE)."
2224
2120
  },
@@ -2281,7 +2177,7 @@
2281
2177
  "transports": {
2282
2178
  "type": "array",
2283
2179
  "items": {
2284
- "$ref": "#/definitions/immutablewebauthnv1AuthenticatorTransport"
2180
+ "$ref": "#/definitions/v1AuthenticatorTransport"
2285
2181
  }
2286
2182
  },
2287
2183
  "authenticatorAttachment": {
@@ -2331,6 +2227,16 @@
2331
2227
  },
2332
2228
  "required": ["authenticatorName", "challenge", "attestation"]
2333
2229
  },
2230
+ "v1AuthenticatorTransport": {
2231
+ "type": "string",
2232
+ "enum": [
2233
+ "AUTHENTICATOR_TRANSPORT_BLE",
2234
+ "AUTHENTICATOR_TRANSPORT_INTERNAL",
2235
+ "AUTHENTICATOR_TRANSPORT_NFC",
2236
+ "AUTHENTICATOR_TRANSPORT_USB",
2237
+ "AUTHENTICATOR_TRANSPORT_HYBRID"
2238
+ ]
2239
+ },
2334
2240
  "v1CreateApiKeysIntent": {
2335
2241
  "type": "object",
2336
2242
  "properties": {
@@ -2614,12 +2520,12 @@
2614
2520
  "type": "array",
2615
2521
  "items": {
2616
2522
  "type": "object",
2617
- "$ref": "#/definitions/immutableactivityv1Selector"
2523
+ "$ref": "#/definitions/v1Selector"
2618
2524
  },
2619
2525
  "description": "A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details."
2620
2526
  },
2621
2527
  "effect": {
2622
- "$ref": "#/definitions/immutableactivityv1Effect",
2528
+ "$ref": "#/definitions/v1Effect",
2623
2529
  "description": "The instruction to DENY or ALLOW a particular activity following policy selector(s)."
2624
2530
  },
2625
2531
  "notes": {
@@ -2644,7 +2550,7 @@
2644
2550
  "description": "A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details."
2645
2551
  },
2646
2552
  "effect": {
2647
- "$ref": "#/definitions/immutableactivityv1Effect",
2553
+ "$ref": "#/definitions/v1Effect",
2648
2554
  "description": "Whether to ALLOW or DENY requests that match the condition and consensus requirements."
2649
2555
  },
2650
2556
  "notes": {
@@ -2661,7 +2567,7 @@
2661
2567
  "description": "Human-readable name for a Policy."
2662
2568
  },
2663
2569
  "effect": {
2664
- "$ref": "#/definitions/immutableactivityv1Effect",
2570
+ "$ref": "#/definitions/v1Effect",
2665
2571
  "description": "The instruction to DENY or ALLOW an activity."
2666
2572
  },
2667
2573
  "condition": {
@@ -3237,6 +3143,18 @@
3237
3143
  },
3238
3144
  "required": ["rk"]
3239
3145
  },
3146
+ "v1CredentialType": {
3147
+ "type": "string",
3148
+ "enum": [
3149
+ "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR",
3150
+ "CREDENTIAL_TYPE_API_KEY_P256",
3151
+ "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256"
3152
+ ]
3153
+ },
3154
+ "v1Curve": {
3155
+ "type": "string",
3156
+ "enum": ["CURVE_SECP256K1", "CURVE_ED25519"]
3157
+ },
3240
3158
  "v1DeleteApiKeysIntent": {
3241
3159
  "type": "object",
3242
3160
  "properties": {
@@ -3573,6 +3491,10 @@
3573
3491
  },
3574
3492
  "required": ["privateKeyId"]
3575
3493
  },
3494
+ "v1Effect": {
3495
+ "type": "string",
3496
+ "enum": ["EFFECT_ALLOW", "EFFECT_DENY"]
3497
+ },
3576
3498
  "v1ExportPrivateKeyIntent": {
3577
3499
  "type": "object",
3578
3500
  "properties": {
@@ -3688,7 +3610,10 @@
3688
3610
  },
3689
3611
  "v1FeatureName": {
3690
3612
  "type": "string",
3691
- "enum": ["FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"]
3613
+ "enum": [
3614
+ "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
3615
+ "FEATURE_NAME_WEBAUTHN_ORIGINS"
3616
+ ]
3692
3617
  },
3693
3618
  "v1GetActivitiesRequest": {
3694
3619
  "type": "object",
@@ -4070,6 +3995,15 @@
4070
3995
  },
4071
3996
  "required": ["organizationId", "organizationName", "userId", "username"]
4072
3997
  },
3998
+ "v1HashFunction": {
3999
+ "type": "string",
4000
+ "enum": [
4001
+ "HASH_FUNCTION_NO_OP",
4002
+ "HASH_FUNCTION_SHA256",
4003
+ "HASH_FUNCTION_KECCAK256",
4004
+ "HASH_FUNCTION_NOT_APPLICABLE"
4005
+ ]
4006
+ },
4073
4007
  "v1InitUserEmailRecoveryIntent": {
4074
4008
  "type": "object",
4075
4009
  "properties": {
@@ -4309,7 +4243,7 @@
4309
4243
  "description": "A list of tags assigned to the Invitation recipient."
4310
4244
  },
4311
4245
  "accessType": {
4312
- "$ref": "#/definitions/externaldatav1AccessType",
4246
+ "$ref": "#/definitions/v1AccessType",
4313
4247
  "description": "The User's permissible access method(s)."
4314
4248
  },
4315
4249
  "status": {
@@ -4358,7 +4292,7 @@
4358
4292
  "description": "A list of tags assigned to the Invitation recipient."
4359
4293
  },
4360
4294
  "accessType": {
4361
- "$ref": "#/definitions/immutableactivityv1AccessType",
4295
+ "$ref": "#/definitions/v1AccessType",
4362
4296
  "description": "The User's permissible access method(s)."
4363
4297
  },
4364
4298
  "senderUserId": {
@@ -4382,6 +4316,54 @@
4382
4316
  "INVITATION_STATUS_REVOKED"
4383
4317
  ]
4384
4318
  },
4319
+ "v1ListPrivateKeyTagsRequest": {
4320
+ "type": "object",
4321
+ "properties": {
4322
+ "organizationId": {
4323
+ "type": "string",
4324
+ "description": "Unique identifier for a given Organization."
4325
+ }
4326
+ },
4327
+ "required": ["organizationId"]
4328
+ },
4329
+ "v1ListPrivateKeyTagsResponse": {
4330
+ "type": "object",
4331
+ "properties": {
4332
+ "privateKeyTags": {
4333
+ "type": "array",
4334
+ "items": {
4335
+ "type": "object",
4336
+ "$ref": "#/definitions/datav1Tag"
4337
+ },
4338
+ "description": "A list of Private Key Tags"
4339
+ }
4340
+ },
4341
+ "required": ["privateKeyTags"]
4342
+ },
4343
+ "v1ListUserTagsRequest": {
4344
+ "type": "object",
4345
+ "properties": {
4346
+ "organizationId": {
4347
+ "type": "string",
4348
+ "description": "Unique identifier for a given Organization."
4349
+ }
4350
+ },
4351
+ "required": ["organizationId"]
4352
+ },
4353
+ "v1ListUserTagsResponse": {
4354
+ "type": "object",
4355
+ "properties": {
4356
+ "userTags": {
4357
+ "type": "array",
4358
+ "items": {
4359
+ "type": "object",
4360
+ "$ref": "#/definitions/datav1Tag"
4361
+ },
4362
+ "description": "A list of User Tags"
4363
+ }
4364
+ },
4365
+ "required": ["userTags"]
4366
+ },
4385
4367
  "v1MnemonicLanguage": {
4386
4368
  "type": "string",
4387
4369
  "enum": [
@@ -4405,6 +4387,22 @@
4405
4387
  },
4406
4388
  "required": ["stamp"]
4407
4389
  },
4390
+ "v1Operator": {
4391
+ "type": "string",
4392
+ "enum": [
4393
+ "OPERATOR_EQUAL",
4394
+ "OPERATOR_MORE_THAN",
4395
+ "OPERATOR_MORE_THAN_OR_EQUAL",
4396
+ "OPERATOR_LESS_THAN",
4397
+ "OPERATOR_LESS_THAN_OR_EQUAL",
4398
+ "OPERATOR_CONTAINS",
4399
+ "OPERATOR_NOT_EQUAL",
4400
+ "OPERATOR_IN",
4401
+ "OPERATOR_NOT_IN",
4402
+ "OPERATOR_CONTAINS_ONE",
4403
+ "OPERATOR_CONTAINS_ALL"
4404
+ ]
4405
+ },
4408
4406
  "v1OrganizationData": {
4409
4407
  "type": "object",
4410
4408
  "properties": {
@@ -4449,22 +4447,9 @@
4449
4447
  "$ref": "#/definitions/datav1Tag"
4450
4448
  }
4451
4449
  },
4452
- "disabledPrivateKeys": {
4453
- "type": "array",
4454
- "items": {
4455
- "type": "object",
4456
- "$ref": "#/definitions/v1PrivateKey"
4457
- }
4458
- },
4459
4450
  "rootQuorum": {
4460
4451
  "$ref": "#/definitions/externaldatav1Quorum"
4461
4452
  },
4462
- "allowedOrigins": {
4463
- "type": "array",
4464
- "items": {
4465
- "type": "string"
4466
- }
4467
- },
4468
4453
  "features": {
4469
4454
  "type": "array",
4470
4455
  "items": {
@@ -4502,6 +4487,10 @@
4502
4487
  "type": "string",
4503
4488
  "enum": ["PATH_FORMAT_BIP32"]
4504
4489
  },
4490
+ "v1PayloadEncoding": {
4491
+ "type": "string",
4492
+ "enum": ["PAYLOAD_ENCODING_HEXADECIMAL", "PAYLOAD_ENCODING_TEXT_UTF8"]
4493
+ },
4505
4494
  "v1Policy": {
4506
4495
  "type": "object",
4507
4496
  "properties": {
@@ -4514,17 +4503,9 @@
4514
4503
  "description": "Human-readable name for a Policy."
4515
4504
  },
4516
4505
  "effect": {
4517
- "$ref": "#/definitions/externaldatav1Effect",
4506
+ "$ref": "#/definitions/v1Effect",
4518
4507
  "description": "The instruction to DENY or ALLOW a particular activity following policy selector(s)."
4519
4508
  },
4520
- "selectors": {
4521
- "type": "array",
4522
- "items": {
4523
- "type": "object",
4524
- "$ref": "#/definitions/externaldatav1Selector"
4525
- },
4526
- "description": "A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details."
4527
- },
4528
4509
  "createdAt": {
4529
4510
  "$ref": "#/definitions/externaldatav1Timestamp"
4530
4511
  },
@@ -4548,7 +4529,6 @@
4548
4529
  "policyId",
4549
4530
  "policyName",
4550
4531
  "effect",
4551
- "selectors",
4552
4532
  "createdAt",
4553
4533
  "updatedAt",
4554
4534
  "notes",
@@ -4572,7 +4552,7 @@
4572
4552
  "description": "Human-readable name for a Private Key."
4573
4553
  },
4574
4554
  "curve": {
4575
- "$ref": "#/definitions/externaldatav1Curve",
4555
+ "$ref": "#/definitions/v1Curve",
4576
4556
  "description": "Cryptographic Curve used to generate a given Private Key."
4577
4557
  },
4578
4558
  "addresses": {
@@ -4621,7 +4601,7 @@
4621
4601
  "description": "Human-readable name for a Private Key."
4622
4602
  },
4623
4603
  "curve": {
4624
- "$ref": "#/definitions/immutablecommonv1Curve",
4604
+ "$ref": "#/definitions/v1Curve",
4625
4605
  "description": "Cryptographic Curve used to generate a given Private Key."
4626
4606
  },
4627
4607
  "privateKeyTags": {
@@ -4634,7 +4614,7 @@
4634
4614
  "addressFormats": {
4635
4615
  "type": "array",
4636
4616
  "items": {
4637
- "$ref": "#/definitions/immutablecommonv1AddressFormat"
4617
+ "$ref": "#/definitions/v1AddressFormat"
4638
4618
  },
4639
4619
  "description": "Cryptocurrency-specific formats for a derived address (e.g., Ethereum)."
4640
4620
  }
@@ -4976,6 +4956,20 @@
4976
4956
  },
4977
4957
  "required": ["userName", "apiKeys", "authenticators"]
4978
4958
  },
4959
+ "v1Selector": {
4960
+ "type": "object",
4961
+ "properties": {
4962
+ "subject": {
4963
+ "type": "string"
4964
+ },
4965
+ "operator": {
4966
+ "$ref": "#/definitions/v1Operator"
4967
+ },
4968
+ "target": {
4969
+ "type": "string"
4970
+ }
4971
+ }
4972
+ },
4979
4973
  "v1SelectorV2": {
4980
4974
  "type": "object",
4981
4975
  "properties": {
@@ -4983,7 +4977,7 @@
4983
4977
  "type": "string"
4984
4978
  },
4985
4979
  "operator": {
4986
- "$ref": "#/definitions/immutableactivityv1Operator"
4980
+ "$ref": "#/definitions/v1Operator"
4987
4981
  },
4988
4982
  "targets": {
4989
4983
  "type": "array",
@@ -5127,11 +5121,11 @@
5127
5121
  "description": "Raw unsigned payload to be signed."
5128
5122
  },
5129
5123
  "encoding": {
5130
- "$ref": "#/definitions/immutableactivityv1PayloadEncoding",
5124
+ "$ref": "#/definitions/v1PayloadEncoding",
5131
5125
  "description": "Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8)."
5132
5126
  },
5133
5127
  "hashFunction": {
5134
- "$ref": "#/definitions/immutableactivityv1HashFunction",
5128
+ "$ref": "#/definitions/v1HashFunction",
5135
5129
  "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."
5136
5130
  }
5137
5131
  },
@@ -5149,11 +5143,11 @@
5149
5143
  "description": "Raw unsigned payload to be signed."
5150
5144
  },
5151
5145
  "encoding": {
5152
- "$ref": "#/definitions/immutableactivityv1PayloadEncoding",
5146
+ "$ref": "#/definitions/v1PayloadEncoding",
5153
5147
  "description": "Encoding of the `payload` string. Turnkey uses this information to convert `payload` into bytes with the correct decoder (e.g. hex, utf8)."
5154
5148
  },
5155
5149
  "hashFunction": {
5156
- "$ref": "#/definitions/immutableactivityv1HashFunction",
5150
+ "$ref": "#/definitions/v1HashFunction",
5157
5151
  "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."
5158
5152
  }
5159
5153
  },
@@ -5297,27 +5291,6 @@
5297
5291
  },
5298
5292
  "required": ["allowedOrigins"]
5299
5293
  },
5300
- "v1UpdateAllowedOriginsRequest": {
5301
- "type": "object",
5302
- "properties": {
5303
- "type": {
5304
- "type": "string",
5305
- "enum": ["ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS"]
5306
- },
5307
- "timestampMs": {
5308
- "type": "string",
5309
- "description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
5310
- },
5311
- "organizationId": {
5312
- "type": "string",
5313
- "description": "Unique identifier for a given Organization."
5314
- },
5315
- "parameters": {
5316
- "$ref": "#/definitions/v1UpdateAllowedOriginsIntent"
5317
- }
5318
- },
5319
- "required": ["type", "timestampMs", "organizationId", "parameters"]
5320
- },
5321
5294
  "v1UpdateAllowedOriginsResult": {
5322
5295
  "type": "object"
5323
5296
  },
@@ -5333,7 +5306,7 @@
5333
5306
  "description": "Human-readable name for a Policy."
5334
5307
  },
5335
5308
  "policyEffect": {
5336
- "$ref": "#/definitions/immutableactivityv1Effect",
5309
+ "$ref": "#/definitions/v1Effect",
5337
5310
  "description": "The instruction to DENY or ALLOW an activity (optional)."
5338
5311
  },
5339
5312
  "policyCondition": {
@@ -5613,10 +5586,6 @@
5613
5586
  "type": "string",
5614
5587
  "description": "The user's email address."
5615
5588
  },
5616
- "accessType": {
5617
- "$ref": "#/definitions/externaldatav1AccessType",
5618
- "description": "The User's permissible access method(s)."
5619
- },
5620
5589
  "authenticators": {
5621
5590
  "type": "array",
5622
5591
  "items": {
@@ -5650,7 +5619,6 @@
5650
5619
  "required": [
5651
5620
  "userId",
5652
5621
  "userName",
5653
- "accessType",
5654
5622
  "authenticators",
5655
5623
  "apiKeys",
5656
5624
  "userTags",
@@ -5670,7 +5638,7 @@
5670
5638
  "description": "The user's email address."
5671
5639
  },
5672
5640
  "accessType": {
5673
- "$ref": "#/definitions/immutableactivityv1AccessType",
5641
+ "$ref": "#/definitions/v1AccessType",
5674
5642
  "description": "The User's permissible access method(s)."
5675
5643
  },
5676
5644
  "apiKeys": {
@@ -5716,10 +5684,6 @@
5716
5684
  "type": "string",
5717
5685
  "description": "The user's email address."
5718
5686
  },
5719
- "accessType": {
5720
- "$ref": "#/definitions/immutableactivityv1AccessType",
5721
- "description": "The User's permissible access method(s)."
5722
- },
5723
5687
  "apiKeys": {
5724
5688
  "type": "array",
5725
5689
  "items": {
@@ -5744,13 +5708,7 @@
5744
5708
  "description": "A list of User Tag IDs."
5745
5709
  }
5746
5710
  },
5747
- "required": [
5748
- "userName",
5749
- "accessType",
5750
- "apiKeys",
5751
- "authenticators",
5752
- "userTags"
5753
- ]
5711
+ "required": ["userName", "apiKeys", "authenticators", "userTags"]
5754
5712
  },
5755
5713
  "v1Vote": {
5756
5714
  "type": "object",
@@ -5850,7 +5808,7 @@
5850
5808
  "description": "The Wallet the Account was derived from."
5851
5809
  },
5852
5810
  "curve": {
5853
- "$ref": "#/definitions/immutablecommonv1Curve",
5811
+ "$ref": "#/definitions/v1Curve",
5854
5812
  "description": "Cryptographic curve used to generate the Account."
5855
5813
  },
5856
5814
  "pathFormat": {
@@ -5862,7 +5820,7 @@
5862
5820
  "description": "Path used to generate the Account."
5863
5821
  },
5864
5822
  "addressFormat": {
5865
- "$ref": "#/definitions/immutablecommonv1AddressFormat",
5823
+ "$ref": "#/definitions/v1AddressFormat",
5866
5824
  "description": "Address format used to generate the Acccount."
5867
5825
  },
5868
5826
  "address": {
@@ -5892,7 +5850,7 @@
5892
5850
  "type": "object",
5893
5851
  "properties": {
5894
5852
  "curve": {
5895
- "$ref": "#/definitions/immutablecommonv1Curve",
5853
+ "$ref": "#/definitions/v1Curve",
5896
5854
  "description": "Cryptographic curve used to generate a wallet Account."
5897
5855
  },
5898
5856
  "pathFormat": {
@@ -5904,7 +5862,7 @@
5904
5862
  "description": "Path used to generate a wallet Account."
5905
5863
  },
5906
5864
  "addressFormat": {
5907
- "$ref": "#/definitions/immutablecommonv1AddressFormat",
5865
+ "$ref": "#/definitions/v1AddressFormat",
5908
5866
  "description": "Address format used to generate a wallet Acccount."
5909
5867
  }
5910
5868
  },