@deepraxis/sdk 0.1.1-dev.441fd40 → 0.1.1-dev.44bea19
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 +37 -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 +84 -5
- package/dist/generated/sdk.gen.js +235 -4
- package/dist/generated/types.gen.d.ts +2196 -309
- package/dist/helpers/browser-actions.d.ts +84 -0
- package/dist/helpers/browser-actions.js +141 -0
- package/dist/helpers/browser-connect.d.ts +14 -2
- package/dist/helpers/browser-connect.js +156 -4
- package/dist/helpers/browser-decisions.d.ts +15 -0
- package/dist/helpers/browser-decisions.js +14 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +20 -11
- package/dist/operations.generated.d.ts +355 -10
- package/dist/operations.generated.js +465 -10
- package/dist/resources.generated.d.ts +52 -0
- package/dist/resources.generated.js +21 -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`. 631 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 |
|
|
@@ -1062,6 +1068,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1062
1068
|
|
|
1063
1069
|
## media
|
|
1064
1070
|
|
|
1071
|
+
### media.assets
|
|
1072
|
+
|
|
1073
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1074
|
+
|---|---|---|---|---|
|
|
1075
|
+
| lineage | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}/lineage` | no | no |
|
|
1076
|
+
|
|
1065
1077
|
### media.generation.capabilities
|
|
1066
1078
|
|
|
1067
1079
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1077,6 +1089,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1077
1089
|
| list | GET | `/media/v1/libraries` | no | yes |
|
|
1078
1090
|
| restore | POST | `/media/v1/libraries/{library_id}/restore` | no | no |
|
|
1079
1091
|
| retrieve | GET | `/media/v1/libraries/{library_id}` | no | no |
|
|
1092
|
+
| retrieveDefault | GET | `/media/v1/libraries/default` | no | no |
|
|
1093
|
+
| setDefault | PUT | `/media/v1/libraries/default` | no | no |
|
|
1080
1094
|
| update | PATCH | `/media/v1/libraries/{library_id}` | no | no |
|
|
1081
1095
|
|
|
1082
1096
|
### media.libraries.assets
|
|
@@ -1360,6 +1374,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1360
1374
|
| create | POST | `/ontology/v1/nodes` | no | no |
|
|
1361
1375
|
| list | GET | `/ontology/v1/nodes` | no | yes |
|
|
1362
1376
|
| retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1377
|
+
| retrieveNeighborhood | GET | `/ontology/v1/nodes/{node_id}/neighborhood` | no | no |
|
|
1363
1378
|
| update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1364
1379
|
|
|
1365
1380
|
### ontology.nodes.merge
|
|
@@ -1681,6 +1696,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1681
1696
|
| retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
|
|
1682
1697
|
| update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1683
1698
|
|
|
1699
|
+
### studio.works.drafts.renditions
|
|
1700
|
+
|
|
1701
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1702
|
+
|---|---|---|---|---|
|
|
1703
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/renditions` | no | no |
|
|
1704
|
+
|
|
1684
1705
|
### studio.works.drafts.status
|
|
1685
1706
|
|
|
1686
1707
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1695,6 +1716,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1695
1716
|
| batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
|
|
1696
1717
|
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
|
|
1697
1718
|
|
|
1719
|
+
### studio.works.renditions
|
|
1720
|
+
|
|
1721
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1722
|
+
|---|---|---|---|---|
|
|
1723
|
+
| delete | DELETE | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1724
|
+
| list | GET | `/studio/v1/works/{work}/renditions` | no | no |
|
|
1725
|
+
| publish | POST | `/studio/v1/works/{work}/renditions/{rendition}:publish` | no | no |
|
|
1726
|
+
| render | POST | `/studio/v1/works/{work}/renditions/{rendition}:render` | no | no |
|
|
1727
|
+
| retrieve | GET | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1728
|
+
| retrieveContent | GET | `/studio/v1/works/{work}/renditions/{rendition}/content` | no | no |
|
|
1729
|
+
| update | PATCH | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1730
|
+
|
|
1698
1731
|
### studio.works.units
|
|
1699
1732
|
|
|
1700
1733
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1949,6 +1982,9 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1949
1982
|
| crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
|
|
1950
1983
|
| database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
|
|
1951
1984
|
| file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
|
|
1985
|
+
| media.libraries.retrieveDefault | ADR-094 §9 names the default-library read libraries.retrieveDefault; the URL names a reference rather than an id, so the path-derived name would otherwise read as retrieving a library called default. |
|
|
1986
|
+
| media.libraries.setDefault | ADR-094 §9 names the default-library write libraries.setDefault; the URL has no library id because the organization owns one default library, so the path alone cannot say which. |
|
|
1987
|
+
| media.assets.lineage | ADR-094 §9 names the edit-tree read assets.lineage; lineage is the product verb and the URL nesting under a library is a mount, not an SDK resource level. |
|
|
1952
1988
|
| meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
|
|
1953
1989
|
| sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
1954
1990
|
| sandbox.sandboxes.files.remove | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
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.
|