@turnkey/http 0.15.0 → 0.17.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.
- package/CHANGELOG.md +17 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +2357 -296
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +70 -3
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.swagger.json +459 -10
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +256 -12
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -178,6 +178,59 @@
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
|
+
"/public/v1/query/get_private_key": {
|
|
182
|
+
"post": {
|
|
183
|
+
"summary": "Get Private Key",
|
|
184
|
+
"description": "Get details about a Private Key",
|
|
185
|
+
"operationId": "PublicApiService_GetPrivateKey",
|
|
186
|
+
"responses": {
|
|
187
|
+
"200": {
|
|
188
|
+
"description": "A successful response.",
|
|
189
|
+
"schema": {
|
|
190
|
+
"$ref": "#/definitions/v1GetPrivateKeyResponse"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"403": {
|
|
194
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
195
|
+
"schema": {}
|
|
196
|
+
},
|
|
197
|
+
"404": {
|
|
198
|
+
"description": "Returned when the resource does not exist.",
|
|
199
|
+
"schema": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"format": "string"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"default": {
|
|
205
|
+
"description": "An unexpected error response.",
|
|
206
|
+
"schema": {
|
|
207
|
+
"$ref": "#/definitions/rpcStatus"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"parameters": [
|
|
212
|
+
{
|
|
213
|
+
"name": "body",
|
|
214
|
+
"in": "body",
|
|
215
|
+
"required": true,
|
|
216
|
+
"schema": {
|
|
217
|
+
"$ref": "#/definitions/v1GetPrivateKeyRequest"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"tags": ["Private Keys"],
|
|
222
|
+
"x-readme": {
|
|
223
|
+
"code-samples": [
|
|
224
|
+
{
|
|
225
|
+
"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}'",
|
|
226
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
227
|
+
"language": "curl",
|
|
228
|
+
"name": "Turnkey CLI"
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
181
234
|
"/public/v1/query/get_user": {
|
|
182
235
|
"post": {
|
|
183
236
|
"summary": "Get User",
|
|
@@ -496,6 +549,59 @@
|
|
|
496
549
|
}
|
|
497
550
|
}
|
|
498
551
|
},
|
|
552
|
+
"/public/v1/submit/approve_activity": {
|
|
553
|
+
"post": {
|
|
554
|
+
"summary": "Approve Activity",
|
|
555
|
+
"description": "Approve an Activity",
|
|
556
|
+
"operationId": "PublicApiService_ApproveActivity",
|
|
557
|
+
"responses": {
|
|
558
|
+
"200": {
|
|
559
|
+
"description": "A successful response.",
|
|
560
|
+
"schema": {
|
|
561
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
"403": {
|
|
565
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
566
|
+
"schema": {}
|
|
567
|
+
},
|
|
568
|
+
"404": {
|
|
569
|
+
"description": "Returned when the resource does not exist.",
|
|
570
|
+
"schema": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"format": "string"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"default": {
|
|
576
|
+
"description": "An unexpected error response.",
|
|
577
|
+
"schema": {
|
|
578
|
+
"$ref": "#/definitions/rpcStatus"
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
"parameters": [
|
|
583
|
+
{
|
|
584
|
+
"name": "body",
|
|
585
|
+
"in": "body",
|
|
586
|
+
"required": true,
|
|
587
|
+
"schema": {
|
|
588
|
+
"$ref": "#/definitions/v1ApproveActivityRequest"
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
"tags": ["Activities"],
|
|
593
|
+
"x-readme": {
|
|
594
|
+
"code-samples": [
|
|
595
|
+
{
|
|
596
|
+
"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}'",
|
|
597
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
598
|
+
"language": "curl",
|
|
599
|
+
"name": "Turnkey CLI"
|
|
600
|
+
}
|
|
601
|
+
]
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
},
|
|
499
605
|
"/public/v1/submit/create_api_keys": {
|
|
500
606
|
"post": {
|
|
501
607
|
"summary": "Create API Keys",
|
|
@@ -699,7 +805,7 @@
|
|
|
699
805
|
"x-readme": {
|
|
700
806
|
"code-samples": [
|
|
701
807
|
{
|
|
702
|
-
"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\"
|
|
808
|
+
"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}'",
|
|
703
809
|
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
704
810
|
"language": "curl",
|
|
705
811
|
"name": "Turnkey CLI"
|
|
@@ -974,6 +1080,59 @@
|
|
|
974
1080
|
}
|
|
975
1081
|
}
|
|
976
1082
|
},
|
|
1083
|
+
"/public/v1/submit/reject_activity": {
|
|
1084
|
+
"post": {
|
|
1085
|
+
"summary": "Reject Activity",
|
|
1086
|
+
"description": "Reject an Activity",
|
|
1087
|
+
"operationId": "PublicApiService_RejectActivity",
|
|
1088
|
+
"responses": {
|
|
1089
|
+
"200": {
|
|
1090
|
+
"description": "A successful response.",
|
|
1091
|
+
"schema": {
|
|
1092
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
"403": {
|
|
1096
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
1097
|
+
"schema": {}
|
|
1098
|
+
},
|
|
1099
|
+
"404": {
|
|
1100
|
+
"description": "Returned when the resource does not exist.",
|
|
1101
|
+
"schema": {
|
|
1102
|
+
"type": "string",
|
|
1103
|
+
"format": "string"
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
"default": {
|
|
1107
|
+
"description": "An unexpected error response.",
|
|
1108
|
+
"schema": {
|
|
1109
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
"parameters": [
|
|
1114
|
+
{
|
|
1115
|
+
"name": "body",
|
|
1116
|
+
"in": "body",
|
|
1117
|
+
"required": true,
|
|
1118
|
+
"schema": {
|
|
1119
|
+
"$ref": "#/definitions/v1RejectActivityRequest"
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
],
|
|
1123
|
+
"tags": ["Activities"],
|
|
1124
|
+
"x-readme": {
|
|
1125
|
+
"code-samples": [
|
|
1126
|
+
{
|
|
1127
|
+
"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}'",
|
|
1128
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1129
|
+
"language": "curl",
|
|
1130
|
+
"name": "Turnkey CLI"
|
|
1131
|
+
}
|
|
1132
|
+
]
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
977
1136
|
"/public/v1/submit/sign_raw_payload": {
|
|
978
1137
|
"post": {
|
|
979
1138
|
"summary": "Sign Raw Payload",
|
|
@@ -1080,11 +1239,117 @@
|
|
|
1080
1239
|
}
|
|
1081
1240
|
}
|
|
1082
1241
|
},
|
|
1242
|
+
"/public/v1/submit/update_private_key_tag": {
|
|
1243
|
+
"post": {
|
|
1244
|
+
"summary": "Update Private Key Tag",
|
|
1245
|
+
"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.",
|
|
1246
|
+
"operationId": "PublicApiService_UpdatePrivateKeyTag",
|
|
1247
|
+
"responses": {
|
|
1248
|
+
"200": {
|
|
1249
|
+
"description": "A successful response.",
|
|
1250
|
+
"schema": {
|
|
1251
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1254
|
+
"403": {
|
|
1255
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
1256
|
+
"schema": {}
|
|
1257
|
+
},
|
|
1258
|
+
"404": {
|
|
1259
|
+
"description": "Returned when the resource does not exist.",
|
|
1260
|
+
"schema": {
|
|
1261
|
+
"type": "string",
|
|
1262
|
+
"format": "string"
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
"default": {
|
|
1266
|
+
"description": "An unexpected error response.",
|
|
1267
|
+
"schema": {
|
|
1268
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
"parameters": [
|
|
1273
|
+
{
|
|
1274
|
+
"name": "body",
|
|
1275
|
+
"in": "body",
|
|
1276
|
+
"required": true,
|
|
1277
|
+
"schema": {
|
|
1278
|
+
"$ref": "#/definitions/v1UpdatePrivateKeyTagRequest"
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
],
|
|
1282
|
+
"tags": ["Private Key Tags"],
|
|
1283
|
+
"x-readme": {
|
|
1284
|
+
"code-samples": [
|
|
1285
|
+
{
|
|
1286
|
+
"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}'",
|
|
1287
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1288
|
+
"language": "curl",
|
|
1289
|
+
"name": "Turnkey CLI"
|
|
1290
|
+
}
|
|
1291
|
+
]
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
"/public/v1/submit/update_user_tag": {
|
|
1296
|
+
"post": {
|
|
1297
|
+
"summary": "Update User Tag",
|
|
1298
|
+
"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.",
|
|
1299
|
+
"operationId": "PublicApiService_UpdateUserTag",
|
|
1300
|
+
"responses": {
|
|
1301
|
+
"200": {
|
|
1302
|
+
"description": "A successful response.",
|
|
1303
|
+
"schema": {
|
|
1304
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1307
|
+
"403": {
|
|
1308
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
1309
|
+
"schema": {}
|
|
1310
|
+
},
|
|
1311
|
+
"404": {
|
|
1312
|
+
"description": "Returned when the resource does not exist.",
|
|
1313
|
+
"schema": {
|
|
1314
|
+
"type": "string",
|
|
1315
|
+
"format": "string"
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
"default": {
|
|
1319
|
+
"description": "An unexpected error response.",
|
|
1320
|
+
"schema": {
|
|
1321
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
"parameters": [
|
|
1326
|
+
{
|
|
1327
|
+
"name": "body",
|
|
1328
|
+
"in": "body",
|
|
1329
|
+
"required": true,
|
|
1330
|
+
"schema": {
|
|
1331
|
+
"$ref": "#/definitions/v1UpdateUserTagRequest"
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
],
|
|
1335
|
+
"tags": ["User Tags"],
|
|
1336
|
+
"x-readme": {
|
|
1337
|
+
"code-samples": [
|
|
1338
|
+
{
|
|
1339
|
+
"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}'",
|
|
1340
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1341
|
+
"language": "curl",
|
|
1342
|
+
"name": "Turnkey CLI"
|
|
1343
|
+
}
|
|
1344
|
+
]
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1083
1348
|
"/tkhq/public/v1/query/get_private_key": {
|
|
1084
1349
|
"post": {
|
|
1085
1350
|
"summary": "Get Private Key",
|
|
1086
1351
|
"description": "Get details about a Private Key",
|
|
1087
|
-
"operationId": "
|
|
1352
|
+
"operationId": "PublicApiService_GetPrivateKeyBackwardsCompat",
|
|
1088
1353
|
"responses": {
|
|
1089
1354
|
"200": {
|
|
1090
1355
|
"description": "A successful response.",
|
|
@@ -1121,6 +1386,7 @@
|
|
|
1121
1386
|
}
|
|
1122
1387
|
],
|
|
1123
1388
|
"tags": ["Private Keys"],
|
|
1389
|
+
"deprecated": true,
|
|
1124
1390
|
"x-readme": {
|
|
1125
1391
|
"code-samples": [
|
|
1126
1392
|
{
|
|
@@ -1194,7 +1460,7 @@
|
|
|
1194
1460
|
},
|
|
1195
1461
|
"externaldatav1Curve": {
|
|
1196
1462
|
"type": "string",
|
|
1197
|
-
"enum": ["CURVE_SECP256K1"],
|
|
1463
|
+
"enum": ["CURVE_SECP256K1", "CURVE_ED25519"],
|
|
1198
1464
|
"description": "Cryptographic Curve used to generate a given Private Key."
|
|
1199
1465
|
},
|
|
1200
1466
|
"externaldatav1Effect": {
|
|
@@ -1253,7 +1519,7 @@
|
|
|
1253
1519
|
},
|
|
1254
1520
|
"immutableactivityv1Curve": {
|
|
1255
1521
|
"type": "string",
|
|
1256
|
-
"enum": ["CURVE_SECP256K1"],
|
|
1522
|
+
"enum": ["CURVE_SECP256K1", "CURVE_ED25519"],
|
|
1257
1523
|
"description": "Cryptographic Curve used to generate a given Private Key."
|
|
1258
1524
|
},
|
|
1259
1525
|
"immutableactivityv1Effect": {
|
|
@@ -1502,7 +1768,9 @@
|
|
|
1502
1768
|
"ACTIVITY_TYPE_CREATE_POLICY_V2",
|
|
1503
1769
|
"ACTIVITY_TYPE_CREATE_POLICY_V3",
|
|
1504
1770
|
"ACTIVITY_TYPE_CREATE_API_ONLY_USERS",
|
|
1505
|
-
"ACTIVITY_TYPE_UPDATE_ROOT_QUORUM"
|
|
1771
|
+
"ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
|
|
1772
|
+
"ACTIVITY_TYPE_UPDATE_USER_TAG",
|
|
1773
|
+
"ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG"
|
|
1506
1774
|
],
|
|
1507
1775
|
"description": "Type of Activity, such as Add User, or Sign Transaction."
|
|
1508
1776
|
},
|
|
@@ -1594,6 +1862,27 @@
|
|
|
1594
1862
|
},
|
|
1595
1863
|
"required": ["fingerprint"]
|
|
1596
1864
|
},
|
|
1865
|
+
"v1ApproveActivityRequest": {
|
|
1866
|
+
"type": "object",
|
|
1867
|
+
"properties": {
|
|
1868
|
+
"type": {
|
|
1869
|
+
"type": "string",
|
|
1870
|
+
"enum": ["ACTIVITY_TYPE_APPROVE_ACTIVITY"]
|
|
1871
|
+
},
|
|
1872
|
+
"timestampMs": {
|
|
1873
|
+
"type": "string",
|
|
1874
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
1875
|
+
},
|
|
1876
|
+
"organizationId": {
|
|
1877
|
+
"type": "string",
|
|
1878
|
+
"description": "Unique identifier for a given Organization."
|
|
1879
|
+
},
|
|
1880
|
+
"parameters": {
|
|
1881
|
+
"$ref": "#/definitions/v1ApproveActivityIntent"
|
|
1882
|
+
}
|
|
1883
|
+
},
|
|
1884
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
1885
|
+
},
|
|
1597
1886
|
"v1Authenticator": {
|
|
1598
1887
|
"type": "object",
|
|
1599
1888
|
"properties": {
|
|
@@ -2289,7 +2578,7 @@
|
|
|
2289
2578
|
"type": "string"
|
|
2290
2579
|
},
|
|
2291
2580
|
"description": "A list of Authenticator IDs.",
|
|
2292
|
-
"title": "@inject_tag: validate:\"required,
|
|
2581
|
+
"title": "@inject_tag: validate:\"required,dive,required,uuid\""
|
|
2293
2582
|
}
|
|
2294
2583
|
},
|
|
2295
2584
|
"required": ["userId", "authenticatorIds"]
|
|
@@ -2563,7 +2852,7 @@
|
|
|
2563
2852
|
"description": "Array of Activity Statuses filtering which Activities will be listed in the response."
|
|
2564
2853
|
},
|
|
2565
2854
|
"paginationOptions": {
|
|
2566
|
-
"$ref": "#/definitions/
|
|
2855
|
+
"$ref": "#/definitions/v1Pagination"
|
|
2567
2856
|
}
|
|
2568
2857
|
},
|
|
2569
2858
|
"required": ["organizationId"]
|
|
@@ -2789,9 +3078,10 @@
|
|
|
2789
3078
|
"enum": [
|
|
2790
3079
|
"HASH_FUNCTION_NO_OP",
|
|
2791
3080
|
"HASH_FUNCTION_SHA256",
|
|
2792
|
-
"HASH_FUNCTION_KECCAK256"
|
|
3081
|
+
"HASH_FUNCTION_KECCAK256",
|
|
3082
|
+
"HASH_FUNCTION_NOT_APPLICABLE"
|
|
2793
3083
|
],
|
|
2794
|
-
"description": " - HASH_FUNCTION_UNSPECIFIED: Default value if hash function is not set explicitly
|
|
3084
|
+
"description": " - HASH_FUNCTION_UNSPECIFIED: Default value if a hash function is not set explicitly.\n - HASH_FUNCTION_NO_OP: No-op function. Useful if you want to pass raw digests to sign (ECDSA-only)\n - HASH_FUNCTION_SHA256: Standard SHA-256. Used in the Bitcoin ecosystem.\n - HASH_FUNCTION_KECCAK256: Keccak-256 (not the same as NIST SHA-3!).\nThis is the hash function used in the Ethereum ecosystem.\n - HASH_FUNCTION_NOT_APPLICABLE: Callers must use this enum value when signing with ed25519 keys.\nThis is because, unlike ECDSA, EdDSA's API does not support signing raw digests (see RFC 8032)."
|
|
2795
3085
|
},
|
|
2796
3086
|
"v1Intent": {
|
|
2797
3087
|
"type": "object",
|
|
@@ -2885,6 +3175,12 @@
|
|
|
2885
3175
|
},
|
|
2886
3176
|
"updateRootQuorumIntent": {
|
|
2887
3177
|
"$ref": "#/definitions/v1UpdateRootQuorumIntent"
|
|
3178
|
+
},
|
|
3179
|
+
"updateUserTagIntent": {
|
|
3180
|
+
"$ref": "#/definitions/v1UpdateUserTagIntent"
|
|
3181
|
+
},
|
|
3182
|
+
"updatePrivateKeyTagIntent": {
|
|
3183
|
+
"$ref": "#/definitions/v1UpdatePrivateKeyTagIntent"
|
|
2888
3184
|
}
|
|
2889
3185
|
},
|
|
2890
3186
|
"description": "Intent object crafted by Turnkey based on the user request, used to assess the permissibility of an action.",
|
|
@@ -3071,7 +3367,7 @@
|
|
|
3071
3367
|
},
|
|
3072
3368
|
"description": "This proto definition is used in our external-facing APIs.\nIt's important to leverage annotations because they're used in our external interfaces."
|
|
3073
3369
|
},
|
|
3074
|
-
"
|
|
3370
|
+
"v1Pagination": {
|
|
3075
3371
|
"type": "object",
|
|
3076
3372
|
"properties": {
|
|
3077
3373
|
"limit": {
|
|
@@ -3267,6 +3563,27 @@
|
|
|
3267
3563
|
},
|
|
3268
3564
|
"required": ["fingerprint"]
|
|
3269
3565
|
},
|
|
3566
|
+
"v1RejectActivityRequest": {
|
|
3567
|
+
"type": "object",
|
|
3568
|
+
"properties": {
|
|
3569
|
+
"type": {
|
|
3570
|
+
"type": "string",
|
|
3571
|
+
"enum": ["ACTIVITY_TYPE_REJECT_ACTIVITY"]
|
|
3572
|
+
},
|
|
3573
|
+
"timestampMs": {
|
|
3574
|
+
"type": "string",
|
|
3575
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
3576
|
+
},
|
|
3577
|
+
"organizationId": {
|
|
3578
|
+
"type": "string",
|
|
3579
|
+
"description": "Unique identifier for a given Organization."
|
|
3580
|
+
},
|
|
3581
|
+
"parameters": {
|
|
3582
|
+
"$ref": "#/definitions/v1RejectActivityIntent"
|
|
3583
|
+
}
|
|
3584
|
+
},
|
|
3585
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
3586
|
+
},
|
|
3270
3587
|
"v1Result": {
|
|
3271
3588
|
"type": "object",
|
|
3272
3589
|
"properties": {
|
|
@@ -3347,6 +3664,12 @@
|
|
|
3347
3664
|
},
|
|
3348
3665
|
"updateRootQuorumResult": {
|
|
3349
3666
|
"$ref": "#/definitions/v1UpdateRootQuorumResult"
|
|
3667
|
+
},
|
|
3668
|
+
"updateUserTagResult": {
|
|
3669
|
+
"$ref": "#/definitions/v1UpdateUserTagResult"
|
|
3670
|
+
},
|
|
3671
|
+
"updatePrivateKeyTagResult": {
|
|
3672
|
+
"$ref": "#/definitions/v1UpdatePrivateKeyTagResult"
|
|
3350
3673
|
}
|
|
3351
3674
|
},
|
|
3352
3675
|
"description": "Result of the intended action."
|
|
@@ -3569,6 +3892,69 @@
|
|
|
3569
3892
|
},
|
|
3570
3893
|
"required": ["seconds", "nanos"]
|
|
3571
3894
|
},
|
|
3895
|
+
"v1UpdatePrivateKeyTagIntent": {
|
|
3896
|
+
"type": "object",
|
|
3897
|
+
"properties": {
|
|
3898
|
+
"privateKeyTagId": {
|
|
3899
|
+
"type": "string",
|
|
3900
|
+
"description": "Unique identifier for a given Private Key Tag.",
|
|
3901
|
+
"title": "@inject_tag: validate:\"uuid\""
|
|
3902
|
+
},
|
|
3903
|
+
"newPrivateKeyTagName": {
|
|
3904
|
+
"type": "string",
|
|
3905
|
+
"description": "The new, human-readable name for the tag with the given ID.",
|
|
3906
|
+
"title": "@inject_tag: validate:\"omitempty,tk_label,tk_label_length\""
|
|
3907
|
+
},
|
|
3908
|
+
"addPrivateKeyIds": {
|
|
3909
|
+
"type": "array",
|
|
3910
|
+
"items": {
|
|
3911
|
+
"type": "string"
|
|
3912
|
+
},
|
|
3913
|
+
"description": "A list of Private Keys IDs to add this tag to.",
|
|
3914
|
+
"title": "@inject_tag: validate:\"dive,uuid\""
|
|
3915
|
+
},
|
|
3916
|
+
"removePrivateKeyIds": {
|
|
3917
|
+
"type": "array",
|
|
3918
|
+
"items": {
|
|
3919
|
+
"type": "string"
|
|
3920
|
+
},
|
|
3921
|
+
"description": "A list of Private Key IDs to remove this tag from.",
|
|
3922
|
+
"title": "@inject_tag: validate:\"dive,uuid\""
|
|
3923
|
+
}
|
|
3924
|
+
},
|
|
3925
|
+
"required": ["privateKeyTagId", "addPrivateKeyIds", "removePrivateKeyIds"]
|
|
3926
|
+
},
|
|
3927
|
+
"v1UpdatePrivateKeyTagRequest": {
|
|
3928
|
+
"type": "object",
|
|
3929
|
+
"properties": {
|
|
3930
|
+
"type": {
|
|
3931
|
+
"type": "string",
|
|
3932
|
+
"enum": ["ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG"]
|
|
3933
|
+
},
|
|
3934
|
+
"timestampMs": {
|
|
3935
|
+
"type": "string",
|
|
3936
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
3937
|
+
},
|
|
3938
|
+
"organizationId": {
|
|
3939
|
+
"type": "string",
|
|
3940
|
+
"description": "Unique identifier for a given Organization."
|
|
3941
|
+
},
|
|
3942
|
+
"parameters": {
|
|
3943
|
+
"$ref": "#/definitions/v1UpdatePrivateKeyTagIntent"
|
|
3944
|
+
}
|
|
3945
|
+
},
|
|
3946
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
3947
|
+
},
|
|
3948
|
+
"v1UpdatePrivateKeyTagResult": {
|
|
3949
|
+
"type": "object",
|
|
3950
|
+
"properties": {
|
|
3951
|
+
"privateKeyTagId": {
|
|
3952
|
+
"type": "string",
|
|
3953
|
+
"description": "Unique identifier for a given Private Key Tag."
|
|
3954
|
+
}
|
|
3955
|
+
},
|
|
3956
|
+
"required": ["privateKeyTagId"]
|
|
3957
|
+
},
|
|
3572
3958
|
"v1UpdateRootQuorumIntent": {
|
|
3573
3959
|
"type": "object",
|
|
3574
3960
|
"properties": {
|
|
@@ -3592,6 +3978,69 @@
|
|
|
3592
3978
|
"v1UpdateRootQuorumResult": {
|
|
3593
3979
|
"type": "object"
|
|
3594
3980
|
},
|
|
3981
|
+
"v1UpdateUserTagIntent": {
|
|
3982
|
+
"type": "object",
|
|
3983
|
+
"properties": {
|
|
3984
|
+
"userTagId": {
|
|
3985
|
+
"type": "string",
|
|
3986
|
+
"description": "Unique identifier for a given User Tag.",
|
|
3987
|
+
"title": "@inject_tag: validate:\"uuid\""
|
|
3988
|
+
},
|
|
3989
|
+
"newUserTagName": {
|
|
3990
|
+
"type": "string",
|
|
3991
|
+
"description": "The new, human-readable name for the tag with the given ID.",
|
|
3992
|
+
"title": "@inject_tag: validate:\"omitempty,tk_label,tk_label_length\""
|
|
3993
|
+
},
|
|
3994
|
+
"addUserIds": {
|
|
3995
|
+
"type": "array",
|
|
3996
|
+
"items": {
|
|
3997
|
+
"type": "string"
|
|
3998
|
+
},
|
|
3999
|
+
"description": "A list of User IDs to add this tag to.",
|
|
4000
|
+
"title": "@inject_tag: validate:\"dive,uuid\""
|
|
4001
|
+
},
|
|
4002
|
+
"removeUserIds": {
|
|
4003
|
+
"type": "array",
|
|
4004
|
+
"items": {
|
|
4005
|
+
"type": "string"
|
|
4006
|
+
},
|
|
4007
|
+
"description": "A list of User IDs to remove this tag from.",
|
|
4008
|
+
"title": "@inject_tag: validate:\"dive,uuid\""
|
|
4009
|
+
}
|
|
4010
|
+
},
|
|
4011
|
+
"required": ["userTagId", "addUserIds", "removeUserIds"]
|
|
4012
|
+
},
|
|
4013
|
+
"v1UpdateUserTagRequest": {
|
|
4014
|
+
"type": "object",
|
|
4015
|
+
"properties": {
|
|
4016
|
+
"type": {
|
|
4017
|
+
"type": "string",
|
|
4018
|
+
"enum": ["ACTIVITY_TYPE_UPDATE_USER_TAG"]
|
|
4019
|
+
},
|
|
4020
|
+
"timestampMs": {
|
|
4021
|
+
"type": "string",
|
|
4022
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
4023
|
+
},
|
|
4024
|
+
"organizationId": {
|
|
4025
|
+
"type": "string",
|
|
4026
|
+
"description": "Unique identifier for a given Organization."
|
|
4027
|
+
},
|
|
4028
|
+
"parameters": {
|
|
4029
|
+
"$ref": "#/definitions/v1UpdateUserTagIntent"
|
|
4030
|
+
}
|
|
4031
|
+
},
|
|
4032
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
4033
|
+
},
|
|
4034
|
+
"v1UpdateUserTagResult": {
|
|
4035
|
+
"type": "object",
|
|
4036
|
+
"properties": {
|
|
4037
|
+
"userTagId": {
|
|
4038
|
+
"type": "string",
|
|
4039
|
+
"description": "Unique identifier for a given User Tag."
|
|
4040
|
+
}
|
|
4041
|
+
},
|
|
4042
|
+
"required": ["userTagId"]
|
|
4043
|
+
},
|
|
3595
4044
|
"v1User": {
|
|
3596
4045
|
"type": "object",
|
|
3597
4046
|
"properties": {
|