@brightoutcome/guidistry-client 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/schema.d.ts +1170 -125
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1414,6 +1414,27 @@ export interface paths {
1414
1414
  patch?: never;
1415
1415
  trace?: never;
1416
1416
  };
1417
+ "/v1/instruments/{code}/phone-ready": {
1418
+ parameters: {
1419
+ query?: never;
1420
+ header?: never;
1421
+ path?: never;
1422
+ cookie?: never;
1423
+ };
1424
+ get?: never;
1425
+ put?: never;
1426
+ /**
1427
+ * Turn automated calls off (or back on) for a questionnaire (BrightOutcome admins)
1428
+ * @description Applies everywhere: instruments are shared across practices. Questionnaires with a
1429
+ * required text question are never phone-ready whatever is set here.
1430
+ */
1431
+ post: operations["set_phone_ready_v1_instruments__code__phone_ready_post"];
1432
+ delete?: never;
1433
+ options?: never;
1434
+ head?: never;
1435
+ patch?: never;
1436
+ trace?: never;
1437
+ };
1417
1438
  "/v1/invitations": {
1418
1439
  parameters: {
1419
1440
  query?: never;
@@ -1589,6 +1610,45 @@ export interface paths {
1589
1610
  patch?: never;
1590
1611
  trace?: never;
1591
1612
  };
1613
+ "/v1/me/contact-consent": {
1614
+ parameters: {
1615
+ query?: never;
1616
+ header?: never;
1617
+ path?: never;
1618
+ cookie?: never;
1619
+ };
1620
+ /** My text and call choices */
1621
+ get: operations["get_my_consent_v1_me_contact_consent_get"];
1622
+ /**
1623
+ * Agree to (or stop) texts and automated calls from my care team
1624
+ * @description From the joining step send ``method = joining`` (Niina N3); otherwise ``portal``.
1625
+ */
1626
+ put: operations["put_my_consent_v1_me_contact_consent_put"];
1627
+ post?: never;
1628
+ delete?: never;
1629
+ options?: never;
1630
+ head?: never;
1631
+ patch?: never;
1632
+ trace?: never;
1633
+ };
1634
+ "/v1/me/contact-preferences": {
1635
+ parameters: {
1636
+ query?: never;
1637
+ header?: never;
1638
+ path?: never;
1639
+ cookie?: never;
1640
+ };
1641
+ /** My quiet hours */
1642
+ get: operations["get_my_prefs_v1_me_contact_preferences_get"];
1643
+ /** Set my quiet hours */
1644
+ put: operations["put_my_prefs_v1_me_contact_preferences_put"];
1645
+ post?: never;
1646
+ delete?: never;
1647
+ options?: never;
1648
+ head?: never;
1649
+ patch?: never;
1650
+ trace?: never;
1651
+ };
1592
1652
  "/v1/me/enrollments": {
1593
1653
  parameters: {
1594
1654
  query?: never;
@@ -1610,6 +1670,44 @@ export interface paths {
1610
1670
  patch?: never;
1611
1671
  trace?: never;
1612
1672
  };
1673
+ "/v1/me/questionnaire-requests/{request_id}": {
1674
+ parameters: {
1675
+ query?: never;
1676
+ header?: never;
1677
+ path?: never;
1678
+ cookie?: never;
1679
+ };
1680
+ /**
1681
+ * Open a request from my care team outside a program (sign-in prompt)
1682
+ * @description Enrolled programs' prompts are answered through the enrollment; this is for prompts
1683
+ * whose ``enrollment_id`` is null.
1684
+ */
1685
+ get: operations["open_my_request_v1_me_questionnaire_requests__request_id__get"];
1686
+ put?: never;
1687
+ post?: never;
1688
+ delete?: never;
1689
+ options?: never;
1690
+ head?: never;
1691
+ patch?: never;
1692
+ trace?: never;
1693
+ };
1694
+ "/v1/me/questionnaire-requests/{request_id}/responses": {
1695
+ parameters: {
1696
+ query?: never;
1697
+ header?: never;
1698
+ path?: never;
1699
+ cookie?: never;
1700
+ };
1701
+ get?: never;
1702
+ put?: never;
1703
+ /** Answer one questionnaire of a request outside a program */
1704
+ post: operations["answer_my_request_v1_me_questionnaire_requests__request_id__responses_post"];
1705
+ delete?: never;
1706
+ options?: never;
1707
+ head?: never;
1708
+ patch?: never;
1709
+ trace?: never;
1710
+ };
1613
1711
  "/v1/memberships/{membership_id}": {
1614
1712
  parameters: {
1615
1713
  query?: never;
@@ -1766,6 +1864,42 @@ export interface paths {
1766
1864
  patch?: never;
1767
1865
  trace?: never;
1768
1866
  };
1867
+ "/v1/patients/{patient_id}/contact-consent": {
1868
+ parameters: {
1869
+ query?: never;
1870
+ header?: never;
1871
+ path?: never;
1872
+ cookie?: never;
1873
+ };
1874
+ /** Has the patient agreed to texts and to automated calls? */
1875
+ get: operations["get_consent_v1_patients__patient_id__contact_consent_get"];
1876
+ /** Record the patient's agreement (verbal or written) or its withdrawal */
1877
+ put: operations["put_consent_v1_patients__patient_id__contact_consent_put"];
1878
+ post?: never;
1879
+ delete?: never;
1880
+ options?: never;
1881
+ head?: never;
1882
+ patch?: never;
1883
+ trace?: never;
1884
+ };
1885
+ "/v1/patients/{patient_id}/contact-preferences": {
1886
+ parameters: {
1887
+ query?: never;
1888
+ header?: never;
1889
+ path?: never;
1890
+ cookie?: never;
1891
+ };
1892
+ /** The patient's time zone and quiet hours (no texts or calls then) */
1893
+ get: operations["get_prefs_v1_patients__patient_id__contact_preferences_get"];
1894
+ /** Set the patient's time zone and quiet hours */
1895
+ put: operations["put_prefs_v1_patients__patient_id__contact_preferences_put"];
1896
+ post?: never;
1897
+ delete?: never;
1898
+ options?: never;
1899
+ head?: never;
1900
+ patch?: never;
1901
+ trace?: never;
1902
+ };
1769
1903
  "/v1/patients/{patient_id}/current-note": {
1770
1904
  parameters: {
1771
1905
  query?: never;
@@ -1804,6 +1938,52 @@ export interface paths {
1804
1938
  patch?: never;
1805
1939
  trace?: never;
1806
1940
  };
1941
+ "/v1/patients/{patient_id}/questionnaire-repeats": {
1942
+ parameters: {
1943
+ query?: never;
1944
+ header?: never;
1945
+ path?: never;
1946
+ cookie?: never;
1947
+ };
1948
+ /** This patient's repeats, active first */
1949
+ get: operations["list_repeats_v1_patients__patient_id__questionnaire_repeats_get"];
1950
+ put?: never;
1951
+ /**
1952
+ * Ask a patient on repeat: every N days, N times or until a date
1953
+ * @description The first one goes out on ``starts_on`` (default today, at once). The repeat ends
1954
+ * by itself when it's done, or when the patient joins a cohort that asks the same
1955
+ * questionnaire (``ended_by_enrollment``).
1956
+ */
1957
+ post: operations["create_repeat_v1_patients__patient_id__questionnaire_repeats_post"];
1958
+ delete?: never;
1959
+ options?: never;
1960
+ head?: never;
1961
+ patch?: never;
1962
+ trace?: never;
1963
+ };
1964
+ "/v1/patients/{patient_id}/questionnaire-requests": {
1965
+ parameters: {
1966
+ query?: never;
1967
+ header?: never;
1968
+ path?: never;
1969
+ cookie?: never;
1970
+ };
1971
+ /** Every request sent to this patient (in cohorts you see and outside), newest first */
1972
+ get: operations["list_patient_requests_v1_patients__patient_id__questionnaire_requests_get"];
1973
+ put?: never;
1974
+ /**
1975
+ * Ask a patient for questionnaires outside a cohort (sign-in, text or call)
1976
+ * @description Answers are stored at the patient level (no cohort); alerts go to the person who asked
1977
+ * and the ``alerts.practice_group`` setting, else the practice admins. Email links are
1978
+ * asked from an enrollment (patients outside a cohort get texts, calls or sign-in prompts).
1979
+ */
1980
+ post: operations["create_patient_request_v1_patients__patient_id__questionnaire_requests_post"];
1981
+ delete?: never;
1982
+ options?: never;
1983
+ head?: never;
1984
+ patch?: never;
1985
+ trace?: never;
1986
+ };
1807
1987
  "/v1/patients/{patient_id}/questionnaires": {
1808
1988
  parameters: {
1809
1989
  query?: never;
@@ -2102,6 +2282,40 @@ export interface paths {
2102
2282
  patch?: never;
2103
2283
  trace?: never;
2104
2284
  };
2285
+ "/v1/questionnaire-repeats/{repeat_id}/end": {
2286
+ parameters: {
2287
+ query?: never;
2288
+ header?: never;
2289
+ path?: never;
2290
+ cookie?: never;
2291
+ };
2292
+ get?: never;
2293
+ put?: never;
2294
+ /** End the repeat (requests already sent stay open) */
2295
+ post: operations["end_repeat_v1_questionnaire_repeats__repeat_id__end_post"];
2296
+ delete?: never;
2297
+ options?: never;
2298
+ head?: never;
2299
+ patch?: never;
2300
+ trace?: never;
2301
+ };
2302
+ "/v1/questionnaire-repeats/{repeat_id}/skip-next": {
2303
+ parameters: {
2304
+ query?: never;
2305
+ header?: never;
2306
+ path?: never;
2307
+ cookie?: never;
2308
+ };
2309
+ get?: never;
2310
+ put?: never;
2311
+ /** Skip the next one (it counts toward N times) */
2312
+ post: operations["skip_next_v1_questionnaire_repeats__repeat_id__skip_next_post"];
2313
+ delete?: never;
2314
+ options?: never;
2315
+ head?: never;
2316
+ patch?: never;
2317
+ trace?: never;
2318
+ };
2105
2319
  "/v1/questionnaire-requests/{request_id}/cancel": {
2106
2320
  parameters: {
2107
2321
  query?: never;
@@ -3088,11 +3302,18 @@ export interface components {
3088
3302
  at: string;
3089
3303
  /** By Person Id */
3090
3304
  by_person_id: string | null;
3305
+ /**
3306
+ * Detail
3307
+ * @description phone_safety: {"choice": clinic|988|continue|none|…}
3308
+ */
3309
+ detail?: {
3310
+ [key: string]: unknown;
3311
+ } | null;
3091
3312
  /**
3092
3313
  * Kind
3093
3314
  * @enum {string}
3094
3315
  */
3095
- kind: "raised" | "repeated" | "acknowledged" | "closed" | "reopened" | "emailed";
3316
+ kind: "raised" | "repeated" | "acknowledged" | "closed" | "reopened" | "emailed" | "phone_safety";
3096
3317
  /** Note */
3097
3318
  note: string | null;
3098
3319
  /** Outcome */
@@ -3104,18 +3325,15 @@ export interface components {
3104
3325
  AlertOut: {
3105
3326
  /** Closed At */
3106
3327
  closed_at: string | null;
3107
- /**
3108
- * Cohort Id
3109
- * Format: uuid
3110
- */
3111
- cohort_id: string;
3328
+ /** Cohort Id */
3329
+ cohort_id: string | null;
3112
3330
  /** Display Name */
3113
3331
  display_name: string;
3114
3332
  /**
3115
3333
  * Enrollment Id
3116
- * Format: uuid
3334
+ * @description None: raised outside a cohort
3117
3335
  */
3118
- enrollment_id: string;
3336
+ enrollment_id: string | null;
3119
3337
  /** Events */
3120
3338
  events?: components["schemas"]["AlertEventOut"][];
3121
3339
  /**
@@ -3631,6 +3849,55 @@ export interface components {
3631
3849
  /** Value */
3632
3850
  value: number | null;
3633
3851
  };
3852
+ /** ConsentChannelOut */
3853
+ ConsentChannelOut: {
3854
+ /** At */
3855
+ at?: string | null;
3856
+ /** By Person Id */
3857
+ by_person_id?: string | null;
3858
+ /** Granted */
3859
+ granted: boolean;
3860
+ /** Method */
3861
+ method?: ("verbal" | "written" | "portal" | "joining" | "stop_reply" | "start_reply") | null;
3862
+ };
3863
+ /** ContactConsentIn */
3864
+ ContactConsentIn: {
3865
+ /**
3866
+ * Method
3867
+ * @default verbal
3868
+ * @enum {string}
3869
+ */
3870
+ method: "verbal" | "written" | "portal" | "joining";
3871
+ /** Note */
3872
+ note?: string | null;
3873
+ /** Sms */
3874
+ sms?: boolean | null;
3875
+ /** Voice */
3876
+ voice?: boolean | null;
3877
+ };
3878
+ /** ContactConsentOut */
3879
+ ContactConsentOut: {
3880
+ /** Has Phone */
3881
+ has_phone: boolean;
3882
+ sms: components["schemas"]["ConsentChannelOut"];
3883
+ /** Text Consent Required */
3884
+ text_consent_required: boolean;
3885
+ voice: components["schemas"]["ConsentChannelOut"];
3886
+ };
3887
+ /** ContactPrefsIn */
3888
+ ContactPrefsIn: {
3889
+ /** Quiet Hours */
3890
+ quiet_hours?: components["schemas"]["QuietHours"][];
3891
+ /** Time Zone */
3892
+ time_zone?: string | null;
3893
+ };
3894
+ /** ContactPrefsOut */
3895
+ ContactPrefsOut: {
3896
+ /** Quiet Hours */
3897
+ quiet_hours: components["schemas"]["QuietHours"][];
3898
+ /** Time Zone */
3899
+ time_zone: string | null;
3900
+ };
3634
3901
  /**
3635
3902
  * CourseContent
3636
3903
  * @description A whole course in one language.
@@ -4302,6 +4569,14 @@ export interface components {
4302
4569
  licence_basis: string;
4303
4570
  /** Name */
4304
4571
  name: string;
4572
+ /** Phone Not Ready Reason */
4573
+ phone_not_ready_reason?: ("has_text_question" | "turned_off_by_admin") | null;
4574
+ /**
4575
+ * Phone Ready
4576
+ * @description Can be asked by automated call
4577
+ * @default true
4578
+ */
4579
+ phone_ready: boolean;
4305
4580
  /** Short Name */
4306
4581
  short_name: string | null;
4307
4582
  /** Version */
@@ -4577,6 +4852,15 @@ export interface components {
4577
4852
  licence_basis?: string | null;
4578
4853
  /** Name */
4579
4854
  name: string;
4855
+ /** Phone Admin Reason */
4856
+ phone_admin_reason?: string | null;
4857
+ /** Phone Not Ready Reason */
4858
+ phone_not_ready_reason?: ("has_text_question" | "turned_off_by_admin") | null;
4859
+ /**
4860
+ * Phone Ready
4861
+ * @description None: not checked (a PROMIS form not imported yet)
4862
+ */
4863
+ phone_ready?: boolean | null;
4580
4864
  /** Short Name */
4581
4865
  short_name?: string | null;
4582
4866
  /**
@@ -6178,6 +6462,13 @@ export interface components {
6178
6462
  names?: components["schemas"]["Names"] | null;
6179
6463
  professional?: components["schemas"]["ProfessionalProfileIn"] | null;
6180
6464
  };
6465
+ /** PhoneReadyIn */
6466
+ PhoneReadyIn: {
6467
+ /** Ready */
6468
+ ready: boolean;
6469
+ /** Reason */
6470
+ reason?: string | null;
6471
+ };
6181
6472
  /** Practice */
6182
6473
  Practice: {
6183
6474
  /**
@@ -6605,6 +6896,18 @@ export interface components {
6605
6896
  */
6606
6897
  stage: "added" | "invited" | "accepted" | "enrolled" | "alumni";
6607
6898
  };
6899
+ /** QuietHours */
6900
+ QuietHours: {
6901
+ /**
6902
+ * Days
6903
+ * @description Monday = 0
6904
+ */
6905
+ days?: number[];
6906
+ /** End */
6907
+ end: string;
6908
+ /** Start */
6909
+ start: string;
6910
+ };
6608
6911
  /** ReadinessMember */
6609
6912
  ReadinessMember: {
6610
6913
  /**
@@ -6750,54 +7053,69 @@ export interface components {
6750
7053
  */
6751
7054
  weekday: number;
6752
7055
  };
6753
- /** RepresentativeIn */
6754
- RepresentativeIn: {
6755
- /** Authority Note */
6756
- authority_note?: string | null;
6757
- /** Name */
6758
- name: string;
6759
- /**
6760
- * Relationship
6761
- * @enum {string}
6762
- */
6763
- relationship: "guardian" | "healthcare_agent" | "parent" | "other";
6764
- };
6765
- /** RequestCreate */
6766
- RequestCreate: {
7056
+ /** RepeatCreate */
7057
+ RepeatCreate: {
7058
+ /** Every Days */
7059
+ every_days: number;
6767
7060
  /** Instruments */
6768
7061
  instruments: string[];
6769
7062
  /**
6770
7063
  * Mode
6771
7064
  * @enum {string}
6772
7065
  */
6773
- mode: "login_prompt" | "email_link" | "text_link" | "ivr";
7066
+ mode: "login_prompt" | "text_link" | "ivr";
6774
7067
  /** Note */
6775
7068
  note?: string | null;
6776
- /** Occurrence Key */
6777
- occurrence_key?: string | null;
7069
+ /**
7070
+ * Starts On
7071
+ * @description Default: today (first one now)
7072
+ */
7073
+ starts_on?: string | null;
7074
+ /**
7075
+ * Times
7076
+ * @description Or until
7077
+ */
7078
+ times?: number | null;
7079
+ /** Until */
7080
+ until?: string | null;
6778
7081
  };
6779
- /** RequestOut */
6780
- RequestOut: {
7082
+ /** RepeatEventOut */
7083
+ RepeatEventOut: {
6781
7084
  /**
6782
- * By Rule
6783
- * @description Raised by phq2.positive_followup, not a person
6784
- * @default false
7085
+ * At
7086
+ * Format: date-time
6785
7087
  */
6786
- by_rule: boolean;
6787
- /** Completed At */
6788
- completed_at: string | null;
7088
+ at: string;
7089
+ /** By Person Id */
7090
+ by_person_id: string | null;
7091
+ /** Detail */
7092
+ detail: {
7093
+ [key: string]: unknown;
7094
+ } | null;
7095
+ /**
7096
+ * Kind
7097
+ * @enum {string}
7098
+ */
7099
+ kind: "created" | "sent" | "skipped" | "ended" | "ended_by_enrollment";
7100
+ };
7101
+ /** RepeatOut */
7102
+ RepeatOut: {
6789
7103
  /**
6790
7104
  * Created At
6791
7105
  * Format: date-time
6792
7106
  */
6793
7107
  created_at: string;
7108
+ /** Ended At */
7109
+ ended_at: string | null;
6794
7110
  /**
6795
- * Enrollment Id
6796
- * Format: uuid
7111
+ * Ended Reason
7112
+ * @description ended_by_staff, finished, joined_cohort, patient_left
6797
7113
  */
6798
- enrollment_id: string;
6799
- /** Expires At */
6800
- expires_at: string | null;
7114
+ ended_reason?: string | null;
7115
+ /** Events */
7116
+ events?: components["schemas"]["RepeatEventOut"][];
7117
+ /** Every Days */
7118
+ every_days: number;
6801
7119
  /**
6802
7120
  * Id
6803
7121
  * Format: uuid
@@ -6805,13 +7123,123 @@ export interface components {
6805
7123
  id: string;
6806
7124
  /** Instruments */
6807
7125
  instruments: string[];
7126
+ /**
7127
+ * Label
7128
+ * @description e.g. "2 of 4", "every 7 days until Jan 31"
7129
+ */
7130
+ label: string;
6808
7131
  /**
6809
7132
  * Mode
6810
7133
  * @enum {string}
6811
7134
  */
6812
- mode: "login_prompt" | "email_link" | "text_link" | "ivr";
7135
+ mode: "login_prompt" | "text_link" | "ivr";
7136
+ /** Next On */
7137
+ next_on: string | null;
7138
+ /** Note */
7139
+ note: string | null;
6813
7140
  /**
6814
- * Note
7141
+ * Patient Id
7142
+ * Format: uuid
7143
+ */
7144
+ patient_id: string;
7145
+ /** Sent */
7146
+ sent: number;
7147
+ /** Skipped */
7148
+ skipped: number;
7149
+ /**
7150
+ * Starts On
7151
+ * Format: date
7152
+ */
7153
+ starts_on: string;
7154
+ /**
7155
+ * Status
7156
+ * @enum {string}
7157
+ */
7158
+ status: "active" | "ended";
7159
+ /** Times */
7160
+ times: number | null;
7161
+ /** Until */
7162
+ until: string | null;
7163
+ };
7164
+ /** RepresentativeIn */
7165
+ RepresentativeIn: {
7166
+ /** Authority Note */
7167
+ authority_note?: string | null;
7168
+ /** Name */
7169
+ name: string;
7170
+ /**
7171
+ * Relationship
7172
+ * @enum {string}
7173
+ */
7174
+ relationship: "guardian" | "healthcare_agent" | "parent" | "other";
7175
+ };
7176
+ /** RequestCreate */
7177
+ RequestCreate: {
7178
+ /** Instruments */
7179
+ instruments: string[];
7180
+ /**
7181
+ * Mode
7182
+ * @enum {string}
7183
+ */
7184
+ mode: "login_prompt" | "email_link" | "text_link" | "ivr";
7185
+ /** Note */
7186
+ note?: string | null;
7187
+ /** Occurrence Key */
7188
+ occurrence_key?: string | null;
7189
+ };
7190
+ /** RequestOut */
7191
+ RequestOut: {
7192
+ /**
7193
+ * Attempts
7194
+ * @default 0
7195
+ */
7196
+ attempts: number;
7197
+ /**
7198
+ * By Rule
7199
+ * @description Raised by phq2.positive_followup, not a person
7200
+ * @default false
7201
+ */
7202
+ by_rule: boolean;
7203
+ /** Completed At */
7204
+ completed_at: string | null;
7205
+ /**
7206
+ * Created At
7207
+ * Format: date-time
7208
+ */
7209
+ created_at: string;
7210
+ /**
7211
+ * Delivery
7212
+ * @description Texts and calls: where delivery stands (staff only)
7213
+ */
7214
+ delivery?: ("waiting" | "queued" | "sent" | "delivered" | "failed" | "opted_out" | "calling" | "no_answer" | "identity_failed" | "answered" | "follow_up_sent") | null;
7215
+ /**
7216
+ * Delivery Detail
7217
+ * @description outside_hours, retry, no_consent, no_phone, text, email, delivered, in_progress, stopped_part_way, … (staff only)
7218
+ */
7219
+ delivery_detail?: string | null;
7220
+ /**
7221
+ * Enrollment Id
7222
+ * @description None: asked outside a cohort (patient level, design §20.7)
7223
+ */
7224
+ enrollment_id: string | null;
7225
+ /** Expires At */
7226
+ expires_at: string | null;
7227
+ /**
7228
+ * Id
7229
+ * Format: uuid
7230
+ */
7231
+ id: string;
7232
+ /** Instruments */
7233
+ instruments: string[];
7234
+ /**
7235
+ * Mode
7236
+ * @enum {string}
7237
+ */
7238
+ mode: "login_prompt" | "email_link" | "text_link" | "ivr";
7239
+ /** Next Attempt At */
7240
+ next_attempt_at?: string | null;
7241
+ /**
7242
+ * Note
6815
7243
  * @description Shown to the patient (no health details)
6816
7244
  */
6817
7245
  note?: string | null;
@@ -6821,6 +7249,10 @@ export interface components {
6821
7249
  opened_at: string | null;
6822
7250
  /** Outstanding */
6823
7251
  outstanding?: string[];
7252
+ /** Patient Id */
7253
+ patient_id?: string | null;
7254
+ /** Repeat Id */
7255
+ repeat_id?: string | null;
6824
7256
  /** Sent At */
6825
7257
  sent_at: string | null;
6826
7258
  /**
@@ -6924,9 +7356,9 @@ export interface components {
6924
7356
  code: string;
6925
7357
  /**
6926
7358
  * Enrollment Id
6927
- * Format: uuid
7359
+ * @description None: answered outside a cohort
6928
7360
  */
6929
- enrollment_id: string;
7361
+ enrollment_id: string | null;
6930
7362
  /** Entered By Staff */
6931
7363
  entered_by_staff: boolean;
6932
7364
  /**
@@ -8141,18 +8573,18 @@ export interface components {
8141
8573
  * @description A sign-in prompt (login_prompt request) the portal shows after the site agreement.
8142
8574
  */
8143
8575
  guidistry_api__questionnaires__schemas__Prompt: {
8144
- /**
8145
- * Enrollment Id
8146
- * Format: uuid
8147
- */
8148
- enrollment_id: string;
8576
+ /** Enrollment Id */
8577
+ enrollment_id: string | null;
8149
8578
  /** Instruments */
8150
8579
  instruments: string[];
8151
8580
  /** Note */
8152
8581
  note: string | null;
8153
8582
  /** Outstanding */
8154
8583
  outstanding: string[];
8155
- /** Program Name */
8584
+ /**
8585
+ * Program Name
8586
+ * @description The practice's name for a patient-level request
8587
+ */
8156
8588
  program_name: string;
8157
8589
  /**
8158
8590
  * Request Id
@@ -8991,6 +9423,7 @@ export interface operations {
8991
9423
  query?: {
8992
9424
  cohort_id?: string | null;
8993
9425
  enrollment_id?: string | null;
9426
+ patient_id?: string | null;
8994
9427
  status?: string | null;
8995
9428
  limit?: number;
8996
9429
  };
@@ -11449,6 +11882,42 @@ export interface operations {
11449
11882
  };
11450
11883
  };
11451
11884
  };
11885
+ set_phone_ready_v1_instruments__code__phone_ready_post: {
11886
+ parameters: {
11887
+ query?: never;
11888
+ header?: {
11889
+ /** @description Membership the caller is acting through (from GET /v1/me) */
11890
+ "X-Guidistry-Context"?: string | null;
11891
+ };
11892
+ path: {
11893
+ code: string;
11894
+ };
11895
+ cookie?: never;
11896
+ };
11897
+ requestBody: {
11898
+ content: {
11899
+ "application/json": components["schemas"]["PhoneReadyIn"];
11900
+ };
11901
+ };
11902
+ responses: {
11903
+ /** @description Successful Response */
11904
+ 204: {
11905
+ headers: {
11906
+ [name: string]: unknown;
11907
+ };
11908
+ content?: never;
11909
+ };
11910
+ /** @description Validation Error */
11911
+ 422: {
11912
+ headers: {
11913
+ [name: string]: unknown;
11914
+ };
11915
+ content: {
11916
+ "application/json": components["schemas"]["HTTPValidationError"];
11917
+ };
11918
+ };
11919
+ };
11920
+ };
11452
11921
  list_invitations_v1_invitations_get: {
11453
11922
  parameters: {
11454
11923
  query?: {
@@ -11829,7 +12298,7 @@ export interface operations {
11829
12298
  };
11830
12299
  };
11831
12300
  };
11832
- my_enrollments_v1_me_enrollments_get: {
12301
+ get_my_consent_v1_me_contact_consent_get: {
11833
12302
  parameters: {
11834
12303
  query?: never;
11835
12304
  header?: {
@@ -11847,7 +12316,7 @@ export interface operations {
11847
12316
  [name: string]: unknown;
11848
12317
  };
11849
12318
  content: {
11850
- "application/json": components["schemas"]["MyEnrollmentOut"][];
12319
+ "application/json": components["schemas"]["ContactConsentOut"];
11851
12320
  };
11852
12321
  };
11853
12322
  /** @description Validation Error */
@@ -11861,21 +12330,19 @@ export interface operations {
11861
12330
  };
11862
12331
  };
11863
12332
  };
11864
- update_membership_v1_memberships__membership_id__patch: {
12333
+ put_my_consent_v1_me_contact_consent_put: {
11865
12334
  parameters: {
11866
12335
  query?: never;
11867
12336
  header?: {
11868
12337
  /** @description Membership the caller is acting through (from GET /v1/me) */
11869
12338
  "X-Guidistry-Context"?: string | null;
11870
12339
  };
11871
- path: {
11872
- membership_id: string;
11873
- };
12340
+ path?: never;
11874
12341
  cookie?: never;
11875
12342
  };
11876
12343
  requestBody: {
11877
12344
  content: {
11878
- "application/json": components["schemas"]["MembershipUpdate"];
12345
+ "application/json": components["schemas"]["ContactConsentIn"];
11879
12346
  };
11880
12347
  };
11881
12348
  responses: {
@@ -11885,7 +12352,7 @@ export interface operations {
11885
12352
  [name: string]: unknown;
11886
12353
  };
11887
12354
  content: {
11888
- "application/json": components["schemas"]["MembershipOut"];
12355
+ "application/json": components["schemas"]["ContactConsentOut"];
11889
12356
  };
11890
12357
  };
11891
12358
  /** @description Validation Error */
@@ -11899,12 +12366,9 @@ export interface operations {
11899
12366
  };
11900
12367
  };
11901
12368
  };
11902
- list_templates_v1_note_templates_get: {
12369
+ get_my_prefs_v1_me_contact_preferences_get: {
11903
12370
  parameters: {
11904
- query?: {
11905
- cohort_id?: string | null;
11906
- include_archived?: boolean;
11907
- };
12371
+ query?: never;
11908
12372
  header?: {
11909
12373
  /** @description Membership the caller is acting through (from GET /v1/me) */
11910
12374
  "X-Guidistry-Context"?: string | null;
@@ -11920,7 +12384,7 @@ export interface operations {
11920
12384
  [name: string]: unknown;
11921
12385
  };
11922
12386
  content: {
11923
- "application/json": components["schemas"]["TemplatesOut"];
12387
+ "application/json": components["schemas"]["ContactPrefsOut"];
11924
12388
  };
11925
12389
  };
11926
12390
  /** @description Validation Error */
@@ -11934,7 +12398,7 @@ export interface operations {
11934
12398
  };
11935
12399
  };
11936
12400
  };
11937
- create_template_v1_note_templates_post: {
12401
+ put_my_prefs_v1_me_contact_preferences_put: {
11938
12402
  parameters: {
11939
12403
  query?: never;
11940
12404
  header?: {
@@ -11946,17 +12410,17 @@ export interface operations {
11946
12410
  };
11947
12411
  requestBody: {
11948
12412
  content: {
11949
- "application/json": components["schemas"]["TemplateIn"];
12413
+ "application/json": components["schemas"]["ContactPrefsIn"];
11950
12414
  };
11951
12415
  };
11952
12416
  responses: {
11953
12417
  /** @description Successful Response */
11954
- 201: {
12418
+ 200: {
11955
12419
  headers: {
11956
12420
  [name: string]: unknown;
11957
12421
  };
11958
12422
  content: {
11959
- "application/json": components["schemas"]["TemplateOut"];
12423
+ "application/json": components["schemas"]["ContactPrefsOut"];
11960
12424
  };
11961
12425
  };
11962
12426
  /** @description Validation Error */
@@ -11970,23 +12434,17 @@ export interface operations {
11970
12434
  };
11971
12435
  };
11972
12436
  };
11973
- edit_template_v1_note_templates__template_id__put: {
12437
+ my_enrollments_v1_me_enrollments_get: {
11974
12438
  parameters: {
11975
12439
  query?: never;
11976
12440
  header?: {
11977
12441
  /** @description Membership the caller is acting through (from GET /v1/me) */
11978
12442
  "X-Guidistry-Context"?: string | null;
11979
12443
  };
11980
- path: {
11981
- template_id: string;
11982
- };
12444
+ path?: never;
11983
12445
  cookie?: never;
11984
12446
  };
11985
- requestBody: {
11986
- content: {
11987
- "application/json": components["schemas"]["TemplateChange"];
11988
- };
11989
- };
12447
+ requestBody?: never;
11990
12448
  responses: {
11991
12449
  /** @description Successful Response */
11992
12450
  200: {
@@ -11994,7 +12452,7 @@ export interface operations {
11994
12452
  [name: string]: unknown;
11995
12453
  };
11996
12454
  content: {
11997
- "application/json": components["schemas"]["TemplateOut"];
12455
+ "application/json": components["schemas"]["MyEnrollmentOut"][];
11998
12456
  };
11999
12457
  };
12000
12458
  /** @description Validation Error */
@@ -12008,7 +12466,7 @@ export interface operations {
12008
12466
  };
12009
12467
  };
12010
12468
  };
12011
- archive_template_v1_note_templates__template_id__archive_post: {
12469
+ open_my_request_v1_me_questionnaire_requests__request_id__get: {
12012
12470
  parameters: {
12013
12471
  query?: never;
12014
12472
  header?: {
@@ -12016,7 +12474,7 @@ export interface operations {
12016
12474
  "X-Guidistry-Context"?: string | null;
12017
12475
  };
12018
12476
  path: {
12019
- template_id: string;
12477
+ request_id: string;
12020
12478
  };
12021
12479
  cookie?: never;
12022
12480
  };
@@ -12028,7 +12486,7 @@ export interface operations {
12028
12486
  [name: string]: unknown;
12029
12487
  };
12030
12488
  content: {
12031
- "application/json": components["schemas"]["TemplateOut"];
12489
+ "application/json": components["schemas"]["guidistry_api__questionnaires__schemas__LinkOut"];
12032
12490
  };
12033
12491
  };
12034
12492
  /** @description Validation Error */
@@ -12042,30 +12500,31 @@ export interface operations {
12042
12500
  };
12043
12501
  };
12044
12502
  };
12045
- list_notes_v1_notes_get: {
12503
+ answer_my_request_v1_me_questionnaire_requests__request_id__responses_post: {
12046
12504
  parameters: {
12047
- query?: {
12048
- status?: string | null;
12049
- emr_status?: string | null;
12050
- mine?: boolean;
12051
- cohort_id?: string | null;
12052
- };
12505
+ query?: never;
12053
12506
  header?: {
12054
12507
  /** @description Membership the caller is acting through (from GET /v1/me) */
12055
12508
  "X-Guidistry-Context"?: string | null;
12056
12509
  };
12057
- path?: never;
12510
+ path: {
12511
+ request_id: string;
12512
+ };
12058
12513
  cookie?: never;
12059
12514
  };
12060
- requestBody?: never;
12515
+ requestBody: {
12516
+ content: {
12517
+ "application/json": components["schemas"]["LinkResponseIn"];
12518
+ };
12519
+ };
12061
12520
  responses: {
12062
12521
  /** @description Successful Response */
12063
- 200: {
12522
+ 201: {
12064
12523
  headers: {
12065
12524
  [name: string]: unknown;
12066
12525
  };
12067
12526
  content: {
12068
- "application/json": components["schemas"]["NoteListItem"][];
12527
+ "application/json": components["schemas"]["LinkResponseOut"];
12069
12528
  };
12070
12529
  };
12071
12530
  /** @description Validation Error */
@@ -12079,17 +12538,23 @@ export interface operations {
12079
12538
  };
12080
12539
  };
12081
12540
  };
12082
- list_org_units_v1_org_units_get: {
12541
+ update_membership_v1_memberships__membership_id__patch: {
12083
12542
  parameters: {
12084
12543
  query?: never;
12085
12544
  header?: {
12086
12545
  /** @description Membership the caller is acting through (from GET /v1/me) */
12087
12546
  "X-Guidistry-Context"?: string | null;
12088
12547
  };
12089
- path?: never;
12548
+ path: {
12549
+ membership_id: string;
12550
+ };
12090
12551
  cookie?: never;
12091
12552
  };
12092
- requestBody?: never;
12553
+ requestBody: {
12554
+ content: {
12555
+ "application/json": components["schemas"]["MembershipUpdate"];
12556
+ };
12557
+ };
12093
12558
  responses: {
12094
12559
  /** @description Successful Response */
12095
12560
  200: {
@@ -12097,7 +12562,7 @@ export interface operations {
12097
12562
  [name: string]: unknown;
12098
12563
  };
12099
12564
  content: {
12100
- "application/json": components["schemas"]["OrgUnitOut"][];
12565
+ "application/json": components["schemas"]["MembershipOut"];
12101
12566
  };
12102
12567
  };
12103
12568
  /** @description Validation Error */
@@ -12111,9 +12576,12 @@ export interface operations {
12111
12576
  };
12112
12577
  };
12113
12578
  };
12114
- create_org_unit_v1_org_units_post: {
12579
+ list_templates_v1_note_templates_get: {
12115
12580
  parameters: {
12116
- query?: never;
12581
+ query?: {
12582
+ cohort_id?: string | null;
12583
+ include_archived?: boolean;
12584
+ };
12117
12585
  header?: {
12118
12586
  /** @description Membership the caller is acting through (from GET /v1/me) */
12119
12587
  "X-Guidistry-Context"?: string | null;
@@ -12121,19 +12589,15 @@ export interface operations {
12121
12589
  path?: never;
12122
12590
  cookie?: never;
12123
12591
  };
12124
- requestBody: {
12125
- content: {
12126
- "application/json": components["schemas"]["OrgUnitCreate"];
12127
- };
12128
- };
12592
+ requestBody?: never;
12129
12593
  responses: {
12130
12594
  /** @description Successful Response */
12131
- 201: {
12595
+ 200: {
12132
12596
  headers: {
12133
12597
  [name: string]: unknown;
12134
12598
  };
12135
12599
  content: {
12136
- "application/json": components["schemas"]["OrgUnitOut"];
12600
+ "application/json": components["schemas"]["TemplatesOut"];
12137
12601
  };
12138
12602
  };
12139
12603
  /** @description Validation Error */
@@ -12147,31 +12611,29 @@ export interface operations {
12147
12611
  };
12148
12612
  };
12149
12613
  };
12150
- update_org_unit_v1_org_units__unit_id__patch: {
12614
+ create_template_v1_note_templates_post: {
12151
12615
  parameters: {
12152
12616
  query?: never;
12153
12617
  header?: {
12154
12618
  /** @description Membership the caller is acting through (from GET /v1/me) */
12155
12619
  "X-Guidistry-Context"?: string | null;
12156
12620
  };
12157
- path: {
12158
- unit_id: string;
12159
- };
12621
+ path?: never;
12160
12622
  cookie?: never;
12161
12623
  };
12162
12624
  requestBody: {
12163
12625
  content: {
12164
- "application/json": components["schemas"]["OrgUnitUpdate"];
12626
+ "application/json": components["schemas"]["TemplateIn"];
12165
12627
  };
12166
12628
  };
12167
12629
  responses: {
12168
12630
  /** @description Successful Response */
12169
- 200: {
12631
+ 201: {
12170
12632
  headers: {
12171
12633
  [name: string]: unknown;
12172
12634
  };
12173
12635
  content: {
12174
- "application/json": components["schemas"]["OrgUnitOut"];
12636
+ "application/json": components["schemas"]["TemplateOut"];
12175
12637
  };
12176
12638
  };
12177
12639
  /** @description Validation Error */
@@ -12185,22 +12647,23 @@ export interface operations {
12185
12647
  };
12186
12648
  };
12187
12649
  };
12188
- list_patients_v1_patients_get: {
12650
+ edit_template_v1_note_templates__template_id__put: {
12189
12651
  parameters: {
12190
- query?: {
12191
- /** @description Name search (prefixes) */
12192
- q?: string | null;
12193
- mrn?: string | null;
12194
- cohort_id?: string | null;
12195
- };
12652
+ query?: never;
12196
12653
  header?: {
12197
12654
  /** @description Membership the caller is acting through (from GET /v1/me) */
12198
12655
  "X-Guidistry-Context"?: string | null;
12199
12656
  };
12200
- path?: never;
12657
+ path: {
12658
+ template_id: string;
12659
+ };
12201
12660
  cookie?: never;
12202
12661
  };
12203
- requestBody?: never;
12662
+ requestBody: {
12663
+ content: {
12664
+ "application/json": components["schemas"]["TemplateChange"];
12665
+ };
12666
+ };
12204
12667
  responses: {
12205
12668
  /** @description Successful Response */
12206
12669
  200: {
@@ -12208,7 +12671,7 @@ export interface operations {
12208
12671
  [name: string]: unknown;
12209
12672
  };
12210
12673
  content: {
12211
- "application/json": components["schemas"]["PatientPage"];
12674
+ "application/json": components["schemas"]["TemplateOut"];
12212
12675
  };
12213
12676
  };
12214
12677
  /** @description Validation Error */
@@ -12222,29 +12685,387 @@ export interface operations {
12222
12685
  };
12223
12686
  };
12224
12687
  };
12225
- create_patient_v1_patients_post: {
12688
+ archive_template_v1_note_templates__template_id__archive_post: {
12689
+ parameters: {
12690
+ query?: never;
12691
+ header?: {
12692
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12693
+ "X-Guidistry-Context"?: string | null;
12694
+ };
12695
+ path: {
12696
+ template_id: string;
12697
+ };
12698
+ cookie?: never;
12699
+ };
12700
+ requestBody?: never;
12701
+ responses: {
12702
+ /** @description Successful Response */
12703
+ 200: {
12704
+ headers: {
12705
+ [name: string]: unknown;
12706
+ };
12707
+ content: {
12708
+ "application/json": components["schemas"]["TemplateOut"];
12709
+ };
12710
+ };
12711
+ /** @description Validation Error */
12712
+ 422: {
12713
+ headers: {
12714
+ [name: string]: unknown;
12715
+ };
12716
+ content: {
12717
+ "application/json": components["schemas"]["HTTPValidationError"];
12718
+ };
12719
+ };
12720
+ };
12721
+ };
12722
+ list_notes_v1_notes_get: {
12723
+ parameters: {
12724
+ query?: {
12725
+ status?: string | null;
12726
+ emr_status?: string | null;
12727
+ mine?: boolean;
12728
+ cohort_id?: string | null;
12729
+ };
12730
+ header?: {
12731
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12732
+ "X-Guidistry-Context"?: string | null;
12733
+ };
12734
+ path?: never;
12735
+ cookie?: never;
12736
+ };
12737
+ requestBody?: never;
12738
+ responses: {
12739
+ /** @description Successful Response */
12740
+ 200: {
12741
+ headers: {
12742
+ [name: string]: unknown;
12743
+ };
12744
+ content: {
12745
+ "application/json": components["schemas"]["NoteListItem"][];
12746
+ };
12747
+ };
12748
+ /** @description Validation Error */
12749
+ 422: {
12750
+ headers: {
12751
+ [name: string]: unknown;
12752
+ };
12753
+ content: {
12754
+ "application/json": components["schemas"]["HTTPValidationError"];
12755
+ };
12756
+ };
12757
+ };
12758
+ };
12759
+ list_org_units_v1_org_units_get: {
12760
+ parameters: {
12761
+ query?: never;
12762
+ header?: {
12763
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12764
+ "X-Guidistry-Context"?: string | null;
12765
+ };
12766
+ path?: never;
12767
+ cookie?: never;
12768
+ };
12769
+ requestBody?: never;
12770
+ responses: {
12771
+ /** @description Successful Response */
12772
+ 200: {
12773
+ headers: {
12774
+ [name: string]: unknown;
12775
+ };
12776
+ content: {
12777
+ "application/json": components["schemas"]["OrgUnitOut"][];
12778
+ };
12779
+ };
12780
+ /** @description Validation Error */
12781
+ 422: {
12782
+ headers: {
12783
+ [name: string]: unknown;
12784
+ };
12785
+ content: {
12786
+ "application/json": components["schemas"]["HTTPValidationError"];
12787
+ };
12788
+ };
12789
+ };
12790
+ };
12791
+ create_org_unit_v1_org_units_post: {
12792
+ parameters: {
12793
+ query?: never;
12794
+ header?: {
12795
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12796
+ "X-Guidistry-Context"?: string | null;
12797
+ };
12798
+ path?: never;
12799
+ cookie?: never;
12800
+ };
12801
+ requestBody: {
12802
+ content: {
12803
+ "application/json": components["schemas"]["OrgUnitCreate"];
12804
+ };
12805
+ };
12806
+ responses: {
12807
+ /** @description Successful Response */
12808
+ 201: {
12809
+ headers: {
12810
+ [name: string]: unknown;
12811
+ };
12812
+ content: {
12813
+ "application/json": components["schemas"]["OrgUnitOut"];
12814
+ };
12815
+ };
12816
+ /** @description Validation Error */
12817
+ 422: {
12818
+ headers: {
12819
+ [name: string]: unknown;
12820
+ };
12821
+ content: {
12822
+ "application/json": components["schemas"]["HTTPValidationError"];
12823
+ };
12824
+ };
12825
+ };
12826
+ };
12827
+ update_org_unit_v1_org_units__unit_id__patch: {
12828
+ parameters: {
12829
+ query?: never;
12830
+ header?: {
12831
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12832
+ "X-Guidistry-Context"?: string | null;
12833
+ };
12834
+ path: {
12835
+ unit_id: string;
12836
+ };
12837
+ cookie?: never;
12838
+ };
12839
+ requestBody: {
12840
+ content: {
12841
+ "application/json": components["schemas"]["OrgUnitUpdate"];
12842
+ };
12843
+ };
12844
+ responses: {
12845
+ /** @description Successful Response */
12846
+ 200: {
12847
+ headers: {
12848
+ [name: string]: unknown;
12849
+ };
12850
+ content: {
12851
+ "application/json": components["schemas"]["OrgUnitOut"];
12852
+ };
12853
+ };
12854
+ /** @description Validation Error */
12855
+ 422: {
12856
+ headers: {
12857
+ [name: string]: unknown;
12858
+ };
12859
+ content: {
12860
+ "application/json": components["schemas"]["HTTPValidationError"];
12861
+ };
12862
+ };
12863
+ };
12864
+ };
12865
+ list_patients_v1_patients_get: {
12866
+ parameters: {
12867
+ query?: {
12868
+ /** @description Name search (prefixes) */
12869
+ q?: string | null;
12870
+ mrn?: string | null;
12871
+ cohort_id?: string | null;
12872
+ };
12873
+ header?: {
12874
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12875
+ "X-Guidistry-Context"?: string | null;
12876
+ };
12877
+ path?: never;
12878
+ cookie?: never;
12879
+ };
12880
+ requestBody?: never;
12881
+ responses: {
12882
+ /** @description Successful Response */
12883
+ 200: {
12884
+ headers: {
12885
+ [name: string]: unknown;
12886
+ };
12887
+ content: {
12888
+ "application/json": components["schemas"]["PatientPage"];
12889
+ };
12890
+ };
12891
+ /** @description Validation Error */
12892
+ 422: {
12893
+ headers: {
12894
+ [name: string]: unknown;
12895
+ };
12896
+ content: {
12897
+ "application/json": components["schemas"]["HTTPValidationError"];
12898
+ };
12899
+ };
12900
+ };
12901
+ };
12902
+ create_patient_v1_patients_post: {
12903
+ parameters: {
12904
+ query?: never;
12905
+ header?: {
12906
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12907
+ "X-Guidistry-Context"?: string | null;
12908
+ };
12909
+ path?: never;
12910
+ cookie?: never;
12911
+ };
12912
+ requestBody: {
12913
+ content: {
12914
+ "application/json": components["schemas"]["PatientCreate"];
12915
+ };
12916
+ };
12917
+ responses: {
12918
+ /** @description Successful Response */
12919
+ 201: {
12920
+ headers: {
12921
+ [name: string]: unknown;
12922
+ };
12923
+ content: {
12924
+ "application/json": components["schemas"]["PatientOut"];
12925
+ };
12926
+ };
12927
+ /** @description Validation Error */
12928
+ 422: {
12929
+ headers: {
12930
+ [name: string]: unknown;
12931
+ };
12932
+ content: {
12933
+ "application/json": components["schemas"]["HTTPValidationError"];
12934
+ };
12935
+ };
12936
+ };
12937
+ };
12938
+ get_consent_v1_patients__patient_id__contact_consent_get: {
12939
+ parameters: {
12940
+ query?: never;
12941
+ header?: {
12942
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12943
+ "X-Guidistry-Context"?: string | null;
12944
+ };
12945
+ path: {
12946
+ patient_id: string;
12947
+ };
12948
+ cookie?: never;
12949
+ };
12950
+ requestBody?: never;
12951
+ responses: {
12952
+ /** @description Successful Response */
12953
+ 200: {
12954
+ headers: {
12955
+ [name: string]: unknown;
12956
+ };
12957
+ content: {
12958
+ "application/json": components["schemas"]["ContactConsentOut"];
12959
+ };
12960
+ };
12961
+ /** @description Validation Error */
12962
+ 422: {
12963
+ headers: {
12964
+ [name: string]: unknown;
12965
+ };
12966
+ content: {
12967
+ "application/json": components["schemas"]["HTTPValidationError"];
12968
+ };
12969
+ };
12970
+ };
12971
+ };
12972
+ put_consent_v1_patients__patient_id__contact_consent_put: {
12973
+ parameters: {
12974
+ query?: never;
12975
+ header?: {
12976
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12977
+ "X-Guidistry-Context"?: string | null;
12978
+ };
12979
+ path: {
12980
+ patient_id: string;
12981
+ };
12982
+ cookie?: never;
12983
+ };
12984
+ requestBody: {
12985
+ content: {
12986
+ "application/json": components["schemas"]["ContactConsentIn"];
12987
+ };
12988
+ };
12989
+ responses: {
12990
+ /** @description Successful Response */
12991
+ 200: {
12992
+ headers: {
12993
+ [name: string]: unknown;
12994
+ };
12995
+ content: {
12996
+ "application/json": components["schemas"]["ContactConsentOut"];
12997
+ };
12998
+ };
12999
+ /** @description Validation Error */
13000
+ 422: {
13001
+ headers: {
13002
+ [name: string]: unknown;
13003
+ };
13004
+ content: {
13005
+ "application/json": components["schemas"]["HTTPValidationError"];
13006
+ };
13007
+ };
13008
+ };
13009
+ };
13010
+ get_prefs_v1_patients__patient_id__contact_preferences_get: {
12226
13011
  parameters: {
12227
13012
  query?: never;
12228
13013
  header?: {
12229
13014
  /** @description Membership the caller is acting through (from GET /v1/me) */
12230
13015
  "X-Guidistry-Context"?: string | null;
12231
13016
  };
12232
- path?: never;
13017
+ path: {
13018
+ patient_id: string;
13019
+ };
13020
+ cookie?: never;
13021
+ };
13022
+ requestBody?: never;
13023
+ responses: {
13024
+ /** @description Successful Response */
13025
+ 200: {
13026
+ headers: {
13027
+ [name: string]: unknown;
13028
+ };
13029
+ content: {
13030
+ "application/json": components["schemas"]["ContactPrefsOut"];
13031
+ };
13032
+ };
13033
+ /** @description Validation Error */
13034
+ 422: {
13035
+ headers: {
13036
+ [name: string]: unknown;
13037
+ };
13038
+ content: {
13039
+ "application/json": components["schemas"]["HTTPValidationError"];
13040
+ };
13041
+ };
13042
+ };
13043
+ };
13044
+ put_prefs_v1_patients__patient_id__contact_preferences_put: {
13045
+ parameters: {
13046
+ query?: never;
13047
+ header?: {
13048
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13049
+ "X-Guidistry-Context"?: string | null;
13050
+ };
13051
+ path: {
13052
+ patient_id: string;
13053
+ };
12233
13054
  cookie?: never;
12234
13055
  };
12235
13056
  requestBody: {
12236
13057
  content: {
12237
- "application/json": components["schemas"]["PatientCreate"];
13058
+ "application/json": components["schemas"]["ContactPrefsIn"];
12238
13059
  };
12239
13060
  };
12240
13061
  responses: {
12241
13062
  /** @description Successful Response */
12242
- 201: {
13063
+ 200: {
12243
13064
  headers: {
12244
13065
  [name: string]: unknown;
12245
13066
  };
12246
13067
  content: {
12247
- "application/json": components["schemas"]["PatientOut"];
13068
+ "application/json": components["schemas"]["ContactPrefsOut"];
12248
13069
  };
12249
13070
  };
12250
13071
  /** @description Validation Error */
@@ -12326,6 +13147,162 @@ export interface operations {
12326
13147
  };
12327
13148
  };
12328
13149
  };
13150
+ list_repeats_v1_patients__patient_id__questionnaire_repeats_get: {
13151
+ parameters: {
13152
+ query?: never;
13153
+ header?: {
13154
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13155
+ "X-Guidistry-Context"?: string | null;
13156
+ };
13157
+ path: {
13158
+ patient_id: string;
13159
+ };
13160
+ cookie?: never;
13161
+ };
13162
+ requestBody?: never;
13163
+ responses: {
13164
+ /** @description Successful Response */
13165
+ 200: {
13166
+ headers: {
13167
+ [name: string]: unknown;
13168
+ };
13169
+ content: {
13170
+ "application/json": components["schemas"]["RepeatOut"][];
13171
+ };
13172
+ };
13173
+ /** @description Validation Error */
13174
+ 422: {
13175
+ headers: {
13176
+ [name: string]: unknown;
13177
+ };
13178
+ content: {
13179
+ "application/json": components["schemas"]["HTTPValidationError"];
13180
+ };
13181
+ };
13182
+ };
13183
+ };
13184
+ create_repeat_v1_patients__patient_id__questionnaire_repeats_post: {
13185
+ parameters: {
13186
+ query?: never;
13187
+ header?: {
13188
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13189
+ "X-Guidistry-Context"?: string | null;
13190
+ };
13191
+ path: {
13192
+ patient_id: string;
13193
+ };
13194
+ cookie?: never;
13195
+ };
13196
+ requestBody: {
13197
+ content: {
13198
+ "application/json": components["schemas"]["RepeatCreate"];
13199
+ };
13200
+ };
13201
+ responses: {
13202
+ /** @description Successful Response */
13203
+ 201: {
13204
+ headers: {
13205
+ [name: string]: unknown;
13206
+ };
13207
+ content: {
13208
+ "application/json": components["schemas"]["RepeatOut"];
13209
+ };
13210
+ };
13211
+ /** @description consent_required, not_phone_ready */
13212
+ 409: {
13213
+ headers: {
13214
+ [name: string]: unknown;
13215
+ };
13216
+ content?: never;
13217
+ };
13218
+ /** @description Validation Error */
13219
+ 422: {
13220
+ headers: {
13221
+ [name: string]: unknown;
13222
+ };
13223
+ content: {
13224
+ "application/json": components["schemas"]["HTTPValidationError"];
13225
+ };
13226
+ };
13227
+ };
13228
+ };
13229
+ list_patient_requests_v1_patients__patient_id__questionnaire_requests_get: {
13230
+ parameters: {
13231
+ query?: never;
13232
+ header?: {
13233
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13234
+ "X-Guidistry-Context"?: string | null;
13235
+ };
13236
+ path: {
13237
+ patient_id: string;
13238
+ };
13239
+ cookie?: never;
13240
+ };
13241
+ requestBody?: never;
13242
+ responses: {
13243
+ /** @description Successful Response */
13244
+ 200: {
13245
+ headers: {
13246
+ [name: string]: unknown;
13247
+ };
13248
+ content: {
13249
+ "application/json": components["schemas"]["RequestOut"][];
13250
+ };
13251
+ };
13252
+ /** @description Validation Error */
13253
+ 422: {
13254
+ headers: {
13255
+ [name: string]: unknown;
13256
+ };
13257
+ content: {
13258
+ "application/json": components["schemas"]["HTTPValidationError"];
13259
+ };
13260
+ };
13261
+ };
13262
+ };
13263
+ create_patient_request_v1_patients__patient_id__questionnaire_requests_post: {
13264
+ parameters: {
13265
+ query?: never;
13266
+ header?: {
13267
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13268
+ "X-Guidistry-Context"?: string | null;
13269
+ };
13270
+ path: {
13271
+ patient_id: string;
13272
+ };
13273
+ cookie?: never;
13274
+ };
13275
+ requestBody: {
13276
+ content: {
13277
+ "application/json": components["schemas"]["RequestCreate"];
13278
+ };
13279
+ };
13280
+ responses: {
13281
+ /** @description Successful Response */
13282
+ 201: {
13283
+ headers: {
13284
+ [name: string]: unknown;
13285
+ };
13286
+ content: {
13287
+ "application/json": components["schemas"]["RequestOut"];
13288
+ };
13289
+ };
13290
+ /** @description consent_required, not_phone_ready, channels_not_configured */
13291
+ 409: {
13292
+ headers: {
13293
+ [name: string]: unknown;
13294
+ };
13295
+ content?: never;
13296
+ };
13297
+ /** @description no_phone */
13298
+ 422: {
13299
+ headers: {
13300
+ [name: string]: unknown;
13301
+ };
13302
+ content?: never;
13303
+ };
13304
+ };
13305
+ };
12329
13306
  patient_responses_v1_patients__patient_id__questionnaires_get: {
12330
13307
  parameters: {
12331
13308
  query?: {
@@ -13081,6 +14058,74 @@ export interface operations {
13081
14058
  };
13082
14059
  };
13083
14060
  };
14061
+ end_repeat_v1_questionnaire_repeats__repeat_id__end_post: {
14062
+ parameters: {
14063
+ query?: never;
14064
+ header?: {
14065
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14066
+ "X-Guidistry-Context"?: string | null;
14067
+ };
14068
+ path: {
14069
+ repeat_id: string;
14070
+ };
14071
+ cookie?: never;
14072
+ };
14073
+ requestBody?: never;
14074
+ responses: {
14075
+ /** @description Successful Response */
14076
+ 200: {
14077
+ headers: {
14078
+ [name: string]: unknown;
14079
+ };
14080
+ content: {
14081
+ "application/json": components["schemas"]["RepeatOut"];
14082
+ };
14083
+ };
14084
+ /** @description Validation Error */
14085
+ 422: {
14086
+ headers: {
14087
+ [name: string]: unknown;
14088
+ };
14089
+ content: {
14090
+ "application/json": components["schemas"]["HTTPValidationError"];
14091
+ };
14092
+ };
14093
+ };
14094
+ };
14095
+ skip_next_v1_questionnaire_repeats__repeat_id__skip_next_post: {
14096
+ parameters: {
14097
+ query?: never;
14098
+ header?: {
14099
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14100
+ "X-Guidistry-Context"?: string | null;
14101
+ };
14102
+ path: {
14103
+ repeat_id: string;
14104
+ };
14105
+ cookie?: never;
14106
+ };
14107
+ requestBody?: never;
14108
+ responses: {
14109
+ /** @description Successful Response */
14110
+ 200: {
14111
+ headers: {
14112
+ [name: string]: unknown;
14113
+ };
14114
+ content: {
14115
+ "application/json": components["schemas"]["RepeatOut"];
14116
+ };
14117
+ };
14118
+ /** @description Validation Error */
14119
+ 422: {
14120
+ headers: {
14121
+ [name: string]: unknown;
14122
+ };
14123
+ content: {
14124
+ "application/json": components["schemas"]["HTTPValidationError"];
14125
+ };
14126
+ };
14127
+ };
14128
+ };
13084
14129
  cancel_request_v1_questionnaire_requests__request_id__cancel_post: {
13085
14130
  parameters: {
13086
14131
  query?: never;