@gpt-platform/admin 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.mjs CHANGED
@@ -814,7 +814,7 @@ var createClient = (config = {}) => {
814
814
  };
815
815
 
816
816
  // src/version.ts
817
- var SDK_VERSION = "0.8.0";
817
+ var SDK_VERSION = "0.8.1";
818
818
  var DEFAULT_API_VERSION = "2026-03-11";
819
819
 
820
820
  // src/base-client.ts
@@ -1407,6 +1407,25 @@ var postAdminSocialPosts = (options) => (options.client ?? client).post({
1407
1407
  ...options.headers
1408
1408
  }
1409
1409
  });
1410
+ var deleteAdminClinicalNotesById = (options) => (options.client ?? client).delete({
1411
+ security: [{ scheme: "bearer", type: "http" }],
1412
+ url: "/admin/clinical/notes/{id}",
1413
+ ...options
1414
+ });
1415
+ var getAdminClinicalNotesById = (options) => (options.client ?? client).get({
1416
+ security: [{ scheme: "bearer", type: "http" }],
1417
+ url: "/admin/clinical/notes/{id}",
1418
+ ...options
1419
+ });
1420
+ var patchAdminClinicalNotesById = (options) => (options.client ?? client).patch({
1421
+ security: [{ scheme: "bearer", type: "http" }],
1422
+ url: "/admin/clinical/notes/{id}",
1423
+ ...options,
1424
+ headers: {
1425
+ "Content-Type": "application/vnd.api+json",
1426
+ ...options.headers
1427
+ }
1428
+ });
1410
1429
  var getAdminApplications = (options) => (options.client ?? client).get({
1411
1430
  security: [{ scheme: "bearer", type: "http" }],
1412
1431
  url: "/admin/applications",
@@ -1449,6 +1468,20 @@ var patchAdminSupportTicketsByIdClose = (options) => (options.client ?? client).
1449
1468
  ...options.headers
1450
1469
  }
1451
1470
  });
