@inferencesh/sdk 0.41.2 → 0.41.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/CHANGELOG.md +5 -0
- package/dist/types.d.ts +57 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.41.3] - 2026-11-17
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `AuthMethodBot` and `AuthMethod.bot`, `AuthMethod.scope_params`: a provider's bot installed in the signed-in workspace (Slack), its scopes and token (api-v1581).
|
|
14
|
+
|
|
10
15
|
## [0.41.2] - 2026-11-17
|
|
11
16
|
|
|
12
17
|
### Added
|
package/dist/types.d.ts
CHANGED
|
@@ -7606,6 +7606,47 @@ export interface AuthMethodLookup {
|
|
|
7606
7606
|
[key: string]: string;
|
|
7607
7607
|
};
|
|
7608
7608
|
}
|
|
7609
|
+
/**
|
|
7610
|
+
* AuthMethodBot is the provider's bot user, installed by the sign-in into
|
|
7611
|
+
* the workspace the person signs in to (Slack's bot scopes on the same
|
|
7612
|
+
* authorize as the user's). The token it yields is that workspace's bot,
|
|
7613
|
+
* the login's own: stored with the login (its bot_token secret), never the
|
|
7614
|
+
* OAuth app's, and read in env as {{bot_token}}.
|
|
7615
|
+
*/
|
|
7616
|
+
export interface AuthMethodBot {
|
|
7617
|
+
/**
|
|
7618
|
+
* ScopeParam is the authorize param the bot's scopes travel in, apart
|
|
7619
|
+
* from the login's (Slack: "scope", next to user_scope). Bot scopes are
|
|
7620
|
+
* named with BotScopePrefix wherever scopes are (Scopes, a capability,
|
|
7621
|
+
* a request) and sent here without it.
|
|
7622
|
+
*/
|
|
7623
|
+
scope_param: string;
|
|
7624
|
+
/**
|
|
7625
|
+
* Scopes are the bot's scopes, each named with BotScopePrefix: what
|
|
7626
|
+
* installing the bot asks for (a capability names them; a login made
|
|
7627
|
+
* without them is asked for them when a run needs its bot). Not asked
|
|
7628
|
+
* for by default: a first connect stays read-only.
|
|
7629
|
+
*/
|
|
7630
|
+
scopes?: string[];
|
|
7631
|
+
/**
|
|
7632
|
+
* Token is the bot's token in the token exchange's document
|
|
7633
|
+
* ({{token.bot.access_token}}); blank when the exchange installed no
|
|
7634
|
+
* bot.
|
|
7635
|
+
*/
|
|
7636
|
+
token: string;
|
|
7637
|
+
/**
|
|
7638
|
+
* GrantedScopes is the bot scopes the exchange granted, in the same
|
|
7639
|
+
* document, comma or space separated; the login holds each with
|
|
7640
|
+
* BotScopePrefix. Empty: the bot scopes asked for, once a token came.
|
|
7641
|
+
*/
|
|
7642
|
+
granted_scopes?: string;
|
|
7643
|
+
/**
|
|
7644
|
+
* Hosts are the exact hosts the bot token is sent to: every env key
|
|
7645
|
+
* reading {{bot_token}} is bound to them (authmethod.HostBinder), so a
|
|
7646
|
+
* run behind the egress gateway holds a placeholder. Empty: env as is.
|
|
7647
|
+
*/
|
|
7648
|
+
hosts?: string[];
|
|
7649
|
+
}
|
|
7609
7650
|
/**
|
|
7610
7651
|
* AuthMethodCapability is something an app can ask for from this provider,
|
|
7611
7652
|
* satisfied by a connection holding its scopes. Scopes are the provider's
|
|
@@ -7636,6 +7677,7 @@ export interface AuthMethodCapability {
|
|
|
7636
7677
|
* is the userinfo lookup
|
|
7637
7678
|
* expires_at, metadata.*, app.* env only: the token's expiry (RFC 3339),
|
|
7638
7679
|
* the stored metadata, the app's extra keys
|
|
7680
|
+
* bot_token env only: the bot the login installed (Bot)
|
|
7639
7681
|
* Array elements are indexed: {{resources.0.id}}. {{a|b}} takes the first
|
|
7640
7682
|
* path present. A template none of whose placeholders resolve renders "":
|
|
7641
7683
|
* omitted from env and metadata, blank as identifier or name.
|
|
@@ -7732,6 +7774,21 @@ export interface AuthMethod {
|
|
|
7732
7774
|
* provider's own names, like Scopes. Empty = only what was asked for.
|
|
7733
7775
|
*/
|
|
7734
7776
|
required_scopes?: string[];
|
|
7777
|
+
/**
|
|
7778
|
+
* ScopeParams are authorize params sent when a scope is asked for, by
|
|
7779
|
+
* that scope (Discord's bot: the permissions the bot gets in the server
|
|
7780
|
+
* it is added to). They override ExtraAuthorizeParams.
|
|
7781
|
+
*/
|
|
7782
|
+
scope_params?: {
|
|
7783
|
+
[key: string]: {
|
|
7784
|
+
[key: string]: string;
|
|
7785
|
+
};
|
|
7786
|
+
};
|
|
7787
|
+
/**
|
|
7788
|
+
* Bot is the provider's bot user, installed into the signed-in
|
|
7789
|
+
* workspace by the same authorize (Slack). Nil: none.
|
|
7790
|
+
*/
|
|
7791
|
+
bot?: AuthMethodBot;
|
|
7735
7792
|
/**
|
|
7736
7793
|
* IncrementalAddScopes: re-authorizing for more scopes asks only for
|
|
7737
7794
|
* the new ones (plus RequiredScopes), and the provider returns a token
|