@inferencesh/sdk 0.41.1 → 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 +10 -0
- package/dist/types.d.ts +63 -1
- package/dist/types.js +5 -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.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
|
+
|
|
15
|
+
## [0.41.2] - 2026-11-17
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- Team capability `rent_engines` (`TeamCapabilityRentEngines`): renting and extending cloud engines, held by owners and admins (api-v1577).
|
|
19
|
+
|
|
10
20
|
## [0.41.1] - 2026-11-15
|
|
11
21
|
|
|
12
22
|
### Removed
|
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
|
|
@@ -9671,7 +9728,7 @@ export declare const TeamKindOrg: TeamKind;
|
|
|
9671
9728
|
* TeamCapability is one thing a caller may do to a team's settings. The set is
|
|
9672
9729
|
* closed; team.Subject.Can is the only place that grants them.
|
|
9673
9730
|
*/
|
|
9674
|
-
export type TeamCapability = "edit_profile" | "manage_members" | "manage_admins" | "view_members" | "manage_keys" | "create_keys" | "manage_vault" | "view_billing" | "manage_billing" | "view_policy" | "manage_policy" | "manage_org" | "manage_sso" | "archive" | "create_team" | "create_org" | "connect_org_credential" | "connect_platform_credential";
|
|
9731
|
+
export type TeamCapability = "edit_profile" | "manage_members" | "manage_admins" | "view_members" | "manage_keys" | "create_keys" | "manage_vault" | "view_billing" | "manage_billing" | "rent_engines" | "view_policy" | "manage_policy" | "manage_org" | "manage_sso" | "archive" | "create_team" | "create_org" | "connect_org_credential" | "connect_platform_credential";
|
|
9675
9732
|
export declare const TeamCapabilityEditProfile: TeamCapability;
|
|
9676
9733
|
export declare const TeamCapabilityManageMembers: TeamCapability;
|
|
9677
9734
|
/**
|
|
@@ -9692,6 +9749,11 @@ export declare const TeamCapabilityCreateKeys: TeamCapability;
|
|
|
9692
9749
|
export declare const TeamCapabilityManageVault: TeamCapability;
|
|
9693
9750
|
export declare const TeamCapabilityViewBilling: TeamCapability;
|
|
9694
9751
|
export declare const TeamCapabilityManageBilling: TeamCapability;
|
|
9752
|
+
/**
|
|
9753
|
+
* RentEngines: renting a cloud engine, and extending a rental, which
|
|
9754
|
+
* debit the team's balance for up to the rental's whole span.
|
|
9755
|
+
*/
|
|
9756
|
+
export declare const TeamCapabilityRentEngines: TeamCapability;
|
|
9695
9757
|
export declare const TeamCapabilityViewPolicy: TeamCapability;
|
|
9696
9758
|
export declare const TeamCapabilityManagePolicy: TeamCapability;
|
|
9697
9759
|
export declare const TeamCapabilityManageOrg: TeamCapability;
|
package/dist/types.js
CHANGED
|
@@ -2269,6 +2269,11 @@ export const TeamCapabilityCreateKeys = "create_keys";
|
|
|
2269
2269
|
export const TeamCapabilityManageVault = "manage_vault";
|
|
2270
2270
|
export const TeamCapabilityViewBilling = "view_billing";
|
|
2271
2271
|
export const TeamCapabilityManageBilling = "manage_billing";
|
|
2272
|
+
/**
|
|
2273
|
+
* RentEngines: renting a cloud engine, and extending a rental, which
|
|
2274
|
+
* debit the team's balance for up to the rental's whole span.
|
|
2275
|
+
*/
|
|
2276
|
+
export const TeamCapabilityRentEngines = "rent_engines";
|
|
2272
2277
|
export const TeamCapabilityViewPolicy = "view_policy";
|
|
2273
2278
|
export const TeamCapabilityManagePolicy = "manage_policy";
|
|
2274
2279
|
export const TeamCapabilityManageOrg = "manage_org";
|