@deepraxis/sdk 0.1.1-dev.22936b5 → 0.1.1-dev.23e4fb5
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 +122 -1
- package/README.md +3 -3
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +227 -33
- package/dist/generated/sdk.gen.js +605 -34
- package/dist/generated/types.gen.d.ts +3234 -354
- package/dist/helpers/browser-connect.js +5 -4
- package/dist/helpers/browser-decisions.d.ts +13 -0
- package/dist/helpers/browser-decisions.js +11 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +4 -2
- package/dist/operations.generated.d.ts +1 -0
- package/dist/operations.generated.js +1326 -58
- package/dist/resources.generated.d.ts +157 -61
- package/dist/resources.generated.js +73 -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`. 887 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
|
|
|
@@ -69,6 +69,13 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
69
69
|
|---|---|---|---|---|
|
|
70
70
|
| list | GET | `/agent/v1/agents/{agent_id}/inbox/letters` | no | no |
|
|
71
71
|
|
|
72
|
+
### agent.agents.phone
|
|
73
|
+
|
|
74
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
75
|
+
|---|---|---|---|---|
|
|
76
|
+
| release | POST | `/agent/v1/agents/{agent_id}/phone/release` | no | no |
|
|
77
|
+
| retrieve | GET | `/agent/v1/agents/{agent_id}/phone` | no | no |
|
|
78
|
+
|
|
72
79
|
### agent.agents.unarchive
|
|
73
80
|
|
|
74
81
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -107,6 +114,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
107
114
|
| list | GET | `/agent/v1/computers/{computer_id}/files` | no | no |
|
|
108
115
|
| retrieveContent | GET | `/agent/v1/computers/{computer_id}/files/content` | no | no |
|
|
109
116
|
| retrievePreview | GET | `/agent/v1/computers/{computer_id}/files/preview` | no | no |
|
|
117
|
+
| updateContent | PUT | `/agent/v1/computers/{computer_id}/files/content` | no | no |
|
|
110
118
|
|
|
111
119
|
### agent.computers.files.convert
|
|
112
120
|
|
|
@@ -588,6 +596,14 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
588
596
|
| list | GET | `/automation/v1/workflows/{ns}/{name}/versions` | no | yes |
|
|
589
597
|
| retrieve | GET | `/automation/v1/workflows/{ns}/{name}/versions/{version}` | no | no |
|
|
590
598
|
|
|
599
|
+
## billing
|
|
600
|
+
|
|
601
|
+
### billing.prices
|
|
602
|
+
|
|
603
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
604
|
+
|---|---|---|---|---|
|
|
605
|
+
| list | GET | `/billing/v1/prices` | no | no |
|
|
606
|
+
|
|
591
607
|
## browser
|
|
592
608
|
|
|
593
609
|
### browser.connect
|
|
@@ -1062,6 +1078,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1062
1078
|
|
|
1063
1079
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1064
1080
|
|---|---|---|---|---|
|
|
1081
|
+
| create | POST | `/devops/v1/projects` | no | no |
|
|
1065
1082
|
| list | GET | `/devops/v1/projects` | no | no |
|
|
1066
1083
|
| retrieve | GET | `/devops/v1/projects/{id}` | no | no |
|
|
1067
1084
|
| retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
|
|
@@ -1075,6 +1092,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1075
1092
|
| create | POST | `/devops/v1/projects/{project}/changes` | no | no |
|
|
1076
1093
|
| list | GET | `/devops/v1/projects/{project}/changes` | no | no |
|
|
1077
1094
|
|
|
1095
|
+
### devops.projects.cleanups
|
|
1096
|
+
|
|
1097
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1098
|
+
|---|---|---|---|---|
|
|
1099
|
+
| list | GET | `/devops/v1/projects/{project}/cleanups` | no | no |
|
|
1100
|
+
|
|
1101
|
+
### devops.projects.defaultBranch
|
|
1102
|
+
|
|
1103
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1104
|
+
|---|---|---|---|---|
|
|
1105
|
+
| initialize | POST | `/devops/v1/projects/{id}/default-branch:initialize` | no | no |
|
|
1106
|
+
|
|
1078
1107
|
### devops.projects.environments
|
|
1079
1108
|
|
|
1080
1109
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1195,6 +1224,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1195
1224
|
|---|---|---|---|---|
|
|
1196
1225
|
| approve | POST | `/devops/v1/promotions/{id}:approve` | no | no |
|
|
1197
1226
|
| cancel | POST | `/devops/v1/promotions/{id}:cancel` | no | no |
|
|
1227
|
+
| checkoutCredential | POST | `/devops/v1/promotions/{id}:checkoutCredential` | no | no |
|
|
1198
1228
|
| conclude | POST | `/devops/v1/promotions/{id}:conclude` | no | no |
|
|
1199
1229
|
| create | POST | `/devops/v1/promotions` | no | no |
|
|
1200
1230
|
| retrieve | GET | `/devops/v1/promotions/{id}` | no | no |
|
|
@@ -1216,6 +1246,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1216
1246
|
| rerunGate | POST | `/devops/v1/pull-requests/{id}:rerunGate` | no | no |
|
|
1217
1247
|
| retrieve | GET | `/devops/v1/pull-requests/{id}` | no | no |
|
|
1218
1248
|
|
|
1249
|
+
### devops.pullRequests.reviews
|
|
1250
|
+
|
|
1251
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1252
|
+
|---|---|---|---|---|
|
|
1253
|
+
| create | POST | `/devops/v1/pull-requests/{id}/reviews` | no | no |
|
|
1254
|
+
|
|
1219
1255
|
### devops.releases
|
|
1220
1256
|
|
|
1221
1257
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1871,6 +1907,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1871
1907
|
|---|---|---|---|---|
|
|
1872
1908
|
| create | POST | `/organization/v1/departments/{id}/dissolve` | no | no |
|
|
1873
1909
|
|
|
1910
|
+
### organization.effectiveSpec
|
|
1911
|
+
|
|
1912
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1913
|
+
|---|---|---|---|---|
|
|
1914
|
+
| retrieve | GET | `/organization/v1/effective_spec` | no | no |
|
|
1915
|
+
|
|
1874
1916
|
### organization.events
|
|
1875
1917
|
|
|
1876
1918
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -2020,6 +2062,41 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2020
2062
|
|---|---|---|---|---|
|
|
2021
2063
|
| create | POST | `/organization/v1/positions/{id}/unfreeze` | no | no |
|
|
2022
2064
|
|
|
2065
|
+
### organization.reconcile
|
|
2066
|
+
|
|
2067
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2068
|
+
|---|---|---|---|---|
|
|
2069
|
+
| pause | POST | `/organization/v1/reconcile/pause` | no | no |
|
|
2070
|
+
| resume | POST | `/organization/v1/reconcile/resume` | no | no |
|
|
2071
|
+
| retrievePlan | GET | `/organization/v1/reconcile/plan` | no | no |
|
|
2072
|
+
|
|
2073
|
+
### organization.reconcile.run
|
|
2074
|
+
|
|
2075
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2076
|
+
|---|---|---|---|---|
|
|
2077
|
+
| create | POST | `/organization/v1/reconcile/run` | no | no |
|
|
2078
|
+
|
|
2079
|
+
### organization.reconcile.status
|
|
2080
|
+
|
|
2081
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2082
|
+
|---|---|---|---|---|
|
|
2083
|
+
| list | GET | `/organization/v1/reconcile/status` | no | no |
|
|
2084
|
+
|
|
2085
|
+
### organization.specs
|
|
2086
|
+
|
|
2087
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2088
|
+
|---|---|---|---|---|
|
|
2089
|
+
| list | GET | `/organization/v1/specs` | no | no |
|
|
2090
|
+
| retrieve | GET | `/organization/v1/specs/{kind}/{id}` | no | no |
|
|
2091
|
+
| retrieveDiff | GET | `/organization/v1/specs/{kind}/{id}/diff` | no | no |
|
|
2092
|
+
| update | PUT | `/organization/v1/specs/{kind}/{id}` | no | no |
|
|
2093
|
+
|
|
2094
|
+
### organization.specs.revisions
|
|
2095
|
+
|
|
2096
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2097
|
+
|---|---|---|---|---|
|
|
2098
|
+
| list | GET | `/organization/v1/specs/{kind}/{id}/revisions` | no | no |
|
|
2099
|
+
|
|
2023
2100
|
### organization.usage
|
|
2024
2101
|
|
|
2025
2102
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -2045,7 +2122,9 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2045
2122
|
|
|
2046
2123
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
2047
2124
|
|---|---|---|---|---|
|
|
2125
|
+
| retrieveCompare | GET | `/registry/v1/packages/{package_id}/git/compare` | no | no |
|
|
2048
2126
|
| retrieveLog | GET | `/registry/v1/packages/{package_id}/git/log` | no | no |
|
|
2127
|
+
| retrieveResolve | GET | `/registry/v1/packages/{package_id}/git/resolve` | no | no |
|
|
2049
2128
|
|
|
2050
2129
|
### registry.packages.git.commits
|
|
2051
2130
|
|
|
@@ -2059,11 +2138,24 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2059
2138
|
|---|---|---|---|---|
|
|
2060
2139
|
| retrieve | GET | `/registry/v1/packages/{package_id}/git/files/{path}` | no | no |
|
|
2061
2140
|
|
|
2141
|
+
### registry.packages.git.refs
|
|
2142
|
+
|
|
2143
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2144
|
+
|---|---|---|---|---|
|
|
2145
|
+
| list | GET | `/registry/v1/packages/{package_id}/git/refs` | no | no |
|
|
2146
|
+
|
|
2062
2147
|
### registry.packages.git.trees
|
|
2063
2148
|
|
|
2064
2149
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
2065
2150
|
|---|---|---|---|---|
|
|
2066
2151
|
| retrieve | GET | `/registry/v1/packages/{package_id}/git/trees/{sha}` | no | no |
|
|
2152
|
+
| retrieveRecursive | GET | `/registry/v1/packages/{package_id}/git/trees/{sha}/recursive` | no | no |
|
|
2153
|
+
|
|
2154
|
+
### registry.packages.gitCredential
|
|
2155
|
+
|
|
2156
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2157
|
+
|---|---|---|---|---|
|
|
2158
|
+
| create | POST | `/registry/v1/packages/{package_id}/git-credential` | no | no |
|
|
2067
2159
|
|
|
2068
2160
|
### registry.packages.installations
|
|
2069
2161
|
|
|
@@ -2112,6 +2204,33 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2112
2204
|
|
|
2113
2205
|
## sandbox
|
|
2114
2206
|
|
|
2207
|
+
### sandbox.byod.devices
|
|
2208
|
+
|
|
2209
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2210
|
+
|---|---|---|---|---|
|
|
2211
|
+
| list | GET | `/sandbox/v1/byod/devices` | no | no |
|
|
2212
|
+
| retrieve | GET | `/sandbox/v1/byod/devices/{deviceID}` | no | no |
|
|
2213
|
+
| update | PATCH | `/sandbox/v1/byod/devices/{deviceID}` | no | no |
|
|
2214
|
+
|
|
2215
|
+
### sandbox.byod.devices.disconnect
|
|
2216
|
+
|
|
2217
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2218
|
+
|---|---|---|---|---|
|
|
2219
|
+
| create | POST | `/sandbox/v1/byod/devices/{deviceID}/disconnect` | no | no |
|
|
2220
|
+
|
|
2221
|
+
### sandbox.byod.pairings
|
|
2222
|
+
|
|
2223
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2224
|
+
|---|---|---|---|---|
|
|
2225
|
+
| create | POST | `/sandbox/v1/byod/pairings` | no | no |
|
|
2226
|
+
| retrieve | GET | `/sandbox/v1/byod/pairings/{code}` | no | no |
|
|
2227
|
+
|
|
2228
|
+
### sandbox.byod.pairings.claim
|
|
2229
|
+
|
|
2230
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2231
|
+
|---|---|---|---|---|
|
|
2232
|
+
| create | POST | `/sandbox/v1/byod/pairings/{code}/claim` | no | no |
|
|
2233
|
+
|
|
2115
2234
|
### sandbox.events.sandboxes
|
|
2116
2235
|
|
|
2117
2236
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -2667,6 +2786,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2667
2786
|
|---|---|
|
|
2668
2787
|
| agent.agents.updateEmbedPolicy | The embed policy is a singleton of the agent; POST updates it in part, so it pairs with retrieveEmbedPolicy as agents.updateEmbedPolicy rather than a nested embedPolicy collection create. |
|
|
2669
2788
|
| agent.agents.events.send | ADR-123 (#1550): the agent-subject door fires the session events operation, so it takes the same product verb as sessions.events.send; the path alone would derive events.create. |
|
|
2789
|
+
| agent.agents.phone.retrieve | ticket-3311: reading the agent's cloud phone is agents.phone.retrieve; the path alone would derive agents.retrievePhone, which does not name the sub-resource. |
|
|
2790
|
+
| agent.agents.phone.release | ticket-3311: release is the act on the agent's cloud phone (the row is marked, then the cron archives and kills it); the path alone would derive agents.phone.release.create. |
|
|
2670
2791
|
| agent.sessions.events.send | Events submit session input; the product verb is send rather than create. |
|
|
2671
2792
|
| automation.hooks.send | Delivers a payload to a trigger's secret webhook URL; it sends an event rather than updating a hook resource. |
|
|
2672
2793
|
| automation.scripts.distTags.set | A dist-tag assigns a version to a name; use npm vocabulary set rather than update. |
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ The official TypeScript SDK for [Praxis](https://deepraxis.com), the cloud where
|
|
|
10
10
|
[](https://bundlephobia.com/package/@deepraxis/sdk)
|
|
11
11
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
12
12
|
|
|
13
|
-
[Website](https://deepraxis.com) · [Documentation](https://docs.deepraxis.com) · [API reference](https://docs.deepraxis.com/
|
|
13
|
+
[Website](https://deepraxis.com) · [Documentation](https://docs.deepraxis.com) · [API reference](https://docs.deepraxis.com/api) · [Console](https://console.deepraxis.com)
|
|
14
14
|
|
|
15
15
|
</div>
|
|
16
16
|
|
|
@@ -262,13 +262,13 @@ export default async (input: { prompt: string }) => {
|
|
|
262
262
|
|
|
263
263
|
Keep your code and point the official SDK at Praxis by changing `baseURL`, for example
|
|
264
264
|
`https://api.deepraxis.com/openai/v1` for the OpenAI SDK. The
|
|
265
|
-
[SDK cookbook](https://docs.deepraxis.com/
|
|
265
|
+
[SDK cookbook](https://docs.deepraxis.com/cookbook/sdk) has the details for OpenAI,
|
|
266
266
|
Anthropic, the Vercel AI SDK and LangChain. This SDK covers what those don't: agents,
|
|
267
267
|
sandboxes, search, data, automation and the rest of the platform.
|
|
268
268
|
|
|
269
269
|
## Resources
|
|
270
270
|
|
|
271
|
-
- [Documentation](https://docs.deepraxis.com) and [API reference](https://docs.deepraxis.com/
|
|
271
|
+
- [Documentation](https://docs.deepraxis.com) and [API reference](https://docs.deepraxis.com/api)
|
|
272
272
|
- [METHODS.md](https://unpkg.com/@deepraxis/sdk/METHODS.md): every method, its HTTP route, and whether it streams or paginates
|
|
273
273
|
- [Praxis CLI](https://www.npmjs.com/package/@deepraxis/cli): the same API from your terminal
|
|
274
274
|
|