@parall/sdk 1.55.5 → 1.56.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/types.d.ts CHANGED
@@ -44,7 +44,11 @@ export interface Chat {
44
44
  created_at: string;
45
45
  updated_at: string;
46
46
  archived_at?: string | null;
47
+ archived_by?: string | null;
47
48
  deleted_at?: string | null;
49
+ deleted_by?: string | null;
50
+ member_count?: number;
51
+ my_role?: ChatMemberRole;
48
52
  pinned: boolean;
49
53
  hidden: boolean;
50
54
  my_notification_level?: NotificationLevel;
@@ -270,10 +274,18 @@ export interface Message {
270
274
  recent_repliers?: User[];
271
275
  /**
272
276
  * Per-viewer count of thread replies newer than the viewer's thread read
273
- * cursor, excluding the viewer's own replies (root only). Populated on
274
- * top-level list responses; omitted when zero.
277
+ * cursor, excluding the viewer's own replies (root only). Watcher-scoped:
278
+ * only threads the viewer watches accrue unread. Populated on top-level
279
+ * list responses; omitted when zero.
275
280
  */
276
281
  unread_reply_count?: number;
282
+ /**
283
+ * Per-viewer thread watch state (root only): true when the viewer watches
284
+ * this root's thread. Populated on top-level list responses for roots with
285
+ * replies; omitted means not watching. Seeds the client's live unread
286
+ * mirror.
287
+ */
288
+ watching?: boolean;
277
289
  edited_at: string | null;
278
290
  deleted_at: string | null;
279
291
  created_at: string;
@@ -1302,7 +1314,9 @@ export interface Task {
1302
1314
  completed_at: string | null;
1303
1315
  canceled_at: string | null;
1304
1316
  archived_at?: string | null;
1317
+ archived_by?: string | null;
1305
1318
  deleted_at?: string | null;
1319
+ deleted_by?: string | null;
1306
1320
  /**
1307
1321
  * Per-viewer: whether the requesting user may manage OTHER members' comment
1308
1322
  * subscriptions for this task (creator / assignee / project manager / org
@@ -1388,6 +1402,19 @@ export interface CreateTaskRequest {
1388
1402
  due_date?: string;
1389
1403
  label_ids?: string[];
1390
1404
  }
1405
+ /**
1406
+ * Moves a task (and its whole subtree) into another project via
1407
+ * POST /tasks/{taskId}/move — the only path that changes the binding; PATCH
1408
+ * keeps refusing project_id changes. Every subtree node is renumbered from the
1409
+ * target project's counter and its old KEY-N identifier stays resolvable as a
1410
+ * permanent alias. parent_id (must belong to the target project) attaches the
1411
+ * moved root under a parent there; same-project calls with a parent degrade to
1412
+ * a reparent, without one they are an idempotent no-op.
1413
+ */
1414
+ export interface MoveTaskRequest {
1415
+ project_id: string;
1416
+ parent_id?: string;
1417
+ }
1391
1418
  export interface UpdateTaskRequest {
1392
1419
  title?: string;
1393
1420
  description?: string;
@@ -1463,6 +1490,8 @@ export interface Project {
1463
1490
  sort_order: number;
1464
1491
  created_at: string;
1465
1492
  updated_at: string;
1493
+ archived_at?: string | null;
1494
+ archived_by?: string | null;
1466
1495
  /** The requesting user's own role, computed per request rather than stored.
1467
1496
  * Absent means they hold no membership (direct or team-derived). */
1468
1497
  my_role?: ProjectRole;
@@ -1916,10 +1945,18 @@ export interface Wiki {
1916
1945
  * access_tier are populated — enough to request to join, nothing else.
1917
1946
  * Degraded entries must not be mounted, synced or treated as content. */
1918
1947
  degraded?: boolean;
1948
+ /** Caller's library-level star (the sidebar Starred group). Carried on full
1949
+ * list/get projections only — degraded entries never have it. */
1950
+ starred?: boolean;
1919
1951
  }
1920
1952
  export interface WikiFileChange {
1921
1953
  path: string;
1922
- action: 'create' | 'update' | 'delete';
1954
+ action: 'create' | 'update' | 'delete' | 'rename';
1955
+ /**
1956
+ * Rename source; present only when action is "rename" (path is the rename
1957
+ * target). Additive key — older changesets never carry it.
1958
+ */
1959
+ from_path?: string;
1923
1960
  }
1924
1961
  export interface WikiChangeset {
1925
1962
  id: string;
@@ -2106,6 +2143,8 @@ export interface WikiRefsCheckResponse {
2106
2143
  export interface WikiDiffFile {
2107
2144
  path: string;
2108
2145
  action?: string;
2146
+ /** Rename source when action is "rename" (path is the target). */
2147
+ from_path?: string;
2109
2148
  additions: number;
2110
2149
  deletions: number;
2111
2150
  }
@@ -2118,19 +2157,40 @@ export interface CreateWikiRequest {
2118
2157
  name: string;
2119
2158
  default_branch?: string;
2120
2159
  }
2121
- export interface WikiFileChangeInput {
2160
+ interface WikiFileChangeInputCommon {
2122
2161
  path: string;
2123
- action: 'create' | 'update' | 'delete';
2124
- content_base64?: string;
2125
2162
  base_version?: number;
2126
2163
  /**
2127
2164
  * Git blob SHA of the default-branch version this change was authored
2128
2165
  * against. When set on update/delete, the server rejects the changeset
2129
2166
  * with 409 STALE_BASE if the file has since changed on the default branch
2130
- * (prevents silently overwriting concurrent edits).
2167
+ * (prevents silently overwriting concurrent edits). For rename it guards
2168
+ * the from_path side.
2131
2169
  */
2132
2170
  base_sha?: string;
2133
2171
  }
2172
+ export interface WikiFileChangeWriteInput extends WikiFileChangeInputCommon {
2173
+ action: 'create' | 'update' | 'delete';
2174
+ content_base64?: string;
2175
+ /** Only valid with action "rename" — the server rejects it elsewhere. */
2176
+ from_path?: never;
2177
+ }
2178
+ /**
2179
+ * Rename is a discriminated variant: `from_path` (the source; `path` is the
2180
+ * target) and `content_base64` are both REQUIRED. The content must be sent —
2181
+ * the server rejects a rename without the content_base64 key
2182
+ * (400 MISSING_FIELDS) because the single-commit move always writes content
2183
+ * and an omitted key would otherwise erase the file; an explicitly empty
2184
+ * string (an empty file) is legal. Requires the server capability
2185
+ * `cap:wiki-rename` — while it is off the server answers 422 RENAME_DISABLED
2186
+ * (older servers answer 400 INVALID_ACTION).
2187
+ */
2188
+ export interface WikiFileChangeRenameInput extends WikiFileChangeInputCommon {
2189
+ action: 'rename';
2190
+ from_path: string;
2191
+ content_base64: string;
2192
+ }
2193
+ export type WikiFileChangeInput = WikiFileChangeWriteInput | WikiFileChangeRenameInput;
2134
2194
  export interface CreateWikiChangesetRequest {
2135
2195
  title: string;
2136
2196
  message?: string;
@@ -4525,6 +4585,61 @@ export interface BrowserAliasExecutionReceipt {
4525
4585
  terminal_at?: string;
4526
4586
  updated_at: string;
4527
4587
  }
4588
+ export type BrowserUseAction = 'read' | 'tabs' | 'wait' | 'snapshot' | 'get' | 'screenshot' | 'open' | 'navigate' | 'viewport' | 'click' | 'fill' | 'type' | 'press' | 'scroll' | 'close' | 'recover' | 'eval';
4589
+ export interface BrowserUseTarget {
4590
+ tab_id?: string;
4591
+ browser_generation?: number;
4592
+ document_generation?: number;
4593
+ snapshot_id?: string;
4594
+ ref?: string;
4595
+ }
4596
+ export interface BrowserUseOperationRequest {
4597
+ contract_version: 'browser-use-operation-v1';
4598
+ request_id: string;
4599
+ profile_id: string;
4600
+ action: BrowserUseAction;
4601
+ target?: BrowserUseTarget;
4602
+ params: Record<string, unknown>;
4603
+ /** Canonical RFC3339 UTC instant, no more than two minutes in the future. */
4604
+ deadline: string;
4605
+ }
4606
+ export type BrowserUseOperationPhase = 'accepted' | 'started' | 'succeeded' | 'failed' | 'outcome_unknown';
4607
+ export interface BrowserUseOperationError {
4608
+ code: string;
4609
+ message?: string;
4610
+ hint?: string;
4611
+ }
4612
+ /** Durable Browser Use proof. `data` is encrypted/transient: it is present
4613
+ * only while result_available is true and disappears after result_expires_at;
4614
+ * the terminal receipt and result_digest remain durable. */
4615
+ export interface BrowserUseOperationReceipt {
4616
+ contract_version: 'browser-use-operation-v1';
4617
+ operation_id: string;
4618
+ request_id: string;
4619
+ profile_id: string;
4620
+ profile_version: number;
4621
+ profile_config_revision: number;
4622
+ action: BrowserUseAction;
4623
+ required_grant: 'browser.read' | 'browser.interact' | 'browser.advanced';
4624
+ phase: BrowserUseOperationPhase;
4625
+ dispatched?: boolean;
4626
+ receipt_id?: string;
4627
+ receipt_digest?: string;
4628
+ occurred_at?: string;
4629
+ tab_id?: string;
4630
+ browser_generation?: number;
4631
+ duration_ms?: number;
4632
+ result_digest?: string;
4633
+ result_available: boolean;
4634
+ result_expires_at?: string;
4635
+ data?: unknown;
4636
+ error?: BrowserUseOperationError;
4637
+ deadline: string;
4638
+ accepted_at: string;
4639
+ started_at?: string;
4640
+ terminal_at?: string;
4641
+ updated_at: string;
4642
+ }
4528
4643
  /**
4529
4644
  * Sanitized per-profile egress proxy status (hosted Cloud Profiles) — the GET
4530
4645
  * response and the PUT/DELETE result. NEVER carries the password; `password_set`