1471
+ var getAdminClinicalSessions = (options) => (options.client ?? client).get({
1472
+ security: [{ scheme: "bearer", type: "http" }],
1473
+ url: "/admin/clinical/sessions",
1474
+ ...options
1475
+ });
1476
+ var postAdminClinicalSessions = (options) => (options.client ?? client).post({
1477
+ security: [{ scheme: "bearer", type: "http" }],
1478
+ url: "/admin/clinical/sessions",
1479
+ ...options,
1480
+ headers: {
1481
+ "Content-Type": "application/vnd.api+json",
1482
+ ...options.headers
1483
+ }
1484
+ });
1452
1485
  var deleteAdminSupportTicketsById = (options) => (options.client ?? client).delete({
1453
1486
  security: [{ scheme: "bearer", type: "http" }],
1454
1487
  url: "/admin/support/tickets/{id}",
@@ -1590,6 +1623,11 @@ var getAdminAgents = (options) => (options.client ?? client).get({
1590
1623
  url: "/admin/agents",
1591
1624
  ...options
1592
1625
  });
1626
+ var getAdminClinicalGoalTemplatesMine = (options) => (options.client ?? client).get({
1627
+ security: [{ scheme: "bearer", type: "http" }],
1628
+ url: "/admin/clinical/goal-templates/mine",
1629
+ ...options
1630
+ });
1593
1631
  var deleteAdminBrandIdentitiesById = (options) => (options.client ?? client).delete({
1594
1632
  security: [{ scheme: "bearer", type: "http" }],
1595
1633
  url: "/admin/brand-identities/{id}",
@@ -1609,6 +1647,11 @@ var patchAdminBrandIdentitiesById = (options) => (options.client ?? client).patc
1609
1647
  ...options.headers
1610
1648
  }
1611
1649
  });
1650
+ var getAdminClinicalHealthMetricsBySession = (options) => (options.client ?? client).get({
1651
+ security: [{ scheme: "bearer", type: "http" }],
1652
+ url: "/admin/clinical/health-metrics/by-session",
1653
+ ...options
1654
+ });
1612
1655
  var deleteAdminAgentVersionsById = (options) => (options.client ?? client).delete({
1613
1656
  security: [{ scheme: "bearer", type: "http" }],
1614
1657
  url: "/admin/agent-versions/{id}",
@@ -1675,6 +1718,20 @@ var postAdminSchedulingEvents = (options) => (options.client ?? client).post({
1675
1718
  ...options.headers
1676
1719
  }
1677
1720
  });
1721
+ var getAdminClinicalPracticeResources = (options) => (options.client ?? client).get({
1722
+ security: [{ scheme: "bearer", type: "http" }],
1723
+ url: "/admin/clinical/practice-resources",
1724
+ ...options
1725
+ });
1726
+ var postAdminClinicalPracticeResources = (options) => (options.client ?? client).post({
1727
+ security: [{ scheme: "bearer", type: "http" }],
1728
+ url: "/admin/clinical/practice-resources",
1729
+ ...options,
1730
+ headers: {
1731
+ "Content-Type": "application/vnd.api+json",
1732
+ ...options.headers
1733
+ }
1734
+ });
1678
1735
  var getAdminLlmAnalyticsSummary = (options) => (options.client ?? client).get({
1679
1736
  security: [{ scheme: "bearer", type: "http" }],
1680
1737
  url: "/admin/llm-analytics/summary",
@@ -1694,6 +1751,20 @@ var postAdminTenantsPersonal = (options) => (options.client ?? client).post({
1694
1751
  ...options.headers
1695
1752
  }
1696
1753
  });
1754
+ var getAdminClinicalClientGoals = (options) => (options.client ?? client).get({
1755
+ security: [{ scheme: "bearer", type: "http" }],
1756
+ url: "/admin/clinical/client-goals",
1757
+ ...options
1758
+ });
1759
+ var postAdminClinicalClientGoals = (options) => (options.client ?? client).post({
1760
+ security: [{ scheme: "bearer", type: "http" }],
1761
+ url: "/admin/clinical/client-goals",
1762
+ ...options,
1763
+ headers: {
1764
+ "Content-Type": "application/vnd.api+json",
1765
+ ...options.headers
1766
+ }
1767
+ });
1697
1768
  var patchAdminTenantsByIdAutoTopUp = (options) => (options.client ?? client).patch({
1698
1769
  security: [{ scheme: "bearer", type: "http" }],
1699
1770
  url: "/admin/tenants/{id}/auto-top-up",
@@ -1722,6 +1793,25 @@ var patchAdminTenantsByIdConvertToOrg = (options) => (options.client ?? client).
1722
1793
  ...options.headers
1723
1794
  }
1724
1795
  });
1796
+ var deleteAdminClinicalHealthMetricsById = (options) => (options.client ?? client).delete({
1797
+ security: [{ scheme: "bearer", type: "http" }],
1798
+ url: "/admin/clinical/health-metrics/{id}",
1799
+ ...options
1800
+ });
1801
+ var getAdminClinicalHealthMetricsById = (options) => (options.client ?? client).get({
1802
+ security: [{ scheme: "bearer", type: "http" }],
1803
+ url: "/admin/clinical/health-metrics/{id}",
1804
+ ...options
1805
+ });
1806
+ var patchAdminClinicalHealthMetricsById = (options) => (options.client ?? client).patch({
1807
+ security: [{ scheme: "bearer", type: "http" }],
1808
+ url: "/admin/clinical/health-metrics/{id}",
1809
+ ...options,
1810
+ headers: {
1811
+ "Content-Type": "application/vnd.api+json",
1812
+ ...options.headers
1813
+ }
1814
+ });
1725
1815
  var getAdminFeatureUsagesById = (options) => (options.client ?? client).get({
1726
1816
  security: [{ scheme: "bearer", type: "http" }],
1727
1817
  url: "/admin/feature-usages/{id}",
@@ -2143,6 +2233,20 @@ var patchAdminStorageFilesByIdConfirmUpload = (options) => (options.client ?? cl
2143
2233
  ...options.headers
2144
2234
  }
2145
2235
  });
2236
+ var getAdminClinicalGoalTemplatesCatalog = (options) => (options.client ?? client).get({
2237
+ security: [{ scheme: "bearer", type: "http" }],
2238
+ url: "/admin/clinical/goal-templates/catalog",
2239
+ ...options
2240
+ });
2241
+ var postAdminClinicalGoalTemplatesCatalog = (options) => (options.client ?? client).post({
2242
+ security: [{ scheme: "bearer", type: "http" }],
2243
+ url: "/admin/clinical/goal-templates/catalog",
2244
+ ...options,
2245
+ headers: {
2246
+ "Content-Type": "application/vnd.api+json",
2247
+ ...options.headers
2248
+ }
2249
+ });
2146
2250
  var getAdminSchedulingEventsById = (options) => (options.client ?? client).get({
2147
2251
  security: [{ scheme: "bearer", type: "http" }],
2148
2252
  url: "/admin/scheduling/events/{id}",
@@ -2180,6 +2284,25 @@ var postAdminLlmAnalytics = (options) => (options.client ?? client).post({
2180
2284
  ...options.headers
2181
2285
  }
2182
2286
  });
2287
+ var deleteAdminClinicalPracticeToolsCatalogById = (options) => (options.client ?? client).delete({
2288
+ security: [{ scheme: "bearer", type: "http" }],
2289
+ url: "/admin/clinical/practice-tools/catalog/{id}",
2290
+ ...options
2291
+ });
2292
+ var getAdminClinicalPracticeToolsCatalogById = (options) => (options.client ?? client).get({
2293
+ security: [{ scheme: "bearer", type: "http" }],
2294
+ url: "/admin/clinical/practice-tools/catalog/{id}",
2295
+ ...options
2296
+ });
2297
+ var patchAdminClinicalPracticeToolsCatalogById = (options) => (options.client ?? client).patch({
2298
+ security: [{ scheme: "bearer", type: "http" }],
2299
+ url: "/admin/clinical/practice-tools/catalog/{id}",
2300
+ ...options,
2301
+ headers: {
2302
+ "Content-Type": "application/vnd.api+json",
2303
+ ...options.headers
2304
+ }
2305
+ });
2183
2306
  var getAdminSchedulingEventsByParticipant = (options) => (options.client ?? client).get({
2184
2307
  security: [{ scheme: "bearer", type: "http" }],
2185
2308
  url: "/admin/scheduling/events/by_participant",
@@ -2204,6 +2327,25 @@ var getAdminThreadsSearch = (options) => (options.client ?? client).get({
2204
2327
  url: "/admin/threads/search",
2205
2328
  ...options
2206
2329
  });
2330
+ var deleteAdminClinicalPracticeResourcesById = (options) => (options.client ?? client).delete({
2331
+ security: [{ scheme: "bearer", type: "http" }],
2332
+ url: "/admin/clinical/practice-resources/{id}",
2333
+ ...options
2334
+ });
2335
+ var getAdminClinicalPracticeResourcesById = (options) => (options.client ?? client).get({
2336
+ security: [{ scheme: "bearer", type: "http" }],
2337
+ url: "/admin/clinical/practice-resources/{id}",
2338
+ ...options
2339
+ });
2340
+ var patchAdminClinicalPracticeResourcesById = (options) => (options.client ?? client).patch({
2341
+ security: [{ scheme: "bearer", type: "http" }],
2342
+ url: "/admin/clinical/practice-resources/{id}",
2343
+ ...options,
2344
+ headers: {
2345
+ "Content-Type": "application/vnd.api+json",
2346
+ ...options.headers
2347
+ }
2348
+ });
2207
2349
  var getAdminAgentsByIdTrainingExamples = (options) => (options.client ?? client).get({
2208
2350
  security: [{ scheme: "bearer", type: "http" }],
2209
2351
  url: "/admin/agents/{id}/training-examples",
@@ -2248,6 +2390,20 @@ var getAdminWebhookDeliveriesById = (options) => (options.client ?? client).get(
2248
2390
  url: "/admin/webhook-deliveries/{id}",
2249
2391
  ...options
2250
2392
  });
2393
+ var getAdminClinicalGoalTemplates = (options) => (options.client ?? client).get({
2394
+ security: [{ scheme: "bearer", type: "http" }],
2395
+ url: "/admin/clinical/goal-templates",
2396
+ ...options
2397
+ });
2398
+ var postAdminClinicalGoalTemplates = (options) => (options.client ?? client).post({
2399
+ security: [{ scheme: "bearer", type: "http" }],
2400
+ url: "/admin/clinical/goal-templates",
2401
+ ...options,
2402
+ headers: {
2403
+ "Content-Type": "application/vnd.api+json",
2404
+ ...options.headers
2405
+ }
2406
+ });
2251
2407
  var patchAdminThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
2252
2408
  security: [{ scheme: "bearer", type: "http" }],
2253
2409
  url: "/admin/threads/{id}/unarchive",
@@ -2384,6 +2540,20 @@ var patchAdminStorageFilesByIdUpdateMetadata = (options) => (options.client ?? c
2384
2540
  ...options.headers
2385
2541
  }
2386
2542
  });
2543
+ var getAdminClinicalDeliveries = (options) => (options.client ?? client).get({
2544
+ security: [{ scheme: "bearer", type: "http" }],
2545
+ url: "/admin/clinical/deliveries",
2546
+ ...options
2547
+ });
2548
+ var postAdminClinicalDeliveries = (options) => (options.client ?? client).post({
2549
+ security: [{ scheme: "bearer", type: "http" }],
2550
+ url: "/admin/clinical/deliveries",
2551
+ ...options,
2552
+ headers: {
2553
+ "Content-Type": "application/vnd.api+json",
2554
+ ...options.headers
2555
+ }
2556
+ });
2387
2557
  var getAdminThreadsByIdMessages = (options) => (options.client ?? client).get({
2388
2558
  security: [{ scheme: "bearer", type: "http" }],
2389
2559
  url: "/admin/threads/{id}/messages",
@@ -2750,6 +2920,25 @@ var postAdminConnectorsOauthAppConfigs = (options) => (options.client ?? client)
2750
2920
  ...options.headers
2751
2921
  }
2752
2922
  });
2923
+ var deleteAdminClinicalSessionsById = (options) => (options.client ?? client).delete({
2924
+ security: [{ scheme: "bearer", type: "http" }],
2925
+ url: "/admin/clinical/sessions/{id}",
2926
+ ...options
2927
+ });
2928
+ var getAdminClinicalSessionsById = (options) => (options.client ?? client).get({
2929
+ security: [{ scheme: "bearer", type: "http" }],
2930
+ url: "/admin/clinical/sessions/{id}",
2931
+ ...options
2932
+ });
2933
+ var patchAdminClinicalSessionsById = (options) => (options.client ?? client).patch({
2934
+ security: [{ scheme: "bearer", type: "http" }],
2935
+ url: "/admin/clinical/sessions/{id}",
2936
+ ...options,
2937
+ headers: {
2938
+ "Content-Type": "application/vnd.api+json",
2939
+ ...options.headers
2940
+ }
2941
+ });
2753
2942
  var deleteAdminPlatformTonesById = (options) => (options.client ?? client).delete({
2754
2943
  security: [{ scheme: "bearer", type: "http" }],
2755
2944
  url: "/admin/platform-tones/{id}",
@@ -2849,6 +3038,11 @@ var postAdminExtractionDocumentsBeginUpload = (options) => (options.client ?? cl
2849
3038
  ...options.headers
2850
3039
  }
2851
3040
  });
3041
+ var getAdminClinicalSessionsByIdSessionNotes = (options) => (options.client ?? client).get({
3042
+ security: [{ scheme: "bearer", type: "http" }],
3043
+ url: "/admin/clinical/sessions/{id}/session_notes",
3044
+ ...options
3045
+ });
2852
3046
  var postAdminConnectorsOauthInitiate = (options) => (options.client ?? client).post({
2853
3047
  security: [{ scheme: "bearer", type: "http" }],
2854
3048
  url: "/admin/connectors/oauth/initiate",
@@ -2928,6 +3122,11 @@ var postAdminTrainingExamplesSearch = (options) => (options.client ?? client).po
2928
3122
  ...options.headers
2929
3123
  }
2930
3124
  });
3125
+ var getAdminClinicalMealPlansByWorkspace = (options) => (options.client ?? client).get({
3126
+ security: [{ scheme: "bearer", type: "http" }],
3127
+ url: "/admin/clinical/meal-plans/by-workspace",
3128
+ ...options
3129
+ });
2931
3130
  var patchAdminAccountsByIdDebit = (options) => (options.client ?? client).patch({
2932
3131
  security: [{ scheme: "bearer", type: "http" }],
2933
3132
  url: "/admin/accounts/{id}/debit",
@@ -2937,6 +3136,20 @@ var patchAdminAccountsByIdDebit = (options) => (options.client ?? client).patch(
2937
3136
  ...options.headers
2938
3137
  }
2939
3138
  });
3139
+ var getAdminClinicalPracticeResourcesCatalog = (options) => (options.client ?? client).get({
3140
+ security: [{ scheme: "bearer", type: "http" }],
3141
+ url: "/admin/clinical/practice-resources/catalog",
3142
+ ...options
3143
+ });
3144
+ var postAdminClinicalPracticeResourcesCatalog = (options) => (options.client ?? client).post({
3145
+ security: [{ scheme: "bearer", type: "http" }],
3146
+ url: "/admin/clinical/practice-resources/catalog",
3147
+ ...options,
3148
+ headers: {
3149
+ "Content-Type": "application/vnd.api+json",
3150
+ ...options.headers
3151
+ }
3152
+ });
2940
3153
  var getAdminVoiceTranscriptionResultsById = (options) => (options.client ?? client).get({
2941
3154
  security: [{ scheme: "bearer", type: "http" }],
2942
3155
  url: "/admin/voice/transcription-results/{id}",
@@ -2956,6 +3169,11 @@ var postAdminPricingStrategies = (options) => (options.client ?? client).post({
2956
3169
  ...options.headers
2957
3170
  }
2958
3171
  });
3172
+ var getAdminClinicalGoalTemplatesCategories = (options) => (options.client ?? client).get({
3173
+ security: [{ scheme: "bearer", type: "http" }],
3174
+ url: "/admin/clinical/goal-templates/categories",
3175
+ ...options
3176
+ });
2959
3177
  var getAdminExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
2960
3178
  security: [{ scheme: "bearer", type: "http" }],
2961
3179
  url: "/admin/extraction/documents/{id}/view",
@@ -3085,6 +3303,11 @@ var getAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashed = (options) => (opt
3085
3303
  url: "/admin/extraction/documents/workspace/{workspace_id}/trashed",
3086
3304
  ...options
3087
3305
  });
3306
+ var getAdminClinicalGoalTemplatesCategoriesCatalog = (options) => (options.client ?? client).get({
3307
+ security: [{ scheme: "bearer", type: "http" }],
3308
+ url: "/admin/clinical/goal-templates/categories/catalog",
3309
+ ...options
3310
+ });
3088
3311
  var patchAdminBrandIdentitiesByIdSetDefault = (options) => (options.client ?? client).patch({
3089
3312
  security: [{ scheme: "bearer", type: "http" }],
3090
3313
  url: "/admin/brand-identities/{id}/set-default",
@@ -3178,6 +3401,20 @@ var getAdminCrmContactsWorkspaceByWorkspaceIdArchived = (options) => (options.cl
3178
3401
  url: "/admin/crm/contacts/workspace/{workspace_id}/archived",
3179
3402
  ...options
3180
3403
  });
3404
+ var getAdminClinicalPracticeTools = (options) => (options.client ?? client).get({
3405
+ security: [{ scheme: "bearer", type: "http" }],
3406
+ url: "/admin/clinical/practice-tools",
3407
+ ...options
3408
+ });
3409
+ var postAdminClinicalPracticeTools = (options) => (options.client ?? client).post({
3410
+ security: [{ scheme: "bearer", type: "http" }],
3411
+ url: "/admin/clinical/practice-tools",
3412
+ ...options,
3413
+ headers: {
3414
+ "Content-Type": "application/vnd.api+json",
3415
+ ...options.headers
3416
+ }
3417
+ });
3181
3418
  var patchAdminSocialPostsByIdRetry = (options) => (options.client ?? client).patch({
3182
3419
  security: [{ scheme: "bearer", type: "http" }],
3183
3420
  url: "/admin/social/posts/{id}/retry",
@@ -3187,6 +3424,11 @@ var patchAdminSocialPostsByIdRetry = (options) => (options.client ?? client).pat
3187
3424
  ...options.headers
3188
3425
  }
3189
3426
  });
3427
+ var getAdminClinicalSupplementRecCache = (options) => (options.client ?? client).get({
3428
+ security: [{ scheme: "bearer", type: "http" }],
3429
+ url: "/admin/clinical/supplement-rec-cache",
3430
+ ...options
3431
+ });
3190
3432
  var getAdminEmailMarketingCampaignsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
3191
3433
  security: [{ scheme: "bearer", type: "http" }],
3192
3434
  url: "/admin/email-marketing/campaigns/workspace/{workspace_id}",
@@ -3277,6 +3519,11 @@ var patchAdminTenantsByIdTransferOwnership = (options) => (options.client ?? cli
3277
3519
  ...options.headers
3278
3520
  }
3279
3521
  });
3522
+ var getAdminClinicalNotesByNoteIdVersionsById = (options) => (options.client ?? client).get({
3523
+ security: [{ scheme: "bearer", type: "http" }],
3524
+ url: "/admin/clinical/notes/{note_id}/versions/{id}",
3525
+ ...options
3526
+ });
3280
3527
  var patchAdminWalletPlan = (options) => (options.client ?? client).patch({
3281
3528
  security: [{ scheme: "bearer", type: "http" }],
3282
3529
  url: "/admin/wallet/plan",
@@ -3338,6 +3585,11 @@ var getAdminEmailTrackingEventsById = (options) => (options.client ?? client).ge
3338
3585
  url: "/admin/email/tracking-events/{id}",
3339
3586
  ...options
3340
3587
  });
