@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.mjs CHANGED
@@ -814,7 +814,7 @@ var createClient = (config = {}) => {
814
814
  };
815
815
 
816
816
  // src/version.ts
817
- var SDK_VERSION = "0.10.4";
817
+ var SDK_VERSION = "0.10.5";
818
818
  var DEFAULT_API_VERSION = "2026-03-23";
819
819
 
820
820
  // src/base-client.ts
@@ -1843,6 +1843,11 @@ var patchAdminClinicalGoalTemplatesCatalogByIdArchive = (options) => (options.cl
1843
1843
  ...options.headers
1844
1844
  }
1845
1845
  });
1846
+ var getAdminClinicalPatientsByIdMedications = (options) => (options.client ?? client).get({
1847
+ security: [{ scheme: "bearer", type: "http" }],
1848
+ url: "/admin/clinical/patients/{id}/medications",
1849
+ ...options
1850
+ });
1846
1851
  var getAdminClinicalHealthMetricsBySession = (options) => (options.client ?? client).get({
1847
1852
  security: [{ scheme: "bearer", type: "http" }],
1848
1853
  url: "/admin/clinical/health-metrics/by-session",
@@ -3136,6 +3141,20 @@ var getAdminClinicalNotesByWorkspace = (options) => (options.client ?? client).g
3136
3141
  url: "/admin/clinical/notes/by-workspace",
3137
3142
  ...options
3138
3143
  });
3144
+ var getAdminClinicalClientMedications = (options) => (options.client ?? client).get({
3145
+ security: [{ scheme: "bearer", type: "http" }],
3146
+ url: "/admin/clinical/client-medications",
3147
+ ...options
3148
+ });
3149
+ var postAdminClinicalClientMedications = (options) => (options.client ?? client).post({
3150
+ security: [{ scheme: "bearer", type: "http" }],
3151
+ url: "/admin/clinical/client-medications",
3152
+ ...options,
3153
+ headers: {
3154
+ "Content-Type": "application/vnd.api+json",
3155
+ ...options.headers
3156
+ }
3157
+ });
3139
3158
  var deleteAdminCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
3140
3159
  security: [{ scheme: "bearer", type: "http" }],
3141
3160
  url: "/admin/crm/custom-entities/{id}",
@@ -3549,6 +3568,15 @@ var getAdminVoiceSessionsById = (options) => (options.client ?? client).get({
3549
3568
  url: "/admin/voice/sessions/{id}",
3550
3569
  ...options
3551
3570
  });
