@turnkey/http 0.17.1 → 0.18.1

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 (59) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +4776 -555
  3. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +492 -1
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.swagger.json +822 -60
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +416 -13
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  9. package/dist/base.d.ts +10 -1
  10. package/dist/base.d.ts.map +1 -1
  11. package/dist/base.js +29 -2
  12. package/dist/base.js.map +1 -1
  13. package/dist/config.d.ts +8 -0
  14. package/dist/config.d.ts.map +1 -1
  15. package/dist/config.js +14 -1
  16. package/dist/config.js.map +1 -1
  17. package/dist/encoding.d.ts +1 -0
  18. package/dist/encoding.d.ts.map +1 -1
  19. package/dist/encoding.js +6 -8
  20. package/dist/encoding.js.map +1 -1
  21. package/dist/index.d.ts +4 -1
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +4 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/shared.d.ts +5 -0
  26. package/dist/shared.d.ts.map +1 -1
  27. package/dist/webauthn-json/api.d.ts +13 -0
  28. package/dist/webauthn-json/api.d.ts.map +1 -0
  29. package/dist/webauthn-json/api.js +33 -0
  30. package/dist/webauthn-json/api.js.map +1 -0
  31. package/dist/webauthn-json/base64url.d.ts +4 -0
  32. package/dist/webauthn-json/base64url.d.ts.map +1 -0
  33. package/dist/webauthn-json/base64url.js +37 -0
  34. package/dist/webauthn-json/base64url.js.map +1 -0
  35. package/dist/webauthn-json/convert.d.ts +8 -0
  36. package/dist/webauthn-json/convert.d.ts.map +1 -0
  37. package/dist/webauthn-json/convert.js +69 -0
  38. package/dist/webauthn-json/convert.js.map +1 -0
  39. package/dist/webauthn-json/index.d.ts +14 -0
  40. package/dist/webauthn-json/index.d.ts.map +1 -0
  41. package/dist/webauthn-json/index.js +19 -0
  42. package/dist/webauthn-json/index.js.map +1 -0
  43. package/dist/webauthn-json/json.d.ts +92 -0
  44. package/dist/webauthn-json/json.d.ts.map +1 -0
  45. package/dist/webauthn-json/json.js +3 -0
  46. package/dist/webauthn-json/json.js.map +1 -0
  47. package/dist/webauthn-json/schema-format.d.ts +13 -0
  48. package/dist/webauthn-json/schema-format.d.ts.map +1 -0
  49. package/dist/webauthn-json/schema-format.js +3 -0
  50. package/dist/webauthn-json/schema-format.js.map +1 -0
  51. package/dist/webauthn-json/schema.d.ts +9 -0
  52. package/dist/webauthn-json/schema.d.ts.map +1 -0
  53. package/dist/webauthn-json/schema.js +86 -0
  54. package/dist/webauthn-json/schema.js.map +1 -0
  55. package/dist/webauthn.d.ts +24 -0
  56. package/dist/webauthn.d.ts.map +1 -0
  57. package/dist/webauthn.js +82 -0
  58. package/dist/webauthn.js.map +1 -0
  59. package/package.json +1 -1
@@ -72,6 +72,112 @@
72
72
  }
73
73
  }
74
74
  },