3588
+ var getAdminClinicalPatientsByIdResourceAssignments = (options) => (options.client ?? client).get({
3589
+ security: [{ scheme: "bearer", type: "http" }],
3590
+ url: "/admin/clinical/patients/{id}/resource_assignments",
3591
+ ...options
3592
+ });
3341
3593
  var deleteAdminEmailMarketingSenderProfilesById = (options) => (options.client ?? client).delete({
3342
3594
  security: [{ scheme: "bearer", type: "http" }],
3343
3595
  url: "/admin/email-marketing/sender-profiles/{id}",
@@ -3528,6 +3780,11 @@ var getAdminSocialMetricsPostBySocialPostIdLatest = (options) => (options.client
3528
3780
  url: "/admin/social/metrics/post/{social_post_id}/latest",
3529
3781
  ...options
3530
3782
  });
3783
+ var getAdminClinicalSessionsByIdMealPlans = (options) => (options.client ?? client).get({
3784
+ security: [{ scheme: "bearer", type: "http" }],
3785
+ url: "/admin/clinical/sessions/{id}/meal_plans",
3786
+ ...options
3787
+ });
3531
3788
  var getAdminCrmSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
3532
3789
  security: [{ scheme: "bearer", type: "http" }],
3533
3790
  url: "/admin/crm/sync-configs/workspace/{workspace_id}",
@@ -3593,6 +3850,11 @@ var patchAdminSocialPostsByIdSeo = (options) => (options.client ?? client).patch
3593
3850
  ...options.headers
3594
3851
  }
3595
3852
  });
3853
+ var getAdminClinicalDeliveriesBySession = (options) => (options.client ?? client).get({
3854
+ security: [{ scheme: "bearer", type: "http" }],
3855
+ url: "/admin/clinical/deliveries/by-session",
3856
+ ...options
3857
+ });
3596
3858
  var postAdminExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
3597
3859
  security: [{ scheme: "bearer", type: "http" }],
3598
3860
  url: "/admin/extraction/documents/bulk-reprocess",
@@ -3602,6 +3864,11 @@ var postAdminExtractionDocumentsBulkReprocess = (options) => (options.client ??
3602
3864
  ...options.headers
3603
3865
  }
3604
3866
  });
3867
+ var getAdminClinicalPatientsByIdHealthMetrics = (options) => (options.client ?? client).get({
3868
+ security: [{ scheme: "bearer", type: "http" }],
3869
+ url: "/admin/clinical/patients/{id}/health_metrics",
3870
+ ...options
3871
+ });
3605
3872
  var getAdminEmailOutboundEmailsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
3606
3873
  security: [{ scheme: "bearer", type: "http" }],
3607
3874
  url: "/admin/email/outbound-emails/workspace/{workspace_id}",
@@ -3612,6 +3879,25 @@ var getAdminBucketsByIdStats = (options) => (options.client ?? client).get({
3612
3879
  url: "/admin/buckets/{id}/stats",
3613
3880
  ...options
3614
3881
  });
3882
+ var deleteAdminClinicalClientResourceAssignmentsById = (options) => (options.client ?? client).delete({
3883
+ security: [{ scheme: "bearer", type: "http" }],
3884
+ url: "/admin/clinical/client-resource-assignments/{id}",
3885
+ ...options
3886
+ });
3887
+ var getAdminClinicalClientResourceAssignmentsById = (options) => (options.client ?? client).get({
3888
+ security: [{ scheme: "bearer", type: "http" }],
3889
+ url: "/admin/clinical/client-resource-assignments/{id}",
3890
+ ...options
3891
+ });
3892
+ var patchAdminClinicalClientResourceAssignmentsById = (options) => (options.client ?? client).patch({
3893
+ security: [{ scheme: "bearer", type: "http" }],
3894
+ url: "/admin/clinical/client-resource-assignments/{id}",
3895
+ ...options,
3896
+ headers: {
3897
+ "Content-Type": "application/vnd.api+json",
3898
+ ...options.headers
3899
+ }
3900
+ });
3615
3901
  var getAdminUsersByEmail = (options) => (options.client ?? client).get({
3616
3902
  security: [{ scheme: "bearer", type: "http" }],
3617
3903
  url: "/admin/users/by-email",
@@ -3729,6 +4015,20 @@ var patchAdminAgentDeploymentsById = (options) => (options.client ?? client).pat
3729
4015
  ...options.headers
3730
4016
  }
3731
4017
  });
4018
+ var getAdminClinicalSupplementRecCacheById = (options) => (options.client ?? client).get({
4019
+ security: [{ scheme: "bearer", type: "http" }],
4020
+ url: "/admin/clinical/supplement-rec-cache/{id}",
4021
+ ...options
4022
+ });
4023
+ var patchAdminClinicalSupplementRecCacheById = (options) => (options.client ?? client).patch({
4024
+ security: [{ scheme: "bearer", type: "http" }],
4025
+ url: "/admin/clinical/supplement-rec-cache/{id}",
4026
+ ...options,
4027
+ headers: {
4028
+ "Content-Type": "application/vnd.api+json",
4029
+ ...options.headers
4030
+ }
4031
+ });
3732
4032
  var getAdminCrawlerSiteConfigs = (options) => (options.client ?? client).get({
3733
4033
  security: [{ scheme: "bearer", type: "http" }],
3734
4034
  url: "/admin/crawler/site-configs",
@@ -4111,11 +4411,39 @@ var patchAdminCrmContactsByIdArchive = (options) => (options.client ?? client).p
4111
4411
  ...options.headers
4112
4412
  }
4113
4413
  });
4414
+ var deleteAdminClinicalGoalTemplatesById = (options) => (options.client ?? client).delete({
4415
+ security: [{ scheme: "bearer", type: "http" }],
4416
+ url: "/admin/clinical/goal-templates/{id}",
4417
+ ...options
4418
+ });
4419
+ var getAdminClinicalGoalTemplatesById = (options) => (options.client ?? client).get({
4420
+ security: [{ scheme: "bearer", type: "http" }],
4421
+ url: "/admin/clinical/goal-templates/{id}",
4422
+ ...options
4423
+ });
4424
+ var patchAdminClinicalGoalTemplatesById = (options) => (options.client ?? client).patch({
4425
+ security: [{ scheme: "bearer", type: "http" }],
4426
+ url: "/admin/clinical/goal-templates/{id}",
4427
+ ...options,
4428
+ headers: {
4429
+ "Content-Type": "application/vnd.api+json",
4430
+ ...options.headers
4431
+ }
4432
+ });
4114
4433
  var getAdminTenantsByTenantIdWorkspaceStats = (options) => (options.client ?? client).get({
4115
4434
  security: [{ scheme: "bearer", type: "http" }],
4116
4435
  url: "/admin/tenants/{tenant_id}/workspace_stats",
4117
4436
  ...options
4118
4437
  });
4438
+ var patchAdminClinicalNotesByIdApprove = (options) => (options.client ?? client).patch({
4439
+ security: [{ scheme: "bearer", type: "http" }],
4440
+ url: "/admin/clinical/notes/{id}/approve",
4441
+ ...options,
4442
+ headers: {
4443
+ "Content-Type": "application/vnd.api+json",
4444
+ ...options.headers
4445
+ }
4446
+ });
4119
4447
  var postAdminAgentsByIdTest = (options) => (options.client ?? client).post({
4120
4448
  security: [{ scheme: "bearer", type: "http" }],
4121
4449
  url: "/admin/agents/{id}/test",
@@ -4139,6 +4467,11 @@ var patchAdminSchedulingLocationsById = (options) => (options.client ?? client).
4139
4467
  ...options.headers
4140
4468
  }
4141
4469
  });
4470
+ var getAdminClinicalNotesByNoteIdVersions = (options) => (options.client ?? client).get({
4471
+ security: [{ scheme: "bearer", type: "http" }],
4472
+ url: "/admin/clinical/notes/{note_id}/versions",
4473
+ ...options
4474
+ });
4142
4475
  var postAdminCrmExports = (options) => (options.client ?? client).post({
4143
4476
  security: [{ scheme: "bearer", type: "http" }],
4144
4477
  url: "/admin/crm/exports",
@@ -4217,6 +4550,25 @@ var getAdminExtractionChunkEntityLinksDocumentByDocumentId = (options) => (optio
4217
4550
  url: "/admin/extraction/chunk-entity-links/document/{document_id}",
4218
4551
  ...options
4219
4552
  });
4553
+ var deleteAdminClinicalClientSupplementsById = (options) => (options.client ?? client).delete({
4554
+ security: [{ scheme: "bearer", type: "http" }],
4555
+ url: "/admin/clinical/client-supplements/{id}",
4556
+ ...options
4557
+ });
4558
+ var getAdminClinicalClientSupplementsById = (options) => (options.client ?? client).get({
4559
+ security: [{ scheme: "bearer", type: "http" }],
4560
+ url: "/admin/clinical/client-supplements/{id}",
4561
+ ...options
4562
+ });
4563
+ var patchAdminClinicalClientSupplementsById = (options) => (options.client ?? client).patch({
4564
+ security: [{ scheme: "bearer", type: "http" }],
4565
+ url: "/admin/clinical/client-supplements/{id}",
4566
+ ...options,
4567
+ headers: {
4568
+ "Content-Type": "application/vnd.api+json",
4569
+ ...options.headers
4570
+ }
4571
+ });
4220
4572
  var postAdminCrmPipelines = (options) => (options.client ?? client).post({
4221
4573
  security: [{ scheme: "bearer", type: "http" }],
4222
4574
  url: "/admin/crm/pipelines",
@@ -4264,6 +4616,15 @@ var postAdminCrmRelationshipTypes = (options) => (options.client ?? client).post
4264
4616
  ...options.headers
4265
4617
  }
4266
4618
  });
