Skip to content

Commit 1e40c3d

Browse files
feat(api): dev day 2025 launches
DevDay 2025 launches including videos and chatkit beta
1 parent 2ad6c4d commit 1e40c3d

24 files changed

+2044
-14
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 122
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-fadefdc7c7e30df47c09df323669b242ff90ee08e51f304175ace5274e0aab49.yml
3-
openapi_spec_hash: 6d20f639d9ff8a097a34962da6218231
4-
config_hash: 902654e60f5d659f2bfcfd903e17c46d
1+
configured_endpoints: 135
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d64cf80d2ebddf175c5578f68226a3d5bbd3f7fd8d62ccac2205f3fc05a355ee.yml
3+
openapi_spec_hash: d51e0d60d0c536f210b597a211bc5af0
4+
config_hash: e7c42016df9c6bd7bd6ff15101b9bc9b

MIGRATION.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ client.example.list(undefined, { headers: { ... } });
126126
- `client.fineTuning.checkpoints.permissions.retrieve()`
127127
- `client.vectorStores.list()`
128128
- `client.vectorStores.files.list()`
129+
- `client.beta.chatkit.threads.list()`
130+
- `client.beta.chatkit.threads.listItems()`
129131
- `client.beta.assistants.list()`
130132
- `client.beta.threads.create()`
131133
- `client.beta.threads.runs.list()`
@@ -140,6 +142,8 @@ client.example.list(undefined, { headers: { ... } });
140142
- `client.evals.runs.list()`
141143
- `client.containers.list()`
142144
- `client.containers.files.list()`
145+
- `client.videos.list()`
146+
- `client.videos.downloadContent()`
143147

144148
### HTTP method naming
145149

api.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,56 @@ Types:
469469
Methods:
470470

471471
- <code title="post /realtime/transcription_sessions">client.beta.realtime.transcriptionSessions.<a href="./src/resources/beta/realtime/transcription-sessions.ts">create</a>({ ...params }) -> TranscriptionSession</code>
472+
## ChatKit
473+
474+
Types:
475+
476+
- <code><a href="./src/resources/beta/chatkit/chatkit.ts">ChatKitWorkflow</a></code>
477+
- <code><a href="./src/resources/beta/chatkit/chatkit.ts">FilePart</a></code>
478+
- <code><a href="./src/resources/beta/chatkit/chatkit.ts">ImagePart</a></code>
479+
- <code><a href="./src/resources/beta/chatkit/chatkit.ts">ChatKitUploadFileResponse</a></code>
480+
481+
Methods:
482+
483+
- <code title="post /chatkit/files">client.beta.chatkit.<a href="./src/resources/beta/chatkit/chatkit.ts">uploadFile</a>({ ...params }) -> ChatKitUploadFileResponse</code>
484+
485+
### Sessions
486+
487+
Methods:
488+
489+
- <code title="post /chatkit/sessions">client.beta.chatkit.sessions.<a href="./src/resources/beta/chatkit/sessions.ts">create</a>({ ...params }) -> ChatSession</code>
490+
- <code title="post /chatkit/sessions/{session_id}/cancel">client.beta.chatkit.sessions.<a href="./src/resources/beta/chatkit/sessions.ts">cancel</a>(sessionID) -> ChatSession</code>
491+
492+
### Threads
493+
494+
Types:
495+
496+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSession</a></code>
497+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionAutomaticThreadTitling</a></code>
498+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionChatKitConfiguration</a></code>
499+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionChatKitConfigurationParam</a></code>
500+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionExpiresAfterParam</a></code>
501+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionFileUpload</a></code>
502+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionHistory</a></code>
503+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionRateLimits</a></code>
504+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionRateLimitsParam</a></code>
505+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionStatus</a></code>
506+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatSessionWorkflowParam</a></code>
507+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatKitAttachment</a></code>
508+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatKitResponseOutputText</a></code>
509+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatKitThread</a></code>
510+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatKitThreadAssistantMessageItem</a></code>
511+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatKitThreadItemList</a></code>
512+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatKitThreadUserMessageItem</a></code>
513+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ChatKitWidgetItem</a></code>
514+
- <code><a href="./src/resources/beta/chatkit/threads.ts">ThreadDeleteResponse</a></code>
515+
516+
Methods:
517+
518+
- <code title="get /chatkit/threads/{thread_id}">client.beta.chatkit.threads.<a href="./src/resources/beta/chatkit/threads.ts">retrieve</a>(threadID) -> ChatKitThread</code>
519+
- <code title="get /chatkit/threads">client.beta.chatkit.threads.<a href="./src/resources/beta/chatkit/threads.ts">list</a>({ ...params }) -> ChatKitThreadsPage</code>
520+
- <code title="delete /chatkit/threads/{thread_id}">client.beta.chatkit.threads.<a href="./src/resources/beta/chatkit/threads.ts">delete</a>(threadID) -> ThreadDeleteResponse</code>
521+
- <code title="get /chatkit/threads/{thread_id}/items">client.beta.chatkit.threads.<a href="./src/resources/beta/chatkit/threads.ts">listItems</a>(threadID, { ...params }) -> ChatKitThreadItemListDataPage</code>
472522

