@parallelworks/client 7.140.0 → 7.141.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.
Files changed (2) hide show
  1. package/dist/types/api.d.ts +473 -7
  2. package/package.json +1 -1
@@ -3637,6 +3637,28 @@ export interface paths {
3637
3637
  patch?: never;
3638
3638
  trace?: never;
3639
3639
  };
3640
+ "/api/code/machines/{machine}/claude-code/accounts/{name}/move": {
3641
+ parameters: {
3642
+ query?: never;
3643
+ header?: never;
3644
+ path?: never;
3645
+ cookie?: never;
3646
+ };
3647
+ get?: never;
3648
+ put?: never;
3649
+ /**
3650
+ * Move a Claude Code account's sessions to another account
3651
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
3652
+ *
3653
+ * Move a Claude Code account's sessions to another account. Switches every live session running Claude Code on the account to another, as the session settings route does for one: a turn waiting at the account's usage limit continues at once, and a running one switches after it. Every session on an account shares its usage limit, so this moves them off a spent one together. The daemon enforces each session's control policy.
3654
+ */
3655
+ post: operations["move-agent-machine-claude-account-sessions"];
3656
+ delete?: never;
3657
+ options?: never;
3658
+ head?: never;
3659
+ patch?: never;
3660
+ trace?: never;
3661
+ };
3640
3662
  "/api/code/machines/{machine}/claude-code/logins": {
3641
3663
  parameters: {
3642
3664
  query?: never;
@@ -3731,6 +3753,28 @@ export interface paths {
3731
3753
  patch?: never;
3732
3754
  trace?: never;
3733
3755
  };
3756
+ "/api/code/machines/{machine}/directories": {
3757
+ parameters: {
3758
+ query?: never;
3759
+ header?: never;
3760
+ path?: never;
3761
+ cookie?: never;
3762
+ };
3763
+ /**
3764
+ * List the folders a new pw code session could start in
3765
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
3766
+ *
3767
+ * Lists the folders in one directory of the machine, as the account its sessions run as sees them, leaving out files and anything the machine's deny rules cover. The machine answers only when its owner lets sessions start remotely.
3768
+ */
3769
+ get: operations["list-agent-machine-directories"];
3770
+ put?: never;
3771
+ post?: never;
3772
+ delete?: never;
3773
+ options?: never;
3774
+ head?: never;
3775
+ patch?: never;
3776
+ trace?: never;
3777
+ };
3734
3778
  "/api/code/machines/{machine}/palette": {
3735
3779
  parameters: {
3736
3780
  query?: never;
@@ -3991,6 +4035,28 @@ export interface paths {
3991
4035
  patch?: never;
3992
4036
  trace?: never;
3993
4037
  };
4038
+ "/api/code/machines/{machine}/sessions/{id}/direction/withdraw": {
4039
+ parameters: {
4040
+ query?: never;
4041
+ header?: never;
4042
+ path?: never;
4043
+ cookie?: never;
4044
+ };
4045
+ get?: never;
4046
+ put?: never;
4047
+ /**
4048
+ * Take back text steered into a pw code session's turn
4049
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
4050
+ *
4051
+ * Takes back text steered into the running turn that the model has not read yet, as removing a pending message does in the pw code terminal. Answers with the ids taken back; the model already read the rest. Like taking back a queued message, it is not held to the remote permission ceiling.
4052
+ */
4053
+ post: operations["withdraw-agent-session-direction"];
4054
+ delete?: never;
4055
+ options?: never;
4056
+ head?: never;
4057
+ patch?: never;
4058
+ trace?: never;
4059
+ };
3994
4060
  "/api/code/machines/{machine}/sessions/{id}/fork": {
3995
4061
  parameters: {
3996
4062
  query?: never;
@@ -4048,7 +4114,7 @@ export interface paths {
4048
4114
  * Set, show, or clear a pw code session's goal
4049
4115
  * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
4050
4116
  *
4051
- * Runs /goal with the same arguments the terminal takes. Setting or resuming a goal starts a turn on the session.
4117
+ * Runs /goal with the same arguments the terminal takes, and answers with the goal as the call left it. Setting or resuming a goal starts a turn on the session. A bare edit only reads the goal, and is the one form that joins nothing to the conversation.
4052
4118
  */
4053
4119
  post: operations["set-agent-session-goal"];
4054
4120
  delete?: never;
@@ -4509,6 +4575,50 @@ export interface paths {
4509
4575
  patch?: never;
4510
4576
  trace?: never;
4511
4577
  };
4578
+ "/api/code/machines/{machine}/sessions/{id}/subagents/{subId}/direction/withdraw": {
4579
+ parameters: {
4580
+ query?: never;
4581
+ header?: never;
4582
+ path?: never;
4583
+ cookie?: never;
4584
+ };
4585
+ get?: never;
4586
+ put?: never;
4587
+ /**
4588
+ * Take back text steered into a pw code subagent's work
4589
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
4590
+ *
4591
+ * Takes back text steered into the subagent's work in flight that its model has not read yet. Answers with the ids taken back; the model already read the rest.
4592
+ */
4593
+ post: operations["withdraw-agent-session-subagent-direction"];
4594
+ delete?: never;
4595
+ options?: never;
4596
+ head?: never;
4597
+ patch?: never;
4598
+ trace?: never;
4599
+ };
4600
+ "/api/code/machines/{machine}/sessions/{id}/subagents/{subId}/dismiss": {
4601
+ parameters: {
4602
+ query?: never;
4603
+ header?: never;
4604
+ path?: never;
4605
+ cookie?: never;
4606
+ };
4607
+ get?: never;
4608
+ put?: never;
4609
+ /**
4610
+ * Take a pw code subagent off the session's list
4611
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
4612
+ *
4613
+ * Takes a subagent that is not running off the session's list for every window showing the session, and says so with a subagent_dismissed event on its feed. It is not deleted: its transcript still opens, a message or the session's model can still give it work, and running again lists it again. Refused with 409 while it runs; stop it first. Like stop, it is not held to the remote permission ceiling.
4614
+ */
4615
+ post: operations["dismiss-agent-session-subagent"];
4616
+ delete?: never;
4617
+ options?: never;
4618
+ head?: never;
4619
+ patch?: never;
4620
+ trace?: never;
4621
+ };
4512
4622
  "/api/code/machines/{machine}/sessions/{id}/subagents/{subId}/messages": {
4513
4623
  parameters: {
4514
4624
  query?: never;
@@ -4575,6 +4685,28 @@ export interface paths {
4575
4685
  patch?: never;
4576
4686
  trace?: never;
4577
4687
  };
4688
+ "/api/code/machines/{machine}/sessions/{id}/transcript": {
4689
+ parameters: {
4690
+ query?: never;
4691
+ header?: never;
4692
+ path?: never;
4693
+ cookie?: never;
4694
+ };
4695
+ /**
4696
+ * Get a pw code session transcript, its end first
4697
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
4698
+ *
4699
+ * Returns the session as get-agent-session does, with its history in two parts: tail holds the session and the end of its history, and older the history before it. The tail is written first, so a reader on a slow connection can show where the conversation stands while the rest arrives.
4700
+ */
4701
+ get: operations["get-agent-session-transcript"];
4702
+ put?: never;
4703
+ post?: never;
4704
+ delete?: never;
4705
+ options?: never;
4706
+ head?: never;
4707
+ patch?: never;
4708
+ trace?: never;
4709
+ };
4578
4710
  "/api/code/machines/{machine}/sessions/{id}/worktree": {
4579
4711
  parameters: {
4580
4712
  query?: never;
@@ -20566,7 +20698,7 @@ export interface webhooks {
20566
20698
  };
20567
20699
  /**
20568
20700
  * pw code session event feed
20569
- * @description One JSON frame per message on the WebSocket at /ws/code/machines/{machine}/sessions/{id}/events?after=N. Pass the last seq seen as after to resume; a replay_truncated frame means the transcript must be refetched.
20701
+ * @description One JSON frame per message on the WebSocket at /ws/code/machines/{machine}/sessions/{id}/events?after=N. Pass the last seq seen as after to resume; a replay_truncated frame means the transcript must be refetched. With previews=refs the images a tool read come without their previews, each of which is read from the session's image route with preview=true.
20570
20702
  */
20571
20703
  get: operations["agent-session-events"];
20572
20704
  put?: never;
@@ -21201,6 +21333,7 @@ export interface components {
21201
21333
  name: string;
21202
21334
  plan?: string;
21203
21335
  refreshing?: boolean;
21336
+ sessions?: string[] | null;
21204
21337
  signInRequired?: boolean;
21205
21338
  usage?: string;
21206
21339
  /** Format: date-time */
@@ -21208,6 +21341,16 @@ export interface components {
21208
21341
  /** Format: double */
21209
21342
  weeklyUsedPercent?: number;
21210
21343
  };
21344
+ AgentClaudeAccountMoveBody: {
21345
+ /** @description Session id to leave on its account, such as the one the caller switches itself. */
21346
+ except?: string;
21347
+ /** @description Claude Code account on the machine to move the sessions to. */
21348
+ to: string;
21349
+ };
21350
+ AgentClaudeAccountMoved: {
21351
+ /** @description Ids of the sessions now on the account moved to. A session the caller may not drive stays where it is. */
21352
+ moved: string[] | null;
21353
+ };
21211
21354
  AgentClaudeLoginEvent: {
21212
21355
  data?: string;
21213
21356
  login: components["schemas"]["ClaudeLogin"];
@@ -21271,6 +21414,31 @@ export interface components {
21271
21414
  AgentDirectionDelivered: {
21272
21415
  /** @description False when no turn was running to take the text; send it as a message instead. */
21273
21416
  delivered: boolean;
21417
+ /** @description Names the delivered text, for taking it back before the model reads it and for matching the user_note event that reports it did. Empty from a machine whose pw code is too old to take it back. */
21418
+ id?: string;
21419
+ };
21420
+ AgentDirectionWithdrawBody: {
21421
+ /** @description The ids steering the text answered with. */
21422
+ ids: string[] | null;
21423
+ };
21424
+ AgentDirectionWithdrawn: {
21425
+ /** @description The ids taken back. The model already read the rest. */
21426
+ withdrawn: string[] | null;
21427
+ };
21428
+ AgentDirectories: {
21429
+ /** @description The folders in the directory, by name. */
21430
+ entries: components["schemas"]["AgentDirectory"][] | null;
21431
+ /** @description Home directory of the account the machine's sessions run as. */
21432
+ home?: string;
21433
+ /** @description Absolute path of the directory listed, with ~ expanded. */
21434
+ path: string;
21435
+ /** @description The directory holds more folders than one answer lists; a filter reaches the rest. */
21436
+ truncated?: boolean;
21437
+ };
21438
+ AgentDirectory: {
21439
+ name: string;
21440
+ /** @description The folder holds a .git, as a repository or one of its worktrees does. */
21441
+ repository?: boolean;
21274
21442
  };
21275
21443
  AgentEnrollmentBody: {
21276
21444
  /** @description Name of your PW CLI cluster the agent connects to */
@@ -21278,6 +21446,26 @@ export interface components {
21278
21446
  /** @description Host name of the node the agent runs on, as the node reported it */
21279
21447
  host: string;
21280
21448
  };
21449
+ AgentGoalResult: {
21450
+ /** @description The unfinished goal's condition, empty with none standing. */
21451
+ condition?: string;
21452
+ /** @description What /goal printed. */
21453
+ output: string;
21454
+ /** @description Why the last check found the goal unmet. */
21455
+ reason?: string;
21456
+ /** @description Where the goal's loop stands after the call. */
21457
+ status?: components["schemas"]["GoalStatus"];
21458
+ /**
21459
+ * Format: int64
21460
+ * @description Tokens the session has spent over those turns.
21461
+ */
21462
+ tokens?: number;
21463
+ /**
21464
+ * Format: int64
21465
+ * @description Checks the unfinished goal has made since it was set, or since the session was last restored. A machine from before this field leaves it out.
21466
+ */
21467
+ turns?: number;
21468
+ };
21281
21469
  AgentImageBody: {
21282
21470
  /** @description The image, base64. Up to 6MiB. */
21283
21471
  data: string;
@@ -21321,6 +21509,8 @@ export interface components {
21321
21509
  claudeLogin?: boolean;
21322
21510
  /** @description Machine id the pw code daemon reported, when it answered. A local computer with the same id as a resource is the same host and is listed only as the resource. */
21323
21511
  daemonId?: string;
21512
+ /** @description The daemon lists the machine's folders, for choosing where a session starts. */
21513
+ directories?: boolean;
21324
21514
  error?: string;
21325
21515
  /** @description Hostname the daemon reported, when it answered. */
21326
21516
  hostname?: string;
@@ -21447,6 +21637,9 @@ export interface components {
21447
21637
  turnStartedAt?: string;
21448
21638
  /** Format: date-time */
21449
21639
  updatedAt: string;
21640
+ /** Format: date-time */
21641
+ usageLimitResumeAt?: string;
21642
+ waitingForUsageLimit?: boolean;
21450
21643
  workspace: string;
21451
21644
  };
21452
21645
  AgentSessionCleared: {
@@ -21620,6 +21813,12 @@ export interface components {
21620
21813
  /** @description The session's subagents in the order they started. Their status is empty when the machine's pw code is too old to say how its subagents stand. */
21621
21814
  subagents: components["schemas"]["Subagent"][] | null;
21622
21815
  };
21816
+ AgentTranscript: {
21817
+ /** @description The history before the tail's, oldest first. The whole history is older followed by tail.history. */
21818
+ older: components["schemas"]["HistoryItem"][] | null;
21819
+ /** @description The session, with the end of its history: what a reader sees first. */
21820
+ tail: components["schemas"]["AgentSessionDetail"];
21821
+ };
21623
21822
  AgentWorktreeLeft: {
21624
21823
  /**
21625
21824
  * @description left keeps the worktree on the machine; remove_failed is a session that left it, but whose worktree could not be removed and stays.
@@ -29121,6 +29320,8 @@ export interface components {
29121
29320
  tokens?: number;
29122
29321
  /** Format: int64 */
29123
29322
  turns?: number;
29323
+ /** Format: int64 */
29324
+ waitedMs?: number;
29124
29325
  };
29125
29326
  GoalStatus: {
29126
29327
  active?: boolean;
@@ -30911,6 +31112,8 @@ export interface components {
30911
31112
  HistoryItem: {
30912
31113
  callId?: string;
30913
31114
  decision?: components["schemas"]["ToolDecision"];
31115
+ /** Format: int64 */
31116
+ durationMs?: number;
30914
31117
  fromMain?: boolean;
30915
31118
  images?: components["schemas"]["ImageContent"][] | null;
30916
31119
  /** @enum {string} */
@@ -31029,11 +31232,15 @@ export interface components {
31029
31232
  };
31030
31233
  ImageContent: {
31031
31234
  data: string;
31235
+ /** Format: int64 */
31236
+ height?: number;
31032
31237
  mime: string;
31033
31238
  originalMime?: string;
31034
31239
  /** Format: int64 */
31035
31240
  originalSize?: number;
31036
31241
  ref?: string;
31242
+ /** Format: int64 */
31243
+ width?: number;
31037
31244
  };
31038
31245
  ImportResourceBody: {
31039
31246
  /** @description Check the import and list the owner's resource groups without importing. */
@@ -31126,6 +31333,12 @@ export interface components {
31126
31333
  architecture?: string;
31127
31334
  /** @description Features the instance's connected agent supports, such as files and files-write. Absent when no agent is connected. */
31128
31335
  readonly capabilities?: ("files" | "files-write")[] | null;
31336
+ /**
31337
+ * Format: date-time
31338
+ * @description When the Instance was created and first provisioned (RFC 3339).
31339
+ * @example 2023-01-01T00:00:00Z
31340
+ */
31341
+ readonly createdAt?: string;
31129
31342
  /**
31130
31343
  * @description The cloud service provider for the Instance.
31131
31344
  * @example aws
@@ -31244,6 +31457,12 @@ export interface components {
31244
31457
  status?: string;
31245
31458
  /** @description User-facing message describing the current status (e.g., why a create job was skipped). */
31246
31459
  readonly statusDescription?: string;
31460
+ /**
31461
+ * Format: date-time
31462
+ * @description When the Instance last changed status, such as when it started running (RFC 3339).
31463
+ * @example 2023-01-01T00:05:00Z
31464
+ */
31465
+ readonly statusUpdatedAt?: string;
31247
31466
  /**
31248
31467
  * @description The tags associated with the Instance.
31249
31468
  * @example [
@@ -39556,6 +39775,8 @@ export interface components {
39556
39775
  autoCompactWindow?: number;
39557
39776
  autoName?: string;
39558
39777
  /** Format: int64 */
39778
+ backgroundMonitors?: number;
39779
+ /** Format: int64 */
39559
39780
  backgroundShells?: number;
39560
39781
  claudeAccount?: string;
39561
39782
  effectiveAllocation?: string;
@@ -48718,6 +48939,42 @@ export interface operations {
48718
48939
  };
48719
48940
  };
48720
48941
  };
48942
+ "move-agent-machine-claude-account-sessions": {
48943
+ parameters: {
48944
+ query?: never;
48945
+ header?: never;
48946
+ path: {
48947
+ machine: string;
48948
+ name: string;
48949
+ };
48950
+ cookie?: never;
48951
+ };
48952
+ requestBody: {
48953
+ content: {
48954
+ "application/json": components["schemas"]["AgentClaudeAccountMoveBody"];
48955
+ };
48956
+ };
48957
+ responses: {
48958
+ /** @description OK */
48959
+ 200: {
48960
+ headers: {
48961
+ [name: string]: unknown;
48962
+ };
48963
+ content: {
48964
+ "application/json": components["schemas"]["AgentClaudeAccountMoved"];
48965
+ };
48966
+ };
48967
+ /** @description Error */
48968
+ default: {
48969
+ headers: {
48970
+ [name: string]: unknown;
48971
+ };
48972
+ content: {
48973
+ "application/json": components["schemas"]["Error"];
48974
+ };
48975
+ };
48976
+ };
48977
+ };
48721
48978
  "start-agent-claude-login": {
48722
48979
  parameters: {
48723
48980
  query?: never;
@@ -48890,6 +49147,43 @@ export interface operations {
48890
49147
  };
48891
49148
  };
48892
49149
  };
49150
+ "list-agent-machine-directories": {
49151
+ parameters: {
49152
+ query?: {
49153
+ /** @description Directory to list: an absolute path, or one starting at ~ for the home directory, which an empty path lists. */
49154
+ path?: string;
49155
+ /** @description Keeps the folders whose names hold this text, in any case, those starting with it first. */
49156
+ filter?: string;
49157
+ };
49158
+ header?: never;
49159
+ path: {
49160
+ /** @description Machine id from the machines list. */
49161
+ machine: string;
49162
+ };
49163
+ cookie?: never;
49164
+ };
49165
+ requestBody?: never;
49166
+ responses: {
49167
+ /** @description OK */
49168
+ 200: {
49169
+ headers: {
49170
+ [name: string]: unknown;
49171
+ };
49172
+ content: {
49173
+ "application/json": components["schemas"]["AgentDirectories"];
49174
+ };
49175
+ };
49176
+ /** @description Error */
49177
+ default: {
49178
+ headers: {
49179
+ [name: string]: unknown;
49180
+ };
49181
+ content: {
49182
+ "application/json": components["schemas"]["Error"];
49183
+ };
49184
+ };
49185
+ };
49186
+ };
48893
49187
  "get-agent-workspace-palette": {
48894
49188
  parameters: {
48895
49189
  query: {
@@ -48997,8 +49291,14 @@ export interface operations {
48997
49291
  };
48998
49292
  "get-agent-session": {
48999
49293
  parameters: {
49000
- query?: never;
49001
- header?: never;
49294
+ query?: {
49295
+ /** @description Set to refs, each image in the history that has a ref comes with empty data: its preview is read from the session's image route with preview=true. Previews are most of what a transcript with pictures weighs. A machine whose pw predates this sends every preview. */
49296
+ previews?: "refs";
49297
+ };
49298
+ header?: {
49299
+ /** @description The ETag of a transcript you hold. While the session has not changed, the answer is 304 with no body, and its machine does not send the transcript again. */
49300
+ "If-None-Match"?: string;
49301
+ };
49002
49302
  path: {
49003
49303
  /** @description Machine id from the machines list. */
49004
49304
  machine: string;
@@ -49012,6 +49312,8 @@ export interface operations {
49012
49312
  /** @description OK */
49013
49313
  200: {
49014
49314
  headers: {
49315
+ "Cache-Control"?: string;
49316
+ ETag?: string;
49015
49317
  [name: string]: unknown;
49016
49318
  };
49017
49319
  content: {
@@ -49390,6 +49692,44 @@ export interface operations {
49390
49692
  };
49391
49693
  };
49392
49694
  };
49695
+ "withdraw-agent-session-direction": {
49696
+ parameters: {
49697
+ query?: never;
49698
+ header?: never;
49699
+ path: {
49700
+ /** @description Machine id from the machines list. */
49701
+ machine: string;
49702
+ /** @description Session id as the daemon reports it. */
49703
+ id: string;
49704
+ };
49705
+ cookie?: never;
49706
+ };
49707
+ requestBody: {
49708
+ content: {
49709
+ "application/json": components["schemas"]["AgentDirectionWithdrawBody"];
49710
+ };
49711
+ };
49712
+ responses: {
49713
+ /** @description OK */
49714
+ 200: {
49715
+ headers: {
49716
+ [name: string]: unknown;
49717
+ };
49718
+ content: {
49719
+ "application/json": components["schemas"]["AgentDirectionWithdrawn"];
49720
+ };
49721
+ };
49722
+ /** @description Error */
49723
+ default: {
49724
+ headers: {
49725
+ [name: string]: unknown;
49726
+ };
49727
+ content: {
49728
+ "application/json": components["schemas"]["Error"];
49729
+ };
49730
+ };
49731
+ };
49732
+ };
49393
49733
  "fork-agent-session": {
49394
49734
  parameters: {
49395
49735
  query?: never;
@@ -49487,7 +49827,7 @@ export interface operations {
49487
49827
  [name: string]: unknown;
49488
49828
  };
49489
49829
  content: {
49490
- "application/json": components["schemas"]["AgentCommandOutput"];
49830
+ "application/json": components["schemas"]["AgentGoalResult"];
49491
49831
  };
49492
49832
  };
49493
49833
  /** @description Error */
@@ -49609,7 +49949,10 @@ export interface operations {
49609
49949
  };
49610
49950
  "get-agent-session-image": {
49611
49951
  parameters: {
49612
- query?: never;
49952
+ query?: {
49953
+ /** @description Answers the image's preview, as the transcript carries it unless read with previews=refs, in place of the image at full size. */
49954
+ preview?: boolean;
49955
+ };
49613
49956
  header?: never;
49614
49957
  path: {
49615
49958
  /** @description Machine id from the machines list. */
@@ -50274,6 +50617,80 @@ export interface operations {
50274
50617
  };
50275
50618
  };
50276
50619
  };
50620
+ "withdraw-agent-session-subagent-direction": {
50621
+ parameters: {
50622
+ query?: never;
50623
+ header?: never;
50624
+ path: {
50625
+ /** @description Machine id from the machines list. */
50626
+ machine: string;
50627
+ /** @description Session id as the daemon reports it. */
50628
+ id: string;
50629
+ /** @description Subagent id from the session's subagents. */
50630
+ subId: string;
50631
+ };
50632
+ cookie?: never;
50633
+ };
50634
+ requestBody: {
50635
+ content: {
50636
+ "application/json": components["schemas"]["AgentDirectionWithdrawBody"];
50637
+ };
50638
+ };
50639
+ responses: {
50640
+ /** @description OK */
50641
+ 200: {
50642
+ headers: {
50643
+ [name: string]: unknown;
50644
+ };
50645
+ content: {
50646
+ "application/json": components["schemas"]["AgentDirectionWithdrawn"];
50647
+ };
50648
+ };
50649
+ /** @description Error */
50650
+ default: {
50651
+ headers: {
50652
+ [name: string]: unknown;
50653
+ };
50654
+ content: {
50655
+ "application/json": components["schemas"]["Error"];
50656
+ };
50657
+ };
50658
+ };
50659
+ };
50660
+ "dismiss-agent-session-subagent": {
50661
+ parameters: {
50662
+ query?: never;
50663
+ header?: never;
50664
+ path: {
50665
+ /** @description Machine id from the machines list. */
50666
+ machine: string;
50667
+ /** @description Session id as the daemon reports it. */
50668
+ id: string;
50669
+ /** @description Subagent id from the session's subagents. */
50670
+ subId: string;
50671
+ };
50672
+ cookie?: never;
50673
+ };
50674
+ requestBody?: never;
50675
+ responses: {
50676
+ /** @description No Content */
50677
+ 204: {
50678
+ headers: {
50679
+ [name: string]: unknown;
50680
+ };
50681
+ content?: never;
50682
+ };
50683
+ /** @description Error */
50684
+ default: {
50685
+ headers: {
50686
+ [name: string]: unknown;
50687
+ };
50688
+ content: {
50689
+ "application/json": components["schemas"]["Error"];
50690
+ };
50691
+ };
50692
+ };
50693
+ };
50277
50694
  "send-agent-session-subagent-message": {
50278
50695
  parameters: {
50279
50696
  query?: never;
@@ -50386,6 +50803,50 @@ export interface operations {
50386
50803
  };
50387
50804
  };
50388
50805
  };
50806
+ "get-agent-session-transcript": {
50807
+ parameters: {
50808
+ query?: {
50809
+ /** @description Set to refs, each image in the history that has a ref comes with empty data: its preview is read from the session's image route with preview=true. */
50810
+ previews?: "refs";
50811
+ /** @description About how many history items the tail holds. It is longer when no item that near the end starts cleanly: a tool result is never parted from its call. */
50812
+ tail?: number;
50813
+ };
50814
+ header?: {
50815
+ /** @description The ETag of a transcript you hold. While the session has not changed, the answer is 304 with no body, and its machine does not send the transcript again. */
50816
+ "If-None-Match"?: string;
50817
+ };
50818
+ path: {
50819
+ /** @description Machine id from the machines list. */
50820
+ machine: string;
50821
+ /** @description Session id as the daemon reports it. */
50822
+ id: string;
50823
+ };
50824
+ cookie?: never;
50825
+ };
50826
+ requestBody?: never;
50827
+ responses: {
50828
+ /** @description OK */
50829
+ 200: {
50830
+ headers: {
50831
+ "Cache-Control"?: string;
50832
+ ETag?: string;
50833
+ [name: string]: unknown;
50834
+ };
50835
+ content: {
50836
+ "application/json": components["schemas"]["AgentTranscript"];
50837
+ };
50838
+ };
50839
+ /** @description Error */
50840
+ default: {
50841
+ headers: {
50842
+ [name: string]: unknown;
50843
+ };
50844
+ content: {
50845
+ "application/json": components["schemas"]["Error"];
50846
+ };
50847
+ };
50848
+ };
50849
+ };
50389
50850
  "get-agent-session-worktree": {
50390
50851
  parameters: {
50391
50852
  query?: never;
@@ -50461,7 +50922,10 @@ export interface operations {
50461
50922
  "list-agent-sessions": {
50462
50923
  parameters: {
50463
50924
  query?: never;
50464
- header?: never;
50925
+ header?: {
50926
+ /** @description The ETag of a listing you hold. While nothing in it has changed, the answer is 304 with no body, and the machines are not asked to send their sessions again. */
50927
+ "If-None-Match"?: string;
50928
+ };
50465
50929
  path?: never;
50466
50930
  cookie?: never;
50467
50931
  };
@@ -50470,6 +50934,8 @@ export interface operations {
50470
50934
  /** @description OK */
50471
50935
  200: {
50472
50936
  headers: {
50937
+ "Cache-Control"?: string;
50938
+ ETag?: string;
50473
50939
  [name: string]: unknown;
50474
50940
  };
50475
50941
  content: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/client",
3
- "version": "7.140.0",
3
+ "version": "7.141.0",
4
4
  "description": "Official TypeScript client for Parallel Works ACTIVATE API",
5
5
  "type": "module",
6
6
  "exports": {