@zocomputer/system-api 0.2.0 → 0.3.0
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/generate/cli.js +2 -2
- package/dist/generated/catalog.js +6 -0
- package/dist/generated/manifest.json +7 -2
- package/dist/generated/operations.d.ts +147 -0
- package/dist/generated/schema.json +553 -0
- package/openapi.json +553 -0
- package/package.json +1 -1
package/dist/generate/cli.js
CHANGED
|
@@ -33,11 +33,11 @@ class CliError extends Error {
|
|
|
33
33
|
*/
|
|
34
34
|
const MAX_EXPORT_BYTES = 4 * 1024 * 1024;
|
|
35
35
|
/**
|
|
36
|
-
* Client deadline for the export request. The service bounds its own work at
|
|
36
|
+
* Client deadline for the export request. The service bounds its own work at 210s
|
|
37
37
|
* (MAX_REQUEST_SECONDS); this leaves margin for the round trip, but a truly
|
|
38
38
|
* stalled endpoint can never hang the CLI forever.
|
|
39
39
|
*/
|
|
40
|
-
const EXPORT_TIMEOUT_MS =
|
|
40
|
+
const EXPORT_TIMEOUT_MS = 240_000;
|
|
41
41
|
function parseArgs(argv) {
|
|
42
42
|
const flags = new Map();
|
|
43
43
|
let check = false;
|
|
@@ -474,6 +474,12 @@ export const catalog = defineCatalog({
|
|
|
474
474
|
1: { digest: "sha256:aadcb480b26c475386eb47a4694a413a0b118969638cd9bfd9d9e5d68b5f758e" },
|
|
475
475
|
},
|
|
476
476
|
},
|
|
477
|
+
"zo.model.list": {
|
|
478
|
+
defaultVersion: 1,
|
|
479
|
+
versions: {
|
|
480
|
+
1: { digest: "sha256:33b88b18e759ba942f7bf344798e5f693926666a1bc2947b75b1c1cc6e1a8fbc" },
|
|
481
|
+
},
|
|
482
|
+
},
|
|
477
483
|
"zo.oauth_app.create": {
|
|
478
484
|
defaultVersion: 1,
|
|
479
485
|
versions: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generatorVersion": "0.1.0",
|
|
3
|
-
"schemaDigest": "sha256:
|
|
4
|
-
"bundleDigest": "sha256:
|
|
3
|
+
"schemaDigest": "sha256:f3723f93d9d519ebe2517e16cb3db50c99b38e60b9705187006ada3eaeb4e391",
|
|
4
|
+
"bundleDigest": "sha256:3a231dad9b11d51ce7019ce70c98d528eb3ee3144152814edc44a8c0ceaa1302",
|
|
5
5
|
"actions": [
|
|
6
6
|
{
|
|
7
7
|
"action": "zo.activity.list",
|
|
@@ -403,6 +403,11 @@
|
|
|
403
403
|
"version": 1,
|
|
404
404
|
"digest": "sha256:aadcb480b26c475386eb47a4694a413a0b118969638cd9bfd9d9e5d68b5f758e"
|
|
405
405
|
},
|
|
406
|
+
{
|
|
407
|
+
"action": "zo.model.list",
|
|
408
|
+
"version": 1,
|
|
409
|
+
"digest": "sha256:33b88b18e759ba942f7bf344798e5f693926666a1bc2947b75b1c1cc6e1a8fbc"
|
|
410
|
+
},
|
|
406
411
|
{
|
|
407
412
|
"action": "zo.oauth_app.create",
|
|
408
413
|
"version": 1,
|
|
@@ -4372,6 +4372,145 @@ export interface ZoMessageGetOutputV1MessageDelivery {
|
|
|
4372
4372
|
*/
|
|
4373
4373
|
reasoning: (string | null);
|
|
4374
4374
|
}
|
|
4375
|
+
export interface ZoModelListInputV1 {
|
|
4376
|
+
workspace_id: string;
|
|
4377
|
+
}
|
|
4378
|
+
export interface ZoModelListOutputV1 {
|
|
4379
|
+
models: ZoModelListOutputV1ModelEntry[];
|
|
4380
|
+
next_cursor: (string | null);
|
|
4381
|
+
}
|
|
4382
|
+
export interface ZoModelListOutputV1ModelEntry {
|
|
4383
|
+
/**
|
|
4384
|
+
* The ID to pass as model.
|
|
4385
|
+
*/
|
|
4386
|
+
id: string;
|
|
4387
|
+
display_name: string;
|
|
4388
|
+
provider: string;
|
|
4389
|
+
capabilities: ("text" | "structured_output" | "embedding" | "rerank" | "image" | "speech" | "transcription" | "video")[];
|
|
4390
|
+
/**
|
|
4391
|
+
* Media types the model accepts in file parts, such as image/* and text/*.
|
|
4392
|
+
*/
|
|
4393
|
+
input_media: string[];
|
|
4394
|
+
context_window_tokens: (number | null);
|
|
4395
|
+
max_output_tokens: (number | null);
|
|
4396
|
+
/**
|
|
4397
|
+
* The reasoning levels the model offers. Empty when it has none.
|
|
4398
|
+
*/
|
|
4399
|
+
reasoning_levels: string[];
|
|
4400
|
+
/**
|
|
4401
|
+
* Every setting the model accepts, with its allowed values. A setting not listed is refused with invalid_input before the call.
|
|
4402
|
+
*/
|
|
4403
|
+
settings: ZoModelListOutputV1ModelSetting[];
|
|
4404
|
+
/**
|
|
4405
|
+
* Named limits for the model's actions, such as max_values.
|
|
4406
|
+
*/
|
|
4407
|
+
limits: {
|
|
4408
|
+
[k: string]: number;
|
|
4409
|
+
};
|
|
4410
|
+
/**
|
|
4411
|
+
* Every rate the model is billed at, the rows zo.billing.list_rates returns for it. A call is charged at the rates whose conditions it meets.
|
|
4412
|
+
*/
|
|
4413
|
+
prices: ZoModelListOutputV1ModelPrice[];
|
|
4414
|
+
status: ("available" | "deprecated");
|
|
4415
|
+
}
|
|
4416
|
+
/**
|
|
4417
|
+
* One setting the model accepts and the values it allows.
|
|
4418
|
+
*/
|
|
4419
|
+
export interface ZoModelListOutputV1ModelSetting {
|
|
4420
|
+
/**
|
|
4421
|
+
* The input field, such as temperature or reasoning.
|
|
4422
|
+
*/
|
|
4423
|
+
name: string;
|
|
4424
|
+
/**
|
|
4425
|
+
* The smallest allowed value, as a decimal string.
|
|
4426
|
+
*/
|
|
4427
|
+
minimum: (string | null);
|
|
4428
|
+
/**
|
|
4429
|
+
* The largest allowed value, as a decimal string.
|
|
4430
|
+
*/
|
|
4431
|
+
maximum: (string | null);
|
|
4432
|
+
/**
|
|
4433
|
+
* The most items a list setting takes.
|
|
4434
|
+
*/
|
|
4435
|
+
max_items: (number | null);
|
|
4436
|
+
/**
|
|
4437
|
+
* The allowed values of a string setting.
|
|
4438
|
+
*/
|
|
4439
|
+
values: (string[] | null);
|
|
4440
|
+
}
|
|
4441
|
+
/**
|
|
4442
|
+
* One of the model's rates: the row ``zo.billing.list_rates`` returns for it.
|
|
4443
|
+
*/
|
|
4444
|
+
export interface ZoModelListOutputV1ModelPrice {
|
|
4445
|
+
/**
|
|
4446
|
+
* The rate's key in zo.billing.list_rates.
|
|
4447
|
+
*/
|
|
4448
|
+
rate_key: string;
|
|
4449
|
+
/**
|
|
4450
|
+
* The usage meter the rate prices, as zo.billing.list_rates names it.
|
|
4451
|
+
*/
|
|
4452
|
+
meter: string;
|
|
4453
|
+
/**
|
|
4454
|
+
* What one billed unit is. input, output, cache_read and cache_write are tokens: the usage fields input_tokens, output_tokens, cache_read_tokens and cache_write_tokens. request is one generated output, such as an image or a video.
|
|
4455
|
+
*/
|
|
4456
|
+
unit: ("input" | "output" | "cache_read" | "cache_write" | "request" | "character" | "millisecond" | "audio_minute" | "megapixel" | "video_second");
|
|
4457
|
+
/**
|
|
4458
|
+
* The workspace's current price for per units, as a decimal string.
|
|
4459
|
+
*/
|
|
4460
|
+
usd: string;
|
|
4461
|
+
/**
|
|
4462
|
+
* How many units usd is for: 1000000 for tokens.
|
|
4463
|
+
*/
|
|
4464
|
+
per: string;
|
|
4465
|
+
conditions: ZoModelListOutputV1RateConditions;
|
|
4466
|
+
}
|
|
4467
|
+
/**
|
|
4468
|
+
* When the rate applies, as zo.billing.list_rates gives it: input-token tiers for text models; operation, selector, resolution, quality, duration and quantity bounds for media models.
|
|
4469
|
+
*/
|
|
4470
|
+
export interface ZoModelListOutputV1RateConditions {
|
|
4471
|
+
/**
|
|
4472
|
+
* Inclusive request-size lower bound.
|
|
4473
|
+
*/
|
|
4474
|
+
request_input_tokens_min?: (number | null);
|
|
4475
|
+
/**
|
|
4476
|
+
* Exclusive request-size upper bound.
|
|
4477
|
+
*/
|
|
4478
|
+
request_input_tokens_max?: (number | null);
|
|
4479
|
+
/**
|
|
4480
|
+
* The matching tier prices the whole request.
|
|
4481
|
+
*/
|
|
4482
|
+
whole_request?: boolean;
|
|
4483
|
+
operation?: (string | null);
|
|
4484
|
+
resolution?: (string | null);
|
|
4485
|
+
quality?: (string | null);
|
|
4486
|
+
duration_seconds?: (string | null);
|
|
4487
|
+
quantity_min?: (string | null);
|
|
4488
|
+
quantity_max?: (string | null);
|
|
4489
|
+
included_quantity?: (string | null);
|
|
4490
|
+
default_quantity?: (string | null);
|
|
4491
|
+
quantity_argument?: (string | null);
|
|
4492
|
+
selector?: {
|
|
4493
|
+
[k: string]: JsonValue;
|
|
4494
|
+
};
|
|
4495
|
+
rounding?: ("none" | "ceil_step");
|
|
4496
|
+
}
|
|
4497
|
+
export interface ZoModelListQueryV1 {
|
|
4498
|
+
/**
|
|
4499
|
+
* Rows per page, at most 200; a larger value is reduced to it.
|
|
4500
|
+
*/
|
|
4501
|
+
limit?: number;
|
|
4502
|
+
/**
|
|
4503
|
+
* The previous page's next_cursor, sent with the same sort, filter and search.
|
|
4504
|
+
*/
|
|
4505
|
+
cursor?: string;
|
|
4506
|
+
sort?: "id.asc";
|
|
4507
|
+
filter?: {
|
|
4508
|
+
/**
|
|
4509
|
+
* Only models with this capability.
|
|
4510
|
+
*/
|
|
4511
|
+
capability?: (("text" | "structured_output" | "embedding" | "rerank" | "image" | "speech" | "transcription" | "video") | null);
|
|
4512
|
+
};
|
|
4513
|
+
}
|
|
4375
4514
|
export interface ZoOauthAppCreateInputV1 {
|
|
4376
4515
|
workspace_id: string;
|
|
4377
4516
|
provider: string;
|
|
@@ -9037,6 +9176,13 @@ export type Operations = {
|
|
|
9037
9176
|
output: ZoMessageGetOutputV1;
|
|
9038
9177
|
};
|
|
9039
9178
|
};
|
|
9179
|
+
"zo.model.list": {
|
|
9180
|
+
1: {
|
|
9181
|
+
input: ZoModelListInputV1;
|
|
9182
|
+
output: ZoModelListOutputV1;
|
|
9183
|
+
query: ZoModelListQueryV1;
|
|
9184
|
+
};
|
|
9185
|
+
};
|
|
9040
9186
|
"zo.oauth_app.create": {
|
|
9041
9187
|
1: {
|
|
9042
9188
|
input: ZoOauthAppCreateInputV1;
|
|
@@ -9543,6 +9689,7 @@ export type DefaultVersions = {
|
|
|
9543
9689
|
"zo.machine_image.list": 1;
|
|
9544
9690
|
"zo.machine_image.update": 1;
|
|
9545
9691
|
"zo.message.get": 1;
|
|
9692
|
+
"zo.model.list": 1;
|
|
9546
9693
|
"zo.oauth_app.create": 1;
|
|
9547
9694
|
"zo.oauth_app.delete": 1;
|
|
9548
9695
|
"zo.oauth_app.get": 1;
|
|
@@ -21141,6 +21141,501 @@
|
|
|
21141
21141
|
],
|
|
21142
21142
|
"digest": "sha256:aadcb480b26c475386eb47a4694a413a0b118969638cd9bfd9d9e5d68b5f758e"
|
|
21143
21143
|
},
|
|
21144
|
+
{
|
|
21145
|
+
"name": "zo.model.list",
|
|
21146
|
+
"version": 1,
|
|
21147
|
+
"publisher": "zo",
|
|
21148
|
+
"description": "List the models this workspace can call, each with its ID, capabilities, accepted file types, reasoning levels, limits and current prices.",
|
|
21149
|
+
"input_schema": {
|
|
21150
|
+
"additionalProperties": false,
|
|
21151
|
+
"properties": {
|
|
21152
|
+
"workspace_id": {
|
|
21153
|
+
"maxLength": 200,
|
|
21154
|
+
"minLength": 1,
|
|
21155
|
+
"title": "Workspace Id",
|
|
21156
|
+
"type": "string"
|
|
21157
|
+
}
|
|
21158
|
+
},
|
|
21159
|
+
"required": [
|
|
21160
|
+
"workspace_id"
|
|
21161
|
+
],
|
|
21162
|
+
"title": "ModelListInput",
|
|
21163
|
+
"type": "object"
|
|
21164
|
+
},
|
|
21165
|
+
"output_schema": {
|
|
21166
|
+
"additionalProperties": false,
|
|
21167
|
+
"properties": {
|
|
21168
|
+
"models": {
|
|
21169
|
+
"items": {
|
|
21170
|
+
"$ref": "#/$defs/ModelEntry"
|
|
21171
|
+
},
|
|
21172
|
+
"title": "Models",
|
|
21173
|
+
"type": "array"
|
|
21174
|
+
},
|
|
21175
|
+
"next_cursor": {
|
|
21176
|
+
"anyOf": [
|
|
21177
|
+
{
|
|
21178
|
+
"type": "string"
|
|
21179
|
+
},
|
|
21180
|
+
{
|
|
21181
|
+
"type": "null"
|
|
21182
|
+
}
|
|
21183
|
+
],
|
|
21184
|
+
"title": "Next Cursor"
|
|
21185
|
+
}
|
|
21186
|
+
},
|
|
21187
|
+
"required": [
|
|
21188
|
+
"models",
|
|
21189
|
+
"next_cursor"
|
|
21190
|
+
],
|
|
21191
|
+
"title": "ModelListResult",
|
|
21192
|
+
"type": "object",
|
|
21193
|
+
"$defs": {
|
|
21194
|
+
"ModelEntry": {
|
|
21195
|
+
"additionalProperties": false,
|
|
21196
|
+
"properties": {
|
|
21197
|
+
"id": {
|
|
21198
|
+
"description": "The ID to pass as model.",
|
|
21199
|
+
"title": "Id",
|
|
21200
|
+
"type": "string"
|
|
21201
|
+
},
|
|
21202
|
+
"display_name": {
|
|
21203
|
+
"title": "Display Name",
|
|
21204
|
+
"type": "string"
|
|
21205
|
+
},
|
|
21206
|
+
"provider": {
|
|
21207
|
+
"title": "Provider",
|
|
21208
|
+
"type": "string"
|
|
21209
|
+
},
|
|
21210
|
+
"capabilities": {
|
|
21211
|
+
"items": {
|
|
21212
|
+
"enum": [
|
|
21213
|
+
"text",
|
|
21214
|
+
"structured_output",
|
|
21215
|
+
"embedding",
|
|
21216
|
+
"rerank",
|
|
21217
|
+
"image",
|
|
21218
|
+
"speech",
|
|
21219
|
+
"transcription",
|
|
21220
|
+
"video"
|
|
21221
|
+
],
|
|
21222
|
+
"type": "string"
|
|
21223
|
+
},
|
|
21224
|
+
"title": "Capabilities",
|
|
21225
|
+
"type": "array"
|
|
21226
|
+
},
|
|
21227
|
+
"input_media": {
|
|
21228
|
+
"description": "Media types the model accepts in file parts, such as image/* and text/*.",
|
|
21229
|
+
"items": {
|
|
21230
|
+
"type": "string"
|
|
21231
|
+
},
|
|
21232
|
+
"title": "Input Media",
|
|
21233
|
+
"type": "array"
|
|
21234
|
+
},
|
|
21235
|
+
"context_window_tokens": {
|
|
21236
|
+
"anyOf": [
|
|
21237
|
+
{
|
|
21238
|
+
"type": "integer"
|
|
21239
|
+
},
|
|
21240
|
+
{
|
|
21241
|
+
"type": "null"
|
|
21242
|
+
}
|
|
21243
|
+
],
|
|
21244
|
+
"title": "Context Window Tokens"
|
|
21245
|
+
},
|
|
21246
|
+
"max_output_tokens": {
|
|
21247
|
+
"anyOf": [
|
|
21248
|
+
{
|
|
21249
|
+
"type": "integer"
|
|
21250
|
+
},
|
|
21251
|
+
{
|
|
21252
|
+
"type": "null"
|
|
21253
|
+
}
|
|
21254
|
+
],
|
|
21255
|
+
"title": "Max Output Tokens"
|
|
21256
|
+
},
|
|
21257
|
+
"reasoning_levels": {
|
|
21258
|
+
"description": "The reasoning levels the model offers. Empty when it has none.",
|
|
21259
|
+
"items": {
|
|
21260
|
+
"type": "string"
|
|
21261
|
+
},
|
|
21262
|
+
"title": "Reasoning Levels",
|
|
21263
|
+
"type": "array"
|
|
21264
|
+
},
|
|
21265
|
+
"settings": {
|
|
21266
|
+
"description": "Every setting the model accepts, with its allowed values. A setting not listed is refused with invalid_input before the call.",
|
|
21267
|
+
"items": {
|
|
21268
|
+
"$ref": "#/$defs/ModelSetting"
|
|
21269
|
+
},
|
|
21270
|
+
"title": "Settings",
|
|
21271
|
+
"type": "array"
|
|
21272
|
+
},
|
|
21273
|
+
"limits": {
|
|
21274
|
+
"additionalProperties": {
|
|
21275
|
+
"type": "integer"
|
|
21276
|
+
},
|
|
21277
|
+
"description": "Named limits for the model's actions, such as max_values.",
|
|
21278
|
+
"title": "Limits",
|
|
21279
|
+
"type": "object"
|
|
21280
|
+
},
|
|
21281
|
+
"prices": {
|
|
21282
|
+
"description": "Every rate the model is billed at, the rows zo.billing.list_rates returns for it. A call is charged at the rates whose conditions it meets.",
|
|
21283
|
+
"items": {
|
|
21284
|
+
"$ref": "#/$defs/ModelPrice"
|
|
21285
|
+
},
|
|
21286
|
+
"title": "Prices",
|
|
21287
|
+
"type": "array"
|
|
21288
|
+
},
|
|
21289
|
+
"status": {
|
|
21290
|
+
"enum": [
|
|
21291
|
+
"available",
|
|
21292
|
+
"deprecated"
|
|
21293
|
+
],
|
|
21294
|
+
"title": "Status",
|
|
21295
|
+
"type": "string"
|
|
21296
|
+
}
|
|
21297
|
+
},
|
|
21298
|
+
"required": [
|
|
21299
|
+
"id",
|
|
21300
|
+
"display_name",
|
|
21301
|
+
"provider",
|
|
21302
|
+
"capabilities",
|
|
21303
|
+
"input_media",
|
|
21304
|
+
"context_window_tokens",
|
|
21305
|
+
"max_output_tokens",
|
|
21306
|
+
"reasoning_levels",
|
|
21307
|
+
"settings",
|
|
21308
|
+
"limits",
|
|
21309
|
+
"prices",
|
|
21310
|
+
"status"
|
|
21311
|
+
],
|
|
21312
|
+
"title": "ModelEntry",
|
|
21313
|
+
"type": "object"
|
|
21314
|
+
},
|
|
21315
|
+
"ModelPrice": {
|
|
21316
|
+
"additionalProperties": false,
|
|
21317
|
+
"description": "One of the model's rates: the row ``zo.billing.list_rates`` returns for it.",
|
|
21318
|
+
"properties": {
|
|
21319
|
+
"rate_key": {
|
|
21320
|
+
"description": "The rate's key in zo.billing.list_rates.",
|
|
21321
|
+
"title": "Rate Key",
|
|
21322
|
+
"type": "string"
|
|
21323
|
+
},
|
|
21324
|
+
"meter": {
|
|
21325
|
+
"description": "The usage meter the rate prices, as zo.billing.list_rates names it.",
|
|
21326
|
+
"title": "Meter",
|
|
21327
|
+
"type": "string"
|
|
21328
|
+
},
|
|
21329
|
+
"unit": {
|
|
21330
|
+
"description": "What one billed unit is. input, output, cache_read and cache_write are tokens: the usage fields input_tokens, output_tokens, cache_read_tokens and cache_write_tokens. request is one generated output, such as an image or a video.",
|
|
21331
|
+
"enum": [
|
|
21332
|
+
"input",
|
|
21333
|
+
"output",
|
|
21334
|
+
"cache_read",
|
|
21335
|
+
"cache_write",
|
|
21336
|
+
"request",
|
|
21337
|
+
"character",
|
|
21338
|
+
"millisecond",
|
|
21339
|
+
"audio_minute",
|
|
21340
|
+
"megapixel",
|
|
21341
|
+
"video_second"
|
|
21342
|
+
],
|
|
21343
|
+
"title": "Unit",
|
|
21344
|
+
"type": "string"
|
|
21345
|
+
},
|
|
21346
|
+
"usd": {
|
|
21347
|
+
"description": "The workspace's current price for per units, as a decimal string.",
|
|
21348
|
+
"maxLength": 200,
|
|
21349
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
21350
|
+
"title": "Usd",
|
|
21351
|
+
"type": "string"
|
|
21352
|
+
},
|
|
21353
|
+
"per": {
|
|
21354
|
+
"description": "How many units usd is for: 1000000 for tokens.",
|
|
21355
|
+
"maxLength": 200,
|
|
21356
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
21357
|
+
"title": "Per",
|
|
21358
|
+
"type": "string"
|
|
21359
|
+
},
|
|
21360
|
+
"conditions": {
|
|
21361
|
+
"$ref": "#/$defs/RateConditions",
|
|
21362
|
+
"description": "When the rate applies, as zo.billing.list_rates gives it: input-token tiers for text models; operation, selector, resolution, quality, duration and quantity bounds for media models."
|
|
21363
|
+
}
|
|
21364
|
+
},
|
|
21365
|
+
"required": [
|
|
21366
|
+
"rate_key",
|
|
21367
|
+
"meter",
|
|
21368
|
+
"unit",
|
|
21369
|
+
"usd",
|
|
21370
|
+
"per",
|
|
21371
|
+
"conditions"
|
|
21372
|
+
],
|
|
21373
|
+
"title": "ModelPrice",
|
|
21374
|
+
"type": "object"
|
|
21375
|
+
},
|
|
21376
|
+
"ModelSetting": {
|
|
21377
|
+
"additionalProperties": false,
|
|
21378
|
+
"description": "One setting the model accepts and the values it allows.",
|
|
21379
|
+
"properties": {
|
|
21380
|
+
"name": {
|
|
21381
|
+
"description": "The input field, such as temperature or reasoning.",
|
|
21382
|
+
"title": "Name",
|
|
21383
|
+
"type": "string"
|
|
21384
|
+
},
|
|
21385
|
+
"minimum": {
|
|
21386
|
+
"anyOf": [
|
|
21387
|
+
{
|
|
21388
|
+
"type": "string"
|
|
21389
|
+
},
|
|
21390
|
+
{
|
|
21391
|
+
"type": "null"
|
|
21392
|
+
}
|
|
21393
|
+
],
|
|
21394
|
+
"description": "The smallest allowed value, as a decimal string.",
|
|
21395
|
+
"title": "Minimum"
|
|
21396
|
+
},
|
|
21397
|
+
"maximum": {
|
|
21398
|
+
"anyOf": [
|
|
21399
|
+
{
|
|
21400
|
+
"type": "string"
|
|
21401
|
+
},
|
|
21402
|
+
{
|
|
21403
|
+
"type": "null"
|
|
21404
|
+
}
|
|
21405
|
+
],
|
|
21406
|
+
"description": "The largest allowed value, as a decimal string.",
|
|
21407
|
+
"title": "Maximum"
|
|
21408
|
+
},
|
|
21409
|
+
"max_items": {
|
|
21410
|
+
"anyOf": [
|
|
21411
|
+
{
|
|
21412
|
+
"type": "integer"
|
|
21413
|
+
},
|
|
21414
|
+
{
|
|
21415
|
+
"type": "null"
|
|
21416
|
+
}
|
|
21417
|
+
],
|
|
21418
|
+
"description": "The most items a list setting takes.",
|
|
21419
|
+
"title": "Max Items"
|
|
21420
|
+
},
|
|
21421
|
+
"values": {
|
|
21422
|
+
"anyOf": [
|
|
21423
|
+
{
|
|
21424
|
+
"items": {
|
|
21425
|
+
"type": "string"
|
|
21426
|
+
},
|
|
21427
|
+
"type": "array"
|
|
21428
|
+
},
|
|
21429
|
+
{
|
|
21430
|
+
"type": "null"
|
|
21431
|
+
}
|
|
21432
|
+
],
|
|
21433
|
+
"description": "The allowed values of a string setting.",
|
|
21434
|
+
"title": "Values"
|
|
21435
|
+
}
|
|
21436
|
+
},
|
|
21437
|
+
"required": [
|
|
21438
|
+
"name",
|
|
21439
|
+
"minimum",
|
|
21440
|
+
"maximum",
|
|
21441
|
+
"max_items",
|
|
21442
|
+
"values"
|
|
21443
|
+
],
|
|
21444
|
+
"title": "ModelSetting",
|
|
21445
|
+
"type": "object"
|
|
21446
|
+
},
|
|
21447
|
+
"RateConditions": {
|
|
21448
|
+
"additionalProperties": false,
|
|
21449
|
+
"properties": {
|
|
21450
|
+
"request_input_tokens_min": {
|
|
21451
|
+
"anyOf": [
|
|
21452
|
+
{
|
|
21453
|
+
"minimum": 0,
|
|
21454
|
+
"type": "integer"
|
|
21455
|
+
},
|
|
21456
|
+
{
|
|
21457
|
+
"type": "null"
|
|
21458
|
+
}
|
|
21459
|
+
],
|
|
21460
|
+
"default": null,
|
|
21461
|
+
"description": "Inclusive request-size lower bound.",
|
|
21462
|
+
"title": "Request Input Tokens Min"
|
|
21463
|
+
},
|
|
21464
|
+
"request_input_tokens_max": {
|
|
21465
|
+
"anyOf": [
|
|
21466
|
+
{
|
|
21467
|
+
"minimum": 0,
|
|
21468
|
+
"type": "integer"
|
|
21469
|
+
},
|
|
21470
|
+
{
|
|
21471
|
+
"type": "null"
|
|
21472
|
+
}
|
|
21473
|
+
],
|
|
21474
|
+
"default": null,
|
|
21475
|
+
"description": "Exclusive request-size upper bound.",
|
|
21476
|
+
"title": "Request Input Tokens Max"
|
|
21477
|
+
},
|
|
21478
|
+
"whole_request": {
|
|
21479
|
+
"default": true,
|
|
21480
|
+
"description": "The matching tier prices the whole request.",
|
|
21481
|
+
"title": "Whole Request",
|
|
21482
|
+
"type": "boolean"
|
|
21483
|
+
},
|
|
21484
|
+
"operation": {
|
|
21485
|
+
"anyOf": [
|
|
21486
|
+
{
|
|
21487
|
+
"type": "string"
|
|
21488
|
+
},
|
|
21489
|
+
{
|
|
21490
|
+
"type": "null"
|
|
21491
|
+
}
|
|
21492
|
+
],
|
|
21493
|
+
"default": null,
|
|
21494
|
+
"title": "Operation"
|
|
21495
|
+
},
|
|
21496
|
+
"resolution": {
|
|
21497
|
+
"anyOf": [
|
|
21498
|
+
{
|
|
21499
|
+
"type": "string"
|
|
21500
|
+
},
|
|
21501
|
+
{
|
|
21502
|
+
"type": "null"
|
|
21503
|
+
}
|
|
21504
|
+
],
|
|
21505
|
+
"default": null,
|
|
21506
|
+
"title": "Resolution"
|
|
21507
|
+
},
|
|
21508
|
+
"quality": {
|
|
21509
|
+
"anyOf": [
|
|
21510
|
+
{
|
|
21511
|
+
"type": "string"
|
|
21512
|
+
},
|
|
21513
|
+
{
|
|
21514
|
+
"type": "null"
|
|
21515
|
+
}
|
|
21516
|
+
],
|
|
21517
|
+
"default": null,
|
|
21518
|
+
"title": "Quality"
|
|
21519
|
+
},
|
|
21520
|
+
"duration_seconds": {
|
|
21521
|
+
"anyOf": [
|
|
21522
|
+
{
|
|
21523
|
+
"maxLength": 200,
|
|
21524
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
21525
|
+
"type": "string"
|
|
21526
|
+
},
|
|
21527
|
+
{
|
|
21528
|
+
"type": "null"
|
|
21529
|
+
}
|
|
21530
|
+
],
|
|
21531
|
+
"default": null,
|
|
21532
|
+
"title": "Duration Seconds"
|
|
21533
|
+
},
|
|
21534
|
+
"quantity_min": {
|
|
21535
|
+
"anyOf": [
|
|
21536
|
+
{
|
|
21537
|
+
"maxLength": 200,
|
|
21538
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
21539
|
+
"type": "string"
|
|
21540
|
+
},
|
|
21541
|
+
{
|
|
21542
|
+
"type": "null"
|
|
21543
|
+
}
|
|
21544
|
+
],
|
|
21545
|
+
"default": null,
|
|
21546
|
+
"title": "Quantity Min"
|
|
21547
|
+
},
|
|
21548
|
+
"quantity_max": {
|
|
21549
|
+
"anyOf": [
|
|
21550
|
+
{
|
|
21551
|
+
"maxLength": 200,
|
|
21552
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
21553
|
+
"type": "string"
|
|
21554
|
+
},
|
|
21555
|
+
{
|
|
21556
|
+
"type": "null"
|
|
21557
|
+
}
|
|
21558
|
+
],
|
|
21559
|
+
"default": null,
|
|
21560
|
+
"title": "Quantity Max"
|
|
21561
|
+
},
|
|
21562
|
+
"included_quantity": {
|
|
21563
|
+
"anyOf": [
|
|
21564
|
+
{
|
|
21565
|
+
"maxLength": 200,
|
|
21566
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
21567
|
+
"type": "string"
|
|
21568
|
+
},
|
|
21569
|
+
{
|
|
21570
|
+
"type": "null"
|
|
21571
|
+
}
|
|
21572
|
+
],
|
|
21573
|
+
"default": null,
|
|
21574
|
+
"title": "Included Quantity"
|
|
21575
|
+
},
|
|
21576
|
+
"default_quantity": {
|
|
21577
|
+
"anyOf": [
|
|
21578
|
+
{
|
|
21579
|
+
"maxLength": 200,
|
|
21580
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
21581
|
+
"type": "string"
|
|
21582
|
+
},
|
|
21583
|
+
{
|
|
21584
|
+
"type": "null"
|
|
21585
|
+
}
|
|
21586
|
+
],
|
|
21587
|
+
"default": null,
|
|
21588
|
+
"title": "Default Quantity"
|
|
21589
|
+
},
|
|
21590
|
+
"quantity_argument": {
|
|
21591
|
+
"anyOf": [
|
|
21592
|
+
{
|
|
21593
|
+
"type": "string"
|
|
21594
|
+
},
|
|
21595
|
+
{
|
|
21596
|
+
"type": "null"
|
|
21597
|
+
}
|
|
21598
|
+
],
|
|
21599
|
+
"default": null,
|
|
21600
|
+
"title": "Quantity Argument"
|
|
21601
|
+
},
|
|
21602
|
+
"selector": {
|
|
21603
|
+
"additionalProperties": {
|
|
21604
|
+
"x-zo-json-value": true
|
|
21605
|
+
},
|
|
21606
|
+
"title": "Selector",
|
|
21607
|
+
"type": "object"
|
|
21608
|
+
},
|
|
21609
|
+
"rounding": {
|
|
21610
|
+
"default": "none",
|
|
21611
|
+
"enum": [
|
|
21612
|
+
"none",
|
|
21613
|
+
"ceil_step"
|
|
21614
|
+
],
|
|
21615
|
+
"title": "Rounding",
|
|
21616
|
+
"type": "string"
|
|
21617
|
+
}
|
|
21618
|
+
},
|
|
21619
|
+
"title": "RateConditions",
|
|
21620
|
+
"type": "object",
|
|
21621
|
+
"required": []
|
|
21622
|
+
}
|
|
21623
|
+
}
|
|
21624
|
+
},
|
|
21625
|
+
"target": {
|
|
21626
|
+
"type": "workspace",
|
|
21627
|
+
"input_pointer": "/workspace_id"
|
|
21628
|
+
},
|
|
21629
|
+
"additional_checks": [],
|
|
21630
|
+
"effect": "read",
|
|
21631
|
+
"result_kind": "inline",
|
|
21632
|
+
"error_codes": [
|
|
21633
|
+
"implementation_unavailable",
|
|
21634
|
+
"invalid_input",
|
|
21635
|
+
"invalid_cursor"
|
|
21636
|
+
],
|
|
21637
|
+
"digest": "sha256:33b88b18e759ba942f7bf344798e5f693926666a1bc2947b75b1c1cc6e1a8fbc"
|
|
21638
|
+
},
|
|
21144
21639
|
{
|
|
21145
21640
|
"name": "zo.oauth_app.create",
|
|
21146
21641
|
"version": 1,
|
|
@@ -42950,6 +43445,7 @@
|
|
|
42950
43445
|
"zo.machine_image.list": 1,
|
|
42951
43446
|
"zo.machine_image.update": 1,
|
|
42952
43447
|
"zo.message.get": 1,
|
|
43448
|
+
"zo.model.list": 1,
|
|
42953
43449
|
"zo.oauth_app.create": 1,
|
|
42954
43450
|
"zo.oauth_app.delete": 1,
|
|
42955
43451
|
"zo.oauth_app.get": 1,
|
|
@@ -44530,6 +45026,63 @@
|
|
|
44530
45026
|
},
|
|
44531
45027
|
"required": []
|
|
44532
45028
|
},
|
|
45029
|
+
"zo.model.list@1": {
|
|
45030
|
+
"type": "object",
|
|
45031
|
+
"additionalProperties": false,
|
|
45032
|
+
"properties": {
|
|
45033
|
+
"limit": {
|
|
45034
|
+
"type": "integer",
|
|
45035
|
+
"minimum": 1,
|
|
45036
|
+
"default": 100,
|
|
45037
|
+
"description": "Rows per page, at most 200; a larger value is reduced to it."
|
|
45038
|
+
},
|
|
45039
|
+
"cursor": {
|
|
45040
|
+
"type": "string",
|
|
45041
|
+
"minLength": 1,
|
|
45042
|
+
"maxLength": 5504,
|
|
45043
|
+
"description": "The previous page's next_cursor, sent with the same sort, filter and search."
|
|
45044
|
+
},
|
|
45045
|
+
"sort": {
|
|
45046
|
+
"type": "string",
|
|
45047
|
+
"enum": [
|
|
45048
|
+
"id.asc"
|
|
45049
|
+
],
|
|
45050
|
+
"default": "id.asc"
|
|
45051
|
+
},
|
|
45052
|
+
"filter": {
|
|
45053
|
+
"additionalProperties": false,
|
|
45054
|
+
"properties": {
|
|
45055
|
+
"capability": {
|
|
45056
|
+
"anyOf": [
|
|
45057
|
+
{
|
|
45058
|
+
"enum": [
|
|
45059
|
+
"text",
|
|
45060
|
+
"structured_output",
|
|
45061
|
+
"embedding",
|
|
45062
|
+
"rerank",
|
|
45063
|
+
"image",
|
|
45064
|
+
"speech",
|
|
45065
|
+
"transcription",
|
|
45066
|
+
"video"
|
|
45067
|
+
],
|
|
45068
|
+
"type": "string"
|
|
45069
|
+
},
|
|
45070
|
+
{
|
|
45071
|
+
"type": "null"
|
|
45072
|
+
}
|
|
45073
|
+
],
|
|
45074
|
+
"default": null,
|
|
45075
|
+
"description": "Only models with this capability.",
|
|
45076
|
+
"title": "Capability"
|
|
45077
|
+
}
|
|
45078
|
+
},
|
|
45079
|
+
"type": "object",
|
|
45080
|
+
"required": [],
|
|
45081
|
+
"default": {}
|
|
45082
|
+
}
|
|
45083
|
+
},
|
|
45084
|
+
"required": []
|
|
45085
|
+
},
|
|
44533
45086
|
"zo.oauth_app.list@1": {
|
|
44534
45087
|
"type": "object",
|
|
44535
45088
|
"additionalProperties": false,
|
package/openapi.json
CHANGED
|
@@ -22444,6 +22444,501 @@
|
|
|
22444
22444
|
],
|
|
22445
22445
|
"digest": "sha256:aadcb480b26c475386eb47a4694a413a0b118969638cd9bfd9d9e5d68b5f758e"
|
|
22446
22446
|
},
|
|
22447
|
+
{
|
|
22448
|
+
"name": "zo.model.list",
|
|
22449
|
+
"version": 1,
|
|
22450
|
+
"publisher": "zo",
|
|
22451
|
+
"description": "List the models this workspace can call, each with its ID, capabilities, accepted file types, reasoning levels, limits and current prices.",
|
|
22452
|
+
"input_schema": {
|
|
22453
|
+
"additionalProperties": false,
|
|
22454
|
+
"properties": {
|
|
22455
|
+
"workspace_id": {
|
|
22456
|
+
"maxLength": 200,
|
|
22457
|
+
"minLength": 1,
|
|
22458
|
+
"title": "Workspace Id",
|
|
22459
|
+
"type": "string"
|
|
22460
|
+
}
|
|
22461
|
+
},
|
|
22462
|
+
"required": [
|
|
22463
|
+
"workspace_id"
|
|
22464
|
+
],
|
|
22465
|
+
"title": "ModelListInput",
|
|
22466
|
+
"type": "object"
|
|
22467
|
+
},
|
|
22468
|
+
"output_schema": {
|
|
22469
|
+
"additionalProperties": false,
|
|
22470
|
+
"properties": {
|
|
22471
|
+
"models": {
|
|
22472
|
+
"items": {
|
|
22473
|
+
"$ref": "#/$defs/ModelEntry"
|
|
22474
|
+
},
|
|
22475
|
+
"title": "Models",
|
|
22476
|
+
"type": "array"
|
|
22477
|
+
},
|
|
22478
|
+
"next_cursor": {
|
|
22479
|
+
"anyOf": [
|
|
22480
|
+
{
|
|
22481
|
+
"type": "string"
|
|
22482
|
+
},
|
|
22483
|
+
{
|
|
22484
|
+
"type": "null"
|
|
22485
|
+
}
|
|
22486
|
+
],
|
|
22487
|
+
"title": "Next Cursor"
|
|
22488
|
+
}
|
|
22489
|
+
},
|
|
22490
|
+
"required": [
|
|
22491
|
+
"models",
|
|
22492
|
+
"next_cursor"
|
|
22493
|
+
],
|
|
22494
|
+
"title": "ModelListResult",
|
|
22495
|
+
"type": "object",
|
|
22496
|
+
"$defs": {
|
|
22497
|
+
"ModelEntry": {
|
|
22498
|
+
"additionalProperties": false,
|
|
22499
|
+
"properties": {
|
|
22500
|
+
"id": {
|
|
22501
|
+
"description": "The ID to pass as model.",
|
|
22502
|
+
"title": "Id",
|
|
22503
|
+
"type": "string"
|
|
22504
|
+
},
|
|
22505
|
+
"display_name": {
|
|
22506
|
+
"title": "Display Name",
|
|
22507
|
+
"type": "string"
|
|
22508
|
+
},
|
|
22509
|
+
"provider": {
|
|
22510
|
+
"title": "Provider",
|
|
22511
|
+
"type": "string"
|
|
22512
|
+
},
|
|
22513
|
+
"capabilities": {
|
|
22514
|
+
"items": {
|
|
22515
|
+
"enum": [
|
|
22516
|
+
"text",
|
|
22517
|
+
"structured_output",
|
|
22518
|
+
"embedding",
|
|
22519
|
+
"rerank",
|
|
22520
|
+
"image",
|
|
22521
|
+
"speech",
|
|
22522
|
+
"transcription",
|
|
22523
|
+
"video"
|
|
22524
|
+
],
|
|
22525
|
+
"type": "string"
|
|
22526
|
+
},
|
|
22527
|
+
"title": "Capabilities",
|
|
22528
|
+
"type": "array"
|
|
22529
|
+
},
|
|
22530
|
+
"input_media": {
|
|
22531
|
+
"description": "Media types the model accepts in file parts, such as image/* and text/*.",
|
|
22532
|
+
"items": {
|
|
22533
|
+
"type": "string"
|
|
22534
|
+
},
|
|
22535
|
+
"title": "Input Media",
|
|
22536
|
+
"type": "array"
|
|
22537
|
+
},
|
|
22538
|
+
"context_window_tokens": {
|
|
22539
|
+
"anyOf": [
|
|
22540
|
+
{
|
|
22541
|
+
"type": "integer"
|
|
22542
|
+
},
|
|
22543
|
+
{
|
|
22544
|
+
"type": "null"
|
|
22545
|
+
}
|
|
22546
|
+
],
|
|
22547
|
+
"title": "Context Window Tokens"
|
|
22548
|
+
},
|
|
22549
|
+
"max_output_tokens": {
|
|
22550
|
+
"anyOf": [
|
|
22551
|
+
{
|
|
22552
|
+
"type": "integer"
|
|
22553
|
+
},
|
|
22554
|
+
{
|
|
22555
|
+
"type": "null"
|
|
22556
|
+
}
|
|
22557
|
+
],
|
|
22558
|
+
"title": "Max Output Tokens"
|
|
22559
|
+
},
|
|
22560
|
+
"reasoning_levels": {
|
|
22561
|
+
"description": "The reasoning levels the model offers. Empty when it has none.",
|
|
22562
|
+
"items": {
|
|
22563
|
+
"type": "string"
|
|
22564
|
+
},
|
|
22565
|
+
"title": "Reasoning Levels",
|
|
22566
|
+
"type": "array"
|
|
22567
|
+
},
|
|
22568
|
+
"settings": {
|
|
22569
|
+
"description": "Every setting the model accepts, with its allowed values. A setting not listed is refused with invalid_input before the call.",
|
|
22570
|
+
"items": {
|
|
22571
|
+
"$ref": "#/$defs/ModelSetting"
|
|
22572
|
+
},
|
|
22573
|
+
"title": "Settings",
|
|
22574
|
+
"type": "array"
|
|
22575
|
+
},
|
|
22576
|
+
"limits": {
|
|
22577
|
+
"additionalProperties": {
|
|
22578
|
+
"type": "integer"
|
|
22579
|
+
},
|
|
22580
|
+
"description": "Named limits for the model's actions, such as max_values.",
|
|
22581
|
+
"title": "Limits",
|
|
22582
|
+
"type": "object"
|
|
22583
|
+
},
|
|
22584
|
+
"prices": {
|
|
22585
|
+
"description": "Every rate the model is billed at, the rows zo.billing.list_rates returns for it. A call is charged at the rates whose conditions it meets.",
|
|
22586
|
+
"items": {
|
|
22587
|
+
"$ref": "#/$defs/ModelPrice"
|
|
22588
|
+
},
|
|
22589
|
+
"title": "Prices",
|
|
22590
|
+
"type": "array"
|
|
22591
|
+
},
|
|
22592
|
+
"status": {
|
|
22593
|
+
"enum": [
|
|
22594
|
+
"available",
|
|
22595
|
+
"deprecated"
|
|
22596
|
+
],
|
|
22597
|
+
"title": "Status",
|
|
22598
|
+
"type": "string"
|
|
22599
|
+
}
|
|
22600
|
+
},
|
|
22601
|
+
"required": [
|
|
22602
|
+
"id",
|
|
22603
|
+
"display_name",
|
|
22604
|
+
"provider",
|
|
22605
|
+
"capabilities",
|
|
22606
|
+
"input_media",
|
|
22607
|
+
"context_window_tokens",
|
|
22608
|
+
"max_output_tokens",
|
|
22609
|
+
"reasoning_levels",
|
|
22610
|
+
"settings",
|
|
22611
|
+
"limits",
|
|
22612
|
+
"prices",
|
|
22613
|
+
"status"
|
|
22614
|
+
],
|
|
22615
|
+
"title": "ModelEntry",
|
|
22616
|
+
"type": "object"
|
|
22617
|
+
},
|
|
22618
|
+
"ModelPrice": {
|
|
22619
|
+
"additionalProperties": false,
|
|
22620
|
+
"description": "One of the model's rates: the row ``zo.billing.list_rates`` returns for it.",
|
|
22621
|
+
"properties": {
|
|
22622
|
+
"rate_key": {
|
|
22623
|
+
"description": "The rate's key in zo.billing.list_rates.",
|
|
22624
|
+
"title": "Rate Key",
|
|
22625
|
+
"type": "string"
|
|
22626
|
+
},
|
|
22627
|
+
"meter": {
|
|
22628
|
+
"description": "The usage meter the rate prices, as zo.billing.list_rates names it.",
|
|
22629
|
+
"title": "Meter",
|
|
22630
|
+
"type": "string"
|
|
22631
|
+
},
|
|
22632
|
+
"unit": {
|
|
22633
|
+
"description": "What one billed unit is. input, output, cache_read and cache_write are tokens: the usage fields input_tokens, output_tokens, cache_read_tokens and cache_write_tokens. request is one generated output, such as an image or a video.",
|
|
22634
|
+
"enum": [
|
|
22635
|
+
"input",
|
|
22636
|
+
"output",
|
|
22637
|
+
"cache_read",
|
|
22638
|
+
"cache_write",
|
|
22639
|
+
"request",
|
|
22640
|
+
"character",
|
|
22641
|
+
"millisecond",
|
|
22642
|
+
"audio_minute",
|
|
22643
|
+
"megapixel",
|
|
22644
|
+
"video_second"
|
|
22645
|
+
],
|
|
22646
|
+
"title": "Unit",
|
|
22647
|
+
"type": "string"
|
|
22648
|
+
},
|
|
22649
|
+
"usd": {
|
|
22650
|
+
"description": "The workspace's current price for per units, as a decimal string.",
|
|
22651
|
+
"maxLength": 200,
|
|
22652
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
22653
|
+
"title": "Usd",
|
|
22654
|
+
"type": "string"
|
|
22655
|
+
},
|
|
22656
|
+
"per": {
|
|
22657
|
+
"description": "How many units usd is for: 1000000 for tokens.",
|
|
22658
|
+
"maxLength": 200,
|
|
22659
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
22660
|
+
"title": "Per",
|
|
22661
|
+
"type": "string"
|
|
22662
|
+
},
|
|
22663
|
+
"conditions": {
|
|
22664
|
+
"$ref": "#/$defs/RateConditions",
|
|
22665
|
+
"description": "When the rate applies, as zo.billing.list_rates gives it: input-token tiers for text models; operation, selector, resolution, quality, duration and quantity bounds for media models."
|
|
22666
|
+
}
|
|
22667
|
+
},
|
|
22668
|
+
"required": [
|
|
22669
|
+
"rate_key",
|
|
22670
|
+
"meter",
|
|
22671
|
+
"unit",
|
|
22672
|
+
"usd",
|
|
22673
|
+
"per",
|
|
22674
|
+
"conditions"
|
|
22675
|
+
],
|
|
22676
|
+
"title": "ModelPrice",
|
|
22677
|
+
"type": "object"
|
|
22678
|
+
},
|
|
22679
|
+
"ModelSetting": {
|
|
22680
|
+
"additionalProperties": false,
|
|
22681
|
+
"description": "One setting the model accepts and the values it allows.",
|
|
22682
|
+
"properties": {
|
|
22683
|
+
"name": {
|
|
22684
|
+
"description": "The input field, such as temperature or reasoning.",
|
|
22685
|
+
"title": "Name",
|
|
22686
|
+
"type": "string"
|
|
22687
|
+
},
|
|
22688
|
+
"minimum": {
|
|
22689
|
+
"anyOf": [
|
|
22690
|
+
{
|
|
22691
|
+
"type": "string"
|
|
22692
|
+
},
|
|
22693
|
+
{
|
|
22694
|
+
"type": "null"
|
|
22695
|
+
}
|
|
22696
|
+
],
|
|
22697
|
+
"description": "The smallest allowed value, as a decimal string.",
|
|
22698
|
+
"title": "Minimum"
|
|
22699
|
+
},
|
|
22700
|
+
"maximum": {
|
|
22701
|
+
"anyOf": [
|
|
22702
|
+
{
|
|
22703
|
+
"type": "string"
|
|
22704
|
+
},
|
|
22705
|
+
{
|
|
22706
|
+
"type": "null"
|
|
22707
|
+
}
|
|
22708
|
+
],
|
|
22709
|
+
"description": "The largest allowed value, as a decimal string.",
|
|
22710
|
+
"title": "Maximum"
|
|
22711
|
+
},
|
|
22712
|
+
"max_items": {
|
|
22713
|
+
"anyOf": [
|
|
22714
|
+
{
|
|
22715
|
+
"type": "integer"
|
|
22716
|
+
},
|
|
22717
|
+
{
|
|
22718
|
+
"type": "null"
|
|
22719
|
+
}
|
|
22720
|
+
],
|
|
22721
|
+
"description": "The most items a list setting takes.",
|
|
22722
|
+
"title": "Max Items"
|
|
22723
|
+
},
|
|
22724
|
+
"values": {
|
|
22725
|
+
"anyOf": [
|
|
22726
|
+
{
|
|
22727
|
+
"items": {
|
|
22728
|
+
"type": "string"
|
|
22729
|
+
},
|
|
22730
|
+
"type": "array"
|
|
22731
|
+
},
|
|
22732
|
+
{
|
|
22733
|
+
"type": "null"
|
|
22734
|
+
}
|
|
22735
|
+
],
|
|
22736
|
+
"description": "The allowed values of a string setting.",
|
|
22737
|
+
"title": "Values"
|
|
22738
|
+
}
|
|
22739
|
+
},
|
|
22740
|
+
"required": [
|
|
22741
|
+
"name",
|
|
22742
|
+
"minimum",
|
|
22743
|
+
"maximum",
|
|
22744
|
+
"max_items",
|
|
22745
|
+
"values"
|
|
22746
|
+
],
|
|
22747
|
+
"title": "ModelSetting",
|
|
22748
|
+
"type": "object"
|
|
22749
|
+
},
|
|
22750
|
+
"RateConditions": {
|
|
22751
|
+
"additionalProperties": false,
|
|
22752
|
+
"properties": {
|
|
22753
|
+
"request_input_tokens_min": {
|
|
22754
|
+
"anyOf": [
|
|
22755
|
+
{
|
|
22756
|
+
"minimum": 0,
|
|
22757
|
+
"type": "integer"
|
|
22758
|
+
},
|
|
22759
|
+
{
|
|
22760
|
+
"type": "null"
|
|
22761
|
+
}
|
|
22762
|
+
],
|
|
22763
|
+
"default": null,
|
|
22764
|
+
"description": "Inclusive request-size lower bound.",
|
|
22765
|
+
"title": "Request Input Tokens Min"
|
|
22766
|
+
},
|
|
22767
|
+
"request_input_tokens_max": {
|
|
22768
|
+
"anyOf": [
|
|
22769
|
+
{
|
|
22770
|
+
"minimum": 0,
|
|
22771
|
+
"type": "integer"
|
|
22772
|
+
},
|
|
22773
|
+
{
|
|
22774
|
+
"type": "null"
|
|
22775
|
+
}
|
|
22776
|
+
],
|
|
22777
|
+
"default": null,
|
|
22778
|
+
"description": "Exclusive request-size upper bound.",
|
|
22779
|
+
"title": "Request Input Tokens Max"
|
|
22780
|
+
},
|
|
22781
|
+
"whole_request": {
|
|
22782
|
+
"default": true,
|
|
22783
|
+
"description": "The matching tier prices the whole request.",
|
|
22784
|
+
"title": "Whole Request",
|
|
22785
|
+
"type": "boolean"
|
|
22786
|
+
},
|
|
22787
|
+
"operation": {
|
|
22788
|
+
"anyOf": [
|
|
22789
|
+
{
|
|
22790
|
+
"type": "string"
|
|
22791
|
+
},
|
|
22792
|
+
{
|
|
22793
|
+
"type": "null"
|
|
22794
|
+
}
|
|
22795
|
+
],
|
|
22796
|
+
"default": null,
|
|
22797
|
+
"title": "Operation"
|
|
22798
|
+
},
|
|
22799
|
+
"resolution": {
|
|
22800
|
+
"anyOf": [
|
|
22801
|
+
{
|
|
22802
|
+
"type": "string"
|
|
22803
|
+
},
|
|
22804
|
+
{
|
|
22805
|
+
"type": "null"
|
|
22806
|
+
}
|
|
22807
|
+
],
|
|
22808
|
+
"default": null,
|
|
22809
|
+
"title": "Resolution"
|
|
22810
|
+
},
|
|
22811
|
+
"quality": {
|
|
22812
|
+
"anyOf": [
|
|
22813
|
+
{
|
|
22814
|
+
"type": "string"
|
|
22815
|
+
},
|
|
22816
|
+
{
|
|
22817
|
+
"type": "null"
|
|
22818
|
+
}
|
|
22819
|
+
],
|
|
22820
|
+
"default": null,
|
|
22821
|
+
"title": "Quality"
|
|
22822
|
+
},
|
|
22823
|
+
"duration_seconds": {
|
|
22824
|
+
"anyOf": [
|
|
22825
|
+
{
|
|
22826
|
+
"maxLength": 200,
|
|
22827
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
22828
|
+
"type": "string"
|
|
22829
|
+
},
|
|
22830
|
+
{
|
|
22831
|
+
"type": "null"
|
|
22832
|
+
}
|
|
22833
|
+
],
|
|
22834
|
+
"default": null,
|
|
22835
|
+
"title": "Duration Seconds"
|
|
22836
|
+
},
|
|
22837
|
+
"quantity_min": {
|
|
22838
|
+
"anyOf": [
|
|
22839
|
+
{
|
|
22840
|
+
"maxLength": 200,
|
|
22841
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
22842
|
+
"type": "string"
|
|
22843
|
+
},
|
|
22844
|
+
{
|
|
22845
|
+
"type": "null"
|
|
22846
|
+
}
|
|
22847
|
+
],
|
|
22848
|
+
"default": null,
|
|
22849
|
+
"title": "Quantity Min"
|
|
22850
|
+
},
|
|
22851
|
+
"quantity_max": {
|
|
22852
|
+
"anyOf": [
|
|
22853
|
+
{
|
|
22854
|
+
"maxLength": 200,
|
|
22855
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
22856
|
+
"type": "string"
|
|
22857
|
+
},
|
|
22858
|
+
{
|
|
22859
|
+
"type": "null"
|
|
22860
|
+
}
|
|
22861
|
+
],
|
|
22862
|
+
"default": null,
|
|
22863
|
+
"title": "Quantity Max"
|
|
22864
|
+
},
|
|
22865
|
+
"included_quantity": {
|
|
22866
|
+
"anyOf": [
|
|
22867
|
+
{
|
|
22868
|
+
"maxLength": 200,
|
|
22869
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
22870
|
+
"type": "string"
|
|
22871
|
+
},
|
|
22872
|
+
{
|
|
22873
|
+
"type": "null"
|
|
22874
|
+
}
|
|
22875
|
+
],
|
|
22876
|
+
"default": null,
|
|
22877
|
+
"title": "Included Quantity"
|
|
22878
|
+
},
|
|
22879
|
+
"default_quantity": {
|
|
22880
|
+
"anyOf": [
|
|
22881
|
+
{
|
|
22882
|
+
"maxLength": 200,
|
|
22883
|
+
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
|
|
22884
|
+
"type": "string"
|
|
22885
|
+
},
|
|
22886
|
+
{
|
|
22887
|
+
"type": "null"
|
|
22888
|
+
}
|
|
22889
|
+
],
|
|
22890
|
+
"default": null,
|
|
22891
|
+
"title": "Default Quantity"
|
|
22892
|
+
},
|
|
22893
|
+
"quantity_argument": {
|
|
22894
|
+
"anyOf": [
|
|
22895
|
+
{
|
|
22896
|
+
"type": "string"
|
|
22897
|
+
},
|
|
22898
|
+
{
|
|
22899
|
+
"type": "null"
|
|
22900
|
+
}
|
|
22901
|
+
],
|
|
22902
|
+
"default": null,
|
|
22903
|
+
"title": "Quantity Argument"
|
|
22904
|
+
},
|
|
22905
|
+
"selector": {
|
|
22906
|
+
"additionalProperties": {
|
|
22907
|
+
"x-zo-json-value": true
|
|
22908
|
+
},
|
|
22909
|
+
"title": "Selector",
|
|
22910
|
+
"type": "object"
|
|
22911
|
+
},
|
|
22912
|
+
"rounding": {
|
|
22913
|
+
"default": "none",
|
|
22914
|
+
"enum": [
|
|
22915
|
+
"none",
|
|
22916
|
+
"ceil_step"
|
|
22917
|
+
],
|
|
22918
|
+
"title": "Rounding",
|
|
22919
|
+
"type": "string"
|
|
22920
|
+
}
|
|
22921
|
+
},
|
|
22922
|
+
"title": "RateConditions",
|
|
22923
|
+
"type": "object",
|
|
22924
|
+
"required": []
|
|
22925
|
+
}
|
|
22926
|
+
}
|
|
22927
|
+
},
|
|
22928
|
+
"target": {
|
|
22929
|
+
"type": "workspace",
|
|
22930
|
+
"input_pointer": "/workspace_id"
|
|
22931
|
+
},
|
|
22932
|
+
"additional_checks": [],
|
|
22933
|
+
"effect": "read",
|
|
22934
|
+
"result_kind": "inline",
|
|
22935
|
+
"error_codes": [
|
|
22936
|
+
"implementation_unavailable",
|
|
22937
|
+
"invalid_input",
|
|
22938
|
+
"invalid_cursor"
|
|
22939
|
+
],
|
|
22940
|
+
"digest": "sha256:33b88b18e759ba942f7bf344798e5f693926666a1bc2947b75b1c1cc6e1a8fbc"
|
|
22941
|
+
},
|
|
22447
22942
|
{
|
|
22448
22943
|
"name": "zo.oauth_app.create",
|
|
22449
22944
|
"version": 1,
|
|
@@ -44253,6 +44748,7 @@
|
|
|
44253
44748
|
"zo.machine_image.list": 1,
|
|
44254
44749
|
"zo.machine_image.update": 1,
|
|
44255
44750
|
"zo.message.get": 1,
|
|
44751
|
+
"zo.model.list": 1,
|
|
44256
44752
|
"zo.oauth_app.create": 1,
|
|
44257
44753
|
"zo.oauth_app.delete": 1,
|
|
44258
44754
|
"zo.oauth_app.get": 1,
|
|
@@ -45833,6 +46329,63 @@
|
|
|
45833
46329
|
},
|
|
45834
46330
|
"required": []
|
|
45835
46331
|
},
|
|
46332
|
+
"zo.model.list@1": {
|
|
46333
|
+
"type": "object",
|
|
46334
|
+
"additionalProperties": false,
|
|
46335
|
+
"properties": {
|
|
46336
|
+
"limit": {
|
|
46337
|
+
"type": "integer",
|
|
46338
|
+
"minimum": 1,
|
|
46339
|
+
"default": 100,
|
|
46340
|
+
"description": "Rows per page, at most 200; a larger value is reduced to it."
|
|
46341
|
+
},
|
|
46342
|
+
"cursor": {
|
|
46343
|
+
"type": "string",
|
|
46344
|
+
"minLength": 1,
|
|
46345
|
+
"maxLength": 5504,
|
|
46346
|
+
"description": "The previous page's next_cursor, sent with the same sort, filter and search."
|
|
46347
|
+
},
|
|
46348
|
+
"sort": {
|
|
46349
|
+
"type": "string",
|
|
46350
|
+
"enum": [
|
|
46351
|
+
"id.asc"
|
|
46352
|
+
],
|
|
46353
|
+
"default": "id.asc"
|
|
46354
|
+
},
|
|
46355
|
+
"filter": {
|
|
46356
|
+
"additionalProperties": false,
|
|
46357
|
+
"properties": {
|
|
46358
|
+
"capability": {
|
|
46359
|
+
"anyOf": [
|
|
46360
|
+
{
|
|
46361
|
+
"enum": [
|
|
46362
|
+
"text",
|
|
46363
|
+
"structured_output",
|
|
46364
|
+
"embedding",
|
|
46365
|
+
"rerank",
|
|
46366
|
+
"image",
|
|
46367
|
+
"speech",
|
|
46368
|
+
"transcription",
|
|
46369
|
+
"video"
|
|
46370
|
+
],
|
|
46371
|
+
"type": "string"
|
|
46372
|
+
},
|
|
46373
|
+
{
|
|
46374
|
+
"type": "null"
|
|
46375
|
+
}
|
|
46376
|
+
],
|
|
46377
|
+
"default": null,
|
|
46378
|
+
"description": "Only models with this capability.",
|
|
46379
|
+
"title": "Capability"
|
|
46380
|
+
}
|
|
46381
|
+
},
|
|
46382
|
+
"type": "object",
|
|
46383
|
+
"required": [],
|
|
46384
|
+
"default": {}
|
|
46385
|
+
}
|
|
46386
|
+
},
|
|
46387
|
+
"required": []
|
|
46388
|
+
},
|
|
45836
46389
|
"zo.oauth_app.list@1": {
|
|
45837
46390
|
"type": "object",
|
|
45838
46391
|
"additionalProperties": false,
|