@opencode-ai/sdk 0.0.0-next-14994 → 0.0.0-next-14998
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/v2/gen/types.gen.d.ts +28 -14
- package/package.json +1 -1
|
@@ -2540,22 +2540,29 @@ export type LocationRef = {
|
|
|
2540
2540
|
directory: string;
|
|
2541
2541
|
workspaceID?: string;
|
|
2542
2542
|
};
|
|
2543
|
-
export type
|
|
2543
|
+
export type PromptBase64 = string;
|
|
2544
|
+
export type PromptFileSource = {
|
|
2545
|
+
type: "inline";
|
|
2546
|
+
} | {
|
|
2547
|
+
type: "uri";
|
|
2548
|
+
uri: string;
|
|
2549
|
+
};
|
|
2550
|
+
export type PromptMention = {
|
|
2544
2551
|
start: number;
|
|
2545
2552
|
end: number;
|
|
2546
2553
|
text: string;
|
|
2547
2554
|
};
|
|
2548
2555
|
export type PromptFileAttachment = {
|
|
2549
|
-
|
|
2556
|
+
data: PromptBase64;
|
|
2550
2557
|
mime: string;
|
|
2551
|
-
|
|
2558
|
+
source: PromptFileSource;
|
|
2552
2559
|
name?: string;
|
|
2553
2560
|
description?: string;
|
|
2554
|
-
|
|
2561
|
+
mention?: PromptMention;
|
|
2555
2562
|
};
|
|
2556
2563
|
export type PromptAgentAttachment = {
|
|
2557
2564
|
name: string;
|
|
2558
|
-
|
|
2565
|
+
mention?: PromptMention;
|
|
2559
2566
|
};
|
|
2560
2567
|
export type SessionErrorUnknown = {
|
|
2561
2568
|
type: "unknown";
|
|
@@ -3466,7 +3473,7 @@ export type PromptInputFileAttachment = {
|
|
|
3466
3473
|
uri: string;
|
|
3467
3474
|
name?: string;
|
|
3468
3475
|
description?: string;
|
|
3469
|
-
|
|
3476
|
+
mention?: PromptMention;
|
|
3470
3477
|
};
|
|
3471
3478
|
export type SessionInputAdmitted = {
|
|
3472
3479
|
admittedSeq: number;
|
|
@@ -6703,7 +6710,7 @@ export type MessageNotFoundErrorV2 = {
|
|
|
6703
6710
|
messageID: string;
|
|
6704
6711
|
message: string;
|
|
6705
6712
|
};
|
|
6706
|
-
export type
|
|
6713
|
+
export type PromptMention2 = {
|
|
6707
6714
|
start: number;
|
|
6708
6715
|
end: number;
|
|
6709
6716
|
text: string;
|
|
@@ -6712,24 +6719,31 @@ export type PromptInputFileAttachment2 = {
|
|
|
6712
6719
|
uri: string;
|
|
6713
6720
|
name?: string;
|
|
6714
6721
|
description?: string;
|
|
6715
|
-
|
|
6722
|
+
mention?: PromptMention2;
|
|
6716
6723
|
};
|
|
6717
6724
|
export type PromptAgentAttachment2 = {
|
|
6718
6725
|
name: string;
|
|
6719
|
-
|
|
6726
|
+
mention?: PromptMention2;
|
|
6720
6727
|
};
|
|
6721
6728
|
export type PromptInputV2 = {
|
|
6722
6729
|
text: string;
|
|
6723
6730
|
files?: Array<PromptInputFileAttachment2>;
|
|
6724
6731
|
agents?: Array<PromptAgentAttachment2>;
|
|
6725
6732
|
};
|
|
6726
|
-
export type
|
|
6733
|
+
export type PromptBase642 = string;
|
|
6734
|
+
export type PromptFileSource2 = {
|
|
6735
|
+
type: "inline";
|
|
6736
|
+
} | {
|
|
6737
|
+
type: "uri";
|
|
6727
6738
|
uri: string;
|
|
6739
|
+
};
|
|
6740
|
+
export type PromptFileAttachment2 = {
|
|
6741
|
+
data: PromptBase642;
|
|
6728
6742
|
mime: string;
|
|
6729
|
-
|
|
6743
|
+
source: PromptFileSource2;
|
|
6730
6744
|
name?: string;
|
|
6731
6745
|
description?: string;
|
|
6732
|
-
|
|
6746
|
+
mention?: PromptMention2;
|
|
6733
6747
|
};
|
|
6734
6748
|
export type PromptV2 = {
|
|
6735
6749
|
text: string;
|
|
@@ -13558,7 +13572,7 @@ export type V2SessionPromptErrors = {
|
|
|
13558
13572
|
/**
|
|
13559
13573
|
* InvalidRequestError
|
|
13560
13574
|
*/
|
|
13561
|
-
400: InvalidRequestErrorV2;
|
|
13575
|
+
400: InvalidRequestError1 | InvalidRequestErrorV2;
|
|
13562
13576
|
/**
|
|
13563
13577
|
* UnauthorizedError
|
|
13564
13578
|
*/
|
|
@@ -13604,7 +13618,7 @@ export type V2SessionCommandErrors = {
|
|
|
13604
13618
|
/**
|
|
13605
13619
|
* InvalidRequestError
|
|
13606
13620
|
*/
|
|
13607
|
-
400: InvalidRequestErrorV2;
|
|
13621
|
+
400: InvalidRequestError1 | InvalidRequestErrorV2;
|
|
13608
13622
|
/**
|
|
13609
13623
|
* UnauthorizedError
|
|
13610
13624
|
*/
|