@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
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import"../../chunks/
|
|
2
|
-
import {
|
|
3
|
-
exports_client4
|
|
4
|
-
} from "../../chunks/contract-qdgaygb4.js";
|
|
5
|
-
import {
|
|
6
|
-
ClientError3
|
|
7
|
-
} from "../../chunks/contract-nwcpakzx.js";
|
|
1
|
+
import"../../chunks/service-vyas3vgt.js";
|
|
8
2
|
import {
|
|
9
3
|
isInvalidRequestError2,
|
|
10
4
|
isUnauthorizedError2,
|
|
@@ -29,11 +23,12 @@ import {
|
|
|
29
23
|
isModelNotFoundError2,
|
|
30
24
|
isUnsupportedModelError2,
|
|
31
25
|
isProviderRequestError2,
|
|
26
|
+
isForbiddenError2,
|
|
27
|
+
isVideoNotFoundError2,
|
|
32
28
|
isIntegrationNotFoundError2,
|
|
33
29
|
isIntegrationAttemptNotFoundError2,
|
|
34
30
|
isIntegrationMethodNotFoundError2,
|
|
35
31
|
isMcpServerNotFoundError2,
|
|
36
|
-
isForbiddenError2,
|
|
37
32
|
isProjectNotFoundError2,
|
|
38
33
|
isPermissionSavedNotFoundError2,
|
|
39
34
|
isPermissionNotFoundError2,
|
|
@@ -42,17 +37,26 @@ import {
|
|
|
42
37
|
isRpcInternalError2,
|
|
43
38
|
isPtyNotFoundError2,
|
|
44
39
|
isPtyFeatureUnsupportedError2,
|
|
45
|
-
|
|
40
|
+
isBlobNotFoundError2,
|
|
41
|
+
isAutomationNotFoundError2,
|
|
46
42
|
isArtifactNotFoundError2,
|
|
47
43
|
isShellNotFoundError2,
|
|
48
44
|
isWorktreeError2,
|
|
49
45
|
isVcsInitNotSupportedError2
|
|
50
|
-
} from "../../chunks/
|
|
46
|
+
} from "../../chunks/service-6hqrj29e.js";
|
|
47
|
+
import {
|
|
48
|
+
exports_client2
|
|
49
|
+
} from "../../chunks/service-nmmc7qpz.js";
|
|
50
|
+
import {
|
|
51
|
+
ClientError2
|
|
52
|
+
} from "../../chunks/service-js54wxgp.js";
|
|
51
53
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
ClientError2 as ClientError,
|
|
55
|
+
exports_client2 as OpenCode,
|
|
54
56
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
55
57
|
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
|
58
|
+
isAutomationNotFoundError2 as isAutomationNotFoundError,
|
|
59
|
+
isBlobNotFoundError2 as isBlobNotFoundError,
|
|
56
60
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
57
61
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
58
62
|
isConflictError2 as isConflictError,
|
|
@@ -81,7 +85,6 @@ export {
|
|
|
81
85
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
|
82
86
|
isRpcError2 as isRpcError,
|
|
83
87
|
isRpcInternalError2 as isRpcInternalError,
|
|
84
|
-
isScheduleNotFoundError2 as isScheduleNotFoundError,
|
|
85
88
|
isServiceUnavailableError2 as isServiceUnavailableError,
|
|
86
89
|
isSessionBusyError2 as isSessionBusyError,
|
|
87
90
|
isSessionNotFoundError2 as isSessionNotFoundError,
|
|
@@ -91,5 +94,6 @@ export {
|
|
|
91
94
|
isUnknownError2 as isUnknownError,
|
|
92
95
|
isUnsupportedModelError2 as isUnsupportedModelError,
|
|
93
96
|
isVcsInitNotSupportedError2 as isVcsInitNotSupportedError,
|
|
97
|
+
isVideoNotFoundError2 as isVideoNotFoundError,
|
|
94
98
|
isWorktreeError2 as isWorktreeError
|
|
95
99
|
};
|
|
@@ -240,7 +240,7 @@ export type SessionMessageToolStateRunning1 = {
|
|
|
240
240
|
[x: string]: JsonValue;
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
|
-
export type ModelType = "chat" | "decision" | "image" | (string & {});
|
|
243
|
+
export type ModelType = "chat" | "decision" | "image" | "video" | (string & {});
|
|
244
244
|
export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
|
|
245
245
|
export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens";
|
|
246
246
|
export type ModelCacheFormat = "anthropic" | "alibaba";
|
|
@@ -259,6 +259,9 @@ export type GenerateUsage = {
|
|
|
259
259
|
export type GenerateNative = {
|
|
260
260
|
[x: string]: JsonValue;
|
|
261
261
|
};
|
|
262
|
+
export type GenerateVideoID = string;
|
|
263
|
+
export type BlobID = string;
|
|
264
|
+
export type GenerateVideoErrorReason = "failed" | "cancelled" | "expired" | "unknown";
|
|
262
265
|
export type GeneratePredicateAnswer = {
|
|
263
266
|
type: "predicate";
|
|
264
267
|
name: string;
|
|
@@ -465,35 +468,33 @@ export type PersistentPtyHandoff = {
|
|
|
465
468
|
ticket: string;
|
|
466
469
|
expiresAt: number;
|
|
467
470
|
};
|
|
468
|
-
export type
|
|
469
|
-
export type
|
|
470
|
-
export type ScheduleWhenAt = {
|
|
471
|
+
export type AutomationID = string;
|
|
472
|
+
export type AutomationTriggerAt = {
|
|
471
473
|
type: "at";
|
|
472
474
|
at: string;
|
|
473
475
|
tz?: string;
|
|
474
476
|
};
|
|
475
|
-
export type
|
|
477
|
+
export type AutomationDuration = string;
|
|
478
|
+
export type AutomationTriggerCron = {
|
|
476
479
|
type: "cron";
|
|
477
480
|
cron: string;
|
|
478
481
|
tz?: string;
|
|
479
482
|
};
|
|
480
|
-
export type
|
|
481
|
-
type: "
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
483
|
+
export type AutomationTriggerEvent = {
|
|
484
|
+
type: "event";
|
|
485
|
+
server: string;
|
|
486
|
+
event: string;
|
|
487
|
+
args?: {
|
|
488
|
+
[x: string]: JsonValue;
|
|
489
|
+
};
|
|
486
490
|
};
|
|
487
|
-
export type
|
|
491
|
+
export type AutomationActionCode = {
|
|
488
492
|
type: "code";
|
|
489
493
|
code: string;
|
|
494
|
+
args?: JsonValue;
|
|
490
495
|
};
|
|
491
|
-
export type
|
|
492
|
-
|
|
493
|
-
prompt: string;
|
|
494
|
-
};
|
|
495
|
-
export type ScheduleStatus = "active" | "paused" | "done";
|
|
496
|
-
export type ScheduleOutcome = "fired" | "late" | "checked" | "expired" | "skipped" | "disabled" | "failed";
|
|
496
|
+
export type AutomationStatus = "active" | "paused" | "done";
|
|
497
|
+
export type AutomationOutcome = "fired" | "late" | "skipped" | "disabled" | "failed" | "expired";
|
|
497
498
|
export type ArtifactCapability = "static" | "server-code" | "sqlite" | "durable-objects";
|
|
498
499
|
export type ArtifactID = string;
|
|
499
500
|
export type ArtifactTime = {
|
|
@@ -618,6 +619,13 @@ export type PluginInfo = {
|
|
|
618
619
|
features: PluginFeatures;
|
|
619
620
|
state: PluginState;
|
|
620
621
|
};
|
|
622
|
+
export type AutomationTarget = {
|
|
623
|
+
session: SessionID;
|
|
624
|
+
subagent?: never;
|
|
625
|
+
} | {
|
|
626
|
+
subagent: AgentID;
|
|
627
|
+
session?: never;
|
|
628
|
+
};
|
|
621
629
|
export type SessionForkBoundary = {
|
|
622
630
|
type: "before";
|
|
623
631
|
messageID: SessionMessageID;
|
|
@@ -1020,6 +1028,22 @@ export type ModelCost = {
|
|
|
1020
1028
|
write: MoneyUSDPerMillionTokens;
|
|
1021
1029
|
};
|
|
1022
1030
|
};
|
|
1031
|
+
export type GenerateVideoRunning = {
|
|
1032
|
+
id: GenerateVideoID;
|
|
1033
|
+
status: "running";
|
|
1034
|
+
};
|
|
1035
|
+
export type BlobInfo = {
|
|
1036
|
+
id: BlobID;
|
|
1037
|
+
mime: string;
|
|
1038
|
+
bytes: number;
|
|
1039
|
+
expiresAt: number;
|
|
1040
|
+
};
|
|
1041
|
+
export type GenerateVideoError = {
|
|
1042
|
+
id: GenerateVideoID;
|
|
1043
|
+
status: "error";
|
|
1044
|
+
error: string;
|
|
1045
|
+
reason: GenerateVideoErrorReason;
|
|
1046
|
+
};
|
|
1023
1047
|
export type GenerateChoiceAnswer = {
|
|
1024
1048
|
type: "choice";
|
|
1025
1049
|
name: string;
|
|
@@ -1246,18 +1270,11 @@ export type FormMultiselectField1 = {
|
|
|
1246
1270
|
export type FormAnswer1 = {
|
|
1247
1271
|
[x: string]: FormValue1;
|
|
1248
1272
|
};
|
|
1249
|
-
export type
|
|
1250
|
-
type: "in";
|
|
1251
|
-
in: ScheduleDuration;
|
|
1252
|
-
tz?: string;
|
|
1253
|
-
};
|
|
1254
|
-
export type ScheduleWhenEvery = {
|
|
1273
|
+
export type AutomationTriggerEvery = {
|
|
1255
1274
|
type: "every";
|
|
1256
|
-
every:
|
|
1275
|
+
every: AutomationDuration;
|
|
1257
1276
|
tz?: string;
|
|
1258
1277
|
};
|
|
1259
|
-
export type ScheduleCondition = ScheduleConditionShell | ScheduleConditionCode;
|
|
1260
|
-
export type ScheduleAction = ScheduleActionPrompt;
|
|
1261
1278
|
export type ArtifactProvider = {
|
|
1262
1279
|
id: string;
|
|
1263
1280
|
name: string;
|
|
@@ -1304,6 +1321,14 @@ export type JobImage = {
|
|
|
1304
1321
|
path: string;
|
|
1305
1322
|
model: string;
|
|
1306
1323
|
};
|
|
1324
|
+
export type JobCodeMode = {
|
|
1325
|
+
kind: "codemode";
|
|
1326
|
+
id: string;
|
|
1327
|
+
sessionID: SessionID;
|
|
1328
|
+
status: JobStatus;
|
|
1329
|
+
title?: string;
|
|
1330
|
+
time: JobTime;
|
|
1331
|
+
};
|
|
1307
1332
|
export type VcsInfo = {
|
|
1308
1333
|
provider?: string;
|
|
1309
1334
|
branch: VcsBranch;
|
|
@@ -1455,6 +1480,11 @@ export type ModelVariant = {
|
|
|
1455
1480
|
};
|
|
1456
1481
|
};
|
|
1457
1482
|
export type PermissionRuleset = Array<PermissionRule>;
|
|
1483
|
+
export type AutomationActionPrompt = {
|
|
1484
|
+
type: "prompt";
|
|
1485
|
+
prompt: string;
|
|
1486
|
+
to: AutomationTarget;
|
|
1487
|
+
};
|
|
1458
1488
|
export type UsageLimitsBudget = {
|
|
1459
1489
|
id: string;
|
|
1460
1490
|
limit: MoneyUSD;
|
|
@@ -3031,6 +3061,14 @@ export type SessionMessageToolStateError1 = {
|
|
|
3031
3061
|
[x: string]: JsonValue;
|
|
3032
3062
|
};
|
|
3033
3063
|
};
|
|
3064
|
+
export type GenerateVideoCreateResponse = {
|
|
3065
|
+
data: GenerateVideoRunning;
|
|
3066
|
+
};
|
|
3067
|
+
export type GenerateVideoCompleted = {
|
|
3068
|
+
id: GenerateVideoID;
|
|
3069
|
+
status: "completed";
|
|
3070
|
+
blobs: Array<BlobInfo>;
|
|
3071
|
+
};
|
|
3034
3072
|
export type GenerateDecisionAnswer = GeneratePredicateAnswer | GenerateChoiceAnswer | GenerateScoreAnswer | GenerateErrorAnswer;
|
|
3035
3073
|
export type VoiceModelsResponse = {
|
|
3036
3074
|
data: {
|
|
@@ -3119,14 +3157,14 @@ export type FormReplied = {
|
|
|
3119
3157
|
answer: FormAnswer1;
|
|
3120
3158
|
};
|
|
3121
3159
|
};
|
|
3122
|
-
export type
|
|
3160
|
+
export type AutomationTrigger = AutomationTriggerAt | AutomationTriggerEvery | AutomationTriggerCron | AutomationTriggerEvent;
|
|
3123
3161
|
export type ArtifactContent = {
|
|
3124
3162
|
info: ArtifactInfo;
|
|
3125
3163
|
files: {
|
|
3126
3164
|
[x: string]: string;
|
|
3127
3165
|
};
|
|
3128
3166
|
};
|
|
3129
|
-
export type JobInfo = JobShell | JobSubagent | JobImage;
|
|
3167
|
+
export type JobInfo = JobShell | JobSubagent | JobImage | JobCodeMode;
|
|
3130
3168
|
export type SessionInboxMove = {
|
|
3131
3169
|
id: SessionMessageID;
|
|
3132
3170
|
sessionID: SessionID;
|
|
@@ -3434,6 +3472,7 @@ export type ConfigEntry = {
|
|
|
3434
3472
|
};
|
|
3435
3473
|
compaction?: {
|
|
3436
3474
|
auto?: boolean;
|
|
3475
|
+
background?: boolean;
|
|
3437
3476
|
keep?: {
|
|
3438
3477
|
tokens?: number;
|
|
3439
3478
|
};
|
|
@@ -3561,13 +3600,14 @@ export type ConfigEntry = {
|
|
|
3561
3600
|
codemode_vm?: boolean;
|
|
3562
3601
|
all_flags?: boolean;
|
|
3563
3602
|
todo?: boolean;
|
|
3564
|
-
background_compaction?: boolean;
|
|
3565
3603
|
media_blob?: boolean;
|
|
3566
|
-
|
|
3604
|
+
automations?: boolean;
|
|
3567
3605
|
artifacts?: boolean;
|
|
3568
|
-
|
|
3606
|
+
video_generate?: boolean;
|
|
3569
3607
|
console_watches?: boolean;
|
|
3570
3608
|
mcp_events?: boolean;
|
|
3609
|
+
full_codemode?: boolean;
|
|
3610
|
+
schedules?: boolean;
|
|
3571
3611
|
part_rows?: boolean;
|
|
3572
3612
|
image_generate?: boolean | {
|
|
3573
3613
|
model?: string | {
|
|
@@ -3589,6 +3629,7 @@ export type ConfigEntry = {
|
|
|
3589
3629
|
type: "directory";
|
|
3590
3630
|
path: AbsolutePath;
|
|
3591
3631
|
};
|
|
3632
|
+
export type AutomationAction = AutomationActionPrompt | AutomationActionCode;
|
|
3592
3633
|
export type UsageLimitsInfo = {
|
|
3593
3634
|
workspace: {
|
|
3594
3635
|
id: string;
|
|
@@ -3655,6 +3696,7 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3655
3696
|
completed?: number;
|
|
3656
3697
|
};
|
|
3657
3698
|
};
|
|
3699
|
+
export type GenerateVideoJob = GenerateVideoRunning | GenerateVideoCompleted | GenerateVideoError;
|
|
3658
3700
|
export type GenerateDecisionResult = {
|
|
3659
3701
|
answers: Array<GenerateDecisionAnswer>;
|
|
3660
3702
|
cost?: MoneyUSD;
|
|
@@ -3669,28 +3711,6 @@ export type CredentialEntry = {
|
|
|
3669
3711
|
value: CredentialValue;
|
|
3670
3712
|
};
|
|
3671
3713
|
export type FormFields1 = [FormField1, ...Array<FormField1>];
|
|
3672
|
-
export type ScheduleInfo = {
|
|
3673
|
-
id: ScheduleID;
|
|
3674
|
-
sessionID?: SessionID;
|
|
3675
|
-
name?: string;
|
|
3676
|
-
when: ScheduleWhen;
|
|
3677
|
-
tz: string;
|
|
3678
|
-
if?: ScheduleCondition;
|
|
3679
|
-
until?: ScheduleCondition;
|
|
3680
|
-
action: ScheduleAction;
|
|
3681
|
-
status: ScheduleStatus;
|
|
3682
|
-
nextDueAt?: number;
|
|
3683
|
-
endsAt?: number;
|
|
3684
|
-
remainingRuns?: number;
|
|
3685
|
-
runCount: number;
|
|
3686
|
-
lastFiredAt?: number;
|
|
3687
|
-
lastOutcome?: ScheduleOutcome;
|
|
3688
|
-
lastOutput?: string;
|
|
3689
|
-
time: {
|
|
3690
|
-
created: number;
|
|
3691
|
-
updated: number;
|
|
3692
|
-
};
|
|
3693
|
-
};
|
|
3694
3714
|
export type AgentInfo = {
|
|
3695
3715
|
id: AgentID;
|
|
3696
3716
|
name: string;
|
|
@@ -3711,6 +3731,28 @@ export type SessionsResponse = {
|
|
|
3711
3731
|
next?: SessionsCursor | null;
|
|
3712
3732
|
};
|
|
3713
3733
|
};
|
|
3734
|
+
export type AutomationInfo = {
|
|
3735
|
+
id: AutomationID;
|
|
3736
|
+
name: string;
|
|
3737
|
+
projectID: ProjectID;
|
|
3738
|
+
sessionID?: SessionID;
|
|
3739
|
+
directory: string;
|
|
3740
|
+
trigger: AutomationTrigger;
|
|
3741
|
+
tz: string;
|
|
3742
|
+
action: AutomationAction;
|
|
3743
|
+
expires?: number;
|
|
3744
|
+
status: AutomationStatus;
|
|
3745
|
+
nextDueAt?: number;
|
|
3746
|
+
runCount: number;
|
|
3747
|
+
lastRunAt?: number;
|
|
3748
|
+
lastOutcome?: AutomationOutcome;
|
|
3749
|
+
lastOutput?: string;
|
|
3750
|
+
state?: JsonValue;
|
|
3751
|
+
time: {
|
|
3752
|
+
created: number;
|
|
3753
|
+
updated: number;
|
|
3754
|
+
};
|
|
3755
|
+
};
|
|
3714
3756
|
export type SessionInboxInfo = SessionInboxUser | SessionInboxSynthetic | SessionInboxCompaction | SessionInboxMove;
|
|
3715
3757
|
export type SessionMessageAssistant = {
|
|
3716
3758
|
id: SessionMessageID;
|
|
@@ -3792,6 +3834,9 @@ export type SessionInboxEnqueued = {
|
|
|
3792
3834
|
};
|
|
3793
3835
|
};
|
|
3794
3836
|
export type SessionMessageAssistantContentEncoded = SessionMessageAssistantText1 | SessionMessageAssistantReasoning1 | SessionMessageAssistantTool1;
|
|
3837
|
+
export type GenerateVideoGetResponse = {
|
|
3838
|
+
data: GenerateVideoJob;
|
|
3839
|
+
};
|
|
3795
3840
|
export type GenerateDecisionsResponse = {
|
|
3796
3841
|
data: GenerateDecisionResult;
|
|
3797
3842
|
};
|
|
@@ -4005,6 +4050,17 @@ export type ProviderRequestError = {
|
|
|
4005
4050
|
readonly retryAfterMs?: number | undefined;
|
|
4006
4051
|
};
|
|
4007
4052
|
export declare const isProviderRequestError: (value: unknown) => value is ProviderRequestError;
|
|
4053
|
+
export type ForbiddenError = {
|
|
4054
|
+
readonly _tag: "ForbiddenError";
|
|
4055
|
+
readonly message: string;
|
|
4056
|
+
};
|
|
4057
|
+
export declare const isForbiddenError: (value: unknown) => value is ForbiddenError;
|
|
4058
|
+
export type VideoNotFoundError = {
|
|
4059
|
+
readonly _tag: "VideoNotFoundError";
|
|
4060
|
+
readonly videoID: string;
|
|
4061
|
+
readonly message: string;
|
|
4062
|
+
};
|
|
4063
|
+
export declare const isVideoNotFoundError: (value: unknown) => value is VideoNotFoundError;
|
|
4008
4064
|
export type IntegrationNotFoundError = {
|
|
4009
4065
|
readonly _tag: "IntegrationNotFoundError";
|
|
4010
4066
|
readonly integrationID: string;
|
|
@@ -4031,11 +4087,6 @@ export type McpServerNotFoundError = {
|
|
|
4031
4087
|
readonly message: string;
|
|
4032
4088
|
};
|
|
4033
4089
|
export declare const isMcpServerNotFoundError: (value: unknown) => value is McpServerNotFoundError;
|
|
4034
|
-
export type ForbiddenError = {
|
|
4035
|
-
readonly _tag: "ForbiddenError";
|
|
4036
|
-
readonly message: string;
|
|
4037
|
-
};
|
|
4038
|
-
export declare const isForbiddenError: (value: unknown) => value is ForbiddenError;
|
|
4039
4090
|
export type ProjectNotFoundError = {
|
|
4040
4091
|
readonly _tag: "ProjectNotFoundError";
|
|
4041
4092
|
readonly projectID: string;
|
|
@@ -4086,12 +4137,18 @@ export type PtyFeatureUnsupportedError = {
|
|
|
4086
4137
|
readonly message: string;
|
|
4087
4138
|
};
|
|
4088
4139
|
export declare const isPtyFeatureUnsupportedError: (value: unknown) => value is PtyFeatureUnsupportedError;
|
|
4089
|
-
export type
|
|
4090
|
-
readonly _tag: "
|
|
4091
|
-
readonly
|
|
4140
|
+
export type BlobNotFoundError = {
|
|
4141
|
+
readonly _tag: "BlobNotFoundError";
|
|
4142
|
+
readonly blobID: string;
|
|
4143
|
+
readonly message: string;
|
|
4144
|
+
};
|
|
4145
|
+
export declare const isBlobNotFoundError: (value: unknown) => value is BlobNotFoundError;
|
|
4146
|
+
export type AutomationNotFoundError = {
|
|
4147
|
+
readonly _tag: "AutomationNotFoundError";
|
|
4148
|
+
readonly automationID: string;
|
|
4092
4149
|
readonly message: string;
|
|
4093
4150
|
};
|
|
4094
|
-
export declare const
|
|
4151
|
+
export declare const isAutomationNotFoundError: (value: unknown) => value is AutomationNotFoundError;
|
|
4095
4152
|
export type ArtifactNotFoundError = {
|
|
4096
4153
|
readonly _tag: "ArtifactNotFoundError";
|
|
4097
4154
|
readonly artifactID: string;
|
|
@@ -4840,7 +4897,7 @@ export type ModelListInput = {
|
|
|
4840
4897
|
readonly location?: {
|
|
4841
4898
|
readonly directory?: string | undefined;
|
|
4842
4899
|
} | undefined;
|
|
4843
|
-
readonly types?: ReadonlyArray<"chat" | "decision" | "image" | (string & {})> | undefined;
|
|
4900
|
+
readonly types?: ReadonlyArray<"chat" | "decision" | "image" | "video" | (string & {})> | undefined;
|
|
4844
4901
|
};
|
|
4845
4902
|
export type ModelListOutput = {
|
|
4846
4903
|
location: LocationPublicRef;
|
|
@@ -4881,6 +4938,38 @@ export type ExperimentalGenerateImageInput = {
|
|
|
4881
4938
|
readonly resolution?: ("1K" | "2K" | "4K" | (string & {})) | undefined;
|
|
4882
4939
|
};
|
|
4883
4940
|
export type ExperimentalGenerateImageOutput = GenerateImageResponse["data"];
|
|
4941
|
+
export type ExperimentalGenerateVideoCreateInput = {
|
|
4942
|
+
readonly model: {
|
|
4943
|
+
readonly id: string;
|
|
4944
|
+
readonly providerID: string;
|
|
4945
|
+
readonly variant?: string;
|
|
4946
|
+
};
|
|
4947
|
+
readonly prompt: string;
|
|
4948
|
+
readonly start?: {
|
|
4949
|
+
readonly data: string;
|
|
4950
|
+
readonly mime: string;
|
|
4951
|
+
readonly name?: string;
|
|
4952
|
+
} | undefined;
|
|
4953
|
+
readonly end?: {
|
|
4954
|
+
readonly data: string;
|
|
4955
|
+
readonly mime: string;
|
|
4956
|
+
readonly name?: string;
|
|
4957
|
+
} | undefined;
|
|
4958
|
+
readonly references?: ReadonlyArray<{
|
|
4959
|
+
readonly data: string;
|
|
4960
|
+
readonly mime: string;
|
|
4961
|
+
readonly name?: string;
|
|
4962
|
+
}> | undefined;
|
|
4963
|
+
readonly duration?: number | undefined;
|
|
4964
|
+
readonly aspect?: (`${number}${":"}${number}` | "auto") | undefined;
|
|
4965
|
+
readonly resolution?: ("480p" | "720p" | "1080p" | "4k" | (string & {})) | undefined;
|
|
4966
|
+
readonly sound?: boolean | undefined;
|
|
4967
|
+
};
|
|
4968
|
+
export type ExperimentalGenerateVideoCreateOutput = GenerateVideoCreateResponse["data"];
|
|
4969
|
+
export type ExperimentalGenerateVideoGetInput = {
|
|
4970
|
+
readonly id: string;
|
|
4971
|
+
};
|
|
4972
|
+
export type ExperimentalGenerateVideoGetOutput = GenerateVideoGetResponse["data"];
|
|
4884
4973
|
export type ExperimentalGenerateDecisionsInput = {
|
|
4885
4974
|
readonly model: {
|
|
4886
4975
|
readonly id: string;
|
|
@@ -5550,98 +5639,83 @@ export type ExperimentalMediaGetInput = {
|
|
|
5550
5639
|
readonly hash: string;
|
|
5551
5640
|
};
|
|
5552
5641
|
export type ExperimentalMediaGetOutput = globalThis.Uint8Array;
|
|
5553
|
-
export type
|
|
5554
|
-
readonly
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5642
|
+
export type ExperimentalBlobGetInput = {
|
|
5643
|
+
readonly id: string;
|
|
5644
|
+
};
|
|
5645
|
+
export type ExperimentalBlobGetOutput = globalThis.Uint8Array;
|
|
5646
|
+
export type ExperimentalAutomationCreateInput = {
|
|
5647
|
+
readonly sessionID?: string | undefined;
|
|
5648
|
+
readonly directory?: string | undefined;
|
|
5649
|
+
readonly name: string;
|
|
5650
|
+
readonly trigger: {
|
|
5651
|
+
readonly type: "at";
|
|
5563
5652
|
readonly at: string;
|
|
5564
|
-
readonly in?: never;
|
|
5565
|
-
readonly every?: never;
|
|
5566
|
-
readonly cron?: never;
|
|
5567
5653
|
readonly tz?: string;
|
|
5568
5654
|
} | {
|
|
5655
|
+
readonly type: "every";
|
|
5569
5656
|
readonly every: string;
|
|
5570
|
-
readonly in?: never;
|
|
5571
|
-
readonly at?: never;
|
|
5572
|
-
readonly cron?: never;
|
|
5573
5657
|
readonly tz?: string;
|
|
5574
5658
|
} | {
|
|
5659
|
+
readonly type: "cron";
|
|
5575
5660
|
readonly cron: string;
|
|
5576
|
-
readonly in?: never;
|
|
5577
|
-
readonly at?: never;
|
|
5578
|
-
readonly every?: never;
|
|
5579
5661
|
readonly tz?: string;
|
|
5580
|
-
}) | undefined;
|
|
5581
|
-
readonly if?: ({
|
|
5582
|
-
readonly run: string;
|
|
5583
|
-
readonly is?: string;
|
|
5584
|
-
readonly matches?: string;
|
|
5585
|
-
readonly changes?: boolean;
|
|
5586
|
-
readonly code?: never;
|
|
5587
5662
|
} | {
|
|
5588
|
-
readonly
|
|
5589
|
-
readonly
|
|
5590
|
-
readonly
|
|
5591
|
-
readonly
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
readonly
|
|
5597
|
-
readonly
|
|
5598
|
-
readonly
|
|
5599
|
-
|
|
5663
|
+
readonly type: "event";
|
|
5664
|
+
readonly server: string;
|
|
5665
|
+
readonly event: string;
|
|
5666
|
+
readonly args?: {
|
|
5667
|
+
readonly [x: string]: JsonValue;
|
|
5668
|
+
};
|
|
5669
|
+
};
|
|
5670
|
+
readonly action: {
|
|
5671
|
+
readonly type: "prompt";
|
|
5672
|
+
readonly prompt: string;
|
|
5673
|
+
readonly to?: {
|
|
5674
|
+
readonly session: string;
|
|
5675
|
+
readonly subagent?: never;
|
|
5676
|
+
} | {
|
|
5677
|
+
readonly subagent: string;
|
|
5678
|
+
readonly session?: never;
|
|
5679
|
+
};
|
|
5600
5680
|
} | {
|
|
5681
|
+
readonly type: "code";
|
|
5601
5682
|
readonly code: string;
|
|
5602
|
-
readonly
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
readonly changes?: never;
|
|
5606
|
-
}) | undefined;
|
|
5607
|
-
readonly ends?: {
|
|
5608
|
-
readonly after?: string;
|
|
5609
|
-
readonly at?: string;
|
|
5610
|
-
readonly times?: number;
|
|
5611
|
-
} | undefined;
|
|
5612
|
-
readonly prompt: string;
|
|
5683
|
+
readonly args?: JsonValue;
|
|
5684
|
+
};
|
|
5685
|
+
readonly expires?: string | undefined;
|
|
5613
5686
|
};
|
|
5614
|
-
export type
|
|
5615
|
-
data:
|
|
5687
|
+
export type ExperimentalAutomationCreateOutput = {
|
|
5688
|
+
data: AutomationInfo;
|
|
5616
5689
|
}["data"];
|
|
5617
|
-
export type
|
|
5618
|
-
readonly sessionID
|
|
5690
|
+
export type ExperimentalAutomationListInput = {
|
|
5691
|
+
readonly sessionID?: string | undefined;
|
|
5692
|
+
readonly directory?: string | undefined;
|
|
5619
5693
|
};
|
|
5620
|
-
export type
|
|
5621
|
-
data: Array<
|
|
5694
|
+
export type ExperimentalAutomationListOutput = {
|
|
5695
|
+
data: Array<AutomationInfo>;
|
|
5622
5696
|
}["data"];
|
|
5623
|
-
export type
|
|
5624
|
-
readonly
|
|
5697
|
+
export type ExperimentalAutomationGetInput = {
|
|
5698
|
+
readonly automationID: string;
|
|
5625
5699
|
};
|
|
5626
|
-
export type
|
|
5627
|
-
data:
|
|
5700
|
+
export type ExperimentalAutomationGetOutput = {
|
|
5701
|
+
data: AutomationInfo;
|
|
5628
5702
|
}["data"];
|
|
5629
|
-
export type
|
|
5630
|
-
readonly
|
|
5703
|
+
export type ExperimentalAutomationPauseInput = {
|
|
5704
|
+
readonly automationID: string;
|
|
5631
5705
|
};
|
|
5632
|
-
export type
|
|
5633
|
-
data:
|
|
5706
|
+
export type ExperimentalAutomationPauseOutput = {
|
|
5707
|
+
data: AutomationInfo;
|
|
5634
5708
|
}["data"];
|
|
5635
|
-
export type
|
|
5636
|
-
readonly
|
|
5709
|
+
export type ExperimentalAutomationResumeInput = {
|
|
5710
|
+
readonly automationID: string;
|
|
5637
5711
|
};
|
|
5638
|
-
export type
|
|
5639
|
-
data:
|
|
5712
|
+
export type ExperimentalAutomationResumeOutput = {
|
|
5713
|
+
data: AutomationInfo;
|
|
5640
5714
|
}["data"];
|
|
5641
|
-
export type
|
|
5642
|
-
readonly
|
|
5715
|
+
export type ExperimentalAutomationDeleteInput = {
|
|
5716
|
+
readonly automationID: string;
|
|
5643
5717
|
};
|
|
5644
|
-
export type
|
|
5718
|
+
export type ExperimentalAutomationDeleteOutput = void;
|
|
5645
5719
|
export type ExperimentalArtifactsProvidersInput = {
|
|
5646
5720
|
readonly location?: {
|
|
5647
5721
|
readonly directory?: string | undefined;
|
|
@@ -5721,7 +5795,7 @@ export type ExperimentalArtifactsViewInput = {
|
|
|
5721
5795
|
export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
|
|
5722
5796
|
export type ExperimentalJobListInput = {
|
|
5723
5797
|
readonly sessionID?: string | undefined;
|
|
5724
|
-
readonly kind?: ("shell" | "subagent" | "image") | undefined;
|
|
5798
|
+
readonly kind?: ("shell" | "subagent" | "image" | "codemode") | undefined;
|
|
5725
5799
|
readonly status?: ("running" | "completed" | "error" | "cancelled") | undefined;
|
|
5726
5800
|
readonly descendants?: boolean | undefined;
|
|
5727
5801
|
};
|
|
@@ -22,11 +22,12 @@ import {
|
|
|
22
22
|
isModelNotFoundError2,
|
|
23
23
|
isUnsupportedModelError2,
|
|
24
24
|
isProviderRequestError2,
|
|
25
|
+
isForbiddenError2,
|
|
26
|
+
isVideoNotFoundError2,
|
|
25
27
|
isIntegrationNotFoundError2,
|
|
26
28
|
isIntegrationAttemptNotFoundError2,
|
|
27
29
|
isIntegrationMethodNotFoundError2,
|
|
28
30
|
isMcpServerNotFoundError2,
|
|
29
|
-
isForbiddenError2,
|
|
30
31
|
isProjectNotFoundError2,
|
|
31
32
|
isPermissionSavedNotFoundError2,
|
|
32
33
|
isPermissionNotFoundError2,
|
|
@@ -35,15 +36,18 @@ import {
|
|
|
35
36
|
isRpcInternalError2,
|
|
36
37
|
isPtyNotFoundError2,
|
|
37
38
|
isPtyFeatureUnsupportedError2,
|
|
38
|
-
|
|
39
|
+
isBlobNotFoundError2,
|
|
40
|
+
isAutomationNotFoundError2,
|
|
39
41
|
isArtifactNotFoundError2,
|
|
40
42
|
isShellNotFoundError2,
|
|
41
43
|
isWorktreeError2,
|
|
42
44
|
isVcsInitNotSupportedError2
|
|
43
|
-
} from "../../chunks/
|
|
45
|
+
} from "../../chunks/service-6hqrj29e.js";
|
|
44
46
|
export {
|
|
45
47
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
46
48
|
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
|
49
|
+
isAutomationNotFoundError2 as isAutomationNotFoundError,
|
|
50
|
+
isBlobNotFoundError2 as isBlobNotFoundError,
|
|
47
51
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
48
52
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
49
53
|
isConflictError2 as isConflictError,
|
|
@@ -72,7 +76,6 @@ export {
|
|
|
72
76
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
|
73
77
|
isRpcError2 as isRpcError,
|
|
74
78
|
isRpcInternalError2 as isRpcInternalError,
|
|
75
|
-
isScheduleNotFoundError2 as isScheduleNotFoundError,
|
|
76
79
|
isServiceUnavailableError2 as isServiceUnavailableError,
|
|
77
80
|
isSessionBusyError2 as isSessionBusyError,
|
|
78
81
|
isSessionNotFoundError2 as isSessionNotFoundError,
|
|
@@ -82,5 +85,6 @@ export {
|
|
|
82
85
|
isUnknownError2 as isUnknownError,
|
|
83
86
|
isUnsupportedModelError2 as isUnsupportedModelError,
|
|
84
87
|
isVcsInitNotSupportedError2 as isVcsInitNotSupportedError,
|
|
88
|
+
isVideoNotFoundError2 as isVideoNotFoundError,
|
|
85
89
|
isWorktreeError2 as isWorktreeError
|
|
86
90
|
};
|