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