@soat/sdk 0.16.3 → 0.17.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 +3 -3
- package/dist/index.d.cts +18 -16
- package/dist/index.d.mts +18 -16
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2474,7 +2474,7 @@ var Orchestrations = class {
|
|
|
2474
2474
|
/**
|
|
2475
2475
|
* Start an orchestration run
|
|
2476
2476
|
*
|
|
2477
|
-
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "running" and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state (the legacy synchronous behaviour).
|
|
2477
|
+
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "queued" (a worker then claims it and moves it to "running") and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state (the legacy synchronous behaviour).
|
|
2478
2478
|
*/
|
|
2479
2479
|
static startOrchestrationRun(options) {
|
|
2480
2480
|
return (options.client ?? client).post({
|
|
@@ -2515,7 +2515,7 @@ var Orchestrations = class {
|
|
|
2515
2515
|
/**
|
|
2516
2516
|
* Resume an orchestration run
|
|
2517
2517
|
*
|
|
2518
|
-
*
|
|
2518
|
+
* Re-drives an awaiting_input orchestration run from its last checkpoint. This does not satisfy the pause itself — it carries no node_id or payload, so a run parked on a human or webhook-receive node re-parks on the same node. Use submit-human-input to supply the awaited payload and advance the run.
|
|
2519
2519
|
*/
|
|
2520
2520
|
static resumeOrchestrationRun(options) {
|
|
2521
2521
|
return (options.client ?? client).post({
|
|
@@ -2845,7 +2845,7 @@ var Sessions = class {
|
|
|
2845
2845
|
/**
|
|
2846
2846
|
* Create a session
|
|
2847
2847
|
*
|
|
2848
|
-
* Creates a new session for the specified agent
|
|
2848
|
+
* Creates a new session for the specified agent, along with the underlying conversation, so the caller only needs this single call to start interacting with the agent. No actor is created: pass `actor_id` to attach an existing actor as the session's end user. When it is omitted the session has no actor, and generations in it carry no end-user attribution — they are not billed to an actor in the usage meter and they match no `actor`-scoped quota.
|
|
2849
2849
|
*
|
|
2850
2850
|
*/
|
|
2851
2851
|
static createSession(options) {
|
package/dist/index.d.cts
CHANGED
|
@@ -726,7 +726,7 @@ type CreateAgentGenerationRequest = {
|
|
|
726
726
|
*/
|
|
727
727
|
max_call_depth?: number;
|
|
728
728
|
/**
|
|
729
|
-
* Key-value pairs
|
|
729
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
730
730
|
*/
|
|
731
731
|
tool_context?: {
|
|
732
732
|
[key: string]: string;
|
|
@@ -3721,7 +3721,7 @@ type StartRunRequest = {
|
|
|
3721
3721
|
[key: string]: unknown;
|
|
3722
3722
|
};
|
|
3723
3723
|
/**
|
|
3724
|
-
* When true, block until the run reaches a terminal (succeeded/failed) or awaiting_input state and return the settled run. When false (default), return immediately with status "
|
|
3724
|
+
* When true, block until the run reaches a terminal (succeeded/failed) or awaiting_input state and return the settled run. When false (default), return immediately with status "queued" and execute the run in the background.
|
|
3725
3725
|
*/
|
|
3726
3726
|
wait?: boolean;
|
|
3727
3727
|
};
|
|
@@ -3740,7 +3740,7 @@ type PolicyStatement = {
|
|
|
3740
3740
|
action: Array<string>;
|
|
3741
3741
|
resource?: Array<string>;
|
|
3742
3742
|
/**
|
|
3743
|
-
* Optional condition block. Keys are condition operators (e.g. StringEquals) mapping to context-key/value maps; evaluated by the policy compiler. Free-form — keys are dynamic, not validated.
|
|
3743
|
+
* Optional condition block. Keys are condition operators (e.g. StringEquals) mapping to context-key/value maps; evaluated by the policy compiler. Free-form — keys are dynamic, not validated. Operator and context keys are matched by exact string and are never case-converted, so they round-trip exactly as written: `soat:ResourceTag/cost_center` selects the tag `cost_center`, not `costCenter`.
|
|
3744
3744
|
*
|
|
3745
3745
|
*/
|
|
3746
3746
|
condition?: {
|
|
@@ -3880,7 +3880,8 @@ type SessionRecord = {
|
|
|
3880
3880
|
status?: 'open' | 'closed' | 'expired';
|
|
3881
3881
|
name?: string | null;
|
|
3882
3882
|
/**
|
|
3883
|
-
* Public ID of the user actor
|
|
3883
|
+
* Public ID of the user actor, or null when the session was created without one
|
|
3884
|
+
*
|
|
3884
3885
|
*/
|
|
3885
3886
|
actor_id?: string | null;
|
|
3886
3887
|
tags?: {
|
|
@@ -3897,7 +3898,7 @@ type SessionRecord = {
|
|
|
3897
3898
|
created_at?: Date;
|
|
3898
3899
|
updated_at?: Date;
|
|
3899
3900
|
/**
|
|
3900
|
-
* Key-value pairs
|
|
3901
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this session. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
3901
3902
|
*/
|
|
3902
3903
|
tool_context?: {
|
|
3903
3904
|
[key: string]: string;
|
|
@@ -3926,7 +3927,8 @@ type CreateSessionRequest = {
|
|
|
3926
3927
|
*/
|
|
3927
3928
|
name?: string;
|
|
3928
3929
|
/**
|
|
3929
|
-
* Optional public ID of an existing actor to use as the user actor
|
|
3930
|
+
* Optional public ID of an existing actor to use as the user actor. Actors are created separately (POST /actors); this field only links one. Omit it and the session has no end user, so its generations match no actor-scoped quota.
|
|
3931
|
+
*
|
|
3930
3932
|
*/
|
|
3931
3933
|
actor_id?: string;
|
|
3932
3934
|
/**
|
|
@@ -3934,7 +3936,7 @@ type CreateSessionRequest = {
|
|
|
3934
3936
|
*/
|
|
3935
3937
|
auto_generate?: boolean;
|
|
3936
3938
|
/**
|
|
3937
|
-
* Key-value pairs
|
|
3939
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this session. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
3938
3940
|
*/
|
|
3939
3941
|
tool_context?: {
|
|
3940
3942
|
[key: string]: string;
|
|
@@ -3963,7 +3965,7 @@ type UpdateSessionRequest = {
|
|
|
3963
3965
|
*/
|
|
3964
3966
|
auto_generate?: boolean;
|
|
3965
3967
|
/**
|
|
3966
|
-
* Key-value pairs
|
|
3968
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this session. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
3967
3969
|
*/
|
|
3968
3970
|
tool_context?: {
|
|
3969
3971
|
[key: string]: string;
|
|
@@ -3985,7 +3987,7 @@ type AddSessionMessageRequest = {
|
|
|
3985
3987
|
*/
|
|
3986
3988
|
message: string;
|
|
3987
3989
|
/**
|
|
3988
|
-
* Key-value pairs
|
|
3990
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
3989
3991
|
*/
|
|
3990
3992
|
tool_context?: {
|
|
3991
3993
|
[key: string]: string;
|
|
@@ -4001,7 +4003,7 @@ type AddSessionMessageRequest = {
|
|
|
4001
4003
|
*/
|
|
4002
4004
|
document_id: string;
|
|
4003
4005
|
/**
|
|
4004
|
-
* Key-value pairs
|
|
4006
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
4005
4007
|
*/
|
|
4006
4008
|
tool_context?: {
|
|
4007
4009
|
[key: string]: string;
|
|
@@ -4027,7 +4029,7 @@ type GenerateSessionRequest = {
|
|
|
4027
4029
|
*/
|
|
4028
4030
|
model?: string;
|
|
4029
4031
|
/**
|
|
4030
|
-
* Key-value pairs
|
|
4032
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
4031
4033
|
*/
|
|
4032
4034
|
tool_context?: {
|
|
4033
4035
|
[key: string]: string;
|
|
@@ -7142,7 +7144,7 @@ type GenerateConversationMessageData = {
|
|
|
7142
7144
|
*/
|
|
7143
7145
|
stream?: boolean;
|
|
7144
7146
|
/**
|
|
7145
|
-
* Key-value pairs
|
|
7147
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim; keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
7146
7148
|
*/
|
|
7147
7149
|
tool_context?: {
|
|
7148
7150
|
[key: string]: string;
|
|
@@ -8820,7 +8822,7 @@ type DownloadFileBase64Responses = {
|
|
|
8820
8822
|
/**
|
|
8821
8823
|
* MIME type of the file
|
|
8822
8824
|
*/
|
|
8823
|
-
|
|
8825
|
+
content_type?: string;
|
|
8824
8826
|
/**
|
|
8825
8827
|
* File size in bytes
|
|
8826
8828
|
*/
|
|
@@ -14886,7 +14888,7 @@ declare class Orchestrations {
|
|
|
14886
14888
|
/**
|
|
14887
14889
|
* Start an orchestration run
|
|
14888
14890
|
*
|
|
14889
|
-
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "running" and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state (the legacy synchronous behaviour).
|
|
14891
|
+
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "queued" (a worker then claims it and moves it to "running") and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state (the legacy synchronous behaviour).
|
|
14890
14892
|
*/
|
|
14891
14893
|
static startOrchestrationRun<ThrowOnError extends boolean = false>(options: Options<StartOrchestrationRunData, ThrowOnError>): RequestResult<StartOrchestrationRunResponses, StartOrchestrationRunErrors, ThrowOnError>;
|
|
14892
14894
|
/**
|
|
@@ -14904,7 +14906,7 @@ declare class Orchestrations {
|
|
|
14904
14906
|
/**
|
|
14905
14907
|
* Resume an orchestration run
|
|
14906
14908
|
*
|
|
14907
|
-
*
|
|
14909
|
+
* Re-drives an awaiting_input orchestration run from its last checkpoint. This does not satisfy the pause itself — it carries no node_id or payload, so a run parked on a human or webhook-receive node re-parks on the same node. Use submit-human-input to supply the awaited payload and advance the run.
|
|
14908
14910
|
*/
|
|
14909
14911
|
static resumeOrchestrationRun<ThrowOnError extends boolean = false>(options: Options<ResumeOrchestrationRunData, ThrowOnError>): RequestResult<ResumeOrchestrationRunResponses, ResumeOrchestrationRunErrors, ThrowOnError>;
|
|
14910
14912
|
/**
|
|
@@ -15069,7 +15071,7 @@ declare class Sessions {
|
|
|
15069
15071
|
/**
|
|
15070
15072
|
* Create a session
|
|
15071
15073
|
*
|
|
15072
|
-
* Creates a new session for the specified agent
|
|
15074
|
+
* Creates a new session for the specified agent, along with the underlying conversation, so the caller only needs this single call to start interacting with the agent. No actor is created: pass `actor_id` to attach an existing actor as the session's end user. When it is omitted the session has no actor, and generations in it carry no end-user attribution — they are not billed to an actor in the usage meter and they match no `actor`-scoped quota.
|
|
15073
15075
|
*
|
|
15074
15076
|
*/
|
|
15075
15077
|
static createSession<ThrowOnError extends boolean = false>(options?: Options<CreateSessionData, ThrowOnError>): RequestResult<CreateSessionResponses, CreateSessionErrors, ThrowOnError>;
|
package/dist/index.d.mts
CHANGED
|
@@ -726,7 +726,7 @@ type CreateAgentGenerationRequest = {
|
|
|
726
726
|
*/
|
|
727
727
|
max_call_depth?: number;
|
|
728
728
|
/**
|
|
729
|
-
* Key-value pairs
|
|
729
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
730
730
|
*/
|
|
731
731
|
tool_context?: {
|
|
732
732
|
[key: string]: string;
|
|
@@ -3721,7 +3721,7 @@ type StartRunRequest = {
|
|
|
3721
3721
|
[key: string]: unknown;
|
|
3722
3722
|
};
|
|
3723
3723
|
/**
|
|
3724
|
-
* When true, block until the run reaches a terminal (succeeded/failed) or awaiting_input state and return the settled run. When false (default), return immediately with status "
|
|
3724
|
+
* When true, block until the run reaches a terminal (succeeded/failed) or awaiting_input state and return the settled run. When false (default), return immediately with status "queued" and execute the run in the background.
|
|
3725
3725
|
*/
|
|
3726
3726
|
wait?: boolean;
|
|
3727
3727
|
};
|
|
@@ -3740,7 +3740,7 @@ type PolicyStatement = {
|
|
|
3740
3740
|
action: Array<string>;
|
|
3741
3741
|
resource?: Array<string>;
|
|
3742
3742
|
/**
|
|
3743
|
-
* Optional condition block. Keys are condition operators (e.g. StringEquals) mapping to context-key/value maps; evaluated by the policy compiler. Free-form — keys are dynamic, not validated.
|
|
3743
|
+
* Optional condition block. Keys are condition operators (e.g. StringEquals) mapping to context-key/value maps; evaluated by the policy compiler. Free-form — keys are dynamic, not validated. Operator and context keys are matched by exact string and are never case-converted, so they round-trip exactly as written: `soat:ResourceTag/cost_center` selects the tag `cost_center`, not `costCenter`.
|
|
3744
3744
|
*
|
|
3745
3745
|
*/
|
|
3746
3746
|
condition?: {
|
|
@@ -3880,7 +3880,8 @@ type SessionRecord = {
|
|
|
3880
3880
|
status?: 'open' | 'closed' | 'expired';
|
|
3881
3881
|
name?: string | null;
|
|
3882
3882
|
/**
|
|
3883
|
-
* Public ID of the user actor
|
|
3883
|
+
* Public ID of the user actor, or null when the session was created without one
|
|
3884
|
+
*
|
|
3884
3885
|
*/
|
|
3885
3886
|
actor_id?: string | null;
|
|
3886
3887
|
tags?: {
|
|
@@ -3897,7 +3898,7 @@ type SessionRecord = {
|
|
|
3897
3898
|
created_at?: Date;
|
|
3898
3899
|
updated_at?: Date;
|
|
3899
3900
|
/**
|
|
3900
|
-
* Key-value pairs
|
|
3901
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this session. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
3901
3902
|
*/
|
|
3902
3903
|
tool_context?: {
|
|
3903
3904
|
[key: string]: string;
|
|
@@ -3926,7 +3927,8 @@ type CreateSessionRequest = {
|
|
|
3926
3927
|
*/
|
|
3927
3928
|
name?: string;
|
|
3928
3929
|
/**
|
|
3929
|
-
* Optional public ID of an existing actor to use as the user actor
|
|
3930
|
+
* Optional public ID of an existing actor to use as the user actor. Actors are created separately (POST /actors); this field only links one. Omit it and the session has no end user, so its generations match no actor-scoped quota.
|
|
3931
|
+
*
|
|
3930
3932
|
*/
|
|
3931
3933
|
actor_id?: string;
|
|
3932
3934
|
/**
|
|
@@ -3934,7 +3936,7 @@ type CreateSessionRequest = {
|
|
|
3934
3936
|
*/
|
|
3935
3937
|
auto_generate?: boolean;
|
|
3936
3938
|
/**
|
|
3937
|
-
* Key-value pairs
|
|
3939
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this session. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
3938
3940
|
*/
|
|
3939
3941
|
tool_context?: {
|
|
3940
3942
|
[key: string]: string;
|
|
@@ -3963,7 +3965,7 @@ type UpdateSessionRequest = {
|
|
|
3963
3965
|
*/
|
|
3964
3966
|
auto_generate?: boolean;
|
|
3965
3967
|
/**
|
|
3966
|
-
* Key-value pairs
|
|
3968
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this session. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
3967
3969
|
*/
|
|
3968
3970
|
tool_context?: {
|
|
3969
3971
|
[key: string]: string;
|
|
@@ -3985,7 +3987,7 @@ type AddSessionMessageRequest = {
|
|
|
3985
3987
|
*/
|
|
3986
3988
|
message: string;
|
|
3987
3989
|
/**
|
|
3988
|
-
* Key-value pairs
|
|
3990
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
3989
3991
|
*/
|
|
3990
3992
|
tool_context?: {
|
|
3991
3993
|
[key: string]: string;
|
|
@@ -4001,7 +4003,7 @@ type AddSessionMessageRequest = {
|
|
|
4001
4003
|
*/
|
|
4002
4004
|
document_id: string;
|
|
4003
4005
|
/**
|
|
4004
|
-
* Key-value pairs
|
|
4006
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
4005
4007
|
*/
|
|
4006
4008
|
tool_context?: {
|
|
4007
4009
|
[key: string]: string;
|
|
@@ -4027,7 +4029,7 @@ type GenerateSessionRequest = {
|
|
|
4027
4029
|
*/
|
|
4028
4030
|
model?: string;
|
|
4029
4031
|
/**
|
|
4030
|
-
* Key-value pairs
|
|
4032
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
4031
4033
|
*/
|
|
4032
4034
|
tool_context?: {
|
|
4033
4035
|
[key: string]: string;
|
|
@@ -7142,7 +7144,7 @@ type GenerateConversationMessageData = {
|
|
|
7142
7144
|
*/
|
|
7143
7145
|
stream?: boolean;
|
|
7144
7146
|
/**
|
|
7145
|
-
* Key-value pairs
|
|
7147
|
+
* Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim; keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
|
|
7146
7148
|
*/
|
|
7147
7149
|
tool_context?: {
|
|
7148
7150
|
[key: string]: string;
|
|
@@ -8820,7 +8822,7 @@ type DownloadFileBase64Responses = {
|
|
|
8820
8822
|
/**
|
|
8821
8823
|
* MIME type of the file
|
|
8822
8824
|
*/
|
|
8823
|
-
|
|
8825
|
+
content_type?: string;
|
|
8824
8826
|
/**
|
|
8825
8827
|
* File size in bytes
|
|
8826
8828
|
*/
|
|
@@ -14886,7 +14888,7 @@ declare class Orchestrations {
|
|
|
14886
14888
|
/**
|
|
14887
14889
|
* Start an orchestration run
|
|
14888
14890
|
*
|
|
14889
|
-
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "running" and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state (the legacy synchronous behaviour).
|
|
14891
|
+
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "queued" (a worker then claims it and moves it to "running") and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state (the legacy synchronous behaviour).
|
|
14890
14892
|
*/
|
|
14891
14893
|
static startOrchestrationRun<ThrowOnError extends boolean = false>(options: Options<StartOrchestrationRunData, ThrowOnError>): RequestResult<StartOrchestrationRunResponses, StartOrchestrationRunErrors, ThrowOnError>;
|
|
14892
14894
|
/**
|
|
@@ -14904,7 +14906,7 @@ declare class Orchestrations {
|
|
|
14904
14906
|
/**
|
|
14905
14907
|
* Resume an orchestration run
|
|
14906
14908
|
*
|
|
14907
|
-
*
|
|
14909
|
+
* Re-drives an awaiting_input orchestration run from its last checkpoint. This does not satisfy the pause itself — it carries no node_id or payload, so a run parked on a human or webhook-receive node re-parks on the same node. Use submit-human-input to supply the awaited payload and advance the run.
|
|
14908
14910
|
*/
|
|
14909
14911
|
static resumeOrchestrationRun<ThrowOnError extends boolean = false>(options: Options<ResumeOrchestrationRunData, ThrowOnError>): RequestResult<ResumeOrchestrationRunResponses, ResumeOrchestrationRunErrors, ThrowOnError>;
|
|
14910
14912
|
/**
|
|
@@ -15069,7 +15071,7 @@ declare class Sessions {
|
|
|
15069
15071
|
/**
|
|
15070
15072
|
* Create a session
|
|
15071
15073
|
*
|
|
15072
|
-
* Creates a new session for the specified agent
|
|
15074
|
+
* Creates a new session for the specified agent, along with the underlying conversation, so the caller only needs this single call to start interacting with the agent. No actor is created: pass `actor_id` to attach an existing actor as the session's end user. When it is omitted the session has no actor, and generations in it carry no end-user attribution — they are not billed to an actor in the usage meter and they match no `actor`-scoped quota.
|
|
15073
15075
|
*
|
|
15074
15076
|
*/
|
|
15075
15077
|
static createSession<ThrowOnError extends boolean = false>(options?: Options<CreateSessionData, ThrowOnError>): RequestResult<CreateSessionResponses, CreateSessionErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -2473,7 +2473,7 @@ var Orchestrations = class {
|
|
|
2473
2473
|
/**
|
|
2474
2474
|
* Start an orchestration run
|
|
2475
2475
|
*
|
|
2476
|
-
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "running" and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state (the legacy synchronous behaviour).
|
|
2476
|
+
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "queued" (a worker then claims it and moves it to "running") and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state (the legacy synchronous behaviour).
|
|
2477
2477
|
*/
|
|
2478
2478
|
static startOrchestrationRun(options) {
|
|
2479
2479
|
return (options.client ?? client).post({
|
|
@@ -2514,7 +2514,7 @@ var Orchestrations = class {
|
|
|
2514
2514
|
/**
|
|
2515
2515
|
* Resume an orchestration run
|
|
2516
2516
|
*
|
|
2517
|
-
*
|
|
2517
|
+
* Re-drives an awaiting_input orchestration run from its last checkpoint. This does not satisfy the pause itself — it carries no node_id or payload, so a run parked on a human or webhook-receive node re-parks on the same node. Use submit-human-input to supply the awaited payload and advance the run.
|
|
2518
2518
|
*/
|
|
2519
2519
|
static resumeOrchestrationRun(options) {
|
|
2520
2520
|
return (options.client ?? client).post({
|
|
@@ -2844,7 +2844,7 @@ var Sessions = class {
|
|
|
2844
2844
|
/**
|
|
2845
2845
|
* Create a session
|
|
2846
2846
|
*
|
|
2847
|
-
* Creates a new session for the specified agent
|
|
2847
|
+
* Creates a new session for the specified agent, along with the underlying conversation, so the caller only needs this single call to start interacting with the agent. No actor is created: pass `actor_id` to attach an existing actor as the session's end user. When it is omitted the session has no actor, and generations in it carry no end-user attribution — they are not billed to an actor in the usage meter and they match no `actor`-scoped quota.
|
|
2848
2848
|
*
|
|
2849
2849
|
*/
|
|
2850
2850
|
static createSession(options) {
|