@turnkey/http 0.18.1 → 1.0.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.
@@ -59,17 +59,7 @@
59
59
  }
60
60
  }
61
61
  ],
62
- "tags": ["Activities"],
63
- "x-readme": {
64
- "code-samples": [
65
- {
66
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_activity --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"activityId\": \"\"\n}'",
67
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
68
- "language": "curl",
69
- "name": "Turnkey CLI"
70
- }
71
- ]
72
- }
62
+ "tags": ["Activities"]
73
63
  }
74
64
  },
75
65
  "/public/v1/query/get_authenticator": {
@@ -112,17 +102,7 @@
112
102
  }
113
103
  }
114
104
  ],
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
- }
105
+ "tags": ["Authenticators"]
126
106
  }
127
107
  },
128
108
  "/public/v1/query/get_authenticators": {
@@ -165,17 +145,7 @@
165
145
  }
166
146
  }
167
147
  ],
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
- }
148
+ "tags": ["Authenticators"]
179
149
  }
180
150
  },
181
151
  "/public/v1/query/get_organization": {
@@ -218,17 +188,7 @@
218
188
  }
219
189
  }
220
190
  ],
221
- "tags": ["Organizations"],
222
- "x-readme": {
223
- "code-samples": [
224
- {
225
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_organization --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
226
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
227
- "language": "curl",
228
- "name": "Turnkey CLI"
229
- }
230
- ]
231
- }
191
+ "tags": ["Organizations"]
232
192
  }
233
193
  },
234
194
  "/public/v1/query/get_policy": {
@@ -271,17 +231,7 @@
271
231
  }
272
232
  }
273
233
  ],
274
- "tags": ["Policies"],
275
- "x-readme": {
276
- "code-samples": [
277
- {
278
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_policy --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"policyId\": \"\"\n}'",
279
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
280
- "language": "curl",
281
- "name": "Turnkey CLI"
282
- }
283
- ]
284
- }
234
+ "tags": ["Policies"]
285
235
  }
286
236
  },
287
237
  "/public/v1/query/get_private_key": {
@@ -324,17 +274,7 @@
324
274
  }
325
275
  }
326
276
  ],
327
- "tags": ["Private Keys"],
328
- "x-readme": {
329
- "code-samples": [
330
- {
331
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_private_key --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"privateKeyId\": \"'\"$PRIVATE_KEY_ID\"'\"\n}'",
332
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
333
- "language": "curl",
334
- "name": "Turnkey CLI"
335
- }
336
- ]
337
- }
277
+ "tags": ["Private Keys"]
338
278
  }
339
279
  },
340
280
  "/public/v1/query/get_user": {
@@ -377,17 +317,7 @@
377
317
  }
378
318
  }
379
319
  ],
380
- "tags": ["Users"],
381
- "x-readme": {
382
- "code-samples": [
383
- {
384
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_user --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"userId\": \"\"\n}'",
385
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
386
- "language": "curl",
387
- "name": "Turnkey CLI"
388
- }
389
- ]
390
- }
320
+ "tags": ["Users"]
391
321
  }
392
322
  },
393
323
  "/public/v1/query/list_activities": {
@@ -430,17 +360,7 @@
430
360
  }
431
361
  }
432
362
  ],
433
- "tags": ["Activities"],
434
- "x-readme": {
435
- "code-samples": [
436
- {
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}'",
438
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
439
- "language": "curl",
440
- "name": "Turnkey CLI"
441
- }
442
- ]
443
- }
363
+ "tags": ["Activities"]
444
364
  }
445
365
  },
446
366
  "/public/v1/query/list_policies": {
@@ -483,17 +403,7 @@
483
403
  }
484
404
  }
485
405
  ],
486
- "tags": ["Policies"],
487
- "x-readme": {
488
- "code-samples": [
489
- {
490
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_policies --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
491
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
492
- "language": "curl",
493
- "name": "Turnkey CLI"
494
- }
495
- ]
496
- }
406
+ "tags": ["Policies"]
497
407
  }