75
+ "/public/v1/query/get_authenticator": {
76
+ "post": {
77
+ "summary": "Get Authenticator",
78
+ "description": "Get details about an authenticator",
79
+ "operationId": "PublicApiService_GetAuthenticator",
80
+ "responses": {
81
+ "200": {
82
+ "description": "A successful response.",
83
+ "schema": {
84
+ "$ref": "#/definitions/v1GetAuthenticatorResponse"
85
+ }
86
+ },
87
+ "403": {
88
+ "description": "Returned when the user does not have permission to access the resource.",
89
+ "schema": {}
90
+ },
91
+ "404": {
92
+ "description": "Returned when the resource does not exist.",
93
+ "schema": {
94
+ "type": "string",
95
+ "format": "string"
96
+ }
97
+ },
98
+ "default": {
99
+ "description": "An unexpected error response.",
100
+ "schema": {
101
+ "$ref": "#/definitions/rpcStatus"
102
+ }
103
+ }
104
+ },
105
+ "parameters": [
106
+ {
107
+ "name": "body",
108
+ "in": "body",
109
+ "required": true,
110
+ "schema": {
111
+ "$ref": "#/definitions/v1GetAuthenticatorRequest"
112
+ }
113
+ }
114
+ ],
115
+ "tags": ["Authenticators"],
116
+ "x-readme": {
117
+ "code-samples": [
118
+ {
119
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_authenticator --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"authenticatorId\": \"'\"$AUTHENTICATOR_ID\"'\"\n}'",
120
+ "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
121
+ "language": "curl",
122
+ "name": "Turnkey CLI"
123
+ }
124
+ ]
125
+ }
126
+ }
127
+ },
128
+ "/public/v1/query/get_authenticators": {
129
+ "post": {
130
+ "summary": "Get Authenticators",
131
+ "description": "Get details about authenticators for a user",
132
+ "operationId": "PublicApiService_GetAuthenticators",
133
+ "responses": {
134
+ "200": {
135
+ "description": "A successful response.",
136
+ "schema": {
137
+ "$ref": "#/definitions/v1GetAuthenticatorsResponse"
138
+ }
139
+ },
140
+ "403": {
141
+ "description": "Returned when the user does not have permission to access the resource.",
142
+ "schema": {}
143
+ },
144
+ "404": {
145
+ "description": "Returned when the resource does not exist.",
146
+ "schema": {
147
+ "type": "string",
148
+ "format": "string"
149
+ }
150
+ },
151
+ "default": {
152
+ "description": "An unexpected error response.",
153
+ "schema": {
154
+ "$ref": "#/definitions/rpcStatus"
155
+ }
156
+ }
157
+ },
158
+ "parameters": [
159
+ {
160
+ "name": "body",
161
+ "in": "body",
162
+ "required": true,
163
+ "schema": {
164
+ "$ref": "#/definitions/v1GetAuthenticatorsRequest"
165
+ }
166
+ }
167
+ ],
168
+ "tags": ["Authenticators"],
169
+ "x-readme": {
170
+ "code-samples": [
171
+ {
172
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_authenticators --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"userId\": \"'\"$USER_ID\"'\"\n}'",
173
+ "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
174
+ "language": "curl",
175
+ "name": "Turnkey CLI"
176
+ }
177
+ ]
178
+ }
179
+ }
180
+ },
75
181
  "/public/v1/query/get_organization": {
76
182
  "post": {
77
183
  "summary": "Get Organization",
@@ -328,7 +434,7 @@
328
434
  "x-readme": {
329
435
  "code-samples": [
330
436
  {
331
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_activities --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
437
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_activities --body '{\n\t\"organizationId\": \"$ORGANIZATION_ID\",\n\t\"filterByStatus\": [\n\t\t\"$ACTIVITY_STATUS\"\n\t],\n\t\"filterByType\": [\n\t\t\"$ACTIVITY_TYPE\"\n\t],\n\t\"paginationOptions\": {\n\t\t\"limit\": \"$NUM_ACTIVITIES\",\n\t\t\"before\": \"$BEFORE_ACTIVITY_ID\",\n\t\t\"after\": \"$AFTER_ACTIVITY_ID\"\n\t}\n}'",
332
438
  "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
333
439
  "language": "curl",
334
440
  "name": "Turnkey CLI"
@@ -752,7 +858,7 @@
752
858
  "x-readme": {
753
859
  "code-samples": [
754
860
  {
755
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_authenticators --body '{\n\t\"type\": \"ACTIVITY_TYPE_CREATE_AUTHENTICATORS\",\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"userId\": \"\",\n\t\t\"authenticators\": [\n\t\t\t{\n\t\t\t\t\"authenticatorName\": \"\",\n\t\t\t\t\"userId\": \"\",\n\t\t\t\t\"challenge\": \"\",\n\t\t\t\t\"attestation\": {\n\t\t\t\t\t\"id\": \"\",\n\t\t\t\t\t\"type\": \"\",\n\t\t\t\t\t\"rawId\": \"\",\n\t\t\t\t\t\"authenticatorAttachment\": \"cross-\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n}\n'",
861
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_authenticators --body '{\n\t\"type\": \"ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2\",\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"userId\": \"\",\n\t\t\"authenticators\": [\n\t\t\t{\n\t\t\t\t\"authenticatorName\": \"\",\n\t\t\t\t\"challenge\": \"\",\n\t\t\t\t\"attestation\": {\n\t\t\t\t\t\"credentialId\": \"\",\n\t\t\t\t\t\"clientDataJson\": \"\",\n\t\t\t\t\t\"attestationObject\": \"\",\n\t\t\t\t\t\"transports\": []\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n}\n'",
756
862
  "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
757
863
  "language": "curl",
758
864
  "name": "Turnkey CLI"
@@ -867,6 +973,59 @@
867
973
  }
868
974
  }
869
975
  },
976
+ "/public/v1/submit/create_private_key_tag": {
977
+ "post": {
978
+ "summary": "Create User Tag",
979
+ "description": "Create a private key tag and add it to private keys.",
980
+ "operationId": "PublicApiService_CreatePrivateKeyTag",
981
+ "responses": {
982
+ "200": {
983
+ "description": "A successful response.",
984
+ "schema": {
985
+ "$ref": "#/definitions/v1ActivityResponse"
986
+ }
987
+ },
988
+ "403": {
989
+ "description": "Returned when the user does not have permission to access the resource.",
990
+ "schema": {}
991
+ },
992
+ "404": {
993
+ "description": "Returned when the resource does not exist.",
994
+ "schema": {
995
+ "type": "string",
996
+ "format": "string"
997
+ }
998
+ },
999
+ "default": {
1000
+ "description": "An unexpected error response.",
1001
+ "schema": {
1002
+ "$ref": "#/definitions/rpcStatus"
1003
+ }
1004
+ }
1005
+ },
1006
+ "parameters": [
1007
+ {
1008
+ "name": "body",
1009
+ "in": "body",
1010
+ "required": true,
1011
+ "schema": {
1012
+ "$ref": "#/definitions/v1CreatePrivateKeyTagRequest"
1013
+ }
1014
+ }
1015
+ ],
1016
+ "tags": ["Private Key Tags"],
1017
+ "x-readme": {
1018
+ "code-samples": [
1019
+ {
1020
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_private_key_tag --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"privateKeyTagName\": \"\",\n\t\t\"privateKeyIds\": \"\",\n}'",
1021
+ "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1022
+ "language": "curl",
1023
+ "name": "Turnkey CLI"
1024
+ }
1025
+ ]
1026
+ }
1027
+ }
1028
+ },
870
1029
  "/public/v1/submit/create_private_keys": {
871
1030
  "post": {
872
1031
  "summary": "Create Private Keys",
@@ -920,6 +1079,112 @@
920
1079
  }
921
1080
  }
922
1081
  },
1082
+ "/public/v1/submit/create_sub_organization": {
1083
+ "post": {
1084
+ "summary": "Create Sub-Organization",
1085
+ "description": "Create a new Sub-Organization",
1086
+ "operationId": "PublicApiService_CreateSubOrganization",
1087
+ "responses": {
1088
+ "200": {
1089
+ "description": "A successful response.",
1090
+ "schema": {
1091
+ "$ref": "#/definitions/v1ActivityResponse"
1092
+ }
1093
+ },
1094
+ "403": {
1095
+ "description": "Returned when the user does not have permission to access the resource.",
1096
+ "schema": {}
1097
+ },
1098
+ "404": {
1099
+ "description": "Returned when the resource does not exist.",
1100
+ "schema": {
1101
+ "type": "string",
1102
+ "format": "string"
1103
+ }
1104
+ },
1105
+ "default": {
1106
+ "description": "An unexpected error response.",
1107
+ "schema": {
1108
+ "$ref": "#/definitions/rpcStatus"
1109
+ }
1110
+ }
1111
+ },
1112
+ "parameters": [
1113
+ {
1114
+ "name": "body",
1115
+ "in": "body",
1116
+ "required": true,
1117
+ "schema": {
1118
+ "$ref": "#/definitions/v1CreateSubOrganizationRequest"
1119
+ }
1120
+ }
1121
+ ],
1122
+ "tags": ["Organizations"],
1123
+ "x-readme": {
1124
+ "code-samples": [
1125
+ {
1126
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_sub_organization --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"name\": \"\",\n\t\t\"rootAuthenticator\": {\n\t\t\t\"authenticatorName\": \"\",\n\t\t\t\"challenge\":\"\",\n\t\t\t\"attestation\":{\n\t\t\t\t\"credentialId\":\"\",\n\t\t\t\t\"clientDataJson\":\"\",\n\t\t\t\t\"attestationObject\":\"\",\n\t\t\t\t\"transports\":[],\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}'",
1127
+ "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1128
+ "language": "curl",
1129
+ "name": "Turnkey CLI"
1130
+ }
1131
+ ]
1132
+ }
1133
+ }
1134
+ },
1135
+ "/public/v1/submit/create_user_tag": {
1136
+ "post": {
1137
+ "summary": "Create User Tag",
1138
+ "description": "Create a user tag and add it to users.",
1139
+ "operationId": "PublicApiService_CreateUserTag",
1140
+ "responses": {
1141
+ "200": {
1142
+ "description": "A successful response.",
1143
+ "schema": {
1144
+ "$ref": "#/definitions/v1ActivityResponse"
1145
+ }
1146
+ },
1147
+ "403": {
1148
+ "description": "Returned when the user does not have permission to access the resource.",
1149
+ "schema": {}
1150
+ },
1151
+ "404": {
1152
+ "description": "Returned when the resource does not exist.",
1153
+ "schema": {
1154
+ "type": "string",
1155
+ "format": "string"
1156
+ }
1157
+ },
1158
+ "default": {
1159
+ "description": "An unexpected error response.",
1160
+ "schema": {
1161
+ "$ref": "#/definitions/rpcStatus"
1162
+ }
1163
+ }
1164
+ },
1165
+ "parameters": [
1166
+ {
1167
+ "name": "body",
1168
+ "in": "body",
1169
+ "required": true,
1170
+ "schema": {
1171
+ "$ref": "#/definitions/v1CreateUserTagRequest"
1172
+ }
1173
+ }
1174
+ ],
1175
+ "tags": ["User Tags"],
1176
+ "x-readme": {
1177
+ "code-samples": [
1178
+ {
1179
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_user_tag --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_USER_TAG\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"userTagName\": \"\",\n\t\t\"userIds\": \"\",\n}'",
1180
+ "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1181
+ "language": "curl",
1182
+ "name": "Turnkey CLI"
1183
+ }
1184
+ ]
1185
+ }
1186
+ }
1187
+ },
923
1188
  "/public/v1/submit/create_users": {
924
1189
  "post": {
925
1190
  "summary": "Create Users",
@@ -1292,6 +1557,59 @@
1292
1557
  }
1293
1558
  }
1294
1559
  },
1560
+ "/public/v1/submit/update_allowed_origins": {
1561
+ "post": {
1562
+ "summary": "Update the allowable origins",
1563
+ "description": "Update the additional allowable origins for requests besides Turnkey origins",
1564
+ "operationId": "PublicApiService_UpdateAllowedOrigins",
1565
+ "responses": {
1566
+ "200": {
1567
+ "description": "A successful response.",
1568
+ "schema": {
1569
+ "$ref": "#/definitions/v1ActivityResponse"
1570
+ }
1571
+ },
1572
+ "403": {
1573
+ "description": "Returned when the user does not have permission to access the resource.",
1574
+ "schema": {}
1575
+ },
1576
+ "404": {
1577
+ "description": "Returned when the resource does not exist.",
1578
+ "schema": {
1579
+ "type": "string",
1580
+ "format": "string"
1581
+ }
1582
+ },
1583
+ "default": {
1584
+ "description": "An unexpected error response.",
1585
+ "schema": {
1586
+ "$ref": "#/definitions/rpcStatus"
1587
+ }
1588
+ }
1589
+ },
1590
+ "parameters": [
1591
+ {
1592
+ "name": "body",
1593
+ "in": "body",
1594
+ "required": true,
1595
+ "schema": {
1596
+ "$ref": "#/definitions/v1UpdateAllowedOriginsRequest"
1597
+ }
1598
+ }
1599
+ ],
1600
+ "tags": ["Update Domains"],
1601
+ "x-readme": {
1602
+ "code-samples": [
1603
+ {
1604
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/update_allowed_origins --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"UPDATE_DOMAINS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"domains\": \"'\"$DOMAINS\"'\"\n\t}\n}'",
1605
+ "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1606
+ "language": "curl",
1607
+ "name": "Turnkey CLI"
1608
+ }
1609
+ ]
1610
+ }
1611
+ }
1612
+ },
1295
1613
  "/public/v1/submit/update_private_key_tag": {
1296
1614
  "post": {
1297
1615
  "summary": "Update Private Key Tag",
@@ -1345,6 +1663,59 @@
1345
1663
  }
1346
1664
  }
1347
1665
  },
1666
+ "/public/v1/submit/update_root_quorum": {
1667
+ "post": {
1668
+ "summary": "Set the root quorum",
1669
+ "description": "Set the threshold and members of the root quorum. This must be approved by the current root quorum.",
1670
+ "operationId": "PublicApiService_UpdateRootQuorum",
1671
+ "responses": {
1672
+ "200": {
1673
+ "description": "A successful response.",
1674
+ "schema": {
1675
+ "$ref": "#/definitions/v1ActivityResponse"
1676
+ }
1677
+ },
1678
+ "403": {
1679
+ "description": "Returned when the user does not have permission to access the resource.",
1680
+ "schema": {}
1681
+ },
1682
+ "404": {
1683
+ "description": "Returned when the resource does not exist.",
1684
+ "schema": {
1685
+ "type": "string",
1686
+ "format": "string"
1687
+ }
1688
+ },
1689
+ "default": {
1690
+ "description": "An unexpected error response.",
1691
+ "schema": {
1692
+ "$ref": "#/definitions/rpcStatus"
1693
+ }
1694
+ }
1695
+ },
1696
+ "parameters": [
1697
+ {
1698
+ "name": "body",
1699
+ "in": "body",
1700
+ "required": true,
1701
+ "schema": {
1702
+ "$ref": "#/definitions/v1UpdateRootQuorumRequest"
1703
+ }
1704
+ }
1705
+ ],
1706
+ "tags": ["Root Quorum"],
1707
+ "x-readme": {
1708
+ "code-samples": [
1709
+ {
1710
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/update_root_quorum --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"UPDATE_ROOT_QUORUM\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"userIds\": \"'\"$USER_IDS\"'\",\n\t\t\"threshold\": $THRESHOLD\n\t}\n}'",
1711
+ "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1712
+ "language": "curl",
1713
+ "name": "Turnkey CLI"
1714
+ }
1715
+ ]
1716
+ }
1717
+ }
1718
+ },
1348
1719
  "/public/v1/submit/update_user_tag": {
1349
1720
  "post": {
1350
1721
  "summary": "Update User Tag",
@@ -1389,7 +1760,7 @@
1389
1760
  "x-readme": {
1390
1761
  "code-samples": [
1391
1762
  {
1392
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/user_tags/update --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_UPDATE_USER_TAG\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"userTagId\": \"'\"$USER_TAG_ID\"'\",\n\t\t\"userTagName\": \"\",\n\t\t\"addUserIds\": \"\",\n\t\t\"removeUserIds\": \"\"\n\t}\n}'",
1763
+ "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/update_user_tag --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_UPDATE_USER_TAG\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"userTagId\": \"'\"$USER_TAG_ID\"'\",\n\t\t\"userTagName\": \"\",\n\t\t\"addUserIds\": \"\",\n\t\t\"removeUserIds\": \"\"\n\t}\n}'",
1393
1764
  "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1394
1765
  "language": "curl",
1395
1766
  "name": "Turnkey CLI"
@@ -1398,6 +1769,38 @@
1398
1769
  }
1399
1770
  }
1400
1771
  },
1772
+ "/tkhq/api/v1/noop-codegen-anchor": {
1773
+ "post": {
1774
+ "summary": "This route does nothing and does not need an implementation, but please don't remove it.\nIt's used at compile time for generating extra OpenAPI/TypeScript types\nthat are not directly referenced in requests.",
1775
+ "operationId": "PublicApiService_NOOPCodegenAnchor",
1776
+ "responses": {
1777
+ "200": {
1778
+ "description": "A successful response.",
1779
+ "schema": {
1780
+ "$ref": "#/definitions/v1NOOPCodegenAnchorResponse"
1781
+ }
1782
+ },
1783
+ "403": {
1784
+ "description": "Returned when the user does not have permission to access the resource.",
1785
+ "schema": {}
1786
+ },
1787
+ "404": {
1788
+ "description": "Returned when the resource does not exist.",
1789
+ "schema": {
1790
+ "type": "string",
1791
+ "format": "string"
1792
+ }
1793
+ },
1794
+ "default": {
1795
+ "description": "An unexpected error response.",
1796
+ "schema": {
1797
+ "$ref": "#/definitions/rpcStatus"
1798
+ }
1799
+ }
1800
+ },
1801
+ "tags": ["PublicApiService"]
1802
+ }
1803
+ },
1401
1804
  "/tkhq/public/v1/query/get_private_key": {
1402
1805
  "post": {
1403
1806
  "summary": "Get Private Key",
@@ -1561,6 +1964,17 @@
1561
1964
  "type": "string",
1562
1965
  "enum": ["ACCESS_TYPE_WEB", "ACCESS_TYPE_API", "ACCESS_TYPE_ALL"]
1563
1966
  },
1967
+ "immutableactivityv1Address": {
1968
+ "type": "object",
1969
+ "properties": {
1970
+ "format": {
1971
+ "$ref": "#/definitions/immutableactivityv1AddressFormat"
1972
+ },
1973
+ "address": {
1974
+ "type": "string"
1975
+ }
1976
+ }
1977
+ },
1564
1978
  "immutableactivityv1AddressFormat": {
1565
1979
  "type": "string",
1566
1980
  "enum": [
@@ -1846,7 +2260,11 @@
1846
2260
  "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2",
1847
2261
  "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2",
1848
2262
  "ACTIVITY_TYPE_CREATE_USERS_V2",
1849
- "ACTIVITY_TYPE_ACCEPT_INVITATION_V2"
2263
+ "ACTIVITY_TYPE_ACCEPT_INVITATION_V2",
2264
+ "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION",
2265
+ "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2",
2266
+ "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS",
2267
+ "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2"
1850
2268
  ],
1851
2269
  "description": "Type of Activity, such as Add User, or Sign Transaction."
1852
2270
  },
@@ -2009,10 +2427,6 @@
2009
2427
  "type": "string",
2010
2428
  "description": "Identifier indicating the type of the Security Key."
2011
2429
  },
2012
- "userId": {
2013
- "type": "string",
2014
- "description": "Unique identifier for a given User."
2015
- },
2016
2430
  "credentialId": {
2017
2431
  "type": "string",
2018
2432
  "description": "Unique identifier for a WebAuthn credential."
@@ -2043,7 +2457,6 @@
2043
2457
  "transports",
2044
2458
  "attestationType",
2045
2459
  "aaguid",
2046
- "userId",
2047
2460
  "credentialId",
2048
2461
  "model",
2049
2462
  "credential",
@@ -2372,7 +2785,7 @@
2372
2785
  "organizationName": {
2373
2786
  "type": "string",
2374
2787
  "description": "Human-readable name for an Organization.",
2375
- "title": "@inject_tag: validate:\"required,tk_label_length\""
2788
+ "title": "@inject_tag: validate:\"required,tk_label,tk_label_length\""
2376
2789
  },
2377
2790
  "rootEmail": {
2378
2791
  "type": "string",
@@ -2525,6 +2938,27 @@
2525
2938
  },
2526
2939
  "required": ["privateKeyTagName", "privateKeyIds"]
2527
2940
  },
2941
+ "v1CreatePrivateKeyTagRequest": {
2942
+ "type": "object",
2943
+ "properties": {
2944
+ "type": {
2945
+ "type": "string",
2946
+ "enum": ["ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG"]
2947
+ },
2948
+ "timestampMs": {
2949
+ "type": "string",
2950
+ "description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
2951
+ },
2952
+ "organizationId": {
2953
+ "type": "string",
2954
+ "description": "Unique identifier for a given Organization."
2955
+ },
2956
+ "parameters": {
2957
+ "$ref": "#/definitions/v1CreatePrivateKeyTagIntent"
2958
+ }
2959
+ },
2960
+ "required": ["type", "timestampMs", "organizationId", "parameters"]
2961
+ },
2528
2962
  "v1CreatePrivateKeyTagResult": {
2529
2963
  "type": "object",
2530
2964
  "properties": {
@@ -2540,28 +2974,128 @@
2540
2974
  "description": "A list of Private Key IDs."
2541
2975
  }
2542
2976
  },
2543
- "required": ["privateKeyTagId", "privateKeyIds"]
2977
+ "required": ["privateKeyTagId", "privateKeyIds"]
2978
+ },
2979
+ "v1CreatePrivateKeysIntent": {
2980
+ "type": "object",
2981
+ "properties": {
2982
+ "privateKeys": {
2983
+ "type": "array",
2984
+ "items": {
2985
+ "$ref": "#/definitions/v1PrivateKeyParams"
2986
+ },
2987
+ "description": "A list of Private Keys.",
2988
+ "title": "@inject_tag: validate:\"dive,required\""
2989
+ }
2990
+ },
2991
+ "required": ["privateKeys"]
2992
+ },
2993
+ "v1CreatePrivateKeysIntentV2": {
2994
+ "type": "object",
2995
+ "properties": {
2996
+ "privateKeys": {
2997
+ "type": "array",
2998
+ "items": {
2999
+ "$ref": "#/definitions/v1PrivateKeyParams"
3000
+ },
3001
+ "description": "A list of Private Keys.",
3002
+ "title": "@inject_tag: validate:\"dive,required\""
3003
+ }
3004
+ },
3005
+ "required": ["privateKeys"]
3006
+ },
3007
+ "v1CreatePrivateKeysRequest": {
3008
+ "type": "object",
3009
+ "properties": {
3010
+ "type": {
3011
+ "type": "string",
3012
+ "enum": ["ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2"]
3013
+ },
3014
+ "timestampMs": {
3015
+ "type": "string",
3016
+ "description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
3017
+ },
3018
+ "organizationId": {
3019
+ "type": "string",
3020
+ "description": "Unique identifier for a given Organization."
3021
+ },
3022
+ "parameters": {
3023
+ "$ref": "#/definitions/v1CreatePrivateKeysIntentV2"
3024
+ }
3025
+ },
3026
+ "required": ["type", "timestampMs", "organizationId", "parameters"]
3027
+ },
3028
+ "v1CreatePrivateKeysResult": {
3029
+ "type": "object",
3030
+ "properties": {
3031
+ "privateKeyIds": {
3032
+ "type": "array",
3033
+ "items": {
3034
+ "type": "string"
3035
+ },
3036
+ "description": "A list of Private Key IDs."
3037
+ }
3038
+ },
3039
+ "required": ["privateKeyIds"]
3040
+ },
3041
+ "v1CreatePrivateKeysResultV2": {
3042
+ "type": "object",
3043
+ "properties": {
3044
+ "privateKeys": {
3045
+ "type": "array",
3046
+ "items": {
3047
+ "$ref": "#/definitions/v1PrivateKeyResult"
3048
+ },
3049
+ "description": "A list of Private Key IDs and addresses."
3050
+ }
3051
+ },
3052
+ "required": ["privateKeys"]
3053
+ },
3054
+ "v1CreateSubOrganizationIntent": {
3055
+ "type": "object",
3056
+ "properties": {
3057
+ "name": {
3058
+ "type": "string",
3059
+ "description": "Name for this sub-organization",
3060
+ "title": "@inject_tag: validate:\"omitempty,tk_label,tk_label_length\""
3061
+ },
3062
+ "rootAuthenticator": {
3063
+ "$ref": "#/definitions/v1AuthenticatorParamsV2"
3064
+ }
3065
+ },
3066
+ "required": ["name", "rootAuthenticator"]
2544
3067
  },
2545
- "v1CreatePrivateKeysIntent": {
3068
+ "v1CreateSubOrganizationIntentV2": {
2546
3069
  "type": "object",
2547
3070
  "properties": {
2548
- "privateKeys": {
3071
+ "subOrganizationName": {
3072
+ "type": "string",
3073
+ "description": "Name for this sub-organization",
3074
+ "title": "@inject_tag: validate:\"omitempty,tk_label,tk_label_length\""
3075
+ },
3076
+ "rootUsers": {
2549
3077
  "type": "array",
2550
3078
  "items": {
2551
- "$ref": "#/definitions/v1PrivateKeyParams"
3079
+ "$ref": "#/definitions/v1RootUserParams"
2552
3080
  },
2553
- "description": "A list of Private Keys.",
2554
- "title": "@inject_tag: validate:\"dive,required\""
3081
+ "description": "Root users to create within this sub-organization",
3082
+ "title": "@inject_tag: validate:\"required\""
3083
+ },
3084
+ "rootQuorumThreshold": {
3085
+ "type": "integer",
3086
+ "format": "int32",
3087
+ "description": "The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users",
3088
+ "title": "@inject_tag: validate:\"required\""
2555
3089
  }
2556
3090
  },
2557
- "required": ["privateKeys"]
3091
+ "required": ["subOrganizationName", "rootUsers", "rootQuorumThreshold"]
2558
3092
  },
2559
- "v1CreatePrivateKeysRequest": {
3093
+ "v1CreateSubOrganizationRequest": {
2560
3094
  "type": "object",
2561
3095
  "properties": {
2562
3096
  "type": {
2563
3097
  "type": "string",
2564
- "enum": ["ACTIVITY_TYPE_CREATE_PRIVATE_KEYS"]
3098
+ "enum": ["ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2"]
2565
3099
  },
2566
3100
  "timestampMs": {
2567
3101
  "type": "string",
@@ -2572,23 +3106,19 @@
2572
3106
  "description": "Unique identifier for a given Organization."
2573
3107
  },
2574
3108
  "parameters": {
2575
- "$ref": "#/definitions/v1CreatePrivateKeysIntent"
3109
+ "$ref": "#/definitions/v1CreateSubOrganizationIntentV2"
2576
3110
  }
2577
3111
  },
2578
3112
  "required": ["type", "timestampMs", "organizationId", "parameters"]
2579
3113
  },
2580
- "v1CreatePrivateKeysResult": {
3114
+ "v1CreateSubOrganizationResult": {
2581
3115
  "type": "object",
2582
3116
  "properties": {
2583
- "privateKeyIds": {
2584
- "type": "array",
2585
- "items": {
2586
- "type": "string"
2587
- },
2588
- "description": "A list of Private Key IDs."
3117
+ "subOrganizationId": {
3118
+ "type": "string"
2589
3119
  }
2590
3120
  },
2591
- "required": ["privateKeyIds"]
3121
+ "required": ["subOrganizationId"]
2592
3122
  },
2593
3123
  "v1CreateUserTagIntent": {
2594
3124
  "type": "object",
@@ -2609,6 +3139,27 @@
2609
3139
  },
2610
3140
  "required": ["userTagName", "userIds"]
2611
3141
  },
3142
+ "v1CreateUserTagRequest": {
3143
+ "type": "object",
3144
+ "properties": {
3145
+ "type": {
3146
+ "type": "string",
3147
+ "enum": ["ACTIVITY_TYPE_CREATE_USER_TAG"]
3148
+ },
3149
+ "timestampMs": {
3150
+ "type": "string",
3151
+ "description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
3152
+ },
3153
+ "organizationId": {
3154
+ "type": "string",
3155
+ "description": "Unique identifier for a given Organization."
3156
+ },
3157
+ "parameters": {
3158
+ "$ref": "#/definitions/v1CreateUserTagIntent"
3159
+ }
3160
+ },
3161
+ "required": ["type", "timestampMs", "organizationId", "parameters"]
3162
+ },
2612
3163
  "v1CreateUserTagResult": {
2613
3164
  "type": "object",
2614
3165
  "properties": {
@@ -3059,6 +3610,13 @@
3059
3610
  },
3060
3611
  "paginationOptions": {
3061
3612
  "$ref": "#/definitions/v1Pagination"
3613
+ },
3614
+ "filterByType": {
3615
+ "type": "array",
3616
+ "items": {
3617
+ "$ref": "#/definitions/v1ActivityType"
3618
+ },
3619
+ "description": "Array of Activity Types filtering which Activities will be listed in the response."
3062
3620
  }
3063
3621
  },
3064
3622
  "required": ["organizationId"]
@@ -3090,6 +3648,56 @@
3090
3648
  },
3091
3649
  "required": ["organizationId", "activityId"]
3092
3650
  },
3651
+ "v1GetAuthenticatorRequest": {
3652
+ "type": "object",
3653
+ "properties": {
3654
+ "organizationId": {
3655
+ "type": "string",
3656
+ "description": "Unique identifier for a given Organization."
3657
+ },
3658
+ "authenticatorId": {
3659
+ "type": "string",
3660
+ "description": "Unique identifier for a given Authenticator."
3661
+ }
3662
+ },
3663
+ "required": ["organizationId", "authenticatorId"]
3664
+ },
3665
+ "v1GetAuthenticatorResponse": {
3666
+ "type": "object",
3667
+ "properties": {
3668
+ "authenticator": {
3669
+ "$ref": "#/definitions/v1Authenticator"
3670
+ }
3671
+ },
3672
+ "required": ["authenticator"]
3673
+ },
3674
+ "v1GetAuthenticatorsRequest": {
3675
+ "type": "object",
3676
+ "properties": {
3677
+ "organizationId": {
3678
+ "type": "string",
3679
+ "description": "Unique identifier for a given Organization."
3680
+ },
3681
+ "userId": {
3682
+ "type": "string",
3683
+ "description": "Unique identifier for a given User."
3684
+ }
3685
+ },
3686
+ "required": ["organizationId", "userId"]
3687
+ },
3688
+ "v1GetAuthenticatorsResponse": {
3689
+ "type": "object",
3690
+ "properties": {
3691
+ "authenticators": {
3692
+ "type": "array",
3693
+ "items": {
3694
+ "$ref": "#/definitions/v1Authenticator"
3695
+ },
3696
+ "description": "A list of authenticators."
3697
+ }
3698
+ },
3699
+ "required": ["authenticators"]
3700
+ },
3093
3701
  "v1GetOrganizationRequest": {
3094
3702
  "type": "object",
3095
3703
  "properties": {
@@ -3399,6 +4007,18 @@
3399
4007
  },
3400
4008
  "createUsersIntentV2": {
3401
4009
  "$ref": "#/definitions/v1CreateUsersIntentV2"
4010
+ },
4011
+ "createSubOrganizationIntent": {
4012
+ "$ref": "#/definitions/v1CreateSubOrganizationIntent"
4013
+ },
4014
+ "createSubOrganizationIntentV2": {
4015
+ "$ref": "#/definitions/v1CreateSubOrganizationIntentV2"
4016
+ },
4017
+ "updateAllowedOriginsIntent": {
4018
+ "$ref": "#/definitions/v1UpdateAllowedOriginsIntent"
4019
+ },
4020
+ "createPrivateKeysIntentV2": {
4021
+ "$ref": "#/definitions/v1CreatePrivateKeysIntentV2"
3402
4022
  }
3403
4023
  },
3404
4024
  "description": "Intent object crafted by Turnkey based on the user request, used to assess the permissibility of an action.",
@@ -3501,6 +4121,15 @@
3501
4121
  "INVITATION_STATUS_REVOKED"
3502
4122
  ]
3503
4123
  },
4124
+ "v1NOOPCodegenAnchorResponse": {
4125
+ "type": "object",
4126
+ "properties": {
4127
+ "stamp": {
4128
+ "$ref": "#/definitions/v1WebAuthnStamp"
4129
+ }
4130
+ },
4131
+ "required": ["stamp"]
4132
+ },
3504
4133
  "v1OrganizationData": {
3505
4134
  "type": "object",
3506
4135
  "properties": {
@@ -3540,46 +4169,19 @@
3540
4169
  "$ref": "#/definitions/datav1Tag"
3541
4170
  }
3542
4171
  },
3543
- "deletedUsers": {
3544
- "type": "array",
3545
- "items": {
3546
- "$ref": "#/definitions/v1User"
3547
- }
3548
- },
3549
- "deletedPolicies": {
3550
- "type": "array",
3551
- "items": {
3552
- "$ref": "#/definitions/v1Policy"
3553
- }
3554
- },
3555
4172
  "disabledPrivateKeys": {
3556
4173
  "type": "array",
3557
4174
  "items": {
3558
4175
  "$ref": "#/definitions/v1PrivateKey"
3559
4176
  }
3560
4177
  },
3561
- "deletedInvitations": {
3562
- "type": "array",
3563
- "items": {
3564
- "$ref": "#/definitions/v1Invitation"
3565
- }
3566
- },
3567
- "deletedApiKeys": {
3568
- "type": "array",
3569
- "items": {
3570
- "$ref": "#/definitions/v1ApiKey"
3571
- }
3572
- },
3573
- "deletedAuthenticators": {
3574
- "type": "array",
3575
- "items": {
3576
- "$ref": "#/definitions/v1Authenticator"
3577
- }
4178
+ "rootQuorum": {
4179
+ "$ref": "#/definitions/v1Quorum"
3578
4180
  },
3579
- "deletedTags": {
4181
+ "allowedOrigins": {
3580
4182
  "type": "array",
3581
4183
  "items": {
3582
- "$ref": "#/definitions/datav1Tag"
4184
+ "type": "string"
3583
4185
  }
3584
4186
  }
3585
4187
  },
@@ -3741,6 +4343,20 @@
3741
4343
  "addressFormats"
3742
4344
  ]
3743
4345
  },
4346
+ "v1PrivateKeyResult": {
4347
+ "type": "object",
4348
+ "properties": {
4349
+ "privateKeyId": {
4350
+ "type": "string"
4351
+ },
4352
+ "addresses": {
4353
+ "type": "array",
4354
+ "items": {
4355
+ "$ref": "#/definitions/immutableactivityv1Address"
4356
+ }
4357
+ }
4358
+ }
4359
+ },
3744
4360
  "v1PublicKeyCredentialWithAttestation": {
3745
4361
  "type": "object",
3746
4362
  "properties": {
@@ -3770,6 +4386,24 @@
3770
4386
  },
3771
4387
  "required": ["id", "type", "rawId", "response", "clientExtensionResults"]
3772
4388
  },
4389
+ "v1Quorum": {
4390
+ "type": "object",
4391
+ "properties": {
4392
+ "threshold": {
4393
+ "type": "integer",
4394
+ "format": "int32",
4395
+ "description": "Count of unique approvals required to meet quorum."
4396
+ },
4397
+ "userIds": {
4398
+ "type": "array",
4399
+ "items": {
4400
+ "type": "string"
4401
+ },
4402
+ "description": "Unique identifiers of quorum set members."
4403
+ }
4404
+ },
4405
+ "required": ["threshold", "userIds"]
4406
+ },
3773
4407
  "v1RejectActivityIntent": {
3774
4408
  "type": "object",
3775
4409
  "properties": {
@@ -3888,10 +4522,51 @@
3888
4522
  },
3889
4523
  "updatePrivateKeyTagResult": {
3890
4524
  "$ref": "#/definitions/v1UpdatePrivateKeyTagResult"
4525
+ },
4526
+ "createSubOrganizationResult": {
4527
+ "$ref": "#/definitions/v1CreateSubOrganizationResult"
4528
+ },
4529
+ "updateAllowedOriginsResult": {
4530
+ "$ref": "#/definitions/v1UpdateAllowedOriginsResult"
4531
+ },
4532
+ "createPrivateKeysResultV2": {
4533
+ "$ref": "#/definitions/v1CreatePrivateKeysResultV2"
3891
4534
  }
3892
4535
  },
3893
4536
  "description": "Result of the intended action."
3894
4537
  },
4538
+ "v1RootUserParams": {
4539
+ "type": "object",
4540
+ "properties": {
4541
+ "userName": {
4542
+ "type": "string",
4543
+ "description": "Human-readable name for a User.",
4544
+ "title": "@inject_tag: validate:\"required,tk_label_length,tk_label\""
4545
+ },
4546
+ "userEmail": {
4547
+ "type": "string",
4548
+ "description": "The user's email address.",
4549
+ "title": "@inject_tag: validate:\"omitempty,email,tk_email\""
4550
+ },
4551
+ "apiKeys": {
4552
+ "type": "array",
4553
+ "items": {
4554
+ "$ref": "#/definitions/v1ApiKeyParams"
4555
+ },
4556
+ "description": "A list of API Key parameters.",
4557
+ "title": "@inject_tag: validate:\"dive\""
4558
+ },
4559
+ "authenticators": {
4560
+ "type": "array",
4561
+ "items": {
4562
+ "$ref": "#/definitions/v1AuthenticatorParamsV2"
4563
+ },
4564
+ "description": "A list of Authenticator parameters.",
4565
+ "title": "@inject_tag: validate:\"dive\""
4566
+ }
4567
+ },
4568
+ "required": ["userName", "apiKeys", "authenticators"]
4569
+ },
3895
4570
  "v1SelectorV2": {
3896
4571
  "type": "object",
3897
4572
  "properties": {
@@ -4110,6 +4785,44 @@
4110
4785
  },
4111
4786
  "required": ["seconds", "nanos"]
4112
4787
  },
4788
+ "v1UpdateAllowedOriginsIntent": {
4789
+ "type": "object",
4790
+ "properties": {
4791
+ "allowedOrigins": {
4792
+ "type": "array",
4793
+ "items": {
4794
+ "type": "string"
4795
+ },
4796
+ "description": "Additional origins requests are allowed from besides Turnkey origins",
4797
+ "title": "@inject_tag: validate:\"required\""
4798
+ }
4799
+ },
4800
+ "required": ["allowedOrigins"]
4801
+ },
4802
+ "v1UpdateAllowedOriginsRequest": {
4803
+ "type": "object",
4804
+ "properties": {
4805
+ "type": {
4806
+ "type": "string",
4807
+ "enum": ["ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS"]
4808
+ },
4809
+ "timestampMs": {
4810
+ "type": "string",
4811
+ "description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
4812
+ },
4813
+ "organizationId": {
4814
+ "type": "string",
4815
+ "description": "Unique identifier for a given Organization."
4816
+ },
4817
+ "parameters": {
4818
+ "$ref": "#/definitions/v1UpdateAllowedOriginsIntent"
4819
+ }
4820
+ },
4821
+ "required": ["type", "timestampMs", "organizationId", "parameters"]
4822
+ },
4823
+ "v1UpdateAllowedOriginsResult": {
4824
+ "type": "object"
4825
+ },
4113
4826
  "v1UpdatePrivateKeyTagIntent": {
4114
4827
  "type": "object",
4115
4828
  "properties": {
@@ -4188,11 +4901,32 @@
4188
4901
  "type": "string"
4189
4902
  },
4190
4903
  "description": "The unique identifiers of users who comprise the quorum set.",
4191
- "title": "@inject_tag: validate:\"required,uuid\""
4904
+ "title": "@inject_tag: validate:\"dive,uuid\""
4192
4905
  }
4193
4906
  },
