@gpt-platform/client 0.10.4 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/_internal/client/client.gen.d.ts +3 -0
  2. package/dist/_internal/client/client.gen.d.ts.map +1 -0
  3. package/dist/_internal/client/index.d.ts +9 -0
  4. package/dist/_internal/client/index.d.ts.map +1 -0
  5. package/dist/_internal/client/types.gen.d.ts +118 -0
  6. package/dist/_internal/client/types.gen.d.ts.map +1 -0
  7. package/dist/_internal/client/utils.gen.d.ts +34 -0
  8. package/dist/_internal/client/utils.gen.d.ts.map +1 -0
  9. package/dist/_internal/client.gen.d.ts +13 -0
  10. package/dist/_internal/client.gen.d.ts.map +1 -0
  11. package/dist/_internal/core/auth.gen.d.ts +19 -0
  12. package/dist/_internal/core/auth.gen.d.ts.map +1 -0
  13. package/dist/_internal/core/bodySerializer.gen.d.ts +26 -0
  14. package/dist/_internal/core/bodySerializer.gen.d.ts.map +1 -0
  15. package/dist/_internal/core/params.gen.d.ts +44 -0
  16. package/dist/_internal/core/params.gen.d.ts.map +1 -0
  17. package/dist/_internal/core/pathSerializer.gen.d.ts +34 -0
  18. package/dist/_internal/core/pathSerializer.gen.d.ts.map +1 -0
  19. package/dist/_internal/core/queryKeySerializer.gen.d.ts +19 -0
  20. package/dist/_internal/core/queryKeySerializer.gen.d.ts.map +1 -0
  21. package/dist/_internal/core/serverSentEvents.gen.d.ts +72 -0
  22. package/dist/_internal/core/serverSentEvents.gen.d.ts.map +1 -0
  23. package/dist/_internal/core/types.gen.d.ts +79 -0
  24. package/dist/_internal/core/types.gen.d.ts.map +1 -0
  25. package/dist/_internal/core/utils.gen.d.ts +20 -0
  26. package/dist/_internal/core/utils.gen.d.ts.map +1 -0
  27. package/dist/_internal/index.d.ts +3 -0
  28. package/dist/_internal/index.d.ts.map +1 -0
  29. package/dist/_internal/sdk.gen.d.ts +7053 -0
  30. package/dist/_internal/sdk.gen.d.ts.map +1 -0
  31. package/dist/_internal/types.gen.d.ts +146633 -0
  32. package/dist/_internal/types.gen.d.ts.map +1 -0
  33. package/dist/base-client.d.ts +199 -0
  34. package/dist/base-client.d.ts.map +1 -0
  35. package/dist/errors/index.d.ts +128 -0
  36. package/dist/errors/index.d.ts.map +1 -0
  37. package/dist/events.d.ts +69 -0
  38. package/dist/events.d.ts.map +1 -0
  39. package/dist/execution-events.d.ts +95 -0
  40. package/dist/execution-events.d.ts.map +1 -0
  41. package/dist/gpt-client.d.ts +2175 -0
  42. package/dist/gpt-client.d.ts.map +1 -0
  43. package/dist/index.d.ts +51 -30308
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +775 -14
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +775 -14
  48. package/dist/index.mjs.map +1 -1
  49. package/dist/json-api.d.ts +26 -0
  50. package/dist/json-api.d.ts.map +1 -0
  51. package/dist/logging.d.ts +22 -0
  52. package/dist/logging.d.ts.map +1 -0
  53. package/dist/namespace-types.d.ts +79 -0
  54. package/dist/namespace-types.d.ts.map +1 -0
  55. package/dist/namespaces/access-grants.d.ts +71 -0
  56. package/dist/namespaces/access-grants.d.ts.map +1 -0
  57. package/dist/namespaces/agents.d.ts +1406 -0
  58. package/dist/namespaces/agents.d.ts.map +1 -0
  59. package/dist/namespaces/ai.d.ts +407 -0
  60. package/dist/namespaces/ai.d.ts.map +1 -0
  61. package/dist/namespaces/audit.d.ts +83 -0
  62. package/dist/namespaces/audit.d.ts.map +1 -0
  63. package/dist/namespaces/billing.d.ts +854 -0
  64. package/dist/namespaces/billing.d.ts.map +1 -0
  65. package/dist/namespaces/campaigns.d.ts +973 -0
  66. package/dist/namespaces/campaigns.d.ts.map +1 -0
  67. package/dist/namespaces/catalog.d.ts +964 -0
  68. package/dist/namespaces/catalog.d.ts.map +1 -0
  69. package/dist/namespaces/channels.d.ts +162 -0
  70. package/dist/namespaces/channels.d.ts.map +1 -0
  71. package/dist/namespaces/clinical.d.ts +2443 -0
  72. package/dist/namespaces/clinical.d.ts.map +1 -0
  73. package/dist/namespaces/communication.d.ts +439 -0
  74. package/dist/namespaces/communication.d.ts.map +1 -0
  75. package/dist/namespaces/compliance.d.ts +2310 -0
  76. package/dist/namespaces/compliance.d.ts.map +1 -0
  77. package/dist/namespaces/connectors.d.ts +1368 -0
  78. package/dist/namespaces/connectors.d.ts.map +1 -0
  79. package/dist/namespaces/content.d.ts +188 -0
  80. package/dist/namespaces/content.d.ts.map +1 -0
  81. package/dist/namespaces/crawler.d.ts +408 -0
  82. package/dist/namespaces/crawler.d.ts.map +1 -0
  83. package/dist/namespaces/crm-clusters.d.ts +31 -0
  84. package/dist/namespaces/crm-clusters.d.ts.map +1 -0
  85. package/dist/namespaces/crm.d.ts +1539 -0
  86. package/dist/namespaces/crm.d.ts.map +1 -0
  87. package/dist/namespaces/documents.d.ts +136 -0
  88. package/dist/namespaces/documents.d.ts.map +1 -0
  89. package/dist/namespaces/email.d.ts +550 -0
  90. package/dist/namespaces/email.d.ts.map +1 -0
  91. package/dist/namespaces/extraction.d.ts +1249 -0
  92. package/dist/namespaces/extraction.d.ts.map +1 -0
  93. package/dist/namespaces/identity.d.ts +411 -0
  94. package/dist/namespaces/identity.d.ts.map +1 -0
  95. package/dist/namespaces/imports.d.ts +177 -0
  96. package/dist/namespaces/imports.d.ts.map +1 -0
  97. package/dist/namespaces/index.d.ts +119 -0
  98. package/dist/namespaces/index.d.ts.map +1 -0
  99. package/dist/namespaces/memory.d.ts +105 -0
  100. package/dist/namespaces/memory.d.ts.map +1 -0
  101. package/dist/namespaces/models.d.ts +75 -0
  102. package/dist/namespaces/models.d.ts.map +1 -0
  103. package/dist/namespaces/permissions.d.ts +75 -0
  104. package/dist/namespaces/permissions.d.ts.map +1 -0
  105. package/dist/namespaces/pipeline-executions.d.ts +130 -0
  106. package/dist/namespaces/pipeline-executions.d.ts.map +1 -0
  107. package/dist/namespaces/pipelines.d.ts +120 -0
  108. package/dist/namespaces/pipelines.d.ts.map +1 -0
  109. package/dist/namespaces/platform.d.ts +1430 -0
  110. package/dist/namespaces/platform.d.ts.map +1 -0
  111. package/dist/namespaces/portal.d.ts +198 -0
  112. package/dist/namespaces/portal.d.ts.map +1 -0
  113. package/dist/namespaces/projects.d.ts +553 -0
  114. package/dist/namespaces/projects.d.ts.map +1 -0
  115. package/dist/namespaces/roles.d.ts +65 -0
  116. package/dist/namespaces/roles.d.ts.map +1 -0
  117. package/dist/namespaces/scheduling.d.ts +944 -0
  118. package/dist/namespaces/scheduling.d.ts.map +1 -0
  119. package/dist/namespaces/search.d.ts +224 -0
  120. package/dist/namespaces/search.d.ts.map +1 -0
  121. package/dist/namespaces/session-notes.d.ts +67 -0
  122. package/dist/namespaces/session-notes.d.ts.map +1 -0
  123. package/dist/namespaces/social.d.ts +330 -0
  124. package/dist/namespaces/social.d.ts.map +1 -0
  125. package/dist/namespaces/storage.d.ts +378 -0
  126. package/dist/namespaces/storage.d.ts.map +1 -0
  127. package/dist/namespaces/support.d.ts +427 -0
  128. package/dist/namespaces/support.d.ts.map +1 -0
  129. package/dist/namespaces/threads.d.ts +596 -0
  130. package/dist/namespaces/threads.d.ts.map +1 -0
  131. package/dist/namespaces/training.d.ts +358 -0
  132. package/dist/namespaces/training.d.ts.map +1 -0
  133. package/dist/namespaces/voice.d.ts +752 -0
  134. package/dist/namespaces/voice.d.ts.map +1 -0
  135. package/dist/namespaces/watcher.d.ts +425 -0
  136. package/dist/namespaces/watcher.d.ts.map +1 -0
  137. package/dist/namespaces/webhooks-ns.d.ts +3 -0
  138. package/dist/namespaces/webhooks-ns.d.ts.map +1 -0
  139. package/dist/pagination.d.ts +57 -0
  140. package/dist/pagination.d.ts.map +1 -0
  141. package/dist/request-builder.d.ts +95 -0
  142. package/dist/request-builder.d.ts.map +1 -0
  143. package/dist/security.d.ts +32 -0
  144. package/dist/security.d.ts.map +1 -0
  145. package/dist/streaming.d.ts +135 -0
  146. package/dist/streaming.d.ts.map +1 -0
  147. package/dist/utils/retry.d.ts +63 -0
  148. package/dist/utils/retry.d.ts.map +1 -0
  149. package/dist/version.d.ts +5 -0
  150. package/dist/version.d.ts.map +1 -0
  151. package/dist/webhook-signature.d.ts +109 -0
  152. package/dist/webhook-signature.d.ts.map +1 -0
  153. package/llms.txt +40 -1
  154. package/package.json +286 -36
  155. package/dist/index.d.mts +0 -30308
