@runtypelabs/sdk 11.0.0 → 11.0.1

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.d.ts CHANGED
@@ -13854,6 +13854,932 @@ interface paths {
13854
13854
  patch?: never;
13855
13855
  trace?: never;
13856
13856
  };
13857
+ "/v1/delegate-tasks": {
13858
+ parameters: {
13859
+ query?: never;
13860
+ header?: never;
13861
+ path?: never;
13862
+ cookie?: never;
13863
+ };
13864
+ /**
13865
+ * List delegate tasks
13866
+ * @description Your organization's delegated tasks, newest first. API keys need `DELEGATE_TASKS:READ`.
13867
+ */
13868
+ get: {
13869
+ parameters: {
13870
+ query?: {
13871
+ status?: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
13872
+ cursor?: string;
13873
+ limit?: string;
13874
+ };
13875
+ header?: never;
13876
+ path?: never;
13877
+ cookie?: never;
13878
+ };
13879
+ requestBody?: never;
13880
+ responses: {
13881
+ /** @description One page of tasks */
13882
+ 200: {
13883
+ headers: {
13884
+ [name: string]: unknown;
13885
+ };
13886
+ content: {
13887
+ "application/json": {
13888
+ data: {
13889
+ apiKeyId: string | null;
13890
+ clientName: string | null;
13891
+ clientVersion: string | null;
13892
+ completedAt: string | null;
13893
+ context?: unknown;
13894
+ createdAt: string;
13895
+ error: string | null;
13896
+ id: string;
13897
+ instruction: string;
13898
+ lastEventSeq: number;
13899
+ modelRoundCount: number;
13900
+ organizationId: string;
13901
+ question: string | null;
13902
+ result: {
13903
+ links: {
13904
+ label: string;
13905
+ /** Format: uri */
13906
+ url: string;
13907
+ }[];
13908
+ modelRoundCount: number;
13909
+ summary: string;
13910
+ toolCallCount: number;
13911
+ totalCost?: number;
13912
+ touchedEntities: {
13913
+ /** @enum {string} */
13914
+ action: "created" | "updated" | "deleted" | "executed" | "read";
13915
+ id: string;
13916
+ kind: string;
13917
+ name?: string;
13918
+ }[];
13919
+ warnings?: string[];
13920
+ } | null;
13921
+ startedAt: string | null;
13922
+ /** @enum {string} */
13923
+ status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
13924
+ summary: string | null;
13925
+ toolCallCount: number;
13926
+ totalCost: number | null;
13927
+ touchedEntities: {
13928
+ /** @enum {string} */
13929
+ action: "created" | "updated" | "deleted" | "executed" | "read";
13930
+ id: string;
13931
+ kind: string;
13932
+ name?: string;
13933
+ }[];
13934
+ updatedAt: string;
13935
+ userId: string;
13936
+ }[];
13937
+ pagination: components["schemas"]["Pagination"];
13938
+ };
13939
+ };
13940
+ };
13941
+ /** @description Invalid limit */
13942
+ 400: {
13943
+ headers: {
13944
+ [name: string]: unknown;
13945
+ };
13946
+ content: {
13947
+ "application/json": components["schemas"]["Error"];
13948
+ };
13949
+ };
13950
+ /** @description Unauthorized */
13951
+ 401: {
13952
+ headers: {
13953
+ [name: string]: unknown;
13954
+ };
13955
+ content: {
13956
+ "application/json": components["schemas"]["Error"];
13957
+ };
13958
+ };
13959
+ /** @description Missing API key scope */
13960
+ 403: {
13961
+ headers: {
13962
+ [name: string]: unknown;
13963
+ };
13964
+ content: {
13965
+ "application/json": components["schemas"]["Error"];
13966
+ };
13967
+ };
13968
+ /** @description Feature disabled, or no such task in this organization */
13969
+ 404: {
13970
+ headers: {
13971
+ [name: string]: unknown;
13972
+ };
13973
+ content: {
13974
+ "application/json": components["schemas"]["Error"];
13975
+ };
13976
+ };
13977
+ /** @description The operator agent is not available on this deployment */
13978
+ 503: {
13979
+ headers: {
13980
+ [name: string]: unknown;
13981
+ };
13982
+ content: {
13983
+ "application/json": components["schemas"]["Error"];
13984
+ };
13985
+ };
13986
+ };
13987
+ };
13988
+ put?: never;
13989
+ /**
13990
+ * Delegate a task to the Runtype operator agent
13991
+ * @description Start a task the operator agent works through in your organization: it reads and changes agents, flows, records, tools, evals and surfaces with the same authority as the caller. With `waitSeconds` the response waits up to that long for the task to finish or to stop on a question (`input_required`) before answering; otherwise it returns the queued task at once. An identical delegation from the same caller that is still running is returned again (200, `deduplicated: true`) instead of starting a second one. API keys need `DELEGATE_TASKS:WRITE`.
13992
+ */
13993
+ post: {
13994
+ parameters: {
13995
+ query?: never;
13996
+ header?: never;
13997
+ path?: never;
13998
+ cookie?: never;
13999
+ };
14000
+ requestBody?: {
14001
+ content: {
14002
+ "application/json": {
14003
+ allowDestructive?: boolean;
14004
+ clientName?: string;
14005
+ clientVersion?: string;
14006
+ context?: unknown;
14007
+ instruction: string;
14008
+ maxToolCalls?: number;
14009
+ waitSeconds?: number;
14010
+ };
14011
+ };
14012
+ };
14013
+ responses: {
14014
+ /** @description The still-running task this request duplicated */
14015
+ 200: {
14016
+ headers: {
14017
+ [name: string]: unknown;
14018
+ };
14019
+ content: {
14020
+ "application/json": {
14021
+ apiKeyId: string | null;
14022
+ clientName: string | null;
14023
+ clientVersion: string | null;
14024
+ completedAt: string | null;
14025
+ context?: unknown;
14026
+ createdAt: string;
14027
+ /** @description True when an identical delegation from the same caller was still running, so that task was returned instead of starting another. */
14028
+ deduplicated?: boolean;
14029
+ error: string | null;
14030
+ id: string;
14031
+ instruction: string;
14032
+ lastEventSeq: number;
14033
+ modelRoundCount: number;
14034
+ organizationId: string;
14035
+ question: string | null;
14036
+ result: {
14037
+ links: {
14038
+ label: string;
14039
+ /** Format: uri */
14040
+ url: string;
14041
+ }[];
14042
+ modelRoundCount: number;
14043
+ summary: string;
14044
+ toolCallCount: number;
14045
+ totalCost?: number;
14046
+ touchedEntities: {
14047
+ /** @enum {string} */
14048
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14049
+ id: string;
14050
+ kind: string;
14051
+ name?: string;
14052
+ }[];
14053
+ warnings?: string[];
14054
+ } | null;
14055
+ startedAt: string | null;
14056
+ /** @enum {string} */
14057
+ status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14058
+ summary: string | null;
14059
+ toolCallCount: number;
14060
+ totalCost: number | null;
14061
+ touchedEntities: {
14062
+ /** @enum {string} */
14063
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14064
+ id: string;
14065
+ kind: string;
14066
+ name?: string;
14067
+ }[];
14068
+ updatedAt: string;
14069
+ userId: string;
14070
+ };
14071
+ };
14072
+ };
14073
+ /** @description The task */
14074
+ 201: {
14075
+ headers: {
14076
+ [name: string]: unknown;
14077
+ };
14078
+ content: {
14079
+ "application/json": {
14080
+ apiKeyId: string | null;
14081
+ clientName: string | null;
14082
+ clientVersion: string | null;
14083
+ completedAt: string | null;
14084
+ context?: unknown;
14085
+ createdAt: string;
14086
+ /** @description True when an identical delegation from the same caller was still running, so that task was returned instead of starting another. */
14087
+ deduplicated?: boolean;
14088
+ error: string | null;
14089
+ id: string;
14090
+ instruction: string;
14091
+ lastEventSeq: number;
14092
+ modelRoundCount: number;
14093
+ organizationId: string;
14094
+ question: string | null;
14095
+ result: {
14096
+ links: {
14097
+ label: string;
14098
+ /** Format: uri */
14099
+ url: string;
14100
+ }[];
14101
+ modelRoundCount: number;
14102
+ summary: string;
14103
+ toolCallCount: number;
14104
+ totalCost?: number;
14105
+ touchedEntities: {
14106
+ /** @enum {string} */
14107
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14108
+ id: string;
14109
+ kind: string;
14110
+ name?: string;
14111
+ }[];
14112
+ warnings?: string[];
14113
+ } | null;
14114
+ startedAt: string | null;
14115
+ /** @enum {string} */
14116
+ status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14117
+ summary: string | null;
14118
+ toolCallCount: number;
14119
+ totalCost: number | null;
14120
+ touchedEntities: {
14121
+ /** @enum {string} */
14122
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14123
+ id: string;
14124
+ kind: string;
14125
+ name?: string;
14126
+ }[];
14127
+ updatedAt: string;
14128
+ userId: string;
14129
+ };
14130
+ };
14131
+ };
14132
+ /** @description Invalid input */
14133
+ 400: {
14134
+ headers: {
14135
+ [name: string]: unknown;
14136
+ };
14137
+ content: {
14138
+ "application/json": components["schemas"]["Error"];
14139
+ };
14140
+ };
14141
+ /** @description Unauthorized */
14142
+ 401: {
14143
+ headers: {
14144
+ [name: string]: unknown;
14145
+ };
14146
+ content: {
14147
+ "application/json": components["schemas"]["Error"];
14148
+ };
14149
+ };
14150
+ /** @description Missing API key scope */
14151
+ 403: {
14152
+ headers: {
14153
+ [name: string]: unknown;
14154
+ };
14155
+ content: {
14156
+ "application/json": components["schemas"]["Error"];
14157
+ };
14158
+ };
14159
+ /** @description Feature disabled, or no such task in this organization */
14160
+ 404: {
14161
+ headers: {
14162
+ [name: string]: unknown;
14163
+ };
14164
+ content: {
14165
+ "application/json": components["schemas"]["Error"];
14166
+ };
14167
+ };
14168
+ /** @description `context` is larger than 16 KB of JSON */
14169
+ 413: {
14170
+ headers: {
14171
+ [name: string]: unknown;
14172
+ };
14173
+ content: {
14174
+ "application/json": components["schemas"]["Error"];
14175
+ };
14176
+ };
14177
+ /** @description The operator agent is not available on this deployment */
14178
+ 503: {
14179
+ headers: {
14180
+ [name: string]: unknown;
14181
+ };
14182
+ content: {
14183
+ "application/json": components["schemas"]["Error"];
14184
+ };
14185
+ };
14186
+ };
14187
+ };
14188
+ delete?: never;
14189
+ options?: never;
14190
+ head?: never;
14191
+ patch?: never;
14192
+ trace?: never;
14193
+ };
14194
+ "/v1/delegate-tasks/{id}": {
14195
+ parameters: {
14196
+ query?: never;
14197
+ header?: never;
14198
+ path?: never;
14199
+ cookie?: never;
14200
+ };
14201
+ /**
14202
+ * Get a delegate task
14203
+ * @description The task with the journal events past `after`. With `wait` the response waits up to that many seconds for a new event or a terminal status before answering, which is how a client polls without a tight loop.
14204
+ */
14205
+ get: {
14206
+ parameters: {
14207
+ query?: {
14208
+ wait?: number | null;
14209
+ after?: number | null;
14210
+ };
14211
+ header?: never;
14212
+ path: {
14213
+ /** @description The task id (`dlg_…`). */
14214
+ id: string;
14215
+ };
14216
+ cookie?: never;
14217
+ };
14218
+ requestBody?: never;
14219
+ responses: {
14220
+ /** @description The task and its new events */
14221
+ 200: {
14222
+ headers: {
14223
+ [name: string]: unknown;
14224
+ };
14225
+ content: {
14226
+ "application/json": {
14227
+ events: ({
14228
+ at: string;
14229
+ instruction: string;
14230
+ seq: number;
14231
+ taskId: string;
14232
+ /** @enum {string} */
14233
+ type: "task_started";
14234
+ } | {
14235
+ at: string;
14236
+ round: number;
14237
+ seq: number;
14238
+ text?: string;
14239
+ thinking?: boolean;
14240
+ /** @enum {string} */
14241
+ type: "model_round";
14242
+ } | {
14243
+ args?: unknown;
14244
+ at: string;
14245
+ callId: string;
14246
+ seq: number;
14247
+ tool: string;
14248
+ /** @enum {string} */
14249
+ type: "tool_call";
14250
+ } | {
14251
+ at: string;
14252
+ callId: string;
14253
+ durationMs: number;
14254
+ entity?: {
14255
+ /** @enum {string} */
14256
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14257
+ id: string;
14258
+ kind: string;
14259
+ name?: string;
14260
+ };
14261
+ ok: boolean;
14262
+ seq: number;
14263
+ summary: string;
14264
+ tool: string;
14265
+ /** @enum {string} */
14266
+ type: "tool_result";
14267
+ } | {
14268
+ at: string;
14269
+ message: string;
14270
+ seq: number;
14271
+ /** @enum {string} */
14272
+ type: "milestone";
14273
+ } | {
14274
+ at: string;
14275
+ question: string;
14276
+ seq: number;
14277
+ /** @enum {string} */
14278
+ type: "question";
14279
+ } | {
14280
+ at: string;
14281
+ message: string;
14282
+ seq: number;
14283
+ /** @enum {string} */
14284
+ type: "message_received";
14285
+ } | {
14286
+ at: string;
14287
+ result: {
14288
+ links: {
14289
+ label: string;
14290
+ /** Format: uri */
14291
+ url: string;
14292
+ }[];
14293
+ modelRoundCount: number;
14294
+ summary: string;
14295
+ toolCallCount: number;
14296
+ totalCost?: number;
14297
+ touchedEntities: {
14298
+ /** @enum {string} */
14299
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14300
+ id: string;
14301
+ kind: string;
14302
+ name?: string;
14303
+ }[];
14304
+ warnings?: string[];
14305
+ };
14306
+ seq: number;
14307
+ /** @enum {string} */
14308
+ type: "task_completed";
14309
+ } | {
14310
+ at: string;
14311
+ error: string;
14312
+ seq: number;
14313
+ /** @enum {string} */
14314
+ type: "task_failed";
14315
+ } | {
14316
+ at: string;
14317
+ seq: number;
14318
+ /** @enum {string} */
14319
+ type: "task_cancelled";
14320
+ })[];
14321
+ task: {
14322
+ apiKeyId: string | null;
14323
+ clientName: string | null;
14324
+ clientVersion: string | null;
14325
+ completedAt: string | null;
14326
+ context?: unknown;
14327
+ createdAt: string;
14328
+ error: string | null;
14329
+ id: string;
14330
+ instruction: string;
14331
+ lastEventSeq: number;
14332
+ modelRoundCount: number;
14333
+ organizationId: string;
14334
+ question: string | null;
14335
+ result: {
14336
+ links: {
14337
+ label: string;
14338
+ /** Format: uri */
14339
+ url: string;
14340
+ }[];
14341
+ modelRoundCount: number;
14342
+ summary: string;
14343
+ toolCallCount: number;
14344
+ totalCost?: number;
14345
+ touchedEntities: {
14346
+ /** @enum {string} */
14347
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14348
+ id: string;
14349
+ kind: string;
14350
+ name?: string;
14351
+ }[];
14352
+ warnings?: string[];
14353
+ } | null;
14354
+ startedAt: string | null;
14355
+ /** @enum {string} */
14356
+ status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14357
+ summary: string | null;
14358
+ toolCallCount: number;
14359
+ totalCost: number | null;
14360
+ touchedEntities: {
14361
+ /** @enum {string} */
14362
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14363
+ id: string;
14364
+ kind: string;
14365
+ name?: string;
14366
+ }[];
14367
+ updatedAt: string;
14368
+ userId: string;
14369
+ };
14370
+ };
14371
+ };
14372
+ };
14373
+ /** @description Unauthorized */
14374
+ 401: {
14375
+ headers: {
14376
+ [name: string]: unknown;
14377
+ };
14378
+ content: {
14379
+ "application/json": components["schemas"]["Error"];
14380
+ };
14381
+ };
14382
+ /** @description Missing API key scope */
14383
+ 403: {
14384
+ headers: {
14385
+ [name: string]: unknown;
14386
+ };
14387
+ content: {
14388
+ "application/json": components["schemas"]["Error"];
14389
+ };
14390
+ };
14391
+ /** @description Feature disabled, or no such task in this organization */
14392
+ 404: {
14393
+ headers: {
14394
+ [name: string]: unknown;
14395
+ };
14396
+ content: {
14397
+ "application/json": components["schemas"]["Error"];
14398
+ };
14399
+ };
14400
+ /** @description The operator agent is not available on this deployment */
14401
+ 503: {
14402
+ headers: {
14403
+ [name: string]: unknown;
14404
+ };
14405
+ content: {
14406
+ "application/json": components["schemas"]["Error"];
14407
+ };
14408
+ };
14409
+ };
14410
+ };
14411
+ put?: never;
14412
+ post?: never;
14413
+ delete?: never;
14414
+ options?: never;
14415
+ head?: never;
14416
+ patch?: never;
14417
+ trace?: never;
14418
+ };
14419
+ "/v1/delegate-tasks/{id}/cancel": {
14420
+ parameters: {
14421
+ query?: never;
14422
+ header?: never;
14423
+ path?: never;
14424
+ cookie?: never;
14425
+ };
14426
+ get?: never;
14427
+ put?: never;
14428
+ /**
14429
+ * Cancel a delegate task
14430
+ * @description Stop the task after its current tool round. API keys need `DELEGATE_TASKS:WRITE`.
14431
+ */
14432
+ post: {
14433
+ parameters: {
14434
+ query?: never;
14435
+ header?: never;
14436
+ path: {
14437
+ /** @description The task id (`dlg_…`). */
14438
+ id: string;
14439
+ };
14440
+ cookie?: never;
14441
+ };
14442
+ requestBody?: never;
14443
+ responses: {
14444
+ /** @description Cancellation requested */
14445
+ 202: {
14446
+ headers: {
14447
+ [name: string]: unknown;
14448
+ };
14449
+ content: {
14450
+ "application/json": {
14451
+ /** @enum {boolean} */
14452
+ accepted: true;
14453
+ task: {
14454
+ apiKeyId: string | null;
14455
+ clientName: string | null;
14456
+ clientVersion: string | null;
14457
+ completedAt: string | null;
14458
+ context?: unknown;
14459
+ createdAt: string;
14460
+ error: string | null;
14461
+ id: string;
14462
+ instruction: string;
14463
+ lastEventSeq: number;
14464
+ modelRoundCount: number;
14465
+ organizationId: string;
14466
+ question: string | null;
14467
+ result: {
14468
+ links: {
14469
+ label: string;
14470
+ /** Format: uri */
14471
+ url: string;
14472
+ }[];
14473
+ modelRoundCount: number;
14474
+ summary: string;
14475
+ toolCallCount: number;
14476
+ totalCost?: number;
14477
+ touchedEntities: {
14478
+ /** @enum {string} */
14479
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14480
+ id: string;
14481
+ kind: string;
14482
+ name?: string;
14483
+ }[];
14484
+ warnings?: string[];
14485
+ } | null;
14486
+ startedAt: string | null;
14487
+ /** @enum {string} */
14488
+ status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14489
+ summary: string | null;
14490
+ toolCallCount: number;
14491
+ totalCost: number | null;
14492
+ touchedEntities: {
14493
+ /** @enum {string} */
14494
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14495
+ id: string;
14496
+ kind: string;
14497
+ name?: string;
14498
+ }[];
14499
+ updatedAt: string;
14500
+ userId: string;
14501
+ };
14502
+ };
14503
+ };
14504
+ };
14505
+ /** @description Unauthorized */
14506
+ 401: {
14507
+ headers: {
14508
+ [name: string]: unknown;
14509
+ };
14510
+ content: {
14511
+ "application/json": components["schemas"]["Error"];
14512
+ };
14513
+ };
14514
+ /** @description Missing API key scope */
14515
+ 403: {
14516
+ headers: {
14517
+ [name: string]: unknown;
14518
+ };
14519
+ content: {
14520
+ "application/json": components["schemas"]["Error"];
14521
+ };
14522
+ };
14523
+ /** @description Feature disabled, or no such task in this organization */
14524
+ 404: {
14525
+ headers: {
14526
+ [name: string]: unknown;
14527
+ };
14528
+ content: {
14529
+ "application/json": components["schemas"]["Error"];
14530
+ };
14531
+ };
14532
+ /** @description The task has already settled */
14533
+ 409: {
14534
+ headers: {
14535
+ [name: string]: unknown;
14536
+ };
14537
+ content: {
14538
+ "application/json": components["schemas"]["Error"];
14539
+ };
14540
+ };
14541
+ /** @description The operator agent is not available on this deployment */
14542
+ 503: {
14543
+ headers: {
14544
+ [name: string]: unknown;
14545
+ };
14546
+ content: {
14547
+ "application/json": components["schemas"]["Error"];
14548
+ };
14549
+ };
14550
+ };
14551
+ };
14552
+ delete?: never;
14553
+ options?: never;
14554
+ head?: never;
14555
+ patch?: never;
14556
+ trace?: never;
14557
+ };
14558
+ "/v1/delegate-tasks/{id}/events": {
14559
+ parameters: {
14560
+ query?: never;
14561
+ header?: never;
14562
+ path?: never;
14563
+ cookie?: never;
14564
+ };
14565
+ /**
14566
+ * Stream a delegate task
14567
+ * @description Server-Sent Events: the journal past `after`, then a live tail until the task settles. Each frame carries its seq as the SSE id; reconnect with `after=<last id>`.
14568
+ */
14569
+ get: {
14570
+ parameters: {
14571
+ query?: {
14572
+ after?: number | null;
14573
+ };
14574
+ header?: never;
14575
+ path: {
14576
+ /** @description The task id (`dlg_…`). */
14577
+ id: string;
14578
+ };
14579
+ cookie?: never;
14580
+ };
14581
+ requestBody?: never;
14582
+ responses: {
14583
+ /** @description Server-Sent Events stream (replay followed by a live tail) */
14584
+ 200: {
14585
+ headers: {
14586
+ [name: string]: unknown;
14587
+ };
14588
+ content: {
14589
+ "text/event-stream": unknown;
14590
+ };
14591
+ };
14592
+ /** @description Unauthorized */
14593
+ 401: {
14594
+ headers: {
14595
+ [name: string]: unknown;
14596
+ };
14597
+ content: {
14598
+ "application/json": components["schemas"]["Error"];
14599
+ };
14600
+ };
14601
+ /** @description Missing API key scope */
14602
+ 403: {
14603
+ headers: {
14604
+ [name: string]: unknown;
14605
+ };
14606
+ content: {
14607
+ "application/json": components["schemas"]["Error"];
14608
+ };
14609
+ };
14610
+ /** @description Feature disabled, or no such task in this organization */
14611
+ 404: {
14612
+ headers: {
14613
+ [name: string]: unknown;
14614
+ };
14615
+ content: {
14616
+ "application/json": components["schemas"]["Error"];
14617
+ };
14618
+ };
14619
+ /** @description The operator agent is not available on this deployment */
14620
+ 503: {
14621
+ headers: {
14622
+ [name: string]: unknown;
14623
+ };
14624
+ content: {
14625
+ "application/json": components["schemas"]["Error"];
14626
+ };
14627
+ };
14628
+ };
14629
+ };
14630
+ put?: never;
14631
+ post?: never;
14632
+ delete?: never;
14633
+ options?: never;
14634
+ head?: never;
14635
+ patch?: never;
14636
+ trace?: never;
14637
+ };
14638
+ "/v1/delegate-tasks/{id}/messages": {
14639
+ parameters: {
14640
+ query?: never;
14641
+ header?: never;
14642
+ path?: never;
14643
+ cookie?: never;
14644
+ };
14645
+ get?: never;
14646
+ put?: never;
14647
+ /**
14648
+ * Send a message to a delegate task
14649
+ * @description Answer a question the task asked (status `input_required`) or add a follow-up instruction to a running task. Only the principal that started the task (the same user, and the same API key when one started it) may message it, because the task keeps acting with that principal's authority. API keys need `DELEGATE_TASKS:WRITE`.
14650
+ */
14651
+ post: {
14652
+ parameters: {
14653
+ query?: never;
14654
+ header?: never;
14655
+ path: {
14656
+ /** @description The task id (`dlg_…`). */
14657
+ id: string;
14658
+ };
14659
+ cookie?: never;
14660
+ };
14661
+ requestBody?: {
14662
+ content: {
14663
+ "application/json": {
14664
+ message: string;
14665
+ };
14666
+ };
14667
+ };
14668
+ responses: {
14669
+ /** @description Accepted */
14670
+ 202: {
14671
+ headers: {
14672
+ [name: string]: unknown;
14673
+ };
14674
+ content: {
14675
+ "application/json": {
14676
+ /** @enum {boolean} */
14677
+ accepted: true;
14678
+ task: {
14679
+ apiKeyId: string | null;
14680
+ clientName: string | null;
14681
+ clientVersion: string | null;
14682
+ completedAt: string | null;
14683
+ context?: unknown;
14684
+ createdAt: string;
14685
+ error: string | null;
14686
+ id: string;
14687
+ instruction: string;
14688
+ lastEventSeq: number;
14689
+ modelRoundCount: number;
14690
+ organizationId: string;
14691
+ question: string | null;
14692
+ result: {
14693
+ links: {
14694
+ label: string;
14695
+ /** Format: uri */
14696
+ url: string;
14697
+ }[];
14698
+ modelRoundCount: number;
14699
+ summary: string;
14700
+ toolCallCount: number;
14701
+ totalCost?: number;
14702
+ touchedEntities: {
14703
+ /** @enum {string} */
14704
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14705
+ id: string;
14706
+ kind: string;
14707
+ name?: string;
14708
+ }[];
14709
+ warnings?: string[];
14710
+ } | null;
14711
+ startedAt: string | null;
14712
+ /** @enum {string} */
14713
+ status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14714
+ summary: string | null;
14715
+ toolCallCount: number;
14716
+ totalCost: number | null;
14717
+ touchedEntities: {
14718
+ /** @enum {string} */
14719
+ action: "created" | "updated" | "deleted" | "executed" | "read";
14720
+ id: string;
14721
+ kind: string;
14722
+ name?: string;
14723
+ }[];
14724
+ updatedAt: string;
14725
+ userId: string;
14726
+ };
14727
+ };
14728
+ };
14729
+ };
14730
+ /** @description Unauthorized */
14731
+ 401: {
14732
+ headers: {
14733
+ [name: string]: unknown;
14734
+ };
14735
+ content: {
14736
+ "application/json": components["schemas"]["Error"];
14737
+ };
14738
+ };
14739
+ /** @description Missing API key scope, or the caller is not the principal that started the task */
14740
+ 403: {
14741
+ headers: {
14742
+ [name: string]: unknown;
14743
+ };
14744
+ content: {
14745
+ "application/json": components["schemas"]["Error"];
14746
+ };
14747
+ };
14748
+ /** @description Feature disabled, or no such task in this organization */
14749
+ 404: {
14750
+ headers: {
14751
+ [name: string]: unknown;
14752
+ };
14753
+ content: {
14754
+ "application/json": components["schemas"]["Error"];
14755
+ };
14756
+ };
14757
+ /** @description The task has already settled */
14758
+ 409: {
14759
+ headers: {
14760
+ [name: string]: unknown;
14761
+ };
14762
+ content: {
14763
+ "application/json": components["schemas"]["Error"];
14764
+ };
14765
+ };
14766
+ /** @description The operator agent is not available on this deployment */
14767
+ 503: {
14768
+ headers: {
14769
+ [name: string]: unknown;
14770
+ };
14771
+ content: {
14772
+ "application/json": components["schemas"]["Error"];
14773
+ };
14774
+ };
14775
+ };
14776
+ };
14777
+ delete?: never;
14778
+ options?: never;
14779
+ head?: never;
14780
+ patch?: never;
14781
+ trace?: never;
14782
+ };
13857
14783
  "/v1/devices": {
13858
14784
  parameters: {
13859
14785
  query?: never;
@@ -53205,6 +54131,7 @@ interface paths {
53205
54131
  enableChromeSurface: boolean;
53206
54132
  enableDashboardAssistant: boolean;
53207
54133
  enableDecisionModelsDashboard: boolean;
54134
+ enableDelegateToRuntype?: boolean;
53208
54135
  enableEndUserUsageAnalytics: boolean;
53209
54136
  enableMassiveWebRender: boolean;
53210
54137
  enableOnboardingIntentGate: boolean;