4194
4907
  "required": ["threshold", "userIds"]
4195
4908
  },
4909
+ "v1UpdateRootQuorumRequest": {
4910
+ "type": "object",
4911
+ "properties": {
4912
+ "type": {
4913
+ "type": "string",
4914
+ "enum": ["ACTIVITY_TYPE_UPDATE_ROOT_QUORUM"]
4915
+ },
4916
+ "timestampMs": {
4917
+ "type": "string",
4918
+ "description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
4919
+ },
4920
+ "organizationId": {
4921
+ "type": "string",
4922
+ "description": "Unique identifier for a given Organization."
4923
+ },
4924
+ "parameters": {
4925
+ "$ref": "#/definitions/v1UpdateRootQuorumIntent"
4926
+ }
4927
+ },
4928
+ "required": ["type", "timestampMs", "organizationId", "parameters"]
4929
+ },
4196
4930
  "v1UpdateRootQuorumResult": {
4197
4931
  "type": "object"
4198
4932
  },
@@ -4470,6 +5204,34 @@
4470
5204
  "scheme",
4471
5205
  "createdAt"
4472
5206
  ]
5207
+ },
5208
+ "v1WebAuthnStamp": {
5209
+ "type": "object",
5210
+ "properties": {
5211
+ "credentialId": {
5212
+ "type": "string",
5213
+ "description": "A base64 url encoded Unique identifier for a given credential."
5214
+ },
5215
+ "clientDataJson": {
5216
+ "type": "string",
5217
+ "description": "A base64 encoded payload containing metadata about the signing context and the challenge."
5218
+ },
5219
+ "authenticatorData": {
5220
+ "type": "string",
5221
+ "description": "A base64 encoded payload containing metadata about the authenticator."
5222
+ },
5223
+ "signature": {
5224
+ "type": "string",
5225
+ "description": "The base64 url encoded signature bytes contained within the WebAuthn assertion response."
5226
+ }
5227
+ },
5228
+ "title": "We expect this to be passed in as a JSON-encoded, then base64-encoded string within a X-Stamp-Webauthn header",
5229
+ "required": [
5230
+ "credentialId",
5231
+ "clientDataJson",
5232
+ "authenticatorData",
5233
+ "signature"
5234
+ ]
4473
5235
  }
4474
5236
  },
4475
5237
  "securityDefinitions": {