498
408
  },
499
409
  "/public/v1/query/list_private_keys": {
@@ -536,17 +446,7 @@
536
446
  }
537
447
  }
538
448
  ],
539
- "tags": ["Private Keys"],
540
- "x-readme": {
541
- "code-samples": [
542
- {
543
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_private_keys --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
544
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
545
- "language": "curl",
546
- "name": "Turnkey CLI"
547
- }
548
- ]
549
- }
449
+ "tags": ["Private Keys"]
550
450
  }
551
451
  },
552
452
  "/public/v1/query/list_users": {
@@ -589,17 +489,7 @@
589
489
  }
590
490
  }
591
491
  ],
592
- "tags": ["Users"],
593
- "x-readme": {
594
- "code-samples": [
595
- {
596
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_users --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
597
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
598
- "language": "curl",
599
- "name": "Turnkey CLI"
600
- }
601
- ]
602
- }
492
+ "tags": ["Users"]
603
493
  }
604
494
  },
605
495
  "/public/v1/query/whoami": {
@@ -642,17 +532,7 @@
642
532
  }
643
533
  }
644
534
  ],
645
- "tags": ["Users"],
646
- "x-readme": {
647
- "code-samples": [
648
- {
649
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/whoami --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
650
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
651
- "language": "curl",
652
- "name": "Turnkey CLI"
653
- }
654
- ]
655
- }
535
+ "tags": ["Users"]
656
536
  }
657
537
  },
658
538
  "/public/v1/submit/approve_activity": {
@@ -695,17 +575,7 @@
695
575
  }
696
576
  }
697
577
  ],
698
- "tags": ["Activities"],
699
- "x-readme": {
700
- "code-samples": [
701
- {
702
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/approve_activity --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_APPROVE_ACTIVITY\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"fingerprint\": \"\"\n\t}\n}'",
703
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
704
- "language": "curl",
705
- "name": "Turnkey CLI"
706
- }
707
- ]
708
- }
578
+ "tags": ["Activities"]
709
579
  }
710
580
  },
711
581
  "/public/v1/submit/create_api_keys": {
@@ -748,17 +618,7 @@
748
618
  }
749
619
  }
750
620
  ],
751
- "tags": ["Users"],
752
- "x-readme": {
753
- "code-samples": [
754
- {
755
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_api_keys --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_API_KEYS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"apiKeys\": [{\n\t\t\t\"apiKeyName\": \"\",\n\t\t\t\"publicKey\": \"\"\n\t\t}],\n\t\t\"userId\": \"\"\n\t}\n}'",
756
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
757
- "language": "curl",
758
- "name": "Turnkey CLI"
759
- }
760
- ]
761
- }
621
+ "tags": ["Users"]
762
622
  }
763
623
  },
764
624
  "/public/v1/submit/create_api_only_users": {
@@ -801,17 +661,7 @@
801
661
  }
802
662
  }
803
663
  ],
804
- "tags": ["Users"],
805
- "x-readme": {
806
- "code-samples": [
807
- {
808
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_api_only_users --body '{\n\t\"timestampMs\": \"$TIMESTAMP_IN_MILLISECONDS\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_API_ONLY_USERS\",\n\t\"organizationId\": \"$ORGANIZATION_ID\",\n\t\"parameters\": {\n\t\t\"api_only_users\": [{\n\t\t\t\"userName\": \"\",\n\t\t\t\"userEmail\": \"\",\n\t\t\t\"userTags\": \"[]\", \n\t\t\t\"apiKeys\": [\n\t\t\t\t{\"publicKey\": \"public-key\",\"apiKeyName\": \"test\"}\n\t\t\t]}'",
809
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
810
- "language": "curl",
811
- "name": "Turnkey CLI"
812
- }
813
- ]
814
- }
664
+ "tags": ["Users"]
815
665
  }
816
666
  },
817
667
  "/public/v1/submit/create_authenticators": {
@@ -854,17 +704,7 @@
854
704
  }
855
705
  }
