@nylorun/runtime 0.12.0-beta → 0.14.0-beta
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 +361 -0
- package/README.md +69 -15
- package/dist/adapters/execution/restate.d.ts +7 -2
- package/dist/adapters/execution/restate.js +38 -8
- package/dist/adapters/replication/pgoutput.d.ts +16 -0
- package/dist/adapters/replication/pgoutput.js +169 -0
- package/dist/adapters/streams/s2.js +37 -20
- package/dist/admin-openapi.json +1071 -0
- package/dist/api/a2a/card.d.ts +15 -0
- package/dist/api/a2a/card.js +24 -0
- package/dist/api/a2a/endpoint.d.ts +8 -0
- package/dist/api/a2a/endpoint.js +81 -0
- package/dist/api/a2a/protocol.d.ts +144 -0
- package/dist/api/a2a/protocol.js +188 -0
- package/dist/api/a2a/routes.d.ts +19 -0
- package/dist/api/a2a/routes.js +289 -0
- package/dist/api/a2a/tasks.d.ts +50 -0
- package/dist/api/a2a/tasks.js +186 -0
- package/dist/api/ag-ui/endpoint.d.ts +8 -0
- package/dist/api/ag-ui/endpoint.js +126 -0
- package/dist/api/ag-ui/history.d.ts +7 -0
- package/dist/api/ag-ui/history.js +60 -0
- package/dist/api/ag-ui/routes.d.ts +32 -0
- package/dist/api/ag-ui/routes.js +305 -0
- package/dist/api/ag-ui/session-id.d.ts +1 -0
- package/dist/api/ag-ui/session-id.js +12 -0
- package/dist/api/ag-ui/sse.d.ts +9 -0
- package/dist/api/ag-ui/sse.js +7 -0
- package/dist/api/ag-ui/translate.d.ts +38 -0
- package/dist/api/ag-ui/translate.js +222 -0
- package/dist/api/components.d.ts +7825 -0
- package/dist/api/components.js +83 -0
- package/dist/api/http/app.d.ts +18 -0
- package/dist/api/http/app.js +58 -0
- package/dist/api/http/body.d.ts +4 -0
- package/dist/api/http/body.js +37 -0
- package/dist/api/http/define.d.ts +39 -0
- package/dist/api/http/define.js +130 -0
- package/dist/api/http/respond.d.ts +9 -0
- package/dist/api/http/respond.js +44 -0
- package/dist/api/http/routes/access.d.ts +24 -0
- package/dist/api/http/routes/access.js +259 -0
- package/dist/api/http/routes/actions.d.ts +8 -0
- package/dist/api/http/routes/actions.js +76 -0
- package/dist/api/http/routes/endpoints.d.ts +7 -0
- package/dist/api/http/routes/endpoints.js +100 -0
- package/dist/api/http/routes/sessions.d.ts +3 -0
- package/dist/api/http/routes/sessions.js +205 -0
- package/dist/api/http/routes/tenant.d.ts +10 -0
- package/dist/api/http/routes/tenant.js +172 -0
- package/dist/api/http/routes/vaults.d.ts +8 -0
- package/dist/api/http/routes/vaults.js +167 -0
- package/dist/api/openapi.d.ts +19 -0
- package/dist/api/openapi.js +138 -0
- package/dist/api/route.d.ts +12 -0
- package/dist/api/route.js +4 -0
- package/dist/core/bearer.d.ts +8 -0
- package/dist/core/bearer.js +11 -0
- package/dist/core/flow-host.d.ts +7 -15
- package/dist/core/flow-host.js +19 -41
- package/dist/core/sandbox-routes.d.ts +12 -7
- package/dist/core/sandbox-routes.js +24 -25
- package/dist/execution/memory.d.ts +8 -5
- package/dist/execution/memory.js +33 -13
- package/dist/execution/types.d.ts +38 -6
- package/dist/execution/types.js +12 -3
- package/dist/host/admin-api.d.ts +22 -0
- package/dist/host/admin-api.js +178 -0
- package/dist/host/app.d.ts +34 -0
- package/dist/host/app.js +185 -0
- package/dist/host/config-for.d.ts +2 -0
- package/dist/host/config-for.js +1 -0
- package/dist/host/config.d.ts +11 -0
- package/dist/host/cors.d.ts +27 -0
- package/dist/host/cors.js +64 -0
- package/dist/host/create-host.d.ts +31 -3
- package/dist/host/create-host.js +168 -327
- package/dist/host/http.d.ts +14 -3
- package/dist/host/http.js +64 -23
- package/dist/host/main.js +55 -4
- package/dist/host/stack-config.d.ts +20 -0
- package/dist/host/stack-config.js +55 -0
- package/dist/mcp/pool.d.ts +19 -1
- package/dist/mcp/pool.js +60 -10
- package/dist/model/catalog.d.ts +2 -10
- package/dist/model/classify.d.ts +13 -0
- package/dist/model/classify.js +61 -0
- package/dist/model/models.d.ts +10 -1
- package/dist/model/models.js +14 -6
- package/dist/model/pi-model.d.ts +17 -2
- package/dist/model/pi-model.js +366 -222
- package/dist/openapi.json +25696 -0
- package/dist/sandbox/manager.d.ts +13 -1
- package/dist/sandbox/manager.js +8 -11
- package/dist/sandbox/resolve.d.ts +33 -0
- package/dist/sandbox/resolve.js +81 -0
- package/dist/sandbox/session-sandbox.d.ts +11 -0
- package/dist/sandbox/session-sandbox.js +51 -0
- package/dist/sandbox/share.d.ts +14 -2
- package/dist/sandbox/share.js +33 -3
- package/dist/sandbox/tenant-config.d.ts +37 -0
- package/dist/sandbox/tenant-config.js +51 -0
- package/dist/sandbox/tools.d.ts +7 -9
- package/dist/sandbox/tools.js +11 -3
- package/dist/sandbox/types.d.ts +8 -2
- package/dist/store/event.d.ts +19 -0
- package/dist/store/event.js +49 -0
- package/dist/store/memory.d.ts +20 -8
- package/dist/store/memory.js +265 -100
- package/dist/store/postgres/connect.d.ts +13 -0
- package/dist/store/postgres/connect.js +5 -0
- package/dist/store/postgres/migrations/003_subject_tokens.d.ts +8 -0
- package/dist/store/postgres/migrations/003_subject_tokens.js +42 -0
- package/dist/store/postgres/migrations/004_publishable_keys.d.ts +6 -0
- package/dist/store/postgres/migrations/004_publishable_keys.js +18 -0
- package/dist/store/postgres/migrations/005_action_endpoints.d.ts +6 -0
- package/dist/store/postgres/migrations/005_action_endpoints.js +32 -0
- package/dist/store/postgres/migrations/006_drop_executors.d.ts +11 -0
- package/dist/store/postgres/migrations/006_drop_executors.js +32 -0
- package/dist/store/postgres/migrations/007_event_time.d.ts +7 -0
- package/dist/store/postgres/migrations/007_event_time.js +14 -0
- package/dist/store/postgres/migrations/008_durable_streams.d.ts +13 -0
- package/dist/store/postgres/migrations/008_durable_streams.js +35 -0
- package/dist/store/postgres/migrations/index.d.ts +5 -1
- package/dist/store/postgres/migrations/index.js +22 -2
- package/dist/store/postgres/migrations/shared/index.d.ts +31 -0
- package/dist/store/postgres/migrations/shared/index.js +92 -0
- package/dist/store/postgres/record.d.ts +11 -0
- package/dist/store/postgres/record.js +64 -0
- package/dist/store/postgres/store.js +337 -95
- package/dist/store/postgres/tenants.js +14 -0
- package/dist/store/types.d.ts +176 -81
- package/dist/streams/basin.d.ts +18 -1
- package/dist/streams/basin.js +34 -2
- package/dist/streams/control.d.ts +18 -0
- package/dist/streams/control.js +29 -0
- package/dist/streams/memory.d.ts +3 -1
- package/dist/streams/memory.js +14 -8
- package/dist/streams/relay/core.d.ts +35 -0
- package/dist/streams/relay/core.js +366 -0
- package/dist/streams/relay/memory.d.ts +69 -0
- package/dist/streams/relay/memory.js +176 -0
- package/dist/streams/relay/types.d.ts +77 -0
- package/dist/streams/relay/types.js +7 -0
- package/dist/streams/types.d.ts +66 -36
- package/dist/streams/types.js +18 -53
- package/dist/tenant/access-policy.d.ts +30 -0
- package/dist/tenant/access-policy.js +52 -0
- package/dist/tenant/actions.d.ts +10 -149
- package/dist/tenant/actions.js +5 -167
- package/dist/tenant/advance.js +32 -0
- package/dist/tenant/auth.d.ts +19 -17
- package/dist/tenant/auth.js +90 -93
- package/dist/tenant/browser.d.ts +15 -0
- package/dist/tenant/browser.js +39 -0
- package/dist/tenant/commands.d.ts +18 -2
- package/dist/tenant/commands.js +121 -129
- package/dist/tenant/context.d.ts +75 -18
- package/dist/tenant/context.js +14 -10
- package/dist/tenant/delivery-token.d.ts +41 -0
- package/dist/tenant/delivery-token.js +105 -0
- package/dist/tenant/delivery.d.ts +62 -0
- package/dist/tenant/delivery.js +476 -0
- package/dist/tenant/effects.d.ts +5 -0
- package/dist/tenant/effects.js +138 -48
- package/dist/tenant/endpoints.d.ts +67 -0
- package/dist/tenant/endpoints.js +90 -0
- package/dist/tenant/ephemeral.d.ts +6 -0
- package/dist/tenant/ephemeral.js +60 -36
- package/dist/tenant/http.d.ts +8 -9
- package/dist/tenant/http.js +13 -27
- package/dist/tenant/jwt.d.ts +16 -0
- package/dist/tenant/jwt.js +50 -0
- package/dist/tenant/module.d.ts +3 -0
- package/dist/tenant/module.js +6 -12
- package/dist/tenant/outbound.d.ts +44 -0
- package/dist/tenant/outbound.js +127 -0
- package/dist/tenant/pool.d.ts +0 -2
- package/dist/tenant/pool.js +0 -18
- package/dist/tenant/reset.d.ts +0 -4
- package/dist/tenant/reset.js +0 -5
- package/dist/tenant/runtime.d.ts +10 -20
- package/dist/tenant/runtime.js +59 -42
- package/dist/tenant/scheduler.d.ts +7 -2
- package/dist/tenant/scheduler.js +7 -3
- package/dist/tenant/session-streams.d.ts +125 -0
- package/dist/tenant/session-streams.js +399 -0
- package/dist/tenant/sessions.d.ts +28 -4
- package/dist/tenant/sessions.js +118 -24
- package/dist/tenant/signing-keys.d.ts +55 -0
- package/dist/tenant/signing-keys.js +172 -0
- package/dist/tenant/slim.d.ts +8 -0
- package/dist/tenant/slim.js +21 -0
- package/dist/tenant/status.d.ts +0 -3
- package/dist/tenant/status.js +19 -12
- package/dist/tenant/streams.d.ts +60 -67
- package/dist/tenant/streams.js +140 -208
- package/dist/tenant/subject-limits.d.ts +16 -0
- package/dist/tenant/subject-limits.js +45 -0
- package/dist/tenant/sweep.d.ts +1 -10
- package/dist/tenant/sweep.js +29 -69
- package/dist/tenant/tokens.d.ts +14 -0
- package/dist/tenant/tokens.js +178 -0
- package/dist/tenant/transcript.d.ts +48 -5
- package/dist/tenant/transcript.js +58 -1
- package/dist/tenant/types.d.ts +29 -7
- package/dist/tenant/worker.d.ts +3 -1
- package/dist/tenant/worker.js +9 -3
- package/dist/vault/service.d.ts +18 -2
- package/dist/vault/service.js +57 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +20 -8
- package/dist/core/executors.d.ts +0 -44
- package/dist/core/executors.js +0 -95
- package/dist/streams/relay.d.ts +0 -37
- package/dist/streams/relay.js +0 -254
- package/dist/tenant/live.d.ts +0 -92
- package/dist/tenant/live.js +0 -290
- package/dist/tenant/routes-tenant.d.ts +0 -12
- package/dist/tenant/routes-tenant.js +0 -137
- package/dist/tenant/routes.d.ts +0 -9
- package/dist/tenant/routes.js +0 -151
|
@@ -0,0 +1,1071 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.2.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Nylorun Runtime: Admin API",
|
|
5
|
+
"version": "0.14.0-beta",
|
|
6
|
+
"description": "Tenants and the Host's status, with the admin key. Served on the operator listener when the Host has one; the public listener answers these routes with the opaque 404.",
|
|
7
|
+
"x-nylorun-protocol": {
|
|
8
|
+
"min": 4,
|
|
9
|
+
"max": 4,
|
|
10
|
+
"features": [
|
|
11
|
+
"runtime-tenants",
|
|
12
|
+
"admin-status",
|
|
13
|
+
"studio-principal",
|
|
14
|
+
"action-endpoints",
|
|
15
|
+
"tenant-fixture-model",
|
|
16
|
+
"transcript-events",
|
|
17
|
+
"derived-principals",
|
|
18
|
+
"subject-headers",
|
|
19
|
+
"subject-tokens",
|
|
20
|
+
"browser-access",
|
|
21
|
+
"ag-ui-endpoint",
|
|
22
|
+
"a2a-endpoint",
|
|
23
|
+
"action-endpoints"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"servers": [
|
|
28
|
+
{
|
|
29
|
+
"url": "{origin}",
|
|
30
|
+
"description": "The operator listener: the local stack's, or where yours runs",
|
|
31
|
+
"variables": {
|
|
32
|
+
"origin": {
|
|
33
|
+
"default": "http://localhost:8788"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"components": {
|
|
39
|
+
"securitySchemes": {
|
|
40
|
+
"adminKey": {
|
|
41
|
+
"type": "http",
|
|
42
|
+
"scheme": "bearer",
|
|
43
|
+
"description": "The Host's admin key (`host-credentials.json`). Never a Tenant bearer."
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"schemas": {
|
|
47
|
+
"AdminTenantList": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"id": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 1
|
|
55
|
+
},
|
|
56
|
+
"name": {
|
|
57
|
+
"type": [
|
|
58
|
+
"string",
|
|
59
|
+
"null"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"state": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"enum": [
|
|
65
|
+
"open",
|
|
66
|
+
"quarantined"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"envelope": {
|
|
70
|
+
"type": [
|
|
71
|
+
"object",
|
|
72
|
+
"null"
|
|
73
|
+
],
|
|
74
|
+
"properties": {
|
|
75
|
+
"id": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"minLength": 1
|
|
78
|
+
},
|
|
79
|
+
"name": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1
|
|
82
|
+
},
|
|
83
|
+
"createdAt": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"minLength": 1
|
|
86
|
+
},
|
|
87
|
+
"updatedAt": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 1
|
|
90
|
+
},
|
|
91
|
+
"schemaVersion": {
|
|
92
|
+
"type": "integer"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": [
|
|
96
|
+
"id",
|
|
97
|
+
"name",
|
|
98
|
+
"createdAt",
|
|
99
|
+
"updatedAt",
|
|
100
|
+
"schemaVersion"
|
|
101
|
+
],
|
|
102
|
+
"additionalProperties": false
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": [
|
|
106
|
+
"id",
|
|
107
|
+
"name",
|
|
108
|
+
"state",
|
|
109
|
+
"envelope"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"Rejected": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {
|
|
117
|
+
"status": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"enum": [
|
|
120
|
+
"rejected"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"code": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"enum": [
|
|
126
|
+
"not_found",
|
|
127
|
+
"protocol_unsupported",
|
|
128
|
+
"host_rejected",
|
|
129
|
+
"origin_rejected",
|
|
130
|
+
"unsupported_media_type",
|
|
131
|
+
"tenant_conflict",
|
|
132
|
+
"active_work",
|
|
133
|
+
"connection_missing",
|
|
134
|
+
"incompatible_host",
|
|
135
|
+
"subject_invalid",
|
|
136
|
+
"scope_required",
|
|
137
|
+
"token_expired",
|
|
138
|
+
"limit_exceeded",
|
|
139
|
+
"request_rejected",
|
|
140
|
+
"invalid_request",
|
|
141
|
+
"subject_required",
|
|
142
|
+
"internal_error"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"message": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
"details": {},
|
|
149
|
+
"activeTurnId": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"requestId": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"required": [
|
|
157
|
+
"status",
|
|
158
|
+
"code",
|
|
159
|
+
"message"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"ProtocolRejected": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"status": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"enum": [
|
|
168
|
+
"rejected"
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"code": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"enum": [
|
|
174
|
+
"protocol_unsupported"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"protocol": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"properties": {
|
|
180
|
+
"min": {
|
|
181
|
+
"type": "integer"
|
|
182
|
+
},
|
|
183
|
+
"max": {
|
|
184
|
+
"type": "integer"
|
|
185
|
+
},
|
|
186
|
+
"features": {
|
|
187
|
+
"type": "array",
|
|
188
|
+
"items": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"required": [
|
|
194
|
+
"min",
|
|
195
|
+
"max",
|
|
196
|
+
"features"
|
|
197
|
+
],
|
|
198
|
+
"additionalProperties": false
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"required": [
|
|
202
|
+
"status",
|
|
203
|
+
"code",
|
|
204
|
+
"protocol"
|
|
205
|
+
],
|
|
206
|
+
"additionalProperties": false
|
|
207
|
+
},
|
|
208
|
+
"TenantEnvelope": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"properties": {
|
|
211
|
+
"id": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"minLength": 1
|
|
214
|
+
},
|
|
215
|
+
"name": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"minLength": 1
|
|
218
|
+
},
|
|
219
|
+
"createdAt": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"minLength": 1
|
|
222
|
+
},
|
|
223
|
+
"updatedAt": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"minLength": 1
|
|
226
|
+
},
|
|
227
|
+
"schemaVersion": {
|
|
228
|
+
"type": "integer"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"required": [
|
|
232
|
+
"id",
|
|
233
|
+
"name",
|
|
234
|
+
"createdAt",
|
|
235
|
+
"updatedAt",
|
|
236
|
+
"schemaVersion"
|
|
237
|
+
],
|
|
238
|
+
"additionalProperties": false
|
|
239
|
+
},
|
|
240
|
+
"CreateTenantRequest": {
|
|
241
|
+
"type": "object",
|
|
242
|
+
"properties": {
|
|
243
|
+
"tenantId": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"minLength": 1
|
|
246
|
+
},
|
|
247
|
+
"name": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"minLength": 1
|
|
250
|
+
},
|
|
251
|
+
"principalId": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"minLength": 1
|
|
254
|
+
},
|
|
255
|
+
"credentialHash": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
258
|
+
},
|
|
259
|
+
"idempotencyKey": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"minLength": 1,
|
|
262
|
+
"maxLength": 256
|
|
263
|
+
},
|
|
264
|
+
"studioCredentialHash": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
267
|
+
},
|
|
268
|
+
"derivedPrincipals": {
|
|
269
|
+
"type": "array",
|
|
270
|
+
"items": {
|
|
271
|
+
"type": "object",
|
|
272
|
+
"properties": {
|
|
273
|
+
"id": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"pattern": "^[a-z][a-z0-9-]{0,31}$"
|
|
276
|
+
},
|
|
277
|
+
"credentialHash": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"required": [
|
|
283
|
+
"id",
|
|
284
|
+
"credentialHash"
|
|
285
|
+
],
|
|
286
|
+
"additionalProperties": false
|
|
287
|
+
},
|
|
288
|
+
"maxItems": 16
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": [
|
|
292
|
+
"tenantId",
|
|
293
|
+
"name",
|
|
294
|
+
"principalId",
|
|
295
|
+
"credentialHash",
|
|
296
|
+
"idempotencyKey"
|
|
297
|
+
],
|
|
298
|
+
"additionalProperties": false
|
|
299
|
+
},
|
|
300
|
+
"AdminTenantStatus": {
|
|
301
|
+
"type": "object",
|
|
302
|
+
"properties": {
|
|
303
|
+
"id": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"minLength": 1
|
|
306
|
+
},
|
|
307
|
+
"name": {
|
|
308
|
+
"type": [
|
|
309
|
+
"string",
|
|
310
|
+
"null"
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"state": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"enum": [
|
|
316
|
+
"open",
|
|
317
|
+
"quarantined"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"envelope": {
|
|
321
|
+
"type": [
|
|
322
|
+
"object",
|
|
323
|
+
"null"
|
|
324
|
+
],
|
|
325
|
+
"properties": {
|
|
326
|
+
"id": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"minLength": 1
|
|
329
|
+
},
|
|
330
|
+
"name": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"minLength": 1
|
|
333
|
+
},
|
|
334
|
+
"createdAt": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"minLength": 1
|
|
337
|
+
},
|
|
338
|
+
"updatedAt": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"minLength": 1
|
|
341
|
+
},
|
|
342
|
+
"schemaVersion": {
|
|
343
|
+
"type": "integer"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"required": [
|
|
347
|
+
"id",
|
|
348
|
+
"name",
|
|
349
|
+
"createdAt",
|
|
350
|
+
"updatedAt",
|
|
351
|
+
"schemaVersion"
|
|
352
|
+
],
|
|
353
|
+
"additionalProperties": false
|
|
354
|
+
},
|
|
355
|
+
"quarantine": {
|
|
356
|
+
"type": "object",
|
|
357
|
+
"properties": {
|
|
358
|
+
"code": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"enum": [
|
|
361
|
+
"kek-missing",
|
|
362
|
+
"corrupt",
|
|
363
|
+
"schema-too-new",
|
|
364
|
+
"migration-failed",
|
|
365
|
+
"envelope-invalid",
|
|
366
|
+
"open-timeout",
|
|
367
|
+
"open-failed"
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"message": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
"repair": {
|
|
374
|
+
"type": "string"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"required": [
|
|
378
|
+
"code",
|
|
379
|
+
"message",
|
|
380
|
+
"repair"
|
|
381
|
+
],
|
|
382
|
+
"additionalProperties": false
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"required": [
|
|
386
|
+
"id",
|
|
387
|
+
"name",
|
|
388
|
+
"state",
|
|
389
|
+
"envelope"
|
|
390
|
+
],
|
|
391
|
+
"additionalProperties": false
|
|
392
|
+
},
|
|
393
|
+
"AdminStatus": {
|
|
394
|
+
"type": "object",
|
|
395
|
+
"properties": {
|
|
396
|
+
"service": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"minLength": 1
|
|
399
|
+
},
|
|
400
|
+
"version": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"minLength": 1
|
|
403
|
+
},
|
|
404
|
+
"protocol": {
|
|
405
|
+
"type": "object",
|
|
406
|
+
"properties": {
|
|
407
|
+
"min": {
|
|
408
|
+
"type": "integer"
|
|
409
|
+
},
|
|
410
|
+
"max": {
|
|
411
|
+
"type": "integer"
|
|
412
|
+
},
|
|
413
|
+
"features": {
|
|
414
|
+
"type": "array",
|
|
415
|
+
"items": {
|
|
416
|
+
"type": "string"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"required": [
|
|
421
|
+
"min",
|
|
422
|
+
"max",
|
|
423
|
+
"features"
|
|
424
|
+
],
|
|
425
|
+
"additionalProperties": false
|
|
426
|
+
},
|
|
427
|
+
"tenants": {
|
|
428
|
+
"type": "array",
|
|
429
|
+
"items": {
|
|
430
|
+
"type": "object",
|
|
431
|
+
"properties": {
|
|
432
|
+
"id": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"minLength": 1
|
|
435
|
+
},
|
|
436
|
+
"name": {
|
|
437
|
+
"type": [
|
|
438
|
+
"string",
|
|
439
|
+
"null"
|
|
440
|
+
]
|
|
441
|
+
},
|
|
442
|
+
"state": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"enum": [
|
|
445
|
+
"open",
|
|
446
|
+
"quarantined"
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
"envelope": {
|
|
450
|
+
"type": [
|
|
451
|
+
"object",
|
|
452
|
+
"null"
|
|
453
|
+
],
|
|
454
|
+
"properties": {
|
|
455
|
+
"id": {
|
|
456
|
+
"type": "string",
|
|
457
|
+
"minLength": 1
|
|
458
|
+
},
|
|
459
|
+
"name": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"minLength": 1
|
|
462
|
+
},
|
|
463
|
+
"createdAt": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"minLength": 1
|
|
466
|
+
},
|
|
467
|
+
"updatedAt": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"minLength": 1
|
|
470
|
+
},
|
|
471
|
+
"schemaVersion": {
|
|
472
|
+
"type": "integer"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"required": [
|
|
476
|
+
"id",
|
|
477
|
+
"name",
|
|
478
|
+
"createdAt",
|
|
479
|
+
"updatedAt",
|
|
480
|
+
"schemaVersion"
|
|
481
|
+
],
|
|
482
|
+
"additionalProperties": false
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": [
|
|
486
|
+
"id",
|
|
487
|
+
"name",
|
|
488
|
+
"state",
|
|
489
|
+
"envelope"
|
|
490
|
+
],
|
|
491
|
+
"additionalProperties": false
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"aggregate": {
|
|
495
|
+
"type": "object",
|
|
496
|
+
"properties": {
|
|
497
|
+
"runningSessions": {
|
|
498
|
+
"type": "integer",
|
|
499
|
+
"minimum": 0
|
|
500
|
+
},
|
|
501
|
+
"inFlightDeliveries": {
|
|
502
|
+
"type": "integer",
|
|
503
|
+
"minimum": 0
|
|
504
|
+
},
|
|
505
|
+
"pendingActions": {
|
|
506
|
+
"type": "integer",
|
|
507
|
+
"minimum": 0
|
|
508
|
+
},
|
|
509
|
+
"uncertainEffects": {
|
|
510
|
+
"type": "integer",
|
|
511
|
+
"minimum": 0
|
|
512
|
+
},
|
|
513
|
+
"relay": {
|
|
514
|
+
"type": "object",
|
|
515
|
+
"properties": {
|
|
516
|
+
"active": {
|
|
517
|
+
"type": "boolean"
|
|
518
|
+
},
|
|
519
|
+
"pendingTxs": {
|
|
520
|
+
"type": "integer",
|
|
521
|
+
"minimum": 0
|
|
522
|
+
},
|
|
523
|
+
"pendingRows": {
|
|
524
|
+
"type": "integer",
|
|
525
|
+
"minimum": 0
|
|
526
|
+
},
|
|
527
|
+
"confirmed": {
|
|
528
|
+
"type": [
|
|
529
|
+
"string",
|
|
530
|
+
"null"
|
|
531
|
+
]
|
|
532
|
+
},
|
|
533
|
+
"reconciliations": {
|
|
534
|
+
"type": "integer",
|
|
535
|
+
"minimum": 0
|
|
536
|
+
},
|
|
537
|
+
"lastError": {
|
|
538
|
+
"type": [
|
|
539
|
+
"string",
|
|
540
|
+
"null"
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
"lagBytes": {
|
|
544
|
+
"type": "number",
|
|
545
|
+
"minimum": 0
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
"required": [
|
|
549
|
+
"active",
|
|
550
|
+
"pendingTxs",
|
|
551
|
+
"pendingRows",
|
|
552
|
+
"confirmed",
|
|
553
|
+
"reconciliations",
|
|
554
|
+
"lastError"
|
|
555
|
+
],
|
|
556
|
+
"additionalProperties": false
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"required": [
|
|
560
|
+
"runningSessions",
|
|
561
|
+
"inFlightDeliveries",
|
|
562
|
+
"pendingActions",
|
|
563
|
+
"uncertainEffects"
|
|
564
|
+
],
|
|
565
|
+
"additionalProperties": false
|
|
566
|
+
},
|
|
567
|
+
"host": {
|
|
568
|
+
"type": "object",
|
|
569
|
+
"properties": {
|
|
570
|
+
"hostId": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"minLength": 1
|
|
573
|
+
},
|
|
574
|
+
"url": {
|
|
575
|
+
"type": "string",
|
|
576
|
+
"minLength": 1
|
|
577
|
+
},
|
|
578
|
+
"pid": {
|
|
579
|
+
"type": "integer"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
"required": [
|
|
583
|
+
"hostId",
|
|
584
|
+
"url",
|
|
585
|
+
"pid"
|
|
586
|
+
],
|
|
587
|
+
"additionalProperties": false
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"required": [
|
|
591
|
+
"service",
|
|
592
|
+
"version",
|
|
593
|
+
"protocol",
|
|
594
|
+
"tenants",
|
|
595
|
+
"aggregate"
|
|
596
|
+
],
|
|
597
|
+
"additionalProperties": false
|
|
598
|
+
},
|
|
599
|
+
"HostShutdownResponse": {
|
|
600
|
+
"type": "object",
|
|
601
|
+
"properties": {
|
|
602
|
+
"status": {
|
|
603
|
+
"type": "string",
|
|
604
|
+
"enum": [
|
|
605
|
+
"shutting_down"
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"required": [
|
|
610
|
+
"status"
|
|
611
|
+
],
|
|
612
|
+
"additionalProperties": false
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
"parameters": {}
|
|
616
|
+
},
|
|
617
|
+
"paths": {
|
|
618
|
+
"/v1/admin/tenants": {
|
|
619
|
+
"get": {
|
|
620
|
+
"summary": "List Tenants",
|
|
621
|
+
"tags": [
|
|
622
|
+
"Admin"
|
|
623
|
+
],
|
|
624
|
+
"security": [
|
|
625
|
+
{
|
|
626
|
+
"adminKey": []
|
|
627
|
+
}
|
|
628
|
+
],
|
|
629
|
+
"responses": {
|
|
630
|
+
"200": {
|
|
631
|
+
"description": "Every Tenant on the Host",
|
|
632
|
+
"content": {
|
|
633
|
+
"application/json": {
|
|
634
|
+
"schema": {
|
|
635
|
+
"$ref": "#/components/schemas/AdminTenantList"
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"404": {
|
|
641
|
+
"description": "Not found: an unknown admin key, the public listener, or an unknown Tenant",
|
|
642
|
+
"content": {
|
|
643
|
+
"application/json": {
|
|
644
|
+
"schema": {
|
|
645
|
+
"$ref": "#/components/schemas/Rejected"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
"426": {
|
|
651
|
+
"description": "`Nylorun-Protocol` missing or unsupported",
|
|
652
|
+
"content": {
|
|
653
|
+
"application/json": {
|
|
654
|
+
"schema": {
|
|
655
|
+
"$ref": "#/components/schemas/ProtocolRejected"
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
"post": {
|
|
663
|
+
"summary": "Create a Tenant",
|
|
664
|
+
"description": "Idempotent on `idempotencyKey`: a replay answers 200 with the same Tenant.",
|
|
665
|
+
"tags": [
|
|
666
|
+
"Admin"
|
|
667
|
+
],
|
|
668
|
+
"security": [
|
|
669
|
+
{
|
|
670
|
+
"adminKey": []
|
|
671
|
+
}
|
|
672
|
+
],
|
|
673
|
+
"requestBody": {
|
|
674
|
+
"required": true,
|
|
675
|
+
"content": {
|
|
676
|
+
"application/json": {
|
|
677
|
+
"schema": {
|
|
678
|
+
"$ref": "#/components/schemas/CreateTenantRequest"
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
"responses": {
|
|
684
|
+
"200": {
|
|
685
|
+
"description": "The Tenant, created earlier by the same request",
|
|
686
|
+
"content": {
|
|
687
|
+
"application/json": {
|
|
688
|
+
"schema": {
|
|
689
|
+
"$ref": "#/components/schemas/TenantEnvelope"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"201": {
|
|
695
|
+
"description": "The Tenant, created",
|
|
696
|
+
"content": {
|
|
697
|
+
"application/json": {
|
|
698
|
+
"schema": {
|
|
699
|
+
"$ref": "#/components/schemas/TenantEnvelope"
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
"400": {
|
|
705
|
+
"description": "Invalid JSON or request body (`invalid_request`)",
|
|
706
|
+
"content": {
|
|
707
|
+
"application/json": {
|
|
708
|
+
"schema": {
|
|
709
|
+
"$ref": "#/components/schemas/Rejected"
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"404": {
|
|
715
|
+
"description": "Not found: an unknown admin key, the public listener, or an unknown Tenant",
|
|
716
|
+
"content": {
|
|
717
|
+
"application/json": {
|
|
718
|
+
"schema": {
|
|
719
|
+
"$ref": "#/components/schemas/Rejected"
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"409": {
|
|
725
|
+
"description": "Another Tenant has this id or idempotency key (`tenant_conflict`)",
|
|
726
|
+
"content": {
|
|
727
|
+
"application/json": {
|
|
728
|
+
"schema": {
|
|
729
|
+
"$ref": "#/components/schemas/Rejected"
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"413": {
|
|
735
|
+
"description": "Request body over 1 MiB",
|
|
736
|
+
"content": {
|
|
737
|
+
"application/json": {
|
|
738
|
+
"schema": {
|
|
739
|
+
"$ref": "#/components/schemas/Rejected"
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"426": {
|
|
745
|
+
"description": "`Nylorun-Protocol` missing or unsupported",
|
|
746
|
+
"content": {
|
|
747
|
+
"application/json": {
|
|
748
|
+
"schema": {
|
|
749
|
+
"$ref": "#/components/schemas/ProtocolRejected"
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
"/v1/admin/tenants/{tenantId}": {
|
|
758
|
+
"get": {
|
|
759
|
+
"summary": "Get a Tenant's status",
|
|
760
|
+
"tags": [
|
|
761
|
+
"Admin"
|
|
762
|
+
],
|
|
763
|
+
"security": [
|
|
764
|
+
{
|
|
765
|
+
"adminKey": []
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
"parameters": [
|
|
769
|
+
{
|
|
770
|
+
"schema": {
|
|
771
|
+
"type": "string",
|
|
772
|
+
"example": "tn_0123456789abcdefghjkmnpqrs"
|
|
773
|
+
},
|
|
774
|
+
"required": true,
|
|
775
|
+
"name": "tenantId",
|
|
776
|
+
"in": "path"
|
|
777
|
+
}
|
|
778
|
+
],
|
|
779
|
+
"responses": {
|
|
780
|
+
"200": {
|
|
781
|
+
"description": "The Tenant and its state",
|
|
782
|
+
"content": {
|
|
783
|
+
"application/json": {
|
|
784
|
+
"schema": {
|
|
785
|
+
"$ref": "#/components/schemas/AdminTenantStatus"
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"404": {
|
|
791
|
+
"description": "Not found: an unknown admin key, the public listener, or an unknown Tenant",
|
|
792
|
+
"content": {
|
|
793
|
+
"application/json": {
|
|
794
|
+
"schema": {
|
|
795
|
+
"$ref": "#/components/schemas/Rejected"
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
"426": {
|
|
801
|
+
"description": "`Nylorun-Protocol` missing or unsupported",
|
|
802
|
+
"content": {
|
|
803
|
+
"application/json": {
|
|
804
|
+
"schema": {
|
|
805
|
+
"$ref": "#/components/schemas/ProtocolRejected"
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"delete": {
|
|
813
|
+
"summary": "Delete a Tenant",
|
|
814
|
+
"tags": [
|
|
815
|
+
"Admin"
|
|
816
|
+
],
|
|
817
|
+
"security": [
|
|
818
|
+
{
|
|
819
|
+
"adminKey": []
|
|
820
|
+
}
|
|
821
|
+
],
|
|
822
|
+
"parameters": [
|
|
823
|
+
{
|
|
824
|
+
"schema": {
|
|
825
|
+
"type": "string",
|
|
826
|
+
"example": "tn_0123456789abcdefghjkmnpqrs"
|
|
827
|
+
},
|
|
828
|
+
"required": true,
|
|
829
|
+
"name": "tenantId",
|
|
830
|
+
"in": "path"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"schema": {
|
|
834
|
+
"type": "string",
|
|
835
|
+
"enum": [
|
|
836
|
+
"refuse",
|
|
837
|
+
"drain",
|
|
838
|
+
"cancel"
|
|
839
|
+
],
|
|
840
|
+
"description": "What to do with turns in progress: refuse to delete (default), wait for them, or cancel them"
|
|
841
|
+
},
|
|
842
|
+
"required": false,
|
|
843
|
+
"description": "What to do with turns in progress: refuse to delete (default), wait for them, or cancel them",
|
|
844
|
+
"name": "activeWork",
|
|
845
|
+
"in": "query"
|
|
846
|
+
}
|
|
847
|
+
],
|
|
848
|
+
"responses": {
|
|
849
|
+
"204": {
|
|
850
|
+
"description": "Deleted"
|
|
851
|
+
},
|
|
852
|
+
"400": {
|
|
853
|
+
"description": "`activeWork` is not refuse, drain or cancel (`invalid_request`)",
|
|
854
|
+
"content": {
|
|
855
|
+
"application/json": {
|
|
856
|
+
"schema": {
|
|
857
|
+
"$ref": "#/components/schemas/Rejected"
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
"404": {
|
|
863
|
+
"description": "Not found: an unknown admin key, the public listener, or an unknown Tenant",
|
|
864
|
+
"content": {
|
|
865
|
+
"application/json": {
|
|
866
|
+
"schema": {
|
|
867
|
+
"$ref": "#/components/schemas/Rejected"
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"409": {
|
|
873
|
+
"description": "The Tenant has work in progress and `activeWork` is refuse (`active_work`)",
|
|
874
|
+
"content": {
|
|
875
|
+
"application/json": {
|
|
876
|
+
"schema": {
|
|
877
|
+
"$ref": "#/components/schemas/Rejected"
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
"426": {
|
|
883
|
+
"description": "`Nylorun-Protocol` missing or unsupported",
|
|
884
|
+
"content": {
|
|
885
|
+
"application/json": {
|
|
886
|
+
"schema": {
|
|
887
|
+
"$ref": "#/components/schemas/ProtocolRejected"
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
"/v1/admin/status": {
|
|
896
|
+
"get": {
|
|
897
|
+
"summary": "Get the Host's status",
|
|
898
|
+
"tags": [
|
|
899
|
+
"Admin"
|
|
900
|
+
],
|
|
901
|
+
"security": [
|
|
902
|
+
{
|
|
903
|
+
"adminKey": []
|
|
904
|
+
}
|
|
905
|
+
],
|
|
906
|
+
"responses": {
|
|
907
|
+
"200": {
|
|
908
|
+
"description": "Version, protocol, Tenants and the Host",
|
|
909
|
+
"content": {
|
|
910
|
+
"application/json": {
|
|
911
|
+
"schema": {
|
|
912
|
+
"$ref": "#/components/schemas/AdminStatus"
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
"404": {
|
|
918
|
+
"description": "Not found: an unknown admin key, the public listener, or an unknown Tenant",
|
|
919
|
+
"content": {
|
|
920
|
+
"application/json": {
|
|
921
|
+
"schema": {
|
|
922
|
+
"$ref": "#/components/schemas/Rejected"
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
"426": {
|
|
928
|
+
"description": "`Nylorun-Protocol` missing or unsupported",
|
|
929
|
+
"content": {
|
|
930
|
+
"application/json": {
|
|
931
|
+
"schema": {
|
|
932
|
+
"$ref": "#/components/schemas/ProtocolRejected"
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"/v1/admin/host": {
|
|
941
|
+
"get": {
|
|
942
|
+
"summary": "Get the Host's status (alias)",
|
|
943
|
+
"tags": [
|
|
944
|
+
"Admin"
|
|
945
|
+
],
|
|
946
|
+
"security": [
|
|
947
|
+
{
|
|
948
|
+
"adminKey": []
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
"responses": {
|
|
952
|
+
"200": {
|
|
953
|
+
"description": "Version, protocol, Tenants and the Host",
|
|
954
|
+
"content": {
|
|
955
|
+
"application/json": {
|
|
956
|
+
"schema": {
|
|
957
|
+
"$ref": "#/components/schemas/AdminStatus"
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
"404": {
|
|
963
|
+
"description": "Not found: an unknown admin key, the public listener, or an unknown Tenant",
|
|
964
|
+
"content": {
|
|
965
|
+
"application/json": {
|
|
966
|
+
"schema": {
|
|
967
|
+
"$ref": "#/components/schemas/Rejected"
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
"426": {
|
|
973
|
+
"description": "`Nylorun-Protocol` missing or unsupported",
|
|
974
|
+
"content": {
|
|
975
|
+
"application/json": {
|
|
976
|
+
"schema": {
|
|
977
|
+
"$ref": "#/components/schemas/ProtocolRejected"
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
"/v1/admin/host/shutdown": {
|
|
986
|
+
"post": {
|
|
987
|
+
"summary": "Shut the Host down",
|
|
988
|
+
"description": "Answers, then stops the Host. Served by a self-hosted Runtime only.",
|
|
989
|
+
"tags": [
|
|
990
|
+
"Admin"
|
|
991
|
+
],
|
|
992
|
+
"security": [
|
|
993
|
+
{
|
|
994
|
+
"adminKey": []
|
|
995
|
+
}
|
|
996
|
+
],
|
|
997
|
+
"responses": {
|
|
998
|
+
"200": {
|
|
999
|
+
"description": "The Host is stopping",
|
|
1000
|
+
"content": {
|
|
1001
|
+
"application/json": {
|
|
1002
|
+
"schema": {
|
|
1003
|
+
"$ref": "#/components/schemas/HostShutdownResponse"
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
"404": {
|
|
1009
|
+
"description": "Not found: an unknown admin key, the public listener, or an unknown Tenant",
|
|
1010
|
+
"content": {
|
|
1011
|
+
"application/json": {
|
|
1012
|
+
"schema": {
|
|
1013
|
+
"$ref": "#/components/schemas/Rejected"
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
"426": {
|
|
1019
|
+
"description": "`Nylorun-Protocol` missing or unsupported",
|
|
1020
|
+
"content": {
|
|
1021
|
+
"application/json": {
|
|
1022
|
+
"schema": {
|
|
1023
|
+
"$ref": "#/components/schemas/ProtocolRejected"
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"/v1/admin/openapi.json": {
|
|
1032
|
+
"get": {
|
|
1033
|
+
"summary": "Get this document",
|
|
1034
|
+
"tags": [
|
|
1035
|
+
"Admin"
|
|
1036
|
+
],
|
|
1037
|
+
"security": [
|
|
1038
|
+
{
|
|
1039
|
+
"adminKey": []
|
|
1040
|
+
}
|
|
1041
|
+
],
|
|
1042
|
+
"responses": {
|
|
1043
|
+
"200": {
|
|
1044
|
+
"description": "The Admin API's OpenAPI document"
|
|
1045
|
+
},
|
|
1046
|
+
"404": {
|
|
1047
|
+
"description": "Not found: an unknown admin key, the public listener, or an unknown Tenant",
|
|
1048
|
+
"content": {
|
|
1049
|
+
"application/json": {
|
|
1050
|
+
"schema": {
|
|
1051
|
+
"$ref": "#/components/schemas/Rejected"
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
"426": {
|
|
1057
|
+
"description": "`Nylorun-Protocol` missing or unsupported",
|
|
1058
|
+
"content": {
|
|
1059
|
+
"application/json": {
|
|
1060
|
+
"schema": {
|
|
1061
|
+
"$ref": "#/components/schemas/ProtocolRejected"
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
"webhooks": {}
|
|
1071
|
+
}
|