3571
+ var patchAdminClinicalClientMedicationsByIdRestore = (options) => (options.client ?? client).patch({
3572
+ security: [{ scheme: "bearer", type: "http" }],
3573
+ url: "/admin/clinical/client-medications/{id}/restore",
3574
+ ...options,
3575
+ headers: {
3576
+ "Content-Type": "application/vnd.api+json",
3577
+ ...options.headers
3578
+ }
3579
+ });
3552
3580
  var deleteAdminWebhookConfigsById = (options) => (options.client ?? client).delete({
3553
3581
  security: [{ scheme: "bearer", type: "http" }],
3554
3582
  url: "/admin/webhook-configs/{id}",
@@ -4893,6 +4921,11 @@ var getAdminAgentVersionRevisions = (options) => (options.client ?? client).get(
4893
4921
  url: "/admin/agent-version-revisions",
4894
4922
  ...options
4895
4923
  });
4924
+ var deleteAdminClinicalClientMedicationsByIdPermanent = (options) => (options.client ?? client).delete({
4925
+ security: [{ scheme: "bearer", type: "http" }],
4926
+ url: "/admin/clinical/client-medications/{id}/permanent",
4927
+ ...options
4928
+ });
4896
4929
  var getAdminAgentTools = (options) => (options.client ?? client).get({
4897
4930
  security: [{ scheme: "bearer", type: "http" }],
4898
4931
  url: "/admin/agent-tools",
@@ -5514,6 +5547,20 @@ var postAdminClinicalGoalTemplatesFromExisting = (options) => (options.client ??
5514
5547
  ...options.headers
5515
5548
  }
5516
5549
  });
5550
+ var getAdminClinicalClientMedicationsById = (options) => (options.client ?? client).get({
5551
+ security: [{ scheme: "bearer", type: "http" }],
5552
+ url: "/admin/clinical/client-medications/{id}",
5553
+ ...options
5554
+ });
5555
+ var patchAdminClinicalClientMedicationsById = (options) => (options.client ?? client).patch({
5556
+ security: [{ scheme: "bearer", type: "http" }],
5557
+ url: "/admin/clinical/client-medications/{id}",
5558
+ ...options,
5559
+ headers: {
5560
+ "Content-Type": "application/vnd.api+json",
5561
+ ...options.headers
5562
+ }
5563
+ });
5517
5564
  var getAdminThreadsStats = (options) => (options.client ?? client).get({
5518
5565
  security: [{ scheme: "bearer", type: "http" }],
5519
5566
  url: "/admin/threads/stats",
@@ -7324,6 +7371,20 @@ var getAdminClinicalPracticeToolsCategoriesCatalog = (options) => (options.clien
7324
7371
  url: "/admin/clinical/practice-tools/categories/catalog",
7325
7372
  ...options
7326
7373
  });
7374
+ var patchAdminClinicalClientMedicationsByIdArchive = (options) => (options.client ?? client).patch({
7375
+ security: [{ scheme: "bearer", type: "http" }],
7376
+ url: "/admin/clinical/client-medications/{id}/archive",
7377
+ ...options,
7378
+ headers: {
7379
+ "Content-Type": "application/vnd.api+json",
7380
+ ...options.headers
7381
+ }
7382
+ });
7383
+ var getAdminClinicalClientMedicationsArchived = (options) => (options.client ?? client).get({
7384
+ security: [{ scheme: "bearer", type: "http" }],
7385
+ url: "/admin/clinical/client-medications/archived",
7386
+ ...options
7387
+ });
7327
7388
  var getAdminVoiceRecordings = (options) => (options.client ?? client).get({
7328
7389
  security: [{ scheme: "bearer", type: "http" }],
7329
7390
  url: "/admin/voice/recordings",
@@ -20583,6 +20644,12 @@ function createClinicalNamespace(rb) {
20583
20644
  { path: { id } },
20584
20645
  options
20585
20646
  ),
20647
+ /** List medications for a patient. */
20648
+ medications: async (id, options) => rb.execute(
20649
+ getAdminClinicalPatientsByIdMedications,
20650
+ { path: { id } },
20651
+ options
20652
+ ),
20586
20653
  /** List resource assignments for a patient. */
20587
20654
  resourceAssignments: async (id, options) => rb.execute(
20588
20655
  getAdminClinicalPatientsByIdResourceAssignments,
@@ -21284,6 +21351,96 @@ function createClinicalNamespace(rb) {
21284
21351
  options
21285
21352
  ).then((r) => r.data)
21286
21353
  },
21354
+ /**
21355
+ * Manage medication prescriptions for clinical patients.
21356
+ */
21357
+ clientMedications: {
21358
+ /** List medication prescriptions. */
21359
+ list: async (params, options) => rb.execute(
21360
+ getAdminClinicalClientMedications,
21361
+ { query: params ?? {} },
21362
+ options
21363
+ ),
21364
+ /** Get a single medication prescription by ID. */
21365
+ get: async (id, options) => rb.execute(
21366
+ getAdminClinicalClientMedicationsById,
21367
+ { path: { id } },
21368
+ options
21369
+ ),
21370
+ /** Create a new medication prescription. */
21371
+ create: async (attributes, options) => rb.execute(
21372
+ postAdminClinicalClientMedications,
21373
+ {
21374
+ body: { data: { type: "clinical-client-medication", attributes } }
21375
+ },
21376
+ options
21377
+ ),
21378
+ /** Update a medication prescription. */
21379
+ update: async (id, attributes, options) => rb.execute(
21380
+ patchAdminClinicalClientMedicationsById,
21381
+ {
21382
+ path: { id },
21383
+ body: {
21384
+ data: { type: "clinical-client-medication", id, attributes }
21385
+ }
21386
+ },
21387
+ options
21388
+ ),
21389
+ /**
21390
+ * Delete (archive) a medication prescription.
21391
+ * @deprecated Use {@link archive} instead.
21392
+ */
21393
+ delete: async (id, options) => rb.execute(
21394
+ patchAdminClinicalClientMedicationsByIdArchive,
21395
+ {
21396
+ path: { id },
21397
+ body: {
21398
+ data: { type: "clinical-client-medication", id, attributes: {} }
21399
+ }
21400
+ },
21401
+ options
21402
+ ),
21403
+ /** Archive (soft-delete) a medication prescription. */
21404
+ archive: async (id, options) => rb.execute(
21405
+ patchAdminClinicalClientMedicationsByIdArchive,
21406
+ {
21407
+ path: { id },
21408
+ body: {
21409
+ data: { type: "clinical-client-medication", id, attributes: {} }
21410
+ }
21411
+ },
21412
+ options
21413
+ ),
21414
+ /** Restore an archived medication prescription. */
21415
+ restore: async (id, options) => rb.execute(
21416
+ patchAdminClinicalClientMedicationsByIdRestore,
21417
+ {
21418
+ path: { id },
21419
+ body: {
21420
+ data: { type: "clinical-client-medication", id, attributes: {} }
21421
+ }
21422
+ },
21423
+ options
21424
+ ),
21425
+ /** Permanently delete a medication prescription. Irreversible. */
21426
+ permanentDelete: async (id, options) => rb.executeDelete(
21427
+ deleteAdminClinicalClientMedicationsByIdPermanent,
21428
+ { path: { id } },
21429
+ options
21430
+ ),
21431
+ /** List archived (soft-deleted) medication prescriptions. */
21432
+ listArchived: async (params, options) => rb.execute(
21433
+ getAdminClinicalClientMedicationsArchived,
21434
+ { query: params ?? {} },
21435
+ options
21436
+ ),
21437
+ /** Create multiple medications in a single request. */
21438
+ bulkCreate: async (attrs, options) => rb.rawPost(
21439
+ `/admin/clinical/client-medications/bulk`,
21440
+ { data: attrs },
21441
+ options
21442
+ ).then((r) => r.data)
21443
+ },
21287
21444
  /** View and update clinical delivery audit records. */
21288
21445
  deliveries: {
21289
21446
  /** List deliveries. */