856
706
  ],
857
- "tags": ["Authenticators"],
858
- "x-readme": {
859
- "code-samples": [
860
- {
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'",
862
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
863
- "language": "curl",
864
- "name": "Turnkey CLI"
865
- }
866
- ]
867
- }
707
+ "tags": ["Authenticators"]
868
708
  }
869
709
  },
870
710
  "/public/v1/submit/create_invitations": {
@@ -907,17 +747,7 @@
907
747
  }
908
748
  }
909
749
  ],
910
- "tags": ["Organizations"],
911
- "x-readme": {
912
- "code-samples": [
913
- {
914
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_invitations --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_INVITATIONS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"invitations\": [{\n\t\t\t\"userName\": \"\",\n\t\t\t\"userEmail\": \"\",\n\t\t\t\"receiverUserTags\": \"\",\n\t\t\t\"accessType\": \"\",\n\t\t\t\"senderUserId\": \"\"\n\t\t}]\n\t}\n}'",
915
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
916
- "language": "curl",
917
- "name": "Turnkey CLI"
918
- }
919
- ]
920
- }
750
+ "tags": ["Invitations"]
921
751
  }
922
752
  },
923
753
  "/public/v1/submit/create_policy": {
@@ -960,22 +790,12 @@
960
790
  }
961
791
  }
962
792
  ],
963
- "tags": ["Policies"],
964
- "x-readme": {
965
- "code-samples": [
966
- {
967
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_policy --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_POLICY\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"policyName\": \"\",\n\t\t\"effect\": \"\",\n\t\t\"notes\": \"\"\n\t}\n}'",
968
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
969
- "language": "curl",
970
- "name": "Turnkey CLI"
971
- }
972
- ]
973
- }
793
+ "tags": ["Policies"]
974
794
  }
975
795
  },
976
796
  "/public/v1/submit/create_private_key_tag": {
977
797
  "post": {
978
- "summary": "Create User Tag",
798
+ "summary": "Create Private Key Tag",
979
799
  "description": "Create a private key tag and add it to private keys.",
980
800
  "operationId": "PublicApiService_CreatePrivateKeyTag",
981
801
  "responses": {
@@ -1013,17 +833,7 @@
1013
833
  }
1014
834
  }
1015
835
  ],
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
- }
836
+ "tags": ["Private Keys"]
1027
837
  }
1028
838
  },
1029
839
  "/public/v1/submit/create_private_keys": {
@@ -1066,17 +876,7 @@
1066
876
  }
1067
877
  }
1068
878
  ],
1069
- "tags": ["Private Keys"],
1070
- "x-readme": {
1071
- "code-samples": [
1072
- {
1073
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_private_keys --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_PRIVATE_KEYS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"privateKeys\": [{\n\t\t\t\"privateKeyName\": \"\",\n\t\t\t\"curve\": \"\",\n\t\t\t\"privateKeyTags\": \"\",\n\t\t\t\"addressFormats\": \"\"\n\t\t}]\n\t}\n}'",
1074
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1075
- "language": "curl",
1076
- "name": "Turnkey CLI"
1077
- }
1078
- ]
1079
- }
879
+ "tags": ["Private Keys"]
1080
880
  }
1081
881
  },
1082
882
  "/public/v1/submit/create_sub_organization": {
@@ -1119,17 +919,7 @@
1119
919
  }
1120
920
  }
1121
921
  ],
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
- }
922
+ "tags": ["Organizations"]
1133
923
  }
1134
924
  },
1135
925
  "/public/v1/submit/create_user_tag": {
@@ -1172,17 +962,7 @@
1172
962
  }
1173
963
  }
1174
964
  ],
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
- }
965
+ "tags": ["Users"]
1186
966
  }
1187
967
  },
1188
968
  "/public/v1/submit/create_users": {
@@ -1226,17 +1006,7 @@
1226
1006
  }
1227
1007
  ],
1228
1008
  "tags": ["Users"],
