@amigo-ai/platform-sdk 0.94.0 → 0.95.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.
package/dist/index.cjs CHANGED
@@ -1847,10 +1847,20 @@ var TriggersResource = class extends WorkspaceScopedResource {
1847
1847
  params: { path: { workspace_id: this.workspaceId, trigger_id: triggerId } }
1848
1848
  });
1849
1849
  }
1850
- async fire(triggerId) {
1850
+ /**
1851
+ * Fire a trigger immediately. The optional body carries per-fire `input`
1852
+ * overrides merged into the trigger's `input_template` at fire time.
1853
+ *
1854
+ * The spec types the body as `FireTriggerRequest | null`, but the `null`
1855
+ * branch only matters when the caller wants to *explicitly* clear the
1856
+ * body. Modeling as `body?: FireTriggerRequest` keeps the SDK surface
1857
+ * consistent with the other optional-body POST wrappers.
1858
+ */
1859
+ async fire(triggerId, body) {
1851
1860
  return extractData(
1852
1861
  await this.client.POST("/v1/{workspace_id}/triggers/{trigger_id}/fire", {
1853
- params: { path: { workspace_id: this.workspaceId, trigger_id: triggerId } }
1862
+ params: { path: { workspace_id: this.workspaceId, trigger_id: triggerId } },
1863
+ body
1854
1864
  })
1855
1865
  );
1856
1866
  }
@@ -3190,9 +3200,9 @@ var AnalyticsResource = class extends WorkspaceScopedResource {
3190
3200
  })
3191
3201
  ),
3192
3202
  /** Per-entity surfaces analytics (which surfaces a specific entity has seen) */
3193
- getForEntity: async (entityId2) => extractData(
3203
+ getForEntity: async (entityId2, params) => extractData(
3194
3204
  await this.client.GET("/v1/{workspace_id}/analytics/surfaces/entity/{entity_id}", {
3195
- params: { path: { workspace_id: this.workspaceId, entity_id: entityId2 } }
3205
+ params: { path: { workspace_id: this.workspaceId, entity_id: entityId2 }, query: params }
3196
3206
  })
3197
3207
  )
3198
3208
  };