@stacklink/sdk 0.6.2 → 0.6.3
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/README.md +6 -1
- package/compatibility.json +1 -1
- package/dist/src/domain/bot-contract.d.ts +116 -116
- package/dist/src/domain/memory-contract.d.ts +18 -18
- package/dist/src/domain/platform-approval-contract.d.ts +20 -20
- package/dist/src/domain/stacklink-meta-tools.js +1 -1
- package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
- package/dist/src/domain/workflow-contract.d.ts +480 -71
- package/dist/src/domain/workflow-contract.d.ts.map +1 -1
- package/dist/src/domain/workflow-contract.js +28 -0
- package/dist/src/domain/workflow-contract.js.map +1 -1
- package/dist/src/sdk/index.d.ts +14 -4
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +4 -2
- package/dist/src/sdk/index.js.map +1 -1
- package/package.json +1 -1
package/dist/src/sdk/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { botApiSignaturePayload } from '../domain/bot-contract.js';
|
|
2
2
|
import { materializeStacklinkWorkbenchExecutionResponse, } from '../domain/stacklink-meta-tools.js';
|
|
3
3
|
export { StacklinkMemoryLifecycle, StacklinkMemoryLifecycleError, createStacklinkMemoryLifecycle, serializeCompletedConversationTurn, } from './memory-lifecycle.js';
|
|
4
|
-
export const stacklinkTypeScriptSdkVersion = '0.6.
|
|
4
|
+
export const stacklinkTypeScriptSdkVersion = '0.6.3';
|
|
5
5
|
const workbenchReusableRunComparisonWaitMs = 120_000;
|
|
6
6
|
const workbenchReusableRunComparisonPollMs = 1_000;
|
|
7
7
|
export class StacklinkApiError extends Error {
|
|
@@ -3354,7 +3354,9 @@ export class StacklinkWorkflowsClient {
|
|
|
3354
3354
|
deleteTrigger(id, triggerId, expectedRevision) { return this.request(`${this.path(id)}/triggers/${encodeURIComponent(triggerId)}`, { method: 'DELETE', query: { expectedRevision } }); }
|
|
3355
3355
|
invokeTrigger(id, triggerId, requestId, input) { return this.request(`${this.path(id)}/triggers/${encodeURIComponent(triggerId)}/invoke`, { method: 'POST', body: { requestId, input }, idempotencyKey: requestId }); }
|
|
3356
3356
|
previewSchedule(cron, timezone) { return this.request(`${this.path()}/schedule/preview`, { method: 'POST', body: { cron, timezone } }); }
|
|
3357
|
-
|
|
3357
|
+
searchMentions(query = {}) { return this.request(`${this.path()}/mentions`, { query }); }
|
|
3358
|
+
resolveMentions(references, workflowId) { return this.request(`${this.path()}/mentions/resolve`, { method: 'POST', body: { references, workflowId } }); }
|
|
3359
|
+
suggest(id, description, revision, sessionId, mentions) { return this.request(`${this.path(id)}/suggest`, { method: 'POST', body: { description, revision, sessionId, mentions }, timeoutMs: 60_000 }); }
|
|
3358
3360
|
issueEmbeddedAccess(input) { return this.client.request('/v1/workflows/embed/access', { method: 'POST', body: input }); }
|
|
3359
3361
|
exchangeEmbeddedAccess(bootstrapToken, origin) { return this.client.request('/v1/workflows/embed/exchange', { method: 'POST', body: { bootstrapToken, origin } }); }
|
|
3360
3362
|
embedSettings() { return this.request(`${this.path()}/embed`); }
|