1229
- "deprecated": true,
1230
- "x-readme": {
1231
- "code-samples": [
1232
- {
1233
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_users --body '{\n\t\"timestampMs\": \"$TIMESTAMP_IN_MILLISECONDS\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_USERS\",\n\t\"organizationId\": \"$ORGANIZATION_ID\",\n\t\"parameters\": {\n\t\t\"users\": [{\n\t\t\t\"userName\": \"\",\n\t\t\t\"userEmail\": \"\",\n\t\t\t\"accessType\": \"ACCESS_TYPE_API\",\n\t\t\t\"userTags\": \"[]\", \n\t\t\t\"apiKeys\": [\n\t\t\t\t{\"publicKey\": \"public-key\",\"apiKeyName\": \"test\"}\n\t\t\t]}]}'",
1234
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1235
- "language": "curl",
1236
- "name": "Turnkey CLI"
1237
- }
1238
- ]
1239
- }
1009
+ "deprecated": true
1240
1010
  }
1241
1011
  },
1242
1012
  "/public/v1/submit/delete_api_keys": {
@@ -1279,17 +1049,50 @@
1279
1049
  }
1280
1050
  }
1281
1051
  ],
1282
- "tags": ["Users"],
1283
- "x-readme": {
1284
- "code-samples": [
1285
- {
1286
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/delete_api_keys --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_DELETE_API_KEYS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"apiKeyIds\": [],\n\t\t\"userId\": \"\"\n\t}\n}'",
1287
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1288
- "language": "curl",
1289
- "name": "Turnkey CLI"
1052
+ "tags": ["Users"]
1053
+ }
1054
+ },
1055
+ "/public/v1/submit/delete_authenticators": {
1056
+ "post": {
1057
+ "summary": "Delete Authenticators",
1058
+ "description": "Remove authenticators from a User",
1059
+ "operationId": "PublicApiService_DeleteAuthenticators",
1060
+ "responses": {
1061
+ "200": {
1062
+ "description": "A successful response.",
1063
+ "schema": {
1064
+ "$ref": "#/definitions/v1ActivityResponse"
1290
1065
  }
1291
- ]
1292
- }
1066
+ },
1067
+ "403": {
1068
+ "description": "Returned when the user does not have permission to access the resource.",
1069
+ "schema": {}
1070
+ },
1071
+ "404": {
1072
+ "description": "Returned when the resource does not exist.",
1073
+ "schema": {
1074
+ "type": "string",
1075
+ "format": "string"
1076
+ }
1077
+ },
1078
+ "default": {
1079
+ "description": "An unexpected error response.",
1080
+ "schema": {
1081
+ "$ref": "#/definitions/rpcStatus"
1082
+ }
1083
+ }
1084
+ },
1085
+ "parameters": [
1086
+ {
1087
+ "name": "body",
1088
+ "in": "body",
1089
+ "required": true,
1090
+ "schema": {
1091
+ "$ref": "#/definitions/v1DeleteAuthenticatorsRequest"
1092
+ }
1093
+ }
1094
+ ],
1095
+ "tags": ["Authenticators"]
1293
1096
  }
1294
1097
  },
1295
1098
  "/public/v1/submit/delete_invitations": {
@@ -1332,17 +1135,7 @@
1332
1135
  }
1333
1136
  }
1334
1137
  ],
1335
- "tags": ["Organizations"],
1336
- "x-readme": {
1337
- "code-samples": [
1338
- {
1339
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/delete_invitation --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_DELETE_INVITATION\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"invitationId\": \"\"\n\t}\n}'",
1340
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1341
- "language": "curl",
1342
- "name": "Turnkey CLI"
1343
- }
1344
- ]
1345
- }
1138
+ "tags": ["Invitations"]
1346
1139
  }
1347
1140
  },
1348
1141
  "/public/v1/submit/delete_policy": {
@@ -1385,17 +1178,7 @@
1385
1178
  }
1386
1179
  }
1387
1180
  ],
