@gpt-platform/client 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +555 -9
- package/dist/index.d.ts +555 -9
- package/dist/index.js +223 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +223 -10
- package/dist/index.mjs.map +1 -1
- package/llms.txt +31 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -606,7 +606,7 @@ declare class BrowserApiKeyError extends Error {
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
/** SDK version — updated automatically by mix update.sdks */
|
|
609
|
-
declare const SDK_VERSION = "0.8.
|
|
609
|
+
declare const SDK_VERSION = "0.8.1";
|
|
610
610
|
/** Default API version sent in every request — updated automatically by mix update.sdks */
|
|
611
611
|
declare const DEFAULT_API_VERSION = "2026-03-11";
|
|
612
612
|
|
|
@@ -1199,6 +1199,144 @@ type WorkspaceAgentConfig = {
|
|
|
1199
1199
|
};
|
|
1200
1200
|
type: string;
|
|
1201
1201
|
};
|
|
1202
|
+
/**
|
|
1203
|
+
* A "Resource object" representing a clinical-goal-template
|
|
1204
|
+
*/
|
|
1205
|
+
type ClinicalGoalTemplate = {
|
|
1206
|
+
/**
|
|
1207
|
+
* An attributes object for a clinical-goal-template
|
|
1208
|
+
*/
|
|
1209
|
+
attributes?: {
|
|
1210
|
+
/**
|
|
1211
|
+
* Field included by default.
|
|
1212
|
+
*/
|
|
1213
|
+
action_steps: Array<string>;
|
|
1214
|
+
/**
|
|
1215
|
+
* Field included by default.
|
|
1216
|
+
*/
|
|
1217
|
+
age_groups: Array<string>;
|
|
1218
|
+
/**
|
|
1219
|
+
* Field included by default.
|
|
1220
|
+
*/
|
|
1221
|
+
applicable_conditions: Array<string>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Field included by default.
|
|
1224
|
+
*/
|
|
1225
|
+
category?: string | null | unknown;
|
|
1226
|
+
/**
|
|
1227
|
+
* Field included by default.
|
|
1228
|
+
*/
|
|
1229
|
+
created_by_id?: string | null | unknown;
|
|
1230
|
+
/**
|
|
1231
|
+
* Field included by default.
|
|
1232
|
+
*/
|
|
1233
|
+
description?: string | null | unknown;
|
|
1234
|
+
/**
|
|
1235
|
+
* Field included by default.
|
|
1236
|
+
*/
|
|
1237
|
+
difficulty?: "beginner" | "intermediate" | "advanced" | unknown;
|
|
1238
|
+
/**
|
|
1239
|
+
* Field included by default.
|
|
1240
|
+
*/
|
|
1241
|
+
evidence_base?: string | null | unknown;
|
|
1242
|
+
/**
|
|
1243
|
+
* Field included by default.
|
|
1244
|
+
*/
|
|
1245
|
+
goal_type: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* Field included by default.
|
|
1248
|
+
*/
|
|
1249
|
+
instructions?: string | null | unknown;
|
|
1250
|
+
/**
|
|
1251
|
+
* Field included by default.
|
|
1252
|
+
*/
|
|
1253
|
+
is_active: boolean;
|
|
1254
|
+
/**
|
|
1255
|
+
* Field included by default.
|
|
1256
|
+
*/
|
|
1257
|
+
linked_metric_type?: string | null | unknown;
|
|
1258
|
+
/**
|
|
1259
|
+
* Field included by default.
|
|
1260
|
+
*/
|
|
1261
|
+
metadata: {
|
|
1262
|
+
[key: string]: unknown;
|
|
1263
|
+
};
|
|
1264
|
+
/**
|
|
1265
|
+
* Field included by default.
|
|
1266
|
+
*/
|
|
1267
|
+
priority?: "high" | "medium" | "low" | unknown;
|
|
1268
|
+
/**
|
|
1269
|
+
* Field included by default.
|
|
1270
|
+
*/
|
|
1271
|
+
source_catalog_id?: string | null | unknown;
|
|
1272
|
+
/**
|
|
1273
|
+
* Field included by default.
|
|
1274
|
+
*/
|
|
1275
|
+
source_reference?: string | null | unknown;
|
|
1276
|
+
/**
|
|
1277
|
+
* Field included by default.
|
|
1278
|
+
*/
|
|
1279
|
+
source_template_id?: string | null | unknown;
|
|
1280
|
+
/**
|
|
1281
|
+
* Field included by default.
|
|
1282
|
+
*/
|
|
1283
|
+
suggested_duration_days?: number | null | unknown;
|
|
1284
|
+
/**
|
|
1285
|
+
* Field included by default.
|
|
1286
|
+
*/
|
|
1287
|
+
tags: Array<string>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Field included by default.
|
|
1290
|
+
*/
|
|
1291
|
+
target_value?: string | null | unknown;
|
|
1292
|
+
/**
|
|
1293
|
+
* Field included by default.
|
|
1294
|
+
*/
|
|
1295
|
+
timeframe?: string | null | unknown;
|
|
1296
|
+
/**
|
|
1297
|
+
* Field included by default.
|
|
1298
|
+
*/
|
|
1299
|
+
title: string;
|
|
1300
|
+
/**
|
|
1301
|
+
* Field included by default.
|
|
1302
|
+
*/
|
|
1303
|
+
tool_ids: Array<string>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Field included by default.
|
|
1306
|
+
*/
|
|
1307
|
+
unit?: string | null | unknown;
|
|
1308
|
+
};
|
|
1309
|
+
id: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* A relationships object for a clinical-goal-template
|
|
1312
|
+
*/
|
|
1313
|
+
relationships?: {
|
|
1314
|
+
[key: string]: never;
|
|
1315
|
+
};
|
|
1316
|
+
type: string;
|
|
1317
|
+
};
|
|
1318
|
+
/**
|
|
1319
|
+
* A "Resource object" representing a clinical-goal-template-category
|
|
1320
|
+
*/
|
|
1321
|
+
type ClinicalGoalTemplateCategory = {
|
|
1322
|
+
/**
|
|
1323
|
+
* An attributes object for a clinical-goal-template-category
|
|
1324
|
+
*/
|
|
1325
|
+
attributes?: {
|
|
1326
|
+
/**
|
|
1327
|
+
* Field included by default.
|
|
1328
|
+
*/
|
|
1329
|
+
template_count: number;
|
|
1330
|
+
};
|
|
1331
|
+
id: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* A relationships object for a clinical-goal-template-category
|
|
1334
|
+
*/
|
|
1335
|
+
relationships?: {
|
|
1336
|
+
[key: string]: never;
|
|
1337
|
+
};
|
|
1338
|
+
type: string;
|
|
1339
|
+
};
|
|
1202
1340
|
/**
|
|
1203
1341
|
* A "Resource object" representing a crawler_result
|
|
1204
1342
|
*/
|
|
@@ -2752,14 +2890,34 @@ type ClinicalPracticeTool = {
|
|
|
2752
2890
|
* An attributes object for a clinical-practice-tool
|
|
2753
2891
|
*/
|
|
2754
2892
|
attributes?: {
|
|
2893
|
+
/**
|
|
2894
|
+
* Field included by default.
|
|
2895
|
+
*/
|
|
2896
|
+
app_store_url?: string | null | unknown;
|
|
2897
|
+
/**
|
|
2898
|
+
* Field included by default.
|
|
2899
|
+
*/
|
|
2900
|
+
category?: string | null | unknown;
|
|
2755
2901
|
/**
|
|
2756
2902
|
* Field included by default.
|
|
2757
2903
|
*/
|
|
2758
2904
|
description?: string | null | unknown;
|
|
2905
|
+
/**
|
|
2906
|
+
* Field included by default.
|
|
2907
|
+
*/
|
|
2908
|
+
icon_url?: string | null | unknown;
|
|
2909
|
+
/**
|
|
2910
|
+
* Field included by default.
|
|
2911
|
+
*/
|
|
2912
|
+
integrations: Array<string>;
|
|
2759
2913
|
/**
|
|
2760
2914
|
* Field included by default.
|
|
2761
2915
|
*/
|
|
2762
2916
|
is_active: boolean;
|
|
2917
|
+
/**
|
|
2918
|
+
* Field included by default.
|
|
2919
|
+
*/
|
|
2920
|
+
logo_url?: string | null | unknown;
|
|
2763
2921
|
/**
|
|
2764
2922
|
* Field included by default.
|
|
2765
2923
|
*/
|
|
@@ -2768,6 +2926,34 @@ type ClinicalPracticeTool = {
|
|
|
2768
2926
|
* Field included by default.
|
|
2769
2927
|
*/
|
|
2770
2928
|
platform?: string | null | unknown;
|
|
2929
|
+
/**
|
|
2930
|
+
* Field included by default.
|
|
2931
|
+
*/
|
|
2932
|
+
play_store_url?: string | null | unknown;
|
|
2933
|
+
/**
|
|
2934
|
+
* Field included by default.
|
|
2935
|
+
*/
|
|
2936
|
+
pricing_model?: "free" | "freemium" | "paid" | "prescription" | unknown;
|
|
2937
|
+
/**
|
|
2938
|
+
* Field included by default.
|
|
2939
|
+
*/
|
|
2940
|
+
privacy_rating: "hipaa_compliant" | "hipaa_partial" | "standard" | "unknown";
|
|
2941
|
+
/**
|
|
2942
|
+
* Field included by default.
|
|
2943
|
+
*/
|
|
2944
|
+
rating?: string | null | unknown;
|
|
2945
|
+
/**
|
|
2946
|
+
* Field included by default.
|
|
2947
|
+
*/
|
|
2948
|
+
source_catalog_id?: string | null | unknown;
|
|
2949
|
+
/**
|
|
2950
|
+
* Field included by default.
|
|
2951
|
+
*/
|
|
2952
|
+
supported_platforms: Array<string>;
|
|
2953
|
+
/**
|
|
2954
|
+
* Field included by default.
|
|
2955
|
+
*/
|
|
2956
|
+
tags: Array<string>;
|
|
2771
2957
|
/**
|
|
2772
2958
|
* Field included by default.
|
|
2773
2959
|
*/
|
|
@@ -2776,6 +2962,10 @@ type ClinicalPracticeTool = {
|
|
|
2776
2962
|
* Field included by default.
|
|
2777
2963
|
*/
|
|
2778
2964
|
url?: string | null | unknown;
|
|
2965
|
+
/**
|
|
2966
|
+
* Field included by default.
|
|
2967
|
+
*/
|
|
2968
|
+
website_url?: string | null | unknown;
|
|
2779
2969
|
};
|
|
2780
2970
|
id: string;
|
|
2781
2971
|
/**
|
|
@@ -3929,7 +4119,7 @@ type LegalAcceptance = {
|
|
|
3929
4119
|
/**
|
|
3930
4120
|
* Field included by default.
|
|
3931
4121
|
*/
|
|
3932
|
-
document_type: "terms_of_service" | "privacy_policy";
|
|
4122
|
+
document_type: "terms_of_service" | "privacy_policy" | "baa" | "dpa" | "scc" | "npp" | "security_policy" | "incident_response_plan" | "contingency_plan" | "access_control_policy" | "risk_management_plan" | "training_policy" | "sanction_policy" | "breach_notification_policy" | "system_activity_review" | "data_retention_policy" | "minimum_necessary_policy" | "authorization_form";
|
|
3933
4123
|
/**
|
|
3934
4124
|
* Field included by default.
|
|
3935
4125
|
*/
|
|
@@ -5843,6 +6033,10 @@ type ClinicalSession = {
|
|
|
5843
6033
|
* Field included by default.
|
|
5844
6034
|
*/
|
|
5845
6035
|
session_status: "scheduled" | "in_progress" | "completed" | "cancelled" | "no_show";
|
|
6036
|
+
/**
|
|
6037
|
+
* Field included by default.
|
|
6038
|
+
*/
|
|
6039
|
+
session_summary?: string | null | unknown;
|
|
5846
6040
|
/**
|
|
5847
6041
|
* Field included by default.
|
|
5848
6042
|
*/
|
|
@@ -7064,18 +7258,66 @@ type ClinicalPracticeResource = {
|
|
|
7064
7258
|
* An attributes object for a clinical-practice-resource
|
|
7065
7259
|
*/
|
|
7066
7260
|
attributes?: {
|
|
7261
|
+
/**
|
|
7262
|
+
* Field included by default.
|
|
7263
|
+
*/
|
|
7264
|
+
applicable_conditions: Array<string>;
|
|
7265
|
+
/**
|
|
7266
|
+
* Field included by default.
|
|
7267
|
+
*/
|
|
7268
|
+
audience: "patient" | "practitioner" | "both";
|
|
7269
|
+
/**
|
|
7270
|
+
* Field included by default.
|
|
7271
|
+
*/
|
|
7272
|
+
author?: string | null | unknown;
|
|
7273
|
+
/**
|
|
7274
|
+
* Field included by default.
|
|
7275
|
+
*/
|
|
7276
|
+
content_format?: "pdf" | "html" | "video_embed" | "external_link" | "interactive" | unknown;
|
|
7067
7277
|
/**
|
|
7068
7278
|
* Field included by default.
|
|
7069
7279
|
*/
|
|
7070
7280
|
description?: string | null | unknown;
|
|
7281
|
+
/**
|
|
7282
|
+
* Field included by default.
|
|
7283
|
+
*/
|
|
7284
|
+
estimated_duration_minutes?: number | null | unknown;
|
|
7285
|
+
/**
|
|
7286
|
+
* Field included by default.
|
|
7287
|
+
*/
|
|
7288
|
+
icon_url?: string | null | unknown;
|
|
7071
7289
|
/**
|
|
7072
7290
|
* Field included by default.
|
|
7073
7291
|
*/
|
|
7074
7292
|
is_active: boolean;
|
|
7293
|
+
/**
|
|
7294
|
+
* Field included by default.
|
|
7295
|
+
*/
|
|
7296
|
+
language: string;
|
|
7297
|
+
/**
|
|
7298
|
+
* Field included by default.
|
|
7299
|
+
*/
|
|
7300
|
+
license?: string | null | unknown;
|
|
7301
|
+
/**
|
|
7302
|
+
* Field included by default.
|
|
7303
|
+
*/
|
|
7304
|
+
preview_url?: string | null | unknown;
|
|
7305
|
+
/**
|
|
7306
|
+
* Field included by default.
|
|
7307
|
+
*/
|
|
7308
|
+
reading_level?: "basic" | "intermediate" | "advanced" | "clinical" | unknown;
|
|
7309
|
+
/**
|
|
7310
|
+
* Field included by default.
|
|
7311
|
+
*/
|
|
7312
|
+
related_goal_types: Array<string>;
|
|
7075
7313
|
/**
|
|
7076
7314
|
* Field included by default.
|
|
7077
7315
|
*/
|
|
7078
7316
|
resource_type: "article" | "video" | "handout" | "worksheet" | "tool_link";
|
|
7317
|
+
/**
|
|
7318
|
+
* Field included by default.
|
|
7319
|
+
*/
|
|
7320
|
+
source_catalog_id?: string | null | unknown;
|
|
7079
7321
|
/**
|
|
7080
7322
|
* Field included by default.
|
|
7081
7323
|
*/
|
|
@@ -7477,6 +7719,18 @@ type ClinicalDelivery = {
|
|
|
7477
7719
|
* Field included by default.
|
|
7478
7720
|
*/
|
|
7479
7721
|
delivery_type: "summary_email" | "goal_report" | "meal_plan" | "supplement_list";
|
|
7722
|
+
/**
|
|
7723
|
+
* Field included by default.
|
|
7724
|
+
*/
|
|
7725
|
+
included_goal_ids: Array<string>;
|
|
7726
|
+
/**
|
|
7727
|
+
* Field included by default.
|
|
7728
|
+
*/
|
|
7729
|
+
included_resource_ids: Array<string>;
|
|
7730
|
+
/**
|
|
7731
|
+
* Field included by default.
|
|
7732
|
+
*/
|
|
7733
|
+
included_supplement_ids: Array<string>;
|
|
7480
7734
|
/**
|
|
7481
7735
|
* Field included by default.
|
|
7482
7736
|
*/
|
|
@@ -10046,6 +10300,14 @@ type ClinicalClientGoal = {
|
|
|
10046
10300
|
* Field included by default.
|
|
10047
10301
|
*/
|
|
10048
10302
|
achieved_at?: string | null | unknown;
|
|
10303
|
+
/**
|
|
10304
|
+
* Field included by default.
|
|
10305
|
+
*/
|
|
10306
|
+
action_steps: Array<string>;
|
|
10307
|
+
/**
|
|
10308
|
+
* Field included by default.
|
|
10309
|
+
*/
|
|
10310
|
+
category?: string | null | unknown;
|
|
10049
10311
|
/**
|
|
10050
10312
|
* Field included by default.
|
|
10051
10313
|
*/
|
|
@@ -10054,6 +10316,10 @@ type ClinicalClientGoal = {
|
|
|
10054
10316
|
* Field included by default.
|
|
10055
10317
|
*/
|
|
10056
10318
|
description?: string | null | unknown;
|
|
10319
|
+
/**
|
|
10320
|
+
* Field included by default.
|
|
10321
|
+
*/
|
|
10322
|
+
email_sent_at?: string | null | unknown;
|
|
10057
10323
|
/**
|
|
10058
10324
|
* Field included by default.
|
|
10059
10325
|
*/
|
|
@@ -10062,6 +10328,12 @@ type ClinicalClientGoal = {
|
|
|
10062
10328
|
* Field included by default.
|
|
10063
10329
|
*/
|
|
10064
10330
|
linked_metric_type?: string | null | unknown;
|
|
10331
|
+
/**
|
|
10332
|
+
* Field included by default.
|
|
10333
|
+
*/
|
|
10334
|
+
metadata: {
|
|
10335
|
+
[key: string]: unknown;
|
|
10336
|
+
};
|
|
10065
10337
|
/**
|
|
10066
10338
|
* Field included by default.
|
|
10067
10339
|
*/
|
|
@@ -10069,7 +10341,23 @@ type ClinicalClientGoal = {
|
|
|
10069
10341
|
/**
|
|
10070
10342
|
* Field included by default.
|
|
10071
10343
|
*/
|
|
10072
|
-
|
|
10344
|
+
position?: number | null | unknown;
|
|
10345
|
+
/**
|
|
10346
|
+
* Field included by default.
|
|
10347
|
+
*/
|
|
10348
|
+
priority?: "high" | "medium" | "low" | unknown;
|
|
10349
|
+
/**
|
|
10350
|
+
* Field included by default.
|
|
10351
|
+
*/
|
|
10352
|
+
session_id?: string | null | unknown;
|
|
10353
|
+
/**
|
|
10354
|
+
* Field included by default.
|
|
10355
|
+
*/
|
|
10356
|
+
source: "manual" | "session" | "template";
|
|
10357
|
+
/**
|
|
10358
|
+
* Field included by default.
|
|
10359
|
+
*/
|
|
10360
|
+
status: "active" | "completed" | "abandoned" | "paused" | "achieved" | "discontinued";
|
|
10073
10361
|
/**
|
|
10074
10362
|
* Field included by default.
|
|
10075
10363
|
*/
|
|
@@ -10078,6 +10366,14 @@ type ClinicalClientGoal = {
|
|
|
10078
10366
|
* Field included by default.
|
|
10079
10367
|
*/
|
|
10080
10368
|
target_value?: string | null | unknown;
|
|
10369
|
+
/**
|
|
10370
|
+
* Field included by default.
|
|
10371
|
+
*/
|
|
10372
|
+
template_id?: string | null | unknown;
|
|
10373
|
+
/**
|
|
10374
|
+
* Field included by default.
|
|
10375
|
+
*/
|
|
10376
|
+
timeframe?: string | null | unknown;
|
|
10081
10377
|
/**
|
|
10082
10378
|
* Field included by default.
|
|
10083
10379
|
*/
|
|
@@ -21209,7 +21505,7 @@ interface UpdateMealPlanAttributes {
|
|
|
21209
21505
|
interface CreateClientGoalAttributes {
|
|
21210
21506
|
workspace_id: string;
|
|
21211
21507
|
patient_id: string;
|
|
21212
|
-
status?:
|
|
21508
|
+
status?: "active" | "completed" | "abandoned" | "paused" | "achieved" | "discontinued";
|
|
21213
21509
|
goal_type: string;
|
|
21214
21510
|
title: string;
|
|
21215
21511
|
description?: string;
|
|
@@ -21219,11 +21515,21 @@ interface CreateClientGoalAttributes {
|
|
|
21219
21515
|
target_date?: string;
|
|
21220
21516
|
linked_metric_type?: string;
|
|
21221
21517
|
tool_ids?: string[];
|
|
21518
|
+
action_steps?: string[];
|
|
21519
|
+
priority?: "high" | "medium" | "low";
|
|
21520
|
+
category?: string;
|
|
21521
|
+
timeframe?: string;
|
|
21522
|
+
position?: number;
|
|
21523
|
+
source?: "manual" | "session" | "template";
|
|
21524
|
+
session_id?: string;
|
|
21525
|
+
template_id?: string;
|
|
21526
|
+
email_sent_at?: string;
|
|
21527
|
+
metadata?: Record<string, unknown>;
|
|
21222
21528
|
progress_notes?: string;
|
|
21223
21529
|
achieved_at?: string;
|
|
21224
21530
|
}
|
|
21225
21531
|
interface UpdateClientGoalAttributes {
|
|
21226
|
-
status?:
|
|
21532
|
+
status?: "active" | "completed" | "abandoned" | "paused" | "achieved" | "discontinued";
|
|
21227
21533
|
goal_type?: string;
|
|
21228
21534
|
title?: string;
|
|
21229
21535
|
description?: string;
|
|
@@ -21233,6 +21539,16 @@ interface UpdateClientGoalAttributes {
|
|
|
21233
21539
|
target_date?: string;
|
|
21234
21540
|
linked_metric_type?: string;
|
|
21235
21541
|
tool_ids?: string[];
|
|
21542
|
+
action_steps?: string[];
|
|
21543
|
+
priority?: "high" | "medium" | "low";
|
|
21544
|
+
category?: string;
|
|
21545
|
+
timeframe?: string;
|
|
21546
|
+
position?: number;
|
|
21547
|
+
source?: "manual" | "session" | "template";
|
|
21548
|
+
session_id?: string;
|
|
21549
|
+
template_id?: string;
|
|
21550
|
+
email_sent_at?: string;
|
|
21551
|
+
metadata?: Record<string, unknown>;
|
|
21236
21552
|
progress_notes?: string;
|
|
21237
21553
|
achieved_at?: string;
|
|
21238
21554
|
}
|
|
@@ -21285,20 +21601,42 @@ interface CreatePracticeResourceAttributes {
|
|
|
21285
21601
|
workspace_id: string;
|
|
21286
21602
|
title: string;
|
|
21287
21603
|
description?: string;
|
|
21288
|
-
resource_type?:
|
|
21604
|
+
resource_type?: "article" | "video" | "handout" | "worksheet" | "tool_link";
|
|
21289
21605
|
storage_key?: string;
|
|
21290
21606
|
url?: string;
|
|
21291
21607
|
tags?: string[];
|
|
21292
21608
|
is_active?: boolean;
|
|
21609
|
+
content_format?: "pdf" | "html" | "video_embed" | "external_link" | "interactive";
|
|
21610
|
+
preview_url?: string;
|
|
21611
|
+
language?: string;
|
|
21612
|
+
reading_level?: "basic" | "intermediate" | "advanced" | "clinical";
|
|
21613
|
+
audience?: "patient" | "practitioner" | "both";
|
|
21614
|
+
author?: string;
|
|
21615
|
+
license?: string;
|
|
21616
|
+
estimated_duration_minutes?: number;
|
|
21617
|
+
applicable_conditions?: string[];
|
|
21618
|
+
related_goal_types?: string[];
|
|
21619
|
+
icon_url?: string;
|
|
21293
21620
|
}
|
|
21294
21621
|
interface UpdatePracticeResourceAttributes {
|
|
21295
21622
|
title?: string;
|
|
21296
21623
|
description?: string;
|
|
21297
|
-
resource_type?:
|
|
21624
|
+
resource_type?: "article" | "video" | "handout" | "worksheet" | "tool_link";
|
|
21298
21625
|
storage_key?: string;
|
|
21299
21626
|
url?: string;
|
|
21300
21627
|
tags?: string[];
|
|
21301
21628
|
is_active?: boolean;
|
|
21629
|
+
content_format?: "pdf" | "html" | "video_embed" | "external_link" | "interactive";
|
|
21630
|
+
preview_url?: string;
|
|
21631
|
+
language?: string;
|
|
21632
|
+
reading_level?: "basic" | "intermediate" | "advanced" | "clinical";
|
|
21633
|
+
audience?: "patient" | "practitioner" | "both";
|
|
21634
|
+
author?: string;
|
|
21635
|
+
license?: string;
|
|
21636
|
+
estimated_duration_minutes?: number;
|
|
21637
|
+
applicable_conditions?: string[];
|
|
21638
|
+
related_goal_types?: string[];
|
|
21639
|
+
icon_url?: string;
|
|
21302
21640
|
}
|
|
21303
21641
|
interface CreatePracticeToolAttributes {
|
|
21304
21642
|
workspace_id: string;
|
|
@@ -21308,6 +21646,18 @@ interface CreatePracticeToolAttributes {
|
|
|
21308
21646
|
url?: string;
|
|
21309
21647
|
platform?: string;
|
|
21310
21648
|
is_active?: boolean;
|
|
21649
|
+
category?: string;
|
|
21650
|
+
pricing_model?: "free" | "freemium" | "paid" | "prescription";
|
|
21651
|
+
supported_platforms?: string[];
|
|
21652
|
+
integrations?: string[];
|
|
21653
|
+
website_url?: string;
|
|
21654
|
+
app_store_url?: string;
|
|
21655
|
+
play_store_url?: string;
|
|
21656
|
+
icon_url?: string;
|
|
21657
|
+
logo_url?: string;
|
|
21658
|
+
rating?: string;
|
|
21659
|
+
privacy_rating?: "hipaa_compliant" | "hipaa_partial" | "standard" | "unknown";
|
|
21660
|
+
tags?: string[];
|
|
21311
21661
|
}
|
|
21312
21662
|
interface UpdatePracticeToolAttributes {
|
|
21313
21663
|
name?: string;
|
|
@@ -21316,6 +21666,18 @@ interface UpdatePracticeToolAttributes {
|
|
|
21316
21666
|
url?: string;
|
|
21317
21667
|
platform?: string;
|
|
21318
21668
|
is_active?: boolean;
|
|
21669
|
+
category?: string;
|
|
21670
|
+
pricing_model?: "free" | "freemium" | "paid" | "prescription";
|
|
21671
|
+
supported_platforms?: string[];
|
|
21672
|
+
integrations?: string[];
|
|
21673
|
+
website_url?: string;
|
|
21674
|
+
app_store_url?: string;
|
|
21675
|
+
play_store_url?: string;
|
|
21676
|
+
icon_url?: string;
|
|
21677
|
+
logo_url?: string;
|
|
21678
|
+
rating?: string;
|
|
21679
|
+
privacy_rating?: "hipaa_compliant" | "hipaa_partial" | "standard" | "unknown";
|
|
21680
|
+
tags?: string[];
|
|
21319
21681
|
}
|
|
21320
21682
|
/** Parameters for listing practice tools. */
|
|
21321
21683
|
interface ListPracticeToolsParams {
|
|
@@ -21366,6 +21728,65 @@ interface PatientAdherenceResponse {
|
|
|
21366
21728
|
goals: PatientAdherenceGoals;
|
|
21367
21729
|
health_metrics: PatientAdherenceHealthMetrics;
|
|
21368
21730
|
}
|
|
21731
|
+
interface CreateGoalTemplateAttributes {
|
|
21732
|
+
workspace_id: string;
|
|
21733
|
+
goal_type: string;
|
|
21734
|
+
title: string;
|
|
21735
|
+
description?: string;
|
|
21736
|
+
action_steps?: string[];
|
|
21737
|
+
priority?: "high" | "medium" | "low";
|
|
21738
|
+
category?: string;
|
|
21739
|
+
timeframe?: string;
|
|
21740
|
+
tool_ids?: string[];
|
|
21741
|
+
metadata?: Record<string, unknown>;
|
|
21742
|
+
tags?: string[];
|
|
21743
|
+
target_value?: string;
|
|
21744
|
+
unit?: string;
|
|
21745
|
+
linked_metric_type?: string;
|
|
21746
|
+
difficulty?: "beginner" | "intermediate" | "advanced";
|
|
21747
|
+
evidence_base?: string;
|
|
21748
|
+
instructions?: string;
|
|
21749
|
+
suggested_duration_days?: number;
|
|
21750
|
+
applicable_conditions?: string[];
|
|
21751
|
+
age_groups?: string[];
|
|
21752
|
+
source_reference?: string;
|
|
21753
|
+
}
|
|
21754
|
+
interface UpdateGoalTemplateAttributes {
|
|
21755
|
+
goal_type?: string;
|
|
21756
|
+
title?: string;
|
|
21757
|
+
description?: string;
|
|
21758
|
+
action_steps?: string[];
|
|
21759
|
+
priority?: "high" | "medium" | "low";
|
|
21760
|
+
category?: string;
|
|
21761
|
+
timeframe?: string;
|
|
21762
|
+
tool_ids?: string[];
|
|
21763
|
+
metadata?: Record<string, unknown>;
|
|
21764
|
+
is_active?: boolean;
|
|
21765
|
+
tags?: string[];
|
|
21766
|
+
target_value?: string;
|
|
21767
|
+
unit?: string;
|
|
21768
|
+
linked_metric_type?: string;
|
|
21769
|
+
difficulty?: "beginner" | "intermediate" | "advanced";
|
|
21770
|
+
evidence_base?: string;
|
|
21771
|
+
instructions?: string;
|
|
21772
|
+
suggested_duration_days?: number;
|
|
21773
|
+
applicable_conditions?: string[];
|
|
21774
|
+
age_groups?: string[];
|
|
21775
|
+
source_reference?: string;
|
|
21776
|
+
}
|
|
21777
|
+
interface CreateGoalFromExistingAttributes {
|
|
21778
|
+
workspace_id: string;
|
|
21779
|
+
source_template_id: string;
|
|
21780
|
+
}
|
|
21781
|
+
interface ListGoalTemplatesParams {
|
|
21782
|
+
workspace_id: string;
|
|
21783
|
+
filter?: Record<string, unknown>;
|
|
21784
|
+
sort?: string;
|
|
21785
|
+
page?: {
|
|
21786
|
+
offset?: number;
|
|
21787
|
+
limit?: number;
|
|
21788
|
+
};
|
|
21789
|
+
}
|
|
21369
21790
|
interface RecipeSearchParams {
|
|
21370
21791
|
query: string;
|
|
21371
21792
|
connector_id: string;
|
|
@@ -22013,6 +22434,17 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
22013
22434
|
* @returns `true` on successful deletion
|
|
22014
22435
|
*/
|
|
22015
22436
|
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
22437
|
+
/**
|
|
22438
|
+
* List application-level catalog practice resources.
|
|
22439
|
+
*
|
|
22440
|
+
* @param params - Optional filter/sort params. Application ID is resolved from the API key context.
|
|
22441
|
+
* @param options - Request options
|
|
22442
|
+
* @returns Array of {@link ClinicalPracticeResource} catalog records
|
|
22443
|
+
*/
|
|
22444
|
+
listCatalog: (params?: {
|
|
22445
|
+
filter?: Record<string, unknown>;
|
|
22446
|
+
sort?: string;
|
|
22447
|
+
}, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
|
|
22016
22448
|
};
|
|
22017
22449
|
/**
|
|
22018
22450
|
* Manage practice-level assessment and therapeutic tools.
|
|
@@ -22080,6 +22512,17 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
22080
22512
|
listCategories: (params: {
|
|
22081
22513
|
workspace_id: string;
|
|
22082
22514
|
}, options?: RequestOptions) => Promise<PracticeToolCategory[]>;
|
|
22515
|
+
/**
|
|
22516
|
+
* List application-level catalog practice tools.
|
|
22517
|
+
*
|
|
22518
|
+
* @param params - Optional filter/sort params. Application ID is resolved from the API key context.
|
|
22519
|
+
* @param options - Request options
|
|
22520
|
+
* @returns Array of {@link ClinicalPracticeTool} catalog records
|
|
22521
|
+
*/
|
|
22522
|
+
listCatalog: (params?: {
|
|
22523
|
+
filter?: Record<string, unknown>;
|
|
22524
|
+
sort?: string;
|
|
22525
|
+
}, options?: RequestOptions) => Promise<ClinicalPracticeTool[]>;
|
|
22083
22526
|
};
|
|
22084
22527
|
/**
|
|
22085
22528
|
* Manage assignments of practice resources to patients.
|
|
@@ -22175,14 +22618,117 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
22175
22618
|
* ```
|
|
22176
22619
|
*/
|
|
22177
22620
|
generate: (patientId: string, sessionId: string, workspaceId: string, options?: RequestOptions) => Promise<GenerateSupplementRecsResponse>;
|
|
22621
|
+
};
|
|
22622
|
+
/**
|
|
22623
|
+
* Manage reusable clinical goal templates.
|
|
22624
|
+
*
|
|
22625
|
+
* Templates are workspace-scoped patterns that practitioners can personalize
|
|
22626
|
+
* and instantiate as ClientGoals.
|
|
22627
|
+
*/
|
|
22628
|
+
goalTemplates: {
|
|
22178
22629
|
/**
|
|
22179
|
-
*
|
|
22630
|
+
* List goal templates in a workspace.
|
|
22180
22631
|
*
|
|
22181
|
-
* @param
|
|
22632
|
+
* @param params - Must include `workspace_id`
|
|
22633
|
+
* @param options - Request options
|
|
22634
|
+
* @returns Array of {@link ClinicalGoalTemplate} records
|
|
22635
|
+
*
|
|
22636
|
+
* @example
|
|
22637
|
+
* ```typescript
|
|
22638
|
+
* const templates = await client.clinical.goalTemplates.list({
|
|
22639
|
+
* workspace_id: "ws_123",
|
|
22640
|
+
* filter: { category: "nutrition" },
|
|
22641
|
+
* });
|
|
22642
|
+
* ```
|
|
22643
|
+
*/
|
|
22644
|
+
list: (params: ListGoalTemplatesParams, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
|
|
22645
|
+
/**
|
|
22646
|
+
* List practitioner's personal templates.
|
|
22647
|
+
*
|
|
22648
|
+
* @param params - Must include `created_by_id`
|
|
22649
|
+
* @param options - Request options
|
|
22650
|
+
* @returns Array of {@link ClinicalGoalTemplate} records
|
|
22651
|
+
*/
|
|
22652
|
+
listMine: (params: {
|
|
22653
|
+
created_by_id: string;
|
|
22654
|
+
page?: {
|
|
22655
|
+
offset?: number;
|
|
22656
|
+
limit?: number;
|
|
22657
|
+
};
|
|
22658
|
+
}, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
|
|
22659
|
+
/**
|
|
22660
|
+
* List distinct goal template categories with counts.
|
|
22661
|
+
*
|
|
22662
|
+
* @param params - Must include `workspace_id`
|
|
22663
|
+
* @param options - Request options
|
|
22664
|
+
* @returns Array of {@link ClinicalGoalTemplateCategory} records
|
|
22665
|
+
*/
|
|
22666
|
+
listCategories: (params: {
|
|
22667
|
+
workspace_id: string;
|
|
22668
|
+
}, options?: RequestOptions) => Promise<ClinicalGoalTemplateCategory[]>;
|
|
22669
|
+
/**
|
|
22670
|
+
* Get a single goal template by ID.
|
|
22671
|
+
*
|
|
22672
|
+
* @param id - GoalTemplate UUID
|
|
22673
|
+
* @param options - Request options
|
|
22674
|
+
* @returns {@link ClinicalGoalTemplate} record
|
|
22675
|
+
*/
|
|
22676
|
+
get: (id: string, options?: RequestOptions) => Promise<ClinicalGoalTemplate>;
|
|
22677
|
+
/**
|
|
22678
|
+
* Create a new goal template.
|
|
22679
|
+
*
|
|
22680
|
+
* @param attributes - Template creation attributes. Must include `workspace_id`, `goal_type`, and `title`.
|
|
22681
|
+
* @param options - Request options
|
|
22682
|
+
* @returns Created {@link ClinicalGoalTemplate} record
|
|
22683
|
+
*/
|
|
22684
|
+
create: (attributes: CreateGoalTemplateAttributes, options?: RequestOptions) => Promise<ClinicalGoalTemplate>;
|
|
22685
|
+
/**
|
|
22686
|
+
* Create a personalized template from an existing one.
|
|
22687
|
+
*
|
|
22688
|
+
* Copies all fields from the source template, sets `created_by_id` to the
|
|
22689
|
+
* current actor, and sets `source_template_id` as a reference.
|
|
22690
|
+
*
|
|
22691
|
+
* @param attributes - Must include `workspace_id` and `source_template_id`
|
|
22692
|
+
* @param options - Request options
|
|
22693
|
+
* @returns Created {@link ClinicalGoalTemplate} record
|
|
22694
|
+
*
|
|
22695
|
+
* @example
|
|
22696
|
+
* ```typescript
|
|
22697
|
+
* const personal = await client.clinical.goalTemplates.createFromExisting({
|
|
22698
|
+
* workspace_id: "ws_123",
|
|
22699
|
+
* source_template_id: "tmpl_abc",
|
|
22700
|
+
* });
|
|
22701
|
+
* ```
|
|
22702
|
+
*/
|
|
22703
|
+
createFromExisting: (attributes: CreateGoalFromExistingAttributes, options?: RequestOptions) => Promise<ClinicalGoalTemplate>;
|
|
22704
|
+
/**
|
|
22705
|
+
* Update a goal template.
|
|
22706
|
+
*
|
|
22707
|
+
* @param id - GoalTemplate UUID
|
|
22708
|
+
* @param attributes - Fields to update (PATCH semantics)
|
|
22709
|
+
* @param options - Request options
|
|
22710
|
+
* @returns Updated {@link ClinicalGoalTemplate} record
|
|
22711
|
+
*/
|
|
22712
|
+
update: (id: string, attributes: UpdateGoalTemplateAttributes, options?: RequestOptions) => Promise<ClinicalGoalTemplate>;
|
|
22713
|
+
/**
|
|
22714
|
+
* Delete a goal template.
|
|
22715
|
+
*
|
|
22716
|
+
* @param id - GoalTemplate UUID
|
|
22182
22717
|
* @param options - Request options
|
|
22183
22718
|
* @returns `true` on successful deletion
|
|
22184
22719
|
*/
|
|
22185
22720
|
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
22721
|
+
/**
|
|
22722
|
+
* List application-level catalog goal templates.
|
|
22723
|
+
*
|
|
22724
|
+
* @param params - Optional filter/sort params. Application ID is resolved from the API key context.
|
|
22725
|
+
* @param options - Request options
|
|
22726
|
+
* @returns Array of {@link ClinicalGoalTemplate} catalog records
|
|
22727
|
+
*/
|
|
22728
|
+
listCatalog: (params?: {
|
|
22729
|
+
filter?: Record<string, unknown>;
|
|
22730
|
+
sort?: string;
|
|
22731
|
+
}, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
|
|
22186
22732
|
};
|
|
22187
22733
|
/**
|
|
22188
22734
|
* Recipe search via configured Edamam connector.
|