@opencode/client 2.1.3 → 2.2.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/dist/chunks/service-timing-6mq2wh8y.js +33 -0
- package/dist/chunks/{service-probe-y2etg5bs.js → service-timing-7f0py9js.js} +2 -2
- package/dist/chunks/{service-probe-ezt8t3fk.js → service-timing-8we1dz3p.js} +6 -2
- package/dist/chunks/{service-probe-8ye1ye6f.js → service-timing-8ye1ye6f.js} +2 -2
- package/dist/chunks/{service-probe-6vp15eh6.js → service-timing-ab9bm97w.js} +1 -1
- package/dist/chunks/service-timing-b80wmp2t.js +30 -0
- package/dist/chunks/{service-probe-61wt4y9h.js → service-timing-cyxwqteg.js} +111 -75
- package/dist/chunks/{service-probe-8bbb028w.js → service-timing-gecjxyvt.js} +5 -1
- package/dist/chunks/{service-probe-xwk4fryp.js → service-timing-jpd9ebw3.js} +17 -17
- package/dist/chunks/{service-probe-nwcpakzx.js → service-timing-js54wxgp.js} +2 -2
- package/dist/chunks/{service-probe-v1n69e13.js → service-timing-knyqkv17.js} +8 -2
- package/dist/chunks/{service-probe-9j12j8xw.js → service-timing-myz4ngx9.js} +5 -5
- package/dist/chunks/{service-probe-5r97ebd4.js → service-timing-rxd7awy0.js} +59 -22
- package/dist/chunks/{service-probe-ryy6kscr.js → service-timing-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-probe-g22sa7qz.js → service-timing-wcsbjfhx.js} +129 -36
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +104 -14
- package/dist/effect/api.d.ts +1 -0
- package/dist/effect/client.d.ts +901 -885
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +515 -503
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.d.ts +1 -1
- package/dist/effect/service.js +11 -11
- package/dist/mcp.d.ts +44 -0
- package/dist/mcp.js +110 -0
- package/dist/promise/api.d.ts +1 -0
- package/dist/promise/client.d.ts +16 -5
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +17 -6
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +17 -9
- package/dist/promise/generated/types.d.ts +1165 -3509
- package/dist/promise/generated/types.js +10 -2
- package/dist/promise/index.d.ts +1 -0
- package/dist/promise/index.js +21 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.d.ts +2 -2
- package/dist/promise/service.js +12 -11
- package/dist/pty-handoff.js +4 -1
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.d.ts +7 -2
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.d.ts +11 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.js +16 -12
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.d.ts +10 -0
- package/dist/solid/retention.js +6 -0
- package/dist/solid/usage.js +1 -1
- package/package.json +15 -8
- package/dist/chunks/service-probe-9p0yrv34.js +0 -30
- /package/dist/chunks/{service-probe-6mptkzbc.js → service-timing-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-probe-8s2anffy.js → service-timing-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-probe-9rqn6x4v.js → service-timing-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-probe-gne7h7mq.js → service-timing-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-probe-m2eywc8w.js → service-timing-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-probe-qav6mfdz.js → service-timing-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-probe-sxt88q69.js → service-timing-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-probe-ve4aws36.js → service-timing-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-probe-vmytr4q8.js → service-timing-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-probe-vyas3vgt.js → service-timing-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-probe-xgnj2w4v.js → service-timing-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-probe-ydhz1zrh.js → service-timing-ydhz1zrh.js} +0 -0
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -25,24 +25,27 @@ import type { Instruction } from "@opencode/schema/instruction";
|
|
|
25
25
|
import type { Snapshot } from "@opencode/schema/snapshot";
|
|
26
26
|
import type { Shell } from "@opencode/schema/shell";
|
|
27
27
|
import type { Form } from "@opencode/schema/form";
|
|
28
|
+
import type { Generate } from "@opencode/schema/generate";
|
|
28
29
|
import type { Provider } from "@opencode/schema/provider";
|
|
29
30
|
import type { Integration } from "@opencode/schema/integration";
|
|
30
31
|
import type { Mcp } from "@opencode/schema/mcp";
|
|
32
|
+
import type { PtyTicket } from "@opencode/schema/pty-ticket";
|
|
31
33
|
import type { Credential } from "@opencode/schema/credential";
|
|
32
34
|
import type { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
33
35
|
import type { FileSystem } from "@opencode/schema/filesystem";
|
|
34
36
|
import type { Command } from "@opencode/schema/command";
|
|
35
37
|
import type { OpenCodeEvent } from "@opencode/protocol/groups/event";
|
|
36
38
|
import type { Pty } from "@opencode/schema/pty";
|
|
37
|
-
import type { PtyTicket } from "@opencode/schema/pty-ticket";
|
|
38
39
|
import type { Reference } from "@opencode/schema/reference";
|
|
39
40
|
import type { Worktree } from "@opencode/schema/worktree";
|
|
40
41
|
import type { Vcs } from "@opencode/schema/vcs";
|
|
41
42
|
import type { WebSearch } from "@opencode/schema/websearch";
|
|
43
|
+
import type { UsageLimits } from "@opencode/schema/usage-limits";
|
|
42
44
|
import type { Config } from "@opencode/schema/config";
|
|
43
45
|
export type ServerInfoOutput = {
|
|
44
46
|
readonly version: string;
|
|
45
47
|
readonly pid: number;
|
|
48
|
+
readonly hostname?: string | undefined;
|
|
46
49
|
readonly urls: ReadonlyArray<string>;
|
|
47
50
|
readonly paths: {
|
|
48
51
|
readonly tmp: string;
|
|
@@ -117,6 +120,17 @@ export type PluginListOutput = {
|
|
|
117
120
|
readonly data: ReadonlyArray<Plugin.Info>;
|
|
118
121
|
};
|
|
119
122
|
export type PluginListOperation<E = never> = (input?: PluginListInput) => Effect.Effect<PluginListOutput, E>;
|
|
123
|
+
export type PluginGuiInput = {
|
|
124
|
+
readonly location?: {
|
|
125
|
+
readonly directory?: string | undefined;
|
|
126
|
+
} | undefined;
|
|
127
|
+
readonly id: Plugin.ID;
|
|
128
|
+
};
|
|
129
|
+
export type PluginGuiOutput = {
|
|
130
|
+
readonly location: Location.PublicRef;
|
|
131
|
+
readonly data: Plugin.GuiBundle;
|
|
132
|
+
};
|
|
133
|
+
export type PluginGuiOperation<E = never> = (input: PluginGuiInput) => Effect.Effect<PluginGuiOutput, E>;
|
|
120
134
|
export type PluginCheckInput = {
|
|
121
135
|
readonly location?: {
|
|
122
136
|
readonly directory?: string | undefined;
|
|
@@ -138,6 +152,7 @@ export type PluginUpdateOutput = void;
|
|
|
138
152
|
export type PluginUpdateOperation<E = never> = (input: PluginUpdateInput) => Effect.Effect<PluginUpdateOutput, E>;
|
|
139
153
|
export interface PluginApi<E = never> {
|
|
140
154
|
readonly list: PluginListOperation<E>;
|
|
155
|
+
readonly gui: PluginGuiOperation<E>;
|
|
141
156
|
readonly check: PluginCheckOperation<E>;
|
|
142
157
|
readonly update: PluginUpdateOperation<E>;
|
|
143
158
|
}
|
|
@@ -1768,6 +1783,7 @@ export type ModelListInput = {
|
|
|
1768
1783
|
readonly location?: {
|
|
1769
1784
|
readonly directory?: string | undefined;
|
|
1770
1785
|
} | undefined;
|
|
1786
|
+
readonly types?: ReadonlyArray<Model.Type> | undefined;
|
|
1771
1787
|
};
|
|
1772
1788
|
export type ModelListOutput = {
|
|
1773
1789
|
readonly location: Location.PublicRef;
|
|
@@ -1796,8 +1812,27 @@ export type GenerateTextOutput = {
|
|
|
1796
1812
|
readonly text: string;
|
|
1797
1813
|
};
|
|
1798
1814
|
export type GenerateTextOperation<E = never> = (input: GenerateTextInput) => Effect.Effect<GenerateTextOutput, E>;
|
|
1815
|
+
export type GenerateImageInput = {
|
|
1816
|
+
readonly model: Model.Ref;
|
|
1817
|
+
readonly prompt: string;
|
|
1818
|
+
readonly images?: ReadonlyArray<Generate.File> | undefined;
|
|
1819
|
+
readonly n?: number | undefined;
|
|
1820
|
+
readonly aspect?: Generate.ImageAspect | undefined;
|
|
1821
|
+
readonly resolution?: Generate.ImageResolution | undefined;
|
|
1822
|
+
};
|
|
1823
|
+
export type GenerateImageOutput = Generate.ImageResult;
|
|
1824
|
+
export type GenerateImageOperation<E = never> = (input: GenerateImageInput) => Effect.Effect<GenerateImageOutput, E>;
|
|
1825
|
+
export type GenerateDecisionsInput = {
|
|
1826
|
+
readonly model: Model.Ref;
|
|
1827
|
+
readonly input: ReadonlyArray<Generate.DecisionPart>;
|
|
1828
|
+
readonly questions: ReadonlyArray<Generate.DecisionQuestion>;
|
|
1829
|
+
};
|
|
1830
|
+
export type GenerateDecisionsOutput = Generate.DecisionResult;
|
|
1831
|
+
export type GenerateDecisionsOperation<E = never> = (input: GenerateDecisionsInput) => Effect.Effect<GenerateDecisionsOutput, E>;
|
|
1799
1832
|
export interface GenerateApi<E = never> {
|
|
1800
1833
|
readonly text: GenerateTextOperation<E>;
|
|
1834
|
+
readonly image: GenerateImageOperation<E>;
|
|
1835
|
+
readonly decisions: GenerateDecisionsOperation<E>;
|
|
1801
1836
|
}
|
|
1802
1837
|
export type VoiceModelsOutput = {
|
|
1803
1838
|
readonly models: ReadonlyArray<{
|
|
@@ -1805,8 +1840,6 @@ export type VoiceModelsOutput = {
|
|
|
1805
1840
|
readonly provider: string;
|
|
1806
1841
|
readonly transports: ReadonlyArray<"webrtc" | "websocket">;
|
|
1807
1842
|
readonly available: boolean;
|
|
1808
|
-
readonly integration?: string | undefined;
|
|
1809
|
-
readonly workspace?: string | undefined;
|
|
1810
1843
|
}>;
|
|
1811
1844
|
readonly default?: string | undefined;
|
|
1812
1845
|
};
|
|
@@ -1834,21 +1867,11 @@ export type VoiceSessionOutput = {
|
|
|
1834
1867
|
readonly token: string;
|
|
1835
1868
|
readonly expiresAt: number;
|
|
1836
1869
|
};
|
|
1837
|
-
readonly session?: {
|
|
1838
|
-
readonly id: string;
|
|
1839
|
-
} | undefined;
|
|
1840
1870
|
};
|
|
1841
1871
|
export type VoiceSessionOperation<E = never> = (input: VoiceSessionInput) => Effect.Effect<VoiceSessionOutput, E>;
|
|
1842
|
-
export type VoiceInstructionsInput = {
|
|
1843
|
-
readonly sessionID: string;
|
|
1844
|
-
readonly instructions: string;
|
|
1845
|
-
};
|
|
1846
|
-
export type VoiceInstructionsOutput = void;
|
|
1847
|
-
export type VoiceInstructionsOperation<E = never> = (input: VoiceInstructionsInput) => Effect.Effect<VoiceInstructionsOutput, E>;
|
|
1848
1872
|
export interface VoiceApi<E = never> {
|
|
1849
1873
|
readonly models: VoiceModelsOperation<E>;
|
|
1850
1874
|
readonly session: VoiceSessionOperation<E>;
|
|
1851
|
-
readonly instructions: VoiceInstructionsOperation<E>;
|
|
1852
1875
|
}
|
|
1853
1876
|
export type ProviderListInput = {
|
|
1854
1877
|
readonly location?: {
|
|
@@ -2080,6 +2103,18 @@ export type McpResourceCatalogOutput = {
|
|
|
2080
2103
|
readonly data: Mcp.ResourceCatalog;
|
|
2081
2104
|
};
|
|
2082
2105
|
export type McpResourceCatalogOperation<E = never> = (input?: McpResourceCatalogInput) => Effect.Effect<McpResourceCatalogOutput, E>;
|
|
2106
|
+
export type McpClientTokenInput = {
|
|
2107
|
+
readonly location?: {
|
|
2108
|
+
readonly directory?: string | undefined;
|
|
2109
|
+
} | undefined;
|
|
2110
|
+
readonly name: string;
|
|
2111
|
+
readonly "x-opencode-ticket"?: string | undefined;
|
|
2112
|
+
};
|
|
2113
|
+
export type McpClientTokenOutput = {
|
|
2114
|
+
readonly location: Location.PublicRef;
|
|
2115
|
+
readonly data: PtyTicket.ConnectToken;
|
|
2116
|
+
};
|
|
2117
|
+
export type McpClientTokenOperation<E = never> = (input: McpClientTokenInput) => Effect.Effect<McpClientTokenOutput, E>;
|
|
2083
2118
|
export interface McpApi<E = never> {
|
|
2084
2119
|
readonly list: McpListOperation<E>;
|
|
2085
2120
|
readonly add: McpAddOperation<E>;
|
|
@@ -2089,6 +2124,9 @@ export interface McpApi<E = never> {
|
|
|
2089
2124
|
readonly resource: {
|
|
2090
2125
|
readonly catalog: McpResourceCatalogOperation<E>;
|
|
2091
2126
|
};
|
|
2127
|
+
readonly client: {
|
|
2128
|
+
readonly token: McpClientTokenOperation<E>;
|
|
2129
|
+
};
|
|
2092
2130
|
}
|
|
2093
2131
|
export type CredentialListOutput = ReadonlyArray<Credential.Entry>;
|
|
2094
2132
|
export type CredentialListOperation<E = never> = () => Effect.Effect<CredentialListOutput, E>;
|
|
@@ -2256,9 +2294,27 @@ export type FileFindOutput = {
|
|
|
2256
2294
|
readonly data: ReadonlyArray<FileSystem.Entry>;
|
|
2257
2295
|
};
|
|
2258
2296
|
export type FileFindOperation<E = never> = (input: FileFindInput) => Effect.Effect<FileFindOutput, E>;
|
|
2297
|
+
export type FileWatchInput = {
|
|
2298
|
+
readonly location?: {
|
|
2299
|
+
readonly directory?: string | undefined;
|
|
2300
|
+
} | undefined;
|
|
2301
|
+
readonly path: string;
|
|
2302
|
+
};
|
|
2303
|
+
export type FileWatchOutput = void;
|
|
2304
|
+
export type FileWatchOperation<E = never> = (input: FileWatchInput) => Effect.Effect<FileWatchOutput, E>;
|
|
2305
|
+
export type FileUnwatchInput = {
|
|
2306
|
+
readonly location?: {
|
|
2307
|
+
readonly directory?: string | undefined;
|
|
2308
|
+
} | undefined;
|
|
2309
|
+
readonly path: string;
|
|
2310
|
+
};
|
|
2311
|
+
export type FileUnwatchOutput = void;
|
|
2312
|
+
export type FileUnwatchOperation<E = never> = (input: FileUnwatchInput) => Effect.Effect<FileUnwatchOutput, E>;
|
|
2259
2313
|
export interface FileApi<E = never> {
|
|
2260
2314
|
readonly list: FileListOperation<E>;
|
|
2261
2315
|
readonly find: FileFindOperation<E>;
|
|
2316
|
+
readonly watch: FileWatchOperation<E>;
|
|
2317
|
+
readonly unwatch: FileUnwatchOperation<E>;
|
|
2262
2318
|
}
|
|
2263
2319
|
export type CommandListInput = {
|
|
2264
2320
|
readonly location?: {
|
|
@@ -2301,8 +2357,11 @@ export type RpcCallOperation<E = never> = (input: RpcCallInput) => Effect.Effect
|
|
|
2301
2357
|
export interface RpcApi<E = never> {
|
|
2302
2358
|
readonly call: RpcCallOperation<E>;
|
|
2303
2359
|
}
|
|
2360
|
+
export type EventSubscribeInput = {
|
|
2361
|
+
readonly types?: ReadonlyArray<"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "shell.created" | "shell.exited" | "shell.deleted" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | `${"rpc."}${string}`> | undefined;
|
|
2362
|
+
};
|
|
2304
2363
|
export type EventSubscribeOutput = OpenCodeEvent;
|
|
2305
|
-
export type EventSubscribeOperation<E = never> = () => Stream.Stream<EventSubscribeOutput, E>;
|
|
2364
|
+
export type EventSubscribeOperation<E = never> = (input?: EventSubscribeInput) => Stream.Stream<EventSubscribeOutput, E>;
|
|
2306
2365
|
export interface EventApi<E = never> {
|
|
2307
2366
|
readonly subscribe: EventSubscribeOperation<E>;
|
|
2308
2367
|
}
|
|
@@ -2762,6 +2821,7 @@ export type VcsDiffInput = {
|
|
|
2762
2821
|
readonly mode: Vcs.Mode;
|
|
2763
2822
|
readonly base?: string | undefined;
|
|
2764
2823
|
readonly context?: number | undefined;
|
|
2824
|
+
readonly untracked?: Vcs.Untracked | undefined;
|
|
2765
2825
|
};
|
|
2766
2826
|
export type VcsDiffOutput = {
|
|
2767
2827
|
readonly location: Location.PublicRef;
|
|
@@ -2778,6 +2838,21 @@ export interface VcsApi<E = never> {
|
|
|
2778
2838
|
};
|
|
2779
2839
|
readonly diff: VcsDiffOperation<E>;
|
|
2780
2840
|
}
|
|
2841
|
+
export type DebugHeapDumpInput = {
|
|
2842
|
+
readonly directory?: string | undefined;
|
|
2843
|
+
};
|
|
2844
|
+
export type DebugHeapDumpOutput = {
|
|
2845
|
+
readonly path: string;
|
|
2846
|
+
readonly pid: number;
|
|
2847
|
+
readonly memory: {
|
|
2848
|
+
readonly rss: number;
|
|
2849
|
+
readonly heapTotal: number;
|
|
2850
|
+
readonly heapUsed: number;
|
|
2851
|
+
readonly external: number;
|
|
2852
|
+
readonly arrayBuffers: number;
|
|
2853
|
+
};
|
|
2854
|
+
};
|
|
2855
|
+
export type DebugHeapDumpOperation<E = never> = (input?: DebugHeapDumpInput) => Effect.Effect<DebugHeapDumpOutput, E>;
|
|
2781
2856
|
export type DebugLocationListOutput = ReadonlyArray<Location.PublicRef>;
|
|
2782
2857
|
export type DebugLocationListOperation<E = never> = () => Effect.Effect<DebugLocationListOutput, E>;
|
|
2783
2858
|
export type DebugLocationEvictInput = {
|
|
@@ -2788,6 +2863,7 @@ export type DebugLocationEvictInput = {
|
|
|
2788
2863
|
export type DebugLocationEvictOutput = void;
|
|
2789
2864
|
export type DebugLocationEvictOperation<E = never> = (input?: DebugLocationEvictInput) => Effect.Effect<DebugLocationEvictOutput, E>;
|
|
2790
2865
|
export interface DebugApi<E = never> {
|
|
2866
|
+
readonly heapDump: DebugHeapDumpOperation<E>;
|
|
2791
2867
|
readonly location: {
|
|
2792
2868
|
readonly list: DebugLocationListOperation<E>;
|
|
2793
2869
|
readonly evict: DebugLocationEvictOperation<E>;
|
|
@@ -2838,6 +2914,19 @@ export interface WebsearchApi<E = never> {
|
|
|
2838
2914
|
readonly providers: WebsearchProvidersOperation<E>;
|
|
2839
2915
|
readonly query: WebsearchQueryOperation<E>;
|
|
2840
2916
|
}
|
|
2917
|
+
export type UsageLimitsInput = {
|
|
2918
|
+
readonly location?: {
|
|
2919
|
+
readonly directory?: string | undefined;
|
|
2920
|
+
} | undefined;
|
|
2921
|
+
};
|
|
2922
|
+
export type UsageLimitsOutput = {
|
|
2923
|
+
readonly location: Location.PublicRef;
|
|
2924
|
+
readonly data: UsageLimits.Info | null;
|
|
2925
|
+
};
|
|
2926
|
+
export type UsageLimitsOperation<E = never> = (input?: UsageLimitsInput) => Effect.Effect<UsageLimitsOutput, E>;
|
|
2927
|
+
export interface UsageApi<E = never> {
|
|
2928
|
+
readonly limits: UsageLimitsOperation<E>;
|
|
2929
|
+
}
|
|
2841
2930
|
export type ConfigGetInput = {
|
|
2842
2931
|
readonly location?: {
|
|
2843
2932
|
readonly directory?: string | undefined;
|
|
@@ -2892,5 +2981,6 @@ export interface AppApi<E = never> {
|
|
|
2892
2981
|
readonly debug: DebugApi<E>;
|
|
2893
2982
|
readonly migration: MigrationApi<E>;
|
|
2894
2983
|
readonly websearch: WebsearchApi<E>;
|
|
2984
|
+
readonly usage: UsageApi<E>;
|
|
2895
2985
|
readonly config: ConfigApi<E>;
|
|
2896
2986
|
}
|
package/dist/effect/api.d.ts
CHANGED