1388
- "tags": ["Policies"],
1389
- "x-readme": {
1390
- "code-samples": [
1391
- {
1392
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/delete_policy --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_DELETE_POLICY\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"policyId\": \"\"\n\t}\n}'",
1393
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1394
- "language": "curl",
1395
- "name": "Turnkey CLI"
1396
- }
1397
- ]
1398
- }
1181
+ "tags": ["Policies"]
1399
1182
  }
1400
1183
  },
1401
1184
  "/public/v1/submit/reject_activity": {
@@ -1438,17 +1221,7 @@
1438
1221
  }
1439
1222
  }
1440
1223
  ],
1441
- "tags": ["Activities"],
1442
- "x-readme": {
1443
- "code-samples": [
1444
- {
1445
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/reject_activity --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_REJECT_ACTIVITY\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"fingerprint\": \"\"\n\t}\n}'",
1446
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1447
- "language": "curl",
1448
- "name": "Turnkey CLI"
1449
- }
1450
- ]
1451
- }
1224
+ "tags": ["Activities"]
1452
1225
  }
1453
1226
  },
1454
1227
  "/public/v1/submit/sign_raw_payload": {
@@ -1491,17 +1264,7 @@
1491
1264
  }
1492
1265
  }
1493
1266
  ],
1494
- "tags": ["Private Keys"],
1495
- "x-readme": {
1496
- "code-samples": [
1497
- {
1498
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/sign_raw_payload --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_SIGN_RAW_PAYLOAD\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"privateKeyId\": \"'\"$PRIVATE_KEY_ID\"'\",\n\t\t\"encoding\": \"PAYLOAD_ENCODING_TEXT_UTF8\",\n\t\t\"payload\": \"\",\n\t\t\"hashFunction\": \"HASH_FUNCTION_KECCAK256\"\n\t}\n}'",
1499
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1500
- "language": "curl",
1501
- "name": "Turnkey CLI"
1502
- }
1503
- ]
1504
- }
1267
+ "tags": ["Private Keys"]
1505
1268
  }
1506
1269
  },
1507
1270
  "/public/v1/submit/sign_transaction": {
@@ -1544,23 +1307,13 @@
1544
1307
  }
1545
1308
  }
1546
1309
  ],
1547
- "tags": ["Private Keys"],
1548
- "x-readme": {
1549
- "code-samples": [
1550
- {
1551
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/sign_transaction --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_SIGN_TRANSACTION\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"privateKeyId\": \"'\"$PRIVATE_KEY_ID\"'\",\n\t\t\"unsignedTransaction\": \"\",\n\t\t\"type\": \"\"\n\t}\n}'",
1552
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1553
- "language": "curl",
1554
- "name": "Turnkey CLI"
1555
- }
1556
- ]
1557
- }
1310
+ "tags": ["Private Keys"]
1558
1311
  }
1559
1312
  },
1560
1313
  "/public/v1/submit/update_allowed_origins": {
1561
1314
  "post": {
1562
- "summary": "Update the allowable origins",
1563
- "description": "Update the additional allowable origins for requests besides Turnkey origins",
1315
+ "summary": "Update Allowable Origins",
1316
+ "description": "Update the allowable origins for credentials and requests",
1564
1317
  "operationId": "PublicApiService_UpdateAllowedOrigins",
1565
1318
  "responses": {
1566
1319
  "200": {
@@ -1597,24 +1350,14 @@
1597
1350
  }
1598
1351
  }
1599
1352
  ],
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
- }
1353
+ "tags": ["Organizations"]
1611
1354
  }
1612
1355
  },
