@opencode/client 2.3.0 → 2.3.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/dist/chunks/{contract-yk5evh6f.js → service-3v8v7cjx.js} +42 -28
- package/dist/chunks/{contract-sdjh9vmn.js → service-6hqrj29e.js} +5 -3
- package/dist/chunks/{contract-y2etg5bs.js → service-7f0py9js.js} +2 -2
- package/dist/chunks/{contract-8ye1ye6f.js → service-8ye1ye6f.js} +2 -2
- package/dist/chunks/{contract-15p82y03.js → service-anregfhs.js} +5 -5
- package/dist/chunks/service-az3r2kmr.js +30 -0
- package/dist/chunks/{contract-gecjxyvt.js → service-gecjxyvt.js} +1 -1
- package/dist/chunks/{contract-nwcpakzx.js → service-js54wxgp.js} +2 -2
- package/dist/chunks/{contract-tztyfz1b.js → service-mqnb71k6.js} +1 -1
- package/dist/chunks/{contract-2n8q20a3.js → service-n22dhmav.js} +17 -17
- package/dist/chunks/{contract-qdgaygb4.js → service-nmmc7qpz.js} +68 -32
- package/dist/chunks/{contract-ryy6kscr.js → service-ryy6kscr.js} +1 -1
- package/dist/chunks/{contract-ec62es4n.js → service-th5q8fjm.js} +2 -2
- package/dist/chunks/{contract-xqwq6bgr.js → service-xafd70ys.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +60 -38
- package/dist/effect/client.d.ts +11 -239
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +12 -240
- 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.js +6 -6
- package/dist/promise/client.d.ts +14 -7
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +15 -8
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +17 -13
- package/dist/promise/generated/types.d.ts +209 -135
- package/dist/promise/generated/types.js +8 -4
- package/dist/promise/index.js +22 -18
- package/dist/promise/media.d.ts +14 -7
- package/dist/promise/media.js +1 -1
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +4 -4
- 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.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +10 -10
- package/dist/solid/index.js +14 -14
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/contract-b5ykzypt.js +0 -30
- /package/dist/chunks/{contract-3eaz3m83.js → service-3eaz3m83.js} +0 -0
- /package/dist/chunks/{contract-60xe5cbf.js → service-60xe5cbf.js} +0 -0
- /package/dist/chunks/{contract-6mptkzbc.js → service-6mptkzbc.js} +0 -0
- /package/dist/chunks/{contract-6mq2wh8y.js → service-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{contract-6r38tsk5.js → service-6r38tsk5.js} +0 -0
- /package/dist/chunks/{contract-8s2anffy.js → service-8s2anffy.js} +0 -0
- /package/dist/chunks/{contract-9rqn6x4v.js → service-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{contract-mwrzahmf.js → service-mwrzahmf.js} +0 -0
- /package/dist/chunks/{contract-qav6mfdz.js → service-qav6mfdz.js} +0 -0
- /package/dist/chunks/{contract-sxt88q69.js → service-sxt88q69.js} +0 -0
- /package/dist/chunks/{contract-ve4aws36.js → service-ve4aws36.js} +0 -0
- /package/dist/chunks/{contract-vyas3vgt.js → service-vyas3vgt.js} +0 -0
- /package/dist/chunks/{contract-xgnj2w4v.js → service-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{contract-ydhz1zrh.js → service-ydhz1zrh.js} +0 -0
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ import type { FileSystem } from "@opencode/schema/filesystem";
|
|
|
36
36
|
import type { Command } from "@opencode/schema/command";
|
|
37
37
|
import type { OpenCodeEvent } from "@opencode/protocol/groups/event";
|
|
38
38
|
import type { Pty } from "@opencode/schema/pty";
|
|
39
|
-
import type {
|
|
39
|
+
import type { Automation } from "@opencode/schema/automation";
|
|
40
40
|
import type { Artifact } from "@opencode/schema/artifact";
|
|
41
41
|
import type { Job } from "@opencode/schema/job";
|
|
42
42
|
import type { Reference } from "@opencode/schema/reference";
|
|
@@ -1881,6 +1881,24 @@ export type ExperimentalGenerateImageInput = {
|
|
|
1881
1881
|
};
|
|
1882
1882
|
export type ExperimentalGenerateImageOutput = Generate.ImageResult;
|
|
1883
1883
|
export type ExperimentalGenerateImageOperation<E = never> = (input: ExperimentalGenerateImageInput) => Effect.Effect<ExperimentalGenerateImageOutput, E>;
|
|
1884
|
+
export type ExperimentalGenerateVideoCreateInput = {
|
|
1885
|
+
readonly model: Model.Ref;
|
|
1886
|
+
readonly prompt: string;
|
|
1887
|
+
readonly start?: Generate.ImageFile | undefined;
|
|
1888
|
+
readonly end?: Generate.ImageFile | undefined;
|
|
1889
|
+
readonly references?: ReadonlyArray<Generate.File> | undefined;
|
|
1890
|
+
readonly duration?: number | undefined;
|
|
1891
|
+
readonly aspect?: Generate.VideoAspect | undefined;
|
|
1892
|
+
readonly resolution?: Generate.VideoResolution | undefined;
|
|
1893
|
+
readonly sound?: boolean | undefined;
|
|
1894
|
+
};
|
|
1895
|
+
export type ExperimentalGenerateVideoCreateOutput = Generate.VideoRunning;
|
|
1896
|
+
export type ExperimentalGenerateVideoCreateOperation<E = never> = (input: ExperimentalGenerateVideoCreateInput) => Effect.Effect<ExperimentalGenerateVideoCreateOutput, E>;
|
|
1897
|
+
export type ExperimentalGenerateVideoGetInput = {
|
|
1898
|
+
readonly id: Generate.VideoID;
|
|
1899
|
+
};
|
|
1900
|
+
export type ExperimentalGenerateVideoGetOutput = Generate.VideoJob;
|
|
1901
|
+
export type ExperimentalGenerateVideoGetOperation<E = never> = (input: ExperimentalGenerateVideoGetInput) => Effect.Effect<ExperimentalGenerateVideoGetOutput, E>;
|
|
1884
1902
|
export type ExperimentalGenerateDecisionsInput = {
|
|
1885
1903
|
readonly model: Model.Ref;
|
|
1886
1904
|
readonly input: ReadonlyArray<Generate.DecisionPart>;
|
|
@@ -1891,6 +1909,10 @@ export type ExperimentalGenerateDecisionsOperation<E = never> = (input: Experime
|
|
|
1891
1909
|
export interface ExperimentalGenerateApi<E = never> {
|
|
1892
1910
|
readonly text: ExperimentalGenerateTextOperation<E>;
|
|
1893
1911
|
readonly image: ExperimentalGenerateImageOperation<E>;
|
|
1912
|
+
readonly video: {
|
|
1913
|
+
readonly create: ExperimentalGenerateVideoCreateOperation<E>;
|
|
1914
|
+
readonly get: ExperimentalGenerateVideoGetOperation<E>;
|
|
1915
|
+
};
|
|
1894
1916
|
readonly decisions: ExperimentalGenerateDecisionsOperation<E>;
|
|
1895
1917
|
}
|
|
1896
1918
|
export type ExperimentalVoiceModelsOutput = {
|
|
@@ -2728,42 +2750,42 @@ export type ExperimentalPersistentPtyConnectTokenInput = {
|
|
|
2728
2750
|
};
|
|
2729
2751
|
export type ExperimentalPersistentPtyConnectTokenOutput = PtyTicket.ConnectToken;
|
|
2730
2752
|
export type ExperimentalPersistentPtyConnectTokenOperation<E = never> = (input: ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<ExperimentalPersistentPtyConnectTokenOutput, E>;
|
|
2731
|
-
export type
|
|
2732
|
-
readonly sessionID
|
|
2733
|
-
readonly
|
|
2734
|
-
readonly
|
|
2735
|
-
readonly
|
|
2736
|
-
readonly
|
|
2737
|
-
readonly
|
|
2738
|
-
readonly prompt: string;
|
|
2753
|
+
export type ExperimentalAutomationCreateInput = {
|
|
2754
|
+
readonly sessionID?: Session.ID | undefined;
|
|
2755
|
+
readonly directory?: string | undefined;
|
|
2756
|
+
readonly name: string;
|
|
2757
|
+
readonly trigger: Automation.Trigger;
|
|
2758
|
+
readonly action: Automation.ActionInput;
|
|
2759
|
+
readonly expires?: string | undefined;
|
|
2739
2760
|
};
|
|
2740
|
-
export type
|
|
2741
|
-
export type
|
|
2742
|
-
export type
|
|
2743
|
-
readonly sessionID
|
|
2761
|
+
export type ExperimentalAutomationCreateOutput = Automation.Info;
|
|
2762
|
+
export type ExperimentalAutomationCreateOperation<E = never> = (input: ExperimentalAutomationCreateInput) => Effect.Effect<ExperimentalAutomationCreateOutput, E>;
|
|
2763
|
+
export type ExperimentalAutomationListInput = {
|
|
2764
|
+
readonly sessionID?: Session.ID | undefined;
|
|
2765
|
+
readonly directory?: string | undefined;
|
|
2744
2766
|
};
|
|
2745
|
-
export type
|
|
2746
|
-
export type
|
|
2747
|
-
export type
|
|
2748
|
-
readonly
|
|
2767
|
+
export type ExperimentalAutomationListOutput = ReadonlyArray<Automation.Info>;
|
|
2768
|
+
export type ExperimentalAutomationListOperation<E = never> = (input?: ExperimentalAutomationListInput) => Effect.Effect<ExperimentalAutomationListOutput, E>;
|
|
2769
|
+
export type ExperimentalAutomationGetInput = {
|
|
2770
|
+
readonly automationID: Automation.ID;
|
|
2749
2771
|
};
|
|
2750
|
-
export type
|
|
2751
|
-
export type
|
|
2752
|
-
export type
|
|
2753
|
-
readonly
|
|
2772
|
+
export type ExperimentalAutomationGetOutput = Automation.Info;
|
|
2773
|
+
export type ExperimentalAutomationGetOperation<E = never> = (input: ExperimentalAutomationGetInput) => Effect.Effect<ExperimentalAutomationGetOutput, E>;
|
|
2774
|
+
export type ExperimentalAutomationPauseInput = {
|
|
2775
|
+
readonly automationID: Automation.ID;
|
|
2754
2776
|
};
|
|
2755
|
-
export type
|
|
2756
|
-
export type
|
|
2757
|
-
export type
|
|
2758
|
-
readonly
|
|
2777
|
+
export type ExperimentalAutomationPauseOutput = Automation.Info;
|
|
2778
|
+
export type ExperimentalAutomationPauseOperation<E = never> = (input: ExperimentalAutomationPauseInput) => Effect.Effect<ExperimentalAutomationPauseOutput, E>;
|
|
2779
|
+
export type ExperimentalAutomationResumeInput = {
|
|
2780
|
+
readonly automationID: Automation.ID;
|
|
2759
2781
|
};
|
|
2760
|
-
export type
|
|
2761
|
-
export type
|
|
2762
|
-
export type
|
|
2763
|
-
readonly
|
|
2782
|
+
export type ExperimentalAutomationResumeOutput = Automation.Info;
|
|
2783
|
+
export type ExperimentalAutomationResumeOperation<E = never> = (input: ExperimentalAutomationResumeInput) => Effect.Effect<ExperimentalAutomationResumeOutput, E>;
|
|
2784
|
+
export type ExperimentalAutomationDeleteInput = {
|
|
2785
|
+
readonly automationID: Automation.ID;
|
|
2764
2786
|
};
|
|
2765
|
-
export type
|
|
2766
|
-
export type
|
|
2787
|
+
export type ExperimentalAutomationDeleteOutput = void;
|
|
2788
|
+
export type ExperimentalAutomationDeleteOperation<E = never> = (input: ExperimentalAutomationDeleteInput) => Effect.Effect<ExperimentalAutomationDeleteOutput, E>;
|
|
2767
2789
|
export type ExperimentalArtifactsProvidersInput = {
|
|
2768
2790
|
readonly location?: {
|
|
2769
2791
|
readonly directory?: string | undefined;
|
|
@@ -2860,13 +2882,13 @@ export interface ExperimentalApi<E = never> {
|
|
|
2860
2882
|
readonly remove: ExperimentalPersistentPtyRemoveOperation<E>;
|
|
2861
2883
|
readonly connectToken: ExperimentalPersistentPtyConnectTokenOperation<E>;
|
|
2862
2884
|
};
|
|
2863
|
-
readonly
|
|
2864
|
-
readonly create:
|
|
2865
|
-
readonly list:
|
|
2866
|
-
readonly get:
|
|
2867
|
-
readonly pause:
|
|
2868
|
-
readonly resume:
|
|
2869
|
-
readonly delete:
|
|
2885
|
+
readonly automation: {
|
|
2886
|
+
readonly create: ExperimentalAutomationCreateOperation<E>;
|
|
2887
|
+
readonly list: ExperimentalAutomationListOperation<E>;
|
|
2888
|
+
readonly get: ExperimentalAutomationGetOperation<E>;
|
|
2889
|
+
readonly pause: ExperimentalAutomationPauseOperation<E>;
|
|
2890
|
+
readonly resume: ExperimentalAutomationResumeOperation<E>;
|
|
2891
|
+
readonly delete: ExperimentalAutomationDeleteOperation<E>;
|
|
2870
2892
|
};
|
|
2871
2893
|
readonly artifacts: {
|
|
2872
2894
|
readonly providers: ExperimentalArtifactsProvidersOperation<E>;
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -41,245 +41,13 @@ export declare const make: (options?: {
|
|
|
41
41
|
remove: (input: import("./api.js").ExperimentalPersistentPtyRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
42
42
|
connectToken: (input: import("./api.js").ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<import("@opencode/schema/pty-ticket").ConnectToken, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
43
43
|
};
|
|
44
|
-
|
|
45
|
-
create: (input: import("./api.js").
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
readonly type: "in";
|
|
52
|
-
readonly in: string;
|
|
53
|
-
} | {
|
|
54
|
-
readonly tz?: string | undefined;
|
|
55
|
-
readonly type: "at";
|
|
56
|
-
readonly at: string;
|
|
57
|
-
} | {
|
|
58
|
-
readonly tz?: string | undefined;
|
|
59
|
-
readonly type: "every";
|
|
60
|
-
readonly every: string;
|
|
61
|
-
} | {
|
|
62
|
-
readonly tz?: string | undefined;
|
|
63
|
-
readonly type: "cron";
|
|
64
|
-
readonly cron: string;
|
|
65
|
-
};
|
|
66
|
-
readonly tz: string;
|
|
67
|
-
readonly if?: {
|
|
68
|
-
readonly type: "code";
|
|
69
|
-
readonly code: string;
|
|
70
|
-
} | {
|
|
71
|
-
readonly type: "shell";
|
|
72
|
-
readonly run: string;
|
|
73
|
-
readonly is?: string | undefined;
|
|
74
|
-
readonly matches?: string | undefined;
|
|
75
|
-
readonly changes?: boolean | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
readonly until?: {
|
|
78
|
-
readonly type: "code";
|
|
79
|
-
readonly code: string;
|
|
80
|
-
} | {
|
|
81
|
-
readonly type: "shell";
|
|
82
|
-
readonly run: string;
|
|
83
|
-
readonly is?: string | undefined;
|
|
84
|
-
readonly matches?: string | undefined;
|
|
85
|
-
readonly changes?: boolean | undefined;
|
|
86
|
-
} | undefined;
|
|
87
|
-
readonly action: {
|
|
88
|
-
readonly type: "prompt";
|
|
89
|
-
readonly prompt: string;
|
|
90
|
-
};
|
|
91
|
-
readonly status: "active" | "done" | "paused";
|
|
92
|
-
readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
|
|
93
|
-
readonly endsAt?: import("effect/DateTime").Utc | undefined;
|
|
94
|
-
readonly remainingRuns?: number | undefined;
|
|
95
|
-
readonly runCount: number;
|
|
96
|
-
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
97
|
-
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
98
|
-
readonly lastOutput?: string | undefined;
|
|
99
|
-
readonly time: {
|
|
100
|
-
readonly created: import("effect/DateTime").Utc;
|
|
101
|
-
readonly updated: import("effect/DateTime").Utc;
|
|
102
|
-
};
|
|
103
|
-
}, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
104
|
-
list: (input: import("./api.js").ExperimentalScheduleListInput) => Effect.Effect<import("./api.js").ExperimentalScheduleListOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
105
|
-
get: (input: import("./api.js").ExperimentalScheduleGetInput) => Effect.Effect<{
|
|
106
|
-
readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
|
|
107
|
-
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
108
|
-
readonly name?: string | undefined;
|
|
109
|
-
readonly when: {
|
|
110
|
-
readonly tz?: string | undefined;
|
|
111
|
-
readonly type: "in";
|
|
112
|
-
readonly in: string;
|
|
113
|
-
} | {
|
|
114
|
-
readonly tz?: string | undefined;
|
|
115
|
-
readonly type: "at";
|
|
116
|
-
readonly at: string;
|
|
117
|
-
} | {
|
|
118
|
-
readonly tz?: string | undefined;
|
|
119
|
-
readonly type: "every";
|
|
120
|
-
readonly every: string;
|
|
121
|
-
} | {
|
|
122
|
-
readonly tz?: string | undefined;
|
|
123
|
-
readonly type: "cron";
|
|
124
|
-
readonly cron: string;
|
|
125
|
-
};
|
|
126
|
-
readonly tz: string;
|
|
127
|
-
readonly if?: {
|
|
128
|
-
readonly type: "code";
|
|
129
|
-
readonly code: string;
|
|
130
|
-
} | {
|
|
131
|
-
readonly type: "shell";
|
|
132
|
-
readonly run: string;
|
|
133
|
-
readonly is?: string | undefined;
|
|
134
|
-
readonly matches?: string | undefined;
|
|
135
|
-
readonly changes?: boolean | undefined;
|
|
136
|
-
} | undefined;
|
|
137
|
-
readonly until?: {
|
|
138
|
-
readonly type: "code";
|
|
139
|
-
readonly code: string;
|
|
140
|
-
} | {
|
|
141
|
-
readonly type: "shell";
|
|
142
|
-
readonly run: string;
|
|
143
|
-
readonly is?: string | undefined;
|
|
144
|
-
readonly matches?: string | undefined;
|
|
145
|
-
readonly changes?: boolean | undefined;
|
|
146
|
-
} | undefined;
|
|
147
|
-
readonly action: {
|
|
148
|
-
readonly type: "prompt";
|
|
149
|
-
readonly prompt: string;
|
|
150
|
-
};
|
|
151
|
-
readonly status: "active" | "done" | "paused";
|
|
152
|
-
readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
|
|
153
|
-
readonly endsAt?: import("effect/DateTime").Utc | undefined;
|
|
154
|
-
readonly remainingRuns?: number | undefined;
|
|
155
|
-
readonly runCount: number;
|
|
156
|
-
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
157
|
-
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
158
|
-
readonly lastOutput?: string | undefined;
|
|
159
|
-
readonly time: {
|
|
160
|
-
readonly created: import("effect/DateTime").Utc;
|
|
161
|
-
readonly updated: import("effect/DateTime").Utc;
|
|
162
|
-
};
|
|
163
|
-
}, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
164
|
-
pause: (input: import("./api.js").ExperimentalSchedulePauseInput) => Effect.Effect<{
|
|
165
|
-
readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
|
|
166
|
-
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
167
|
-
readonly name?: string | undefined;
|
|
168
|
-
readonly when: {
|
|
169
|
-
readonly tz?: string | undefined;
|
|
170
|
-
readonly type: "in";
|
|
171
|
-
readonly in: string;
|
|
172
|
-
} | {
|
|
173
|
-
readonly tz?: string | undefined;
|
|
174
|
-
readonly type: "at";
|
|
175
|
-
readonly at: string;
|
|
176
|
-
} | {
|
|
177
|
-
readonly tz?: string | undefined;
|
|
178
|
-
readonly type: "every";
|
|
179
|
-
readonly every: string;
|
|
180
|
-
} | {
|
|
181
|
-
readonly tz?: string | undefined;
|
|
182
|
-
readonly type: "cron";
|
|
183
|
-
readonly cron: string;
|
|
184
|
-
};
|
|
185
|
-
readonly tz: string;
|
|
186
|
-
readonly if?: {
|
|
187
|
-
readonly type: "code";
|
|
188
|
-
readonly code: string;
|
|
189
|
-
} | {
|
|
190
|
-
readonly type: "shell";
|
|
191
|
-
readonly run: string;
|
|
192
|
-
readonly is?: string | undefined;
|
|
193
|
-
readonly matches?: string | undefined;
|
|
194
|
-
readonly changes?: boolean | undefined;
|
|
195
|
-
} | undefined;
|
|
196
|
-
readonly until?: {
|
|
197
|
-
readonly type: "code";
|
|
198
|
-
readonly code: string;
|
|
199
|
-
} | {
|
|
200
|
-
readonly type: "shell";
|
|
201
|
-
readonly run: string;
|
|
202
|
-
readonly is?: string | undefined;
|
|
203
|
-
readonly matches?: string | undefined;
|
|
204
|
-
readonly changes?: boolean | undefined;
|
|
205
|
-
} | undefined;
|
|
206
|
-
readonly action: {
|
|
207
|
-
readonly type: "prompt";
|
|
208
|
-
readonly prompt: string;
|
|
209
|
-
};
|
|
210
|
-
readonly status: "active" | "done" | "paused";
|
|
211
|
-
readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
|
|
212
|
-
readonly endsAt?: import("effect/DateTime").Utc | undefined;
|
|
213
|
-
readonly remainingRuns?: number | undefined;
|
|
214
|
-
readonly runCount: number;
|
|
215
|
-
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
216
|
-
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
217
|
-
readonly lastOutput?: string | undefined;
|
|
218
|
-
readonly time: {
|
|
219
|
-
readonly created: import("effect/DateTime").Utc;
|
|
220
|
-
readonly updated: import("effect/DateTime").Utc;
|
|
221
|
-
};
|
|
222
|
-
}, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
223
|
-
resume: (input: import("./api.js").ExperimentalScheduleResumeInput) => Effect.Effect<{
|
|
224
|
-
readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
|
|
225
|
-
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
226
|
-
readonly name?: string | undefined;
|
|
227
|
-
readonly when: {
|
|
228
|
-
readonly tz?: string | undefined;
|
|
229
|
-
readonly type: "in";
|
|
230
|
-
readonly in: string;
|
|
231
|
-
} | {
|
|
232
|
-
readonly tz?: string | undefined;
|
|
233
|
-
readonly type: "at";
|
|
234
|
-
readonly at: string;
|
|
235
|
-
} | {
|
|
236
|
-
readonly tz?: string | undefined;
|
|
237
|
-
readonly type: "every";
|
|
238
|
-
readonly every: string;
|
|
239
|
-
} | {
|
|
240
|
-
readonly tz?: string | undefined;
|
|
241
|
-
readonly type: "cron";
|
|
242
|
-
readonly cron: string;
|
|
243
|
-
};
|
|
244
|
-
readonly tz: string;
|
|
245
|
-
readonly if?: {
|
|
246
|
-
readonly type: "code";
|
|
247
|
-
readonly code: string;
|
|
248
|
-
} | {
|
|
249
|
-
readonly type: "shell";
|
|
250
|
-
readonly run: string;
|
|
251
|
-
readonly is?: string | undefined;
|
|
252
|
-
readonly matches?: string | undefined;
|
|
253
|
-
readonly changes?: boolean | undefined;
|
|
254
|
-
} | undefined;
|
|
255
|
-
readonly until?: {
|
|
256
|
-
readonly type: "code";
|
|
257
|
-
readonly code: string;
|
|
258
|
-
} | {
|
|
259
|
-
readonly type: "shell";
|
|
260
|
-
readonly run: string;
|
|
261
|
-
readonly is?: string | undefined;
|
|
262
|
-
readonly matches?: string | undefined;
|
|
263
|
-
readonly changes?: boolean | undefined;
|
|
264
|
-
} | undefined;
|
|
265
|
-
readonly action: {
|
|
266
|
-
readonly type: "prompt";
|
|
267
|
-
readonly prompt: string;
|
|
268
|
-
};
|
|
269
|
-
readonly status: "active" | "done" | "paused";
|
|
270
|
-
readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
|
|
271
|
-
readonly endsAt?: import("effect/DateTime").Utc | undefined;
|
|
272
|
-
readonly remainingRuns?: number | undefined;
|
|
273
|
-
readonly runCount: number;
|
|
274
|
-
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
275
|
-
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
276
|
-
readonly lastOutput?: string | undefined;
|
|
277
|
-
readonly time: {
|
|
278
|
-
readonly created: import("effect/DateTime").Utc;
|
|
279
|
-
readonly updated: import("effect/DateTime").Utc;
|
|
280
|
-
};
|
|
281
|
-
}, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
282
|
-
delete: (input: import("./api.js").ExperimentalScheduleDeleteInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
44
|
+
automation: {
|
|
45
|
+
create: (input: import("./api.js").ExperimentalAutomationCreateInput) => Effect.Effect<import("@opencode/schema/automation").Info, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
46
|
+
list: (input?: import("./api.js").ExperimentalAutomationListInput) => Effect.Effect<import("./api.js").ExperimentalAutomationListOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
47
|
+
get: (input: import("./api.js").ExperimentalAutomationGetInput) => Effect.Effect<import("@opencode/schema/automation").Info, import("@opencode/protocol/errors").AutomationNotFoundError | ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
48
|
+
pause: (input: import("./api.js").ExperimentalAutomationPauseInput) => Effect.Effect<import("@opencode/schema/automation").Info, import("@opencode/protocol/errors").AutomationNotFoundError | ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
49
|
+
resume: (input: import("./api.js").ExperimentalAutomationResumeInput) => Effect.Effect<import("@opencode/schema/automation").Info, import("@opencode/protocol/errors").AutomationNotFoundError | ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
50
|
+
delete: (input: import("./api.js").ExperimentalAutomationDeleteInput) => Effect.Effect<void, import("@opencode/protocol/errors").AutomationNotFoundError | ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
283
51
|
};
|
|
284
52
|
artifacts: {
|
|
285
53
|
providers: (input?: import("./api.js").ExperimentalArtifactsProvidersInput) => Effect.Effect<import("./api.js").ExperimentalArtifactsProvidersOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
@@ -310,6 +78,10 @@ export declare const make: (options?: {
|
|
|
310
78
|
generate: {
|
|
311
79
|
text: (input: import("./api.js").ExperimentalGenerateTextInput) => Effect.Effect<import("./api.js").ExperimentalGenerateTextOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
|
|
312
80
|
image: (input: import("./api.js").ExperimentalGenerateImageInput) => Effect.Effect<import("@opencode/schema/generate").ImageResult, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
|
|
81
|
+
video: {
|
|
82
|
+
create: (input: import("./api.js").ExperimentalGenerateVideoCreateInput) => Effect.Effect<import("@opencode/schema/generate").VideoRunning, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
|
|
83
|
+
get: (input: import("./api.js").ExperimentalGenerateVideoGetInput) => Effect.Effect<import("@opencode/schema/generate").VideoJob, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").VideoNotFoundError, never>;
|
|
84
|
+
};
|
|
313
85
|
decisions: (input: import("./api.js").ExperimentalGenerateDecisionsInput) => Effect.Effect<import("@opencode/schema/generate").DecisionResult, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
|
|
314
86
|
};
|
|
315
87
|
voice: {
|
package/dist/effect/client.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
2
|
+
make4,
|
|
3
|
+
exports_client3
|
|
4
|
+
} from "../chunks/service-n22dhmav.js";
|
|
5
|
+
import"../chunks/service-anregfhs.js";
|
|
6
|
+
import"../chunks/service-ryy6kscr.js";
|
|
7
|
+
import"../chunks/service-6mptkzbc.js";
|
|
8
|
+
import"../chunks/service-3v8v7cjx.js";
|
|
9
|
+
import"../chunks/service-7f0py9js.js";
|
|
10
|
+
import"../chunks/service-gecjxyvt.js";
|
|
11
|
+
import"../chunks/service-60xe5cbf.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
exports_client3 as OpenCode,
|
|
14
|
+
make4 as make
|
|
15
15
|
};
|