@brightoutcome/guidistry-client 0.10.1 → 0.11.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 +1613 -94
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -422,6 +422,23 @@ export interface paths {
422
422
  patch: operations["update_cohort_v1_cohorts__cohort_id__patch"];
423
423
  trace?: never;
424
424
  };
425
+ "/v1/cohorts/{cohort_id}/progress": {
426
+ parameters: {
427
+ query?: never;
428
+ header?: never;
429
+ path?: never;
430
+ cookie?: never;
431
+ };
432
+ /** Every member's progress, pre-work and quiet days */
433
+ get: operations["cohort_progress_v1_cohorts__cohort_id__progress_get"];
434
+ put?: never;
435
+ post?: never;
436
+ delete?: never;
437
+ options?: never;
438
+ head?: never;
439
+ patch?: never;
440
+ trace?: never;
441
+ };
425
442
  "/v1/cohorts/{cohort_id}/settings": {
426
443
  parameters: {
427
444
  query?: never;
@@ -894,6 +911,24 @@ export interface paths {
894
911
  patch?: never;
895
912
  trace?: never;
896
913
  };
914
+ "/v1/enrollments/{enrollment_id}/activity": {
915
+ parameters: {
916
+ query?: never;
917
+ header?: never;
918
+ path?: never;
919
+ cookie?: never;
920
+ };
921
+ /** An enrollment's activity, newest first */
922
+ get: operations["list_activity_v1_enrollments__enrollment_id__activity_get"];
923
+ put?: never;
924
+ /** Record what the participant did (batch, idempotent) */
925
+ post: operations["post_activity_v1_enrollments__enrollment_id__activity_post"];
926
+ delete?: never;
927
+ options?: never;
928
+ head?: never;
929
+ patch?: never;
930
+ trace?: never;
931
+ };
897
932
  "/v1/enrollments/{enrollment_id}/content": {
898
933
  parameters: {
899
934
  query?: never;
@@ -916,6 +951,28 @@ export interface paths {
916
951
  patch?: never;
917
952
  trace?: never;
918
953
  };
954
+ "/v1/enrollments/{enrollment_id}/listens": {
955
+ parameters: {
956
+ query?: never;
957
+ header?: never;
958
+ path?: never;
959
+ cookie?: never;
960
+ };
961
+ /**
962
+ * An enrollment's plays of practices, newest first (module 6a)
963
+ * @description Participant: their own; staff: within scope. Each play with its start, completion and
964
+ * minutes, so pages can date plays from earlier weeks.
965
+ */
966
+ get: operations["list_listens_v1_enrollments__enrollment_id__listens_get"];
967
+ put?: never;
968
+ /** Start a listen to a practice's recording or video */
969
+ post: operations["start_listen_v1_enrollments__enrollment_id__listens_post"];
970
+ delete?: never;
971
+ options?: never;
972
+ head?: never;
973
+ patch?: never;
974
+ trace?: never;
975
+ };
919
976
  "/v1/enrollments/{enrollment_id}/pauses": {
920
977
  parameters: {
921
978
  query?: never;
@@ -938,6 +995,23 @@ export interface paths {
938
995
  patch?: never;
939
996
  trace?: never;
940
997
  };
998
+ "/v1/enrollments/{enrollment_id}/progress": {
999
+ parameters: {
1000
+ query?: never;
1001
+ header?: never;
1002
+ path?: never;
1003
+ cookie?: never;
1004
+ };
1005
+ /** Progress, pre-work and the numbers (participant: own; staff: within scope) */
1006
+ get: operations["enrollment_progress_v1_enrollments__enrollment_id__progress_get"];
1007
+ put?: never;
1008
+ post?: never;
1009
+ delete?: never;
1010
+ options?: never;
1011
+ head?: never;
1012
+ patch?: never;
1013
+ trace?: never;
1014
+ };
941
1015
  "/v1/enrollments/{enrollment_id}/reviews": {
942
1016
  parameters: {
943
1017
  query?: never;
@@ -993,6 +1067,23 @@ export interface paths {
993
1067
  patch?: never;
994
1068
  trace?: never;
995
1069
  };
1070
+ "/v1/enrollments/{enrollment_id}/sessions/{number}/open": {
1071
+ parameters: {
1072
+ query?: never;
1073
+ header?: never;
1074
+ path?: never;
1075
+ cookie?: never;
1076
+ };
1077
+ get?: never;
1078
+ put?: never;
1079
+ /** Open a self-paced participant's sessions up to this one (care team) */
1080
+ post: operations["open_session_v1_enrollments__enrollment_id__sessions__number__open_post"];
1081
+ delete?: never;
1082
+ options?: never;
1083
+ head?: never;
1084
+ patch?: never;
1085
+ trace?: never;
1086
+ };
996
1087
  "/v1/enrollments/{enrollment_id}/transition": {
997
1088
  parameters: {
998
1089
  query?: never;
@@ -1014,6 +1105,62 @@ export interface paths {
1014
1105
  patch?: never;
1015
1106
  trace?: never;
1016
1107
  };
1108
+ "/v1/enrollments/{enrollment_id}/writing-attachments": {
1109
+ parameters: {
1110
+ query?: never;
1111
+ header?: never;
1112
+ path?: never;
1113
+ cookie?: never;
1114
+ };
1115
+ get?: never;
1116
+ put?: never;
1117
+ /** Start uploading a journal picture or voice recording */
1118
+ post: operations["start_attachment_v1_enrollments__enrollment_id__writing_attachments_post"];
1119
+ delete?: never;
1120
+ options?: never;
1121
+ head?: never;
1122
+ patch?: never;
1123
+ trace?: never;
1124
+ };
1125
+ "/v1/enrollments/{enrollment_id}/writing-policy": {
1126
+ parameters: {
1127
+ query?: never;
1128
+ header?: never;
1129
+ path?: never;
1130
+ cookie?: never;
1131
+ };
1132
+ /** What the participant is told about who reads their writing */
1133
+ get: operations["writing_policy_v1_enrollments__enrollment_id__writing_policy_get"];
1134
+ put?: never;
1135
+ post?: never;
1136
+ delete?: never;
1137
+ options?: never;
1138
+ head?: never;
1139
+ patch?: never;
1140
+ trace?: never;
1141
+ };
1142
+ "/v1/enrollments/{enrollment_id}/writings": {
1143
+ parameters: {
1144
+ query?: never;
1145
+ header?: never;
1146
+ path?: never;
1147
+ cookie?: never;
1148
+ };
1149
+ /**
1150
+ * Journal entries, written-practice answers and practice notes
1151
+ * @description Participants: their own, with the text. Staff: completion; the text only when the
1152
+ * cohort lets its team read it and they're on the team (each read audited).
1153
+ */
1154
+ get: operations["list_writings_v1_enrollments__enrollment_id__writings_get"];
1155
+ put?: never;
1156
+ /** Submit a journal entry, written-practice answers or a practice note */
1157
+ post: operations["submit_writing_v1_enrollments__enrollment_id__writings_post"];
1158
+ delete?: never;
1159
+ options?: never;
1160
+ head?: never;
1161
+ patch?: never;
1162
+ trace?: never;
1163
+ };
1017
1164
  "/v1/fidelity": {
1018
1165
  parameters: {
1019
1166
  query?: never;
@@ -1207,6 +1354,23 @@ export interface paths {
1207
1354
  patch?: never;
1208
1355
  trace?: never;
1209
1356
  };
1357
+ "/v1/listens/{listen_id}/reports": {
1358
+ parameters: {
1359
+ query?: never;
1360
+ header?: never;
1361
+ path?: never;
1362
+ cookie?: never;
1363
+ };
1364
+ get?: never;
1365
+ put?: never;
1366
+ /** Report the stretches played since the previous report */
1367
+ post: operations["report_listen_v1_listens__listen_id__reports_post"];
1368
+ delete?: never;
1369
+ options?: never;
1370
+ head?: never;
1371
+ patch?: never;
1372
+ trace?: never;
1373
+ };
1210
1374
  "/v1/live-sessions/{session_id}/events": {
1211
1375
  parameters: {
1212
1376
  query?: never;
@@ -2148,10 +2312,172 @@ export interface paths {
2148
2312
  patch?: never;
2149
2313
  trace?: never;
2150
2314
  };
2315
+ "/v1/writing-attachments/{attachment_id}/complete": {
2316
+ parameters: {
2317
+ query?: never;
2318
+ header?: never;
2319
+ path?: never;
2320
+ cookie?: never;
2321
+ };
2322
+ get?: never;
2323
+ put?: never;
2324
+ /** Finish an upload (size, type and checksum are checked) */
2325
+ post: operations["complete_attachment_v1_writing_attachments__attachment_id__complete_post"];
2326
+ delete?: never;
2327
+ options?: never;
2328
+ head?: never;
2329
+ patch?: never;
2330
+ trace?: never;
2331
+ };
2332
+ "/v1/writing-attachments/{attachment_id}/link": {
2333
+ parameters: {
2334
+ query?: never;
2335
+ header?: never;
2336
+ path?: never;
2337
+ cookie?: never;
2338
+ };
2339
+ /** A short-lived link to a journal picture or recording */
2340
+ get: operations["attachment_link_v1_writing_attachments__attachment_id__link_get"];
2341
+ put?: never;
2342
+ post?: never;
2343
+ delete?: never;
2344
+ options?: never;
2345
+ head?: never;
2346
+ patch?: never;
2347
+ trace?: never;
2348
+ };
2349
+ "/v1/writings/{writing_id}/retract": {
2350
+ parameters: {
2351
+ query?: never;
2352
+ header?: never;
2353
+ path?: never;
2354
+ cookie?: never;
2355
+ };
2356
+ get?: never;
2357
+ put?: never;
2358
+ /** Withdraw a writing (the text is kept for history; staff no longer see it) */
2359
+ post: operations["retract_writing_v1_writings__writing_id__retract_post"];
2360
+ delete?: never;
2361
+ options?: never;
2362
+ head?: never;
2363
+ patch?: never;
2364
+ trace?: never;
2365
+ };
2366
+ "/v1/writings/{writing_id}/revisions": {
2367
+ parameters: {
2368
+ query?: never;
2369
+ header?: never;
2370
+ path?: never;
2371
+ cookie?: never;
2372
+ };
2373
+ get?: never;
2374
+ put?: never;
2375
+ /** Edit a writing (a new revision; earlier ones are kept) */
2376
+ post: operations["revise_writing_v1_writings__writing_id__revisions_post"];
2377
+ delete?: never;
2378
+ options?: never;
2379
+ head?: never;
2380
+ patch?: never;
2381
+ trace?: never;
2382
+ };
2151
2383
  }
2152
2384
  export type webhooks = Record<string, never>;
2153
2385
  export interface components {
2154
2386
  schemas: {
2387
+ /** ActivityBatch */
2388
+ ActivityBatch: {
2389
+ /** Events */
2390
+ events: components["schemas"]["ActivityIn"][];
2391
+ };
2392
+ /** ActivityData */
2393
+ ActivityData: {
2394
+ /**
2395
+ * Minutes
2396
+ * @description Self-reported practice minutes
2397
+ */
2398
+ minutes?: number | null;
2399
+ /**
2400
+ * Place
2401
+ * @description Where an item was opened (the Library counts for the garden)
2402
+ */
2403
+ place?: ("session" | "library" | "home") | null;
2404
+ };
2405
+ /** ActivityIn */
2406
+ ActivityIn: {
2407
+ /**
2408
+ * Client At
2409
+ * @description Kept for information only
2410
+ */
2411
+ client_at?: string | null;
2412
+ /**
2413
+ * Client Event Id
2414
+ * @description Idempotency key
2415
+ */
2416
+ client_event_id: string;
2417
+ data?: components["schemas"]["ActivityData"] | null;
2418
+ /**
2419
+ * Item Key
2420
+ * @description Content key (topic, section, practice, prompt, resource, handout, or a block for faves)
2421
+ */
2422
+ item_key?: string | null;
2423
+ /**
2424
+ * Kind
2425
+ * @enum {string}
2426
+ */
2427
+ kind: "portal_opened" | "item_opened" | "section_viewed" | "topic_marked_done" | "practice_self_reported" | "fave_on" | "fave_off" | "keepsake_earned" | "reversal";
2428
+ /**
2429
+ * Ref
2430
+ * @description keepsake_earned: the keepsake id
2431
+ */
2432
+ ref?: string | null;
2433
+ /**
2434
+ * Reverses Id
2435
+ * @description reversal: the event to undo (topic_marked_done, practice_self_reported)
2436
+ */
2437
+ reverses_id?: number | null;
2438
+ };
2439
+ /** ActivityOut */
2440
+ ActivityOut: {
2441
+ /** Client Event Id */
2442
+ client_event_id: string | null;
2443
+ /** Data */
2444
+ data: {
2445
+ [key: string]: unknown;
2446
+ };
2447
+ /** Id */
2448
+ id: number;
2449
+ /** Item Key */
2450
+ item_key: string | null;
2451
+ /** Item Type */
2452
+ item_type: string | null;
2453
+ /** Kind */
2454
+ kind: string;
2455
+ /**
2456
+ * Recorded At
2457
+ * Format: date-time
2458
+ */
2459
+ recorded_at: string;
2460
+ /** Ref */
2461
+ ref: string | null;
2462
+ /**
2463
+ * Reversed
2464
+ * @default false
2465
+ */
2466
+ reversed: boolean;
2467
+ /** Reverses Id */
2468
+ reverses_id: number | null;
2469
+ /** Session */
2470
+ session: number | null;
2471
+ /** Source */
2472
+ source: string;
2473
+ };
2474
+ /** ActivityPage */
2475
+ ActivityPage: {
2476
+ /** Items */
2477
+ items: components["schemas"]["ActivityOut"][];
2478
+ /** Next Before Id */
2479
+ next_before_id: number | null;
2480
+ };
2155
2481
  /** AdaptationIn */
2156
2482
  AdaptationIn: {
2157
2483
  /** Text */
@@ -2430,6 +2756,54 @@ export interface components {
2430
2756
  /** Code */
2431
2757
  code: string;
2432
2758
  };
2759
+ /** AttachmentOut */
2760
+ AttachmentOut: {
2761
+ /** Content Type */
2762
+ content_type: string;
2763
+ /** Duration Seconds */
2764
+ duration_seconds: number | null;
2765
+ /**
2766
+ * Id
2767
+ * Format: uuid
2768
+ */
2769
+ id: string;
2770
+ /**
2771
+ * Kind
2772
+ * @enum {string}
2773
+ */
2774
+ kind: "image" | "audio";
2775
+ /** Size Bytes */
2776
+ size_bytes: number;
2777
+ /**
2778
+ * Status
2779
+ * @enum {string}
2780
+ */
2781
+ status: "pending" | "ready" | "rejected";
2782
+ };
2783
+ /** AttachmentStart */
2784
+ AttachmentStart: {
2785
+ /**
2786
+ * Content Type
2787
+ * @enum {string}
2788
+ */
2789
+ content_type: "image/jpeg" | "image/png" | "image/heic" | "audio/webm" | "audio/mp4" | "audio/mpeg" | "audio/ogg";
2790
+ /** Duration Seconds */
2791
+ duration_seconds?: number | null;
2792
+ /**
2793
+ * Kind
2794
+ * @enum {string}
2795
+ */
2796
+ kind: "image" | "audio";
2797
+ /** Sha256 */
2798
+ sha256: string;
2799
+ /** Size Bytes */
2800
+ size_bytes: number;
2801
+ };
2802
+ /** AttachmentStartOut */
2803
+ AttachmentStartOut: {
2804
+ attachment: components["schemas"]["AttachmentOut"];
2805
+ upload: components["schemas"]["UploadFormOut"];
2806
+ };
2433
2807
  /** AttendanceIn */
2434
2808
  AttendanceIn: {
2435
2809
  /**
@@ -2754,10 +3128,36 @@ export interface components {
2754
3128
  */
2755
3129
  visit_mode: "online" | "in_person" | "hybrid";
2756
3130
  };
2757
- /** CohortUpdate */
2758
- CohortUpdate: {
2759
- /** Capacity */
2760
- capacity?: number | null;
3131
+ /** CohortProgressOut */
3132
+ CohortProgressOut: {
3133
+ /** Avg Progress */
3134
+ avg_progress: number | null;
3135
+ /** Avg Progress Reason */
3136
+ avg_progress_reason: string | null;
3137
+ /**
3138
+ * Cohort Id
3139
+ * Format: uuid
3140
+ */
3141
+ cohort_id: string;
3142
+ /** Members */
3143
+ members: components["schemas"]["MemberProgress"][];
3144
+ /** Next Visit Id */
3145
+ next_visit_id: string | null;
3146
+ /** Prework Done */
3147
+ prework_done: number;
3148
+ /** Prework Required */
3149
+ prework_required: number;
3150
+ /** Quiet Flag */
3151
+ quiet_flag: number;
3152
+ /** Quiet Watch */
3153
+ quiet_watch: number;
3154
+ /** Stalled */
3155
+ stalled: number;
3156
+ };
3157
+ /** CohortUpdate */
3158
+ CohortUpdate: {
3159
+ /** Capacity */
3160
+ capacity?: number | null;
2761
3161
  /** Meeting Note */
2762
3162
  meeting_note?: string | null;
2763
3163
  /** Meeting Url */
@@ -2774,6 +3174,17 @@ export interface components {
2774
3174
  */
2775
3175
  visit_mode?: ("online" | "in_person" | "hybrid") | null;
2776
3176
  };
3177
+ /** Completion */
3178
+ Completion: {
3179
+ /** Expected */
3180
+ expected: number | null;
3181
+ /** Reason */
3182
+ reason?: string | null;
3183
+ /** Stalled */
3184
+ stalled: boolean | null;
3185
+ /** Value */
3186
+ value: number | null;
3187
+ };
2777
3188
  /**
2778
3189
  * CourseContent
2779
3190
  * @description A whole course in one language.
@@ -3393,6 +3804,30 @@ export interface components {
3393
3804
  /** Rows */
3394
3805
  rows?: number | null;
3395
3806
  };
3807
+ /** GardenSession */
3808
+ GardenSession: {
3809
+ /**
3810
+ * Community
3811
+ * @description Not stored until module 8
3812
+ */
3813
+ community?: number | null;
3814
+ /** Journal Done */
3815
+ journal_done: number;
3816
+ /** Keepsakes */
3817
+ keepsakes: string[];
3818
+ /** Open */
3819
+ open: boolean;
3820
+ /** Practices Done */
3821
+ practices_done: number;
3822
+ /** Session */
3823
+ session: number;
3824
+ /** Topics Done */
3825
+ topics_done: number;
3826
+ /** Topics Total */
3827
+ topics_total: number;
3828
+ /** Written Done */
3829
+ written_done: number;
3830
+ };
3396
3831
  /** GrantCreate */
3397
3832
  GrantCreate: {
3398
3833
  /** Ends At */
@@ -3725,6 +4160,32 @@ export interface components {
3725
4160
  */
3726
4161
  to_sign?: components["schemas"]["AgreementVersionOut"][];
3727
4162
  };
4163
+ /** ItemState */
4164
+ ItemState: {
4165
+ /** Done */
4166
+ done: boolean;
4167
+ /**
4168
+ * Key
4169
+ * Format: uuid
4170
+ */
4171
+ key: string;
4172
+ /**
4173
+ * Listens Completed
4174
+ * @default 0
4175
+ */
4176
+ listens_completed: number;
4177
+ /** Required */
4178
+ required: boolean;
4179
+ /**
4180
+ * Self Reported
4181
+ * @default 0
4182
+ */
4183
+ self_reported: number;
4184
+ /** Session */
4185
+ session: number | null;
4186
+ /** Type */
4187
+ type: string;
4188
+ };
3728
4189
  /** JoinOut */
3729
4190
  JoinOut: {
3730
4191
  /**
@@ -3792,6 +4253,29 @@ export interface components {
3792
4253
  */
3793
4254
  visit_id: string;
3794
4255
  };
4256
+ /** KeepsakeOut */
4257
+ KeepsakeOut: {
4258
+ /**
4259
+ * Earned At
4260
+ * Format: date-time
4261
+ */
4262
+ earned_at: string;
4263
+ /** Ref */
4264
+ ref: string;
4265
+ /** Session */
4266
+ session: number | null;
4267
+ };
4268
+ /** LastWeek */
4269
+ LastWeek: {
4270
+ /** Completion */
4271
+ completion: number | null;
4272
+ /** Days Quiet */
4273
+ days_quiet: number | null;
4274
+ /** Practices Done */
4275
+ practices_done: number;
4276
+ /** Program Progress */
4277
+ program_progress: number | null;
4278
+ };
3795
4279
  /**
3796
4280
  * LayoutBlock
3797
4281
  * @description A named layout (acrostic, pyramid, cycle, …) with its lines, drawn by the app.
@@ -3859,6 +4343,116 @@ export interface components {
3859
4343
  */
3860
4344
  label: string;
3861
4345
  };
4346
+ /** LinkOut */
4347
+ LinkOut: {
4348
+ /** Expires In Seconds */
4349
+ expires_in_seconds: number;
4350
+ /** Url */
4351
+ url: string;
4352
+ };
4353
+ /** ListenOut */
4354
+ ListenOut: {
4355
+ /** Complete At Percent */
4356
+ complete_at_percent: number;
4357
+ /** Completed */
4358
+ completed: boolean;
4359
+ /** Completed At */
4360
+ completed_at: string | null;
4361
+ /**
4362
+ * Coverage
4363
+ * @description 0-1: share of the recording covered by this listen
4364
+ */
4365
+ coverage: number;
4366
+ /** Covered Seconds */
4367
+ covered_seconds: number;
4368
+ /** Ended At */
4369
+ ended_at: string | null;
4370
+ /**
4371
+ * Id
4372
+ * Format: uuid
4373
+ */
4374
+ id: string;
4375
+ /**
4376
+ * Item Key
4377
+ * Format: uuid
4378
+ */
4379
+ item_key: string;
4380
+ /**
4381
+ * Length Source
4382
+ * @enum {string}
4383
+ */
4384
+ length_source: "asset" | "player";
4385
+ /** Listened Seconds */
4386
+ listened_seconds: number;
4387
+ /**
4388
+ * Media Key
4389
+ * Format: uuid
4390
+ */
4391
+ media_key: string;
4392
+ /** Media Seconds */
4393
+ media_seconds: number;
4394
+ /** Session */
4395
+ session: number | null;
4396
+ /**
4397
+ * Started At
4398
+ * Format: date-time
4399
+ */
4400
+ started_at: string;
4401
+ };
4402
+ /** ListenPage */
4403
+ ListenPage: {
4404
+ /** Items */
4405
+ items: components["schemas"]["ListenOut"][];
4406
+ /**
4407
+ * Next Before
4408
+ * @description Pass as before= for older listens; null when there are no more
4409
+ */
4410
+ next_before?: string | null;
4411
+ };
4412
+ /** ListenReport */
4413
+ ListenReport: {
4414
+ /** Client At */
4415
+ client_at?: string | null;
4416
+ /**
4417
+ * Ended
4418
+ * @default false
4419
+ */
4420
+ ended: boolean;
4421
+ /** Position */
4422
+ position?: number | null;
4423
+ /**
4424
+ * Segments
4425
+ * @description Stretches played since the previous report: [[from, to], …] s
4426
+ */
4427
+ segments: number[][];
4428
+ /**
4429
+ * Seq
4430
+ * @description 1, 2, 3 … per listen; a resend is ignored
4431
+ */
4432
+ seq: number;
4433
+ };
4434
+ /** ListenStart */
4435
+ ListenStart: {
4436
+ /** Client At */
4437
+ client_at?: string | null;
4438
+ /**
4439
+ * Item Key
4440
+ * Format: uuid
4441
+ * @description The practice
4442
+ */
4443
+ item_key: string;
4444
+ /**
4445
+ * Media Key
4446
+ * Format: uuid
4447
+ * @description The practice's media item (its key)
4448
+ */
4449
+ media_key: string;
4450
+ /**
4451
+ * Media Seconds
4452
+ * @description The player's length; used only when the server has none
4453
+ */
4454
+ media_seconds?: number | null;
4455
+ };
3862
4456
  /** LiveEventIn */
3863
4457
  LiveEventIn: {
3864
4458
  /**
@@ -4102,6 +4696,43 @@ export interface components {
4102
4696
  /** Present Since */
4103
4697
  present_since: string | null;
4104
4698
  };
4699
+ /** MemberProgress */
4700
+ MemberProgress: {
4701
+ /** Activity Strip */
4702
+ activity_strip: number[] | null;
4703
+ completion: components["schemas"]["Completion"];
4704
+ /** Days Quiet */
4705
+ days_quiet: number | null;
4706
+ /** Display Name */
4707
+ display_name: string;
4708
+ /**
4709
+ * Enrollment Id
4710
+ * Format: uuid
4711
+ */
4712
+ enrollment_id: string;
4713
+ /** Last Activity At */
4714
+ last_activity_at: string | null;
4715
+ /** Never Activated */
4716
+ never_activated: boolean;
4717
+ next_visit_prework: components["schemas"]["PreworkOut"] | null;
4718
+ /**
4719
+ * Patient Id
4720
+ * Format: uuid
4721
+ */
4722
+ patient_id: string;
4723
+ /** Practices This Week */
4724
+ practices_this_week: components["schemas"]["PracticeWeek"][];
4725
+ program_progress: components["schemas"]["ProgramProgress"];
4726
+ /**
4727
+ * Quiet Tone
4728
+ * @enum {string}
4729
+ */
4730
+ quiet_tone: "on_target" | "watch" | "flag";
4731
+ /** Session Progress */
4732
+ session_progress: {
4733
+ [key: string]: components["schemas"]["TypeProgress"];
4734
+ };
4735
+ };
4105
4736
  /** MembershipOut */
4106
4737
  MembershipOut: {
4107
4738
  /** Ends At */
@@ -4130,6 +4761,18 @@ export interface components {
4130
4761
  /** Status */
4131
4762
  status?: ("active" | "suspended" | "ended") | null;
4132
4763
  };
4764
+ /** MissingItem */
4765
+ MissingItem: {
4766
+ /**
4767
+ * Key
4768
+ * Format: uuid
4769
+ */
4770
+ key: string;
4771
+ /** Title */
4772
+ title: string;
4773
+ /** Type */
4774
+ type: string;
4775
+ };
4133
4776
  /** Module */
4134
4777
  Module: {
4135
4778
  /** Description */
@@ -4249,6 +4892,20 @@ export interface components {
4249
4892
  /** Suffix */
4250
4893
  suffix?: string | null;
4251
4894
  };
4895
+ /** NextVisitPrework */
4896
+ NextVisitPrework: {
4897
+ prework: components["schemas"]["PreworkOut"];
4898
+ /**
4899
+ * Starts At
4900
+ * Format: date-time
4901
+ */
4902
+ starts_at: string;
4903
+ /**
4904
+ * Visit Id
4905
+ * Format: uuid
4906
+ */
4907
+ visit_id: string;
4908
+ };
4252
4909
  /** NoteFill */
4253
4910
  NoteFill: {
4254
4911
  /** Base Version */
@@ -4424,6 +5081,11 @@ export interface components {
4424
5081
  /** Version Label */
4425
5082
  version_label: string | null;
4426
5083
  };
5084
+ /** OpenSessionIn */
5085
+ OpenSessionIn: {
5086
+ /** Reason */
5087
+ reason: string;
5088
+ };
4427
5089
  /** OrgUnitCreate */
4428
5090
  OrgUnitCreate: {
4429
5091
  /** Name */
@@ -4844,6 +5506,50 @@ export interface components {
4844
5506
  media: components["schemas"]["MediaRef"];
4845
5507
  tags?: components["schemas"]["Tags"] | null;
4846
5508
  };
5509
+ /** PracticeWeek */
5510
+ PracticeWeek: {
5511
+ /** Done */
5512
+ done: number;
5513
+ /**
5514
+ * Item Key
5515
+ * Format: uuid
5516
+ */
5517
+ item_key: string;
5518
+ /** Minutes */
5519
+ minutes: number;
5520
+ /** Paused */
5521
+ paused: boolean;
5522
+ /** Self Reported */
5523
+ self_reported: number;
5524
+ /** Session */
5525
+ session: number;
5526
+ /** Target */
5527
+ target: number;
5528
+ /** Title */
5529
+ title: string;
5530
+ };
5531
+ /** PreworkOut */
5532
+ PreworkOut: {
5533
+ /**
5534
+ * Done
5535
+ * @default 0
5536
+ */
5537
+ done: number;
5538
+ /** Missing */
5539
+ missing?: components["schemas"]["MissingItem"][];
5540
+ /**
5541
+ * Required
5542
+ * @default 0
5543
+ */
5544
+ required: number;
5545
+ /** Session */
5546
+ session?: number | null;
5547
+ /**
5548
+ * State
5549
+ * @enum {string}
5550
+ */
5551
+ state: "done" | "outstanding" | "not_required" | "not_open_yet";
5552
+ };
4847
5553
  /**
4848
5554
  * Principal
4849
5555
  * @description The signed-in caller, as Cognito vouches for them.
@@ -4913,6 +5619,11 @@ export interface components {
4913
5619
  * Format: uuid
4914
5620
  */
4915
5621
  course_id: string;
5622
+ /**
5623
+ * Journal Staff Read
5624
+ * @description Who on staff reads participants' journals (journal.staff_read). Required for research programs: the study team chooses it (often from the protocol), never the clinic default (module 6, N3).
5625
+ */
5626
+ journal_staff_read?: ("completion_only" | "cohort_team") | null;
4916
5627
  /** Name */
4917
5628
  name: string;
4918
5629
  /**
@@ -4973,6 +5684,17 @@ export interface components {
4973
5684
  /** Version Key */
4974
5685
  version_key: string | null;
4975
5686
  };
5687
+ /** ProgramProgress */
5688
+ ProgramProgress: {
5689
+ /** Reason */
5690
+ reason?: string | null;
5691
+ /** Required Done */
5692
+ required_done: number;
5693
+ /** Required Released */
5694
+ required_released: number;
5695
+ /** Value */
5696
+ value: number | null;
5697
+ };
4976
5698
  /** ProgramUpdate */
4977
5699
  ProgramUpdate: {
4978
5700
  /**
@@ -4992,6 +5714,57 @@ export interface components {
4992
5714
  /** Version Key */
4993
5715
  version_key?: string | null;
4994
5716
  };
5717
+ /** ProgressOut */
5718
+ ProgressOut: {
5719
+ /** Activity Strip */
5720
+ activity_strip: number[] | null;
5721
+ completion: components["schemas"]["Completion"];
5722
+ /** Current Session */
5723
+ current_session: number | null;
5724
+ /** Days Quiet */
5725
+ days_quiet: number | null;
5726
+ /**
5727
+ * Enrollment Id
5728
+ * Format: uuid
5729
+ */
5730
+ enrollment_id: string;
5731
+ /** Faves */
5732
+ faves: string[];
5733
+ /** Garden */
5734
+ garden: components["schemas"]["GardenSession"][];
5735
+ /** Items */
5736
+ items: components["schemas"]["ItemState"][];
5737
+ /** Keepsakes */
5738
+ keepsakes: components["schemas"]["KeepsakeOut"][];
5739
+ /** Last Activity At */
5740
+ last_activity_at: string | null;
5741
+ /** Length From Player */
5742
+ length_from_player?: number | null;
5743
+ /** Never Activated */
5744
+ never_activated: boolean;
5745
+ next_visit: components["schemas"]["NextVisitPrework"] | null;
5746
+ /** Practices This Week */
5747
+ practices_this_week: components["schemas"]["PracticeWeek"][];
5748
+ /** Presence */
5749
+ presence: {
5750
+ [key: string]: number;
5751
+ };
5752
+ program_progress: components["schemas"]["ProgramProgress"];
5753
+ /**
5754
+ * Quiet Tone
5755
+ * @enum {string}
5756
+ */
5757
+ quiet_tone: "on_target" | "watch" | "flag";
5758
+ /** Release Mode */
5759
+ release_mode: string;
5760
+ /** Session Progress */
5761
+ session_progress: {
5762
+ [key: string]: components["schemas"]["TypeProgress"];
5763
+ };
5764
+ /** Sessions */
5765
+ sessions: components["schemas"]["SessionState"][];
5766
+ vs_last_week: components["schemas"]["LastWeek"];
5767
+ };
4995
5768
  /** Prompt */
4996
5769
  Prompt: {
4997
5770
  /**
@@ -5115,10 +5888,12 @@ export interface components {
5115
5888
  patient_id: string;
5116
5889
  /**
5117
5890
  * Prework
5118
- * @default not_available
5119
- * @constant
5891
+ * @description Module 6: every required item of the visit's session done before it starts
5892
+ * @default not_required
5893
+ * @enum {string}
5120
5894
  */
5121
- prework: "not_available";
5895
+ prework: "done" | "outstanding" | "not_required" | "not_open_yet";
5896
+ prework_detail?: components["schemas"]["PreworkOut"] | null;
5122
5897
  /**
5123
5898
  * Pros
5124
5899
  * @default not_available
@@ -5135,6 +5910,16 @@ export interface components {
5135
5910
  ReadinessOut: {
5136
5911
  /** Members */
5137
5912
  members: components["schemas"]["ReadinessMember"][];
5913
+ /**
5914
+ * Prework Done
5915
+ * @default 0
5916
+ */
5917
+ prework_done: number;
5918
+ /**
5919
+ * Prework Required
5920
+ * @default 0
5921
+ */
5922
+ prework_required: number;
5138
5923
  /**
5139
5924
  * Visit Id
5140
5925
  * Format: uuid
@@ -5446,6 +6231,17 @@ export interface components {
5446
6231
  key: string;
5447
6232
  /** Number */
5448
6233
  number: number;
6234
+ /**
6235
+ * Opened By Care Team
6236
+ * @description Self-paced: the care team opened it ("Your care team opened Session N")
6237
+ * @default false
6238
+ */
6239
+ opened_by_care_team: boolean;
6240
+ /**
6241
+ * Opens After Session
6242
+ * @description Self-paced: opens when this session is completed (module 6)
6243
+ */
6244
+ opens_after_session?: number | null;
5449
6245
  /** Opens At */
5450
6246
  opens_at: string | null;
5451
6247
  /**
@@ -5881,6 +6677,24 @@ export interface components {
5881
6677
  /** Text */
5882
6678
  text: string;
5883
6679
  };
6680
+ /** TypeProgress */
6681
+ TypeProgress: {
6682
+ /** Done */
6683
+ done: number | null;
6684
+ /** Reason */
6685
+ reason?: string | null;
6686
+ /** Total */
6687
+ total: number | null;
6688
+ };
6689
+ /** UploadFormOut */
6690
+ UploadFormOut: {
6691
+ /** Fields */
6692
+ fields: {
6693
+ [key: string]: string;
6694
+ };
6695
+ /** Url */
6696
+ url: string;
6697
+ };
5884
6698
  /** ValidationError */
5885
6699
  ValidationError: {
5886
6700
  /** Context */
@@ -6082,53 +6896,178 @@ export interface components {
6082
6896
  /** Name */
6083
6897
  name: string;
6084
6898
  };
6085
- /** RevisionOut */
6086
- guidistry_api__content__api_schemas__RevisionOut: {
6087
- /** Change Note */
6088
- change_note: string | null;
6899
+ /** WritingIn */
6900
+ WritingIn: {
6901
+ /** Attachment Ids */
6902
+ attachment_ids?: string[];
6903
+ /**
6904
+ * Body
6905
+ * @description Text (journal, practice note) or the written practice's answers
6906
+ */
6907
+ body: string | {
6908
+ [key: string]: unknown;
6909
+ };
6910
+ /** Client Event Id */
6911
+ client_event_id?: string | null;
6912
+ /**
6913
+ * Item Key
6914
+ * Format: uuid
6915
+ * @description journal: a journal prompt; written_practice and practice_note: a practice
6916
+ */
6917
+ item_key: string;
6918
+ /**
6919
+ * Kind
6920
+ * @enum {string}
6921
+ */
6922
+ kind: "journal" | "written_practice" | "practice_note";
6923
+ /** Listen Id */
6924
+ listen_id?: string | null;
6925
+ /**
6926
+ * Ratings
6927
+ * @description After-practice ratings, 1-5
6928
+ */
6929
+ ratings?: {
6930
+ [key: string]: number;
6931
+ } | null;
6932
+ };
6933
+ /** WritingOut */
6934
+ WritingOut: {
6935
+ /** Attachments */
6936
+ attachments: components["schemas"]["AttachmentOut"][];
6937
+ /** Body */
6938
+ body?: string | {
6939
+ [key: string]: unknown;
6940
+ } | null;
6089
6941
  /**
6090
6942
  * Id
6091
6943
  * Format: uuid
6092
6944
  */
6093
6945
  id: string;
6094
- /** Language */
6095
- language: string;
6096
- /** Number */
6097
- number: number;
6098
6946
  /**
6099
- * Published At
6100
- * Format: date-time
6947
+ * Item Key
6948
+ * Format: uuid
6101
6949
  */
6102
- published_at: string;
6103
- /** Published By */
6104
- published_by: string;
6105
- /** Source */
6106
- source: string;
6950
+ item_key: string;
6951
+ /** Item Title */
6952
+ item_title: string | null;
6953
+ /**
6954
+ * Kind
6955
+ * @enum {string}
6956
+ */
6957
+ kind: "journal" | "written_practice" | "practice_note";
6958
+ /** Ratings */
6959
+ ratings: {
6960
+ [key: string]: number;
6961
+ } | null;
6962
+ /** Retracted At */
6963
+ retracted_at: string | null;
6964
+ /** Revisions */
6965
+ revisions: number;
6966
+ /** Session */
6967
+ session: number | null;
6107
6968
  /**
6108
6969
  * Status
6109
6970
  * @enum {string}
6110
6971
  */
6111
- status: "published" | "pending";
6112
- /** Structure Number */
6113
- structure_number: number;
6114
- /** Version */
6115
- version: string;
6116
- };
6117
- /** RevisionOut */
6118
- guidistry_api__visits__schemas__RevisionOut: {
6972
+ status: "submitted" | "retracted";
6119
6973
  /**
6120
- * At
6974
+ * Submitted At
6121
6975
  * Format: date-time
6122
6976
  */
6123
- at: string;
6124
- /** Author Person Id */
6125
- author_person_id: string | null;
6126
- /** Body */
6127
- body: string;
6128
- /** Kind */
6129
- kind: string;
6130
- /** Number */
6131
- number: number;
6977
+ submitted_at: string;
6978
+ /** Text Visible */
6979
+ text_visible: boolean;
6980
+ /**
6981
+ * Updated At
6982
+ * Format: date-time
6983
+ */
6984
+ updated_at: string;
6985
+ };
6986
+ /** WritingPolicyOut */
6987
+ WritingPolicyOut: {
6988
+ /** Help Text */
6989
+ help_text: string;
6990
+ /**
6991
+ * Max Attachments
6992
+ * @description Pictures and recordings per journal entry
6993
+ */
6994
+ max_attachments: number;
6995
+ /**
6996
+ * Max Recording Minutes
6997
+ * @description Longest voice recording, in minutes
6998
+ */
6999
+ max_recording_minutes: number;
7000
+ /**
7001
+ * Notice
7002
+ * @description Plain words for above the journal and written practices
7003
+ */
7004
+ notice: string;
7005
+ /**
7006
+ * Staff Read
7007
+ * @enum {string}
7008
+ */
7009
+ staff_read: "completion_only" | "cohort_team";
7010
+ };
7011
+ /** WritingRevise */
7012
+ WritingRevise: {
7013
+ /** Attachment Ids */
7014
+ attachment_ids?: string[];
7015
+ /** Body */
7016
+ body: string | {
7017
+ [key: string]: unknown;
7018
+ };
7019
+ /** Ratings */
7020
+ ratings?: {
7021
+ [key: string]: number;
7022
+ } | null;
7023
+ };
7024
+ /** RevisionOut */
7025
+ guidistry_api__content__api_schemas__RevisionOut: {
7026
+ /** Change Note */
7027
+ change_note: string | null;
7028
+ /**
7029
+ * Id
7030
+ * Format: uuid
7031
+ */
7032
+ id: string;
7033
+ /** Language */
7034
+ language: string;
7035
+ /** Number */
7036
+ number: number;
7037
+ /**
7038
+ * Published At
7039
+ * Format: date-time
7040
+ */
7041
+ published_at: string;
7042
+ /** Published By */
7043
+ published_by: string;
7044
+ /** Source */
7045
+ source: string;
7046
+ /**
7047
+ * Status
7048
+ * @enum {string}
7049
+ */
7050
+ status: "published" | "pending";
7051
+ /** Structure Number */
7052
+ structure_number: number;
7053
+ /** Version */
7054
+ version: string;
7055
+ };
7056
+ /** RevisionOut */
7057
+ guidistry_api__visits__schemas__RevisionOut: {
7058
+ /**
7059
+ * At
7060
+ * Format: date-time
7061
+ */
7062
+ at: string;
7063
+ /** Author Person Id */
7064
+ author_person_id: string | null;
7065
+ /** Body */
7066
+ body: string;
7067
+ /** Kind */
7068
+ kind: string;
7069
+ /** Number */
7070
+ number: number;
6132
7071
  /** Source */
6133
7072
  source: string | null;
6134
7073
  };
@@ -7130,6 +8069,40 @@ export interface operations {
7130
8069
  };
7131
8070
  };
7132
8071
  };
8072
+ cohort_progress_v1_cohorts__cohort_id__progress_get: {
8073
+ parameters: {
8074
+ query?: never;
8075
+ header?: {
8076
+ /** @description Membership the caller is acting through (from GET /v1/me) */
8077
+ "X-Guidistry-Context"?: string | null;
8078
+ };
8079
+ path: {
8080
+ cohort_id: string;
8081
+ };
8082
+ cookie?: never;
8083
+ };
8084
+ requestBody?: never;
8085
+ responses: {
8086
+ /** @description Successful Response */
8087
+ 200: {
8088
+ headers: {
8089
+ [name: string]: unknown;
8090
+ };
8091
+ content: {
8092
+ "application/json": components["schemas"]["CohortProgressOut"];
8093
+ };
8094
+ };
8095
+ /** @description Validation Error */
8096
+ 422: {
8097
+ headers: {
8098
+ [name: string]: unknown;
8099
+ };
8100
+ content: {
8101
+ "application/json": components["schemas"]["HTTPValidationError"];
8102
+ };
8103
+ };
8104
+ };
8105
+ };
7133
8106
  cohort_settings_v1_cohorts__cohort_id__settings_get: {
7134
8107
  parameters: {
7135
8108
  query?: never;
@@ -8044,23 +9017,389 @@ export interface operations {
8044
9017
  "X-Guidistry-Context"?: string | null;
8045
9018
  };
8046
9019
  path: {
8047
- note_id: string;
9020
+ note_id: string;
9021
+ };
9022
+ cookie?: never;
9023
+ };
9024
+ requestBody: {
9025
+ content: {
9026
+ "application/json": components["schemas"]["Reason"];
9027
+ };
9028
+ };
9029
+ responses: {
9030
+ /** @description Successful Response */
9031
+ 200: {
9032
+ headers: {
9033
+ [name: string]: unknown;
9034
+ };
9035
+ content: {
9036
+ "application/json": components["schemas"]["NoteOut"];
9037
+ };
9038
+ };
9039
+ /** @description Validation Error */
9040
+ 422: {
9041
+ headers: {
9042
+ [name: string]: unknown;
9043
+ };
9044
+ content: {
9045
+ "application/json": components["schemas"]["HTTPValidationError"];
9046
+ };
9047
+ };
9048
+ };
9049
+ };
9050
+ enrollment_queue_v1_enrollment_queue_get: {
9051
+ parameters: {
9052
+ query?: {
9053
+ cohort_id?: string | null;
9054
+ };
9055
+ header?: {
9056
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9057
+ "X-Guidistry-Context"?: string | null;
9058
+ };
9059
+ path?: never;
9060
+ cookie?: never;
9061
+ };
9062
+ requestBody?: never;
9063
+ responses: {
9064
+ /** @description Successful Response */
9065
+ 200: {
9066
+ headers: {
9067
+ [name: string]: unknown;
9068
+ };
9069
+ content: {
9070
+ "application/json": components["schemas"]["QueueEntry"][];
9071
+ };
9072
+ };
9073
+ /** @description Validation Error */
9074
+ 422: {
9075
+ headers: {
9076
+ [name: string]: unknown;
9077
+ };
9078
+ content: {
9079
+ "application/json": components["schemas"]["HTTPValidationError"];
9080
+ };
9081
+ };
9082
+ };
9083
+ };
9084
+ list_enrollments_v1_enrollments_get: {
9085
+ parameters: {
9086
+ query?: {
9087
+ cohort_id?: string | null;
9088
+ patient_id?: string | null;
9089
+ status?: string[] | null;
9090
+ needs_review?: boolean;
9091
+ };
9092
+ header?: {
9093
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9094
+ "X-Guidistry-Context"?: string | null;
9095
+ };
9096
+ path?: never;
9097
+ cookie?: never;
9098
+ };
9099
+ requestBody?: never;
9100
+ responses: {
9101
+ /** @description Successful Response */
9102
+ 200: {
9103
+ headers: {
9104
+ [name: string]: unknown;
9105
+ };
9106
+ content: {
9107
+ "application/json": components["schemas"]["EnrollmentOut"][];
9108
+ };
9109
+ };
9110
+ /** @description Validation Error */
9111
+ 422: {
9112
+ headers: {
9113
+ [name: string]: unknown;
9114
+ };
9115
+ content: {
9116
+ "application/json": components["schemas"]["HTTPValidationError"];
9117
+ };
9118
+ };
9119
+ };
9120
+ };
9121
+ create_enrollment_v1_enrollments_post: {
9122
+ parameters: {
9123
+ query?: never;
9124
+ header?: {
9125
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9126
+ "X-Guidistry-Context"?: string | null;
9127
+ };
9128
+ path?: never;
9129
+ cookie?: never;
9130
+ };
9131
+ requestBody: {
9132
+ content: {
9133
+ "application/json": components["schemas"]["EnrollmentCreate"];
9134
+ };
9135
+ };
9136
+ responses: {
9137
+ /** @description Successful Response */
9138
+ 201: {
9139
+ headers: {
9140
+ [name: string]: unknown;
9141
+ };
9142
+ content: {
9143
+ "application/json": components["schemas"]["EnrollmentOut"];
9144
+ };
9145
+ };
9146
+ /** @description Validation Error */
9147
+ 422: {
9148
+ headers: {
9149
+ [name: string]: unknown;
9150
+ };
9151
+ content: {
9152
+ "application/json": components["schemas"]["HTTPValidationError"];
9153
+ };
9154
+ };
9155
+ };
9156
+ };
9157
+ get_enrollment_v1_enrollments__enrollment_id__get: {
9158
+ parameters: {
9159
+ query?: never;
9160
+ header?: {
9161
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9162
+ "X-Guidistry-Context"?: string | null;
9163
+ };
9164
+ path: {
9165
+ enrollment_id: string;
9166
+ };
9167
+ cookie?: never;
9168
+ };
9169
+ requestBody?: never;
9170
+ responses: {
9171
+ /** @description Successful Response */
9172
+ 200: {
9173
+ headers: {
9174
+ [name: string]: unknown;
9175
+ };
9176
+ content: {
9177
+ "application/json": components["schemas"]["EnrollmentOut"];
9178
+ };
9179
+ };
9180
+ /** @description Validation Error */
9181
+ 422: {
9182
+ headers: {
9183
+ [name: string]: unknown;
9184
+ };
9185
+ content: {
9186
+ "application/json": components["schemas"]["HTTPValidationError"];
9187
+ };
9188
+ };
9189
+ };
9190
+ };
9191
+ list_activity_v1_enrollments__enrollment_id__activity_get: {
9192
+ parameters: {
9193
+ query?: {
9194
+ before_id?: number | null;
9195
+ limit?: number;
9196
+ };
9197
+ header?: {
9198
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9199
+ "X-Guidistry-Context"?: string | null;
9200
+ };
9201
+ path: {
9202
+ enrollment_id: string;
9203
+ };
9204
+ cookie?: never;
9205
+ };
9206
+ requestBody?: never;
9207
+ responses: {
9208
+ /** @description Successful Response */
9209
+ 200: {
9210
+ headers: {
9211
+ [name: string]: unknown;
9212
+ };
9213
+ content: {
9214
+ "application/json": components["schemas"]["ActivityPage"];
9215
+ };
9216
+ };
9217
+ /** @description Validation Error */
9218
+ 422: {
9219
+ headers: {
9220
+ [name: string]: unknown;
9221
+ };
9222
+ content: {
9223
+ "application/json": components["schemas"]["HTTPValidationError"];
9224
+ };
9225
+ };
9226
+ };
9227
+ };
9228
+ post_activity_v1_enrollments__enrollment_id__activity_post: {
9229
+ parameters: {
9230
+ query?: never;
9231
+ header?: {
9232
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9233
+ "X-Guidistry-Context"?: string | null;
9234
+ };
9235
+ path: {
9236
+ enrollment_id: string;
9237
+ };
9238
+ cookie?: never;
9239
+ };
9240
+ requestBody: {
9241
+ content: {
9242
+ "application/json": components["schemas"]["ActivityBatch"];
9243
+ };
9244
+ };
9245
+ responses: {
9246
+ /** @description Successful Response */
9247
+ 200: {
9248
+ headers: {
9249
+ [name: string]: unknown;
9250
+ };
9251
+ content: {
9252
+ "application/json": components["schemas"]["ActivityOut"][];
9253
+ };
9254
+ };
9255
+ /** @description Validation Error */
9256
+ 422: {
9257
+ headers: {
9258
+ [name: string]: unknown;
9259
+ };
9260
+ content: {
9261
+ "application/json": components["schemas"]["HTTPValidationError"];
9262
+ };
9263
+ };
9264
+ };
9265
+ };
9266
+ enrollment_content_v1_enrollments__enrollment_id__content_get: {
9267
+ parameters: {
9268
+ query?: {
9269
+ language?: string | null;
9270
+ };
9271
+ header?: {
9272
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9273
+ "X-Guidistry-Context"?: string | null;
9274
+ };
9275
+ path: {
9276
+ enrollment_id: string;
9277
+ };
9278
+ cookie?: never;
9279
+ };
9280
+ requestBody?: never;
9281
+ responses: {
9282
+ /** @description Successful Response */
9283
+ 200: {
9284
+ headers: {
9285
+ [name: string]: unknown;
9286
+ };
9287
+ content: {
9288
+ "application/json": components["schemas"]["EnrollmentContentOut"];
9289
+ };
9290
+ };
9291
+ /** @description Validation Error */
9292
+ 422: {
9293
+ headers: {
9294
+ [name: string]: unknown;
9295
+ };
9296
+ content: {
9297
+ "application/json": components["schemas"]["HTTPValidationError"];
9298
+ };
9299
+ };
9300
+ };
9301
+ };
9302
+ list_listens_v1_enrollments__enrollment_id__listens_get: {
9303
+ parameters: {
9304
+ query?: {
9305
+ item_key?: string | null;
9306
+ before?: string | null;
9307
+ limit?: number;
9308
+ };
9309
+ header?: {
9310
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9311
+ "X-Guidistry-Context"?: string | null;
9312
+ };
9313
+ path: {
9314
+ enrollment_id: string;
9315
+ };
9316
+ cookie?: never;
9317
+ };
9318
+ requestBody?: never;
9319
+ responses: {
9320
+ /** @description Successful Response */
9321
+ 200: {
9322
+ headers: {
9323
+ [name: string]: unknown;
9324
+ };
9325
+ content: {
9326
+ "application/json": components["schemas"]["ListenPage"];
9327
+ };
9328
+ };
9329
+ /** @description Validation Error */
9330
+ 422: {
9331
+ headers: {
9332
+ [name: string]: unknown;
9333
+ };
9334
+ content: {
9335
+ "application/json": components["schemas"]["HTTPValidationError"];
9336
+ };
9337
+ };
9338
+ };
9339
+ };
9340
+ start_listen_v1_enrollments__enrollment_id__listens_post: {
9341
+ parameters: {
9342
+ query?: never;
9343
+ header?: {
9344
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9345
+ "X-Guidistry-Context"?: string | null;
9346
+ };
9347
+ path: {
9348
+ enrollment_id: string;
9349
+ };
9350
+ cookie?: never;
9351
+ };
9352
+ requestBody: {
9353
+ content: {
9354
+ "application/json": components["schemas"]["ListenStart"];
9355
+ };
9356
+ };
9357
+ responses: {
9358
+ /** @description Successful Response */
9359
+ 201: {
9360
+ headers: {
9361
+ [name: string]: unknown;
9362
+ };
9363
+ content: {
9364
+ "application/json": components["schemas"]["ListenOut"];
9365
+ };
9366
+ };
9367
+ /** @description Validation Error */
9368
+ 422: {
9369
+ headers: {
9370
+ [name: string]: unknown;
9371
+ };
9372
+ content: {
9373
+ "application/json": components["schemas"]["HTTPValidationError"];
9374
+ };
9375
+ };
9376
+ };
9377
+ };
9378
+ request_pause_v1_enrollments__enrollment_id__pauses_post: {
9379
+ parameters: {
9380
+ query?: never;
9381
+ header?: {
9382
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9383
+ "X-Guidistry-Context"?: string | null;
9384
+ };
9385
+ path: {
9386
+ enrollment_id: string;
8048
9387
  };
8049
9388
  cookie?: never;
8050
9389
  };
8051
9390
  requestBody: {
8052
9391
  content: {
8053
- "application/json": components["schemas"]["Reason"];
9392
+ "application/json": components["schemas"]["PauseRequest"];
8054
9393
  };
8055
9394
  };
8056
9395
  responses: {
8057
9396
  /** @description Successful Response */
8058
- 200: {
9397
+ 201: {
8059
9398
  headers: {
8060
9399
  [name: string]: unknown;
8061
9400
  };
8062
9401
  content: {
8063
- "application/json": components["schemas"]["NoteOut"];
9402
+ "application/json": components["schemas"]["PauseOut"];
8064
9403
  };
8065
9404
  };
8066
9405
  /** @description Validation Error */
@@ -8074,16 +9413,16 @@ export interface operations {
8074
9413
  };
8075
9414
  };
8076
9415
  };
8077
- enrollment_queue_v1_enrollment_queue_get: {
9416
+ enrollment_progress_v1_enrollments__enrollment_id__progress_get: {
8078
9417
  parameters: {
8079
- query?: {
8080
- cohort_id?: string | null;
8081
- };
9418
+ query?: never;
8082
9419
  header?: {
8083
9420
  /** @description Membership the caller is acting through (from GET /v1/me) */
8084
9421
  "X-Guidistry-Context"?: string | null;
8085
9422
  };
8086
- path?: never;
9423
+ path: {
9424
+ enrollment_id: string;
9425
+ };
8087
9426
  cookie?: never;
8088
9427
  };
8089
9428
  requestBody?: never;
@@ -8094,7 +9433,7 @@ export interface operations {
8094
9433
  [name: string]: unknown;
8095
9434
  };
8096
9435
  content: {
8097
- "application/json": components["schemas"]["QueueEntry"][];
9436
+ "application/json": components["schemas"]["ProgressOut"];
8098
9437
  };
8099
9438
  };
8100
9439
  /** @description Validation Error */
@@ -8108,19 +9447,16 @@ export interface operations {
8108
9447
  };
8109
9448
  };
8110
9449
  };
8111
- list_enrollments_v1_enrollments_get: {
9450
+ list_reviews_v1_enrollments__enrollment_id__reviews_get: {
8112
9451
  parameters: {
8113
- query?: {
8114
- cohort_id?: string | null;
8115
- patient_id?: string | null;
8116
- status?: string[] | null;
8117
- needs_review?: boolean;
8118
- };
9452
+ query?: never;
8119
9453
  header?: {
8120
9454
  /** @description Membership the caller is acting through (from GET /v1/me) */
8121
9455
  "X-Guidistry-Context"?: string | null;
8122
9456
  };
8123
- path?: never;
9457
+ path: {
9458
+ enrollment_id: string;
9459
+ };
8124
9460
  cookie?: never;
8125
9461
  };
8126
9462
  requestBody?: never;
@@ -8131,7 +9467,7 @@ export interface operations {
8131
9467
  [name: string]: unknown;
8132
9468
  };
8133
9469
  content: {
8134
- "application/json": components["schemas"]["EnrollmentOut"][];
9470
+ "application/json": components["schemas"]["ReviewOut"][];
8135
9471
  };
8136
9472
  };
8137
9473
  /** @description Validation Error */
@@ -8145,29 +9481,32 @@ export interface operations {
8145
9481
  };
8146
9482
  };
8147
9483
  };
8148
- create_enrollment_v1_enrollments_post: {
9484
+ decide_review_v1_enrollments__enrollment_id__reviews__review_id__decide_post: {
8149
9485
  parameters: {
8150
9486
  query?: never;
8151
9487
  header?: {
8152
9488
  /** @description Membership the caller is acting through (from GET /v1/me) */
8153
9489
  "X-Guidistry-Context"?: string | null;
8154
9490
  };
8155
- path?: never;
9491
+ path: {
9492
+ enrollment_id: string;
9493
+ review_id: string;
9494
+ };
8156
9495
  cookie?: never;
8157
9496
  };
8158
9497
  requestBody: {
8159
9498
  content: {
8160
- "application/json": components["schemas"]["EnrollmentCreate"];
9499
+ "application/json": components["schemas"]["ReviewDecision"];
8161
9500
  };
8162
9501
  };
8163
9502
  responses: {
8164
9503
  /** @description Successful Response */
8165
- 201: {
9504
+ 200: {
8166
9505
  headers: {
8167
9506
  [name: string]: unknown;
8168
9507
  };
8169
9508
  content: {
8170
- "application/json": components["schemas"]["EnrollmentOut"];
9509
+ "application/json": components["schemas"]["ReviewOut"];
8171
9510
  };
8172
9511
  };
8173
9512
  /** @description Validation Error */
@@ -8181,7 +9520,7 @@ export interface operations {
8181
9520
  };
8182
9521
  };
8183
9522
  };
8184
- get_enrollment_v1_enrollments__enrollment_id__get: {
9523
+ enrollment_schedule_v1_enrollments__enrollment_id__schedule_get: {
8185
9524
  parameters: {
8186
9525
  query?: never;
8187
9526
  header?: {
@@ -8201,7 +9540,7 @@ export interface operations {
8201
9540
  [name: string]: unknown;
8202
9541
  };
8203
9542
  content: {
8204
- "application/json": components["schemas"]["EnrollmentOut"];
9543
+ "application/json": components["schemas"]["EnrollmentScheduleOut"];
8205
9544
  };
8206
9545
  };
8207
9546
  /** @description Validation Error */
@@ -8215,21 +9554,24 @@ export interface operations {
8215
9554
  };
8216
9555
  };
8217
9556
  };
8218
- enrollment_content_v1_enrollments__enrollment_id__content_get: {
9557
+ open_session_v1_enrollments__enrollment_id__sessions__number__open_post: {
8219
9558
  parameters: {
8220
- query?: {
8221
- language?: string | null;
8222
- };
9559
+ query?: never;
8223
9560
  header?: {
8224
9561
  /** @description Membership the caller is acting through (from GET /v1/me) */
8225
9562
  "X-Guidistry-Context"?: string | null;
8226
9563
  };
8227
9564
  path: {
8228
9565
  enrollment_id: string;
9566
+ number: number;
8229
9567
  };
8230
9568
  cookie?: never;
8231
9569
  };
8232
- requestBody?: never;
9570
+ requestBody: {
9571
+ content: {
9572
+ "application/json": components["schemas"]["OpenSessionIn"];
9573
+ };
9574
+ };
8233
9575
  responses: {
8234
9576
  /** @description Successful Response */
8235
9577
  200: {
@@ -8237,7 +9579,7 @@ export interface operations {
8237
9579
  [name: string]: unknown;
8238
9580
  };
8239
9581
  content: {
8240
- "application/json": components["schemas"]["EnrollmentContentOut"];
9582
+ "application/json": components["schemas"]["ProgressOut"];
8241
9583
  };
8242
9584
  };
8243
9585
  /** @description Validation Error */
@@ -8251,7 +9593,7 @@ export interface operations {
8251
9593
  };
8252
9594
  };
8253
9595
  };
8254
- request_pause_v1_enrollments__enrollment_id__pauses_post: {
9596
+ transition_enrollment_v1_enrollments__enrollment_id__transition_post: {
8255
9597
  parameters: {
8256
9598
  query?: never;
8257
9599
  header?: {
@@ -8265,17 +9607,17 @@ export interface operations {
8265
9607
  };
8266
9608
  requestBody: {
8267
9609
  content: {
8268
- "application/json": components["schemas"]["PauseRequest"];
9610
+ "application/json": components["schemas"]["EnrollmentTransition"];
8269
9611
  };
8270
9612
  };
8271
9613
  responses: {
8272
9614
  /** @description Successful Response */
8273
- 201: {
9615
+ 200: {
8274
9616
  headers: {
8275
9617
  [name: string]: unknown;
8276
9618
  };
8277
9619
  content: {
8278
- "application/json": components["schemas"]["PauseOut"];
9620
+ "application/json": components["schemas"]["EnrollmentOut"];
8279
9621
  };
8280
9622
  };
8281
9623
  /** @description Validation Error */
@@ -8289,7 +9631,7 @@ export interface operations {
8289
9631
  };
8290
9632
  };
8291
9633
  };
8292
- list_reviews_v1_enrollments__enrollment_id__reviews_get: {
9634
+ start_attachment_v1_enrollments__enrollment_id__writing_attachments_post: {
8293
9635
  parameters: {
8294
9636
  query?: never;
8295
9637
  header?: {
@@ -8301,15 +9643,19 @@ export interface operations {
8301
9643
  };
8302
9644
  cookie?: never;
8303
9645
  };
8304
- requestBody?: never;
9646
+ requestBody: {
9647
+ content: {
9648
+ "application/json": components["schemas"]["AttachmentStart"];
9649
+ };
9650
+ };
8305
9651
  responses: {
8306
9652
  /** @description Successful Response */
8307
- 200: {
9653
+ 201: {
8308
9654
  headers: {
8309
9655
  [name: string]: unknown;
8310
9656
  };
8311
9657
  content: {
8312
- "application/json": components["schemas"]["ReviewOut"][];
9658
+ "application/json": components["schemas"]["AttachmentStartOut"];
8313
9659
  };
8314
9660
  };
8315
9661
  /** @description Validation Error */
@@ -8323,7 +9669,7 @@ export interface operations {
8323
9669
  };
8324
9670
  };
8325
9671
  };
8326
- decide_review_v1_enrollments__enrollment_id__reviews__review_id__decide_post: {
9672
+ writing_policy_v1_enrollments__enrollment_id__writing_policy_get: {
8327
9673
  parameters: {
8328
9674
  query?: never;
8329
9675
  header?: {
@@ -8332,15 +9678,10 @@ export interface operations {
8332
9678
  };
8333
9679
  path: {
8334
9680
  enrollment_id: string;
8335
- review_id: string;
8336
9681
  };
8337
9682
  cookie?: never;
8338
9683
  };
8339
- requestBody: {
8340
- content: {
8341
- "application/json": components["schemas"]["ReviewDecision"];
8342
- };
8343
- };
9684
+ requestBody?: never;
8344
9685
  responses: {
8345
9686
  /** @description Successful Response */
8346
9687
  200: {
@@ -8348,7 +9689,7 @@ export interface operations {
8348
9689
  [name: string]: unknown;
8349
9690
  };
8350
9691
  content: {
8351
- "application/json": components["schemas"]["ReviewOut"];
9692
+ "application/json": components["schemas"]["WritingPolicyOut"];
8352
9693
  };
8353
9694
  };
8354
9695
  /** @description Validation Error */
@@ -8362,7 +9703,7 @@ export interface operations {
8362
9703
  };
8363
9704
  };
8364
9705
  };
8365
- enrollment_schedule_v1_enrollments__enrollment_id__schedule_get: {
9706
+ list_writings_v1_enrollments__enrollment_id__writings_get: {
8366
9707
  parameters: {
8367
9708
  query?: never;
8368
9709
  header?: {
@@ -8382,7 +9723,7 @@ export interface operations {
8382
9723
  [name: string]: unknown;
8383
9724
  };
8384
9725
  content: {
8385
- "application/json": components["schemas"]["EnrollmentScheduleOut"];
9726
+ "application/json": components["schemas"]["WritingOut"][];
8386
9727
  };
8387
9728
  };
8388
9729
  /** @description Validation Error */
@@ -8396,7 +9737,7 @@ export interface operations {
8396
9737
  };
8397
9738
  };
8398
9739
  };
8399
- transition_enrollment_v1_enrollments__enrollment_id__transition_post: {
9740
+ submit_writing_v1_enrollments__enrollment_id__writings_post: {
8400
9741
  parameters: {
8401
9742
  query?: never;
8402
9743
  header?: {
@@ -8410,17 +9751,17 @@ export interface operations {
8410
9751
  };
8411
9752
  requestBody: {
8412
9753
  content: {
8413
- "application/json": components["schemas"]["EnrollmentTransition"];
9754
+ "application/json": components["schemas"]["WritingIn"];
8414
9755
  };
8415
9756
  };
8416
9757
  responses: {
8417
9758
  /** @description Successful Response */
8418
- 200: {
9759
+ 201: {
8419
9760
  headers: {
8420
9761
  [name: string]: unknown;
8421
9762
  };
8422
9763
  content: {
8423
- "application/json": components["schemas"]["EnrollmentOut"];
9764
+ "application/json": components["schemas"]["WritingOut"];
8424
9765
  };
8425
9766
  };
8426
9767
  /** @description Validation Error */
@@ -8810,6 +10151,44 @@ export interface operations {
8810
10151
  };
8811
10152
  };
8812
10153
  };
10154
+ report_listen_v1_listens__listen_id__reports_post: {
10155
+ parameters: {
10156
+ query?: never;
10157
+ header?: {
10158
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10159
+ "X-Guidistry-Context"?: string | null;
10160
+ };
10161
+ path: {
10162
+ listen_id: string;
10163
+ };
10164
+ cookie?: never;
10165
+ };
10166
+ requestBody: {
10167
+ content: {
10168
+ "application/json": components["schemas"]["ListenReport"];
10169
+ };
10170
+ };
10171
+ responses: {
10172
+ /** @description Successful Response */
10173
+ 200: {
10174
+ headers: {
10175
+ [name: string]: unknown;
10176
+ };
10177
+ content: {
10178
+ "application/json": components["schemas"]["ListenOut"];
10179
+ };
10180
+ };
10181
+ /** @description Validation Error */
10182
+ 422: {
10183
+ headers: {
10184
+ [name: string]: unknown;
10185
+ };
10186
+ content: {
10187
+ "application/json": components["schemas"]["HTTPValidationError"];
10188
+ };
10189
+ };
10190
+ };
10191
+ };
8813
10192
  live_event_v1_live_sessions__session_id__events_post: {
8814
10193
  parameters: {
8815
10194
  query?: never;
@@ -11021,4 +12400,144 @@ export interface operations {
11021
12400
  };
11022
12401
  };
11023
12402
  };
12403
+ complete_attachment_v1_writing_attachments__attachment_id__complete_post: {
12404
+ parameters: {
12405
+ query?: never;
12406
+ header?: {
12407
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12408
+ "X-Guidistry-Context"?: string | null;
12409
+ };
12410
+ path: {
12411
+ attachment_id: string;
12412
+ };
12413
+ cookie?: never;
12414
+ };
12415
+ requestBody?: never;
12416
+ responses: {
12417
+ /** @description Successful Response */
12418
+ 200: {
12419
+ headers: {
12420
+ [name: string]: unknown;
12421
+ };
12422
+ content: {
12423
+ "application/json": components["schemas"]["AttachmentOut"];
12424
+ };
12425
+ };
12426
+ /** @description Validation Error */
12427
+ 422: {
12428
+ headers: {
12429
+ [name: string]: unknown;
12430
+ };
12431
+ content: {
12432
+ "application/json": components["schemas"]["HTTPValidationError"];
12433
+ };
12434
+ };
12435
+ };
12436
+ };
12437
+ attachment_link_v1_writing_attachments__attachment_id__link_get: {
12438
+ parameters: {
12439
+ query?: never;
12440
+ header?: {
12441
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12442
+ "X-Guidistry-Context"?: string | null;
12443
+ };
12444
+ path: {
12445
+ attachment_id: string;
12446
+ };
12447
+ cookie?: never;
12448
+ };
12449
+ requestBody?: never;
12450
+ responses: {
12451
+ /** @description Successful Response */
12452
+ 200: {
12453
+ headers: {
12454
+ [name: string]: unknown;
12455
+ };
12456
+ content: {
12457
+ "application/json": components["schemas"]["LinkOut"];
12458
+ };
12459
+ };
12460
+ /** @description Validation Error */
12461
+ 422: {
12462
+ headers: {
12463
+ [name: string]: unknown;
12464
+ };
12465
+ content: {
12466
+ "application/json": components["schemas"]["HTTPValidationError"];
12467
+ };
12468
+ };
12469
+ };
12470
+ };
12471
+ retract_writing_v1_writings__writing_id__retract_post: {
12472
+ parameters: {
12473
+ query?: never;
12474
+ header?: {
12475
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12476
+ "X-Guidistry-Context"?: string | null;
12477
+ };
12478
+ path: {
12479
+ writing_id: string;
12480
+ };
12481
+ cookie?: never;
12482
+ };
12483
+ requestBody?: never;
12484
+ responses: {
12485
+ /** @description Successful Response */
12486
+ 200: {
12487
+ headers: {
12488
+ [name: string]: unknown;
12489
+ };
12490
+ content: {
12491
+ "application/json": components["schemas"]["WritingOut"];
12492
+ };
12493
+ };
12494
+ /** @description Validation Error */
12495
+ 422: {
12496
+ headers: {
12497
+ [name: string]: unknown;
12498
+ };
12499
+ content: {
12500
+ "application/json": components["schemas"]["HTTPValidationError"];
12501
+ };
12502
+ };
12503
+ };
12504
+ };
12505
+ revise_writing_v1_writings__writing_id__revisions_post: {
12506
+ parameters: {
12507
+ query?: never;
12508
+ header?: {
12509
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12510
+ "X-Guidistry-Context"?: string | null;
12511
+ };
12512
+ path: {
12513
+ writing_id: string;
12514
+ };
12515
+ cookie?: never;
12516
+ };
12517
+ requestBody: {
12518
+ content: {
12519
+ "application/json": components["schemas"]["WritingRevise"];
12520
+ };
12521
+ };
12522
+ responses: {
12523
+ /** @description Successful Response */
12524
+ 200: {
12525
+ headers: {
12526
+ [name: string]: unknown;
12527
+ };
12528
+ content: {
12529
+ "application/json": components["schemas"]["WritingOut"];
12530
+ };
12531
+ };
12532
+ /** @description Validation Error */
12533
+ 422: {
12534
+ headers: {
12535
+ [name: string]: unknown;
12536
+ };
12537
+ content: {
12538
+ "application/json": components["schemas"]["HTTPValidationError"];
12539
+ };
12540
+ };
12541
+ };
12542
+ };
11024
12543
  }