@parall/daemon 1.87.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`,
@@ -820,6 +837,35 @@ var init_team_endpoints = __esm({
820
837
  }
821
838
  });
822
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
+
823
869
  // ts/sdk/dist/constants.js
824
870
  function isPlatformModelSelectableForRuntime(model, runtime) {
825
871
  if (!model.upstream_id)
@@ -879,6 +925,7 @@ var init_constants = __esm({
879
925
  init_wechat_endpoints();
880
926
  init_billing_endpoints();
881
927
  init_team_endpoints();
928
+ init_secret_endpoints();
882
929
  API_BASE2 = "/api/v1";
883
930
  WIKI_BASE = "/wiki/v1";
884
931
  CLIP_BASE = "/clip/v1";
@@ -1234,6 +1281,8 @@ var init_constants = __esm({
1234
1281
  CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
1235
1282
  CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
1236
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}`,
1237
1286
  CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
1238
1287
  CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
1239
1288
  CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
@@ -1276,14 +1325,7 @@ var init_constants = __esm({
1276
1325
  AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
1277
1326
  AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
1278
1327
  AGENT_RUNTIME_REPORT: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/runtime-report`,
1279
- // Agent secrets (agent-secrets-design.md): management, then the runtime's own two routes.
1280
- AGENT_SECRETS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets`,
1281
- AGENT_SECRET: (orgId, agentId, secretId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
1282
- ORG_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/secrets`,
1283
- ORG_SECRET: (orgId, secretId) => `${API_BASE2}/orgs/${orgId}/secrets/${secretId}`,
1284
- AGENT_ME_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets`,
1285
- AGENT_ME_SECRETS_CATALOG: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/catalog`,
1286
- AGENT_ME_SECRETS_APPLIED: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/applied`,
1328
+ ...secretEndpoints(API_BASE2),
1287
1329
  AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
1288
1330
  AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
1289
1331
  AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
@@ -1741,6 +1783,7 @@ var init_constants = __esm({
1741
1783
  TYPING_UPDATE: "typing.update",
1742
1784
  CHAT_UPDATE: "chat.update",
1743
1785
  CHAT_DELETED: "chat.deleted",
1786
+ CHAT_BOOKMARKS_UPDATED: "chat.bookmarks.updated",
1744
1787
  APPROVAL_UPDATE: "approval.update",
1745
1788
  // deprecated
1746
1789
  CARD_UPDATE: "card.update",
@@ -2692,6 +2735,23 @@ var init_clip_connection_client = __esm({
2692
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 });
2693
2736
  }
2694
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
+ }
2695
2755
  async listClipConnections(orgId, clipId) {
2696
2756
  return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
2697
2757
  }
@@ -2726,6 +2786,46 @@ var init_clip_connection_client = __esm({
2726
2786
  async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
2727
2787
  return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
2728
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
+ }
2729
2829
  };
2730
2830
  }
2731
2831
  });
