@empiricalrun/playwright-utils 0.66.1 → 0.66.2

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.
@@ -2165,8 +2165,8 @@ export interface paths {
2165
2165
  get: operations["listTasks"];
2166
2166
  put?: never;
2167
2167
  /**
2168
- * 🤖 Create a task
2169
- * @description Creates a task for the scoped project. Every task is owed to a person: `created_by` defaults to the signed-in user or, for an agent, the person who started its session. An agent acting for someone else, such as the person who asked in Slack, passes their user ID as `created_by`. Track your own follow-ups elsewhere; a task with no person behind it is rejected. It does not start a chat session; use `POST /api/tasks/{id}/chat-sessions` for that.
2168
+ * 🛡️ Create a task
2169
+ * @description Creates a task for the scoped project. Only people and Empirical's own services create tasks; agents work on them. `created_by` defaults to the signed-in user. A service may leave it out, and the task is then owed to the platform. It does not start a chat session; use `POST /api/tasks/{id}/chat-sessions` for that.
2170
2170
  */
2171
2171
  post: operations["createTask"];
2172
2172
  delete?: never;
@@ -2190,7 +2190,7 @@ export interface paths {
2190
2190
  put?: never;
2191
2191
  post?: never;
2192
2192
  /**
2193
- * 🤖 Delete a task
2193
+ * 🛡️ Delete a task
2194
2194
  * @description Permanently deletes a task.
2195
2195
  */
2196
2196
  delete: operations["deleteTask"];
@@ -2198,11 +2198,51 @@ export interface paths {
2198
2198
  head?: never;
2199
2199
  /**
2200
2200
  * 🤖 Update a task
2201
- * @description Updates a task's title, description, or status. A draft → open transition spawns a chat session.
2201
+ * @description Updates a task's title, description, or status. A status change, and any `note`, is added to the task's activity.
2202
2202
  */
2203
2203
  patch: operations["updateTask"];
2204
2204
  trace?: never;
2205
2205
  };
2206
+ "/api/tasks/{id}/activity": {
2207
+ parameters: {
2208
+ query?: never;
2209
+ header?: never;
2210
+ path?: never;
2211
+ cookie?: never;
2212
+ };
2213
+ /**
2214
+ * 🤖 List a task's activity
2215
+ * @description Returns the task's status changes and comments, oldest first.
2216
+ */
2217
+ get: operations["listTaskActivity"];
2218
+ put?: never;
2219
+ post?: never;
2220
+ delete?: never;
2221
+ options?: never;
2222
+ head?: never;
2223
+ patch?: never;
2224
+ trace?: never;
2225
+ };
2226
+ "/api/tasks/{id}/comments": {
2227
+ parameters: {
2228
+ query?: never;
2229
+ header?: never;
2230
+ path?: never;
2231
+ cookie?: never;
2232
+ };
2233
+ get?: never;
2234
+ put?: never;
2235
+ /**
2236
+ * 🤖 Comment on a task
2237
+ * @description Adds a comment to the task's activity.
2238
+ */
2239
+ post: operations["createTaskComment"];
2240
+ delete?: never;
2241
+ options?: never;
2242
+ head?: never;
2243
+ patch?: never;
2244
+ trace?: never;
2245
+ };
2206
2246
  "/api/traces/compare": {
2207
2247
  parameters: {
2208
2248
  query?: never;
@@ -6332,84 +6372,6 @@ export interface paths {
6332
6372
  patch?: never;
6333
6373
  trace?: never;
6334
6374
  };
6335
- "/api/sandbox-snapshots/sources/upsert": {
6336
- parameters: {
6337
- query?: never;
6338
- header?: never;
6339
- path?: never;
6340
- cookie?: never;
6341
- };
6342
- get?: never;
6343
- put?: never;
6344
- /**
6345
- * ⚙️ Upsert sandbox snapshot sources
6346
- * @description Upserts one or more snapshot source rows; called by sandbox-template CI.
6347
- */
6348
- post: operations["upsertSandboxSnapshotSources"];
6349
- delete?: never;
6350
- options?: never;
6351
- head?: never;
6352
- patch?: never;
6353
- trace?: never;
6354
- };
6355
- "/api/system-messages": {
6356
- parameters: {
6357
- query?: never;
6358
- header?: never;
6359
- path?: never;
6360
- cookie?: never;
6361
- };
6362
- /** 🛡️ List system messages with delivery and ack counts */
6363
- get: operations["listSystemMessages"];
6364
- put?: never;
6365
- /**
6366
- * 🛡️ Broadcast a system message to manager sessions
6367
- * @description Persists the message and delivers it to project manager sessions. With `project_ids`, every listed project gets a recipient row, and one without an open manager is recorded as failed. Without it, the message goes to every project with an open manager, and active projects without one are returned in `skipped_project_ids` (not persisted). Delivery is attempted before responding. Managers acknowledge through `POST /api/system-messages/{id}/ack`.
6368
- */
6369
- post: operations["createSystemMessage"];
6370
- delete?: never;
6371
- options?: never;
6372
- head?: never;
6373
- patch?: never;
6374
- trace?: never;
6375
- };
6376
- "/api/system-messages/{id}": {
6377
- parameters: {
6378
- query?: never;
6379
- header?: never;
6380
- path?: never;
6381
- cookie?: never;
6382
- };
6383
- /** 🛡️ Get a system message's per-project delivery and ack status */
6384
- get: operations["getSystemMessage"];
6385
- put?: never;
6386
- post?: never;
6387
- delete?: never;
6388
- options?: never;
6389
- head?: never;
6390
- patch?: never;
6391
- trace?: never;
6392
- };
6393
- "/api/system-messages/{id}/ack": {
6394
- parameters: {
6395
- query?: never;
6396
- header?: never;
6397
- path?: never;
6398
- cookie?: never;
6399
- };
6400
- get?: never;
6401
- put?: never;
6402
- /**
6403
- * Acknowledge a system message from a manager session
6404
- * @description Records the calling manager session's acknowledgement for its project. Any manager session of the project may ack, so a successor can answer a message its predecessor received. Re-acking overwrites the previous status and note.
6405
- */
6406
- post: operations["ackSystemMessage"];
6407
- delete?: never;
6408
- options?: never;
6409
- head?: never;
6410
- patch?: never;
6411
- trace?: never;
6412
- };
6413
6375
  "/api/tasks/{id}/chat-sessions": {
6414
6376
  parameters: {
6415
6377
  query?: never;
@@ -6424,8 +6386,8 @@ export interface paths {
6424
6386
  get: operations["listTaskChatSessions"];
6425
6387
  put?: never;
6426
6388
  /**
6427
- * ⚙️ Create a chat session for a task
6428
- * @description Starts a new chat session tied to a task.
6389
+ * 🛡️ Create a chat session for a task
6390
+ * @description Starts a chat session that works on the task. Its first message points the agent at the task and the `empirical-tasks` skill, followed by any `initial_prompt`. A service's session belongs to the person the task is for, or to the platform.
6429
6391
  */
6430
6392
  post: operations["createTaskChatSession"];
6431
6393
  delete?: never;
@@ -6842,20 +6804,6 @@ export interface paths {
6842
6804
  export type webhooks = Record<string, never>;
6843
6805
  export interface components {
6844
6806
  schemas: {
6845
- AckSystemMessageRequest: {
6846
- /** @enum {string} */
6847
- status: "accepted" | "declined";
6848
- note?: string;
6849
- };
6850
- AckSystemMessageResponse: {
6851
- data: {
6852
- system_message_id: number;
6853
- project_id: number;
6854
- /** @enum {string} */
6855
- ack_status: "accepted" | "declined";
6856
- acked_at: string;
6857
- };
6858
- };
6859
6807
  ActivityDay: {
6860
6808
  /** @description Local date, YYYY-MM-DD. */
6861
6809
  date: string;
@@ -8343,16 +8291,9 @@ export interface components {
8343
8291
  /** @description ID of the test run this snooze was created from, if applicable. */
8344
8292
  created_from_test_run_id?: string | number;
8345
8293
  };
8346
- CreateSystemMessageRequest: {
8294
+ CreateTaskCommentRequest: {
8295
+ /** @description Comment text (Markdown). */
8347
8296
  body: string;
8348
- project_ids?: number[];
8349
- };
8350
- CreateSystemMessageResponse: {
8351
- data: {
8352
- system_message: components["schemas"]["SystemMessage"];
8353
- recipients: components["schemas"]["SystemMessageRecipient"][];
8354
- skipped_project_ids: number[];
8355
- };
8356
8297
  };
8357
8298
  CreateTaskError: {
8358
8299
  /** @description Always null for error responses. */
@@ -8378,8 +8319,8 @@ export interface components {
8378
8319
  * @description Initial status; defaults to `open`.
8379
8320
  * @enum {string}
8380
8321
  */
8381
- status?: "draft" | "open" | "in-review" | "closed" | "resolved";
8382
- /** @description User ID of the person the task is for. Defaults to the signed-in user, or to the person who started the calling agent's session. Pass it when acting for someone else; there must be a person. */
8322
+ status?: "open" | "in-progress" | "blocked" | "in-review" | "resolved" | "closed";
8323
+ /** @description User ID of the person the task is for. Defaults to the signed-in user. A service may leave it out to make the task owed to the platform. */
8383
8324
  created_by?: string;
8384
8325
  };
8385
8326
  CreateTaskResponse: {
@@ -13553,39 +13494,6 @@ export interface components {
13553
13494
  /** @description Branch names the sandbox must not push to. */
13554
13495
  branches: string[];
13555
13496
  };
13556
- SandboxSnapshot: {
13557
- /** @description Snapshot row ID. */
13558
- id: number;
13559
- /** @description Project the snapshot belongs to, or null. */
13560
- project_id: number | null;
13561
- /** @description Sandbox provider (e.g. `e2b`). */
13562
- provider: string;
13563
- /** @description Snapshot source identifier. */
13564
- source_name: string;
13565
- /** @description Playwright version the snapshot was built with. */
13566
- playwright_version: string;
13567
- /** @description Hash of the package lockfile, if known. */
13568
- package_lock_hash: string | null;
13569
- /** @description Base branch the snapshot was built from. */
13570
- base_branch: string | null;
13571
- /** @description Base template the snapshot was built from. */
13572
- base_template: string | null;
13573
- /** @description Head commit SHA the snapshot was built from. */
13574
- head_sha: string | null;
13575
- /** @description ISO 8601 creation timestamp. */
13576
- created_at: string;
13577
- /** @description ISO 8601 last-update timestamp. */
13578
- updated_at: string;
13579
- } | null;
13580
- SandboxSnapshotSourcesUpsertResponse: {
13581
- /** @description Response payload. */
13582
- data: {
13583
- /** @description Number of sources upserted. */
13584
- source_count: number;
13585
- /** @description The upserted snapshot source rows. */
13586
- sources: components["schemas"]["SandboxSnapshot"][];
13587
- };
13588
- };
13589
13497
  ScheduleSnoozeExpiryRequest: {
13590
13498
  /** @description ID of the snooze whose expiry alarm to register. */
13591
13499
  snooze_id: number;
@@ -13875,14 +13783,6 @@ export interface components {
13875
13783
  };
13876
13784
  };
13877
13785
  };
13878
- } | {
13879
- /** @enum {string} */
13880
- kind: "system_message";
13881
- delivery: {
13882
- id: number;
13883
- message: string;
13884
- ack_instructions: string;
13885
- };
13886
13786
  };
13887
13787
  rpcCommandId?: string;
13888
13788
  };
@@ -14632,47 +14532,6 @@ export interface components {
14632
14532
  }[];
14633
14533
  };
14634
14534
  };
14635
- SystemMessage: {
14636
- id: number;
14637
- body: string;
14638
- created_by: string | null;
14639
- created_at: string;
14640
- };
14641
- SystemMessageDetailResponse: {
14642
- data: {
14643
- system_message: components["schemas"]["SystemMessage"];
14644
- recipients: components["schemas"]["SystemMessageRecipient"][];
14645
- };
14646
- };
14647
- SystemMessageListResponse: {
14648
- data: {
14649
- system_messages: components["schemas"]["SystemMessageSummary"][];
14650
- };
14651
- };
14652
- SystemMessageRecipient: {
14653
- project_id: number;
14654
- chat_session_id: number | null;
14655
- /** @enum {string} */
14656
- delivery_status: "pending" | "delivered" | "failed";
14657
- delivery_error: string | null;
14658
- delivered_at: string | null;
14659
- /** @enum {string|null} */
14660
- ack_status: "accepted" | "declined" | null;
14661
- ack_note: string | null;
14662
- acked_at: string | null;
14663
- acked_by_chat_session_id: number | null;
14664
- session_is_closed: boolean | null;
14665
- };
14666
- SystemMessageSummary: {
14667
- id: number;
14668
- body: string;
14669
- created_by: string | null;
14670
- created_at: string;
14671
- recipients: number;
14672
- delivered: number;
14673
- failed: number;
14674
- acked: number;
14675
- };
14676
14535
  Task: {
14677
14536
  /** @description Unique identifier for the task. */
14678
14537
  id: number;
@@ -14687,13 +14546,78 @@ export interface components {
14687
14546
  source: string;
14688
14547
  /** @description Identifier of the task in its source system. */
14689
14548
  source_identifier: string;
14690
- /** @description User ID of the person the task is owed to. `null` only on tasks created before this was required. */
14549
+ /** @description User ID of the person the task is owed to. `null` means it is owed to the platform. */
14691
14550
  created_by: string | null;
14692
14551
  /** @description ISO 8601 timestamp of when the task was created. */
14693
14552
  created_at: string;
14694
14553
  /** @description ISO 8601 timestamp of when the task was last updated. */
14695
14554
  updated_at: string;
14696
14555
  };
14556
+ TaskActivity: {
14557
+ /** @description Activity entry ID. */
14558
+ id: number;
14559
+ /** @description Task the entry is on. */
14560
+ task_id: number;
14561
+ /** @description User who wrote it. `null` for an agent (see `created_by_chat_session_id`) or the platform. */
14562
+ created_by: string | null;
14563
+ /** @description Chat session of the agent that wrote it, if an agent did. */
14564
+ created_by_chat_session_id: number | null;
14565
+ /** @description Comment, or the note on a status change (Markdown). */
14566
+ body: string | null;
14567
+ /**
14568
+ * @description Status before the change; `null` for a plain comment.
14569
+ * @enum {string|null}
14570
+ */
14571
+ status_from: "open" | "in-progress" | "blocked" | "in-review" | "resolved" | "closed" | null;
14572
+ /**
14573
+ * @description Status after the change; `null` for a plain comment.
14574
+ * @enum {string|null}
14575
+ */
14576
+ status_to: "open" | "in-progress" | "blocked" | "in-review" | "resolved" | "closed" | null;
14577
+ /** @description ISO 8601 timestamp of when the entry was written. */
14578
+ created_at: string;
14579
+ };
14580
+ TaskActivityListResponse: {
14581
+ /** @description Response payload. */
14582
+ data: {
14583
+ activity: components["schemas"]["TaskActivityWithCreator"][];
14584
+ };
14585
+ };
14586
+ TaskActivityWithCreator: {
14587
+ /** @description Activity entry ID. */
14588
+ id: number;
14589
+ /** @description Task the entry is on. */
14590
+ task_id: number;
14591
+ /** @description User who wrote it. `null` for an agent (see `created_by_chat_session_id`) or the platform. */
14592
+ created_by: string | null;
14593
+ /** @description Chat session of the agent that wrote it, if an agent did. */
14594
+ created_by_chat_session_id: number | null;
14595
+ /** @description Comment, or the note on a status change (Markdown). */
14596
+ body: string | null;
14597
+ /**
14598
+ * @description Status before the change; `null` for a plain comment.
14599
+ * @enum {string|null}
14600
+ */
14601
+ status_from: "open" | "in-progress" | "blocked" | "in-review" | "resolved" | "closed" | null;
14602
+ /**
14603
+ * @description Status after the change; `null` for a plain comment.
14604
+ * @enum {string|null}
14605
+ */
14606
+ status_to: "open" | "in-progress" | "blocked" | "in-review" | "resolved" | "closed" | null;
14607
+ /** @description ISO 8601 timestamp of when the entry was written. */
14608
+ created_at: string;
14609
+ /** @description Details of the user who wrote it, when a user did. */
14610
+ created_by_user_detail?: {
14611
+ /** @description User ID. */
14612
+ id: string;
14613
+ /** @description User email address. */
14614
+ email: string;
14615
+ /** @description User display name. */
14616
+ name: string;
14617
+ /** @description URL to user avatar image. */
14618
+ picture: string;
14619
+ } | null;
14620
+ };
14697
14621
  TaskChatSession: {
14698
14622
  /** @description Chat session ID. */
14699
14623
  id: number;
@@ -14770,6 +14694,12 @@ export interface components {
14770
14694
  /** @description Chat sessions for the task. */
14771
14695
  data: components["schemas"]["TaskChatSessionWithUser"][];
14772
14696
  };
14697
+ TaskCommentResponse: {
14698
+ /** @description Response payload. */
14699
+ data: {
14700
+ activity: components["schemas"]["TaskActivity"];
14701
+ };
14702
+ };
14773
14703
  TaskListResponse: {
14774
14704
  /** @description The page of tasks. */
14775
14705
  data: {
@@ -14790,10 +14720,10 @@ export interface components {
14790
14720
  };
14791
14721
  };
14792
14722
  /**
14793
- * @description Moving a `draft` task to `open` starts an agent session. `closed` and `resolved` are terminal.
14723
+ * @description `open`: asked for, nobody is working on it yet. `in-progress`: someone is working on it. `blocked`: cannot continue without a person; say what is needed. `in-review`: the change is ready, e.g. a pull request is open. `resolved`: done, e.g. the pull request is merged. `closed`: dropped without doing it; say why. `resolved` and `closed` are terminal.
14794
14724
  * @enum {string}
14795
14725
  */
14796
- TaskStatus: "draft" | "open" | "in-review" | "closed" | "resolved";
14726
+ TaskStatus: "open" | "in-progress" | "blocked" | "in-review" | "resolved" | "closed";
14797
14727
  TaskWithCreator: {
14798
14728
  /** @description Unique identifier for the task. */
14799
14729
  id: number;
@@ -14808,7 +14738,7 @@ export interface components {
14808
14738
  source: string;
14809
14739
  /** @description Identifier of the task in its source system. */
14810
14740
  source_identifier: string;
14811
- /** @description User ID of the person the task is owed to. `null` only on tasks created before this was required. */
14741
+ /** @description User ID of the person the task is owed to. `null` means it is owed to the platform. */
14812
14742
  created_by: string | null;
14813
14743
  /** @description ISO 8601 timestamp of when the task was created. */
14814
14744
  created_at: string;
@@ -16530,10 +16460,12 @@ export interface components {
16530
16460
  /** @description New task description (Markdown). */
16531
16461
  description?: string;
16532
16462
  /**
16533
- * @description New task status. Moving a `draft` task to `open` starts an agent session.
16463
+ * @description New task status.
16534
16464
  * @enum {string}
16535
16465
  */
16536
- status?: "draft" | "open" | "in-review" | "closed" | "resolved";
16466
+ status?: "open" | "in-progress" | "blocked" | "in-review" | "resolved" | "closed";
16467
+ /** @description Why the status changed, shown in the task's activity. Say what is needed when moving to `blocked`, and why when moving to `closed`. */
16468
+ note?: string;
16537
16469
  };
16538
16470
  UpdateTestCaseTagsRequest: {
16539
16471
  /** @description Array of tags to assign to the test case. */
@@ -16599,30 +16531,6 @@ export interface components {
16599
16531
  /** @description Signing secret, if set. */
16600
16532
  secret: string | null;
16601
16533
  };
16602
- UpsertSandboxSnapshotSourcesRequest: {
16603
- /** @description Snapshot sources to upsert (at least one). */
16604
- sources: {
16605
- /** @description Project the source belongs to, or null if generic. */
16606
- project_id: number | null;
16607
- /**
16608
- * @description Sandbox provider.
16609
- * @enum {string}
16610
- */
16611
- provider: "e2b" | "docker" | "vercel";
16612
- /** @description Snapshot source identifier (e.g. template ID). */
16613
- source_name: string;
16614
- /** @description Playwright version the snapshot was built with. */
16615
- playwright_version: string;
16616
- /** @description Base template the source was built from. */
16617
- base_template: string;
16618
- /** @description Hash of the package lockfile, if known. */
16619
- package_lock_hash?: string | null;
16620
- /** @description Base branch the snapshot was built from, if known. */
16621
- base_branch?: string | null;
16622
- /** @description Head commit SHA the snapshot was built from. */
16623
- head_sha?: string | null;
16624
- }[];
16625
- };
16626
16534
  UpsertTriageStatusRequest: {
16627
16535
  /** @description The run in which this failure was observed. */
16628
16536
  test_run_id: number;
@@ -23431,7 +23339,7 @@ export interface operations {
23431
23339
  "application/json": components["schemas"]["CreateTaskResponse"];
23432
23340
  };
23433
23341
  };
23434
- /** @description Missing required fields, no person to own the task, or invalid input. */
23342
+ /** @description Missing required fields, or a created_by outside the project. */
23435
23343
  400: {
23436
23344
  headers: {
23437
23345
  [name: string]: unknown;
@@ -23587,6 +23495,74 @@ export interface operations {
23587
23495
  };
23588
23496
  };
23589
23497
  };
23498
+ listTaskActivity: {
23499
+ parameters: {
23500
+ query?: never;
23501
+ header?: never;
23502
+ path: {
23503
+ /** @description Task ID. */
23504
+ id: number;
23505
+ };
23506
+ cookie?: never;
23507
+ };
23508
+ requestBody?: never;
23509
+ responses: {
23510
+ /** @description The task's activity. */
23511
+ 200: {
23512
+ headers: {
23513
+ [name: string]: unknown;
23514
+ };
23515
+ content: {
23516
+ "application/json": components["schemas"]["TaskActivityListResponse"];
23517
+ };
23518
+ };
23519
+ /** @description Task not found. */
23520
+ 404: {
23521
+ headers: {
23522
+ [name: string]: unknown;
23523
+ };
23524
+ content: {
23525
+ "application/json": components["schemas"]["ErrorResponse"];
23526
+ };
23527
+ };
23528
+ };
23529
+ };
23530
+ createTaskComment: {
23531
+ parameters: {
23532
+ query?: never;
23533
+ header?: never;
23534
+ path: {
23535
+ /** @description Task ID. */
23536
+ id: number;
23537
+ };
23538
+ cookie?: never;
23539
+ };
23540
+ requestBody?: {
23541
+ content: {
23542
+ "application/json": components["schemas"]["CreateTaskCommentRequest"];
23543
+ };
23544
+ };
23545
+ responses: {
23546
+ /** @description The new comment. */
23547
+ 201: {
23548
+ headers: {
23549
+ [name: string]: unknown;
23550
+ };
23551
+ content: {
23552
+ "application/json": components["schemas"]["TaskCommentResponse"];
23553
+ };
23554
+ };
23555
+ /** @description Task not found. */
23556
+ 404: {
23557
+ headers: {
23558
+ [name: string]: unknown;
23559
+ };
23560
+ content: {
23561
+ "application/json": components["schemas"]["ErrorResponse"];
23562
+ };
23563
+ };
23564
+ };
23565
+ };
23590
23566
  compareTraceAgainstPass: {
23591
23567
  parameters: {
23592
23568
  query?: never;
@@ -34276,178 +34252,6 @@ export interface operations {
34276
34252
  };
34277
34253
  };
34278
34254
  };
34279
- upsertSandboxSnapshotSources: {
34280
- parameters: {
34281
- query?: never;
34282
- header?: never;
34283
- path?: never;
34284
- cookie?: never;
34285
- };
34286
- requestBody?: {
34287
- content: {
34288
- "application/json": components["schemas"]["UpsertSandboxSnapshotSourcesRequest"];
34289
- };
34290
- };
34291
- responses: {
34292
- /** @description The upserted sources. */
34293
- 200: {
34294
- headers: {
34295
- [name: string]: unknown;
34296
- };
34297
- content: {
34298
- "application/json": components["schemas"]["SandboxSnapshotSourcesUpsertResponse"];
34299
- };
34300
- };
34301
- /** @description Invalid request. */
34302
- 400: {
34303
- headers: {
34304
- [name: string]: unknown;
34305
- };
34306
- content: {
34307
- "application/json": components["schemas"]["ErrorResponse"];
34308
- };
34309
- };
34310
- };
34311
- };
34312
- listSystemMessages: {
34313
- parameters: {
34314
- query?: {
34315
- limit?: number;
34316
- };
34317
- header?: never;
34318
- path?: never;
34319
- cookie?: never;
34320
- };
34321
- requestBody?: never;
34322
- responses: {
34323
- /** @description Recent system messages, newest first. */
34324
- 200: {
34325
- headers: {
34326
- [name: string]: unknown;
34327
- };
34328
- content: {
34329
- "application/json": components["schemas"]["SystemMessageListResponse"];
34330
- };
34331
- };
34332
- };
34333
- };
34334
- createSystemMessage: {
34335
- parameters: {
34336
- query?: never;
34337
- header?: never;
34338
- path?: never;
34339
- cookie?: never;
34340
- };
34341
- requestBody?: {
34342
- content: {
34343
- "application/json": components["schemas"]["CreateSystemMessageRequest"];
34344
- };
34345
- };
34346
- responses: {
34347
- /** @description The message and its per-project delivery. */
34348
- 200: {
34349
- headers: {
34350
- [name: string]: unknown;
34351
- };
34352
- content: {
34353
- "application/json": components["schemas"]["CreateSystemMessageResponse"];
34354
- };
34355
- };
34356
- /** @description A listed project does not exist. */
34357
- 400: {
34358
- headers: {
34359
- [name: string]: unknown;
34360
- };
34361
- content: {
34362
- "application/json": components["schemas"]["ErrorResponse"];
34363
- };
34364
- };
34365
- /** @description Broadcast requested but no project has an open manager session. */
34366
- 422: {
34367
- headers: {
34368
- [name: string]: unknown;
34369
- };
34370
- content: {
34371
- "application/json": components["schemas"]["ErrorResponse"];
34372
- };
34373
- };
34374
- };
34375
- };
34376
- getSystemMessage: {
34377
- parameters: {
34378
- query?: never;
34379
- header?: never;
34380
- path: {
34381
- id: number;
34382
- };
34383
- cookie?: never;
34384
- };
34385
- requestBody?: never;
34386
- responses: {
34387
- /** @description The message and its per-project status. */
34388
- 200: {
34389
- headers: {
34390
- [name: string]: unknown;
34391
- };
34392
- content: {
34393
- "application/json": components["schemas"]["SystemMessageDetailResponse"];
34394
- };
34395
- };
34396
- /** @description System message not found. */
34397
- 404: {
34398
- headers: {
34399
- [name: string]: unknown;
34400
- };
34401
- content: {
34402
- "application/json": components["schemas"]["ErrorResponse"];
34403
- };
34404
- };
34405
- };
34406
- };
34407
- ackSystemMessage: {
34408
- parameters: {
34409
- query?: never;
34410
- header?: never;
34411
- path: {
34412
- id: number;
34413
- };
34414
- cookie?: never;
34415
- };
34416
- requestBody?: {
34417
- content: {
34418
- "application/json": components["schemas"]["AckSystemMessageRequest"];
34419
- };
34420
- };
34421
- responses: {
34422
- /** @description The recorded acknowledgement. */
34423
- 200: {
34424
- headers: {
34425
- [name: string]: unknown;
34426
- };
34427
- content: {
34428
- "application/json": components["schemas"]["AckSystemMessageResponse"];
34429
- };
34430
- };
34431
- /** @description Caller is not a manager chat session. */
34432
- 403: {
34433
- headers: {
34434
- [name: string]: unknown;
34435
- };
34436
- content: {
34437
- "application/json": components["schemas"]["ErrorResponse"];
34438
- };
34439
- };
34440
- /** @description System message was not sent to this project. */
34441
- 404: {
34442
- headers: {
34443
- [name: string]: unknown;
34444
- };
34445
- content: {
34446
- "application/json": components["schemas"]["ErrorResponse"];
34447
- };
34448
- };
34449
- };
34450
- };
34451
34255
  listTaskChatSessions: {
34452
34256
  parameters: {
34453
34257
  query?: never;
@@ -34502,9 +34306,9 @@ export interface operations {
34502
34306
  requestBody?: {
34503
34307
  content: {
34504
34308
  "application/json": {
34505
- /** @description Project the chat session belongs to. */
34309
+ /** @description The task's project. Optional; the session is always in the task's project. */
34506
34310
  project_id?: (number | string) | null;
34507
- /** @description First message to send to the agent. */
34311
+ /** @description Extra instructions added after the pointer to the task. */
34508
34312
  initial_prompt?: string | null;
34509
34313
  /** @description Model to use for the chat session. */
34510
34314
  model?: string | null;
@@ -34521,7 +34325,7 @@ export interface operations {
34521
34325
  "application/json": components["schemas"]["TaskSessionResponse"];
34522
34326
  };
34523
34327
  };
34524
- /** @description Missing acting user or project_id, or invalid input. */
34328
+ /** @description Invalid input. */
34525
34329
  400: {
34526
34330
  headers: {
34527
34331
  [name: string]: unknown;
@@ -34530,7 +34334,16 @@ export interface operations {
34530
34334
  "application/json": components["schemas"]["ErrorResponse"];
34531
34335
  };
34532
34336
  };
34533
- /** @description Project not found or inaccessible. */
34337
+ /** @description The project's billing blocks new sessions. */
34338
+ 402: {
34339
+ headers: {
34340
+ [name: string]: unknown;
34341
+ };
34342
+ content: {
34343
+ "application/json": components["schemas"]["ErrorResponse"];
34344
+ };
34345
+ };
34346
+ /** @description Task not found, or not in the given project. */
34534
34347
  404: {
34535
34348
  headers: {
34536
34349
  [name: string]: unknown;