@brightoutcome/guidistry-client 0.9.1 → 0.10.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +2028 -46
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -72,6 +72,207 @@ export interface paths {
72
72
  patch?: never;
73
73
  trace?: never;
74
74
  };
75
+ "/v1/agreement-documents": {
76
+ parameters: {
77
+ query?: never;
78
+ header?: never;
79
+ path?: never;
80
+ cookie?: never;
81
+ };
82
+ /**
83
+ * The practice's documents
84
+ * @description Practice staff see their practice's documents (and, for Guidistry admins, BrightOutcome's
85
+ * Terms and Privacy). Templates: ``GET /v1/agreement-templates``.
86
+ */
87
+ get: operations["list_documents_v1_agreement_documents_get"];
88
+ put?: never;
89
+ /** Create a practice document (from a template), with a draft */
90
+ post: operations["create_document_v1_agreement_documents_post"];
91
+ delete?: never;
92
+ options?: never;
93
+ head?: never;
94
+ patch?: never;
95
+ trace?: never;
96
+ };
97
+ "/v1/agreement-documents/{document_id}": {
98
+ parameters: {
99
+ query?: never;
100
+ header?: never;
101
+ path?: never;
102
+ cookie?: never;
103
+ };
104
+ /** A document */
105
+ get: operations["get_document_v1_agreement_documents__document_id__get"];
106
+ put?: never;
107
+ post?: never;
108
+ delete?: never;
109
+ options?: never;
110
+ head?: never;
111
+ /** Rename, archive, or set the practice privacy notice link */
112
+ patch: operations["update_document_v1_agreement_documents__document_id__patch"];
113
+ trace?: never;
114
+ };
115
+ "/v1/agreement-documents/{document_id}/versions": {
116
+ parameters: {
117
+ query?: never;
118
+ header?: never;
119
+ path?: never;
120
+ cookie?: never;
121
+ };
122
+ get?: never;
123
+ put?: never;
124
+ /** Start a draft of the next version (a copy of the current one) */
125
+ post: operations["new_draft_v1_agreement_documents__document_id__versions_post"];
126
+ delete?: never;
127
+ options?: never;
128
+ head?: never;
129
+ patch?: never;
130
+ trace?: never;
131
+ };
132
+ "/v1/agreement-scans/{scan_id}/complete": {
133
+ parameters: {
134
+ query?: never;
135
+ header?: never;
136
+ path?: never;
137
+ cookie?: never;
138
+ };
139
+ get?: never;
140
+ put?: never;
141
+ /** Finish a scan upload (the API checks the file arrived as announced) */
142
+ post: operations["complete_scan_v1_agreement_scans__scan_id__complete_post"];
143
+ delete?: never;
144
+ options?: never;
145
+ head?: never;
146
+ patch?: never;
147
+ trace?: never;
148
+ };
149
+ "/v1/agreement-scans/{scan_id}/link": {
150
+ parameters: {
151
+ query?: never;
152
+ header?: never;
153
+ path?: never;
154
+ cookie?: never;
155
+ };
156
+ /** A 5-minute link to view a scan (audited) */
157
+ get: operations["scan_link_v1_agreement_scans__scan_id__link_get"];
158
+ put?: never;
159
+ post?: never;
160
+ delete?: never;
161
+ options?: never;
162
+ head?: never;
163
+ patch?: never;
164
+ trace?: never;
165
+ };
166
+ "/v1/agreement-signatures": {
167
+ parameters: {
168
+ query?: never;
169
+ header?: never;
170
+ path?: never;
171
+ cookie?: never;
172
+ };
173
+ /** A patient's signatures, scans and passes */
174
+ get: operations["list_signatures_v1_agreement_signatures_get"];
175
+ put?: never;
176
+ /** Record a paper signature, or let a patient in once on a verbal agreement */
177
+ post: operations["create_signature_v1_agreement_signatures_post"];
178
+ delete?: never;
179
+ options?: never;
180
+ head?: never;
181
+ patch?: never;
182
+ trace?: never;
183
+ };
184
+ "/v1/agreement-signatures/{signature_id}/entered-in-error": {
185
+ parameters: {
186
+ query?: never;
187
+ header?: never;
188
+ path?: never;
189
+ cookie?: never;
190
+ };
191
+ get?: never;
192
+ put?: never;
193
+ /** Mark a signature recorded by mistake (the patient owes it again) */
194
+ post: operations["signature_entered_in_error_v1_agreement_signatures__signature_id__entered_in_error_post"];
195
+ delete?: never;
196
+ options?: never;
197
+ head?: never;
198
+ patch?: never;
199
+ trace?: never;
200
+ };
201
+ "/v1/agreement-signatures/{signature_id}/scans": {
202
+ parameters: {
203
+ query?: never;
204
+ header?: never;
205
+ path?: never;
206
+ cookie?: never;
207
+ };
208
+ get?: never;
209
+ put?: never;
210
+ /** Start a scan upload: a presigned POST to the documents bucket */
211
+ post: operations["start_scan_v1_agreement_signatures__signature_id__scans_post"];
212
+ delete?: never;
213
+ options?: never;
214
+ head?: never;
215
+ patch?: never;
216
+ trace?: never;
217
+ };
218
+ "/v1/agreement-templates": {
219
+ parameters: {
220
+ query?: never;
221
+ header?: never;
222
+ path?: never;
223
+ cookie?: never;
224
+ };
225
+ /** BrightOutcome's sample texts (templates; never signed) */
226
+ get: operations["list_templates_v1_agreement_templates_get"];
227
+ put?: never;
228
+ post?: never;
229
+ delete?: never;
230
+ options?: never;
231
+ head?: never;
232
+ patch?: never;
233
+ trace?: never;
234
+ };
235
+ "/v1/agreement-versions/{version_id}": {
236
+ parameters: {
237
+ query?: never;
238
+ header?: never;
239
+ path?: never;
240
+ cookie?: never;
241
+ };
242
+ /** A version's full text */
243
+ get: operations["get_version_v1_agreement_versions__version_id__get"];
244
+ /** Edit a draft */
245
+ put: operations["edit_draft_v1_agreement_versions__version_id__put"];
246
+ post?: never;
247
+ delete?: never;
248
+ options?: never;
249
+ head?: never;
250
+ patch?: never;
251
+ trace?: never;
252
+ };
253
+ "/v1/agreement-versions/{version_id}/publish": {
254
+ parameters: {
255
+ query?: never;
256
+ header?: never;
257
+ path?: never;
258
+ cookie?: never;
259
+ };
260
+ get?: never;
261
+ put?: never;
262
+ /**
263
+ * Publish a draft, with the practice's confirmation
264
+ * @description Practices confirm "Our practice has reviewed this text for use with our patients."
265
+ * (research: "This is the study's IRB-approved text.", optional IRB reference). After the
266
+ * first version: ``material`` (default; everyone signs again, 24 h grace for a visit about to
267
+ * start) or ``minor`` (a reason; signatures stay valid).
268
+ */
269
+ post: operations["publish_v1_agreement_versions__version_id__publish_post"];
270
+ delete?: never;
271
+ options?: never;
272
+ head?: never;
273
+ patch?: never;
274
+ trace?: never;
275
+ };
75
276
  "/v1/agreements": {
76
277
  parameters: {
77
278
  query?: never;
@@ -79,13 +280,17 @@ export interface paths {
79
280
  path?: never;
80
281
  cookie?: never;
81
282
  };
82
- /** Signed agreements */
283
+ /**
284
+ * Signed agreements (module 3; use GET /v1/agreement-signatures)
285
+ * @deprecated
286
+ */
83
287
  get: operations["list_agreements_v1_agreements_get"];
84
288
  put?: never;
85
289
  /**
86
- * Record a signed waiver or consent
87
- * @description January: staff record a waiver signed on paper or elsewhere. Patients sign in the
88
- * portal with module 5.
290
+ * Record a signed waiver (module 3; use POST /v1/agreement-signatures)
291
+ * @deprecated
292
+ * @description Kept until handoff 5 is live: records a paper signature of the cohort's current
293
+ * published version (none yet: recorded without a version, as in module 3).
89
294
  */
90
295
  post: operations["create_agreement_v1_agreements_post"];
91
296
  delete?: never;
@@ -94,6 +299,27 @@ export interface paths {
94
299
  patch?: never;
95
300
  trace?: never;
96
301
  };
302
+ "/v1/agreements/todos": {
303
+ parameters: {
304
+ query?: never;
305
+ header?: never;
306
+ path?: never;
307
+ cookie?: never;
308
+ };
309
+ /**
310
+ * Scans to upload and signatures to collect after a verbal pass
311
+ * @description Cohort leads and facilitators see their cohorts' to-dos; practice admins see the whole
312
+ * practice. Calculated now; module 8 turns them into tasks.
313
+ */
314
+ get: operations["todos_v1_agreements_todos_get"];
315
+ put?: never;
316
+ post?: never;
317
+ delete?: never;
318
+ options?: never;
319
+ head?: never;
320
+ patch?: never;
321
+ trace?: never;
322
+ };
97
323
  "/v1/agreements/{agreement_id}/entered-in-error": {
98
324
  parameters: {
99
325
  query?: never;
@@ -104,9 +330,9 @@ export interface paths {
104
330
  get?: never;
105
331
  put?: never;
106
332
  /**
107
- * Correct an agreement recorded by mistake
108
- * @description Only while no enrollment depends on it: in a cohort that requires an agreement,
109
- * every enrolled member has a signed one (design §5.6). Withdraw the person first.
333
+ * Correct an agreement recorded by mistake (module 3 path)
334
+ * @deprecated
335
+ * @description The patient owes it again (D-029: nothing else depends on it any more).
110
336
  */
111
337
  post: operations["agreement_entered_in_error_v1_agreements__agreement_id__entered_in_error_post"];
112
338
  delete?: never;
@@ -616,7 +842,8 @@ export interface paths {
616
842
  /**
617
843
  * Patients not yet enrolled
618
844
  * @description Every patient this person may see who isn't enrolled anywhere yet, with their stage
619
- * (added → invited → accepted → cleared) and the agreements still missing.
845
+ * (added → invited → accepted) and the agreements they owe (D-029: owing one doesn't stop
846
+ * enrolling; the queue shows an "Owed agreement" badge).
620
847
  */
621
848
  get: operations["enrollment_queue_v1_enrollment_queue_get"];
622
849
  put?: never;
@@ -639,8 +866,9 @@ export interface paths {
639
866
  put?: never;
640
867
  /**
641
868
  * Put a patient in a cohort
642
- * @description ``enrolled`` needs every agreement the cohort requires (409 naming what's missing)
643
- * and a free seat; otherwise start as ``pending`` (or ``waitlisted``).
869
+ * @description ``enrolled`` needs a free seat; otherwise start as ``pending`` (or ``waitlisted``).
870
+ * Agreements no longer gate enrolling: an enrolled member may owe one, which blocks only
871
+ * joining a visit (D-029).
644
872
  */
645
873
  post: operations["create_enrollment_v1_enrollments_post"];
646
874
  delete?: never;
@@ -934,6 +1162,9 @@ export interface paths {
934
1162
  *
935
1163
  * If the address already has a Guidistry login (e.g. from another organization), the new
936
1164
  * membership links to it; the inviting organization is not told either way.
1165
+ *
1166
+ * Patients (module 5, D-029): when the practice has published a site agreement, or
1167
+ * BrightOutcome its Terms and Privacy, the body signs them (``422`` names what's missing).
937
1168
  */
938
1169
  post: operations["accept_invitation_v1_invitations_by_token__token__accept_post"];
939
1170
  delete?: never;
@@ -1010,6 +1241,29 @@ export interface paths {
1010
1241
  patch?: never;
1011
1242
  trace?: never;
1012
1243
  };
1244
+ "/v1/me/agreements": {
1245
+ parameters: {
1246
+ query?: never;
1247
+ header?: never;
1248
+ path?: never;
1249
+ cookie?: never;
1250
+ };
1251
+ /** What I owe and have on file */
1252
+ get: operations["my_agreements_v1_me_agreements_get"];
1253
+ put?: never;
1254
+ /**
1255
+ * Sign an agreement (or tick Guidistry's Terms/Privacy)
1256
+ * @description Every statement agreed and a typed name; only the current version of something the
1257
+ * patient owes (or has to sign again). The patient signs for themself (``signer: patient``);
1258
+ * representatives sign on paper (recorded by staff) in January.
1259
+ */
1260
+ post: operations["sign_v1_me_agreements_post"];
1261
+ delete?: never;
1262
+ options?: never;
1263
+ head?: never;
1264
+ patch?: never;
1265
+ trace?: never;
1266
+ };
1013
1267
  "/v1/me/enrollments": {
1014
1268
  parameters: {
1015
1269
  query?: never;
@@ -1493,6 +1747,27 @@ export interface paths {
1493
1747
  patch?: never;
1494
1748
  trace?: never;
1495
1749
  };
1750
+ "/v1/settings/{key}/history": {
1751
+ parameters: {
1752
+ query?: never;
1753
+ header?: never;
1754
+ path?: never;
1755
+ cookie?: never;
1756
+ };
1757
+ /**
1758
+ * A setting's changes at one scope (who, when, what, why)
1759
+ * @description Readable by anyone who can see settings at that scope (no ``audit.view`` needed).
1760
+ * Changes recorded before Nov 2026's module 5a carry no value or reason.
1761
+ */
1762
+ get: operations["setting_history_v1_settings__key__history_get"];
1763
+ put?: never;
1764
+ post?: never;
1765
+ delete?: never;
1766
+ options?: never;
1767
+ head?: never;
1768
+ patch?: never;
1769
+ trace?: never;
1770
+ };
1496
1771
  "/v1/speech/synthesize": {
1497
1772
  parameters: {
1498
1773
  query?: never;
@@ -1762,6 +2037,40 @@ export interface paths {
1762
2037
  patch?: never;
1763
2038
  trace?: never;
1764
2039
  };
2040
+ "/v1/visits/{visit_id}/join": {
2041
+ parameters: {
2042
+ query?: never;
2043
+ header?: never;
2044
+ path?: never;
2045
+ cookie?: never;
2046
+ };
2047
+ get?: never;
2048
+ put?: never;
2049
+ /** Join a visit (patients): the meeting link, or what to sign first */
2050
+ post: operations["join_visit_v1_visits__visit_id__join_post"];
2051
+ delete?: never;
2052
+ options?: never;
2053
+ head?: never;
2054
+ patch?: never;
2055
+ trace?: never;
2056
+ };
2057
+ "/v1/visits/{visit_id}/joining": {
2058
+ parameters: {
2059
+ query?: never;
2060
+ header?: never;
2061
+ path?: never;
2062
+ cookie?: never;
2063
+ };
2064
+ /** Who can join, who owes an agreement, and who is waiting */
2065
+ get: operations["joining_v1_visits__visit_id__joining_get"];
2066
+ put?: never;
2067
+ post?: never;
2068
+ delete?: never;
2069
+ options?: never;
2070
+ head?: never;
2071
+ patch?: never;
2072
+ trace?: never;
2073
+ };
1765
2074
  "/v1/visits/{visit_id}/live-session": {
1766
2075
  parameters: {
1767
2076
  query?: never;
@@ -1801,6 +2110,23 @@ export interface paths {
1801
2110
  patch?: never;
1802
2111
  trace?: never;
1803
2112
  };
2113
+ "/v1/visits/{visit_id}/readiness": {
2114
+ parameters: {
2115
+ query?: never;
2116
+ header?: never;
2117
+ path?: never;
2118
+ cookie?: never;
2119
+ };
2120
+ /** Session prep: waivers now; pre-work and questionnaires in later modules */
2121
+ get: operations["readiness_v1_visits__visit_id__readiness_get"];
2122
+ put?: never;
2123
+ post?: never;
2124
+ delete?: never;
2125
+ options?: never;
2126
+ head?: never;
2127
+ patch?: never;
2128
+ trace?: never;
2129
+ };
1804
2130
  "/v1/visits/{visit_id}/record-held": {
1805
2131
  parameters: {
1806
2132
  query?: never;
@@ -1925,18 +2251,183 @@ export interface components {
1925
2251
  /** Type */
1926
2252
  type: string;
1927
2253
  };
1928
- /** AppliedOut */
1929
- AppliedOut: {
1930
- close_out: components["schemas"]["CloseOutOut"];
2254
+ /** AgreementSignIn */
2255
+ AgreementSignIn: {
1931
2256
  /**
1932
- * Set
1933
- * @description Enrollments whose rows this set
2257
+ * Accept
2258
+ * @description Guidistry Terms/Privacy: the tick
1934
2259
  */
1935
- set: string[];
1936
- };
1937
- /** ApplyCode */
1938
- ApplyCode: {
1939
- /** Code */
2260
+ accept?: boolean | null;
2261
+ /**
2262
+ * Cohort Id
2263
+ * @description Waivers: the cohort it's for
2264
+ */
2265
+ cohort_id?: string | null;
2266
+ /** Statement Ids */
2267
+ statement_ids?: string[];
2268
+ /** Typed Name */
2269
+ typed_name?: string | null;
2270
+ /**
2271
+ * Version Id
2272
+ * Format: uuid
2273
+ */
2274
+ version_id: string;
2275
+ };
2276
+ /** AgreementSignatureOut */
2277
+ AgreementSignatureOut: {
2278
+ /** Cohort Id */
2279
+ cohort_id: string | null;
2280
+ /** Collected By Name */
2281
+ collected_by_name?: string | null;
2282
+ /** Content Hash */
2283
+ content_hash: string | null;
2284
+ /**
2285
+ * Created At
2286
+ * Format: date-time
2287
+ */
2288
+ created_at: string;
2289
+ /** Document Id */
2290
+ document_id: string | null;
2291
+ /** Entered In Error At */
2292
+ entered_in_error_at: string | null;
2293
+ /** Entered In Error Reason */
2294
+ entered_in_error_reason: string | null;
2295
+ /**
2296
+ * Id
2297
+ * Format: uuid
2298
+ */
2299
+ id: string;
2300
+ /**
2301
+ * Kind
2302
+ * @enum {string}
2303
+ */
2304
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
2305
+ /**
2306
+ * Method
2307
+ * @enum {string}
2308
+ */
2309
+ method: "portal" | "paper" | "verbal" | "tick";
2310
+ /** Patient Id */
2311
+ patient_id: string | null;
2312
+ /** Reason */
2313
+ reason?: string | null;
2314
+ /** Recorded By Person Id */
2315
+ recorded_by_person_id: string | null;
2316
+ /** Representative Authority */
2317
+ representative_authority?: string | null;
2318
+ /** Representative Name */
2319
+ representative_name?: string | null;
2320
+ /** Representative Relationship */
2321
+ representative_relationship?: ("guardian" | "healthcare_agent" | "parent" | "other") | null;
2322
+ /** Scans */
2323
+ scans?: components["schemas"]["ScanOut"][];
2324
+ /**
2325
+ * Signed At
2326
+ * Format: date-time
2327
+ */
2328
+ signed_at: string;
2329
+ /** Signed On */
2330
+ signed_on: string | null;
2331
+ /**
2332
+ * Signer
2333
+ * @enum {string}
2334
+ */
2335
+ signer: "patient" | "representative";
2336
+ /** Typed Name */
2337
+ typed_name?: string | null;
2338
+ /** Version Id */
2339
+ version_id: string | null;
2340
+ /** Version Label */
2341
+ version_label: string | null;
2342
+ /** Visit Id */
2343
+ visit_id: string | null;
2344
+ };
2345
+ /**
2346
+ * AgreementVersionOut
2347
+ * @description A version's full text: what a patient reads and signs.
2348
+ */
2349
+ AgreementVersionOut: {
2350
+ /**
2351
+ * Banner
2352
+ * @description Templates: 'Sample template: your practice must review, adapt…'
2353
+ */
2354
+ banner?: string | null;
2355
+ /** Body Md */
2356
+ body_md: string | null;
2357
+ /** Change Kind */
2358
+ change_kind: ("initial" | "material" | "minor") | null;
2359
+ /** Change Reason */
2360
+ change_reason?: string | null;
2361
+ /** Change Summary */
2362
+ change_summary: string | null;
2363
+ /**
2364
+ * Changed Statement Ids
2365
+ * @description Statements new or changed since the previous published version
2366
+ */
2367
+ changed_statement_ids?: string[];
2368
+ /**
2369
+ * Confirmation
2370
+ * @description Staff only: the publisher's confirmation line (and IRB reference)
2371
+ */
2372
+ confirmation?: {
2373
+ [key: string]: unknown;
2374
+ } | null;
2375
+ /** Content Hash */
2376
+ content_hash: string | null;
2377
+ /** Context */
2378
+ context: ("clinical" | "research") | null;
2379
+ /**
2380
+ * Document Id
2381
+ * Format: uuid
2382
+ */
2383
+ document_id: string;
2384
+ /**
2385
+ * Id
2386
+ * Format: uuid
2387
+ */
2388
+ id: string;
2389
+ /** Intro Md */
2390
+ intro_md: string | null;
2391
+ /**
2392
+ * Is Template
2393
+ * @default false
2394
+ */
2395
+ is_template: boolean;
2396
+ /**
2397
+ * Kind
2398
+ * @enum {string}
2399
+ */
2400
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
2401
+ /** Label */
2402
+ label: string;
2403
+ /** Number */
2404
+ number: number;
2405
+ /** Privacy Notice Url */
2406
+ privacy_notice_url?: string | null;
2407
+ /** Published At */
2408
+ published_at: string | null;
2409
+ /** Statements */
2410
+ statements: components["schemas"]["Statement"][];
2411
+ /**
2412
+ * Status
2413
+ * @enum {string}
2414
+ */
2415
+ status: "draft" | "published";
2416
+ /** Title */
2417
+ title: string;
2418
+ };
2419
+ /** AppliedOut */
2420
+ AppliedOut: {
2421
+ close_out: components["schemas"]["CloseOutOut"];
2422
+ /**
2423
+ * Set
2424
+ * @description Enrollments whose rows this set
2425
+ */
2426
+ set: string[];
2427
+ };
2428
+ /** ApplyCode */
2429
+ ApplyCode: {
2430
+ /** Code */
1940
2431
  code: string;
1941
2432
  };
1942
2433
  /** AttendanceIn */
@@ -2190,6 +2681,11 @@ export interface components {
2190
2681
  * @description IANA, e.g. America/Chicago
2191
2682
  */
2192
2683
  time_zone: string;
2684
+ /**
2685
+ * Visit Mode
2686
+ * @description online (default), in_person or hybrid: the portal's wording (D-029)
2687
+ */
2688
+ visit_mode?: ("online" | "in_person" | "hybrid") | null;
2193
2689
  };
2194
2690
  /** CohortOut */
2195
2691
  CohortOut: {
@@ -2251,6 +2747,12 @@ export interface components {
2251
2747
  team: components["schemas"]["TeamMemberOut"][];
2252
2748
  /** Time Zone */
2253
2749
  time_zone: string;
2750
+ /**
2751
+ * Visit Mode
2752
+ * @default online
2753
+ * @enum {string}
2754
+ */
2755
+ visit_mode: "online" | "in_person" | "hybrid";
2254
2756
  };
2255
2757
  /** CohortUpdate */
2256
2758
  CohortUpdate: {
@@ -2266,6 +2768,11 @@ export interface components {
2266
2768
  recurrence?: components["schemas"]["RecurrenceIn"] | null;
2267
2769
  /** Status */
2268
2770
  status?: ("planned" | "active" | "completed" | "cancelled") | null;
2771
+ /**
2772
+ * Visit Mode
2773
+ * @description online (default), in_person or hybrid: the portal's wording (D-029)
2774
+ */
2775
+ visit_mode?: ("online" | "in_person" | "hybrid") | null;
2269
2776
  };
2270
2777
  /**
2271
2778
  * CourseContent
@@ -2486,6 +2993,107 @@ export interface components {
2486
2993
  /** Ok */
2487
2994
  ok: boolean;
2488
2995
  };
2996
+ /** DocumentCreate */
2997
+ DocumentCreate: {
2998
+ /**
2999
+ * Context
3000
+ * @description Defaults by kind (group session agreement: research; else clinical)
3001
+ */
3002
+ context?: ("clinical" | "research") | null;
3003
+ /**
3004
+ * From Template Id
3005
+ * @description A BrightOutcome template document to start the draft from
3006
+ */
3007
+ from_template_id?: string | null;
3008
+ /**
3009
+ * Kind
3010
+ * @enum {string}
3011
+ */
3012
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
3013
+ /** Name */
3014
+ name: string;
3015
+ /**
3016
+ * Org Unit Id
3017
+ * @description Defaults to the context's practice
3018
+ */
3019
+ org_unit_id?: string | null;
3020
+ /**
3021
+ * Owner Level
3022
+ * @description brightoutcome: Guidistry admins only (Terms, Privacy)
3023
+ * @default org_unit
3024
+ * @enum {string}
3025
+ */
3026
+ owner_level: "org_unit" | "brightoutcome";
3027
+ /** Privacy Notice Url */
3028
+ privacy_notice_url?: string | null;
3029
+ };
3030
+ /** DocumentOut */
3031
+ DocumentOut: {
3032
+ /** Context */
3033
+ context: ("clinical" | "research") | null;
3034
+ current: components["schemas"]["VersionBrief"] | null;
3035
+ draft: components["schemas"]["VersionBrief"] | null;
3036
+ /**
3037
+ * Id
3038
+ * Format: uuid
3039
+ */
3040
+ id: string;
3041
+ /** Is Template */
3042
+ is_template: boolean;
3043
+ /**
3044
+ * Kind
3045
+ * @enum {string}
3046
+ */
3047
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
3048
+ /** Name */
3049
+ name: string;
3050
+ /**
3051
+ * Org Unit Id
3052
+ * Format: uuid
3053
+ */
3054
+ org_unit_id: string;
3055
+ /**
3056
+ * Owner Level
3057
+ * @enum {string}
3058
+ */
3059
+ owner_level: "brightoutcome" | "org_unit";
3060
+ /** Privacy Notice Url */
3061
+ privacy_notice_url: string | null;
3062
+ /**
3063
+ * Status
3064
+ * @enum {string}
3065
+ */
3066
+ status: "active" | "archived";
3067
+ /** Versions */
3068
+ versions: components["schemas"]["VersionBrief"][];
3069
+ };
3070
+ /** DocumentUpdate */
3071
+ DocumentUpdate: {
3072
+ /** Name */
3073
+ name?: string | null;
3074
+ /** Privacy Notice Url */
3075
+ privacy_notice_url?: string | null;
3076
+ /** Status */
3077
+ status?: ("active" | "archived") | null;
3078
+ };
3079
+ /** DraftIn */
3080
+ DraftIn: {
3081
+ /** Body Md */
3082
+ body_md?: string | null;
3083
+ /** Change Summary */
3084
+ change_summary?: string | null;
3085
+ /** Intro Md */
3086
+ intro_md?: string | null;
3087
+ /**
3088
+ * Label
3089
+ * @description Defaults to v{number}
3090
+ */
3091
+ label?: string | null;
3092
+ /** Statements */
3093
+ statements?: components["schemas"]["Statement"][] | null;
3094
+ /** Title */
3095
+ title?: string | null;
3096
+ };
2489
3097
  /** EmrTextOut */
2490
3098
  EmrTextOut: {
2491
3099
  /**
@@ -2579,8 +3187,21 @@ export interface components {
2579
3187
  };
2580
3188
  /** EnrollmentOut */
2581
3189
  EnrollmentOut: {
2582
- /** Agreements Missing */
3190
+ /**
3191
+ * Agreement Flags
3192
+ * @description paper_scan_missing, signature_due_after_verbal
3193
+ */
3194
+ agreement_flags?: string[];
3195
+ /**
3196
+ * Agreements Missing
3197
+ * @description Deprecated: same as agreements_owed
3198
+ */
2583
3199
  agreements_missing: string[];
3200
+ /**
3201
+ * Agreements Owed
3202
+ * @description Agreements this member owes (blocks joining a visit, not enrolling)
3203
+ */
3204
+ agreements_owed?: string[];
2584
3205
  /**
2585
3206
  * Cohort Id
2586
3207
  * Format: uuid
@@ -2657,6 +3278,11 @@ export interface components {
2657
3278
  /** Reason */
2658
3279
  reason: string;
2659
3280
  };
3281
+ /** EnteredInErrorIn */
3282
+ EnteredInErrorIn: {
3283
+ /** Reason */
3284
+ reason: string;
3285
+ };
2660
3286
  /** FidelityItemOut */
2661
3287
  FidelityItemOut: {
2662
3288
  /** Confirmed */
@@ -2997,6 +3623,19 @@ export interface components {
2997
3623
  */
2998
3624
  type: "image";
2999
3625
  };
3626
+ /** InvitationAccept */
3627
+ InvitationAccept: {
3628
+ /**
3629
+ * Accept Platform
3630
+ * @description Guidistry's Terms and Privacy versions the person ticked
3631
+ */
3632
+ accept_platform?: string[];
3633
+ /**
3634
+ * Signatures
3635
+ * @description The site agreement: version_id, statement_ids, typed_name
3636
+ */
3637
+ signatures?: components["schemas"]["AgreementSignIn"][];
3638
+ };
3000
3639
  /** InvitationAccepted */
3001
3640
  InvitationAccepted: {
3002
3641
  /**
@@ -3080,6 +3719,78 @@ export interface components {
3080
3719
  role: string;
3081
3720
  /** Status */
3082
3721
  status: string;
3722
+ /**
3723
+ * To Sign
3724
+ * @description Patient invitations: the practice's site agreement (sign: every statement and a typed name) and Guidistry's Terms and Privacy (tick), current versions (D-029)
3725
+ */
3726
+ to_sign?: components["schemas"]["AgreementVersionOut"][];
3727
+ };
3728
+ /** JoinOut */
3729
+ JoinOut: {
3730
+ /**
3731
+ * Ends At
3732
+ * Format: date-time
3733
+ */
3734
+ ends_at: string;
3735
+ /** Meeting Url */
3736
+ meeting_url: string;
3737
+ /**
3738
+ * Mode
3739
+ * @description Module 7 adds 'video' with a token
3740
+ * @constant
3741
+ */
3742
+ mode: "link";
3743
+ /**
3744
+ * Opens At
3745
+ * Format: date-time
3746
+ */
3747
+ opens_at: string;
3748
+ /**
3749
+ * Visit Mode
3750
+ * @enum {string}
3751
+ */
3752
+ visit_mode: "online" | "in_person" | "hybrid";
3753
+ };
3754
+ /** JoiningMember */
3755
+ JoiningMember: {
3756
+ /** Display Name */
3757
+ display_name: string;
3758
+ /**
3759
+ * Enrollment Id
3760
+ * Format: uuid
3761
+ */
3762
+ enrollment_id: string;
3763
+ /** Last Attempt At */
3764
+ last_attempt_at: string | null;
3765
+ /** Last Attempt Outcome */
3766
+ last_attempt_outcome: string | null;
3767
+ /** Owes */
3768
+ owes: components["schemas"]["OwedOut"][];
3769
+ /**
3770
+ * Patient Id
3771
+ * Format: uuid
3772
+ */
3773
+ patient_id: string;
3774
+ /**
3775
+ * State
3776
+ * @enum {string}
3777
+ */
3778
+ state: "ready" | "owes" | "verbal_pass" | "paper_scan_missing";
3779
+ /**
3780
+ * Waiting
3781
+ * @description Refused for an agreement in the last 30 minutes
3782
+ */
3783
+ waiting: boolean;
3784
+ };
3785
+ /** JoiningOut */
3786
+ JoiningOut: {
3787
+ /** Members */
3788
+ members: components["schemas"]["JoiningMember"][];
3789
+ /**
3790
+ * Visit Id
3791
+ * Format: uuid
3792
+ */
3793
+ visit_id: string;
3083
3794
  };
3084
3795
  /**
3085
3796
  * LayoutBlock
@@ -3281,6 +3992,11 @@ export interface components {
3281
3992
  * @description The context this request used, if one could be determined
3282
3993
  */
3283
3994
  active_membership_id: string | null;
3995
+ /**
3996
+ * Agreements Owed
3997
+ * @description Patients, in the active context: Guidistry's Terms/Privacy and the practice's site agreement still to sign (same items as GET /v1/me/agreements, due 'now'). While any is owed, content, schedules and joining answer 409 agreement_required (D-029).
3998
+ */
3999
+ agreements_owed?: components["schemas"]["OwedOut"][];
3284
4000
  /** Display Name */
3285
4001
  display_name: string | null;
3286
4002
  /** Email */
@@ -3342,6 +4058,15 @@ export interface components {
3342
4058
  };
3343
4059
  /** MemberOut */
3344
4060
  MemberOut: {
4061
+ /**
4062
+ * Agreements
4063
+ * @description Module 5: owed = can't be marked Attended or Late until paper or a verbal pass is recorded for this visit
4064
+ * @default not_required
4065
+ * @enum {string}
4066
+ */
4067
+ agreements: "ok" | "owed" | "verbal_pass" | "paper_no_scan" | "not_required";
4068
+ /** Agreements Owed */
4069
+ agreements_owed?: string[];
3345
4070
  /** Attendance */
3346
4071
  attendance: ("present" | "attended" | "late" | "absent" | "excused") | null;
3347
4072
  /** Attendance Source */
@@ -3430,11 +4155,26 @@ export interface components {
3430
4155
  /** Topics */
3431
4156
  topics?: components["schemas"]["Topic"][];
3432
4157
  };
4158
+ /** MyAgreementsOut */
4159
+ MyAgreementsOut: {
4160
+ /** On File */
4161
+ on_file: components["schemas"]["OnFileOut"][];
4162
+ /**
4163
+ * Owed
4164
+ * @description Blocking now or before a join
4165
+ */
4166
+ owed: components["schemas"]["OwedOut"][];
4167
+ };
3433
4168
  /**
3434
4169
  * MyEnrollmentOut
3435
4170
  * @description A patient's own enrollment, as the portal needs it. No version names or keys.
3436
4171
  */
3437
4172
  MyEnrollmentOut: {
4173
+ /**
4174
+ * Agreements Owed
4175
+ * @description This cohort's agreements still to sign (they block joining, not reading)
4176
+ */
4177
+ agreements_owed?: components["schemas"]["OwedOut"][];
3438
4178
  /** Can Request Pause */
3439
4179
  can_request_pause: boolean;
3440
4180
  /**
@@ -3442,6 +4182,13 @@ export interface components {
3442
4182
  * @enum {string}
3443
4183
  */
3444
4184
  cohort_kind: "group" | "rolling";
4185
+ /**
4186
+ * Context
4187
+ * @description Clinic cohort or research study wave: the portal picks its words (D-029)
4188
+ * @default clinical
4189
+ * @enum {string}
4190
+ */
4191
+ context: "clinical" | "research";
3445
4192
  /**
3446
4193
  * Course Id
3447
4194
  * Format: uuid
@@ -3464,6 +4211,7 @@ export interface components {
3464
4211
  * Format: uuid
3465
4212
  */
3466
4213
  id: string;
4214
+ /** @description Without meeting_url: join through POST /v1/visits/{id}/join */
3467
4215
  next_visit: components["schemas"]["VisitOut"] | null;
3468
4216
  /** Pause Requests */
3469
4217
  pause_requests: components["schemas"]["PauseOut"][];
@@ -3479,6 +4227,12 @@ export interface components {
3479
4227
  * @enum {string}
3480
4228
  */
3481
4229
  status: "pending" | "waitlisted" | "enrolled" | "completed" | "withdrawn" | "moved";
4230
+ /**
4231
+ * Visit Mode
4232
+ * @default online
4233
+ * @enum {string}
4234
+ */
4235
+ visit_mode: "online" | "in_person" | "hybrid";
3482
4236
  };
3483
4237
  /** Names */
3484
4238
  Names: {
@@ -3634,6 +4388,42 @@ export interface components {
3634
4388
  */
3635
4389
  source: "live_session" | "chart" | "close_out";
3636
4390
  };
4391
+ /** OnFileOut */
4392
+ OnFileOut: {
4393
+ /** Cohort Id */
4394
+ cohort_id: string | null;
4395
+ /**
4396
+ * Current
4397
+ * @description Still satisfies the requirement
4398
+ */
4399
+ current: boolean;
4400
+ /**
4401
+ * Kind
4402
+ * @enum {string}
4403
+ */
4404
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
4405
+ /** Label */
4406
+ label: string;
4407
+ /**
4408
+ * Method
4409
+ * @enum {string}
4410
+ */
4411
+ method: "portal" | "paper" | "verbal" | "tick";
4412
+ /**
4413
+ * Signature Id
4414
+ * Format: uuid
4415
+ */
4416
+ signature_id: string;
4417
+ /**
4418
+ * Signed At
4419
+ * Format: date-time
4420
+ */
4421
+ signed_at: string;
4422
+ /** Version Id */
4423
+ version_id: string | null;
4424
+ /** Version Label */
4425
+ version_label: string | null;
4426
+ };
3637
4427
  /** OrgUnitCreate */
3638
4428
  OrgUnitCreate: {
3639
4429
  /** Name */
@@ -3680,11 +4470,43 @@ export interface components {
3680
4470
  /** Status */
3681
4471
  status?: ("active" | "suspended" | "closed") | null;
3682
4472
  };
3683
- /** PatientCreate */
3684
- PatientCreate: {
3685
- /** Birth Date */
3686
- birth_date?: string | null;
3687
- /** Email */
4473
+ /** OwedOut */
4474
+ OwedOut: {
4475
+ /** Cohort Id */
4476
+ cohort_id: string | null;
4477
+ /** Document Id */
4478
+ document_id: string | null;
4479
+ /**
4480
+ * Due
4481
+ * @enum {string}
4482
+ */
4483
+ due: "now" | "before_join";
4484
+ /** Flags */
4485
+ flags: string[];
4486
+ /**
4487
+ * Kind
4488
+ * @enum {string}
4489
+ */
4490
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
4491
+ /** Label */
4492
+ label: string;
4493
+ /** Reason */
4494
+ reason: ("never_signed" | "new_version" | "verbal_only") | null;
4495
+ /**
4496
+ * Status
4497
+ * @enum {string}
4498
+ */
4499
+ status: "ok" | "owed" | "verbal_pass" | "grace" | "unpublished" | "not_required";
4500
+ /** Title */
4501
+ title: string | null;
4502
+ /** Version Id */
4503
+ version_id: string | null;
4504
+ };
4505
+ /** PatientCreate */
4506
+ PatientCreate: {
4507
+ /** Birth Date */
4508
+ birth_date?: string | null;
4509
+ /** Email */
3688
4510
  email?: string | null;
3689
4511
  /** Mrn */
3690
4512
  mrn?: string | null;
@@ -3727,7 +4549,7 @@ export interface components {
3727
4549
  * Stage
3728
4550
  * @enum {string}
3729
4551
  */
3730
- stage: "added" | "invited" | "accepted" | "cleared" | "enrolled" | "alumni";
4552
+ stage: "added" | "invited" | "accepted" | "enrolled" | "alumni";
3731
4553
  };
3732
4554
  /** PatientPage */
3733
4555
  PatientPage: {
@@ -4062,6 +4884,13 @@ export interface components {
4062
4884
  };
4063
4885
  /** ProgramBrief */
4064
4886
  ProgramBrief: {
4887
+ /**
4888
+ * Context
4889
+ * @description Clinic program or research study (portal wording, D-029)
4890
+ * @default clinical
4891
+ * @enum {string}
4892
+ */
4893
+ context: "clinical" | "research";
4065
4894
  /**
4066
4895
  * Id
4067
4896
  * Format: uuid
@@ -4072,6 +4901,13 @@ export interface components {
4072
4901
  };
4073
4902
  /** ProgramCreate */
4074
4903
  ProgramCreate: {
4904
+ /**
4905
+ * Context
4906
+ * @description Research: the portal says 'group session' and cohorts require the group session agreement (D-029). Fixed once the program has a cohort.
4907
+ * @default clinical
4908
+ * @enum {string}
4909
+ */
4910
+ context: "clinical" | "research";
4075
4911
  /**
4076
4912
  * Course Id
4077
4913
  * Format: uuid
@@ -4095,6 +4931,13 @@ export interface components {
4095
4931
  * @description A practice's offering: its name, and the program template it uses with which version.
4096
4932
  */
4097
4933
  ProgramOut: {
4934
+ /**
4935
+ * Context
4936
+ * @description A clinic program or a research study's (D-029)
4937
+ * @default clinical
4938
+ * @enum {string}
4939
+ */
4940
+ context: "clinical" | "research";
4098
4941
  course: components["schemas"]["CourseRef"];
4099
4942
  /**
4100
4943
  * Created At
@@ -4132,6 +4975,11 @@ export interface components {
4132
4975
  };
4133
4976
  /** ProgramUpdate */
4134
4977
  ProgramUpdate: {
4978
+ /**
4979
+ * Context
4980
+ * @description Only while the program has no cohort (409 otherwise)
4981
+ */
4982
+ context?: ("clinical" | "research") | null;
4135
4983
  /**
4136
4984
  * Excluded Keys
4137
4985
  * @description Topics (or other items) this program leaves out
@@ -4162,6 +5010,26 @@ export interface components {
4162
5010
  /** Title */
4163
5011
  title: string;
4164
5012
  };
5013
+ /** PublishIn */
5014
+ PublishIn: {
5015
+ /**
5016
+ * Change Kind
5017
+ * @description Every version after the first; default material
5018
+ */
5019
+ change_kind?: ("material" | "minor") | null;
5020
+ /**
5021
+ * Change Reason
5022
+ * @description Minor: required
5023
+ */
5024
+ change_reason?: string | null;
5025
+ /**
5026
+ * Confirmation Text
5027
+ * @description The practice's line ('Our practice has reviewed this text for use with our patients.') or, for research, 'This is the study's IRB-approved text.'
5028
+ */
5029
+ confirmation_text: string;
5030
+ /** Irb Reference */
5031
+ irb_reference?: string | null;
5032
+ };
4165
5033
  /**
4166
5034
  * QuestionBlock
4167
5035
  * @description A question answered in place (design §5.8). Reserved: no January course uses it.
@@ -4207,15 +5075,75 @@ export interface components {
4207
5075
  };
4208
5076
  /** QueueEntry */
4209
5077
  QueueEntry: {
4210
- /** Agreements Missing */
5078
+ /**
5079
+ * Agreements Missing
5080
+ * @description Deprecated: same as agreements_owed
5081
+ */
4211
5082
  agreements_missing: string[];
5083
+ /**
5084
+ * Agreements Owed
5085
+ * @description The "Owed agreement" badge (D-029)
5086
+ */
5087
+ agreements_owed?: string[];
4212
5088
  enrollment: components["schemas"]["EnrollmentBrief"] | null;
4213
5089
  patient: components["schemas"]["PatientOut"];
4214
5090
  /**
4215
5091
  * Stage
4216
5092
  * @enum {string}
4217
5093
  */
4218
- stage: "added" | "invited" | "accepted" | "cleared" | "enrolled" | "alumni";
5094
+ stage: "added" | "invited" | "accepted" | "enrolled" | "alumni";
5095
+ };
5096
+ /** ReadinessMember */
5097
+ ReadinessMember: {
5098
+ /**
5099
+ * Device
5100
+ * @default not_available
5101
+ * @constant
5102
+ */
5103
+ device: "not_available";
5104
+ /** Display Name */
5105
+ display_name: string;
5106
+ /**
5107
+ * Enrollment Id
5108
+ * Format: uuid
5109
+ */
5110
+ enrollment_id: string;
5111
+ /**
5112
+ * Patient Id
5113
+ * Format: uuid
5114
+ */
5115
+ patient_id: string;
5116
+ /**
5117
+ * Prework
5118
+ * @default not_available
5119
+ * @constant
5120
+ */
5121
+ prework: "not_available";
5122
+ /**
5123
+ * Pros
5124
+ * @default not_available
5125
+ * @constant
5126
+ */
5127
+ pros: "not_available";
5128
+ /**
5129
+ * Waiver
5130
+ * @enum {string}
5131
+ */
5132
+ waiver: "ok" | "owed" | "verbal_pass" | "paper_no_scan" | "not_required";
5133
+ };
5134
+ /** ReadinessOut */
5135
+ ReadinessOut: {
5136
+ /** Members */
5137
+ members: components["schemas"]["ReadinessMember"][];
5138
+ /**
5139
+ * Visit Id
5140
+ * Format: uuid
5141
+ */
5142
+ visit_id: string;
5143
+ /** Waivers Required */
5144
+ waivers_required: number;
5145
+ /** Waivers Signed */
5146
+ waivers_signed: number;
4219
5147
  };
4220
5148
  /** ReadyResponse */
4221
5149
  ReadyResponse: {
@@ -4286,6 +5214,18 @@ export interface components {
4286
5214
  */
4287
5215
  weekday: number;
4288
5216
  };
5217
+ /** RepresentativeIn */
5218
+ RepresentativeIn: {
5219
+ /** Authority Note */
5220
+ authority_note?: string | null;
5221
+ /** Name */
5222
+ name: string;
5223
+ /**
5224
+ * Relationship
5225
+ * @enum {string}
5226
+ */
5227
+ relationship: "guardian" | "healthcare_agent" | "parent" | "other";
5228
+ };
4289
5229
  /** Resource */
4290
5230
  Resource: {
4291
5231
  /** Category */
@@ -4394,6 +5334,87 @@ export interface components {
4394
5334
  */
4395
5335
  billing_code?: string | null;
4396
5336
  };
5337
+ /** ScanLink */
5338
+ ScanLink: {
5339
+ /**
5340
+ * Expires At
5341
+ * Format: date-time
5342
+ */
5343
+ expires_at: string;
5344
+ /** Url */
5345
+ url: string;
5346
+ };
5347
+ /** ScanOut */
5348
+ ScanOut: {
5349
+ /**
5350
+ * Content Type
5351
+ * @enum {string}
5352
+ */
5353
+ content_type: "application/pdf" | "image/jpeg" | "image/png" | "image/heic";
5354
+ /**
5355
+ * Created At
5356
+ * Format: date-time
5357
+ */
5358
+ created_at: string;
5359
+ /**
5360
+ * Id
5361
+ * Format: uuid
5362
+ */
5363
+ id: string;
5364
+ /** Sha256 */
5365
+ sha256: string;
5366
+ /** Size Bytes */
5367
+ size_bytes: number;
5368
+ /**
5369
+ * Status
5370
+ * @enum {string}
5371
+ */
5372
+ status: "pending" | "stored" | "superseded" | "rejected";
5373
+ /** Stored At */
5374
+ stored_at: string | null;
5375
+ /** Supersede Reason */
5376
+ supersede_reason: string | null;
5377
+ };
5378
+ /** ScanStart */
5379
+ ScanStart: {
5380
+ /**
5381
+ * Content Type
5382
+ * @enum {string}
5383
+ */
5384
+ content_type: "application/pdf" | "image/jpeg" | "image/png" | "image/heic";
5385
+ /**
5386
+ * Reason
5387
+ * @description Replacing: required
5388
+ */
5389
+ reason?: string | null;
5390
+ /** Replaces Scan Id */
5391
+ replaces_scan_id?: string | null;
5392
+ /**
5393
+ * Sha256
5394
+ * @description Hex SHA-256 of the file
5395
+ */
5396
+ sha256: string;
5397
+ /** Size Bytes */
5398
+ size_bytes: number;
5399
+ };
5400
+ /** ScanUpload */
5401
+ ScanUpload: {
5402
+ /**
5403
+ * Expires At
5404
+ * Format: date-time
5405
+ */
5406
+ expires_at: string;
5407
+ /**
5408
+ * Fields
5409
+ * @description POST these form fields, then the file as 'file'
5410
+ */
5411
+ fields: {
5412
+ [key: string]: string;
5413
+ };
5414
+ scan: components["schemas"]["ScanOut"];
5415
+ /** Upload Url */
5416
+ upload_url: string;
5417
+ };
4397
5418
  /** Section */
4398
5419
  Section: {
4399
5420
  /** Blocks */
@@ -4435,6 +5456,38 @@ export interface components {
4435
5456
  /** Title */
4436
5457
  title: string;
4437
5458
  };
5459
+ /** SettingHistoryEntry */
5460
+ SettingHistoryEntry: {
5461
+ /**
5462
+ * Action
5463
+ * @enum {string}
5464
+ */
5465
+ action: "change" | "reset";
5466
+ /** Actor Person Id */
5467
+ actor_person_id: string | null;
5468
+ /**
5469
+ * At
5470
+ * Format: date-time
5471
+ */
5472
+ at: string;
5473
+ /**
5474
+ * Detailed
5475
+ * @description False for changes recorded before value/reason were kept
5476
+ */
5477
+ detailed: boolean;
5478
+ /**
5479
+ * Previous
5480
+ * @description The value at this scope before (null: inherited)
5481
+ */
5482
+ previous?: unknown;
5483
+ /** Reason */
5484
+ reason: string | null;
5485
+ /**
5486
+ * Value
5487
+ * @description The new value (change); null for a reset
5488
+ */
5489
+ value?: unknown;
5490
+ };
4438
5491
  /** SettingOut */
4439
5492
  SettingOut: {
4440
5493
  /** Allowed Levels */
@@ -4528,6 +5581,65 @@ export interface components {
4528
5581
  */
4529
5582
  voice?: string | null;
4530
5583
  };
5584
+ /** StaffSignatureIn */
5585
+ StaffSignatureIn: {
5586
+ /** Cohort Id */
5587
+ cohort_id?: string | null;
5588
+ /**
5589
+ * Collected By Name
5590
+ * @description Paper
5591
+ */
5592
+ collected_by_name?: string | null;
5593
+ /**
5594
+ * Kind
5595
+ * @enum {string}
5596
+ */
5597
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement";
5598
+ /**
5599
+ * Method
5600
+ * @enum {string}
5601
+ */
5602
+ method: "paper" | "verbal";
5603
+ /**
5604
+ * Patient Id
5605
+ * Format: uuid
5606
+ */
5607
+ patient_id: string;
5608
+ /**
5609
+ * Reason
5610
+ * @description Verbal: required
5611
+ */
5612
+ reason?: string | null;
5613
+ representative?: components["schemas"]["RepresentativeIn"] | null;
5614
+ /**
5615
+ * Signed On
5616
+ * @description Paper: the date on the paper
5617
+ */
5618
+ signed_on?: string | null;
5619
+ /**
5620
+ * Signer
5621
+ * @default patient
5622
+ * @enum {string}
5623
+ */
5624
+ signer: "patient" | "representative";
5625
+ /**
5626
+ * Version Id
5627
+ * @description Paper: defaults to the current one
5628
+ */
5629
+ version_id?: string | null;
5630
+ /**
5631
+ * Visit Id
5632
+ * @description Verbal: the one visit it lets them in
5633
+ */
5634
+ visit_id?: string | null;
5635
+ };
5636
+ /** Statement */
5637
+ Statement: {
5638
+ /** Id */
5639
+ id: string;
5640
+ /** Text */
5641
+ text: string;
5642
+ };
4531
5643
  /** StructureOut */
4532
5644
  StructureOut: {
4533
5645
  /** Approved At */
@@ -4704,6 +5816,42 @@ export interface components {
4704
5816
  */
4705
5817
  type: "text";
4706
5818
  };
5819
+ /** TodoOut */
5820
+ TodoOut: {
5821
+ /**
5822
+ * Agreement Kind
5823
+ * @enum {string}
5824
+ */
5825
+ agreement_kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
5826
+ /** Cohort Id */
5827
+ cohort_id: string | null;
5828
+ /** Cohort Name */
5829
+ cohort_name: string | null;
5830
+ /**
5831
+ * Kind
5832
+ * @enum {string}
5833
+ */
5834
+ kind: "upload_scan" | "collect_signature";
5835
+ /**
5836
+ * Patient Id
5837
+ * Format: uuid
5838
+ */
5839
+ patient_id: string;
5840
+ /** Patient Name */
5841
+ patient_name: string;
5842
+ /**
5843
+ * Signature Id
5844
+ * Format: uuid
5845
+ */
5846
+ signature_id: string;
5847
+ /**
5848
+ * Since
5849
+ * Format: date-time
5850
+ */
5851
+ since: string;
5852
+ /** Title */
5853
+ title: string;
5854
+ };
4707
5855
  /** Topic */
4708
5856
  Topic: {
4709
5857
  /** Blocks */
@@ -4787,6 +5935,31 @@ export interface components {
4787
5935
  /** Tag */
4788
5936
  tag: string;
4789
5937
  };
5938
+ /** VersionBrief */
5939
+ VersionBrief: {
5940
+ /** Change Kind */
5941
+ change_kind: ("initial" | "material" | "minor") | null;
5942
+ /** Change Summary */
5943
+ change_summary: string | null;
5944
+ /**
5945
+ * Id
5946
+ * Format: uuid
5947
+ */
5948
+ id: string;
5949
+ /** Label */
5950
+ label: string;
5951
+ /** Number */
5952
+ number: number;
5953
+ /** Published At */
5954
+ published_at: string | null;
5955
+ /**
5956
+ * Status
5957
+ * @enum {string}
5958
+ */
5959
+ status: "draft" | "published";
5960
+ /** Title */
5961
+ title: string;
5962
+ };
4790
5963
  /** VersionOut */
4791
5964
  VersionOut: {
4792
5965
  /** Key */
@@ -4829,6 +6002,11 @@ export interface components {
4829
6002
  starts_at: string;
4830
6003
  /** Title */
4831
6004
  title?: string | null;
6005
+ /**
6006
+ * Visit Mode
6007
+ * @description online (default), in_person or hybrid: the portal's wording (D-029)
6008
+ */
6009
+ visit_mode?: ("online" | "in_person" | "hybrid") | null;
4832
6010
  };
4833
6011
  /** VisitOut */
4834
6012
  VisitOut: {
@@ -4863,7 +6041,10 @@ export interface components {
4863
6041
  kind: "scheduled" | "ad_hoc";
4864
6042
  /** Manually Set */
4865
6043
  manually_set: boolean;
4866
- /** Meeting Url */
6044
+ /**
6045
+ * Meeting Url
6046
+ * @description Staff only: patients always get null and join through POST /v1/visits/{id}/join (D-029)
6047
+ */
4867
6048
  meeting_url: string | null;
4868
6049
  /** Needs Rescheduling */
4869
6050
  needs_rescheduling: boolean;
@@ -4885,6 +6066,12 @@ export interface components {
4885
6066
  status: "scheduled" | "held" | "cancelled";
4886
6067
  /** Title */
4887
6068
  title: string | null;
6069
+ /**
6070
+ * Visit Mode
6071
+ * @default online
6072
+ * @enum {string}
6073
+ */
6074
+ visit_mode: "online" | "in_person" | "hybrid";
4888
6075
  };
4889
6076
  /** VoiceOut */
4890
6077
  VoiceOut: {
@@ -5018,27 +6205,567 @@ export interface operations {
5018
6205
  [name: string]: unknown;
5019
6206
  };
5020
6207
  content: {
5021
- "application/json": components["schemas"]["ReadyResponse"];
6208
+ "application/json": components["schemas"]["ReadyResponse"];
6209
+ };
6210
+ };
6211
+ };
6212
+ };
6213
+ me_me_get: {
6214
+ parameters: {
6215
+ query?: never;
6216
+ header?: never;
6217
+ path?: never;
6218
+ cookie?: never;
6219
+ };
6220
+ requestBody?: never;
6221
+ responses: {
6222
+ /** @description Successful Response */
6223
+ 200: {
6224
+ headers: {
6225
+ [name: string]: unknown;
6226
+ };
6227
+ content: {
6228
+ "application/json": components["schemas"]["Principal"];
6229
+ };
6230
+ };
6231
+ };
6232
+ };
6233
+ list_documents_v1_agreement_documents_get: {
6234
+ parameters: {
6235
+ query?: {
6236
+ kind?: string | null;
6237
+ context?: string | null;
6238
+ include_archived?: boolean;
6239
+ };
6240
+ header?: {
6241
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6242
+ "X-Guidistry-Context"?: string | null;
6243
+ };
6244
+ path?: never;
6245
+ cookie?: never;
6246
+ };
6247
+ requestBody?: never;
6248
+ responses: {
6249
+ /** @description Successful Response */
6250
+ 200: {
6251
+ headers: {
6252
+ [name: string]: unknown;
6253
+ };
6254
+ content: {
6255
+ "application/json": components["schemas"]["DocumentOut"][];
6256
+ };
6257
+ };
6258
+ /** @description Validation Error */
6259
+ 422: {
6260
+ headers: {
6261
+ [name: string]: unknown;
6262
+ };
6263
+ content: {
6264
+ "application/json": components["schemas"]["HTTPValidationError"];
6265
+ };
6266
+ };
6267
+ };
6268
+ };
6269
+ create_document_v1_agreement_documents_post: {
6270
+ parameters: {
6271
+ query?: never;
6272
+ header?: {
6273
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6274
+ "X-Guidistry-Context"?: string | null;
6275
+ };
6276
+ path?: never;
6277
+ cookie?: never;
6278
+ };
6279
+ requestBody: {
6280
+ content: {
6281
+ "application/json": components["schemas"]["DocumentCreate"];
6282
+ };
6283
+ };
6284
+ responses: {
6285
+ /** @description Successful Response */
6286
+ 201: {
6287
+ headers: {
6288
+ [name: string]: unknown;
6289
+ };
6290
+ content: {
6291
+ "application/json": components["schemas"]["DocumentOut"];
6292
+ };
6293
+ };
6294
+ /** @description Validation Error */
6295
+ 422: {
6296
+ headers: {
6297
+ [name: string]: unknown;
6298
+ };
6299
+ content: {
6300
+ "application/json": components["schemas"]["HTTPValidationError"];
6301
+ };
6302
+ };
6303
+ };
6304
+ };
6305
+ get_document_v1_agreement_documents__document_id__get: {
6306
+ parameters: {
6307
+ query?: never;
6308
+ header?: {
6309
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6310
+ "X-Guidistry-Context"?: string | null;
6311
+ };
6312
+ path: {
6313
+ document_id: string;
6314
+ };
6315
+ cookie?: never;
6316
+ };
6317
+ requestBody?: never;
6318
+ responses: {
6319
+ /** @description Successful Response */
6320
+ 200: {
6321
+ headers: {
6322
+ [name: string]: unknown;
6323
+ };
6324
+ content: {
6325
+ "application/json": components["schemas"]["DocumentOut"];
6326
+ };
6327
+ };
6328
+ /** @description Validation Error */
6329
+ 422: {
6330
+ headers: {
6331
+ [name: string]: unknown;
6332
+ };
6333
+ content: {
6334
+ "application/json": components["schemas"]["HTTPValidationError"];
6335
+ };
6336
+ };
6337
+ };
6338
+ };
6339
+ update_document_v1_agreement_documents__document_id__patch: {
6340
+ parameters: {
6341
+ query?: never;
6342
+ header?: {
6343
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6344
+ "X-Guidistry-Context"?: string | null;
6345
+ };
6346
+ path: {
6347
+ document_id: string;
6348
+ };
6349
+ cookie?: never;
6350
+ };
6351
+ requestBody: {
6352
+ content: {
6353
+ "application/json": components["schemas"]["DocumentUpdate"];
6354
+ };
6355
+ };
6356
+ responses: {
6357
+ /** @description Successful Response */
6358
+ 200: {
6359
+ headers: {
6360
+ [name: string]: unknown;
6361
+ };
6362
+ content: {
6363
+ "application/json": components["schemas"]["DocumentOut"];
6364
+ };
6365
+ };
6366
+ /** @description Validation Error */
6367
+ 422: {
6368
+ headers: {
6369
+ [name: string]: unknown;
6370
+ };
6371
+ content: {
6372
+ "application/json": components["schemas"]["HTTPValidationError"];
6373
+ };
6374
+ };
6375
+ };
6376
+ };
6377
+ new_draft_v1_agreement_documents__document_id__versions_post: {
6378
+ parameters: {
6379
+ query?: never;
6380
+ header?: {
6381
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6382
+ "X-Guidistry-Context"?: string | null;
6383
+ };
6384
+ path: {
6385
+ document_id: string;
6386
+ };
6387
+ cookie?: never;
6388
+ };
6389
+ requestBody: {
6390
+ content: {
6391
+ "application/json": components["schemas"]["DraftIn"];
6392
+ };
6393
+ };
6394
+ responses: {
6395
+ /** @description Successful Response */
6396
+ 201: {
6397
+ headers: {
6398
+ [name: string]: unknown;
6399
+ };
6400
+ content: {
6401
+ "application/json": components["schemas"]["AgreementVersionOut"];
6402
+ };
6403
+ };
6404
+ /** @description Validation Error */
6405
+ 422: {
6406
+ headers: {
6407
+ [name: string]: unknown;
6408
+ };
6409
+ content: {
6410
+ "application/json": components["schemas"]["HTTPValidationError"];
6411
+ };
6412
+ };
6413
+ };
6414
+ };
6415
+ complete_scan_v1_agreement_scans__scan_id__complete_post: {
6416
+ parameters: {
6417
+ query?: never;
6418
+ header?: {
6419
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6420
+ "X-Guidistry-Context"?: string | null;
6421
+ };
6422
+ path: {
6423
+ scan_id: string;
6424
+ };
6425
+ cookie?: never;
6426
+ };
6427
+ requestBody?: never;
6428
+ responses: {
6429
+ /** @description Successful Response */
6430
+ 200: {
6431
+ headers: {
6432
+ [name: string]: unknown;
6433
+ };
6434
+ content: {
6435
+ "application/json": components["schemas"]["AgreementSignatureOut"];
6436
+ };
6437
+ };
6438
+ /** @description Validation Error */
6439
+ 422: {
6440
+ headers: {
6441
+ [name: string]: unknown;
6442
+ };
6443
+ content: {
6444
+ "application/json": components["schemas"]["HTTPValidationError"];
6445
+ };
6446
+ };
6447
+ };
6448
+ };
6449
+ scan_link_v1_agreement_scans__scan_id__link_get: {
6450
+ parameters: {
6451
+ query?: never;
6452
+ header?: {
6453
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6454
+ "X-Guidistry-Context"?: string | null;
6455
+ };
6456
+ path: {
6457
+ scan_id: string;
6458
+ };
6459
+ cookie?: never;
6460
+ };
6461
+ requestBody?: never;
6462
+ responses: {
6463
+ /** @description Successful Response */
6464
+ 200: {
6465
+ headers: {
6466
+ [name: string]: unknown;
6467
+ };
6468
+ content: {
6469
+ "application/json": components["schemas"]["ScanLink"];
6470
+ };
6471
+ };
6472
+ /** @description Validation Error */
6473
+ 422: {
6474
+ headers: {
6475
+ [name: string]: unknown;
6476
+ };
6477
+ content: {
6478
+ "application/json": components["schemas"]["HTTPValidationError"];
6479
+ };
6480
+ };
6481
+ };
6482
+ };
6483
+ list_signatures_v1_agreement_signatures_get: {
6484
+ parameters: {
6485
+ query?: {
6486
+ patient_id?: string | null;
6487
+ cohort_id?: string | null;
6488
+ kind?: string | null;
6489
+ };
6490
+ header?: {
6491
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6492
+ "X-Guidistry-Context"?: string | null;
6493
+ };
6494
+ path?: never;
6495
+ cookie?: never;
6496
+ };
6497
+ requestBody?: never;
6498
+ responses: {
6499
+ /** @description Successful Response */
6500
+ 200: {
6501
+ headers: {
6502
+ [name: string]: unknown;
6503
+ };
6504
+ content: {
6505
+ "application/json": components["schemas"]["AgreementSignatureOut"][];
6506
+ };
6507
+ };
6508
+ /** @description Validation Error */
6509
+ 422: {
6510
+ headers: {
6511
+ [name: string]: unknown;
6512
+ };
6513
+ content: {
6514
+ "application/json": components["schemas"]["HTTPValidationError"];
6515
+ };
6516
+ };
6517
+ };
6518
+ };
6519
+ create_signature_v1_agreement_signatures_post: {
6520
+ parameters: {
6521
+ query?: never;
6522
+ header?: {
6523
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6524
+ "X-Guidistry-Context"?: string | null;
6525
+ };
6526
+ path?: never;
6527
+ cookie?: never;
6528
+ };
6529
+ requestBody: {
6530
+ content: {
6531
+ "application/json": components["schemas"]["StaffSignatureIn"];
6532
+ };
6533
+ };
6534
+ responses: {
6535
+ /** @description Successful Response */
6536
+ 201: {
6537
+ headers: {
6538
+ [name: string]: unknown;
6539
+ };
6540
+ content: {
6541
+ "application/json": components["schemas"]["AgreementSignatureOut"];
6542
+ };
6543
+ };
6544
+ /** @description Validation Error */
6545
+ 422: {
6546
+ headers: {
6547
+ [name: string]: unknown;
6548
+ };
6549
+ content: {
6550
+ "application/json": components["schemas"]["HTTPValidationError"];
6551
+ };
6552
+ };
6553
+ };
6554
+ };
6555
+ signature_entered_in_error_v1_agreement_signatures__signature_id__entered_in_error_post: {
6556
+ parameters: {
6557
+ query?: never;
6558
+ header?: {
6559
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6560
+ "X-Guidistry-Context"?: string | null;
6561
+ };
6562
+ path: {
6563
+ signature_id: string;
6564
+ };
6565
+ cookie?: never;
6566
+ };
6567
+ requestBody: {
6568
+ content: {
6569
+ "application/json": components["schemas"]["EnteredInErrorIn"];
6570
+ };
6571
+ };
6572
+ responses: {
6573
+ /** @description Successful Response */
6574
+ 200: {
6575
+ headers: {
6576
+ [name: string]: unknown;
6577
+ };
6578
+ content: {
6579
+ "application/json": components["schemas"]["AgreementSignatureOut"];
6580
+ };
6581
+ };
6582
+ /** @description Validation Error */
6583
+ 422: {
6584
+ headers: {
6585
+ [name: string]: unknown;
6586
+ };
6587
+ content: {
6588
+ "application/json": components["schemas"]["HTTPValidationError"];
6589
+ };
6590
+ };
6591
+ };
6592
+ };
6593
+ start_scan_v1_agreement_signatures__signature_id__scans_post: {
6594
+ parameters: {
6595
+ query?: never;
6596
+ header?: {
6597
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6598
+ "X-Guidistry-Context"?: string | null;
6599
+ };
6600
+ path: {
6601
+ signature_id: string;
6602
+ };
6603
+ cookie?: never;
6604
+ };
6605
+ requestBody: {
6606
+ content: {
6607
+ "application/json": components["schemas"]["ScanStart"];
6608
+ };
6609
+ };
6610
+ responses: {
6611
+ /** @description Successful Response */
6612
+ 201: {
6613
+ headers: {
6614
+ [name: string]: unknown;
6615
+ };
6616
+ content: {
6617
+ "application/json": components["schemas"]["ScanUpload"];
6618
+ };
6619
+ };
6620
+ /** @description Validation Error */
6621
+ 422: {
6622
+ headers: {
6623
+ [name: string]: unknown;
6624
+ };
6625
+ content: {
6626
+ "application/json": components["schemas"]["HTTPValidationError"];
6627
+ };
6628
+ };
6629
+ };
6630
+ };
6631
+ list_templates_v1_agreement_templates_get: {
6632
+ parameters: {
6633
+ query?: never;
6634
+ header?: {
6635
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6636
+ "X-Guidistry-Context"?: string | null;
6637
+ };
6638
+ path?: never;
6639
+ cookie?: never;
6640
+ };
6641
+ requestBody?: never;
6642
+ responses: {
6643
+ /** @description Successful Response */
6644
+ 200: {
6645
+ headers: {
6646
+ [name: string]: unknown;
6647
+ };
6648
+ content: {
6649
+ "application/json": components["schemas"]["DocumentOut"][];
6650
+ };
6651
+ };
6652
+ /** @description Validation Error */
6653
+ 422: {
6654
+ headers: {
6655
+ [name: string]: unknown;
6656
+ };
6657
+ content: {
6658
+ "application/json": components["schemas"]["HTTPValidationError"];
6659
+ };
6660
+ };
6661
+ };
6662
+ };
6663
+ get_version_v1_agreement_versions__version_id__get: {
6664
+ parameters: {
6665
+ query?: never;
6666
+ header?: {
6667
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6668
+ "X-Guidistry-Context"?: string | null;
6669
+ };
6670
+ path: {
6671
+ version_id: string;
6672
+ };
6673
+ cookie?: never;
6674
+ };
6675
+ requestBody?: never;
6676
+ responses: {
6677
+ /** @description Successful Response */
6678
+ 200: {
6679
+ headers: {
6680
+ [name: string]: unknown;
6681
+ };
6682
+ content: {
6683
+ "application/json": components["schemas"]["AgreementVersionOut"];
6684
+ };
6685
+ };
6686
+ /** @description Validation Error */
6687
+ 422: {
6688
+ headers: {
6689
+ [name: string]: unknown;
6690
+ };
6691
+ content: {
6692
+ "application/json": components["schemas"]["HTTPValidationError"];
6693
+ };
6694
+ };
6695
+ };
6696
+ };
6697
+ edit_draft_v1_agreement_versions__version_id__put: {
6698
+ parameters: {
6699
+ query?: never;
6700
+ header?: {
6701
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6702
+ "X-Guidistry-Context"?: string | null;
6703
+ };
6704
+ path: {
6705
+ version_id: string;
6706
+ };
6707
+ cookie?: never;
6708
+ };
6709
+ requestBody: {
6710
+ content: {
6711
+ "application/json": components["schemas"]["DraftIn"];
6712
+ };
6713
+ };
6714
+ responses: {
6715
+ /** @description Successful Response */
6716
+ 200: {
6717
+ headers: {
6718
+ [name: string]: unknown;
6719
+ };
6720
+ content: {
6721
+ "application/json": components["schemas"]["AgreementVersionOut"];
6722
+ };
6723
+ };
6724
+ /** @description Validation Error */
6725
+ 422: {
6726
+ headers: {
6727
+ [name: string]: unknown;
6728
+ };
6729
+ content: {
6730
+ "application/json": components["schemas"]["HTTPValidationError"];
6731
+ };
6732
+ };
6733
+ };
6734
+ };
6735
+ publish_v1_agreement_versions__version_id__publish_post: {
6736
+ parameters: {
6737
+ query?: never;
6738
+ header?: {
6739
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6740
+ "X-Guidistry-Context"?: string | null;
6741
+ };
6742
+ path: {
6743
+ version_id: string;
6744
+ };
6745
+ cookie?: never;
6746
+ };
6747
+ requestBody: {
6748
+ content: {
6749
+ "application/json": components["schemas"]["PublishIn"];
6750
+ };
6751
+ };
6752
+ responses: {
6753
+ /** @description Successful Response */
6754
+ 200: {
6755
+ headers: {
6756
+ [name: string]: unknown;
6757
+ };
6758
+ content: {
6759
+ "application/json": components["schemas"]["AgreementVersionOut"];
5022
6760
  };
5023
6761
  };
5024
- };
5025
- };
5026
- me_me_get: {
5027
- parameters: {
5028
- query?: never;
5029
- header?: never;
5030
- path?: never;
5031
- cookie?: never;
5032
- };
5033
- requestBody?: never;
5034
- responses: {
5035
- /** @description Successful Response */
5036
- 200: {
6762
+ /** @description Validation Error */
6763
+ 422: {
5037
6764
  headers: {
5038
6765
  [name: string]: unknown;
5039
6766
  };
5040
6767
  content: {
5041
- "application/json": components["schemas"]["Principal"];
6768
+ "application/json": components["schemas"]["HTTPValidationError"];
5042
6769
  };
5043
6770
  };
5044
6771
  };
@@ -5114,6 +6841,42 @@ export interface operations {
5114
6841
  };
5115
6842
  };
5116
6843
  };
6844
+ todos_v1_agreements_todos_get: {
6845
+ parameters: {
6846
+ query?: {
6847
+ cohort_id?: string | null;
6848
+ /** @description Only cohorts I lead or facilitate */
6849
+ mine?: boolean;
6850
+ };
6851
+ header?: {
6852
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6853
+ "X-Guidistry-Context"?: string | null;
6854
+ };
6855
+ path?: never;
6856
+ cookie?: never;
6857
+ };
6858
+ requestBody?: never;
6859
+ responses: {
6860
+ /** @description Successful Response */
6861
+ 200: {
6862
+ headers: {
6863
+ [name: string]: unknown;
6864
+ };
6865
+ content: {
6866
+ "application/json": components["schemas"]["TodoOut"][];
6867
+ };
6868
+ };
6869
+ /** @description Validation Error */
6870
+ 422: {
6871
+ headers: {
6872
+ [name: string]: unknown;
6873
+ };
6874
+ content: {
6875
+ "application/json": components["schemas"]["HTTPValidationError"];
6876
+ };
6877
+ };
6878
+ };
6879
+ };
5117
6880
  agreement_entered_in_error_v1_agreements__agreement_id__entered_in_error_post: {
5118
6881
  parameters: {
5119
6882
  query?: never;
@@ -6953,7 +8716,11 @@ export interface operations {
6953
8716
  };
6954
8717
  cookie?: never;
6955
8718
  };
6956
- requestBody?: never;
8719
+ requestBody?: {
8720
+ content: {
8721
+ "application/json": components["schemas"]["InvitationAccept"] | null;
8722
+ };
8723
+ };
6957
8724
  responses: {
6958
8725
  /** @description Successful Response */
6959
8726
  200: {
@@ -7112,6 +8879,74 @@ export interface operations {
7112
8879
  };
7113
8880
  };
7114
8881
  };
8882
+ my_agreements_v1_me_agreements_get: {
8883
+ parameters: {
8884
+ query?: never;
8885
+ header?: {
8886
+ /** @description Membership the caller is acting through (from GET /v1/me) */
8887
+ "X-Guidistry-Context"?: string | null;
8888
+ };
8889
+ path?: never;
8890
+ cookie?: never;
8891
+ };
8892
+ requestBody?: never;
8893
+ responses: {
8894
+ /** @description Successful Response */
8895
+ 200: {
8896
+ headers: {
8897
+ [name: string]: unknown;
8898
+ };
8899
+ content: {
8900
+ "application/json": components["schemas"]["MyAgreementsOut"];
8901
+ };
8902
+ };
8903
+ /** @description Validation Error */
8904
+ 422: {
8905
+ headers: {
8906
+ [name: string]: unknown;
8907
+ };
8908
+ content: {
8909
+ "application/json": components["schemas"]["HTTPValidationError"];
8910
+ };
8911
+ };
8912
+ };
8913
+ };
8914
+ sign_v1_me_agreements_post: {
8915
+ parameters: {
8916
+ query?: never;
8917
+ header?: {
8918
+ /** @description Membership the caller is acting through (from GET /v1/me) */
8919
+ "X-Guidistry-Context"?: string | null;
8920
+ };
8921
+ path?: never;
8922
+ cookie?: never;
8923
+ };
8924
+ requestBody: {
8925
+ content: {
8926
+ "application/json": components["schemas"]["AgreementSignIn"];
8927
+ };
8928
+ };
8929
+ responses: {
8930
+ /** @description Successful Response */
8931
+ 201: {
8932
+ headers: {
8933
+ [name: string]: unknown;
8934
+ };
8935
+ content: {
8936
+ "application/json": components["schemas"]["AgreementSignatureOut"];
8937
+ };
8938
+ };
8939
+ /** @description Validation Error */
8940
+ 422: {
8941
+ headers: {
8942
+ [name: string]: unknown;
8943
+ };
8944
+ content: {
8945
+ "application/json": components["schemas"]["HTTPValidationError"];
8946
+ };
8947
+ };
8948
+ };
8949
+ };
7115
8950
  my_enrollments_v1_me_enrollments_get: {
7116
8951
  parameters: {
7117
8952
  query?: never;
@@ -8329,6 +10164,44 @@ export interface operations {
8329
10164
  };
8330
10165
  };
8331
10166
  };
10167
+ setting_history_v1_settings__key__history_get: {
10168
+ parameters: {
10169
+ query: {
10170
+ level: string;
10171
+ scope_id: string;
10172
+ limit?: number;
10173
+ };
10174
+ header?: {
10175
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10176
+ "X-Guidistry-Context"?: string | null;
10177
+ };
10178
+ path: {
10179
+ key: string;
10180
+ };
10181
+ cookie?: never;
10182
+ };
10183
+ requestBody?: never;
10184
+ responses: {
10185
+ /** @description Successful Response */
10186
+ 200: {
10187
+ headers: {
10188
+ [name: string]: unknown;
10189
+ };
10190
+ content: {
10191
+ "application/json": components["schemas"]["SettingHistoryEntry"][];
10192
+ };
10193
+ };
10194
+ /** @description Validation Error */
10195
+ 422: {
10196
+ headers: {
10197
+ [name: string]: unknown;
10198
+ };
10199
+ content: {
10200
+ "application/json": components["schemas"]["HTTPValidationError"];
10201
+ };
10202
+ };
10203
+ };
10204
+ };
8332
10205
  synthesize_v1_speech_synthesize_post: {
8333
10206
  parameters: {
8334
10207
  query?: never;
@@ -8857,6 +10730,81 @@ export interface operations {
8857
10730
  };
8858
10731
  };
8859
10732
  };
10733
+ join_visit_v1_visits__visit_id__join_post: {
10734
+ parameters: {
10735
+ query?: never;
10736
+ header?: {
10737
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10738
+ "X-Guidistry-Context"?: string | null;
10739
+ };
10740
+ path: {
10741
+ visit_id: string;
10742
+ };
10743
+ cookie?: never;
10744
+ };
10745
+ requestBody?: never;
10746
+ responses: {
10747
+ /** @description Successful Response */
10748
+ 200: {
10749
+ headers: {
10750
+ [name: string]: unknown;
10751
+ };
10752
+ content: {
10753
+ "application/json": components["schemas"]["JoinOut"];
10754
+ };
10755
+ };
10756
+ /** @description agreement_required, too_early or not_joinable */
10757
+ 409: {
10758
+ headers: {
10759
+ [name: string]: unknown;
10760
+ };
10761
+ content?: never;
10762
+ };
10763
+ /** @description Validation Error */
10764
+ 422: {
10765
+ headers: {
10766
+ [name: string]: unknown;
10767
+ };
10768
+ content: {
10769
+ "application/json": components["schemas"]["HTTPValidationError"];
10770
+ };
10771
+ };
10772
+ };
10773
+ };
10774
+ joining_v1_visits__visit_id__joining_get: {
10775
+ parameters: {
10776
+ query?: never;
10777
+ header?: {
10778
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10779
+ "X-Guidistry-Context"?: string | null;
10780
+ };
10781
+ path: {
10782
+ visit_id: string;
10783
+ };
10784
+ cookie?: never;
10785
+ };
10786
+ requestBody?: never;
10787
+ responses: {
10788
+ /** @description Successful Response */
10789
+ 200: {
10790
+ headers: {
10791
+ [name: string]: unknown;
10792
+ };
10793
+ content: {
10794
+ "application/json": components["schemas"]["JoiningOut"];
10795
+ };
10796
+ };
10797
+ /** @description Validation Error */
10798
+ 422: {
10799
+ headers: {
10800
+ [name: string]: unknown;
10801
+ };
10802
+ content: {
10803
+ "application/json": components["schemas"]["HTTPValidationError"];
10804
+ };
10805
+ };
10806
+ };
10807
+ };
8860
10808
  get_live_session_v1_visits__visit_id__live_session_get: {
8861
10809
  parameters: {
8862
10810
  query?: never;
@@ -9001,6 +10949,40 @@ export interface operations {
9001
10949
  };
9002
10950
  };
9003
10951
  };
10952
+ readiness_v1_visits__visit_id__readiness_get: {
10953
+ parameters: {
10954
+ query?: never;
10955
+ header?: {
10956
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10957
+ "X-Guidistry-Context"?: string | null;
10958
+ };
10959
+ path: {
10960
+ visit_id: string;
10961
+ };
10962
+ cookie?: never;
10963
+ };
10964
+ requestBody?: never;
10965
+ responses: {
10966
+ /** @description Successful Response */
10967
+ 200: {
10968
+ headers: {
10969
+ [name: string]: unknown;
10970
+ };
10971
+ content: {
10972
+ "application/json": components["schemas"]["ReadinessOut"];
10973
+ };
10974
+ };
10975
+ /** @description Validation Error */
10976
+ 422: {
10977
+ headers: {
10978
+ [name: string]: unknown;
10979
+ };
10980
+ content: {
10981
+ "application/json": components["schemas"]["HTTPValidationError"];
10982
+ };
10983
+ };
10984
+ };
10985
+ };
9004
10986
  record_held_endpoint_v1_visits__visit_id__record_held_post: {
9005
10987
  parameters: {
9006
10988
  query?: never;