@@ -2735,9 +2835,9 @@ var BrowserProfileClient;
2735
2835
  var init_browser_profile_client = __esm({
2736
2836
  "ts/sdk/dist/browser-profile-client.js"() {
2737
2837
  "use strict";
2738
- init_clip_connection_client();
2838
+ init_hosted_profile_creation();
2739
2839
  init_constants();
2740
- BrowserProfileClient = class extends ClipConnectionClient {
2840
+ BrowserProfileClient = class extends HostedProfileCreationClient {
2741
2841
  /** Metadata-only compatibility discovery. Management scope errors propagate;
2742
2842
  * callers with a known Profile can execute without this discovery chain. */
2743
2843
  async listBrowserUseProfiles(orgId, profileId) {
@@ -3120,7 +3220,10 @@ var init_secret_client = __esm({
3120
3220
  init_constants();
3121
3221
  init_user_preferences_client();
3122
3222
  AgentSecretClient = class extends UserPreferencesClient {
3123
- /** 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
+ */
3124
3227
  async getAgentSecrets(orgId, agentId) {
3125
3228
  return this.request("GET", ENDPOINTS.AGENT_SECRETS(orgId, agentId));
3126
3229
  }
@@ -3146,13 +3249,58 @@ var init_secret_client = __esm({
3146
3249
  async deleteOrgSecret(orgId, secretId) {
3147
3250
  await this.request("DELETE", ENDPOINTS.ORG_SECRET(orgId, secretId));
3148
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
+ }
3149
3293
  /** Agent runtime only: the values to export to the agent's commands. */
3150
3294
  async getMyAgentSecrets(orgId) {
3151
3295
  return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS(orgId));
3152
3296
  }
3153
- /** Agent only: the names it holds or may ask to use, and its pending requests. */
3154
- async getMyAgentSecretCatalog(orgId) {
3155
- 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));
3156
3304
  }
3157
3305
  /** Agent runtime only: confirm the version the commands now run with. */
3158
3306
  async ackMyAgentSecrets(orgId, version) {
@@ -3341,6 +3489,8 @@ var init_billing_client = __esm({
3341
3489
  const params = new URLSearchParams();
3342
3490
  params.set("start_date", opts.start_date);
3343
3491
  params.set("end_date", opts.end_date);
3492
+ if (opts.timezone !== void 0)
3493
+ params.set("timezone", opts.timezone);
3344
3494
  return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId, accountId)}?${params}`);
3345
3495
  }
3346
3496
  async getUsageHeatmap(orgId, opts, accountId) {
@@ -3560,6 +3710,28 @@ var init_wiki_page_share_client = __esm({
3560
3710
  }
3561
3711
  });
3562
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
+
3563
3735
  // ts/sdk/dist/wiki-changeset.js
3564
3736
  function normalizeWikiChangeset(changeset) {
3565
3737
  return {
@@ -3637,10 +3809,10 @@ var init_client = __esm({
3637
3809
  init_browser_viewer();
3638
3810
  init_wiki_upload();
3639
3811
  init_fetch_cause();
3640
- init_wiki_page_share_client();
3812
+ init_chat_bookmarks_client();
3641
3813
  init_wiki_changeset();
3642
3814
  init_constants();
3643
- ParallClient = class _ParallClient extends WikiPageShareClient {
3815
+ ParallClient = class _ParallClient extends ChatBookmarksClient {
3644
3816
  baseUrl;
3645
3817
  wikiBaseUrl;
3646
3818
  token;
@@ -5936,7 +6108,7 @@ var init_client = __esm({
5936
6108
  return this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
5937
6109
  }
5938
6110
  /** Register an Edge. `placement` defaults to BYOC; hosted creates an idle,
5939
- * org-shared Cloud Profile and is restricted to human users. */
6111
+ * org-shared Cloud Profile; Agents need a separate creation grant and key. */
5940
6112
  async registerEdgeDevice(orgId, input, options) {
5941
6113
  const headers = options?.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : void 0;
5942
6114
  return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), input, void 0, false, { headers });
@@ -6181,10 +6353,11 @@ var init_client = __esm({
6181
6353
  async listClipMCPConnections(orgId, clipId) {
6182
6354
  return this.request("GET", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId));
6183
6355
  }
6184
- /** Create one MCP credential slot and its connection. */
6185
6356
  async createClipMCPConnection(orgId, clipId, req) {
6186
6357
  return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
6187
- timeoutMs: 4e4
6358
+ // A card may start OAuth: allow discovery (30s) and persistence like
6359
+ // createClipMCPOAuthConnection.
6360
+ timeoutMs: "approval_id" in req ? 5e4 : 4e4
6188
6361
  });
6189
6362
  }
6190
6363
  /** Delete one MCP config and its paired connection. */
@@ -6452,9 +6625,41 @@ var init_runtime_observation = __esm({
6452
6625
  });
6453
6626
 
6454
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;
6455
6629
  var init_secret_types = __esm({
6456
6630
  "ts/sdk/dist/secret-types.js"() {
6457
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
+ ];
6458
6663
  }
6459
6664
  });
6460
6665
 
@@ -6518,6 +6723,23 @@ var init_task_label_types = __esm({
6518
6723
  }
6519
6724
  });
6520
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
+
6521
6743
  // ts/sdk/dist/team-invite-types.js
6522
6744
  var init_team_invite_types = __esm({
6523
6745
  "ts/sdk/dist/team-invite-types.js"() {
@@ -6998,6 +7220,12 @@ var dist_exports = {};
6998
7220
  __export(dist_exports, {
6999
7221
  ACCENT_THEMES: () => ACCENT_THEMES,
7000
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,
7001
7229
  API_BASE: () => API_BASE2,
7002
7230
  ApiError: () => ApiError,
7003
7231
  BROWSER_USE_ACTIONS: () => BROWSER_USE_ACTIONS,
@@ -7005,8 +7233,11 @@ __export(dist_exports, {
7005
7233
  BROWSER_USE_FEATURE_FLAG: () => BROWSER_USE_FEATURE_FLAG,
7006
7234
  BrowserUseValidationError: () => BrowserUseValidationError,
7007
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,
7008
7238
  CHAT_LIST_MODES: () => CHAT_LIST_MODES,
7009
7239
  CLIP_BASE: () => CLIP_BASE,
7240
+ CLIP_CONNECTION_CONNECT_ACTION: () => CLIP_CONNECTION_CONNECT_ACTION,
7010
7241
  CLI_RUNTIME_TYPES: () => CLI_RUNTIME_TYPES,
7011
7242
  COMMENT_TARGET: () => COMMENT_TARGET,
7012
7243
  DEFAULT_CHAT_LIST_MODE: () => DEFAULT_CHAT_LIST_MODE,
@@ -7016,6 +7247,8 @@ __export(dist_exports, {
7016
7247
  MENTION_ALL_AGENTS_USER_ID: () => MENTION_ALL_AGENTS_USER_ID,
7017
7248
  MENTION_ALL_HUMANS_USER_ID: () => MENTION_ALL_HUMANS_USER_ID,
7018
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,
7019
7252
  PLATFORM_DEFAULT_MODEL_BY_RUNTIME: () => PLATFORM_DEFAULT_MODEL_BY_RUNTIME,
7020
7253
  PLATFORM_LEGACY_MODELS: () => PLATFORM_LEGACY_MODELS,
7021
7254
  PLATFORM_MODELS: () => PLATFORM_MODELS,
@@ -7023,6 +7256,10 @@ __export(dist_exports, {
7023
7256
  ParallWs: () => ParallWs,
7024
7257
  RUNTIME_OBSERVATION_EVENTS: () => RUNTIME_OBSERVATION_EVENTS,
7025
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,
7026
7263
  WIKI_BASE: () => WIKI_BASE,
7027
7264
  WIKI_DRAFT_ERROR_CODES: () => WIKI_DRAFT_ERROR_CODES,
7028
7265
  WIKI_DRAFT_ERROR_REASONS: () => WIKI_DRAFT_ERROR_REASONS,
@@ -7094,6 +7331,7 @@ var init_dist = __esm({
7094
7331
  init_browser_viewer();
7095
7332
  init_channel_types();
7096
7333
  init_chat_team_grant_types();
7334
+ init_clip_connection_types();
7097
7335
  init_client();
7098
7336
  init_constants();
7099
7337
  init_fetch_cause();
@@ -7109,6 +7347,7 @@ var init_dist = __esm({
7109
7347
  init_subject();
7110
7348
  init_user_preferences_types();
7111
7349
  init_task_label_types();
7350
+ init_chat_bookmarks_types();
7112
7351
  init_team_invite_types();
7113
7352
  init_trigger_judge_types();
7114
7353
  init_types();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.87.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/sdk": "1.87.0",
38
- "@parall/claude-agent": "1.87.0",
39
- "@parall/openclaw-agent": "1.87.0",
40
- "@parall/agent-core": "1.87.0",
41
- "@parall/codex-agent": "1.87.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",