Skip to content

Commit a1d7cf9

Browse files
feat(api): api update
1 parent f8ad145 commit a1d7cf9

File tree

4 files changed

+35
-7
lines changed

4 files changed

+35
-7
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-e2f67adede4455c3fe4507ac6f0b2ed1a91ee951ab30e01179555c18765750d4.yml
3-
openapi_spec_hash: 6005bcfff58c025d61739be42030a339
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-945f9da9e9a4c4008834deef63e4346c0076e020eed3d3c98c249095033c1ac5.yml
3+
openapi_spec_hash: 522a44f6cb0677435fe2ac7693848ad7
44
config_hash: 6c8822d278ba83456e5eed6d774ca230

src/resources/config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ export interface Config {
4343

4444
experimental?: Config.Experimental;
4545

46+
/**
47+
* Additional instruction files or patterns to include
48+
*/
49+
instructions?: Array<string>;
50+
4651
/**
4752
* Custom keybind configurations
4853
*/

src/resources/event.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export type EventListResponse =
2323
| EventListResponse.EventStorageWrite
2424
| EventListResponse.EventInstallationUpdated
2525
| EventListResponse.EventMessageUpdated
26+
| EventListResponse.EventMessageRemoved
2627
| EventListResponse.EventMessagePartUpdated
2728
| EventListResponse.EventSessionUpdated
2829
| EventListResponse.EventSessionDeleted
@@ -121,6 +122,20 @@ export namespace EventListResponse {
121122
}
122123
}
123124

125+
export interface EventMessageRemoved {
126+
properties: EventMessageRemoved.Properties;
127+
128+
type: 'message.removed';
129+
}
130+
131+
export namespace EventMessageRemoved {
132+
export interface Properties {
133+
messageID: string;
134+
135+
sessionID: string;
136+
}
137+
}
138+
124139
export interface EventMessagePartUpdated {
125140
properties: EventMessagePartUpdated.Properties;
126141

src/resources/session.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export namespace Message {
114114

115115
error?: Shared.ProviderAuthError | Shared.UnknownError | Metadata.MessageOutputLengthError;
116116

117-
user?: Metadata.User;
117+
snapshot?: string;
118118
}
119119

120120
export namespace Metadata {
@@ -129,6 +129,8 @@ export namespace Message {
129129

130130
title: string;
131131

132+
snapshot?: string;
133+
132134
[k: string]: unknown;
133135
}
134136

@@ -187,10 +189,6 @@ export namespace Message {
187189

188190
name: 'MessageOutputLengthError';
189191
}
190-
191-
export interface User {
192-
snapshot?: string;
193-
}
194192
}
195193
}
196194

@@ -221,6 +219,8 @@ export interface Session {
221219

222220
parentID?: string;
223221

222+
revert?: Session.Revert;
223+
224224
share?: Session.Share;
225225
}
226226

@@ -231,6 +231,14 @@ export namespace Session {
231231
updated: number;
232232
}
233233

234+
export interface Revert {
235+
messageID: string;
236+
237+
part: number;
238+
239+
snapshot?: string;
240+
}
241+
234242
export interface Share {
235243
url: string;
236244
}

0 commit comments

Comments
 (0)