@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.js CHANGED
@@ -1338,7 +1338,7 @@ function buildUserAgent(sdkVersion, appInfo) {
1338
1338
  }
1339
1339
 
1340
1340
  // src/version.ts
1341
- var SDK_VERSION = "0.10.0";
1341
+ var SDK_VERSION = "0.10.1";
1342
1342
  var DEFAULT_API_VERSION = "2026-03-23";
1343
1343
 
1344
1344
  // src/base-client.ts
@@ -12711,20 +12711,32 @@ function createClinicalNamespace(rb) {
12711
12711
  *
12712
12712
  * @param sessionId - Session UUID
12713
12713
  * @param workspaceId - Workspace UUID
12714
+ * @param triggerOptions - Optional pipeline targeting (pipeline_slug)
12714
12715
  * @param options - Request options
12715
12716
  * @returns {@link TriggerPipelineResponse} with execution_id (may be null if pipeline not configured)
12716
12717
  *
12717
12718
  * @example
12718
12719
  * ```typescript
12720
+ * // Default pipeline (post-session-documentation)
12719
12721
  * const { execution_id } = await client.clinical.sessions.triggerPipeline(
12720
12722
  * 'sess_xyz',
12721
12723
  * 'ws_123',
12722
12724
  * );
12725
+ *
12726
+ * // Specific pipeline by slug
12727
+ * const { execution_id: eid } = await client.clinical.sessions.triggerPipeline(
12728
+ * 'sess_xyz',
12729
+ * 'ws_123',
12730
+ * { pipeline_slug: 'chartless-quick-goals-update' },
12731
+ * );
12723
12732
  * ```
12724
12733
  */
12725
- triggerPipeline: async (sessionId, workspaceId, options) => rb.rawPost(
12734
+ triggerPipeline: async (sessionId, workspaceId, triggerOptions, options) => rb.rawPost(
12726
12735
  `/clinical/sessions/${sessionId}/trigger-pipeline`,
12727
- { workspace_id: workspaceId },
12736
+ {
12737
+ workspace_id: workspaceId,
12738
+ ...triggerOptions?.pipeline_slug ? { pipeline_slug: triggerOptions.pipeline_slug } : {}
12739
+ },
12728
12740
  options
12729
12741
  )
12730
12742
  },
@@ -33012,7 +33024,11 @@ function createSocialNamespace(rb) {
33012
33024
  get: async (id, options) => {
33013
33025
  return rb.execute(getSocialCampaignsById, { path: { id } }, options);
33014
33026
  },
33015
- /** Create a new social campaign. */
33027
+ /**
33028
+ * Create a new social campaign.
33029
+ * Workspace is resolved from the authenticated user's context — do NOT
33030
+ * pass `workspace_id` in attributes.
33031
+ */
33016
33032
  create: async (attributes, options) => {
33017
33033
  return rb.execute(
33018
33034
  postSocialCampaigns,
@@ -33079,11 +33095,8 @@ function createSocialNamespace(rb) {
33079
33095
  path: { id },
33080
33096
  body: {
33081
33097
  data: {
33082
- type: "social-campaign",
33083
- attributes: {
33084
- campaign_id: id,
33085
- workspace_id: workspaceId
33086
- }
33098
+ campaign_id: id,
33099
+ workspace_id: workspaceId
33087
33100
  }
33088
33101
  }
33089
33102
  },
@@ -33098,12 +33111,9 @@ function createSocialNamespace(rb) {
33098
33111
  path: { id },
33099
33112
  body: {
33100
33113
  data: {
33101
- type: "social-campaign",
33102
- attributes: {
33103
- campaign_id: id,
33104
- workspace_id: workspaceId,
33105
- social_account_id: socialAccountId
33106
- }
33114
+ campaign_id: id,
33115
+ workspace_id: workspaceId,
33116
+ social_account_id: socialAccountId
33107
33117
  }
33108
33118
  }
33109
33119
  },