4619
+ var postAdminClinicalGoalTemplatesFromExisting = (options) => (options.client ?? client).post({
4620
+ security: [{ scheme: "bearer", type: "http" }],
4621
+ url: "/admin/clinical/goal-templates/from-existing",
4622
+ ...options,
4623
+ headers: {
4624
+ "Content-Type": "application/vnd.api+json",
4625
+ ...options.headers
4626
+ }
4627
+ });
4267
4628
  var getAdminThreadsStats = (options) => (options.client ?? client).get({
4268
4629
  security: [{ scheme: "bearer", type: "http" }],
4269
4630
  url: "/admin/threads/stats",
@@ -4344,21 +4705,40 @@ var getAdminLlmAnalyticsById = (options) => (options.client ?? client).get({
4344
4705
  url: "/admin/llm-analytics/{id}",
4345
4706
  ...options
4346
4707
  });
4347
- var getAdminSocialPostsCampaignBySocialCampaignId = (options) => (options.client ?? client).get({
4708
+ var deleteAdminClinicalGoalTemplatesCatalogById = (options) => (options.client ?? client).delete({
4348
4709
  security: [{ scheme: "bearer", type: "http" }],
4349
- url: "/admin/social/posts/campaign/{social_campaign_id}",
4710
+ url: "/admin/clinical/goal-templates/catalog/{id}",
4350
4711
  ...options
4351
4712
  });
4352
- var postAdminAgentVersionsByIdRemoveSystemField = (options) => (options.client ?? client).post({
4713
+ var getAdminClinicalGoalTemplatesCatalogById = (options) => (options.client ?? client).get({
4353
4714
  security: [{ scheme: "bearer", type: "http" }],
4354
- url: "/admin/agent-versions/{id}/remove-system-field",
4715
+ url: "/admin/clinical/goal-templates/catalog/{id}",
4716
+ ...options
4717
+ });
4718
+ var patchAdminClinicalGoalTemplatesCatalogById = (options) => (options.client ?? client).patch({
4719
+ security: [{ scheme: "bearer", type: "http" }],
4720
+ url: "/admin/clinical/goal-templates/catalog/{id}",
4355
4721
  ...options,
4356
4722
  headers: {
4357
4723
  "Content-Type": "application/vnd.api+json",
4358
4724
  ...options.headers
4359
4725
  }
4360
4726
  });
4361
- var postAdminCrmFieldDefinitions = (options) => (options.client ?? client).post({
4727
+ var getAdminSocialPostsCampaignBySocialCampaignId = (options) => (options.client ?? client).get({
4728
+ security: [{ scheme: "bearer", type: "http" }],
4729
+ url: "/admin/social/posts/campaign/{social_campaign_id}",
4730
+ ...options
4731
+ });
4732
+ var postAdminAgentVersionsByIdRemoveSystemField = (options) => (options.client ?? client).post({
4733
+ security: [{ scheme: "bearer", type: "http" }],
4734
+ url: "/admin/agent-versions/{id}/remove-system-field",
4735
+ ...options,
4736
+ headers: {
4737
+ "Content-Type": "application/vnd.api+json",
4738
+ ...options.headers
4739
+ }
4740
+ });
4741
+ var postAdminCrmFieldDefinitions = (options) => (options.client ?? client).post({
4362
4742
  security: [{ scheme: "bearer", type: "http" }],
4363
4743
  url: "/admin/crm/field-definitions",
4364
4744
  ...options,
@@ -4410,6 +4790,25 @@ var getAdminSchedulingRemindersById = (options) => (options.client ?? client).ge
4410
4790
  url: "/admin/scheduling/reminders/{id}",
4411
4791
  ...options
4412
4792
  });
4793
+ var deleteAdminClinicalPatientsById = (options) => (options.client ?? client).delete({
4794
+ security: [{ scheme: "bearer", type: "http" }],
4795
+ url: "/admin/clinical/patients/{id}",
4796
+ ...options
4797
+ });
4798
+ var getAdminClinicalPatientsById = (options) => (options.client ?? client).get({
4799
+ security: [{ scheme: "bearer", type: "http" }],
4800
+ url: "/admin/clinical/patients/{id}",
4801
+ ...options
4802
+ });
4803
+ var patchAdminClinicalPatientsById = (options) => (options.client ?? client).patch({
4804
+ security: [{ scheme: "bearer", type: "http" }],
4805
+ url: "/admin/clinical/patients/{id}",
4806
+ ...options,
4807
+ headers: {
4808
+ "Content-Type": "application/vnd.api+json",
4809
+ ...options.headers
4810
+ }
4811
+ });
4413
4812
  var getAdminPlanFeatureAllocations = (options) => (options.client ?? client).get({
4414
4813
  security: [{ scheme: "bearer", type: "http" }],
4415
4814
  url: "/admin/plan-feature-allocations",
@@ -4507,6 +4906,34 @@ var postAdminWholesaleAgreements = (options) => (options.client ?? client).post(
4507
4906
  ...options.headers
4508
4907
  }
4509
4908
  });
4909
+ var deleteAdminClinicalClientGoalsById = (options) => (options.client ?? client).delete({
4910
+ security: [{ scheme: "bearer", type: "http" }],
4911
+ url: "/admin/clinical/client-goals/{id}",
4912
+ ...options
4913
+ });
4914
+ var getAdminClinicalClientGoalsById = (options) => (options.client ?? client).get({
4915
+ security: [{ scheme: "bearer", type: "http" }],
4916
+ url: "/admin/clinical/client-goals/{id}",
4917
+ ...options
4918
+ });
4919
+ var patchAdminClinicalClientGoalsById = (options) => (options.client ?? client).patch({
4920
+ security: [{ scheme: "bearer", type: "http" }],
4921
+ url: "/admin/clinical/client-goals/{id}",
4922
+ ...options,
4923
+ headers: {
4924
+ "Content-Type": "application/vnd.api+json",
4925
+ ...options.headers
4926
+ }
4927
+ });
4928
+ var postAdminClinicalClientGoalsFromTemplate = (options) => (options.client ?? client).post({
4929
+ security: [{ scheme: "bearer", type: "http" }],
4930
+ url: "/admin/clinical/client-goals/from-template",
4931
+ ...options,
4932
+ headers: {
4933
+ "Content-Type": "application/vnd.api+json",
4934
+ ...options.headers
4935
+ }
4936
+ });
4510
4937
  var deleteAdminSocialTrendingHistoryById = (options) => (options.client ?? client).delete({
4511
4938
  security: [{ scheme: "bearer", type: "http" }],
4512
4939
  url: "/admin/social/trending/history/{id}",
@@ -4619,6 +5046,44 @@ var patchAdminApiKeysByIdRevoke = (options) => (options.client ?? client).patch(
4619
5046
  ...options.headers
4620
5047
  }
4621
5048
  });
5049
+ var deleteAdminClinicalPracticeResourcesCatalogById = (options) => (options.client ?? client).delete({
5050
+ security: [{ scheme: "bearer", type: "http" }],
5051
+ url: "/admin/clinical/practice-resources/catalog/{id}",
5052
+ ...options
5053
+ });
5054
+ var getAdminClinicalPracticeResourcesCatalogById = (options) => (options.client ?? client).get({
5055
+ security: [{ scheme: "bearer", type: "http" }],
5056
+ url: "/admin/clinical/practice-resources/catalog/{id}",
5057
+ ...options
5058
+ });
5059
+ var patchAdminClinicalPracticeResourcesCatalogById = (options) => (options.client ?? client).patch({
5060
+ security: [{ scheme: "bearer", type: "http" }],
5061
+ url: "/admin/clinical/practice-resources/catalog/{id}",
5062
+ ...options,
5063
+ headers: {
5064
+ "Content-Type": "application/vnd.api+json",
5065
+ ...options.headers
5066
+ }
5067
+ });
5068
+ var getAdminClinicalNotes = (options) => (options.client ?? client).get({
5069
+ security: [{ scheme: "bearer", type: "http" }],
5070
+ url: "/admin/clinical/notes",
5071
+ ...options
5072
+ });
5073
+ var postAdminClinicalNotes = (options) => (options.client ?? client).post({
5074
+ security: [{ scheme: "bearer", type: "http" }],
5075
+ url: "/admin/clinical/notes",
5076
+ ...options,
5077
+ headers: {
5078
+ "Content-Type": "application/vnd.api+json",
5079
+ ...options.headers
5080
+ }
5081
+ });
5082
+ var getAdminClinicalPatientsByIdGoals = (options) => (options.client ?? client).get({
5083
+ security: [{ scheme: "bearer", type: "http" }],
5084
+ url: "/admin/clinical/patients/{id}/goals",
5085
+ ...options
5086
+ });
4622
5087
  var getAdminSysAiConfig = (options) => (options.client ?? client).get({
4623
5088
  security: [{ scheme: "bearer", type: "http" }],
4624
5089
  url: "/admin/sys/ai-config",
@@ -4652,6 +5117,20 @@ var getAdminSupportRoutingRulesApplicationByApplicationId = (options) => (option
4652
5117
  url: "/admin/support/routing-rules/application/{application_id}",
4653
5118
  ...options
4654
5119
  });
5120
+ var getAdminClinicalPracticeToolsCatalog = (options) => (options.client ?? client).get({
5121
+ security: [{ scheme: "bearer", type: "http" }],
5122
+ url: "/admin/clinical/practice-tools/catalog",
5123
+ ...options
5124
+ });
5125
+ var postAdminClinicalPracticeToolsCatalog = (options) => (options.client ?? client).post({
5126
+ security: [{ scheme: "bearer", type: "http" }],
5127
+ url: "/admin/clinical/practice-tools/catalog",
5128
+ ...options,
5129
+ headers: {
5130
+ "Content-Type": "application/vnd.api+json",
5131
+ ...options.headers
5132
+ }
5133
+ });
4655
5134
  var postAdminInvitationsAcceptByToken = (options) => (options.client ?? client).post({
4656
5135
  security: [{ scheme: "bearer", type: "http" }],
4657
5136
  url: "/admin/invitations/accept-by-token",
@@ -4821,6 +5300,20 @@ var patchAdminApiKeysByIdRotate = (options) => (options.client ?? client).patch(
4821
5300
  ...options.headers
4822
5301
  }
4823
5302
  });
5303
+ var getAdminClinicalPatients = (options) => (options.client ?? client).get({
5304
+ security: [{ scheme: "bearer", type: "http" }],
5305
+ url: "/admin/clinical/patients",
5306
+ ...options
5307
+ });
5308
+ var postAdminClinicalPatients = (options) => (options.client ?? client).post({
5309
+ security: [{ scheme: "bearer", type: "http" }],
5310
+ url: "/admin/clinical/patients",
5311
+ ...options,
5312
+ headers: {
5313
+ "Content-Type": "application/vnd.api+json",
5314
+ ...options.headers
5315
+ }
5316
+ });
4824
5317
  var getAdminUsageEventsById = (options) => (options.client ?? client).get({
4825
5318
  security: [{ scheme: "bearer", type: "http" }],
4826
5319
  url: "/admin/usage-events/{id}",
@@ -4897,6 +5390,20 @@ var postAdminIsvCrmEntityTypes = (options) => (options.client ?? client).post({
4897
5390
  ...options.headers
4898
5391
  }
4899
5392
  });
5393
+ var getAdminClinicalHealthMetrics = (options) => (options.client ?? client).get({
5394
+ security: [{ scheme: "bearer", type: "http" }],
5395
+ url: "/admin/clinical/health-metrics",
5396
+ ...options
5397
+ });
5398
+ var postAdminClinicalHealthMetrics = (options) => (options.client ?? client).post({
5399
+ security: [{ scheme: "bearer", type: "http" }],
5400
+ url: "/admin/clinical/health-metrics",
5401
+ ...options,
5402
+ headers: {
5403
+ "Content-Type": "application/vnd.api+json",
5404
+ ...options.headers
5405
+ }
5406
+ });
4900
5407
  var getAdminSupportQueueMembersQueueByQueueId = (options) => (options.client ?? client).get({
4901
5408
  security: [{ scheme: "bearer", type: "http" }],
4902
5409
  url: "/admin/support/queue-members/queue/{queue_id}",
@@ -4974,6 +5481,11 @@ var getAdminStorageFiles = (options) => (options.client ?? client).get({
4974
5481
  url: "/admin/storage-files",
4975
5482
  ...options
4976
5483
  });
5484
+ var getAdminClinicalSessionsByPatient = (options) => (options.client ?? client).get({
5485
+ security: [{ scheme: "bearer", type: "http" }],
5486
+ url: "/admin/clinical/sessions/by-patient",
5487
+ ...options
5488
+ });
4977
5489
  var getAdminApplicationsBySlugBySlug = (options) => (options.client ?? client).get({
4978
5490
  security: [{ scheme: "bearer", type: "http" }],
4979
5491
  url: "/admin/applications/by-slug/{slug}",
@@ -5222,6 +5734,20 @@ var getAdminStorageRecommendations = (options) => (options.client ?? client).get
5222
5734
  url: "/admin/storage-recommendations",
5223
5735
  ...options
5224
5736
  });
5737
+ var getAdminClinicalClientSupplements = (options) => (options.client ?? client).get({
5738
+ security: [{ scheme: "bearer", type: "http" }],
5739
+ url: "/admin/clinical/client-supplements",
5740
+ ...options
5741
+ });
5742
+ var postAdminClinicalClientSupplements = (options) => (options.client ?? client).post({
5743
+ security: [{ scheme: "bearer", type: "http" }],
5744
+ url: "/admin/clinical/client-supplements",
5745
+ ...options,
5746
+ headers: {
5747
+ "Content-Type": "application/vnd.api+json",
5748
+ ...options.headers
5749
+ }
5750
+ });
5225
5751
  var deleteAdminCrmDealsById = (options) => (options.client ?? client).delete({
5226
5752
  security: [{ scheme: "bearer", type: "http" }],
5227
5753
  url: "/admin/crm/deals/{id}",
@@ -5287,6 +5813,25 @@ var patchAdminSocialAccountsByIdDeactivate = (options) => (options.client ?? cli
5287
5813
  ...options.headers
5288
5814
  }
5289
5815
  });
5816
+ var deleteAdminClinicalMealPlansById = (options) => (options.client ?? client).delete({
5817
+ security: [{ scheme: "bearer", type: "http" }],
5818
+ url: "/admin/clinical/meal-plans/{id}",
5819
+ ...options
5820
+ });
5821
+ var getAdminClinicalMealPlansById = (options) => (options.client ?? client).get({
5822
+ security: [{ scheme: "bearer", type: "http" }],
5823
+ url: "/admin/clinical/meal-plans/{id}",
5824
+ ...options
5825
+ });
5826
+ var patchAdminClinicalMealPlansById = (options) => (options.client ?? client).patch({
5827
+ security: [{ scheme: "bearer", type: "http" }],
5828
+ url: "/admin/clinical/meal-plans/{id}",
5829
+ ...options,
5830
+ headers: {
5831
+ "Content-Type": "application/vnd.api+json",
5832
+ ...options.headers
5833
+ }
5834
+ });
5290
5835
  var postAdminCrmCompanies = (options) => (options.client ?? client).post({
5291
5836
  security: [{ scheme: "bearer", type: "http" }],
5292
5837
  url: "/admin/crm/companies",
@@ -5334,6 +5879,20 @@ var patchAdminConnectorsOauthAppConfigsById = (options) => (options.client ?? cl
5334
5879
  ...options.headers
5335
5880
  }
5336
5881
  });
5882
+ var getAdminClinicalClientResourceAssignments = (options) => (options.client ?? client).get({
5883
+ security: [{ scheme: "bearer", type: "http" }],
5884
+ url: "/admin/clinical/client-resource-assignments",
5885
+ ...options
5886
+ });
5887
+ var postAdminClinicalClientResourceAssignments = (options) => (options.client ?? client).post({
5888
+ security: [{ scheme: "bearer", type: "http" }],
5889
+ url: "/admin/clinical/client-resource-assignments",
5890
+ ...options,
5891
+ headers: {
5892
+ "Content-Type": "application/vnd.api+json",
5893
+ ...options.headers
5894
+ }
5895
+ });
5337
5896
  var patchAdminExtractionResultsByIdSaveCorrections = (options) => (options.client ?? client).patch({
5338
5897
  security: [{ scheme: "bearer", type: "http" }],
5339
5898
  url: "/admin/extraction/results/{id}/save-corrections",
@@ -5412,6 +5971,20 @@ var postAdminAgentsByIdValidate = (options) => (options.client ?? client).post({
5412
5971
  ...options.headers
5413
5972
  }
5414
5973
  });
5974
+ var getAdminClinicalMealPlans = (options) => (options.client ?? client).get({
5975
+ security: [{ scheme: "bearer", type: "http" }],
5976
+ url: "/admin/clinical/meal-plans",
5977
+ ...options
5978
+ });
5979
+ var postAdminClinicalMealPlans = (options) => (options.client ?? client).post({
5980
+ security: [{ scheme: "bearer", type: "http" }],
5981
+ url: "/admin/clinical/meal-plans",
5982
+ ...options,
5983
+ headers: {
5984
+ "Content-Type": "application/vnd.api+json",
5985
+ ...options.headers
5986
+ }
5987
+ });
5415
5988
  var deleteAdminPipelinesById = (options) => (options.client ?? client).delete({
5416
5989
  security: [{ scheme: "bearer", type: "http" }],
5417
5990
  url: "/admin/pipelines/{id}",
@@ -5431,6 +6004,20 @@ var patchAdminPipelinesById = (options) => (options.client ?? client).patch({
5431
6004
  ...options.headers
5432
6005
  }
5433
6006
  });
6007
+ var getAdminClinicalPatientsByIdSupplements = (options) => (options.client ?? client).get({
6008
+ security: [{ scheme: "bearer", type: "http" }],
6009
+ url: "/admin/clinical/patients/{id}/supplements",
6010
+ ...options
6011
+ });
6012
+ var patchAdminClinicalNotesByIdReject = (options) => (options.client ?? client).patch({
6013
+ security: [{ scheme: "bearer", type: "http" }],
6014
+ url: "/admin/clinical/notes/{id}/reject",
6015
+ ...options,
6016
+ headers: {
6017
+ "Content-Type": "application/vnd.api+json",
6018
+ ...options.headers
6019
+ }
6020
+ });
5434
6021
  var deleteAdminSocialPostsById = (options) => (options.client ?? client).delete({
5435
6022
  security: [{ scheme: "bearer", type: "http" }],
5436
6023
  url: "/admin/social/posts/{id}",
@@ -5561,6 +6148,39 @@ var patchAdminExtractionDocumentsByIdFinishUpload = (options) => (options.client
5561
6148
  ...options.headers
5562
6149
  }
5563
6150
  });
6151
+ var deleteAdminClinicalPracticeToolsById = (options) => (options.client ?? client).delete({
6152
+ security: [{ scheme: "bearer", type: "http" }],
6153
+ url: "/admin/clinical/practice-tools/{id}",
6154
+ ...options
6155
+ });
6156
+ var getAdminClinicalPracticeToolsById = (options) => (options.client ?? client).get({
6157
+ security: [{ scheme: "bearer", type: "http" }],
6158
+ url: "/admin/clinical/practice-tools/{id}",
6159
+ ...options
6160
+ });
6161
+ var patchAdminClinicalPracticeToolsById = (options) => (options.client ?? client).patch({
6162
+ security: [{ scheme: "bearer", type: "http" }],
6163
+ url: "/admin/clinical/practice-tools/{id}",
6164
+ ...options,
6165
+ headers: {
6166
+ "Content-Type": "application/vnd.api+json",
6167
+ ...options.headers
6168
+ }
6169
+ });
6170
+ var getAdminClinicalDeliveriesById = (options) => (options.client ?? client).get({
6171
+ security: [{ scheme: "bearer", type: "http" }],
6172
+ url: "/admin/clinical/deliveries/{id}",
6173
+ ...options
6174
+ });
6175
+ var patchAdminClinicalDeliveriesById = (options) => (options.client ?? client).patch({
6176
+ security: [{ scheme: "bearer", type: "http" }],
6177
+ url: "/admin/clinical/deliveries/{id}",
6178
+ ...options,
6179
+ headers: {
6180
+ "Content-Type": "application/vnd.api+json",
6181
+ ...options.headers
6182
+ }
6183
+ });
5564
6184
  var getAdminSupportSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
5565
6185
  security: [{ scheme: "bearer", type: "http" }],
5566
6186
  url: "/admin/support/sync-configs/workspace/{workspace_id}",
@@ -5599,6 +6219,11 @@ var postAdminCrawlerSchedules = (options) => (options.client ?? client).post({
5599
6219
  ...options.headers
5600
6220
  }
5601
6221
  });
6222
+ var getAdminClinicalPracticeToolsCategoriesCatalog = (options) => (options.client ?? client).get({
6223
+ security: [{ scheme: "bearer", type: "http" }],
6224
+ url: "/admin/clinical/practice-tools/categories/catalog",
6225
+ ...options
6226
+ });
5602
6227
  var getAdminVoiceRecordings = (options) => (options.client ?? client).get({
5603
6228
  security: [{ scheme: "bearer", type: "http" }],
5604
6229
  url: "/admin/voice/recordings",
@@ -14936,23 +15561,6 @@ function createClinicalNamespace(rb) {
14936
15561
  * ISV clinical analytics — overview and pipeline metrics.
14937
15562
  */
14938
15563
  analytics: {
14939
- /**
14940
- * Returns an analytics overview for the clinical domain within a workspace.
14941
- *
14942
- * Provides aggregate counts of patients (total and recently active)
14943
- * and total sessions.
14944
- *
14945
- * @param workspaceId - The workspace UUID to retrieve analytics for
14946
- * @param params - Optional query parameters (e.g., period filters)
14947
- * @param options - Request options
14948
- * @returns {@link ClinicalAnalyticsOverview} aggregate data
14949
- *
14950
- * @example
14951
- * ```typescript
14952
- * const overview = await admin.clinical.analytics.overview('ws_abc123');
14953
- * console.log(overview.active_patients_last_30d); // recently active patients
14954
- * ```
14955
- */
14956
15564
  async overview(workspaceId, params, options) {
14957
15565
  const qs = new URLSearchParams({
14958
15566
  workspace_id: workspaceId,
@@ -14963,23 +15571,6 @@ function createClinicalNamespace(rb) {
14963
15571
  options
14964
15572
  );
14965
15573
  },
14966
- /**
14967
- * Returns pipeline analytics for the clinical domain within a workspace.
14968
- *
14969
- * Tracks post-session pipeline run counts, completion rates,
14970
- * and sessions awaiting approval over a configurable period.
14971
- *
14972
- * @param workspaceId - The workspace UUID to retrieve analytics for
14973
- * @param params - Optional query parameters (e.g., period filters)
14974
- * @param options - Request options
14975
- * @returns {@link ClinicalPipelineAnalytics} pipeline metrics
14976
- *
14977
- * @example
14978
- * ```typescript
14979
- * const pipeline = await admin.clinical.analytics.pipeline('ws_abc123');
14980
- * console.log(pipeline.pipeline_runs_last_30d);
14981
- * ```
14982
- */
14983
15574
  async pipeline(workspaceId, params, options) {
14984
15575
  const qs = new URLSearchParams({
14985
15576
  workspace_id: workspaceId,
@@ -14990,6 +15581,932 @@ function createClinicalNamespace(rb) {
14990
15581
  options
14991
15582
  );
14992
15583
  }
15584
+ },
15585
+ /**
15586
+ * Manage reusable clinical goal templates.
15587
+ */
15588
+ goalTemplates: {
15589
+ /**
15590
+ * List goal templates in a workspace.
15591
+ *
15592
+ * @param params - Must include `workspace_id`
15593
+ * @param options - Request options
15594
+ * @returns Array of {@link ClinicalGoalTemplate} records
15595
+ */
15596
+ list: async (params, options) => rb.execute(
15597
+ getAdminClinicalGoalTemplates,
15598
+ { query: params },
15599
+ options
15600
+ ),
15601
+ /**
15602
+ * List practitioner's personal templates.
15603
+ *
15604
+ * @param params - Must include `created_by_id`
15605
+ * @param options - Request options
15606
+ * @returns Array of {@link ClinicalGoalTemplate} records
15607
+ */
15608
+ listMine: async (params, options) => rb.execute(
15609
+ getAdminClinicalGoalTemplatesMine,
15610
+ { query: params },
15611
+ options
15612
+ ),
15613
+ /**
15614
+ * List distinct goal template categories with counts.
15615
+ *
15616
+ * @param params - Must include `workspace_id`
15617
+ * @param options - Request options
15618
+ * @returns Array of {@link ClinicalGoalTemplateCategory} records
15619
+ */
15620
+ listCategories: async (params, options) => rb.execute(
15621
+ getAdminClinicalGoalTemplatesCategories,
15622
+ { query: params },
15623
+ options
15624
+ ),
15625
+ /**
15626
+ * Get a single goal template by ID.
15627
+ *
15628
+ * @param id - GoalTemplate UUID
15629
+ * @param options - Request options
15630
+ * @returns {@link ClinicalGoalTemplate} record
15631
+ */
15632
+ get: async (id, options) => rb.execute(
15633
+ getAdminClinicalGoalTemplatesById,
15634
+ { path: { id } },
15635
+ options
15636
+ ),
15637
+ /**
15638
+ * Create a new goal template.
15639
+ *
15640
+ * @param attributes - Must include `workspace_id`, `goal_type`, and `title`
15641
+ * @param options - Request options
15642
+ * @returns Created {@link ClinicalGoalTemplate} record
15643
+ */
15644
+ create: async (attributes, options) => rb.execute(
15645
+ postAdminClinicalGoalTemplates,
15646
+ { body: { data: { type: "clinical-goal-template", attributes } } },
15647
+ options
15648
+ ),
15649
+ /**
15650
+ * Create a personalized template from an existing one.
15651
+ *
15652
+ * @param attributes - Must include `workspace_id` and `source_template_id`
15653
+ * @param options - Request options
15654
+ * @returns Created {@link ClinicalGoalTemplate} record
15655
+ */
15656
+ createFromExisting: async (attributes, options) => rb.execute(
15657
+ postAdminClinicalGoalTemplatesFromExisting,
15658
+ { body: { data: { type: "clinical-goal-template", attributes } } },
15659
+ options
15660
+ ),
15661
+ /**
15662
+ * Update a goal template.
15663
+ *
15664
+ * @param id - GoalTemplate UUID
15665
+ * @param attributes - Fields to update (PATCH semantics)
15666
+ * @param options - Request options
15667
+ * @returns Updated {@link ClinicalGoalTemplate} record
15668
+ */
15669
+ update: async (id, attributes, options) => rb.execute(
15670
+ patchAdminClinicalGoalTemplatesById,
15671
+ {
15672
+ path: { id },
15673
+ body: { data: { type: "clinical-goal-template", id, attributes } }
15674
+ },
15675
+ options
15676
+ ),
15677
+ /**
15678
+ * Delete a goal template.
15679
+ *
15680
+ * @param id - GoalTemplate UUID
15681
+ * @param options - Request options
15682
+ * @returns `true` on successful deletion
15683
+ */
15684
+ delete: async (id, options) => rb.executeDelete(
15685
+ deleteAdminClinicalGoalTemplatesById,
15686
+ { path: { id } },
15687
+ options
15688
+ ),
15689
+ /**
15690
+ * List application-level catalog goal templates.
15691
+ *
15692
+ * @param params - Must include `application_id`
15693
+ * @param options - Request options
15694
+ * @returns Array of {@link ClinicalGoalTemplate} catalog records
15695
+ */
15696
+ listCatalog: async (params, options) => rb.execute(
15697
+ getAdminClinicalGoalTemplatesCatalog,
15698
+ { query: params },
15699
+ options
15700
+ ),
15701
+ /**
15702
+ * Get a catalog goal template by ID.
15703
+ *
15704
+ * @param id - GoalTemplate UUID
15705
+ * @param options - Request options
15706
+ * @returns {@link ClinicalGoalTemplate} catalog record
15707
+ */
15708
+ getCatalog: async (id, options) => rb.execute(
15709
+ getAdminClinicalGoalTemplatesCatalogById,
15710
+ { path: { id } },
15711
+ options
15712
+ ),
15713
+ /**
15714
+ * Create an application-level catalog goal template.
15715
+ *
15716
+ * @param attributes - Must include `goal_type` and `title`
15717
+ * @param options - Request options
15718
+ * @returns Created {@link ClinicalGoalTemplate} catalog record
15719
+ */
15720
+ createCatalog: async (attributes, options) => rb.execute(
15721
+ postAdminClinicalGoalTemplatesCatalog,
15722
+ { body: { data: { type: "clinical-goal-template", attributes } } },
15723
+ options
15724
+ ),
15725
+ /**
15726
+ * Update a catalog goal template.
15727
+ *
15728
+ * @param id - GoalTemplate UUID
15729
+ * @param attributes - Fields to update (PATCH semantics)
15730
+ * @param options - Request options
15731
+ * @returns Updated {@link ClinicalGoalTemplate} catalog record
15732
+ */
15733
+ updateCatalog: async (id, attributes, options) => rb.execute(
15734
+ patchAdminClinicalGoalTemplatesCatalogById,
15735
+ {
15736
+ path: { id },
15737
+ body: { data: { type: "clinical-goal-template", id, attributes } }
15738
+ },
15739
+ options
15740
+ ),
15741
+ /**
15742
+ * Delete a catalog goal template.
15743
+ *
15744
+ * @param id - GoalTemplate UUID
15745
+ * @param options - Request options
15746
+ * @returns `true` on successful deletion
15747
+ */
15748
+ deleteCatalog: async (id, options) => rb.executeDelete(
15749
+ deleteAdminClinicalGoalTemplatesCatalogById,
15750
+ { path: { id } },
15751
+ options
15752
+ ),
15753
+ /**
15754
+ * List distinct catalog goal template categories with counts.
15755
+ *
15756
+ * @param params - Must include `application_id`
15757
+ * @param options - Request options
15758
+ * @returns Array of {@link ClinicalGoalTemplateCategory} records
15759
+ */
15760
+ listCatalogCategories: async (params, options) => rb.execute(
15761
+ getAdminClinicalGoalTemplatesCategoriesCatalog,
15762
+ { query: params },
15763
+ options
15764
+ )
15765
+ },
15766
+ /**
15767
+ * Manage practice-level tools (apps, wearables, platforms).
15768
+ */
15769
+ practiceTools: {
15770
+ /**
15771
+ * List practice tools in a workspace.
15772
+ *
15773
+ * @param params - Filter/pagination parameters
15774
+ * @param options - Request options
15775
+ * @returns Array of {@link ClinicalPracticeTool} records
15776
+ */
15777
+ list: async (params, options) => rb.execute(
15778
+ getAdminClinicalPracticeTools,
15779
+ { query: params },
15780
+ options
15781
+ ),
15782
+ /**
15783
+ * Get a single practice tool by ID.
15784
+ *
15785
+ * @param id - PracticeTool UUID
15786
+ * @param options - Request options
15787
+ * @returns {@link ClinicalPracticeTool} record
15788
+ */
15789
+ get: async (id, options) => rb.execute(
15790
+ getAdminClinicalPracticeToolsById,
15791
+ { path: { id } },
15792
+ options
15793
+ ),
15794
+ /**
15795
+ * Create a new practice tool.
15796
+ *
15797
+ * @param attributes - Must include `workspace_id` and `name`
15798
+ * @param options - Request options
15799
+ * @returns Created {@link ClinicalPracticeTool} record
15800
+ */
15801
+ create: async (attributes, options) => rb.execute(
15802
+ postAdminClinicalPracticeTools,
15803
+ { body: { data: { type: "clinical-practice-tool", attributes } } },
15804
+ options
15805
+ ),
15806
+ /**
15807
+ * Update a practice tool.
15808
+ *
15809
+ * @param id - PracticeTool UUID
15810
+ * @param attributes - Fields to update (PATCH semantics)
15811
+ * @param options - Request options
15812
+ * @returns Updated {@link ClinicalPracticeTool} record
15813
+ */
15814
+ update: async (id, attributes, options) => rb.execute(
15815
+ patchAdminClinicalPracticeToolsById,
15816
+ {
15817
+ path: { id },
15818
+ body: { data: { type: "clinical-practice-tool", id, attributes } }
15819
+ },
15820
+ options
15821
+ ),
15822
+ /**
15823
+ * Delete a practice tool.
15824
+ *
15825
+ * @param id - PracticeTool UUID
15826
+ * @param options - Request options
15827
+ * @returns `true` on successful deletion
15828
+ */
15829
+ delete: async (id, options) => rb.executeDelete(
15830
+ deleteAdminClinicalPracticeToolsById,
15831
+ { path: { id } },
15832
+ options
15833
+ ),
15834
+ /**
15835
+ * List application-level catalog practice tools.
15836
+ *
15837
+ * @param params - Must include `application_id`
15838
+ * @param options - Request options
15839
+ * @returns Array of {@link ClinicalPracticeTool} catalog records
15840
+ */
15841
+ listCatalog: async (params, options) => rb.execute(
15842
+ getAdminClinicalPracticeToolsCatalog,
15843
+ { query: params },
15844
+ options
15845
+ ),
15846
+ /**
15847
+ * Get a catalog practice tool by ID.
15848
+ *
15849
+ * @param id - PracticeTool UUID
15850
+ * @param options - Request options
15851
+ * @returns {@link ClinicalPracticeTool} catalog record
15852
+ */
15853
+ getCatalog: async (id, options) => rb.execute(
15854
+ getAdminClinicalPracticeToolsCatalogById,
15855
+ { path: { id } },
15856
+ options
15857
+ ),
15858
+ /**
15859
+ * Create an application-level catalog practice tool.
15860
+ *
15861
+ * @param attributes - Must include `name`
15862
+ * @param options - Request options
15863
+ * @returns Created {@link ClinicalPracticeTool} catalog record
15864
+ */
15865
+ createCatalog: async (attributes, options) => rb.execute(
15866
+ postAdminClinicalPracticeToolsCatalog,
15867
+ { body: { data: { type: "clinical-practice-tool", attributes } } },
15868
+ options
15869
+ ),
15870
+ /**
15871
+ * Update a catalog practice tool.
15872
+ *
15873
+ * @param id - PracticeTool UUID
15874
+ * @param attributes - Fields to update (PATCH semantics)
15875
+ * @param options - Request options
15876
+ * @returns Updated {@link ClinicalPracticeTool} catalog record
15877
+ */
15878
+ updateCatalog: async (id, attributes, options) => rb.execute(
15879
+ patchAdminClinicalPracticeToolsCatalogById,
15880
+ {
15881
+ path: { id },
15882
+ body: { data: { type: "clinical-practice-tool", id, attributes } }
15883
+ },
15884
+ options
15885
+ ),
15886
+ /**
15887
+ * Delete a catalog practice tool.
15888
+ *
15889
+ * @param id - PracticeTool UUID
15890
+ * @param options - Request options
15891
+ * @returns `true` on successful deletion
15892
+ */
15893
+ deleteCatalog: async (id, options) => rb.executeDelete(
15894
+ deleteAdminClinicalPracticeToolsCatalogById,
15895
+ { path: { id } },
15896
+ options
15897
+ ),
15898
+ /**
15899
+ * List distinct catalog practice tool categories with counts.
15900
+ *
15901
+ * @param params - Must include `application_id`
15902
+ * @param options - Request options
15903
+ * @returns Array of category records
15904
+ */
15905
+ listCatalogCategories: async (params, options) => rb.execute(
15906
+ getAdminClinicalPracticeToolsCategoriesCatalog,
15907
+ { query: params },
15908
+ options
15909
+ )
15910
+ },
15911
+ /**
15912
+ * Manage practice-level educational resources.
15913
+ */
15914
+ practiceResources: {
15915
+ /**
15916
+ * List practice resources in a workspace.
15917
+ *
15918
+ * @param params - Filter/pagination parameters
15919
+ * @param options - Request options
15920
+ * @returns Array of {@link ClinicalPracticeResource} records
15921
+ */
15922
+ list: async (params, options) => rb.execute(
15923
+ getAdminClinicalPracticeResources,
15924
+ { query: params },
15925
+ options
15926
+ ),
15927
+ /**
15928
+ * Get a single practice resource by ID.
15929
+ *
15930
+ * @param id - PracticeResource UUID
15931
+ * @param options - Request options
15932
+ * @returns {@link ClinicalPracticeResource} record
15933
+ */
15934
+ get: async (id, options) => rb.execute(
15935
+ getAdminClinicalPracticeResourcesById,
15936
+ { path: { id } },
15937
+ options
15938
+ ),
15939
+ /**
15940
+ * Create a new practice resource.
15941
+ *
15942
+ * @param attributes - Must include `workspace_id` and `title`
15943
+ * @param options - Request options
15944
+ * @returns Created {@link ClinicalPracticeResource} record
15945
+ */
15946
+ create: async (attributes, options) => rb.execute(
15947
+ postAdminClinicalPracticeResources,
15948
+ {
15949
+ body: { data: { type: "clinical-practice-resource", attributes } }
15950
+ },
15951
+ options
15952
+ ),
15953
+ /**
15954
+ * Update a practice resource.
15955
+ *
15956
+ * @param id - PracticeResource UUID
15957
+ * @param attributes - Fields to update (PATCH semantics)
15958
+ * @param options - Request options
15959
+ * @returns Updated {@link ClinicalPracticeResource} record
15960
+ */
15961
+ update: async (id, attributes, options) => rb.execute(
15962
+ patchAdminClinicalPracticeResourcesById,
15963
+ {
15964
+ path: { id },
15965
+ body: {
15966
+ data: { type: "clinical-practice-resource", id, attributes }
15967
+ }
15968
+ },
15969
+ options
15970
+ ),
15971
+ /**
15972
+ * Delete a practice resource.
15973
+ *
15974
+ * @param id - PracticeResource UUID
15975
+ * @param options - Request options
15976
+ * @returns `true` on successful deletion
15977
+ */
15978
+ delete: async (id, options) => rb.executeDelete(
15979
+ deleteAdminClinicalPracticeResourcesById,
15980
+ { path: { id } },
15981
+ options
15982
+ ),
15983
+ /**
15984
+ * List application-level catalog practice resources.
15985
+ *
15986
+ * @param params - Must include `application_id`
15987
+ * @param options - Request options
15988
+ * @returns Array of {@link ClinicalPracticeResource} catalog records
15989
+ */
15990
+ listCatalog: async (params, options) => rb.execute(
15991
+ getAdminClinicalPracticeResourcesCatalog,
15992
+ { query: params },
15993
+ options
15994
+ ),
15995
+ /**
15996
+ * Get a catalog practice resource by ID.
15997
+ *
15998
+ * @param id - PracticeResource UUID
15999
+ * @param options - Request options
16000
+ * @returns {@link ClinicalPracticeResource} catalog record
16001
+ */
16002
+ getCatalog: async (id, options) => rb.execute(
16003
+ getAdminClinicalPracticeResourcesCatalogById,
16004
+ { path: { id } },
16005
+ options
16006
+ ),
16007
+ /**
16008
+ * Create an application-level catalog practice resource.
16009
+ *
16010
+ * @param attributes - Must include `title`
16011
+ * @param options - Request options
16012
+ * @returns Created {@link ClinicalPracticeResource} catalog record
16013
+ */
16014
+ createCatalog: async (attributes, options) => rb.execute(
16015
+ postAdminClinicalPracticeResourcesCatalog,
16016
+ {
16017
+ body: { data: { type: "clinical-practice-resource", attributes } }
16018
+ },
16019
+ options
16020
+ ),
16021
+ /**
16022
+ * Update a catalog practice resource.
16023
+ *
16024
+ * @param id - PracticeResource UUID
16025
+ * @param attributes - Fields to update (PATCH semantics)
16026
+ * @param options - Request options
16027
+ * @returns Updated {@link ClinicalPracticeResource} catalog record
16028
+ */
16029
+ updateCatalog: async (id, attributes, options) => rb.execute(
16030
+ patchAdminClinicalPracticeResourcesCatalogById,
16031
+ {
16032
+ path: { id },
16033
+ body: {
16034
+ data: { type: "clinical-practice-resource", id, attributes }
16035
+ }
16036
+ },
16037
+ options
16038
+ ),
16039
+ /**
16040
+ * Delete a catalog practice resource.
16041
+ *
16042
+ * @param id - PracticeResource UUID
16043
+ * @param options - Request options
16044
+ * @returns `true` on successful deletion
16045
+ */
16046
+ deleteCatalog: async (id, options) => rb.executeDelete(
16047
+ deleteAdminClinicalPracticeResourcesCatalogById,
16048
+ { path: { id } },
16049
+ options
16050
+ )
16051
+ },
16052
+ // ─── New sub-namespaces (10 missing from finalize-domain audit) ───────────
16053
+ /** Manage clinical patient records. */
16054
+ patients: {
16055
+ /** List patients. */
16056
+ list: async (params, options) => rb.execute(
16057
+ getAdminClinicalPatients,
16058
+ { query: params },
16059
+ options
16060
+ ),
16061
+ /** Get patient by ID. */
16062
+ get: async (id, options) => rb.execute(
16063
+ getAdminClinicalPatientsById,
16064
+ { path: { id } },
16065
+ options
16066
+ ),
16067
+ /** Create a patient. */
16068
+ create: async (attributes, options) => rb.execute(
16069
+ postAdminClinicalPatients,
16070
+ { body: { data: { type: "clinical-patient", attributes } } },
16071
+ options
16072
+ ),
16073
+ /** Update a patient. */
16074
+ update: async (id, attributes, options) => rb.execute(
16075
+ patchAdminClinicalPatientsById,
16076
+ {
16077
+ path: { id },
16078
+ body: { data: { type: "clinical-patient", id, attributes } }
16079
+ },
16080
+ options
16081
+ ),
16082
+ /** Delete a patient. */
16083
+ delete: async (id, options) => rb.executeDelete(
16084
+ deleteAdminClinicalPatientsById,
16085
+ { path: { id } },
16086
+ options
16087
+ ),
16088
+ /** List goals for a patient. */
16089
+ goals: async (id, options) => rb.execute(
16090
+ getAdminClinicalPatientsByIdGoals,
16091
+ { path: { id } },
16092
+ options
16093
+ ),
16094
+ /** List health metrics for a patient. */
16095
+ healthMetrics: async (id, options) => rb.execute(
16096
+ getAdminClinicalPatientsByIdHealthMetrics,
16097
+ { path: { id } },
16098
+ options
16099
+ ),
16100
+ /** List supplements for a patient. */
16101
+ supplements: async (id, options) => rb.execute(
16102
+ getAdminClinicalPatientsByIdSupplements,
16103
+ { path: { id } },
16104
+ options
16105
+ ),
16106
+ /** List resource assignments for a patient. */
16107
+ resourceAssignments: async (id, options) => rb.execute(
16108
+ getAdminClinicalPatientsByIdResourceAssignments,
16109
+ { path: { id } },
16110
+ options
16111
+ )
16112
+ },
16113
+ /** Manage clinical sessions. */
16114
+ sessions: {
16115
+ /** List sessions. */
16116
+ list: async (params, options) => rb.execute(
16117
+ getAdminClinicalSessions,
16118
+ { query: params },
16119
+ options
16120
+ ),
16121
+ /** List sessions by patient. */
16122
+ listByPatient: async (params, options) => rb.execute(
16123
+ getAdminClinicalSessionsByPatient,
16124
+ { query: params },
16125
+ options
16126
+ ),
16127
+ /** Get session by ID. */
16128
+ get: async (id, options) => rb.execute(
16129
+ getAdminClinicalSessionsById,
16130
+ { path: { id } },
16131
+ options
16132
+ ),
16133
+ /** Create a session. */
16134
+ create: async (attributes, options) => rb.execute(
16135
+ postAdminClinicalSessions,
16136
+ { body: { data: { type: "clinical-session", attributes } } },
16137
+ options
16138
+ ),
16139
+ /** Update a session. */
16140
+ update: async (id, attributes, options) => rb.execute(
16141
+ patchAdminClinicalSessionsById,
16142
+ {
16143
+ path: { id },
16144
+ body: { data: { type: "clinical-session", id, attributes } }
16145
+ },
16146
+ options
16147
+ ),
16148
+ /** Delete a session. */
16149
+ delete: async (id, options) => rb.executeDelete(
16150
+ deleteAdminClinicalSessionsById,
16151
+ { path: { id } },
16152
+ options
16153
+ ),
16154
+ /** List notes for a session. */
16155
+ notes: async (id, options) => rb.execute(
16156
+ getAdminClinicalSessionsByIdSessionNotes,
16157
+ { path: { id } },
16158
+ options
16159
+ ),
16160
+ /** List meal plans for a session. */
16161
+ mealPlans: async (id, options) => rb.execute(
16162
+ getAdminClinicalSessionsByIdMealPlans,
16163
+ { path: { id } },
16164
+ options
16165
+ )
16166
+ },
16167
+ /** Manage clinical notes with approve/reject workflow. */
16168
+ notes: {
16169
+ /** List notes. */
16170
+ list: async (params, options) => rb.execute(
16171
+ getAdminClinicalNotes,
16172
+ { query: params },
16173
+ options
16174
+ ),
16175
+ /** Get note by ID. */
16176
+ get: async (id, options) => rb.execute(
16177
+ getAdminClinicalNotesById,
16178
+ { path: { id } },
16179
+ options
16180
+ ),
16181
+ /** Create a note. */
16182
+ create: async (attributes, options) => rb.execute(
16183
+ postAdminClinicalNotes,
16184
+ { body: { data: { type: "clinical-note", attributes } } },
16185
+ options
16186
+ ),
16187
+ /** Update a note. */
16188
+ update: async (id, attributes, options) => rb.execute(
16189
+ patchAdminClinicalNotesById,
16190
+ {
16191
+ path: { id },
16192
+ body: { data: { type: "clinical-note", id, attributes } }
16193
+ },
16194
+ options
16195
+ ),
16196
+ /** Delete a note. */
16197
+ delete: async (id, options) => rb.executeDelete(
16198
+ deleteAdminClinicalNotesById,
16199
+ { path: { id } },
16200
+ options
16201
+ ),
16202
+ /** Approve a note (creates immutable version). */
16203
+ approve: async (id, attributes, options) => rb.execute(
16204
+ patchAdminClinicalNotesByIdApprove,
16205
+ {
16206
+ path: { id },
16207
+ body: {
16208
+ data: { type: "clinical-note", id, attributes: attributes ?? {} }
16209
+ }
16210
+ },
16211
+ options
16212
+ ),
16213
+ /** Reject a note. */
16214
+ reject: async (id, attributes, options) => rb.execute(
16215
+ patchAdminClinicalNotesByIdReject,
16216
+ {
16217
+ path: { id },
16218
+ body: {
16219
+ data: { type: "clinical-note", id, attributes: attributes ?? {} }
16220
+ }
16221
+ },
16222
+ options
16223
+ ),
16224
+ /** List versions for a note. */
16225
+ versions: async (noteId, options) => rb.execute(
16226
+ getAdminClinicalNotesByNoteIdVersions,
16227
+ { path: { note_id: noteId } },
16228
+ options
16229
+ ),
16230
+ /** Get a specific note version. */
16231
+ getVersion: async (noteId, id, options) => rb.execute(
16232
+ getAdminClinicalNotesByNoteIdVersionsById,
16233
+ { path: { note_id: noteId, id } },
16234
+ options
16235
+ )
16236
+ },
16237
+ /** Manage clinical health metrics. */
16238
+ healthMetrics: {
16239
+ /** List health metrics. */
16240
+ list: async (params, options) => rb.execute(
16241
+ getAdminClinicalHealthMetrics,
16242
+ { query: params },
16243
+ options
16244
+ ),
16245
+ /** List health metrics by session. */
16246
+ listBySession: async (params, options) => rb.execute(
16247
+ getAdminClinicalHealthMetricsBySession,
16248
+ { query: params },
16249
+ options
16250
+ ),
16251
+ /** Get health metric by ID. */
16252
+ get: async (id, options) => rb.execute(
16253
+ getAdminClinicalHealthMetricsById,
16254
+ { path: { id } },
16255
+ options
16256
+ ),
16257
+ /** Create a health metric. */
16258
+ create: async (attributes, options) => rb.execute(
16259
+ postAdminClinicalHealthMetrics,
16260
+ { body: { data: { type: "clinical-health-metric", attributes } } },
16261
+ options
16262
+ ),
16263
+ /** Update a health metric. */
16264
+ update: async (id, attributes, options) => rb.execute(
16265
+ patchAdminClinicalHealthMetricsById,
16266
+ {
16267
+ path: { id },
16268
+ body: { data: { type: "clinical-health-metric", id, attributes } }
16269
+ },
16270
+ options
16271
+ ),
16272
+ /** Delete a health metric. */
16273
+ delete: async (id, options) => rb.executeDelete(
16274
+ deleteAdminClinicalHealthMetricsById,
16275
+ { path: { id } },
16276
+ options
16277
+ )
16278
+ },
16279
+ /** Manage clinical meal plans. */
16280
+ mealPlans: {
16281
+ /** List meal plans. */
16282
+ list: async (params, options) => rb.execute(
16283
+ getAdminClinicalMealPlans,
16284
+ { query: params },
16285
+ options
16286
+ ),
16287
+ /** List meal plans by workspace. */
16288
+ listByWorkspace: async (params, options) => rb.execute(
16289
+ getAdminClinicalMealPlansByWorkspace,
16290
+ { query: params },
16291
+ options
16292
+ ),
16293
+ /** Get meal plan by ID. */
16294
+ get: async (id, options) => rb.execute(
16295
+ getAdminClinicalMealPlansById,
16296
+ { path: { id } },
16297
+ options
16298
+ ),
16299
+ /** Create a meal plan. */
16300
+ create: async (attributes, options) => rb.execute(
16301
+ postAdminClinicalMealPlans,
16302
+ { body: { data: { type: "clinical-meal-plan", attributes } } },
16303
+ options
16304
+ ),
16305
+ /** Update a meal plan. */
16306
+ update: async (id, attributes, options) => rb.execute(
16307
+ patchAdminClinicalMealPlansById,
16308
+ {
16309
+ path: { id },
16310
+ body: { data: { type: "clinical-meal-plan", id, attributes } }
16311
+ },
16312
+ options
16313
+ ),
16314
+ /** Delete a meal plan. */
16315
+ delete: async (id, options) => rb.executeDelete(
16316
+ deleteAdminClinicalMealPlansById,
16317
+ { path: { id } },
16318
+ options
16319
+ )
16320
+ },
16321
+ /** Manage patient clinical goals. */
16322
+ clientGoals: {
16323
+ /** List client goals. */
16324
+ list: async (params, options) => rb.execute(
16325
+ getAdminClinicalClientGoals,
16326
+ { query: params },
16327
+ options
16328
+ ),
16329
+ /** Get client goal by ID. */
16330
+ get: async (id, options) => rb.execute(
16331
+ getAdminClinicalClientGoalsById,
16332
+ { path: { id } },
16333
+ options
16334
+ ),
16335
+ /** Create a client goal. */
16336
+ create: async (attributes, options) => rb.execute(
16337
+ postAdminClinicalClientGoals,
16338
+ { body: { data: { type: "clinical-client-goal", attributes } } },
16339
+ options
16340
+ ),
16341
+ /** Create a goal from a template. */
16342
+ createFromTemplate: async (attributes, options) => rb.execute(
16343
+ postAdminClinicalClientGoalsFromTemplate,
16344
+ { body: { data: { type: "clinical-client-goal", attributes } } },
16345
+ options
16346
+ ),
16347
+ /** Update a client goal. */
16348
+ update: async (id, attributes, options) => rb.execute(
16349
+ patchAdminClinicalClientGoalsById,
16350
+ {
16351
+ path: { id },
16352
+ body: { data: { type: "clinical-client-goal", id, attributes } }
16353
+ },
16354
+ options
16355
+ ),
16356
+ /** Delete a client goal. */
16357
+ delete: async (id, options) => rb.executeDelete(
16358
+ deleteAdminClinicalClientGoalsById,
16359
+ { path: { id } },
16360
+ options
16361
+ )
16362
+ },
16363
+ /** Manage patient supplement prescriptions. */
16364
+ clientSupplements: {
16365
+ /** List client supplements. */
16366
+ list: async (params, options) => rb.execute(
16367
+ getAdminClinicalClientSupplements,
16368
+ { query: params },
16369
+ options
16370
+ ),
16371
+ /** Get client supplement by ID. */
16372
+ get: async (id, options) => rb.execute(
16373
+ getAdminClinicalClientSupplementsById,
16374
+ { path: { id } },
16375
+ options
16376
+ ),
16377
+ /** Create a client supplement. */
16378
+ create: async (attributes, options) => rb.execute(
16379
+ postAdminClinicalClientSupplements,
16380
+ {
16381
+ body: { data: { type: "clinical-client-supplement", attributes } }
16382
+ },
16383
+ options
16384
+ ),
16385
+ /** Update a client supplement. */
16386
+ update: async (id, attributes, options) => rb.execute(
16387
+ patchAdminClinicalClientSupplementsById,
16388
+ {
16389
+ path: { id },
16390
+ body: {
16391
+ data: { type: "clinical-client-supplement", id, attributes }
16392
+ }
16393
+ },
16394
+ options
16395
+ ),
16396
+ /** Delete a client supplement. */
16397
+ delete: async (id, options) => rb.executeDelete(
16398
+ deleteAdminClinicalClientSupplementsById,
16399
+ { path: { id } },
16400
+ options
16401
+ )
16402
+ },
16403
+ /** View and update clinical delivery audit records. */
16404
+ deliveries: {
16405
+ /** List deliveries. */
16406
+ list: async (params, options) => rb.execute(
16407
+ getAdminClinicalDeliveries,
16408
+ { query: params },
16409
+ options
16410
+ ),
16411
+ /** List deliveries by session. */
16412
+ listBySession: async (params, options) => rb.execute(
16413
+ getAdminClinicalDeliveriesBySession,
16414
+ { query: params },
16415
+ options
16416
+ ),
16417
+ /** Get delivery by ID. */
16418
+ get: async (id, options) => rb.execute(
16419
+ getAdminClinicalDeliveriesById,
16420
+ { path: { id } },
16421
+ options
16422
+ ),
16423
+ /** Create a delivery record. */
16424
+ create: async (attributes, options) => rb.execute(
16425
+ postAdminClinicalDeliveries,
16426
+ { body: { data: { type: "clinical-delivery", attributes } } },
16427
+ options
16428
+ ),
16429
+ /** Update a delivery. */
16430
+ update: async (id, attributes, options) => rb.execute(
16431
+ patchAdminClinicalDeliveriesById,
16432
+ {
16433
+ path: { id },
16434
+ body: { data: { type: "clinical-delivery", id, attributes } }
16435
+ },
16436
+ options
16437
+ )
16438
+ },
16439
+ /** Manage practice resource assignments to patients. */
16440
+ clientResourceAssignments: {
16441
+ /** List resource assignments. */
16442
+ list: async (params, options) => rb.execute(
16443
+ getAdminClinicalClientResourceAssignments,
16444
+ { query: params },
16445
+ options
16446
+ ),
16447
+ /** Get assignment by ID. */
16448
+ get: async (id, options) => rb.execute(
16449
+ getAdminClinicalClientResourceAssignmentsById,
16450
+ { path: { id } },
16451
+ options
16452
+ ),
16453
+ /** Create a resource assignment. */
16454
+ create: async (attributes, options) => rb.execute(
16455
+ postAdminClinicalClientResourceAssignments,
16456
+ {
16457
+ body: {
16458
+ data: { type: "clinical-client-resource-assignment", attributes }
16459
+ }
16460
+ },
16461
+ options
16462
+ ),
16463
+ /** Update a resource assignment. */
16464
+ update: async (id, attributes, options) => rb.execute(
16465
+ patchAdminClinicalClientResourceAssignmentsById,
16466
+ {
16467
+ path: { id },
16468
+ body: {
16469
+ data: {
16470
+ type: "clinical-client-resource-assignment",
16471
+ id,
16472
+ attributes
16473
+ }
16474
+ }
16475
+ },
16476
+ options
16477
+ ),
16478
+ /** Delete a resource assignment. */
16479
+ delete: async (id, options) => rb.executeDelete(
16480
+ deleteAdminClinicalClientResourceAssignmentsById,
16481
+ { path: { id } },
16482
+ options
16483
+ )
16484
+ },
16485
+ /** View AI supplement recommendation cache entries. */
16486
+ supplementRecCache: {
16487
+ /** List supplement cache entries. */
16488
+ list: async (params, options) => rb.execute(
16489
+ getAdminClinicalSupplementRecCache,
16490
+ { query: params },
16491
+ options
16492
+ ),
16493
+ /** Get cache entry by ID. */
16494
+ get: async (id, options) => rb.execute(
16495
+ getAdminClinicalSupplementRecCacheById,
16496
+ { path: { id } },
16497
+ options
16498
+ ),
16499
+ /** Update a cache entry. */
16500
+ update: async (id, attributes, options) => rb.execute(
16501
+ patchAdminClinicalSupplementRecCacheById,
16502
+ {
16503
+ path: { id },
16504
+ body: {
16505
+ data: { type: "clinical-supplement-rec-cache", id, attributes }
16506
+ }
16507
+ },
16508
+ options
16509
+ )
14993
16510
  }
14994
16511
  };
14995
16512
  }