@parall/daemon 1.86.0 → 1.88.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.
@@ -520,6 +520,15 @@ var init_chat_team_grant_types = __esm({
520
520
  }
521
521
  });
522
522
 
523
+ // ts/sdk/dist/clip-connection-types.js
524
+ var CLIP_CONNECTION_CONNECT_ACTION;
525
+ var init_clip_connection_types = __esm({
526
+ "ts/sdk/dist/clip-connection-types.js"() {
527
+ "use strict";
528
+ CLIP_CONNECTION_CONNECT_ACTION = "clip.connection.connect";
529
+ }
530
+ });
531
+
523
532
  // ts/sdk/dist/wiki-upload.js
524
533
  function createWikiUploadFormData(params) {
525
534
  const form = new FormData();
@@ -668,11 +677,17 @@ var init_clip_connection_endpoints = __esm({
668
677
  "ts/sdk/dist/clip-connection-endpoints.js"() {
669
678
  "use strict";
670
679
  clipConnectionEndpoints = {
680
+ CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
681
+ EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
671
682
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
672
683
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
673
684
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
674
685
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
675
- CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`
686
+ CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
687
+ /** The caller's own (person-owned) connections; login session only. */
688
+ ORG_MY_CONNECTIONS: (orgId) => `/api/v1/orgs/${orgId}/me/connections`,
689
+ ORG_MY_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/me/connections/${connId}`,
690
+ ORG_MY_CONNECTION_AGENT: (orgId, connId, agentId) => `/api/v1/orgs/${orgId}/me/connections/${connId}/agents/${agentId}`
676
691
  };
677
692
  }
678
693
  });
@@ -684,6 +699,8 @@ var init_edge_endpoints = __esm({
684
699
  "use strict";
685
700
  API_BASE = "/api/v1";
686
701
  edgeEndpoints = {
702
+ ORG_HOSTED_CREATION_GRANT: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/edge/profile-creation-grants/${encodeURIComponent(agentId)}`,
703
+ ORG_HOSTED_CREATION_EVENTS: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/edge/profile-creation-grants/${encodeURIComponent(agentId)}/events`,
687
704
  ORG_EDGE_PROFILE_ACCESS: (orgId, edgeId, profileName) => `${API_BASE}/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/access`,
688
705
  ORG_EDGE: (orgId) => `${API_BASE}/orgs/${orgId}/edge`,
689
706
  ORG_EDGE_CONNECT: (orgId) => `${API_BASE}/orgs/${orgId}/edge/connect`,
@@ -740,6 +757,7 @@ function teamInviteEndpoints(apiBase) {
740
757
  TEMPLATE_INVITE_REQUESTS: (orgId, templateId) => `${apiBase}/orgs/${seg(orgId)}/templates/${seg(templateId)}/invite-link/requests`,
741
758
  TEMPLATE_INVITE_REQUEST_DECIDE: (orgId, templateId, requestId) => `${apiBase}/orgs/${seg(orgId)}/templates/${seg(templateId)}/invite-link/requests/${seg(requestId)}/decide`,
742
759
  TEAM_INVITE: (token) => `${apiBase}/team-invites/${seg(token)}`,
760
+ TEAM_INVITE_TEAMS: (token) => `${apiBase}/team-invites/${seg(token)}/teams`,
743
761
  TEAM_INVITE_REQUESTS: (token) => `${apiBase}/team-invites/${seg(token)}/requests`,
744
762
  TEAM_INVITE_REQUEST_MINE: (token) => `${apiBase}/team-invites/${seg(token)}/requests/mine`,
745
763
  TEAM_INVITE_REQUEST_CANCEL: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/cancel`,
@@ -819,6 +837,35 @@ var init_team_endpoints = __esm({
819
837
  }
820
838
  });
821
839
 
840
+ // ts/sdk/dist/secret-endpoints.js
841
+ function secretEndpoints(apiBase) {
842
+ return {
843
+ AGENT_SECRETS: (orgId, agentId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets`,
844
+ AGENT_SECRET: (orgId, agentId, secretId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
845
+ ORG_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/secrets`,
846
+ ORG_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}`,
847
+ /** The caller's own secrets (login session only, like the rest up to the runtime's). */
848
+ ORG_MY_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/me/secrets`,
849
+ ORG_MY_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}`,
850
+ ORG_MY_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}/grants/${agentId}`,
851
+ TEAM_SECRETS: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets`,
852
+ TEAM_SECRET: (orgId, teamId, secretId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}`,
853
+ TEAM_SECRET_GRANT: (orgId, teamId, secretId, agentId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}/grants/${agentId}`,
854
+ /** `agentId` holds `ownerAgentId`'s own secret. */
855
+ AGENT_SECRET_GRANT: (orgId, ownerAgentId, secretId, agentId) => `${apiBase}/orgs/${orgId}/agents/${ownerAgentId}/secrets/${secretId}/grants/${agentId}`,
856
+ ORG_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}/grants/${agentId}`,
857
+ /** The runtime's own routes, with the agent's key. */
858
+ AGENT_ME_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets`,
859
+ AGENT_ME_SECRETS_CATALOG: (orgId, q) => `${apiBase}/orgs/${orgId}/agents/me/secrets/catalog${q ? `?q=${encodeURIComponent(q)}` : ""}`,
860
+ AGENT_ME_SECRETS_APPLIED: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets/applied`
861
+ };
862
+ }
863
+ var init_secret_endpoints = __esm({
864
+ "ts/sdk/dist/secret-endpoints.js"() {
865
+ "use strict";
866
+ }
867
+ });
868
+
822
869
  // ts/sdk/dist/constants.js
823
870
  function isPlatformModelSelectableForRuntime(model, runtime) {
824
871
  if (!model.upstream_id)
@@ -878,6 +925,7 @@ var init_constants = __esm({
878
925
  init_wechat_endpoints();
879
926
  init_billing_endpoints();
880
927
  init_team_endpoints();
928
+ init_secret_endpoints();
881
929
  API_BASE2 = "/api/v1";
882
930
  WIKI_BASE = "/wiki/v1";
883
931
  CLIP_BASE = "/clip/v1";
@@ -1155,6 +1203,9 @@ var init_constants = __esm({
1155
1203
  codex: "openai/gpt-5.4"
1156
1204
  };
1157
1205
  ENDPOINTS = {
1206
+ WIKI_PAGE_SHARES: (orgId, wikiId) => `/wiki/v1/orgs/${orgId}/wikis/${wikiId}/page-shares`,
1207
+ WIKI_PAGE_SHARE_CANDIDATES: (orgId, wikiId) => `/wiki/v1/orgs/${orgId}/wikis/${wikiId}/page-share-candidates`,
1208
+ WIKI_SHARED_PAGE: (shareId) => `/wiki/v1/shared-pages/${encodeURIComponent(shareId)}`,
1158
1209
  // Auth
1159
1210
  AUTH_REGISTER: `${API_BASE2}/auth/register`,
1160
1211
  AUTH_LOGIN: `${API_BASE2}/auth/login`,
@@ -1230,6 +1281,8 @@ var init_constants = __esm({
1230
1281
  CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
1231
1282
  CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
1232
1283
  CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
1284
+ CHAT_BOOKMARKS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks`,
1285
+ CHAT_BOOKMARK: (orgId, chatId, bookmarkId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks/${bookmarkId}`,
1233
1286
  CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
1234
1287
  CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
1235
1288
  CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
@@ -1272,14 +1325,7 @@ var init_constants = __esm({
1272
1325
  AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
1273
1326
  AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
1274
1327
  AGENT_RUNTIME_REPORT: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/runtime-report`,
1275
- // Agent secrets (agent-secrets-design.md): management, then the runtime's own two routes.
1276
- AGENT_SECRETS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets`,
1277
- AGENT_SECRET: (orgId, agentId, secretId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
1278
- ORG_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/secrets`,
1279
- ORG_SECRET: (orgId, secretId) => `${API_BASE2}/orgs/${orgId}/secrets/${secretId}`,
1280
- AGENT_ME_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets`,
1281
- AGENT_ME_SECRETS_CATALOG: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/catalog`,
1282
- AGENT_ME_SECRETS_APPLIED: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/applied`,
1328
+ ...secretEndpoints(API_BASE2),
1283
1329
  AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
1284
1330
  AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
1285
1331
  AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
@@ -1737,6 +1783,7 @@ var init_constants = __esm({
1737
1783
  TYPING_UPDATE: "typing.update",
1738
1784
  CHAT_UPDATE: "chat.update",
1739
1785
  CHAT_DELETED: "chat.deleted",
1786
+ CHAT_BOOKMARKS_UPDATED: "chat.bookmarks.updated",
1740
1787
  APPROVAL_UPDATE: "approval.update",
1741
1788
  // deprecated
1742
1789
  CARD_UPDATE: "card.update",
@@ -2688,6 +2735,23 @@ var init_clip_connection_client = __esm({
2688
2735
  return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
2689
2736
  }
2690
2737
  // ---- Clip connections ----
2738
+ /** Missing keys are unknown/hidden; present empty arrays are known empty. */
2739
+ async listClipMCPSummaries(orgId, clipIds) {
2740
+ return this.readDiscoverySummaries(ENDPOINTS.CLIP_MCP_SUMMARIES(orgId), "clip_ids", clipIds);
2741
+ }
2742
+ async listEdgeProfileSummaries(orgId, edgeIds) {
2743
+ return this.readDiscoverySummaries(ENDPOINTS.EDGE_PROFILE_SUMMARIES(orgId), "edge_ids", edgeIds);
2744
+ }
2745
+ async readDiscoverySummaries(endpoint, key, ids) {
2746
+ const data = {};
2747
+ const unique2 = [...new Set(ids)];
2748
+ for (let offset = 0; offset < unique2.length; offset += 500) {
2749
+ const batch = unique2.slice(offset, offset + 500);
2750
+ const response = await this.request("GET", `${endpoint}?${key}=${encodeURIComponent(batch.join(","))}`);
2751
+ Object.assign(data, response.data);
2752
+ }
2753
+ return { data };
2754
+ }
2691
2755
  async listClipConnections(orgId, clipId) {
2692
2756
  return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
2693
2757
  }
@@ -2722,6 +2786,46 @@ var init_clip_connection_client = __esm({
2722
2786
  async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
2723
2787
  return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
2724
2788
  }
2789
+ // ---- The caller's own connections (login session only) ----
2790
+ /** The caller's person-owned connections, optionally for one connector. */
2791
+ async listMyConnections(orgId, clipId) {
2792
+ return this.request("GET", ENDPOINTS.ORG_MY_CONNECTIONS(orgId), void 0, clipId ? { clip_id: clipId } : void 0);
2793
+ }
2794
+ /** Stop one agent from using one of the caller's connections. */
2795
+ async revokeMyConnectionAgent(orgId, connId, agentId) {
2796
+ return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION_AGENT(orgId, connId, agentId));
2797
+ }
2798
+ /** Disconnect one of the caller's connections: the connection, its credential and grants go. */
2799
+ async deleteMyConnection(orgId, connId) {
2800
+ return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
2801
+ }
2802
+ };
2803
+ }
2804
+ });
2805
+
2806
+ // ts/sdk/dist/hosted-profile-creation.js
2807
+ var HostedProfileCreationClient;
2808
+ var init_hosted_profile_creation = __esm({
2809
+ "ts/sdk/dist/hosted-profile-creation.js"() {
2810
+ "use strict";
2811
+ init_clip_connection_client();
2812
+ init_constants();
2813
+ HostedProfileCreationClient = class extends ClipConnectionClient {
2814
+ getHostedProfileCreationAccess(orgId, agentId) {
2815
+ return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId));
2816
+ }
2817
+ changeHostedProfileCreationGrant(orgId, agentId, change, key, revoke = false) {
2818
+ return this.request(revoke ? "DELETE" : "PUT", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId), change, void 0, false, { headers: { "Idempotency-Key": key } });
2819
+ }
2820
+ getHostedProfileCreationEvents(orgId, agentId, before) {
2821
+ return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_EVENTS(orgId, agentId), void 0, {
2822
+ before
2823
+ });
2824
+ }
2825
+ /** A lost response is recovered with the same name and key, never a new key. */
2826
+ createAuthorizedHostedProfile(orgId, name, key) {
2827
+ return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), { name, placement: "hosted" }, void 0, false, { headers: { "Idempotency-Key": key } });
2828
+ }
2725
2829
  };
2726
2830
  }
2727
2831
  });
@@ -2731,9 +2835,9 @@ var BrowserProfileClient;
2731
2835
  var init_browser_profile_client = __esm({
2732
2836
  "ts/sdk/dist/browser-profile-client.js"() {
2733
2837
  "use strict";
2734
- init_clip_connection_client();
2838
+ init_hosted_profile_creation();
2735
2839
  init_constants();
2736
- BrowserProfileClient = class extends ClipConnectionClient {
2840
+ BrowserProfileClient = class extends HostedProfileCreationClient {
2737
2841
  /** Metadata-only compatibility discovery. Management scope errors propagate;
2738
2842
  * callers with a known Profile can execute without this discovery chain. */
2739
2843
  async listBrowserUseProfiles(orgId, profileId) {
@@ -3116,7 +3220,10 @@ var init_secret_client = __esm({
3116
3220
  init_constants();
3117
3221
  init_user_preferences_client();
3118
3222
  AgentSecretClient = class extends UserPreferencesClient {
3119
- /** One agent's own secrets plus the org-shared ones it is given. */
3223
+ /**
3224
+ * One agent's own secrets and those it is given — the org's, a team's,
3225
+ * another user's — each as this agent holds it.
3226
+ */
3120
3227
  async getAgentSecrets(orgId, agentId) {
3121
3228
  return this.request("GET", ENDPOINTS.AGENT_SECRETS(orgId, agentId));
3122
3229
  }
@@ -3142,13 +3249,58 @@ var init_secret_client = __esm({
3142
3249
  async deleteOrgSecret(orgId, secretId) {
3143
3250
  await this.request("DELETE", ENDPOINTS.ORG_SECRET(orgId, secretId));
3144
3251
  }
3252
+ /** The caller's own secrets and who each is given to. Only that person. */
3253
+ async getMySecrets(orgId) {
3254
+ return this.request("GET", ENDPOINTS.ORG_MY_SECRETS(orgId));
3255
+ }
3256
+ async createMySecret(orgId, data) {
3257
+ return this.request("POST", ENDPOINTS.ORG_MY_SECRETS(orgId), data);
3258
+ }
3259
+ async updateMySecret(orgId, secretId, data) {
3260
+ return this.request("PATCH", ENDPOINTS.ORG_MY_SECRET(orgId, secretId), data);
3261
+ }
3262
+ async deleteMySecret(orgId, secretId) {
3263
+ await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET(orgId, secretId));
3264
+ }
3265
+ /** A team's secrets and who each is given to: its human managers and org admins. */
3266
+ async getTeamSecrets(orgId, teamId) {
3267
+ return this.request("GET", ENDPOINTS.TEAM_SECRETS(orgId, teamId));
3268
+ }
3269
+ async createTeamSecret(orgId, teamId, data) {
3270
+ return this.request("POST", ENDPOINTS.TEAM_SECRETS(orgId, teamId), data);
3271
+ }
3272
+ async updateTeamSecret(orgId, teamId, secretId, data) {
3273
+ return this.request("PATCH", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId), data);
3274
+ }
3275
+ async deleteTeamSecret(orgId, teamId, secretId) {
3276
+ await this.request("DELETE", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId));
3277
+ }
3278
+ // Taking one agent off a secret, whether it holds it for long or once. A
3279
+ // grant the agent does not hold answers 404 SECRET_GRANT_NOT_FOUND.
3280
+ async revokeOrgSecretGrant(orgId, secretId, agentId) {
3281
+ await this.request("DELETE", ENDPOINTS.ORG_SECRET_GRANT(orgId, secretId, agentId));
3282
+ }
3283
+ async revokeMySecretGrant(orgId, secretId, agentId) {
3284
+ await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET_GRANT(orgId, secretId, agentId));
3285
+ }
3286
+ /** Takes `agentId` off one of `ownerAgentId`'s own secrets. */
3287
+ async revokeAgentSecretGrant(orgId, ownerAgentId, secretId, agentId) {
3288
+ await this.request("DELETE", ENDPOINTS.AGENT_SECRET_GRANT(orgId, ownerAgentId, secretId, agentId));
3289
+ }
3290
+ async revokeTeamSecretGrant(orgId, teamId, secretId, agentId) {
3291
+ await this.request("DELETE", ENDPOINTS.TEAM_SECRET_GRANT(orgId, teamId, secretId, agentId));
3292
+ }
3145
3293
  /** Agent runtime only: the values to export to the agent's commands. */
3146
3294
  async getMyAgentSecrets(orgId) {
3147
3295
  return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS(orgId));
3148
3296
  }
3149
- /** Agent only: the names it holds or may ask to use, and its pending requests. */
3150
- async getMyAgentSecretCatalog(orgId) {
3151
- return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS_CATALOG(orgId));
3297
+ /**
3298
+ * Agent only: the names it holds or may ask to use, its pending requests,
3299
+ * and the teams it may ask in. `q` keeps the keys whose name, purpose or
3300
+ * owner's name contains it, ignoring case.
3301
+ */
3302
+ async getMyAgentSecretCatalog(orgId, q) {
3303
+ return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS_CATALOG(orgId, q));
3152
3304
  }
3153
3305
  /** Agent runtime only: confirm the version the commands now run with. */
3154
3306
  async ackMyAgentSecrets(orgId, version) {
@@ -3337,6 +3489,8 @@ var init_billing_client = __esm({
3337
3489
  const params = new URLSearchParams();
3338
3490
  params.set("start_date", opts.start_date);
3339
3491
  params.set("end_date", opts.end_date);
3492
+ if (opts.timezone !== void 0)
3493
+ params.set("timezone", opts.timezone);
3340
3494
  return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId, accountId)}?${params}`);
3341
3495
  }
3342
3496
  async getUsageHeatmap(orgId, opts, accountId) {
@@ -3495,8 +3649,16 @@ var init_team_invite_client = __esm({
3495
3649
  async getTeamInvite(token) {
3496
3650
  return this.request("GET", ENDPOINTS.TEAM_INVITE(token));
3497
3651
  }
3498
- /** Ask for a new team through a link. Submitting again returns the
3499
- * caller's open request instead of making another. */
3652
+ /** Signed in: the org's Teams to pick from on a launch link, the caller's
3653
+ * own first, each marked with whether it has (or is getting) the squad and
3654
+ * which Team account would pay. */
3655
+ async getTeamInviteTeams(token) {
3656
+ const res = await this.request("GET", ENDPOINTS.TEAM_INVITE_TEAMS(token));
3657
+ return res.teams ?? [];
3658
+ }
3659
+ /** Ask for a team through a link: pick an existing one (`team_id`) or name
3660
+ * a new one. Submitting again returns the caller's open request instead of
3661
+ * making another. */
3500
3662
  async createTeamInviteRequest(token, body) {
3501
3663
  return this.request("POST", ENDPOINTS.TEAM_INVITE_REQUESTS(token), body);
3502
3664
  }
@@ -3518,6 +3680,58 @@ var init_team_invite_client = __esm({
3518
3680
  }
3519
3681
  });
3520
3682
 
3683
+ // ts/sdk/dist/wiki-page-share-client.js
3684
+ var WikiPageShareClient;
3685
+ var init_wiki_page_share_client = __esm({
3686
+ "ts/sdk/dist/wiki-page-share-client.js"() {
3687
+ "use strict";
3688
+ init_team_invite_client();
3689
+ init_constants();
3690
+ WikiPageShareClient = class extends TeamInviteClient {
3691
+ async listWikiPageShares(orgId, wikiId, path27) {
3692
+ const res = await this.request("GET", ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId), void 0, { path: path27 });
3693
+ return res.data;
3694
+ }
3695
+ async createWikiPageShare(orgId, wikiId, path27, userId) {
3696
+ return this.request("POST", ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId), { user_id: userId }, { path: path27 });
3697
+ }
3698
+ async revokeWikiPageShare(orgId, wikiId, path27, shareId) {
3699
+ return this.request("DELETE", `${ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId)}/${encodeURIComponent(shareId)}`, void 0, { path: path27 });
3700
+ }
3701
+ async listWikiShareCandidates(orgId, wikiId, path27, q = "") {
3702
+ const res = await this.request("GET", ENDPOINTS.WIKI_PAGE_SHARE_CANDIDATES(orgId, wikiId), void 0, { path: path27, q });
3703
+ return res.data;
3704
+ }
3705
+ /** No path or ref override: the server always reads the shared page on main. */
3706
+ async getSharedWikiPage(shareId, opts) {
3707
+ return this.request("GET", ENDPOINTS.WIKI_SHARED_PAGE(shareId), void 0, void 0, false, opts);
3708
+ }
3709
+ };
3710
+ }
3711
+ });
3712
+
3713
+ // ts/sdk/dist/chat-bookmarks-client.js
3714
+ var ChatBookmarksClient;
3715
+ var init_chat_bookmarks_client = __esm({
3716
+ "ts/sdk/dist/chat-bookmarks-client.js"() {
3717
+ "use strict";
3718
+ init_constants();
3719
+ init_wiki_page_share_client();
3720
+ ChatBookmarksClient = class extends WikiPageShareClient {
3721
+ async getChatBookmarks(orgId, chatId) {
3722
+ return this.request("GET", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId));
3723
+ }
3724
+ /** `ref` is a `prll://` reference or an http(s) URL. */
3725
+ async addChatBookmark(orgId, chatId, ref) {
3726
+ return this.request("POST", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId), { ref });
3727
+ }
3728
+ async removeChatBookmark(orgId, chatId, bookmarkId) {
3729
+ return this.request("DELETE", ENDPOINTS.CHAT_BOOKMARK(orgId, chatId, bookmarkId));
3730
+ }
3731
+ };
3732
+ }
3733
+ });
3734
+
3521
3735
  // ts/sdk/dist/wiki-changeset.js
3522
3736
  function normalizeWikiChangeset(changeset) {
3523
3737
  return {
@@ -3595,10 +3809,10 @@ var init_client = __esm({
3595
3809
  init_browser_viewer();
3596
3810
  init_wiki_upload();
3597
3811
  init_fetch_cause();
3598
- init_team_invite_client();
3812
+ init_chat_bookmarks_client();
3599
3813
  init_wiki_changeset();
3600
3814
  init_constants();
3601
- ParallClient = class _ParallClient extends TeamInviteClient {
3815
+ ParallClient = class _ParallClient extends ChatBookmarksClient {
3602
3816
  baseUrl;
3603
3817
  wikiBaseUrl;
3604
3818
  token;
@@ -5894,7 +6108,7 @@ var init_client = __esm({
5894
6108
  return this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
5895
6109
  }
5896
6110
  /** Register an Edge. `placement` defaults to BYOC; hosted creates an idle,
5897
- * org-shared Cloud Profile and is restricted to human users. */
6111
+ * org-shared Cloud Profile; Agents need a separate creation grant and key. */
5898
6112
  async registerEdgeDevice(orgId, input, options) {
5899
6113
  const headers = options?.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : void 0;
5900
6114
  return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), input, void 0, false, { headers });
@@ -6139,10 +6353,11 @@ var init_client = __esm({
6139
6353
  async listClipMCPConnections(orgId, clipId) {
6140
6354
  return this.request("GET", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId));
6141
6355
  }
6142
- /** Create one MCP credential slot and its connection. */
6143
6356
  async createClipMCPConnection(orgId, clipId, req) {
6144
6357
  return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
6145
- timeoutMs: 4e4
6358
+ // A card may start OAuth: allow discovery (30s) and persistence like
6359
+ // createClipMCPOAuthConnection.
6360
+ timeoutMs: "approval_id" in req ? 5e4 : 4e4
6146
6361
  });
6147
6362
  }
6148
6363
  /** Delete one MCP config and its paired connection. */
@@ -6410,9 +6625,41 @@ var init_runtime_observation = __esm({
6410
6625
  });
6411
6626
 
6412
6627
  // ts/sdk/dist/secret-types.js
6628
+ var AGENT_SECRET_GRANT_ONCE, AGENT_SECRET_GRANT_LONG, AGENT_SECRET_GRANT_INPUT, AGENT_SECRET_REQUEST_ACTION, ORG_SECRET_AGENT_ADD_ACTION, USER_SECRET_AGENT_ADD_ACTION, TEAM_SECRET_AGENT_ADD_ACTION, USER_SECRET_REQUEST_ACTION, TEAM_SECRET_REQUEST_ACTION, ORG_SECRET_REQUEST_ACTION, AGENT_SECRET_LAYER_ACTIONS, AGENT_SECRET_REQUEST_ACTIONS;
6413
6629
  var init_secret_types = __esm({
6414
6630
  "ts/sdk/dist/secret-types.js"() {
6415
6631
  "use strict";
6632
+ AGENT_SECRET_GRANT_ONCE = "once";
6633
+ AGENT_SECRET_GRANT_LONG = "long";
6634
+ AGENT_SECRET_GRANT_INPUT = "grant";
6635
+ AGENT_SECRET_REQUEST_ACTION = "agent.secret.request";
6636
+ ORG_SECRET_AGENT_ADD_ACTION = "org.secret.agent.add";
6637
+ USER_SECRET_AGENT_ADD_ACTION = "user.secret.agent.add";
6638
+ TEAM_SECRET_AGENT_ADD_ACTION = "team.secret.agent.add";
6639
+ USER_SECRET_REQUEST_ACTION = "user.secret.request";
6640
+ TEAM_SECRET_REQUEST_ACTION = "team.secret.request";
6641
+ ORG_SECRET_REQUEST_ACTION = "org.secret.request";
6642
+ AGENT_SECRET_LAYER_ACTIONS = {
6643
+ use: {
6644
+ org: ORG_SECRET_AGENT_ADD_ACTION,
6645
+ team: TEAM_SECRET_AGENT_ADD_ACTION,
6646
+ user: USER_SECRET_AGENT_ADD_ACTION
6647
+ },
6648
+ new: {
6649
+ org: ORG_SECRET_REQUEST_ACTION,
6650
+ team: TEAM_SECRET_REQUEST_ACTION,
6651
+ user: USER_SECRET_REQUEST_ACTION
6652
+ }
6653
+ };
6654
+ AGENT_SECRET_REQUEST_ACTIONS = [
6655
+ AGENT_SECRET_REQUEST_ACTION,
6656
+ ORG_SECRET_AGENT_ADD_ACTION,
6657
+ USER_SECRET_AGENT_ADD_ACTION,
6658
+ TEAM_SECRET_AGENT_ADD_ACTION,
6659
+ USER_SECRET_REQUEST_ACTION,
6660
+ TEAM_SECRET_REQUEST_ACTION,
6661
+ ORG_SECRET_REQUEST_ACTION
6662
+ ];
6416
6663
  }
6417
6664
  });
6418
6665
 
@@ -6456,12 +6703,16 @@ var init_subject = __esm({
6456
6703
  function resolveChatListMode(value) {
6457
6704
  return CHAT_LIST_MODES.includes(value) ? value : DEFAULT_CHAT_LIST_MODE;
6458
6705
  }
6459
- var CHAT_LIST_MODES, DEFAULT_CHAT_LIST_MODE;
6706
+ function resolveAccountLanguage(value) {
6707
+ return ACCOUNT_LANGUAGES.includes(value) ? value : null;
6708
+ }
6709
+ var CHAT_LIST_MODES, DEFAULT_CHAT_LIST_MODE, ACCOUNT_LANGUAGES;
6460
6710
  var init_user_preferences_types = __esm({
6461
6711
  "ts/sdk/dist/user-preferences-types.js"() {
6462
6712
  "use strict";
6463
6713
  CHAT_LIST_MODES = ["sections", "timeline"];
6464
6714
  DEFAULT_CHAT_LIST_MODE = "sections";
6715
+ ACCOUNT_LANGUAGES = ["en", "zh-CN", "zh-HK"];
6465
6716
  }
6466
6717
  });
6467
6718
 
@@ -6472,6 +6723,23 @@ var init_task_label_types = __esm({
6472
6723
  }
6473
6724
  });
6474
6725
 
6726
+ // ts/sdk/dist/chat-bookmarks-types.js
6727
+ var CHAT_BOOKMARK_LIMIT, CHAT_BOOKMARK_EXCLUDED_PREFIXES;
6728
+ var init_chat_bookmarks_types = __esm({
6729
+ "ts/sdk/dist/chat-bookmarks-types.js"() {
6730
+ "use strict";
6731
+ CHAT_BOOKMARK_LIMIT = 100;
6732
+ CHAT_BOOKMARK_EXCLUDED_PREFIXES = /* @__PURE__ */ new Set([
6733
+ "usr",
6734
+ "all",
6735
+ "org",
6736
+ "att",
6737
+ "run",
6738
+ "srn"
6739
+ ]);
6740
+ }
6741
+ });
6742
+
6475
6743
  // ts/sdk/dist/team-invite-types.js
6476
6744
  var init_team_invite_types = __esm({
6477
6745
  "ts/sdk/dist/team-invite-types.js"() {
@@ -6940,10 +7208,24 @@ var init_ws = __esm({
6940
7208
  }
6941
7209
  });
6942
7210
 
7211
+ // ts/sdk/dist/wiki-page-share-types.js
7212
+ var init_wiki_page_share_types = __esm({
7213
+ "ts/sdk/dist/wiki-page-share-types.js"() {
7214
+ "use strict";
7215
+ }
7216
+ });
7217
+
6943
7218
  // ts/sdk/dist/index.js
6944
7219
  var dist_exports = {};
6945
7220
  __export(dist_exports, {
6946
7221
  ACCENT_THEMES: () => ACCENT_THEMES,
7222
+ ACCOUNT_LANGUAGES: () => ACCOUNT_LANGUAGES,
7223
+ AGENT_SECRET_GRANT_INPUT: () => AGENT_SECRET_GRANT_INPUT,
7224
+ AGENT_SECRET_GRANT_LONG: () => AGENT_SECRET_GRANT_LONG,
7225
+ AGENT_SECRET_GRANT_ONCE: () => AGENT_SECRET_GRANT_ONCE,
7226
+ AGENT_SECRET_LAYER_ACTIONS: () => AGENT_SECRET_LAYER_ACTIONS,
7227
+ AGENT_SECRET_REQUEST_ACTION: () => AGENT_SECRET_REQUEST_ACTION,
7228
+ AGENT_SECRET_REQUEST_ACTIONS: () => AGENT_SECRET_REQUEST_ACTIONS,
6947
7229
  API_BASE: () => API_BASE2,
6948
7230
  ApiError: () => ApiError,
6949
7231
  BROWSER_USE_ACTIONS: () => BROWSER_USE_ACTIONS,
@@ -6951,8 +7233,11 @@ __export(dist_exports, {
6951
7233
  BROWSER_USE_FEATURE_FLAG: () => BROWSER_USE_FEATURE_FLAG,
6952
7234
  BrowserUseValidationError: () => BrowserUseValidationError,
6953
7235
  CALLER_SCOPE_ERROR_CODES: () => CALLER_SCOPE_ERROR_CODES,
7236
+ CHAT_BOOKMARK_EXCLUDED_PREFIXES: () => CHAT_BOOKMARK_EXCLUDED_PREFIXES,
7237
+ CHAT_BOOKMARK_LIMIT: () => CHAT_BOOKMARK_LIMIT,
6954
7238
  CHAT_LIST_MODES: () => CHAT_LIST_MODES,
6955
7239
  CLIP_BASE: () => CLIP_BASE,
7240
+ CLIP_CONNECTION_CONNECT_ACTION: () => CLIP_CONNECTION_CONNECT_ACTION,
6956
7241
  CLI_RUNTIME_TYPES: () => CLI_RUNTIME_TYPES,
6957
7242
  COMMENT_TARGET: () => COMMENT_TARGET,
6958
7243
  DEFAULT_CHAT_LIST_MODE: () => DEFAULT_CHAT_LIST_MODE,
@@ -6962,6 +7247,8 @@ __export(dist_exports, {
6962
7247
  MENTION_ALL_AGENTS_USER_ID: () => MENTION_ALL_AGENTS_USER_ID,
6963
7248
  MENTION_ALL_HUMANS_USER_ID: () => MENTION_ALL_HUMANS_USER_ID,
6964
7249
  MENTION_ALL_USER_ID: () => MENTION_ALL_USER_ID,
7250
+ ORG_SECRET_AGENT_ADD_ACTION: () => ORG_SECRET_AGENT_ADD_ACTION,
7251
+ ORG_SECRET_REQUEST_ACTION: () => ORG_SECRET_REQUEST_ACTION,
6965
7252
  PLATFORM_DEFAULT_MODEL_BY_RUNTIME: () => PLATFORM_DEFAULT_MODEL_BY_RUNTIME,
6966
7253
  PLATFORM_LEGACY_MODELS: () => PLATFORM_LEGACY_MODELS,
6967
7254
  PLATFORM_MODELS: () => PLATFORM_MODELS,
@@ -6969,6 +7256,10 @@ __export(dist_exports, {
6969
7256
  ParallWs: () => ParallWs,
6970
7257
  RUNTIME_OBSERVATION_EVENTS: () => RUNTIME_OBSERVATION_EVENTS,
6971
7258
  RUNTIME_OBSERVATION_STATUSES: () => RUNTIME_OBSERVATION_STATUSES,
7259
+ TEAM_SECRET_AGENT_ADD_ACTION: () => TEAM_SECRET_AGENT_ADD_ACTION,
7260
+ TEAM_SECRET_REQUEST_ACTION: () => TEAM_SECRET_REQUEST_ACTION,
7261
+ USER_SECRET_AGENT_ADD_ACTION: () => USER_SECRET_AGENT_ADD_ACTION,
7262
+ USER_SECRET_REQUEST_ACTION: () => USER_SECRET_REQUEST_ACTION,
6972
7263
  WIKI_BASE: () => WIKI_BASE,
6973
7264
  WIKI_DRAFT_ERROR_CODES: () => WIKI_DRAFT_ERROR_CODES,
6974
7265
  WIKI_DRAFT_ERROR_REASONS: () => WIKI_DRAFT_ERROR_REASONS,
@@ -7012,6 +7303,7 @@ __export(dist_exports, {
7012
7303
  platformDefaultModelForRuntime: () => platformDefaultModelForRuntime,
7013
7304
  readReceiptOf: () => readReceiptOf,
7014
7305
  refusedAccountOf: () => refusedAccountOf,
7306
+ resolveAccountLanguage: () => resolveAccountLanguage,
7015
7307
  resolveChatListMode: () => resolveChatListMode,
7016
7308
  sameWikiDraftScope: () => sameWikiDraftScope,
7017
7309
  showsReadReceipt: () => showsReadReceipt,
@@ -7039,6 +7331,7 @@ var init_dist = __esm({
7039
7331
  init_browser_viewer();
7040
7332
  init_channel_types();
7041
7333
  init_chat_team_grant_types();
7334
+ init_clip_connection_types();
7042
7335
  init_client();
7043
7336
  init_constants();
7044
7337
  init_fetch_cause();
@@ -7054,12 +7347,14 @@ var init_dist = __esm({
7054
7347
  init_subject();
7055
7348
  init_user_preferences_types();
7056
7349
  init_task_label_types();
7350
+ init_chat_bookmarks_types();
7057
7351
  init_team_invite_types();
7058
7352
  init_trigger_judge_types();
7059
7353
  init_types();
7060
7354
  init_wechat_types();
7061
7355
  init_wiki_draft_types();
7062
7356
  init_ws();
7357
+ init_wiki_page_share_types();
7063
7358
  }
7064
7359
  });
7065
7360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.86.0",
3
+ "version": "1.88.0",
4
4
  "description": "Parall local agent runtime — daemon supervisor + bridge runtimes, bundled as standalone JS files",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,11 +34,11 @@
34
34
  "@opentelemetry/api": "^1.9.0",
35
35
  "@pinixai/bb-browser-pro": "0.15.0",
36
36
  "ws": "^8.18.0",
37
- "@parall/agent-core": "1.86.0",
38
- "@parall/claude-agent": "1.86.0",
39
- "@parall/codex-agent": "1.86.0",
40
- "@parall/openclaw-agent": "1.86.0",
41
- "@parall/sdk": "1.86.0"
37
+ "@parall/claude-agent": "1.88.0",
38
+ "@parall/openclaw-agent": "1.88.0",
39
+ "@parall/codex-agent": "1.88.0",
40
+ "@parall/agent-core": "1.88.0",
41
+ "@parall/sdk": "1.88.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",