@turnkey/http 0.16.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 +11 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +2308 -176
- 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 +53 -1
- 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 +404 -9
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +224 -10
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -549,6 +549,59 @@
|
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
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
|
+
},
|
|
552
605
|
"/public/v1/submit/create_api_keys": {
|
|
553
606
|
"post": {
|
|
554
607
|
"summary": "Create API Keys",
|
|
@@ -752,7 +805,7 @@
|
|
|
752
805
|
"x-readme": {
|
|
753
806
|
"code-samples": [
|
|
754
807
|
{
|
|
755
|
-
"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}'",
|
|
756
809
|
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
757
810
|
"language": "curl",
|
|
758
811
|
"name": "Turnkey CLI"
|
|
@@ -1027,6 +1080,59 @@
|
|
|
1027
1080
|
}
|
|
1028
1081
|
}
|
|
1029
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
|
+
},
|
|
1030
1136
|
"/public/v1/submit/sign_raw_payload": {
|
|
1031
1137
|
"post": {
|
|
1032
1138
|
"summary": "Sign Raw Payload",
|
|
@@ -1133,6 +1239,112 @@
|
|
|
1133
1239
|
}
|
|
1134
1240
|
}
|
|
1135
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
|
+
},
|
|
1136
1348
|
"/tkhq/public/v1/query/get_private_key": {
|
|
1137
1349
|
"post": {
|
|
1138
1350
|
"summary": "Get Private Key",
|
|
@@ -1248,7 +1460,7 @@
|
|
|
1248
1460
|
},
|
|
1249
1461
|
"externaldatav1Curve": {
|
|
1250
1462
|
"type": "string",
|
|
1251
|
-
"enum": ["CURVE_SECP256K1"],
|
|
1463
|
+
"enum": ["CURVE_SECP256K1", "CURVE_ED25519"],
|
|
1252
1464
|
"description": "Cryptographic Curve used to generate a given Private Key."
|
|
1253
1465
|
},
|
|
1254
1466
|
"externaldatav1Effect": {
|
|
@@ -1307,7 +1519,7 @@
|
|
|
1307
1519
|
},
|
|
1308
1520
|
"immutableactivityv1Curve": {
|
|
1309
1521
|
"type": "string",
|
|
1310
|
-
"enum": ["CURVE_SECP256K1"],
|
|
1522
|
+
"enum": ["CURVE_SECP256K1", "CURVE_ED25519"],
|
|
1311
1523
|
"description": "Cryptographic Curve used to generate a given Private Key."
|
|
1312
1524
|
},
|
|
1313
1525
|
"immutableactivityv1Effect": {
|
|
@@ -1556,7 +1768,9 @@
|
|
|
1556
1768
|
"ACTIVITY_TYPE_CREATE_POLICY_V2",
|
|
1557
1769
|
"ACTIVITY_TYPE_CREATE_POLICY_V3",
|
|
1558
1770
|
"ACTIVITY_TYPE_CREATE_API_ONLY_USERS",
|
|
1559
|
-
"ACTIVITY_TYPE_UPDATE_ROOT_QUORUM"
|
|
1771
|
+
"ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
|
|
1772
|
+
"ACTIVITY_TYPE_UPDATE_USER_TAG",
|
|
1773
|
+
"ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG"
|
|
1560
1774
|
],
|
|
1561
1775
|
"description": "Type of Activity, such as Add User, or Sign Transaction."
|
|
1562
1776
|
},
|
|
@@ -1648,6 +1862,27 @@
|
|
|
1648
1862
|
},
|
|
1649
1863
|
"required": ["fingerprint"]
|
|
1650
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
|
+
},
|
|
1651
1886
|
"v1Authenticator": {
|
|
1652
1887
|
"type": "object",
|
|
1653
1888
|
"properties": {
|
|
@@ -2343,7 +2578,7 @@
|
|
|
2343
2578
|
"type": "string"
|
|
2344
2579
|
},
|
|
2345
2580
|
"description": "A list of Authenticator IDs.",
|
|
2346
|
-
"title": "@inject_tag: validate:\"required,
|
|
2581
|
+
"title": "@inject_tag: validate:\"required,dive,required,uuid\""
|
|
2347
2582
|
}
|
|
2348
2583
|
},
|
|
2349
2584
|
"required": ["userId", "authenticatorIds"]
|
|
@@ -2617,7 +2852,7 @@
|
|
|
2617
2852
|
"description": "Array of Activity Statuses filtering which Activities will be listed in the response."
|
|
2618
2853
|
},
|
|
2619
2854
|
"paginationOptions": {
|
|
2620
|
-
"$ref": "#/definitions/
|
|
2855
|
+
"$ref": "#/definitions/v1Pagination"
|
|
2621
2856
|
}
|
|
2622
2857
|
},
|
|
2623
2858
|
"required": ["organizationId"]
|
|
@@ -2843,9 +3078,10 @@
|
|
|
2843
3078
|
"enum": [
|
|
2844
3079
|
"HASH_FUNCTION_NO_OP",
|
|
2845
3080
|
"HASH_FUNCTION_SHA256",
|
|
2846
|
-
"HASH_FUNCTION_KECCAK256"
|
|
3081
|
+
"HASH_FUNCTION_KECCAK256",
|
|
3082
|
+
"HASH_FUNCTION_NOT_APPLICABLE"
|
|
2847
3083
|
],
|
|
2848
|
-
"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)."
|
|
2849
3085
|
},
|
|
2850
3086
|
"v1Intent": {
|
|
2851
3087
|
"type": "object",
|
|
@@ -2939,6 +3175,12 @@
|
|
|
2939
3175
|
},
|
|
2940
3176
|
"updateRootQuorumIntent": {
|
|
2941
3177
|
"$ref": "#/definitions/v1UpdateRootQuorumIntent"
|
|
3178
|
+
},
|
|
3179
|
+
"updateUserTagIntent": {
|
|
3180
|
+
"$ref": "#/definitions/v1UpdateUserTagIntent"
|
|
3181
|
+
},
|
|
3182
|
+
"updatePrivateKeyTagIntent": {
|
|
3183
|
+
"$ref": "#/definitions/v1UpdatePrivateKeyTagIntent"
|
|
2942
3184
|
}
|
|
2943
3185
|
},
|
|
2944
3186
|
"description": "Intent object crafted by Turnkey based on the user request, used to assess the permissibility of an action.",
|
|
@@ -3125,7 +3367,7 @@
|
|
|
3125
3367
|
},
|
|
3126
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."
|
|
3127
3369
|
},
|
|
3128
|
-
"
|
|
3370
|
+
"v1Pagination": {
|
|
3129
3371
|
"type": "object",
|
|
3130
3372
|
"properties": {
|
|
3131
3373
|
"limit": {
|
|
@@ -3321,6 +3563,27 @@
|
|
|
3321
3563
|
},
|
|
3322
3564
|
"required": ["fingerprint"]
|
|
3323
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
|
+
},
|
|
3324
3587
|
"v1Result": {
|
|
3325
3588
|
"type": "object",
|
|
3326
3589
|
"properties": {
|
|
@@ -3401,6 +3664,12 @@
|
|
|
3401
3664
|
},
|
|
3402
3665
|
"updateRootQuorumResult": {
|
|
3403
3666
|
"$ref": "#/definitions/v1UpdateRootQuorumResult"
|
|
3667
|
+
},
|
|
3668
|
+
"updateUserTagResult": {
|
|
3669
|
+
"$ref": "#/definitions/v1UpdateUserTagResult"
|
|
3670
|
+
},
|
|
3671
|
+
"updatePrivateKeyTagResult": {
|
|
3672
|
+
"$ref": "#/definitions/v1UpdatePrivateKeyTagResult"
|
|
3404
3673
|
}
|
|
3405
3674
|
},
|
|
3406
3675
|
"description": "Result of the intended action."
|
|
@@ -3623,6 +3892,69 @@
|
|
|
3623
3892
|
},
|
|
3624
3893
|
"required": ["seconds", "nanos"]
|
|
3625
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
|
+
},
|
|
3626
3958
|
"v1UpdateRootQuorumIntent": {
|
|
3627
3959
|
"type": "object",
|
|
3628
3960
|
"properties": {
|
|
@@ -3646,6 +3978,69 @@
|
|
|
3646
3978
|
"v1UpdateRootQuorumResult": {
|
|
3647
3979
|
"type": "object"
|
|
3648
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
|
+
},
|
|
3649
4044
|
"v1User": {
|
|
3650
4045
|
"type": "object",
|
|
3651
4046
|
"properties": {
|