@parall/daemon 1.93.0 → 1.94.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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.93.0",
3
- "built_at": "2026-11-15T13:50:02.507Z",
2
+ "version": "1.94.0",
3
+ "built_at": "2026-11-19T02:58:27.213Z",
4
4
  "min_node_version": "20.0.0",
5
5
  "files": {
6
6
  "bb-browser-daemon.js": {
@@ -16,29 +16,29 @@
16
16
  "size": 18
17
17
  },
18
18
  "parall-browser-pod.js": {
19
- "sha256": "503aa19c8aad4af1fe79dfa031ce4dbf798a7aa7032135b07afd27737d1b84ee",
20
- "size": 3105670
19
+ "sha256": "6651323fd94ff562b0b34180ca915da8def452111ed65f0af2c2af044d44aa8a",
20
+ "size": 3110769
21
21
  },
22
22
  "parall-channel-exec.js": {
23
23
  "sha256": "3a39c2ced4f4e8ecf9283b77efa028bd28fa08d61e8d2e3f20700c0a4f61e792",
24
24
  "size": 9223
25
25
  },
26
26
  "parall-claude-agent.js": {
27
- "sha256": "015b60e60f28268d757457b278696de2448c5e7b176f3d8c345f8ca13b0a030b",
28
- "size": 3142866
27
+ "sha256": "2bd55eb45e6d7a33c6d7d3d61696d8903f59951c9c9291b1bc32d9ac41214106",
28
+ "size": 3147963
29
29
  },
30
30
  "parall-codex-agent.js": {
31
- "sha256": "ec33a2f049eb12d18361e72a67e0f0056d54df8ae022c9212b8392b2d177f936",
32
- "size": 3151433
31
+ "sha256": "d9c5db01af8ebf1ec257ee18cdf460a781ccae8fc55dc786818cd506dedd127a",
32
+ "size": 3157022
33
33
  },
34
34
  "parall-daemon.js": {
35
- "sha256": "d0158ba506866c1253fdeabad55f9876d4cf49eef12a171836a3303380076bf6",
36
- "size": 3307529
35
+ "sha256": "8ffeb404a1b214a4f93c58c9f683172f751b36f729e07f9281e4d473398352b6",
36
+ "size": 3314305
37
37
  },
38
38
  "parall-openclaw-agent.js": {
39
39
  "sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
40
40
  "size": 9923
41
41
  }
42
42
  },
43
- "signature": "3p9uledRj/dZqfkVqo3aezxTYQS3UNBFi6OiqoDYccy/Gri540vJv7M62aQ/i1Vn3r+QSAaWk4WwIT1na4uZDQ=="
43
+ "signature": "eFPIq8iHeMKpeEQ7wT8zJ6eWQiLLEXBiDUnaTC1ZFU8x+1H+scJx2dpOWAJluYcFWzDvAFAcvzMbjDu4VyspAg=="
44
44
  }
@@ -64377,7 +64377,13 @@ function appTemplateEndpoints(apiBase) {
64377
64377
  APP_TEMPLATES: `${apiBase}/app-templates`,
64378
64378
  APP_TEMPLATE: (id) => `${apiBase}/app-templates/${encodeURIComponent(id)}`,
64379
64379
  /** Where the answers' file paths start: one version's files. */
64380
- APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`
64380
+ APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`,
64381
+ /** An app's share as a template: share or update (POST), read (GET),
64382
+ * revoke (DELETE). */
64383
+ MINI_APP_TEMPLATE_SHARE: (orgId, appId) => `${apiBase}/orgs/${orgId}/apps/${appId}/template-share`,
64384
+ /** A shared template read from orgId, the reader's organization. */
64385
+ SHARED_APP_TEMPLATE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}`,
64386
+ SHARED_APP_TEMPLATE_PACKAGE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}/package`
64381
64387
  };
64382
64388
  }
64383
64389
 
@@ -64396,6 +64402,8 @@ var clipConnectionEndpoints = {
64396
64402
  CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
64397
64403
  EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
64398
64404
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
64405
+ /** The publisher org's display-name request for one connector (PUT files, DELETE withdraws). */
64406
+ ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/display-name-request`,
64399
64407
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
64400
64408
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
64401
64409
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
@@ -64497,7 +64505,11 @@ function billingEndpoints(apiBase) {
64497
64505
  BILLING_ACCOUNTS: (orgId) => `${apiBase}/orgs/${orgId}/billing/accounts`,
64498
64506
  BILLING_ACCOUNT_CLOSE: (orgId, accountId) => `${apiBase}/orgs/${orgId}/billing/accounts/${accountId}/close`,
64499
64507
  BILLING_SETTINGS: (orgId) => `${apiBase}/orgs/${orgId}/billing/settings`,
64500
- COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`
64508
+ COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`,
64509
+ // Gift credits earned while an organisation sets itself up.
64510
+ ONBOARDING_REWARDS: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards`,
64511
+ ONBOARDING_REWARDS_ENROLL: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/enroll`,
64512
+ ONBOARDING_REWARDS_SURFACE: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/surface`
64501
64513
  };
64502
64514
  }
64503
64515
 
@@ -65960,6 +65972,20 @@ var ClipConnectionClient = class extends ChannelConversationClient {
65960
65972
  async deleteMyConnection(orgId, connId) {
65961
65973
  return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
65962
65974
  }
65975
+ /**
65976
+ * Ask Parall to change the connector's display name (its author or a human
65977
+ * owner/admin of the publishing org). Nothing changes until review approves;
65978
+ * a new request replaces the pending one. `null` asks to show `name` again.
65979
+ */
65980
+ async requestClipDisplayName(orgId, clipId, displayName) {
65981
+ return this.request("PUT", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId), {
65982
+ display_name: displayName
65983
+ });
65984
+ }
65985
+ /** Withdraw the pending display-name request (404 when there is none). */
65986
+ async withdrawClipDisplayNameRequest(orgId, clipId) {
65987
+ await this.request("DELETE", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId));
65988
+ }
65963
65989
  };
65964
65990
 
65965
65991
  // ts/sdk/dist/hosted-profile-creation.js
@@ -66320,8 +66346,41 @@ var AppTemplateClient = class extends ApprovalApproversClient {
66320
66346
  }
66321
66347
  };
66322
66348
 
66349
+ // ts/sdk/dist/app-template-share-client.js
66350
+ var SHARE_TIMEOUT_MS = 1e5;
66351
+ var AppTemplateShareClient = class extends AppTemplateClient {
66352
+ /** Share the app's current version as a template, or update its open
66353
+ * share to it (app.publish: an author of the app or an org owner/admin).
66354
+ * A 422 APP_TEMPLATE_SHARE_BLOCKED stores nothing; its findings are in
66355
+ * the error's extras. */
66356
+ async shareMiniAppTemplate(orgId, appId, data2, opts) {
66357
+ return this.request("POST", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId), data2, void 0, false, { timeoutMs: SHARE_TIMEOUT_MS, signal: opts?.signal });
66358
+ }
66359
+ /** The app's open share; null when it has none (never shared, revoked or
66360
+ * expired). */
66361
+ async getMiniAppTemplateShare(orgId, appId) {
66362
+ const res = await this.request("GET", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
66363
+ return res.share ?? null;
66364
+ }
66365
+ /** Revoke the app's open share: its link stops opening at once. Nothing
66366
+ * happens when the app has none. */
66367
+ async revokeMiniAppTemplateShare(orgId, appId) {
66368
+ await this.request("DELETE", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
66369
+ }
66370
+ /** A shared template, read from orgId — the reader's organization, not
66371
+ * the sharer's. 404 APP_TEMPLATE_NOT_FOUND for every link that does not
66372
+ * open, whatever the reason. */
66373
+ async getSharedAppTemplate(orgId, id, opts) {
66374
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE(orgId, id), void 0, void 0, false, opts);
66375
+ }
66376
+ /** Where to download a shared template's source, for a few minutes. */
66377
+ async getSharedAppTemplatePackage(orgId, id) {
66378
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE_PACKAGE(orgId, id));
66379
+ }
66380
+ };
66381
+
66323
66382
  // ts/sdk/dist/chat-team-grant-client.js
66324
- var ChatTeamGrantClient = class extends AppTemplateClient {
66383
+ var ChatTeamGrantClient = class extends AppTemplateShareClient {
66325
66384
  /** The chat's team grants, for its members. */
66326
66385
  async listChatTeamGrants(orgId, chatId) {
66327
66386
  return this.request("GET", ENDPOINTS.CHAT_TEAM_GRANTS(orgId, chatId));
@@ -66538,6 +66597,21 @@ var BillingClient = class extends TeamGraphClient {
66538
66597
  async updateBillingSettings(orgId, req) {
66539
66598
  return this.request("PATCH", ENDPOINTS.BILLING_SETTINGS(orgId), req);
66540
66599
  }
66600
+ // ---- Onboarding rewards (gift credits earned while setting up) ----
66601
+ /** What the organisation has earned so far and what each step pays. */
66602
+ async getOnboardingRewards(orgId) {
66603
+ return this.request("GET", ENDPOINTS.ONBOARDING_REWARDS(orgId));
66604
+ }
66605
+ /** Start earning (the owner only). An organisation that does not qualify
66606
+ * answers 200 with `enrolled: false`; calling it again changes nothing. */
66607
+ async enrollOnboardingRewards(orgId) {
66608
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_ENROLL(orgId));
66609
+ }
66610
+ /** Record where the team works (owner or admin). Paid once, whatever is
66611
+ * chosen first; repeating it is a no-op. */
66612
+ async claimOnboardingSurface(orgId, surface) {
66613
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_SURFACE(orgId), { surface });
66614
+ }
66541
66615
  // The admin grant endpoints (POST/GET /internal/admin/orgs/
66542
66616
  // {id}/grants) intentionally do NOT live on this public client — they
66543
66617
  // are mounted on the unauthenticated `/internal/*` surface and reachable
@@ -66687,6 +66761,25 @@ var TemplateCatalogClient = class extends ChatBookmarksClient {
66687
66761
  }
66688
66762
  };
66689
66763
 
66764
+ // ts/sdk/dist/org-deletion-client.js
66765
+ var orgDeletionPath = (orgId) => `${API_BASE2}/orgs/${orgId}/deletion`;
66766
+ var OrgDeletionClient = class extends TemplateCatalogClient {
66767
+ /**
66768
+ * Delete the organization: every member and agent loses access at once,
66769
+ * and its data is purged 30 days later. Only its owner, from a signed-in
66770
+ * session (an API key gets 403 JWT_REQUIRED), and never a personal
66771
+ * organization. `confirmName` must equal the organization's name exactly.
66772
+ * Refusals specific to this request are `ORG_DELETION_ERROR_CODES`.
66773
+ *
66774
+ * This is the deletion path; `deleteOrg` (`DELETE /orgs/{orgId}`) is always
66775
+ * refused by the server.
66776
+ */
66777
+ async requestOrgDeletion(orgId, confirmName) {
66778
+ const body = { confirm_name: confirmName };
66779
+ return this.request("POST", orgDeletionPath(orgId), body);
66780
+ }
66781
+ };
66782
+
66690
66783
  // ts/sdk/dist/wiki-changeset.js
66691
66784
  function normalizeWikiChangeset(changeset) {
66692
66785
  return {
@@ -66722,7 +66815,7 @@ function legacyHeartbeatFromReport(report) {
66722
66815
  detectedRuntimes
66723
66816
  };
66724
66817
  }
66725
- var ParallClient = class _ParallClient extends TemplateCatalogClient {
66818
+ var ParallClient = class _ParallClient extends OrgDeletionClient {
66726
66819
  baseUrl;
66727
66820
  wikiBaseUrl;
66728
66821
  token;
@@ -52139,7 +52139,13 @@ function appTemplateEndpoints(apiBase) {
52139
52139
  APP_TEMPLATES: `${apiBase}/app-templates`,
52140
52140
  APP_TEMPLATE: (id) => `${apiBase}/app-templates/${encodeURIComponent(id)}`,
52141
52141
  /** Where the answers' file paths start: one version's files. */
52142
- APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`
52142
+ APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`,
52143
+ /** An app's share as a template: share or update (POST), read (GET),
52144
+ * revoke (DELETE). */
52145
+ MINI_APP_TEMPLATE_SHARE: (orgId, appId) => `${apiBase}/orgs/${orgId}/apps/${appId}/template-share`,
52146
+ /** A shared template read from orgId, the reader's organization. */
52147
+ SHARED_APP_TEMPLATE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}`,
52148
+ SHARED_APP_TEMPLATE_PACKAGE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}/package`
52143
52149
  };
52144
52150
  }
52145
52151
 
@@ -52158,6 +52164,8 @@ var clipConnectionEndpoints = {
52158
52164
  CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
52159
52165
  EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
52160
52166
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
52167
+ /** The publisher org's display-name request for one connector (PUT files, DELETE withdraws). */
52168
+ ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/display-name-request`,
52161
52169
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
52162
52170
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
52163
52171
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
@@ -52259,7 +52267,11 @@ function billingEndpoints(apiBase) {
52259
52267
  BILLING_ACCOUNTS: (orgId) => `${apiBase}/orgs/${orgId}/billing/accounts`,
52260
52268
  BILLING_ACCOUNT_CLOSE: (orgId, accountId) => `${apiBase}/orgs/${orgId}/billing/accounts/${accountId}/close`,
52261
52269
  BILLING_SETTINGS: (orgId) => `${apiBase}/orgs/${orgId}/billing/settings`,
52262
- COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`
52270
+ COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`,
52271
+ // Gift credits earned while an organisation sets itself up.
52272
+ ONBOARDING_REWARDS: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards`,
52273
+ ONBOARDING_REWARDS_ENROLL: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/enroll`,
52274
+ ONBOARDING_REWARDS_SURFACE: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/surface`
52263
52275
  };
52264
52276
  }
52265
52277
 
@@ -53829,6 +53841,20 @@ var ClipConnectionClient = class extends ChannelConversationClient {
53829
53841
  async deleteMyConnection(orgId, connId) {
53830
53842
  return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
53831
53843
  }
53844
+ /**
53845
+ * Ask Parall to change the connector's display name (its author or a human
53846
+ * owner/admin of the publishing org). Nothing changes until review approves;
53847
+ * a new request replaces the pending one. `null` asks to show `name` again.
53848
+ */
53849
+ async requestClipDisplayName(orgId, clipId, displayName) {
53850
+ return this.request("PUT", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId), {
53851
+ display_name: displayName
53852
+ });
53853
+ }
53854
+ /** Withdraw the pending display-name request (404 when there is none). */
53855
+ async withdrawClipDisplayNameRequest(orgId, clipId) {
53856
+ await this.request("DELETE", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId));
53857
+ }
53832
53858
  };
53833
53859
 
53834
53860
  // ts/sdk/dist/hosted-profile-creation.js
@@ -54189,8 +54215,41 @@ var AppTemplateClient = class extends ApprovalApproversClient {
54189
54215
  }
54190
54216
  };
54191
54217
 
54218
+ // ts/sdk/dist/app-template-share-client.js
54219
+ var SHARE_TIMEOUT_MS = 1e5;
54220
+ var AppTemplateShareClient = class extends AppTemplateClient {
54221
+ /** Share the app's current version as a template, or update its open
54222
+ * share to it (app.publish: an author of the app or an org owner/admin).
54223
+ * A 422 APP_TEMPLATE_SHARE_BLOCKED stores nothing; its findings are in
54224
+ * the error's extras. */
54225
+ async shareMiniAppTemplate(orgId, appId, data, opts) {
54226
+ return this.request("POST", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId), data, void 0, false, { timeoutMs: SHARE_TIMEOUT_MS, signal: opts?.signal });
54227
+ }
54228
+ /** The app's open share; null when it has none (never shared, revoked or
54229
+ * expired). */
54230
+ async getMiniAppTemplateShare(orgId, appId) {
54231
+ const res = await this.request("GET", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
54232
+ return res.share ?? null;
54233
+ }
54234
+ /** Revoke the app's open share: its link stops opening at once. Nothing
54235
+ * happens when the app has none. */
54236
+ async revokeMiniAppTemplateShare(orgId, appId) {
54237
+ await this.request("DELETE", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
54238
+ }
54239
+ /** A shared template, read from orgId — the reader's organization, not
54240
+ * the sharer's. 404 APP_TEMPLATE_NOT_FOUND for every link that does not
54241
+ * open, whatever the reason. */
54242
+ async getSharedAppTemplate(orgId, id, opts) {
54243
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE(orgId, id), void 0, void 0, false, opts);
54244
+ }
54245
+ /** Where to download a shared template's source, for a few minutes. */
54246
+ async getSharedAppTemplatePackage(orgId, id) {
54247
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE_PACKAGE(orgId, id));
54248
+ }
54249
+ };
54250
+
54192
54251
  // ts/sdk/dist/chat-team-grant-client.js
54193
- var ChatTeamGrantClient = class extends AppTemplateClient {
54252
+ var ChatTeamGrantClient = class extends AppTemplateShareClient {
54194
54253
  /** The chat's team grants, for its members. */
54195
54254
  async listChatTeamGrants(orgId, chatId) {
54196
54255
  return this.request("GET", ENDPOINTS.CHAT_TEAM_GRANTS(orgId, chatId));
@@ -54407,6 +54466,21 @@ var BillingClient = class extends TeamGraphClient {
54407
54466
  async updateBillingSettings(orgId, req) {
54408
54467
  return this.request("PATCH", ENDPOINTS.BILLING_SETTINGS(orgId), req);
54409
54468
  }
54469
+ // ---- Onboarding rewards (gift credits earned while setting up) ----
54470
+ /** What the organisation has earned so far and what each step pays. */
54471
+ async getOnboardingRewards(orgId) {
54472
+ return this.request("GET", ENDPOINTS.ONBOARDING_REWARDS(orgId));
54473
+ }
54474
+ /** Start earning (the owner only). An organisation that does not qualify
54475
+ * answers 200 with `enrolled: false`; calling it again changes nothing. */
54476
+ async enrollOnboardingRewards(orgId) {
54477
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_ENROLL(orgId));
54478
+ }
54479
+ /** Record where the team works (owner or admin). Paid once, whatever is
54480
+ * chosen first; repeating it is a no-op. */
54481
+ async claimOnboardingSurface(orgId, surface) {
54482
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_SURFACE(orgId), { surface });
54483
+ }
54410
54484
  // The admin grant endpoints (POST/GET /internal/admin/orgs/
54411
54485
  // {id}/grants) intentionally do NOT live on this public client — they
54412
54486
  // are mounted on the unauthenticated `/internal/*` surface and reachable
@@ -54556,6 +54630,25 @@ var TemplateCatalogClient = class extends ChatBookmarksClient {
54556
54630
  }
54557
54631
  };
54558
54632
 
54633
+ // ts/sdk/dist/org-deletion-client.js
54634
+ var orgDeletionPath = (orgId) => `${API_BASE2}/orgs/${orgId}/deletion`;
54635
+ var OrgDeletionClient = class extends TemplateCatalogClient {
54636
+ /**
54637
+ * Delete the organization: every member and agent loses access at once,
54638
+ * and its data is purged 30 days later. Only its owner, from a signed-in
54639
+ * session (an API key gets 403 JWT_REQUIRED), and never a personal
54640
+ * organization. `confirmName` must equal the organization's name exactly.
54641
+ * Refusals specific to this request are `ORG_DELETION_ERROR_CODES`.
54642
+ *
54643
+ * This is the deletion path; `deleteOrg` (`DELETE /orgs/{orgId}`) is always
54644
+ * refused by the server.
54645
+ */
54646
+ async requestOrgDeletion(orgId, confirmName) {
54647
+ const body = { confirm_name: confirmName };
54648
+ return this.request("POST", orgDeletionPath(orgId), body);
54649
+ }
54650
+ };
54651
+
54559
54652
  // ts/sdk/dist/wiki-changeset.js
54560
54653
  function normalizeWikiChangeset(changeset) {
54561
54654
  return {
@@ -54591,7 +54684,7 @@ function legacyHeartbeatFromReport(report) {
54591
54684
  detectedRuntimes
54592
54685
  };
54593
54686
  }
54594
- var ParallClient = class _ParallClient extends TemplateCatalogClient {
54687
+ var ParallClient = class _ParallClient extends OrgDeletionClient {
54595
54688
  baseUrl;
54596
54689
  wikiBaseUrl;
54597
54690
  token;
@@ -67233,7 +67326,7 @@ var ClaudeBusyTracker = class {
67233
67326
  * REPLACE frame arrives BEFORE the task_notification for the task it
67234
67327
  * removed (2.1.292 sends it after), and the notification itself carries
67235
67328
  * only a summary. Both orders occur — self-hosted machines run whatever
67236
- * CLI the user installed (probes/background-tasks-2.1.318.md).
67329
+ * CLI the user installed (probes/background-tasks-2.1.325.md).
67237
67330
  */
67238
67331
  finishedDescriptions = /* @__PURE__ */ new Map();
67239
67332
  constructor(holdMs = DEFAULT_FOLLOW_UP_HOLD_MS) {
@@ -67936,7 +68029,7 @@ var ClaudeCapabilityProbe = class {
67936
68029
  * Whether spawns pass `--system-prompt-snapshot off`. The CLI records the
67937
68030
  * system prompt on a conversation's first request and resends that record on
67938
68031
  * every later request and --resume, so a rewritten prompt file would never
67939
- * reach a resumed session (probes/system-prompt-snapshot-2.1.318.md). CLIs
68032
+ * reach a resumed session (probes/system-prompt-snapshot-2.1.325.md). CLIs
67940
68033
  * that predate the recording also lack the flag and exit on it; the probe
67941
68034
  * observes that once and spawns without it from then on.
67942
68035
  */
@@ -68773,7 +68866,7 @@ var ClaudeProcessPump = class {
68773
68866
  * A local input may join only a turn executing now (a started dispatch or
68774
68867
  * steer delivery, or an open runtime-initiated turn), and never while any
68775
68868
  * input waits to start: queued inputs start together as one turn that
68776
- * answers only the last (probes/queue-steer-2.1.318.md S3).
68869
+ * answers only the last (probes/queue-steer-2.1.325.md S3).
68777
68870
  */
68778
68871
  acceptsLocalInput() {
68779
68872
  let executing = this.runtimeTurn !== null;
@@ -68808,7 +68901,7 @@ var ClaudeProcessPump = class {
68808
68901
  /**
68809
68902
  * Dispatch abort: fail every live delivery and release its drain. Local
68810
68903
  * inputs are left alone: the CLI still runs a queued one, even after stdin
68811
- * closes (probes/queue-steer-2.1.318.md S5), so failing it here would
68904
+ * closes (probes/queue-steer-2.1.325.md S5), so failing it here would
68812
68905
  * report it undelivered and hand it out a second time.
68813
68906
  */
68814
68907
  abortDeliveries(message) {
@@ -52139,7 +52139,13 @@ function appTemplateEndpoints(apiBase) {
52139
52139
  APP_TEMPLATES: `${apiBase}/app-templates`,
52140
52140
  APP_TEMPLATE: (id) => `${apiBase}/app-templates/${encodeURIComponent(id)}`,
52141
52141
  /** Where the answers' file paths start: one version's files. */
52142
- APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`
52142
+ APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`,
52143
+ /** An app's share as a template: share or update (POST), read (GET),
52144
+ * revoke (DELETE). */
52145
+ MINI_APP_TEMPLATE_SHARE: (orgId, appId) => `${apiBase}/orgs/${orgId}/apps/${appId}/template-share`,
52146
+ /** A shared template read from orgId, the reader's organization. */
52147
+ SHARED_APP_TEMPLATE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}`,
52148
+ SHARED_APP_TEMPLATE_PACKAGE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}/package`
52143
52149
  };
52144
52150
  }
52145
52151
 
@@ -52158,6 +52164,8 @@ var clipConnectionEndpoints = {
52158
52164
  CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
52159
52165
  EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
52160
52166
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
52167
+ /** The publisher org's display-name request for one connector (PUT files, DELETE withdraws). */
52168
+ ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/display-name-request`,
52161
52169
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
52162
52170
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
52163
52171
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
@@ -52259,7 +52267,11 @@ function billingEndpoints(apiBase) {
52259
52267
  BILLING_ACCOUNTS: (orgId) => `${apiBase}/orgs/${orgId}/billing/accounts`,
52260
52268
  BILLING_ACCOUNT_CLOSE: (orgId, accountId) => `${apiBase}/orgs/${orgId}/billing/accounts/${accountId}/close`,
52261
52269
  BILLING_SETTINGS: (orgId) => `${apiBase}/orgs/${orgId}/billing/settings`,
52262
- COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`
52270
+ COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`,
52271
+ // Gift credits earned while an organisation sets itself up.
52272
+ ONBOARDING_REWARDS: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards`,
52273
+ ONBOARDING_REWARDS_ENROLL: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/enroll`,
52274
+ ONBOARDING_REWARDS_SURFACE: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/surface`
52263
52275
  };
52264
52276
  }
52265
52277
 
@@ -53829,6 +53841,20 @@ var ClipConnectionClient = class extends ChannelConversationClient {
53829
53841
  async deleteMyConnection(orgId, connId) {
53830
53842
  return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
53831
53843
  }
53844
+ /**
53845
+ * Ask Parall to change the connector's display name (its author or a human
53846
+ * owner/admin of the publishing org). Nothing changes until review approves;
53847
+ * a new request replaces the pending one. `null` asks to show `name` again.
53848
+ */
53849
+ async requestClipDisplayName(orgId, clipId, displayName) {
53850
+ return this.request("PUT", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId), {
53851
+ display_name: displayName
53852
+ });
53853
+ }
53854
+ /** Withdraw the pending display-name request (404 when there is none). */
53855
+ async withdrawClipDisplayNameRequest(orgId, clipId) {
53856
+ await this.request("DELETE", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId));
53857
+ }
53832
53858
  };
53833
53859
 
53834
53860
  // ts/sdk/dist/hosted-profile-creation.js
@@ -54189,8 +54215,41 @@ var AppTemplateClient = class extends ApprovalApproversClient {
54189
54215
  }
54190
54216
  };
54191
54217
 
54218
+ // ts/sdk/dist/app-template-share-client.js
54219
+ var SHARE_TIMEOUT_MS = 1e5;
54220
+ var AppTemplateShareClient = class extends AppTemplateClient {
54221
+ /** Share the app's current version as a template, or update its open
54222
+ * share to it (app.publish: an author of the app or an org owner/admin).
54223
+ * A 422 APP_TEMPLATE_SHARE_BLOCKED stores nothing; its findings are in
54224
+ * the error's extras. */
54225
+ async shareMiniAppTemplate(orgId, appId, data, opts) {
54226
+ return this.request("POST", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId), data, void 0, false, { timeoutMs: SHARE_TIMEOUT_MS, signal: opts?.signal });
54227
+ }
54228
+ /** The app's open share; null when it has none (never shared, revoked or
54229
+ * expired). */
54230
+ async getMiniAppTemplateShare(orgId, appId) {
54231
+ const res = await this.request("GET", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
54232
+ return res.share ?? null;
54233
+ }
54234
+ /** Revoke the app's open share: its link stops opening at once. Nothing
54235
+ * happens when the app has none. */
54236
+ async revokeMiniAppTemplateShare(orgId, appId) {
54237
+ await this.request("DELETE", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
54238
+ }
54239
+ /** A shared template, read from orgId — the reader's organization, not
54240
+ * the sharer's. 404 APP_TEMPLATE_NOT_FOUND for every link that does not
54241
+ * open, whatever the reason. */
54242
+ async getSharedAppTemplate(orgId, id, opts) {
54243
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE(orgId, id), void 0, void 0, false, opts);
54244
+ }
54245
+ /** Where to download a shared template's source, for a few minutes. */
54246
+ async getSharedAppTemplatePackage(orgId, id) {
54247
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE_PACKAGE(orgId, id));
54248
+ }
54249
+ };
54250
+
54192
54251
  // ts/sdk/dist/chat-team-grant-client.js
54193
- var ChatTeamGrantClient = class extends AppTemplateClient {
54252
+ var ChatTeamGrantClient = class extends AppTemplateShareClient {
54194
54253
  /** The chat's team grants, for its members. */
54195
54254
  async listChatTeamGrants(orgId, chatId) {
54196
54255
  return this.request("GET", ENDPOINTS.CHAT_TEAM_GRANTS(orgId, chatId));
@@ -54407,6 +54466,21 @@ var BillingClient = class extends TeamGraphClient {
54407
54466
  async updateBillingSettings(orgId, req) {
54408
54467
  return this.request("PATCH", ENDPOINTS.BILLING_SETTINGS(orgId), req);
54409
54468
  }
54469
+ // ---- Onboarding rewards (gift credits earned while setting up) ----
54470
+ /** What the organisation has earned so far and what each step pays. */
54471
+ async getOnboardingRewards(orgId) {
54472
+ return this.request("GET", ENDPOINTS.ONBOARDING_REWARDS(orgId));
54473
+ }
54474
+ /** Start earning (the owner only). An organisation that does not qualify
54475
+ * answers 200 with `enrolled: false`; calling it again changes nothing. */
54476
+ async enrollOnboardingRewards(orgId) {
54477
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_ENROLL(orgId));
54478
+ }
54479
+ /** Record where the team works (owner or admin). Paid once, whatever is
54480
+ * chosen first; repeating it is a no-op. */
54481
+ async claimOnboardingSurface(orgId, surface) {
54482
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_SURFACE(orgId), { surface });
54483
+ }
54410
54484
  // The admin grant endpoints (POST/GET /internal/admin/orgs/
54411
54485
  // {id}/grants) intentionally do NOT live on this public client — they
54412
54486
  // are mounted on the unauthenticated `/internal/*` surface and reachable
@@ -54556,6 +54630,25 @@ var TemplateCatalogClient = class extends ChatBookmarksClient {
54556
54630
  }
54557
54631
  };
54558
54632
 
54633
+ // ts/sdk/dist/org-deletion-client.js
54634
+ var orgDeletionPath = (orgId) => `${API_BASE2}/orgs/${orgId}/deletion`;
54635
+ var OrgDeletionClient = class extends TemplateCatalogClient {
54636
+ /**
54637
+ * Delete the organization: every member and agent loses access at once,
54638
+ * and its data is purged 30 days later. Only its owner, from a signed-in
54639
+ * session (an API key gets 403 JWT_REQUIRED), and never a personal
54640
+ * organization. `confirmName` must equal the organization's name exactly.
54641
+ * Refusals specific to this request are `ORG_DELETION_ERROR_CODES`.
54642
+ *
54643
+ * This is the deletion path; `deleteOrg` (`DELETE /orgs/{orgId}`) is always
54644
+ * refused by the server.
54645
+ */
54646
+ async requestOrgDeletion(orgId, confirmName) {
54647
+ const body = { confirm_name: confirmName };
54648
+ return this.request("POST", orgDeletionPath(orgId), body);
54649
+ }
54650
+ };
54651
+
54559
54652
  // ts/sdk/dist/wiki-changeset.js
54560
54653
  function normalizeWikiChangeset(changeset) {
54561
54654
  return {
@@ -54591,7 +54684,7 @@ function legacyHeartbeatFromReport(report) {
54591
54684
  detectedRuntimes
54592
54685
  };
54593
54686
  }
54594
- var ParallClient = class _ParallClient extends TemplateCatalogClient {
54687
+ var ParallClient = class _ParallClient extends OrgDeletionClient {
54595
54688
  baseUrl;
54596
54689
  wikiBaseUrl;
54597
54690
  token;
@@ -68944,12 +69037,22 @@ function buildThreadConfigOverrides({ reasoningEffort, capabilityBinDir: capabil
68944
69037
  }
68945
69038
  return Object.keys(config).length > 0 ? config : void 0;
68946
69039
  }
69040
+ var PARALL_PROVIDER = "parall";
69041
+ function assertResumedOnCurrentSource(result, useParallProvider) {
69042
+ if (useParallProvider)
69043
+ return;
69044
+ const resumed = result;
69045
+ const provider = resumed?.modelProvider ?? resumed?.thread?.modelProvider;
69046
+ if (provider === PARALL_PROVIDER) {
69047
+ throw new Error("the thread was opened on the Parall model source, which this agent no longer uses");
69048
+ }
69049
+ }
68947
69050
  function buildThreadOpenParams(opts, threadConfig) {
68948
69051
  const commonParams = {
68949
69052
  approvalPolicy: normalizeApprovalPolicy(opts.approvalPolicy)
68950
69053
  };
68951
69054
  if (opts.useParallProvider) {
68952
- commonParams.modelProvider = "parall";
69055
+ commonParams.modelProvider = PARALL_PROVIDER;
68953
69056
  }
68954
69057
  commonParams.sandbox = normalizeSandbox(opts.sandbox);
68955
69058
  if (opts.developerInstructions) {
@@ -69226,7 +69329,7 @@ var CodexAppServerAdapter = class {
69226
69329
  /**
69227
69330
  * Replace the variables the agent's shell commands receive. They ride
69228
69331
  * `shell_environment_policy.set` in thread-open params, and a thread that
69229
- * is already open ignores a changed policy (probes/shell-env-0.166.0.md), so
69332
+ * is already open ignores a changed policy (probes/shell-env-0.169.0.md), so
69230
69333
  * a running app-server is restarted at the next safe point. A thread opened
69231
69334
  * after this call — a fork — carries the new set without that restart (same
69232
69335
  * record, S5). Re-sending the version already held changes nothing.
@@ -69827,6 +69930,8 @@ var CodexAppServerAdapter = class {
69827
69930
  ...commonParams
69828
69931
  } : { cwd: this.opts.workspaceDir, ...commonParams };
69829
69932
  const result = await client.sendRequest(method, params);
69933
+ if (opts.resumeId)
69934
+ assertResumedOnCurrentSource(result, this.opts.useParallProvider);
69830
69935
  const threadId = extractThreadId(result) ?? opts.resumeId;
69831
69936
  if (!threadId) {
69832
69937
  throw new Error(`${method} returned no thread id`);
@@ -115,6 +115,13 @@ var init_app_template_types = __esm({
115
115
  }
116
116
  });
117
117
 
118
+ // ts/sdk/dist/app-template-share-types.js
119
+ var init_app_template_share_types = __esm({
120
+ "ts/sdk/dist/app-template-share-types.js"() {
121
+ "use strict";
122
+ }
123
+ });
124
+
118
125
  // ts/sdk/dist/attachment-types.js
119
126
  var init_attachment_types = __esm({
120
127
  "ts/sdk/dist/attachment-types.js"() {
@@ -656,7 +663,13 @@ function appTemplateEndpoints(apiBase) {
656
663
  APP_TEMPLATES: `${apiBase}/app-templates`,
657
664
  APP_TEMPLATE: (id) => `${apiBase}/app-templates/${encodeURIComponent(id)}`,
658
665
  /** Where the answers' file paths start: one version's files. */
659
- APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`
666
+ APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`,
667
+ /** An app's share as a template: share or update (POST), read (GET),
668
+ * revoke (DELETE). */
669
+ MINI_APP_TEMPLATE_SHARE: (orgId, appId) => `${apiBase}/orgs/${orgId}/apps/${appId}/template-share`,
670
+ /** A shared template read from orgId, the reader's organization. */
671
+ SHARED_APP_TEMPLATE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}`,
672
+ SHARED_APP_TEMPLATE_PACKAGE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}/package`
660
673
  };
661
674
  }
662
675
  var init_app_template_endpoints = __esm({
@@ -689,6 +702,8 @@ var init_clip_connection_endpoints = __esm({
689
702
  CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
690
703
  EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
691
704
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
705
+ /** The publisher org's display-name request for one connector (PUT files, DELETE withdraws). */
706
+ ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/display-name-request`,
692
707
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
693
708
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
694
709
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
@@ -818,7 +833,11 @@ function billingEndpoints(apiBase) {
818
833
  BILLING_ACCOUNTS: (orgId) => `${apiBase}/orgs/${orgId}/billing/accounts`,
819
834
  BILLING_ACCOUNT_CLOSE: (orgId, accountId) => `${apiBase}/orgs/${orgId}/billing/accounts/${accountId}/close`,
820
835
  BILLING_SETTINGS: (orgId) => `${apiBase}/orgs/${orgId}/billing/settings`,
821
- COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`
836
+ COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`,
837
+ // Gift credits earned while an organisation sets itself up.
838
+ ONBOARDING_REWARDS: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards`,
839
+ ONBOARDING_REWARDS_ENROLL: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/enroll`,
840
+ ONBOARDING_REWARDS_SURFACE: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/surface`
822
841
  };
823
842
  }
824
843
  var init_billing_endpoints = __esm({
@@ -2860,6 +2879,20 @@ var init_clip_connection_client = __esm({
2860
2879
  async deleteMyConnection(orgId, connId) {
2861
2880
  return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
2862
2881
  }
2882
+ /**
2883
+ * Ask Parall to change the connector's display name (its author or a human
2884
+ * owner/admin of the publishing org). Nothing changes until review approves;
2885
+ * a new request replaces the pending one. `null` asks to show `name` again.
2886
+ */
2887
+ async requestClipDisplayName(orgId, clipId, displayName) {
2888
+ return this.request("PUT", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId), {
2889
+ display_name: displayName
2890
+ });
2891
+ }
2892
+ /** Withdraw the pending display-name request (404 when there is none). */
2893
+ async withdrawClipDisplayNameRequest(orgId, clipId) {
2894
+ await this.request("DELETE", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId));
2895
+ }
2863
2896
  };
2864
2897
  }
2865
2898
  });
@@ -3453,14 +3486,55 @@ var init_app_template_client = __esm({
3453
3486
  }
3454
3487
  });
3455
3488
 
3489
+ // ts/sdk/dist/app-template-share-client.js
3490
+ var SHARE_TIMEOUT_MS, AppTemplateShareClient;
3491
+ var init_app_template_share_client = __esm({
3492
+ "ts/sdk/dist/app-template-share-client.js"() {
3493
+ "use strict";
3494
+ init_app_template_client();
3495
+ init_constants();
3496
+ SHARE_TIMEOUT_MS = 1e5;
3497
+ AppTemplateShareClient = class extends AppTemplateClient {
3498
+ /** Share the app's current version as a template, or update its open
3499
+ * share to it (app.publish: an author of the app or an org owner/admin).
3500
+ * A 422 APP_TEMPLATE_SHARE_BLOCKED stores nothing; its findings are in
3501
+ * the error's extras. */
3502
+ async shareMiniAppTemplate(orgId, appId, data, opts) {
3503
+ return this.request("POST", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId), data, void 0, false, { timeoutMs: SHARE_TIMEOUT_MS, signal: opts?.signal });
3504
+ }
3505
+ /** The app's open share; null when it has none (never shared, revoked or
3506
+ * expired). */
3507
+ async getMiniAppTemplateShare(orgId, appId) {
3508
+ const res = await this.request("GET", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
3509
+ return res.share ?? null;
3510
+ }
3511
+ /** Revoke the app's open share: its link stops opening at once. Nothing
3512
+ * happens when the app has none. */
3513
+ async revokeMiniAppTemplateShare(orgId, appId) {
3514
+ await this.request("DELETE", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
3515
+ }
3516
+ /** A shared template, read from orgId — the reader's organization, not
3517
+ * the sharer's. 404 APP_TEMPLATE_NOT_FOUND for every link that does not
3518
+ * open, whatever the reason. */
3519
+ async getSharedAppTemplate(orgId, id, opts) {
3520
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE(orgId, id), void 0, void 0, false, opts);
3521
+ }
3522
+ /** Where to download a shared template's source, for a few minutes. */
3523
+ async getSharedAppTemplatePackage(orgId, id) {
3524
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE_PACKAGE(orgId, id));
3525
+ }
3526
+ };
3527
+ }
3528
+ });
3529
+
3456
3530
  // ts/sdk/dist/chat-team-grant-client.js
3457
3531
  var ChatTeamGrantClient;
3458
3532
  var init_chat_team_grant_client = __esm({
3459
3533
  "ts/sdk/dist/chat-team-grant-client.js"() {
3460
3534
  "use strict";
3461
- init_app_template_client();
3535
+ init_app_template_share_client();
3462
3536
  init_constants();
3463
- ChatTeamGrantClient = class extends AppTemplateClient {
3537
+ ChatTeamGrantClient = class extends AppTemplateShareClient {
3464
3538
  /** The chat's team grants, for its members. */
3465
3539
  async listChatTeamGrants(orgId, chatId) {
3466
3540
  return this.request("GET", ENDPOINTS.CHAT_TEAM_GRANTS(orgId, chatId));
@@ -3725,6 +3799,21 @@ var init_billing_client = __esm({
3725
3799
  async updateBillingSettings(orgId, req) {
3726
3800
  return this.request("PATCH", ENDPOINTS.BILLING_SETTINGS(orgId), req);
3727
3801
  }
3802
+ // ---- Onboarding rewards (gift credits earned while setting up) ----
3803
+ /** What the organisation has earned so far and what each step pays. */
3804
+ async getOnboardingRewards(orgId) {
3805
+ return this.request("GET", ENDPOINTS.ONBOARDING_REWARDS(orgId));
3806
+ }
3807
+ /** Start earning (the owner only). An organisation that does not qualify
3808
+ * answers 200 with `enrolled: false`; calling it again changes nothing. */
3809
+ async enrollOnboardingRewards(orgId) {
3810
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_ENROLL(orgId));
3811
+ }
3812
+ /** Record where the team works (owner or admin). Paid once, whatever is
3813
+ * chosen first; repeating it is a no-op. */
3814
+ async claimOnboardingSurface(orgId, surface) {
3815
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_SURFACE(orgId), { surface });
3816
+ }
3728
3817
  // The admin grant endpoints (POST/GET /internal/admin/orgs/
3729
3818
  // {id}/grants) intentionally do NOT live on this public client — they
3730
3819
  // are mounted on the unauthenticated `/internal/*` surface and reachable
@@ -3916,6 +4005,33 @@ var init_template_catalog_client = __esm({
3916
4005
  }
3917
4006
  });
3918
4007
 
4008
+ // ts/sdk/dist/org-deletion-client.js
4009
+ var orgDeletionPath, OrgDeletionClient;
4010
+ var init_org_deletion_client = __esm({
4011
+ "ts/sdk/dist/org-deletion-client.js"() {
4012
+ "use strict";
4013
+ init_constants();
4014
+ init_template_catalog_client();
4015
+ orgDeletionPath = (orgId) => `${API_BASE2}/orgs/${orgId}/deletion`;
4016
+ OrgDeletionClient = class extends TemplateCatalogClient {
4017
+ /**
4018
+ * Delete the organization: every member and agent loses access at once,
4019
+ * and its data is purged 30 days later. Only its owner, from a signed-in
4020
+ * session (an API key gets 403 JWT_REQUIRED), and never a personal
4021
+ * organization. `confirmName` must equal the organization's name exactly.
4022
+ * Refusals specific to this request are `ORG_DELETION_ERROR_CODES`.
4023
+ *
4024
+ * This is the deletion path; `deleteOrg` (`DELETE /orgs/{orgId}`) is always
4025
+ * refused by the server.
4026
+ */
4027
+ async requestOrgDeletion(orgId, confirmName) {
4028
+ const body = { confirm_name: confirmName };
4029
+ return this.request("POST", orgDeletionPath(orgId), body);
4030
+ }
4031
+ };
4032
+ }
4033
+ });
4034
+
3919
4035
  // ts/sdk/dist/wiki-changeset.js
3920
4036
  function normalizeWikiChangeset(changeset) {
3921
4037
  return {
@@ -3993,11 +4109,11 @@ var init_client = __esm({
3993
4109
  init_browser_viewer();
3994
4110
  init_wiki_upload();
3995
4111
  init_fetch_cause();
3996
- init_template_catalog_client();
4112
+ init_org_deletion_client();
3997
4113
  init_wiki_changeset();
3998
4114
  init_pagination();
3999
4115
  init_constants();
4000
- ParallClient = class _ParallClient extends TemplateCatalogClient {
4116
+ ParallClient = class _ParallClient extends OrgDeletionClient {
4001
4117
  baseUrl;
4002
4118
  wikiBaseUrl;
4003
4119
  token;
@@ -6721,6 +6837,22 @@ var init_org_accent_types = __esm({
6721
6837
  }
6722
6838
  });
6723
6839
 
6840
+ // ts/sdk/dist/org-deletion-types.js
6841
+ var ORG_DELETION_ERROR_CODES;
6842
+ var init_org_deletion_types = __esm({
6843
+ "ts/sdk/dist/org-deletion-types.js"() {
6844
+ "use strict";
6845
+ ORG_DELETION_ERROR_CODES = {
6846
+ /** 422: `confirm_name` differs from the name the server read, e.g. the organization was just renamed. */
6847
+ NAME_MISMATCH: "ORG_NAME_MISMATCH",
6848
+ /** 409: it lists a connector publicly, or another organization has one of its connectors installed. */
6849
+ HAS_PUBLIC_CLIPS: "ORG_HAS_PUBLIC_CLIPS",
6850
+ /** 409: one of its agents is also an active member of another organization. */
6851
+ HAS_SHARED_AGENTS: "ORG_HAS_SHARED_AGENTS"
6852
+ };
6853
+ }
6854
+ });
6855
+
6724
6856
  // ts/sdk/dist/org-unread-types.js
6725
6857
  var init_org_unread_types = __esm({
6726
6858
  "ts/sdk/dist/org-unread-types.js"() {
@@ -7464,6 +7596,7 @@ __export(dist_exports, {
7464
7596
  MENTION_ALL_AGENTS_USER_ID: () => MENTION_ALL_AGENTS_USER_ID,
7465
7597
  MENTION_ALL_HUMANS_USER_ID: () => MENTION_ALL_HUMANS_USER_ID,
7466
7598
  MENTION_ALL_USER_ID: () => MENTION_ALL_USER_ID,
7599
+ ORG_DELETION_ERROR_CODES: () => ORG_DELETION_ERROR_CODES,
7467
7600
  ORG_SECRET_AGENT_ADD_ACTION: () => ORG_SECRET_AGENT_ADD_ACTION,
7468
7601
  ORG_SECRET_REQUEST_ACTION: () => ORG_SECRET_REQUEST_ACTION,
7469
7602
  PLATFORM_DEFAULT_MODEL_BY_RUNTIME: () => PLATFORM_DEFAULT_MODEL_BY_RUNTIME,
@@ -7541,6 +7674,7 @@ var init_dist = __esm({
7541
7674
  init_agent_caller_scope_types();
7542
7675
  init_agent_team_only_types();
7543
7676
  init_app_template_types();
7677
+ init_app_template_share_types();
7544
7678
  init_attachment_types();
7545
7679
  init_approval_policy_types();
7546
7680
  init_attention_types();
@@ -7560,6 +7694,7 @@ var init_dist = __esm({
7560
7694
  init_mini_app_action_types();
7561
7695
  init_mini_app_types();
7562
7696
  init_org_accent_types();
7697
+ init_org_deletion_types();
7563
7698
  init_org_unread_types();
7564
7699
  init_read_receipt();
7565
7700
  init_runtime_observation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.93.0",
3
+ "version": "1.94.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.93.0",
38
- "@parall/sdk": "1.93.0",
39
- "@parall/claude-agent": "1.93.0",
40
- "@parall/openclaw-agent": "1.93.0",
41
- "@parall/codex-agent": "1.93.0"
37
+ "@parall/sdk": "1.94.0",
38
+ "@parall/agent-core": "1.94.0",
39
+ "@parall/claude-agent": "1.94.0",
40
+ "@parall/codex-agent": "1.94.0",
41
+ "@parall/openclaw-agent": "1.94.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",