@opencode-ai/client 0.0.0-next-15075 → 0.0.0-next-15077
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/dist/effect/api/api.d.ts +7 -0
- package/dist/effect/generated/client.d.ts +37 -0
- package/dist/effect/generated/client.js +2 -1
- package/dist/promise/generated/client.d.ts +2 -1
- package/dist/promise/generated/client.js +8 -0
- package/dist/promise/generated/types.d.ts +48 -0
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -398,8 +398,15 @@ export type Endpoint10_0Input = {
|
|
|
398
398
|
};
|
|
399
399
|
export type Endpoint10_0Output = EffectValue<ReturnType<RawClient["server.mcp"]["mcp.list"]>>;
|
|
400
400
|
export type ServerMcpListOperation<E = never> = (input?: Endpoint10_0Input) => Effect.Effect<Endpoint10_0Output, E>;
|
|
401
|
+
type Endpoint10_1Request = Parameters<RawClient["server.mcp"]["mcp.resource.catalog"]>[0];
|
|
402
|
+
export type Endpoint10_1Input = {
|
|
403
|
+
readonly location?: Endpoint10_1Request["query"]["location"];
|
|
404
|
+
};
|
|
405
|
+
export type Endpoint10_1Output = EffectValue<ReturnType<RawClient["server.mcp"]["mcp.resource.catalog"]>>;
|
|
406
|
+
export type ServerMcpCatalogOperation<E = never> = (input?: Endpoint10_1Input) => Effect.Effect<Endpoint10_1Output, E>;
|
|
401
407
|
export interface ServerMcpApi<E = never> {
|
|
402
408
|
readonly list: ServerMcpListOperation<E>;
|
|
409
|
+
readonly catalog: ServerMcpCatalogOperation<E>;
|
|
403
410
|
}
|
|
404
411
|
type Endpoint11_0Request = Parameters<RawClient["server.credential"]["credential.update"]>[0];
|
|
405
412
|
export type Endpoint11_0Input = {
|
|
@@ -241,6 +241,10 @@ type Endpoint10_0Request = Parameters<RawClient["server.mcp"]["mcp.list"]>[0];
|
|
|
241
241
|
type Endpoint10_0Input = {
|
|
242
242
|
readonly location?: Endpoint10_0Request["query"]["location"];
|
|
243
243
|
};
|
|
244
|
+
type Endpoint10_1Request = Parameters<RawClient["server.mcp"]["mcp.resource.catalog"]>[0];
|
|
245
|
+
type Endpoint10_1Input = {
|
|
246
|
+
readonly location?: Endpoint10_1Request["query"]["location"];
|
|
247
|
+
};
|
|
244
248
|
type Endpoint11_0Request = Parameters<RawClient["server.credential"]["credential.update"]>[0];
|
|
245
249
|
type Endpoint11_0Input = {
|
|
246
250
|
readonly credentialID: Endpoint11_0Request["params"]["credentialID"];
|
|
@@ -2951,6 +2955,25 @@ export declare const make: (options?: {
|
|
|
2951
2955
|
readonly integrationID?: (string & import("effect/Brand").Brand<"Integration.ID">) | undefined;
|
|
2952
2956
|
}[];
|
|
2953
2957
|
}, import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
2958
|
+
catalog: (input?: Endpoint10_1Input) => Effect.Effect<{
|
|
2959
|
+
readonly location: import("@opencode-ai/schema/location").Info;
|
|
2960
|
+
readonly data: {
|
|
2961
|
+
readonly resources: readonly {
|
|
2962
|
+
readonly server: string;
|
|
2963
|
+
readonly name: string;
|
|
2964
|
+
readonly uri: string;
|
|
2965
|
+
readonly description?: string | undefined;
|
|
2966
|
+
readonly mimeType?: string | undefined;
|
|
2967
|
+
}[];
|
|
2968
|
+
readonly templates: readonly {
|
|
2969
|
+
readonly server: string;
|
|
2970
|
+
readonly name: string;
|
|
2971
|
+
readonly uriTemplate: string;
|
|
2972
|
+
readonly description?: string | undefined;
|
|
2973
|
+
readonly mimeType?: string | undefined;
|
|
2974
|
+
}[];
|
|
2975
|
+
};
|
|
2976
|
+
}, import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
2954
2977
|
};
|
|
2955
2978
|
credential: {
|
|
2956
2979
|
update: (input: Endpoint11_0Input) => Effect.Effect<void, import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
@@ -5730,6 +5753,20 @@ export declare const make: (options?: {
|
|
|
5730
5753
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
5731
5754
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
5732
5755
|
} | undefined;
|
|
5756
|
+
} | {
|
|
5757
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5758
|
+
readonly created: import("effect/DateTime").Utc;
|
|
5759
|
+
readonly type: "mcp.resources.changed";
|
|
5760
|
+
readonly data: {
|
|
5761
|
+
readonly server: string;
|
|
5762
|
+
};
|
|
5763
|
+
readonly metadata?: {
|
|
5764
|
+
readonly [x: string]: unknown;
|
|
5765
|
+
} | undefined;
|
|
5766
|
+
readonly location?: {
|
|
5767
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
5768
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
5769
|
+
} | undefined;
|
|
5733
5770
|
} | {
|
|
5734
5771
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5735
5772
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -177,7 +177,8 @@ const adaptGroup9 = (raw) => ({
|
|
|
177
177
|
attemptCancel: Endpoint9_6(raw),
|
|
178
178
|
});
|
|
179
179
|
const Endpoint10_0 = (raw) => (input) => raw["mcp.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
180
|
-
const
|
|
180
|
+
const Endpoint10_1 = (raw) => (input) => raw["mcp.resource.catalog"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
181
|
+
const adaptGroup10 = (raw) => ({ list: Endpoint10_0(raw), catalog: Endpoint10_1(raw) });
|
|
181
182
|
const Endpoint11_0 = (raw) => (input) => raw["credential.update"]({
|
|
182
183
|
params: { credentialID: input["credentialID"] },
|
|
183
184
|
query: { location: input["location"] },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HealthGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionListOutput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectOauthInput, IntegrationConnectOauthOutput, IntegrationAttemptStatusInput, IntegrationAttemptStatusOutput, IntegrationAttemptCompleteInput, IntegrationAttemptCancelInput, ServerMcpListInput, ServerMcpListOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectCurrentOutput, ProjectDirectoriesInput, ProjectDirectoriesOutput, FormListRequestsInput, FormListRequestsOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionListRequestsInput, PermissionListRequestsOutput, PermissionListSavedInput, PermissionRemoveSavedInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionListRequestsInput, QuestionListRequestsOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyCreateOutput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationOutput, DebugEvictLocationInput } from "./types";
|
|
1
|
+
import type { HealthGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionListOutput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectOauthInput, IntegrationConnectOauthOutput, IntegrationAttemptStatusInput, IntegrationAttemptStatusOutput, IntegrationAttemptCompleteInput, IntegrationAttemptCancelInput, ServerMcpListInput, ServerMcpListOutput, ServerMcpCatalogInput, ServerMcpCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectCurrentOutput, ProjectDirectoriesInput, ProjectDirectoriesOutput, FormListRequestsInput, FormListRequestsOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionListRequestsInput, PermissionListRequestsOutput, PermissionListSavedInput, PermissionRemoveSavedInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionListRequestsInput, QuestionListRequestsOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyCreateOutput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationOutput, DebugEvictLocationInput } from "./types";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -915,6 +915,7 @@ export declare function make(options: ClientOptions): {
|
|
|
915
915
|
};
|
|
916
916
|
"server.mcp": {
|
|
917
917
|
list: (input?: ServerMcpListInput, requestOptions?: RequestOptions) => Promise<ServerMcpListOutput>;
|
|
918
|
+
catalog: (input?: ServerMcpCatalogInput, requestOptions?: RequestOptions) => Promise<ServerMcpCatalogOutput>;
|
|
918
919
|
};
|
|
919
920
|
credential: {
|
|
920
921
|
update: (input: CredentialUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
@@ -526,6 +526,14 @@ export function make(options) {
|
|
|
526
526
|
declaredStatuses: [401, 400],
|
|
527
527
|
empty: false,
|
|
528
528
|
}, requestOptions),
|
|
529
|
+
catalog: (input, requestOptions) => request({
|
|
530
|
+
method: "GET",
|
|
531
|
+
path: `/api/mcp/resource`,
|
|
532
|
+
query: { location: input?.["location"] },
|
|
533
|
+
successStatus: 200,
|
|
534
|
+
declaredStatuses: [401, 400],
|
|
535
|
+
empty: false,
|
|
536
|
+
}, requestOptions),
|
|
529
537
|
},
|
|
530
538
|
credential: {
|
|
531
539
|
update: (input, requestOptions) => request({
|
|
@@ -3765,6 +3765,40 @@ export type ServerMcpListOutput = {
|
|
|
3765
3765
|
readonly integrationID?: string;
|
|
3766
3766
|
}>;
|
|
3767
3767
|
};
|
|
3768
|
+
export type ServerMcpCatalogInput = {
|
|
3769
|
+
readonly location?: {
|
|
3770
|
+
readonly location?: {
|
|
3771
|
+
readonly directory?: string | undefined;
|
|
3772
|
+
readonly workspace?: string | undefined;
|
|
3773
|
+
} | undefined;
|
|
3774
|
+
}["location"];
|
|
3775
|
+
};
|
|
3776
|
+
export type ServerMcpCatalogOutput = {
|
|
3777
|
+
readonly location: {
|
|
3778
|
+
readonly directory: string;
|
|
3779
|
+
readonly workspaceID?: string;
|
|
3780
|
+
readonly project: {
|
|
3781
|
+
readonly id: string;
|
|
3782
|
+
readonly directory: string;
|
|
3783
|
+
};
|
|
3784
|
+
};
|
|
3785
|
+
readonly data: {
|
|
3786
|
+
readonly resources: ReadonlyArray<{
|
|
3787
|
+
readonly server: string;
|
|
3788
|
+
readonly name: string;
|
|
3789
|
+
readonly uri: string;
|
|
3790
|
+
readonly description?: string;
|
|
3791
|
+
readonly mimeType?: string;
|
|
3792
|
+
}>;
|
|
3793
|
+
readonly templates: ReadonlyArray<{
|
|
3794
|
+
readonly server: string;
|
|
3795
|
+
readonly name: string;
|
|
3796
|
+
readonly uriTemplate: string;
|
|
3797
|
+
readonly description?: string;
|
|
3798
|
+
readonly mimeType?: string;
|
|
3799
|
+
}>;
|
|
3800
|
+
};
|
|
3801
|
+
};
|
|
3768
3802
|
export type CredentialUpdateInput = {
|
|
3769
3803
|
readonly credentialID: {
|
|
3770
3804
|
readonly credentialID: string;
|
|
@@ -7744,6 +7778,20 @@ export type EventSubscribeOutput = {
|
|
|
7744
7778
|
readonly data: {
|
|
7745
7779
|
readonly server: string;
|
|
7746
7780
|
};
|
|
7781
|
+
} | {
|
|
7782
|
+
readonly id: string;
|
|
7783
|
+
readonly created: number;
|
|
7784
|
+
readonly metadata?: {
|
|
7785
|
+
readonly [x: string]: unknown;
|
|
7786
|
+
};
|
|
7787
|
+
readonly type: "mcp.resources.changed";
|
|
7788
|
+
readonly location?: {
|
|
7789
|
+
readonly directory: string;
|
|
7790
|
+
readonly workspaceID?: string;
|
|
7791
|
+
};
|
|
7792
|
+
readonly data: {
|
|
7793
|
+
readonly server: string;
|
|
7794
|
+
};
|
|
7747
7795
|
} | {
|
|
7748
7796
|
readonly id: string;
|
|
7749
7797
|
readonly created: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-15077",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"typecheck": "tsgo --noEmit"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
45
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
44
|
+
"@opencode-ai/schema": "0.0.0-next-15077",
|
|
45
|
+
"@opencode-ai/protocol": "0.0.0-next-15077"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"effect": "4.0.0-beta.83"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
57
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
57
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-15077",
|
|
58
58
|
"@tsconfig/bun": "1.0.9",
|
|
59
59
|
"@types/bun": "1.3.13",
|
|
60
60
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|