1613
- "/public/v1/submit/update_private_key_tag": {
1356
+ "/public/v1/submit/update_policy": {
1614
1357
  "post": {
1615
- "summary": "Update Private Key Tag",
1616
- "description": "Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.",
1617
- "operationId": "PublicApiService_UpdatePrivateKeyTag",
1358
+ "summary": "Update Policy",
1359
+ "description": "Update an existing Policy",
1360
+ "operationId": "PublicApiService_UpdatePolicy",
1618
1361
  "responses": {
1619
1362
  "200": {
1620
1363
  "description": "A successful response.",
@@ -1646,28 +1389,18 @@
1646
1389
  "in": "body",
1647
1390
  "required": true,
1648
1391
  "schema": {
1649
- "$ref": "#/definitions/v1UpdatePrivateKeyTagRequest"
1392
+ "$ref": "#/definitions/v1UpdatePolicyRequest"
1650
1393
  }
1651
1394
  }
1652
1395
  ],
1653
- "tags": ["Private Key Tags"],
1654
- "x-readme": {
1655
- "code-samples": [
1656
- {
1657
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/private_key_tags/update --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"privateKeyTagId\": \"'\"$PRIVATE_KEY_TAG_ID\"'\",\n\t\t\"privateKeyTagName\": \"\",\n\t\t\"addPrivateKeyTagIds\": \"\",\n\t\t\"removePrivateKeyTagIds\": \"\"\n\t}\n}'",
1658
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1659
- "language": "curl",
1660
- "name": "Turnkey CLI"
1661
- }
1662
- ]
1663
- }
1396
+ "tags": ["Policies"]
1664
1397
  }
1665
1398
  },
1666
- "/public/v1/submit/update_root_quorum": {
1399
+ "/public/v1/submit/update_private_key_tag": {
1667
1400
  "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",
1401
+ "summary": "Update Private Key Tag",
1402
+ "description": "Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.",
1403
+ "operationId": "PublicApiService_UpdatePrivateKeyTag",
1671
1404
  "responses": {
1672
1405
  "200": {
1673
1406
  "description": "A successful response.",
@@ -1699,28 +1432,18 @@
1699
1432
  "in": "body",
1700
1433
  "required": true,
1701
1434
  "schema": {
1702
- "$ref": "#/definitions/v1UpdateRootQuorumRequest"
1435
+ "$ref": "#/definitions/v1UpdatePrivateKeyTagRequest"
1703
1436
  }
1704
1437
  }
1705
1438
  ],
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
- }
1439
+ "tags": ["Private Keys"]
1717
1440
  }
1718
1441
  },
1719
- "/public/v1/submit/update_user_tag": {
1442
+ "/public/v1/submit/update_root_quorum": {
1720
1443
  "post": {
1721
- "summary": "Update User Tag",
1722
- "description": "Update human-readable name or associated users. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.",
1723
- "operationId": "PublicApiService_UpdateUserTag",
1444
+ "summary": "Update Root Quorum",
1445
+ "description": "Set the threshold and members of the root quorum. This must be approved by the current root quorum.",
1446
+ "operationId": "PublicApiService_UpdateRootQuorum",
1724
1447
  "responses": {
1725
1448
  "200": {
1726
1449
  "description": "A successful response.",
@@ -1752,32 +1475,23 @@
1752
1475
  "in": "body",
1753
1476
  "required": true,
1754
1477
  "schema": {
1755
- "$ref": "#/definitions/v1UpdateUserTagRequest"
1478
+ "$ref": "#/definitions/v1UpdateRootQuorumRequest"
1756
1479
  }
1757
1480
  }
1758
1481
  ],
1759
- "tags": ["User Tags"],
1760
- "x-readme": {
1761
- "code-samples": [
1762
- {
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}'",
1764
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1765
- "language": "curl",
1766
- "name": "Turnkey CLI"
1767
- }
1768
- ]
1769
- }
1482
+ "tags": ["Organizations"]
1770
1483
  }
1771
1484
  },
