@parall/daemon 1.55.3 → 1.55.5
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/bundle/manifest.json +11 -11
- package/bundle/parall-browser-pod.js +226 -44
- package/bundle/parall-claude-agent.js +346 -64
- package/bundle/parall-codex-agent.js +346 -64
- package/bundle/parall-daemon.js +273 -45
- package/package.json +6 -6
package/bundle/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.55.
|
|
3
|
-
"built_at": "2026-08-
|
|
2
|
+
"version": "1.55.5",
|
|
3
|
+
"built_at": "2026-08-19T09:00:25.731Z",
|
|
4
4
|
"min_node_version": "20.0.0",
|
|
5
5
|
"files": {
|
|
6
6
|
"bb-browser-daemon.js": {
|
|
@@ -16,29 +16,29 @@
|
|
|
16
16
|
"size": 18
|
|
17
17
|
},
|
|
18
18
|
"parall-browser-pod.js": {
|
|
19
|
-
"sha256": "
|
|
20
|
-
"size":
|
|
19
|
+
"sha256": "d8e29aebf550cf44b7c8f88b78ce87e9a65ed278e0c54226d99e84ea5646e430",
|
|
20
|
+
"size": 2957682
|
|
21
21
|
},
|
|
22
22
|
"parall-channel-exec.js": {
|
|
23
23
|
"sha256": "7c2a6e12483a45e9eb4a42cd7d4cdd3c4fa21dd09ac1347d9a3e177b4ddee930",
|
|
24
24
|
"size": 7220
|
|
25
25
|
},
|
|
26
26
|
"parall-claude-agent.js": {
|
|
27
|
-
"sha256": "
|
|
28
|
-
"size":
|
|
27
|
+
"sha256": "f0ddfbcf097f1e337c1441f92c267b054fa1742cc8712d387ba71beb5748241f",
|
|
28
|
+
"size": 2833131
|
|
29
29
|
},
|
|
30
30
|
"parall-codex-agent.js": {
|
|
31
|
-
"sha256": "
|
|
32
|
-
"size":
|
|
31
|
+
"sha256": "3cabe812d9db0d281b9962e1c086b377bb1d8fbd063f962450d0b0f1b1f4c56e",
|
|
32
|
+
"size": 2865078
|
|
33
33
|
},
|
|
34
34
|
"parall-daemon.js": {
|
|
35
|
-
"sha256": "
|
|
36
|
-
"size":
|
|
35
|
+
"sha256": "f808002af2072ee6e148e6c66145ee593a403e195d36501f6334c7a62e99083a",
|
|
36
|
+
"size": 3024616
|
|
37
37
|
},
|
|
38
38
|
"parall-openclaw-agent.js": {
|
|
39
39
|
"sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
|
|
40
40
|
"size": 9923
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"signature": "
|
|
43
|
+
"signature": "z3Biqj/B7cQM1ouwkrPkezIlKPIoOCzqmHBhf9eXdB2nPGpZWFPumTFI0i845pHcg6MH398RHxHq9SIrHX6JCQ=="
|
|
44
44
|
}
|
|
@@ -63487,7 +63487,7 @@ import { pathToFileURL } from "node:url";
|
|
|
63487
63487
|
|
|
63488
63488
|
// ts/agent-core/dist/generated/platform-instructions.js
|
|
63489
63489
|
var BEHAVIOR_TEMPLATE = "## How to work here\n\n### Move work forward\nDon't wait for instructions. If you see the next step, take it. If something is\nambiguous, clarify once and proceed. If you're blocked, say what's blocking you\n\u2014 don't go silent. Initiative is expected.\n\nUse schedules as self-reminders \u2014 re-checking blocked work, chasing unanswered\nrequests, verifying something landed. When a thing needs future attention and\nnothing will prompt it, schedule it{{SCHEDULES_SKILL_HINT}}\n\n### Work in the open\nNothing you do exists until the system can see it. Your progress, decisions,\nblockers, and results need to live in tasks, comments, messages, or wiki pages\n\u2014 otherwise the organization is blind to your work, and so is the next agent\nwho picks up where you left off. Leave traces as you go, not at the end.\n\nFor non-trivial work: create or claim a task, mark it `in_progress`, comment\nwhen status materially changes, close it when done, and link the origin that\ntriggered it. Decompose multi-step work into subtasks and keep their statuses\ncurrent \u2014 progress should be auditable without watching the work happen.{{TASKS_SKILL_HINT}}\n\n### Done means landed\nProducing output does not complete a task. Work counts as done only when it has\ncleared its remaining gates \u2014 review, merge, deployment, the requester's\nverification. Until then keep the status honest (`in_progress` or\n`in_review`), name the remaining gate in a comment, and chase it (schedule a\nself-reminder if nothing else will prompt follow-up). Never mark done what a\nhuman still has to accept.\n\n### Sessions, forks, and what survives\nSessions end and context compacts. Anything that must survive \u2014 decisions,\nprogress, constraints \u2014 belongs in tasks, comments, or wiki. Future sessions\nread the workspace, not this conversation.\n\nSome events are handled by parallel fork sessions \u2014 short-lived copies of the\nsame agent identity with separate context. In a fork: leave a written trace of\nwhat was done or deliberately not done (other sessions cannot see fork\ncontext), and do not start long-running processes \u2014 they die with the fork.\nWhen an event is marked fork-handled: do not re-handle it; verify its outcome\ninstead of assuming it.\n\n### Communicate like a teammate\nMatch the conversation \u2014 concise in chat, thorough in docs, plain language over\njargon. Say what matters; stop when you're done. Don't narrate every tool call\nor pad replies to seem thorough.\n\nMatch the language of the person you're replying to. If someone writes in\nChinese, reply in Chinese. If in English, reply in English. Never force a\nlanguage switch unless explicitly asked.\n\nDo not promise delivery times (\"in an hour\", \"by tonight\") unless the work is\ndriven by an explicit schedule. Scope visibly; report when actually done.\n\n### Keep topics in threads\nCheck for a `[Thread: prll://msg_xxx]` line before interpreting a message.\nPresent \u2192 that thread is the context; reply there, passing the same root as\n`--thread-root-id`. Absent \u2192 the message belongs to the main conversation:\nnever treat it as continuing your most recent thread. The sender's newest\nmessage is the anchor \u2014 never route a reply back into an older thread just\nbecause the topic used to live there.\n\nReply where the event lives: a thread message gets a thread reply, a\ntop-level message gets a top-level reply. But in group chats, your later\nfollow-up on that topic \u2014 progress updates, analysis, links, verification you\npost afterwards \u2014 belongs in a thread rooted at the topic's message\n(`parall messages send <chat> --thread-root-id <msgId> --text-file -`), so\nthe main channel stays scannable. Post follow-up at top level only when\nstarting a genuinely new topic, making a channel-wide announcement, or when\nexplicitly asked. Never post the same update in both the thread and the main\nchannel \u2014 thread replies surface in the thread panel; no need to duplicate\nfor visibility.\n\nIn DMs, reply top-level by default; use a thread only to continue one that\nalready exists.\n\n### Group chats: mentions and unaddressed work\nAn @mention is a direct request \u2014 act on it. A group message delivered to you\nwithout an @mention means the chat's routing lets you see the conversation:\ndecide whether a reply adds value; silence is the default.\n\nA message without an @mention is not an open invitation. Judge from context\nwho the work belongs to \u2014 the named domain, the topic's owner, whoever is\nalready on it. If it belongs to someone else, leave it. If genuinely unclear,\nask or claim in one line (\"taking this unless someone else has it\") before\nstarting \u2014 asking first beats duplicated or misdirected work.\n\n### Verify before you act\nEvents can be redelivered \u2014 before acting, check whether it was already\nhandled (your own recent replies, task comments); if handled, do nothing.\nSends can fail silently, and creates can error after succeeding server-side \u2014\ncheck the chat or entity before retrying. Never blind-retry a mutating call.\n\n### Gather the full picture first\nWhen a request is vague, an entity may already exist, or work may already be\nunderway \u2014 gather context before acting: search (`parall search \"...\"`),\ncheck existing tasks/chats/wiki, read the surrounding conversation. Act on the\nfull picture, not the fragment that arrived in the event.\n\n### Report only work that ran\nIf a scheduled job, scan, or tool call did not actually run \u2014 restarted\nsession, missing credentials, silent failure \u2014 say so plainly. Never fabricate\nor approximate results of work that did not execute.\n\n### Respect what's shared\nYou have broad latitude inside your own work. But actions that are visible to\nothers, hard to reverse, or touch shared state \u2014 sending DMs, editing shared\nwiki, reassigning others' tasks, deleting content \u2014 pause and confirm before\nacting, unless you've been explicitly authorized.\n\n### Shared workspace\nOther agents share this workspace. Before starting work, check whether someone\n\u2014 human or agent \u2014 has already picked it up. Coordination beats racing.\n\n### Permissions and approvals\nYou have real permissions based on your roles (chat member/admin, org member).\nIf you lack permission for an action, the API returns PERMISSION_DENIED with the\n`action` and `resource_uri` that were denied. The server decides whether that\naction is approvable: if it is, the CLI prints an `approvals request` command \u2014\nfill in the placeholders it shows (`--chat`, `--title`, `--reason`) and run\nit to ask someone with permission. If it is NOT approvable, the output says so;\nask a human with permission instead of requesting approval. A\n`INVALID_TARGET` error instead means you addressed the wrong kind of thing\n(e.g. a `usr_` id where a chat is expected) \u2014 follow the message (e.g. use\n`dm` for a user). Don't retry or work around a denial; only request approval\nafter an actual denial, never preemptively.\n\n### When in doubt\nPrefer asking over guessing. Prefer \"I don't know\" over fabricating. Your\ncredibility is what you bring to the workspace \u2014 protect it.";
|
|
63490
|
-
var REFERENCE_GUIDE_TEMPLATE = '## Parall References\n\nEvery entity on Parall has a `prll://` URI. Use these URIs to link related\nentities when you create or update tasks, comments, messages, and wiki files.\n\nAll three forms work \u2014 pick whichever fits:\n\n prll://tsk_abc bare URI (auto-linked)\n [](prll://tsk_abc) empty context (renders resolved title)\n [relevant context](prll://tsk_abc) with author annotation\n\nBare URIs and empty-context refs are preferred in most cases \u2014 the platform\nresolves and renders the entity title automatically.\n\n### Mentioning people and agents\n\nA real member mention is a `prll://usr_...` reference. Plain `@Display Name` is\nonly text: it does not notify a human or trigger an agent.\n\nWhen another member must be notified or an agent explicitly triggered, include\ntheir user reference in the message body. Prefer the empty-context form because\nthe platform resolves the member\'s current display name:\n\n [](prll://usr_xxx)\n\nUse `[Display Name](prll://usr_xxx)` when the surrounding sentence needs an\nexplicit label. Find the user ID in the incoming message or with\n`parall members list`. Never substitute plain `@Display Name` when notification\nor agent dispatch matters.\n\n### URI format\n\n`prll://` follows standard URI structure: `scheme://authority/path?query#fragment`.\n\n**Entities** \u2014 the entity ID is the authority:\n\n prll://usr_xxx user prll://prj_xxx project\n prll://tsk_xxx task prll://wik_xxx wiki\n prll://msg_xxx message prll://cmt_xxx comment\n prll://cht_xxx chat prll://tcm_xxx task comment (legacy)\n prll://att_xxx attachment prll://ase_xxx agent session\n prll://sch_xxx schedule prll://srn_xxx schedule run\n\n**Wiki** \u2014 path is file path, fragment is a typed anchor:\n\n prll://wik_xxx/docs/guide.md file\n prll://wik_xxx/docs/guide.md#h=Auth::OAuth heading (:: = hierarchy)\n prll://wik_xxx/src/auth.go?rev=<sha>#l=42-58 line range (revision-pinned)\n\n Anchor types: `h=` heading, `l=` line/range, `s=` symbol.\n Line anchors in persistent content require `?rev=<full-40-char-sha>`.\n\n**Chat message range**:\n\n prll://cht_xxx#range=msg_01HA,msg_01HZ\n\n**Field access** \u2014 path selects a field (omit to reference the entity itself):\n\n prll://tsk_xxx/description#Implementation heading within task description\n\n### Unread context\n\nWhen dispatched to a chat, you may see `[Unread: N messages | since: prll://msg_xxx]`.\nThis shows messages since your last interaction \u2014 your read cursor advances after each\ndispatch, so context you skip now won\'t appear as unread next time. Use\n`parall messages list <chat> --limit 20` to fetch recent context. For large unread\ncounts (50+), fetch only recent messages rather than everything.\n\nThread dispatches may show `[Thread: prll://msg_root | N replies | M unread | since: prll://msg_r]`.\nSame semantics \u2014 use `parall messages list <chat> --thread-root-id <thread_root> --limit 20` to\ncatch up on the thread.\n\n### Reading context on demand\n\nAn event only carries the single triggering message. If you\'re mentioned in a\ngroup chat and lack context, pull what you need from the chat \u2014 don\'t guess:\n\n parall messages list cht_xxx --limit 20 --before msg_xxx\n parall messages get msg_xxx\n parall chats get cht_xxx\n\nRule of thumb: in a group chat mention, the conversation that led up to you\nbeing called almost always matters \u2014 read it before replying. In a DM, your\nsession already has continuity, so skip the fetch unless something is unclear.\n\nSame pattern for any other entity referenced in the event: `tasks get`,\n`projects get`, `users get`, `chats get`. Follow the reflink, don\'t ask.\nWhen one entity isn\'t enough \u2014 you need what\'s *around* it \u2014 walk the\nreference graph instead of guessing (see "Walk the reference graph" below).\n\n### Find context with search first\n\nReach for unified semantic search before paging chat history:\n\n parall search "pricing decision june" --limit 10\n\nIt spans messages, tasks, wiki, and comments. Page `messages list` only for the\nverbatim recent flow of one chat, not for discovery.\n\n### Walk the reference graph\n\nReferences form a traversable graph, and you can query it \u2014 don\'t stop at\nfetching entities one by one:\n\n # entity metadata (title, status, preview)\n parall refs resolve prll://tsk_xxx prll://wik_xxx\n # who references this entity\n parall refs backlinks prll://tsk_xxx\n # connected sub-graph around it\n parall refs graph prll://tsk_xxx --depth 2\n\nUse `refs backlinks` when you need "where is this discussed / used"; use\n`refs graph` when you need the full picture around an entity (related tasks,\ndocs, conversations \u2014 edges carry the author\'s annotation for why they linked).\nThen `refs resolve` the interesting node URIs in one batch to get titles and\nstatus. `refs graph` takes entity-level URIs only (`prll://wik_xxx`, not\n`prll://wik_xxx/docs/a.md`). All results are filtered to what you can see.{{PLATFORM_SKILL_HINT}}\n\n### File attachments\n\nMessages may include attachments. They appear in events as:\n\n [Attachment: prll://att_xxx | image/png | 1.2MB | screenshot.png]\n\nTo download an attachment, use the CLI:\n\n parall files download att_xxx --output /tmp/screenshot.png\n\nTo send a file:\n\n parall messages send prll://cht_xxx --file /tmp/output.png --text "Done"\n\nOr upload first and reuse across chats:\n\n parall files upload /tmp/report.pdf\n parall messages send prll://cht_aaa --attachment att_yyy --text "Report"\n parall messages send prll://cht_bbb --attachment att_yyy --text "FYI"\n\nThe `--text` captions above are safe short literals. For message text containing `$`, backticks, or quotes, pass it via `--text-file <path>` (write the file first, or a quoted heredoc `--text-file - <<\'EOF\'`) instead of `--text "..."` \u2014 inside double quotes the shell turns `$1,000` into `,000` and executes `$(...)`.\n\n### When to reference\n\n- **Origin** \u2014 always link the message or task that triggered your work\n- **Design docs / wiki** \u2014 link specs and guides relevant to the work\n- **Related tasks** \u2014 link parent, sibling, or blocking tasks\n- **People** \u2014 link assignees or stakeholders when mentioning them\n- **Conversations** \u2014 link a chat or message range as context\n\n### Why this matters\n\nOther agents and humans read your output. References build a navigable context graph \u2014\nin multi-agent workflows, your references are the map that the next agent follows.';
|
|
63490
|
+
var REFERENCE_GUIDE_TEMPLATE = '## Parall References\n\nEvery entity on Parall has a `prll://` URI. Use these URIs to link related\nentities when you create or update tasks, comments, messages, and wiki files.\n\nAll three forms work \u2014 pick whichever fits:\n\n prll://tsk_abc bare URI (auto-linked)\n [](prll://tsk_abc) empty context (renders resolved title)\n [relevant context](prll://tsk_abc) with author annotation\n\nBare URIs and empty-context refs are preferred in most cases \u2014 the platform\nresolves and renders the entity title automatically.\n\n### Mentioning people and agents\n\nA real member mention is a `prll://usr_...` reference. Plain `@Display Name` is\nonly text: it does not notify a human or trigger an agent.\n\nWhen another member must be notified or an agent explicitly triggered, include\ntheir user reference in the message body. Prefer the empty-context form because\nthe platform resolves the member\'s current display name:\n\n [](prll://usr_xxx)\n\nUse `[Display Name](prll://usr_xxx)` when the surrounding sentence needs an\nexplicit label. Find the user ID in the incoming message or with\n`parall members list`. Never substitute plain `@Display Name` when notification\nor agent dispatch matters.\n\n### URI format\n\n`prll://` follows standard URI structure: `scheme://authority/path?query#fragment`.\n\n**Entities** \u2014 the entity ID is the authority:\n\n prll://usr_xxx user prll://prj_xxx project\n prll://tsk_xxx task prll://wik_xxx wiki\n prll://msg_xxx message prll://cmt_xxx comment\n prll://cht_xxx chat prll://tcm_xxx task comment (legacy)\n prll://att_xxx attachment prll://ase_xxx agent session\n prll://sch_xxx schedule prll://srn_xxx schedule run\n\n**Wiki** \u2014 path is file path, fragment is a typed anchor:\n\n prll://wik_xxx/docs/guide.md file\n prll://wik_xxx/docs/guide.md#h=Auth::OAuth heading (:: = hierarchy)\n prll://wik_xxx/src/auth.go?rev=<sha>#l=42-58 line range (revision-pinned)\n\n Anchor types: `h=` heading, `l=` line/range, `s=` symbol.\n Line anchors in persistent content require `?rev=<full-40-char-sha>`.\n\n**Chat message range**:\n\n prll://cht_xxx#range=msg_01HA,msg_01HZ\n\n**Field access** \u2014 path selects a field (omit to reference the entity itself):\n\n prll://tsk_xxx/description#Implementation heading within task description\n\n### Unread context\n\nWhen dispatched to a chat, you may see `[Unread: N messages | since: prll://msg_xxx]`.\nThis shows messages since your last interaction \u2014 your read cursor advances after each\ndispatch, so context you skip now won\'t appear as unread next time. Use\n`parall messages list <chat> --limit 20` to fetch recent context. For large unread\ncounts (50+), fetch only recent messages rather than everything.\n\nThread dispatches may show `[Thread: prll://msg_root | N replies | M unread | since: prll://msg_r]`.\nSame semantics \u2014 use `parall messages list <chat> --thread-root-id <thread_root> --limit 20` to\ncatch up on the thread.\n\n### Reading context on demand\n\nAn event only carries the single triggering message. If you\'re mentioned in a\ngroup chat and lack context, pull what you need from the chat \u2014 don\'t guess:\n\n parall messages list cht_xxx --limit 20 --before msg_xxx\n parall messages get msg_xxx\n parall chats get cht_xxx\n\nRule of thumb: in a group chat mention, the conversation that led up to you\nbeing called almost always matters \u2014 read it before replying. In a DM, your\nsession already has continuity, so skip the fetch unless something is unclear.\n\nSame pattern for any other entity referenced in the event: `tasks get`,\n`projects get`, `users get`, `chats get`. Follow the reflink, don\'t ask.\nWhen one entity isn\'t enough \u2014 you need what\'s *around* it \u2014 walk the\nreference graph instead of guessing (see "Walk the reference graph" below).\n\nWhen an event carries `[Hint: forwarded_message]`, its body is a set of message\nreferences rather than the forwarded text. Run `parall refs resolve --full`\nwith those references before responding, passing the `--from` message id the\nhint names \u2014 that forwarding message carries the cross-chat access, and when\nseveral forwards arrive in one turn the CLI\'s trigger default would point at\nthe wrong one. `--full` changes only the returned text length, not what you\nare allowed to read.\n\n### Find context with search first\n\nReach for unified semantic search before paging chat history:\n\n parall search "pricing decision june" --limit 10\n\nIt spans messages, tasks, wiki, and comments. Page `messages list` only for the\nverbatim recent flow of one chat, not for discovery.\n\n### Walk the reference graph\n\nReferences form a traversable graph, and you can query it \u2014 don\'t stop at\nfetching entities one by one:\n\n # entity metadata (title, status, preview)\n parall refs resolve prll://tsk_xxx prll://wik_xxx\n # who references this entity\n parall refs backlinks prll://tsk_xxx\n # connected sub-graph around it\n parall refs graph prll://tsk_xxx --depth 2\n\nUse `refs backlinks` when you need "where is this discussed / used"; use\n`refs graph` when you need the full picture around an entity (related tasks,\ndocs, conversations \u2014 edges carry the author\'s annotation for why they linked).\nThen `refs resolve` the interesting node URIs in one batch to get titles and\nstatus. `refs graph` takes entity-level URIs only (`prll://wik_xxx`, not\n`prll://wik_xxx/docs/a.md`). All results are filtered to what you can see.{{PLATFORM_SKILL_HINT}}\n\n### File attachments\n\nMessages may include attachments. They appear in events as:\n\n [Attachment: prll://att_xxx | image/png | 1.2MB | screenshot.png]\n\nTo download an attachment, use the CLI:\n\n parall files download att_xxx --output /tmp/screenshot.png\n\nTo send a file:\n\n parall messages send prll://cht_xxx --file /tmp/output.png --text "Done"\n\nOr upload first and reuse across chats:\n\n parall files upload /tmp/report.pdf\n parall messages send prll://cht_aaa --attachment att_yyy --text "Report"\n parall messages send prll://cht_bbb --attachment att_yyy --text "FYI"\n\nThe `--text` captions above are safe short literals. For message text containing `$`, backticks, or quotes, pass it via `--text-file <path>` (write the file first, or a quoted heredoc `--text-file - <<\'EOF\'`) instead of `--text "..."` \u2014 inside double quotes the shell turns `$1,000` into `,000` and executes `$(...)`.\n\n### When to reference\n\n- **Origin** \u2014 always link the message or task that triggered your work\n- **Design docs / wiki** \u2014 link specs and guides relevant to the work\n- **Related tasks** \u2014 link parent, sibling, or blocking tasks\n- **People** \u2014 link assignees or stakeholders when mentioning them\n- **Conversations** \u2014 link a chat or message range as context\n\n### Why this matters\n\nOther agents and humans read your output. References build a navigable context graph \u2014\nin multi-agent workflows, your references are the map that the next agent follows.';
|
|
63491
63491
|
var BRIDGE_SKILL_HINTS = {
|
|
63492
63492
|
SCHEDULES_SKILL_HINT: " (read the `parall-schedules` skill at .parall/skills/parall-schedules.md).",
|
|
63493
63493
|
TASKS_SKILL_HINT: "\nDetails: read the `parall-tasks` skill at .parall/skills/parall-tasks.md and follow it.",
|
|
@@ -63515,6 +63515,13 @@ function renderPlatformReferenceGuide(skillsAvailable) {
|
|
|
63515
63515
|
var PLATFORM_BEHAVIOR = renderPlatformBehavior(true);
|
|
63516
63516
|
var PLATFORM_REFERENCE_GUIDE = renderPlatformReferenceGuide(true);
|
|
63517
63517
|
|
|
63518
|
+
// ts/agent-core/dist/event-format.js
|
|
63519
|
+
var MESSAGE_REF_URI = "prll:\\/\\/msg_[A-Za-z0-9_-]+(?:\\/content\\?v=[1-9][0-9]{0,8}#t=[0-9]+-[0-9]+)?";
|
|
63520
|
+
var MESSAGE_RANGE_REF_URI = "prll:\\/\\/cht_[A-Za-z0-9_-]+#range=msg_[A-Za-z0-9_-]+,msg_[A-Za-z0-9_-]+";
|
|
63521
|
+
var REF_URI = `(?:${MESSAGE_REF_URI}|${MESSAGE_RANGE_REF_URI})`;
|
|
63522
|
+
var REF_TOKEN = `(?:${REF_URI}|\\[(?:[^\\[\\]]|\\[[^\\[\\]]*\\])*\\]\\(${REF_URI}\\)|<${REF_URI}>)`;
|
|
63523
|
+
var FORWARDED_REF_LINE = new RegExp(`^${REF_TOKEN}(?:\\s+${REF_TOKEN})*$`);
|
|
63524
|
+
|
|
63518
63525
|
// ts/sdk/dist/browser-viewer.js
|
|
63519
63526
|
var BROWSER_VIEWER_READINESS_TIMEOUT_MS = 6e4;
|
|
63520
63527
|
function browserViewerRequestOptions(command, opts) {
|
|
@@ -63526,6 +63533,16 @@ function browserViewerRequestOptions(command, opts) {
|
|
|
63526
63533
|
};
|
|
63527
63534
|
}
|
|
63528
63535
|
|
|
63536
|
+
// ts/sdk/dist/attachment-endpoints.js
|
|
63537
|
+
function attachmentEndpoints(apiBase) {
|
|
63538
|
+
return {
|
|
63539
|
+
UPLOAD_PRESIGN: (orgId) => `${apiBase}/orgs/${orgId}/upload/presign`,
|
|
63540
|
+
UPLOAD_COMPLETE: (orgId) => `${apiBase}/orgs/${orgId}/upload/complete`,
|
|
63541
|
+
UPLOAD_ABORT: (orgId) => `${apiBase}/orgs/${orgId}/upload/abort`,
|
|
63542
|
+
FILE: (id) => `${apiBase}/files/${id}`
|
|
63543
|
+
};
|
|
63544
|
+
}
|
|
63545
|
+
|
|
63529
63546
|
// ts/sdk/dist/constants.js
|
|
63530
63547
|
var API_BASE = "/api/v1";
|
|
63531
63548
|
var WIKI_BASE = "/wiki/v1";
|
|
@@ -63598,9 +63615,7 @@ var ENDPOINTS = {
|
|
|
63598
63615
|
MESSAGE_REACTIONS: (id) => `${API_BASE}/messages/${id}/reactions`,
|
|
63599
63616
|
MESSAGE_REACTION: (id, emoji) => `${API_BASE}/messages/${id}/reactions/${encodeURIComponent(emoji)}`,
|
|
63600
63617
|
// Upload (org-scoped)
|
|
63601
|
-
|
|
63602
|
-
UPLOAD_COMPLETE: (orgId) => `${API_BASE}/orgs/${orgId}/upload/complete`,
|
|
63603
|
-
FILE: (id) => `${API_BASE}/files/${id}`,
|
|
63618
|
+
...attachmentEndpoints(API_BASE),
|
|
63604
63619
|
// Approval requests (org-scoped)
|
|
63605
63620
|
APPROVAL_REQUESTS: (orgId) => `${API_BASE}/orgs/${orgId}/approval-requests`,
|
|
63606
63621
|
// Approvals (global)
|
|
@@ -63757,6 +63772,7 @@ var ENDPOINTS = {
|
|
|
63757
63772
|
SLACK_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/slack/status`,
|
|
63758
63773
|
// WeChat tier-B read verbs (agent-only; internal research preview).
|
|
63759
63774
|
WECHAT_CONTACTS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/contacts`,
|
|
63775
|
+
WECHAT_HISTORY: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/history`,
|
|
63760
63776
|
WECHAT_PROFILE: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/profile`,
|
|
63761
63777
|
WECHAT_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/status`,
|
|
63762
63778
|
// Invitations (org-scoped, admin)
|
|
@@ -63780,6 +63796,8 @@ var ENDPOINTS = {
|
|
|
63780
63796
|
// backend router so `deleted` isn't captured as a {wikiId}; the SDK builder
|
|
63781
63797
|
// is just a string.
|
|
63782
63798
|
WIKIS_DELETED: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wikis/deleted`,
|
|
63799
|
+
// Org-wide changeset listing across readable wikis (Working on tab).
|
|
63800
|
+
WIKI_ORG_CHANGESETS: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wiki-changesets`,
|
|
63783
63801
|
// Detail URL — also reused for DELETE (soft-delete) and `${WIKI}/restore`.
|
|
63784
63802
|
WIKI: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}`,
|
|
63785
63803
|
WIKI_RESTORE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restore`,
|
|
@@ -63809,6 +63827,10 @@ var ENDPOINTS = {
|
|
|
63809
63827
|
// Wiki Path Restrictions (AFCS narrowing ACL — private subtrees)
|
|
63810
63828
|
WIKI_RESTRICTIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions`,
|
|
63811
63829
|
WIKI_RESTRICTION: (orgId, wikiId, restrictionId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions/${restrictionId}`,
|
|
63830
|
+
WIKI_ACCESS_POLICY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy`,
|
|
63831
|
+
WIKI_ACCESS_POLICY_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy/members`,
|
|
63832
|
+
WIKI_MEMBERSHIP_SELF: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/membership/self`,
|
|
63833
|
+
WIKI_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/members`,
|
|
63812
63834
|
WIKI_ACCESS_STATUS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-status`,
|
|
63813
63835
|
WIKI_ACCESS_REQUESTS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-requests`,
|
|
63814
63836
|
// Wiki History (commits, file commits, blame)
|
|
@@ -63929,6 +63951,19 @@ var ENDPOINTS = {
|
|
|
63929
63951
|
ORG_EDGE_DEVICE_UNREGISTER: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/unregister`,
|
|
63930
63952
|
ORG_EDGE_ONBOARDING: (orgId) => `/api/v1/orgs/${orgId}/edge/onboarding`,
|
|
63931
63953
|
ORG_EDGE_PROFILES: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles`,
|
|
63954
|
+
ORG_EDGE_PROFILE_OPERATIONS: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations`,
|
|
63955
|
+
ORG_EDGE_PROFILE_OPERATION: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}`,
|
|
63956
|
+
ORG_EDGE_PROFILE_OPERATION_CONFIRM: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}/confirm`,
|
|
63957
|
+
ORG_BROWSER_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/browser-aliases`,
|
|
63958
|
+
ORG_BROWSER_ALIAS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}`,
|
|
63959
|
+
ORG_BROWSER_ALIAS_READINESS_CHECKS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks`,
|
|
63960
|
+
ORG_BROWSER_ALIAS_READINESS_CHECK: (orgId, aliasId, checkId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks/${checkId}`,
|
|
63961
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANTS: (orgId, keyId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants`,
|
|
63962
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANT: (orgId, keyId, aliasId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants/${aliasId}`,
|
|
63963
|
+
ORG_MANAGED_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/aliases`,
|
|
63964
|
+
ORG_MANAGED_ALIAS: (orgId, aliasName) => `/api/v1/orgs/${orgId}/aliases/${encodeURIComponent(aliasName)}`,
|
|
63965
|
+
ORG_BROWSER_ALIAS_EXECUTIONS: (orgId) => `/api/v1/orgs/${orgId}/executions`,
|
|
63966
|
+
ORG_BROWSER_ALIAS_EXECUTION: (orgId, requestId) => `/api/v1/orgs/${orgId}/executions/${encodeURIComponent(requestId)}`,
|
|
63932
63967
|
// Per-profile egress proxy (hosted Cloud Profiles; manager-only, human-only).
|
|
63933
63968
|
ORG_EDGE_PROFILE_PROXY: (orgId, edgeId, profileName) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/proxy`,
|
|
63934
63969
|
// Per-profile one-shot cookie seed (hosted Cloud Profiles; manager-only,
|
|
@@ -64161,8 +64196,71 @@ var TaskLabelClient = class extends ProjectTaskClient {
|
|
|
64161
64196
|
}
|
|
64162
64197
|
};
|
|
64163
64198
|
|
|
64199
|
+
// ts/sdk/dist/wechat-client.js
|
|
64200
|
+
var WechatClient = class extends TaskLabelClient {
|
|
64201
|
+
/** Address book enriched with display names. */
|
|
64202
|
+
async listWechatContacts(orgId) {
|
|
64203
|
+
return this.request("GET", ENDPOINTS.WECHAT_CONTACTS(orgId));
|
|
64204
|
+
}
|
|
64205
|
+
/** Platform-retained context in chronological page order. */
|
|
64206
|
+
async wechatHistory(orgId, conversation, query) {
|
|
64207
|
+
const params = new URLSearchParams({ conversation });
|
|
64208
|
+
if (query?.before)
|
|
64209
|
+
params.set("before", query.before);
|
|
64210
|
+
if (query?.since)
|
|
64211
|
+
params.set("since", query.since);
|
|
64212
|
+
if (query?.limit !== void 0)
|
|
64213
|
+
params.set("limit", String(query.limit));
|
|
64214
|
+
return this.request("GET", `${ENDPOINTS.WECHAT_HISTORY(orgId)}?${params.toString()}`);
|
|
64215
|
+
}
|
|
64216
|
+
/** Connected WeChat account identity. */
|
|
64217
|
+
async wechatProfile(orgId) {
|
|
64218
|
+
return this.request("GET", ENDPOINTS.WECHAT_PROFILE(orgId));
|
|
64219
|
+
}
|
|
64220
|
+
/** Live online probe, identity, and platform offline record. */
|
|
64221
|
+
async wechatStatus(orgId) {
|
|
64222
|
+
return this.request("GET", ENDPOINTS.WECHAT_STATUS(orgId));
|
|
64223
|
+
}
|
|
64224
|
+
};
|
|
64225
|
+
|
|
64226
|
+
// ts/sdk/dist/attachment-client.js
|
|
64227
|
+
var COMPLETION_RETRY_DELAYS_MS = [250, 750];
|
|
64228
|
+
function isRetryableCompletionError(error2) {
|
|
64229
|
+
if (!error2 || typeof error2 !== "object" || !("status" in error2))
|
|
64230
|
+
return false;
|
|
64231
|
+
const status = error2.status;
|
|
64232
|
+
return status === 0 || typeof status === "number" && status >= 500;
|
|
64233
|
+
}
|
|
64234
|
+
var AttachmentClient = class extends WechatClient {
|
|
64235
|
+
async getUploadPresignUrl(orgId, req) {
|
|
64236
|
+
return this.request("POST", ENDPOINTS.UPLOAD_PRESIGN(orgId), req);
|
|
64237
|
+
}
|
|
64238
|
+
async completeUpload(orgId, attachmentId, parts) {
|
|
64239
|
+
const body = {
|
|
64240
|
+
attachment_id: attachmentId,
|
|
64241
|
+
parts
|
|
64242
|
+
};
|
|
64243
|
+
for (let attempt = 0; ; attempt += 1) {
|
|
64244
|
+
try {
|
|
64245
|
+
return await this.request("POST", ENDPOINTS.UPLOAD_COMPLETE(orgId), body);
|
|
64246
|
+
} catch (error2) {
|
|
64247
|
+
const delay = COMPLETION_RETRY_DELAYS_MS[attempt];
|
|
64248
|
+
if (delay === void 0 || !isRetryableCompletionError(error2))
|
|
64249
|
+
throw error2;
|
|
64250
|
+
await new Promise((resolve2) => setTimeout(resolve2, delay));
|
|
64251
|
+
}
|
|
64252
|
+
}
|
|
64253
|
+
}
|
|
64254
|
+
async abortUpload(orgId, attachmentId) {
|
|
64255
|
+
return this.request("POST", ENDPOINTS.UPLOAD_ABORT(orgId), { attachment_id: attachmentId });
|
|
64256
|
+
}
|
|
64257
|
+
async getFileUrl(id, opts) {
|
|
64258
|
+
return this.request("GET", ENDPOINTS.FILE(id), void 0, opts?.download ? { download: true } : void 0);
|
|
64259
|
+
}
|
|
64260
|
+
};
|
|
64261
|
+
|
|
64164
64262
|
// ts/sdk/dist/client.js
|
|
64165
|
-
var ParallClient = class _ParallClient extends
|
|
64263
|
+
var ParallClient = class _ParallClient extends AttachmentClient {
|
|
64166
64264
|
baseUrl;
|
|
64167
64265
|
wikiBaseUrl;
|
|
64168
64266
|
token;
|
|
@@ -64809,16 +64907,6 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
64809
64907
|
const res = await this.request("GET", ENDPOINTS.MESSAGE_REACTIONS(messageId));
|
|
64810
64908
|
return res.reactions;
|
|
64811
64909
|
}
|
|
64812
|
-
// ---- File Upload ----
|
|
64813
|
-
async getUploadPresignUrl(orgId, req) {
|
|
64814
|
-
return this.request("POST", ENDPOINTS.UPLOAD_PRESIGN(orgId), req);
|
|
64815
|
-
}
|
|
64816
|
-
async completeUpload(orgId, attachmentId) {
|
|
64817
|
-
return this.request("POST", ENDPOINTS.UPLOAD_COMPLETE(orgId), { attachment_id: attachmentId });
|
|
64818
|
-
}
|
|
64819
|
-
async getFileUrl(id, opts) {
|
|
64820
|
-
return this.request("GET", ENDPOINTS.FILE(id), void 0, opts?.download ? { download: true } : void 0);
|
|
64821
|
-
}
|
|
64822
64910
|
// ---- Approvals ----
|
|
64823
64911
|
async getApproval(id) {
|
|
64824
64912
|
return this.request("GET", ENDPOINTS.APPROVAL(id));
|
|
@@ -64826,8 +64914,14 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
64826
64914
|
async requestApproval(orgId, req) {
|
|
64827
64915
|
return this.request("POST", ENDPOINTS.APPROVAL_REQUESTS(orgId), req);
|
|
64828
64916
|
}
|
|
64829
|
-
async decideApproval(id, decision) {
|
|
64830
|
-
|
|
64917
|
+
async decideApproval(id, decision, reason) {
|
|
64918
|
+
if (decision === "approve" && reason?.trim()) {
|
|
64919
|
+
throw new ApiError(400, "Approval reason is only allowed for rejection decisions", "INVALID_DECISION_REASON");
|
|
64920
|
+
}
|
|
64921
|
+
return this.request("POST", ENDPOINTS.APPROVAL_DECIDE(id), {
|
|
64922
|
+
decision,
|
|
64923
|
+
...decision === "reject" && reason !== void 0 ? { reason } : {}
|
|
64924
|
+
});
|
|
64831
64925
|
}
|
|
64832
64926
|
async cancelApproval(id) {
|
|
64833
64927
|
return this.request("POST", ENDPOINTS.APPROVAL_CANCEL(id));
|
|
@@ -65510,28 +65604,6 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
65510
65604
|
async setSlackStatus(orgId, input) {
|
|
65511
65605
|
await this.request("POST", ENDPOINTS.SLACK_STATUS(orgId), input);
|
|
65512
65606
|
}
|
|
65513
|
-
/**
|
|
65514
|
-
* WeChat tier-B read verb (agent-only; internal research preview): the
|
|
65515
|
-
* account's address book — friends/chatrooms enriched with display names,
|
|
65516
|
-
* followed official accounts. Same live gate as the send verb.
|
|
65517
|
-
*/
|
|
65518
|
-
async listWechatContacts(orgId) {
|
|
65519
|
-
return this.request("GET", ENDPOINTS.WECHAT_CONTACTS(orgId));
|
|
65520
|
-
}
|
|
65521
|
-
/**
|
|
65522
|
-
* WeChat tier-B read verb (agent-only): the connected account's identity
|
|
65523
|
-
* (wxid / alias / nickName / app id).
|
|
65524
|
-
*/
|
|
65525
|
-
async wechatProfile(orgId) {
|
|
65526
|
-
return this.request("GET", ENDPOINTS.WECHAT_PROFILE(orgId));
|
|
65527
|
-
}
|
|
65528
|
-
/**
|
|
65529
|
-
* WeChat tier-B read verb (agent-only): live online probe + identity +
|
|
65530
|
-
* the platform's offline record.
|
|
65531
|
-
*/
|
|
65532
|
-
async wechatStatus(orgId) {
|
|
65533
|
-
return this.request("GET", ENDPOINTS.WECHAT_STATUS(orgId));
|
|
65534
|
-
}
|
|
65535
65607
|
async listChannelConversations(orgId, connectionId) {
|
|
65536
65608
|
return this.request("GET", ENDPOINTS.CHANNEL_CONNECTION_CONVERSATIONS(orgId, connectionId));
|
|
65537
65609
|
}
|
|
@@ -65682,6 +65754,17 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
65682
65754
|
const res = await this.request("GET", ENDPOINTS.WIKI_CHANGESETS(orgId, wikiId));
|
|
65683
65755
|
return res.data.map(normalizeWikiChangeset);
|
|
65684
65756
|
}
|
|
65757
|
+
/** Org-wide changeset listing across every wiki the caller can read.
|
|
65758
|
+
* Server default (no `status`) is the pending set: proposed,
|
|
65759
|
+
* approval_pending, approved. */
|
|
65760
|
+
async getOrgWikiChangesets(orgId, opts) {
|
|
65761
|
+
const params = new URLSearchParams();
|
|
65762
|
+
for (const s of opts?.status ?? [])
|
|
65763
|
+
params.append("status", s);
|
|
65764
|
+
const qs = params.toString();
|
|
65765
|
+
const res = await this.request("GET", `${ENDPOINTS.WIKI_ORG_CHANGESETS(orgId)}${qs ? `?${qs}` : ""}`);
|
|
65766
|
+
return (res.data ?? []).map(normalizeWikiChangeset);
|
|
65767
|
+
}
|
|
65685
65768
|
async getWikiChangeset(orgId, wikiId, changesetId) {
|
|
65686
65769
|
return normalizeWikiChangeset(await this.request("GET", ENDPOINTS.WIKI_CHANGESET(orgId, wikiId, changesetId)));
|
|
65687
65770
|
}
|
|
@@ -65770,6 +65853,35 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
65770
65853
|
async getWikiAccessStatus(orgId, wikiId, path7) {
|
|
65771
65854
|
return this.request("GET", ENDPOINTS.WIKI_ACCESS_STATUS(orgId, wikiId), void 0, path7 ? { path: path7 } : void 0);
|
|
65772
65855
|
}
|
|
65856
|
+
// ---- Wiki membership projection (who-can-access, invites, join/leave) ----
|
|
65857
|
+
async getWikiAccessPolicy(orgId, wikiId, path7 = "") {
|
|
65858
|
+
return this.request("GET", ENDPOINTS.WIKI_ACCESS_POLICY(orgId, wikiId), void 0, path7 ? { path: path7 } : void 0);
|
|
65859
|
+
}
|
|
65860
|
+
async putWikiAccessPolicy(orgId, wikiId, policy) {
|
|
65861
|
+
return this.request("PUT", ENDPOINTS.WIKI_ACCESS_POLICY(orgId, wikiId), policy);
|
|
65862
|
+
}
|
|
65863
|
+
/** Add-only invite (viewer/editor); allowed for managers, and for editors
|
|
65864
|
+
* when the library enables editors_can_invite. */
|
|
65865
|
+
async addWikiMember(orgId, wikiId, subject, role) {
|
|
65866
|
+
await this.request("POST", ENDPOINTS.WIKI_ACCESS_POLICY_MEMBERS(orgId, wikiId), {
|
|
65867
|
+
subject,
|
|
65868
|
+
role
|
|
65869
|
+
});
|
|
65870
|
+
}
|
|
65871
|
+
/** Join a PUBLIC library as an explicit member (lands at the library's
|
|
65872
|
+
* default role). Restricted libraries answer 409 JOIN_REQUIRES_REQUEST —
|
|
65873
|
+
* go through createWikiAccessRequest instead. */
|
|
65874
|
+
async joinWiki(orgId, wikiId) {
|
|
65875
|
+
await this.request("POST", ENDPOINTS.WIKI_MEMBERSHIP_SELF(orgId, wikiId));
|
|
65876
|
+
}
|
|
65877
|
+
/** Remove the caller's explicit membership (team-granted membership stays). */
|
|
65878
|
+
async leaveWiki(orgId, wikiId) {
|
|
65879
|
+
await this.request("DELETE", ENDPOINTS.WIKI_MEMBERSHIP_SELF(orgId, wikiId));
|
|
65880
|
+
}
|
|
65881
|
+
async getWikiMembers(orgId, wikiId) {
|
|
65882
|
+
const res = await this.request("GET", ENDPOINTS.WIKI_MEMBERS(orgId, wikiId));
|
|
65883
|
+
return res.data ?? [];
|
|
65884
|
+
}
|
|
65773
65885
|
async createWikiAccessRequest(orgId, wikiId, data2) {
|
|
65774
65886
|
await this.request("POST", ENDPOINTS.WIKI_ACCESS_REQUESTS(orgId, wikiId), data2);
|
|
65775
65887
|
}
|
|
@@ -65817,11 +65929,11 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
65817
65929
|
}
|
|
65818
65930
|
// ---- References ----
|
|
65819
65931
|
async resolveRefs(orgId, refs, options) {
|
|
65820
|
-
|
|
65821
|
-
|
|
65822
|
-
|
|
65823
|
-
|
|
65824
|
-
|
|
65932
|
+
return this.request("POST", ENDPOINTS.REFS_RESOLVE(orgId), {
|
|
65933
|
+
refs,
|
|
65934
|
+
source_message_id: options?.sourceMessageId,
|
|
65935
|
+
full: options?.full || void 0
|
|
65936
|
+
});
|
|
65825
65937
|
}
|
|
65826
65938
|
async getBacklinks(orgId, params) {
|
|
65827
65939
|
return this.request("GET", ENDPOINTS.REFS_BACKLINKS(orgId), void 0, params);
|
|
@@ -66232,6 +66344,76 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
66232
66344
|
async listEdgeProfiles(orgId, edgeId) {
|
|
66233
66345
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILES(orgId, edgeId));
|
|
66234
66346
|
}
|
|
66347
|
+
/** Start one durable Local BYOC Profile operation. Network-unknown callers
|
|
66348
|
+
* must retry with the same key or recover by operation id; a different body
|
|
66349
|
+
* under the same key is rejected. */
|
|
66350
|
+
async createEdgeProfileOperation(orgId, edgeId, request, idempotencyKey) {
|
|
66351
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE_PROFILE_OPERATIONS(orgId, edgeId), request, void 0, false, { headers: { "Idempotency-Key": idempotencyKey } });
|
|
66352
|
+
}
|
|
66353
|
+
/** Strong-confirm the exact durable Delete impact. A changed impact returns
|
|
66354
|
+
* PROFILE_DELETE_IMPACT_CHANGED with a replacement receipt in
|
|
66355
|
+
* `ApiError.extras.details.operation`. */
|
|
66356
|
+
async confirmEdgeProfileOperation(orgId, edgeId, operationId, request) {
|
|
66357
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE_PROFILE_OPERATION_CONFIRM(orgId, edgeId, operationId), request);
|
|
66358
|
+
}
|
|
66359
|
+
/** Sole read/recovery surface. The server may reconcile an already durable
|
|
66360
|
+
* dispatch/finalization while returning this receipt. */
|
|
66361
|
+
async getEdgeProfileOperation(orgId, edgeId, operationId) {
|
|
66362
|
+
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_OPERATION(orgId, edgeId, operationId));
|
|
66363
|
+
}
|
|
66364
|
+
/** Create and atomically materialize one Local BYOC Browser Alias. A replay
|
|
66365
|
+
* with the same idempotency key and body returns the original stable ccn_. */
|
|
66366
|
+
async createBrowserAlias(orgId, request) {
|
|
66367
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIASES(orgId), request);
|
|
66368
|
+
}
|
|
66369
|
+
async listBrowserAliases(orgId) {
|
|
66370
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIASES(orgId));
|
|
66371
|
+
}
|
|
66372
|
+
async getBrowserAlias(orgId, aliasId) {
|
|
66373
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId));
|
|
66374
|
+
}
|
|
66375
|
+
async renameBrowserAlias(orgId, aliasId, request) {
|
|
66376
|
+
return this.request("PATCH", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
66377
|
+
}
|
|
66378
|
+
async deleteBrowserAlias(orgId, aliasId, request) {
|
|
66379
|
+
return this.request("DELETE", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
66380
|
+
}
|
|
66381
|
+
/** Start one durable readiness check. The key is carried as the standard
|
|
66382
|
+
* Idempotency-Key header; the request body is intentionally empty. */
|
|
66383
|
+
async createBrowserAliasReadinessCheck(orgId, aliasId, request) {
|
|
66384
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECKS(orgId, aliasId), void 0, void 0, false, { headers: { "Idempotency-Key": request.idempotency_key } });
|
|
66385
|
+
}
|
|
66386
|
+
/** Sole durable recovery surface for one readiness request. */
|
|
66387
|
+
async getBrowserAliasReadinessCheck(orgId, aliasId, checkId) {
|
|
66388
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECK(orgId, aliasId, checkId));
|
|
66389
|
+
}
|
|
66390
|
+
/** Organization Owner view. Hashes, reviewed snapshots and deltas are
|
|
66391
|
+
* intentionally available only on this human-JWT management surface. */
|
|
66392
|
+
async listBrowserAliasGrants(orgId, keyId) {
|
|
66393
|
+
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANTS(orgId, keyId));
|
|
66394
|
+
}
|
|
66395
|
+
async getBrowserAliasGrant(orgId, keyId, aliasId) {
|
|
66396
|
+
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId));
|
|
66397
|
+
}
|
|
66398
|
+
async replaceBrowserAliasGrant(orgId, keyId, aliasId, request) {
|
|
66399
|
+
return this.request("PUT", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId), request);
|
|
66400
|
+
}
|
|
66401
|
+
/** Managed-key discovery. The response is already grant-filtered and never
|
|
66402
|
+
* carries contract hashes, review snapshots, Edge IDs or Profile IDs. */
|
|
66403
|
+
async listManagedBrowserAliases(orgId) {
|
|
66404
|
+
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIASES(orgId));
|
|
66405
|
+
}
|
|
66406
|
+
async getManagedBrowserAlias(orgId, aliasName) {
|
|
66407
|
+
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIAS(orgId, aliasName));
|
|
66408
|
+
}
|
|
66409
|
+
/** Accept and dispatch one @alias command. request_id is generated by the
|
|
66410
|
+
* caller before local validation and is also the sole durable recovery key. */
|
|
66411
|
+
async createBrowserAliasExecution(orgId, request) {
|
|
66412
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTIONS(orgId), request);
|
|
66413
|
+
}
|
|
66414
|
+
async getBrowserAliasExecution(orgId, requestId) {
|
|
66415
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTION(orgId, requestId));
|
|
66416
|
+
}
|
|
66235
66417
|
/**
|
|
66236
66418
|
* Read a hosted Cloud Profile's egress-proxy status (manager-only: hosted
|
|
66237
66419
|
* human maintainer or org admin). Sanitized — the password never comes back.
|