@gpt-platform/admin 0.10.4 → 0.10.5

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.js CHANGED
@@ -855,7 +855,7 @@ var createClient = (config = {}) => {
855
855
  };
856
856
 
857
857
  // src/version.ts
858
- var SDK_VERSION = "0.10.4";
858
+ var SDK_VERSION = "0.10.5";
859
859
  var DEFAULT_API_VERSION = "2026-03-23";
860
860
 
861
861
  // src/base-client.ts
@@ -1884,6 +1884,11 @@ var patchAdminClinicalGoalTemplatesCatalogByIdArchive = (options) => (options.cl
1884
1884
  ...options.headers
1885
1885
  }
1886
1886
  });
1887
+ var getAdminClinicalPatientsByIdMedications = (options) => (options.client ?? client).get({
1888
+ security: [{ scheme: "bearer", type: "http" }],
1889
+ url: "/admin/clinical/patients/{id}/medications",
1890
+ ...options
1891
+ });
1887
1892
  var getAdminClinicalHealthMetricsBySession = (options) => (options.client ?? client).get({
1888
1893
  security: [{ scheme: "bearer", type: "http" }],
1889
1894
  url: "/admin/clinical/health-metrics/by-session",
@@ -3177,6 +3182,20 @@ var getAdminClinicalNotesByWorkspace = (options) => (options.client ?? client).g
3177
3182
  url: "/admin/clinical/notes/by-workspace",
3178
3183
  ...options
3179
3184
  });
3185
+ var getAdminClinicalClientMedications = (options) => (options.client ?? client).get({
3186
+ security: [{ scheme: "bearer", type: "http" }],
3187
+ url: "/admin/clinical/client-medications",
3188
+ ...options
3189
+ });
3190
+ var postAdminClinicalClientMedications = (options) => (options.client ?? client).post({
3191
+ security: [{ scheme: "bearer", type: "http" }],
3192
+ url: "/admin/clinical/client-medications",
3193
+ ...options,
3194
+ headers: {
3195
+ "Content-Type": "application/vnd.api+json",
3196
+ ...options.headers
3197
+ }
3198
+ });
3180
3199
  var deleteAdminCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
3181
3200
  security: [{ scheme: "bearer", type: "http" }],
3182
3201
  url: "/admin/crm/custom-entities/{id}",
@@ -3590,6 +3609,15 @@ var getAdminVoiceSessionsById = (options) => (options.client ?? client).get({
3590
3609
  url: "/admin/voice/sessions/{id}",
3591
3610
  ...options
3592
3611
  });