1772
- "/tkhq/api/v1/noop-codegen-anchor": {
1485
+ "/public/v1/submit/update_user_tag": {
1773
1486
  "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",
1487
+ "summary": "Update User Tag",
1488
+ "description": "Update human-readable name or associated users. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.",
1489
+ "operationId": "PublicApiService_UpdateUserTag",
1776
1490
  "responses": {
1777
1491
  "200": {
1778
1492
  "description": "A successful response.",
1779
1493
  "schema": {
1780
- "$ref": "#/definitions/v1NOOPCodegenAnchorResponse"
1494
+ "$ref": "#/definitions/v1ActivityResponse"
1781
1495
  }
1782
1496
  },
1783
1497
  "403": {
@@ -1798,19 +1512,28 @@
1798
1512
  }
1799
1513
  }
1800
1514
  },
1801
- "tags": ["PublicApiService"]
1515
+ "parameters": [
1516
+ {
1517
+ "name": "body",
1518
+ "in": "body",
1519
+ "required": true,
1520
+ "schema": {
1521
+ "$ref": "#/definitions/v1UpdateUserTagRequest"
1522
+ }
1523
+ }
1524
+ ],
1525
+ "tags": ["Users"]
1802
1526
  }
1803
1527
  },
1804
- "/tkhq/public/v1/query/get_private_key": {
1528
+ "/tkhq/api/v1/noop-codegen-anchor": {
1805
1529
  "post": {
1806
- "summary": "Get Private Key",
1807
- "description": "Get details about a Private Key",
1808
- "operationId": "PublicApiService_GetPrivateKeyBackwardsCompat",
1530
+ "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.",
1531
+ "operationId": "PublicApiService_NOOPCodegenAnchor",
1809
1532
  "responses": {
1810
1533
  "200": {
1811
1534
  "description": "A successful response.",
1812
1535
  "schema": {
1813
- "$ref": "#/definitions/v1GetPrivateKeyResponse"
1536
+ "$ref": "#/definitions/v1NOOPCodegenAnchorResponse"
1814
1537
  }
1815
1538
  },
1816
1539
  "403": {
@@ -1831,28 +1554,7 @@
1831
1554
  }
1832
1555
  }
1833
1556
  },
1834
- "parameters": [
1835
- {
1836
- "name": "body",
1837
- "in": "body",
1838
- "required": true,
1839
- "schema": {
1840
- "$ref": "#/definitions/v1GetPrivateKeyRequest"
1841
- }
1842
- }
1843
- ],
1844
- "tags": ["Private Keys"],
1845
- "deprecated": true,
1846
- "x-readme": {
1847
- "code-samples": [
1848
- {
1849
- "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_private_key --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"privateKeyId\": \"'\"$PRIVATE_KEY_ID\"'\"\n}'",
1850
- "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
1851
- "language": "curl",
1852
- "name": "Turnkey CLI"
1853
- }
1854
- ]
1855
- }
1557
+ "tags": ["PublicApiService"]
1856
1558
  }
1857
1559
  }
1858
1560
  },
@@ -2264,7 +1966,8 @@
2264
1966
  "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION",
2265
1967
  "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2",
2266
1968
  "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS",
2267
- "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2"
1969
+ "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2",
1970
+ "ACTIVITY_TYPE_UPDATE_POLICY"
2268
1971
  ],
2269
1972
  "description": "Type of Activity, such as Add User, or Sign Transaction."
2270
1973
  },
@@ -3340,6 +3043,27 @@
3340
3043
  },
3341
3044
  "required": ["userId", "authenticatorIds"]
3342
3045
  },
3046
+ "v1DeleteAuthenticatorsRequest": {
3047
+ "type": "object",
3048
+ "properties": {
3049
+ "type": {
3050
+ "type": "string",
3051
+ "enum": ["ACTIVITY_TYPE_DELETE_AUTHENTICATORS"]
3052
+ },
3053
+ "timestampMs": {
3054
+ "type": "string",
3055
+ "description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
3056
+ },
3057
+ "organizationId": {
3058
+ "type": "string",
3059
+ "description": "Unique identifier for a given Organization."
3060
+ },
3061
+ "parameters": {
3062
+ "$ref": "#/definitions/v1DeleteAuthenticatorsIntent"
3063
+ }
3064
+ },
3065
+ "required": ["type", "timestampMs", "organizationId", "parameters"]
3066
+ },
3343
3067
  "v1DeleteAuthenticatorsResult": {
3344
3068
  "type": "object",
3345
3069
  "properties": {
@@ -4019,6 +3743,9 @@
4019
3743
  },
4020
3744
  "createPrivateKeysIntentV2": {
4021
3745
  "$ref": "#/definitions/v1CreatePrivateKeysIntentV2"
3746
+ },
3747
+ "updatePolicyIntent": {
3748
+ "$ref": "#/definitions/v1UpdatePolicyIntent"
4022
3749
  }
4023
3750
  },
