@inferencesh/sdk 0.8.1 → 0.8.2

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.
@@ -37,7 +37,7 @@ export interface LiveHandlers {
37
37
  onClear?: (field: string) => void;
38
38
  /**
39
39
  * The app refused a frame, or has something to report, and goes on:
40
- * `{"$error": {field, message}}`. Apps on SDKs before 0.7.2 / 0.9.2 send it
40
+ * `{"$error": {field, message}}`. Apps on older SDKs (inferencesh before 0.10.1, @inferencesh/app before 0.1.16) send it
41
41
  * as `{"error": ...}`, which counts too unless the output has an `error`
42
42
  * field. Without this handler it stays in the patch.
43
43
  */
package/dist/types.d.ts CHANGED
@@ -845,7 +845,7 @@ export declare const ScopeSecretsRead: Scope;
845
845
  export declare const ScopeSecretsWrite: Scope;
846
846
  /**
847
847
  * Action-level scopes for credentials (connected accounts, vaults,
848
- * custom providers, MCP servers).
848
+ * auth schemes, MCP servers).
849
849
  */
850
850
  export declare const ScopeCredentialsRead: Scope;
851
851
  /**
@@ -1752,10 +1752,10 @@ export interface CredentialConfigDTO {
1752
1752
  has_managed: boolean;
1753
1753
  grant?: CredentialGrant;
1754
1754
  /**
1755
- * CustomProviderID is set when the provider is one the team defined
1756
- * itself (models.CustomProvider), so the UI can offer edit and remove.
1755
+ * AuthSchemeID is set when the provider is one the team defined
1756
+ * itself (models.AuthScheme), so the UI can offer edit and remove.
1757
1757
  */
1758
- custom_provider_id?: string;
1758
+ auth_scheme_id?: string;
1759
1759
  credential?: CredentialDTO;
1760
1760
  }
1761
1761
  /**
@@ -4902,6 +4902,13 @@ export interface DeltaEvent {
4902
4902
  * Empty when the task has no execution edge (a plain app run).
4903
4903
  */
4904
4904
  resource_id?: string;
4905
+ /**
4906
+ * End, when set, carries no delta: it is the id of the task or agent run
4907
+ * whose deltas on this key are complete. It follows the last of them on
4908
+ * the same key, so an in-process follower reads to it instead of guessing
4909
+ * when the stream is over. The stream layer never sends it to clients.
4910
+ */
4911
+ end?: string;
4905
4912
  }
4906
4913
  /**
4907
4914
  * LLMDeltaEvent is a typed alias for backward compatibility.
package/dist/types.js CHANGED
@@ -199,7 +199,7 @@ export const ScopeSecretsRead = "secrets:read";
199
199
  export const ScopeSecretsWrite = "secrets:write";
200
200
  /**
201
201
  * Action-level scopes for credentials (connected accounts, vaults,
202
- * custom providers, MCP servers).
202
+ * auth schemes, MCP servers).
203
203
  */
204
204
  export const ScopeCredentialsRead = "credentials:read";
205
205
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Official JavaScript/TypeScript SDK for inference.sh - Run AI models with a simple API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",