@inferencesh/sdk 0.26.0 → 0.26.1

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 CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.26.1] - 2026-10-12
11
+
12
+ ### Added
13
+
14
+ - Generated types follow the API: `AuthSchemeSpec` gains `resource`, `issuer`, `authorization_response_iss_parameter_supported`, `callback` and `profile`, and `AuthSchemeClientAuth` adds `"none"`.
15
+
10
16
  ## [0.26.0] - 2026-10-12
11
17
 
12
18
  Breaking (types only, following the API's credential model): `CredentialRequirement.provider` is now a `ProviderSeed` object (`{ name?, website? }`) instead of a string, and the requirement's `name`, `website` and `key` fields moved into it. Requirements are keyed by slug.
package/dist/types.d.ts CHANGED
@@ -5563,7 +5563,7 @@ export interface SecretField {
5563
5563
  * AuthSchemeClientAuth is how client_id/client_secret reach the token
5564
5564
  * endpoint. Most providers accept either; a few insist on one.
5565
5565
  */
5566
- export type AuthSchemeClientAuth = "basic" | "body";
5566
+ export type AuthSchemeClientAuth = "basic" | "body" | "none";
5567
5567
  /**
5568
5568
  * AuthSchemeClientAuthBasic sends them as an HTTP Basic Authorization
5569
5569
  * header (RFC 6749 §2.3.1, the default).
@@ -5573,6 +5573,14 @@ export declare const AuthSchemeClientAuthBasic: AuthSchemeClientAuth;
5573
5573
  * AuthSchemeClientAuthBody sends them as form fields in the request body.
5574
5574
  */
5575
5575
  export declare const AuthSchemeClientAuthBody: AuthSchemeClientAuth;
5576
+ /**
5577
+ * AuthSchemeClientAuthNone is a public client (RFC 8414
5578
+ * token_endpoint_auth_method "none"): the client id goes in the body,
5579
+ * there is no secret, and PKCE is what proves the client. Its OAuth app
5580
+ * is complete with a client id alone (a dynamically registered client,
5581
+ * or a Client ID Metadata Document URL).
5582
+ */
5583
+ export declare const AuthSchemeClientAuthNone: AuthSchemeClientAuth;
5576
5584
  /**
5577
5585
  * AuthSchemeTokenRequest is the token request's body encoding.
5578
5586
  */
@@ -5781,6 +5789,35 @@ export interface AuthSchemeSpec {
5781
5789
  * is asked for again.
5782
5790
  */
5783
5791
  incremental_add_scopes?: boolean;
5792
+ /**
5793
+ * Resource is the RFC 8707 resource indicator: the protected resource
5794
+ * the token is minted for (an MCP server's URL). Sent on the authorize,
5795
+ * code and refresh requests when the profile takes one. Empty = none.
5796
+ */
5797
+ resource?: string;
5798
+ /**
5799
+ * Issuer is the authorization server's RFC 8414 issuer. With
5800
+ * AuthorizationResponseIssParameterSupported, the callback's iss must
5801
+ * name it (RFC 9207, against mix-up); an issuer alone still refuses a
5802
+ * callback naming another one.
5803
+ */
5804
+ issuer?: string;
5805
+ authorization_response_iss_parameter_supported?: boolean;
5806
+ /**
5807
+ * Callback is the name of the redirect URI the app was registered with
5808
+ * (<app>/settings/secrets/oauth/<callback>). Empty = the slug. Schemes
5809
+ * whose clients are registered once for many slugs share one (an MCP
5810
+ * server's dynamically registered client and the Client ID Metadata
5811
+ * Document name the "mcp" callback); the flow's provider then comes
5812
+ * from the connect intent, never from the callback's path.
5813
+ */
5814
+ callback?: string;
5815
+ /**
5816
+ * Profile names the authorization server's deviations from the specs
5817
+ * (authprovider.AuthServerProfile: endpoints placed by app fields,
5818
+ * scopes on refresh, actionable errors, admin consent). Empty = none.
5819
+ */
5820
+ profile?: string;
5784
5821
  token_endpoint?: string;
5785
5822
  /**
5786
5823
  * RevocationEndpoint is the RFC 7009 endpoint, when the provider has
package/dist/types.js CHANGED
@@ -786,6 +786,14 @@ export const AuthSchemeClientAuthBasic = "basic";
786
786
  * AuthSchemeClientAuthBody sends them as form fields in the request body.
787
787
  */
788
788
  export const AuthSchemeClientAuthBody = "body";
789
+ /**
790
+ * AuthSchemeClientAuthNone is a public client (RFC 8414
791
+ * token_endpoint_auth_method "none"): the client id goes in the body,
792
+ * there is no secret, and PKCE is what proves the client. Its OAuth app
793
+ * is complete with a client id alone (a dynamically registered client,
794
+ * or a Client ID Metadata Document URL).
795
+ */
796
+ export const AuthSchemeClientAuthNone = "none";
789
797
  export const AuthSchemeTokenRequestForm = "form";
790
798
  export const AuthSchemeTokenRequestJSON = "json";
791
799
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
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",