asteroid-odyssey 1.8.140 → 1.8.142

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.d.mts CHANGED
@@ -400,9 +400,13 @@ type AgentsAgentExecuteAgentRequest = {
400
400
  [key: string]: unknown;
401
401
  };
402
402
  /**
403
- * The version of the workflow to execute. If not provided, the published version is used.
403
+ * The version of the workflow to execute. If neither version nor head is provided, the published version is used.
404
404
  */
405
405
  version?: number;
406
+ /**
407
+ * Run the editable head instead of the published version. Cannot be combined with version.
408
+ */
409
+ head?: boolean;
406
410
  /**
407
411
  * Per-execution runtime options that override or extend the workflow's default settings.
408
412
  */
@@ -465,9 +469,13 @@ type AgentsAgentExecuteAgentSyncRequest = {
465
469
  [key: string]: unknown;
466
470
  };
467
471
  /**
468
- * The version of the workflow to execute. If not provided, the published version is used.
472
+ * The version of the workflow to execute. If neither version nor head is provided, the published version is used.
469
473
  */
470
474
  version?: number;
475
+ /**
476
+ * Run the editable head instead of the published version. Cannot be combined with version.
477
+ */
478
+ head?: boolean;
471
479
  /**
472
480
  * Per-execution runtime options that override or extend the workflow's default settings.
473
481
  */
