@brightoutcome/guidistry-client 0.1.1 → 0.3.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 (3) hide show
  1. package/README.md +19 -0
  2. package/dist/schema.d.ts +1829 -100
  3. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -113,6 +113,187 @@ export interface paths {
113
113
  patch?: never;
114
114
  trace?: never;
115
115
  };
116
+ "/v1/courses": {
117
+ parameters: {
118
+ query?: never;
119
+ header?: never;
120
+ path?: never;
121
+ cookie?: never;
122
+ };
123
+ /**
124
+ * List program templates
125
+ * @description Templates this context owns or has permission to see, by name.
126
+ */
127
+ get: operations["list_courses_v1_courses_get"];
128
+ put?: never;
129
+ post?: never;
130
+ delete?: never;
131
+ options?: never;
132
+ head?: never;
133
+ patch?: never;
134
+ trace?: never;
135
+ };
136
+ "/v1/courses/{course_id}": {
137
+ parameters: {
138
+ query?: never;
139
+ header?: never;
140
+ path?: never;
141
+ cookie?: never;
142
+ };
143
+ /** Get a program template */
144
+ get: operations["get_course_v1_courses__course_id__get"];
145
+ put?: never;
146
+ post?: never;
147
+ delete?: never;
148
+ options?: never;
149
+ head?: never;
150
+ patch?: never;
151
+ trace?: never;
152
+ };
153
+ "/v1/courses/{course_id}/content": {
154
+ parameters: {
155
+ query?: never;
156
+ header?: never;
157
+ path?: never;
158
+ cookie?: never;
159
+ };
160
+ /** Get a program template's content */
161
+ get: operations["get_course_content_v1_courses__course_id__content_get"];
162
+ put?: never;
163
+ post?: never;
164
+ delete?: never;
165
+ options?: never;
166
+ head?: never;
167
+ patch?: never;
168
+ trace?: never;
169
+ };
170
+ "/v1/courses/{course_id}/grants": {
171
+ parameters: {
172
+ query?: never;
173
+ header?: never;
174
+ path?: never;
175
+ cookie?: never;
176
+ };
177
+ /** List who may use a program template */
178
+ get: operations["list_grants_v1_courses__course_id__grants_get"];
179
+ put?: never;
180
+ /** Give an organization or person permission to use a program template */
181
+ post: operations["create_grant_v1_courses__course_id__grants_post"];
182
+ delete?: never;
183
+ options?: never;
184
+ head?: never;
185
+ patch?: never;
186
+ trace?: never;
187
+ };
188
+ "/v1/courses/{course_id}/items": {
189
+ parameters: {
190
+ query?: never;
191
+ header?: never;
192
+ path?: never;
193
+ cookie?: never;
194
+ };
195
+ /** List the items of the current revision */
196
+ get: operations["list_items_v1_courses__course_id__items_get"];
197
+ put?: never;
198
+ post?: never;
199
+ delete?: never;
200
+ options?: never;
201
+ head?: never;
202
+ patch?: never;
203
+ trace?: never;
204
+ };
205
+ "/v1/courses/{course_id}/revisions": {
206
+ parameters: {
207
+ query?: never;
208
+ header?: never;
209
+ path?: never;
210
+ cookie?: never;
211
+ };
212
+ /** List a program template's revisions */
213
+ get: operations["list_revisions_v1_courses__course_id__revisions_get"];
214
+ put?: never;
215
+ post?: never;
216
+ delete?: never;
217
+ options?: never;
218
+ head?: never;
219
+ patch?: never;
220
+ trace?: never;
221
+ };
222
+ "/v1/courses/{course_id}/structures": {
223
+ parameters: {
224
+ query?: never;
225
+ header?: never;
226
+ path?: never;
227
+ cookie?: never;
228
+ };
229
+ /** List a program template's structures */
230
+ get: operations["list_structures_v1_courses__course_id__structures_get"];
231
+ put?: never;
232
+ post?: never;
233
+ delete?: never;
234
+ options?: never;
235
+ head?: never;
236
+ patch?: never;
237
+ trace?: never;
238
+ };
239
+ "/v1/courses/{course_id}/structures/{number}/approve": {
240
+ parameters: {
241
+ query?: never;
242
+ header?: never;
243
+ path?: never;
244
+ cookie?: never;
245
+ };
246
+ get?: never;
247
+ put?: never;
248
+ /**
249
+ * Approve a structural change to a template in use
250
+ * @description Adding, removing or moving topics of a template that a live cohort uses waits for
251
+ * this approval (design §6). Cohorts already running stay on their structure.
252
+ */
253
+ post: operations["approve_structure_v1_courses__course_id__structures__number__approve_post"];
254
+ delete?: never;
255
+ options?: never;
256
+ head?: never;
257
+ patch?: never;
258
+ trace?: never;
259
+ };
260
+ "/v1/courses/{course_id}/syncs": {
261
+ parameters: {
262
+ query?: never;
263
+ header?: never;
264
+ path?: never;
265
+ cookie?: never;
266
+ };
267
+ /** Recent content syncs of a program template */
268
+ get: operations["list_syncs_v1_courses__course_id__syncs_get"];
269
+ put?: never;
270
+ post?: never;
271
+ delete?: never;
272
+ options?: never;
273
+ head?: never;
274
+ patch?: never;
275
+ trace?: never;
276
+ };
277
+ "/v1/grants/{grant_id}": {
278
+ parameters: {
279
+ query?: never;
280
+ header?: never;
281
+ path?: never;
282
+ cookie?: never;
283
+ };
284
+ get?: never;
285
+ put?: never;
286
+ post?: never;
287
+ /**
288
+ * Withdraw a permission
289
+ * @description Kept for history (revoked_at), never deleted.
290
+ */
291
+ delete: operations["revoke_grant_v1_grants__grant_id__delete"];
292
+ options?: never;
293
+ head?: never;
294
+ patch?: never;
295
+ trace?: never;
296
+ };
116
297
  "/v1/invitations": {
117
298
  parameters: {
118
299
  query?: never;
@@ -335,6 +516,59 @@ export interface paths {
335
516
  patch?: never;
336
517
  trace?: never;
337
518
  };
519
+ "/v1/programs": {
520
+ parameters: {
521
+ query?: never;
522
+ header?: never;
523
+ path?: never;
524
+ cookie?: never;
525
+ };
526
+ /** List programs */
527
+ get: operations["list_programs_v1_programs_get"];
528
+ put?: never;
529
+ /** Create a program from a program template */
530
+ post: operations["create_program_v1_programs_post"];
531
+ delete?: never;
532
+ options?: never;
533
+ head?: never;
534
+ patch?: never;
535
+ trace?: never;
536
+ };
537
+ "/v1/programs/{program_id}": {
538
+ parameters: {
539
+ query?: never;
540
+ header?: never;
541
+ path?: never;
542
+ cookie?: never;
543
+ };
544
+ /** Get a program */
545
+ get: operations["get_program_v1_programs__program_id__get"];
546
+ put?: never;
547
+ post?: never;
548
+ delete?: never;
549
+ options?: never;
550
+ head?: never;
551
+ /** Update a program */
552
+ patch: operations["update_program_v1_programs__program_id__patch"];
553
+ trace?: never;
554
+ };
555
+ "/v1/programs/{program_id}/content": {
556
+ parameters: {
557
+ query?: never;
558
+ header?: never;
559
+ path?: never;
560
+ cookie?: never;
561
+ };
562
+ /** Get a program's content: its template with the program's choices applied */
563
+ get: operations["get_program_content_v1_programs__program_id__content_get"];
564
+ put?: never;
565
+ post?: never;
566
+ delete?: never;
567
+ options?: never;
568
+ head?: never;
569
+ patch?: never;
570
+ trace?: never;
571
+ };
338
572
  "/v1/roles": {
339
573
  parameters: {
340
574
  query?: never;
@@ -442,79 +676,448 @@ export interface components {
442
676
  */
443
677
  sso?: string | null;
444
678
  };
445
- /** DependencyStatus */
446
- DependencyStatus: {
447
- /** Detail */
448
- detail?: string | null;
449
- /** Ok */
450
- ok: boolean;
451
- };
452
- /** HTTPValidationError */
453
- HTTPValidationError: {
454
- /** Detail */
455
- detail?: components["schemas"]["ValidationError"][];
456
- };
457
- /** InvitationAccepted */
458
- InvitationAccepted: {
679
+ /** CalloutBlock */
680
+ CalloutBlock: {
681
+ /** Html */
682
+ html?: string | null;
459
683
  /**
460
- * Email
461
- * @description Sign in with this email (one-time code, passkey or password)
684
+ * Key
685
+ * Format: uuid
462
686
  */
463
- email: string;
464
- /** Organization */
465
- organization: string;
466
- /** Role */
467
- role: string;
687
+ key: string;
688
+ /** Markdown */
689
+ markdown: string;
690
+ tags?: components["schemas"]["Tags"] | null;
691
+ /**
692
+ * @description discriminator enum property added by openapi-typescript
693
+ * @enum {string}
694
+ */
695
+ type: "callout";
468
696
  };
469
- /** InvitationCreate */
470
- InvitationCreate: {
697
+ /**
698
+ * CourseContent
699
+ * @description A whole course in one language.
700
+ */
701
+ CourseContent: {
702
+ course: components["schemas"]["CourseInfo"];
703
+ /** Handouts */
704
+ handouts?: components["schemas"]["Handout"][];
705
+ /** Modules */
706
+ modules?: components["schemas"]["Module"][];
707
+ /** Resources */
708
+ resources?: components["schemas"]["Resource"][];
471
709
  /**
472
- * Email
473
- * Format: email
710
+ * Schema Version
711
+ * @default 1
712
+ * @constant
474
713
  */
475
- email: string;
476
- names?: components["schemas"]["Names"];
714
+ schema_version: 1;
715
+ };
716
+ /** CourseInfo */
717
+ CourseInfo: {
477
718
  /**
478
- * Org Unit Id
479
- * @description Defaults to the context's unit
719
+ * Allowed Delivery
720
+ * @description Empty = every method
480
721
  */
481
- org_unit_id?: string | null;
482
- professional?: components["schemas"]["ProfessionalProfileIn"] | null;
722
+ allowed_delivery?: ("time_locked" | "completion" | "open" | "triggered" | "participant_choice")[];
723
+ /** Code */
724
+ code?: string | null;
725
+ /** Condition */
726
+ condition?: string | null;
727
+ /** Description */
728
+ description?: string | null;
729
+ /** Developer Name */
730
+ developer_name?: string | null;
731
+ /** Developer Org */
732
+ developer_org?: string | null;
733
+ /** Domains */
734
+ domains?: string[];
483
735
  /**
484
- * Role
485
- * @description Role code, e.g. provider, care_team, patient
736
+ * History
737
+ * @description Free text: where this course came from
486
738
  */
487
- role: string;
488
- };
489
- /** InvitationOut */
490
- InvitationOut: {
739
+ history?: string | null;
740
+ /** Intended Uses */
741
+ intended_uses?: ("clinical" | "research" | "wellness")[];
491
742
  /**
492
- * Created At
493
- * Format: date-time
743
+ * Language
744
+ * @default en
494
745
  */
495
- created_at: string;
496
- /** Email */
497
- email: string;
746
+ language: string;
747
+ /** Levels */
748
+ levels: components["schemas"]["Level"][];
749
+ /** Name */
750
+ name: string;
498
751
  /**
499
- * Expires At
500
- * Format: date-time
752
+ * Slug
753
+ * @description Stable identifier; names the content file
501
754
  */
502
- expires_at: string;
755
+ slug: string;
503
756
  /**
504
- * Id
505
- * Format: uuid
757
+ * Staff Notes
758
+ * @description Staff only (Markdown); never sent to participants
506
759
  */
507
- id: string;
760
+ staff_notes?: string | null;
761
+ /** Switches */
762
+ switches?: components["schemas"]["Switch"][];
763
+ /** Versions */
764
+ versions?: components["schemas"]["Version"][];
765
+ };
766
+ /** CourseItemOut */
767
+ CourseItemOut: {
508
768
  /**
509
- * Org Unit Id
769
+ * Key
510
770
  * Format: uuid
511
771
  */
512
- org_unit_id: string;
513
- role: components["schemas"]["RoleOut"];
514
- /** Status */
515
- status: string;
772
+ key: string;
773
+ /** Kind */
774
+ kind: string;
775
+ /** Parent Key */
776
+ parent_key: string | null;
777
+ /** Prework Type */
778
+ prework_type: string | null;
779
+ /** Required */
780
+ required: boolean | null;
781
+ /** Sequence */
782
+ sequence: number;
783
+ /** Tags */
784
+ tags: {
785
+ [key: string]: unknown;
786
+ } | null;
787
+ /** Target */
788
+ target: {
789
+ [key: string]: unknown;
790
+ } | null;
791
+ /** Title */
792
+ title: string | null;
516
793
  };
517
- /** InvitationPreview */
794
+ /**
795
+ * CourseOut
796
+ * @description A program template (clinical screens) / course (research screens).
797
+ */
798
+ CourseOut: {
799
+ /** Code */
800
+ code: string | null;
801
+ /** Condition */
802
+ condition: string | null;
803
+ /**
804
+ * Current Version
805
+ * @description e.g. "v1.3": structure 1, revision 3
806
+ */
807
+ current_version: string | null;
808
+ /** Description */
809
+ description: string | null;
810
+ /** Edit Source */
811
+ edit_source: string;
812
+ /**
813
+ * Id
814
+ * Format: uuid
815
+ */
816
+ id: string;
817
+ /** Languages */
818
+ languages: string[];
819
+ /** Levels */
820
+ levels: components["schemas"]["Level"][];
821
+ /**
822
+ * Lifecycle
823
+ * @enum {string}
824
+ */
825
+ lifecycle: "in_development" | "in_use";
826
+ /** Name */
827
+ name: string;
828
+ /**
829
+ * Owner Id
830
+ * Format: uuid
831
+ */
832
+ owner_id: string;
833
+ /** Owner Level */
834
+ owner_level: string;
835
+ /** Primary Language */
836
+ primary_language: string;
837
+ /**
838
+ * Rights
839
+ * @description What the caller's context may do with it
840
+ */
841
+ rights: ("view" | "use" | "adapt" | "edit")[];
842
+ /** Slug */
843
+ slug: string;
844
+ /** Status */
845
+ status: string;
846
+ /** Switches */
847
+ switches: components["schemas"]["SwitchOut"][];
848
+ /**
849
+ * Updated At
850
+ * Format: date-time
851
+ */
852
+ updated_at: string;
853
+ /** Versions */
854
+ versions: components["schemas"]["VersionOut"][];
855
+ };
856
+ /** CourseRef */
857
+ CourseRef: {
858
+ /**
859
+ * Id
860
+ * Format: uuid
861
+ */
862
+ id: string;
863
+ /** Name */
864
+ name: string;
865
+ /** Slug */
866
+ slug: string;
867
+ };
868
+ /** CourseSyncOut */
869
+ CourseSyncOut: {
870
+ /**
871
+ * Created At
872
+ * Format: date-time
873
+ */
874
+ created_at: string;
875
+ /** File Path */
876
+ file_path: string;
877
+ /** Id */
878
+ id: number;
879
+ /** Report */
880
+ report: {
881
+ [key: string]: unknown;
882
+ };
883
+ /**
884
+ * Result
885
+ * @enum {string}
886
+ */
887
+ result: "published" | "unchanged" | "needs_approval" | "rejected";
888
+ /** Source */
889
+ source: string;
890
+ };
891
+ /** DependencyStatus */
892
+ DependencyStatus: {
893
+ /** Detail */
894
+ detail?: string | null;
895
+ /** Ok */
896
+ ok: boolean;
897
+ };
898
+ /**
899
+ * FormField
900
+ * @description One answer field. Shared by question blocks and practice forms.
901
+ */
902
+ FormField: {
903
+ /** Anchors */
904
+ anchors?: string[] | null;
905
+ /**
906
+ * Key
907
+ * Format: uuid
908
+ */
909
+ key: string;
910
+ /**
911
+ * Kind
912
+ * @enum {string}
913
+ */
914
+ kind: "long_text" | "short_text" | "single_choice" | "multi_choice" | "scale" | "date";
915
+ /** Label */
916
+ label: string;
917
+ /** Max */
918
+ max?: number | null;
919
+ /** Min */
920
+ min?: number | null;
921
+ /** Options */
922
+ options?: string[] | null;
923
+ /**
924
+ * Required
925
+ * @default false
926
+ */
927
+ required: boolean;
928
+ /** Rows */
929
+ rows?: number | null;
930
+ };
931
+ /** GrantCreate */
932
+ GrantCreate: {
933
+ /** Ends At */
934
+ ends_at?: string | null;
935
+ /** Grantee Id */
936
+ grantee_id?: string | null;
937
+ /**
938
+ * Grantee Type
939
+ * @enum {string}
940
+ */
941
+ grantee_type: "org_unit" | "person" | "everyone";
942
+ /**
943
+ * Include Subunits
944
+ * @default true
945
+ */
946
+ include_subunits: boolean;
947
+ /** License Ref */
948
+ license_ref?: string | null;
949
+ /** Rights */
950
+ rights: ("view" | "use" | "adapt" | "edit")[];
951
+ /** Starts At */
952
+ starts_at?: string | null;
953
+ };
954
+ /**
955
+ * GrantOut
956
+ * @description A permission on a course: who may view, use, adapt or edit it.
957
+ */
958
+ GrantOut: {
959
+ /**
960
+ * Created At
961
+ * Format: date-time
962
+ */
963
+ created_at: string;
964
+ /** Ends At */
965
+ ends_at: string | null;
966
+ /** Grantee Id */
967
+ grantee_id: string | null;
968
+ /** Grantee Type */
969
+ grantee_type: string;
970
+ /**
971
+ * Id
972
+ * Format: uuid
973
+ */
974
+ id: string;
975
+ /** Include Subunits */
976
+ include_subunits: boolean;
977
+ /** License Ref */
978
+ license_ref: string | null;
979
+ /** Revoked At */
980
+ revoked_at: string | null;
981
+ /** Rights */
982
+ rights: ("view" | "use" | "adapt" | "edit")[];
983
+ /** Starts At */
984
+ starts_at: string | null;
985
+ };
986
+ /** HTTPValidationError */
987
+ HTTPValidationError: {
988
+ /** Detail */
989
+ detail?: components["schemas"]["ValidationError"][];
990
+ };
991
+ /** Handout */
992
+ Handout: {
993
+ /** Blocks */
994
+ blocks?: (components["schemas"]["TextBlock"] | components["schemas"]["CalloutBlock"] | components["schemas"]["ImageBlock"] | components["schemas"]["ResourceBlock"] | components["schemas"]["HandoutLinkBlock"] | components["schemas"]["LayoutBlock"] | components["schemas"]["QuestionBlock"] | components["schemas"]["VariantsBlock"])[];
995
+ /**
996
+ * Dropcap
997
+ * @default false
998
+ */
999
+ dropcap: boolean;
1000
+ /**
1001
+ * Key
1002
+ * Format: uuid
1003
+ */
1004
+ key: string;
1005
+ /** @description The original PDF it was checked against */
1006
+ source?: components["schemas"]["MediaRef"] | null;
1007
+ /** Subtitle */
1008
+ subtitle?: string | null;
1009
+ tags?: components["schemas"]["Tags"] | null;
1010
+ /** Title */
1011
+ title: string;
1012
+ };
1013
+ /** HandoutLinkBlock */
1014
+ HandoutLinkBlock: {
1015
+ /**
1016
+ * Handout Key
1017
+ * Format: uuid
1018
+ */
1019
+ handout_key: string;
1020
+ /**
1021
+ * Key
1022
+ * Format: uuid
1023
+ */
1024
+ key: string;
1025
+ tags?: components["schemas"]["Tags"] | null;
1026
+ /** Title */
1027
+ title?: string | null;
1028
+ /**
1029
+ * @description discriminator enum property added by openapi-typescript
1030
+ * @enum {string}
1031
+ */
1032
+ type: "handout_link";
1033
+ };
1034
+ /** ImageBlock */
1035
+ ImageBlock: {
1036
+ /**
1037
+ * Alt
1038
+ * @description Alternative text (required for accessibility)
1039
+ */
1040
+ alt: string;
1041
+ /** Caption */
1042
+ caption?: string | null;
1043
+ /** Credit */
1044
+ credit?: string | null;
1045
+ /**
1046
+ * Key
1047
+ * Format: uuid
1048
+ */
1049
+ key: string;
1050
+ media: components["schemas"]["MediaRef"];
1051
+ /** Size */
1052
+ size?: ("hero" | "original" | "small") | null;
1053
+ tags?: components["schemas"]["Tags"] | null;
1054
+ /**
1055
+ * @description discriminator enum property added by openapi-typescript
1056
+ * @enum {string}
1057
+ */
1058
+ type: "image";
1059
+ };
1060
+ /** InvitationAccepted */
1061
+ InvitationAccepted: {
1062
+ /**
1063
+ * Email
1064
+ * @description Sign in with this email (one-time code, passkey or password)
1065
+ */
1066
+ email: string;
1067
+ /** Organization */
1068
+ organization: string;
1069
+ /** Role */
1070
+ role: string;
1071
+ };
1072
+ /** InvitationCreate */
1073
+ InvitationCreate: {
1074
+ /**
1075
+ * Email
1076
+ * Format: email
1077
+ */
1078
+ email: string;
1079
+ names?: components["schemas"]["Names"];
1080
+ /**
1081
+ * Org Unit Id
1082
+ * @description Defaults to the context's unit
1083
+ */
1084
+ org_unit_id?: string | null;
1085
+ professional?: components["schemas"]["ProfessionalProfileIn"] | null;
1086
+ /**
1087
+ * Role
1088
+ * @description Role code, e.g. provider, care_team, patient
1089
+ */
1090
+ role: string;
1091
+ };
1092
+ /** InvitationOut */
1093
+ InvitationOut: {
1094
+ /**
1095
+ * Created At
1096
+ * Format: date-time
1097
+ */
1098
+ created_at: string;
1099
+ /** Email */
1100
+ email: string;
1101
+ /**
1102
+ * Expires At
1103
+ * Format: date-time
1104
+ */
1105
+ expires_at: string;
1106
+ /**
1107
+ * Id
1108
+ * Format: uuid
1109
+ */
1110
+ id: string;
1111
+ /**
1112
+ * Org Unit Id
1113
+ * Format: uuid
1114
+ */
1115
+ org_unit_id: string;
1116
+ role: components["schemas"]["RoleOut"];
1117
+ /** Status */
1118
+ status: string;
1119
+ };
1120
+ /** InvitationPreview */
518
1121
  InvitationPreview: {
519
1122
  /**
520
1123
  * Email Hint
@@ -533,6 +1136,73 @@ export interface components {
533
1136
  /** Status */
534
1137
  status: string;
535
1138
  };
1139
+ /**
1140
+ * LayoutBlock
1141
+ * @description A named layout (acrostic, pyramid, cycle, …) with its lines, drawn by the app.
1142
+ */
1143
+ LayoutBlock: {
1144
+ /**
1145
+ * From Picture
1146
+ * @description Words transcribed from a picture
1147
+ * @default false
1148
+ */
1149
+ from_picture: boolean;
1150
+ /**
1151
+ * Hidden
1152
+ * @description Kept for the record, not shown
1153
+ * @default false
1154
+ */
1155
+ hidden: boolean;
1156
+ /**
1157
+ * Key
1158
+ * Format: uuid
1159
+ */
1160
+ key: string;
1161
+ /** Layout */
1162
+ layout: string;
1163
+ /** Lines */
1164
+ lines: string[];
1165
+ /**
1166
+ * Options
1167
+ * @description Layout options, e.g. ["tone-2"] or ["9"]
1168
+ */
1169
+ options?: string[];
1170
+ /** Pictures */
1171
+ pictures?: components["schemas"]["LayoutPicture"][];
1172
+ tags?: components["schemas"]["Tags"] | null;
1173
+ /**
1174
+ * @description discriminator enum property added by openapi-typescript
1175
+ * @enum {string}
1176
+ */
1177
+ type: "layout";
1178
+ };
1179
+ /**
1180
+ * LayoutPicture
1181
+ * @description A picture a layout's lines refer to as ``pic:<key>``.
1182
+ */
1183
+ LayoutPicture: {
1184
+ /**
1185
+ * Alt
1186
+ * @default
1187
+ */
1188
+ alt: string;
1189
+ /** Key */
1190
+ key: string;
1191
+ media: components["schemas"]["MediaRef"];
1192
+ };
1193
+ /** Level */
1194
+ Level: {
1195
+ /**
1196
+ * Key
1197
+ * @enum {string}
1198
+ */
1199
+ key: "module" | "topic" | "section";
1200
+ /**
1201
+ * Label
1202
+ * @description What this course calls it
1203
+ */
1204
+ label: string;
1205
+ };
536
1206
  /** LiveResponse */
537
1207
  LiveResponse: {
538
1208
  /**
@@ -575,6 +1245,41 @@ export interface components {
575
1245
  */
576
1246
  person_id: string;
577
1247
  };
1248
+ /**
1249
+ * MediaRef
1250
+ * @description A file or link. Stored content uses ``asset_id`` or ``url``; repository files use
1251
+ * ``file`` (a path in the repository), which the content sync replaces with ``asset_id``.
1252
+ */
1253
+ MediaRef: {
1254
+ /** Asset Id */
1255
+ asset_id?: string | null;
1256
+ /**
1257
+ * File
1258
+ * @description Repository path (content files only)
1259
+ */
1260
+ file?: string | null;
1261
+ /**
1262
+ * Kind
1263
+ * @enum {string}
1264
+ */
1265
+ kind: "image" | "audio" | "video" | "pdf" | "document" | "link";
1266
+ /**
1267
+ * Original Filename
1268
+ * @description Name the curriculum cites
1269
+ */
1270
+ original_filename?: string | null;
1271
+ /** Signed Url */
1272
+ signed_url?: string | null;
1273
+ /** Title */
1274
+ title?: string | null;
1275
+ /** Transcript */
1276
+ transcript?: string | null;
1277
+ /**
1278
+ * Url
1279
+ * @description External link (YouTube, Vimeo, website)
1280
+ */
1281
+ url?: string | null;
1282
+ };
578
1283
  /** MembershipOut */
579
1284
  MembershipOut: {
580
1285
  /** Ends At */
@@ -603,6 +1308,31 @@ export interface components {
603
1308
  /** Status */
604
1309
  status?: ("active" | "suspended" | "ended") | null;
605
1310
  };
1311
+ /** Module */
1312
+ Module: {
1313
+ /** Description */
1314
+ description?: string | null;
1315
+ /**
1316
+ * Key
1317
+ * Format: uuid
1318
+ */
1319
+ key: string;
1320
+ /** Objectives */
1321
+ objectives?: string[];
1322
+ /** Practices */
1323
+ practices?: components["schemas"]["Practice"][];
1324
+ /** Prompts */
1325
+ prompts?: components["schemas"]["Prompt"][];
1326
+ /** Resources */
1327
+ resources?: components["schemas"]["Resource"][];
1328
+ /** Staff Notes */
1329
+ staff_notes?: string | null;
1330
+ tags?: components["schemas"]["Tags"] | null;
1331
+ /** Title */
1332
+ title: string;
1333
+ /** Topics */
1334
+ topics?: components["schemas"]["Topic"][];
1335
+ };
606
1336
  /** Names */
607
1337
  Names: {
608
1338
  /** Family */
@@ -712,22 +1442,73 @@ export interface components {
712
1442
  names?: components["schemas"]["Names"] | null;
713
1443
  professional?: components["schemas"]["ProfessionalProfileIn"] | null;
714
1444
  };
715
- /**
716
- * Principal
717
- * @description The signed-in caller, as Cognito vouches for them.
718
- */
719
- Principal: {
720
- /** Auth Time */
721
- auth_time?: number | null;
722
- /** Client Id */
723
- client_id: string;
1445
+ /** Practice */
1446
+ Practice: {
724
1447
  /**
725
- * Groups
726
- * @default []
1448
+ * Attached To
1449
+ * @description Topic key; None = the module
727
1450
  */
728
- groups: string[];
1451
+ attached_to?: string | null;
1452
+ /** Description */
1453
+ description?: string | null;
1454
+ form?: components["schemas"]["PracticeForm"] | null;
1455
+ /** Instruction */
1456
+ instruction?: string | null;
729
1457
  /**
730
- * Scopes
1458
+ * Key
1459
+ * Format: uuid
1460
+ */
1461
+ key: string;
1462
+ /** Media */
1463
+ media?: components["schemas"]["PracticeMedia"][];
1464
+ /**
1465
+ * Practice Type
1466
+ * @enum {string}
1467
+ */
1468
+ practice_type: "audio" | "video" | "written";
1469
+ /** Required */
1470
+ required?: boolean | null;
1471
+ tags?: components["schemas"]["Tags"] | null;
1472
+ target?: components["schemas"]["Target"] | null;
1473
+ /** Title */
1474
+ title: string;
1475
+ };
1476
+ /** PracticeForm */
1477
+ PracticeForm: {
1478
+ /** Fields */
1479
+ fields: components["schemas"]["FormField"][];
1480
+ /**
1481
+ * Intro
1482
+ * @description Markdown shown above the fields
1483
+ */
1484
+ intro?: string | null;
1485
+ };
1486
+ /** PracticeMedia */
1487
+ PracticeMedia: {
1488
+ /**
1489
+ * Key
1490
+ * Format: uuid
1491
+ */
1492
+ key: string;
1493
+ media: components["schemas"]["MediaRef"];
1494
+ tags?: components["schemas"]["Tags"] | null;
1495
+ };
1496
+ /**
1497
+ * Principal
1498
+ * @description The signed-in caller, as Cognito vouches for them.
1499
+ */
1500
+ Principal: {
1501
+ /** Auth Time */
1502
+ auth_time?: number | null;
1503
+ /** Client Id */
1504
+ client_id: string;
1505
+ /**
1506
+ * Groups
1507
+ * @default []
1508
+ */
1509
+ groups: string[];
1510
+ /**
1511
+ * Scopes
731
1512
  * @default []
732
1513
  */
733
1514
  scopes: string[];
@@ -750,6 +1531,141 @@ export interface components {
750
1531
  /** Title */
751
1532
  title?: string | null;
752
1533
  };
1534
+ /** ProgramCreate */
1535
+ ProgramCreate: {
1536
+ /**
1537
+ * Course Id
1538
+ * Format: uuid
1539
+ */
1540
+ course_id: string;
1541
+ /** Name */
1542
+ name: string;
1543
+ /**
1544
+ * Org Unit Id
1545
+ * @description Defaults to the context's unit
1546
+ */
1547
+ org_unit_id?: string | null;
1548
+ /**
1549
+ * Version Key
1550
+ * @description One of the template's versions; omit for a template without versions
1551
+ */
1552
+ version_key?: string | null;
1553
+ };
1554
+ /**
1555
+ * ProgramOut
1556
+ * @description A practice's offering: its name, and the program template it uses with which version.
1557
+ */
1558
+ ProgramOut: {
1559
+ course: components["schemas"]["CourseRef"];
1560
+ /**
1561
+ * Created At
1562
+ * Format: date-time
1563
+ */
1564
+ created_at: string;
1565
+ /** Current Version */
1566
+ current_version: string | null;
1567
+ /** Excluded Keys */
1568
+ excluded_keys: string[];
1569
+ /**
1570
+ * Id
1571
+ * Format: uuid
1572
+ */
1573
+ id: string;
1574
+ /** Level Labels */
1575
+ level_labels: {
1576
+ [key: string]: string;
1577
+ };
1578
+ /** Name */
1579
+ name: string;
1580
+ /**
1581
+ * Org Unit Id
1582
+ * Format: uuid
1583
+ */
1584
+ org_unit_id: string;
1585
+ /** Status */
1586
+ status: string;
1587
+ /** Switch Values */
1588
+ switch_values: {
1589
+ [key: string]: boolean;
1590
+ };
1591
+ /** Version Key */
1592
+ version_key: string | null;
1593
+ };
1594
+ /** ProgramUpdate */
1595
+ ProgramUpdate: {
1596
+ /**
1597
+ * Excluded Keys
1598
+ * @description Topics (or other items) this program leaves out
1599
+ */
1600
+ excluded_keys?: string[] | null;
1601
+ /** Name */
1602
+ name?: string | null;
1603
+ /** Status */
1604
+ status?: ("active" | "archived") | null;
1605
+ /** Version Key */
1606
+ version_key?: string | null;
1607
+ };
1608
+ /** Prompt */
1609
+ Prompt: {
1610
+ /**
1611
+ * Key
1612
+ * Format: uuid
1613
+ */
1614
+ key: string;
1615
+ /** Markdown */
1616
+ markdown: string;
1617
+ /**
1618
+ * Prompt Type
1619
+ * @enum {string}
1620
+ */
1621
+ prompt_type: "community" | "journal";
1622
+ tags?: components["schemas"]["Tags"] | null;
1623
+ /** Title */
1624
+ title: string;
1625
+ };
1626
+ /**
1627
+ * QuestionBlock
1628
+ * @description A question answered in place (design §5.8). Reserved: no January course uses it.
1629
+ */
1630
+ QuestionBlock: {
1631
+ /**
1632
+ * Correct
1633
+ * @description Makes it a quiz question
1634
+ */
1635
+ correct?: string[] | null;
1636
+ /** Explanation */
1637
+ explanation?: string | null;
1638
+ field: components["schemas"]["FormField"];
1639
+ /**
1640
+ * Key
1641
+ * Format: uuid
1642
+ */
1643
+ key: string;
1644
+ /**
1645
+ * Prefill Previous
1646
+ * @default true
1647
+ */
1648
+ prefill_previous: boolean;
1649
+ /** Prompt */
1650
+ prompt: string;
1651
+ /**
1652
+ * Required
1653
+ * @default false
1654
+ */
1655
+ required: boolean;
1656
+ tags?: components["schemas"]["Tags"] | null;
1657
+ /**
1658
+ * @description discriminator enum property added by openapi-typescript
1659
+ * @enum {string}
1660
+ */
1661
+ type: "question";
1662
+ /**
1663
+ * Visibility
1664
+ * @default private
1665
+ * @enum {string}
1666
+ */
1667
+ visibility: "private" | "care_team" | "community";
1668
+ };
753
1669
  /** ReadyResponse */
754
1670
  ReadyResponse: {
755
1671
  database: components["schemas"]["DependencyStatus"];
@@ -764,6 +1680,84 @@ export interface components {
764
1680
  /** Version */
765
1681
  version: string;
766
1682
  };
1683
+ /** Resource */
1684
+ Resource: {
1685
+ /** Category */
1686
+ category?: string | null;
1687
+ /** Handout Key */
1688
+ handout_key?: string | null;
1689
+ /**
1690
+ * Key
1691
+ * Format: uuid
1692
+ */
1693
+ key: string;
1694
+ /**
1695
+ * Languages
1696
+ * @description Only in these languages
1697
+ */
1698
+ languages?: string[] | null;
1699
+ media?: components["schemas"]["MediaRef"] | null;
1700
+ tags?: components["schemas"]["Tags"] | null;
1701
+ /** Title */
1702
+ title: string;
1703
+ };
1704
+ /**
1705
+ * ResourceBlock
1706
+ * @description Something opened, played or downloaded: audio, video, PDF or Word file, link.
1707
+ */
1708
+ ResourceBlock: {
1709
+ /**
1710
+ * Key
1711
+ * Format: uuid
1712
+ */
1713
+ key: string;
1714
+ /**
1715
+ * Label
1716
+ * @description Shown kind, e.g. "Video", "Handout (PDF)"
1717
+ */
1718
+ label?: string | null;
1719
+ media: components["schemas"]["MediaRef"];
1720
+ tags?: components["schemas"]["Tags"] | null;
1721
+ /** Title */
1722
+ title: string;
1723
+ /**
1724
+ * @description discriminator enum property added by openapi-typescript
1725
+ * @enum {string}
1726
+ */
1727
+ type: "resource";
1728
+ };
1729
+ /** RevisionOut */
1730
+ RevisionOut: {
1731
+ /** Change Note */
1732
+ change_note: string | null;
1733
+ /**
1734
+ * Id
1735
+ * Format: uuid
1736
+ */
1737
+ id: string;
1738
+ /** Language */
1739
+ language: string;
1740
+ /** Number */
1741
+ number: number;
1742
+ /**
1743
+ * Published At
1744
+ * Format: date-time
1745
+ */
1746
+ published_at: string;
1747
+ /** Published By */
1748
+ published_by: string;
1749
+ /** Source */
1750
+ source: string;
1751
+ /**
1752
+ * Status
1753
+ * @enum {string}
1754
+ */
1755
+ status: "published" | "pending";
1756
+ /** Structure Number */
1757
+ structure_number: number;
1758
+ /** Version */
1759
+ version: string;
1760
+ };
767
1761
  /** RoleOut */
768
1762
  RoleOut: {
769
1763
  /** Code */
@@ -782,6 +1776,19 @@ export interface components {
782
1776
  /** Permissions */
783
1777
  permissions: string[];
784
1778
  };
1779
+ /** Section */
1780
+ Section: {
1781
+ /** Blocks */
1782
+ blocks?: (components["schemas"]["TextBlock"] | components["schemas"]["CalloutBlock"] | components["schemas"]["ImageBlock"] | components["schemas"]["ResourceBlock"] | components["schemas"]["HandoutLinkBlock"] | components["schemas"]["LayoutBlock"] | components["schemas"]["QuestionBlock"] | components["schemas"]["VariantsBlock"])[];
1783
+ /**
1784
+ * Key
1785
+ * Format: uuid
1786
+ */
1787
+ key: string;
1788
+ tags?: components["schemas"]["Tags"] | null;
1789
+ /** Title */
1790
+ title: string;
1791
+ };
785
1792
  /** ServiceInfo */
786
1793
  ServiceInfo: {
787
1794
  /** Environment */
@@ -834,6 +1841,105 @@ export interface components {
834
1841
  /** Value */
835
1842
  value: unknown;
836
1843
  };
1844
+ /** StructureOut */
1845
+ StructureOut: {
1846
+ /** Approved At */
1847
+ approved_at: string | null;
1848
+ /** Frozen At */
1849
+ frozen_at: string | null;
1850
+ /** Number */
1851
+ number: number;
1852
+ /** Status */
1853
+ status: string;
1854
+ };
1855
+ /** Switch */
1856
+ Switch: {
1857
+ /** Key */
1858
+ key: string;
1859
+ /** Label */
1860
+ label: string;
1861
+ /**
1862
+ * Tag
1863
+ * @description Word tag, e.g. "COMMUNITY"
1864
+ */
1865
+ tag: string;
1866
+ };
1867
+ /** SwitchOut */
1868
+ SwitchOut: {
1869
+ /** Key */
1870
+ key: string;
1871
+ /** Label */
1872
+ label: string;
1873
+ };
1874
+ /**
1875
+ * Tags
1876
+ * @description Who sees a block or item: listed versions, or a condition on switches (never both).
1877
+ *
1878
+ * A version tag means "the switch values of any listed version"; untagged means everyone.
1879
+ */
1880
+ Tags: {
1881
+ /** Versions */
1882
+ versions?: string[] | null;
1883
+ /** When */
1884
+ when?: {
1885
+ [key: string]: boolean;
1886
+ } | null;
1887
+ };
1888
+ /** Target */
1889
+ Target: {
1890
+ /** Count */
1891
+ count: number;
1892
+ /**
1893
+ * Per
1894
+ * @enum {string}
1895
+ */
1896
+ per: "day" | "week" | "module" | "total";
1897
+ };
1898
+ /** TextBlock */
1899
+ TextBlock: {
1900
+ /**
1901
+ * Html
1902
+ * @description Sanitized HTML, filled in by read endpoints
1903
+ */
1904
+ html?: string | null;
1905
+ /**
1906
+ * Key
1907
+ * Format: uuid
1908
+ */
1909
+ key: string;
1910
+ /** Markdown */
1911
+ markdown: string;
1912
+ tags?: components["schemas"]["Tags"] | null;
1913
+ /**
1914
+ * @description discriminator enum property added by openapi-typescript
1915
+ * @enum {string}
1916
+ */
1917
+ type: "text";
1918
+ };
1919
+ /** Topic */
1920
+ Topic: {
1921
+ /** Blocks */
1922
+ blocks?: (components["schemas"]["TextBlock"] | components["schemas"]["CalloutBlock"] | components["schemas"]["ImageBlock"] | components["schemas"]["ResourceBlock"] | components["schemas"]["HandoutLinkBlock"] | components["schemas"]["LayoutBlock"] | components["schemas"]["QuestionBlock"] | components["schemas"]["VariantsBlock"])[];
1923
+ /** Estimated Minutes */
1924
+ estimated_minutes?: number | null;
1925
+ /**
1926
+ * Key
1927
+ * Format: uuid
1928
+ */
1929
+ key: string;
1930
+ /**
1931
+ * Required
1932
+ * @description None = follow the program's pre-work rule
1933
+ */
1934
+ required?: boolean | null;
1935
+ /** Sections */
1936
+ sections?: components["schemas"]["Section"][];
1937
+ /** Staff Notes */
1938
+ staff_notes?: string | null;
1939
+ tags?: components["schemas"]["Tags"] | null;
1940
+ /** Title */
1941
+ title: string;
1942
+ };
837
1943
  /** ValidationError */
838
1944
  ValidationError: {
839
1945
  /** Context */
@@ -847,6 +1953,58 @@ export interface components {
847
1953
  /** Error Type */
848
1954
  type: string;
849
1955
  };
1956
+ /** Variant */
1957
+ Variant: {
1958
+ /** Block */
1959
+ block: components["schemas"]["TextBlock"] | components["schemas"]["CalloutBlock"] | components["schemas"]["ImageBlock"] | components["schemas"]["ResourceBlock"] | components["schemas"]["HandoutLinkBlock"] | components["schemas"]["LayoutBlock"] | components["schemas"]["QuestionBlock"];
1960
+ tags: components["schemas"]["Tags"];
1961
+ };
1962
+ /**
1963
+ * VariantsBlock
1964
+ * @description One place in the page with a copy per version (tabs in the builder).
1965
+ */
1966
+ VariantsBlock: {
1967
+ /**
1968
+ * Key
1969
+ * Format: uuid
1970
+ */
1971
+ key: string;
1972
+ tags?: components["schemas"]["Tags"] | null;
1973
+ /**
1974
+ * @description discriminator enum property added by openapi-typescript
1975
+ * @enum {string}
1976
+ */
1977
+ type: "variants";
1978
+ /** Variants */
1979
+ variants: components["schemas"]["Variant"][];
1980
+ };
1981
+ /**
1982
+ * Version
1983
+ * @description A named set of switch values, e.g. OWL "Groups" = group visits on, Community on.
1984
+ */
1985
+ Version: {
1986
+ /** Key */
1987
+ key: string;
1988
+ /** Label */
1989
+ label: string;
1990
+ /** Switch Values */
1991
+ switch_values: {
1992
+ [key: string]: boolean;
1993
+ };
1994
+ /** Tag */
1995
+ tag: string;
1996
+ };
1997
+ /** VersionOut */
1998
+ VersionOut: {
1999
+ /** Key */
2000
+ key: string;
2001
+ /** Label */
2002
+ label: string;
2003
+ /** Switch Values */
2004
+ switch_values: {
2005
+ [key: string]: boolean;
2006
+ };
2007
+ };
850
2008
  };
851
2009
  responses: never;
852
2010
  parameters: never;
@@ -871,16 +2029,380 @@ export interface operations {
871
2029
  [name: string]: unknown;
872
2030
  };
873
2031
  content: {
874
- "application/json": components["schemas"]["ServiceInfo"];
2032
+ "application/json": components["schemas"]["ServiceInfo"];
2033
+ };
2034
+ };
2035
+ };
2036
+ };
2037
+ live_health_live_get: {
2038
+ parameters: {
2039
+ query?: never;
2040
+ header?: never;
2041
+ path?: never;
2042
+ cookie?: never;
2043
+ };
2044
+ requestBody?: never;
2045
+ responses: {
2046
+ /** @description Successful Response */
2047
+ 200: {
2048
+ headers: {
2049
+ [name: string]: unknown;
2050
+ };
2051
+ content: {
2052
+ "application/json": components["schemas"]["LiveResponse"];
2053
+ };
2054
+ };
2055
+ };
2056
+ };
2057
+ ready_health_ready_get: {
2058
+ parameters: {
2059
+ query?: never;
2060
+ header?: never;
2061
+ path?: never;
2062
+ cookie?: never;
2063
+ };
2064
+ requestBody?: never;
2065
+ responses: {
2066
+ /** @description Successful Response */
2067
+ 200: {
2068
+ headers: {
2069
+ [name: string]: unknown;
2070
+ };
2071
+ content: {
2072
+ "application/json": components["schemas"]["ReadyResponse"];
2073
+ };
2074
+ };
2075
+ /** @description Database unavailable */
2076
+ 503: {
2077
+ headers: {
2078
+ [name: string]: unknown;
2079
+ };
2080
+ content: {
2081
+ "application/json": components["schemas"]["ReadyResponse"];
2082
+ };
2083
+ };
2084
+ };
2085
+ };
2086
+ me_me_get: {
2087
+ parameters: {
2088
+ query?: never;
2089
+ header?: never;
2090
+ path?: never;
2091
+ cookie?: never;
2092
+ };
2093
+ requestBody?: never;
2094
+ responses: {
2095
+ /** @description Successful Response */
2096
+ 200: {
2097
+ headers: {
2098
+ [name: string]: unknown;
2099
+ };
2100
+ content: {
2101
+ "application/json": components["schemas"]["Principal"];
2102
+ };
2103
+ };
2104
+ };
2105
+ };
2106
+ list_audit_events_v1_audit_events_get: {
2107
+ parameters: {
2108
+ query?: {
2109
+ before_id?: number | null;
2110
+ limit?: number;
2111
+ action?: string | null;
2112
+ };
2113
+ header?: {
2114
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2115
+ "X-Guidistry-Context"?: string | null;
2116
+ };
2117
+ path?: never;
2118
+ cookie?: never;
2119
+ };
2120
+ requestBody?: never;
2121
+ responses: {
2122
+ /** @description Successful Response */
2123
+ 200: {
2124
+ headers: {
2125
+ [name: string]: unknown;
2126
+ };
2127
+ content: {
2128
+ "application/json": components["schemas"]["AuditEventOut"][];
2129
+ };
2130
+ };
2131
+ /** @description Validation Error */
2132
+ 422: {
2133
+ headers: {
2134
+ [name: string]: unknown;
2135
+ };
2136
+ content: {
2137
+ "application/json": components["schemas"]["HTTPValidationError"];
2138
+ };
2139
+ };
2140
+ };
2141
+ };
2142
+ auth_start_v1_auth_start_post: {
2143
+ parameters: {
2144
+ query?: never;
2145
+ header?: never;
2146
+ path?: never;
2147
+ cookie?: never;
2148
+ };
2149
+ requestBody: {
2150
+ content: {
2151
+ "application/json": components["schemas"]["AuthStartIn"];
2152
+ };
2153
+ };
2154
+ responses: {
2155
+ /** @description Successful Response */
2156
+ 200: {
2157
+ headers: {
2158
+ [name: string]: unknown;
2159
+ };
2160
+ content: {
2161
+ "application/json": components["schemas"]["AuthStartOut"];
2162
+ };
2163
+ };
2164
+ /** @description Validation Error */
2165
+ 422: {
2166
+ headers: {
2167
+ [name: string]: unknown;
2168
+ };
2169
+ content: {
2170
+ "application/json": components["schemas"]["HTTPValidationError"];
2171
+ };
2172
+ };
2173
+ };
2174
+ };
2175
+ list_courses_v1_courses_get: {
2176
+ parameters: {
2177
+ query?: {
2178
+ include_archived?: boolean;
2179
+ };
2180
+ header?: {
2181
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2182
+ "X-Guidistry-Context"?: string | null;
2183
+ };
2184
+ path?: never;
2185
+ cookie?: never;
2186
+ };
2187
+ requestBody?: never;
2188
+ responses: {
2189
+ /** @description Successful Response */
2190
+ 200: {
2191
+ headers: {
2192
+ [name: string]: unknown;
2193
+ };
2194
+ content: {
2195
+ "application/json": components["schemas"]["CourseOut"][];
2196
+ };
2197
+ };
2198
+ /** @description Validation Error */
2199
+ 422: {
2200
+ headers: {
2201
+ [name: string]: unknown;
2202
+ };
2203
+ content: {
2204
+ "application/json": components["schemas"]["HTTPValidationError"];
2205
+ };
2206
+ };
2207
+ };
2208
+ };
2209
+ get_course_v1_courses__course_id__get: {
2210
+ parameters: {
2211
+ query?: never;
2212
+ header?: {
2213
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2214
+ "X-Guidistry-Context"?: string | null;
2215
+ };
2216
+ path: {
2217
+ course_id: string;
2218
+ };
2219
+ cookie?: never;
2220
+ };
2221
+ requestBody?: never;
2222
+ responses: {
2223
+ /** @description Successful Response */
2224
+ 200: {
2225
+ headers: {
2226
+ [name: string]: unknown;
2227
+ };
2228
+ content: {
2229
+ "application/json": components["schemas"]["CourseOut"];
2230
+ };
2231
+ };
2232
+ /** @description Validation Error */
2233
+ 422: {
2234
+ headers: {
2235
+ [name: string]: unknown;
2236
+ };
2237
+ content: {
2238
+ "application/json": components["schemas"]["HTTPValidationError"];
2239
+ };
2240
+ };
2241
+ };
2242
+ };
2243
+ get_course_content_v1_courses__course_id__content_get: {
2244
+ parameters: {
2245
+ query?: {
2246
+ /** @description Version key (required when the template has versions) */
2247
+ version?: string | null;
2248
+ language?: string | null;
2249
+ /** @description participant: what a participant sees; staff: plus staff notes; author: every version with its tags (needs edit permission) */
2250
+ view?: "participant" | "staff" | "author";
2251
+ /** @description A revision number of the current structure */
2252
+ revision?: number | null;
2253
+ };
2254
+ header?: {
2255
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2256
+ "X-Guidistry-Context"?: string | null;
2257
+ };
2258
+ path: {
2259
+ course_id: string;
2260
+ };
2261
+ cookie?: never;
2262
+ };
2263
+ requestBody?: never;
2264
+ responses: {
2265
+ /** @description Successful Response */
2266
+ 200: {
2267
+ headers: {
2268
+ [name: string]: unknown;
2269
+ };
2270
+ content: {
2271
+ "application/json": components["schemas"]["CourseContent"];
2272
+ };
2273
+ };
2274
+ /** @description Validation Error */
2275
+ 422: {
2276
+ headers: {
2277
+ [name: string]: unknown;
2278
+ };
2279
+ content: {
2280
+ "application/json": components["schemas"]["HTTPValidationError"];
2281
+ };
2282
+ };
2283
+ };
2284
+ };
2285
+ list_grants_v1_courses__course_id__grants_get: {
2286
+ parameters: {
2287
+ query?: {
2288
+ include_revoked?: boolean;
2289
+ };
2290
+ header?: {
2291
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2292
+ "X-Guidistry-Context"?: string | null;
2293
+ };
2294
+ path: {
2295
+ course_id: string;
2296
+ };
2297
+ cookie?: never;
2298
+ };
2299
+ requestBody?: never;
2300
+ responses: {
2301
+ /** @description Successful Response */
2302
+ 200: {
2303
+ headers: {
2304
+ [name: string]: unknown;
2305
+ };
2306
+ content: {
2307
+ "application/json": components["schemas"]["GrantOut"][];
2308
+ };
2309
+ };
2310
+ /** @description Validation Error */
2311
+ 422: {
2312
+ headers: {
2313
+ [name: string]: unknown;
2314
+ };
2315
+ content: {
2316
+ "application/json": components["schemas"]["HTTPValidationError"];
2317
+ };
2318
+ };
2319
+ };
2320
+ };
2321
+ create_grant_v1_courses__course_id__grants_post: {
2322
+ parameters: {
2323
+ query?: never;
2324
+ header?: {
2325
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2326
+ "X-Guidistry-Context"?: string | null;
2327
+ };
2328
+ path: {
2329
+ course_id: string;
2330
+ };
2331
+ cookie?: never;
2332
+ };
2333
+ requestBody: {
2334
+ content: {
2335
+ "application/json": components["schemas"]["GrantCreate"];
2336
+ };
2337
+ };
2338
+ responses: {
2339
+ /** @description Successful Response */
2340
+ 201: {
2341
+ headers: {
2342
+ [name: string]: unknown;
2343
+ };
2344
+ content: {
2345
+ "application/json": components["schemas"]["GrantOut"];
2346
+ };
2347
+ };
2348
+ /** @description Validation Error */
2349
+ 422: {
2350
+ headers: {
2351
+ [name: string]: unknown;
2352
+ };
2353
+ content: {
2354
+ "application/json": components["schemas"]["HTTPValidationError"];
2355
+ };
2356
+ };
2357
+ };
2358
+ };
2359
+ list_items_v1_courses__course_id__items_get: {
2360
+ parameters: {
2361
+ query?: {
2362
+ /** @description e.g. topic, practice */
2363
+ kind?: string | null;
2364
+ };
2365
+ header?: {
2366
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2367
+ "X-Guidistry-Context"?: string | null;
2368
+ };
2369
+ path: {
2370
+ course_id: string;
2371
+ };
2372
+ cookie?: never;
2373
+ };
2374
+ requestBody?: never;
2375
+ responses: {
2376
+ /** @description Successful Response */
2377
+ 200: {
2378
+ headers: {
2379
+ [name: string]: unknown;
2380
+ };
2381
+ content: {
2382
+ "application/json": components["schemas"]["CourseItemOut"][];
2383
+ };
2384
+ };
2385
+ /** @description Validation Error */
2386
+ 422: {
2387
+ headers: {
2388
+ [name: string]: unknown;
2389
+ };
2390
+ content: {
2391
+ "application/json": components["schemas"]["HTTPValidationError"];
875
2392
  };
876
2393
  };
877
2394
  };
878
2395
  };
879
- live_health_live_get: {
2396
+ list_revisions_v1_courses__course_id__revisions_get: {
880
2397
  parameters: {
881
2398
  query?: never;
882
- header?: never;
883
- path?: never;
2399
+ header?: {
2400
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2401
+ "X-Guidistry-Context"?: string | null;
2402
+ };
2403
+ path: {
2404
+ course_id: string;
2405
+ };
884
2406
  cookie?: never;
885
2407
  };
886
2408
  requestBody?: never;
@@ -891,16 +2413,30 @@ export interface operations {
891
2413
  [name: string]: unknown;
892
2414
  };
893
2415
  content: {
894
- "application/json": components["schemas"]["LiveResponse"];
2416
+ "application/json": components["schemas"]["RevisionOut"][];
2417
+ };
2418
+ };
2419
+ /** @description Validation Error */
2420
+ 422: {
2421
+ headers: {
2422
+ [name: string]: unknown;
2423
+ };
2424
+ content: {
2425
+ "application/json": components["schemas"]["HTTPValidationError"];
895
2426
  };
896
2427
  };
897
2428
  };
898
2429
  };
899
- ready_health_ready_get: {
2430
+ list_structures_v1_courses__course_id__structures_get: {
900
2431
  parameters: {
901
2432
  query?: never;
902
- header?: never;
903
- path?: never;
2433
+ header?: {
2434
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2435
+ "X-Guidistry-Context"?: string | null;
2436
+ };
2437
+ path: {
2438
+ course_id: string;
2439
+ };
904
2440
  cookie?: never;
905
2441
  };
906
2442
  requestBody?: never;
@@ -911,25 +2447,31 @@ export interface operations {
911
2447
  [name: string]: unknown;
912
2448
  };
913
2449
  content: {
914
- "application/json": components["schemas"]["ReadyResponse"];
2450
+ "application/json": components["schemas"]["StructureOut"][];
915
2451
  };
916
2452
  };
917
- /** @description Database unavailable */
918
- 503: {
2453
+ /** @description Validation Error */
2454
+ 422: {
919
2455
  headers: {
920
2456
  [name: string]: unknown;
921
2457
  };
922
2458
  content: {
923
- "application/json": components["schemas"]["ReadyResponse"];
2459
+ "application/json": components["schemas"]["HTTPValidationError"];
924
2460
  };
925
2461
  };
926
2462
  };
927
2463
  };
928
- me_me_get: {
2464
+ approve_structure_v1_courses__course_id__structures__number__approve_post: {
929
2465
  parameters: {
930
2466
  query?: never;
931
- header?: never;
932
- path?: never;
2467
+ header?: {
2468
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2469
+ "X-Guidistry-Context"?: string | null;
2470
+ };
2471
+ path: {
2472
+ course_id: string;
2473
+ number: number;
2474
+ };
933
2475
  cookie?: never;
934
2476
  };
935
2477
  requestBody?: never;
@@ -940,23 +2482,32 @@ export interface operations {
940
2482
  [name: string]: unknown;
941
2483
  };
942
2484
  content: {
943
- "application/json": components["schemas"]["Principal"];
2485
+ "application/json": components["schemas"]["CourseOut"];
2486
+ };
2487
+ };
2488
+ /** @description Validation Error */
2489
+ 422: {
2490
+ headers: {
2491
+ [name: string]: unknown;
2492
+ };
2493
+ content: {
2494
+ "application/json": components["schemas"]["HTTPValidationError"];
944
2495
  };
945
2496
  };
946
2497
  };
947
2498
  };
948
- list_audit_events_v1_audit_events_get: {
2499
+ list_syncs_v1_courses__course_id__syncs_get: {
949
2500
  parameters: {
950
2501
  query?: {
951
- before_id?: number | null;
952
2502
  limit?: number;
953
- action?: string | null;
954
2503
  };
955
2504
  header?: {
956
2505
  /** @description Membership the caller is acting through (from GET /v1/me) */
957
2506
  "X-Guidistry-Context"?: string | null;
958
2507
  };
959
- path?: never;
2508
+ path: {
2509
+ course_id: string;
2510
+ };
960
2511
  cookie?: never;
961
2512
  };
962
2513
  requestBody?: never;
@@ -967,7 +2518,7 @@ export interface operations {
967
2518
  [name: string]: unknown;
968
2519
  };
969
2520
  content: {
970
- "application/json": components["schemas"]["AuditEventOut"][];
2521
+ "application/json": components["schemas"]["CourseSyncOut"][];
971
2522
  };
972
2523
  };
973
2524
  /** @description Validation Error */
@@ -981,27 +2532,26 @@ export interface operations {
981
2532
  };
982
2533
  };
983
2534
  };
984
- auth_start_v1_auth_start_post: {
2535
+ revoke_grant_v1_grants__grant_id__delete: {
985
2536
  parameters: {
986
2537
  query?: never;
987
- header?: never;
988
- path?: never;
989
- cookie?: never;
990
- };
991
- requestBody: {
992
- content: {
993
- "application/json": components["schemas"]["AuthStartIn"];
2538
+ header?: {
2539
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2540
+ "X-Guidistry-Context"?: string | null;
994
2541
  };
2542
+ path: {
2543
+ grant_id: string;
2544
+ };
2545
+ cookie?: never;
995
2546
  };
2547
+ requestBody?: never;
996
2548
  responses: {
997
2549
  /** @description Successful Response */
998
- 200: {
2550
+ 204: {
999
2551
  headers: {
1000
2552
  [name: string]: unknown;
1001
2553
  };
1002
- content: {
1003
- "application/json": components["schemas"]["AuthStartOut"];
1004
- };
2554
+ content?: never;
1005
2555
  };
1006
2556
  /** @description Validation Error */
1007
2557
  422: {
@@ -1534,6 +3084,185 @@ export interface operations {
1534
3084
  };
1535
3085
  };
1536
3086
  };
3087
+ list_programs_v1_programs_get: {
3088
+ parameters: {
3089
+ query?: {
3090
+ include_archived?: boolean;
3091
+ };
3092
+ header?: {
3093
+ /** @description Membership the caller is acting through (from GET /v1/me) */
3094
+ "X-Guidistry-Context"?: string | null;
3095
+ };
3096
+ path?: never;
3097
+ cookie?: never;
3098
+ };
3099
+ requestBody?: never;
3100
+ responses: {
3101
+ /** @description Successful Response */
3102
+ 200: {
3103
+ headers: {
3104
+ [name: string]: unknown;
3105
+ };
3106
+ content: {
3107
+ "application/json": components["schemas"]["ProgramOut"][];
3108
+ };
3109
+ };
3110
+ /** @description Validation Error */
3111
+ 422: {
3112
+ headers: {
3113
+ [name: string]: unknown;
3114
+ };
3115
+ content: {
3116
+ "application/json": components["schemas"]["HTTPValidationError"];
3117
+ };
3118
+ };
3119
+ };
3120
+ };
3121
+ create_program_v1_programs_post: {
3122
+ parameters: {
3123
+ query?: never;
3124
+ header?: {
3125
+ /** @description Membership the caller is acting through (from GET /v1/me) */
3126
+ "X-Guidistry-Context"?: string | null;
3127
+ };
3128
+ path?: never;
3129
+ cookie?: never;
3130
+ };
3131
+ requestBody: {
3132
+ content: {
3133
+ "application/json": components["schemas"]["ProgramCreate"];
3134
+ };
3135
+ };
3136
+ responses: {
3137
+ /** @description Successful Response */
3138
+ 201: {
3139
+ headers: {
3140
+ [name: string]: unknown;
3141
+ };
3142
+ content: {
3143
+ "application/json": components["schemas"]["ProgramOut"];
3144
+ };
3145
+ };
3146
+ /** @description Validation Error */
3147
+ 422: {
3148
+ headers: {
3149
+ [name: string]: unknown;
3150
+ };
3151
+ content: {
3152
+ "application/json": components["schemas"]["HTTPValidationError"];
3153
+ };
3154
+ };
3155
+ };
3156
+ };
3157
+ get_program_v1_programs__program_id__get: {
3158
+ parameters: {
3159
+ query?: never;
3160
+ header?: {
3161
+ /** @description Membership the caller is acting through (from GET /v1/me) */
3162
+ "X-Guidistry-Context"?: string | null;
3163
+ };
3164
+ path: {
3165
+ program_id: string;
3166
+ };
3167
+ cookie?: never;
3168
+ };
3169
+ requestBody?: never;
3170
+ responses: {
3171
+ /** @description Successful Response */
3172
+ 200: {
3173
+ headers: {
3174
+ [name: string]: unknown;
3175
+ };
3176
+ content: {
3177
+ "application/json": components["schemas"]["ProgramOut"];
3178
+ };
3179
+ };
3180
+ /** @description Validation Error */
3181
+ 422: {
3182
+ headers: {
3183
+ [name: string]: unknown;
3184
+ };
3185
+ content: {
3186
+ "application/json": components["schemas"]["HTTPValidationError"];
3187
+ };
3188
+ };
3189
+ };
3190
+ };
3191
+ update_program_v1_programs__program_id__patch: {
3192
+ parameters: {
3193
+ query?: never;
3194
+ header?: {
3195
+ /** @description Membership the caller is acting through (from GET /v1/me) */
3196
+ "X-Guidistry-Context"?: string | null;
3197
+ };
3198
+ path: {
3199
+ program_id: string;
3200
+ };
3201
+ cookie?: never;
3202
+ };
3203
+ requestBody: {
3204
+ content: {
3205
+ "application/json": components["schemas"]["ProgramUpdate"];
3206
+ };
3207
+ };
3208
+ responses: {
3209
+ /** @description Successful Response */
3210
+ 200: {
3211
+ headers: {
3212
+ [name: string]: unknown;
3213
+ };
3214
+ content: {
3215
+ "application/json": components["schemas"]["ProgramOut"];
3216
+ };
3217
+ };
3218
+ /** @description Validation Error */
3219
+ 422: {
3220
+ headers: {
3221
+ [name: string]: unknown;
3222
+ };
3223
+ content: {
3224
+ "application/json": components["schemas"]["HTTPValidationError"];
3225
+ };
3226
+ };
3227
+ };
3228
+ };
3229
+ get_program_content_v1_programs__program_id__content_get: {
3230
+ parameters: {
3231
+ query?: {
3232
+ view?: "participant" | "staff";
3233
+ language?: string | null;
3234
+ };
3235
+ header?: {
3236
+ /** @description Membership the caller is acting through (from GET /v1/me) */
3237
+ "X-Guidistry-Context"?: string | null;
3238
+ };
3239
+ path: {
3240
+ program_id: string;
3241
+ };
3242
+ cookie?: never;
3243
+ };
3244
+ requestBody?: never;
3245
+ responses: {
3246
+ /** @description Successful Response */
3247
+ 200: {
3248
+ headers: {
3249
+ [name: string]: unknown;
3250
+ };
3251
+ content: {
3252
+ "application/json": components["schemas"]["CourseContent"];
3253
+ };
3254
+ };
3255
+ /** @description Validation Error */
3256
+ 422: {
3257
+ headers: {
3258
+ [name: string]: unknown;
3259
+ };
3260
+ content: {
3261
+ "application/json": components["schemas"]["HTTPValidationError"];
3262
+ };
3263
+ };
3264
+ };
3265
+ };
1537
3266
  list_roles_v1_roles_get: {
1538
3267
  parameters: {
1539
3268
  query?: never;