@inferencesh/sdk 0.7.1 → 0.8.0
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 +6 -0
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -6
- package/dist/tool-builder.d.ts +0 -2
- package/dist/tool-builder.js +2 -3
- package/dist/types.d.ts +2 -12
- package/dist/types.js +2 -2
- package/package.json +1 -1
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.8.0] - 2026-09-24
|
|
11
|
+
|
|
12
|
+
### Removed
|
|
13
|
+
|
|
14
|
+
- The integration-named aliases: `IntegrationsAPI`, `client.integrations`, the `Integration*` type aliases, and `httpTool().auth({ integration, integrationId })`. Use `CredentialsAPI`, `client.credentials`, the `Credential*` types and `auth({ credential, credentialId })`.
|
|
15
|
+
|
|
10
16
|
## [0.7.0] - 2026-09-23
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/dist/index.d.ts
CHANGED
|
@@ -21,8 +21,6 @@ export { TeamsAPI, type MeResponse } from './api/teams';
|
|
|
21
21
|
export { SecretsAPI } from './api/secrets';
|
|
22
22
|
export { ApiKeysAPI } from './api/api-keys';
|
|
23
23
|
export { CredentialsAPI } from './api/credentials';
|
|
24
|
-
/** @deprecated renamed CredentialsAPI */
|
|
25
|
-
export { CredentialsAPI as IntegrationsAPI } from './api/credentials';
|
|
26
24
|
export { SearchAPI } from './api/search';
|
|
27
25
|
export { ProjectsAPI } from './api/projects';
|
|
28
26
|
export { MCPServersAPI } from './api/mcp-servers';
|
|
@@ -39,7 +37,6 @@ export { parseStatus, isTerminalStatus, isChatBusy, pendingApprovals } from './u
|
|
|
39
37
|
export type { PendingApproval } from './utils';
|
|
40
38
|
export * from './types';
|
|
41
39
|
export type { TaskDTO as Task } from './types';
|
|
42
|
-
export type { CredentialDTO as IntegrationDTO, CredentialConfigDTO as IntegrationConfigDTO, CredentialConnectRequest as IntegrationConnectRequest, CredentialConnectResponse as IntegrationConnectResponse, CredentialCompleteOAuthRequest as IntegrationCompleteOAuthRequest, CredentialRequirement as IntegrationRequirement, CredentialStatus as IntegrationStatus, CredentialScope as IntegrationScope, CredentialGrant as IntegrationGrant, CredentialType as IntegrationAuthType, CredentialProvider as IntegrationProvider, } from './types';
|
|
43
40
|
import { HttpClient, type HttpClientConfig } from './http/client';
|
|
44
41
|
import { TasksAPI, RunOptions } from './api/tasks';
|
|
45
42
|
import { SocketsAPI } from './api/sockets';
|
|
@@ -119,8 +116,6 @@ export declare class Inference {
|
|
|
119
116
|
readonly projects: ProjectsAPI;
|
|
120
117
|
readonly mcpServers: MCPServersAPI;
|
|
121
118
|
readonly sockets: SocketsAPI;
|
|
122
|
-
/** @deprecated renamed `credentials` */
|
|
123
|
-
get integrations(): CredentialsAPI;
|
|
124
119
|
constructor(config: InferenceConfig | HttpClientConfig);
|
|
125
120
|
/** @internal */
|
|
126
121
|
_request<T>(method: 'get' | 'post' | 'put' | 'delete', endpoint: string, options?: {
|
package/dist/index.js
CHANGED
|
@@ -23,8 +23,6 @@ export { TeamsAPI } from './api/teams';
|
|
|
23
23
|
export { SecretsAPI } from './api/secrets';
|
|
24
24
|
export { ApiKeysAPI } from './api/api-keys';
|
|
25
25
|
export { CredentialsAPI } from './api/credentials';
|
|
26
|
-
/** @deprecated renamed CredentialsAPI */
|
|
27
|
-
export { CredentialsAPI as IntegrationsAPI } from './api/credentials';
|
|
28
26
|
export { SearchAPI } from './api/search';
|
|
29
27
|
export { ProjectsAPI } from './api/projects';
|
|
30
28
|
export { MCPServersAPI } from './api/mcp-servers';
|
|
@@ -74,10 +72,6 @@ import { MCPServersAPI } from './api/mcp-servers';
|
|
|
74
72
|
* ```
|
|
75
73
|
*/
|
|
76
74
|
export class Inference {
|
|
77
|
-
/** @deprecated renamed `credentials` */
|
|
78
|
-
get integrations() {
|
|
79
|
-
return this.credentials;
|
|
80
|
-
}
|
|
81
75
|
constructor(config) {
|
|
82
76
|
// Handle both simple config and full HttpClientConfig
|
|
83
77
|
this.http = new HttpClient({
|
package/dist/tool-builder.d.ts
CHANGED
|
@@ -94,8 +94,6 @@ declare class HTTPToolBuilder extends ToolBuilder {
|
|
|
94
94
|
auth(config: {
|
|
95
95
|
credential?: string;
|
|
96
96
|
credentialId?: string;
|
|
97
|
-
/** @deprecated renamed `credential` */ integration?: string;
|
|
98
|
-
/** @deprecated renamed `credentialId` */ integrationId?: string;
|
|
99
97
|
apiKey?: string;
|
|
100
98
|
bearer?: string;
|
|
101
99
|
header?: string;
|
package/dist/tool-builder.js
CHANGED
|
@@ -189,9 +189,8 @@ class HTTPToolBuilder extends ToolBuilder {
|
|
|
189
189
|
* send a vault secret.
|
|
190
190
|
*/
|
|
191
191
|
auth(config) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
this.authConfig = { type: ToolAuthTypeCredential, provider, credential_id: config.credentialId ?? config.integrationId };
|
|
192
|
+
if (config.credential) {
|
|
193
|
+
this.authConfig = { type: ToolAuthTypeCredential, provider: config.credential, credential_id: config.credentialId };
|
|
195
194
|
}
|
|
196
195
|
else if (config.apiKey) {
|
|
197
196
|
this.authConfig = { type: ToolAuthTypeAPIKey, secret: config.apiKey, header: config.header || 'X-API-Key' };
|
package/dist/types.d.ts
CHANGED
|
@@ -127,11 +127,6 @@ export interface ToolAuthConfig {
|
|
|
127
127
|
type: ToolAuthType;
|
|
128
128
|
provider?: string;
|
|
129
129
|
credential_id?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Deprecated: the credential id used to be called integration_id. Read
|
|
132
|
-
* through CredentialRef(); never written.
|
|
133
|
-
*/
|
|
134
|
-
integration_id?: string;
|
|
135
130
|
secret?: string;
|
|
136
131
|
header?: string;
|
|
137
132
|
}
|
|
@@ -147,11 +142,6 @@ export interface HTTPToolConfig {
|
|
|
147
142
|
}
|
|
148
143
|
export interface MCPToolConfig {
|
|
149
144
|
credential_id?: string;
|
|
150
|
-
/**
|
|
151
|
-
* Deprecated: the credential id used to be called integration_id. Read
|
|
152
|
-
* through CredentialRef(); never written.
|
|
153
|
-
*/
|
|
154
|
-
integration_id?: string;
|
|
155
145
|
tool_name: string;
|
|
156
146
|
}
|
|
157
147
|
export interface AppToolConfigDTO {
|
|
@@ -855,7 +845,7 @@ export declare const ScopeSecretsRead: Scope;
|
|
|
855
845
|
export declare const ScopeSecretsWrite: Scope;
|
|
856
846
|
/**
|
|
857
847
|
* Action-level scopes for credentials (connected accounts, vaults,
|
|
858
|
-
* custom providers, MCP servers).
|
|
848
|
+
* custom providers, MCP servers).
|
|
859
849
|
*/
|
|
860
850
|
export declare const ScopeCredentialsRead: Scope;
|
|
861
851
|
/**
|
|
@@ -4443,7 +4433,7 @@ export type SecretScope = string;
|
|
|
4443
4433
|
*/
|
|
4444
4434
|
export declare const SecretScopeTeam: SecretScope;
|
|
4445
4435
|
/**
|
|
4446
|
-
* SecretScopeInternal is
|
|
4436
|
+
* SecretScopeInternal is a credential-managed secret, hidden from user lists
|
|
4447
4437
|
*/
|
|
4448
4438
|
export declare const SecretScopeInternal: SecretScope;
|
|
4449
4439
|
/**
|
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
|
+
* custom providers, MCP servers).
|
|
203
203
|
*/
|
|
204
204
|
export const ScopeCredentialsRead = "credentials:read";
|
|
205
205
|
/**
|
|
@@ -608,7 +608,7 @@ export const ResponseFormatTypeJSONSchema = "json_schema";
|
|
|
608
608
|
*/
|
|
609
609
|
export const SecretScopeTeam = "team";
|
|
610
610
|
/**
|
|
611
|
-
* SecretScopeInternal is
|
|
611
|
+
* SecretScopeInternal is a credential-managed secret, hidden from user lists
|
|
612
612
|
*/
|
|
613
613
|
export const SecretScopeInternal = "internal";
|
|
614
614
|
/**
|