@opencode-ai/sdk 0.0.0-next-14730 → 0.0.0-next-14742
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.
|
@@ -9,7 +9,11 @@ export const createQuerySerializer = ({ parameters = {}, ...args } = {}) => {
|
|
|
9
9
|
if (queryParams && typeof queryParams === "object") {
|
|
10
10
|
for (const name in queryParams) {
|
|
11
11
|
const value = queryParams[name];
|
|
12
|
-
if (value === undefined
|
|
12
|
+
if (value === undefined) {
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
if (value === null) {
|
|
16
|
+
search.push(`${name}=null`);
|
|
13
17
|
continue;
|
|
14
18
|
}
|
|
15
19
|
const options = parameters[name] || args;
|
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1731,6 +1731,7 @@ export declare class Session3 extends HeyApiClient {
|
|
|
1731
1731
|
limit?: string | null;
|
|
1732
1732
|
order?: "asc" | "desc" | null;
|
|
1733
1733
|
search?: string | null;
|
|
1734
|
+
parentID?: string | "null" | null;
|
|
1734
1735
|
directory?: string | null;
|
|
1735
1736
|
project?: string | null;
|
|
1736
1737
|
subpath?: string | null;
|
|
@@ -1877,7 +1878,7 @@ export declare class Session3 extends HeyApiClient {
|
|
|
1877
1878
|
/**
|
|
1878
1879
|
* Read the session log
|
|
1879
1880
|
*
|
|
1880
|
-
* Durable, ordered, gap-free read of public session events after an exclusive aggregate sequence. Emits a
|
|
1881
|
+
* Durable, ordered, gap-free read of public session events after an exclusive aggregate sequence. Emits a synced marker once replay reaches the captured watermark, then completes; with follow=true it continues with live events instead. The only event API that promises reliability: attach after a snapshot watermark to compose fetch and stream without a race window.
|
|
1881
1882
|
*/
|
|
1882
1883
|
log<ThrowOnError extends boolean = false>(parameters: {
|
|
1883
1884
|
sessionID: string;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -3467,6 +3467,7 @@ export class Session3 extends HeyApiClient {
|
|
|
3467
3467
|
{ in: "query", key: "limit" },
|
|
3468
3468
|
{ in: "query", key: "order" },
|
|
3469
3469
|
{ in: "query", key: "search" },
|
|
3470
|
+
{ in: "query", key: "parentID" },
|
|
3470
3471
|
{ in: "query", key: "directory" },
|
|
3471
3472
|
{ in: "query", key: "project" },
|
|
3472
3473
|
{ in: "query", key: "subpath" },
|
|
@@ -3788,7 +3789,7 @@ export class Session3 extends HeyApiClient {
|
|
|
3788
3789
|
/**
|
|
3789
3790
|
* Read the session log
|
|
3790
3791
|
*
|
|
3791
|
-
* Durable, ordered, gap-free read of public session events after an exclusive aggregate sequence. Emits a
|
|
3792
|
+
* Durable, ordered, gap-free read of public session events after an exclusive aggregate sequence. Emits a synced marker once replay reaches the captured watermark, then completes; with follow=true it continues with live events instead. The only event API that promises reliability: attach after a snapshot watermark to compose fetch and stream without a race window.
|
|
3792
3793
|
*/
|
|
3793
3794
|
log(parameters, options) {
|
|
3794
3795
|
const params = buildClientParams([parameters], [
|
|
@@ -5357,14 +5357,14 @@ export type SessionNextRevertCommitted = {
|
|
|
5357
5357
|
};
|
|
5358
5358
|
export type SessionDurableEvent = SessionNextAgentSwitched | SessionNextModelSwitched | SessionNextMoved | SessionNextRenamed | SessionNextForked | SessionNextPrompted | SessionNextPromptAdmitted | SessionNextContextUpdated | SessionNextSynthetic | SessionNextSkillActivated | SessionNextShellStarted | SessionNextShellEnded | SessionNextStepStarted | SessionNextStepEnded | SessionNextStepFailed | SessionNextTextStarted | SessionNextTextEnded | SessionNextToolInputStarted | SessionNextToolInputEnded | SessionNextToolCalled | SessionNextToolProgress | SessionNextToolSuccess | SessionNextToolFailed | SessionNextReasoningStarted | SessionNextReasoningEnded | SessionNextRetried | SessionNextCompactionStarted | SessionNextCompactionEnded | SessionNextRevertStaged | SessionNextRevertCleared | SessionNextRevertCommitted;
|
|
5359
5359
|
/**
|
|
5360
|
-
* Marker emitted when a log read
|
|
5360
|
+
* Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq.
|
|
5361
5361
|
*/
|
|
5362
|
-
export type
|
|
5363
|
-
type: "log.
|
|
5362
|
+
export type EventLogSynced = {
|
|
5363
|
+
type: "log.synced";
|
|
5364
5364
|
aggregateID: string;
|
|
5365
5365
|
seq?: number;
|
|
5366
5366
|
};
|
|
5367
|
-
export type SessionLogItem = SessionDurableEvent |
|
|
5367
|
+
export type SessionLogItem = SessionDurableEvent | EventLogSynced;
|
|
5368
5368
|
export type SessionLogItemStream = string;
|
|
5369
5369
|
export type SessionMessagesResponse = {
|
|
5370
5370
|
data: Array<SessionMessage>;
|
|
@@ -10670,6 +10670,7 @@ export type V2SessionListData = {
|
|
|
10670
10670
|
*/
|
|
10671
10671
|
order?: "asc" | "desc" | null;
|
|
10672
10672
|
search?: string | null;
|
|
10673
|
+
parentID?: string | "null" | null;
|
|
10673
10674
|
directory?: string | null;
|
|
10674
10675
|
project?: string | null;
|
|
10675
10676
|
subpath?: string | null;
|