@dazl/api-client 1.0.47 → 1.0.49
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/db/generated-types.d.ts +22 -0
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/sdk.gen.d.ts +7 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +42 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +235 -4
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/dist/public/types.gen.d.ts +4 -4
- package/package.json +1 -1
- package/src/db/generated-types.ts +24 -0
- package/src/internal/index.ts +2 -2
- package/src/internal/sdk.gen.ts +47 -1
- package/src/internal/types.gen.ts +256 -4
- package/src/public/types.gen.ts +4 -4
|
@@ -845,6 +845,7 @@ export type WorkflowRun = {
|
|
|
845
845
|
chatId: string;
|
|
846
846
|
startedByDazlUserId: string;
|
|
847
847
|
status: 'running' | 'paused' | 'completed' | 'failed' | 'cancelled';
|
|
848
|
+
name: string | null;
|
|
848
849
|
harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
|
|
849
850
|
model: string | null;
|
|
850
851
|
input?: unknown;
|
|
@@ -1016,6 +1017,10 @@ export type SetWorkflowHarnessInput = {
|
|
|
1016
1017
|
model?: string | null;
|
|
1017
1018
|
};
|
|
1018
1019
|
|
|
1020
|
+
export type SetWorkflowRunNameInput = {
|
|
1021
|
+
name: string;
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1019
1024
|
export type WorkflowNodeResultInput = {
|
|
1020
1025
|
token: WorkflowNodeToken;
|
|
1021
1026
|
output?: {
|
|
@@ -1213,7 +1218,7 @@ export type TextGenerationUsage = {
|
|
|
1213
1218
|
/**
|
|
1214
1219
|
* Model that actually served the request
|
|
1215
1220
|
*/
|
|
1216
|
-
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-
|
|
1221
|
+
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-5-5-anthropic' | 'claude-haiku-5-5-vertex' | 'gemini-3-0-flash-vertex' | 'gemini-3-5-flash-vertex' | 'gemini-3-1-pro-vertex' | 'qwen-3-coder-openrouter' | 'qwen-3-coder-next-openrouter' | 'qwen-3-6-plus-openrouter' | 'qwen-3-5-flash-openrouter' | 'grok-code-fast-openrouter' | 'deepseek-v3-1-openrouter' | 'deepseek-v4-pro-openrouter' | 'deepseek-v4-flash-openrouter' | 'kimi-k-2-6-openrouter' | 'gpt-5-5-bedrock' | 'gpt-5-4-bedrock' | 'grok-4-3-bedrock' | 'glm-5-bedrock' | 'gpt-5-4-nano-openrouter' | 'gpt-5-4-mini-openrouter' | 'gpt-5-3-codex-openrouter' | 'minimax-m-2-7-openrouter' | 'hy3-preview-openrouter' | 'gemini-3-0-pro-image' | 'gemini-3-1-flash-image';
|
|
1217
1222
|
inputTokens: number;
|
|
1218
1223
|
inputTokensCost: number;
|
|
1219
1224
|
outputTokens: number;
|
|
@@ -1245,7 +1250,7 @@ export type GenerateTextRequest = {
|
|
|
1245
1250
|
/**
|
|
1246
1251
|
* Primary model id
|
|
1247
1252
|
*/
|
|
1248
|
-
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-
|
|
1253
|
+
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-5-5-anthropic' | 'claude-haiku-5-5-vertex' | 'gemini-3-0-flash-vertex' | 'gemini-3-5-flash-vertex' | 'gemini-3-1-pro-vertex' | 'qwen-3-coder-openrouter' | 'qwen-3-coder-next-openrouter' | 'qwen-3-6-plus-openrouter' | 'qwen-3-5-flash-openrouter' | 'grok-code-fast-openrouter' | 'deepseek-v3-1-openrouter' | 'deepseek-v4-pro-openrouter' | 'deepseek-v4-flash-openrouter' | 'kimi-k-2-6-openrouter' | 'gpt-5-5-bedrock' | 'gpt-5-4-bedrock' | 'grok-4-3-bedrock' | 'glm-5-bedrock' | 'gpt-5-4-nano-openrouter' | 'gpt-5-4-mini-openrouter' | 'gpt-5-3-codex-openrouter' | 'minimax-m-2-7-openrouter' | 'hy3-preview-openrouter' | 'gemini-3-0-pro-image' | 'gemini-3-1-flash-image';
|
|
1249
1254
|
/**
|
|
1250
1255
|
* Ordered fallback models, tried when the primary model fails before any output is produced
|
|
1251
1256
|
*/
|
|
@@ -1280,7 +1285,7 @@ export type GenerateTextRequest = {
|
|
|
1280
1285
|
opId?: string;
|
|
1281
1286
|
};
|
|
1282
1287
|
|
|
1283
|
-
export type TextGenerationModelId = 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-
|
|
1288
|
+
export type TextGenerationModelId = 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-5-5-anthropic' | 'claude-haiku-5-5-vertex' | 'gemini-3-0-flash-vertex' | 'gemini-3-5-flash-vertex' | 'gemini-3-1-pro-vertex' | 'qwen-3-coder-openrouter' | 'qwen-3-coder-next-openrouter' | 'qwen-3-6-plus-openrouter' | 'qwen-3-5-flash-openrouter' | 'grok-code-fast-openrouter' | 'deepseek-v3-1-openrouter' | 'deepseek-v4-pro-openrouter' | 'deepseek-v4-flash-openrouter' | 'kimi-k-2-6-openrouter' | 'gpt-5-5-bedrock' | 'gpt-5-4-bedrock' | 'grok-4-3-bedrock' | 'glm-5-bedrock' | 'gpt-5-4-nano-openrouter' | 'gpt-5-4-mini-openrouter' | 'gpt-5-3-codex-openrouter' | 'minimax-m-2-7-openrouter' | 'hy3-preview-openrouter' | 'gemini-3-0-pro-image' | 'gemini-3-1-flash-image';
|
|
1284
1289
|
|
|
1285
1290
|
export type ModelMessage = ({
|
|
1286
1291
|
role: 'user';
|
|
@@ -1440,7 +1445,7 @@ export type StreamTextRequest = {
|
|
|
1440
1445
|
/**
|
|
1441
1446
|
* Primary model id
|
|
1442
1447
|
*/
|
|
1443
|
-
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-
|
|
1448
|
+
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-5-5-anthropic' | 'claude-haiku-5-5-vertex' | 'gemini-3-0-flash-vertex' | 'gemini-3-5-flash-vertex' | 'gemini-3-1-pro-vertex' | 'qwen-3-coder-openrouter' | 'qwen-3-coder-next-openrouter' | 'qwen-3-6-plus-openrouter' | 'qwen-3-5-flash-openrouter' | 'grok-code-fast-openrouter' | 'deepseek-v3-1-openrouter' | 'deepseek-v4-pro-openrouter' | 'deepseek-v4-flash-openrouter' | 'kimi-k-2-6-openrouter' | 'gpt-5-5-bedrock' | 'gpt-5-4-bedrock' | 'grok-4-3-bedrock' | 'glm-5-bedrock' | 'gpt-5-4-nano-openrouter' | 'gpt-5-4-mini-openrouter' | 'gpt-5-3-codex-openrouter' | 'minimax-m-2-7-openrouter' | 'hy3-preview-openrouter' | 'gemini-3-0-pro-image' | 'gemini-3-1-flash-image';
|
|
1444
1449
|
/**
|
|
1445
1450
|
* Ordered fallback models, tried when the primary model fails before any output is produced
|
|
1446
1451
|
*/
|
|
@@ -7067,6 +7072,197 @@ export type UpdateSessionNoteResponses = {
|
|
|
7067
7072
|
|
|
7068
7073
|
export type UpdateSessionNoteResponse = UpdateSessionNoteResponses[keyof UpdateSessionNoteResponses];
|
|
7069
7074
|
|
|
7075
|
+
export type SendChatInboxMessageData = {
|
|
7076
|
+
body: {
|
|
7077
|
+
chatId: string;
|
|
7078
|
+
text: string;
|
|
7079
|
+
};
|
|
7080
|
+
path: {
|
|
7081
|
+
projectId: string;
|
|
7082
|
+
};
|
|
7083
|
+
query?: never;
|
|
7084
|
+
url: '/chat-inbox/project/{projectId}/messages';
|
|
7085
|
+
};
|
|
7086
|
+
|
|
7087
|
+
export type SendChatInboxMessageErrors = {
|
|
7088
|
+
/**
|
|
7089
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7090
|
+
*/
|
|
7091
|
+
400: {
|
|
7092
|
+
message: string;
|
|
7093
|
+
issues?: string;
|
|
7094
|
+
};
|
|
7095
|
+
/**
|
|
7096
|
+
* Unauthorized
|
|
7097
|
+
*/
|
|
7098
|
+
401: ErrorResponse;
|
|
7099
|
+
/**
|
|
7100
|
+
* Forbidden
|
|
7101
|
+
*/
|
|
7102
|
+
403: ErrorResponse;
|
|
7103
|
+
/**
|
|
7104
|
+
* Not Found
|
|
7105
|
+
*/
|
|
7106
|
+
404: ErrorResponse;
|
|
7107
|
+
/**
|
|
7108
|
+
* Conflict
|
|
7109
|
+
*/
|
|
7110
|
+
409: ErrorResponse;
|
|
7111
|
+
/**
|
|
7112
|
+
* Internal server error
|
|
7113
|
+
*/
|
|
7114
|
+
500: ErrorResponse;
|
|
7115
|
+
/**
|
|
7116
|
+
* Service Unavailable
|
|
7117
|
+
*/
|
|
7118
|
+
503: ErrorResponse;
|
|
7119
|
+
};
|
|
7120
|
+
|
|
7121
|
+
export type SendChatInboxMessageError = SendChatInboxMessageErrors[keyof SendChatInboxMessageErrors];
|
|
7122
|
+
|
|
7123
|
+
export type SendChatInboxMessageResponses = {
|
|
7124
|
+
/**
|
|
7125
|
+
* Queues a message from the calling user (x-user-id) for a chat of the project's session and wakes the session if it is stopped. Messages not picked up within 15 minutes expire.
|
|
7126
|
+
*/
|
|
7127
|
+
200: {
|
|
7128
|
+
messageId: string;
|
|
7129
|
+
status: 'queued';
|
|
7130
|
+
workerLastSeenAt?: string | null;
|
|
7131
|
+
warning?: string;
|
|
7132
|
+
};
|
|
7133
|
+
};
|
|
7134
|
+
|
|
7135
|
+
export type SendChatInboxMessageResponse = SendChatInboxMessageResponses[keyof SendChatInboxMessageResponses];
|
|
7136
|
+
|
|
7137
|
+
export type ClaimChatInboxMessagesData = {
|
|
7138
|
+
body: {
|
|
7139
|
+
workerId: string;
|
|
7140
|
+
waitMs?: number;
|
|
7141
|
+
};
|
|
7142
|
+
path: {
|
|
7143
|
+
projectId: string;
|
|
7144
|
+
};
|
|
7145
|
+
query?: never;
|
|
7146
|
+
url: '/chat-inbox/project/{projectId}/claim';
|
|
7147
|
+
};
|
|
7148
|
+
|
|
7149
|
+
export type ClaimChatInboxMessagesErrors = {
|
|
7150
|
+
/**
|
|
7151
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7152
|
+
*/
|
|
7153
|
+
400: {
|
|
7154
|
+
message: string;
|
|
7155
|
+
issues?: string;
|
|
7156
|
+
};
|
|
7157
|
+
/**
|
|
7158
|
+
* Unauthorized
|
|
7159
|
+
*/
|
|
7160
|
+
401: ErrorResponse;
|
|
7161
|
+
/**
|
|
7162
|
+
* Forbidden
|
|
7163
|
+
*/
|
|
7164
|
+
403: ErrorResponse;
|
|
7165
|
+
/**
|
|
7166
|
+
* Not Found
|
|
7167
|
+
*/
|
|
7168
|
+
404: ErrorResponse;
|
|
7169
|
+
/**
|
|
7170
|
+
* Conflict
|
|
7171
|
+
*/
|
|
7172
|
+
409: ErrorResponse;
|
|
7173
|
+
/**
|
|
7174
|
+
* Internal server error
|
|
7175
|
+
*/
|
|
7176
|
+
500: ErrorResponse;
|
|
7177
|
+
/**
|
|
7178
|
+
* Service Unavailable
|
|
7179
|
+
*/
|
|
7180
|
+
503: ErrorResponse;
|
|
7181
|
+
};
|
|
7182
|
+
|
|
7183
|
+
export type ClaimChatInboxMessagesError = ClaimChatInboxMessagesErrors[keyof ClaimChatInboxMessagesErrors];
|
|
7184
|
+
|
|
7185
|
+
export type ClaimChatInboxMessagesResponses = {
|
|
7186
|
+
/**
|
|
7187
|
+
* Claims the project's waiting messages, waiting up to waitMs for one to arrive. Session worker only.
|
|
7188
|
+
*/
|
|
7189
|
+
200: {
|
|
7190
|
+
messages: Array<{
|
|
7191
|
+
id: string;
|
|
7192
|
+
chatId: string;
|
|
7193
|
+
senderDazlId: string;
|
|
7194
|
+
text: string;
|
|
7195
|
+
attempts: number;
|
|
7196
|
+
attempt: number;
|
|
7197
|
+
createdAt: string;
|
|
7198
|
+
}>;
|
|
7199
|
+
};
|
|
7200
|
+
};
|
|
7201
|
+
|
|
7202
|
+
export type ClaimChatInboxMessagesResponse = ClaimChatInboxMessagesResponses[keyof ClaimChatInboxMessagesResponses];
|
|
7203
|
+
|
|
7204
|
+
export type CompleteChatInboxMessageData = {
|
|
7205
|
+
body: {
|
|
7206
|
+
workerId: string;
|
|
7207
|
+
attempt: number;
|
|
7208
|
+
outcome: 'delivered' | 'refused' | 'failed';
|
|
7209
|
+
error?: string;
|
|
7210
|
+
};
|
|
7211
|
+
path: {
|
|
7212
|
+
projectId: string;
|
|
7213
|
+
messageId: string;
|
|
7214
|
+
};
|
|
7215
|
+
query?: never;
|
|
7216
|
+
url: '/chat-inbox/project/{projectId}/messages/{messageId}/complete';
|
|
7217
|
+
};
|
|
7218
|
+
|
|
7219
|
+
export type CompleteChatInboxMessageErrors = {
|
|
7220
|
+
/**
|
|
7221
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7222
|
+
*/
|
|
7223
|
+
400: {
|
|
7224
|
+
message: string;
|
|
7225
|
+
issues?: string;
|
|
7226
|
+
};
|
|
7227
|
+
/**
|
|
7228
|
+
* Unauthorized
|
|
7229
|
+
*/
|
|
7230
|
+
401: ErrorResponse;
|
|
7231
|
+
/**
|
|
7232
|
+
* Forbidden
|
|
7233
|
+
*/
|
|
7234
|
+
403: ErrorResponse;
|
|
7235
|
+
/**
|
|
7236
|
+
* Not Found
|
|
7237
|
+
*/
|
|
7238
|
+
404: ErrorResponse;
|
|
7239
|
+
/**
|
|
7240
|
+
* Conflict
|
|
7241
|
+
*/
|
|
7242
|
+
409: ErrorResponse;
|
|
7243
|
+
/**
|
|
7244
|
+
* Internal server error
|
|
7245
|
+
*/
|
|
7246
|
+
500: ErrorResponse;
|
|
7247
|
+
/**
|
|
7248
|
+
* Service Unavailable
|
|
7249
|
+
*/
|
|
7250
|
+
503: ErrorResponse;
|
|
7251
|
+
};
|
|
7252
|
+
|
|
7253
|
+
export type CompleteChatInboxMessageError = CompleteChatInboxMessageErrors[keyof CompleteChatInboxMessageErrors];
|
|
7254
|
+
|
|
7255
|
+
export type CompleteChatInboxMessageResponses = {
|
|
7256
|
+
/**
|
|
7257
|
+
* Settles a claimed message: delivered, refused by the chat, or failed (retried while attempts remain). Session worker only.
|
|
7258
|
+
*/
|
|
7259
|
+
200: {
|
|
7260
|
+
status: 'delivered' | 'failed' | 'pending';
|
|
7261
|
+
};
|
|
7262
|
+
};
|
|
7263
|
+
|
|
7264
|
+
export type CompleteChatInboxMessageResponse = CompleteChatInboxMessageResponses[keyof CompleteChatInboxMessageResponses];
|
|
7265
|
+
|
|
7070
7266
|
export type GetUploadConfigurationData = {
|
|
7071
7267
|
body: {
|
|
7072
7268
|
/**
|
|
@@ -10214,6 +10410,62 @@ export type SetWorkflowHarnessResponses = {
|
|
|
10214
10410
|
|
|
10215
10411
|
export type SetWorkflowHarnessResponse = SetWorkflowHarnessResponses[keyof SetWorkflowHarnessResponses];
|
|
10216
10412
|
|
|
10413
|
+
export type SetWorkflowRunNameData = {
|
|
10414
|
+
body: SetWorkflowRunNameInput;
|
|
10415
|
+
path: {
|
|
10416
|
+
runId: string;
|
|
10417
|
+
};
|
|
10418
|
+
query?: never;
|
|
10419
|
+
url: '/workflow/runs/{runId}/name';
|
|
10420
|
+
};
|
|
10421
|
+
|
|
10422
|
+
export type SetWorkflowRunNameErrors = {
|
|
10423
|
+
/**
|
|
10424
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10425
|
+
*/
|
|
10426
|
+
400: {
|
|
10427
|
+
message: string;
|
|
10428
|
+
issues?: string;
|
|
10429
|
+
};
|
|
10430
|
+
/**
|
|
10431
|
+
* Unauthorized
|
|
10432
|
+
*/
|
|
10433
|
+
401: ErrorResponse;
|
|
10434
|
+
/**
|
|
10435
|
+
* Forbidden
|
|
10436
|
+
*/
|
|
10437
|
+
403: ErrorResponse;
|
|
10438
|
+
/**
|
|
10439
|
+
* Not Found
|
|
10440
|
+
*/
|
|
10441
|
+
404: ErrorResponse;
|
|
10442
|
+
/**
|
|
10443
|
+
* Conflict
|
|
10444
|
+
*/
|
|
10445
|
+
409: ErrorResponse;
|
|
10446
|
+
/**
|
|
10447
|
+
* Internal server error
|
|
10448
|
+
*/
|
|
10449
|
+
500: ErrorResponse;
|
|
10450
|
+
/**
|
|
10451
|
+
* Service Unavailable
|
|
10452
|
+
*/
|
|
10453
|
+
503: ErrorResponse;
|
|
10454
|
+
};
|
|
10455
|
+
|
|
10456
|
+
export type SetWorkflowRunNameError = SetWorkflowRunNameErrors[keyof SetWorkflowRunNameErrors];
|
|
10457
|
+
|
|
10458
|
+
export type SetWorkflowRunNameResponses = {
|
|
10459
|
+
/**
|
|
10460
|
+
* Sets a run's display name
|
|
10461
|
+
*/
|
|
10462
|
+
200: {
|
|
10463
|
+
name: string;
|
|
10464
|
+
};
|
|
10465
|
+
};
|
|
10466
|
+
|
|
10467
|
+
export type SetWorkflowRunNameResponse = SetWorkflowRunNameResponses[keyof SetWorkflowRunNameResponses];
|
|
10468
|
+
|
|
10217
10469
|
export type ReportWorkflowNodeResultData = {
|
|
10218
10470
|
body: WorkflowNodeResultInput;
|
|
10219
10471
|
path: {
|
package/src/public/types.gen.ts
CHANGED
|
@@ -188,7 +188,7 @@ export type TextGenerationUsage = {
|
|
|
188
188
|
/**
|
|
189
189
|
* Model that actually served the request
|
|
190
190
|
*/
|
|
191
|
-
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-
|
|
191
|
+
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-5-5-anthropic' | 'claude-haiku-5-5-vertex' | 'gemini-3-0-flash-vertex' | 'gemini-3-5-flash-vertex' | 'gemini-3-1-pro-vertex' | 'qwen-3-coder-openrouter' | 'qwen-3-coder-next-openrouter' | 'qwen-3-6-plus-openrouter' | 'qwen-3-5-flash-openrouter' | 'grok-code-fast-openrouter' | 'deepseek-v3-1-openrouter' | 'deepseek-v4-pro-openrouter' | 'deepseek-v4-flash-openrouter' | 'kimi-k-2-6-openrouter' | 'gpt-5-5-bedrock' | 'gpt-5-4-bedrock' | 'grok-4-3-bedrock' | 'glm-5-bedrock' | 'gpt-5-4-nano-openrouter' | 'gpt-5-4-mini-openrouter' | 'gpt-5-3-codex-openrouter' | 'minimax-m-2-7-openrouter' | 'hy3-preview-openrouter' | 'gemini-3-0-pro-image' | 'gemini-3-1-flash-image';
|
|
192
192
|
inputTokens: number;
|
|
193
193
|
inputTokensCost: number;
|
|
194
194
|
outputTokens: number;
|
|
@@ -220,7 +220,7 @@ export type GenerateTextRequest = {
|
|
|
220
220
|
/**
|
|
221
221
|
* Primary model id
|
|
222
222
|
*/
|
|
223
|
-
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-
|
|
223
|
+
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-5-5-anthropic' | 'claude-haiku-5-5-vertex' | 'gemini-3-0-flash-vertex' | 'gemini-3-5-flash-vertex' | 'gemini-3-1-pro-vertex' | 'qwen-3-coder-openrouter' | 'qwen-3-coder-next-openrouter' | 'qwen-3-6-plus-openrouter' | 'qwen-3-5-flash-openrouter' | 'grok-code-fast-openrouter' | 'deepseek-v3-1-openrouter' | 'deepseek-v4-pro-openrouter' | 'deepseek-v4-flash-openrouter' | 'kimi-k-2-6-openrouter' | 'gpt-5-5-bedrock' | 'gpt-5-4-bedrock' | 'grok-4-3-bedrock' | 'glm-5-bedrock' | 'gpt-5-4-nano-openrouter' | 'gpt-5-4-mini-openrouter' | 'gpt-5-3-codex-openrouter' | 'minimax-m-2-7-openrouter' | 'hy3-preview-openrouter' | 'gemini-3-0-pro-image' | 'gemini-3-1-flash-image';
|
|
224
224
|
/**
|
|
225
225
|
* Ordered fallback models, tried when the primary model fails before any output is produced
|
|
226
226
|
*/
|
|
@@ -255,7 +255,7 @@ export type GenerateTextRequest = {
|
|
|
255
255
|
opId?: string;
|
|
256
256
|
};
|
|
257
257
|
|
|
258
|
-
export type TextGenerationModelId = 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-
|
|
258
|
+
export type TextGenerationModelId = 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-5-5-anthropic' | 'claude-haiku-5-5-vertex' | 'gemini-3-0-flash-vertex' | 'gemini-3-5-flash-vertex' | 'gemini-3-1-pro-vertex' | 'qwen-3-coder-openrouter' | 'qwen-3-coder-next-openrouter' | 'qwen-3-6-plus-openrouter' | 'qwen-3-5-flash-openrouter' | 'grok-code-fast-openrouter' | 'deepseek-v3-1-openrouter' | 'deepseek-v4-pro-openrouter' | 'deepseek-v4-flash-openrouter' | 'kimi-k-2-6-openrouter' | 'gpt-5-5-bedrock' | 'gpt-5-4-bedrock' | 'grok-4-3-bedrock' | 'glm-5-bedrock' | 'gpt-5-4-nano-openrouter' | 'gpt-5-4-mini-openrouter' | 'gpt-5-3-codex-openrouter' | 'minimax-m-2-7-openrouter' | 'hy3-preview-openrouter' | 'gemini-3-0-pro-image' | 'gemini-3-1-flash-image';
|
|
259
259
|
|
|
260
260
|
export type ModelMessage = ({
|
|
261
261
|
role: 'user';
|
|
@@ -415,7 +415,7 @@ export type StreamTextRequest = {
|
|
|
415
415
|
/**
|
|
416
416
|
* Primary model id
|
|
417
417
|
*/
|
|
418
|
-
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-
|
|
418
|
+
model: 'claude-sonnet-5-5-anthropic' | 'claude-sonnet-5-5-vertex' | 'claude-sonnet-4-6-anthropic' | 'claude-sonnet-4-6-vertex' | 'claude-opus-4-8-anthropic' | 'claude-opus-4-8-vertex' | 'claude-opus-4-7-anthropic' | 'claude-opus-4-7-vertex' | 'claude-haiku-5-5-anthropic' | 'claude-haiku-5-5-vertex' | 'gemini-3-0-flash-vertex' | 'gemini-3-5-flash-vertex' | 'gemini-3-1-pro-vertex' | 'qwen-3-coder-openrouter' | 'qwen-3-coder-next-openrouter' | 'qwen-3-6-plus-openrouter' | 'qwen-3-5-flash-openrouter' | 'grok-code-fast-openrouter' | 'deepseek-v3-1-openrouter' | 'deepseek-v4-pro-openrouter' | 'deepseek-v4-flash-openrouter' | 'kimi-k-2-6-openrouter' | 'gpt-5-5-bedrock' | 'gpt-5-4-bedrock' | 'grok-4-3-bedrock' | 'glm-5-bedrock' | 'gpt-5-4-nano-openrouter' | 'gpt-5-4-mini-openrouter' | 'gpt-5-3-codex-openrouter' | 'minimax-m-2-7-openrouter' | 'hy3-preview-openrouter' | 'gemini-3-0-pro-image' | 'gemini-3-1-flash-image';
|
|
419
419
|
/**
|
|
420
420
|
* Ordered fallback models, tried when the primary model fails before any output is produced
|
|
421
421
|
*/
|