@runtypelabs/sdk 11.15.1 → 11.17.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/index.cjs +5 -4
- package/dist/index.d.cts +245 -3
- package/dist/index.d.ts +245 -3
- package/dist/index.mjs +5 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5255,10 +5255,11 @@ var ModelConfigsEndpoint = class {
|
|
|
5255
5255
|
this.client = client;
|
|
5256
5256
|
}
|
|
5257
5257
|
/**
|
|
5258
|
-
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`)
|
|
5258
|
+
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`).
|
|
5259
|
+
* Pass `q` to search by name, id, creator, provider or tag; results are then ordered by relevance.
|
|
5259
5260
|
*/
|
|
5260
|
-
async getAvailable() {
|
|
5261
|
-
const response = await this.client.get("/model-configs/available");
|
|
5261
|
+
async getAvailable(params) {
|
|
5262
|
+
const response = await this.client.get("/model-configs/available", params?.q ? { q: params.q } : void 0);
|
|
5262
5263
|
return Array.isArray(response) ? response : response.data || [];
|
|
5263
5264
|
}
|
|
5264
5265
|
/**
|
|
@@ -14745,7 +14746,7 @@ function transformQueryParams(params) {
|
|
|
14745
14746
|
return result;
|
|
14746
14747
|
}
|
|
14747
14748
|
// src/version.ts
|
|
14748
|
-
const SDK_VERSION = "11.
|
|
14749
|
+
const SDK_VERSION = "11.17.0";
|
|
14749
14750
|
/**
|
|
14750
14751
|
* Canonical client identity the API uses for attribution
|
|
14751
14752
|
* (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
|
package/dist/index.d.cts
CHANGED
|
@@ -370,6 +370,110 @@ interface paths {
|
|
|
370
370
|
patch?: never;
|
|
371
371
|
trace?: never;
|
|
372
372
|
};
|
|
373
|
+
"/v1/agent-versions/{agentId}/propose": {
|
|
374
|
+
parameters: {
|
|
375
|
+
query?: never;
|
|
376
|
+
header?: never;
|
|
377
|
+
path?: never;
|
|
378
|
+
cookie?: never;
|
|
379
|
+
};
|
|
380
|
+
get?: never;
|
|
381
|
+
put?: never;
|
|
382
|
+
/**
|
|
383
|
+
* Propose a new agent version
|
|
384
|
+
* @description Append a version carrying new instructions and aim a preview alias at it. The agent row, its draft pointer, the published version and the `live` alias do not move, so no run reaches it unless it names the alias. Repeating the same instructions changes nothing.
|
|
385
|
+
*/
|
|
386
|
+
post: {
|
|
387
|
+
parameters: {
|
|
388
|
+
query?: never;
|
|
389
|
+
header?: never;
|
|
390
|
+
path: {
|
|
391
|
+
agentId: string;
|
|
392
|
+
};
|
|
393
|
+
cookie?: never;
|
|
394
|
+
};
|
|
395
|
+
requestBody: {
|
|
396
|
+
content: {
|
|
397
|
+
"application/json": {
|
|
398
|
+
/** @description The preview alias to aim at it. Defaults to `otto-proposed-` plus the label as a slug, or a hash of the instructions when there is no label. */
|
|
399
|
+
alias?: string;
|
|
400
|
+
label?: string;
|
|
401
|
+
/** @description Why this version exists: the evidence for it, shown in version history. */
|
|
402
|
+
notes?: string;
|
|
403
|
+
/** @description The full instructions this version proposes. */
|
|
404
|
+
systemPrompt: string;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
responses: {
|
|
409
|
+
/** @description The proposed version */
|
|
410
|
+
200: {
|
|
411
|
+
headers: {
|
|
412
|
+
[name: string]: unknown;
|
|
413
|
+
};
|
|
414
|
+
content: {
|
|
415
|
+
"application/json": {
|
|
416
|
+
agentId: string;
|
|
417
|
+
alias: string;
|
|
418
|
+
/** @description False when this alias already pointed at these instructions. */
|
|
419
|
+
changed: boolean;
|
|
420
|
+
versionId: string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
/** @description Invalid input, or the agent type cannot be proposed against */
|
|
425
|
+
400: {
|
|
426
|
+
headers: {
|
|
427
|
+
[name: string]: unknown;
|
|
428
|
+
};
|
|
429
|
+
content: {
|
|
430
|
+
"application/json": components["schemas"]["Error"];
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
/** @description Unauthorized */
|
|
434
|
+
401: {
|
|
435
|
+
headers: {
|
|
436
|
+
[name: string]: unknown;
|
|
437
|
+
};
|
|
438
|
+
content: {
|
|
439
|
+
"application/json": components["schemas"]["Error"];
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
/** @description Insufficient permissions */
|
|
443
|
+
403: {
|
|
444
|
+
headers: {
|
|
445
|
+
[name: string]: unknown;
|
|
446
|
+
};
|
|
447
|
+
content: {
|
|
448
|
+
"application/json": components["schemas"]["Error"];
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
/** @description Agent not found */
|
|
452
|
+
404: {
|
|
453
|
+
headers: {
|
|
454
|
+
[name: string]: unknown;
|
|
455
|
+
};
|
|
456
|
+
content: {
|
|
457
|
+
"application/json": components["schemas"]["Error"];
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
/** @description Internal server error */
|
|
461
|
+
500: {
|
|
462
|
+
headers: {
|
|
463
|
+
[name: string]: unknown;
|
|
464
|
+
};
|
|
465
|
+
content: {
|
|
466
|
+
"application/json": components["schemas"]["InternalError"];
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
delete?: never;
|
|
472
|
+
options?: never;
|
|
473
|
+
head?: never;
|
|
474
|
+
patch?: never;
|
|
475
|
+
trace?: never;
|
|
476
|
+
};
|
|
373
477
|
"/v1/agent-versions/{agentId}/publish": {
|
|
374
478
|
parameters: {
|
|
375
479
|
query?: never;
|
|
@@ -14154,7 +14258,13 @@ interface paths {
|
|
|
14154
14258
|
content: {
|
|
14155
14259
|
"application/json": {
|
|
14156
14260
|
data: {
|
|
14261
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14262
|
+
allowDestructive?: boolean;
|
|
14263
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14264
|
+
allowSimulationRun?: boolean;
|
|
14157
14265
|
apiKeyId: string | null;
|
|
14266
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
14267
|
+
attachmentCount?: number;
|
|
14158
14268
|
clientName: string | null;
|
|
14159
14269
|
clientVersion: string | null;
|
|
14160
14270
|
completedAt: string | null;
|
|
@@ -14278,6 +14388,16 @@ interface paths {
|
|
|
14278
14388
|
content: {
|
|
14279
14389
|
"application/json": {
|
|
14280
14390
|
allowDestructive?: boolean;
|
|
14391
|
+
/** @description Permit starting simulation runs, each with a stated `maxSpendUsd` of at most $25, and no other gated operation. `allowDestructive` also permits them. */
|
|
14392
|
+
allowSimulationRun?: boolean;
|
|
14393
|
+
/** @description One image for the worker to read on its first turn. `otto` tasks only. */
|
|
14394
|
+
attachments?: {
|
|
14395
|
+
/** @description The image as a data URL, up to 2 MB of text. */
|
|
14396
|
+
image: string;
|
|
14397
|
+
mimeType?: string;
|
|
14398
|
+
/** @enum {string} */
|
|
14399
|
+
type: "image";
|
|
14400
|
+
}[];
|
|
14281
14401
|
clientName?: string;
|
|
14282
14402
|
clientVersion?: string;
|
|
14283
14403
|
context?: unknown;
|
|
@@ -14305,7 +14425,13 @@ interface paths {
|
|
|
14305
14425
|
};
|
|
14306
14426
|
content: {
|
|
14307
14427
|
"application/json": {
|
|
14428
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14429
|
+
allowDestructive?: boolean;
|
|
14430
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14431
|
+
allowSimulationRun?: boolean;
|
|
14308
14432
|
apiKeyId: string | null;
|
|
14433
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
14434
|
+
attachmentCount?: number;
|
|
14309
14435
|
clientName: string | null;
|
|
14310
14436
|
clientVersion: string | null;
|
|
14311
14437
|
completedAt: string | null;
|
|
@@ -14373,7 +14499,13 @@ interface paths {
|
|
|
14373
14499
|
};
|
|
14374
14500
|
content: {
|
|
14375
14501
|
"application/json": {
|
|
14502
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14503
|
+
allowDestructive?: boolean;
|
|
14504
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14505
|
+
allowSimulationRun?: boolean;
|
|
14376
14506
|
apiKeyId: string | null;
|
|
14507
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
14508
|
+
attachmentCount?: number;
|
|
14377
14509
|
clientName: string | null;
|
|
14378
14510
|
clientVersion: string | null;
|
|
14379
14511
|
completedAt: string | null;
|
|
@@ -14628,7 +14760,13 @@ interface paths {
|
|
|
14628
14760
|
type: "task_cancelled";
|
|
14629
14761
|
})[];
|
|
14630
14762
|
task: {
|
|
14763
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14764
|
+
allowDestructive?: boolean;
|
|
14765
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14766
|
+
allowSimulationRun?: boolean;
|
|
14631
14767
|
apiKeyId: string | null;
|
|
14768
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
14769
|
+
attachmentCount?: number;
|
|
14632
14770
|
clientName: string | null;
|
|
14633
14771
|
clientVersion: string | null;
|
|
14634
14772
|
completedAt: string | null;
|
|
@@ -14734,6 +14872,91 @@ interface paths {
|
|
|
14734
14872
|
patch?: never;
|
|
14735
14873
|
trace?: never;
|
|
14736
14874
|
};
|
|
14875
|
+
"/v1/delegate-tasks/{id}/attachments/{index}": {
|
|
14876
|
+
parameters: {
|
|
14877
|
+
query?: never;
|
|
14878
|
+
header?: never;
|
|
14879
|
+
path?: never;
|
|
14880
|
+
cookie?: never;
|
|
14881
|
+
};
|
|
14882
|
+
/**
|
|
14883
|
+
* Read an image a delegate task started with
|
|
14884
|
+
* @description The image at this position of the task's `attachments`. API keys need `DELEGATE_TASKS:READ`.
|
|
14885
|
+
*/
|
|
14886
|
+
get: {
|
|
14887
|
+
parameters: {
|
|
14888
|
+
query?: never;
|
|
14889
|
+
header?: never;
|
|
14890
|
+
path: {
|
|
14891
|
+
/** @description The task id (`dlg_…`). */
|
|
14892
|
+
id: string;
|
|
14893
|
+
index: number | null;
|
|
14894
|
+
};
|
|
14895
|
+
cookie?: never;
|
|
14896
|
+
};
|
|
14897
|
+
requestBody?: never;
|
|
14898
|
+
responses: {
|
|
14899
|
+
/** @description The image */
|
|
14900
|
+
200: {
|
|
14901
|
+
headers: {
|
|
14902
|
+
[name: string]: unknown;
|
|
14903
|
+
};
|
|
14904
|
+
content: {
|
|
14905
|
+
"application/json": {
|
|
14906
|
+
/** @description The image as a data URL, up to 2 MB of text. */
|
|
14907
|
+
image: string;
|
|
14908
|
+
mimeType?: string;
|
|
14909
|
+
/** @enum {string} */
|
|
14910
|
+
type: "image";
|
|
14911
|
+
};
|
|
14912
|
+
};
|
|
14913
|
+
};
|
|
14914
|
+
/** @description Unauthorized */
|
|
14915
|
+
401: {
|
|
14916
|
+
headers: {
|
|
14917
|
+
[name: string]: unknown;
|
|
14918
|
+
};
|
|
14919
|
+
content: {
|
|
14920
|
+
"application/json": components["schemas"]["Error"];
|
|
14921
|
+
};
|
|
14922
|
+
};
|
|
14923
|
+
/** @description Missing API key scope */
|
|
14924
|
+
403: {
|
|
14925
|
+
headers: {
|
|
14926
|
+
[name: string]: unknown;
|
|
14927
|
+
};
|
|
14928
|
+
content: {
|
|
14929
|
+
"application/json": components["schemas"]["Error"];
|
|
14930
|
+
};
|
|
14931
|
+
};
|
|
14932
|
+
/** @description Feature disabled, or no such task in this organization */
|
|
14933
|
+
404: {
|
|
14934
|
+
headers: {
|
|
14935
|
+
[name: string]: unknown;
|
|
14936
|
+
};
|
|
14937
|
+
content: {
|
|
14938
|
+
"application/json": components["schemas"]["Error"];
|
|
14939
|
+
};
|
|
14940
|
+
};
|
|
14941
|
+
/** @description The operator agent is not available on this deployment */
|
|
14942
|
+
503: {
|
|
14943
|
+
headers: {
|
|
14944
|
+
[name: string]: unknown;
|
|
14945
|
+
};
|
|
14946
|
+
content: {
|
|
14947
|
+
"application/json": components["schemas"]["Error"];
|
|
14948
|
+
};
|
|
14949
|
+
};
|
|
14950
|
+
};
|
|
14951
|
+
};
|
|
14952
|
+
put?: never;
|
|
14953
|
+
post?: never;
|
|
14954
|
+
delete?: never;
|
|
14955
|
+
options?: never;
|
|
14956
|
+
head?: never;
|
|
14957
|
+
patch?: never;
|
|
14958
|
+
trace?: never;
|
|
14959
|
+
};
|
|
14737
14960
|
"/v1/delegate-tasks/{id}/cancel": {
|
|
14738
14961
|
parameters: {
|
|
14739
14962
|
query?: never;
|
|
@@ -14769,7 +14992,13 @@ interface paths {
|
|
|
14769
14992
|
/** @enum {boolean} */
|
|
14770
14993
|
accepted: true;
|
|
14771
14994
|
task: {
|
|
14995
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14996
|
+
allowDestructive?: boolean;
|
|
14997
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14998
|
+
allowSimulationRun?: boolean;
|
|
14772
14999
|
apiKeyId: string | null;
|
|
15000
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
15001
|
+
attachmentCount?: number;
|
|
14773
15002
|
clientName: string | null;
|
|
14774
15003
|
clientVersion: string | null;
|
|
14775
15004
|
completedAt: string | null;
|
|
@@ -15016,7 +15245,13 @@ interface paths {
|
|
|
15016
15245
|
/** @description Journal seq of the `message_received` event this message became. */
|
|
15017
15246
|
messageSeq?: number;
|
|
15018
15247
|
task: {
|
|
15248
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
15249
|
+
allowDestructive?: boolean;
|
|
15250
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
15251
|
+
allowSimulationRun?: boolean;
|
|
15019
15252
|
apiKeyId: string | null;
|
|
15253
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
15254
|
+
attachmentCount?: number;
|
|
15020
15255
|
clientName: string | null;
|
|
15021
15256
|
clientVersion: string | null;
|
|
15022
15257
|
completedAt: string | null;
|
|
@@ -32917,6 +33152,8 @@ interface paths {
|
|
|
32917
33152
|
query?: {
|
|
32918
33153
|
showAll?: string;
|
|
32919
33154
|
category?: string;
|
|
33155
|
+
/** @description Free-text search over model name, id, creator, provider and tags. Every word must match (prefixes count); results are ordered by relevance. */
|
|
33156
|
+
q?: string;
|
|
32920
33157
|
};
|
|
32921
33158
|
header?: never;
|
|
32922
33159
|
path?: never;
|
|
@@ -33019,7 +33256,7 @@ interface paths {
|
|
|
33019
33256
|
};
|
|
33020
33257
|
/**
|
|
33021
33258
|
* Get grouped models
|
|
33022
|
-
* @description Get models grouped by base model with all provider options. Supports filtering to configured-only models. The account custom models (`isCustom: true`) always follow the catalog groups; `category=custom` returns only them. `credentialPolicy` states which providers may serve a call.
|
|
33259
|
+
* @description Get models grouped by base model with all provider options. Supports filtering to configured-only models and free-text search (`q`). The account custom models (`isCustom: true`) always follow the catalog groups; `category=custom` returns only them. `credentialPolicy` states which providers may serve a call.
|
|
33023
33260
|
*/
|
|
33024
33261
|
get: {
|
|
33025
33262
|
parameters: {
|
|
@@ -33027,6 +33264,8 @@ interface paths {
|
|
|
33027
33264
|
showAll?: string;
|
|
33028
33265
|
category?: string;
|
|
33029
33266
|
configured?: string;
|
|
33267
|
+
/** @description Free-text search over model name, id, creator, provider and tags. Every word must match (prefixes count); results are ordered by relevance. */
|
|
33268
|
+
q?: string;
|
|
33030
33269
|
};
|
|
33031
33270
|
header?: never;
|
|
33032
33271
|
path?: never;
|
|
@@ -71047,9 +71286,12 @@ export declare class ModelConfigsEndpoint {
|
|
|
71047
71286
|
private client;
|
|
71048
71287
|
constructor(client: ApiClient);
|
|
71049
71288
|
/**
|
|
71050
|
-
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`)
|
|
71289
|
+
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`).
|
|
71290
|
+
* Pass `q` to search by name, id, creator, provider or tag; results are then ordered by relevance.
|
|
71051
71291
|
*/
|
|
71052
|
-
getAvailable(
|
|
71292
|
+
getAvailable(params?: {
|
|
71293
|
+
q?: string;
|
|
71294
|
+
}): Promise<ModelConfig[]>;
|
|
71053
71295
|
/**
|
|
71054
71296
|
* Get search-capable models (all available, regardless of user configuration)
|
|
71055
71297
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -370,6 +370,110 @@ interface paths {
|
|
|
370
370
|
patch?: never;
|
|
371
371
|
trace?: never;
|
|
372
372
|
};
|
|
373
|
+
"/v1/agent-versions/{agentId}/propose": {
|
|
374
|
+
parameters: {
|
|
375
|
+
query?: never;
|
|
376
|
+
header?: never;
|
|
377
|
+
path?: never;
|
|
378
|
+
cookie?: never;
|
|
379
|
+
};
|
|
380
|
+
get?: never;
|
|
381
|
+
put?: never;
|
|
382
|
+
/**
|
|
383
|
+
* Propose a new agent version
|
|
384
|
+
* @description Append a version carrying new instructions and aim a preview alias at it. The agent row, its draft pointer, the published version and the `live` alias do not move, so no run reaches it unless it names the alias. Repeating the same instructions changes nothing.
|
|
385
|
+
*/
|
|
386
|
+
post: {
|
|
387
|
+
parameters: {
|
|
388
|
+
query?: never;
|
|
389
|
+
header?: never;
|
|
390
|
+
path: {
|
|
391
|
+
agentId: string;
|
|
392
|
+
};
|
|
393
|
+
cookie?: never;
|
|
394
|
+
};
|
|
395
|
+
requestBody: {
|
|
396
|
+
content: {
|
|
397
|
+
"application/json": {
|
|
398
|
+
/** @description The preview alias to aim at it. Defaults to `otto-proposed-` plus the label as a slug, or a hash of the instructions when there is no label. */
|
|
399
|
+
alias?: string;
|
|
400
|
+
label?: string;
|
|
401
|
+
/** @description Why this version exists: the evidence for it, shown in version history. */
|
|
402
|
+
notes?: string;
|
|
403
|
+
/** @description The full instructions this version proposes. */
|
|
404
|
+
systemPrompt: string;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
responses: {
|
|
409
|
+
/** @description The proposed version */
|
|
410
|
+
200: {
|
|
411
|
+
headers: {
|
|
412
|
+
[name: string]: unknown;
|
|
413
|
+
};
|
|
414
|
+
content: {
|
|
415
|
+
"application/json": {
|
|
416
|
+
agentId: string;
|
|
417
|
+
alias: string;
|
|
418
|
+
/** @description False when this alias already pointed at these instructions. */
|
|
419
|
+
changed: boolean;
|
|
420
|
+
versionId: string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
/** @description Invalid input, or the agent type cannot be proposed against */
|
|
425
|
+
400: {
|
|
426
|
+
headers: {
|
|
427
|
+
[name: string]: unknown;
|
|
428
|
+
};
|
|
429
|
+
content: {
|
|
430
|
+
"application/json": components["schemas"]["Error"];
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
/** @description Unauthorized */
|
|
434
|
+
401: {
|
|
435
|
+
headers: {
|
|
436
|
+
[name: string]: unknown;
|
|
437
|
+
};
|
|
438
|
+
content: {
|
|
439
|
+
"application/json": components["schemas"]["Error"];
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
/** @description Insufficient permissions */
|
|
443
|
+
403: {
|
|
444
|
+
headers: {
|
|
445
|
+
[name: string]: unknown;
|
|
446
|
+
};
|
|
447
|
+
content: {
|
|
448
|
+
"application/json": components["schemas"]["Error"];
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
/** @description Agent not found */
|
|
452
|
+
404: {
|
|
453
|
+
headers: {
|
|
454
|
+
[name: string]: unknown;
|
|
455
|
+
};
|
|
456
|
+
content: {
|
|
457
|
+
"application/json": components["schemas"]["Error"];
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
/** @description Internal server error */
|
|
461
|
+
500: {
|
|
462
|
+
headers: {
|
|
463
|
+
[name: string]: unknown;
|
|
464
|
+
};
|
|
465
|
+
content: {
|
|
466
|
+
"application/json": components["schemas"]["InternalError"];
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
delete?: never;
|
|
472
|
+
options?: never;
|
|
473
|
+
head?: never;
|
|
474
|
+
patch?: never;
|
|
475
|
+
trace?: never;
|
|
476
|
+
};
|
|
373
477
|
"/v1/agent-versions/{agentId}/publish": {
|
|
374
478
|
parameters: {
|
|
375
479
|
query?: never;
|
|
@@ -14154,7 +14258,13 @@ interface paths {
|
|
|
14154
14258
|
content: {
|
|
14155
14259
|
"application/json": {
|
|
14156
14260
|
data: {
|
|
14261
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14262
|
+
allowDestructive?: boolean;
|
|
14263
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14264
|
+
allowSimulationRun?: boolean;
|
|
14157
14265
|
apiKeyId: string | null;
|
|
14266
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
14267
|
+
attachmentCount?: number;
|
|
14158
14268
|
clientName: string | null;
|
|
14159
14269
|
clientVersion: string | null;
|
|
14160
14270
|
completedAt: string | null;
|
|
@@ -14278,6 +14388,16 @@ interface paths {
|
|
|
14278
14388
|
content: {
|
|
14279
14389
|
"application/json": {
|
|
14280
14390
|
allowDestructive?: boolean;
|
|
14391
|
+
/** @description Permit starting simulation runs, each with a stated `maxSpendUsd` of at most $25, and no other gated operation. `allowDestructive` also permits them. */
|
|
14392
|
+
allowSimulationRun?: boolean;
|
|
14393
|
+
/** @description One image for the worker to read on its first turn. `otto` tasks only. */
|
|
14394
|
+
attachments?: {
|
|
14395
|
+
/** @description The image as a data URL, up to 2 MB of text. */
|
|
14396
|
+
image: string;
|
|
14397
|
+
mimeType?: string;
|
|
14398
|
+
/** @enum {string} */
|
|
14399
|
+
type: "image";
|
|
14400
|
+
}[];
|
|
14281
14401
|
clientName?: string;
|
|
14282
14402
|
clientVersion?: string;
|
|
14283
14403
|
context?: unknown;
|
|
@@ -14305,7 +14425,13 @@ interface paths {
|
|
|
14305
14425
|
};
|
|
14306
14426
|
content: {
|
|
14307
14427
|
"application/json": {
|
|
14428
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14429
|
+
allowDestructive?: boolean;
|
|
14430
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14431
|
+
allowSimulationRun?: boolean;
|
|
14308
14432
|
apiKeyId: string | null;
|
|
14433
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
14434
|
+
attachmentCount?: number;
|
|
14309
14435
|
clientName: string | null;
|
|
14310
14436
|
clientVersion: string | null;
|
|
14311
14437
|
completedAt: string | null;
|
|
@@ -14373,7 +14499,13 @@ interface paths {
|
|
|
14373
14499
|
};
|
|
14374
14500
|
content: {
|
|
14375
14501
|
"application/json": {
|
|
14502
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14503
|
+
allowDestructive?: boolean;
|
|
14504
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14505
|
+
allowSimulationRun?: boolean;
|
|
14376
14506
|
apiKeyId: string | null;
|
|
14507
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
14508
|
+
attachmentCount?: number;
|
|
14377
14509
|
clientName: string | null;
|
|
14378
14510
|
clientVersion: string | null;
|
|
14379
14511
|
completedAt: string | null;
|
|
@@ -14628,7 +14760,13 @@ interface paths {
|
|
|
14628
14760
|
type: "task_cancelled";
|
|
14629
14761
|
})[];
|
|
14630
14762
|
task: {
|
|
14763
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14764
|
+
allowDestructive?: boolean;
|
|
14765
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14766
|
+
allowSimulationRun?: boolean;
|
|
14631
14767
|
apiKeyId: string | null;
|
|
14768
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
14769
|
+
attachmentCount?: number;
|
|
14632
14770
|
clientName: string | null;
|
|
14633
14771
|
clientVersion: string | null;
|
|
14634
14772
|
completedAt: string | null;
|
|
@@ -14734,6 +14872,91 @@ interface paths {
|
|
|
14734
14872
|
patch?: never;
|
|
14735
14873
|
trace?: never;
|
|
14736
14874
|
};
|
|
14875
|
+
"/v1/delegate-tasks/{id}/attachments/{index}": {
|
|
14876
|
+
parameters: {
|
|
14877
|
+
query?: never;
|
|
14878
|
+
header?: never;
|
|
14879
|
+
path?: never;
|
|
14880
|
+
cookie?: never;
|
|
14881
|
+
};
|
|
14882
|
+
/**
|
|
14883
|
+
* Read an image a delegate task started with
|
|
14884
|
+
* @description The image at this position of the task's `attachments`. API keys need `DELEGATE_TASKS:READ`.
|
|
14885
|
+
*/
|
|
14886
|
+
get: {
|
|
14887
|
+
parameters: {
|
|
14888
|
+
query?: never;
|
|
14889
|
+
header?: never;
|
|
14890
|
+
path: {
|
|
14891
|
+
/** @description The task id (`dlg_…`). */
|
|
14892
|
+
id: string;
|
|
14893
|
+
index: number | null;
|
|
14894
|
+
};
|
|
14895
|
+
cookie?: never;
|
|
14896
|
+
};
|
|
14897
|
+
requestBody?: never;
|
|
14898
|
+
responses: {
|
|
14899
|
+
/** @description The image */
|
|
14900
|
+
200: {
|
|
14901
|
+
headers: {
|
|
14902
|
+
[name: string]: unknown;
|
|
14903
|
+
};
|
|
14904
|
+
content: {
|
|
14905
|
+
"application/json": {
|
|
14906
|
+
/** @description The image as a data URL, up to 2 MB of text. */
|
|
14907
|
+
image: string;
|
|
14908
|
+
mimeType?: string;
|
|
14909
|
+
/** @enum {string} */
|
|
14910
|
+
type: "image";
|
|
14911
|
+
};
|
|
14912
|
+
};
|
|
14913
|
+
};
|
|
14914
|
+
/** @description Unauthorized */
|
|
14915
|
+
401: {
|
|
14916
|
+
headers: {
|
|
14917
|
+
[name: string]: unknown;
|
|
14918
|
+
};
|
|
14919
|
+
content: {
|
|
14920
|
+
"application/json": components["schemas"]["Error"];
|
|
14921
|
+
};
|
|
14922
|
+
};
|
|
14923
|
+
/** @description Missing API key scope */
|
|
14924
|
+
403: {
|
|
14925
|
+
headers: {
|
|
14926
|
+
[name: string]: unknown;
|
|
14927
|
+
};
|
|
14928
|
+
content: {
|
|
14929
|
+
"application/json": components["schemas"]["Error"];
|
|
14930
|
+
};
|
|
14931
|
+
};
|
|
14932
|
+
/** @description Feature disabled, or no such task in this organization */
|
|
14933
|
+
404: {
|
|
14934
|
+
headers: {
|
|
14935
|
+
[name: string]: unknown;
|
|
14936
|
+
};
|
|
14937
|
+
content: {
|
|
14938
|
+
"application/json": components["schemas"]["Error"];
|
|
14939
|
+
};
|
|
14940
|
+
};
|
|
14941
|
+
/** @description The operator agent is not available on this deployment */
|
|
14942
|
+
503: {
|
|
14943
|
+
headers: {
|
|
14944
|
+
[name: string]: unknown;
|
|
14945
|
+
};
|
|
14946
|
+
content: {
|
|
14947
|
+
"application/json": components["schemas"]["Error"];
|
|
14948
|
+
};
|
|
14949
|
+
};
|
|
14950
|
+
};
|
|
14951
|
+
};
|
|
14952
|
+
put?: never;
|
|
14953
|
+
post?: never;
|
|
14954
|
+
delete?: never;
|
|
14955
|
+
options?: never;
|
|
14956
|
+
head?: never;
|
|
14957
|
+
patch?: never;
|
|
14958
|
+
trace?: never;
|
|
14959
|
+
};
|
|
14737
14960
|
"/v1/delegate-tasks/{id}/cancel": {
|
|
14738
14961
|
parameters: {
|
|
14739
14962
|
query?: never;
|
|
@@ -14769,7 +14992,13 @@ interface paths {
|
|
|
14769
14992
|
/** @enum {boolean} */
|
|
14770
14993
|
accepted: true;
|
|
14771
14994
|
task: {
|
|
14995
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
14996
|
+
allowDestructive?: boolean;
|
|
14997
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
14998
|
+
allowSimulationRun?: boolean;
|
|
14772
14999
|
apiKeyId: string | null;
|
|
15000
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
15001
|
+
attachmentCount?: number;
|
|
14773
15002
|
clientName: string | null;
|
|
14774
15003
|
clientVersion: string | null;
|
|
14775
15004
|
completedAt: string | null;
|
|
@@ -15016,7 +15245,13 @@ interface paths {
|
|
|
15016
15245
|
/** @description Journal seq of the `message_received` event this message became. */
|
|
15017
15246
|
messageSeq?: number;
|
|
15018
15247
|
task: {
|
|
15248
|
+
/** @description Whether the caller allowed destructive and consequential operations. */
|
|
15249
|
+
allowDestructive?: boolean;
|
|
15250
|
+
/** @description Whether the caller allowed starting simulation runs, and no other gated operation. */
|
|
15251
|
+
allowSimulationRun?: boolean;
|
|
15019
15252
|
apiKeyId: string | null;
|
|
15253
|
+
/** @description Images the task started with; read each from its attachment route. */
|
|
15254
|
+
attachmentCount?: number;
|
|
15020
15255
|
clientName: string | null;
|
|
15021
15256
|
clientVersion: string | null;
|
|
15022
15257
|
completedAt: string | null;
|
|
@@ -32917,6 +33152,8 @@ interface paths {
|
|
|
32917
33152
|
query?: {
|
|
32918
33153
|
showAll?: string;
|
|
32919
33154
|
category?: string;
|
|
33155
|
+
/** @description Free-text search over model name, id, creator, provider and tags. Every word must match (prefixes count); results are ordered by relevance. */
|
|
33156
|
+
q?: string;
|
|
32920
33157
|
};
|
|
32921
33158
|
header?: never;
|
|
32922
33159
|
path?: never;
|
|
@@ -33019,7 +33256,7 @@ interface paths {
|
|
|
33019
33256
|
};
|
|
33020
33257
|
/**
|
|
33021
33258
|
* Get grouped models
|
|
33022
|
-
* @description Get models grouped by base model with all provider options. Supports filtering to configured-only models. The account custom models (`isCustom: true`) always follow the catalog groups; `category=custom` returns only them. `credentialPolicy` states which providers may serve a call.
|
|
33259
|
+
* @description Get models grouped by base model with all provider options. Supports filtering to configured-only models and free-text search (`q`). The account custom models (`isCustom: true`) always follow the catalog groups; `category=custom` returns only them. `credentialPolicy` states which providers may serve a call.
|
|
33023
33260
|
*/
|
|
33024
33261
|
get: {
|
|
33025
33262
|
parameters: {
|
|
@@ -33027,6 +33264,8 @@ interface paths {
|
|
|
33027
33264
|
showAll?: string;
|
|
33028
33265
|
category?: string;
|
|
33029
33266
|
configured?: string;
|
|
33267
|
+
/** @description Free-text search over model name, id, creator, provider and tags. Every word must match (prefixes count); results are ordered by relevance. */
|
|
33268
|
+
q?: string;
|
|
33030
33269
|
};
|
|
33031
33270
|
header?: never;
|
|
33032
33271
|
path?: never;
|
|
@@ -71047,9 +71286,12 @@ export declare class ModelConfigsEndpoint {
|
|
|
71047
71286
|
private client;
|
|
71048
71287
|
constructor(client: ApiClient);
|
|
71049
71288
|
/**
|
|
71050
|
-
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`)
|
|
71289
|
+
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`).
|
|
71290
|
+
* Pass `q` to search by name, id, creator, provider or tag; results are then ordered by relevance.
|
|
71051
71291
|
*/
|
|
71052
|
-
getAvailable(
|
|
71292
|
+
getAvailable(params?: {
|
|
71293
|
+
q?: string;
|
|
71294
|
+
}): Promise<ModelConfig[]>;
|
|
71053
71295
|
/**
|
|
71054
71296
|
* Get search-capable models (all available, regardless of user configuration)
|
|
71055
71297
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -5254,10 +5254,11 @@ var ModelConfigsEndpoint = class {
|
|
|
5254
5254
|
this.client = client;
|
|
5255
5255
|
}
|
|
5256
5256
|
/**
|
|
5257
|
-
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`)
|
|
5257
|
+
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`).
|
|
5258
|
+
* Pass `q` to search by name, id, creator, provider or tag; results are then ordered by relevance.
|
|
5258
5259
|
*/
|
|
5259
|
-
async getAvailable() {
|
|
5260
|
-
const response = await this.client.get("/model-configs/available");
|
|
5260
|
+
async getAvailable(params) {
|
|
5261
|
+
const response = await this.client.get("/model-configs/available", params?.q ? { q: params.q } : void 0);
|
|
5261
5262
|
return Array.isArray(response) ? response : response.data || [];
|
|
5262
5263
|
}
|
|
5263
5264
|
/**
|
|
@@ -14744,7 +14745,7 @@ function transformQueryParams(params) {
|
|
|
14744
14745
|
return result;
|
|
14745
14746
|
}
|
|
14746
14747
|
// src/version.ts
|
|
14747
|
-
const SDK_VERSION = "11.
|
|
14748
|
+
const SDK_VERSION = "11.17.0";
|
|
14748
14749
|
/**
|
|
14749
14750
|
* Canonical client identity the API uses for attribution
|
|
14750
14751
|
* (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@runtypelabs/shared": "3.
|
|
27
|
+
"@runtypelabs/shared": "3.110.0",
|
|
28
28
|
"openapi-typescript": "^7.13.0",
|
|
29
29
|
"tsdown": "^0.23.2",
|
|
30
30
|
"typescript": "^6.0.3",
|