@parallelworks/client 7.140.0 → 7.141.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.
Files changed (2) hide show
  1. package/dist/types/api.d.ts +481 -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;
@@ -21319,19 +21507,27 @@ export interface components {
21319
21507
  claudeInstalled?: boolean;
21320
21508
  /** @description The daemon supports signing in to Claude Code from the web. */
21321
21509
  claudeLogin?: boolean;
21510
+ /** @description Cloud provider of a cloud cluster or instance. */
21511
+ csp?: string;
21322
21512
  /** @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
21513
  daemonId?: string;
21514
+ /** @description The daemon lists the machine's folders, for choosing where a session starts. */
21515
+ directories?: boolean;
21324
21516
  error?: string;
21325
21517
  /** @description Hostname the daemon reported, when it answered. */
21326
21518
  hostname?: string;
21327
21519
  /** @description Hex ObjectID of the cluster, pool, or instance document; for a local computer, the id its pw code daemon registered. */
21328
21520
  id: string;
21521
+ /** @description The icon uploaded for the resource. */
21522
+ imageUrl?: string;
21329
21523
  /**
21330
21524
  * @description local is a computer whose pw code daemon connected itself; the others are resources reached through their pw agent.
21331
21525
  * @enum {string}
21332
21526
  */
21333
21527
  kind: "cloud" | "existing" | "instance" | "local";
21334
21528
  name: string;
21529
+ /** @description Operating system as Go names it (darwin, linux, windows): the one the machine's pw code daemon reported when it answered, else the one an existing cluster's agent reported. */
21530
+ os?: string;
21335
21531
  /** @description Platform username of the resource owner. */
21336
21532
  owner: string;
21337
21533
  /** @description Modes the machine's pw code daemon accepts. Absent when the daemon predates the list, in which case it accepts read-only, accept-edits, bypass-permissions and plan. */
@@ -21339,6 +21535,8 @@ export interface components {
21339
21535
  /** @enum {string} */
21340
21536
  remoteMaxPermissionMode?: "" | "read-only" | "accept-edits" | "auto" | "bypass-permissions" | "plan";
21341
21537
  remoteStart?: boolean;
21538
+ /** @description Scheduler of an existing cluster. */
21539
+ schedulerType?: string;
21342
21540
  /** @description The daemon stores which of the reader's groups a session is in. */
21343
21541
  sessionGroups?: boolean;
21344
21542
  /** @enum {string} */
@@ -21447,6 +21645,9 @@ export interface components {
21447
21645
  turnStartedAt?: string;
21448
21646
  /** Format: date-time */
21449
21647
  updatedAt: string;
21648
+ /** Format: date-time */
21649
+ usageLimitResumeAt?: string;
21650
+ waitingForUsageLimit?: boolean;
21450
21651
  workspace: string;
21451
21652
  };
21452
21653
  AgentSessionCleared: {
@@ -21620,6 +21821,12 @@ export interface components {
21620
21821
  /** @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
21822
  subagents: components["schemas"]["Subagent"][] | null;
21622
21823
  };
21824
+ AgentTranscript: {
21825
+ /** @description The history before the tail's, oldest first. The whole history is older followed by tail.history. */
21826
+ older: components["schemas"]["HistoryItem"][] | null;
21827
+ /** @description The session, with the end of its history: what a reader sees first. */
21828
+ tail: components["schemas"]["AgentSessionDetail"];
21829
+ };
21623
21830
  AgentWorktreeLeft: {
21624
21831
  /**
21625
21832
  * @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 +29328,8 @@ export interface components {
29121
29328
  tokens?: number;
29122
29329
  /** Format: int64 */
29123
29330
  turns?: number;
29331
+ /** Format: int64 */
29332
+ waitedMs?: number;
29124
29333
  };
29125
29334
  GoalStatus: {
29126
29335
  active?: boolean;
@@ -30911,6 +31120,8 @@ export interface components {
30911
31120
  HistoryItem: {
30912
31121
  callId?: string;
30913
31122
  decision?: components["schemas"]["ToolDecision"];
31123
+ /** Format: int64 */
31124
+ durationMs?: number;
30914
31125
  fromMain?: boolean;
30915
31126
  images?: components["schemas"]["ImageContent"][] | null;
30916
31127
  /** @enum {string} */
@@ -31029,11 +31240,15 @@ export interface components {
31029
31240
  };
31030
31241
  ImageContent: {
31031
31242
  data: string;
31243
+ /** Format: int64 */
31244
+ height?: number;
31032
31245
  mime: string;
31033
31246
  originalMime?: string;
31034
31247
  /** Format: int64 */
31035
31248
  originalSize?: number;
31036
31249
  ref?: string;
31250
+ /** Format: int64 */
31251
+ width?: number;
31037
31252
  };
31038
31253
  ImportResourceBody: {
31039
31254
  /** @description Check the import and list the owner's resource groups without importing. */
@@ -31126,6 +31341,12 @@ export interface components {
31126
31341
  architecture?: string;
31127
31342
  /** @description Features the instance's connected agent supports, such as files and files-write. Absent when no agent is connected. */
31128
31343
  readonly capabilities?: ("files" | "files-write")[] | null;
31344
+ /**
31345
+ * Format: date-time
31346
+ * @description When the Instance was created and first provisioned (RFC 3339).
31347
+ * @example 2023-01-01T00:00:00Z
31348
+ */
31349
+ readonly createdAt?: string;
31129
31350
  /**
31130
31351
  * @description The cloud service provider for the Instance.
31131
31352
  * @example aws
@@ -31244,6 +31465,12 @@ export interface components {
31244
31465
  status?: string;
31245
31466
  /** @description User-facing message describing the current status (e.g., why a create job was skipped). */
31246
31467
  readonly statusDescription?: string;
31468
+ /**
31469
+ * Format: date-time
31470
+ * @description When the Instance last changed status, such as when it started running (RFC 3339).
31471
+ * @example 2023-01-01T00:05:00Z
31472
+ */
31473
+ readonly statusUpdatedAt?: string;
31247
31474
  /**
31248
31475
  * @description The tags associated with the Instance.
31249
31476
  * @example [
@@ -39556,6 +39783,8 @@ export interface components {
39556
39783
  autoCompactWindow?: number;
39557
39784
  autoName?: string;
39558
39785
  /** Format: int64 */
39786
+ backgroundMonitors?: number;
39787
+ /** Format: int64 */
39559
39788
  backgroundShells?: number;
39560
39789
  claudeAccount?: string;
39561
39790
  effectiveAllocation?: string;
@@ -48718,6 +48947,42 @@ export interface operations {
48718
48947
  };
48719
48948
  };
48720
48949
  };
48950
+ "move-agent-machine-claude-account-sessions": {
48951
+ parameters: {
48952
+ query?: never;
48953
+ header?: never;
48954
+ path: {
48955
+ machine: string;
48956
+ name: string;
48957
+ };
48958
+ cookie?: never;
48959
+ };
48960
+ requestBody: {
48961
+ content: {
48962
+ "application/json": components["schemas"]["AgentClaudeAccountMoveBody"];
48963
+ };
48964
+ };
48965
+ responses: {
48966
+ /** @description OK */
48967
+ 200: {
48968
+ headers: {
48969
+ [name: string]: unknown;
48970
+ };
48971
+ content: {
48972
+ "application/json": components["schemas"]["AgentClaudeAccountMoved"];
48973
+ };
48974
+ };
48975
+ /** @description Error */
48976
+ default: {
48977
+ headers: {
48978
+ [name: string]: unknown;
48979
+ };
48980
+ content: {
48981
+ "application/json": components["schemas"]["Error"];
48982
+ };
48983
+ };
48984
+ };
48985
+ };
48721
48986
  "start-agent-claude-login": {
48722
48987
  parameters: {
48723
48988
  query?: never;
@@ -48890,6 +49155,43 @@ export interface operations {
48890
49155
  };
48891
49156
  };
48892
49157
  };
49158
+ "list-agent-machine-directories": {
49159
+ parameters: {
49160
+ query?: {
49161
+ /** @description Directory to list: an absolute path, or one starting at ~ for the home directory, which an empty path lists. */
49162
+ path?: string;
49163
+ /** @description Keeps the folders whose names hold this text, in any case, those starting with it first. */
49164
+ filter?: string;
49165
+ };
49166
+ header?: never;
49167
+ path: {
49168
+ /** @description Machine id from the machines list. */
49169
+ machine: string;
49170
+ };
49171
+ cookie?: never;
49172
+ };
49173
+ requestBody?: never;
49174
+ responses: {
49175
+ /** @description OK */
49176
+ 200: {
49177
+ headers: {
49178
+ [name: string]: unknown;
49179
+ };
49180
+ content: {
49181
+ "application/json": components["schemas"]["AgentDirectories"];
49182
+ };
49183
+ };
49184
+ /** @description Error */
49185
+ default: {
49186
+ headers: {
49187
+ [name: string]: unknown;
49188
+ };
49189
+ content: {
49190
+ "application/json": components["schemas"]["Error"];
49191
+ };
49192
+ };
49193
+ };
49194
+ };
48893
49195
  "get-agent-workspace-palette": {
48894
49196
  parameters: {
48895
49197
  query: {
@@ -48997,8 +49299,14 @@ export interface operations {
48997
49299
  };
48998
49300
  "get-agent-session": {
48999
49301
  parameters: {
49000
- query?: never;
49001
- header?: never;
49302
+ query?: {
49303
+ /** @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. */
49304
+ previews?: "refs";
49305
+ };
49306
+ header?: {
49307
+ /** @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. */
49308
+ "If-None-Match"?: string;
49309
+ };
49002
49310
  path: {
49003
49311
  /** @description Machine id from the machines list. */
49004
49312
  machine: string;
@@ -49012,6 +49320,8 @@ export interface operations {
49012
49320
  /** @description OK */
49013
49321
  200: {
49014
49322
  headers: {
49323
+ "Cache-Control"?: string;
49324
+ ETag?: string;
49015
49325
  [name: string]: unknown;
49016
49326
  };
49017
49327
  content: {
@@ -49390,6 +49700,44 @@ export interface operations {
49390
49700
  };
49391
49701
  };
49392
49702
  };
49703
+ "withdraw-agent-session-direction": {
49704
+ parameters: {
49705
+ query?: never;
49706
+ header?: never;
49707
+ path: {
49708
+ /** @description Machine id from the machines list. */
49709
+ machine: string;
49710
+ /** @description Session id as the daemon reports it. */
49711
+ id: string;
49712
+ };
49713
+ cookie?: never;
49714
+ };
49715
+ requestBody: {
49716
+ content: {
49717
+ "application/json": components["schemas"]["AgentDirectionWithdrawBody"];
49718
+ };
49719
+ };
49720
+ responses: {
49721
+ /** @description OK */
49722
+ 200: {
49723
+ headers: {
49724
+ [name: string]: unknown;
49725
+ };
49726
+ content: {
49727
+ "application/json": components["schemas"]["AgentDirectionWithdrawn"];
49728
+ };
49729
+ };
49730
+ /** @description Error */
49731
+ default: {
49732
+ headers: {
49733
+ [name: string]: unknown;
49734
+ };
49735
+ content: {
49736
+ "application/json": components["schemas"]["Error"];
49737
+ };
49738
+ };
49739
+ };
49740
+ };
49393
49741
  "fork-agent-session": {
49394
49742
  parameters: {
49395
49743
  query?: never;
@@ -49487,7 +49835,7 @@ export interface operations {
49487
49835
  [name: string]: unknown;
49488
49836
  };
49489
49837
  content: {
49490
- "application/json": components["schemas"]["AgentCommandOutput"];
49838
+ "application/json": components["schemas"]["AgentGoalResult"];
49491
49839
  };
49492
49840
  };
49493
49841
  /** @description Error */
@@ -49609,7 +49957,10 @@ export interface operations {
49609
49957
  };
49610
49958
  "get-agent-session-image": {
49611
49959
  parameters: {
49612
- query?: never;
49960
+ query?: {
49961
+ /** @description Answers the image's preview, as the transcript carries it unless read with previews=refs, in place of the image at full size. */
49962
+ preview?: boolean;
49963
+ };
49613
49964
  header?: never;
49614
49965
  path: {
49615
49966
  /** @description Machine id from the machines list. */
@@ -50274,6 +50625,80 @@ export interface operations {
50274
50625
  };
50275
50626
  };
50276
50627
  };
50628
+ "withdraw-agent-session-subagent-direction": {
50629
+ parameters: {
50630
+ query?: never;
50631
+ header?: never;
50632
+ path: {
50633
+ /** @description Machine id from the machines list. */
50634
+ machine: string;
50635
+ /** @description Session id as the daemon reports it. */
50636
+ id: string;
50637
+ /** @description Subagent id from the session's subagents. */
50638
+ subId: string;
50639
+ };
50640
+ cookie?: never;
50641
+ };
50642
+ requestBody: {
50643
+ content: {
50644
+ "application/json": components["schemas"]["AgentDirectionWithdrawBody"];
50645
+ };
50646
+ };
50647
+ responses: {
50648
+ /** @description OK */
50649
+ 200: {
50650
+ headers: {
50651
+ [name: string]: unknown;
50652
+ };
50653
+ content: {
50654
+ "application/json": components["schemas"]["AgentDirectionWithdrawn"];
50655
+ };
50656
+ };
50657
+ /** @description Error */
50658
+ default: {
50659
+ headers: {
50660
+ [name: string]: unknown;
50661
+ };
50662
+ content: {
50663
+ "application/json": components["schemas"]["Error"];
50664
+ };
50665
+ };
50666
+ };
50667
+ };
50668
+ "dismiss-agent-session-subagent": {
50669
+ parameters: {
50670
+ query?: never;
50671
+ header?: never;
50672
+ path: {
50673
+ /** @description Machine id from the machines list. */
50674
+ machine: string;
50675
+ /** @description Session id as the daemon reports it. */
50676
+ id: string;
50677
+ /** @description Subagent id from the session's subagents. */
50678
+ subId: string;
50679
+ };
50680
+ cookie?: never;
50681
+ };
50682
+ requestBody?: never;
50683
+ responses: {
50684
+ /** @description No Content */
50685
+ 204: {
50686
+ headers: {
50687
+ [name: string]: unknown;
50688
+ };
50689
+ content?: never;
50690
+ };
50691
+ /** @description Error */
50692
+ default: {
50693
+ headers: {
50694
+ [name: string]: unknown;
50695
+ };
50696
+ content: {
50697
+ "application/json": components["schemas"]["Error"];
50698
+ };
50699
+ };
50700
+ };
50701
+ };
50277
50702
  "send-agent-session-subagent-message": {
50278
50703
  parameters: {
50279
50704
  query?: never;
@@ -50386,6 +50811,50 @@ export interface operations {
50386
50811
  };
50387
50812
  };
50388
50813
  };
50814
+ "get-agent-session-transcript": {
50815
+ parameters: {
50816
+ query?: {
50817
+ /** @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. */
50818
+ previews?: "refs";
50819
+ /** @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. */
50820
+ tail?: number;
50821
+ };
50822
+ header?: {
50823
+ /** @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. */
50824
+ "If-None-Match"?: string;
50825
+ };
50826
+ path: {
50827
+ /** @description Machine id from the machines list. */
50828
+ machine: string;
50829
+ /** @description Session id as the daemon reports it. */
50830
+ id: string;
50831
+ };
50832
+ cookie?: never;
50833
+ };
50834
+ requestBody?: never;
50835
+ responses: {
50836
+ /** @description OK */
50837
+ 200: {
50838
+ headers: {
50839
+ "Cache-Control"?: string;
50840
+ ETag?: string;
50841
+ [name: string]: unknown;
50842
+ };
50843
+ content: {
50844
+ "application/json": components["schemas"]["AgentTranscript"];
50845
+ };
50846
+ };
50847
+ /** @description Error */
50848
+ default: {
50849
+ headers: {
50850
+ [name: string]: unknown;
50851
+ };
50852
+ content: {
50853
+ "application/json": components["schemas"]["Error"];
50854
+ };
50855
+ };
50856
+ };
50857
+ };
50389
50858
  "get-agent-session-worktree": {
50390
50859
  parameters: {
50391
50860
  query?: never;
@@ -50461,7 +50930,10 @@ export interface operations {
50461
50930
  "list-agent-sessions": {
50462
50931
  parameters: {
50463
50932
  query?: never;
50464
- header?: never;
50933
+ header?: {
50934
+ /** @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. */
50935
+ "If-None-Match"?: string;
50936
+ };
50465
50937
  path?: never;
50466
50938
  cookie?: never;
50467
50939
  };
@@ -50470,6 +50942,8 @@ export interface operations {
50470
50942
  /** @description OK */
50471
50943
  200: {
50472
50944
  headers: {
50945
+ "Cache-Control"?: string;
50946
+ ETag?: string;
50473
50947
  [name: string]: unknown;
50474
50948
  };
50475
50949
  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.1",
4
4
  "description": "Official TypeScript client for Parallel Works ACTIVATE API",
5
5
  "type": "module",
6
6
  "exports": {