4024
3751
  "description": "Intent object crafted by Turnkey based on the user request, used to assess the permissibility of an action.",
@@ -4531,6 +4258,9 @@
4531
4258
  },
4532
4259
  "createPrivateKeysResultV2": {
4533
4260
  "$ref": "#/definitions/v1CreatePrivateKeysResultV2"
4261
+ },
4262
+ "updatePolicyResult": {
4263
+ "$ref": "#/definitions/v1UpdatePolicyResult"
4534
4264
  }
4535
4265
  },
4536
4266
  "description": "Result of the intended action."
@@ -4823,6 +4553,68 @@
4823
4553
  "v1UpdateAllowedOriginsResult": {
4824
4554
  "type": "object"
4825
4555
  },
4556
+ "v1UpdatePolicyIntent": {
4557
+ "type": "object",
4558
+ "properties": {
4559
+ "policyId": {
4560
+ "type": "string",
4561
+ "description": "Unique identifier for a given Policy.",
4562
+ "title": "@inject_tag: validate:\"uuid\""
4563
+ },
4564
+ "policyName": {
4565
+ "type": "string",
4566
+ "description": "Human-readable name for a Policy.",
4567
+ "title": "@inject_tag: validate:\"omitempty,tk_label,tk_label_length\""
4568
+ },
4569
+ "policyEffect": {
4570
+ "$ref": "#/definitions/immutableactivityv1Effect"
4571
+ },
4572
+ "policyCondition": {
4573
+ "type": "string",
4574
+ "description": "The condition expression that triggers the Effect (optional)."
4575
+ },
4576
+ "policyConsensus": {
4577
+ "type": "string",
4578
+ "description": "The consensus expression that triggers the Effect (optional)."
4579
+ },
4580
+ "policyNotes": {
4581
+ "type": "string",
4582
+ "description": "Accompanying notes for a Policy (optional)."
4583
+ }
4584
+ },
4585
+ "required": ["policyId"]
4586
+ },
4587
+ "v1UpdatePolicyRequest": {
4588
+ "type": "object",
4589
+ "properties": {
4590
+ "type": {
4591
+ "type": "string",
4592
+ "enum": ["ACTIVITY_TYPE_UPDATE_POLICY"]
4593
+ },
4594
+ "timestampMs": {
4595
+ "type": "string",
4596
+ "description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
4597
+ },
4598
+ "organizationId": {
4599
+ "type": "string",
4600
+ "description": "Unique identifier for a given Organization."
4601
+ },
4602
+ "parameters": {
4603
+ "$ref": "#/definitions/v1UpdatePolicyIntent"
4604
+ }
4605
+ },
4606
+ "required": ["type", "timestampMs", "organizationId", "parameters"]
4607
+ },
4608
+ "v1UpdatePolicyResult": {
4609
+ "type": "object",
4610
+ "properties": {
4611
+ "policyId": {
4612
+ "type": "string",
4613
+ "description": "Unique identifier for a given Policy."
4614
+ }
4615
+ },
4616
+ "required": ["policyId"]
4617
+ },
4826
4618
  "v1UpdatePrivateKeyTagIntent": {
4827
4619
  "type": "object",
4828
4620
  "properties": {
@@ -5245,10 +5037,5 @@
5245
5037
  {
5246
5038
  "ApiKeyAuth": []
5247
5039
  }
5248
- ],
5249
- "x-readme": {
5250
- "explorer-enabled": true,
5251
- "proxy-enabled": true,
5252
- "samples-languages": ["curl", "javascript"]
5253
- }
5040
+ ]
5254
5041
  }