@@ -4226,11 +4234,13 @@ type AgentsVaultVaultTemplate = {
4226
4234
  */
4227
4235
  type AgentsWorkflowBrowserProvider = "anchor";
4228
4236
  /**
4229
- * Browser environment template configuration
4237
+ * Customer-facing browser environment template configuration
4230
4238
  */
4231
4239
  type AgentsWorkflowBrowserTemplateConfig = {
4232
4240
  /**
4233
- * Browser provider type
4241
+ * Ignored, and always anchor. Kept so SDKs released before it was dropped still parse.
4242
+ *
4243
+ * @deprecated
4234
4244
  */
4235
4245
  provider: AgentsWorkflowBrowserProvider;
4236
4246
  };
@@ -5070,9 +5080,9 @@ type WorkflowsWorkflowCreateRequest = {
5070
5080
  */
5071
5081
  name: string;
5072
5082
  /**
5073
- * The first version of the workflow
5083
+ * The first version of the workflow. Omit it to start from a blank workflow with a single start node.
5074
5084
  */
5075
- version: WorkflowsVersionCreateRequest;
5085
+ version?: WorkflowsVersionCreateRequest;
5076
5086
  };
5077
5087
  /**
5078
5088
  * Response after creating a workflow
@@ -5160,9 +5170,13 @@ type WorkflowsWorkflowExecuteRequest = {
5160
5170
  [key: string]: unknown;
5161
5171
  };
5162
5172
  /**
5163
- * The version of the workflow to execute. If not provided, the published version is used.
5173
+ * The version of the workflow to execute. If neither version nor head is provided, the published version is used.
5164
5174
  */
5165
5175
  version?: number;
5176
+ /**
5177
+ * Run the editable head instead of the published version. Cannot be combined with version.
5178
+ */
5179
+ head?: boolean;
5166
5180
  /**
5167
5181
  * Per-execution runtime options that override or extend the workflow's default settings.
5168
5182
  */
@@ -5228,9 +5242,13 @@ type WorkflowsWorkflowExecuteSyncRequest = {
5228
5242
  [key: string]: unknown;
5229
5243
  };
5230
5244
  /**
5231
- * The version of the workflow to execute. If not provided, the published version is used.
5245
+ * The version of the workflow to execute. If neither version nor head is provided, the published version is used.
5232
5246
  */
5233
5247
  version?: number;
5248
+ /**
5249
+ * Run the editable head instead of the published version. Cannot be combined with version.
5250
+ */
5251
+ head?: boolean;
5234
5252
  /**
5235
5253
  * Per-execution runtime options that override or extend the workflow's default settings.
5236
5254
  */
@@ -11866,7 +11884,7 @@ declare const workflowList: <ThrowOnError extends boolean = false>(options?: Opt
11866
11884
  /**
11867
11885
  * Create workflow
11868
11886
  *
11869
- * Create a workflow and its first version.
11887
+ * Create a workflow and its first version. Without a version, the workflow starts blank with a single start node.
11870
11888
  */
11871
11889
  declare const workflowCreate: <ThrowOnError extends boolean = false>(options: Options<WorkflowCreateData, ThrowOnError>) => RequestResult<WorkflowCreateResponses, WorkflowCreateErrors, ThrowOnError>;
11872
11890
  /**
@@ -11896,7 +11914,7 @@ declare const workflowByIdUpdate: <ThrowOnError extends boolean = false>(options
11896
11914
  /**
11897
11915
  * Execute workflow
11898
11916
  *
11899
- * Start an execution of the workflow's published version, or of the version given in the request.
11917
+ * Start an execution of the workflow's published version, of the version given in the request, or of the editable head when head is true.
11900
11918
  */
11901
11919
  declare const workflowExecutePost: <ThrowOnError extends boolean = false>(options: Options<WorkflowExecutePostData, ThrowOnError>) => RequestResult<WorkflowExecutePostResponses, WorkflowExecutePostErrors, ThrowOnError>;
11902
11920
  /**
package/dist/index.d.ts CHANGED
@@ -400,9 +400,13 @@ type AgentsAgentExecuteAgentRequest = {
400
400
  [key: string]: unknown;
401
401
  };
402
402
  /**
403
- * The version of the workflow to execute. If not provided, the published version is used.
403
+ * The version of the workflow to execute. If neither version nor head is provided, the published version is used.
404
404
  */
405
405
  version?: number;
406
+ /**
407
+ * Run the editable head instead of the published version. Cannot be combined with version.
408
+ */
409
+ head?: boolean;
406
410
  /**
407
411
  * Per-execution runtime options that override or extend the workflow's default settings.
408
412
  */
@@ -465,9 +469,13 @@ type AgentsAgentExecuteAgentSyncRequest = {
465
469
  [key: string]: unknown;
466
470
  };
467
471
  /**
468
- * The version of the workflow to execute. If not provided, the published version is used.
472
+ * The version of the workflow to execute. If neither version nor head is provided, the published version is used.
469
473
  */
470
474
  version?: number;
475
+ /**
476
+ * Run the editable head instead of the published version. Cannot be combined with version.
477
+ */
478
+ head?: boolean;
471
479
  /**
472
480
  * Per-execution runtime options that override or extend the workflow's default settings.
473
481
  */
@@ -4226,11 +4234,13 @@ type AgentsVaultVaultTemplate = {
4226
4234
  */
4227
4235
  type AgentsWorkflowBrowserProvider = "anchor";
4228
4236
  /**
4229
- * Browser environment template configuration
4237
+ * Customer-facing browser environment template configuration
4230
4238
  */
4231
4239
  type AgentsWorkflowBrowserTemplateConfig = {
4232
4240
  /**
4233
- * Browser provider type
4241
+ * Ignored, and always anchor. Kept so SDKs released before it was dropped still parse.
4242
+ *
4243
+ * @deprecated
4234
4244
  */
4235
4245
  provider: AgentsWorkflowBrowserProvider;
4236
4246
  };
@@ -5070,9 +5080,9 @@ type WorkflowsWorkflowCreateRequest = {
5070
5080
  */
5071
5081
  name: string;
5072
5082
  /**
5073
- * The first version of the workflow
5083
+ * The first version of the workflow. Omit it to start from a blank workflow with a single start node.
5074
5084
  */
5075
- version: WorkflowsVersionCreateRequest;
5085
+ version?: WorkflowsVersionCreateRequest;
5076
5086
  };
5077
5087
  /**
5078
5088
  * Response after creating a workflow
@@ -5160,9 +5170,13 @@ type WorkflowsWorkflowExecuteRequest = {
5160
5170
  [key: string]: unknown;
5161
5171
  };
5162
5172
  /**
5163
- * The version of the workflow to execute. If not provided, the published version is used.
5173
+ * The version of the workflow to execute. If neither version nor head is provided, the published version is used.
5164
5174
  */
5165
5175
  version?: number;
5176
+ /**
5177
+ * Run the editable head instead of the published version. Cannot be combined with version.
5178
+ */
5179
+ head?: boolean;
5166
5180
  /**
5167
5181
  * Per-execution runtime options that override or extend the workflow's default settings.
5168
5182
  */
@@ -5228,9 +5242,13 @@ type WorkflowsWorkflowExecuteSyncRequest = {
5228
5242
  [key: string]: unknown;
5229
5243
  };
5230
5244
  /**
5231
- * The version of the workflow to execute. If not provided, the published version is used.
5245
+ * The version of the workflow to execute. If neither version nor head is provided, the published version is used.
5232
5246
  */
5233
5247
  version?: number;
5248
+ /**
5249
+ * Run the editable head instead of the published version. Cannot be combined with version.
5250
+ */
5251
+ head?: boolean;
5234
5252
  /**
5235
5253
  * Per-execution runtime options that override or extend the workflow's default settings.
5236
5254
  */
@@ -11866,7 +11884,7 @@ declare const workflowList: <ThrowOnError extends boolean = false>(options?: Opt
11866
11884
  /**
11867
11885
  * Create workflow
11868
11886
  *
11869
- * Create a workflow and its first version.
11887
+ * Create a workflow and its first version. Without a version, the workflow starts blank with a single start node.
11870
11888
  */
11871
11889
  declare const workflowCreate: <ThrowOnError extends boolean = false>(options: Options<WorkflowCreateData, ThrowOnError>) => RequestResult<WorkflowCreateResponses, WorkflowCreateErrors, ThrowOnError>;
11872
11890
  /**
@@ -11896,7 +11914,7 @@ declare const workflowByIdUpdate: <ThrowOnError extends boolean = false>(options
11896
11914
  /**
11897
11915
  * Execute workflow
11898
11916
  *
11899
- * Start an execution of the workflow's published version, or of the version given in the request.
11917
+ * Start an execution of the workflow's published version, of the version given in the request, or of the editable head when head is true.
11900
11918
  */
11901
11919
  declare const workflowExecutePost: <ThrowOnError extends boolean = false>(options: Options<WorkflowExecutePostData, ThrowOnError>) => RequestResult<WorkflowExecutePostResponses, WorkflowExecutePostErrors, ThrowOnError>;
11902
11920
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.8.140",
3
+ "version": "1.8.142",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",