@turnkey/http 0.18.0 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +2710 -554
- 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 +122 -2
- 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 +481 -7
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +236 -4
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -72,6 +72,112 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
+
"/public/v1/query/get_authenticator": {
|
|
76
|
+
"post": {
|
|
77
|
+
"summary": "Get Authenticator",
|
|
78
|
+
"description": "Get details about an authenticator",
|
|
79
|
+
"operationId": "PublicApiService_GetAuthenticator",
|
|
80
|
+
"responses": {
|
|
81
|
+
"200": {
|
|
82
|
+
"description": "A successful response.",
|
|
83
|
+
"schema": {
|
|
84
|
+
"$ref": "#/definitions/v1GetAuthenticatorResponse"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"403": {
|
|
88
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
89
|
+
"schema": {}
|
|
90
|
+
},
|
|
91
|
+
"404": {
|
|
92
|
+
"description": "Returned when the resource does not exist.",
|
|
93
|
+
"schema": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"format": "string"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"default": {
|
|
99
|
+
"description": "An unexpected error response.",
|
|
100
|
+
"schema": {
|
|
101
|
+
"$ref": "#/definitions/rpcStatus"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"parameters": [
|
|
106
|
+
{
|
|
107
|
+
"name": "body",
|
|
108
|
+
"in": "body",
|
|
109
|
+
"required": true,
|
|
110
|
+
"schema": {
|
|
111
|
+
"$ref": "#/definitions/v1GetAuthenticatorRequest"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"tags": ["Authenticators"],
|
|
116
|
+
"x-readme": {
|
|
117
|
+
"code-samples": [
|
|
118
|
+
{
|
|
119
|
+
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_authenticator --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"authenticatorId\": \"'\"$AUTHENTICATOR_ID\"'\"\n}'",
|
|
120
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
121
|
+
"language": "curl",
|
|
122
|
+
"name": "Turnkey CLI"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"/public/v1/query/get_authenticators": {
|
|
129
|
+
"post": {
|
|
130
|
+
"summary": "Get Authenticators",
|
|
131
|
+
"description": "Get details about authenticators for a user",
|
|
132
|
+
"operationId": "PublicApiService_GetAuthenticators",
|
|
133
|
+
"responses": {
|
|
134
|
+
"200": {
|
|
135
|
+
"description": "A successful response.",
|
|
136
|
+
"schema": {
|
|
137
|
+
"$ref": "#/definitions/v1GetAuthenticatorsResponse"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"403": {
|
|
141
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
142
|
+
"schema": {}
|
|
143
|
+
},
|
|
144
|
+
"404": {
|
|
145
|
+
"description": "Returned when the resource does not exist.",
|
|
146
|
+
"schema": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"format": "string"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"default": {
|
|
152
|
+
"description": "An unexpected error response.",
|
|
153
|
+
"schema": {
|
|
154
|
+
"$ref": "#/definitions/rpcStatus"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"parameters": [
|
|
159
|
+
{
|
|
160
|
+
"name": "body",
|
|
161
|
+
"in": "body",
|
|
162
|
+
"required": true,
|
|
163
|
+
"schema": {
|
|
164
|
+
"$ref": "#/definitions/v1GetAuthenticatorsRequest"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"tags": ["Authenticators"],
|
|
169
|
+
"x-readme": {
|
|
170
|
+
"code-samples": [
|
|
171
|
+
{
|
|
172
|
+
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_authenticators --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"userId\": \"'\"$USER_ID\"'\"\n}'",
|
|
173
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
174
|
+
"language": "curl",
|
|
175
|
+
"name": "Turnkey CLI"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
75
181
|
"/public/v1/query/get_organization": {
|
|
76
182
|
"post": {
|
|
77
183
|
"summary": "Get Organization",
|
|
@@ -328,7 +434,7 @@
|
|
|
328
434
|
"x-readme": {
|
|
329
435
|
"code-samples": [
|
|
330
436
|
{
|
|
331
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_activities --body '{\n\t\"organizationId\": \"
|
|
437
|
+
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_activities --body '{\n\t\"organizationId\": \"$ORGANIZATION_ID\",\n\t\"filterByStatus\": [\n\t\t\"$ACTIVITY_STATUS\"\n\t],\n\t\"filterByType\": [\n\t\t\"$ACTIVITY_TYPE\"\n\t],\n\t\"paginationOptions\": {\n\t\t\"limit\": \"$NUM_ACTIVITIES\",\n\t\t\"before\": \"$BEFORE_ACTIVITY_ID\",\n\t\t\"after\": \"$AFTER_ACTIVITY_ID\"\n\t}\n}'",
|
|
332
438
|
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
333
439
|
"language": "curl",
|
|
334
440
|
"name": "Turnkey CLI"
|
|
@@ -867,6 +973,59 @@
|
|
|
867
973
|
}
|
|
868
974
|
}
|
|
869
975
|
},
|
|
976
|
+
"/public/v1/submit/create_private_key_tag": {
|
|
977
|
+
"post": {
|
|
978
|
+
"summary": "Create User Tag",
|
|
979
|
+
"description": "Create a private key tag and add it to private keys.",
|
|
980
|
+
"operationId": "PublicApiService_CreatePrivateKeyTag",
|
|
981
|
+
"responses": {
|
|
982
|
+
"200": {
|
|
983
|
+
"description": "A successful response.",
|
|
984
|
+
"schema": {
|
|
985
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"403": {
|
|
989
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
990
|
+
"schema": {}
|
|
991
|
+
},
|
|
992
|
+
"404": {
|
|
993
|
+
"description": "Returned when the resource does not exist.",
|
|
994
|
+
"schema": {
|
|
995
|
+
"type": "string",
|
|
996
|
+
"format": "string"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"default": {
|
|
1000
|
+
"description": "An unexpected error response.",
|
|
1001
|
+
"schema": {
|
|
1002
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
"parameters": [
|
|
1007
|
+
{
|
|
1008
|
+
"name": "body",
|
|
1009
|
+
"in": "body",
|
|
1010
|
+
"required": true,
|
|
1011
|
+
"schema": {
|
|
1012
|
+
"$ref": "#/definitions/v1CreatePrivateKeyTagRequest"
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
],
|
|
1016
|
+
"tags": ["Private Key Tags"],
|
|
1017
|
+
"x-readme": {
|
|
1018
|
+
"code-samples": [
|
|
1019
|
+
{
|
|
1020
|
+
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_private_key_tag --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"privateKeyTagName\": \"\",\n\t\t\"privateKeyIds\": \"\",\n}'",
|
|
1021
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1022
|
+
"language": "curl",
|
|
1023
|
+
"name": "Turnkey CLI"
|
|
1024
|
+
}
|
|
1025
|
+
]
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
870
1029
|
"/public/v1/submit/create_private_keys": {
|
|
871
1030
|
"post": {
|
|
872
1031
|
"summary": "Create Private Keys",
|
|
@@ -973,6 +1132,59 @@
|
|
|
973
1132
|
}
|
|
974
1133
|
}
|
|
975
1134
|
},
|
|
1135
|
+
"/public/v1/submit/create_user_tag": {
|
|
1136
|
+
"post": {
|
|
1137
|
+
"summary": "Create User Tag",
|
|
1138
|
+
"description": "Create a user tag and add it to users.",
|
|
1139
|
+
"operationId": "PublicApiService_CreateUserTag",
|
|
1140
|
+
"responses": {
|
|
1141
|
+
"200": {
|
|
1142
|
+
"description": "A successful response.",
|
|
1143
|
+
"schema": {
|
|
1144
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
"403": {
|
|
1148
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
1149
|
+
"schema": {}
|
|
1150
|
+
},
|
|
1151
|
+
"404": {
|
|
1152
|
+
"description": "Returned when the resource does not exist.",
|
|
1153
|
+
"schema": {
|
|
1154
|
+
"type": "string",
|
|
1155
|
+
"format": "string"
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
"default": {
|
|
1159
|
+
"description": "An unexpected error response.",
|
|
1160
|
+
"schema": {
|
|
1161
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
"parameters": [
|
|
1166
|
+
{
|
|
1167
|
+
"name": "body",
|
|
1168
|
+
"in": "body",
|
|
1169
|
+
"required": true,
|
|
1170
|
+
"schema": {
|
|
1171
|
+
"$ref": "#/definitions/v1CreateUserTagRequest"
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
],
|
|
1175
|
+
"tags": ["User Tags"],
|
|
1176
|
+
"x-readme": {
|
|
1177
|
+
"code-samples": [
|
|
1178
|
+
{
|
|
1179
|
+
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_user_tag --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_USER_TAG\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"userTagName\": \"\",\n\t\t\"userIds\": \"\",\n}'",
|
|
1180
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1181
|
+
"language": "curl",
|
|
1182
|
+
"name": "Turnkey CLI"
|
|
1183
|
+
}
|
|
1184
|
+
]
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
976
1188
|
"/public/v1/submit/create_users": {
|
|
977
1189
|
"post": {
|
|
978
1190
|
"summary": "Create Users",
|
|
@@ -1345,6 +1557,59 @@
|
|
|
1345
1557
|
}
|
|
1346
1558
|
}
|
|
1347
1559
|
},
|
|
1560
|
+
"/public/v1/submit/update_allowed_origins": {
|
|
1561
|
+
"post": {
|
|
1562
|
+
"summary": "Update the allowable origins",
|
|
1563
|
+
"description": "Update the additional allowable origins for requests besides Turnkey origins",
|
|
1564
|
+
"operationId": "PublicApiService_UpdateAllowedOrigins",
|
|
1565
|
+
"responses": {
|
|
1566
|
+
"200": {
|
|
1567
|
+
"description": "A successful response.",
|
|
1568
|
+
"schema": {
|
|
1569
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1572
|
+
"403": {
|
|
1573
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
1574
|
+
"schema": {}
|
|
1575
|
+
},
|
|
1576
|
+
"404": {
|
|
1577
|
+
"description": "Returned when the resource does not exist.",
|
|
1578
|
+
"schema": {
|
|
1579
|
+
"type": "string",
|
|
1580
|
+
"format": "string"
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
"default": {
|
|
1584
|
+
"description": "An unexpected error response.",
|
|
1585
|
+
"schema": {
|
|
1586
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
},
|
|
1590
|
+
"parameters": [
|
|
1591
|
+
{
|
|
1592
|
+
"name": "body",
|
|
1593
|
+
"in": "body",
|
|
1594
|
+
"required": true,
|
|
1595
|
+
"schema": {
|
|
1596
|
+
"$ref": "#/definitions/v1UpdateAllowedOriginsRequest"
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
],
|
|
1600
|
+
"tags": ["Update Domains"],
|
|
1601
|
+
"x-readme": {
|
|
1602
|
+
"code-samples": [
|
|
1603
|
+
{
|
|
1604
|
+
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/update_allowed_origins --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"UPDATE_DOMAINS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"domains\": \"'\"$DOMAINS\"'\"\n\t}\n}'",
|
|
1605
|
+
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1606
|
+
"language": "curl",
|
|
1607
|
+
"name": "Turnkey CLI"
|
|
1608
|
+
}
|
|
1609
|
+
]
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1348
1613
|
"/public/v1/submit/update_private_key_tag": {
|
|
1349
1614
|
"post": {
|
|
1350
1615
|
"summary": "Update Private Key Tag",
|
|
@@ -1442,7 +1707,7 @@
|
|
|
1442
1707
|
"x-readme": {
|
|
1443
1708
|
"code-samples": [
|
|
1444
1709
|
{
|
|
1445
|
-
"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
|
|
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}'",
|
|
1446
1711
|
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1447
1712
|
"language": "curl",
|
|
1448
1713
|
"name": "Turnkey CLI"
|
|
@@ -1495,7 +1760,7 @@
|
|
|
1495
1760
|
"x-readme": {
|
|
1496
1761
|
"code-samples": [
|
|
1497
1762
|
{
|
|
1498
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/
|
|
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}'",
|
|
1499
1764
|
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1500
1765
|
"language": "curl",
|
|
1501
1766
|
"name": "Turnkey CLI"
|
|
@@ -1699,6 +1964,17 @@
|
|
|
1699
1964
|
"type": "string",
|
|
1700
1965
|
"enum": ["ACCESS_TYPE_WEB", "ACCESS_TYPE_API", "ACCESS_TYPE_ALL"]
|
|
1701
1966
|
},
|
|
1967
|
+
"immutableactivityv1Address": {
|
|
1968
|
+
"type": "object",
|
|
1969
|
+
"properties": {
|
|
1970
|
+
"format": {
|
|
1971
|
+
"$ref": "#/definitions/immutableactivityv1AddressFormat"
|
|
1972
|
+
},
|
|
1973
|
+
"address": {
|
|
1974
|
+
"type": "string"
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1702
1978
|
"immutableactivityv1AddressFormat": {
|
|
1703
1979
|
"type": "string",
|
|
1704
1980
|
"enum": [
|
|
@@ -1986,7 +2262,9 @@
|
|
|
1986
2262
|
"ACTIVITY_TYPE_CREATE_USERS_V2",
|
|
1987
2263
|
"ACTIVITY_TYPE_ACCEPT_INVITATION_V2",
|
|
1988
2264
|
"ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION",
|
|
1989
|
-
"ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2"
|
|
2265
|
+
"ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2",
|
|
2266
|
+
"ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS",
|
|
2267
|
+
"ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2"
|
|
1990
2268
|
],
|
|
1991
2269
|
"description": "Type of Activity, such as Add User, or Sign Transaction."
|
|
1992
2270
|
},
|
|
@@ -2507,7 +2785,7 @@
|
|
|
2507
2785
|
"organizationName": {
|
|
2508
2786
|
"type": "string",
|
|
2509
2787
|
"description": "Human-readable name for an Organization.",
|
|
2510
|
-
"title": "@inject_tag: validate:\"required,tk_label_length\""
|
|
2788
|
+
"title": "@inject_tag: validate:\"required,tk_label,tk_label_length\""
|
|
2511
2789
|
},
|
|
2512
2790
|
"rootEmail": {
|
|
2513
2791
|
"type": "string",
|
|
@@ -2660,6 +2938,27 @@
|
|
|
2660
2938
|
},
|
|
2661
2939
|
"required": ["privateKeyTagName", "privateKeyIds"]
|
|
2662
2940
|
},
|
|
2941
|
+
"v1CreatePrivateKeyTagRequest": {
|
|
2942
|
+
"type": "object",
|
|
2943
|
+
"properties": {
|
|
2944
|
+
"type": {
|
|
2945
|
+
"type": "string",
|
|
2946
|
+
"enum": ["ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG"]
|
|
2947
|
+
},
|
|
2948
|
+
"timestampMs": {
|
|
2949
|
+
"type": "string",
|
|
2950
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
2951
|
+
},
|
|
2952
|
+
"organizationId": {
|
|
2953
|
+
"type": "string",
|
|
2954
|
+
"description": "Unique identifier for a given Organization."
|
|
2955
|
+
},
|
|
2956
|
+
"parameters": {
|
|
2957
|
+
"$ref": "#/definitions/v1CreatePrivateKeyTagIntent"
|
|
2958
|
+
}
|
|
2959
|
+
},
|
|
2960
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
2961
|
+
},
|
|
2663
2962
|
"v1CreatePrivateKeyTagResult": {
|
|
2664
2963
|
"type": "object",
|
|
2665
2964
|
"properties": {
|
|
@@ -2691,12 +2990,26 @@
|
|
|
2691
2990
|
},
|
|
2692
2991
|
"required": ["privateKeys"]
|
|
2693
2992
|
},
|
|
2993
|
+
"v1CreatePrivateKeysIntentV2": {
|
|
2994
|
+
"type": "object",
|
|
2995
|
+
"properties": {
|
|
2996
|
+
"privateKeys": {
|
|
2997
|
+
"type": "array",
|
|
2998
|
+
"items": {
|
|
2999
|
+
"$ref": "#/definitions/v1PrivateKeyParams"
|
|
3000
|
+
},
|
|
3001
|
+
"description": "A list of Private Keys.",
|
|
3002
|
+
"title": "@inject_tag: validate:\"dive,required\""
|
|
3003
|
+
}
|
|
3004
|
+
},
|
|
3005
|
+
"required": ["privateKeys"]
|
|
3006
|
+
},
|
|
2694
3007
|
"v1CreatePrivateKeysRequest": {
|
|
2695
3008
|
"type": "object",
|
|
2696
3009
|
"properties": {
|
|
2697
3010
|
"type": {
|
|
2698
3011
|
"type": "string",
|
|
2699
|
-
"enum": ["
|
|
3012
|
+
"enum": ["ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2"]
|
|
2700
3013
|
},
|
|
2701
3014
|
"timestampMs": {
|
|
2702
3015
|
"type": "string",
|
|
@@ -2707,7 +3020,7 @@
|
|
|
2707
3020
|
"description": "Unique identifier for a given Organization."
|
|
2708
3021
|
},
|
|
2709
3022
|
"parameters": {
|
|
2710
|
-
"$ref": "#/definitions/
|
|
3023
|
+
"$ref": "#/definitions/v1CreatePrivateKeysIntentV2"
|
|
2711
3024
|
}
|
|
2712
3025
|
},
|
|
2713
3026
|
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
@@ -2725,6 +3038,19 @@
|
|
|
2725
3038
|
},
|
|
2726
3039
|
"required": ["privateKeyIds"]
|
|
2727
3040
|
},
|
|
3041
|
+
"v1CreatePrivateKeysResultV2": {
|
|
3042
|
+
"type": "object",
|
|
3043
|
+
"properties": {
|
|
3044
|
+
"privateKeys": {
|
|
3045
|
+
"type": "array",
|
|
3046
|
+
"items": {
|
|
3047
|
+
"$ref": "#/definitions/v1PrivateKeyResult"
|
|
3048
|
+
},
|
|
3049
|
+
"description": "A list of Private Key IDs and addresses."
|
|
3050
|
+
}
|
|
3051
|
+
},
|
|
3052
|
+
"required": ["privateKeys"]
|
|
3053
|
+
},
|
|
2728
3054
|
"v1CreateSubOrganizationIntent": {
|
|
2729
3055
|
"type": "object",
|
|
2730
3056
|
"properties": {
|
|
@@ -2813,6 +3139,27 @@
|
|
|
2813
3139
|
},
|
|
2814
3140
|
"required": ["userTagName", "userIds"]
|
|
2815
3141
|
},
|
|
3142
|
+
"v1CreateUserTagRequest": {
|
|
3143
|
+
"type": "object",
|
|
3144
|
+
"properties": {
|
|
3145
|
+
"type": {
|
|
3146
|
+
"type": "string",
|
|
3147
|
+
"enum": ["ACTIVITY_TYPE_CREATE_USER_TAG"]
|
|
3148
|
+
},
|
|
3149
|
+
"timestampMs": {
|
|
3150
|
+
"type": "string",
|
|
3151
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
3152
|
+
},
|
|
3153
|
+
"organizationId": {
|
|
3154
|
+
"type": "string",
|
|
3155
|
+
"description": "Unique identifier for a given Organization."
|
|
3156
|
+
},
|
|
3157
|
+
"parameters": {
|
|
3158
|
+
"$ref": "#/definitions/v1CreateUserTagIntent"
|
|
3159
|
+
}
|
|
3160
|
+
},
|
|
3161
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
3162
|
+
},
|
|
2816
3163
|
"v1CreateUserTagResult": {
|
|
2817
3164
|
"type": "object",
|
|
2818
3165
|
"properties": {
|
|
@@ -3263,6 +3610,13 @@
|
|
|
3263
3610
|
},
|
|
3264
3611
|
"paginationOptions": {
|
|
3265
3612
|
"$ref": "#/definitions/v1Pagination"
|
|
3613
|
+
},
|
|
3614
|
+
"filterByType": {
|
|
3615
|
+
"type": "array",
|
|
3616
|
+
"items": {
|
|
3617
|
+
"$ref": "#/definitions/v1ActivityType"
|
|
3618
|
+
},
|
|
3619
|
+
"description": "Array of Activity Types filtering which Activities will be listed in the response."
|
|
3266
3620
|
}
|
|
3267
3621
|
},
|
|
3268
3622
|
"required": ["organizationId"]
|
|
@@ -3294,6 +3648,56 @@
|
|
|
3294
3648
|
},
|
|
3295
3649
|
"required": ["organizationId", "activityId"]
|
|
3296
3650
|
},
|
|
3651
|
+
"v1GetAuthenticatorRequest": {
|
|
3652
|
+
"type": "object",
|
|
3653
|
+
"properties": {
|
|
3654
|
+
"organizationId": {
|
|
3655
|
+
"type": "string",
|
|
3656
|
+
"description": "Unique identifier for a given Organization."
|
|
3657
|
+
},
|
|
3658
|
+
"authenticatorId": {
|
|
3659
|
+
"type": "string",
|
|
3660
|
+
"description": "Unique identifier for a given Authenticator."
|
|
3661
|
+
}
|
|
3662
|
+
},
|
|
3663
|
+
"required": ["organizationId", "authenticatorId"]
|
|
3664
|
+
},
|
|
3665
|
+
"v1GetAuthenticatorResponse": {
|
|
3666
|
+
"type": "object",
|
|
3667
|
+
"properties": {
|
|
3668
|
+
"authenticator": {
|
|
3669
|
+
"$ref": "#/definitions/v1Authenticator"
|
|
3670
|
+
}
|
|
3671
|
+
},
|
|
3672
|
+
"required": ["authenticator"]
|
|
3673
|
+
},
|
|
3674
|
+
"v1GetAuthenticatorsRequest": {
|
|
3675
|
+
"type": "object",
|
|
3676
|
+
"properties": {
|
|
3677
|
+
"organizationId": {
|
|
3678
|
+
"type": "string",
|
|
3679
|
+
"description": "Unique identifier for a given Organization."
|
|
3680
|
+
},
|
|
3681
|
+
"userId": {
|
|
3682
|
+
"type": "string",
|
|
3683
|
+
"description": "Unique identifier for a given User."
|
|
3684
|
+
}
|
|
3685
|
+
},
|
|
3686
|
+
"required": ["organizationId", "userId"]
|
|
3687
|
+
},
|
|
3688
|
+
"v1GetAuthenticatorsResponse": {
|
|
3689
|
+
"type": "object",
|
|
3690
|
+
"properties": {
|
|
3691
|
+
"authenticators": {
|
|
3692
|
+
"type": "array",
|
|
3693
|
+
"items": {
|
|
3694
|
+
"$ref": "#/definitions/v1Authenticator"
|
|
3695
|
+
},
|
|
3696
|
+
"description": "A list of authenticators."
|
|
3697
|
+
}
|
|
3698
|
+
},
|
|
3699
|
+
"required": ["authenticators"]
|
|
3700
|
+
},
|
|
3297
3701
|
"v1GetOrganizationRequest": {
|
|
3298
3702
|
"type": "object",
|
|
3299
3703
|
"properties": {
|
|
@@ -3609,6 +4013,12 @@
|
|
|
3609
4013
|
},
|
|
3610
4014
|
"createSubOrganizationIntentV2": {
|
|
3611
4015
|
"$ref": "#/definitions/v1CreateSubOrganizationIntentV2"
|
|
4016
|
+
},
|
|
4017
|
+
"updateAllowedOriginsIntent": {
|
|
4018
|
+
"$ref": "#/definitions/v1UpdateAllowedOriginsIntent"
|
|
4019
|
+
},
|
|
4020
|
+
"createPrivateKeysIntentV2": {
|
|
4021
|
+
"$ref": "#/definitions/v1CreatePrivateKeysIntentV2"
|
|
3612
4022
|
}
|
|
3613
4023
|
},
|
|
3614
4024
|
"description": "Intent object crafted by Turnkey based on the user request, used to assess the permissibility of an action.",
|
|
@@ -3767,6 +4177,12 @@
|
|
|
3767
4177
|
},
|
|
3768
4178
|
"rootQuorum": {
|
|
3769
4179
|
"$ref": "#/definitions/v1Quorum"
|
|
4180
|
+
},
|
|
4181
|
+
"allowedOrigins": {
|
|
4182
|
+
"type": "array",
|
|
4183
|
+
"items": {
|
|
4184
|
+
"type": "string"
|
|
4185
|
+
}
|
|
3770
4186
|
}
|
|
3771
4187
|
},
|
|
3772
4188
|
"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."
|
|
@@ -3927,6 +4343,20 @@
|
|
|
3927
4343
|
"addressFormats"
|
|
3928
4344
|
]
|
|
3929
4345
|
},
|
|
4346
|
+
"v1PrivateKeyResult": {
|
|
4347
|
+
"type": "object",
|
|
4348
|
+
"properties": {
|
|
4349
|
+
"privateKeyId": {
|
|
4350
|
+
"type": "string"
|
|
4351
|
+
},
|
|
4352
|
+
"addresses": {
|
|
4353
|
+
"type": "array",
|
|
4354
|
+
"items": {
|
|
4355
|
+
"$ref": "#/definitions/immutableactivityv1Address"
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
},
|
|
3930
4360
|
"v1PublicKeyCredentialWithAttestation": {
|
|
3931
4361
|
"type": "object",
|
|
3932
4362
|
"properties": {
|
|
@@ -4095,6 +4525,12 @@
|
|
|
4095
4525
|
},
|
|
4096
4526
|
"createSubOrganizationResult": {
|
|
4097
4527
|
"$ref": "#/definitions/v1CreateSubOrganizationResult"
|
|
4528
|
+
},
|
|
4529
|
+
"updateAllowedOriginsResult": {
|
|
4530
|
+
"$ref": "#/definitions/v1UpdateAllowedOriginsResult"
|
|
4531
|
+
},
|
|
4532
|
+
"createPrivateKeysResultV2": {
|
|
4533
|
+
"$ref": "#/definitions/v1CreatePrivateKeysResultV2"
|
|
4098
4534
|
}
|
|
4099
4535
|
},
|
|
4100
4536
|
"description": "Result of the intended action."
|
|
@@ -4349,6 +4785,44 @@
|
|
|
4349
4785
|
},
|
|
4350
4786
|
"required": ["seconds", "nanos"]
|
|
4351
4787
|
},
|
|
4788
|
+
"v1UpdateAllowedOriginsIntent": {
|
|
4789
|
+
"type": "object",
|
|
4790
|
+
"properties": {
|
|
4791
|
+
"allowedOrigins": {
|
|
4792
|
+
"type": "array",
|
|
4793
|
+
"items": {
|
|
4794
|
+
"type": "string"
|
|
4795
|
+
},
|
|
4796
|
+
"description": "Additional origins requests are allowed from besides Turnkey origins",
|
|
4797
|
+
"title": "@inject_tag: validate:\"required\""
|
|
4798
|
+
}
|
|
4799
|
+
},
|
|
4800
|
+
"required": ["allowedOrigins"]
|
|
4801
|
+
},
|
|
4802
|
+
"v1UpdateAllowedOriginsRequest": {
|
|
4803
|
+
"type": "object",
|
|
4804
|
+
"properties": {
|
|
4805
|
+
"type": {
|
|
4806
|
+
"type": "string",
|
|
4807
|
+
"enum": ["ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS"]
|
|
4808
|
+
},
|
|
4809
|
+
"timestampMs": {
|
|
4810
|
+
"type": "string",
|
|
4811
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
4812
|
+
},
|
|
4813
|
+
"organizationId": {
|
|
4814
|
+
"type": "string",
|
|
4815
|
+
"description": "Unique identifier for a given Organization."
|
|
4816
|
+
},
|
|
4817
|
+
"parameters": {
|
|
4818
|
+
"$ref": "#/definitions/v1UpdateAllowedOriginsIntent"
|
|
4819
|
+
}
|
|
4820
|
+
},
|
|
4821
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
4822
|
+
},
|
|
4823
|
+
"v1UpdateAllowedOriginsResult": {
|
|
4824
|
+
"type": "object"
|
|
4825
|
+
},
|
|
4352
4826
|
"v1UpdatePrivateKeyTagIntent": {
|
|
4353
4827
|
"type": "object",
|
|
4354
4828
|
"properties": {
|