3612
+ var patchAdminClinicalClientMedicationsByIdRestore = (options) => (options.client ?? client).patch({
3613
+ security: [{ scheme: "bearer", type: "http" }],
3614
+ url: "/admin/clinical/client-medications/{id}/restore",
3615
+ ...options,
3616
+ headers: {
3617
+ "Content-Type": "application/vnd.api+json",
3618
+ ...options.headers
3619
+ }
3620
+ });
3593
3621
  var deleteAdminWebhookConfigsById = (options) => (options.client ?? client).delete({
3594
3622
  security: [{ scheme: "bearer", type: "http" }],
3595
3623
  url: "/admin/webhook-configs/{id}",
@@ -4934,6 +4962,11 @@ var getAdminAgentVersionRevisions = (options) => (options.client ?? client).get(
4934
4962
  url: "/admin/agent-version-revisions",
4935
4963
  ...options
4936
4964
  });
4965
+ var deleteAdminClinicalClientMedicationsByIdPermanent = (options) => (options.client ?? client).delete({
4966
+ security: [{ scheme: "bearer", type: "http" }],
4967
+ url: "/admin/clinical/client-medications/{id}/permanent",
4968
+ ...options
4969
+ });
4937
4970
  var getAdminAgentTools = (options) => (options.client ?? client).get({
4938
4971
  security: [{ scheme: "bearer", type: "http" }],
4939
4972
  url: "/admin/agent-tools",
@@ -5555,6 +5588,20 @@ var postAdminClinicalGoalTemplatesFromExisting = (options) => (options.client ??
5555
5588
  ...options.headers
5556
5589
  }
5557
5590
  });
5591
+ var getAdminClinicalClientMedicationsById = (options) => (options.client ?? client).get({
5592
+ security: [{ scheme: "bearer", type: "http" }],
5593
+ url: "/admin/clinical/client-medications/{id}",
5594
+ ...options
5595
+ });
5596
+ var patchAdminClinicalClientMedicationsById = (options) => (options.client ?? client).patch({
5597
+ security: [{ scheme: "bearer", type: "http" }],
5598
+ url: "/admin/clinical/client-medications/{id}",
5599
+ ...options,
5600
+ headers: {
5601
+ "Content-Type": "application/vnd.api+json",
5602
+ ...options.headers
5603
+ }
5604
+ });
5558
5605
  var getAdminThreadsStats = (options) => (options.client ?? client).get({
5559
5606
  security: [{ scheme: "bearer", type: "http" }],
5560
5607
  url: "/admin/threads/stats",
@@ -7365,6 +7412,20 @@ var getAdminClinicalPracticeToolsCategoriesCatalog = (options) => (options.clien
7365
7412
  url: "/admin/clinical/practice-tools/categories/catalog",
7366
7413
  ...options
7367
7414
  });
7415
+ var patchAdminClinicalClientMedicationsByIdArchive = (options) => (options.client ?? client).patch({
7416
+ security: [{ scheme: "bearer", type: "http" }],
7417
+ url: "/admin/clinical/client-medications/{id}/archive",
7418
+ ...options,
7419
+ headers: {
7420
+ "Content-Type": "application/vnd.api+json",
7421
+ ...options.headers
7422
+ }
7423
+ });
7424
+ var getAdminClinicalClientMedicationsArchived = (options) => (options.client ?? client).get({
7425
+ security: [{ scheme: "bearer", type: "http" }],
7426
+ url: "/admin/clinical/client-medications/archived",
7427
+ ...options
7428
+ });
7368
7429
  var getAdminVoiceRecordings = (options) => (options.client ?? client).get({
7369
7430
  security: [{ scheme: "bearer", type: "http" }],
7370
7431
  url: "/admin/voice/recordings",
@@ -20624,6 +20685,12 @@ function createClinicalNamespace(rb) {
20624
20685
  { path: { id } },
20625
20686
  options
20626
20687
  ),
20688
+ /** List medications for a patient. */
20689
+ medications: async (id, options) => rb.execute(
20690
+ getAdminClinicalPatientsByIdMedications,
20691
+ { path: { id } },
20692
+ options
20693
+ ),
20627
20694
  /** List resource assignments for a patient. */
20628
20695
  resourceAssignments: async (id, options) => rb.execute(
20629
20696
  getAdminClinicalPatientsByIdResourceAssignments,
@@ -21325,6 +21392,96 @@ function createClinicalNamespace(rb) {
21325
21392
  options
21326
21393
  ).then((r) => r.data)
21327
21394
  },
21395
+ /**
21396
+ * Manage medication prescriptions for clinical patients.
21397
+ */
21398
+ clientMedications: {
21399
+ /** List medication prescriptions. */
21400
+ list: async (params, options) => rb.execute(
21401
+ getAdminClinicalClientMedications,
21402
+ { query: params ?? {} },
21403
+ options
21404
+ ),
21405
+ /** Get a single medication prescription by ID. */
21406
+ get: async (id, options) => rb.execute(
21407
+ getAdminClinicalClientMedicationsById,
21408
+ { path: { id } },
21409
+ options
21410
+ ),
21411
+ /** Create a new medication prescription. */
21412
+ create: async (attributes, options) => rb.execute(
21413
+ postAdminClinicalClientMedications,
21414
+ {
21415
+ body: { data: { type: "clinical-client-medication", attributes } }
21416
+ },
21417
+ options
21418
+ ),
21419
+ /** Update a medication prescription. */
21420
+ update: async (id, attributes, options) => rb.execute(
21421
+ patchAdminClinicalClientMedicationsById,
21422
+ {
21423
+ path: { id },
21424
+ body: {
21425
+ data: { type: "clinical-client-medication", id, attributes }
21426
+ }
21427
+ },
21428
+ options
21429
+ ),
21430
+ /**
21431
+ * Delete (archive) a medication prescription.
21432
+ * @deprecated Use {@link archive} instead.
21433
+ */
21434
+ delete: async (id, options) => rb.execute(
21435
+ patchAdminClinicalClientMedicationsByIdArchive,
21436
+ {
21437
+ path: { id },
21438
+ body: {
21439
+ data: { type: "clinical-client-medication", id, attributes: {} }
21440
+ }
21441
+ },
21442
+ options
21443
+ ),
21444
+ /** Archive (soft-delete) a medication prescription. */
21445
+ archive: async (id, options) => rb.execute(
21446
+ patchAdminClinicalClientMedicationsByIdArchive,
21447
+ {
21448
+ path: { id },
21449
+ body: {
21450
+ data: { type: "clinical-client-medication", id, attributes: {} }
21451
+ }
21452
+ },
21453
+ options
21454
+ ),
21455
+ /** Restore an archived medication prescription. */
21456
+ restore: async (id, options) => rb.execute(
21457
+ patchAdminClinicalClientMedicationsByIdRestore,
21458
+ {
21459
+ path: { id },
21460
+ body: {
21461
+ data: { type: "clinical-client-medication", id, attributes: {} }
21462
+ }
21463
+ },
21464
+ options
21465
+ ),
21466
+ /** Permanently delete a medication prescription. Irreversible. */
21467
+ permanentDelete: async (id, options) => rb.executeDelete(
21468
+ deleteAdminClinicalClientMedicationsByIdPermanent,
21469
+ { path: { id } },
21470
+ options
21471
+ ),
21472
+ /** List archived (soft-deleted) medication prescriptions. */
21473
+ listArchived: async (params, options) => rb.execute(
21474
+ getAdminClinicalClientMedicationsArchived,
21475
+ { query: params ?? {} },
21476
+ options
21477
+ ),
21478
+ /** Create multiple medications in a single request. */
21479
+ bulkCreate: async (attrs, options) => rb.rawPost(
21480
+ `/admin/clinical/client-medications/bulk`,
21481
+ { data: attrs },
21482
+ options
21483
+ ).then((r) => r.data)
21484
+ },
21328
21485
  /** View and update clinical delivery audit records. */
21329
21486
  deliveries: {
21330
21487
  /** List deliveries. */