sim 2.2.24-preview.281.1 → 2.2.24-preview.283.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.
@@ -3936,6 +3936,7 @@ export type ExecuteWorkflowBody = {
3936
3936
  input?: Record<string, unknown>;
3937
3937
  run?: {
3938
3938
  source: 'deployment';
3939
+ version?: number;
3939
3940
  } | {
3940
3941
  source: 'manual';
3941
3942
  entry?: {
@@ -5772,13 +5773,43 @@ export type GetWorkflowRunQuery = {
5772
5773
  base64MaxBytes?: number;
5773
5774
  };
5774
5775
  type GetWorkflowRunResponseRef0 = {
5776
+ contextId: string;
5777
+ blockId: string;
5778
+ blockName: string | null;
5779
+ kind: 'human' | 'time';
5780
+ status: 'paused' | 'queued' | 'resuming' | 'resumed' | 'failed';
5781
+ registeredAt: string | null;
5782
+ resumeAt: string | null;
5783
+ parallel: {
5784
+ parallelId: string;
5785
+ branchIndex: number;
5786
+ branchTotal: number | null;
5787
+ } | null;
5788
+ loop: {
5789
+ loopId: string;
5790
+ iteration: number;
5791
+ } | null;
5792
+ inputFields: Array<GetWorkflowRunResponseRef1> | null;
5793
+ display: unknown | null;
5794
+ queuePosition: number | null;
5795
+ };
5796
+ type GetWorkflowRunResponseRef1 = {
5797
+ name: string;
5798
+ label: string;
5799
+ type: string;
5800
+ description?: string;
5801
+ placeholder?: string;
5802
+ required: boolean;
5803
+ options?: Array<unknown>;
5804
+ };
5805
+ type GetWorkflowRunResponseRef2 = {
5775
5806
  message: string;
5776
5807
  code: 'TIMEOUT' | 'CANCELLED' | 'USAGE_LIMIT_EXCEEDED' | 'INVALID_INPUT' | 'BLOCK_EXECUTION_FAILED' | 'CHILD_WORKFLOW_FAILED' | 'EXECUTION_FAILED';
5777
5808
  blockId?: string;
5778
5809
  blockName?: string;
5779
5810
  blockType?: string;
5780
5811
  };
5781
- type GetWorkflowRunResponseRef1 = {
5812
+ type GetWorkflowRunResponseRef3 = {
5782
5813
  id: string;
5783
5814
  name: string;
5784
5815
  size: number;
@@ -5786,7 +5817,7 @@ type GetWorkflowRunResponseRef1 = {
5786
5817
  downloadPath: string;
5787
5818
  base64: string | null;
5788
5819
  };
5789
- type GetWorkflowRunResponseRef2 = {
5820
+ type GetWorkflowRunResponseRef4 = {
5790
5821
  runId: string;
5791
5822
  workflowId: string;
5792
5823
  status: 'pending' | 'running' | 'paused' | 'redacting' | 'completed' | 'failed' | 'cancelled' | 'queued';
@@ -5794,6 +5825,7 @@ type GetWorkflowRunResponseRef2 = {
5794
5825
  startedAt: string | null;
5795
5826
  endedAt: string | null;
5796
5827
  durationMs: number | null;
5828
+ version: number | null;
5797
5829
  paused: {
5798
5830
  contextId: string | null;
5799
5831
  pausedAt: string;
@@ -5803,17 +5835,18 @@ type GetWorkflowRunResponseRef2 = {
5803
5835
  automaticResumeWaitingReason: string | null;
5804
5836
  pausePointCount: number;
5805
5837
  resumedCount: number;
5838
+ points: Array<GetWorkflowRunResponseRef0>;
5806
5839
  } | null;
5807
5840
  cost: {
5808
5841
  total: number;
5809
5842
  } | null;
5810
- error: GetWorkflowRunResponseRef0 | null;
5843
+ error: GetWorkflowRunResponseRef2 | null;
5811
5844
  output: unknown | null;
5812
5845
  blockOutputs: Record<string, unknown> | null;
5813
- files: Array<GetWorkflowRunResponseRef1> | null;
5846
+ files: Array<GetWorkflowRunResponseRef3> | null;
5814
5847
  };
5815
5848
  export type GetWorkflowRunResponse = {
5816
- data: GetWorkflowRunResponseRef2;
5849
+ data: GetWorkflowRunResponseRef4;
5817
5850
  };
5818
5851
  /** `GET /api/v2/workflows/[workflowId]/state` */
5819
5852
  export type GetWorkflowStateParams = {
@@ -14727,12 +14760,12 @@ export declare const V2_OPERATIONS: {
14727
14760
  };
14728
14761
  readonly run: {
14729
14762
  readonly kind: 'unknown';
14730
- readonly describe: 'Workflow state and entry point to execute. Omit for the active deployment. Manual execution requires OAuth or personal-key write access and supports synchronous or streamed runs only; `waitTimeoutSeconds` lets a synchronous one continue in the background.';
14763
+ readonly describe: 'Workflow state and entry point to execute. Omit for the active deployment; `source: "deployment"` with `version` runs that deployment version. Manual execution requires OAuth or personal-key write access and supports synchronous or streamed runs only; `waitTimeoutSeconds` lets a synchronous one continue in the background.';
14731
14764
  };
14732
14765
  readonly async: {
14733
14766
  readonly kind: 'boolean';
14734
14767
  readonly default: false;
14735
- readonly describe: 'Queue the run and return a 202 receipt. Requires an API key or OAuth access token and a deployed run source. Cannot stream, select outputs, enable thinking/tool events, or include file-inlining options (`includeFileBase64` or `base64MaxBytes`).';
14768
+ readonly describe: 'Queue the run and return a 202 receipt. Requires a full-access API key or an OAuth access token with `api:write`, and a deployed run source. Cannot stream, select outputs, enable thinking/tool events, or include file-inlining options (`includeFileBase64` or `base64MaxBytes`).';
14736
14769
  };
14737
14770
  readonly executionTimeoutSeconds: {
14738
14771
  readonly kind: 'integer';
@@ -14740,7 +14773,7 @@ export declare const V2_OPERATIONS: {
14740
14773
  };
14741
14774
  readonly waitTimeoutSeconds: {
14742
14775
  readonly kind: 'integer';
14743
- readonly describe: 'Wait at most this many seconds for a synchronous run; `0` waits until it settles. A run still going then continues in the background and the response carries its run receipt instead of its result: `202` on a JSON response, or a closing `detached` frame on an `application/x-ndjson` result stream, which keeps its `200`. The receipt is sent only once the run can be read on the runs resource, where it can also be cancelled. The run is admitted under asynchronous limits, and a dropped connection no longer cancels it. Requires an API key or OAuth access token. Cannot be combined with `async` or `stream`.';
14776
+ readonly describe: 'Wait at most this many seconds for a synchronous run; `0` waits until it settles. A run still going then continues in the background and the response carries its run receipt instead of its result: `202` on a JSON response, or a closing `detached` frame on an `application/x-ndjson` result stream, which keeps its `200`. The receipt is sent only once the run can be read on the runs resource, where it can also be cancelled. The run is admitted under asynchronous limits, and a dropped connection no longer cancels it. Requires a full-access API key or an OAuth access token with `api:write`. Cannot be combined with `async` or `stream`.';
14744
14777
  };
14745
14778
  readonly stream: {
14746
14779
  readonly kind: 'boolean';
package/dist/index.js CHANGED
@@ -11961,12 +11961,12 @@ var V2_OPERATIONS = {
11961
11961
  },
11962
11962
  run: {
11963
11963
  kind: "unknown",
11964
- describe: "Workflow state and entry point to execute. Omit for the active deployment. Manual execution requires OAuth or personal-key write access and supports synchronous or streamed runs only; `waitTimeoutSeconds` lets a synchronous one continue in the background."
11964
+ describe: 'Workflow state and entry point to execute. Omit for the active deployment; `source: "deployment"` with `version` runs that deployment version. Manual execution requires OAuth or personal-key write access and supports synchronous or streamed runs only; `waitTimeoutSeconds` lets a synchronous one continue in the background.'
11965
11965
  },
11966
11966
  async: {
11967
11967
  kind: "boolean",
11968
11968
  default: false,
11969
- describe: "Queue the run and return a 202 receipt. Requires an API key or OAuth access token and a deployed run source. Cannot stream, select outputs, enable thinking/tool events, or include file-inlining options (`includeFileBase64` or `base64MaxBytes`)."
11969
+ describe: "Queue the run and return a 202 receipt. Requires a full-access API key or an OAuth access token with `api:write`, and a deployed run source. Cannot stream, select outputs, enable thinking/tool events, or include file-inlining options (`includeFileBase64` or `base64MaxBytes`)."
11970
11970
  },
11971
11971
  executionTimeoutSeconds: {
11972
11972
  kind: "integer",
@@ -11974,7 +11974,7 @@ var V2_OPERATIONS = {
11974
11974
  },
11975
11975
  waitTimeoutSeconds: {
11976
11976
  kind: "integer",
11977
- describe: "Wait at most this many seconds for a synchronous run; `0` waits until it settles. A run still going then continues in the background and the response carries its run receipt instead of its result: `202` on a JSON response, or a closing `detached` frame on an `application/x-ndjson` result stream, which keeps its `200`. The receipt is sent only once the run can be read on the runs resource, where it can also be cancelled. The run is admitted under asynchronous limits, and a dropped connection no longer cancels it. Requires an API key or OAuth access token. Cannot be combined with `async` or `stream`."
11977
+ describe: "Wait at most this many seconds for a synchronous run; `0` waits until it settles. A run still going then continues in the background and the response carries its run receipt instead of its result: `202` on a JSON response, or a closing `detached` frame on an `application/x-ndjson` result stream, which keeps its `200`. The receipt is sent only once the run can be read on the runs resource, where it can also be cancelled. The run is admitted under asynchronous limits, and a dropped connection no longer cancels it. Requires a full-access API key or an OAuth access token with `api:write`. Cannot be combined with `async` or `stream`."
11978
11978
  },
11979
11979
  stream: {
11980
11980
  kind: "boolean",
package/dist/runtime.js CHANGED
@@ -12010,12 +12010,12 @@ var V2_OPERATIONS = {
12010
12010
  },
12011
12011
  run: {
12012
12012
  kind: "unknown",
12013
- describe: "Workflow state and entry point to execute. Omit for the active deployment. Manual execution requires OAuth or personal-key write access and supports synchronous or streamed runs only; `waitTimeoutSeconds` lets a synchronous one continue in the background."
12013
+ describe: 'Workflow state and entry point to execute. Omit for the active deployment; `source: "deployment"` with `version` runs that deployment version. Manual execution requires OAuth or personal-key write access and supports synchronous or streamed runs only; `waitTimeoutSeconds` lets a synchronous one continue in the background.'
12014
12014
  },
12015
12015
  async: {
12016
12016
  kind: "boolean",
12017
12017
  default: false,
12018
- describe: "Queue the run and return a 202 receipt. Requires an API key or OAuth access token and a deployed run source. Cannot stream, select outputs, enable thinking/tool events, or include file-inlining options (`includeFileBase64` or `base64MaxBytes`)."
12018
+ describe: "Queue the run and return a 202 receipt. Requires a full-access API key or an OAuth access token with `api:write`, and a deployed run source. Cannot stream, select outputs, enable thinking/tool events, or include file-inlining options (`includeFileBase64` or `base64MaxBytes`)."
12019
12019
  },
12020
12020
  executionTimeoutSeconds: {
12021
12021
  kind: "integer",
@@ -12023,7 +12023,7 @@ var V2_OPERATIONS = {
12023
12023
  },
12024
12024
  waitTimeoutSeconds: {
12025
12025
  kind: "integer",
12026
- describe: "Wait at most this many seconds for a synchronous run; `0` waits until it settles. A run still going then continues in the background and the response carries its run receipt instead of its result: `202` on a JSON response, or a closing `detached` frame on an `application/x-ndjson` result stream, which keeps its `200`. The receipt is sent only once the run can be read on the runs resource, where it can also be cancelled. The run is admitted under asynchronous limits, and a dropped connection no longer cancels it. Requires an API key or OAuth access token. Cannot be combined with `async` or `stream`."
12026
+ describe: "Wait at most this many seconds for a synchronous run; `0` waits until it settles. A run still going then continues in the background and the response carries its run receipt instead of its result: `202` on a JSON response, or a closing `detached` frame on an `application/x-ndjson` result stream, which keeps its `200`. The receipt is sent only once the run can be read on the runs resource, where it can also be cancelled. The run is admitted under asynchronous limits, and a dropped connection no longer cancels it. Requires a full-access API key or an OAuth access token with `api:write`. Cannot be combined with `async` or `stream`."
12027
12027
  },
12028
12028
  stream: {
12029
12029
  kind: "boolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.2.24-preview.281.1",
3
+ "version": "2.2.24-preview.283.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {