@parall/daemon 1.87.0 → 1.89.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.
@@ -99,6 +99,15 @@ var init_agent_caller_scope_types = __esm({
99
99
  }
100
100
  });
101
101
 
102
+ // ts/sdk/dist/agent-team-only-types.js
103
+ var AGENT_TEAM_ONLY_ERROR_CODE;
104
+ var init_agent_team_only_types = __esm({
105
+ "ts/sdk/dist/agent-team-only-types.js"() {
106
+ "use strict";
107
+ AGENT_TEAM_ONLY_ERROR_CODE = "AGENT_TEAM_ONLY";
108
+ }
109
+ });
110
+
102
111
  // ts/sdk/dist/app-template-types.js
103
112
  var init_app_template_types = __esm({
104
113
  "ts/sdk/dist/app-template-types.js"() {
@@ -520,6 +529,15 @@ var init_chat_team_grant_types = __esm({
520
529
  }
521
530
  });
522
531
 
532
+ // ts/sdk/dist/clip-connection-types.js
533
+ var CLIP_CONNECTION_CONNECT_ACTION;
534
+ var init_clip_connection_types = __esm({
535
+ "ts/sdk/dist/clip-connection-types.js"() {
536
+ "use strict";
537
+ CLIP_CONNECTION_CONNECT_ACTION = "clip.connection.connect";
538
+ }
539
+ });
540
+
523
541
  // ts/sdk/dist/wiki-upload.js
524
542
  function createWikiUploadFormData(params) {
525
543
  const form = new FormData();
@@ -668,11 +686,17 @@ var init_clip_connection_endpoints = __esm({
668
686
  "ts/sdk/dist/clip-connection-endpoints.js"() {
669
687
  "use strict";
670
688
  clipConnectionEndpoints = {
689
+ CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
690
+ EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
671
691
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
672
692
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
673
693
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
674
694
  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}`
695
+ CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
696
+ /** The caller's own (person-owned) connections; login session only. */
697
+ ORG_MY_CONNECTIONS: (orgId) => `/api/v1/orgs/${orgId}/me/connections`,
698
+ ORG_MY_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/me/connections/${connId}`,
699
+ ORG_MY_CONNECTION_AGENT: (orgId, connId, agentId) => `/api/v1/orgs/${orgId}/me/connections/${connId}/agents/${agentId}`
676
700
  };
677
701
  }
678
702
  });
@@ -684,6 +708,8 @@ var init_edge_endpoints = __esm({
684
708
  "use strict";
685
709
  API_BASE = "/api/v1";
686
710
  edgeEndpoints = {
711
+ ORG_HOSTED_CREATION_GRANT: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/edge/profile-creation-grants/${encodeURIComponent(agentId)}`,
712
+ ORG_HOSTED_CREATION_EVENTS: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/edge/profile-creation-grants/${encodeURIComponent(agentId)}/events`,
687
713
  ORG_EDGE_PROFILE_ACCESS: (orgId, edgeId, profileName) => `${API_BASE}/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/access`,
688
714
  ORG_EDGE: (orgId) => `${API_BASE}/orgs/${orgId}/edge`,
689
715
  ORG_EDGE_CONNECT: (orgId) => `${API_BASE}/orgs/${orgId}/edge/connect`,
@@ -743,6 +769,7 @@ function teamInviteEndpoints(apiBase) {
743
769
  TEAM_INVITE_TEAMS: (token) => `${apiBase}/team-invites/${seg(token)}/teams`,
744
770
  TEAM_INVITE_REQUESTS: (token) => `${apiBase}/team-invites/${seg(token)}/requests`,
745
771
  TEAM_INVITE_REQUEST_MINE: (token) => `${apiBase}/team-invites/${seg(token)}/requests/mine`,
772
+ TEAM_INVITE_REQUEST_INTAKE: (token, requestId) => `${apiBase}/team-invites/${seg(token)}/requests/${seg(requestId)}/intake`,
746
773
  TEAM_INVITE_REQUEST_CANCEL: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/cancel`,
747
774
  TEAM_INVITE_REQUEST_RETRY: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/retry`
748
775
  };
@@ -820,6 +847,35 @@ var init_team_endpoints = __esm({
820
847
  }
821
848
  });
822
849
 
850
+ // ts/sdk/dist/secret-endpoints.js
851
+ function secretEndpoints(apiBase) {
852
+ return {
853
+ AGENT_SECRETS: (orgId, agentId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets`,
854
+ AGENT_SECRET: (orgId, agentId, secretId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
855
+ ORG_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/secrets`,
856
+ ORG_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}`,
857
+ /** The caller's own secrets (login session only, like the rest up to the runtime's). */
858
+ ORG_MY_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/me/secrets`,
859
+ ORG_MY_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}`,
860
+ ORG_MY_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}/grants/${agentId}`,
861
+ TEAM_SECRETS: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets`,
862
+ TEAM_SECRET: (orgId, teamId, secretId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}`,
863
+ TEAM_SECRET_GRANT: (orgId, teamId, secretId, agentId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}/grants/${agentId}`,
864
+ /** `agentId` holds `ownerAgentId`'s own secret. */
865
+ AGENT_SECRET_GRANT: (orgId, ownerAgentId, secretId, agentId) => `${apiBase}/orgs/${orgId}/agents/${ownerAgentId}/secrets/${secretId}/grants/${agentId}`,
866
+ ORG_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}/grants/${agentId}`,
867
+ /** The runtime's own routes, with the agent's key. */
868
+ AGENT_ME_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets`,
869
+ AGENT_ME_SECRETS_CATALOG: (orgId, q) => `${apiBase}/orgs/${orgId}/agents/me/secrets/catalog${q ? `?q=${encodeURIComponent(q)}` : ""}`,
870
+ AGENT_ME_SECRETS_APPLIED: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets/applied`
871
+ };
872
+ }
873
+ var init_secret_endpoints = __esm({
874
+ "ts/sdk/dist/secret-endpoints.js"() {
875
+ "use strict";
876
+ }
877
+ });
878
+
823
879
  // ts/sdk/dist/constants.js
824
880
  function isPlatformModelSelectableForRuntime(model, runtime) {
825
881
  if (!model.upstream_id)
@@ -879,6 +935,7 @@ var init_constants = __esm({
879
935
  init_wechat_endpoints();
880
936
  init_billing_endpoints();
881
937
  init_team_endpoints();
938
+ init_secret_endpoints();
882
939
  API_BASE2 = "/api/v1";
883
940
  WIKI_BASE = "/wiki/v1";
884
941
  CLIP_BASE = "/clip/v1";
@@ -1234,6 +1291,8 @@ var init_constants = __esm({
1234
1291
  CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
1235
1292
  CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
1236
1293
  CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
1294
+ CHAT_BOOKMARKS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks`,
1295
+ CHAT_BOOKMARK: (orgId, chatId, bookmarkId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks/${bookmarkId}`,
1237
1296
  CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
1238
1297
  CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
1239
1298
  CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
@@ -1276,14 +1335,7 @@ var init_constants = __esm({
1276
1335
  AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
1277
1336
  AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
1278
1337
  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`,
1338
+ ...secretEndpoints(API_BASE2),
1287
1339
  AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
1288
1340
  AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
1289
1341
  AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
@@ -1741,6 +1793,7 @@ var init_constants = __esm({
1741
1793
  TYPING_UPDATE: "typing.update",
1742
1794
  CHAT_UPDATE: "chat.update",
1743
1795
  CHAT_DELETED: "chat.deleted",
1796
+ CHAT_BOOKMARKS_UPDATED: "chat.bookmarks.updated",
1744
1797
  APPROVAL_UPDATE: "approval.update",
1745
1798
  // deprecated
1746
1799
  CARD_UPDATE: "card.update",
@@ -2692,6 +2745,23 @@ var init_clip_connection_client = __esm({
2692
2745
  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
2746
  }
2694
2747
  // ---- Clip connections ----
2748
+ /** Missing keys are unknown/hidden; present empty arrays are known empty. */
2749
+ async listClipMCPSummaries(orgId, clipIds) {
2750
+ return this.readDiscoverySummaries(ENDPOINTS.CLIP_MCP_SUMMARIES(orgId), "clip_ids", clipIds);
2751
+ }
2752
+ async listEdgeProfileSummaries(orgId, edgeIds) {
2753
+ return this.readDiscoverySummaries(ENDPOINTS.EDGE_PROFILE_SUMMARIES(orgId), "edge_ids", edgeIds);
2754
+ }
2755
+ async readDiscoverySummaries(endpoint, key, ids) {
2756
+ const data = {};
2757
+ const unique2 = [...new Set(ids)];
2758
+ for (let offset = 0; offset < unique2.length; offset += 500) {
2759
+ const batch = unique2.slice(offset, offset + 500);
2760
+ const response = await this.request("GET", `${endpoint}?${key}=${encodeURIComponent(batch.join(","))}`);
2761
+ Object.assign(data, response.data);
2762
+ }
2763
+ return { data };
2764
+ }
2695
2765
  async listClipConnections(orgId, clipId) {
2696
2766
  return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
2697
2767
  }
@@ -2726,6 +2796,46 @@ var init_clip_connection_client = __esm({
2726
2796
  async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
2727
2797
  return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
2728
2798
  }
2799
+ // ---- The caller's own connections (login session only) ----
2800
+ /** The caller's person-owned connections, optionally for one connector. */
2801
+ async listMyConnections(orgId, clipId) {
2802
+ return this.request("GET", ENDPOINTS.ORG_MY_CONNECTIONS(orgId), void 0, clipId ? { clip_id: clipId } : void 0);
2803
+ }
2804
+ /** Stop one agent from using one of the caller's connections. */
2805
+ async revokeMyConnectionAgent(orgId, connId, agentId) {
2806
+ return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION_AGENT(orgId, connId, agentId));
2807
+ }
2808
+ /** Disconnect one of the caller's connections: the connection, its credential and grants go. */
2809
+ async deleteMyConnection(orgId, connId) {
2810
+ return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
2811
+ }
2812
+ };
2813
+ }
2814
+ });
2815
+
2816
+ // ts/sdk/dist/hosted-profile-creation.js
2817
+ var HostedProfileCreationClient;
2818
+ var init_hosted_profile_creation = __esm({
2819
+ "ts/sdk/dist/hosted-profile-creation.js"() {
2820
+ "use strict";
2821
+ init_clip_connection_client();
2822
+ init_constants();
2823
+ HostedProfileCreationClient = class extends ClipConnectionClient {
2824
+ getHostedProfileCreationAccess(orgId, agentId) {
2825
+ return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId));
2826
+ }
2827
+ changeHostedProfileCreationGrant(orgId, agentId, change, key, revoke = false) {
2828
+ return this.request(revoke ? "DELETE" : "PUT", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId), change, void 0, false, { headers: { "Idempotency-Key": key } });
2829
+ }
2830
+ getHostedProfileCreationEvents(orgId, agentId, before) {
2831
+ return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_EVENTS(orgId, agentId), void 0, {
2832
+ before
2833
+ });
2834
+ }
2835
+ /** A lost response is recovered with the same name and key, never a new key. */
2836
+ createAuthorizedHostedProfile(orgId, name, key) {
2837
+ return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), { name, placement: "hosted" }, void 0, false, { headers: { "Idempotency-Key": key } });
2838
+ }
2729
2839
  };
2730
2840
  }
2731
2841
  });
@@ -2735,9 +2845,9 @@ var BrowserProfileClient;
2735
2845
  var init_browser_profile_client = __esm({
2736
2846
  "ts/sdk/dist/browser-profile-client.js"() {
2737
2847
  "use strict";
2738
- init_clip_connection_client();
2848
+ init_hosted_profile_creation();
2739
2849
  init_constants();
2740
- BrowserProfileClient = class extends ClipConnectionClient {
2850
+ BrowserProfileClient = class extends HostedProfileCreationClient {
2741
2851
  /** Metadata-only compatibility discovery. Management scope errors propagate;
2742
2852
  * callers with a known Profile can execute without this discovery chain. */
2743
2853
  async listBrowserUseProfiles(orgId, profileId) {
@@ -3120,7 +3230,10 @@ var init_secret_client = __esm({
3120
3230
  init_constants();
3121
3231
  init_user_preferences_client();
3122
3232
  AgentSecretClient = class extends UserPreferencesClient {
3123
- /** One agent's own secrets plus the org-shared ones it is given. */
3233
+ /**
3234
+ * One agent's own secrets and those it is given — the org's, a team's,
3235
+ * another user's — each as this agent holds it.
3236
+ */
3124
3237
  async getAgentSecrets(orgId, agentId) {
3125
3238
  return this.request("GET", ENDPOINTS.AGENT_SECRETS(orgId, agentId));
3126
3239
  }
@@ -3146,13 +3259,58 @@ var init_secret_client = __esm({
3146
3259
  async deleteOrgSecret(orgId, secretId) {
3147
3260
  await this.request("DELETE", ENDPOINTS.ORG_SECRET(orgId, secretId));
3148
3261
  }
3262
+ /** The caller's own secrets and who each is given to. Only that person. */
3263
+ async getMySecrets(orgId) {
3264
+ return this.request("GET", ENDPOINTS.ORG_MY_SECRETS(orgId));
3265
+ }
3266
+ async createMySecret(orgId, data) {
3267
+ return this.request("POST", ENDPOINTS.ORG_MY_SECRETS(orgId), data);
3268
+ }
3269
+ async updateMySecret(orgId, secretId, data) {
3270
+ return this.request("PATCH", ENDPOINTS.ORG_MY_SECRET(orgId, secretId), data);
3271
+ }
3272
+ async deleteMySecret(orgId, secretId) {
3273
+ await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET(orgId, secretId));
3274
+ }
3275
+ /** A team's secrets and who each is given to: its human managers and org admins. */
3276
+ async getTeamSecrets(orgId, teamId) {
3277
+ return this.request("GET", ENDPOINTS.TEAM_SECRETS(orgId, teamId));
3278
+ }
3279
+ async createTeamSecret(orgId, teamId, data) {
3280
+ return this.request("POST", ENDPOINTS.TEAM_SECRETS(orgId, teamId), data);
3281
+ }
3282
+ async updateTeamSecret(orgId, teamId, secretId, data) {
3283
+ return this.request("PATCH", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId), data);
3284
+ }
3285
+ async deleteTeamSecret(orgId, teamId, secretId) {
3286
+ await this.request("DELETE", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId));
3287
+ }
3288
+ // Taking one agent off a secret, whether it holds it for long or once. A
3289
+ // grant the agent does not hold answers 404 SECRET_GRANT_NOT_FOUND.
3290
+ async revokeOrgSecretGrant(orgId, secretId, agentId) {
3291
+ await this.request("DELETE", ENDPOINTS.ORG_SECRET_GRANT(orgId, secretId, agentId));
3292
+ }
3293
+ async revokeMySecretGrant(orgId, secretId, agentId) {
3294
+ await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET_GRANT(orgId, secretId, agentId));
3295
+ }
3296
+ /** Takes `agentId` off one of `ownerAgentId`'s own secrets. */
3297
+ async revokeAgentSecretGrant(orgId, ownerAgentId, secretId, agentId) {
3298
+ await this.request("DELETE", ENDPOINTS.AGENT_SECRET_GRANT(orgId, ownerAgentId, secretId, agentId));
3299
+ }
3300
+ async revokeTeamSecretGrant(orgId, teamId, secretId, agentId) {
3301
+ await this.request("DELETE", ENDPOINTS.TEAM_SECRET_GRANT(orgId, teamId, secretId, agentId));
3302
+ }
3149
3303
  /** Agent runtime only: the values to export to the agent's commands. */
3150
3304
  async getMyAgentSecrets(orgId) {
3151
3305
  return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS(orgId));
3152
3306
  }
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));
3307
+ /**
3308
+ * Agent only: the names it holds or may ask to use, its pending requests,
3309
+ * and the teams it may ask in. `q` keeps the keys whose name, purpose or
3310
+ * owner's name contains it, ignoring case.
3311
+ */
3312
+ async getMyAgentSecretCatalog(orgId, q) {
3313
+ return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS_CATALOG(orgId, q));
3156
3314
  }
3157
3315
  /** Agent runtime only: confirm the version the commands now run with. */
3158
3316
  async ackMyAgentSecrets(orgId, version) {
@@ -3272,14 +3430,35 @@ var init_agent_caller_scope_client = __esm({
3272
3430
  }
3273
3431
  });
3274
3432
 
3433
+ // ts/sdk/dist/agent-team-only-client.js
3434
+ var agentTeamOnlyPath, AgentTeamOnlyClient;
3435
+ var init_agent_team_only_client = __esm({
3436
+ "ts/sdk/dist/agent-team-only-client.js"() {
3437
+ "use strict";
3438
+ init_agent_caller_scope_client();
3439
+ init_constants();
3440
+ agentTeamOnlyPath = (orgId) => `${API_BASE2}/orgs/${orgId}/agent-team-only`;
3441
+ AgentTeamOnlyClient = class extends AgentCallerScopeClient {
3442
+ /** The switch, and what turning it on changes. Owners and admins only. */
3443
+ async getAgentTeamOnly(orgId) {
3444
+ return this.request("GET", agentTeamOnlyPath(orgId));
3445
+ }
3446
+ /** Turn the switch on or off. Owners and admins only. */
3447
+ async setAgentTeamOnly(orgId, enabled) {
3448
+ return this.request("PUT", agentTeamOnlyPath(orgId), { enabled });
3449
+ }
3450
+ };
3451
+ }
3452
+ });
3453
+
3275
3454
  // ts/sdk/dist/agent-owning-team-client.js
3276
3455
  var AgentOwningTeamClient;
3277
3456
  var init_agent_owning_team_client = __esm({
3278
3457
  "ts/sdk/dist/agent-owning-team-client.js"() {
3279
3458
  "use strict";
3280
- init_agent_caller_scope_client();
3459
+ init_agent_team_only_client();
3281
3460
  init_constants();
3282
- AgentOwningTeamClient = class extends AgentCallerScopeClient {
3461
+ AgentOwningTeamClient = class extends AgentTeamOnlyClient {
3283
3462
  /**
3284
3463
  * Moves the agent to another Team, or to the organization with `team_id`
3285
3464
  * null. Pass the Team you saw as `expected_team_id`: someone else's change
@@ -3341,6 +3520,8 @@ var init_billing_client = __esm({
3341
3520
  const params = new URLSearchParams();
3342
3521
  params.set("start_date", opts.start_date);
3343
3522
  params.set("end_date", opts.end_date);
3523
+ if (opts.timezone !== void 0)
3524
+ params.set("timezone", opts.timezone);
3344
3525
  return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId, accountId)}?${params}`);
3345
3526
  }
3346
3527
  async getUsageHeatmap(orgId, opts, accountId) {
@@ -3517,6 +3698,12 @@ var init_team_invite_client = __esm({
3517
3698
  async getMyTeamInviteRequest(token) {
3518
3699
  return this.request("GET", ENDPOINTS.TEAM_INVITE_REQUEST_MINE(token));
3519
3700
  }
3701
+ /** The requester answers the link's questions for a request that already
3702
+ * finished (no new request). `TEAM_INVITE_INTAKE_INVALID` (400) names the
3703
+ * key in `details.key`. */
3704
+ async submitTeamInviteIntake(token, requestId, intake) {
3705
+ return this.request("PUT", ENDPOINTS.TEAM_INVITE_REQUEST_INTAKE(token, requestId), { intake });
3706
+ }
3520
3707
  /** The requester withdraws a request that is still waiting. */
3521
3708
  async cancelTeamInviteRequest(requestId) {
3522
3709
  return this.request("POST", ENDPOINTS.TEAM_INVITE_REQUEST_CANCEL(requestId));
@@ -3530,14 +3717,34 @@ var init_team_invite_client = __esm({
3530
3717
  }
3531
3718
  });
3532
3719
 
3720
+ // ts/sdk/dist/member-field-client.js
3721
+ var MemberFieldClient;
3722
+ var init_member_field_client = __esm({
3723
+ "ts/sdk/dist/member-field-client.js"() {
3724
+ "use strict";
3725
+ init_constants();
3726
+ init_team_invite_client();
3727
+ MemberFieldClient = class extends TeamInviteClient {
3728
+ /**
3729
+ * The member changes the value of one of their own fields: signed in only
3730
+ * (an API key gets 403 `JWT_REQUIRED`), 1–200 characters on one line.
3731
+ * Answers with the whole profile and its fields.
3732
+ */
3733
+ async updateMemberField(orgId, userId, key, value) {
3734
+ return this.request("PUT", `${ENDPOINTS.ORG_MEMBER_PROFILE(orgId, userId)}/fields/${encodeURIComponent(key)}`, { value });
3735
+ }
3736
+ };
3737
+ }
3738
+ });
3739
+
3533
3740
  // ts/sdk/dist/wiki-page-share-client.js
3534
3741
  var WikiPageShareClient;
3535
3742
  var init_wiki_page_share_client = __esm({
3536
3743
  "ts/sdk/dist/wiki-page-share-client.js"() {
3537
3744
  "use strict";
3538
- init_team_invite_client();
3539
3745
  init_constants();
3540
- WikiPageShareClient = class extends TeamInviteClient {
3746
+ init_member_field_client();
3747
+ WikiPageShareClient = class extends MemberFieldClient {
3541
3748
  async listWikiPageShares(orgId, wikiId, path27) {
3542
3749
  const res = await this.request("GET", ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId), void 0, { path: path27 });
3543
3750
  return res.data;
@@ -3560,6 +3767,28 @@ var init_wiki_page_share_client = __esm({
3560
3767
  }
3561
3768
  });
3562
3769
 
3770
+ // ts/sdk/dist/chat-bookmarks-client.js
3771
+ var ChatBookmarksClient;
3772
+ var init_chat_bookmarks_client = __esm({
3773
+ "ts/sdk/dist/chat-bookmarks-client.js"() {
3774
+ "use strict";
3775
+ init_constants();
3776
+ init_wiki_page_share_client();
3777
+ ChatBookmarksClient = class extends WikiPageShareClient {
3778
+ async getChatBookmarks(orgId, chatId) {
3779
+ return this.request("GET", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId));
3780
+ }
3781
+ /** `ref` is a `prll://` reference or an http(s) URL. */
3782
+ async addChatBookmark(orgId, chatId, ref) {
3783
+ return this.request("POST", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId), { ref });
3784
+ }
3785
+ async removeChatBookmark(orgId, chatId, bookmarkId) {
3786
+ return this.request("DELETE", ENDPOINTS.CHAT_BOOKMARK(orgId, chatId, bookmarkId));
3787
+ }
3788
+ };
3789
+ }
3790
+ });
3791
+
3563
3792
  // ts/sdk/dist/wiki-changeset.js
3564
3793
  function normalizeWikiChangeset(changeset) {
3565
3794
  return {
@@ -3637,10 +3866,10 @@ var init_client = __esm({
3637
3866
  init_browser_viewer();
3638
3867
  init_wiki_upload();
3639
3868
  init_fetch_cause();
3640
- init_wiki_page_share_client();
3869
+ init_chat_bookmarks_client();
3641
3870
  init_wiki_changeset();
3642
3871
  init_constants();
3643
- ParallClient = class _ParallClient extends WikiPageShareClient {
3872
+ ParallClient = class _ParallClient extends ChatBookmarksClient {
3644
3873
  baseUrl;
3645
3874
  wikiBaseUrl;
3646
3875
  token;
@@ -4088,7 +4317,7 @@ var init_client = __esm({
4088
4317
  async updateOrgMember(orgId, userId, role) {
4089
4318
  return this.request("PATCH", ENDPOINTS.ORG_MEMBER(orgId, userId), { role });
4090
4319
  }
4091
- /** Org-scoped public profile (title / description) of any active member. */
4320
+ /** Org-scoped public profile (title / description) and fields of any active member. */
4092
4321
  async getMemberProfile(orgId, userId) {
4093
4322
  return this.request("GET", ENDPOINTS.ORG_MEMBER_PROFILE(orgId, userId));
4094
4323
  }
@@ -5936,7 +6165,7 @@ var init_client = __esm({
5936
6165
  return this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
5937
6166
  }
5938
6167
  /** Register an Edge. `placement` defaults to BYOC; hosted creates an idle,
5939
- * org-shared Cloud Profile and is restricted to human users. */
6168
+ * org-shared Cloud Profile; Agents need a separate creation grant and key. */
5940
6169
  async registerEdgeDevice(orgId, input, options) {
5941
6170
  const headers = options?.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : void 0;
5942
6171
  return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), input, void 0, false, { headers });
@@ -6181,10 +6410,11 @@ var init_client = __esm({
6181
6410
  async listClipMCPConnections(orgId, clipId) {
6182
6411
  return this.request("GET", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId));
6183
6412
  }
6184
- /** Create one MCP credential slot and its connection. */
6185
6413
  async createClipMCPConnection(orgId, clipId, req) {
6186
6414
  return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
6187
- timeoutMs: 4e4
6415
+ // A card may start OAuth: allow discovery (30s) and persistence like
6416
+ // createClipMCPOAuthConnection.
6417
+ timeoutMs: "approval_id" in req ? 5e4 : 4e4
6188
6418
  });
6189
6419
  }
6190
6420
  /** Delete one MCP config and its paired connection. */
@@ -6452,9 +6682,41 @@ var init_runtime_observation = __esm({
6452
6682
  });
6453
6683
 
6454
6684
  // ts/sdk/dist/secret-types.js
6685
+ 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
6686
  var init_secret_types = __esm({
6456
6687
  "ts/sdk/dist/secret-types.js"() {
6457
6688
  "use strict";
6689
+ AGENT_SECRET_GRANT_ONCE = "once";
6690
+ AGENT_SECRET_GRANT_LONG = "long";
6691
+ AGENT_SECRET_GRANT_INPUT = "grant";
6692
+ AGENT_SECRET_REQUEST_ACTION = "agent.secret.request";
6693
+ ORG_SECRET_AGENT_ADD_ACTION = "org.secret.agent.add";
6694
+ USER_SECRET_AGENT_ADD_ACTION = "user.secret.agent.add";
6695
+ TEAM_SECRET_AGENT_ADD_ACTION = "team.secret.agent.add";
6696
+ USER_SECRET_REQUEST_ACTION = "user.secret.request";
6697
+ TEAM_SECRET_REQUEST_ACTION = "team.secret.request";
6698
+ ORG_SECRET_REQUEST_ACTION = "org.secret.request";
6699
+ AGENT_SECRET_LAYER_ACTIONS = {
6700
+ use: {
6701
+ org: ORG_SECRET_AGENT_ADD_ACTION,
6702
+ team: TEAM_SECRET_AGENT_ADD_ACTION,
6703
+ user: USER_SECRET_AGENT_ADD_ACTION
6704
+ },
6705
+ new: {
6706
+ org: ORG_SECRET_REQUEST_ACTION,
6707
+ team: TEAM_SECRET_REQUEST_ACTION,
6708
+ user: USER_SECRET_REQUEST_ACTION
6709
+ }
6710
+ };
6711
+ AGENT_SECRET_REQUEST_ACTIONS = [
6712
+ AGENT_SECRET_REQUEST_ACTION,
6713
+ ORG_SECRET_AGENT_ADD_ACTION,
6714
+ USER_SECRET_AGENT_ADD_ACTION,
6715
+ TEAM_SECRET_AGENT_ADD_ACTION,
6716
+ USER_SECRET_REQUEST_ACTION,
6717
+ TEAM_SECRET_REQUEST_ACTION,
6718
+ ORG_SECRET_REQUEST_ACTION
6719
+ ];
6458
6720
  }
6459
6721
  });
6460
6722
 
@@ -6518,6 +6780,23 @@ var init_task_label_types = __esm({
6518
6780
  }
6519
6781
  });
6520
6782
 
6783
+ // ts/sdk/dist/chat-bookmarks-types.js
6784
+ var CHAT_BOOKMARK_LIMIT, CHAT_BOOKMARK_EXCLUDED_PREFIXES;
6785
+ var init_chat_bookmarks_types = __esm({
6786
+ "ts/sdk/dist/chat-bookmarks-types.js"() {
6787
+ "use strict";
6788
+ CHAT_BOOKMARK_LIMIT = 100;
6789
+ CHAT_BOOKMARK_EXCLUDED_PREFIXES = /* @__PURE__ */ new Set([
6790
+ "usr",
6791
+ "all",
6792
+ "org",
6793
+ "att",
6794
+ "run",
6795
+ "srn"
6796
+ ]);
6797
+ }
6798
+ });
6799
+
6521
6800
  // ts/sdk/dist/team-invite-types.js
6522
6801
  var init_team_invite_types = __esm({
6523
6802
  "ts/sdk/dist/team-invite-types.js"() {
@@ -6525,6 +6804,20 @@ var init_team_invite_types = __esm({
6525
6804
  }
6526
6805
  });
6527
6806
 
6807
+ // ts/sdk/dist/template-intake-types.js
6808
+ var init_template_intake_types = __esm({
6809
+ "ts/sdk/dist/template-intake-types.js"() {
6810
+ "use strict";
6811
+ }
6812
+ });
6813
+
6814
+ // ts/sdk/dist/member-field-types.js
6815
+ var init_member_field_types = __esm({
6816
+ "ts/sdk/dist/member-field-types.js"() {
6817
+ "use strict";
6818
+ }
6819
+ });
6820
+
6528
6821
  // ts/sdk/dist/trigger-judge-types.js
6529
6822
  var init_trigger_judge_types = __esm({
6530
6823
  "ts/sdk/dist/trigger-judge-types.js"() {
@@ -6998,6 +7291,13 @@ var dist_exports = {};
6998
7291
  __export(dist_exports, {
6999
7292
  ACCENT_THEMES: () => ACCENT_THEMES,
7000
7293
  ACCOUNT_LANGUAGES: () => ACCOUNT_LANGUAGES,
7294
+ AGENT_SECRET_GRANT_INPUT: () => AGENT_SECRET_GRANT_INPUT,
7295
+ AGENT_SECRET_GRANT_LONG: () => AGENT_SECRET_GRANT_LONG,
7296
+ AGENT_SECRET_GRANT_ONCE: () => AGENT_SECRET_GRANT_ONCE,
7297
+ AGENT_SECRET_LAYER_ACTIONS: () => AGENT_SECRET_LAYER_ACTIONS,
7298
+ AGENT_SECRET_REQUEST_ACTION: () => AGENT_SECRET_REQUEST_ACTION,
7299
+ AGENT_SECRET_REQUEST_ACTIONS: () => AGENT_SECRET_REQUEST_ACTIONS,
7300
+ AGENT_TEAM_ONLY_ERROR_CODE: () => AGENT_TEAM_ONLY_ERROR_CODE,
7001
7301
  API_BASE: () => API_BASE2,
7002
7302
  ApiError: () => ApiError,
7003
7303
  BROWSER_USE_ACTIONS: () => BROWSER_USE_ACTIONS,
@@ -7005,8 +7305,11 @@ __export(dist_exports, {
7005
7305
  BROWSER_USE_FEATURE_FLAG: () => BROWSER_USE_FEATURE_FLAG,
7006
7306
  BrowserUseValidationError: () => BrowserUseValidationError,
7007
7307
  CALLER_SCOPE_ERROR_CODES: () => CALLER_SCOPE_ERROR_CODES,
7308
+ CHAT_BOOKMARK_EXCLUDED_PREFIXES: () => CHAT_BOOKMARK_EXCLUDED_PREFIXES,
7309
+ CHAT_BOOKMARK_LIMIT: () => CHAT_BOOKMARK_LIMIT,
7008
7310
  CHAT_LIST_MODES: () => CHAT_LIST_MODES,
7009
7311
  CLIP_BASE: () => CLIP_BASE,
7312
+ CLIP_CONNECTION_CONNECT_ACTION: () => CLIP_CONNECTION_CONNECT_ACTION,
7010
7313
  CLI_RUNTIME_TYPES: () => CLI_RUNTIME_TYPES,
7011
7314
  COMMENT_TARGET: () => COMMENT_TARGET,
7012
7315
  DEFAULT_CHAT_LIST_MODE: () => DEFAULT_CHAT_LIST_MODE,
@@ -7016,6 +7319,8 @@ __export(dist_exports, {
7016
7319
  MENTION_ALL_AGENTS_USER_ID: () => MENTION_ALL_AGENTS_USER_ID,
7017
7320
  MENTION_ALL_HUMANS_USER_ID: () => MENTION_ALL_HUMANS_USER_ID,
7018
7321
  MENTION_ALL_USER_ID: () => MENTION_ALL_USER_ID,
7322
+ ORG_SECRET_AGENT_ADD_ACTION: () => ORG_SECRET_AGENT_ADD_ACTION,
7323
+ ORG_SECRET_REQUEST_ACTION: () => ORG_SECRET_REQUEST_ACTION,
7019
7324
  PLATFORM_DEFAULT_MODEL_BY_RUNTIME: () => PLATFORM_DEFAULT_MODEL_BY_RUNTIME,
7020
7325
  PLATFORM_LEGACY_MODELS: () => PLATFORM_LEGACY_MODELS,
7021
7326
  PLATFORM_MODELS: () => PLATFORM_MODELS,
@@ -7023,6 +7328,10 @@ __export(dist_exports, {
7023
7328
  ParallWs: () => ParallWs,
7024
7329
  RUNTIME_OBSERVATION_EVENTS: () => RUNTIME_OBSERVATION_EVENTS,
7025
7330
  RUNTIME_OBSERVATION_STATUSES: () => RUNTIME_OBSERVATION_STATUSES,
7331
+ TEAM_SECRET_AGENT_ADD_ACTION: () => TEAM_SECRET_AGENT_ADD_ACTION,
7332
+ TEAM_SECRET_REQUEST_ACTION: () => TEAM_SECRET_REQUEST_ACTION,
7333
+ USER_SECRET_AGENT_ADD_ACTION: () => USER_SECRET_AGENT_ADD_ACTION,
7334
+ USER_SECRET_REQUEST_ACTION: () => USER_SECRET_REQUEST_ACTION,
7026
7335
  WIKI_BASE: () => WIKI_BASE,
7027
7336
  WIKI_DRAFT_ERROR_CODES: () => WIKI_DRAFT_ERROR_CODES,
7028
7337
  WIKI_DRAFT_ERROR_REASONS: () => WIKI_DRAFT_ERROR_REASONS,
@@ -7083,6 +7392,7 @@ var init_dist = __esm({
7083
7392
  "ts/sdk/dist/index.js"() {
7084
7393
  "use strict";
7085
7394
  init_agent_caller_scope_types();
7395
+ init_agent_team_only_types();
7086
7396
  init_app_template_types();
7087
7397
  init_attachment_types();
7088
7398
  init_approval_policy_types();
@@ -7094,6 +7404,7 @@ var init_dist = __esm({
7094
7404
  init_browser_viewer();
7095
7405
  init_channel_types();
7096
7406
  init_chat_team_grant_types();
7407
+ init_clip_connection_types();
7097
7408
  init_client();
7098
7409
  init_constants();
7099
7410
  init_fetch_cause();
@@ -7109,7 +7420,10 @@ var init_dist = __esm({
7109
7420
  init_subject();
7110
7421
  init_user_preferences_types();
7111
7422
  init_task_label_types();
7423
+ init_chat_bookmarks_types();
7112
7424
  init_team_invite_types();
7425
+ init_template_intake_types();
7426
+ init_member_field_types();
7113
7427
  init_trigger_judge_types();
7114
7428
  init_types();
7115
7429
  init_wechat_types();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.87.0",
3
+ "version": "1.89.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/agent-core": "1.89.0",
38
+ "@parall/sdk": "1.89.0",
39
+ "@parall/claude-agent": "1.89.0",
40
+ "@parall/codex-agent": "1.89.0",
41
+ "@parall/openclaw-agent": "1.89.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",