package/dist/index.js CHANGED
@@ -1339,7 +1339,7 @@ function buildUserAgent(sdkVersion, appInfo) {
1339
1339
  }
1340
1340
 
1341
1341
  // src/version.ts
1342
- var SDK_VERSION = "0.10.4";
1342
+ var SDK_VERSION = "0.11.0";
1343
1343
  var DEFAULT_API_VERSION = "2026-03-23";
1344
1344
 
1345
1345
  // src/base-client.ts
@@ -1863,6 +1863,15 @@ var postCatalogTaxonomyNodes = (options) => (options.client ?? client).post({
1863
1863
  ...options.headers
1864
1864
  }
1865
1865
  });
1866
+ var postConnectorsByIdHealthieAppointmentsSync = (options) => (options.client ?? client).post({
1867
+ security: [{ scheme: "bearer", type: "http" }],
1868
+ url: "/connectors/{id}/healthie/appointments/sync",
1869
+ ...options,
1870
+ headers: {
1871
+ "Content-Type": "application/vnd.api+json",
1872
+ ...options.headers
1873
+ }
1874
+ });
1866
1875
  var postCampaignsSequenceSteps = (options) => (options.client ?? client).post({
1867
1876
  security: [{ scheme: "bearer", type: "http" }],
1868
1877
  url: "/campaigns/sequence-steps",
@@ -2305,6 +2314,11 @@ var getSupportTagsWorkspaceByWorkspaceId = (options) => (options.client ?? clien
2305
2314
  url: "/support/tags/workspace/{workspace_id}",
2306
2315
  ...options
2307
2316
  });
2317
+ var getClinicalPatientsByIdMedications = (options) => (options.client ?? client).get({
2318
+ security: [{ scheme: "bearer", type: "http" }],
2319
+ url: "/clinical/patients/{id}/medications",
2320
+ ...options
2321
+ });
2308
2322
  var getSearchIndexes = (options) => (options.client ?? client).get({
2309
2323
  security: [{ scheme: "bearer", type: "http" }],
2310
2324
  url: "/search/indexes",
@@ -2596,6 +2610,15 @@ var getUsersMeDashboard = (options) => (options.client ?? client).get({
2596
2610
  url: "/users/me/dashboard",
2597
2611
  ...options
2598
2612
  });
2613
+ var postConnectorsByIdHealthiePatientsSync = (options) => (options.client ?? client).post({
2614
+ security: [{ scheme: "bearer", type: "http" }],
2615
+ url: "/connectors/{id}/healthie/patients/sync",
2616
+ ...options,
2617
+ headers: {
2618
+ "Content-Type": "application/vnd.api+json",
2619
+ ...options.headers
2620
+ }
2621
+ });
2599
2622
  var getBusinessAssociateAgreementsById = (options) => (options.client ?? client).get({
2600
2623
  security: [{ scheme: "bearer", type: "http" }],
2601
2624
  url: "/business-associate-agreements/{id}",
@@ -3939,6 +3962,15 @@ var patchEmailInclusionsById = (options) => (options.client ?? client).patch({
3939
3962
  ...options.headers
3940
3963
  }
3941
3964
  });
3965
+ var postConnectorsByIdHealthieSyncAll = (options) => (options.client ?? client).post({
3966
+ security: [{ scheme: "bearer", type: "http" }],
3967
+ url: "/connectors/{id}/healthie/sync-all",
3968
+ ...options,
3969
+ headers: {
3970
+ "Content-Type": "application/vnd.api+json",
3971
+ ...options.headers
3972
+ }
3973
+ });
3942
3974
  var getUsersMe = (options) => (options.client ?? client).get({
3943
3975
  security: [{ scheme: "bearer", type: "http" }],
3944
3976
  url: "/users/me",
@@ -5091,6 +5123,11 @@ var getAuditLogs = (options) => (options.client ?? client).get({
5091
5123
  url: "/audit-logs",
5092
5124
  ...options
5093
5125
  });
5126
+ var getClinicalClientMedicationsArchived = (options) => (options.client ?? client).get({
5127
+ security: [{ scheme: "bearer", type: "http" }],
5128
+ url: "/clinical/client-medications/archived",
5129
+ ...options
5130
+ });
5094
5131
  var getEmailInclusionsEmailByOutboundEmailId = (options) => (options.client ?? client).get({
5095
5132
  security: [{ scheme: "bearer", type: "http" }],
5096
5133
  url: "/email/inclusions/email/{outbound_email_id}",
@@ -5643,6 +5680,15 @@ var patchUserProfilesByIdDismissWelcome = (options) => (options.client ?? client
5643
5680
  ...options.headers
5644
5681
  }
5645
5682
  });
5683
+ var postConnectorsByIdHealthieAppointmentsList = (options) => (options.client ?? client).post({
5684
+ security: [{ scheme: "bearer", type: "http" }],
5685
+ url: "/connectors/{id}/healthie/appointments/list",
5686
+ ...options,
5687
+ headers: {
5688
+ "Content-Type": "application/vnd.api+json",
5689
+ ...options.headers
5690
+ }
5691
+ });
5646
5692
  var getClinicalHealthMetrics = (options) => (options.client ?? client).get({
5647
5693
  security: [{ scheme: "bearer", type: "http" }],
5648
5694
  url: "/clinical/health-metrics",
@@ -5685,6 +5731,15 @@ var patchApplicationsById = (options) => (options.client ?? client).patch({
5685
5731
  ...options.headers
5686
5732
  }
5687
5733
  });
5734
+ var patchClinicalClientMedicationsByIdRestore = (options) => (options.client ?? client).patch({
5735
+ security: [{ scheme: "bearer", type: "http" }],
5736
+ url: "/clinical/client-medications/{id}/restore",
5737
+ ...options,
5738
+ headers: {
5739
+ "Content-Type": "application/vnd.api+json",
5740
+ ...options.headers
5741
+ }
5742
+ });
5688
5743
  var patchEmailOutboundEmailsByIdSchedule = (options) => (options.client ?? client).patch({
5689
5744
  security: [{ scheme: "bearer", type: "http" }],
5690
5745
  url: "/email/outbound-emails/{id}/schedule",
@@ -6234,6 +6289,15 @@ var postAiEmbed = (options) => (options.client ?? client).post({
6234
6289
  ...options.headers
6235
6290
  }
6236
6291
  });
6292
+ var postConnectorsByIdHealthiePatientsList = (options) => (options.client ?? client).post({
6293
+ security: [{ scheme: "bearer", type: "http" }],
6294
+ url: "/connectors/{id}/healthie/patients/list",
6295
+ ...options,
6296
+ headers: {
6297
+ "Content-Type": "application/vnd.api+json",
6298
+ ...options.headers
6299
+ }
6300
+ });
6237
6301
  var patchConsentRecordsByIdWithdraw = (options) => (options.client ?? client).patch({
6238
6302
  security: [{ scheme: "bearer", type: "http" }],
6239
6303
  url: "/consent-records/{id}/withdraw",
@@ -6319,6 +6383,11 @@ var getScanResultsById = (options) => (options.client ?? client).get({
6319
6383
  url: "/scan-results/{id}",
6320
6384
  ...options
6321
6385
  });
6386
+ var getConnectorsByIdHealthieStatus = (options) => (options.client ?? client).get({
6387
+ security: [{ scheme: "bearer", type: "http" }],
6388
+ url: "/connectors/{id}/healthie/status",
6389
+ ...options
6390
+ });
6322
6391
  var getPolicyReviewSchedules = (options) => (options.client ?? client).get({
6323
6392
  security: [{ scheme: "bearer", type: "http" }],
6324
6393
  url: "/policy-review-schedules",
@@ -6429,6 +6498,15 @@ var postContentRewriteTone = (options) => (options.client ?? client).post({
6429
6498
  ...options.headers
6430
6499
  }
6431
6500
  });
6501
+ var patchClinicalClientMedicationsByIdArchive = (options) => (options.client ?? client).patch({
6502
+ security: [{ scheme: "bearer", type: "http" }],
6503
+ url: "/clinical/client-medications/{id}/archive",
6504
+ ...options,
6505
+ headers: {
6506
+ "Content-Type": "application/vnd.api+json",
6507
+ ...options.headers
6508
+ }
6509
+ });
6432
6510
  var patchStorageFilesByIdSoftDelete = (options) => (options.client ?? client).patch({
6433
6511
  security: [{ scheme: "bearer", type: "http" }],
6434
6512
  url: "/storage-files/{id}/soft-delete",
@@ -6741,6 +6819,20 @@ var getPlans = (options) => (options.client ?? client).get({
6741
6819
  url: "/plans",
6742
6820
  ...options
6743
6821
  });
6822
+ var getClinicalClientMedications = (options) => (options.client ?? client).get({
6823
+ security: [{ scheme: "bearer", type: "http" }],
6824
+ url: "/clinical/client-medications",
6825
+ ...options
6826
+ });
6827
+ var postClinicalClientMedications = (options) => (options.client ?? client).post({
6828
+ security: [{ scheme: "bearer", type: "http" }],
6829
+ url: "/clinical/client-medications",
6830
+ ...options,
6831
+ headers: {
6832
+ "Content-Type": "application/vnd.api+json",
6833
+ ...options.headers
6834
+ }
6835
+ });
6744
6836
  var postCrmActivities = (options) => (options.client ?? client).post({
6745
6837
  security: [{ scheme: "bearer", type: "http" }],
6746
6838
  url: "/crm/activities",
@@ -6838,6 +6930,20 @@ var patchSchedulingParticipantsByIdRespond = (options) => (options.client ?? cli
6838
6930
  ...options.headers
6839
6931
  }
6840
6932
  });
6933
+ var getClinicalClientMedicationsById = (options) => (options.client ?? client).get({
6934
+ security: [{ scheme: "bearer", type: "http" }],
6935
+ url: "/clinical/client-medications/{id}",
6936
+ ...options
6937
+ });
6938
+ var patchClinicalClientMedicationsById = (options) => (options.client ?? client).patch({
6939
+ security: [{ scheme: "bearer", type: "http" }],
6940
+ url: "/clinical/client-medications/{id}",
6941
+ ...options,
6942
+ headers: {
6943
+ "Content-Type": "application/vnd.api+json",
6944
+ ...options.headers
6945
+ }
6946
+ });
6841
6947
  var postAgentsByIdTest = (options) => (options.client ?? client).post({
6842
6948
  security: [{ scheme: "bearer", type: "http" }],
6843
6949
  url: "/agents/{id}/test",
@@ -7264,6 +7370,11 @@ var postEmailInclusions = (options) => (options.client ?? client).post({
7264
7370
  ...options.headers
7265
7371
  }
7266
7372
  });
7373
+ var deleteClinicalClientMedicationsByIdPermanent = (options) => (options.client ?? client).delete({
7374
+ security: [{ scheme: "bearer", type: "http" }],
7375
+ url: "/clinical/client-medications/{id}/permanent",
7376
+ ...options
7377
+ });
7267
7378
  var getAccessLogs = (options) => (options.client ?? client).get({
7268
7379
  security: [{ scheme: "bearer", type: "http" }],
7269
7380
  url: "/access-logs",
@@ -12610,6 +12721,18 @@ function createClinicalNamespace(rb) {
12610
12721
  { path: { id: patientId } },
12611
12722
  options
12612
12723
  ),
12724
+ /**
12725
+ * List medications for a patient (related resource).
12726
+ *
12727
+ * @param patientId - Patient UUID or CRM Contact UUID
12728
+ * @param options - Request options
12729
+ * @returns Array of {@link ClinicalClientMedication} records
12730
+ */
12731
+ medications: async (patientId, options) => rb.execute(
12732
+ getClinicalPatientsByIdMedications,
12733
+ { path: { id: patientId } },
12734
+ options
12735
+ ),
12613
12736
  /**
12614
12737
  * List resource assignments for a patient (related resource).
12615
12738
  *
@@ -13640,6 +13763,163 @@ function createClinicalNamespace(rb) {
13640
13763
  */
13641
13764
  bulkCreate: async (attrs, options) => rb.rawPost(`/clinical/client-supplements/bulk`, { data: attrs }, options).then((r) => r.data)
13642
13765
  },
13766
+ /**
13767
+ * Manage medication prescriptions for clinical patients.
13768
+ */
13769
+ clientMedications: {
13770
+ /**
13771
+ * List medication prescriptions, filtered by patient/workspace.
13772
+ *
13773
+ * @param params - Filter/pagination parameters
13774
+ * @param options - Request options
13775
+ * @returns Array of {@link ClinicalClientMedication} records
13776
+ */
13777
+ list: async (params, options) => rb.execute(
13778
+ getClinicalClientMedications,
13779
+ { query: params ?? {} },
13780
+ options
13781
+ ),
13782
+ /**
13783
+ * Get a single medication prescription by ID.
13784
+ *
13785
+ * @param id - ClientMedication UUID
13786
+ * @param options - Request options
13787
+ * @returns {@link ClinicalClientMedication} record
13788
+ */
13789
+ get: async (id, options) => rb.execute(
13790
+ getClinicalClientMedicationsById,
13791
+ { path: { id } },
13792
+ options
13793
+ ),
13794
+ /**
13795
+ * Create a new medication prescription.
13796
+ *
13797
+ * @param attributes - Medication creation attributes. Must include `workspace_id`,
13798
+ * `patient_id`, and `name`.
13799
+ * @param options - Request options
13800
+ * @returns Created {@link ClinicalClientMedication} record
13801
+ */
13802
+ create: async (attributes, options) => rb.execute(
13803
+ postClinicalClientMedications,
13804
+ {
13805
+ body: { data: { type: "clinical-client-medication", attributes } }
13806
+ },
13807
+ options
13808
+ ),
13809
+ /**
13810
+ * Update a medication prescription.
13811
+ *
13812
+ * @param id - ClientMedication UUID
13813
+ * @param attributes - Fields to update (PATCH semantics)
13814
+ * @param options - Request options
13815
+ * @returns Updated {@link ClinicalClientMedication} record
13816
+ */
13817
+ update: async (id, attributes, options) => rb.execute(
13818
+ patchClinicalClientMedicationsById,
13819
+ {
13820
+ path: { id },
13821
+ body: {
13822
+ data: { type: "clinical-client-medication", id, attributes }
13823
+ }
13824
+ },
13825
+ options
13826
+ ),
13827
+ /**
13828
+ * Delete (archive) a medication prescription.
13829
+ *
13830
+ * @deprecated Use {@link archive} instead.
13831
+ * @param id - ClientMedication UUID
13832
+ * @param options - Request options
13833
+ * @returns Archived {@link ClinicalClientMedication} record
13834
+ */
13835
+ delete: async (id, options) => rb.execute(
13836
+ patchClinicalClientMedicationsByIdArchive,
13837
+ {
13838
+ path: { id },
13839
+ body: {
13840
+ data: { type: "clinical-client-medication", id, attributes: {} }
13841
+ }
13842
+ },
13843
+ options
13844
+ ),
13845
+ /**
13846
+ * Archive (soft-delete) a medication prescription.
13847
+ *
13848
+ * @param id - ClientMedication UUID
13849
+ * @param options - Request options
13850
+ * @returns Archived {@link ClinicalClientMedication} record
13851
+ */
13852
+ archive: async (id, options) => rb.execute(
13853
+ patchClinicalClientMedicationsByIdArchive,
13854
+ {
13855
+ path: { id },
13856
+ body: {
13857
+ data: { type: "clinical-client-medication", id, attributes: {} }
13858
+ }
13859
+ },
13860
+ options
13861
+ ),
13862
+ /**
13863
+ * Restore an archived medication prescription.
13864
+ *
13865
+ * @param id - ClientMedication UUID
13866
+ * @param options - Request options
13867
+ * @returns Restored {@link ClinicalClientMedication} record
13868
+ */
13869
+ restore: async (id, options) => rb.execute(
13870
+ patchClinicalClientMedicationsByIdRestore,
13871
+ {
13872
+ path: { id },
13873
+ body: {
13874
+ data: { type: "clinical-client-medication", id, attributes: {} }
13875
+ }
13876
+ },
13877
+ options
13878
+ ),
13879
+ /**
13880
+ * Permanently delete a medication prescription. Irreversible.
13881
+ *
13882
+ * @param id - ClientMedication UUID
13883
+ * @param options - Request options
13884
+ * @returns `true` on success
13885
+ */
13886
+ permanentDelete: async (id, options) => rb.executeDelete(
13887
+ deleteClinicalClientMedicationsByIdPermanent,
13888
+ { path: { id } },
13889
+ options
13890
+ ),
13891
+ /**
13892
+ * List archived (soft-deleted) medication prescriptions.
13893
+ *
13894
+ * @param params - Filter/pagination parameters
13895
+ * @param options - Request options
13896
+ * @returns Array of archived {@link ClinicalClientMedication} records
13897
+ */
13898
+ listArchived: async (params, options) => rb.execute(
13899
+ getClinicalClientMedicationsArchived,
13900
+ { query: params ?? {} },
13901
+ options
13902
+ ),
13903
+ /**
13904
+ * Create multiple medications in a single request.
13905
+ *
13906
+ * @param attrs - Bulk creation attributes with workspace_id and medications array
13907
+ * @param options - Request options
13908
+ * @returns Array of creation results with id and status per medication
13909
+ *
13910
+ * @example
13911
+ * ```typescript
13912
+ * const results = await client.clinical.clientMedications.bulkCreate({
13913
+ * workspace_id: 'ws_123',
13914
+ * medications: [
13915
+ * { patient_id: 'pat_1', name: 'Metformin', source: 'ehr_import' },
13916
+ * { patient_id: 'pat_1', name: 'Lisinopril', source: 'ehr_import' },
13917
+ * ],
13918
+ * });
13919
+ * ```
13920
+ */
13921
+ bulkCreate: async (attrs, options) => rb.rawPost(`/clinical/client-medications/bulk`, { data: attrs }, options).then((r) => r.data)
13922
+ },
13643
13923
  /**
13644
13924
  * Manage clinical deliveries (care plan items sent to patients).
13645
13925
  */
@@ -19674,6 +19954,238 @@ function createConnectorsNamespace(rb) {
19674
19954
  },
19675
19955
  options
19676
19956
  )
19957
+ },
19958
+ /**
19959
+ * Healthie EHR connector — patient and appointment sync.
19960
+ *
19961
+ * Provides typed methods for listing and syncing patient records and appointments
19962
+ * from Healthie EHR. Requires an active `ConnectorInstance` with `connector_type:
19963
+ * "healthie"` and a linked OAuth `Credential`.
19964
+ *
19965
+ * Typical flow:
19966
+ * 1. Authorize via OAuth using `oauth.connect('healthie', workspaceId)`.
19967
+ * 2. Check sync status with `healthie.getStatus(connectorId, workspaceId)`.
19968
+ * 3. List patients or appointments, optionally filtering by date.
19969
+ * 4. Trigger incremental or full syncs as needed.
19970
+ */
19971
+ healthie: {
19972
+ /**
19973
+ * List patient records from Healthie EHR.
19974
+ *
19975
+ * Returns all patients from the Healthie account linked to the connector.
19976
+ * Optionally filter by `since` date to only get patients modified since
19977
+ * a given timestamp.
19978
+ *
19979
+ * @param connectorId - UUID of the Healthie `ConnectorInstance`.
19980
+ * @param workspaceId - UUID of the current workspace.
19981
+ * @param options - Optional list parameters including `since` (Date) filter.
19982
+ * @param requestOptions - Optional request options.
19983
+ * @returns An array of `HealthiePatient` records.
19984
+ *
19985
+ * @example
19986
+ * ```typescript
19987
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
19988
+ * const patients = await client.connectors.healthie.listPatients(
19989
+ * 'ci_healthie_123',
19990
+ * 'ws_abc123',
19991
+ * { since: new Date('2025-01-01') },
19992
+ * );
19993
+ * patients.forEach(p => console.log(p.first_name, p.last_name));
19994
+ * ```
19995
+ */
19996
+ listPatients: async (connectorId, workspaceId, options) => {
19997
+ const { since, ...requestOptions } = options || {};
19998
+ return rb.execute(
19999
+ postConnectorsByIdHealthiePatientsList,
20000
+ {
20001
+ path: { id: connectorId },
20002
+ body: {
20003
+ data: {
20004
+ connector_id: connectorId,
20005
+ workspace_id: workspaceId,
20006
+ ...since ? { since: since.toISOString() } : {}
20007
+ }
20008
+ }
20009
+ },
20010
+ Object.keys(requestOptions).length > 0 ? requestOptions : void 0
20011
+ );
20012
+ },
20013
+ /**
20014
+ * Trigger a patient sync from Healthie EHR.
20015
+ *
20016
+ * Fetches patient records from Healthie and updates the local cache.
20017
+ * Returns a summary of sync statistics.
20018
+ *
20019
+ * @param connectorId - UUID of the Healthie `ConnectorInstance`.
20020
+ * @param workspaceId - UUID of the current workspace.
20021
+ * @param requestOptions - Optional request options.
20022
+ * @returns A `HealthieSyncResult` with sync count and any errors.
20023
+ *
20024
+ * @example
20025
+ * ```typescript
20026
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
20027
+ * const result = await client.connectors.healthie.syncPatients(
20028
+ * 'ci_healthie_123',
20029
+ * 'ws_abc123',
20030
+ * );
20031
+ * console.log(`Synced ${result.synced} patients`);
20032
+ * ```
20033
+ */
20034
+ syncPatients: async (connectorId, workspaceId, requestOptions) => rb.execute(
20035
+ postConnectorsByIdHealthiePatientsSync,
20036
+ {
20037
+ path: { id: connectorId },
20038
+ body: {
20039
+ data: {
20040
+ connector_id: connectorId,
20041
+ workspace_id: workspaceId
20042
+ }
20043
+ }
20044
+ },
20045
+ requestOptions
20046
+ ),
20047
+ /**
20048
+ * List appointment records from Healthie EHR.
20049
+ *
20050
+ * Returns all appointments from the Healthie account linked to the connector.
20051
+ * Optionally filter by `since` date to only get appointments modified since
20052
+ * a given timestamp.
20053
+ *
20054
+ * @param connectorId - UUID of the Healthie `ConnectorInstance`.
20055
+ * @param workspaceId - UUID of the current workspace.
20056
+ * @param options - Optional list parameters including `since` (Date) filter.
20057
+ * @param requestOptions - Optional request options.
20058
+ * @returns An array of `HealthieAppointment` records.
20059
+ *
20060
+ * @example
20061
+ * ```typescript
20062
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
20063
+ * const appointments = await client.connectors.healthie.listAppointments(
20064
+ * 'ci_healthie_123',
20065
+ * 'ws_abc123',
20066
+ * { since: new Date('2025-01-01') },
20067
+ * );
20068
+ * appointments.forEach(a => console.log(a.date, a.status));
20069
+ * ```
20070
+ */
20071
+ listAppointments: async (connectorId, workspaceId, options) => {
20072
+ const { since, ...requestOptions } = options || {};
20073
+ return rb.execute(
20074
+ postConnectorsByIdHealthieAppointmentsList,
20075
+ {
20076
+ path: { id: connectorId },
20077
+ body: {
20078
+ data: {
20079
+ connector_id: connectorId,
20080
+ workspace_id: workspaceId,
20081
+ ...since ? { since: since.toISOString() } : {}
20082
+ }
20083
+ }
20084
+ },
20085
+ Object.keys(requestOptions).length > 0 ? requestOptions : void 0
20086
+ );
20087
+ },
20088
+ /**
20089
+ * Trigger an appointment sync from Healthie EHR.
20090
+ *
20091
+ * Fetches appointment records from Healthie and updates the local cache.
20092
+ * Returns a summary of sync statistics.
20093
+ *
20094
+ * @param connectorId - UUID of the Healthie `ConnectorInstance`.
20095
+ * @param workspaceId - UUID of the current workspace.
20096
+ * @param requestOptions - Optional request options.
20097
+ * @returns A `HealthieSyncResult` with sync count and any errors.
20098
+ *
20099
+ * @example
20100
+ * ```typescript
20101
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
20102
+ * const result = await client.connectors.healthie.syncAppointments(
20103
+ * 'ci_healthie_123',
20104
+ * 'ws_abc123',
20105
+ * );
20106
+ * console.log(`Synced ${result.synced} appointments`);
20107
+ * ```
20108
+ */
20109
+ syncAppointments: async (connectorId, workspaceId, requestOptions) => rb.execute(
20110
+ postConnectorsByIdHealthieAppointmentsSync,
20111
+ {
20112
+ path: { id: connectorId },
20113
+ body: {
20114
+ data: {
20115
+ connector_id: connectorId,
20116
+ workspace_id: workspaceId
20117
+ }
20118
+ }
20119
+ },
20120
+ requestOptions
20121
+ ),
20122
+ /**
20123
+ * Trigger a full sync of both patients and appointments from Healthie EHR.
20124
+ *
20125
+ * Fetches all patient and appointment records from Healthie and updates
20126
+ * the local cache. Returns a summary of sync statistics for both types.
20127
+ *
20128
+ * @param connectorId - UUID of the Healthie `ConnectorInstance`.
20129
+ * @param workspaceId - UUID of the current workspace.
20130
+ * @param requestOptions - Optional request options.
20131
+ * @returns A `HealthieSyncAllResult` with patient and appointment sync counts.
20132
+ *
20133
+ * @example
20134
+ * ```typescript
20135
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
20136
+ * const result = await client.connectors.healthie.syncAll(
20137
+ * 'ci_healthie_123',
20138
+ * 'ws_abc123',
20139
+ * );
20140
+ * console.log(`Synced ${result.patients_synced} patients, ${result.appointments_synced} appointments`);
20141
+ * ```
20142
+ */
20143
+ syncAll: async (connectorId, workspaceId, requestOptions) => rb.execute(
20144
+ postConnectorsByIdHealthieSyncAll,
20145
+ {
20146
+ path: { id: connectorId },
20147
+ body: {
20148
+ data: {
20149
+ connector_id: connectorId,
20150
+ workspace_id: workspaceId
20151
+ }
20152
+ }
20153
+ },
20154
+ requestOptions
20155
+ ),
20156
+ /**
20157
+ * Get the current sync status for the Healthie connector.
20158
+ *
20159
+ * Returns summary statistics about the last sync, including patient
20160
+ * and appointment counts, last sync timestamp, and any errors.
20161
+ *
20162
+ * @param connectorId - UUID of the Healthie `ConnectorInstance`.
20163
+ * @param workspaceId - UUID of the current workspace.
20164
+ * @param requestOptions - Optional request options.
20165
+ * @returns A `HealthieSyncStatus` object with sync statistics.
20166
+ *
20167
+ * @example
20168
+ * ```typescript
20169
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
20170
+ * const status = await client.connectors.healthie.getStatus(
20171
+ * 'ci_healthie_123',
20172
+ * 'ws_abc123',
20173
+ * );
20174
+ * console.log(`Last synced: ${status.last_synced_at}`);
20175
+ * console.log(`Patients: ${status.patient_count}, Appointments: ${status.appointment_count}`);
20176
+ * ```
20177
+ */
20178
+ getStatus: async (connectorId, workspaceId, requestOptions) => rb.execute(
20179
+ getConnectorsByIdHealthieStatus,
20180
+ {
20181
+ path: { id: connectorId },
20182
+ query: {
20183
+ connector_id: connectorId,
20184
+ workspace_id: workspaceId
20185
+ }
20186
+ },
20187
+ requestOptions
20188
+ )
19677
20189
  }
19678
20190
  };
19679
20191
  }
@@ -33474,7 +33986,7 @@ function createSocialNamespace(rb) {
33474
33986
  },
33475
33987
  /** Generate AI master copy from the campaign's content brief. */
33476
33988
  generateMasterCopy: async (id, workspaceId, options) => {
33477
- return rb.execute(
33989
+ return rb.executeDirect(
33478
33990
  postSocialCampaignsByIdGenerateMasterCopy,
33479
33991
  {
33480
33992
  path: { id },
@@ -33490,7 +34002,7 @@ function createSocialNamespace(rb) {
33490
34002
  },
33491
34003
  /** Adapt master copy for target platforms and create SocialPost drafts. */
33492
34004
  adaptForPlatforms: async (id, workspaceId, socialAccountId, options) => {
33493
- return rb.execute(
34005
+ return rb.executeDirect(
33494
34006
  postSocialCampaignsByIdAdaptForPlatforms,
33495
34007
  {
33496
34008
  path: { id },
@@ -33517,7 +34029,7 @@ function createSocialNamespace(rb) {
33517
34029
  * @returns `{ adaptations: [{ platform: string, content: string }] }`
33518
34030
  */
33519
34031
  previewAdaptations: async (id, workspaceId, options) => {
33520
- return rb.execute(
34032
+ return rb.executeDirect(
33521
34033
  postSocialCampaignsByIdPreviewAdaptations,
33522
34034
  {
33523
34035
  path: { id },
@@ -33805,28 +34317,251 @@ function createCrmClustersNamespace(rb) {
33805
34317
  };
33806
34318
  }
33807
34319
 
34320
+ // src/namespaces/pipeline-executions.ts
34321
+ function createPipelineExecutionsNamespace(rb) {
34322
+ return {
34323
+ /**
34324
+ * Get a pipeline execution by ID.
34325
+ *
34326
+ * @param id - Execution UUID.
34327
+ * @param options - Optional request options.
34328
+ * @returns PipelineExecution resource.
34329
+ */
34330
+ async get(id, options) {
34331
+ return rb.rawGet(
34332
+ `/pipeline-executions/${id}`,
34333
+ options
34334
+ );
34335
+ },
34336
+ /**
34337
+ * List pipeline executions for a workspace.
34338
+ *
34339
+ * @param workspaceId - Workspace UUID to filter by.
34340
+ * @param filters - Optional filters (status, pipeline_id).
34341
+ * @param options - Optional request options.
34342
+ * @returns Array of PipelineExecution resources.
34343
+ */
34344
+ async list(workspaceId, filters, options) {
34345
+ const params = new URLSearchParams({ workspace_id: workspaceId });
34346
+ if (filters?.status) params.set("filter[status]", filters.status);
34347
+ if (filters?.pipeline_id)
34348
+ params.set("filter[pipeline_id]", filters.pipeline_id);
34349
+ return rb.rawGet(
34350
+ `/pipeline-executions?${params.toString()}`,
34351
+ options
34352
+ );
34353
+ },
34354
+ /**
34355
+ * List pipeline executions for a specific pipeline.
34356
+ *
34357
+ * @param pipelineId - Pipeline UUID to filter by.
34358
+ * @param options - Optional request options.
34359
+ * @returns Array of PipelineExecution resources for this pipeline.
34360
+ */
34361
+ async listByPipeline(pipelineId, options) {
34362
+ return rb.rawGet(
34363
+ `/pipeline-executions/by-pipeline/${pipelineId}`,
34364
+ options
34365
+ );
34366
+ },
34367
+ /**
34368
+ * Approve the current HITL checkpoint. Pipeline resumes execution.
34369
+ * Only valid when status === "awaiting_approval".
34370
+ *
34371
+ * @param id - Execution UUID.
34372
+ * @param options - Optional request options.
34373
+ * @returns Updated PipelineExecution resource.
34374
+ */
34375
+ async approve(id, options) {
34376
+ return rb.rawPatch(
34377
+ `/pipeline-executions/${id}/approve`,
34378
+ {
34379
+ data: { type: "pipeline-execution", id, attributes: {} }
34380
+ },
34381
+ {
34382
+ ...options,
34383
+ headers: {
34384
+ "Content-Type": "application/vnd.api+json",
34385
+ ...options?.headers
34386
+ }
34387
+ }
34388
+ );
34389
+ },
34390
+ /**
34391
+ * Reject the current HITL checkpoint. Pipeline halts permanently.
34392
+ * Only valid when status === "awaiting_approval".
34393
+ *
34394
+ * @param id - Execution UUID.
34395
+ * @param options - Optional request options.
34396
+ * @returns Updated PipelineExecution resource.
34397
+ */
34398
+ async reject(id, options) {
34399
+ return rb.rawPatch(
34400
+ `/pipeline-executions/${id}/reject`,
34401
+ {
34402
+ data: { type: "pipeline-execution", id, attributes: {} }
34403
+ },
34404
+ {
34405
+ ...options,
34406
+ headers: {
34407
+ "Content-Type": "application/vnd.api+json",
34408
+ ...options?.headers
34409
+ }
34410
+ }
34411
+ );
34412
+ },
34413
+ /**
34414
+ * Edit checkpoint data before approving.
34415
+ * Corrected values flow into downstream pipeline nodes.
34416
+ * Only valid when status === "awaiting_approval".
34417
+ *
34418
+ * @param id - Execution UUID.
34419
+ * @param attributes - Checkpoint data updates.
34420
+ * @param options - Optional request options.
34421
+ * @returns Updated PipelineExecution resource.
34422
+ */
34423
+ async updateCheckpoint(id, attributes, options) {
34424
+ return rb.rawPatch(
34425
+ `/pipeline-executions/${id}/checkpoint`,
34426
+ {
34427
+ data: { type: "pipeline-execution", id, attributes }
34428
+ },
34429
+ {
34430
+ ...options,
34431
+ headers: {
34432
+ "Content-Type": "application/vnd.api+json",
34433
+ ...options?.headers
34434
+ }
34435
+ }
34436
+ );
34437
+ },
34438
+ /**
34439
+ * Set the checkpoint note. Replaces any existing note.
34440
+ * Only valid when status === "awaiting_approval".
34441
+ *
34442
+ * @param id - Execution UUID.
34443
+ * @param note - Note text.
34444
+ * @param options - Optional request options.
34445
+ * @returns Updated PipelineExecution resource.
34446
+ */
34447
+ async addNote(id, note, options) {
34448
+ return rb.rawPatch(
34449
+ `/pipeline-executions/${id}/note`,
34450
+ {
34451
+ data: {
34452
+ type: "pipeline-execution",
34453
+ id,
34454
+ attributes: { checkpoint_notes: note }
34455
+ }
34456
+ },
34457
+ {
34458
+ ...options,
34459
+ headers: {
34460
+ "Content-Type": "application/vnd.api+json",
34461
+ ...options?.headers
34462
+ }
34463
+ }
34464
+ );
34465
+ },
34466
+ /**
34467
+ * Request AI refinement of a specific checkpoint node.
34468
+ * The AI re-runs the node with the given instruction and updates checkpoint_data.
34469
+ * Only valid when status === "awaiting_approval".
34470
+ *
34471
+ * @param id - Execution UUID.
34472
+ * @param nodeId - The pipeline node ID to refine.
34473
+ * @param instruction - Natural language instruction for refinement.
34474
+ * @param options - Optional request options.
34475
+ * @returns Updated PipelineExecution resource.
34476
+ */
34477
+ async aiRefine(id, nodeId, instruction, options) {
34478
+ return rb.rawPatch(
34479
+ `/pipeline-executions/${id}/refine`,
34480
+ {
34481
+ data: {
34482
+ type: "pipeline-execution",
34483
+ id,
34484
+ attributes: { node_id: nodeId, instruction }
34485
+ }
34486
+ },
34487
+ {
34488
+ ...options,
34489
+ headers: {
34490
+ "Content-Type": "application/vnd.api+json",
34491
+ ...options?.headers
34492
+ }
34493
+ }
34494
+ );
34495
+ }
34496
+ };
34497
+ }
34498
+
33808
34499
  // src/namespaces/pipelines.ts
33809
34500
  function createPipelinesNamespace(rb) {
33810
34501
  return {
34502
+ /**
34503
+ * List available pipelines.
34504
+ *
34505
+ * @param options - Optional request options.
34506
+ * @returns Array of Pipeline resources.
34507
+ */
34508
+ async list(options) {
34509
+ return rb.rawGet(`/pipelines`, options);
34510
+ },
34511
+ /**
34512
+ * Get a pipeline by ID.
34513
+ *
34514
+ * @param id - Pipeline UUID.
34515
+ * @param options - Optional request options.
34516
+ * @returns Pipeline resource.
34517
+ */
34518
+ async get(id, options) {
34519
+ return rb.rawGet(`/pipelines/${id}`, options);
34520
+ },
34521
+ /**
34522
+ * Get a pipeline by its system slug.
34523
+ *
34524
+ * @param slug - Pipeline system_slug.
34525
+ * @param options - Optional request options.
34526
+ * @returns Pipeline resource.
34527
+ */
34528
+ async getBySlug(slug, options) {
34529
+ return rb.rawGet(`/pipelines/by-slug/${slug}`, options);
34530
+ },
33811
34531
  /**
33812
34532
  * Trigger pipeline execution.
33813
34533
  *
33814
34534
  * @param id - Pipeline UUID.
33815
- * @param attributes - Execution parameters including workspace_id and input.
34535
+ * @param attributes - Execution parameters including workspace_id and optional input.
33816
34536
  * @param options - Optional request options.
33817
- * @returns Pipeline execution result map.
34537
+ * @returns Trigger response with execution_id and status.
33818
34538
  */
33819
34539
  async trigger(id, attributes, options) {
33820
- return rb.rawPost(
34540
+ return rb.rawPostDirect(
33821
34541
  `/pipelines/${id}/trigger`,
33822
34542
  {
33823
- data: {
33824
- type: "pipeline",
33825
- attributes: {
33826
- pipeline_id: id,
33827
- ...attributes
33828
- }
33829
- }
34543
+ workspace_id: attributes.workspace_id,
34544
+ ...attributes.input ? { input: attributes.input } : {}
34545
+ },
34546
+ options
34547
+ );
34548
+ },
34549
+ /**
34550
+ * Validate pipeline can execute without running it (dry-run).
34551
+ *
34552
+ * Checks: nodes exist, agents are resolvable, graph is valid, permissions OK.
34553
+ * Use this for onboarding validation or pre-flight checks.
34554
+ *
34555
+ * @param id - Pipeline UUID.
34556
+ * @param attributes - Validation parameters including workspace_id.
34557
+ * @param options - Optional request options.
34558
+ * @returns Validation result with validity flag and diagnostic info.
34559
+ */
34560
+ async dryRun(id, attributes, options) {
34561
+ return rb.rawPostDirect(
34562
+ `/pipelines/${id}/dry-run`,
34563
+ {
34564
+ workspace_id: attributes.workspace_id
33830
34565
  },
33831
34566
  options
33832
34567
  );
@@ -34541,6 +35276,31 @@ var RequestBuilder = class {
34541
35276
  throw handleApiError(error);
34542
35277
  }
34543
35278
  }
35279
+ /**
35280
+ * Execute a generated SDK function that returns flat JSON (no JSON:API data wrapper).
35281
+ * Unlike execute() (which unwraps data.data for JSON:API envelopes), this returns
35282
+ * the parsed response body directly. Used for generic Ash actions that return maps.
35283
+ */
35284
+ async executeDirect(fn, params, options) {
35285
+ const headers = buildHeaders(this.getHeaders, options);
35286
+ try {
35287
+ const result = await this.requestWithRetry(
35288
+ () => fn({
35289
+ client: this.clientInstance,
35290
+ headers,
35291
+ ...params,
35292
+ ...options?.signal && { signal: options.signal }
35293
+ })
35294
+ );
35295
+ const { data, error } = result;
35296
+ if (error) {
35297
+ throw enrichError(error, result);
35298
+ }
35299
+ return data;
35300
+ } catch (error) {
35301
+ throw handleApiError(error);
35302
+ }
35303
+ }
34544
35304
  /**
34545
35305
  * Execute a delete operation that returns true on success.
34546
35306
  */
@@ -34891,6 +35651,7 @@ var GptClient = class extends BaseClient {
34891
35651
  this.projects = createProjectsNamespace(rb);
34892
35652
  this.models = createModelsNamespace(rb);
34893
35653
  this.crmClusters = createCrmClustersNamespace(rb);
35654
+ this.pipelineExecutions = createPipelineExecutionsNamespace(rb);
34894
35655
  this.pipelines = createPipelinesNamespace(rb);
34895
35656
  this.accessGrants = createAccessGrantsNamespace(rb);
34896
35657
  this.roles = createRolesNamespace(rb);