deepline 0.1.65 → 0.1.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -179,10 +179,10 @@ import { join as join2 } from "path";
179
179
 
180
180
  // src/release.ts
181
181
  var SDK_RELEASE = {
182
- version: "0.1.65",
182
+ version: "0.1.67",
183
183
  apiContract: "2026-05-play-bootstrap-dataset-summary",
184
184
  supportPolicy: {
185
- latest: "0.1.65",
185
+ latest: "0.1.67",
186
186
  minimumSupported: "0.1.53",
187
187
  deprecatedBelow: "0.1.53"
188
188
  }
@@ -433,6 +433,9 @@ var HttpClient = class {
433
433
  headers
434
434
  });
435
435
  }
436
+ async patch(path, body, headers) {
437
+ return this.request(path, { method: "PATCH", body, headers });
438
+ }
436
439
  /**
437
440
  * Send a DELETE request.
438
441
  *
@@ -1556,6 +1559,61 @@ var DeeplineClient = class {
1556
1559
  return this.http.delete(`/api/v2/plays/${encodedName}`);
1557
1560
  }
1558
1561
  // ——————————————————————————————————————————————————————————
1562
+ // Plays — public share pages
1563
+ // ——————————————————————————————————————————————————————————
1564
+ /**
1565
+ * Current share status for a play: the public page (if any), the published
1566
+ * copy, and the revision picker. Read-only.
1567
+ */
1568
+ async getSharePage(name) {
1569
+ const encodedName = encodeURIComponent(name);
1570
+ return this.http.get(`/api/v2/plays/${encodedName}/share`);
1571
+ }
1572
+ /**
1573
+ * Publish (or repoint) the play's public share page to a revision. Requires
1574
+ * `acknowledgedUnlisted: true` — the page is publicly viewable. Org-admin only.
1575
+ */
1576
+ async publishSharePage(name, request) {
1577
+ const encodedName = encodeURIComponent(name);
1578
+ return this.http.post(
1579
+ `/api/v2/plays/${encodedName}/share`,
1580
+ request
1581
+ );
1582
+ }
1583
+ /**
1584
+ * Update share-page settings (SEO indexing, credit-cost / latency display)
1585
+ * without moving the published pointer. Org-admin only.
1586
+ */
1587
+ async updateSharePage(name, request) {
1588
+ const encodedName = encodeURIComponent(name);
1589
+ return this.http.patch(
1590
+ `/api/v2/plays/${encodedName}/share`,
1591
+ request
1592
+ );
1593
+ }
1594
+ /**
1595
+ * Unshare: hard-delete the play's public page and its cards. Returns the
1596
+ * fresh status (now `share: null`). Org-admin only. Idempotent — a no-op when
1597
+ * the play was never published.
1598
+ */
1599
+ async unpublishSharePage(name) {
1600
+ const encodedName = encodeURIComponent(name);
1601
+ return this.http.delete(
1602
+ `/api/v2/plays/${encodedName}/share`
1603
+ );
1604
+ }
1605
+ /**
1606
+ * Regenerate the LLM landing-page copy for a revision (defaults to the
1607
+ * published one). Org-admin only.
1608
+ */
1609
+ async regenerateSharePage(name, request = {}) {
1610
+ const encodedName = encodeURIComponent(name);
1611
+ return this.http.post(
1612
+ `/api/v2/plays/${encodedName}/share/regenerate`,
1613
+ request
1614
+ );
1615
+ }
1616
+ // ——————————————————————————————————————————————————————————
1559
1617
  // Plays — high-level orchestration
1560
1618
  // ——————————————————————————————————————————————————————————
1561
1619
  /**