@gpt-platform/client 0.10.5 → 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 -30734
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +311 -4
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +311 -4
  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 +7 -1
  154. package/package.json +286 -36
  155. package/dist/index.d.mts +0 -30734
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,MAAM,EACN,QAAQ,EACR,cAAc,GACf,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGvD,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjE,YAAY,EACV,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,UAAU,GACX,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACtE,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EACf,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EACV,OAAO,EACP,SAAS,EACT,IAAI,EACJ,aAAa,EACb,WAAW,EACX,eAAe,EACf,aAAa,EACb,eAAe,EACf,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC"}
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.5";
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",
@@ -2601,6 +2610,15 @@ var getUsersMeDashboard = (options) => (options.client ?? client).get({
2601
2610
  url: "/users/me/dashboard",
2602
2611
  ...options
2603
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
+ });
2604
2622
  var getBusinessAssociateAgreementsById = (options) => (options.client ?? client).get({
2605
2623
  security: [{ scheme: "bearer", type: "http" }],
2606
2624
  url: "/business-associate-agreements/{id}",
@@ -3944,6 +3962,15 @@ var patchEmailInclusionsById = (options) => (options.client ?? client).patch({
3944
3962
  ...options.headers
3945
3963
  }
3946
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
+ });
3947
3974
  var getUsersMe = (options) => (options.client ?? client).get({
3948
3975
  security: [{ scheme: "bearer", type: "http" }],
3949
3976
  url: "/users/me",
@@ -5653,6 +5680,15 @@ var patchUserProfilesByIdDismissWelcome = (options) => (options.client ?? client
5653
5680
  ...options.headers
5654
5681
  }
5655
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
+ });
5656
5692
  var getClinicalHealthMetrics = (options) => (options.client ?? client).get({
5657
5693
  security: [{ scheme: "bearer", type: "http" }],
5658
5694
  url: "/clinical/health-metrics",
@@ -6253,6 +6289,15 @@ var postAiEmbed = (options) => (options.client ?? client).post({
6253
6289
  ...options.headers
6254
6290
  }
6255
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
+ });
6256
6301
  var patchConsentRecordsByIdWithdraw = (options) => (options.client ?? client).patch({
6257
6302
  security: [{ scheme: "bearer", type: "http" }],
6258
6303
  url: "/consent-records/{id}/withdraw",
@@ -6338,6 +6383,11 @@ var getScanResultsById = (options) => (options.client ?? client).get({
6338
6383
  url: "/scan-results/{id}",
6339
6384
  ...options
6340
6385
  });
6386
+ var getConnectorsByIdHealthieStatus = (options) => (options.client ?? client).get({
6387
+ security: [{ scheme: "bearer", type: "http" }],
6388
+ url: "/connectors/{id}/healthie/status",
6389
+ ...options
6390
+ });
6341
6391
  var getPolicyReviewSchedules = (options) => (options.client ?? client).get({
6342
6392
  security: [{ scheme: "bearer", type: "http" }],
6343
6393
  url: "/policy-review-schedules",
@@ -19904,6 +19954,238 @@ function createConnectorsNamespace(rb) {
19904
19954
  },
19905
19955
  options
19906
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
+ )
19907
20189
  }
19908
20190
  };
19909
20191
  }
@@ -33704,7 +33986,7 @@ function createSocialNamespace(rb) {
33704
33986
  },
33705
33987
  /** Generate AI master copy from the campaign's content brief. */
33706
33988
  generateMasterCopy: async (id, workspaceId, options) => {
33707
- return rb.execute(
33989
+ return rb.executeDirect(
33708
33990
  postSocialCampaignsByIdGenerateMasterCopy,
33709
33991
  {
33710
33992
  path: { id },
@@ -33720,7 +34002,7 @@ function createSocialNamespace(rb) {
33720
34002
  },
33721
34003
  /** Adapt master copy for target platforms and create SocialPost drafts. */
33722
34004
  adaptForPlatforms: async (id, workspaceId, socialAccountId, options) => {
33723
- return rb.execute(
34005
+ return rb.executeDirect(
33724
34006
  postSocialCampaignsByIdAdaptForPlatforms,
33725
34007
  {
33726
34008
  path: { id },
@@ -33747,7 +34029,7 @@ function createSocialNamespace(rb) {
33747
34029
  * @returns `{ adaptations: [{ platform: string, content: string }] }`
33748
34030
  */
33749
34031
  previewAdaptations: async (id, workspaceId, options) => {
33750
- return rb.execute(
34032
+ return rb.executeDirect(
33751
34033
  postSocialCampaignsByIdPreviewAdaptations,
33752
34034
  {
33753
34035
  path: { id },
@@ -34994,6 +35276,31 @@ var RequestBuilder = class {
34994
35276
  throw handleApiError(error);
34995
35277
  }
34996
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
+ }
34997
35304
  /**
34998
35305
  * Execute a delete operation that returns true on success.
34999
35306
  */