@brightoutcome/guidistry-client 0.9.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/schema.d.ts +1958 -67
  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;
@@ -1762,6 +2016,40 @@ export interface paths {
1762
2016
  patch?: never;
1763
2017
  trace?: never;
1764
2018
  };
2019
+ "/v1/visits/{visit_id}/join": {
2020
+ parameters: {
2021
+ query?: never;
2022
+ header?: never;
2023
+ path?: never;
2024
+ cookie?: never;
2025
+ };
2026
+ get?: never;
2027
+ put?: never;
2028
+ /** Join a visit (patients): the meeting link, or what to sign first */
2029
+ post: operations["join_visit_v1_visits__visit_id__join_post"];
2030
+ delete?: never;
2031
+ options?: never;
2032
+ head?: never;
2033
+ patch?: never;
2034
+ trace?: never;
2035
+ };
2036
+ "/v1/visits/{visit_id}/joining": {
2037
+ parameters: {
2038
+ query?: never;
2039
+ header?: never;
2040
+ path?: never;
2041
+ cookie?: never;
2042
+ };
2043
+ /** Who can join, who owes an agreement, and who is waiting */
2044
+ get: operations["joining_v1_visits__visit_id__joining_get"];
2045
+ put?: never;
2046
+ post?: never;
2047
+ delete?: never;
2048
+ options?: never;
2049
+ head?: never;
2050
+ patch?: never;
2051
+ trace?: never;
2052
+ };
1765
2053
  "/v1/visits/{visit_id}/live-session": {
1766
2054
  parameters: {
1767
2055
  query?: never;
@@ -1801,6 +2089,23 @@ export interface paths {
1801
2089
  patch?: never;
1802
2090
  trace?: never;
1803
2091
  };
2092
+ "/v1/visits/{visit_id}/readiness": {
2093
+ parameters: {
2094
+ query?: never;
2095
+ header?: never;
2096
+ path?: never;
2097
+ cookie?: never;
2098
+ };
2099
+ /** Session prep: waivers now; pre-work and questionnaires in later modules */
2100
+ get: operations["readiness_v1_visits__visit_id__readiness_get"];
2101
+ put?: never;
2102
+ post?: never;
2103
+ delete?: never;
2104
+ options?: never;
2105
+ head?: never;
2106
+ patch?: never;
2107
+ trace?: never;
2108
+ };
1804
2109
  "/v1/visits/{visit_id}/record-held": {
1805
2110
  parameters: {
1806
2111
  query?: never;
@@ -1925,34 +2230,199 @@ export interface components {
1925
2230
  /** Type */
1926
2231
  type: string;
1927
2232
  };
1928
- /** AppliedOut */
1929
- AppliedOut: {
1930
- close_out: components["schemas"]["CloseOutOut"];
2233
+ /** AgreementSignIn */
2234
+ AgreementSignIn: {
1931
2235
  /**
1932
- * Set
1933
- * @description Enrollments whose rows this set
2236
+ * Accept
2237
+ * @description Guidistry Terms/Privacy: the tick
1934
2238
  */
1935
- set: string[];
1936
- };
1937
- /** ApplyCode */
1938
- ApplyCode: {
1939
- /** Code */
1940
- code: string;
1941
- };
1942
- /** AttendanceIn */
1943
- AttendanceIn: {
2239
+ accept?: boolean | null;
1944
2240
  /**
1945
- * Reason Code
1946
- * @description Excused: required
2241
+ * Cohort Id
2242
+ * @description Waivers: the cohort it's for
1947
2243
  */
1948
- reason_code?: ("illness" | "schedule_conflict" | "technical" | "other") | null;
2244
+ cohort_id?: string | null;
2245
+ /** Statement Ids */
2246
+ statement_ids?: string[];
2247
+ /** Typed Name */
2248
+ typed_name?: string | null;
1949
2249
  /**
1950
- * Reason Text
1951
- * @description Excused + other
2250
+ * Version Id
2251
+ * Format: uuid
1952
2252
  */
1953
- reason_text?: string | null;
2253
+ version_id: string;
2254
+ };
2255
+ /** AgreementSignatureOut */
2256
+ AgreementSignatureOut: {
2257
+ /** Cohort Id */
2258
+ cohort_id: string | null;
2259
+ /** Collected By Name */
2260
+ collected_by_name?: string | null;
2261
+ /** Content Hash */
2262
+ content_hash: string | null;
1954
2263
  /**
1955
- * Value
2264
+ * Created At
2265
+ * Format: date-time
2266
+ */
2267
+ created_at: string;
2268
+ /** Document Id */
2269
+ document_id: string | null;
2270
+ /** Entered In Error At */
2271
+ entered_in_error_at: string | null;
2272
+ /** Entered In Error Reason */
2273
+ entered_in_error_reason: string | null;
2274
+ /**
2275
+ * Id
2276
+ * Format: uuid
2277
+ */
2278
+ id: string;
2279
+ /**
2280
+ * Kind
2281
+ * @enum {string}
2282
+ */
2283
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
2284
+ /**
2285
+ * Method
2286
+ * @enum {string}
2287
+ */
2288
+ method: "portal" | "paper" | "verbal" | "tick";
2289
+ /** Patient Id */
2290
+ patient_id: string | null;
2291
+ /** Reason */
2292
+ reason?: string | null;
2293
+ /** Recorded By Person Id */
2294
+ recorded_by_person_id: string | null;
2295
+ /** Representative Authority */
2296
+ representative_authority?: string | null;
2297
+ /** Representative Name */
2298
+ representative_name?: string | null;
2299
+ /** Representative Relationship */
2300
+ representative_relationship?: ("guardian" | "healthcare_agent" | "parent" | "other") | null;
2301
+ /** Scans */
2302
+ scans?: components["schemas"]["ScanOut"][];
2303
+ /**
2304
+ * Signed At
2305
+ * Format: date-time
2306
+ */
2307
+ signed_at: string;
2308
+ /** Signed On */
2309
+ signed_on: string | null;
2310
+ /**
2311
+ * Signer
2312
+ * @enum {string}
2313
+ */
2314
+ signer: "patient" | "representative";
2315
+ /** Typed Name */
2316
+ typed_name?: string | null;
2317
+ /** Version Id */
2318
+ version_id: string | null;
2319
+ /** Version Label */
2320
+ version_label: string | null;
2321
+ /** Visit Id */
2322
+ visit_id: string | null;
2323
+ };
2324
+ /**
2325
+ * AgreementVersionOut
2326
+ * @description A version's full text: what a patient reads and signs.
2327
+ */
2328
+ AgreementVersionOut: {
2329
+ /**
2330
+ * Banner
2331
+ * @description Templates: 'Sample template: your practice must review, adapt…'
2332
+ */
2333
+ banner?: string | null;
2334
+ /** Body Md */
2335
+ body_md: string | null;
2336
+ /** Change Kind */
2337
+ change_kind: ("initial" | "material" | "minor") | null;
2338
+ /** Change Reason */
2339
+ change_reason?: string | null;
2340
+ /** Change Summary */
2341
+ change_summary: string | null;
2342
+ /**
2343
+ * Changed Statement Ids
2344
+ * @description Statements new or changed since the previous published version
2345
+ */
2346
+ changed_statement_ids?: string[];
2347
+ /**
2348
+ * Confirmation
2349
+ * @description Staff only: the publisher's confirmation line (and IRB reference)
2350
+ */
2351
+ confirmation?: {
2352
+ [key: string]: unknown;
2353
+ } | null;
2354
+ /** Content Hash */
2355
+ content_hash: string | null;
2356
+ /** Context */
2357
+ context: ("clinical" | "research") | null;
2358
+ /**
2359
+ * Document Id
2360
+ * Format: uuid
2361
+ */
2362
+ document_id: string;
2363
+ /**
2364
+ * Id
2365
+ * Format: uuid
2366
+ */
2367
+ id: string;
2368
+ /** Intro Md */
2369
+ intro_md: string | null;
2370
+ /**
2371
+ * Is Template
2372
+ * @default false
2373
+ */
2374
+ is_template: boolean;
2375
+ /**
2376
+ * Kind
2377
+ * @enum {string}
2378
+ */
2379
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
2380
+ /** Label */
2381
+ label: string;
2382
+ /** Number */
2383
+ number: number;
2384
+ /** Privacy Notice Url */
2385
+ privacy_notice_url?: string | null;
2386
+ /** Published At */
2387
+ published_at: string | null;
2388
+ /** Statements */
2389
+ statements: components["schemas"]["Statement"][];
2390
+ /**
2391
+ * Status
2392
+ * @enum {string}
2393
+ */
2394
+ status: "draft" | "published";
2395
+ /** Title */
2396
+ title: string;
2397
+ };
2398
+ /** AppliedOut */
2399
+ AppliedOut: {
2400
+ close_out: components["schemas"]["CloseOutOut"];
2401
+ /**
2402
+ * Set
2403
+ * @description Enrollments whose rows this set
2404
+ */
2405
+ set: string[];
2406
+ };
2407
+ /** ApplyCode */
2408
+ ApplyCode: {
2409
+ /** Code */
2410
+ code: string;
2411
+ };
2412
+ /** AttendanceIn */
2413
+ AttendanceIn: {
2414
+ /**
2415
+ * Reason Code
2416
+ * @description Excused: required
2417
+ */
2418
+ reason_code?: ("illness" | "schedule_conflict" | "technical" | "other") | null;
2419
+ /**
2420
+ * Reason Text
2421
+ * @description Excused + other
2422
+ */
2423
+ reason_text?: string | null;
2424
+ /**
2425
+ * Value
1956
2426
  * @enum {string}
1957
2427
  */
1958
2428
  value: "present" | "attended" | "late" | "absent" | "excused";
@@ -2190,6 +2660,11 @@ export interface components {
2190
2660
  * @description IANA, e.g. America/Chicago
2191
2661
  */
2192
2662
  time_zone: string;
2663
+ /**
2664
+ * Visit Mode
2665
+ * @description online (default), in_person or hybrid: the portal's wording (D-029)
2666
+ */
2667
+ visit_mode?: ("online" | "in_person" | "hybrid") | null;
2193
2668
  };
2194
2669
  /** CohortOut */
2195
2670
  CohortOut: {
@@ -2251,6 +2726,12 @@ export interface components {
2251
2726
  team: components["schemas"]["TeamMemberOut"][];
2252
2727
  /** Time Zone */
2253
2728
  time_zone: string;
2729
+ /**
2730
+ * Visit Mode
2731
+ * @default online
2732
+ * @enum {string}
2733
+ */
2734
+ visit_mode: "online" | "in_person" | "hybrid";
2254
2735
  };
2255
2736
  /** CohortUpdate */
2256
2737
  CohortUpdate: {
@@ -2266,6 +2747,11 @@ export interface components {
2266
2747
  recurrence?: components["schemas"]["RecurrenceIn"] | null;
2267
2748
  /** Status */
2268
2749
  status?: ("planned" | "active" | "completed" | "cancelled") | null;
2750
+ /**
2751
+ * Visit Mode
2752
+ * @description online (default), in_person or hybrid: the portal's wording (D-029)
2753
+ */
2754
+ visit_mode?: ("online" | "in_person" | "hybrid") | null;
2269
2755
  };
2270
2756
  /**
2271
2757
  * CourseContent
@@ -2486,6 +2972,107 @@ export interface components {
2486
2972
  /** Ok */
2487
2973
  ok: boolean;
2488
2974
  };
2975
+ /** DocumentCreate */
2976
+ DocumentCreate: {
2977
+ /**
2978
+ * Context
2979
+ * @description Defaults by kind (group session agreement: research; else clinical)
2980
+ */
2981
+ context?: ("clinical" | "research") | null;
2982
+ /**
2983
+ * From Template Id
2984
+ * @description A BrightOutcome template document to start the draft from
2985
+ */
2986
+ from_template_id?: string | null;
2987
+ /**
2988
+ * Kind
2989
+ * @enum {string}
2990
+ */
2991
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
2992
+ /** Name */
2993
+ name: string;
2994
+ /**
2995
+ * Org Unit Id
2996
+ * @description Defaults to the context's practice
2997
+ */
2998
+ org_unit_id?: string | null;
2999
+ /**
3000
+ * Owner Level
3001
+ * @description brightoutcome: Guidistry admins only (Terms, Privacy)
3002
+ * @default org_unit
3003
+ * @enum {string}
3004
+ */
3005
+ owner_level: "org_unit" | "brightoutcome";
3006
+ /** Privacy Notice Url */
3007
+ privacy_notice_url?: string | null;
3008
+ };
3009
+ /** DocumentOut */
3010
+ DocumentOut: {
3011
+ /** Context */
3012
+ context: ("clinical" | "research") | null;
3013
+ current: components["schemas"]["VersionBrief"] | null;
3014
+ draft: components["schemas"]["VersionBrief"] | null;
3015
+ /**
3016
+ * Id
3017
+ * Format: uuid
3018
+ */
3019
+ id: string;
3020
+ /** Is Template */
3021
+ is_template: boolean;
3022
+ /**
3023
+ * Kind
3024
+ * @enum {string}
3025
+ */
3026
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
3027
+ /** Name */
3028
+ name: string;
3029
+ /**
3030
+ * Org Unit Id
3031
+ * Format: uuid
3032
+ */
3033
+ org_unit_id: string;
3034
+ /**
3035
+ * Owner Level
3036
+ * @enum {string}
3037
+ */
3038
+ owner_level: "brightoutcome" | "org_unit";
3039
+ /** Privacy Notice Url */
3040
+ privacy_notice_url: string | null;
3041
+ /**
3042
+ * Status
3043
+ * @enum {string}
3044
+ */
3045
+ status: "active" | "archived";
3046
+ /** Versions */
3047
+ versions: components["schemas"]["VersionBrief"][];
3048
+ };
3049
+ /** DocumentUpdate */
3050
+ DocumentUpdate: {
3051
+ /** Name */
3052
+ name?: string | null;
3053
+ /** Privacy Notice Url */
3054
+ privacy_notice_url?: string | null;
3055
+ /** Status */
3056
+ status?: ("active" | "archived") | null;
3057
+ };
3058
+ /** DraftIn */
3059
+ DraftIn: {
3060
+ /** Body Md */
3061
+ body_md?: string | null;
3062
+ /** Change Summary */
3063
+ change_summary?: string | null;
3064
+ /** Intro Md */
3065
+ intro_md?: string | null;
3066
+ /**
3067
+ * Label
3068
+ * @description Defaults to v{number}
3069
+ */
3070
+ label?: string | null;
3071
+ /** Statements */
3072
+ statements?: components["schemas"]["Statement"][] | null;
3073
+ /** Title */
3074
+ title?: string | null;
3075
+ };
2489
3076
  /** EmrTextOut */
2490
3077
  EmrTextOut: {
2491
3078
  /**
@@ -2579,8 +3166,21 @@ export interface components {
2579
3166
  };
2580
3167
  /** EnrollmentOut */
2581
3168
  EnrollmentOut: {
2582
- /** Agreements Missing */
3169
+ /**
3170
+ * Agreement Flags
3171
+ * @description paper_scan_missing, signature_due_after_verbal
3172
+ */
3173
+ agreement_flags?: string[];
3174
+ /**
3175
+ * Agreements Missing
3176
+ * @description Deprecated: same as agreements_owed
3177
+ */
2583
3178
  agreements_missing: string[];
3179
+ /**
3180
+ * Agreements Owed
3181
+ * @description Agreements this member owes (blocks joining a visit, not enrolling)
3182
+ */
3183
+ agreements_owed?: string[];
2584
3184
  /**
2585
3185
  * Cohort Id
2586
3186
  * Format: uuid
@@ -2657,6 +3257,11 @@ export interface components {
2657
3257
  /** Reason */
2658
3258
  reason: string;
2659
3259
  };
3260
+ /** EnteredInErrorIn */
3261
+ EnteredInErrorIn: {
3262
+ /** Reason */
3263
+ reason: string;
3264
+ };
2660
3265
  /** FidelityItemOut */
2661
3266
  FidelityItemOut: {
2662
3267
  /** Confirmed */
@@ -2997,6 +3602,19 @@ export interface components {
2997
3602
  */
2998
3603
  type: "image";
2999
3604
  };
3605
+ /** InvitationAccept */
3606
+ InvitationAccept: {
3607
+ /**
3608
+ * Accept Platform
3609
+ * @description Guidistry's Terms and Privacy versions the person ticked
3610
+ */
3611
+ accept_platform?: string[];
3612
+ /**
3613
+ * Signatures
3614
+ * @description The site agreement: version_id, statement_ids, typed_name
3615
+ */
3616
+ signatures?: components["schemas"]["AgreementSignIn"][];
3617
+ };
3000
3618
  /** InvitationAccepted */
3001
3619
  InvitationAccepted: {
3002
3620
  /**
@@ -3080,6 +3698,78 @@ export interface components {
3080
3698
  role: string;
3081
3699
  /** Status */
3082
3700
  status: string;
3701
+ /**
3702
+ * To Sign
3703
+ * @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)
3704
+ */
3705
+ to_sign?: components["schemas"]["AgreementVersionOut"][];
3706
+ };
3707
+ /** JoinOut */
3708
+ JoinOut: {
3709
+ /**
3710
+ * Ends At
3711
+ * Format: date-time
3712
+ */
3713
+ ends_at: string;
3714
+ /** Meeting Url */
3715
+ meeting_url: string;
3716
+ /**
3717
+ * Mode
3718
+ * @description Module 7 adds 'video' with a token
3719
+ * @constant
3720
+ */
3721
+ mode: "link";
3722
+ /**
3723
+ * Opens At
3724
+ * Format: date-time
3725
+ */
3726
+ opens_at: string;
3727
+ /**
3728
+ * Visit Mode
3729
+ * @enum {string}
3730
+ */
3731
+ visit_mode: "online" | "in_person" | "hybrid";
3732
+ };
3733
+ /** JoiningMember */
3734
+ JoiningMember: {
3735
+ /** Display Name */
3736
+ display_name: string;
3737
+ /**
3738
+ * Enrollment Id
3739
+ * Format: uuid
3740
+ */
3741
+ enrollment_id: string;
3742
+ /** Last Attempt At */
3743
+ last_attempt_at: string | null;
3744
+ /** Last Attempt Outcome */
3745
+ last_attempt_outcome: string | null;
3746
+ /** Owes */
3747
+ owes: components["schemas"]["OwedOut"][];
3748
+ /**
3749
+ * Patient Id
3750
+ * Format: uuid
3751
+ */
3752
+ patient_id: string;
3753
+ /**
3754
+ * State
3755
+ * @enum {string}
3756
+ */
3757
+ state: "ready" | "owes" | "verbal_pass" | "paper_scan_missing";
3758
+ /**
3759
+ * Waiting
3760
+ * @description Refused for an agreement in the last 30 minutes
3761
+ */
3762
+ waiting: boolean;
3763
+ };
3764
+ /** JoiningOut */
3765
+ JoiningOut: {
3766
+ /** Members */
3767
+ members: components["schemas"]["JoiningMember"][];
3768
+ /**
3769
+ * Visit Id
3770
+ * Format: uuid
3771
+ */
3772
+ visit_id: string;
3083
3773
  };
3084
3774
  /**
3085
3775
  * LayoutBlock
@@ -3281,6 +3971,11 @@ export interface components {
3281
3971
  * @description The context this request used, if one could be determined
3282
3972
  */
3283
3973
  active_membership_id: string | null;
3974
+ /**
3975
+ * Agreements Owed
3976
+ * @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).
3977
+ */
3978
+ agreements_owed?: components["schemas"]["OwedOut"][];
3284
3979
  /** Display Name */
3285
3980
  display_name: string | null;
3286
3981
  /** Email */
@@ -3342,6 +4037,15 @@ export interface components {
3342
4037
  };
3343
4038
  /** MemberOut */
3344
4039
  MemberOut: {
4040
+ /**
4041
+ * Agreements
4042
+ * @description Module 5: owed = can't be marked Attended or Late until paper or a verbal pass is recorded for this visit
4043
+ * @default not_required
4044
+ * @enum {string}
4045
+ */
4046
+ agreements: "ok" | "owed" | "verbal_pass" | "paper_no_scan" | "not_required";
4047
+ /** Agreements Owed */
4048
+ agreements_owed?: string[];
3345
4049
  /** Attendance */
3346
4050
  attendance: ("present" | "attended" | "late" | "absent" | "excused") | null;
3347
4051
  /** Attendance Source */
@@ -3430,11 +4134,26 @@ export interface components {
3430
4134
  /** Topics */
3431
4135
  topics?: components["schemas"]["Topic"][];
3432
4136
  };
4137
+ /** MyAgreementsOut */
4138
+ MyAgreementsOut: {
4139
+ /** On File */
4140
+ on_file: components["schemas"]["OnFileOut"][];
4141
+ /**
4142
+ * Owed
4143
+ * @description Blocking now or before a join
4144
+ */
4145
+ owed: components["schemas"]["OwedOut"][];
4146
+ };
3433
4147
  /**
3434
4148
  * MyEnrollmentOut
3435
4149
  * @description A patient's own enrollment, as the portal needs it. No version names or keys.
3436
4150
  */
3437
4151
  MyEnrollmentOut: {
4152
+ /**
4153
+ * Agreements Owed
4154
+ * @description This cohort's agreements still to sign (they block joining, not reading)
4155
+ */
4156
+ agreements_owed?: components["schemas"]["OwedOut"][];
3438
4157
  /** Can Request Pause */
3439
4158
  can_request_pause: boolean;
3440
4159
  /**
@@ -3442,6 +4161,13 @@ export interface components {
3442
4161
  * @enum {string}
3443
4162
  */
3444
4163
  cohort_kind: "group" | "rolling";
4164
+ /**
4165
+ * Context
4166
+ * @description Clinic cohort or research study wave: the portal picks its words (D-029)
4167
+ * @default clinical
4168
+ * @enum {string}
4169
+ */
4170
+ context: "clinical" | "research";
3445
4171
  /**
3446
4172
  * Course Id
3447
4173
  * Format: uuid
@@ -3464,6 +4190,7 @@ export interface components {
3464
4190
  * Format: uuid
3465
4191
  */
3466
4192
  id: string;
4193
+ /** @description Without meeting_url: join through POST /v1/visits/{id}/join */
3467
4194
  next_visit: components["schemas"]["VisitOut"] | null;
3468
4195
  /** Pause Requests */
3469
4196
  pause_requests: components["schemas"]["PauseOut"][];
@@ -3479,6 +4206,12 @@ export interface components {
3479
4206
  * @enum {string}
3480
4207
  */
3481
4208
  status: "pending" | "waitlisted" | "enrolled" | "completed" | "withdrawn" | "moved";
4209
+ /**
4210
+ * Visit Mode
4211
+ * @default online
4212
+ * @enum {string}
4213
+ */
4214
+ visit_mode: "online" | "in_person" | "hybrid";
3482
4215
  };
3483
4216
  /** Names */
3484
4217
  Names: {
@@ -3634,27 +4367,63 @@ export interface components {
3634
4367
  */
3635
4368
  source: "live_session" | "chart" | "close_out";
3636
4369
  };
3637
- /** OrgUnitCreate */
3638
- OrgUnitCreate: {
3639
- /** Name */
3640
- name: string;
4370
+ /** OnFileOut */
4371
+ OnFileOut: {
4372
+ /** Cohort Id */
4373
+ cohort_id: string | null;
3641
4374
  /**
3642
- * Parent Id
3643
- * @description Omit to create a new top-level customer (Guidistry admins only)
4375
+ * Current
4376
+ * @description Still satisfies the requirement
3644
4377
  */
3645
- parent_id?: string | null;
3646
- /** Slug */
3647
- slug?: string | null;
4378
+ current: boolean;
3648
4379
  /**
3649
- * Type
3650
- * @description practice, clinic, department, institution, …
4380
+ * Kind
4381
+ * @enum {string}
3651
4382
  */
3652
- type: string;
3653
- };
3654
- /** OrgUnitOut */
3655
- OrgUnitOut: {
4383
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
4384
+ /** Label */
4385
+ label: string;
3656
4386
  /**
3657
- * Id
4387
+ * Method
4388
+ * @enum {string}
4389
+ */
4390
+ method: "portal" | "paper" | "verbal" | "tick";
4391
+ /**
4392
+ * Signature Id
4393
+ * Format: uuid
4394
+ */
4395
+ signature_id: string;
4396
+ /**
4397
+ * Signed At
4398
+ * Format: date-time
4399
+ */
4400
+ signed_at: string;
4401
+ /** Version Id */
4402
+ version_id: string | null;
4403
+ /** Version Label */
4404
+ version_label: string | null;
4405
+ };
4406
+ /** OrgUnitCreate */
4407
+ OrgUnitCreate: {
4408
+ /** Name */
4409
+ name: string;
4410
+ /**
4411
+ * Parent Id
4412
+ * @description Omit to create a new top-level customer (Guidistry admins only)
4413
+ */
4414
+ parent_id?: string | null;
4415
+ /** Slug */
4416
+ slug?: string | null;
4417
+ /**
4418
+ * Type
4419
+ * @description practice, clinic, department, institution, …
4420
+ */
4421
+ type: string;
4422
+ };
4423
+ /** OrgUnitOut */
4424
+ OrgUnitOut: {
4425
+ /**
4426
+ * Id
3658
4427
  * Format: uuid
3659
4428
  */
3660
4429
  id: string;
@@ -3680,6 +4449,38 @@ export interface components {
3680
4449
  /** Status */
3681
4450
  status?: ("active" | "suspended" | "closed") | null;
3682
4451
  };
4452
+ /** OwedOut */
4453
+ OwedOut: {
4454
+ /** Cohort Id */
4455
+ cohort_id: string | null;
4456
+ /** Document Id */
4457
+ document_id: string | null;
4458
+ /**
4459
+ * Due
4460
+ * @enum {string}
4461
+ */
4462
+ due: "now" | "before_join";
4463
+ /** Flags */
4464
+ flags: string[];
4465
+ /**
4466
+ * Kind
4467
+ * @enum {string}
4468
+ */
4469
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
4470
+ /** Label */
4471
+ label: string;
4472
+ /** Reason */
4473
+ reason: ("never_signed" | "new_version" | "verbal_only") | null;
4474
+ /**
4475
+ * Status
4476
+ * @enum {string}
4477
+ */
4478
+ status: "ok" | "owed" | "verbal_pass" | "grace" | "unpublished" | "not_required";
4479
+ /** Title */
4480
+ title: string | null;
4481
+ /** Version Id */
4482
+ version_id: string | null;
4483
+ };
3683
4484
  /** PatientCreate */
3684
4485
  PatientCreate: {
3685
4486
  /** Birth Date */
@@ -3727,7 +4528,7 @@ export interface components {
3727
4528
  * Stage
3728
4529
  * @enum {string}
3729
4530
  */
3730
- stage: "added" | "invited" | "accepted" | "cleared" | "enrolled" | "alumni";
4531
+ stage: "added" | "invited" | "accepted" | "enrolled" | "alumni";
3731
4532
  };
3732
4533
  /** PatientPage */
3733
4534
  PatientPage: {
@@ -4062,6 +4863,13 @@ export interface components {
4062
4863
  };
4063
4864
  /** ProgramBrief */
4064
4865
  ProgramBrief: {
4866
+ /**
4867
+ * Context
4868
+ * @description Clinic program or research study (portal wording, D-029)
4869
+ * @default clinical
4870
+ * @enum {string}
4871
+ */
4872
+ context: "clinical" | "research";
4065
4873
  /**
4066
4874
  * Id
4067
4875
  * Format: uuid
@@ -4072,6 +4880,13 @@ export interface components {
4072
4880
  };
4073
4881
  /** ProgramCreate */
4074
4882
  ProgramCreate: {
4883
+ /**
4884
+ * Context
4885
+ * @description Research: the portal says 'group session' and cohorts require the group session agreement (D-029). Fixed once the program has a cohort.
4886
+ * @default clinical
4887
+ * @enum {string}
4888
+ */
4889
+ context: "clinical" | "research";
4075
4890
  /**
4076
4891
  * Course Id
4077
4892
  * Format: uuid
@@ -4095,6 +4910,13 @@ export interface components {
4095
4910
  * @description A practice's offering: its name, and the program template it uses with which version.
4096
4911
  */
4097
4912
  ProgramOut: {
4913
+ /**
4914
+ * Context
4915
+ * @description A clinic program or a research study's (D-029)
4916
+ * @default clinical
4917
+ * @enum {string}
4918
+ */
4919
+ context: "clinical" | "research";
4098
4920
  course: components["schemas"]["CourseRef"];
4099
4921
  /**
4100
4922
  * Created At
@@ -4132,6 +4954,11 @@ export interface components {
4132
4954
  };
4133
4955
  /** ProgramUpdate */
4134
4956
  ProgramUpdate: {
4957
+ /**
4958
+ * Context
4959
+ * @description Only while the program has no cohort (409 otherwise)
4960
+ */
4961
+ context?: ("clinical" | "research") | null;
4135
4962
  /**
4136
4963
  * Excluded Keys
4137
4964
  * @description Topics (or other items) this program leaves out
@@ -4162,6 +4989,26 @@ export interface components {
4162
4989
  /** Title */
4163
4990
  title: string;
4164
4991
  };
4992
+ /** PublishIn */
4993
+ PublishIn: {
4994
+ /**
4995
+ * Change Kind
4996
+ * @description Every version after the first; default material
4997
+ */
4998
+ change_kind?: ("material" | "minor") | null;
4999
+ /**
5000
+ * Change Reason
5001
+ * @description Minor: required
5002
+ */
5003
+ change_reason?: string | null;
5004
+ /**
5005
+ * Confirmation Text
5006
+ * @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.'
5007
+ */
5008
+ confirmation_text: string;
5009
+ /** Irb Reference */
5010
+ irb_reference?: string | null;
5011
+ };
4165
5012
  /**
4166
5013
  * QuestionBlock
4167
5014
  * @description A question answered in place (design §5.8). Reserved: no January course uses it.
@@ -4207,15 +5054,75 @@ export interface components {
4207
5054
  };
4208
5055
  /** QueueEntry */
4209
5056
  QueueEntry: {
4210
- /** Agreements Missing */
5057
+ /**
5058
+ * Agreements Missing
5059
+ * @description Deprecated: same as agreements_owed
5060
+ */
4211
5061
  agreements_missing: string[];
5062
+ /**
5063
+ * Agreements Owed
5064
+ * @description The "Owed agreement" badge (D-029)
5065
+ */
5066
+ agreements_owed?: string[];
4212
5067
  enrollment: components["schemas"]["EnrollmentBrief"] | null;
4213
5068
  patient: components["schemas"]["PatientOut"];
4214
5069
  /**
4215
5070
  * Stage
4216
5071
  * @enum {string}
4217
5072
  */
4218
- stage: "added" | "invited" | "accepted" | "cleared" | "enrolled" | "alumni";
5073
+ stage: "added" | "invited" | "accepted" | "enrolled" | "alumni";
5074
+ };
5075
+ /** ReadinessMember */
5076
+ ReadinessMember: {
5077
+ /**
5078
+ * Device
5079
+ * @default not_available
5080
+ * @constant
5081
+ */
5082
+ device: "not_available";
5083
+ /** Display Name */
5084
+ display_name: string;
5085
+ /**
5086
+ * Enrollment Id
5087
+ * Format: uuid
5088
+ */
5089
+ enrollment_id: string;
5090
+ /**
5091
+ * Patient Id
5092
+ * Format: uuid
5093
+ */
5094
+ patient_id: string;
5095
+ /**
5096
+ * Prework
5097
+ * @default not_available
5098
+ * @constant
5099
+ */
5100
+ prework: "not_available";
5101
+ /**
5102
+ * Pros
5103
+ * @default not_available
5104
+ * @constant
5105
+ */
5106
+ pros: "not_available";
5107
+ /**
5108
+ * Waiver
5109
+ * @enum {string}
5110
+ */
5111
+ waiver: "ok" | "owed" | "verbal_pass" | "paper_no_scan" | "not_required";
5112
+ };
5113
+ /** ReadinessOut */
5114
+ ReadinessOut: {
5115
+ /** Members */
5116
+ members: components["schemas"]["ReadinessMember"][];
5117
+ /**
5118
+ * Visit Id
5119
+ * Format: uuid
5120
+ */
5121
+ visit_id: string;
5122
+ /** Waivers Required */
5123
+ waivers_required: number;
5124
+ /** Waivers Signed */
5125
+ waivers_signed: number;
4219
5126
  };
4220
5127
  /** ReadyResponse */
4221
5128
  ReadyResponse: {
@@ -4286,6 +5193,18 @@ export interface components {
4286
5193
  */
4287
5194
  weekday: number;
4288
5195
  };
5196
+ /** RepresentativeIn */
5197
+ RepresentativeIn: {
5198
+ /** Authority Note */
5199
+ authority_note?: string | null;
5200
+ /** Name */
5201
+ name: string;
5202
+ /**
5203
+ * Relationship
5204
+ * @enum {string}
5205
+ */
5206
+ relationship: "guardian" | "healthcare_agent" | "parent" | "other";
5207
+ };
4289
5208
  /** Resource */
4290
5209
  Resource: {
4291
5210
  /** Category */
@@ -4394,6 +5313,87 @@ export interface components {
4394
5313
  */
4395
5314
  billing_code?: string | null;
4396
5315
  };
5316
+ /** ScanLink */
5317
+ ScanLink: {
5318
+ /**
5319
+ * Expires At
5320
+ * Format: date-time
5321
+ */
5322
+ expires_at: string;
5323
+ /** Url */
5324
+ url: string;
5325
+ };
5326
+ /** ScanOut */
5327
+ ScanOut: {
5328
+ /**
5329
+ * Content Type
5330
+ * @enum {string}
5331
+ */
5332
+ content_type: "application/pdf" | "image/jpeg" | "image/png" | "image/heic";
5333
+ /**
5334
+ * Created At
5335
+ * Format: date-time
5336
+ */
5337
+ created_at: string;
5338
+ /**
5339
+ * Id
5340
+ * Format: uuid
5341
+ */
5342
+ id: string;
5343
+ /** Sha256 */
5344
+ sha256: string;
5345
+ /** Size Bytes */
5346
+ size_bytes: number;
5347
+ /**
5348
+ * Status
5349
+ * @enum {string}
5350
+ */
5351
+ status: "pending" | "stored" | "superseded" | "rejected";
5352
+ /** Stored At */
5353
+ stored_at: string | null;
5354
+ /** Supersede Reason */
5355
+ supersede_reason: string | null;
5356
+ };
5357
+ /** ScanStart */
5358
+ ScanStart: {
5359
+ /**
5360
+ * Content Type
5361
+ * @enum {string}
5362
+ */
5363
+ content_type: "application/pdf" | "image/jpeg" | "image/png" | "image/heic";
5364
+ /**
5365
+ * Reason
5366
+ * @description Replacing: required
5367
+ */
5368
+ reason?: string | null;
5369
+ /** Replaces Scan Id */
5370
+ replaces_scan_id?: string | null;
5371
+ /**
5372
+ * Sha256
5373
+ * @description Hex SHA-256 of the file
5374
+ */
5375
+ sha256: string;
5376
+ /** Size Bytes */
5377
+ size_bytes: number;
5378
+ };
5379
+ /** ScanUpload */
5380
+ ScanUpload: {
5381
+ /**
5382
+ * Expires At
5383
+ * Format: date-time
5384
+ */
5385
+ expires_at: string;
5386
+ /**
5387
+ * Fields
5388
+ * @description POST these form fields, then the file as 'file'
5389
+ */
5390
+ fields: {
5391
+ [key: string]: string;
5392
+ };
5393
+ scan: components["schemas"]["ScanOut"];
5394
+ /** Upload Url */
5395
+ upload_url: string;
5396
+ };
4397
5397
  /** Section */
4398
5398
  Section: {
4399
5399
  /** Blocks */
@@ -4528,6 +5528,65 @@ export interface components {
4528
5528
  */
4529
5529
  voice?: string | null;
4530
5530
  };
5531
+ /** StaffSignatureIn */
5532
+ StaffSignatureIn: {
5533
+ /** Cohort Id */
5534
+ cohort_id?: string | null;
5535
+ /**
5536
+ * Collected By Name
5537
+ * @description Paper
5538
+ */
5539
+ collected_by_name?: string | null;
5540
+ /**
5541
+ * Kind
5542
+ * @enum {string}
5543
+ */
5544
+ kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement";
5545
+ /**
5546
+ * Method
5547
+ * @enum {string}
5548
+ */
5549
+ method: "paper" | "verbal";
5550
+ /**
5551
+ * Patient Id
5552
+ * Format: uuid
5553
+ */
5554
+ patient_id: string;
5555
+ /**
5556
+ * Reason
5557
+ * @description Verbal: required
5558
+ */
5559
+ reason?: string | null;
5560
+ representative?: components["schemas"]["RepresentativeIn"] | null;
5561
+ /**
5562
+ * Signed On
5563
+ * @description Paper: the date on the paper
5564
+ */
5565
+ signed_on?: string | null;
5566
+ /**
5567
+ * Signer
5568
+ * @default patient
5569
+ * @enum {string}
5570
+ */
5571
+ signer: "patient" | "representative";
5572
+ /**
5573
+ * Version Id
5574
+ * @description Paper: defaults to the current one
5575
+ */
5576
+ version_id?: string | null;
5577
+ /**
5578
+ * Visit Id
5579
+ * @description Verbal: the one visit it lets them in
5580
+ */
5581
+ visit_id?: string | null;
5582
+ };
5583
+ /** Statement */
5584
+ Statement: {
5585
+ /** Id */
5586
+ id: string;
5587
+ /** Text */
5588
+ text: string;
5589
+ };
4531
5590
  /** StructureOut */
4532
5591
  StructureOut: {
4533
5592
  /** Approved At */
@@ -4704,6 +5763,42 @@ export interface components {
4704
5763
  */
4705
5764
  type: "text";
4706
5765
  };
5766
+ /** TodoOut */
5767
+ TodoOut: {
5768
+ /**
5769
+ * Agreement Kind
5770
+ * @enum {string}
5771
+ */
5772
+ agreement_kind: "site_agreement" | "group_visit_waiver" | "group_session_agreement" | "platform_terms" | "platform_privacy";
5773
+ /** Cohort Id */
5774
+ cohort_id: string | null;
5775
+ /** Cohort Name */
5776
+ cohort_name: string | null;
5777
+ /**
5778
+ * Kind
5779
+ * @enum {string}
5780
+ */
5781
+ kind: "upload_scan" | "collect_signature";
5782
+ /**
5783
+ * Patient Id
5784
+ * Format: uuid
5785
+ */
5786
+ patient_id: string;
5787
+ /** Patient Name */
5788
+ patient_name: string;
5789
+ /**
5790
+ * Signature Id
5791
+ * Format: uuid
5792
+ */
5793
+ signature_id: string;
5794
+ /**
5795
+ * Since
5796
+ * Format: date-time
5797
+ */
5798
+ since: string;
5799
+ /** Title */
5800
+ title: string;
5801
+ };
4707
5802
  /** Topic */
4708
5803
  Topic: {
4709
5804
  /** Blocks */
@@ -4787,6 +5882,31 @@ export interface components {
4787
5882
  /** Tag */
4788
5883
  tag: string;
4789
5884
  };
5885
+ /** VersionBrief */
5886
+ VersionBrief: {
5887
+ /** Change Kind */
5888
+ change_kind: ("initial" | "material" | "minor") | null;
5889
+ /** Change Summary */
5890
+ change_summary: string | null;
5891
+ /**
5892
+ * Id
5893
+ * Format: uuid
5894
+ */
5895
+ id: string;
5896
+ /** Label */
5897
+ label: string;
5898
+ /** Number */
5899
+ number: number;
5900
+ /** Published At */
5901
+ published_at: string | null;
5902
+ /**
5903
+ * Status
5904
+ * @enum {string}
5905
+ */
5906
+ status: "draft" | "published";
5907
+ /** Title */
5908
+ title: string;
5909
+ };
4790
5910
  /** VersionOut */
4791
5911
  VersionOut: {
4792
5912
  /** Key */
@@ -4829,6 +5949,11 @@ export interface components {
4829
5949
  starts_at: string;
4830
5950
  /** Title */
4831
5951
  title?: string | null;
5952
+ /**
5953
+ * Visit Mode
5954
+ * @description online (default), in_person or hybrid: the portal's wording (D-029)
5955
+ */
5956
+ visit_mode?: ("online" | "in_person" | "hybrid") | null;
4832
5957
  };
4833
5958
  /** VisitOut */
4834
5959
  VisitOut: {
@@ -4863,7 +5988,10 @@ export interface components {
4863
5988
  kind: "scheduled" | "ad_hoc";
4864
5989
  /** Manually Set */
4865
5990
  manually_set: boolean;
4866
- /** Meeting Url */
5991
+ /**
5992
+ * Meeting Url
5993
+ * @description Staff only: patients always get null and join through POST /v1/visits/{id}/join (D-029)
5994
+ */
4867
5995
  meeting_url: string | null;
4868
5996
  /** Needs Rescheduling */
4869
5997
  needs_rescheduling: boolean;
@@ -4885,6 +6013,12 @@ export interface components {
4885
6013
  status: "scheduled" | "held" | "cancelled";
4886
6014
  /** Title */
4887
6015
  title: string | null;
6016
+ /**
6017
+ * Visit Mode
6018
+ * @default online
6019
+ * @enum {string}
6020
+ */
6021
+ visit_mode: "online" | "in_person" | "hybrid";
4888
6022
  };
4889
6023
  /** VoiceOut */
4890
6024
  VoiceOut: {
@@ -4989,19 +6123,541 @@ export interface operations {
4989
6123
  [name: string]: unknown;
4990
6124
  };
4991
6125
  content: {
4992
- "application/json": components["schemas"]["LiveResponse"];
6126
+ "application/json": components["schemas"]["LiveResponse"];
6127
+ };
6128
+ };
6129
+ };
6130
+ };
6131
+ ready_health_ready_get: {
6132
+ parameters: {
6133
+ query?: never;
6134
+ header?: never;
6135
+ path?: never;
6136
+ cookie?: never;
6137
+ };
6138
+ requestBody?: never;
6139
+ responses: {
6140
+ /** @description Successful Response */
6141
+ 200: {
6142
+ headers: {
6143
+ [name: string]: unknown;
6144
+ };
6145
+ content: {
6146
+ "application/json": components["schemas"]["ReadyResponse"];
6147
+ };
6148
+ };
6149
+ /** @description Database unavailable */
6150
+ 503: {
6151
+ headers: {
6152
+ [name: string]: unknown;
6153
+ };
6154
+ content: {
6155
+ "application/json": components["schemas"]["ReadyResponse"];
6156
+ };
6157
+ };
6158
+ };
6159
+ };
6160
+ me_me_get: {
6161
+ parameters: {
6162
+ query?: never;
6163
+ header?: never;
6164
+ path?: never;
6165
+ cookie?: never;
6166
+ };
6167
+ requestBody?: never;
6168
+ responses: {
6169
+ /** @description Successful Response */
6170
+ 200: {
6171
+ headers: {
6172
+ [name: string]: unknown;
6173
+ };
6174
+ content: {
6175
+ "application/json": components["schemas"]["Principal"];
6176
+ };
6177
+ };
6178
+ };
6179
+ };
6180
+ list_documents_v1_agreement_documents_get: {
6181
+ parameters: {
6182
+ query?: {
6183
+ kind?: string | null;
6184
+ context?: string | null;
6185
+ include_archived?: boolean;
6186
+ };
6187
+ header?: {
6188
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6189
+ "X-Guidistry-Context"?: string | null;
6190
+ };
6191
+ path?: never;
6192
+ cookie?: never;
6193
+ };
6194
+ requestBody?: never;
6195
+ responses: {
6196
+ /** @description Successful Response */
6197
+ 200: {
6198
+ headers: {
6199
+ [name: string]: unknown;
6200
+ };
6201
+ content: {
6202
+ "application/json": components["schemas"]["DocumentOut"][];
6203
+ };
6204
+ };
6205
+ /** @description Validation Error */
6206
+ 422: {
6207
+ headers: {
6208
+ [name: string]: unknown;
6209
+ };
6210
+ content: {
6211
+ "application/json": components["schemas"]["HTTPValidationError"];
6212
+ };
6213
+ };
6214
+ };
6215
+ };
6216
+ create_document_v1_agreement_documents_post: {
6217
+ parameters: {
6218
+ query?: never;
6219
+ header?: {
6220
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6221
+ "X-Guidistry-Context"?: string | null;
6222
+ };
6223
+ path?: never;
6224
+ cookie?: never;
6225
+ };
6226
+ requestBody: {
6227
+ content: {
6228
+ "application/json": components["schemas"]["DocumentCreate"];
6229
+ };
6230
+ };
6231
+ responses: {
6232
+ /** @description Successful Response */
6233
+ 201: {
6234
+ headers: {
6235
+ [name: string]: unknown;
6236
+ };
6237
+ content: {
6238
+ "application/json": components["schemas"]["DocumentOut"];
6239
+ };
6240
+ };
6241
+ /** @description Validation Error */
6242
+ 422: {
6243
+ headers: {
6244
+ [name: string]: unknown;
6245
+ };
6246
+ content: {
6247
+ "application/json": components["schemas"]["HTTPValidationError"];
6248
+ };
6249
+ };
6250
+ };
6251
+ };
6252
+ get_document_v1_agreement_documents__document_id__get: {
6253
+ parameters: {
6254
+ query?: never;
6255
+ header?: {
6256
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6257
+ "X-Guidistry-Context"?: string | null;
6258
+ };
6259
+ path: {
6260
+ document_id: string;
6261
+ };
6262
+ cookie?: never;
6263
+ };
6264
+ requestBody?: never;
6265
+ responses: {
6266
+ /** @description Successful Response */
6267
+ 200: {
6268
+ headers: {
6269
+ [name: string]: unknown;
6270
+ };
6271
+ content: {
6272
+ "application/json": components["schemas"]["DocumentOut"];
6273
+ };
6274
+ };
6275
+ /** @description Validation Error */
6276
+ 422: {
6277
+ headers: {
6278
+ [name: string]: unknown;
6279
+ };
6280
+ content: {
6281
+ "application/json": components["schemas"]["HTTPValidationError"];
6282
+ };
6283
+ };
6284
+ };
6285
+ };
6286
+ update_document_v1_agreement_documents__document_id__patch: {
6287
+ parameters: {
6288
+ query?: never;
6289
+ header?: {
6290
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6291
+ "X-Guidistry-Context"?: string | null;
6292
+ };
6293
+ path: {
6294
+ document_id: string;
6295
+ };
6296
+ cookie?: never;
6297
+ };
6298
+ requestBody: {
6299
+ content: {
6300
+ "application/json": components["schemas"]["DocumentUpdate"];
6301
+ };
6302
+ };
6303
+ responses: {
6304
+ /** @description Successful Response */
6305
+ 200: {
6306
+ headers: {
6307
+ [name: string]: unknown;
6308
+ };
6309
+ content: {
6310
+ "application/json": components["schemas"]["DocumentOut"];
6311
+ };
6312
+ };
6313
+ /** @description Validation Error */
6314
+ 422: {
6315
+ headers: {
6316
+ [name: string]: unknown;
6317
+ };
6318
+ content: {
6319
+ "application/json": components["schemas"]["HTTPValidationError"];
6320
+ };
6321
+ };
6322
+ };
6323
+ };
6324
+ new_draft_v1_agreement_documents__document_id__versions_post: {
6325
+ parameters: {
6326
+ query?: never;
6327
+ header?: {
6328
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6329
+ "X-Guidistry-Context"?: string | null;
6330
+ };
6331
+ path: {
6332
+ document_id: string;
6333
+ };
6334
+ cookie?: never;
6335
+ };
6336
+ requestBody: {
6337
+ content: {
6338
+ "application/json": components["schemas"]["DraftIn"];
6339
+ };
6340
+ };
6341
+ responses: {
6342
+ /** @description Successful Response */
6343
+ 201: {
6344
+ headers: {
6345
+ [name: string]: unknown;
6346
+ };
6347
+ content: {
6348
+ "application/json": components["schemas"]["AgreementVersionOut"];
6349
+ };
6350
+ };
6351
+ /** @description Validation Error */
6352
+ 422: {
6353
+ headers: {
6354
+ [name: string]: unknown;
6355
+ };
6356
+ content: {
6357
+ "application/json": components["schemas"]["HTTPValidationError"];
6358
+ };
6359
+ };
6360
+ };
6361
+ };
6362
+ complete_scan_v1_agreement_scans__scan_id__complete_post: {
6363
+ parameters: {
6364
+ query?: never;
6365
+ header?: {
6366
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6367
+ "X-Guidistry-Context"?: string | null;
6368
+ };
6369
+ path: {
6370
+ scan_id: string;
6371
+ };
6372
+ cookie?: never;
6373
+ };
6374
+ requestBody?: never;
6375
+ responses: {
6376
+ /** @description Successful Response */
6377
+ 200: {
6378
+ headers: {
6379
+ [name: string]: unknown;
6380
+ };
6381
+ content: {
6382
+ "application/json": components["schemas"]["AgreementSignatureOut"];
6383
+ };
6384
+ };
6385
+ /** @description Validation Error */
6386
+ 422: {
6387
+ headers: {
6388
+ [name: string]: unknown;
6389
+ };
6390
+ content: {
6391
+ "application/json": components["schemas"]["HTTPValidationError"];
6392
+ };
6393
+ };
6394
+ };
6395
+ };
6396
+ scan_link_v1_agreement_scans__scan_id__link_get: {
6397
+ parameters: {
6398
+ query?: never;
6399
+ header?: {
6400
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6401
+ "X-Guidistry-Context"?: string | null;
6402
+ };
6403
+ path: {
6404
+ scan_id: string;
6405
+ };
6406
+ cookie?: never;
6407
+ };
6408
+ requestBody?: never;
6409
+ responses: {
6410
+ /** @description Successful Response */
6411
+ 200: {
6412
+ headers: {
6413
+ [name: string]: unknown;
6414
+ };
6415
+ content: {
6416
+ "application/json": components["schemas"]["ScanLink"];
6417
+ };
6418
+ };
6419
+ /** @description Validation Error */
6420
+ 422: {
6421
+ headers: {
6422
+ [name: string]: unknown;
6423
+ };
6424
+ content: {
6425
+ "application/json": components["schemas"]["HTTPValidationError"];
6426
+ };
6427
+ };
6428
+ };
6429
+ };
6430
+ list_signatures_v1_agreement_signatures_get: {
6431
+ parameters: {
6432
+ query?: {
6433
+ patient_id?: string | null;
6434
+ cohort_id?: string | null;
6435
+ kind?: string | null;
6436
+ };
6437
+ header?: {
6438
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6439
+ "X-Guidistry-Context"?: string | null;
6440
+ };
6441
+ path?: never;
6442
+ cookie?: never;
6443
+ };
6444
+ requestBody?: never;
6445
+ responses: {
6446
+ /** @description Successful Response */
6447
+ 200: {
6448
+ headers: {
6449
+ [name: string]: unknown;
6450
+ };
6451
+ content: {
6452
+ "application/json": components["schemas"]["AgreementSignatureOut"][];
6453
+ };
6454
+ };
6455
+ /** @description Validation Error */
6456
+ 422: {
6457
+ headers: {
6458
+ [name: string]: unknown;
6459
+ };
6460
+ content: {
6461
+ "application/json": components["schemas"]["HTTPValidationError"];
6462
+ };
6463
+ };
6464
+ };
6465
+ };
6466
+ create_signature_v1_agreement_signatures_post: {
6467
+ parameters: {
6468
+ query?: never;
6469
+ header?: {
6470
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6471
+ "X-Guidistry-Context"?: string | null;
6472
+ };
6473
+ path?: never;
6474
+ cookie?: never;
6475
+ };
6476
+ requestBody: {
6477
+ content: {
6478
+ "application/json": components["schemas"]["StaffSignatureIn"];
6479
+ };
6480
+ };
6481
+ responses: {
6482
+ /** @description Successful Response */
6483
+ 201: {
6484
+ headers: {
6485
+ [name: string]: unknown;
6486
+ };
6487
+ content: {
6488
+ "application/json": components["schemas"]["AgreementSignatureOut"];
6489
+ };
6490
+ };
6491
+ /** @description Validation Error */
6492
+ 422: {
6493
+ headers: {
6494
+ [name: string]: unknown;
6495
+ };
6496
+ content: {
6497
+ "application/json": components["schemas"]["HTTPValidationError"];
6498
+ };
6499
+ };
6500
+ };
6501
+ };
6502
+ signature_entered_in_error_v1_agreement_signatures__signature_id__entered_in_error_post: {
6503
+ parameters: {
6504
+ query?: never;
6505
+ header?: {
6506
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6507
+ "X-Guidistry-Context"?: string | null;
6508
+ };
6509
+ path: {
6510
+ signature_id: string;
6511
+ };
6512
+ cookie?: never;
6513
+ };
6514
+ requestBody: {
6515
+ content: {
6516
+ "application/json": components["schemas"]["EnteredInErrorIn"];
6517
+ };
6518
+ };
6519
+ responses: {
6520
+ /** @description Successful Response */
6521
+ 200: {
6522
+ headers: {
6523
+ [name: string]: unknown;
6524
+ };
6525
+ content: {
6526
+ "application/json": components["schemas"]["AgreementSignatureOut"];
6527
+ };
6528
+ };
6529
+ /** @description Validation Error */
6530
+ 422: {
6531
+ headers: {
6532
+ [name: string]: unknown;
6533
+ };
6534
+ content: {
6535
+ "application/json": components["schemas"]["HTTPValidationError"];
6536
+ };
6537
+ };
6538
+ };
6539
+ };
6540
+ start_scan_v1_agreement_signatures__signature_id__scans_post: {
6541
+ parameters: {
6542
+ query?: never;
6543
+ header?: {
6544
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6545
+ "X-Guidistry-Context"?: string | null;
6546
+ };
6547
+ path: {
6548
+ signature_id: string;
6549
+ };
6550
+ cookie?: never;
6551
+ };
6552
+ requestBody: {
6553
+ content: {
6554
+ "application/json": components["schemas"]["ScanStart"];
6555
+ };
6556
+ };
6557
+ responses: {
6558
+ /** @description Successful Response */
6559
+ 201: {
6560
+ headers: {
6561
+ [name: string]: unknown;
6562
+ };
6563
+ content: {
6564
+ "application/json": components["schemas"]["ScanUpload"];
6565
+ };
6566
+ };
6567
+ /** @description Validation Error */
6568
+ 422: {
6569
+ headers: {
6570
+ [name: string]: unknown;
6571
+ };
6572
+ content: {
6573
+ "application/json": components["schemas"]["HTTPValidationError"];
6574
+ };
6575
+ };
6576
+ };
6577
+ };
6578
+ list_templates_v1_agreement_templates_get: {
6579
+ parameters: {
6580
+ query?: never;
6581
+ header?: {
6582
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6583
+ "X-Guidistry-Context"?: string | null;
6584
+ };
6585
+ path?: never;
6586
+ cookie?: never;
6587
+ };
6588
+ requestBody?: never;
6589
+ responses: {
6590
+ /** @description Successful Response */
6591
+ 200: {
6592
+ headers: {
6593
+ [name: string]: unknown;
6594
+ };
6595
+ content: {
6596
+ "application/json": components["schemas"]["DocumentOut"][];
6597
+ };
6598
+ };
6599
+ /** @description Validation Error */
6600
+ 422: {
6601
+ headers: {
6602
+ [name: string]: unknown;
6603
+ };
6604
+ content: {
6605
+ "application/json": components["schemas"]["HTTPValidationError"];
6606
+ };
6607
+ };
6608
+ };
6609
+ };
6610
+ get_version_v1_agreement_versions__version_id__get: {
6611
+ parameters: {
6612
+ query?: never;
6613
+ header?: {
6614
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6615
+ "X-Guidistry-Context"?: string | null;
6616
+ };
6617
+ path: {
6618
+ version_id: string;
6619
+ };
6620
+ cookie?: never;
6621
+ };
6622
+ requestBody?: never;
6623
+ responses: {
6624
+ /** @description Successful Response */
6625
+ 200: {
6626
+ headers: {
6627
+ [name: string]: unknown;
6628
+ };
6629
+ content: {
6630
+ "application/json": components["schemas"]["AgreementVersionOut"];
6631
+ };
6632
+ };
6633
+ /** @description Validation Error */
6634
+ 422: {
6635
+ headers: {
6636
+ [name: string]: unknown;
6637
+ };
6638
+ content: {
6639
+ "application/json": components["schemas"]["HTTPValidationError"];
4993
6640
  };
4994
6641
  };
4995
6642
  };
4996
6643
  };
4997
- ready_health_ready_get: {
6644
+ edit_draft_v1_agreement_versions__version_id__put: {
4998
6645
  parameters: {
4999
6646
  query?: never;
5000
- header?: never;
5001
- path?: never;
6647
+ header?: {
6648
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6649
+ "X-Guidistry-Context"?: string | null;
6650
+ };
6651
+ path: {
6652
+ version_id: string;
6653
+ };
5002
6654
  cookie?: never;
5003
6655
  };
5004
- requestBody?: never;
6656
+ requestBody: {
6657
+ content: {
6658
+ "application/json": components["schemas"]["DraftIn"];
6659
+ };
6660
+ };
5005
6661
  responses: {
5006
6662
  /** @description Successful Response */
5007
6663
  200: {
@@ -5009,28 +6665,37 @@ export interface operations {
5009
6665
  [name: string]: unknown;
5010
6666
  };
5011
6667
  content: {
5012
- "application/json": components["schemas"]["ReadyResponse"];
6668
+ "application/json": components["schemas"]["AgreementVersionOut"];
5013
6669
  };
5014
6670
  };
5015
- /** @description Database unavailable */
5016
- 503: {
6671
+ /** @description Validation Error */
6672
+ 422: {
5017
6673
  headers: {
5018
6674
  [name: string]: unknown;
5019
6675
  };
5020
6676
  content: {
5021
- "application/json": components["schemas"]["ReadyResponse"];
6677
+ "application/json": components["schemas"]["HTTPValidationError"];
5022
6678
  };
5023
6679
  };
5024
6680
  };
5025
6681
  };
5026
- me_me_get: {
6682
+ publish_v1_agreement_versions__version_id__publish_post: {
5027
6683
  parameters: {
5028
6684
  query?: never;
5029
- header?: never;
5030
- path?: never;
6685
+ header?: {
6686
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6687
+ "X-Guidistry-Context"?: string | null;
6688
+ };
6689
+ path: {
6690
+ version_id: string;
6691
+ };
5031
6692
  cookie?: never;
5032
6693
  };
5033
- requestBody?: never;
6694
+ requestBody: {
6695
+ content: {
6696
+ "application/json": components["schemas"]["PublishIn"];
6697
+ };
6698
+ };
5034
6699
  responses: {
5035
6700
  /** @description Successful Response */
5036
6701
  200: {
@@ -5038,7 +6703,16 @@ export interface operations {
5038
6703
  [name: string]: unknown;
5039
6704
  };
5040
6705
  content: {
5041
- "application/json": components["schemas"]["Principal"];
6706
+ "application/json": components["schemas"]["AgreementVersionOut"];
6707
+ };
6708
+ };
6709
+ /** @description Validation Error */
6710
+ 422: {
6711
+ headers: {
6712
+ [name: string]: unknown;
6713
+ };
6714
+ content: {
6715
+ "application/json": components["schemas"]["HTTPValidationError"];
5042
6716
  };
5043
6717
  };
5044
6718
  };
@@ -5114,6 +6788,42 @@ export interface operations {
5114
6788
  };
5115
6789
  };
5116
6790
  };
6791
+ todos_v1_agreements_todos_get: {
6792
+ parameters: {
6793
+ query?: {
6794
+ cohort_id?: string | null;
6795
+ /** @description Only cohorts I lead or facilitate */
6796
+ mine?: boolean;
6797
+ };
6798
+ header?: {
6799
+ /** @description Membership the caller is acting through (from GET /v1/me) */
6800
+ "X-Guidistry-Context"?: string | null;
6801
+ };
6802
+ path?: never;
6803
+ cookie?: never;
6804
+ };
6805
+ requestBody?: never;
6806
+ responses: {
6807
+ /** @description Successful Response */
6808
+ 200: {
6809
+ headers: {
6810
+ [name: string]: unknown;
6811
+ };
6812
+ content: {
6813
+ "application/json": components["schemas"]["TodoOut"][];
6814
+ };
6815
+ };
6816
+ /** @description Validation Error */
6817
+ 422: {
6818
+ headers: {
6819
+ [name: string]: unknown;
6820
+ };
6821
+ content: {
6822
+ "application/json": components["schemas"]["HTTPValidationError"];
6823
+ };
6824
+ };
6825
+ };
6826
+ };
5117
6827
  agreement_entered_in_error_v1_agreements__agreement_id__entered_in_error_post: {
5118
6828
  parameters: {
5119
6829
  query?: never;
@@ -6953,7 +8663,11 @@ export interface operations {
6953
8663
  };
6954
8664
  cookie?: never;
6955
8665
  };
6956
- requestBody?: never;
8666
+ requestBody?: {
8667
+ content: {
8668
+ "application/json": components["schemas"]["InvitationAccept"] | null;
8669
+ };
8670
+ };
6957
8671
  responses: {
6958
8672
  /** @description Successful Response */
6959
8673
  200: {
@@ -7112,6 +8826,74 @@ export interface operations {
7112
8826
  };
7113
8827
  };
7114
8828
  };
8829
+ my_agreements_v1_me_agreements_get: {
8830
+ parameters: {
8831
+ query?: never;
8832
+ header?: {
8833
+ /** @description Membership the caller is acting through (from GET /v1/me) */
8834
+ "X-Guidistry-Context"?: string | null;
8835
+ };
8836
+ path?: never;
8837
+ cookie?: never;
8838
+ };
8839
+ requestBody?: never;
8840
+ responses: {
8841
+ /** @description Successful Response */
8842
+ 200: {
8843
+ headers: {
8844
+ [name: string]: unknown;
8845
+ };
8846
+ content: {
8847
+ "application/json": components["schemas"]["MyAgreementsOut"];
8848
+ };
8849
+ };
8850
+ /** @description Validation Error */
8851
+ 422: {
8852
+ headers: {
8853
+ [name: string]: unknown;
8854
+ };
8855
+ content: {
8856
+ "application/json": components["schemas"]["HTTPValidationError"];
8857
+ };
8858
+ };
8859
+ };
8860
+ };
8861
+ sign_v1_me_agreements_post: {
8862
+ parameters: {
8863
+ query?: never;
8864
+ header?: {
8865
+ /** @description Membership the caller is acting through (from GET /v1/me) */
8866
+ "X-Guidistry-Context"?: string | null;
8867
+ };
8868
+ path?: never;
8869
+ cookie?: never;
8870
+ };
8871
+ requestBody: {
8872
+ content: {
8873
+ "application/json": components["schemas"]["AgreementSignIn"];
8874
+ };
8875
+ };
8876
+ responses: {
8877
+ /** @description Successful Response */
8878
+ 201: {
8879
+ headers: {
8880
+ [name: string]: unknown;
8881
+ };
8882
+ content: {
8883
+ "application/json": components["schemas"]["AgreementSignatureOut"];
8884
+ };
8885
+ };
8886
+ /** @description Validation Error */
8887
+ 422: {
8888
+ headers: {
8889
+ [name: string]: unknown;
8890
+ };
8891
+ content: {
8892
+ "application/json": components["schemas"]["HTTPValidationError"];
8893
+ };
8894
+ };
8895
+ };
8896
+ };
7115
8897
  my_enrollments_v1_me_enrollments_get: {
7116
8898
  parameters: {
7117
8899
  query?: never;
@@ -8857,6 +10639,81 @@ export interface operations {
8857
10639
  };
8858
10640
  };
8859
10641
  };
10642
+ join_visit_v1_visits__visit_id__join_post: {
10643
+ parameters: {
10644
+ query?: never;
10645
+ header?: {
10646
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10647
+ "X-Guidistry-Context"?: string | null;
10648
+ };
10649
+ path: {
10650
+ visit_id: string;
10651
+ };
10652
+ cookie?: never;
10653
+ };
10654
+ requestBody?: never;
10655
+ responses: {
10656
+ /** @description Successful Response */
10657
+ 200: {
10658
+ headers: {
10659
+ [name: string]: unknown;
10660
+ };
10661
+ content: {
10662
+ "application/json": components["schemas"]["JoinOut"];
10663
+ };
10664
+ };
10665
+ /** @description agreement_required, too_early or not_joinable */
10666
+ 409: {
10667
+ headers: {
10668
+ [name: string]: unknown;
10669
+ };
10670
+ content?: never;
10671
+ };
10672
+ /** @description Validation Error */
10673
+ 422: {
10674
+ headers: {
10675
+ [name: string]: unknown;
10676
+ };
10677
+ content: {
10678
+ "application/json": components["schemas"]["HTTPValidationError"];
10679
+ };
10680
+ };
10681
+ };
10682
+ };
10683
+ joining_v1_visits__visit_id__joining_get: {
10684
+ parameters: {
10685
+ query?: never;
10686
+ header?: {
10687
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10688
+ "X-Guidistry-Context"?: string | null;
10689
+ };
10690
+ path: {
10691
+ visit_id: string;
10692
+ };
10693
+ cookie?: never;
10694
+ };
10695
+ requestBody?: never;
10696
+ responses: {
10697
+ /** @description Successful Response */
10698
+ 200: {
10699
+ headers: {
10700
+ [name: string]: unknown;
10701
+ };
10702
+ content: {
10703
+ "application/json": components["schemas"]["JoiningOut"];
10704
+ };
10705
+ };
10706
+ /** @description Validation Error */
10707
+ 422: {
10708
+ headers: {
10709
+ [name: string]: unknown;
10710
+ };
10711
+ content: {
10712
+ "application/json": components["schemas"]["HTTPValidationError"];
10713
+ };
10714
+ };
10715
+ };
10716
+ };
8860
10717
  get_live_session_v1_visits__visit_id__live_session_get: {
8861
10718
  parameters: {
8862
10719
  query?: never;
@@ -9001,6 +10858,40 @@ export interface operations {
9001
10858
  };
9002
10859
  };
9003
10860
  };
10861
+ readiness_v1_visits__visit_id__readiness_get: {
10862
+ parameters: {
10863
+ query?: never;
10864
+ header?: {
10865
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10866
+ "X-Guidistry-Context"?: string | null;
10867
+ };
10868
+ path: {
10869
+ visit_id: string;
10870
+ };
10871
+ cookie?: never;
10872
+ };
10873
+ requestBody?: never;
10874
+ responses: {
10875
+ /** @description Successful Response */
10876
+ 200: {
10877
+ headers: {
10878
+ [name: string]: unknown;
10879
+ };
10880
+ content: {
10881
+ "application/json": components["schemas"]["ReadinessOut"];
10882
+ };
10883
+ };
10884
+ /** @description Validation Error */
10885
+ 422: {
10886
+ headers: {
10887
+ [name: string]: unknown;
10888
+ };
10889
+ content: {
10890
+ "application/json": components["schemas"]["HTTPValidationError"];
10891
+ };
10892
+ };
10893
+ };
10894
+ };
9004
10895
  record_held_endpoint_v1_visits__visit_id__record_held_post: {
9005
10896
  parameters: {
9006
10897
  query?: never;