@deepraxis/sdk 0.1.1-dev.da8587f → 0.1.1-dev.daf2585
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/METHODS.md +126 -1
- package/README.md +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +330 -10
- package/dist/generated/sdk.gen.js +1045 -9
- package/dist/generated/types.gen.d.ts +27474 -21959
- package/dist/helpers/browser-actions.d.ts +84 -0
- package/dist/helpers/browser-actions.js +141 -0
- package/dist/helpers/browser-connect.d.ts +26 -2
- package/dist/helpers/browser-connect.js +263 -25
- package/dist/helpers/browser-decisions.d.ts +44 -0
- package/dist/helpers/browser-decisions.js +53 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +20 -11
- package/dist/operations.generated.d.ts +1830 -12
- package/dist/operations.generated.js +2263 -12
- package/dist/resources.generated.d.ts +118 -1
- package/dist/resources.generated.js +86 -0
- package/package.json +1 -1
package/METHODS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SDK methods
|
|
2
2
|
|
|
3
|
-
Generated by `bun run generate`.
|
|
3
|
+
Generated by `bun run generate`. 620 HTTP operations, plus product aliases. Version segments and path parameters are omitted from resource names. Inputs use typed `{ path, query, body, headers }` options. Collections form nested resource objects; POST actions retain their verb. Naming rules are documented in `scripts/resources.ts`; semantic exceptions and aliases with reasons are in `scripts/naming-overrides.ts`.
|
|
4
4
|
|
|
5
5
|
`always` returns an AsyncIterable; `optional` streams with `{ stream: true }`; `yes` pagination returns a Page. Only `{ data, next_cursor }` + `cursor` query contracts are automatically paginated.
|
|
6
6
|
|
|
@@ -582,6 +582,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
582
582
|
| stream | GET | `/browser/v1/sessions/{sessionId}/stream` | always | no |
|
|
583
583
|
| update | POST | `/browser/v1/sessions/{sessionId}` | no | no |
|
|
584
584
|
|
|
585
|
+
### browser.sessions.actions
|
|
586
|
+
|
|
587
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
588
|
+
|---|---|---|---|---|
|
|
589
|
+
| create | POST | `/browser/v1/sessions/{sessionId}/actions` | no | no |
|
|
590
|
+
|
|
585
591
|
### browser.sessions.events
|
|
586
592
|
|
|
587
593
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1360,6 +1366,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1360
1366
|
| create | POST | `/ontology/v1/nodes` | no | no |
|
|
1361
1367
|
| list | GET | `/ontology/v1/nodes` | no | yes |
|
|
1362
1368
|
| retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1369
|
+
| retrieveNeighborhood | GET | `/ontology/v1/nodes/{node_id}/neighborhood` | no | no |
|
|
1363
1370
|
| update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1364
1371
|
|
|
1365
1372
|
### ontology.nodes.merge
|
|
@@ -1592,6 +1599,124 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1592
1599
|
|---|---|---|---|---|
|
|
1593
1600
|
| create | POST | `/search/v1/search` | no | no |
|
|
1594
1601
|
|
|
1602
|
+
## studio
|
|
1603
|
+
|
|
1604
|
+
### studio.codexes
|
|
1605
|
+
|
|
1606
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1607
|
+
|---|---|---|---|---|
|
|
1608
|
+
| create | POST | `/studio/v1/codexes` | no | no |
|
|
1609
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}` | no | no |
|
|
1610
|
+
| list | GET | `/studio/v1/codexes` | no | no |
|
|
1611
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}` | no | no |
|
|
1612
|
+
| update | PATCH | `/studio/v1/codexes/{codex}` | no | no |
|
|
1613
|
+
|
|
1614
|
+
### studio.codexes.entries
|
|
1615
|
+
|
|
1616
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1617
|
+
|---|---|---|---|---|
|
|
1618
|
+
| create | POST | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1619
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1620
|
+
| list | GET | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1621
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1622
|
+
| update | PATCH | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1623
|
+
|
|
1624
|
+
### studio.genres
|
|
1625
|
+
|
|
1626
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1627
|
+
|---|---|---|---|---|
|
|
1628
|
+
| list | GET | `/studio/v1/genres` | no | no |
|
|
1629
|
+
| retrieve | GET | `/studio/v1/genres/{genre}` | no | no |
|
|
1630
|
+
|
|
1631
|
+
### studio.platforms
|
|
1632
|
+
|
|
1633
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1634
|
+
|---|---|---|---|---|
|
|
1635
|
+
| list | GET | `/studio/v1/platforms` | no | no |
|
|
1636
|
+
| retrieve | GET | `/studio/v1/platforms/{platform}` | no | no |
|
|
1637
|
+
|
|
1638
|
+
### studio.styles
|
|
1639
|
+
|
|
1640
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1641
|
+
|---|---|---|---|---|
|
|
1642
|
+
| create | POST | `/studio/v1/styles` | no | no |
|
|
1643
|
+
| delete | DELETE | `/studio/v1/styles/{style}` | no | no |
|
|
1644
|
+
| list | GET | `/studio/v1/styles` | no | no |
|
|
1645
|
+
| retrieve | GET | `/studio/v1/styles/{style}` | no | no |
|
|
1646
|
+
| update | PATCH | `/studio/v1/styles/{style}` | no | no |
|
|
1647
|
+
|
|
1648
|
+
### studio.templates
|
|
1649
|
+
|
|
1650
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1651
|
+
|---|---|---|---|---|
|
|
1652
|
+
| create | POST | `/studio/v1/templates` | no | no |
|
|
1653
|
+
| delete | DELETE | `/studio/v1/templates/{template}` | no | no |
|
|
1654
|
+
| list | GET | `/studio/v1/templates` | no | no |
|
|
1655
|
+
| retrieve | GET | `/studio/v1/templates/{template}` | no | no |
|
|
1656
|
+
|
|
1657
|
+
### studio.themes
|
|
1658
|
+
|
|
1659
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1660
|
+
|---|---|---|---|---|
|
|
1661
|
+
| create | POST | `/studio/v1/themes` | no | no |
|
|
1662
|
+
| delete | DELETE | `/studio/v1/themes/{theme}` | no | no |
|
|
1663
|
+
| list | GET | `/studio/v1/themes` | no | no |
|
|
1664
|
+
| retrieve | GET | `/studio/v1/themes/{theme}` | no | no |
|
|
1665
|
+
| update | PATCH | `/studio/v1/themes/{theme}` | no | no |
|
|
1666
|
+
|
|
1667
|
+
### studio.works
|
|
1668
|
+
|
|
1669
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1670
|
+
|---|---|---|---|---|
|
|
1671
|
+
| create | POST | `/studio/v1/works` | no | no |
|
|
1672
|
+
| list | GET | `/studio/v1/works` | no | no |
|
|
1673
|
+
| resolve | GET | `/studio/v1/works:resolve` | no | no |
|
|
1674
|
+
| retrieve | GET | `/studio/v1/works/{work}` | no | no |
|
|
1675
|
+
| update | PATCH | `/studio/v1/works/{work}` | no | no |
|
|
1676
|
+
| updateBrief | PATCH | `/studio/v1/works/{work}/brief` | no | no |
|
|
1677
|
+
|
|
1678
|
+
### studio.works.drafts
|
|
1679
|
+
|
|
1680
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1681
|
+
|---|---|---|---|---|
|
|
1682
|
+
| create | POST | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1683
|
+
| list | GET | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1684
|
+
| rebase | POST | `/studio/v1/works/{work}/drafts/{draft}:rebase` | no | no |
|
|
1685
|
+
| retrieve | GET | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1686
|
+
| retrieveExport | GET | `/studio/v1/works/{work}/drafts/{draft}/export` | no | no |
|
|
1687
|
+
| retrieveOutline | GET | `/studio/v1/works/{work}/drafts/{draft}/outline` | no | no |
|
|
1688
|
+
| retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
|
|
1689
|
+
| update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1690
|
+
|
|
1691
|
+
### studio.works.drafts.status
|
|
1692
|
+
|
|
1693
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1694
|
+
|---|---|---|---|---|
|
|
1695
|
+
| list | GET | `/studio/v1/works/{work}/drafts/{draft}/status` | no | no |
|
|
1696
|
+
|
|
1697
|
+
### studio.works.drafts.units
|
|
1698
|
+
|
|
1699
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1700
|
+
|---|---|---|---|---|
|
|
1701
|
+
| batchCreate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchCreate` | no | no |
|
|
1702
|
+
| batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
|
|
1703
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
|
|
1704
|
+
|
|
1705
|
+
### studio.works.units
|
|
1706
|
+
|
|
1707
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1708
|
+
|---|---|---|---|---|
|
|
1709
|
+
| move | POST | `/studio/v1/works/{work}/units/{unit}:move` | no | no |
|
|
1710
|
+
| retrieve | GET | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1711
|
+
| retrieveContext | GET | `/studio/v1/works/{work}/units/{unit}/context` | no | no |
|
|
1712
|
+
| update | PATCH | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1713
|
+
|
|
1714
|
+
### studio.works.units.blocks
|
|
1715
|
+
|
|
1716
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1717
|
+
|---|---|---|---|---|
|
|
1718
|
+
| patch | POST | `/studio/v1/works/{work}/units/{unit}/blocks:patch` | no | no |
|
|
1719
|
+
|
|
1595
1720
|
## ticket
|
|
1596
1721
|
|
|
1597
1722
|
### ticket.activity
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ console.log(completion.choices[0]?.message.content);
|
|
|
33
33
|
## Why this SDK
|
|
34
34
|
|
|
35
35
|
- **The whole platform, one client.** About 350 operations across models, agents, sandboxes,
|
|
36
|
-
|
|
36
|
+
browsers, web search, databases, knowledge bases, files, media, automation and hosted
|
|
37
37
|
applications, generated from the same contract as the API.
|
|
38
38
|
- **Types from the contract.** Every path, query, body and response is typed, including the
|
|
39
39
|
events of each stream, so your editor knows what comes back.
|