@gpt-platform/client 0.10.0 → 0.10.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
@@ -1272,7 +1272,7 @@ function buildUserAgent(sdkVersion, appInfo) {
1272
1272
  }
1273
1273
 
1274
1274
  // src/version.ts
1275
- var SDK_VERSION = "0.10.0";
1275
+ var SDK_VERSION = "0.10.1";
1276
1276
  var DEFAULT_API_VERSION = "2026-03-23";
1277
1277
 
1278
1278
  // src/base-client.ts
@@ -12645,20 +12645,32 @@ function createClinicalNamespace(rb) {
12645
12645
  *
12646
12646
  * @param sessionId - Session UUID
12647
12647
  * @param workspaceId - Workspace UUID
12648
+ * @param triggerOptions - Optional pipeline targeting (pipeline_slug)
12648
12649
  * @param options - Request options
12649
12650
  * @returns {@link TriggerPipelineResponse} with execution_id (may be null if pipeline not configured)
12650
12651
  *
12651
12652
  * @example
12652
12653
  * ```typescript
12654
+ * // Default pipeline (post-session-documentation)
12653
12655
  * const { execution_id } = await client.clinical.sessions.triggerPipeline(
12654
12656
  * 'sess_xyz',
12655
12657
  * 'ws_123',
12656
12658
  * );
12659
+ *
12660
+ * // Specific pipeline by slug
12661
+ * const { execution_id: eid } = await client.clinical.sessions.triggerPipeline(
12662
+ * 'sess_xyz',
12663
+ * 'ws_123',
12664
+ * { pipeline_slug: 'chartless-quick-goals-update' },
12665
+ * );
12657
12666
  * ```
12658
12667
  */
12659
- triggerPipeline: async (sessionId, workspaceId, options) => rb.rawPost(
12668
+ triggerPipeline: async (sessionId, workspaceId, triggerOptions, options) => rb.rawPost(
12660
12669
  `/clinical/sessions/${sessionId}/trigger-pipeline`,
12661
- { workspace_id: workspaceId },
12670
+ {
12671
+ workspace_id: workspaceId,
12672
+ ...triggerOptions?.pipeline_slug ? { pipeline_slug: triggerOptions.pipeline_slug } : {}
12673
+ },
12662
12674
  options
12663
12675
  )
12664
12676
  },
@@ -32946,7 +32958,11 @@ function createSocialNamespace(rb) {
32946
32958
  get: async (id, options) => {
32947
32959
  return rb.execute(getSocialCampaignsById, { path: { id } }, options);
32948
32960
  },
32949
- /** Create a new social campaign. */
32961
+ /**
32962
+ * Create a new social campaign.
32963
+ * Workspace is resolved from the authenticated user's context — do NOT
32964
+ * pass `workspace_id` in attributes.
32965
+ */
32950
32966
  create: async (attributes, options) => {
32951
32967
  return rb.execute(
32952
32968
  postSocialCampaigns,
@@ -33013,11 +33029,8 @@ function createSocialNamespace(rb) {
33013
33029
  path: { id },
33014
33030
  body: {
33015
33031
  data: {
33016
- type: "social-campaign",
33017
- attributes: {
33018
- campaign_id: id,
33019
- workspace_id: workspaceId
33020
- }
33032
+ campaign_id: id,
33033
+ workspace_id: workspaceId
33021
33034
  }
33022
33035
  }
33023
33036
  },
@@ -33032,12 +33045,9 @@ function createSocialNamespace(rb) {
33032
33045
  path: { id },
33033
33046
  body: {
33034
33047
  data: {
33035
- type: "social-campaign",
33036
- attributes: {
33037
- campaign_id: id,
33038
- workspace_id: workspaceId,
33039
- social_account_id: socialAccountId
33040
- }
33048
+ campaign_id: id,
33049
+ workspace_id: workspaceId,
33050
+ social_account_id: socialAccountId
33041
33051
  }
33042
33052
  }
33043
33053
  },