473523
## Assistants
474524

@@ -1032,3 +1082,23 @@ Methods:
10321082
Methods:
10331083

10341084
- <code title="get /containers/{container_id}/files/{file_id}/content">client.containers.files.content.<a href="./src/resources/containers/files/content.ts">retrieve</a>(fileID, { ...params }) -> Response</code>
1085+
1086+
# Videos
1087+
1088+
Types:
1089+
1090+
- <code><a href="./src/resources/videos.ts">Video</a></code>
1091+
- <code><a href="./src/resources/videos.ts">VideoCreateError</a></code>
1092+
- <code><a href="./src/resources/videos.ts">VideoModel</a></code>
1093+
- <code><a href="./src/resources/videos.ts">VideoSeconds</a></code>
1094+
- <code><a href="./src/resources/videos.ts">VideoSize</a></code>
1095+
- <code><a href="./src/resources/videos.ts">VideoDeleteResponse</a></code>
1096+
1097+
Methods:
1098+
1099+
- <code title="post /videos">client.videos.<a href="./src/resources/videos.ts">create</a>({ ...params }) -> Video</code>
1100+
- <code title="get /videos/{video_id}">client.videos.<a href="./src/resources/videos.ts">retrieve</a>(videoID) -> Video</code>
1101+
- <code title="get /videos">client.videos.<a href="./src/resources/videos.ts">list</a>({ ...params }) -> VideosPage</code>
1102+
- <code title="delete /videos/{video_id}">client.videos.<a href="./src/resources/videos.ts">delete</a>(videoID) -> VideoDeleteResponse</code>
1103+
- <code title="get /videos/{video_id}/content">client.videos.<a href="./src/resources/videos.ts">downloadContent</a>(videoID, { ...params }) -> Response</code>
1104+
- <code title="post /videos/{video_id}/remix">client.videos.<a href="./src/resources/videos.ts">remix</a>(videoID, { ...params }) -> Video</code>

