@turnkey/http 1.0.0 → 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.
- package/CHANGELOG.md +6 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +1607 -467
- 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 +50 -30
- 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 +173 -41
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +97 -24
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1052,6 +1052,49 @@
|
|
|
1052
1052
|
"tags": ["Users"]
|
|
1053
1053
|
}
|
|
1054
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"
|
|
1065
|
+
}
|
|
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"]
|
|
1096
|
+
}
|
|
1097
|
+
},
|
|
1055
1098
|
"/public/v1/submit/delete_invitations": {
|
|
1056
1099
|
"post": {
|
|
1057
1100
|
"summary": "Delete Invitation",
|
|
@@ -1310,11 +1353,11 @@
|
|
|
1310
1353
|
"tags": ["Organizations"]
|
|
1311
1354
|
}
|
|
1312
1355
|
},
|
|
1313
|
-
"/public/v1/submit/
|
|
1356
|
+
"/public/v1/submit/update_policy": {
|
|
1314
1357
|
"post": {
|
|
1315
|
-
"summary": "Update
|
|
1316
|
-
"description": "Update
|
|
1317
|
-
"operationId": "
|
|
1358
|
+
"summary": "Update Policy",
|
|
1359
|
+
"description": "Update an existing Policy",
|
|
1360
|
+
"operationId": "PublicApiService_UpdatePolicy",
|
|
1318
1361
|
"responses": {
|
|
1319
1362
|
"200": {
|
|
1320
1363
|
"description": "A successful response.",
|
|
@@ -1346,18 +1389,18 @@
|
|
|
1346
1389
|
"in": "body",
|
|
1347
1390
|
"required": true,
|
|
1348
1391
|
"schema": {
|
|
1349
|
-
"$ref": "#/definitions/
|
|
1392
|
+
"$ref": "#/definitions/v1UpdatePolicyRequest"
|
|
1350
1393
|
}
|
|
1351
1394
|
}
|
|
1352
1395
|
],
|
|
1353
|
-
"tags": ["
|
|
1396
|
+
"tags": ["Policies"]
|
|
1354
1397
|
}
|
|
1355
1398
|
},
|
|
1356
|
-
"/public/v1/submit/
|
|
1399
|
+
"/public/v1/submit/update_private_key_tag": {
|
|
1357
1400
|
"post": {
|
|
1358
|
-
"summary": "Update
|
|
1359
|
-
"description": "
|
|
1360
|
-
"operationId": "
|
|
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",
|
|
1361
1404
|
"responses": {
|
|
1362
1405
|
"200": {
|
|
1363
1406
|
"description": "A successful response.",
|
|
@@ -1389,18 +1432,18 @@
|
|
|
1389
1432
|
"in": "body",
|
|
1390
1433
|
"required": true,
|
|
1391
1434
|
"schema": {
|
|
1392
|
-
"$ref": "#/definitions/
|
|
1435
|
+
"$ref": "#/definitions/v1UpdatePrivateKeyTagRequest"
|
|
1393
1436
|
}
|
|
1394
1437
|
}
|
|
1395
1438
|
],
|
|
1396
|
-
"tags": ["
|
|
1439
|
+
"tags": ["Private Keys"]
|
|
1397
1440
|
}
|
|
1398
1441
|
},
|
|
1399
|
-
"/public/v1/submit/
|
|
1442
|
+
"/public/v1/submit/update_root_quorum": {
|
|
1400
1443
|
"post": {
|
|
1401
|
-
"summary": "Update
|
|
1402
|
-
"description": "
|
|
1403
|
-
"operationId": "
|
|
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",
|
|
1404
1447
|
"responses": {
|
|
1405
1448
|
"200": {
|
|
1406
1449
|
"description": "A successful response.",
|
|
@@ -1432,22 +1475,23 @@
|
|
|
1432
1475
|
"in": "body",
|
|
1433
1476
|
"required": true,
|
|
1434
1477
|
"schema": {
|
|
1435
|
-
"$ref": "#/definitions/
|
|
1478
|
+
"$ref": "#/definitions/v1UpdateRootQuorumRequest"
|
|
1436
1479
|
}
|
|
1437
1480
|
}
|
|
1438
1481
|
],
|
|
1439
|
-
"tags": ["
|
|
1482
|
+
"tags": ["Organizations"]
|
|
1440
1483
|
}
|
|
1441
1484
|
},
|
|
1442
|
-
"/
|
|
1485
|
+
"/public/v1/submit/update_user_tag": {
|
|
1443
1486
|
"post": {
|
|
1444
|
-
"summary": "
|
|
1445
|
-
"
|
|
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",
|
|
1446
1490
|
"responses": {
|
|
1447
1491
|
"200": {
|
|
1448
1492
|
"description": "A successful response.",
|
|
1449
1493
|
"schema": {
|
|
1450
|
-
"$ref": "#/definitions/
|
|
1494
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
1451
1495
|
}
|
|
1452
1496
|
},
|
|
1453
1497
|
"403": {
|
|
@@ -1468,19 +1512,28 @@
|
|
|
1468
1512
|
}
|
|
1469
1513
|
}
|
|
1470
1514
|
},
|
|
1471
|
-
"
|
|
1515
|
+
"parameters": [
|
|
1516
|
+
{
|
|
1517
|
+
"name": "body",
|
|
1518
|
+
"in": "body",
|
|
1519
|
+
"required": true,
|
|
1520
|
+
"schema": {
|
|
1521
|
+
"$ref": "#/definitions/v1UpdateUserTagRequest"
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
],
|
|
1525
|
+
"tags": ["Users"]
|
|
1472
1526
|
}
|
|
1473
1527
|
},
|
|
1474
|
-
"/tkhq/
|
|
1528
|
+
"/tkhq/api/v1/noop-codegen-anchor": {
|
|
1475
1529
|
"post": {
|
|
1476
|
-
"summary": "
|
|
1477
|
-
"
|
|
1478
|
-
"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",
|
|
1479
1532
|
"responses": {
|
|
1480
1533
|
"200": {
|
|
1481
1534
|
"description": "A successful response.",
|
|
1482
1535
|
"schema": {
|
|
1483
|
-
"$ref": "#/definitions/
|
|
1536
|
+
"$ref": "#/definitions/v1NOOPCodegenAnchorResponse"
|
|
1484
1537
|
}
|
|
1485
1538
|
},
|
|
1486
1539
|
"403": {
|
|
@@ -1501,18 +1554,7 @@
|
|
|
1501
1554
|
}
|
|
1502
1555
|
}
|
|
1503
1556
|
},
|
|
1504
|
-
"
|
|
1505
|
-
{
|
|
1506
|
-
"name": "body",
|
|
1507
|
-
"in": "body",
|
|
1508
|
-
"required": true,
|
|
1509
|
-
"schema": {
|
|
1510
|
-
"$ref": "#/definitions/v1GetPrivateKeyRequest"
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
],
|
|
1514
|
-
"tags": ["Private Keys"],
|
|
1515
|
-
"deprecated": true
|
|
1557
|
+
"tags": ["PublicApiService"]
|
|
1516
1558
|
}
|
|
1517
1559
|
}
|
|
1518
1560
|
},
|
|
@@ -1924,7 +1966,8 @@
|
|
|
1924
1966
|
"ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION",
|
|
1925
1967
|
"ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2",
|
|
1926
1968
|
"ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS",
|
|
1927
|
-
"ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2"
|
|
1969
|
+
"ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2",
|
|
1970
|
+
"ACTIVITY_TYPE_UPDATE_POLICY"
|
|
1928
1971
|
],
|
|
1929
1972
|
"description": "Type of Activity, such as Add User, or Sign Transaction."
|
|
1930
1973
|
},
|
|
@@ -3000,6 +3043,27 @@
|
|
|
3000
3043
|
},
|
|
3001
3044
|
"required": ["userId", "authenticatorIds"]
|
|
3002
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
|
+
},
|
|
3003
3067
|
"v1DeleteAuthenticatorsResult": {
|
|
3004
3068
|
"type": "object",
|
|
3005
3069
|
"properties": {
|
|
@@ -3679,6 +3743,9 @@
|
|
|
3679
3743
|
},
|
|
3680
3744
|
"createPrivateKeysIntentV2": {
|
|
3681
3745
|
"$ref": "#/definitions/v1CreatePrivateKeysIntentV2"
|
|
3746
|
+
},
|
|
3747
|
+
"updatePolicyIntent": {
|
|
3748
|
+
"$ref": "#/definitions/v1UpdatePolicyIntent"
|
|
3682
3749
|
}
|
|
3683
3750
|
},
|
|
3684
3751
|
"description": "Intent object crafted by Turnkey based on the user request, used to assess the permissibility of an action.",
|
|
@@ -4191,6 +4258,9 @@
|
|
|
4191
4258
|
},
|
|
4192
4259
|
"createPrivateKeysResultV2": {
|
|
4193
4260
|
"$ref": "#/definitions/v1CreatePrivateKeysResultV2"
|
|
4261
|
+
},
|
|
4262
|
+
"updatePolicyResult": {
|
|
4263
|
+
"$ref": "#/definitions/v1UpdatePolicyResult"
|
|
4194
4264
|
}
|
|
4195
4265
|
},
|
|
4196
4266
|
"description": "Result of the intended action."
|
|
@@ -4483,6 +4553,68 @@
|
|
|
4483
4553
|
"v1UpdateAllowedOriginsResult": {
|
|
4484
4554
|
"type": "object"
|
|
4485
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
|
+
},
|
|
4486
4618
|
"v1UpdatePrivateKeyTagIntent": {
|
|
4487
4619
|
"type": "object",
|
|
4488
4620
|
"properties": {
|
|
@@ -99,6 +99,10 @@ export type paths = {
|
|
|
99
99
|
/** Remove api keys from a User */
|
|
100
100
|
post: operations["PublicApiService_DeleteApiKeys"];
|
|
101
101
|
};
|
|
102
|
+
"/public/v1/submit/delete_authenticators": {
|
|
103
|
+
/** Remove authenticators from a User */
|
|
104
|
+
post: operations["PublicApiService_DeleteAuthenticators"];
|
|
105
|
+
};
|
|
102
106
|
"/public/v1/submit/delete_invitations": {
|
|
103
107
|
/** Delete an existing Invitation */
|
|
104
108
|
post: operations["PublicApiService_DeleteInvitation"];
|
|
@@ -123,6 +127,10 @@ export type paths = {
|
|
|
123
127
|
/** Update the allowable origins for credentials and requests */
|
|
124
128
|
post: operations["PublicApiService_UpdateAllowedOrigins"];
|
|
125
129
|
};
|
|
130
|
+
"/public/v1/submit/update_policy": {
|
|
131
|
+
/** Update an existing Policy */
|
|
132
|
+
post: operations["PublicApiService_UpdatePolicy"];
|
|
133
|
+
};
|
|
126
134
|
"/public/v1/submit/update_private_key_tag": {
|
|
127
135
|
/** 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. */
|
|
128
136
|
post: operations["PublicApiService_UpdatePrivateKeyTag"];
|
|
@@ -138,10 +146,6 @@ export type paths = {
|
|
|
138
146
|
"/tkhq/api/v1/noop-codegen-anchor": {
|
|
139
147
|
post: operations["PublicApiService_NOOPCodegenAnchor"];
|
|
140
148
|
};
|
|
141
|
-
"/tkhq/public/v1/query/get_private_key": {
|
|
142
|
-
/** Get details about a Private Key */
|
|
143
|
-
post: operations["PublicApiService_GetPrivateKeyBackwardsCompat"];
|
|
144
|
-
};
|
|
145
149
|
};
|
|
146
150
|
export type definitions = {
|
|
147
151
|
datav1Tag: {
|
|
@@ -306,7 +310,7 @@ export type definitions = {
|
|
|
306
310
|
* @description Type of Activity, such as Add User, or Sign Transaction.
|
|
307
311
|
* @enum {string}
|
|
308
312
|
*/
|
|
309
|
-
v1ActivityType: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2";
|
|
313
|
+
v1ActivityType: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_POLICY";
|
|
310
314
|
v1ApiKey: {
|
|
311
315
|
credential: definitions["v1Credential"];
|
|
312
316
|
/** @description Unique identifier for a given API Key. */
|
|
@@ -836,6 +840,15 @@ export type definitions = {
|
|
|
836
840
|
*/
|
|
837
841
|
authenticatorIds: string[];
|
|
838
842
|
};
|
|
843
|
+
v1DeleteAuthenticatorsRequest: {
|
|
844
|
+
/** @enum {string} */
|
|
845
|
+
type: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS";
|
|
846
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
847
|
+
timestampMs: string;
|
|
848
|
+
/** @description Unique identifier for a given Organization. */
|
|
849
|
+
organizationId: string;
|
|
850
|
+
parameters: definitions["v1DeleteAuthenticatorsIntent"];
|
|
851
|
+
};
|
|
839
852
|
v1DeleteAuthenticatorsResult: {
|
|
840
853
|
/** @description Unique identifier for a given Authenticator. */
|
|
841
854
|
authenticatorIds: string[];
|
|
@@ -1110,6 +1123,7 @@ export type definitions = {
|
|
|
1110
1123
|
createSubOrganizationIntentV2?: definitions["v1CreateSubOrganizationIntentV2"];
|
|
1111
1124
|
updateAllowedOriginsIntent?: definitions["v1UpdateAllowedOriginsIntent"];
|
|
1112
1125
|
createPrivateKeysIntentV2?: definitions["v1CreatePrivateKeysIntentV2"];
|
|
1126
|
+
updatePolicyIntent?: definitions["v1UpdatePolicyIntent"];
|
|
1113
1127
|
};
|
|
1114
1128
|
v1Invitation: {
|
|
1115
1129
|
/** @description Unique identifier for a given Invitation object. */
|
|
@@ -1317,6 +1331,7 @@ export type definitions = {
|
|
|
1317
1331
|
createSubOrganizationResult?: definitions["v1CreateSubOrganizationResult"];
|
|
1318
1332
|
updateAllowedOriginsResult?: definitions["v1UpdateAllowedOriginsResult"];
|
|
1319
1333
|
createPrivateKeysResultV2?: definitions["v1CreatePrivateKeysResultV2"];
|
|
1334
|
+
updatePolicyResult?: definitions["v1UpdatePolicyResult"];
|
|
1320
1335
|
};
|
|
1321
1336
|
v1RootUserParams: {
|
|
1322
1337
|
/**
|
|
@@ -1471,6 +1486,38 @@ export type definitions = {
|
|
|
1471
1486
|
v1UpdateAllowedOriginsResult: {
|
|
1472
1487
|
[key: string]: unknown;
|
|
1473
1488
|
};
|
|
1489
|
+
v1UpdatePolicyIntent: {
|
|
1490
|
+
/**
|
|
1491
|
+
* @inject_tag: validate:"uuid"
|
|
1492
|
+
* @description Unique identifier for a given Policy.
|
|
1493
|
+
*/
|
|
1494
|
+
policyId: string;
|
|
1495
|
+
/**
|
|
1496
|
+
* @inject_tag: validate:"omitempty,tk_label,tk_label_length"
|
|
1497
|
+
* @description Human-readable name for a Policy.
|
|
1498
|
+
*/
|
|
1499
|
+
policyName?: string;
|
|
1500
|
+
policyEffect?: definitions["immutableactivityv1Effect"];
|
|
1501
|
+
/** @description The condition expression that triggers the Effect (optional). */
|
|
1502
|
+
policyCondition?: string;
|
|
1503
|
+
/** @description The consensus expression that triggers the Effect (optional). */
|
|
1504
|
+
policyConsensus?: string;
|
|
1505
|
+
/** @description Accompanying notes for a Policy (optional). */
|
|
1506
|
+
policyNotes?: string;
|
|
1507
|
+
};
|
|
1508
|
+
v1UpdatePolicyRequest: {
|
|
1509
|
+
/** @enum {string} */
|
|
1510
|
+
type: "ACTIVITY_TYPE_UPDATE_POLICY";
|
|
1511
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1512
|
+
timestampMs: string;
|
|
1513
|
+
/** @description Unique identifier for a given Organization. */
|
|
1514
|
+
organizationId: string;
|
|
1515
|
+
parameters: definitions["v1UpdatePolicyIntent"];
|
|
1516
|
+
};
|
|
1517
|
+
v1UpdatePolicyResult: {
|
|
1518
|
+
/** @description Unique identifier for a given Policy. */
|
|
1519
|
+
policyId: string;
|
|
1520
|
+
};
|
|
1474
1521
|
v1UpdatePrivateKeyTagIntent: {
|
|
1475
1522
|
/**
|
|
1476
1523
|
* @inject_tag: validate:"uuid"
|
|
@@ -2300,6 +2347,32 @@ export type operations = {
|
|
|
2300
2347
|
};
|
|
2301
2348
|
};
|
|
2302
2349
|
};
|
|
2350
|
+
/** Remove authenticators from a User */
|
|
2351
|
+
PublicApiService_DeleteAuthenticators: {
|
|
2352
|
+
parameters: {
|
|
2353
|
+
body: {
|
|
2354
|
+
body: definitions["v1DeleteAuthenticatorsRequest"];
|
|
2355
|
+
};
|
|
2356
|
+
};
|
|
2357
|
+
responses: {
|
|
2358
|
+
/** A successful response. */
|
|
2359
|
+
200: {
|
|
2360
|
+
schema: definitions["v1ActivityResponse"];
|
|
2361
|
+
};
|
|
2362
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2363
|
+
403: {
|
|
2364
|
+
schema: unknown;
|
|
2365
|
+
};
|
|
2366
|
+
/** Returned when the resource does not exist. */
|
|
2367
|
+
404: {
|
|
2368
|
+
schema: string;
|
|
2369
|
+
};
|
|
2370
|
+
/** An unexpected error response. */
|
|
2371
|
+
default: {
|
|
2372
|
+
schema: definitions["rpcStatus"];
|
|
2373
|
+
};
|
|
2374
|
+
};
|
|
2375
|
+
};
|
|
2303
2376
|
/** Delete an existing Invitation */
|
|
2304
2377
|
PublicApiService_DeleteInvitation: {
|
|
2305
2378
|
parameters: {
|
|
@@ -2456,11 +2529,11 @@ export type operations = {
|
|
|
2456
2529
|
};
|
|
2457
2530
|
};
|
|
2458
2531
|
};
|
|
2459
|
-
/** Update
|
|
2460
|
-
|
|
2532
|
+
/** Update an existing Policy */
|
|
2533
|
+
PublicApiService_UpdatePolicy: {
|
|
2461
2534
|
parameters: {
|
|
2462
2535
|
body: {
|
|
2463
|
-
body: definitions["
|
|
2536
|
+
body: definitions["v1UpdatePolicyRequest"];
|
|
2464
2537
|
};
|
|
2465
2538
|
};
|
|
2466
2539
|
responses: {
|
|
@@ -2482,11 +2555,11 @@ export type operations = {
|
|
|
2482
2555
|
};
|
|
2483
2556
|
};
|
|
2484
2557
|
};
|
|
2485
|
-
/**
|
|
2486
|
-
|
|
2558
|
+
/** 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. */
|
|
2559
|
+
PublicApiService_UpdatePrivateKeyTag: {
|
|
2487
2560
|
parameters: {
|
|
2488
2561
|
body: {
|
|
2489
|
-
body: definitions["
|
|
2562
|
+
body: definitions["v1UpdatePrivateKeyTagRequest"];
|
|
2490
2563
|
};
|
|
2491
2564
|
};
|
|
2492
2565
|
responses: {
|
|
@@ -2508,11 +2581,11 @@ export type operations = {
|
|
|
2508
2581
|
};
|
|
2509
2582
|
};
|
|
2510
2583
|
};
|
|
2511
|
-
/**
|
|
2512
|
-
|
|
2584
|
+
/** Set the threshold and members of the root quorum. This must be approved by the current root quorum. */
|
|
2585
|
+
PublicApiService_UpdateRootQuorum: {
|
|
2513
2586
|
parameters: {
|
|
2514
2587
|
body: {
|
|
2515
|
-
body: definitions["
|
|
2588
|
+
body: definitions["v1UpdateRootQuorumRequest"];
|
|
2516
2589
|
};
|
|
2517
2590
|
};
|
|
2518
2591
|
responses: {
|
|
@@ -2534,11 +2607,17 @@ export type operations = {
|
|
|
2534
2607
|
};
|
|
2535
2608
|
};
|
|
2536
2609
|
};
|
|
2537
|
-
|
|
2610
|
+
/** 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. */
|
|
2611
|
+
PublicApiService_UpdateUserTag: {
|
|
2612
|
+
parameters: {
|
|
2613
|
+
body: {
|
|
2614
|
+
body: definitions["v1UpdateUserTagRequest"];
|
|
2615
|
+
};
|
|
2616
|
+
};
|
|
2538
2617
|
responses: {
|
|
2539
2618
|
/** A successful response. */
|
|
2540
2619
|
200: {
|
|
2541
|
-
schema: definitions["
|
|
2620
|
+
schema: definitions["v1ActivityResponse"];
|
|
2542
2621
|
};
|
|
2543
2622
|
/** Returned when the user does not have permission to access the resource. */
|
|
2544
2623
|
403: {
|
|
@@ -2554,17 +2633,11 @@ export type operations = {
|
|
|
2554
2633
|
};
|
|
2555
2634
|
};
|
|
2556
2635
|
};
|
|
2557
|
-
|
|
2558
|
-
PublicApiService_GetPrivateKeyBackwardsCompat: {
|
|
2559
|
-
parameters: {
|
|
2560
|
-
body: {
|
|
2561
|
-
body: definitions["v1GetPrivateKeyRequest"];
|
|
2562
|
-
};
|
|
2563
|
-
};
|
|
2636
|
+
PublicApiService_NOOPCodegenAnchor: {
|
|
2564
2637
|
responses: {
|
|
2565
2638
|
/** A successful response. */
|
|
2566
2639
|
200: {
|
|
2567
|
-
schema: definitions["
|
|
2640
|
+
schema: definitions["v1NOOPCodegenAnchorResponse"];
|
|
2568
2641
|
};
|
|
2569
2642
|
/** Returned when the user does not have permission to access the resource. */
|
|
2570
2643
|
403: {
|