@turnkey/http 0.18.0 → 1.0.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 +22 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +3065 -743
- 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 +304 -184
- 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 +455 -326
- 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/dist/async.d.ts.map +1 -1
- package/dist/async.js +1 -1
- package/dist/async.js.map +1 -1
- package/dist/base.d.ts +3 -3
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +3 -3
- package/dist/base.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/shared.d.ts +4 -1
- package/dist/shared.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -59,17 +59,93 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
|
-
"tags": ["Activities"]
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
"tags": ["Activities"]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"/public/v1/query/get_authenticator": {
|
|
66
|
+
"post": {
|
|
67
|
+
"summary": "Get Authenticator",
|
|
68
|
+
"description": "Get details about an authenticator",
|
|
69
|
+
"operationId": "PublicApiService_GetAuthenticator",
|
|
70
|
+
"responses": {
|
|
71
|
+
"200": {
|
|
72
|
+
"description": "A successful response.",
|
|
73
|
+
"schema": {
|
|
74
|
+
"$ref": "#/definitions/v1GetAuthenticatorResponse"
|
|
70
75
|
}
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
},
|
|
77
|
+
"403": {
|
|
78
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
79
|
+
"schema": {}
|
|
80
|
+
},
|
|
81
|
+
"404": {
|
|
82
|
+
"description": "Returned when the resource does not exist.",
|
|
83
|
+
"schema": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"format": "string"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"default": {
|
|
89
|
+
"description": "An unexpected error response.",
|
|
90
|
+
"schema": {
|
|
91
|
+
"$ref": "#/definitions/rpcStatus"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"parameters": [
|
|
96
|
+
{
|
|
97
|
+
"name": "body",
|
|
98
|
+
"in": "body",
|
|
99
|
+
"required": true,
|
|
100
|
+
"schema": {
|
|
101
|
+
"$ref": "#/definitions/v1GetAuthenticatorRequest"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"tags": ["Authenticators"]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"/public/v1/query/get_authenticators": {
|
|
109
|
+
"post": {
|
|
110
|
+
"summary": "Get Authenticators",
|
|
111
|
+
"description": "Get details about authenticators for a user",
|
|
112
|
+
"operationId": "PublicApiService_GetAuthenticators",
|
|
113
|
+
"responses": {
|
|
114
|
+
"200": {
|
|
115
|
+
"description": "A successful response.",
|
|
116
|
+
"schema": {
|
|
117
|
+
"$ref": "#/definitions/v1GetAuthenticatorsResponse"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"403": {
|
|
121
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
122
|
+
"schema": {}
|
|
123
|
+
},
|
|
124
|
+
"404": {
|
|
125
|
+
"description": "Returned when the resource does not exist.",
|
|
126
|
+
"schema": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"format": "string"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"default": {
|
|
132
|
+
"description": "An unexpected error response.",
|
|
133
|
+
"schema": {
|
|
134
|
+
"$ref": "#/definitions/rpcStatus"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"parameters": [
|
|
139
|
+
{
|
|
140
|
+
"name": "body",
|
|
141
|
+
"in": "body",
|
|
142
|
+
"required": true,
|
|
143
|
+
"schema": {
|
|
144
|
+
"$ref": "#/definitions/v1GetAuthenticatorsRequest"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"tags": ["Authenticators"]
|
|
73
149
|
}
|
|
74
150
|
},
|
|
75
151
|
"/public/v1/query/get_organization": {
|
|
@@ -112,17 +188,7 @@
|
|
|
112
188
|
}
|
|
113
189
|
}
|
|
114
190
|
],
|
|
115
|
-
"tags": ["Organizations"]
|
|
116
|
-
"x-readme": {
|
|
117
|
-
"code-samples": [
|
|
118
|
-
{
|
|
119
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_organization --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
|
|
120
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
121
|
-
"language": "curl",
|
|
122
|
-
"name": "Turnkey CLI"
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
}
|
|
191
|
+
"tags": ["Organizations"]
|
|
126
192
|
}
|
|
127
193
|
},
|
|
128
194
|
"/public/v1/query/get_policy": {
|
|
@@ -165,17 +231,7 @@
|
|
|
165
231
|
}
|
|
166
232
|
}
|
|
167
233
|
],
|
|
168
|
-
"tags": ["Policies"]
|
|
169
|
-
"x-readme": {
|
|
170
|
-
"code-samples": [
|
|
171
|
-
{
|
|
172
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_policy --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"policyId\": \"\"\n}'",
|
|
173
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
174
|
-
"language": "curl",
|
|
175
|
-
"name": "Turnkey CLI"
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
}
|
|
234
|
+
"tags": ["Policies"]
|
|
179
235
|
}
|
|
180
236
|
},
|
|
181
237
|
"/public/v1/query/get_private_key": {
|
|
@@ -218,17 +274,7 @@
|
|
|
218
274
|
}
|
|
219
275
|
}
|
|
220
276
|
],
|
|
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
|
-
}
|
|
277
|
+
"tags": ["Private Keys"]
|
|
232
278
|
}
|
|
233
279
|
},
|
|
234
280
|
"/public/v1/query/get_user": {
|
|
@@ -271,17 +317,7 @@
|
|
|
271
317
|
}
|
|
272
318
|
}
|
|
273
319
|
],
|
|
274
|
-
"tags": ["Users"]
|
|
275
|
-
"x-readme": {
|
|
276
|
-
"code-samples": [
|
|
277
|
-
{
|
|
278
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_user --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"userId\": \"\"\n}'",
|
|
279
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
280
|
-
"language": "curl",
|
|
281
|
-
"name": "Turnkey CLI"
|
|
282
|
-
}
|
|
283
|
-
]
|
|
284
|
-
}
|
|
320
|
+
"tags": ["Users"]
|
|
285
321
|
}
|
|
286
322
|
},
|
|
287
323
|
"/public/v1/query/list_activities": {
|
|
@@ -324,17 +360,7 @@
|
|
|
324
360
|
}
|
|
325
361
|
}
|
|
326
362
|
],
|
|
327
|
-
"tags": ["Activities"]
|
|
328
|
-
"x-readme": {
|
|
329
|
-
"code-samples": [
|
|
330
|
-
{
|
|
331
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_activities --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
|
|
332
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
333
|
-
"language": "curl",
|
|
334
|
-
"name": "Turnkey CLI"
|
|
335
|
-
}
|
|
336
|
-
]
|
|
337
|
-
}
|
|
363
|
+
"tags": ["Activities"]
|
|
338
364
|
}
|
|
339
365
|
},
|
|
340
366
|
"/public/v1/query/list_policies": {
|
|
@@ -377,17 +403,7 @@
|
|
|
377
403
|
}
|
|
378
404
|
}
|
|
379
405
|
],
|
|
380
|
-
"tags": ["Policies"]
|
|
381
|
-
"x-readme": {
|
|
382
|
-
"code-samples": [
|
|
383
|
-
{
|
|
384
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_policies --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
|
|
385
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
386
|
-
"language": "curl",
|
|
387
|
-
"name": "Turnkey CLI"
|
|
388
|
-
}
|
|
389
|
-
]
|
|
390
|
-
}
|
|
406
|
+
"tags": ["Policies"]
|
|
391
407
|
}
|
|
392
408
|
},
|
|
393
409
|
"/public/v1/query/list_private_keys": {
|
|
@@ -430,17 +446,7 @@
|
|
|
430
446
|
}
|
|
431
447
|
}
|
|
432
448
|
],
|
|
433
|
-
"tags": ["Private Keys"]
|
|
434
|
-
"x-readme": {
|
|
435
|
-
"code-samples": [
|
|
436
|
-
{
|
|
437
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_private_keys --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
|
|
438
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
439
|
-
"language": "curl",
|
|
440
|
-
"name": "Turnkey CLI"
|
|
441
|
-
}
|
|
442
|
-
]
|
|
443
|
-
}
|
|
449
|
+
"tags": ["Private Keys"]
|
|
444
450
|
}
|
|
445
451
|
},
|
|
446
452
|
"/public/v1/query/list_users": {
|
|
@@ -483,17 +489,7 @@
|
|
|
483
489
|
}
|
|
484
490
|
}
|
|
485
491
|
],
|
|
486
|
-
"tags": ["Users"]
|
|
487
|
-
"x-readme": {
|
|
488
|
-
"code-samples": [
|
|
489
|
-
{
|
|
490
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/list_users --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
|
|
491
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
492
|
-
"language": "curl",
|
|
493
|
-
"name": "Turnkey CLI"
|
|
494
|
-
}
|
|
495
|
-
]
|
|
496
|
-
}
|
|
492
|
+
"tags": ["Users"]
|
|
497
493
|
}
|
|
498
494
|
},
|
|
499
495
|
"/public/v1/query/whoami": {
|
|
@@ -536,17 +532,7 @@
|
|
|
536
532
|
}
|
|
537
533
|
}
|
|
538
534
|
],
|
|
539
|
-
"tags": ["Users"]
|
|
540
|
-
"x-readme": {
|
|
541
|
-
"code-samples": [
|
|
542
|
-
{
|
|
543
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/whoami --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\"\n}'",
|
|
544
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
545
|
-
"language": "curl",
|
|
546
|
-
"name": "Turnkey CLI"
|
|
547
|
-
}
|
|
548
|
-
]
|
|
549
|
-
}
|
|
535
|
+
"tags": ["Users"]
|
|
550
536
|
}
|
|
551
537
|
},
|
|
552
538
|
"/public/v1/submit/approve_activity": {
|
|
@@ -589,17 +575,7 @@
|
|
|
589
575
|
}
|
|
590
576
|
}
|
|
591
577
|
],
|
|
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
|
-
}
|
|
578
|
+
"tags": ["Activities"]
|
|
603
579
|
}
|
|
604
580
|
},
|
|
605
581
|
"/public/v1/submit/create_api_keys": {
|
|
@@ -642,17 +618,7 @@
|
|
|
642
618
|
}
|
|
643
619
|
}
|
|
644
620
|
],
|
|
645
|
-
"tags": ["Users"]
|
|
646
|
-
"x-readme": {
|
|
647
|
-
"code-samples": [
|
|
648
|
-
{
|
|
649
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_api_keys --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_API_KEYS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"apiKeys\": [{\n\t\t\t\"apiKeyName\": \"\",\n\t\t\t\"publicKey\": \"\"\n\t\t}],\n\t\t\"userId\": \"\"\n\t}\n}'",
|
|
650
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
651
|
-
"language": "curl",
|
|
652
|
-
"name": "Turnkey CLI"
|
|
653
|
-
}
|
|
654
|
-
]
|
|
655
|
-
}
|
|
621
|
+
"tags": ["Users"]
|
|
656
622
|
}
|
|
657
623
|
},
|
|
658
624
|
"/public/v1/submit/create_api_only_users": {
|
|
@@ -695,17 +661,7 @@
|
|
|
695
661
|
}
|
|
696
662
|
}
|
|
697
663
|
],
|
|
698
|
-
"tags": ["Users"]
|
|
699
|
-
"x-readme": {
|
|
700
|
-
"code-samples": [
|
|
701
|
-
{
|
|
702
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_api_only_users --body '{\n\t\"timestampMs\": \"$TIMESTAMP_IN_MILLISECONDS\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_API_ONLY_USERS\",\n\t\"organizationId\": \"$ORGANIZATION_ID\",\n\t\"parameters\": {\n\t\t\"api_only_users\": [{\n\t\t\t\"userName\": \"\",\n\t\t\t\"userEmail\": \"\",\n\t\t\t\"userTags\": \"[]\", \n\t\t\t\"apiKeys\": [\n\t\t\t\t{\"publicKey\": \"public-key\",\"apiKeyName\": \"test\"}\n\t\t\t]}'",
|
|
703
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
704
|
-
"language": "curl",
|
|
705
|
-
"name": "Turnkey CLI"
|
|
706
|
-
}
|
|
707
|
-
]
|
|
708
|
-
}
|
|
664
|
+
"tags": ["Users"]
|
|
709
665
|
}
|
|
710
666
|
},
|
|
711
667
|
"/public/v1/submit/create_authenticators": {
|
|
@@ -748,17 +704,7 @@
|
|
|
748
704
|
}
|
|
749
705
|
}
|
|
750
706
|
],
|
|
751
|
-
"tags": ["Authenticators"]
|
|
752
|
-
"x-readme": {
|
|
753
|
-
"code-samples": [
|
|
754
|
-
{
|
|
755
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_authenticators --body '{\n\t\"type\": \"ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2\",\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"userId\": \"\",\n\t\t\"authenticators\": [\n\t\t\t{\n\t\t\t\t\"authenticatorName\": \"\",\n\t\t\t\t\"challenge\": \"\",\n\t\t\t\t\"attestation\": {\n\t\t\t\t\t\"credentialId\": \"\",\n\t\t\t\t\t\"clientDataJson\": \"\",\n\t\t\t\t\t\"attestationObject\": \"\",\n\t\t\t\t\t\"transports\": []\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n}\n'",
|
|
756
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
757
|
-
"language": "curl",
|
|
758
|
-
"name": "Turnkey CLI"
|
|
759
|
-
}
|
|
760
|
-
]
|
|
761
|
-
}
|
|
707
|
+
"tags": ["Authenticators"]
|
|
762
708
|
}
|
|
763
709
|
},
|
|
764
710
|
"/public/v1/submit/create_invitations": {
|
|
@@ -801,17 +747,7 @@
|
|
|
801
747
|
}
|
|
802
748
|
}
|
|
803
749
|
],
|
|
804
|
-
"tags": ["
|
|
805
|
-
"x-readme": {
|
|
806
|
-
"code-samples": [
|
|
807
|
-
{
|
|
808
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_invitations --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_INVITATIONS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"invitations\": [{\n\t\t\t\"userName\": \"\",\n\t\t\t\"userEmail\": \"\",\n\t\t\t\"receiverUserTags\": \"\",\n\t\t\t\"accessType\": \"\",\n\t\t\t\"senderUserId\": \"\"\n\t\t}]\n\t}\n}'",
|
|
809
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
810
|
-
"language": "curl",
|
|
811
|
-
"name": "Turnkey CLI"
|
|
812
|
-
}
|
|
813
|
-
]
|
|
814
|
-
}
|
|
750
|
+
"tags": ["Invitations"]
|
|
815
751
|
}
|
|
816
752
|
},
|
|
817
753
|
"/public/v1/submit/create_policy": {
|
|
@@ -854,17 +790,50 @@
|
|
|
854
790
|
}
|
|
855
791
|
}
|
|
856
792
|
],
|
|
857
|
-
"tags": ["Policies"]
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
793
|
+
"tags": ["Policies"]
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"/public/v1/submit/create_private_key_tag": {
|
|
797
|
+
"post": {
|
|
798
|
+
"summary": "Create Private Key Tag",
|
|
799
|
+
"description": "Create a private key tag and add it to private keys.",
|
|
800
|
+
"operationId": "PublicApiService_CreatePrivateKeyTag",
|
|
801
|
+
"responses": {
|
|
802
|
+
"200": {
|
|
803
|
+
"description": "A successful response.",
|
|
804
|
+
"schema": {
|
|
805
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
865
806
|
}
|
|
866
|
-
|
|
867
|
-
|
|
807
|
+
},
|
|
808
|
+
"403": {
|
|
809
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
810
|
+
"schema": {}
|
|
811
|
+
},
|
|
812
|
+
"404": {
|
|
813
|
+
"description": "Returned when the resource does not exist.",
|
|
814
|
+
"schema": {
|
|
815
|
+
"type": "string",
|
|
816
|
+
"format": "string"
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
"default": {
|
|
820
|
+
"description": "An unexpected error response.",
|
|
821
|
+
"schema": {
|
|
822
|
+
"$ref": "#/definitions/rpcStatus"
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"parameters": [
|
|
827
|
+
{
|
|
828
|
+
"name": "body",
|
|
829
|
+
"in": "body",
|
|
830
|
+
"required": true,
|
|
831
|
+
"schema": {
|
|
832
|
+
"$ref": "#/definitions/v1CreatePrivateKeyTagRequest"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
],
|
|
836
|
+
"tags": ["Private Keys"]
|
|
868
837
|
}
|
|
869
838
|
},
|
|
870
839
|
"/public/v1/submit/create_private_keys": {
|
|
@@ -907,17 +876,7 @@
|
|
|
907
876
|
}
|
|
908
877
|
}
|
|
909
878
|
],
|
|
910
|
-
"tags": ["Private Keys"]
|
|
911
|
-
"x-readme": {
|
|
912
|
-
"code-samples": [
|
|
913
|
-
{
|
|
914
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_private_keys --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_PRIVATE_KEYS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"privateKeys\": [{\n\t\t\t\"privateKeyName\": \"\",\n\t\t\t\"curve\": \"\",\n\t\t\t\"privateKeyTags\": \"\",\n\t\t\t\"addressFormats\": \"\"\n\t\t}]\n\t}\n}'",
|
|
915
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
916
|
-
"language": "curl",
|
|
917
|
-
"name": "Turnkey CLI"
|
|
918
|
-
}
|
|
919
|
-
]
|
|
920
|
-
}
|
|
879
|
+
"tags": ["Private Keys"]
|
|
921
880
|
}
|
|
922
881
|
},
|
|
923
882
|
"/public/v1/submit/create_sub_organization": {
|
|
@@ -960,17 +919,50 @@
|
|
|
960
919
|
}
|
|
961
920
|
}
|
|
962
921
|
],
|
|
963
|
-
"tags": ["Organizations"]
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
922
|
+
"tags": ["Organizations"]
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
"/public/v1/submit/create_user_tag": {
|
|
926
|
+
"post": {
|
|
927
|
+
"summary": "Create User Tag",
|
|
928
|
+
"description": "Create a user tag and add it to users.",
|
|
929
|
+
"operationId": "PublicApiService_CreateUserTag",
|
|
930
|
+
"responses": {
|
|
931
|
+
"200": {
|
|
932
|
+
"description": "A successful response.",
|
|
933
|
+
"schema": {
|
|
934
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
971
935
|
}
|
|
972
|
-
|
|
973
|
-
|
|
936
|
+
},
|
|
937
|
+
"403": {
|
|
938
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
939
|
+
"schema": {}
|
|
940
|
+
},
|
|
941
|
+
"404": {
|
|
942
|
+
"description": "Returned when the resource does not exist.",
|
|
943
|
+
"schema": {
|
|
944
|
+
"type": "string",
|
|
945
|
+
"format": "string"
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"default": {
|
|
949
|
+
"description": "An unexpected error response.",
|
|
950
|
+
"schema": {
|
|
951
|
+
"$ref": "#/definitions/rpcStatus"
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
"parameters": [
|
|
956
|
+
{
|
|
957
|
+
"name": "body",
|
|
958
|
+
"in": "body",
|
|
959
|
+
"required": true,
|
|
960
|
+
"schema": {
|
|
961
|
+
"$ref": "#/definitions/v1CreateUserTagRequest"
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
],
|
|
965
|
+
"tags": ["Users"]
|
|
974
966
|
}
|
|
975
967
|
},
|
|
976
968
|
"/public/v1/submit/create_users": {
|
|
@@ -1014,17 +1006,7 @@
|
|
|
1014
1006
|
}
|
|
1015
1007
|
],
|
|
1016
1008
|
"tags": ["Users"],
|
|
1017
|
-
"deprecated": true
|
|
1018
|
-
"x-readme": {
|
|
1019
|
-
"code-samples": [
|
|
1020
|
-
{
|
|
1021
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/create_users --body '{\n\t\"timestampMs\": \"$TIMESTAMP_IN_MILLISECONDS\",\n\t\"type\": \"ACTIVITY_TYPE_CREATE_USERS\",\n\t\"organizationId\": \"$ORGANIZATION_ID\",\n\t\"parameters\": {\n\t\t\"users\": [{\n\t\t\t\"userName\": \"\",\n\t\t\t\"userEmail\": \"\",\n\t\t\t\"accessType\": \"ACCESS_TYPE_API\",\n\t\t\t\"userTags\": \"[]\", \n\t\t\t\"apiKeys\": [\n\t\t\t\t{\"publicKey\": \"public-key\",\"apiKeyName\": \"test\"}\n\t\t\t]}]}'",
|
|
1022
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1023
|
-
"language": "curl",
|
|
1024
|
-
"name": "Turnkey CLI"
|
|
1025
|
-
}
|
|
1026
|
-
]
|
|
1027
|
-
}
|
|
1009
|
+
"deprecated": true
|
|
1028
1010
|
}
|
|
1029
1011
|
},
|
|
1030
1012
|
"/public/v1/submit/delete_api_keys": {
|
|
@@ -1067,17 +1049,7 @@
|
|
|
1067
1049
|
}
|
|
1068
1050
|
}
|
|
1069
1051
|
],
|
|
1070
|
-
"tags": ["Users"]
|
|
1071
|
-
"x-readme": {
|
|
1072
|
-
"code-samples": [
|
|
1073
|
-
{
|
|
1074
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/delete_api_keys --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_DELETE_API_KEYS\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"apiKeyIds\": [],\n\t\t\"userId\": \"\"\n\t}\n}'",
|
|
1075
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1076
|
-
"language": "curl",
|
|
1077
|
-
"name": "Turnkey CLI"
|
|
1078
|
-
}
|
|
1079
|
-
]
|
|
1080
|
-
}
|
|
1052
|
+
"tags": ["Users"]
|
|
1081
1053
|
}
|
|
1082
1054
|
},
|
|
1083
1055
|
"/public/v1/submit/delete_invitations": {
|
|
@@ -1120,17 +1092,7 @@
|
|
|
1120
1092
|
}
|
|
1121
1093
|
}
|
|
1122
1094
|
],
|
|
1123
|
-
"tags": ["
|
|
1124
|
-
"x-readme": {
|
|
1125
|
-
"code-samples": [
|
|
1126
|
-
{
|
|
1127
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/delete_invitation --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_DELETE_INVITATION\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"invitationId\": \"\"\n\t}\n}'",
|
|
1128
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1129
|
-
"language": "curl",
|
|
1130
|
-
"name": "Turnkey CLI"
|
|
1131
|
-
}
|
|
1132
|
-
]
|
|
1133
|
-
}
|
|
1095
|
+
"tags": ["Invitations"]
|
|
1134
1096
|
}
|
|
1135
1097
|
},
|
|
1136
1098
|
"/public/v1/submit/delete_policy": {
|
|
@@ -1173,17 +1135,7 @@
|
|
|
1173
1135
|
}
|
|
1174
1136
|
}
|
|
1175
1137
|
],
|
|
1176
|
-
"tags": ["Policies"]
|
|
1177
|
-
"x-readme": {
|
|
1178
|
-
"code-samples": [
|
|
1179
|
-
{
|
|
1180
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/delete_policy --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_DELETE_POLICY\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"policyId\": \"\"\n\t}\n}'",
|
|
1181
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1182
|
-
"language": "curl",
|
|
1183
|
-
"name": "Turnkey CLI"
|
|
1184
|
-
}
|
|
1185
|
-
]
|
|
1186
|
-
}
|
|
1138
|
+
"tags": ["Policies"]
|
|
1187
1139
|
}
|
|
1188
1140
|
},
|
|
1189
1141
|
"/public/v1/submit/reject_activity": {
|
|
@@ -1226,17 +1178,7 @@
|
|
|
1226
1178
|
}
|
|
1227
1179
|
}
|
|
1228
1180
|
],
|
|
1229
|
-
"tags": ["Activities"]
|
|
1230
|
-
"x-readme": {
|
|
1231
|
-
"code-samples": [
|
|
1232
|
-
{
|
|
1233
|
-
"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}'",
|
|
1234
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1235
|
-
"language": "curl",
|
|
1236
|
-
"name": "Turnkey CLI"
|
|
1237
|
-
}
|
|
1238
|
-
]
|
|
1239
|
-
}
|
|
1181
|
+
"tags": ["Activities"]
|
|
1240
1182
|
}
|
|
1241
1183
|
},
|
|
1242
1184
|
"/public/v1/submit/sign_raw_payload": {
|
|
@@ -1279,17 +1221,7 @@
|
|
|
1279
1221
|
}
|
|
1280
1222
|
}
|
|
1281
1223
|
],
|
|
1282
|
-
"tags": ["Private Keys"]
|
|
1283
|
-
"x-readme": {
|
|
1284
|
-
"code-samples": [
|
|
1285
|
-
{
|
|
1286
|
-
"code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/submit/sign_raw_payload --body '{\n\t\"timestampMs\": \"'\"$(date +%s)\"'000\",\n\t\"type\": \"ACTIVITY_TYPE_SIGN_RAW_PAYLOAD\",\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"parameters\": {\n\t\t\"privateKeyId\": \"'\"$PRIVATE_KEY_ID\"'\",\n\t\t\"encoding\": \"PAYLOAD_ENCODING_TEXT_UTF8\",\n\t\t\"payload\": \"\",\n\t\t\"hashFunction\": \"HASH_FUNCTION_KECCAK256\"\n\t}\n}'",
|
|
1287
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1288
|
-
"language": "curl",
|
|
1289
|
-
"name": "Turnkey CLI"
|
|
1290
|
-
}
|
|
1291
|
-
]
|
|
1292
|
-
}
|
|
1224
|
+
"tags": ["Private Keys"]
|
|
1293
1225
|
}
|
|
1294
1226
|
},
|
|
1295
1227
|
"/public/v1/submit/sign_transaction": {
|
|
@@ -1332,17 +1264,50 @@
|
|
|
1332
1264
|
}
|
|
1333
1265
|
}
|
|
1334
1266
|
],
|
|
1335
|
-
"tags": ["Private Keys"]
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1267
|
+
"tags": ["Private Keys"]
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
"/public/v1/submit/update_allowed_origins": {
|
|
1271
|
+
"post": {
|
|
1272
|
+
"summary": "Update Allowable Origins",
|
|
1273
|
+
"description": "Update the allowable origins for credentials and requests",
|
|
1274
|
+
"operationId": "PublicApiService_UpdateAllowedOrigins",
|
|
1275
|
+
"responses": {
|
|
1276
|
+
"200": {
|
|
1277
|
+
"description": "A successful response.",
|
|
1278
|
+
"schema": {
|
|
1279
|
+
"$ref": "#/definitions/v1ActivityResponse"
|
|
1343
1280
|
}
|
|
1344
|
-
|
|
1345
|
-
|
|
1281
|
+
},
|
|
1282
|
+
"403": {
|
|
1283
|
+
"description": "Returned when the user does not have permission to access the resource.",
|
|
1284
|
+
"schema": {}
|
|
1285
|
+
},
|
|
1286
|
+
"404": {
|
|
1287
|
+
"description": "Returned when the resource does not exist.",
|
|
1288
|
+
"schema": {
|
|
1289
|
+
"type": "string",
|
|
1290
|
+
"format": "string"
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
"default": {
|
|
1294
|
+
"description": "An unexpected error response.",
|
|
1295
|
+
"schema": {
|
|
1296
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
"parameters": [
|
|
1301
|
+
{
|
|
1302
|
+
"name": "body",
|
|
1303
|
+
"in": "body",
|
|
1304
|
+
"required": true,
|
|
1305
|
+
"schema": {
|
|
1306
|
+
"$ref": "#/definitions/v1UpdateAllowedOriginsRequest"
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
],
|
|
1310
|
+
"tags": ["Organizations"]
|
|
1346
1311
|
}
|
|
1347
1312
|
},
|
|
1348
1313
|
"/public/v1/submit/update_private_key_tag": {
|
|
@@ -1385,22 +1350,12 @@
|
|
|
1385
1350
|
}
|
|
1386
1351
|
}
|
|
1387
1352
|
],
|
|
1388
|
-
"tags": ["Private
|
|
1389
|
-
"x-readme": {
|
|
1390
|
-
"code-samples": [
|
|
1391
|
-
{
|
|
1392
|
-
"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}'",
|
|
1393
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1394
|
-
"language": "curl",
|
|
1395
|
-
"name": "Turnkey CLI"
|
|
1396
|
-
}
|
|
1397
|
-
]
|
|
1398
|
-
}
|
|
1353
|
+
"tags": ["Private Keys"]
|
|
1399
1354
|
}
|
|
1400
1355
|
},
|
|
1401
1356
|
"/public/v1/submit/update_root_quorum": {
|
|
1402
1357
|
"post": {
|
|
1403
|
-
"summary": "
|
|
1358
|
+
"summary": "Update Root Quorum",
|
|
1404
1359
|
"description": "Set the threshold and members of the root quorum. This must be approved by the current root quorum.",
|
|
1405
1360
|
"operationId": "PublicApiService_UpdateRootQuorum",
|
|
1406
1361
|
"responses": {
|
|
@@ -1438,17 +1393,7 @@
|
|
|
1438
1393
|
}
|
|
1439
1394
|
}
|
|
1440
1395
|
],
|
|
1441
|
-
"tags": ["
|
|
1442
|
-
"x-readme": {
|
|
1443
|
-
"code-samples": [
|
|
1444
|
-
{
|
|
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,\n\t\t\"type\": \"\"\n\t}\n}'",
|
|
1446
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1447
|
-
"language": "curl",
|
|
1448
|
-
"name": "Turnkey CLI"
|
|
1449
|
-
}
|
|
1450
|
-
]
|
|
1451
|
-
}
|
|
1396
|
+
"tags": ["Organizations"]
|
|
1452
1397
|
}
|
|
1453
1398
|
},
|
|
1454
1399
|
"/public/v1/submit/update_user_tag": {
|
|
@@ -1491,17 +1436,7 @@
|
|
|
1491
1436
|
}
|
|
1492
1437
|
}
|
|
1493
1438
|
],
|
|
1494
|
-
"tags": ["
|
|
1495
|
-
"x-readme": {
|
|
1496
|
-
"code-samples": [
|
|
1497
|
-
{
|
|
1498
|
-
"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}'",
|
|
1499
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1500
|
-
"language": "curl",
|
|
1501
|
-
"name": "Turnkey CLI"
|
|
1502
|
-
}
|
|
1503
|
-
]
|
|
1504
|
-
}
|
|
1439
|
+
"tags": ["Users"]
|
|
1505
1440
|
}
|
|
1506
1441
|
},
|
|
1507
1442
|
"/tkhq/api/v1/noop-codegen-anchor": {
|
|
@@ -1577,17 +1512,7 @@
|
|
|
1577
1512
|
}
|
|
1578
1513
|
],
|
|
1579
1514
|
"tags": ["Private Keys"],
|
|
1580
|
-
"deprecated": true
|
|
1581
|
-
"x-readme": {
|
|
1582
|
-
"code-samples": [
|
|
1583
|
-
{
|
|
1584
|
-
"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}'",
|
|
1585
|
-
"install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey",
|
|
1586
|
-
"language": "curl",
|
|
1587
|
-
"name": "Turnkey CLI"
|
|
1588
|
-
}
|
|
1589
|
-
]
|
|
1590
|
-
}
|
|
1515
|
+
"deprecated": true
|
|
1591
1516
|
}
|
|
1592
1517
|
}
|
|
1593
1518
|
},
|
|
@@ -1699,6 +1624,17 @@
|
|
|
1699
1624
|
"type": "string",
|
|
1700
1625
|
"enum": ["ACCESS_TYPE_WEB", "ACCESS_TYPE_API", "ACCESS_TYPE_ALL"]
|
|
1701
1626
|
},
|
|
1627
|
+
"immutableactivityv1Address": {
|
|
1628
|
+
"type": "object",
|
|
1629
|
+
"properties": {
|
|
1630
|
+
"format": {
|
|
1631
|
+
"$ref": "#/definitions/immutableactivityv1AddressFormat"
|
|
1632
|
+
},
|
|
1633
|
+
"address": {
|
|
1634
|
+
"type": "string"
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1702
1638
|
"immutableactivityv1AddressFormat": {
|
|
1703
1639
|
"type": "string",
|
|
1704
1640
|
"enum": [
|
|
@@ -1986,7 +1922,9 @@
|
|
|
1986
1922
|
"ACTIVITY_TYPE_CREATE_USERS_V2",
|
|
1987
1923
|
"ACTIVITY_TYPE_ACCEPT_INVITATION_V2",
|
|
1988
1924
|
"ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION",
|
|
1989
|
-
"ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2"
|
|
1925
|
+
"ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2",
|
|
1926
|
+
"ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS",
|
|
1927
|
+
"ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2"
|
|
1990
1928
|
],
|
|
1991
1929
|
"description": "Type of Activity, such as Add User, or Sign Transaction."
|
|
1992
1930
|
},
|
|
@@ -2507,7 +2445,7 @@
|
|
|
2507
2445
|
"organizationName": {
|
|
2508
2446
|
"type": "string",
|
|
2509
2447
|
"description": "Human-readable name for an Organization.",
|
|
2510
|
-
"title": "@inject_tag: validate:\"required,tk_label_length\""
|
|
2448
|
+
"title": "@inject_tag: validate:\"required,tk_label,tk_label_length\""
|
|
2511
2449
|
},
|
|
2512
2450
|
"rootEmail": {
|
|
2513
2451
|
"type": "string",
|
|
@@ -2660,6 +2598,27 @@
|
|
|
2660
2598
|
},
|
|
2661
2599
|
"required": ["privateKeyTagName", "privateKeyIds"]
|
|
2662
2600
|
},
|
|
2601
|
+
"v1CreatePrivateKeyTagRequest": {
|
|
2602
|
+
"type": "object",
|
|
2603
|
+
"properties": {
|
|
2604
|
+
"type": {
|
|
2605
|
+
"type": "string",
|
|
2606
|
+
"enum": ["ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG"]
|
|
2607
|
+
},
|
|
2608
|
+
"timestampMs": {
|
|
2609
|
+
"type": "string",
|
|
2610
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
2611
|
+
},
|
|
2612
|
+
"organizationId": {
|
|
2613
|
+
"type": "string",
|
|
2614
|
+
"description": "Unique identifier for a given Organization."
|
|
2615
|
+
},
|
|
2616
|
+
"parameters": {
|
|
2617
|
+
"$ref": "#/definitions/v1CreatePrivateKeyTagIntent"
|
|
2618
|
+
}
|
|
2619
|
+
},
|
|
2620
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
2621
|
+
},
|
|
2663
2622
|
"v1CreatePrivateKeyTagResult": {
|
|
2664
2623
|
"type": "object",
|
|
2665
2624
|
"properties": {
|
|
@@ -2691,12 +2650,26 @@
|
|
|
2691
2650
|
},
|
|
2692
2651
|
"required": ["privateKeys"]
|
|
2693
2652
|
},
|
|
2653
|
+
"v1CreatePrivateKeysIntentV2": {
|
|
2654
|
+
"type": "object",
|
|
2655
|
+
"properties": {
|
|
2656
|
+
"privateKeys": {
|
|
2657
|
+
"type": "array",
|
|
2658
|
+
"items": {
|
|
2659
|
+
"$ref": "#/definitions/v1PrivateKeyParams"
|
|
2660
|
+
},
|
|
2661
|
+
"description": "A list of Private Keys.",
|
|
2662
|
+
"title": "@inject_tag: validate:\"dive,required\""
|
|
2663
|
+
}
|
|
2664
|
+
},
|
|
2665
|
+
"required": ["privateKeys"]
|
|
2666
|
+
},
|
|
2694
2667
|
"v1CreatePrivateKeysRequest": {
|
|
2695
2668
|
"type": "object",
|
|
2696
2669
|
"properties": {
|
|
2697
2670
|
"type": {
|
|
2698
2671
|
"type": "string",
|
|
2699
|
-
"enum": ["
|
|
2672
|
+
"enum": ["ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2"]
|
|
2700
2673
|
},
|
|
2701
2674
|
"timestampMs": {
|
|
2702
2675
|
"type": "string",
|
|
@@ -2707,7 +2680,7 @@
|
|
|
2707
2680
|
"description": "Unique identifier for a given Organization."
|
|
2708
2681
|
},
|
|
2709
2682
|
"parameters": {
|
|
2710
|
-
"$ref": "#/definitions/
|
|
2683
|
+
"$ref": "#/definitions/v1CreatePrivateKeysIntentV2"
|
|
2711
2684
|
}
|
|
2712
2685
|
},
|
|
2713
2686
|
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
@@ -2725,6 +2698,19 @@
|
|
|
2725
2698
|
},
|
|
2726
2699
|
"required": ["privateKeyIds"]
|
|
2727
2700
|
},
|
|
2701
|
+
"v1CreatePrivateKeysResultV2": {
|
|
2702
|
+
"type": "object",
|
|
2703
|
+
"properties": {
|
|
2704
|
+
"privateKeys": {
|
|
2705
|
+
"type": "array",
|
|
2706
|
+
"items": {
|
|
2707
|
+
"$ref": "#/definitions/v1PrivateKeyResult"
|
|
2708
|
+
},
|
|
2709
|
+
"description": "A list of Private Key IDs and addresses."
|
|
2710
|
+
}
|
|
2711
|
+
},
|
|
2712
|
+
"required": ["privateKeys"]
|
|
2713
|
+
},
|
|
2728
2714
|
"v1CreateSubOrganizationIntent": {
|
|
2729
2715
|
"type": "object",
|
|
2730
2716
|
"properties": {
|
|
@@ -2813,6 +2799,27 @@
|
|
|
2813
2799
|
},
|
|
2814
2800
|
"required": ["userTagName", "userIds"]
|
|
2815
2801
|
},
|
|
2802
|
+
"v1CreateUserTagRequest": {
|
|
2803
|
+
"type": "object",
|
|
2804
|
+
"properties": {
|
|
2805
|
+
"type": {
|
|
2806
|
+
"type": "string",
|
|
2807
|
+
"enum": ["ACTIVITY_TYPE_CREATE_USER_TAG"]
|
|
2808
|
+
},
|
|
2809
|
+
"timestampMs": {
|
|
2810
|
+
"type": "string",
|
|
2811
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
2812
|
+
},
|
|
2813
|
+
"organizationId": {
|
|
2814
|
+
"type": "string",
|
|
2815
|
+
"description": "Unique identifier for a given Organization."
|
|
2816
|
+
},
|
|
2817
|
+
"parameters": {
|
|
2818
|
+
"$ref": "#/definitions/v1CreateUserTagIntent"
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
2822
|
+
},
|
|
2816
2823
|
"v1CreateUserTagResult": {
|
|
2817
2824
|
"type": "object",
|
|
2818
2825
|
"properties": {
|
|
@@ -3263,6 +3270,13 @@
|
|
|
3263
3270
|
},
|
|
3264
3271
|
"paginationOptions": {
|
|
3265
3272
|
"$ref": "#/definitions/v1Pagination"
|
|
3273
|
+
},
|
|
3274
|
+
"filterByType": {
|
|
3275
|
+
"type": "array",
|
|
3276
|
+
"items": {
|
|
3277
|
+
"$ref": "#/definitions/v1ActivityType"
|
|
3278
|
+
},
|
|
3279
|
+
"description": "Array of Activity Types filtering which Activities will be listed in the response."
|
|
3266
3280
|
}
|
|
3267
3281
|
},
|
|
3268
3282
|
"required": ["organizationId"]
|
|
@@ -3294,6 +3308,56 @@
|
|
|
3294
3308
|
},
|
|
3295
3309
|
"required": ["organizationId", "activityId"]
|
|
3296
3310
|
},
|
|
3311
|
+
"v1GetAuthenticatorRequest": {
|
|
3312
|
+
"type": "object",
|
|
3313
|
+
"properties": {
|
|
3314
|
+
"organizationId": {
|
|
3315
|
+
"type": "string",
|
|
3316
|
+
"description": "Unique identifier for a given Organization."
|
|
3317
|
+
},
|
|
3318
|
+
"authenticatorId": {
|
|
3319
|
+
"type": "string",
|
|
3320
|
+
"description": "Unique identifier for a given Authenticator."
|
|
3321
|
+
}
|
|
3322
|
+
},
|
|
3323
|
+
"required": ["organizationId", "authenticatorId"]
|
|
3324
|
+
},
|
|
3325
|
+
"v1GetAuthenticatorResponse": {
|
|
3326
|
+
"type": "object",
|
|
3327
|
+
"properties": {
|
|
3328
|
+
"authenticator": {
|
|
3329
|
+
"$ref": "#/definitions/v1Authenticator"
|
|
3330
|
+
}
|
|
3331
|
+
},
|
|
3332
|
+
"required": ["authenticator"]
|
|
3333
|
+
},
|
|
3334
|
+
"v1GetAuthenticatorsRequest": {
|
|
3335
|
+
"type": "object",
|
|
3336
|
+
"properties": {
|
|
3337
|
+
"organizationId": {
|
|
3338
|
+
"type": "string",
|
|
3339
|
+
"description": "Unique identifier for a given Organization."
|
|
3340
|
+
},
|
|
3341
|
+
"userId": {
|
|
3342
|
+
"type": "string",
|
|
3343
|
+
"description": "Unique identifier for a given User."
|
|
3344
|
+
}
|
|
3345
|
+
},
|
|
3346
|
+
"required": ["organizationId", "userId"]
|
|
3347
|
+
},
|
|
3348
|
+
"v1GetAuthenticatorsResponse": {
|
|
3349
|
+
"type": "object",
|
|
3350
|
+
"properties": {
|
|
3351
|
+
"authenticators": {
|
|
3352
|
+
"type": "array",
|
|
3353
|
+
"items": {
|
|
3354
|
+
"$ref": "#/definitions/v1Authenticator"
|
|
3355
|
+
},
|
|
3356
|
+
"description": "A list of authenticators."
|
|
3357
|
+
}
|
|
3358
|
+
},
|
|
3359
|
+
"required": ["authenticators"]
|
|
3360
|
+
},
|
|
3297
3361
|
"v1GetOrganizationRequest": {
|
|
3298
3362
|
"type": "object",
|
|
3299
3363
|
"properties": {
|
|
@@ -3609,6 +3673,12 @@
|
|
|
3609
3673
|
},
|
|
3610
3674
|
"createSubOrganizationIntentV2": {
|
|
3611
3675
|
"$ref": "#/definitions/v1CreateSubOrganizationIntentV2"
|
|
3676
|
+
},
|
|
3677
|
+
"updateAllowedOriginsIntent": {
|
|
3678
|
+
"$ref": "#/definitions/v1UpdateAllowedOriginsIntent"
|
|
3679
|
+
},
|
|
3680
|
+
"createPrivateKeysIntentV2": {
|
|
3681
|
+
"$ref": "#/definitions/v1CreatePrivateKeysIntentV2"
|
|
3612
3682
|
}
|
|
3613
3683
|
},
|
|
3614
3684
|
"description": "Intent object crafted by Turnkey based on the user request, used to assess the permissibility of an action.",
|
|
@@ -3767,6 +3837,12 @@
|
|
|
3767
3837
|
},
|
|
3768
3838
|
"rootQuorum": {
|
|
3769
3839
|
"$ref": "#/definitions/v1Quorum"
|
|
3840
|
+
},
|
|
3841
|
+
"allowedOrigins": {
|
|
3842
|
+
"type": "array",
|
|
3843
|
+
"items": {
|
|
3844
|
+
"type": "string"
|
|
3845
|
+
}
|
|
3770
3846
|
}
|
|
3771
3847
|
},
|
|
3772
3848
|
"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 +4003,20 @@
|
|
|
3927
4003
|
"addressFormats"
|
|
3928
4004
|
]
|
|
3929
4005
|
},
|
|
4006
|
+
"v1PrivateKeyResult": {
|
|
4007
|
+
"type": "object",
|
|
4008
|
+
"properties": {
|
|
4009
|
+
"privateKeyId": {
|
|
4010
|
+
"type": "string"
|
|
4011
|
+
},
|
|
4012
|
+
"addresses": {
|
|
4013
|
+
"type": "array",
|
|
4014
|
+
"items": {
|
|
4015
|
+
"$ref": "#/definitions/immutableactivityv1Address"
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
},
|
|
3930
4020
|
"v1PublicKeyCredentialWithAttestation": {
|
|
3931
4021
|
"type": "object",
|
|
3932
4022
|
"properties": {
|
|
@@ -4095,6 +4185,12 @@
|
|
|
4095
4185
|
},
|
|
4096
4186
|
"createSubOrganizationResult": {
|
|
4097
4187
|
"$ref": "#/definitions/v1CreateSubOrganizationResult"
|
|
4188
|
+
},
|
|
4189
|
+
"updateAllowedOriginsResult": {
|
|
4190
|
+
"$ref": "#/definitions/v1UpdateAllowedOriginsResult"
|
|
4191
|
+
},
|
|
4192
|
+
"createPrivateKeysResultV2": {
|
|
4193
|
+
"$ref": "#/definitions/v1CreatePrivateKeysResultV2"
|
|
4098
4194
|
}
|
|
4099
4195
|
},
|
|
4100
4196
|
"description": "Result of the intended action."
|
|
@@ -4349,6 +4445,44 @@
|
|
|
4349
4445
|
},
|
|
4350
4446
|
"required": ["seconds", "nanos"]
|
|
4351
4447
|
},
|
|
4448
|
+
"v1UpdateAllowedOriginsIntent": {
|
|
4449
|
+
"type": "object",
|
|
4450
|
+
"properties": {
|
|
4451
|
+
"allowedOrigins": {
|
|
4452
|
+
"type": "array",
|
|
4453
|
+
"items": {
|
|
4454
|
+
"type": "string"
|
|
4455
|
+
},
|
|
4456
|
+
"description": "Additional origins requests are allowed from besides Turnkey origins",
|
|
4457
|
+
"title": "@inject_tag: validate:\"required\""
|
|
4458
|
+
}
|
|
4459
|
+
},
|
|
4460
|
+
"required": ["allowedOrigins"]
|
|
4461
|
+
},
|
|
4462
|
+
"v1UpdateAllowedOriginsRequest": {
|
|
4463
|
+
"type": "object",
|
|
4464
|
+
"properties": {
|
|
4465
|
+
"type": {
|
|
4466
|
+
"type": "string",
|
|
4467
|
+
"enum": ["ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS"]
|
|
4468
|
+
},
|
|
4469
|
+
"timestampMs": {
|
|
4470
|
+
"type": "string",
|
|
4471
|
+
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
|
|
4472
|
+
},
|
|
4473
|
+
"organizationId": {
|
|
4474
|
+
"type": "string",
|
|
4475
|
+
"description": "Unique identifier for a given Organization."
|
|
4476
|
+
},
|
|
4477
|
+
"parameters": {
|
|
4478
|
+
"$ref": "#/definitions/v1UpdateAllowedOriginsIntent"
|
|
4479
|
+
}
|
|
4480
|
+
},
|
|
4481
|
+
"required": ["type", "timestampMs", "organizationId", "parameters"]
|
|
4482
|
+
},
|
|
4483
|
+
"v1UpdateAllowedOriginsResult": {
|
|
4484
|
+
"type": "object"
|
|
4485
|
+
},
|
|
4352
4486
|
"v1UpdatePrivateKeyTagIntent": {
|
|
4353
4487
|
"type": "object",
|
|
4354
4488
|
"properties": {
|
|
@@ -4771,10 +4905,5 @@
|
|
|
4771
4905
|
{
|
|
4772
4906
|
"ApiKeyAuth": []
|
|
4773
4907
|
}
|
|
4774
|
-
]
|
|
4775
|
-
"x-readme": {
|
|
4776
|
-
"explorer-enabled": true,
|
|
4777
|
-
"proxy-enabled": true,
|
|
4778
|
-
"samples-languages": ["curl", "javascript"]
|
|
4779
|
-
}
|
|
4908
|
+
]
|
|
4780
4909
|
}
|