@inferencesh/sdk 0.41.2 → 0.41.4
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/CHANGELOG.md +10 -0
- package/dist/types.d.ts +92 -1
- package/dist/types.js +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.41.4] - 2026-11-18
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `InterruptDTO.origin` (`InterruptOrigin`): the sub-agent that asked, on an interrupt shown on an ancestor chat's `pending_interrupts`; run interrupt reason `subagent` (api-v1584).
|
|
14
|
+
|
|
15
|
+
## [0.41.3] - 2026-11-17
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- `AuthMethodBot` and `AuthMethod.bot`, `AuthMethod.scope_params`: a provider's bot installed in the signed-in workspace (Slack), its scopes and token (api-v1581).
|
|
19
|
+
|
|
10
20
|
## [0.41.2] - 2026-11-17
|
|
11
21
|
|
|
12
22
|
### Added
|
package/dist/types.d.ts
CHANGED
|
@@ -4702,6 +4702,12 @@ export interface InterruptDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
4702
4702
|
resolved_data?: any;
|
|
4703
4703
|
expires_at?: string;
|
|
4704
4704
|
meta?: any;
|
|
4705
|
+
/**
|
|
4706
|
+
* Origin is the sub-agent that asked, on an interrupt a sub-agent's run
|
|
4707
|
+
* raised. Shown on an ancestor chat (its pending_interrupts), ChatID
|
|
4708
|
+
* is the sub-agent's chat, not the one read.
|
|
4709
|
+
*/
|
|
4710
|
+
origin?: InterruptOrigin;
|
|
4705
4711
|
}
|
|
4706
4712
|
/**
|
|
4707
4713
|
* KnowledgeFile represents a file in a knowledge entry
|
|
@@ -7606,6 +7612,47 @@ export interface AuthMethodLookup {
|
|
|
7606
7612
|
[key: string]: string;
|
|
7607
7613
|
};
|
|
7608
7614
|
}
|
|
7615
|
+
/**
|
|
7616
|
+
* AuthMethodBot is the provider's bot user, installed by the sign-in into
|
|
7617
|
+
* the workspace the person signs in to (Slack's bot scopes on the same
|
|
7618
|
+
* authorize as the user's). The token it yields is that workspace's bot,
|
|
7619
|
+
* the login's own: stored with the login (its bot_token secret), never the
|
|
7620
|
+
* OAuth app's, and read in env as {{bot_token}}.
|
|
7621
|
+
*/
|
|
7622
|
+
export interface AuthMethodBot {
|
|
7623
|
+
/**
|
|
7624
|
+
* ScopeParam is the authorize param the bot's scopes travel in, apart
|
|
7625
|
+
* from the login's (Slack: "scope", next to user_scope). Bot scopes are
|
|
7626
|
+
* named with BotScopePrefix wherever scopes are (Scopes, a capability,
|
|
7627
|
+
* a request) and sent here without it.
|
|
7628
|
+
*/
|
|
7629
|
+
scope_param: string;
|
|
7630
|
+
/**
|
|
7631
|
+
* Scopes are the bot's scopes, each named with BotScopePrefix: what
|
|
7632
|
+
* installing the bot asks for (a capability names them; a login made
|
|
7633
|
+
* without them is asked for them when a run needs its bot). Not asked
|
|
7634
|
+
* for by default: a first connect stays read-only.
|
|
7635
|
+
*/
|
|
7636
|
+
scopes?: string[];
|
|
7637
|
+
/**
|
|
7638
|
+
* Token is the bot's token in the token exchange's document
|
|
7639
|
+
* ({{token.bot.access_token}}); blank when the exchange installed no
|
|
7640
|
+
* bot.
|
|
7641
|
+
*/
|
|
7642
|
+
token: string;
|
|
7643
|
+
/**
|
|
7644
|
+
* GrantedScopes is the bot scopes the exchange granted, in the same
|
|
7645
|
+
* document, comma or space separated; the login holds each with
|
|
7646
|
+
* BotScopePrefix. Empty: the bot scopes asked for, once a token came.
|
|
7647
|
+
*/
|
|
7648
|
+
granted_scopes?: string;
|
|
7649
|
+
/**
|
|
7650
|
+
* Hosts are the exact hosts the bot token is sent to: every env key
|
|
7651
|
+
* reading {{bot_token}} is bound to them (authmethod.HostBinder), so a
|
|
7652
|
+
* run behind the egress gateway holds a placeholder. Empty: env as is.
|
|
7653
|
+
*/
|
|
7654
|
+
hosts?: string[];
|
|
7655
|
+
}
|
|
7609
7656
|
/**
|
|
7610
7657
|
* AuthMethodCapability is something an app can ask for from this provider,
|
|
7611
7658
|
* satisfied by a connection holding its scopes. Scopes are the provider's
|
|
@@ -7636,6 +7683,7 @@ export interface AuthMethodCapability {
|
|
|
7636
7683
|
* is the userinfo lookup
|
|
7637
7684
|
* expires_at, metadata.*, app.* env only: the token's expiry (RFC 3339),
|
|
7638
7685
|
* the stored metadata, the app's extra keys
|
|
7686
|
+
* bot_token env only: the bot the login installed (Bot)
|
|
7639
7687
|
* Array elements are indexed: {{resources.0.id}}. {{a|b}} takes the first
|
|
7640
7688
|
* path present. A template none of whose placeholders resolve renders "":
|
|
7641
7689
|
* omitted from env and metadata, blank as identifier or name.
|
|
@@ -7732,6 +7780,21 @@ export interface AuthMethod {
|
|
|
7732
7780
|
* provider's own names, like Scopes. Empty = only what was asked for.
|
|
7733
7781
|
*/
|
|
7734
7782
|
required_scopes?: string[];
|
|
7783
|
+
/**
|
|
7784
|
+
* ScopeParams are authorize params sent when a scope is asked for, by
|
|
7785
|
+
* that scope (Discord's bot: the permissions the bot gets in the server
|
|
7786
|
+
* it is added to). They override ExtraAuthorizeParams.
|
|
7787
|
+
*/
|
|
7788
|
+
scope_params?: {
|
|
7789
|
+
[key: string]: {
|
|
7790
|
+
[key: string]: string;
|
|
7791
|
+
};
|
|
7792
|
+
};
|
|
7793
|
+
/**
|
|
7794
|
+
* Bot is the provider's bot user, installed into the signed-in
|
|
7795
|
+
* workspace by the same authorize (Slack). Nil: none.
|
|
7796
|
+
*/
|
|
7797
|
+
bot?: AuthMethodBot;
|
|
7735
7798
|
/**
|
|
7736
7799
|
* IncrementalAddScopes: re-authorizing for more scopes asks only for
|
|
7737
7800
|
* the new ones (plus RequiredScopes), and the provider returns a token
|
|
@@ -8621,6 +8684,34 @@ export declare const InterruptReasonWait: InterruptReason;
|
|
|
8621
8684
|
* answer in time refuses it for the sandbox. Meta is EgressLoginAskMeta.
|
|
8622
8685
|
*/
|
|
8623
8686
|
export declare const InterruptReasonEgressLogin: InterruptReason;
|
|
8687
|
+
/**
|
|
8688
|
+
* InterruptReasonSubagent is a run's reason, never an interrupt's: the run
|
|
8689
|
+
* waits on a question one of its sub-agents' runs asked, shown on its chat
|
|
8690
|
+
* through an interrupt surface (INF-1291). The run's interrupt meta is
|
|
8691
|
+
* SubagentWaitMeta.
|
|
8692
|
+
*/
|
|
8693
|
+
export declare const InterruptReasonSubagent: InterruptReason;
|
|
8694
|
+
/**
|
|
8695
|
+
* InterruptOrigin is the sub-agent an interrupt came from, on an interrupt
|
|
8696
|
+
* a sub-agent's run raised: what an ancestor chat's card names.
|
|
8697
|
+
*/
|
|
8698
|
+
export interface InterruptOrigin {
|
|
8699
|
+
/**
|
|
8700
|
+
* AgentID and AgentRef ("namespace/name") are the sub-agent's.
|
|
8701
|
+
*/
|
|
8702
|
+
agent_id?: string;
|
|
8703
|
+
agent_ref?: string;
|
|
8704
|
+
/**
|
|
8705
|
+
* ToolInvocationID is the call in the parent chat that delegated to
|
|
8706
|
+
* the sub-agent's chat (the interrupt's ChatID).
|
|
8707
|
+
*/
|
|
8708
|
+
tool_invocation_id?: string;
|
|
8709
|
+
/**
|
|
8710
|
+
* Depth is the sub-agent chat's depth (Chat.Depth), 1 under a chat a
|
|
8711
|
+
* person started.
|
|
8712
|
+
*/
|
|
8713
|
+
depth: number;
|
|
8714
|
+
}
|
|
8624
8715
|
/**
|
|
8625
8716
|
* MergeStrategy defines how a delta field should be merged by consumers.
|
|
8626
8717
|
*/
|
|
@@ -9939,7 +10030,7 @@ export declare const AgentRunStateRejected: AgentRunState;
|
|
|
9939
10030
|
* InterruptReason describes why an agent run is in an interrupted state.
|
|
9940
10031
|
* Aligns with AG-UI interrupt outcome reasons.
|
|
9941
10032
|
*/
|
|
9942
|
-
export type InterruptReason = "wait" | "egress_login" | "tool_approval" | "client_tool" | "widget" | "auth" | "confirmation" | "hook_gate" | "input";
|
|
10033
|
+
export type InterruptReason = "wait" | "egress_login" | "subagent" | "tool_approval" | "client_tool" | "widget" | "auth" | "confirmation" | "hook_gate" | "input";
|
|
9943
10034
|
export declare const InterruptReasonToolApproval: InterruptReason;
|
|
9944
10035
|
export declare const InterruptReasonClientTool: InterruptReason;
|
|
9945
10036
|
export declare const InterruptReasonWidget: InterruptReason;
|
package/dist/types.js
CHANGED
|
@@ -1582,6 +1582,13 @@ export const InterruptReasonWait = "wait";
|
|
|
1582
1582
|
* answer in time refuses it for the sandbox. Meta is EgressLoginAskMeta.
|
|
1583
1583
|
*/
|
|
1584
1584
|
export const InterruptReasonEgressLogin = "egress_login";
|
|
1585
|
+
/**
|
|
1586
|
+
* InterruptReasonSubagent is a run's reason, never an interrupt's: the run
|
|
1587
|
+
* waits on a question one of its sub-agents' runs asked, shown on its chat
|
|
1588
|
+
* through an interrupt surface (INF-1291). The run's interrupt meta is
|
|
1589
|
+
* SubagentWaitMeta.
|
|
1590
|
+
*/
|
|
1591
|
+
export const InterruptReasonSubagent = "subagent";
|
|
1585
1592
|
export const MergeStrategyConcat = "concat";
|
|
1586
1593
|
export const MergeStrategyReplace = "replace";
|
|
1587
1594
|
export const MergeStrategyIndexed = "indexed";
|