scripts/detect-breaking-changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ TEST_PATHS=(
3434
tests/api-resources/beta/realtime/realtime.test.ts
3535
tests/api-resources/beta/realtime/sessions.test.ts
3636
tests/api-resources/beta/realtime/transcription-sessions.test.ts
37+
tests/api-resources/beta/chatkit/chatkit.test.ts
38+
tests/api-resources/beta/chatkit/sessions.test.ts
39+
tests/api-resources/beta/chatkit/threads.test.ts
3740
tests/api-resources/beta/assistants.test.ts
3841
tests/api-resources/beta/threads/threads.test.ts
3942
tests/api-resources/beta/threads/runs/runs.test.ts
@@ -55,6 +58,7 @@ TEST_PATHS=(
5558
tests/api-resources/containers/containers.test.ts
5659
tests/api-resources/containers/files/files.test.ts
5760
tests/api-resources/containers/files/content.test.ts
61+
tests/api-resources/videos.test.ts
5862
tests/index.test.ts
5963
)
6064

src/client.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@ import {
9292
ModerationTextInput,
9393
Moderations,
9494
} from './resources/moderations';
95+
import {
96+
Video,
97+
VideoCreateError,
98+
VideoCreateParams,
99+
VideoDeleteResponse,
100+
VideoDownloadContentParams,
101+
VideoListParams,
102+
VideoModel,
103+
VideoRemixParams,
104+
VideoSeconds,
105+
VideoSize,
106+
Videos,
107+
VideosPage,
108+
} from './resources/videos';
95109
import { Webhooks } from './resources/webhooks';
96110
import { Audio, AudioModel, AudioResponseFormat } from './resources/audio/audio';
97111
import { Beta } from './resources/beta/beta';
@@ -1004,6 +1018,7 @@ export class OpenAI {
10041018
conversations: API.Conversations = new API.Conversations(this);
10051019
evals: API.Evals = new API.Evals(this);
10061020
containers: API.Containers = new API.Containers(this);
1021+
videos: API.Videos = new API.Videos(this);
10071022
}
10081023

10091024
OpenAI.Completions = Completions;
@@ -1026,6 +1041,7 @@ OpenAI.Realtime = Realtime;
10261041
OpenAI.Conversations = Conversations;
10271042
OpenAI.Evals = Evals;
10281043
OpenAI.Containers = Containers;
1044+
OpenAI.Videos = Videos;
10291045

10301046
export declare namespace OpenAI {
10311047
export type RequestOptions = Opts.RequestOptions;
@@ -1235,6 +1251,21 @@ export declare namespace OpenAI {
12351251
type ContainerListParams as ContainerListParams,
12361252
};
12371253

1254+
export {
1255+
Videos as Videos,
1256+
type Video as Video,
1257+
type VideoCreateError as VideoCreateError,
1258+
type VideoModel as VideoModel,
1259+
type VideoSeconds as VideoSeconds,
1260+
type VideoSize as VideoSize,
1261+
type VideoDeleteResponse as VideoDeleteResponse,
1262+
type VideosPage as VideosPage,
1263+
type VideoCreateParams as VideoCreateParams,
1264+
type VideoListParams as VideoListParams,
1265+
type VideoDownloadContentParams as VideoDownloadContentParams,
1266+
type VideoRemixParams as VideoRemixParams,
1267+
};
1268+
12381269
export type AllModels = API.AllModels;
12391270
export type ChatModel = API.ChatModel;
12401271
export type ComparisonFilter = API.ComparisonFilter;

src/resources/beta/beta.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ import {
7373
TranscriptionSessionUpdate,
7474
TranscriptionSessionUpdatedEvent,
7575
} from './realtime/realtime';
76+
import * as ChatKitAPI from './chatkit/chatkit';
77+
import {
78+
ChatKit,
79+
ChatKitUploadFileParams,
80+
ChatKitUploadFileResponse,
81+
ChatKitWorkflow,
82+
FilePart,
83+
ImagePart,
84+
} from './chatkit/chatkit';
7685
import * as ThreadsAPI from './threads/threads';
7786
import {
7887
AssistantResponseFormatOption,
@@ -93,11 +102,13 @@ import {
93102

94103
export class Beta extends APIResource {
95104
realtime: RealtimeAPI.Realtime = new RealtimeAPI.Realtime(this._client);
105+
chatkit: ChatKitAPI.ChatKit = new ChatKitAPI.ChatKit(this._client);
96106
assistants: AssistantsAPI.Assistants = new AssistantsAPI.Assistants(this._client);
97107
threads: ThreadsAPI.Threads = new ThreadsAPI.Threads(this._client);
98108
}
99109

100110
Beta.Realtime = Realtime;
111+
Beta.ChatKit = ChatKit;
101112
Beta.Assistants = Assistants;
102113
Beta.Threads = Threads;
103114

@@ -153,6 +164,12 @@ export declare namespace Beta {
153164
type SessionUpdatedEvent as SessionUpdatedEvent,
154165
type TranscriptionSessionUpdate as TranscriptionSessionUpdate,
155166
type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent,
167+
ChatKit as ChatKit,
168+
type ChatKitWorkflow as ChatKitWorkflow,
169+
type FilePart as FilePart,
170+
type ImagePart as ImagePart,
171+
type ChatKitUploadFileResponse as ChatKitUploadFileResponse,
172+
type ChatKitUploadFileParams as ChatKitUploadFileParams,
156173
};
157174

158175
export {

src/resources/beta/chatkit.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
export * from './chatkit/index';

0 commit comments

Comments
 (0)