@anybio/govern 0.0.0 → 0.2.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 +30 -0
- package/LICENSE +202 -0
- package/NOTICE +5 -0
- package/README.md +374 -0
- package/dist/cli.js +1891 -0
- package/dist/client-CU46a__g.d.cts +1928 -0
- package/dist/client-CU46a__g.d.ts +1928 -0
- package/dist/index.cjs +1541 -0
- package/dist/index.d.cts +97 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.js +1503 -0
- package/dist/langchain.cjs +1700 -0
- package/dist/langchain.d.cts +148 -0
- package/dist/langchain.d.ts +148 -0
- package/dist/langchain.js +1695 -0
- package/dist/vercel-ai.cjs +1725 -0
- package/dist/vercel-ai.d.cts +94 -0
- package/dist/vercel-ai.d.ts +94 -0
- package/dist/vercel-ai.js +1721 -0
- package/package.json +127 -6
- package/spec/openapi.json +3967 -0
- package/README +0 -3
|
@@ -0,0 +1,3967 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.1.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "AnyBio Govern API",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"description": "The Govern surface of the AnyBio API. Generated from the AnyBio Govern API specification, 2026-09-26."
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://api.anybio.io"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"tags": [
|
|
14
|
+
{
|
|
15
|
+
"name": "Govern",
|
|
16
|
+
"description": "Run a third party's patient-facing AI through the communication compliance gate: applications, application keys, modes, decisions"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/api/v1/govern/applications": {
|
|
21
|
+
"get": {
|
|
22
|
+
"operationId": "list_applications",
|
|
23
|
+
"responses": {
|
|
24
|
+
"200": {
|
|
25
|
+
"content": {
|
|
26
|
+
"application/json": {
|
|
27
|
+
"schema": {
|
|
28
|
+
"items": {
|
|
29
|
+
"$ref": "#/components/schemas/ApplicationDto"
|
|
30
|
+
},
|
|
31
|
+
"type": "array"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"description": "Applications in the caller's organization and environment"
|
|
36
|
+
},
|
|
37
|
+
"403": {
|
|
38
|
+
"description": "Requires an organization admin session or an Admin developer key"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"security": [
|
|
42
|
+
{
|
|
43
|
+
"session_cookie": []
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"bearer_token": []
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"tags": [
|
|
50
|
+
"Govern"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"post": {
|
|
54
|
+
"operationId": "create_application",
|
|
55
|
+
"requestBody": {
|
|
56
|
+
"content": {
|
|
57
|
+
"application/json": {
|
|
58
|
+
"schema": {
|
|
59
|
+
"$ref": "#/components/schemas/CreateApplicationRequest"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": true
|
|
64
|
+
},
|
|
65
|
+
"responses": {
|
|
66
|
+
"201": {
|
|
67
|
+
"content": {
|
|
68
|
+
"application/json": {
|
|
69
|
+
"schema": {
|
|
70
|
+
"$ref": "#/components/schemas/CreateApplicationResponse"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"description": "Application created; the key secret appears only here"
|
|
75
|
+
},
|
|
76
|
+
"400": {
|
|
77
|
+
"description": "Invalid name, channel, project scope or webhook URL"
|
|
78
|
+
},
|
|
79
|
+
"403": {
|
|
80
|
+
"description": "Requires an organization admin session or an Admin developer key"
|
|
81
|
+
},
|
|
82
|
+
"409": {
|
|
83
|
+
"description": "An application with this name already exists in this environment"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"security": [
|
|
87
|
+
{
|
|
88
|
+
"session_cookie": []
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"bearer_token": []
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"summary": "Create an application and mint its first key.",
|
|
95
|
+
"tags": [
|
|
96
|
+
"Govern"
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"/api/v1/govern/applications/{application_id}": {
|
|
101
|
+
"get": {
|
|
102
|
+
"operationId": "get_application",
|
|
103
|
+
"parameters": [
|
|
104
|
+
{
|
|
105
|
+
"description": "Application id",
|
|
106
|
+
"in": "path",
|
|
107
|
+
"name": "application_id",
|
|
108
|
+
"required": true,
|
|
109
|
+
"schema": {
|
|
110
|
+
"format": "uuid",
|
|
111
|
+
"type": "string"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"responses": {
|
|
116
|
+
"200": {
|
|
117
|
+
"content": {
|
|
118
|
+
"application/json": {
|
|
119
|
+
"schema": {
|
|
120
|
+
"$ref": "#/components/schemas/ApplicationDto"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"description": ""
|
|
125
|
+
},
|
|
126
|
+
"404": {
|
|
127
|
+
"description": "No such application in this organization and environment"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"security": [
|
|
131
|
+
{
|
|
132
|
+
"session_cookie": []
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"bearer_token": []
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"tags": [
|
|
139
|
+
"Govern"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"patch": {
|
|
143
|
+
"operationId": "patch_application",
|
|
144
|
+
"parameters": [
|
|
145
|
+
{
|
|
146
|
+
"description": "Application id",
|
|
147
|
+
"in": "path",
|
|
148
|
+
"name": "application_id",
|
|
149
|
+
"required": true,
|
|
150
|
+
"schema": {
|
|
151
|
+
"format": "uuid",
|
|
152
|
+
"type": "string"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"requestBody": {
|
|
157
|
+
"content": {
|
|
158
|
+
"application/json": {
|
|
159
|
+
"schema": {
|
|
160
|
+
"$ref": "#/components/schemas/PatchApplicationRequest"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": true
|
|
165
|
+
},
|
|
166
|
+
"responses": {
|
|
167
|
+
"200": {
|
|
168
|
+
"content": {
|
|
169
|
+
"application/json": {
|
|
170
|
+
"schema": {
|
|
171
|
+
"$ref": "#/components/schemas/ApplicationDto"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"description": ""
|
|
176
|
+
},
|
|
177
|
+
"400": {
|
|
178
|
+
"description": "Invalid name, channel, project scope or webhook URL"
|
|
179
|
+
},
|
|
180
|
+
"404": {
|
|
181
|
+
"description": "No such application in this organization and environment"
|
|
182
|
+
},
|
|
183
|
+
"409": {
|
|
184
|
+
"description": "An application with this name already exists in this environment"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"security": [
|
|
188
|
+
{
|
|
189
|
+
"session_cookie": []
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"bearer_token": []
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"summary": "Patch an application. A change to the default mode or to any channel's\nmode is an audited event with the actor and the previous and new mode.",
|
|
196
|
+
"tags": [
|
|
197
|
+
"Govern"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"/api/v1/govern/applications/{application_id}/keys": {
|
|
202
|
+
"get": {
|
|
203
|
+
"operationId": "list_application_keys",
|
|
204
|
+
"parameters": [
|
|
205
|
+
{
|
|
206
|
+
"description": "Application id",
|
|
207
|
+
"in": "path",
|
|
208
|
+
"name": "application_id",
|
|
209
|
+
"required": true,
|
|
210
|
+
"schema": {
|
|
211
|
+
"format": "uuid",
|
|
212
|
+
"type": "string"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"responses": {
|
|
217
|
+
"200": {
|
|
218
|
+
"content": {
|
|
219
|
+
"application/json": {
|
|
220
|
+
"schema": {
|
|
221
|
+
"items": {
|
|
222
|
+
"$ref": "#/components/schemas/ApplicationKeyDto"
|
|
223
|
+
},
|
|
224
|
+
"type": "array"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"description": "Key metadata, newest first; never a secret"
|
|
229
|
+
},
|
|
230
|
+
"404": {
|
|
231
|
+
"description": "No such application in this organization and environment"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"security": [
|
|
235
|
+
{
|
|
236
|
+
"session_cookie": []
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"bearer_token": []
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"tags": [
|
|
243
|
+
"Govern"
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"/api/v1/govern/applications/{application_id}/keys/rotate": {
|
|
248
|
+
"post": {
|
|
249
|
+
"operationId": "rotate_application_key",
|
|
250
|
+
"parameters": [
|
|
251
|
+
{
|
|
252
|
+
"description": "Application id",
|
|
253
|
+
"in": "path",
|
|
254
|
+
"name": "application_id",
|
|
255
|
+
"required": true,
|
|
256
|
+
"schema": {
|
|
257
|
+
"format": "uuid",
|
|
258
|
+
"type": "string"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"requestBody": {
|
|
263
|
+
"content": {
|
|
264
|
+
"application/json": {
|
|
265
|
+
"schema": {
|
|
266
|
+
"$ref": "#/components/schemas/RotateKeyBody"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"description": "Optional; defaults to a one-day overlap",
|
|
271
|
+
"required": true
|
|
272
|
+
},
|
|
273
|
+
"responses": {
|
|
274
|
+
"201": {
|
|
275
|
+
"content": {
|
|
276
|
+
"application/json": {
|
|
277
|
+
"schema": {
|
|
278
|
+
"$ref": "#/components/schemas/RotateKeyResponse"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"description": "New key minted; the secret appears only here"
|
|
283
|
+
},
|
|
284
|
+
"400": {
|
|
285
|
+
"description": "overlap_seconds out of range"
|
|
286
|
+
},
|
|
287
|
+
"404": {
|
|
288
|
+
"description": "No such application in this organization and environment"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"security": [
|
|
292
|
+
{
|
|
293
|
+
"session_cookie": []
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"bearer_token": []
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"summary": "Rotate the application's key: mint a new one and give the previous keys an\noverlap window, after which they are refused.",
|
|
300
|
+
"tags": [
|
|
301
|
+
"Govern"
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"/api/v1/govern/applications/{application_id}/observe-report": {
|
|
306
|
+
"get": {
|
|
307
|
+
"operationId": "observe_report",
|
|
308
|
+
"parameters": [
|
|
309
|
+
{
|
|
310
|
+
"description": "Application id",
|
|
311
|
+
"in": "path",
|
|
312
|
+
"name": "application_id",
|
|
313
|
+
"required": true,
|
|
314
|
+
"schema": {
|
|
315
|
+
"format": "uuid",
|
|
316
|
+
"type": "string"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"description": "Inclusive start, RFC 3339; default fourteen days before `to`",
|
|
321
|
+
"in": "query",
|
|
322
|
+
"name": "from",
|
|
323
|
+
"required": false,
|
|
324
|
+
"schema": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"description": "Exclusive end, RFC 3339; default now",
|
|
330
|
+
"in": "query",
|
|
331
|
+
"name": "to",
|
|
332
|
+
"required": false,
|
|
333
|
+
"schema": {
|
|
334
|
+
"type": "string"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"responses": {
|
|
339
|
+
"200": {
|
|
340
|
+
"content": {
|
|
341
|
+
"application/json": {
|
|
342
|
+
"schema": {
|
|
343
|
+
"$ref": "#/components/schemas/ObserveReport"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"description": ""
|
|
348
|
+
},
|
|
349
|
+
"400": {
|
|
350
|
+
"description": "Window empty, inverted or longer than the maximum"
|
|
351
|
+
},
|
|
352
|
+
"404": {
|
|
353
|
+
"description": "No such application in this organization and environment"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"security": [
|
|
357
|
+
{
|
|
358
|
+
"session_cookie": []
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"bearer_token": []
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"summary": "The observe report: counts by decision, policy and channel over a window,\nwould-have separated from enforced.",
|
|
365
|
+
"tags": [
|
|
366
|
+
"Govern"
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"/api/v1/govern/applications/{application_id}/observe-report.csv": {
|
|
371
|
+
"get": {
|
|
372
|
+
"operationId": "observe_report_csv",
|
|
373
|
+
"parameters": [
|
|
374
|
+
{
|
|
375
|
+
"description": "Application id",
|
|
376
|
+
"in": "path",
|
|
377
|
+
"name": "application_id",
|
|
378
|
+
"required": true,
|
|
379
|
+
"schema": {
|
|
380
|
+
"format": "uuid",
|
|
381
|
+
"type": "string"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"description": "Inclusive start, RFC 3339; default fourteen days before `to`",
|
|
386
|
+
"in": "query",
|
|
387
|
+
"name": "from",
|
|
388
|
+
"required": false,
|
|
389
|
+
"schema": {
|
|
390
|
+
"type": "string"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"description": "Exclusive end, RFC 3339; default now",
|
|
395
|
+
"in": "query",
|
|
396
|
+
"name": "to",
|
|
397
|
+
"required": false,
|
|
398
|
+
"schema": {
|
|
399
|
+
"type": "string"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"responses": {
|
|
404
|
+
"200": {
|
|
405
|
+
"content": {
|
|
406
|
+
"text/csv": {}
|
|
407
|
+
},
|
|
408
|
+
"description": "One line per (policy, version, channel, mode, source, status, outcome) bucket, with `would_have` and `enforced` in columns of their own"
|
|
409
|
+
},
|
|
410
|
+
"400": {
|
|
411
|
+
"description": "Window empty, inverted or longer than the maximum"
|
|
412
|
+
},
|
|
413
|
+
"403": {
|
|
414
|
+
"description": "Requires an organization admin session or an Admin developer key"
|
|
415
|
+
},
|
|
416
|
+
"404": {
|
|
417
|
+
"description": "No such application in this organization and environment"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"security": [
|
|
421
|
+
{
|
|
422
|
+
"session_cookie": []
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"bearer_token": []
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"summary": "The observe report as a CSV of the buckets its counts were summed from.",
|
|
429
|
+
"tags": [
|
|
430
|
+
"Govern"
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"/api/v1/govern/applications/{application_id}/observe-report.pdf": {
|
|
435
|
+
"get": {
|
|
436
|
+
"operationId": "observe_report_pdf",
|
|
437
|
+
"parameters": [
|
|
438
|
+
{
|
|
439
|
+
"description": "Application id",
|
|
440
|
+
"in": "path",
|
|
441
|
+
"name": "application_id",
|
|
442
|
+
"required": true,
|
|
443
|
+
"schema": {
|
|
444
|
+
"format": "uuid",
|
|
445
|
+
"type": "string"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"description": "Inclusive start, RFC 3339; default fourteen days before `to`",
|
|
450
|
+
"in": "query",
|
|
451
|
+
"name": "from",
|
|
452
|
+
"required": false,
|
|
453
|
+
"schema": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"description": "Exclusive end, RFC 3339; default now",
|
|
459
|
+
"in": "query",
|
|
460
|
+
"name": "to",
|
|
461
|
+
"required": false,
|
|
462
|
+
"schema": {
|
|
463
|
+
"type": "string"
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"responses": {
|
|
468
|
+
"200": {
|
|
469
|
+
"content": {
|
|
470
|
+
"application/pdf": {}
|
|
471
|
+
},
|
|
472
|
+
"description": "The report as a document carrying the organization, the application, the environment, the window, the generation time, and the policy name and version behind each count"
|
|
473
|
+
},
|
|
474
|
+
"400": {
|
|
475
|
+
"description": "Window empty, inverted or longer than the maximum"
|
|
476
|
+
},
|
|
477
|
+
"403": {
|
|
478
|
+
"description": "Requires an organization admin session or an Admin developer key"
|
|
479
|
+
},
|
|
480
|
+
"404": {
|
|
481
|
+
"description": "No such application in this organization and environment"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"security": [
|
|
485
|
+
{
|
|
486
|
+
"session_cookie": []
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"bearer_token": []
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
"summary": "The observe report as a PDF the account holder sends to a reviewer.",
|
|
493
|
+
"tags": [
|
|
494
|
+
"Govern"
|
|
495
|
+
]
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"/api/v1/govern/applications/{application_id}/patients": {
|
|
499
|
+
"delete": {
|
|
500
|
+
"operationId": "purge_application_patients",
|
|
501
|
+
"parameters": [
|
|
502
|
+
{
|
|
503
|
+
"description": "Application id",
|
|
504
|
+
"in": "path",
|
|
505
|
+
"name": "application_id",
|
|
506
|
+
"required": true,
|
|
507
|
+
"schema": {
|
|
508
|
+
"format": "uuid",
|
|
509
|
+
"type": "string"
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
"responses": {
|
|
514
|
+
"200": {
|
|
515
|
+
"content": {
|
|
516
|
+
"application/json": {
|
|
517
|
+
"schema": {
|
|
518
|
+
"$ref": "#/components/schemas/PurgeResponse"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"description": ""
|
|
523
|
+
},
|
|
524
|
+
"404": {
|
|
525
|
+
"description": "No such application in this organization and environment"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"security": [
|
|
529
|
+
{
|
|
530
|
+
"session_cookie": []
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"bearer_token": []
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
"summary": "Purge every patient's state and ledger for an application (retention, or\nthe end of the relationship). Decision records are untouched.",
|
|
537
|
+
"tags": [
|
|
538
|
+
"Govern"
|
|
539
|
+
]
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"/api/v1/govern/applications/{application_id}/webhook-secret/rotate": {
|
|
543
|
+
"post": {
|
|
544
|
+
"operationId": "rotate_webhook_secret",
|
|
545
|
+
"parameters": [
|
|
546
|
+
{
|
|
547
|
+
"description": "Application id",
|
|
548
|
+
"in": "path",
|
|
549
|
+
"name": "application_id",
|
|
550
|
+
"required": true,
|
|
551
|
+
"schema": {
|
|
552
|
+
"format": "uuid",
|
|
553
|
+
"type": "string"
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
"responses": {
|
|
558
|
+
"201": {
|
|
559
|
+
"content": {
|
|
560
|
+
"application/json": {
|
|
561
|
+
"schema": {
|
|
562
|
+
"$ref": "#/components/schemas/MintedWebhookSecret"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"description": "Rotated; the secret appears only here"
|
|
567
|
+
},
|
|
568
|
+
"403": {
|
|
569
|
+
"description": "Requires an organization admin session or an Admin developer key"
|
|
570
|
+
},
|
|
571
|
+
"404": {
|
|
572
|
+
"description": "No such application in this organization and environment"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"security": [
|
|
576
|
+
{
|
|
577
|
+
"session_cookie": []
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"bearer_token": []
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"summary": "Replace the application's webhook signing secret. The new secret is in\nthis response only; deliveries attempted from now on are signed with it.",
|
|
584
|
+
"tags": [
|
|
585
|
+
"Govern"
|
|
586
|
+
]
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"/api/v1/govern/decisions/{decision_id}": {
|
|
590
|
+
"get": {
|
|
591
|
+
"operationId": "get_decision",
|
|
592
|
+
"parameters": [
|
|
593
|
+
{
|
|
594
|
+
"description": "Decision id",
|
|
595
|
+
"in": "path",
|
|
596
|
+
"name": "decision_id",
|
|
597
|
+
"required": true,
|
|
598
|
+
"schema": {
|
|
599
|
+
"format": "uuid",
|
|
600
|
+
"type": "string"
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
],
|
|
604
|
+
"responses": {
|
|
605
|
+
"200": {
|
|
606
|
+
"content": {
|
|
607
|
+
"application/json": {
|
|
608
|
+
"schema": {
|
|
609
|
+
"$ref": "#/components/schemas/DecisionView"
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"description": ""
|
|
614
|
+
},
|
|
615
|
+
"403": {
|
|
616
|
+
"description": "Not an application key"
|
|
617
|
+
},
|
|
618
|
+
"404": {
|
|
619
|
+
"description": "No such decision for this application"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"security": [
|
|
623
|
+
{
|
|
624
|
+
"bearer_token": []
|
|
625
|
+
}
|
|
626
|
+
],
|
|
627
|
+
"summary": "The decision with its review state; the first hold-resolution path.",
|
|
628
|
+
"tags": [
|
|
629
|
+
"Govern"
|
|
630
|
+
]
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"/api/v1/govern/decisions/{decision_id}/outcome": {
|
|
634
|
+
"post": {
|
|
635
|
+
"operationId": "record_outcome",
|
|
636
|
+
"parameters": [
|
|
637
|
+
{
|
|
638
|
+
"description": "Decision id",
|
|
639
|
+
"in": "path",
|
|
640
|
+
"name": "decision_id",
|
|
641
|
+
"required": true,
|
|
642
|
+
"schema": {
|
|
643
|
+
"format": "uuid",
|
|
644
|
+
"type": "string"
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
"requestBody": {
|
|
649
|
+
"content": {
|
|
650
|
+
"application/json": {
|
|
651
|
+
"schema": {
|
|
652
|
+
"$ref": "#/components/schemas/OutcomeRequest"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"required": true
|
|
657
|
+
},
|
|
658
|
+
"responses": {
|
|
659
|
+
"200": {
|
|
660
|
+
"content": {
|
|
661
|
+
"application/json": {
|
|
662
|
+
"schema": {
|
|
663
|
+
"$ref": "#/components/schemas/DecisionView"
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
"description": "The same outcome was already recorded"
|
|
668
|
+
},
|
|
669
|
+
"201": {
|
|
670
|
+
"content": {
|
|
671
|
+
"application/json": {
|
|
672
|
+
"schema": {
|
|
673
|
+
"$ref": "#/components/schemas/DecisionView"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"description": "Outcome recorded"
|
|
678
|
+
},
|
|
679
|
+
"400": {
|
|
680
|
+
"description": "Invalid hash or delivery reference, or delivered without a hash"
|
|
681
|
+
},
|
|
682
|
+
"403": {
|
|
683
|
+
"description": "Not an application key"
|
|
684
|
+
},
|
|
685
|
+
"404": {
|
|
686
|
+
"description": "No such decision for this application"
|
|
687
|
+
},
|
|
688
|
+
"409": {
|
|
689
|
+
"description": "A different outcome is already recorded"
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"security": [
|
|
693
|
+
{
|
|
694
|
+
"bearer_token": []
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"summary": "Report what was delivered for a decision. One outcome per decision: a\nreplay that says the same thing is `200`, one that differs is `409`.",
|
|
698
|
+
"tags": [
|
|
699
|
+
"Govern"
|
|
700
|
+
]
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
"/api/v1/govern/disclosures": {
|
|
704
|
+
"post": {
|
|
705
|
+
"operationId": "record_disclosure",
|
|
706
|
+
"requestBody": {
|
|
707
|
+
"content": {
|
|
708
|
+
"application/json": {
|
|
709
|
+
"schema": {
|
|
710
|
+
"$ref": "#/components/schemas/RecordDisclosureRequest"
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"required": true
|
|
715
|
+
},
|
|
716
|
+
"responses": {
|
|
717
|
+
"200": {
|
|
718
|
+
"content": {
|
|
719
|
+
"application/json": {
|
|
720
|
+
"schema": {
|
|
721
|
+
"$ref": "#/components/schemas/DisclosureView"
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"description": "The conversation's evidence already exists"
|
|
726
|
+
},
|
|
727
|
+
"201": {
|
|
728
|
+
"content": {
|
|
729
|
+
"application/json": {
|
|
730
|
+
"schema": {
|
|
731
|
+
"$ref": "#/components/schemas/DisclosureView"
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
"description": "Evidence recorded; attach `ref` on every evaluate for the conversation"
|
|
736
|
+
},
|
|
737
|
+
"400": {
|
|
738
|
+
"description": "Blank or oversized text, or an invalid conversation id"
|
|
739
|
+
},
|
|
740
|
+
"403": {
|
|
741
|
+
"description": "Not an application key, or a key not bound to the named application"
|
|
742
|
+
},
|
|
743
|
+
"503": {
|
|
744
|
+
"description": "The evidence could not be recorded; retry"
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
"security": [
|
|
748
|
+
{
|
|
749
|
+
"bearer_token": []
|
|
750
|
+
}
|
|
751
|
+
],
|
|
752
|
+
"summary": "Record the AI-identity disclosure shown at the start of a conversation.\nOnce per conversation; a second call returns the same evidence with `200`.",
|
|
753
|
+
"tags": [
|
|
754
|
+
"Govern"
|
|
755
|
+
]
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
"/api/v1/govern/evaluate": {
|
|
759
|
+
"post": {
|
|
760
|
+
"description": "Enforce answers inline (`200`); observe accepts (`202`) and evaluates off\nthe request path; a channel that is `off` answers `200` with\n`status = not_evaluated`. A replay of a `turn_id` returns the stored\ndecision. `Idempotency-Key`, when sent, must equal `turn_id`.",
|
|
761
|
+
"operationId": "evaluate",
|
|
762
|
+
"requestBody": {
|
|
763
|
+
"content": {
|
|
764
|
+
"application/json": {
|
|
765
|
+
"schema": {
|
|
766
|
+
"$ref": "#/components/schemas/EvaluateRequest"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"required": true
|
|
771
|
+
},
|
|
772
|
+
"responses": {
|
|
773
|
+
"200": {
|
|
774
|
+
"content": {
|
|
775
|
+
"application/json": {
|
|
776
|
+
"schema": {
|
|
777
|
+
"$ref": "#/components/schemas/DecisionView"
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
"description": "Decided inline (enforce), replayed, or not evaluated (channel off)"
|
|
782
|
+
},
|
|
783
|
+
"202": {
|
|
784
|
+
"content": {
|
|
785
|
+
"application/json": {
|
|
786
|
+
"schema": {
|
|
787
|
+
"$ref": "#/components/schemas/DecisionView"
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"description": "Accepted (observe); evaluated off the request path, poll the decision id"
|
|
792
|
+
},
|
|
793
|
+
"400": {
|
|
794
|
+
"description": "Invalid identifiers, content, metadata, or an audience not allowed on the channel"
|
|
795
|
+
},
|
|
796
|
+
"403": {
|
|
797
|
+
"description": "Not an application key, or a key not bound to the named application"
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
"security": [
|
|
801
|
+
{
|
|
802
|
+
"bearer_token": []
|
|
803
|
+
}
|
|
804
|
+
],
|
|
805
|
+
"summary": "Evaluate one turn of the application's AI output.",
|
|
806
|
+
"tags": [
|
|
807
|
+
"Govern"
|
|
808
|
+
]
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
"/api/v1/govern/handoffs": {
|
|
812
|
+
"get": {
|
|
813
|
+
"operationId": "list_handoffs",
|
|
814
|
+
"parameters": [
|
|
815
|
+
{
|
|
816
|
+
"description": "Staff may narrow to one application; a key is always its own",
|
|
817
|
+
"in": "query",
|
|
818
|
+
"name": "application_id",
|
|
819
|
+
"required": false,
|
|
820
|
+
"schema": {
|
|
821
|
+
"format": "uuid",
|
|
822
|
+
"type": "string"
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"description": "queued | claimed | resolved",
|
|
827
|
+
"in": "query",
|
|
828
|
+
"name": "status",
|
|
829
|
+
"required": false,
|
|
830
|
+
"schema": {
|
|
831
|
+
"type": "string"
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"in": "query",
|
|
836
|
+
"name": "assigned_to",
|
|
837
|
+
"required": false,
|
|
838
|
+
"schema": {
|
|
839
|
+
"format": "uuid",
|
|
840
|
+
"type": "string"
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"in": "query",
|
|
845
|
+
"name": "overdue",
|
|
846
|
+
"required": false,
|
|
847
|
+
"schema": {
|
|
848
|
+
"type": "boolean"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"description": "created (default) | due",
|
|
853
|
+
"in": "query",
|
|
854
|
+
"name": "sort",
|
|
855
|
+
"required": false,
|
|
856
|
+
"schema": {
|
|
857
|
+
"type": "string"
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"in": "query",
|
|
862
|
+
"name": "limit",
|
|
863
|
+
"required": false,
|
|
864
|
+
"schema": {
|
|
865
|
+
"format": "int64",
|
|
866
|
+
"minimum": 0,
|
|
867
|
+
"type": "integer"
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"in": "query",
|
|
872
|
+
"name": "offset",
|
|
873
|
+
"required": false,
|
|
874
|
+
"schema": {
|
|
875
|
+
"format": "int64",
|
|
876
|
+
"minimum": 0,
|
|
877
|
+
"type": "integer"
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
],
|
|
881
|
+
"responses": {
|
|
882
|
+
"200": {
|
|
883
|
+
"content": {
|
|
884
|
+
"application/json": {
|
|
885
|
+
"schema": {
|
|
886
|
+
"$ref": "#/components/schemas/HandoffList"
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
"description": ""
|
|
891
|
+
},
|
|
892
|
+
"403": {
|
|
893
|
+
"description": "Not an application key or a staff session of the organization"
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"security": [
|
|
897
|
+
{
|
|
898
|
+
"session_cookie": []
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"bearer_token": []
|
|
902
|
+
}
|
|
903
|
+
],
|
|
904
|
+
"summary": "The application-scoped hand-offs of the organization and environment.",
|
|
905
|
+
"tags": [
|
|
906
|
+
"Govern"
|
|
907
|
+
]
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"/api/v1/govern/handoffs/{handoff_id}": {
|
|
911
|
+
"get": {
|
|
912
|
+
"operationId": "handoff_detail",
|
|
913
|
+
"parameters": [
|
|
914
|
+
{
|
|
915
|
+
"description": "Hand-off id",
|
|
916
|
+
"in": "path",
|
|
917
|
+
"name": "handoff_id",
|
|
918
|
+
"required": true,
|
|
919
|
+
"schema": {
|
|
920
|
+
"format": "uuid",
|
|
921
|
+
"type": "string"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
"responses": {
|
|
926
|
+
"200": {
|
|
927
|
+
"content": {
|
|
928
|
+
"application/json": {
|
|
929
|
+
"schema": {
|
|
930
|
+
"$ref": "#/components/schemas/ExternalHandoffDetail"
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"description": ""
|
|
935
|
+
},
|
|
936
|
+
"403": {
|
|
937
|
+
"description": "Not an application key or a staff session of the organization"
|
|
938
|
+
},
|
|
939
|
+
"404": {
|
|
940
|
+
"description": "No such external hand-off in this organization and environment"
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
"security": [
|
|
944
|
+
{
|
|
945
|
+
"session_cookie": []
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"bearer_token": []
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
"summary": "One hand-off with its events and the decisions that opened or joined it.\nThe inbound text is on this staff-and-application surface only.",
|
|
952
|
+
"tags": [
|
|
953
|
+
"Govern"
|
|
954
|
+
]
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
"/api/v1/govern/handoffs/{handoff_id}/claim": {
|
|
958
|
+
"post": {
|
|
959
|
+
"operationId": "claim_handoff",
|
|
960
|
+
"parameters": [
|
|
961
|
+
{
|
|
962
|
+
"description": "Hand-off id",
|
|
963
|
+
"in": "path",
|
|
964
|
+
"name": "handoff_id",
|
|
965
|
+
"required": true,
|
|
966
|
+
"schema": {
|
|
967
|
+
"format": "uuid",
|
|
968
|
+
"type": "string"
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
],
|
|
972
|
+
"requestBody": {
|
|
973
|
+
"content": {
|
|
974
|
+
"application/json": {
|
|
975
|
+
"schema": {
|
|
976
|
+
"$ref": "#/components/schemas/VersionRequest"
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
"required": true
|
|
981
|
+
},
|
|
982
|
+
"responses": {
|
|
983
|
+
"200": {
|
|
984
|
+
"content": {
|
|
985
|
+
"application/json": {
|
|
986
|
+
"schema": {
|
|
987
|
+
"$ref": "#/components/schemas/CareHandoff"
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
"description": ""
|
|
992
|
+
},
|
|
993
|
+
"403": {
|
|
994
|
+
"description": "Staff only, and only staff the routing names"
|
|
995
|
+
},
|
|
996
|
+
"404": {
|
|
997
|
+
"description": ""
|
|
998
|
+
},
|
|
999
|
+
"409": {
|
|
1000
|
+
"description": "The hand-off changed; refresh before acting"
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
"security": [
|
|
1004
|
+
{
|
|
1005
|
+
"session_cookie": []
|
|
1006
|
+
}
|
|
1007
|
+
],
|
|
1008
|
+
"summary": "Claim the hand-off. `expected_version` must be the current version.",
|
|
1009
|
+
"tags": [
|
|
1010
|
+
"Govern"
|
|
1011
|
+
]
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
"/api/v1/govern/handoffs/{handoff_id}/contact-attempt": {
|
|
1015
|
+
"post": {
|
|
1016
|
+
"operationId": "contact_handoff",
|
|
1017
|
+
"parameters": [
|
|
1018
|
+
{
|
|
1019
|
+
"description": "Hand-off id",
|
|
1020
|
+
"in": "path",
|
|
1021
|
+
"name": "handoff_id",
|
|
1022
|
+
"required": true,
|
|
1023
|
+
"schema": {
|
|
1024
|
+
"format": "uuid",
|
|
1025
|
+
"type": "string"
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
"requestBody": {
|
|
1030
|
+
"content": {
|
|
1031
|
+
"application/json": {
|
|
1032
|
+
"schema": {
|
|
1033
|
+
"$ref": "#/components/schemas/ContactRequest"
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
"required": true
|
|
1038
|
+
},
|
|
1039
|
+
"responses": {
|
|
1040
|
+
"200": {
|
|
1041
|
+
"content": {
|
|
1042
|
+
"application/json": {
|
|
1043
|
+
"schema": {
|
|
1044
|
+
"$ref": "#/components/schemas/CareHandoff"
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
"description": ""
|
|
1049
|
+
},
|
|
1050
|
+
"400": {
|
|
1051
|
+
"description": "Missing outcome, note, or next due time"
|
|
1052
|
+
},
|
|
1053
|
+
"403": {
|
|
1054
|
+
"description": ""
|
|
1055
|
+
},
|
|
1056
|
+
"404": {
|
|
1057
|
+
"description": ""
|
|
1058
|
+
},
|
|
1059
|
+
"409": {
|
|
1060
|
+
"description": ""
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"security": [
|
|
1064
|
+
{
|
|
1065
|
+
"session_cookie": []
|
|
1066
|
+
}
|
|
1067
|
+
],
|
|
1068
|
+
"summary": "Record a contact attempt on a claimed hand-off.",
|
|
1069
|
+
"tags": [
|
|
1070
|
+
"Govern"
|
|
1071
|
+
]
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
"/api/v1/govern/handoffs/{handoff_id}/resolve": {
|
|
1075
|
+
"post": {
|
|
1076
|
+
"operationId": "resolve_handoff",
|
|
1077
|
+
"parameters": [
|
|
1078
|
+
{
|
|
1079
|
+
"description": "Hand-off id",
|
|
1080
|
+
"in": "path",
|
|
1081
|
+
"name": "handoff_id",
|
|
1082
|
+
"required": true,
|
|
1083
|
+
"schema": {
|
|
1084
|
+
"format": "uuid",
|
|
1085
|
+
"type": "string"
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
],
|
|
1089
|
+
"requestBody": {
|
|
1090
|
+
"content": {
|
|
1091
|
+
"application/json": {
|
|
1092
|
+
"schema": {
|
|
1093
|
+
"$ref": "#/components/schemas/ResolveRequest"
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
"required": true
|
|
1098
|
+
},
|
|
1099
|
+
"responses": {
|
|
1100
|
+
"200": {
|
|
1101
|
+
"content": {
|
|
1102
|
+
"application/json": {
|
|
1103
|
+
"schema": {
|
|
1104
|
+
"$ref": "#/components/schemas/CareHandoff"
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"description": ""
|
|
1109
|
+
},
|
|
1110
|
+
"400": {
|
|
1111
|
+
"description": ""
|
|
1112
|
+
},
|
|
1113
|
+
"403": {
|
|
1114
|
+
"description": ""
|
|
1115
|
+
},
|
|
1116
|
+
"404": {
|
|
1117
|
+
"description": ""
|
|
1118
|
+
},
|
|
1119
|
+
"409": {
|
|
1120
|
+
"description": ""
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"security": [
|
|
1124
|
+
{
|
|
1125
|
+
"session_cookie": []
|
|
1126
|
+
}
|
|
1127
|
+
],
|
|
1128
|
+
"summary": "Resolve a claimed hand-off.",
|
|
1129
|
+
"tags": [
|
|
1130
|
+
"Govern"
|
|
1131
|
+
]
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
"/api/v1/govern/handoffs/{handoff_id}/resume": {
|
|
1135
|
+
"post": {
|
|
1136
|
+
"operationId": "resume_handoff",
|
|
1137
|
+
"parameters": [
|
|
1138
|
+
{
|
|
1139
|
+
"description": "Hand-off id",
|
|
1140
|
+
"in": "path",
|
|
1141
|
+
"name": "handoff_id",
|
|
1142
|
+
"required": true,
|
|
1143
|
+
"schema": {
|
|
1144
|
+
"format": "uuid",
|
|
1145
|
+
"type": "string"
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
"requestBody": {
|
|
1150
|
+
"content": {
|
|
1151
|
+
"application/json": {
|
|
1152
|
+
"schema": {
|
|
1153
|
+
"$ref": "#/components/schemas/ResumeRequest"
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
"required": true
|
|
1158
|
+
},
|
|
1159
|
+
"responses": {
|
|
1160
|
+
"200": {
|
|
1161
|
+
"content": {
|
|
1162
|
+
"application/json": {
|
|
1163
|
+
"schema": {
|
|
1164
|
+
"$ref": "#/components/schemas/CareHandoff"
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
"description": ""
|
|
1169
|
+
},
|
|
1170
|
+
"400": {
|
|
1171
|
+
"description": ""
|
|
1172
|
+
},
|
|
1173
|
+
"403": {
|
|
1174
|
+
"description": ""
|
|
1175
|
+
},
|
|
1176
|
+
"404": {
|
|
1177
|
+
"description": ""
|
|
1178
|
+
},
|
|
1179
|
+
"409": {
|
|
1180
|
+
"description": ""
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
"security": [
|
|
1184
|
+
{
|
|
1185
|
+
"session_cookie": []
|
|
1186
|
+
}
|
|
1187
|
+
],
|
|
1188
|
+
"summary": "Release the hold on a resolved hand-off.",
|
|
1189
|
+
"tags": [
|
|
1190
|
+
"Govern"
|
|
1191
|
+
]
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
"/api/v1/govern/patients/consent": {
|
|
1195
|
+
"post": {
|
|
1196
|
+
"operationId": "record_patient_consent",
|
|
1197
|
+
"requestBody": {
|
|
1198
|
+
"content": {
|
|
1199
|
+
"application/json": {
|
|
1200
|
+
"schema": {
|
|
1201
|
+
"$ref": "#/components/schemas/ConsentRequest"
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
"required": true
|
|
1206
|
+
},
|
|
1207
|
+
"responses": {
|
|
1208
|
+
"200": {
|
|
1209
|
+
"content": {
|
|
1210
|
+
"application/json": {
|
|
1211
|
+
"schema": {
|
|
1212
|
+
"$ref": "#/components/schemas/PatientStateView"
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
"description": "The patient's current state"
|
|
1217
|
+
},
|
|
1218
|
+
"400": {
|
|
1219
|
+
"description": "Invalid patient reference"
|
|
1220
|
+
},
|
|
1221
|
+
"403": {
|
|
1222
|
+
"description": "Not an application key"
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
"security": [
|
|
1226
|
+
{
|
|
1227
|
+
"bearer_token": []
|
|
1228
|
+
}
|
|
1229
|
+
],
|
|
1230
|
+
"summary": "Record consent granted or revoked for a patient of the key's application.",
|
|
1231
|
+
"tags": [
|
|
1232
|
+
"Govern"
|
|
1233
|
+
]
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
"/api/v1/govern/patients/opt-out": {
|
|
1237
|
+
"post": {
|
|
1238
|
+
"operationId": "record_patient_opt_out",
|
|
1239
|
+
"requestBody": {
|
|
1240
|
+
"content": {
|
|
1241
|
+
"application/json": {
|
|
1242
|
+
"schema": {
|
|
1243
|
+
"$ref": "#/components/schemas/OptOutRequest"
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
"required": true
|
|
1248
|
+
},
|
|
1249
|
+
"responses": {
|
|
1250
|
+
"200": {
|
|
1251
|
+
"content": {
|
|
1252
|
+
"application/json": {
|
|
1253
|
+
"schema": {
|
|
1254
|
+
"$ref": "#/components/schemas/PatientStateView"
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
"description": "The patient's current state"
|
|
1259
|
+
},
|
|
1260
|
+
"400": {
|
|
1261
|
+
"description": "Invalid patient reference"
|
|
1262
|
+
},
|
|
1263
|
+
"403": {
|
|
1264
|
+
"description": "Not an application key"
|
|
1265
|
+
},
|
|
1266
|
+
"409": {
|
|
1267
|
+
"description": "The patient opted out in their own words; only a START from the patient opts them back in"
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
"security": [
|
|
1271
|
+
{
|
|
1272
|
+
"bearer_token": []
|
|
1273
|
+
}
|
|
1274
|
+
],
|
|
1275
|
+
"summary": "Record a patient opting out, or back in. An opt-out the patient typed\n(STOP in their inbound message) cannot be undone here.",
|
|
1276
|
+
"tags": [
|
|
1277
|
+
"Govern"
|
|
1278
|
+
]
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
"/api/v1/govern/patients/state": {
|
|
1282
|
+
"post": {
|
|
1283
|
+
"operationId": "read_patient_state",
|
|
1284
|
+
"requestBody": {
|
|
1285
|
+
"content": {
|
|
1286
|
+
"application/json": {
|
|
1287
|
+
"schema": {
|
|
1288
|
+
"$ref": "#/components/schemas/PatientStateRequest"
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
"required": true
|
|
1293
|
+
},
|
|
1294
|
+
"responses": {
|
|
1295
|
+
"200": {
|
|
1296
|
+
"content": {
|
|
1297
|
+
"application/json": {
|
|
1298
|
+
"schema": {
|
|
1299
|
+
"$ref": "#/components/schemas/PatientStateView"
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
},
|
|
1303
|
+
"description": ""
|
|
1304
|
+
},
|
|
1305
|
+
"400": {
|
|
1306
|
+
"description": "Invalid patient reference"
|
|
1307
|
+
},
|
|
1308
|
+
"403": {
|
|
1309
|
+
"description": "Not an application key"
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
"security": [
|
|
1313
|
+
{
|
|
1314
|
+
"bearer_token": []
|
|
1315
|
+
}
|
|
1316
|
+
],
|
|
1317
|
+
"summary": "The patient's state. A POST so the reference travels in the body, never\nin a path that a request log keeps.",
|
|
1318
|
+
"tags": [
|
|
1319
|
+
"Govern"
|
|
1320
|
+
]
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
"/api/v1/govern/transcripts": {
|
|
1324
|
+
"post": {
|
|
1325
|
+
"operationId": "submit_transcripts",
|
|
1326
|
+
"requestBody": {
|
|
1327
|
+
"content": {
|
|
1328
|
+
"application/json": {
|
|
1329
|
+
"schema": {
|
|
1330
|
+
"$ref": "#/components/schemas/TranscriptBatch"
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1334
|
+
"required": true
|
|
1335
|
+
},
|
|
1336
|
+
"responses": {
|
|
1337
|
+
"200": {
|
|
1338
|
+
"content": {
|
|
1339
|
+
"application/json": {
|
|
1340
|
+
"schema": {
|
|
1341
|
+
"$ref": "#/components/schemas/TranscriptJobView"
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
},
|
|
1345
|
+
"description": "Replayed: a job with this Idempotency-Key already exists"
|
|
1346
|
+
},
|
|
1347
|
+
"202": {
|
|
1348
|
+
"content": {
|
|
1349
|
+
"application/json": {
|
|
1350
|
+
"schema": {
|
|
1351
|
+
"$ref": "#/components/schemas/TranscriptJobView"
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
"description": "Accepted; the job is being processed"
|
|
1356
|
+
},
|
|
1357
|
+
"400": {
|
|
1358
|
+
"description": "An empty or oversized batch, a repeated turn_id, an invalid turn, or a sent_at in the future"
|
|
1359
|
+
},
|
|
1360
|
+
"403": {
|
|
1361
|
+
"description": "Not an application key, or a key not bound to the named application"
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
"security": [
|
|
1365
|
+
{
|
|
1366
|
+
"bearer_token": []
|
|
1367
|
+
}
|
|
1368
|
+
],
|
|
1369
|
+
"summary": "Post a batch of past turns for observe-only evaluation. The batch is\nvalidated whole (nothing is stored if any turn is refused), held as a job,\nand processed off the request path; poll the job id. `Idempotency-Key`,\nwhen sent, replays the job it opened.",
|
|
1370
|
+
"tags": [
|
|
1371
|
+
"Govern"
|
|
1372
|
+
]
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
"/api/v1/govern/transcripts/{job_id}": {
|
|
1376
|
+
"get": {
|
|
1377
|
+
"operationId": "transcript_job",
|
|
1378
|
+
"parameters": [
|
|
1379
|
+
{
|
|
1380
|
+
"description": "Transcript job id",
|
|
1381
|
+
"in": "path",
|
|
1382
|
+
"name": "job_id",
|
|
1383
|
+
"required": true,
|
|
1384
|
+
"schema": {
|
|
1385
|
+
"format": "uuid",
|
|
1386
|
+
"type": "string"
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
"responses": {
|
|
1391
|
+
"200": {
|
|
1392
|
+
"content": {
|
|
1393
|
+
"application/json": {
|
|
1394
|
+
"schema": {
|
|
1395
|
+
"$ref": "#/components/schemas/TranscriptJobView"
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"description": ""
|
|
1400
|
+
},
|
|
1401
|
+
"403": {
|
|
1402
|
+
"description": "Not an application key"
|
|
1403
|
+
},
|
|
1404
|
+
"404": {
|
|
1405
|
+
"description": "No such job for this application"
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
"security": [
|
|
1409
|
+
{
|
|
1410
|
+
"bearer_token": []
|
|
1411
|
+
}
|
|
1412
|
+
],
|
|
1413
|
+
"summary": "A transcript job's status and counts.",
|
|
1414
|
+
"tags": [
|
|
1415
|
+
"Govern"
|
|
1416
|
+
]
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
"/api/v1/govern/transcripts/{job_id}/turns": {
|
|
1420
|
+
"get": {
|
|
1421
|
+
"operationId": "transcript_job_turns",
|
|
1422
|
+
"parameters": [
|
|
1423
|
+
{
|
|
1424
|
+
"description": "Transcript job id",
|
|
1425
|
+
"in": "path",
|
|
1426
|
+
"name": "job_id",
|
|
1427
|
+
"required": true,
|
|
1428
|
+
"schema": {
|
|
1429
|
+
"format": "uuid",
|
|
1430
|
+
"type": "string"
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
],
|
|
1434
|
+
"responses": {
|
|
1435
|
+
"200": {
|
|
1436
|
+
"content": {
|
|
1437
|
+
"application/json": {
|
|
1438
|
+
"schema": {
|
|
1439
|
+
"items": {
|
|
1440
|
+
"$ref": "#/components/schemas/TranscriptTurnView"
|
|
1441
|
+
},
|
|
1442
|
+
"type": "array"
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
"description": ""
|
|
1447
|
+
},
|
|
1448
|
+
"403": {
|
|
1449
|
+
"description": "Not an application key"
|
|
1450
|
+
},
|
|
1451
|
+
"404": {
|
|
1452
|
+
"description": "No such job for this application"
|
|
1453
|
+
}
|
|
1454
|
+
},
|
|
1455
|
+
"security": [
|
|
1456
|
+
{
|
|
1457
|
+
"bearer_token": []
|
|
1458
|
+
}
|
|
1459
|
+
],
|
|
1460
|
+
"summary": "The turns of a transcript job in batch order, each with the decision it\nproduced or matched. Never the text.",
|
|
1461
|
+
"tags": [
|
|
1462
|
+
"Govern"
|
|
1463
|
+
]
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
"/api/v1/govern/webhook-deliveries": {
|
|
1467
|
+
"get": {
|
|
1468
|
+
"operationId": "list_webhook_deliveries",
|
|
1469
|
+
"parameters": [
|
|
1470
|
+
{
|
|
1471
|
+
"description": "Only deliveries about this decision",
|
|
1472
|
+
"in": "query",
|
|
1473
|
+
"name": "decision_id",
|
|
1474
|
+
"required": false,
|
|
1475
|
+
"schema": {
|
|
1476
|
+
"format": "uuid",
|
|
1477
|
+
"type": "string"
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
"description": "Only deliveries about this hand-off",
|
|
1482
|
+
"in": "query",
|
|
1483
|
+
"name": "handoff_id",
|
|
1484
|
+
"required": false,
|
|
1485
|
+
"schema": {
|
|
1486
|
+
"format": "uuid",
|
|
1487
|
+
"type": "string"
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
"description": "pending | delivered | exhausted | skipped",
|
|
1492
|
+
"in": "query",
|
|
1493
|
+
"name": "status",
|
|
1494
|
+
"required": false,
|
|
1495
|
+
"schema": {
|
|
1496
|
+
"type": "string"
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
],
|
|
1500
|
+
"responses": {
|
|
1501
|
+
"200": {
|
|
1502
|
+
"content": {
|
|
1503
|
+
"application/json": {
|
|
1504
|
+
"schema": {
|
|
1505
|
+
"items": {
|
|
1506
|
+
"$ref": "#/components/schemas/WebhookDeliveryView"
|
|
1507
|
+
},
|
|
1508
|
+
"type": "array"
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
"description": ""
|
|
1513
|
+
},
|
|
1514
|
+
"403": {
|
|
1515
|
+
"description": "Not an application key"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
"security": [
|
|
1519
|
+
{
|
|
1520
|
+
"bearer_token": []
|
|
1521
|
+
}
|
|
1522
|
+
],
|
|
1523
|
+
"summary": "The webhook delivery log for the key's application: newest first, at most\ntwo hundred. Filter by `decision_id`, `handoff_id`, `status`.",
|
|
1524
|
+
"tags": [
|
|
1525
|
+
"Govern"
|
|
1526
|
+
]
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
"components": {
|
|
1531
|
+
"schemas": {
|
|
1532
|
+
"ApplicationDto": {
|
|
1533
|
+
"properties": {
|
|
1534
|
+
"channel_policies": {
|
|
1535
|
+
"additionalProperties": {
|
|
1536
|
+
"$ref": "#/components/schemas/ChannelPolicy"
|
|
1537
|
+
},
|
|
1538
|
+
"description": "Per-channel overrides, keyed by `sms` | `app_message` | `web_chat` |\n`voice` | `email`.",
|
|
1539
|
+
"propertyNames": {
|
|
1540
|
+
"type": "string"
|
|
1541
|
+
},
|
|
1542
|
+
"type": "object"
|
|
1543
|
+
},
|
|
1544
|
+
"consent_required_channels": {
|
|
1545
|
+
"description": "Which channels require a `granted` consent on record, resolved: the per-channel default with this application's overrides applied. Derived and read-only: `channel_policies` names only the deviations, so this answers \"which channels require it\" without the caller knowing the defaults.",
|
|
1546
|
+
"items": {
|
|
1547
|
+
"type": "string"
|
|
1548
|
+
},
|
|
1549
|
+
"type": "array"
|
|
1550
|
+
},
|
|
1551
|
+
"created_at": {
|
|
1552
|
+
"format": "date-time",
|
|
1553
|
+
"type": "string"
|
|
1554
|
+
},
|
|
1555
|
+
"default_mode": {
|
|
1556
|
+
"$ref": "#/components/schemas/GovernMode"
|
|
1557
|
+
},
|
|
1558
|
+
"environment_id": {
|
|
1559
|
+
"format": "uuid",
|
|
1560
|
+
"type": "string"
|
|
1561
|
+
},
|
|
1562
|
+
"frequency_cap": {
|
|
1563
|
+
"oneOf": [
|
|
1564
|
+
{
|
|
1565
|
+
"type": "null"
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
"$ref": "#/components/schemas/FrequencyCap",
|
|
1569
|
+
"description": "The per-patient message cap per fixed window, if any."
|
|
1570
|
+
}
|
|
1571
|
+
]
|
|
1572
|
+
},
|
|
1573
|
+
"frequency_cap_unreadable": {
|
|
1574
|
+
"description": "True when the stored cap cannot be read. The cap then holds every turn\n(fail-closed), so `frequency_cap: null` alone would read as \"no cap\"\nwhile the gate is holding everything.",
|
|
1575
|
+
"type": "boolean"
|
|
1576
|
+
},
|
|
1577
|
+
"handoff_routing": {
|
|
1578
|
+
"oneOf": [
|
|
1579
|
+
{
|
|
1580
|
+
"type": "null"
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
"$ref": "#/components/schemas/RoutingPolicy",
|
|
1584
|
+
"description": "The routing hand-offs opened for this application's patients are given; `null` opens them on the organization's default queue."
|
|
1585
|
+
}
|
|
1586
|
+
]
|
|
1587
|
+
},
|
|
1588
|
+
"id": {
|
|
1589
|
+
"format": "uuid",
|
|
1590
|
+
"type": "string"
|
|
1591
|
+
},
|
|
1592
|
+
"name": {
|
|
1593
|
+
"type": "string"
|
|
1594
|
+
},
|
|
1595
|
+
"organization_id": {
|
|
1596
|
+
"format": "int32",
|
|
1597
|
+
"type": "integer"
|
|
1598
|
+
},
|
|
1599
|
+
"project_id": {
|
|
1600
|
+
"description": "Policy scope; `null` is the organization-level active policy.",
|
|
1601
|
+
"format": "int32",
|
|
1602
|
+
"type": [
|
|
1603
|
+
"integer",
|
|
1604
|
+
"null"
|
|
1605
|
+
]
|
|
1606
|
+
},
|
|
1607
|
+
"red_flag_categories": {
|
|
1608
|
+
"description": "The red-flag categories the inbound screen runs with.",
|
|
1609
|
+
"items": {
|
|
1610
|
+
"type": "string"
|
|
1611
|
+
},
|
|
1612
|
+
"type": "array"
|
|
1613
|
+
},
|
|
1614
|
+
"updated_at": {
|
|
1615
|
+
"format": "date-time",
|
|
1616
|
+
"type": "string"
|
|
1617
|
+
},
|
|
1618
|
+
"webhook_secret_hint": {
|
|
1619
|
+
"description": "The last four characters of the webhook signing secret.",
|
|
1620
|
+
"type": [
|
|
1621
|
+
"string",
|
|
1622
|
+
"null"
|
|
1623
|
+
]
|
|
1624
|
+
},
|
|
1625
|
+
"webhook_secret_rotated_at": {
|
|
1626
|
+
"format": "date-time",
|
|
1627
|
+
"type": [
|
|
1628
|
+
"string",
|
|
1629
|
+
"null"
|
|
1630
|
+
]
|
|
1631
|
+
},
|
|
1632
|
+
"webhook_url": {
|
|
1633
|
+
"type": [
|
|
1634
|
+
"string",
|
|
1635
|
+
"null"
|
|
1636
|
+
]
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
"required": [
|
|
1640
|
+
"id",
|
|
1641
|
+
"organization_id",
|
|
1642
|
+
"environment_id",
|
|
1643
|
+
"name",
|
|
1644
|
+
"default_mode",
|
|
1645
|
+
"channel_policies",
|
|
1646
|
+
"red_flag_categories",
|
|
1647
|
+
"frequency_cap_unreadable",
|
|
1648
|
+
"consent_required_channels",
|
|
1649
|
+
"created_at",
|
|
1650
|
+
"updated_at"
|
|
1651
|
+
],
|
|
1652
|
+
"type": "object"
|
|
1653
|
+
},
|
|
1654
|
+
"ApplicationKeyDto": {
|
|
1655
|
+
"description": "Key metadata. Never the hash, never the secret.",
|
|
1656
|
+
"properties": {
|
|
1657
|
+
"application_id": {
|
|
1658
|
+
"format": "uuid",
|
|
1659
|
+
"type": "string"
|
|
1660
|
+
},
|
|
1661
|
+
"created_at": {
|
|
1662
|
+
"format": "date-time",
|
|
1663
|
+
"type": "string"
|
|
1664
|
+
},
|
|
1665
|
+
"expires_at": {
|
|
1666
|
+
"description": "Set by rotation: when this key stops authenticating.",
|
|
1667
|
+
"format": "date-time",
|
|
1668
|
+
"type": [
|
|
1669
|
+
"string",
|
|
1670
|
+
"null"
|
|
1671
|
+
]
|
|
1672
|
+
},
|
|
1673
|
+
"id": {
|
|
1674
|
+
"format": "uuid",
|
|
1675
|
+
"type": "string"
|
|
1676
|
+
},
|
|
1677
|
+
"key_hint": {
|
|
1678
|
+
"description": "The last four characters of the secret, for telling keys apart.",
|
|
1679
|
+
"type": "string"
|
|
1680
|
+
},
|
|
1681
|
+
"last_used_at": {
|
|
1682
|
+
"format": "date-time",
|
|
1683
|
+
"type": [
|
|
1684
|
+
"string",
|
|
1685
|
+
"null"
|
|
1686
|
+
]
|
|
1687
|
+
},
|
|
1688
|
+
"revoked_at": {
|
|
1689
|
+
"format": "date-time",
|
|
1690
|
+
"type": [
|
|
1691
|
+
"string",
|
|
1692
|
+
"null"
|
|
1693
|
+
]
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
"required": [
|
|
1697
|
+
"id",
|
|
1698
|
+
"application_id",
|
|
1699
|
+
"key_hint",
|
|
1700
|
+
"created_at"
|
|
1701
|
+
],
|
|
1702
|
+
"type": "object"
|
|
1703
|
+
},
|
|
1704
|
+
"CareHandoff": {
|
|
1705
|
+
"properties": {
|
|
1706
|
+
"application_id": {
|
|
1707
|
+
"description": "The Govern application whose patient this hand-off is about.",
|
|
1708
|
+
"format": "uuid",
|
|
1709
|
+
"type": [
|
|
1710
|
+
"string",
|
|
1711
|
+
"null"
|
|
1712
|
+
]
|
|
1713
|
+
},
|
|
1714
|
+
"assigned_to": {
|
|
1715
|
+
"format": "uuid",
|
|
1716
|
+
"type": [
|
|
1717
|
+
"string",
|
|
1718
|
+
"null"
|
|
1719
|
+
]
|
|
1720
|
+
},
|
|
1721
|
+
"automation_resumed_at": {
|
|
1722
|
+
"description": "The hold survives resolution until a person explicitly releases it.",
|
|
1723
|
+
"format": "date-time",
|
|
1724
|
+
"type": [
|
|
1725
|
+
"string",
|
|
1726
|
+
"null"
|
|
1727
|
+
]
|
|
1728
|
+
},
|
|
1729
|
+
"claimed_at": {
|
|
1730
|
+
"format": "date-time",
|
|
1731
|
+
"type": [
|
|
1732
|
+
"string",
|
|
1733
|
+
"null"
|
|
1734
|
+
]
|
|
1735
|
+
},
|
|
1736
|
+
"created_at": {
|
|
1737
|
+
"format": "date-time",
|
|
1738
|
+
"type": "string"
|
|
1739
|
+
},
|
|
1740
|
+
"disposition": {
|
|
1741
|
+
"type": [
|
|
1742
|
+
"string",
|
|
1743
|
+
"null"
|
|
1744
|
+
]
|
|
1745
|
+
},
|
|
1746
|
+
"due_at": {
|
|
1747
|
+
"format": "date-time",
|
|
1748
|
+
"type": [
|
|
1749
|
+
"string",
|
|
1750
|
+
"null"
|
|
1751
|
+
]
|
|
1752
|
+
},
|
|
1753
|
+
"environment_id": {
|
|
1754
|
+
"format": "uuid",
|
|
1755
|
+
"type": "string"
|
|
1756
|
+
},
|
|
1757
|
+
"episode_id": {
|
|
1758
|
+
"description": "Not used by Govern; null.",
|
|
1759
|
+
"format": "uuid",
|
|
1760
|
+
"type": [
|
|
1761
|
+
"string",
|
|
1762
|
+
"null"
|
|
1763
|
+
]
|
|
1764
|
+
},
|
|
1765
|
+
"escalated_at": {
|
|
1766
|
+
"format": "date-time",
|
|
1767
|
+
"type": [
|
|
1768
|
+
"string",
|
|
1769
|
+
"null"
|
|
1770
|
+
]
|
|
1771
|
+
},
|
|
1772
|
+
"escalation_due_at": {
|
|
1773
|
+
"format": "date-time",
|
|
1774
|
+
"type": [
|
|
1775
|
+
"string",
|
|
1776
|
+
"null"
|
|
1777
|
+
]
|
|
1778
|
+
},
|
|
1779
|
+
"id": {
|
|
1780
|
+
"format": "uuid",
|
|
1781
|
+
"type": "string"
|
|
1782
|
+
},
|
|
1783
|
+
"organization_id": {
|
|
1784
|
+
"format": "int32",
|
|
1785
|
+
"type": "integer"
|
|
1786
|
+
},
|
|
1787
|
+
"patient_ref_hash": {
|
|
1788
|
+
"description": "SHA-256 of the customer's opaque patient reference; never the reference.",
|
|
1789
|
+
"type": [
|
|
1790
|
+
"string",
|
|
1791
|
+
"null"
|
|
1792
|
+
]
|
|
1793
|
+
},
|
|
1794
|
+
"pauses_automation": {
|
|
1795
|
+
"description": "Whether this item also pauses automated messaging to its subject. `automation_resumed_at == null` alone says only that a person owns the item (one per patient, whichever kind it is). Automation is paused while `automation_resumed_at == null && pauses_automation`. A red flag, an exhausted budget, a missing policy, an unknown wire outcome and the Govern route-to-human path all pause; an item that only owes a patient a reply does not.",
|
|
1796
|
+
"type": "boolean"
|
|
1797
|
+
},
|
|
1798
|
+
"queue_label": {
|
|
1799
|
+
"type": "string"
|
|
1800
|
+
},
|
|
1801
|
+
"reason": {
|
|
1802
|
+
"type": "string"
|
|
1803
|
+
},
|
|
1804
|
+
"resolution_note": {
|
|
1805
|
+
"type": [
|
|
1806
|
+
"string",
|
|
1807
|
+
"null"
|
|
1808
|
+
]
|
|
1809
|
+
},
|
|
1810
|
+
"resolved_at": {
|
|
1811
|
+
"format": "date-time",
|
|
1812
|
+
"type": [
|
|
1813
|
+
"string",
|
|
1814
|
+
"null"
|
|
1815
|
+
]
|
|
1816
|
+
},
|
|
1817
|
+
"resolved_by": {
|
|
1818
|
+
"format": "uuid",
|
|
1819
|
+
"type": [
|
|
1820
|
+
"string",
|
|
1821
|
+
"null"
|
|
1822
|
+
]
|
|
1823
|
+
},
|
|
1824
|
+
"routing_snapshot": {
|
|
1825
|
+
"oneOf": [
|
|
1826
|
+
{
|
|
1827
|
+
"type": "null"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"$ref": "#/components/schemas/Value"
|
|
1831
|
+
}
|
|
1832
|
+
]
|
|
1833
|
+
},
|
|
1834
|
+
"state": {
|
|
1835
|
+
"type": "string"
|
|
1836
|
+
},
|
|
1837
|
+
"updated_at": {
|
|
1838
|
+
"format": "date-time",
|
|
1839
|
+
"type": "string"
|
|
1840
|
+
},
|
|
1841
|
+
"version": {
|
|
1842
|
+
"format": "int32",
|
|
1843
|
+
"type": "integer"
|
|
1844
|
+
},
|
|
1845
|
+
"xuser_id": {
|
|
1846
|
+
"description": "Null for Govern hand-offs; `application_id` and `patient_ref_hash` name the subject.",
|
|
1847
|
+
"format": "uuid",
|
|
1848
|
+
"type": [
|
|
1849
|
+
"string",
|
|
1850
|
+
"null"
|
|
1851
|
+
]
|
|
1852
|
+
}
|
|
1853
|
+
},
|
|
1854
|
+
"required": [
|
|
1855
|
+
"id",
|
|
1856
|
+
"organization_id",
|
|
1857
|
+
"environment_id",
|
|
1858
|
+
"reason",
|
|
1859
|
+
"state",
|
|
1860
|
+
"queue_label",
|
|
1861
|
+
"pauses_automation",
|
|
1862
|
+
"version",
|
|
1863
|
+
"created_at",
|
|
1864
|
+
"updated_at"
|
|
1865
|
+
],
|
|
1866
|
+
"type": "object"
|
|
1867
|
+
},
|
|
1868
|
+
"CareHandoffEvent": {
|
|
1869
|
+
"properties": {
|
|
1870
|
+
"actor_user_id": {
|
|
1871
|
+
"format": "uuid",
|
|
1872
|
+
"type": [
|
|
1873
|
+
"string",
|
|
1874
|
+
"null"
|
|
1875
|
+
]
|
|
1876
|
+
},
|
|
1877
|
+
"created_at": {
|
|
1878
|
+
"format": "date-time",
|
|
1879
|
+
"type": "string"
|
|
1880
|
+
},
|
|
1881
|
+
"environment_id": {
|
|
1882
|
+
"format": "uuid",
|
|
1883
|
+
"type": "string"
|
|
1884
|
+
},
|
|
1885
|
+
"event_type": {
|
|
1886
|
+
"type": "string"
|
|
1887
|
+
},
|
|
1888
|
+
"evidence": {
|
|
1889
|
+
"$ref": "#/components/schemas/Value"
|
|
1890
|
+
},
|
|
1891
|
+
"handoff_id": {
|
|
1892
|
+
"format": "uuid",
|
|
1893
|
+
"type": "string"
|
|
1894
|
+
},
|
|
1895
|
+
"id": {
|
|
1896
|
+
"format": "uuid",
|
|
1897
|
+
"type": "string"
|
|
1898
|
+
},
|
|
1899
|
+
"note": {
|
|
1900
|
+
"type": [
|
|
1901
|
+
"string",
|
|
1902
|
+
"null"
|
|
1903
|
+
]
|
|
1904
|
+
},
|
|
1905
|
+
"organization_id": {
|
|
1906
|
+
"format": "int32",
|
|
1907
|
+
"type": "integer"
|
|
1908
|
+
},
|
|
1909
|
+
"source_key": {
|
|
1910
|
+
"type": "string"
|
|
1911
|
+
}
|
|
1912
|
+
},
|
|
1913
|
+
"required": [
|
|
1914
|
+
"id",
|
|
1915
|
+
"handoff_id",
|
|
1916
|
+
"organization_id",
|
|
1917
|
+
"environment_id",
|
|
1918
|
+
"event_type",
|
|
1919
|
+
"source_key",
|
|
1920
|
+
"evidence",
|
|
1921
|
+
"created_at"
|
|
1922
|
+
],
|
|
1923
|
+
"type": "object"
|
|
1924
|
+
},
|
|
1925
|
+
"ChannelBreakdown": {
|
|
1926
|
+
"allOf": [
|
|
1927
|
+
{
|
|
1928
|
+
"$ref": "#/components/schemas/Counts"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
"properties": {
|
|
1932
|
+
"channel": {
|
|
1933
|
+
"type": "string"
|
|
1934
|
+
}
|
|
1935
|
+
},
|
|
1936
|
+
"required": [
|
|
1937
|
+
"channel"
|
|
1938
|
+
],
|
|
1939
|
+
"type": "object"
|
|
1940
|
+
}
|
|
1941
|
+
]
|
|
1942
|
+
},
|
|
1943
|
+
"ChannelPolicy": {
|
|
1944
|
+
"description": "A per-channel binding: the policy scope, the mode, and the consent requirement for one channel. An absent field means the channel's default.",
|
|
1945
|
+
"properties": {
|
|
1946
|
+
"mode": {
|
|
1947
|
+
"oneOf": [
|
|
1948
|
+
{
|
|
1949
|
+
"type": "null"
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"$ref": "#/components/schemas/GovernMode"
|
|
1953
|
+
}
|
|
1954
|
+
]
|
|
1955
|
+
},
|
|
1956
|
+
"project_id": {
|
|
1957
|
+
"description": "The project whose active policy decides this channel; `null` means the\napplication's `project_id`.",
|
|
1958
|
+
"format": "int32",
|
|
1959
|
+
"type": [
|
|
1960
|
+
"integer",
|
|
1961
|
+
"null"
|
|
1962
|
+
]
|
|
1963
|
+
},
|
|
1964
|
+
"requires_consent": {
|
|
1965
|
+
"description": "Whether an outbound turn on this channel requires a `granted` consent on record; absent means the channel's default (`sms`, `voice` and `email` require it).",
|
|
1966
|
+
"type": [
|
|
1967
|
+
"boolean",
|
|
1968
|
+
"null"
|
|
1969
|
+
]
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
"type": "object"
|
|
1973
|
+
},
|
|
1974
|
+
"ConsentRequest": {
|
|
1975
|
+
"description": "`POST /api/v1/govern/patients/consent`. The reference travels in the body,\nnever in a path, so it is never in a request log.",
|
|
1976
|
+
"properties": {
|
|
1977
|
+
"at": {
|
|
1978
|
+
"description": "When the patient granted or revoked; default now.",
|
|
1979
|
+
"format": "date-time",
|
|
1980
|
+
"type": [
|
|
1981
|
+
"string",
|
|
1982
|
+
"null"
|
|
1983
|
+
]
|
|
1984
|
+
},
|
|
1985
|
+
"channel": {
|
|
1986
|
+
"oneOf": [
|
|
1987
|
+
{
|
|
1988
|
+
"type": "null"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"$ref": "#/components/schemas/GovernChannel"
|
|
1992
|
+
}
|
|
1993
|
+
]
|
|
1994
|
+
},
|
|
1995
|
+
"patient_ref": {
|
|
1996
|
+
"type": "string"
|
|
1997
|
+
},
|
|
1998
|
+
"state": {
|
|
1999
|
+
"$ref": "#/components/schemas/ConsentState"
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
|
+
"required": [
|
|
2003
|
+
"patient_ref",
|
|
2004
|
+
"state"
|
|
2005
|
+
],
|
|
2006
|
+
"type": "object"
|
|
2007
|
+
},
|
|
2008
|
+
"ConsentState": {
|
|
2009
|
+
"enum": [
|
|
2010
|
+
"granted",
|
|
2011
|
+
"revoked"
|
|
2012
|
+
],
|
|
2013
|
+
"type": "string"
|
|
2014
|
+
},
|
|
2015
|
+
"ContactRequest": {
|
|
2016
|
+
"properties": {
|
|
2017
|
+
"expected_version": {
|
|
2018
|
+
"format": "int32",
|
|
2019
|
+
"type": "integer"
|
|
2020
|
+
},
|
|
2021
|
+
"next_due_at": {
|
|
2022
|
+
"format": "date-time",
|
|
2023
|
+
"type": [
|
|
2024
|
+
"string",
|
|
2025
|
+
"null"
|
|
2026
|
+
]
|
|
2027
|
+
},
|
|
2028
|
+
"note": {
|
|
2029
|
+
"type": "string"
|
|
2030
|
+
},
|
|
2031
|
+
"outcome": {
|
|
2032
|
+
"type": "string"
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
2035
|
+
"required": [
|
|
2036
|
+
"expected_version",
|
|
2037
|
+
"outcome",
|
|
2038
|
+
"note"
|
|
2039
|
+
],
|
|
2040
|
+
"type": "object"
|
|
2041
|
+
},
|
|
2042
|
+
"Counts": {
|
|
2043
|
+
"description": "Counts keyed by the raw gate decision (`allow`, `rewrite`,\n`block_and_review`, `policy_missing`, `unavailable`) for observe turns, and\nby the binding answer (`allow`, `hold`, `block`) for enforce turns.",
|
|
2044
|
+
"properties": {
|
|
2045
|
+
"enforced": {
|
|
2046
|
+
"additionalProperties": {
|
|
2047
|
+
"format": "int64",
|
|
2048
|
+
"type": "integer"
|
|
2049
|
+
},
|
|
2050
|
+
"propertyNames": {
|
|
2051
|
+
"type": "string"
|
|
2052
|
+
},
|
|
2053
|
+
"type": "object"
|
|
2054
|
+
},
|
|
2055
|
+
"would_have": {
|
|
2056
|
+
"additionalProperties": {
|
|
2057
|
+
"format": "int64",
|
|
2058
|
+
"type": "integer"
|
|
2059
|
+
},
|
|
2060
|
+
"propertyNames": {
|
|
2061
|
+
"type": "string"
|
|
2062
|
+
},
|
|
2063
|
+
"type": "object"
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
"required": [
|
|
2067
|
+
"would_have",
|
|
2068
|
+
"enforced"
|
|
2069
|
+
],
|
|
2070
|
+
"type": "object"
|
|
2071
|
+
},
|
|
2072
|
+
"CreateApplicationRequest": {
|
|
2073
|
+
"properties": {
|
|
2074
|
+
"channel_policies": {
|
|
2075
|
+
"additionalProperties": {
|
|
2076
|
+
"$ref": "#/components/schemas/ChannelPolicy"
|
|
2077
|
+
},
|
|
2078
|
+
"propertyNames": {
|
|
2079
|
+
"type": "string"
|
|
2080
|
+
},
|
|
2081
|
+
"type": [
|
|
2082
|
+
"object",
|
|
2083
|
+
"null"
|
|
2084
|
+
]
|
|
2085
|
+
},
|
|
2086
|
+
"default_mode": {
|
|
2087
|
+
"oneOf": [
|
|
2088
|
+
{
|
|
2089
|
+
"type": "null"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"$ref": "#/components/schemas/GovernMode"
|
|
2093
|
+
}
|
|
2094
|
+
]
|
|
2095
|
+
},
|
|
2096
|
+
"frequency_cap": {
|
|
2097
|
+
"oneOf": [
|
|
2098
|
+
{
|
|
2099
|
+
"type": "null"
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
"$ref": "#/components/schemas/FrequencyCap",
|
|
2103
|
+
"description": "The per-patient message cap per fixed window; none by\ndefault."
|
|
2104
|
+
}
|
|
2105
|
+
]
|
|
2106
|
+
},
|
|
2107
|
+
"handoff_routing": {
|
|
2108
|
+
"oneOf": [
|
|
2109
|
+
{
|
|
2110
|
+
"type": "null"
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
"$ref": "#/components/schemas/RoutingPolicy",
|
|
2114
|
+
"description": "The routing a hand-off opened for this application's patients is given: queue label, primary and backup staff, response and\nescalation seconds. Staff must be members of the organization."
|
|
2115
|
+
}
|
|
2116
|
+
]
|
|
2117
|
+
},
|
|
2118
|
+
"name": {
|
|
2119
|
+
"type": "string"
|
|
2120
|
+
},
|
|
2121
|
+
"project_id": {
|
|
2122
|
+
"format": "int32",
|
|
2123
|
+
"type": [
|
|
2124
|
+
"integer",
|
|
2125
|
+
"null"
|
|
2126
|
+
]
|
|
2127
|
+
},
|
|
2128
|
+
"red_flag_categories": {
|
|
2129
|
+
"description": "The red-flag categories the inbound screen runs with (`cardiac`,\n`respiratory`, `neuro_stroke`, `self_harm`). Default: all four.",
|
|
2130
|
+
"items": {
|
|
2131
|
+
"type": "string"
|
|
2132
|
+
},
|
|
2133
|
+
"type": [
|
|
2134
|
+
"array",
|
|
2135
|
+
"null"
|
|
2136
|
+
]
|
|
2137
|
+
},
|
|
2138
|
+
"webhook_url": {
|
|
2139
|
+
"type": [
|
|
2140
|
+
"string",
|
|
2141
|
+
"null"
|
|
2142
|
+
]
|
|
2143
|
+
}
|
|
2144
|
+
},
|
|
2145
|
+
"required": [
|
|
2146
|
+
"name"
|
|
2147
|
+
],
|
|
2148
|
+
"type": "object"
|
|
2149
|
+
},
|
|
2150
|
+
"CreateApplicationResponse": {
|
|
2151
|
+
"properties": {
|
|
2152
|
+
"application": {
|
|
2153
|
+
"$ref": "#/components/schemas/ApplicationDto"
|
|
2154
|
+
},
|
|
2155
|
+
"key": {
|
|
2156
|
+
"$ref": "#/components/schemas/MintedKeyDto"
|
|
2157
|
+
},
|
|
2158
|
+
"webhook_secret": {
|
|
2159
|
+
"$ref": "#/components/schemas/MintedWebhookSecret",
|
|
2160
|
+
"description": "The webhook signing secret, shown here once."
|
|
2161
|
+
}
|
|
2162
|
+
},
|
|
2163
|
+
"required": [
|
|
2164
|
+
"application",
|
|
2165
|
+
"key",
|
|
2166
|
+
"webhook_secret"
|
|
2167
|
+
],
|
|
2168
|
+
"type": "object"
|
|
2169
|
+
},
|
|
2170
|
+
"DecisionStatus": {
|
|
2171
|
+
"enum": [
|
|
2172
|
+
"pending",
|
|
2173
|
+
"decided",
|
|
2174
|
+
"unavailable",
|
|
2175
|
+
"not_evaluated"
|
|
2176
|
+
],
|
|
2177
|
+
"type": "string"
|
|
2178
|
+
},
|
|
2179
|
+
"DecisionView": {
|
|
2180
|
+
"description": "The decision as the contract presents it, from `evaluate` and from the\npoll. `released_content` and `deliverable_content` are the only fields that\ncan carry message text, and each does so under a stated condition.",
|
|
2181
|
+
"properties": {
|
|
2182
|
+
"audience": {
|
|
2183
|
+
"$ref": "#/components/schemas/GovernAudience"
|
|
2184
|
+
},
|
|
2185
|
+
"channel": {
|
|
2186
|
+
"$ref": "#/components/schemas/GovernChannel"
|
|
2187
|
+
},
|
|
2188
|
+
"conversation_id": {
|
|
2189
|
+
"type": "string"
|
|
2190
|
+
},
|
|
2191
|
+
"created_at": {
|
|
2192
|
+
"format": "date-time",
|
|
2193
|
+
"type": [
|
|
2194
|
+
"string",
|
|
2195
|
+
"null"
|
|
2196
|
+
]
|
|
2197
|
+
},
|
|
2198
|
+
"decided_at": {
|
|
2199
|
+
"format": "date-time",
|
|
2200
|
+
"type": [
|
|
2201
|
+
"string",
|
|
2202
|
+
"null"
|
|
2203
|
+
]
|
|
2204
|
+
},
|
|
2205
|
+
"decision": {
|
|
2206
|
+
"$ref": "#/components/schemas/GovernDecision"
|
|
2207
|
+
},
|
|
2208
|
+
"decision_id": {
|
|
2209
|
+
"description": "Absent only when the channel is `off`.",
|
|
2210
|
+
"format": "uuid",
|
|
2211
|
+
"type": [
|
|
2212
|
+
"string",
|
|
2213
|
+
"null"
|
|
2214
|
+
]
|
|
2215
|
+
},
|
|
2216
|
+
"deliverable_content": {
|
|
2217
|
+
"description": "Clinician audience only: the gate's term substitution, when there is\none to deliver. Never present for a patient audience.",
|
|
2218
|
+
"type": [
|
|
2219
|
+
"string",
|
|
2220
|
+
"null"
|
|
2221
|
+
]
|
|
2222
|
+
},
|
|
2223
|
+
"detected_claims": {
|
|
2224
|
+
"items": {
|
|
2225
|
+
"type": "string"
|
|
2226
|
+
},
|
|
2227
|
+
"type": "array"
|
|
2228
|
+
},
|
|
2229
|
+
"disclosure_required": {
|
|
2230
|
+
"type": "boolean"
|
|
2231
|
+
},
|
|
2232
|
+
"handoff": {
|
|
2233
|
+
"oneOf": [
|
|
2234
|
+
{
|
|
2235
|
+
"type": "null"
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
"$ref": "#/components/schemas/HandoffRef",
|
|
2239
|
+
"description": "The hand-off this decision opened or joined, with its current state."
|
|
2240
|
+
}
|
|
2241
|
+
]
|
|
2242
|
+
},
|
|
2243
|
+
"inbound_flags": {
|
|
2244
|
+
"description": "The red-flag rules the inbound matched; rule ids and categories only.",
|
|
2245
|
+
"items": {
|
|
2246
|
+
"$ref": "#/components/schemas/InboundFlag"
|
|
2247
|
+
},
|
|
2248
|
+
"type": "array"
|
|
2249
|
+
},
|
|
2250
|
+
"mode": {
|
|
2251
|
+
"$ref": "#/components/schemas/GovernMode"
|
|
2252
|
+
},
|
|
2253
|
+
"model": {
|
|
2254
|
+
"description": "The model the caller named for this turn, and its version. Null when the caller named none; never inferred.",
|
|
2255
|
+
"type": [
|
|
2256
|
+
"string",
|
|
2257
|
+
"null"
|
|
2258
|
+
]
|
|
2259
|
+
},
|
|
2260
|
+
"model_version": {
|
|
2261
|
+
"type": [
|
|
2262
|
+
"string",
|
|
2263
|
+
"null"
|
|
2264
|
+
]
|
|
2265
|
+
},
|
|
2266
|
+
"outcome": {
|
|
2267
|
+
"oneOf": [
|
|
2268
|
+
{
|
|
2269
|
+
"type": "null"
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
"$ref": "#/components/schemas/OutcomeView",
|
|
2273
|
+
"description": "What the customer reported delivering, once it has."
|
|
2274
|
+
}
|
|
2275
|
+
]
|
|
2276
|
+
},
|
|
2277
|
+
"policy": {
|
|
2278
|
+
"oneOf": [
|
|
2279
|
+
{
|
|
2280
|
+
"type": "null"
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
"$ref": "#/components/schemas/PolicyRef"
|
|
2284
|
+
}
|
|
2285
|
+
]
|
|
2286
|
+
},
|
|
2287
|
+
"rationale": {
|
|
2288
|
+
"type": [
|
|
2289
|
+
"string",
|
|
2290
|
+
"null"
|
|
2291
|
+
]
|
|
2292
|
+
},
|
|
2293
|
+
"reasons": {
|
|
2294
|
+
"items": {
|
|
2295
|
+
"type": "string"
|
|
2296
|
+
},
|
|
2297
|
+
"type": "array"
|
|
2298
|
+
},
|
|
2299
|
+
"released_content": {
|
|
2300
|
+
"description": "Present once a reviewer released the held content: what to deliver.",
|
|
2301
|
+
"type": [
|
|
2302
|
+
"string",
|
|
2303
|
+
"null"
|
|
2304
|
+
]
|
|
2305
|
+
},
|
|
2306
|
+
"review_state": {
|
|
2307
|
+
"oneOf": [
|
|
2308
|
+
{
|
|
2309
|
+
"type": "null"
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
"$ref": "#/components/schemas/ReviewState"
|
|
2313
|
+
}
|
|
2314
|
+
]
|
|
2315
|
+
},
|
|
2316
|
+
"review_url": {
|
|
2317
|
+
"description": "Console deep link for the customer's own reviewers, present when the\ndecision is in (or has been through) the review queue.",
|
|
2318
|
+
"type": [
|
|
2319
|
+
"string",
|
|
2320
|
+
"null"
|
|
2321
|
+
]
|
|
2322
|
+
},
|
|
2323
|
+
"reviewed_at": {
|
|
2324
|
+
"format": "date-time",
|
|
2325
|
+
"type": [
|
|
2326
|
+
"string",
|
|
2327
|
+
"null"
|
|
2328
|
+
]
|
|
2329
|
+
},
|
|
2330
|
+
"route_to_human": {
|
|
2331
|
+
"description": "A person must contact this patient. Independent of\n`decision`: a clean draft can be `allow` with `route_to_human: true`,\nand a violating one `hold` with it.",
|
|
2332
|
+
"type": "boolean"
|
|
2333
|
+
},
|
|
2334
|
+
"send_holding_line": {
|
|
2335
|
+
"description": "Send your holding line to this patient now.\n\nThis turn was stopped and the patient is waiting on a reply that is not coming, so the application sends the fixed text its clinical owner wrote: a person will reply, when, and what to do if it is urgent. **The contract says when, never what**: the text is the application's own, it is never model-written, and this service does not send it on the application's behalf.\n\n`false` whenever another send would be the wrong thing rather than merely unnecessary: an opt-out, a missing or revoked consent, and a frequency cap each stop the turn because this patient should not be messaged, and a holding line is a message. It is also `false` in observe, where nothing was stopped and the caller was told to deliver.\n\nOne per stopped turn: each `evaluate` is one turn, so a second stopped draft in the same conversation is a second turn with its own answer.",
|
|
2336
|
+
"type": "boolean"
|
|
2337
|
+
},
|
|
2338
|
+
"status": {
|
|
2339
|
+
"$ref": "#/components/schemas/DecisionStatus"
|
|
2340
|
+
},
|
|
2341
|
+
"stop_class": {
|
|
2342
|
+
"description": "Which of the two stopped classes this turn is: `never_sendable` | `uncertain`, null when nothing was stopped.\n\nIn **enforce** it describes the `hold` the caller received: a never-sendable turn has no release path, so the application's own reviewers are told to record a replacement rather than wait for one. In **observe** it is read beside `would_have` and describes what the stop would have been: `would_have` keeps its documented vocabulary (the raw gate decision), and this carries the class the same turn was classified with.",
|
|
2343
|
+
"type": [
|
|
2344
|
+
"string",
|
|
2345
|
+
"null"
|
|
2346
|
+
]
|
|
2347
|
+
},
|
|
2348
|
+
"turn_id": {
|
|
2349
|
+
"type": "string"
|
|
2350
|
+
},
|
|
2351
|
+
"webhook_deliveries": {
|
|
2352
|
+
"description": "The signed webhook deliveries about this decision: the\nlog, never the body.",
|
|
2353
|
+
"items": {
|
|
2354
|
+
"$ref": "#/components/schemas/WebhookDeliveryView"
|
|
2355
|
+
},
|
|
2356
|
+
"type": "array"
|
|
2357
|
+
},
|
|
2358
|
+
"would_have": {
|
|
2359
|
+
"description": "Observe: the raw gate decision (`allow` | `rewrite` | `block_and_review`\n| `policy_missing`) or `unavailable`. Null in enforce.",
|
|
2360
|
+
"type": [
|
|
2361
|
+
"string",
|
|
2362
|
+
"null"
|
|
2363
|
+
]
|
|
2364
|
+
},
|
|
2365
|
+
"would_have_routed": {
|
|
2366
|
+
"description": "Observe: the screen matched and would have routed; no task was opened.",
|
|
2367
|
+
"type": "boolean"
|
|
2368
|
+
}
|
|
2369
|
+
},
|
|
2370
|
+
"required": [
|
|
2371
|
+
"status",
|
|
2372
|
+
"decision",
|
|
2373
|
+
"mode",
|
|
2374
|
+
"channel",
|
|
2375
|
+
"audience",
|
|
2376
|
+
"conversation_id",
|
|
2377
|
+
"turn_id",
|
|
2378
|
+
"reasons",
|
|
2379
|
+
"detected_claims",
|
|
2380
|
+
"disclosure_required",
|
|
2381
|
+
"send_holding_line",
|
|
2382
|
+
"route_to_human",
|
|
2383
|
+
"would_have_routed",
|
|
2384
|
+
"inbound_flags",
|
|
2385
|
+
"webhook_deliveries"
|
|
2386
|
+
],
|
|
2387
|
+
"type": "object"
|
|
2388
|
+
},
|
|
2389
|
+
"DisclosureAttachment": {
|
|
2390
|
+
"properties": {
|
|
2391
|
+
"established": {
|
|
2392
|
+
"description": "The caller's own assertion; informational. The gate reads the ref.",
|
|
2393
|
+
"type": [
|
|
2394
|
+
"boolean",
|
|
2395
|
+
"null"
|
|
2396
|
+
]
|
|
2397
|
+
},
|
|
2398
|
+
"ref": {
|
|
2399
|
+
"description": "The reference returned when THIS conversation's disclosure was\nrecorded. Any other value is ignored, and the turn is answered on\nthis conversation's own evidence, so a reference borrowed from\nanother conversation or application leaves the disclosure owed.",
|
|
2400
|
+
"type": [
|
|
2401
|
+
"string",
|
|
2402
|
+
"null"
|
|
2403
|
+
]
|
|
2404
|
+
}
|
|
2405
|
+
},
|
|
2406
|
+
"type": "object"
|
|
2407
|
+
},
|
|
2408
|
+
"DisclosureView": {
|
|
2409
|
+
"properties": {
|
|
2410
|
+
"application_id": {
|
|
2411
|
+
"format": "uuid",
|
|
2412
|
+
"type": "string"
|
|
2413
|
+
},
|
|
2414
|
+
"channel": {
|
|
2415
|
+
"$ref": "#/components/schemas/GovernChannel"
|
|
2416
|
+
},
|
|
2417
|
+
"conversation_id": {
|
|
2418
|
+
"type": "string"
|
|
2419
|
+
},
|
|
2420
|
+
"evidence_id": {
|
|
2421
|
+
"description": "The evidence row; the id a reviewer sees in the console.",
|
|
2422
|
+
"format": "uuid",
|
|
2423
|
+
"type": "string"
|
|
2424
|
+
},
|
|
2425
|
+
"recorded_at": {
|
|
2426
|
+
"format": "date-time",
|
|
2427
|
+
"type": "string"
|
|
2428
|
+
},
|
|
2429
|
+
"ref": {
|
|
2430
|
+
"description": "Attach this as `disclosure.ref` on every evaluate for the conversation.\n`evaluate` also derives it from `conversation_id` when absent.",
|
|
2431
|
+
"type": "string"
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
"required": [
|
|
2435
|
+
"ref",
|
|
2436
|
+
"application_id",
|
|
2437
|
+
"conversation_id",
|
|
2438
|
+
"channel",
|
|
2439
|
+
"evidence_id",
|
|
2440
|
+
"recorded_at"
|
|
2441
|
+
],
|
|
2442
|
+
"type": "object"
|
|
2443
|
+
},
|
|
2444
|
+
"EvaluateRequest": {
|
|
2445
|
+
"properties": {
|
|
2446
|
+
"application_id": {
|
|
2447
|
+
"description": "Optional; when present it must be the application the key is bound to.",
|
|
2448
|
+
"format": "uuid",
|
|
2449
|
+
"type": [
|
|
2450
|
+
"string",
|
|
2451
|
+
"null"
|
|
2452
|
+
]
|
|
2453
|
+
},
|
|
2454
|
+
"audience": {
|
|
2455
|
+
"$ref": "#/components/schemas/GovernAudience"
|
|
2456
|
+
},
|
|
2457
|
+
"channel": {
|
|
2458
|
+
"$ref": "#/components/schemas/GovernChannel"
|
|
2459
|
+
},
|
|
2460
|
+
"content": {
|
|
2461
|
+
"description": "The draft the customer's AI produced.",
|
|
2462
|
+
"type": "string"
|
|
2463
|
+
},
|
|
2464
|
+
"conversation_id": {
|
|
2465
|
+
"type": "string"
|
|
2466
|
+
},
|
|
2467
|
+
"disclosure": {
|
|
2468
|
+
"oneOf": [
|
|
2469
|
+
{
|
|
2470
|
+
"type": "null"
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
"$ref": "#/components/schemas/DisclosureAttachment"
|
|
2474
|
+
}
|
|
2475
|
+
]
|
|
2476
|
+
},
|
|
2477
|
+
"inbound": {
|
|
2478
|
+
"oneOf": [
|
|
2479
|
+
{
|
|
2480
|
+
"type": "null"
|
|
2481
|
+
},
|
|
2482
|
+
{
|
|
2483
|
+
"$ref": "#/components/schemas/InboundMessage",
|
|
2484
|
+
"description": "The patient's message this turn answers. Screened by the\ndeterministic red-flag floor with the application's categories; a\nmatch routes the patient to a person. Requires `patient_ref`."
|
|
2485
|
+
}
|
|
2486
|
+
]
|
|
2487
|
+
},
|
|
2488
|
+
"metadata": {
|
|
2489
|
+
"description": "Free JSON, stored and never evaluated."
|
|
2490
|
+
},
|
|
2491
|
+
"mode_hint": {
|
|
2492
|
+
"oneOf": [
|
|
2493
|
+
{
|
|
2494
|
+
"type": "null"
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"$ref": "#/components/schemas/GovernMode",
|
|
2498
|
+
"description": "Advisory. The application's configured mode decides; a hint that\ndisagrees is ignored."
|
|
2499
|
+
}
|
|
2500
|
+
]
|
|
2501
|
+
},
|
|
2502
|
+
"model": {
|
|
2503
|
+
"description": "The model the caller's application ran for this turn, as the caller\nnames it. Recorded, never interpreted: the platform does\nnot run this model and has nothing to check the name against.",
|
|
2504
|
+
"type": [
|
|
2505
|
+
"string",
|
|
2506
|
+
"null"
|
|
2507
|
+
]
|
|
2508
|
+
},
|
|
2509
|
+
"model_version": {
|
|
2510
|
+
"description": "That model's version, as the caller names it. Independent of `model`:\na caller that versions one and not the other is recorded as it is\nrather than refused.",
|
|
2511
|
+
"type": [
|
|
2512
|
+
"string",
|
|
2513
|
+
"null"
|
|
2514
|
+
]
|
|
2515
|
+
},
|
|
2516
|
+
"patient_ref": {
|
|
2517
|
+
"description": "The customer's opaque patient identifier. Stored only as a SHA-256.",
|
|
2518
|
+
"type": [
|
|
2519
|
+
"string",
|
|
2520
|
+
"null"
|
|
2521
|
+
]
|
|
2522
|
+
},
|
|
2523
|
+
"turn_id": {
|
|
2524
|
+
"description": "The idempotency key per application: a replay returns the stored\ndecision. Must not start with `govern:`, which is reserved for the\nrows the platform writes.",
|
|
2525
|
+
"type": "string"
|
|
2526
|
+
}
|
|
2527
|
+
},
|
|
2528
|
+
"required": [
|
|
2529
|
+
"conversation_id",
|
|
2530
|
+
"turn_id",
|
|
2531
|
+
"channel",
|
|
2532
|
+
"audience",
|
|
2533
|
+
"content"
|
|
2534
|
+
],
|
|
2535
|
+
"type": "object"
|
|
2536
|
+
},
|
|
2537
|
+
"ExternalDecisionEvidence": {
|
|
2538
|
+
"description": "One Govern decision that opened or joined an external hand-off: the\nevidence a person works from. `inbound_content` is the patient's own\nmessage, PHI-visible on this staff-authorised surface only.",
|
|
2539
|
+
"properties": {
|
|
2540
|
+
"conversation_id": {
|
|
2541
|
+
"type": "string"
|
|
2542
|
+
},
|
|
2543
|
+
"created_at": {
|
|
2544
|
+
"format": "date-time",
|
|
2545
|
+
"type": "string"
|
|
2546
|
+
},
|
|
2547
|
+
"decision_id": {
|
|
2548
|
+
"format": "uuid",
|
|
2549
|
+
"type": "string"
|
|
2550
|
+
},
|
|
2551
|
+
"inbound_content": {
|
|
2552
|
+
"type": [
|
|
2553
|
+
"string",
|
|
2554
|
+
"null"
|
|
2555
|
+
]
|
|
2556
|
+
},
|
|
2557
|
+
"inbound_flags": {},
|
|
2558
|
+
"inbound_received_at": {
|
|
2559
|
+
"format": "date-time",
|
|
2560
|
+
"type": [
|
|
2561
|
+
"string",
|
|
2562
|
+
"null"
|
|
2563
|
+
]
|
|
2564
|
+
},
|
|
2565
|
+
"turn_id": {
|
|
2566
|
+
"type": "string"
|
|
2567
|
+
}
|
|
2568
|
+
},
|
|
2569
|
+
"required": [
|
|
2570
|
+
"decision_id",
|
|
2571
|
+
"conversation_id",
|
|
2572
|
+
"turn_id",
|
|
2573
|
+
"inbound_flags",
|
|
2574
|
+
"created_at"
|
|
2575
|
+
],
|
|
2576
|
+
"type": "object"
|
|
2577
|
+
},
|
|
2578
|
+
"ExternalHandoffDetail": {
|
|
2579
|
+
"properties": {
|
|
2580
|
+
"decisions": {
|
|
2581
|
+
"items": {
|
|
2582
|
+
"$ref": "#/components/schemas/ExternalDecisionEvidence"
|
|
2583
|
+
},
|
|
2584
|
+
"type": "array"
|
|
2585
|
+
},
|
|
2586
|
+
"environment_id": {
|
|
2587
|
+
"format": "uuid",
|
|
2588
|
+
"type": "string"
|
|
2589
|
+
},
|
|
2590
|
+
"events": {
|
|
2591
|
+
"items": {
|
|
2592
|
+
"$ref": "#/components/schemas/CareHandoffEvent"
|
|
2593
|
+
},
|
|
2594
|
+
"type": "array"
|
|
2595
|
+
},
|
|
2596
|
+
"handoff": {
|
|
2597
|
+
"$ref": "#/components/schemas/CareHandoff"
|
|
2598
|
+
},
|
|
2599
|
+
"subject": {
|
|
2600
|
+
"$ref": "#/components/schemas/ExternalSubject"
|
|
2601
|
+
}
|
|
2602
|
+
},
|
|
2603
|
+
"required": [
|
|
2604
|
+
"environment_id",
|
|
2605
|
+
"handoff",
|
|
2606
|
+
"events",
|
|
2607
|
+
"subject",
|
|
2608
|
+
"decisions"
|
|
2609
|
+
],
|
|
2610
|
+
"type": "object"
|
|
2611
|
+
},
|
|
2612
|
+
"ExternalSubject": {
|
|
2613
|
+
"description": "The subject of an external hand-off, for its readers.",
|
|
2614
|
+
"properties": {
|
|
2615
|
+
"application_id": {
|
|
2616
|
+
"format": "uuid",
|
|
2617
|
+
"type": "string"
|
|
2618
|
+
},
|
|
2619
|
+
"patient_ref_hash": {
|
|
2620
|
+
"description": "SHA-256 of the customer's opaque patient reference.",
|
|
2621
|
+
"type": "string"
|
|
2622
|
+
}
|
|
2623
|
+
},
|
|
2624
|
+
"required": [
|
|
2625
|
+
"application_id",
|
|
2626
|
+
"patient_ref_hash"
|
|
2627
|
+
],
|
|
2628
|
+
"type": "object"
|
|
2629
|
+
},
|
|
2630
|
+
"FrequencyCap": {
|
|
2631
|
+
"description": "The application's per-patient cap: at most `max_messages` per fixed window\nof `window_seconds`, counted from the first message of the window.",
|
|
2632
|
+
"properties": {
|
|
2633
|
+
"max_messages": {
|
|
2634
|
+
"format": "int32",
|
|
2635
|
+
"type": "integer"
|
|
2636
|
+
},
|
|
2637
|
+
"window_seconds": {
|
|
2638
|
+
"format": "int64",
|
|
2639
|
+
"type": "integer"
|
|
2640
|
+
}
|
|
2641
|
+
},
|
|
2642
|
+
"required": [
|
|
2643
|
+
"max_messages",
|
|
2644
|
+
"window_seconds"
|
|
2645
|
+
],
|
|
2646
|
+
"type": "object"
|
|
2647
|
+
},
|
|
2648
|
+
"FrequencyView": {
|
|
2649
|
+
"properties": {
|
|
2650
|
+
"max_messages": {
|
|
2651
|
+
"format": "int32",
|
|
2652
|
+
"type": "integer"
|
|
2653
|
+
},
|
|
2654
|
+
"remaining": {
|
|
2655
|
+
"description": "Messages left in the current window (the full cap once it has lapsed).",
|
|
2656
|
+
"format": "int32",
|
|
2657
|
+
"type": "integer"
|
|
2658
|
+
},
|
|
2659
|
+
"window_count": {
|
|
2660
|
+
"format": "int32",
|
|
2661
|
+
"type": "integer"
|
|
2662
|
+
},
|
|
2663
|
+
"window_seconds": {
|
|
2664
|
+
"format": "int64",
|
|
2665
|
+
"type": "integer"
|
|
2666
|
+
},
|
|
2667
|
+
"window_started_at": {
|
|
2668
|
+
"format": "date-time",
|
|
2669
|
+
"type": [
|
|
2670
|
+
"string",
|
|
2671
|
+
"null"
|
|
2672
|
+
]
|
|
2673
|
+
}
|
|
2674
|
+
},
|
|
2675
|
+
"required": [
|
|
2676
|
+
"max_messages",
|
|
2677
|
+
"window_seconds",
|
|
2678
|
+
"window_count",
|
|
2679
|
+
"remaining"
|
|
2680
|
+
],
|
|
2681
|
+
"type": "object"
|
|
2682
|
+
},
|
|
2683
|
+
"GovernAudience": {
|
|
2684
|
+
"enum": [
|
|
2685
|
+
"patient",
|
|
2686
|
+
"clinician"
|
|
2687
|
+
],
|
|
2688
|
+
"type": "string"
|
|
2689
|
+
},
|
|
2690
|
+
"GovernChannel": {
|
|
2691
|
+
"description": "The channel vocabulary of the contract.",
|
|
2692
|
+
"enum": [
|
|
2693
|
+
"sms",
|
|
2694
|
+
"app_message",
|
|
2695
|
+
"web_chat",
|
|
2696
|
+
"voice",
|
|
2697
|
+
"email"
|
|
2698
|
+
],
|
|
2699
|
+
"type": "string"
|
|
2700
|
+
},
|
|
2701
|
+
"GovernDecision": {
|
|
2702
|
+
"description": "The contract's three answers.",
|
|
2703
|
+
"enum": [
|
|
2704
|
+
"allow",
|
|
2705
|
+
"hold",
|
|
2706
|
+
"block"
|
|
2707
|
+
],
|
|
2708
|
+
"type": "string"
|
|
2709
|
+
},
|
|
2710
|
+
"GovernMode": {
|
|
2711
|
+
"description": "Per policy, per application: is the gate consulted, and is its answer\nbinding? `Off` is not evaluated; `Observe` is evaluated and recorded as\n`would_have` while the caller is always told allow; `Enforce` returns the\ndecision and it binds.",
|
|
2712
|
+
"enum": [
|
|
2713
|
+
"off",
|
|
2714
|
+
"observe",
|
|
2715
|
+
"enforce"
|
|
2716
|
+
],
|
|
2717
|
+
"type": "string"
|
|
2718
|
+
},
|
|
2719
|
+
"HandoffList": {
|
|
2720
|
+
"properties": {
|
|
2721
|
+
"awaiting_reply": {
|
|
2722
|
+
"description": "Which of these items carry a stopped draft nobody has answered yet. A patient has one open item, so a stop joins whatever they already have (a paused automation, a flagged inbound). The item keeps the reason it was opened for, and this lists what it now also owes.",
|
|
2723
|
+
"items": {
|
|
2724
|
+
"format": "uuid",
|
|
2725
|
+
"type": "string"
|
|
2726
|
+
},
|
|
2727
|
+
"type": "array"
|
|
2728
|
+
},
|
|
2729
|
+
"environment_id": {
|
|
2730
|
+
"format": "uuid",
|
|
2731
|
+
"type": "string"
|
|
2732
|
+
},
|
|
2733
|
+
"items": {
|
|
2734
|
+
"items": {
|
|
2735
|
+
"$ref": "#/components/schemas/CareHandoff"
|
|
2736
|
+
},
|
|
2737
|
+
"type": "array"
|
|
2738
|
+
},
|
|
2739
|
+
"patient_names": {
|
|
2740
|
+
"additionalProperties": {
|
|
2741
|
+
"type": "string"
|
|
2742
|
+
},
|
|
2743
|
+
"propertyNames": {
|
|
2744
|
+
"type": "string"
|
|
2745
|
+
},
|
|
2746
|
+
"type": "object"
|
|
2747
|
+
},
|
|
2748
|
+
"total": {
|
|
2749
|
+
"format": "int64",
|
|
2750
|
+
"minimum": 0,
|
|
2751
|
+
"type": "integer"
|
|
2752
|
+
}
|
|
2753
|
+
},
|
|
2754
|
+
"required": [
|
|
2755
|
+
"environment_id",
|
|
2756
|
+
"items",
|
|
2757
|
+
"total",
|
|
2758
|
+
"patient_names",
|
|
2759
|
+
"awaiting_reply"
|
|
2760
|
+
],
|
|
2761
|
+
"type": "object"
|
|
2762
|
+
},
|
|
2763
|
+
"HandoffRef": {
|
|
2764
|
+
"description": "The hand-off a decision opened or joined, as the contract shows it.",
|
|
2765
|
+
"properties": {
|
|
2766
|
+
"assigned_to": {
|
|
2767
|
+
"format": "uuid",
|
|
2768
|
+
"type": [
|
|
2769
|
+
"string",
|
|
2770
|
+
"null"
|
|
2771
|
+
]
|
|
2772
|
+
},
|
|
2773
|
+
"automation_resumed_at": {
|
|
2774
|
+
"format": "date-time",
|
|
2775
|
+
"type": [
|
|
2776
|
+
"string",
|
|
2777
|
+
"null"
|
|
2778
|
+
]
|
|
2779
|
+
},
|
|
2780
|
+
"due_at": {
|
|
2781
|
+
"format": "date-time",
|
|
2782
|
+
"type": [
|
|
2783
|
+
"string",
|
|
2784
|
+
"null"
|
|
2785
|
+
]
|
|
2786
|
+
},
|
|
2787
|
+
"escalation_due_at": {
|
|
2788
|
+
"format": "date-time",
|
|
2789
|
+
"type": [
|
|
2790
|
+
"string",
|
|
2791
|
+
"null"
|
|
2792
|
+
]
|
|
2793
|
+
},
|
|
2794
|
+
"id": {
|
|
2795
|
+
"format": "uuid",
|
|
2796
|
+
"type": "string"
|
|
2797
|
+
},
|
|
2798
|
+
"pauses_automation": {
|
|
2799
|
+
"description": "Whether this hand-off also pauses automated messaging to the subject. `automation_resumed_at == null` says a person owns it;\nthis says whether the application should stop sending meanwhile. The\ntwo are read together: still paused is\n`automation_resumed_at == null && pauses_automation`.",
|
|
2800
|
+
"type": "boolean"
|
|
2801
|
+
},
|
|
2802
|
+
"queue_label": {
|
|
2803
|
+
"type": "string"
|
|
2804
|
+
},
|
|
2805
|
+
"resolved_at": {
|
|
2806
|
+
"format": "date-time",
|
|
2807
|
+
"type": [
|
|
2808
|
+
"string",
|
|
2809
|
+
"null"
|
|
2810
|
+
]
|
|
2811
|
+
},
|
|
2812
|
+
"state": {
|
|
2813
|
+
"description": "`queued` | `claimed` | `resolved`.",
|
|
2814
|
+
"type": "string"
|
|
2815
|
+
},
|
|
2816
|
+
"version": {
|
|
2817
|
+
"format": "int32",
|
|
2818
|
+
"type": "integer"
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
"required": [
|
|
2822
|
+
"id",
|
|
2823
|
+
"state",
|
|
2824
|
+
"version",
|
|
2825
|
+
"queue_label",
|
|
2826
|
+
"pauses_automation"
|
|
2827
|
+
],
|
|
2828
|
+
"type": "object"
|
|
2829
|
+
},
|
|
2830
|
+
"InboundFlag": {
|
|
2831
|
+
"description": "One red-flag rule the inbound matched. Rule id and category only; never\nthe text.",
|
|
2832
|
+
"properties": {
|
|
2833
|
+
"category": {
|
|
2834
|
+
"type": "string"
|
|
2835
|
+
},
|
|
2836
|
+
"rule_id": {
|
|
2837
|
+
"type": "string"
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
"required": [
|
|
2841
|
+
"rule_id",
|
|
2842
|
+
"category"
|
|
2843
|
+
],
|
|
2844
|
+
"type": "object"
|
|
2845
|
+
},
|
|
2846
|
+
"InboundMessage": {
|
|
2847
|
+
"description": "The patient's message this turn answers.",
|
|
2848
|
+
"properties": {
|
|
2849
|
+
"content": {
|
|
2850
|
+
"type": "string"
|
|
2851
|
+
},
|
|
2852
|
+
"received_at": {
|
|
2853
|
+
"format": "date-time",
|
|
2854
|
+
"type": "string"
|
|
2855
|
+
}
|
|
2856
|
+
},
|
|
2857
|
+
"required": [
|
|
2858
|
+
"content",
|
|
2859
|
+
"received_at"
|
|
2860
|
+
],
|
|
2861
|
+
"type": "object"
|
|
2862
|
+
},
|
|
2863
|
+
"MintedKeyDto": {
|
|
2864
|
+
"allOf": [
|
|
2865
|
+
{
|
|
2866
|
+
"$ref": "#/components/schemas/ApplicationKeyDto"
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
"properties": {
|
|
2870
|
+
"secret": {
|
|
2871
|
+
"description": "The raw key. This is its only appearance; store it server-side.",
|
|
2872
|
+
"type": "string"
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
"required": [
|
|
2876
|
+
"secret"
|
|
2877
|
+
],
|
|
2878
|
+
"type": "object"
|
|
2879
|
+
}
|
|
2880
|
+
],
|
|
2881
|
+
"description": "A key at mint time: the metadata plus the secret, which is shown once."
|
|
2882
|
+
},
|
|
2883
|
+
"MintedWebhookSecret": {
|
|
2884
|
+
"description": "A freshly minted signing secret: the plaintext, shown once, and when.",
|
|
2885
|
+
"properties": {
|
|
2886
|
+
"rotated_at": {
|
|
2887
|
+
"format": "date-time",
|
|
2888
|
+
"type": "string"
|
|
2889
|
+
},
|
|
2890
|
+
"webhook_secret": {
|
|
2891
|
+
"description": "The secret. This is its only appearance; store it server-side.",
|
|
2892
|
+
"type": "string"
|
|
2893
|
+
},
|
|
2894
|
+
"webhook_secret_hint": {
|
|
2895
|
+
"description": "Its last four characters, for telling secrets apart.",
|
|
2896
|
+
"type": "string"
|
|
2897
|
+
}
|
|
2898
|
+
},
|
|
2899
|
+
"required": [
|
|
2900
|
+
"webhook_secret",
|
|
2901
|
+
"webhook_secret_hint",
|
|
2902
|
+
"rotated_at"
|
|
2903
|
+
],
|
|
2904
|
+
"type": "object"
|
|
2905
|
+
},
|
|
2906
|
+
"ModelBreakdown": {
|
|
2907
|
+
"allOf": [
|
|
2908
|
+
{
|
|
2909
|
+
"$ref": "#/components/schemas/Counts"
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
"properties": {
|
|
2913
|
+
"model": {
|
|
2914
|
+
"type": [
|
|
2915
|
+
"string",
|
|
2916
|
+
"null"
|
|
2917
|
+
]
|
|
2918
|
+
},
|
|
2919
|
+
"model_version": {
|
|
2920
|
+
"type": [
|
|
2921
|
+
"string",
|
|
2922
|
+
"null"
|
|
2923
|
+
]
|
|
2924
|
+
}
|
|
2925
|
+
},
|
|
2926
|
+
"type": "object"
|
|
2927
|
+
}
|
|
2928
|
+
],
|
|
2929
|
+
"description": "The same counts, per model and version the caller named. A bucket with both fields null counts the turns whose caller named no model. Send a stable model name so the report stays readable."
|
|
2930
|
+
},
|
|
2931
|
+
"ObserveReport": {
|
|
2932
|
+
"allOf": [
|
|
2933
|
+
{
|
|
2934
|
+
"$ref": "#/components/schemas/Counts"
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
"properties": {
|
|
2938
|
+
"application_id": {
|
|
2939
|
+
"format": "uuid",
|
|
2940
|
+
"type": "string"
|
|
2941
|
+
},
|
|
2942
|
+
"by_channel": {
|
|
2943
|
+
"items": {
|
|
2944
|
+
"$ref": "#/components/schemas/ChannelBreakdown"
|
|
2945
|
+
},
|
|
2946
|
+
"type": "array"
|
|
2947
|
+
},
|
|
2948
|
+
"by_model": {
|
|
2949
|
+
"items": {
|
|
2950
|
+
"$ref": "#/components/schemas/ModelBreakdown"
|
|
2951
|
+
},
|
|
2952
|
+
"type": "array"
|
|
2953
|
+
},
|
|
2954
|
+
"by_policy": {
|
|
2955
|
+
"items": {
|
|
2956
|
+
"$ref": "#/components/schemas/PolicyBreakdown"
|
|
2957
|
+
},
|
|
2958
|
+
"type": "array"
|
|
2959
|
+
},
|
|
2960
|
+
"from": {
|
|
2961
|
+
"format": "date-time",
|
|
2962
|
+
"type": "string"
|
|
2963
|
+
},
|
|
2964
|
+
"rates": {
|
|
2965
|
+
"$ref": "#/components/schemas/Rates"
|
|
2966
|
+
},
|
|
2967
|
+
"to": {
|
|
2968
|
+
"format": "date-time",
|
|
2969
|
+
"type": "string"
|
|
2970
|
+
},
|
|
2971
|
+
"totals": {
|
|
2972
|
+
"$ref": "#/components/schemas/Totals"
|
|
2973
|
+
}
|
|
2974
|
+
},
|
|
2975
|
+
"required": [
|
|
2976
|
+
"application_id",
|
|
2977
|
+
"from",
|
|
2978
|
+
"to",
|
|
2979
|
+
"totals",
|
|
2980
|
+
"by_policy",
|
|
2981
|
+
"by_channel",
|
|
2982
|
+
"by_model",
|
|
2983
|
+
"rates"
|
|
2984
|
+
],
|
|
2985
|
+
"type": "object"
|
|
2986
|
+
}
|
|
2987
|
+
]
|
|
2988
|
+
},
|
|
2989
|
+
"OptOutRequest": {
|
|
2990
|
+
"description": "`POST /api/v1/govern/patients/opt-out`. `opted_out: false` records the\npatient opting back in, which the application may do only for an opt-out\nit recorded itself.",
|
|
2991
|
+
"properties": {
|
|
2992
|
+
"at": {
|
|
2993
|
+
"format": "date-time",
|
|
2994
|
+
"type": [
|
|
2995
|
+
"string",
|
|
2996
|
+
"null"
|
|
2997
|
+
]
|
|
2998
|
+
},
|
|
2999
|
+
"channel": {
|
|
3000
|
+
"oneOf": [
|
|
3001
|
+
{
|
|
3002
|
+
"type": "null"
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
"$ref": "#/components/schemas/GovernChannel"
|
|
3006
|
+
}
|
|
3007
|
+
]
|
|
3008
|
+
},
|
|
3009
|
+
"opted_out": {
|
|
3010
|
+
"type": "boolean"
|
|
3011
|
+
},
|
|
3012
|
+
"patient_ref": {
|
|
3013
|
+
"type": "string"
|
|
3014
|
+
}
|
|
3015
|
+
},
|
|
3016
|
+
"required": [
|
|
3017
|
+
"patient_ref",
|
|
3018
|
+
"opted_out"
|
|
3019
|
+
],
|
|
3020
|
+
"type": "object"
|
|
3021
|
+
},
|
|
3022
|
+
"OutcomeRequest": {
|
|
3023
|
+
"properties": {
|
|
3024
|
+
"delivered": {
|
|
3025
|
+
"description": "The customer delivered a message for this turn.",
|
|
3026
|
+
"type": "boolean"
|
|
3027
|
+
},
|
|
3028
|
+
"delivered_at": {
|
|
3029
|
+
"format": "date-time",
|
|
3030
|
+
"type": "string"
|
|
3031
|
+
},
|
|
3032
|
+
"delivered_content_hash": {
|
|
3033
|
+
"description": "SHA-256, hex, of the UTF-8 text delivered. Required when `delivered`.",
|
|
3034
|
+
"type": [
|
|
3035
|
+
"string",
|
|
3036
|
+
"null"
|
|
3037
|
+
]
|
|
3038
|
+
},
|
|
3039
|
+
"delivery_ref": {
|
|
3040
|
+
"description": "The customer's own reference for the delivery.",
|
|
3041
|
+
"type": [
|
|
3042
|
+
"string",
|
|
3043
|
+
"null"
|
|
3044
|
+
]
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
"required": [
|
|
3048
|
+
"delivered",
|
|
3049
|
+
"delivered_at"
|
|
3050
|
+
],
|
|
3051
|
+
"type": "object"
|
|
3052
|
+
},
|
|
3053
|
+
"OutcomeView": {
|
|
3054
|
+
"properties": {
|
|
3055
|
+
"delivered": {
|
|
3056
|
+
"type": "boolean"
|
|
3057
|
+
},
|
|
3058
|
+
"delivered_at": {
|
|
3059
|
+
"format": "date-time",
|
|
3060
|
+
"type": "string"
|
|
3061
|
+
},
|
|
3062
|
+
"delivered_content_hash": {
|
|
3063
|
+
"type": [
|
|
3064
|
+
"string",
|
|
3065
|
+
"null"
|
|
3066
|
+
]
|
|
3067
|
+
},
|
|
3068
|
+
"delivery_ref": {
|
|
3069
|
+
"type": [
|
|
3070
|
+
"string",
|
|
3071
|
+
"null"
|
|
3072
|
+
]
|
|
3073
|
+
},
|
|
3074
|
+
"hash_matches_release": {
|
|
3075
|
+
"description": "Whether the delivered hash matches the content the record says was\ndeliverable. `null` when nothing was delivered or there was nothing to\ncompare against.",
|
|
3076
|
+
"type": [
|
|
3077
|
+
"boolean",
|
|
3078
|
+
"null"
|
|
3079
|
+
]
|
|
3080
|
+
},
|
|
3081
|
+
"recorded_at": {
|
|
3082
|
+
"format": "date-time",
|
|
3083
|
+
"type": "string"
|
|
3084
|
+
}
|
|
3085
|
+
},
|
|
3086
|
+
"required": [
|
|
3087
|
+
"delivered",
|
|
3088
|
+
"delivered_at",
|
|
3089
|
+
"recorded_at"
|
|
3090
|
+
],
|
|
3091
|
+
"type": "object"
|
|
3092
|
+
},
|
|
3093
|
+
"PatchApplicationRequest": {
|
|
3094
|
+
"description": "Every field optional; only the ones present change. `channel_policies`\nreplaces the whole map when present (send the full map back).",
|
|
3095
|
+
"properties": {
|
|
3096
|
+
"channel_policies": {
|
|
3097
|
+
"additionalProperties": {
|
|
3098
|
+
"$ref": "#/components/schemas/ChannelPolicy"
|
|
3099
|
+
},
|
|
3100
|
+
"propertyNames": {
|
|
3101
|
+
"type": "string"
|
|
3102
|
+
},
|
|
3103
|
+
"type": [
|
|
3104
|
+
"object",
|
|
3105
|
+
"null"
|
|
3106
|
+
]
|
|
3107
|
+
},
|
|
3108
|
+
"default_mode": {
|
|
3109
|
+
"oneOf": [
|
|
3110
|
+
{
|
|
3111
|
+
"type": "null"
|
|
3112
|
+
},
|
|
3113
|
+
{
|
|
3114
|
+
"$ref": "#/components/schemas/GovernMode"
|
|
3115
|
+
}
|
|
3116
|
+
]
|
|
3117
|
+
},
|
|
3118
|
+
"frequency_cap": {
|
|
3119
|
+
"oneOf": [
|
|
3120
|
+
{
|
|
3121
|
+
"type": "null"
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
"$ref": "#/components/schemas/FrequencyCap",
|
|
3125
|
+
"description": "`null` removes the cap."
|
|
3126
|
+
}
|
|
3127
|
+
]
|
|
3128
|
+
},
|
|
3129
|
+
"handoff_routing": {
|
|
3130
|
+
"oneOf": [
|
|
3131
|
+
{
|
|
3132
|
+
"type": "null"
|
|
3133
|
+
},
|
|
3134
|
+
{
|
|
3135
|
+
"$ref": "#/components/schemas/RoutingPolicy",
|
|
3136
|
+
"description": "`null` clears the routing; hand-offs then open with the\norganization's default queue and no deadlines."
|
|
3137
|
+
}
|
|
3138
|
+
]
|
|
3139
|
+
},
|
|
3140
|
+
"name": {
|
|
3141
|
+
"type": [
|
|
3142
|
+
"string",
|
|
3143
|
+
"null"
|
|
3144
|
+
]
|
|
3145
|
+
},
|
|
3146
|
+
"project_id": {
|
|
3147
|
+
"description": "`null` clears the project scope back to the organization policy.",
|
|
3148
|
+
"format": "int32",
|
|
3149
|
+
"type": [
|
|
3150
|
+
"integer",
|
|
3151
|
+
"null"
|
|
3152
|
+
]
|
|
3153
|
+
},
|
|
3154
|
+
"red_flag_categories": {
|
|
3155
|
+
"description": "Replaces the whole list when present; must not be empty.",
|
|
3156
|
+
"items": {
|
|
3157
|
+
"type": "string"
|
|
3158
|
+
},
|
|
3159
|
+
"type": [
|
|
3160
|
+
"array",
|
|
3161
|
+
"null"
|
|
3162
|
+
]
|
|
3163
|
+
},
|
|
3164
|
+
"webhook_url": {
|
|
3165
|
+
"type": [
|
|
3166
|
+
"string",
|
|
3167
|
+
"null"
|
|
3168
|
+
]
|
|
3169
|
+
}
|
|
3170
|
+
},
|
|
3171
|
+
"type": "object"
|
|
3172
|
+
},
|
|
3173
|
+
"PatientEventView": {
|
|
3174
|
+
"properties": {
|
|
3175
|
+
"channel": {
|
|
3176
|
+
"type": [
|
|
3177
|
+
"string",
|
|
3178
|
+
"null"
|
|
3179
|
+
]
|
|
3180
|
+
},
|
|
3181
|
+
"decision_id": {
|
|
3182
|
+
"format": "uuid",
|
|
3183
|
+
"type": [
|
|
3184
|
+
"string",
|
|
3185
|
+
"null"
|
|
3186
|
+
]
|
|
3187
|
+
},
|
|
3188
|
+
"id": {
|
|
3189
|
+
"format": "uuid",
|
|
3190
|
+
"type": "string"
|
|
3191
|
+
},
|
|
3192
|
+
"kind": {
|
|
3193
|
+
"type": "string"
|
|
3194
|
+
},
|
|
3195
|
+
"occurred_at": {
|
|
3196
|
+
"format": "date-time",
|
|
3197
|
+
"type": "string"
|
|
3198
|
+
},
|
|
3199
|
+
"recorded_at": {
|
|
3200
|
+
"format": "date-time",
|
|
3201
|
+
"type": "string"
|
|
3202
|
+
},
|
|
3203
|
+
"source": {
|
|
3204
|
+
"type": "string"
|
|
3205
|
+
}
|
|
3206
|
+
},
|
|
3207
|
+
"required": [
|
|
3208
|
+
"id",
|
|
3209
|
+
"kind",
|
|
3210
|
+
"source",
|
|
3211
|
+
"occurred_at",
|
|
3212
|
+
"recorded_at"
|
|
3213
|
+
],
|
|
3214
|
+
"type": "object"
|
|
3215
|
+
},
|
|
3216
|
+
"PatientStateRequest": {
|
|
3217
|
+
"description": "`POST /api/v1/govern/patients/state`: a read, as a POST so the reference\nstays out of the URL.",
|
|
3218
|
+
"properties": {
|
|
3219
|
+
"patient_ref": {
|
|
3220
|
+
"type": "string"
|
|
3221
|
+
}
|
|
3222
|
+
},
|
|
3223
|
+
"required": [
|
|
3224
|
+
"patient_ref"
|
|
3225
|
+
],
|
|
3226
|
+
"type": "object"
|
|
3227
|
+
},
|
|
3228
|
+
"PatientStateView": {
|
|
3229
|
+
"description": "The state as the contract shows it. The reference itself is never in it.",
|
|
3230
|
+
"properties": {
|
|
3231
|
+
"application_id": {
|
|
3232
|
+
"format": "uuid",
|
|
3233
|
+
"type": "string"
|
|
3234
|
+
},
|
|
3235
|
+
"consent_changed_at": {
|
|
3236
|
+
"format": "date-time",
|
|
3237
|
+
"type": [
|
|
3238
|
+
"string",
|
|
3239
|
+
"null"
|
|
3240
|
+
]
|
|
3241
|
+
},
|
|
3242
|
+
"consent_state": {
|
|
3243
|
+
"description": "`unknown` | `granted` | `revoked`.",
|
|
3244
|
+
"type": "string"
|
|
3245
|
+
},
|
|
3246
|
+
"events": {
|
|
3247
|
+
"description": "The most recent transitions, newest first (at most twenty).",
|
|
3248
|
+
"items": {
|
|
3249
|
+
"$ref": "#/components/schemas/PatientEventView"
|
|
3250
|
+
},
|
|
3251
|
+
"type": "array"
|
|
3252
|
+
},
|
|
3253
|
+
"frequency": {
|
|
3254
|
+
"oneOf": [
|
|
3255
|
+
{
|
|
3256
|
+
"type": "null"
|
|
3257
|
+
},
|
|
3258
|
+
{
|
|
3259
|
+
"$ref": "#/components/schemas/FrequencyView"
|
|
3260
|
+
}
|
|
3261
|
+
]
|
|
3262
|
+
},
|
|
3263
|
+
"last_contact_at": {
|
|
3264
|
+
"format": "date-time",
|
|
3265
|
+
"type": [
|
|
3266
|
+
"string",
|
|
3267
|
+
"null"
|
|
3268
|
+
]
|
|
3269
|
+
},
|
|
3270
|
+
"opted_out": {
|
|
3271
|
+
"type": "boolean"
|
|
3272
|
+
},
|
|
3273
|
+
"opted_out_changed_at": {
|
|
3274
|
+
"format": "date-time",
|
|
3275
|
+
"type": [
|
|
3276
|
+
"string",
|
|
3277
|
+
"null"
|
|
3278
|
+
]
|
|
3279
|
+
},
|
|
3280
|
+
"opted_out_source": {
|
|
3281
|
+
"type": [
|
|
3282
|
+
"string",
|
|
3283
|
+
"null"
|
|
3284
|
+
]
|
|
3285
|
+
},
|
|
3286
|
+
"patient_ref_hash": {
|
|
3287
|
+
"type": "string"
|
|
3288
|
+
}
|
|
3289
|
+
},
|
|
3290
|
+
"required": [
|
|
3291
|
+
"application_id",
|
|
3292
|
+
"patient_ref_hash",
|
|
3293
|
+
"consent_state",
|
|
3294
|
+
"opted_out",
|
|
3295
|
+
"events"
|
|
3296
|
+
],
|
|
3297
|
+
"type": "object"
|
|
3298
|
+
},
|
|
3299
|
+
"PolicyBreakdown": {
|
|
3300
|
+
"allOf": [
|
|
3301
|
+
{
|
|
3302
|
+
"$ref": "#/components/schemas/Counts"
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
"properties": {
|
|
3306
|
+
"policy_id": {
|
|
3307
|
+
"format": "uuid",
|
|
3308
|
+
"type": [
|
|
3309
|
+
"string",
|
|
3310
|
+
"null"
|
|
3311
|
+
]
|
|
3312
|
+
},
|
|
3313
|
+
"policy_name": {
|
|
3314
|
+
"type": [
|
|
3315
|
+
"string",
|
|
3316
|
+
"null"
|
|
3317
|
+
]
|
|
3318
|
+
},
|
|
3319
|
+
"policy_version": {
|
|
3320
|
+
"format": "int32",
|
|
3321
|
+
"type": [
|
|
3322
|
+
"integer",
|
|
3323
|
+
"null"
|
|
3324
|
+
]
|
|
3325
|
+
}
|
|
3326
|
+
},
|
|
3327
|
+
"type": "object"
|
|
3328
|
+
}
|
|
3329
|
+
]
|
|
3330
|
+
},
|
|
3331
|
+
"PolicyRef": {
|
|
3332
|
+
"properties": {
|
|
3333
|
+
"id": {
|
|
3334
|
+
"format": "uuid",
|
|
3335
|
+
"type": "string"
|
|
3336
|
+
},
|
|
3337
|
+
"name": {
|
|
3338
|
+
"type": "string"
|
|
3339
|
+
},
|
|
3340
|
+
"version": {
|
|
3341
|
+
"format": "int32",
|
|
3342
|
+
"type": "integer"
|
|
3343
|
+
}
|
|
3344
|
+
},
|
|
3345
|
+
"required": [
|
|
3346
|
+
"id",
|
|
3347
|
+
"name",
|
|
3348
|
+
"version"
|
|
3349
|
+
],
|
|
3350
|
+
"type": "object"
|
|
3351
|
+
},
|
|
3352
|
+
"PurgeResponse": {
|
|
3353
|
+
"properties": {
|
|
3354
|
+
"application_id": {
|
|
3355
|
+
"format": "uuid",
|
|
3356
|
+
"type": "string"
|
|
3357
|
+
},
|
|
3358
|
+
"patient_events_removed": {
|
|
3359
|
+
"format": "int64",
|
|
3360
|
+
"minimum": 0,
|
|
3361
|
+
"type": "integer"
|
|
3362
|
+
},
|
|
3363
|
+
"patient_states_removed": {
|
|
3364
|
+
"format": "int64",
|
|
3365
|
+
"minimum": 0,
|
|
3366
|
+
"type": "integer"
|
|
3367
|
+
}
|
|
3368
|
+
},
|
|
3369
|
+
"required": [
|
|
3370
|
+
"application_id",
|
|
3371
|
+
"patient_states_removed",
|
|
3372
|
+
"patient_events_removed"
|
|
3373
|
+
],
|
|
3374
|
+
"type": "object"
|
|
3375
|
+
},
|
|
3376
|
+
"Rates": {
|
|
3377
|
+
"description": "Fractions in `[0, 1]`, never percentages: the share of decided observe\nturns the gate would have withheld, and of decided enforce turns it held.",
|
|
3378
|
+
"properties": {
|
|
3379
|
+
"enforced_held": {
|
|
3380
|
+
"format": "double",
|
|
3381
|
+
"type": [
|
|
3382
|
+
"number",
|
|
3383
|
+
"null"
|
|
3384
|
+
]
|
|
3385
|
+
},
|
|
3386
|
+
"would_have_withheld": {
|
|
3387
|
+
"format": "double",
|
|
3388
|
+
"type": [
|
|
3389
|
+
"number",
|
|
3390
|
+
"null"
|
|
3391
|
+
]
|
|
3392
|
+
}
|
|
3393
|
+
},
|
|
3394
|
+
"type": "object"
|
|
3395
|
+
},
|
|
3396
|
+
"RecordDisclosureRequest": {
|
|
3397
|
+
"properties": {
|
|
3398
|
+
"application_id": {
|
|
3399
|
+
"description": "Optional; when present it must be the application the key is bound to.",
|
|
3400
|
+
"format": "uuid",
|
|
3401
|
+
"type": [
|
|
3402
|
+
"string",
|
|
3403
|
+
"null"
|
|
3404
|
+
]
|
|
3405
|
+
},
|
|
3406
|
+
"at": {
|
|
3407
|
+
"description": "When it was shown.",
|
|
3408
|
+
"format": "date-time",
|
|
3409
|
+
"type": "string"
|
|
3410
|
+
},
|
|
3411
|
+
"channel": {
|
|
3412
|
+
"$ref": "#/components/schemas/GovernChannel"
|
|
3413
|
+
},
|
|
3414
|
+
"conversation_id": {
|
|
3415
|
+
"type": "string"
|
|
3416
|
+
},
|
|
3417
|
+
"text_shown": {
|
|
3418
|
+
"description": "The disclosure text the patient was shown, verbatim.",
|
|
3419
|
+
"type": "string"
|
|
3420
|
+
}
|
|
3421
|
+
},
|
|
3422
|
+
"required": [
|
|
3423
|
+
"conversation_id",
|
|
3424
|
+
"channel",
|
|
3425
|
+
"text_shown",
|
|
3426
|
+
"at"
|
|
3427
|
+
],
|
|
3428
|
+
"type": "object"
|
|
3429
|
+
},
|
|
3430
|
+
"ResolveRequest": {
|
|
3431
|
+
"properties": {
|
|
3432
|
+
"disposition": {
|
|
3433
|
+
"type": "string"
|
|
3434
|
+
},
|
|
3435
|
+
"expected_version": {
|
|
3436
|
+
"format": "int32",
|
|
3437
|
+
"type": "integer"
|
|
3438
|
+
},
|
|
3439
|
+
"note": {
|
|
3440
|
+
"type": "string"
|
|
3441
|
+
},
|
|
3442
|
+
"resume_automation": {
|
|
3443
|
+
"type": "boolean"
|
|
3444
|
+
}
|
|
3445
|
+
},
|
|
3446
|
+
"required": [
|
|
3447
|
+
"expected_version",
|
|
3448
|
+
"disposition",
|
|
3449
|
+
"note",
|
|
3450
|
+
"resume_automation"
|
|
3451
|
+
],
|
|
3452
|
+
"type": "object"
|
|
3453
|
+
},
|
|
3454
|
+
"ResumeRequest": {
|
|
3455
|
+
"properties": {
|
|
3456
|
+
"expected_version": {
|
|
3457
|
+
"format": "int32",
|
|
3458
|
+
"type": "integer"
|
|
3459
|
+
},
|
|
3460
|
+
"note": {
|
|
3461
|
+
"type": "string"
|
|
3462
|
+
}
|
|
3463
|
+
},
|
|
3464
|
+
"required": [
|
|
3465
|
+
"expected_version",
|
|
3466
|
+
"note"
|
|
3467
|
+
],
|
|
3468
|
+
"type": "object"
|
|
3469
|
+
},
|
|
3470
|
+
"ReviewState": {
|
|
3471
|
+
"enum": [
|
|
3472
|
+
"pending",
|
|
3473
|
+
"released",
|
|
3474
|
+
"rejected"
|
|
3475
|
+
],
|
|
3476
|
+
"type": "string"
|
|
3477
|
+
},
|
|
3478
|
+
"RotateKeyBody": {
|
|
3479
|
+
"properties": {
|
|
3480
|
+
"overlap_seconds": {
|
|
3481
|
+
"description": "How long the previous keys keep authenticating after this rotation.\nDefault one day; at most seven. Zero refuses the previous keys at once.",
|
|
3482
|
+
"format": "int64",
|
|
3483
|
+
"type": [
|
|
3484
|
+
"integer",
|
|
3485
|
+
"null"
|
|
3486
|
+
]
|
|
3487
|
+
}
|
|
3488
|
+
},
|
|
3489
|
+
"type": "object"
|
|
3490
|
+
},
|
|
3491
|
+
"RotateKeyResponse": {
|
|
3492
|
+
"properties": {
|
|
3493
|
+
"key": {
|
|
3494
|
+
"$ref": "#/components/schemas/MintedKeyDto"
|
|
3495
|
+
},
|
|
3496
|
+
"previous_keys_expire_at": {
|
|
3497
|
+
"description": "When every previous key of the application stops authenticating.",
|
|
3498
|
+
"format": "date-time",
|
|
3499
|
+
"type": "string"
|
|
3500
|
+
}
|
|
3501
|
+
},
|
|
3502
|
+
"required": [
|
|
3503
|
+
"key",
|
|
3504
|
+
"previous_keys_expire_at"
|
|
3505
|
+
],
|
|
3506
|
+
"type": "object"
|
|
3507
|
+
},
|
|
3508
|
+
"RoutingPolicy": {
|
|
3509
|
+
"additionalProperties": false,
|
|
3510
|
+
"properties": {
|
|
3511
|
+
"backup_user_ids": {
|
|
3512
|
+
"items": {
|
|
3513
|
+
"format": "uuid",
|
|
3514
|
+
"type": "string"
|
|
3515
|
+
},
|
|
3516
|
+
"type": "array"
|
|
3517
|
+
},
|
|
3518
|
+
"coverage_note": {
|
|
3519
|
+
"description": "Operator-facing note; free text.",
|
|
3520
|
+
"type": "string"
|
|
3521
|
+
},
|
|
3522
|
+
"escalation_seconds": {
|
|
3523
|
+
"description": "Additional elapsed time after the response deadline before backup routing.",
|
|
3524
|
+
"format": "int64",
|
|
3525
|
+
"type": "integer"
|
|
3526
|
+
},
|
|
3527
|
+
"primary_user_ids": {
|
|
3528
|
+
"items": {
|
|
3529
|
+
"format": "uuid",
|
|
3530
|
+
"type": "string"
|
|
3531
|
+
},
|
|
3532
|
+
"type": "array"
|
|
3533
|
+
},
|
|
3534
|
+
"queue_label": {
|
|
3535
|
+
"type": "string"
|
|
3536
|
+
},
|
|
3537
|
+
"response_seconds": {
|
|
3538
|
+
"format": "int64",
|
|
3539
|
+
"type": "integer"
|
|
3540
|
+
}
|
|
3541
|
+
},
|
|
3542
|
+
"required": [
|
|
3543
|
+
"queue_label",
|
|
3544
|
+
"primary_user_ids",
|
|
3545
|
+
"backup_user_ids",
|
|
3546
|
+
"response_seconds",
|
|
3547
|
+
"escalation_seconds",
|
|
3548
|
+
"coverage_note"
|
|
3549
|
+
],
|
|
3550
|
+
"type": "object"
|
|
3551
|
+
},
|
|
3552
|
+
"Totals": {
|
|
3553
|
+
"properties": {
|
|
3554
|
+
"decisions": {
|
|
3555
|
+
"description": "Every decision record in the window, any mode or status.",
|
|
3556
|
+
"format": "int64",
|
|
3557
|
+
"type": "integer"
|
|
3558
|
+
},
|
|
3559
|
+
"enforce": {
|
|
3560
|
+
"format": "int64",
|
|
3561
|
+
"type": "integer"
|
|
3562
|
+
},
|
|
3563
|
+
"observe": {
|
|
3564
|
+
"format": "int64",
|
|
3565
|
+
"type": "integer"
|
|
3566
|
+
},
|
|
3567
|
+
"pending": {
|
|
3568
|
+
"format": "int64",
|
|
3569
|
+
"type": "integer"
|
|
3570
|
+
},
|
|
3571
|
+
"transcript": {
|
|
3572
|
+
"description": "Records that came from a transcript batch rather than a\nlive call; always observe, counted in `observe` as well.",
|
|
3573
|
+
"format": "int64",
|
|
3574
|
+
"type": "integer"
|
|
3575
|
+
},
|
|
3576
|
+
"unavailable": {
|
|
3577
|
+
"format": "int64",
|
|
3578
|
+
"type": "integer"
|
|
3579
|
+
}
|
|
3580
|
+
},
|
|
3581
|
+
"required": [
|
|
3582
|
+
"decisions",
|
|
3583
|
+
"observe",
|
|
3584
|
+
"enforce",
|
|
3585
|
+
"pending",
|
|
3586
|
+
"unavailable",
|
|
3587
|
+
"transcript"
|
|
3588
|
+
],
|
|
3589
|
+
"type": "object"
|
|
3590
|
+
},
|
|
3591
|
+
"TranscriptBatch": {
|
|
3592
|
+
"properties": {
|
|
3593
|
+
"application_id": {
|
|
3594
|
+
"description": "Optional; when present it must be the application the key is bound to.",
|
|
3595
|
+
"format": "uuid",
|
|
3596
|
+
"type": [
|
|
3597
|
+
"string",
|
|
3598
|
+
"null"
|
|
3599
|
+
]
|
|
3600
|
+
},
|
|
3601
|
+
"turns": {
|
|
3602
|
+
"description": "One to 1,000 turns; `turn_id` unique within the batch.",
|
|
3603
|
+
"items": {
|
|
3604
|
+
"$ref": "#/components/schemas/TranscriptTurn"
|
|
3605
|
+
},
|
|
3606
|
+
"type": "array"
|
|
3607
|
+
}
|
|
3608
|
+
},
|
|
3609
|
+
"required": [
|
|
3610
|
+
"turns"
|
|
3611
|
+
],
|
|
3612
|
+
"type": "object"
|
|
3613
|
+
},
|
|
3614
|
+
"TranscriptJobStatus": {
|
|
3615
|
+
"enum": [
|
|
3616
|
+
"queued",
|
|
3617
|
+
"running",
|
|
3618
|
+
"completed",
|
|
3619
|
+
"failed"
|
|
3620
|
+
],
|
|
3621
|
+
"type": "string"
|
|
3622
|
+
},
|
|
3623
|
+
"TranscriptJobView": {
|
|
3624
|
+
"description": "A job as the contract presents it. Counts, never text.",
|
|
3625
|
+
"properties": {
|
|
3626
|
+
"abandoned": {
|
|
3627
|
+
"description": "Turns a failed job gave up on: never evaluated, no decision, their\ntext cleared with the job. Only ever non-zero when `status` is\n`failed`.",
|
|
3628
|
+
"format": "int64",
|
|
3629
|
+
"type": "integer"
|
|
3630
|
+
},
|
|
3631
|
+
"application_id": {
|
|
3632
|
+
"format": "uuid",
|
|
3633
|
+
"type": "string"
|
|
3634
|
+
},
|
|
3635
|
+
"duplicate": {
|
|
3636
|
+
"format": "int64",
|
|
3637
|
+
"type": "integer"
|
|
3638
|
+
},
|
|
3639
|
+
"error": {
|
|
3640
|
+
"description": "A code when `status` is `failed`.",
|
|
3641
|
+
"type": [
|
|
3642
|
+
"string",
|
|
3643
|
+
"null"
|
|
3644
|
+
]
|
|
3645
|
+
},
|
|
3646
|
+
"evaluated": {
|
|
3647
|
+
"format": "int64",
|
|
3648
|
+
"type": "integer"
|
|
3649
|
+
},
|
|
3650
|
+
"finished_at": {
|
|
3651
|
+
"format": "date-time",
|
|
3652
|
+
"type": [
|
|
3653
|
+
"string",
|
|
3654
|
+
"null"
|
|
3655
|
+
]
|
|
3656
|
+
},
|
|
3657
|
+
"job_id": {
|
|
3658
|
+
"format": "uuid",
|
|
3659
|
+
"type": "string"
|
|
3660
|
+
},
|
|
3661
|
+
"processed": {
|
|
3662
|
+
"description": "Turns processed so far: `evaluated + duplicate`.",
|
|
3663
|
+
"format": "int64",
|
|
3664
|
+
"type": "integer"
|
|
3665
|
+
},
|
|
3666
|
+
"started_at": {
|
|
3667
|
+
"format": "date-time",
|
|
3668
|
+
"type": [
|
|
3669
|
+
"string",
|
|
3670
|
+
"null"
|
|
3671
|
+
]
|
|
3672
|
+
},
|
|
3673
|
+
"status": {
|
|
3674
|
+
"$ref": "#/components/schemas/TranscriptJobStatus"
|
|
3675
|
+
},
|
|
3676
|
+
"submitted_at": {
|
|
3677
|
+
"format": "date-time",
|
|
3678
|
+
"type": "string"
|
|
3679
|
+
},
|
|
3680
|
+
"total": {
|
|
3681
|
+
"description": "Turns in the batch.",
|
|
3682
|
+
"format": "int64",
|
|
3683
|
+
"type": "integer"
|
|
3684
|
+
},
|
|
3685
|
+
"unavailable": {
|
|
3686
|
+
"description": "Evaluated turns the gate did not answer for.",
|
|
3687
|
+
"format": "int64",
|
|
3688
|
+
"type": "integer"
|
|
3689
|
+
},
|
|
3690
|
+
"would_have": {
|
|
3691
|
+
"additionalProperties": {
|
|
3692
|
+
"format": "int64",
|
|
3693
|
+
"type": "integer"
|
|
3694
|
+
},
|
|
3695
|
+
"description": "Raw gate decisions over the evaluated turns that are decided:\n`allow`, `rewrite`, `block_and_review`, `policy_missing`,\n`unavailable`.",
|
|
3696
|
+
"propertyNames": {
|
|
3697
|
+
"type": "string"
|
|
3698
|
+
},
|
|
3699
|
+
"type": "object"
|
|
3700
|
+
}
|
|
3701
|
+
},
|
|
3702
|
+
"required": [
|
|
3703
|
+
"job_id",
|
|
3704
|
+
"application_id",
|
|
3705
|
+
"status",
|
|
3706
|
+
"total",
|
|
3707
|
+
"processed",
|
|
3708
|
+
"evaluated",
|
|
3709
|
+
"duplicate",
|
|
3710
|
+
"abandoned",
|
|
3711
|
+
"unavailable",
|
|
3712
|
+
"would_have",
|
|
3713
|
+
"submitted_at"
|
|
3714
|
+
],
|
|
3715
|
+
"type": "object"
|
|
3716
|
+
},
|
|
3717
|
+
"TranscriptTurn": {
|
|
3718
|
+
"description": "One past turn as the customer posts it.",
|
|
3719
|
+
"properties": {
|
|
3720
|
+
"audience": {
|
|
3721
|
+
"$ref": "#/components/schemas/GovernAudience"
|
|
3722
|
+
},
|
|
3723
|
+
"channel": {
|
|
3724
|
+
"$ref": "#/components/schemas/GovernChannel"
|
|
3725
|
+
},
|
|
3726
|
+
"content": {
|
|
3727
|
+
"description": "The text that went out.",
|
|
3728
|
+
"type": "string"
|
|
3729
|
+
},
|
|
3730
|
+
"conversation_id": {
|
|
3731
|
+
"type": "string"
|
|
3732
|
+
},
|
|
3733
|
+
"model": {
|
|
3734
|
+
"description": "The model that produced the turn, and its version, as the caller names them. Optional; recorded on the decision, never interpreted. Batches from before and after a model change are told apart by these.",
|
|
3735
|
+
"type": [
|
|
3736
|
+
"string",
|
|
3737
|
+
"null"
|
|
3738
|
+
]
|
|
3739
|
+
},
|
|
3740
|
+
"model_version": {
|
|
3741
|
+
"type": [
|
|
3742
|
+
"string",
|
|
3743
|
+
"null"
|
|
3744
|
+
]
|
|
3745
|
+
},
|
|
3746
|
+
"sent_at": {
|
|
3747
|
+
"description": "When it went out. The observe report windows on it.",
|
|
3748
|
+
"format": "date-time",
|
|
3749
|
+
"type": "string"
|
|
3750
|
+
},
|
|
3751
|
+
"turn_id": {
|
|
3752
|
+
"description": "The idempotency key per application: a turn the application already\nhas a decision for is a `duplicate`. Must not start with `govern:`,\nwhich is reserved for the rows the platform writes.",
|
|
3753
|
+
"type": "string"
|
|
3754
|
+
}
|
|
3755
|
+
},
|
|
3756
|
+
"required": [
|
|
3757
|
+
"conversation_id",
|
|
3758
|
+
"turn_id",
|
|
3759
|
+
"channel",
|
|
3760
|
+
"audience",
|
|
3761
|
+
"content",
|
|
3762
|
+
"sent_at"
|
|
3763
|
+
],
|
|
3764
|
+
"type": "object"
|
|
3765
|
+
},
|
|
3766
|
+
"TranscriptTurnView": {
|
|
3767
|
+
"description": "One turn of a job, with the decision it produced or matched.",
|
|
3768
|
+
"properties": {
|
|
3769
|
+
"audience": {
|
|
3770
|
+
"type": "string"
|
|
3771
|
+
},
|
|
3772
|
+
"channel": {
|
|
3773
|
+
"type": "string"
|
|
3774
|
+
},
|
|
3775
|
+
"conversation_id": {
|
|
3776
|
+
"type": "string"
|
|
3777
|
+
},
|
|
3778
|
+
"decision_id": {
|
|
3779
|
+
"format": "uuid",
|
|
3780
|
+
"type": [
|
|
3781
|
+
"string",
|
|
3782
|
+
"null"
|
|
3783
|
+
]
|
|
3784
|
+
},
|
|
3785
|
+
"decision_status": {
|
|
3786
|
+
"oneOf": [
|
|
3787
|
+
{
|
|
3788
|
+
"type": "null"
|
|
3789
|
+
},
|
|
3790
|
+
{
|
|
3791
|
+
"$ref": "#/components/schemas/DecisionStatus"
|
|
3792
|
+
}
|
|
3793
|
+
]
|
|
3794
|
+
},
|
|
3795
|
+
"disposition": {
|
|
3796
|
+
"oneOf": [
|
|
3797
|
+
{
|
|
3798
|
+
"type": "null"
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
"$ref": "#/components/schemas/TurnDisposition",
|
|
3802
|
+
"description": "Absent until the turn is processed."
|
|
3803
|
+
}
|
|
3804
|
+
]
|
|
3805
|
+
},
|
|
3806
|
+
"position": {
|
|
3807
|
+
"format": "int32",
|
|
3808
|
+
"type": "integer"
|
|
3809
|
+
},
|
|
3810
|
+
"reasons": {
|
|
3811
|
+
"items": {
|
|
3812
|
+
"type": "string"
|
|
3813
|
+
},
|
|
3814
|
+
"type": "array"
|
|
3815
|
+
},
|
|
3816
|
+
"sent_at": {
|
|
3817
|
+
"format": "date-time",
|
|
3818
|
+
"type": "string"
|
|
3819
|
+
},
|
|
3820
|
+
"turn_id": {
|
|
3821
|
+
"type": "string"
|
|
3822
|
+
},
|
|
3823
|
+
"would_have": {
|
|
3824
|
+
"type": [
|
|
3825
|
+
"string",
|
|
3826
|
+
"null"
|
|
3827
|
+
]
|
|
3828
|
+
}
|
|
3829
|
+
},
|
|
3830
|
+
"required": [
|
|
3831
|
+
"position",
|
|
3832
|
+
"conversation_id",
|
|
3833
|
+
"turn_id",
|
|
3834
|
+
"channel",
|
|
3835
|
+
"audience",
|
|
3836
|
+
"sent_at",
|
|
3837
|
+
"reasons"
|
|
3838
|
+
],
|
|
3839
|
+
"type": "object"
|
|
3840
|
+
},
|
|
3841
|
+
"TurnDisposition": {
|
|
3842
|
+
"enum": [
|
|
3843
|
+
"evaluated",
|
|
3844
|
+
"duplicate",
|
|
3845
|
+
"abandoned"
|
|
3846
|
+
],
|
|
3847
|
+
"type": "string"
|
|
3848
|
+
},
|
|
3849
|
+
"Value": {},
|
|
3850
|
+
"VersionRequest": {
|
|
3851
|
+
"properties": {
|
|
3852
|
+
"expected_version": {
|
|
3853
|
+
"format": "int32",
|
|
3854
|
+
"type": "integer"
|
|
3855
|
+
}
|
|
3856
|
+
},
|
|
3857
|
+
"required": [
|
|
3858
|
+
"expected_version"
|
|
3859
|
+
],
|
|
3860
|
+
"type": "object"
|
|
3861
|
+
},
|
|
3862
|
+
"WebhookDeliveryView": {
|
|
3863
|
+
"description": "A delivery as the contract shows it on the decision. Counts and codes,\nnever the body.",
|
|
3864
|
+
"properties": {
|
|
3865
|
+
"attempts": {
|
|
3866
|
+
"format": "int32",
|
|
3867
|
+
"type": "integer"
|
|
3868
|
+
},
|
|
3869
|
+
"created_at": {
|
|
3870
|
+
"format": "date-time",
|
|
3871
|
+
"type": "string"
|
|
3872
|
+
},
|
|
3873
|
+
"decision_id": {
|
|
3874
|
+
"format": "uuid",
|
|
3875
|
+
"type": [
|
|
3876
|
+
"string",
|
|
3877
|
+
"null"
|
|
3878
|
+
]
|
|
3879
|
+
},
|
|
3880
|
+
"delivered_at": {
|
|
3881
|
+
"format": "date-time",
|
|
3882
|
+
"type": [
|
|
3883
|
+
"string",
|
|
3884
|
+
"null"
|
|
3885
|
+
]
|
|
3886
|
+
},
|
|
3887
|
+
"event": {
|
|
3888
|
+
"type": "string"
|
|
3889
|
+
},
|
|
3890
|
+
"handoff_id": {
|
|
3891
|
+
"format": "uuid",
|
|
3892
|
+
"type": [
|
|
3893
|
+
"string",
|
|
3894
|
+
"null"
|
|
3895
|
+
]
|
|
3896
|
+
},
|
|
3897
|
+
"id": {
|
|
3898
|
+
"format": "uuid",
|
|
3899
|
+
"type": "string"
|
|
3900
|
+
},
|
|
3901
|
+
"last_attempt_at": {
|
|
3902
|
+
"format": "date-time",
|
|
3903
|
+
"type": [
|
|
3904
|
+
"string",
|
|
3905
|
+
"null"
|
|
3906
|
+
]
|
|
3907
|
+
},
|
|
3908
|
+
"last_error": {
|
|
3909
|
+
"type": [
|
|
3910
|
+
"string",
|
|
3911
|
+
"null"
|
|
3912
|
+
]
|
|
3913
|
+
},
|
|
3914
|
+
"last_status_code": {
|
|
3915
|
+
"format": "int32",
|
|
3916
|
+
"type": [
|
|
3917
|
+
"integer",
|
|
3918
|
+
"null"
|
|
3919
|
+
]
|
|
3920
|
+
},
|
|
3921
|
+
"next_attempt_at": {
|
|
3922
|
+
"format": "date-time",
|
|
3923
|
+
"type": [
|
|
3924
|
+
"string",
|
|
3925
|
+
"null"
|
|
3926
|
+
]
|
|
3927
|
+
},
|
|
3928
|
+
"status": {
|
|
3929
|
+
"description": "`pending` | `delivered` | `exhausted` | `skipped`.",
|
|
3930
|
+
"type": "string"
|
|
3931
|
+
},
|
|
3932
|
+
"subject_version": {
|
|
3933
|
+
"description": "The revision of the subject this delivery is about: the hand-off's\n`version` at the change, or `0` for an event keyed to the subject's\nwhole lifetime. Two deliveries of one event differ here.",
|
|
3934
|
+
"format": "int32",
|
|
3935
|
+
"type": "integer"
|
|
3936
|
+
}
|
|
3937
|
+
},
|
|
3938
|
+
"required": [
|
|
3939
|
+
"id",
|
|
3940
|
+
"event",
|
|
3941
|
+
"subject_version",
|
|
3942
|
+
"status",
|
|
3943
|
+
"attempts",
|
|
3944
|
+
"created_at"
|
|
3945
|
+
],
|
|
3946
|
+
"type": "object"
|
|
3947
|
+
}
|
|
3948
|
+
},
|
|
3949
|
+
"securitySchemes": {
|
|
3950
|
+
"bearer_token": {
|
|
3951
|
+
"bearerFormat": "JWT",
|
|
3952
|
+
"scheme": "bearer",
|
|
3953
|
+
"type": "http"
|
|
3954
|
+
},
|
|
3955
|
+
"platform_app_key": {
|
|
3956
|
+
"bearerFormat": "Platform app key",
|
|
3957
|
+
"scheme": "bearer",
|
|
3958
|
+
"type": "http"
|
|
3959
|
+
},
|
|
3960
|
+
"session_cookie": {
|
|
3961
|
+
"in": "cookie",
|
|
3962
|
+
"name": "auth_session",
|
|
3963
|
+
"type": "apiKey"
|
|
3964
|
+
}
|
|
3965
|
+
}
|
|
3966
|
+
}
|
|
3967
|
+
}
|