@deepraxis/sdk 0.1.1-dev.d2b8440 → 0.1.1-dev.d326820

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # SDK methods
2
2
 
3
- Generated by `bun run generate`. 817 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`.
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
 
@@ -17,7 +17,9 @@ Multipart request bodies expand plain objects into bracketed fields (for example
17
17
  | list | GET | `/agent/v1/agents` | no | no |
18
18
  | retrieve | GET | `/agent/v1/agents/{agent_id}` | no | no |
19
19
  | retrieveAppearance | GET | `/agent/v1/agents/{agent_id}/appearance` | no | no |
20
+ | retrieveEmbedPolicy | GET | `/agent/v1/agents/{agent_id}/embed_policy` | no | no |
20
21
  | update | POST | `/agent/v1/agents/{agent_id}` | no | no |
22
+ | updateEmbedPolicy | POST | `/agent/v1/agents/{agent_id}/embed_policy` | no | no |
21
23
 
22
24
  ### agent.agents.consolidations
23
25
 
@@ -35,25 +37,6 @@ Multipart request bodies expand plain objects into bracketed fields (for example
35
37
  | retrieve | GET | `/agent/v1/agents/{agent_id}/customers/{customer_id}` | no | no |
36
38
  | retrieveDeletion | GET | `/agent/v1/agents/{agent_id}/customers/{customer_id}/deletion` | no | no |
37
39
 
38
- ### agent.agents.customers.auth.accessTokens
39
-
40
- | Method | HTTP | Path | Streaming | Pagination |
41
- |---|---|---|---|---|
42
- | create | POST | `/agent/v1/agents/{agent_id}/customers/auth/access_tokens` | no | no |
43
- | deleteCurrent | DELETE | `/agent/v1/agents/{agent_id}/customers/auth/access_tokens/current` | no | no |
44
-
45
- ### agent.agents.customers.auth.accessTokens.renew
46
-
47
- | Method | HTTP | Path | Streaming | Pagination |
48
- |---|---|---|---|---|
49
- | create | POST | `/agent/v1/agents/{agent_id}/customers/auth/access_tokens/renew` | no | no |
50
-
51
- ### agent.agents.customers.auth.grantCodes
52
-
53
- | Method | HTTP | Path | Streaming | Pagination |
54
- |---|---|---|---|---|
55
- | create | POST | `/agent/v1/agents/{agent_id}/customers/auth/grant_codes` | no | no |
56
-
57
40
  ### agent.agents.customers.block
58
41
 
59
42
  | Method | HTTP | Path | Streaming | Pagination |
@@ -86,6 +69,13 @@ Multipart request bodies expand plain objects into bracketed fields (for example
86
69
  |---|---|---|---|---|
87
70
  | list | GET | `/agent/v1/agents/{agent_id}/inbox/letters` | no | no |
88
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
+
89
79
  ### agent.agents.unarchive
90
80
 
91
81
  | Method | HTTP | Path | Streaming | Pagination |
@@ -123,6 +113,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
123
113
  |---|---|---|---|---|
124
114
  | list | GET | `/agent/v1/computers/{computer_id}/files` | no | no |
125
115
  | retrieveContent | GET | `/agent/v1/computers/{computer_id}/files/content` | no | no |
116
+ | retrievePreview | GET | `/agent/v1/computers/{computer_id}/files/preview` | no | no |
117
+ | updateContent | PUT | `/agent/v1/computers/{computer_id}/files/content` | no | no |
126
118
 
127
119
  ### agent.computers.files.convert
128
120
 
@@ -197,6 +189,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
197
189
  | retrieveContext | GET | `/agent/v1/sessions/{session_id}/context` | no | no |
198
190
  | update | POST | `/agent/v1/sessions/{session_id}` | no | no |
199
191
 
192
+ ### agent.sessions.agentVersion
193
+
194
+ | Method | HTTP | Path | Streaming | Pagination |
195
+ |---|---|---|---|---|
196
+ | create | POST | `/agent/v1/sessions/{session_id}/agent_version` | no | no |
197
+
200
198
  ### agent.sessions.artifacts
201
199
 
202
200
  | Method | HTTP | Path | Streaming | Pagination |
@@ -231,6 +229,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
231
229
  | send | POST | `/agent/v1/sessions/{session_id}/events` | no | no |
232
230
  | stream | GET | `/agent/v1/sessions/{session_id}/events/stream` | always | no |
233
231
 
232
+ ### agent.sessions.name
233
+
234
+ | Method | HTTP | Path | Streaming | Pagination |
235
+ |---|---|---|---|---|
236
+ | create | POST | `/agent/v1/sessions/{session_id}/name` | no | no |
237
+
234
238
  ### agent.sessions.requests
235
239
 
236
240
  | Method | HTTP | Path | Streaming | Pagination |
@@ -298,6 +302,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
298
302
  |---|---|---|---|---|
299
303
  | list | GET | `/agent/v1/toolsets` | no | no |
300
304
 
305
+ ### agent.uploads
306
+
307
+ | Method | HTTP | Path | Streaming | Pagination |
308
+ |---|---|---|---|---|
309
+ | create | POST | `/agent/v1/uploads` | no | no |
310
+
311
+ ### agent.uploads.contentUrl
312
+
313
+ | Method | HTTP | Path | Streaming | Pagination |
314
+ |---|---|---|---|---|
315
+ | create | POST | `/agent/v1/uploads/{file_id}/content_url` | no | no |
316
+
301
317
  ## application
302
318
 
303
319
  ### application.assets.upload
@@ -580,6 +596,14 @@ Multipart request bodies expand plain objects into bracketed fields (for example
580
596
  | list | GET | `/automation/v1/workflows/{ns}/{name}/versions` | no | yes |
581
597
  | retrieve | GET | `/automation/v1/workflows/{ns}/{name}/versions/{version}` | no | no |
582
598
 
599
+ ## billing
600
+
601
+ ### billing.prices
602
+
603
+ | Method | HTTP | Path | Streaming | Pagination |
604
+ |---|---|---|---|---|
605
+ | list | GET | `/billing/v1/prices` | no | no |
606
+
583
607
  ## browser
584
608
 
585
609
  ### browser.connect
@@ -690,6 +714,33 @@ Multipart request bodies expand plain objects into bracketed fields (for example
690
714
  | retrieve | GET | `/canvas/v1/collections/{collection_id}` | no | no |
691
715
  | update | PATCH | `/canvas/v1/collections/{collection_id}` | no | no |
692
716
 
717
+ ## content
718
+
719
+ ### content.contents
720
+
721
+ | Method | HTTP | Path | Streaming | Pagination |
722
+ |---|---|---|---|---|
723
+ | archive | POST | `/content/v1/contents/{content_id}/archive` | no | no |
724
+ | create | POST | `/content/v1/contents` | no | no |
725
+ | list | GET | `/content/v1/contents` | no | no |
726
+ | publish | POST | `/content/v1/contents/{content_id}/publish` | no | no |
727
+ | retrieve | GET | `/content/v1/contents/{content_id}` | no | no |
728
+ | unpublish | POST | `/content/v1/contents/{content_id}/unpublish` | no | no |
729
+ | update | PATCH | `/content/v1/contents/{content_id}` | no | no |
730
+
731
+ ### content.playbackSessions
732
+
733
+ | Method | HTTP | Path | Streaming | Pagination |
734
+ |---|---|---|---|---|
735
+ | create | POST | `/content/v1/playback/sessions` | no | no |
736
+
737
+ ### content.versions
738
+
739
+ | Method | HTTP | Path | Streaming | Pagination |
740
+ |---|---|---|---|---|
741
+ | list | GET | `/content/v1/contents/{content_id}/versions` | no | no |
742
+ | retrieve | GET | `/content/v1/contents/{content_id}/versions/{version}` | no | no |
743
+
693
744
  ## crm
694
745
 
695
746
  ### crm.associations
@@ -783,6 +834,47 @@ Multipart request bodies expand plain objects into bracketed fields (for example
783
834
  | create | POST | `/crm/v1/schemas` | no | no |
784
835
  | list | GET | `/crm/v1/schemas` | no | no |
785
836
 
837
+ ## customer
838
+
839
+ ### customer.accessTokens
840
+
841
+ | Method | HTTP | Path | Streaming | Pagination |
842
+ |---|---|---|---|---|
843
+ | create | POST | `/customer/v1/access_tokens` | no | no |
844
+ | renew | POST | `/customer/v1/access_tokens/renew` | no | no |
845
+ | revoke | DELETE | `/customer/v1/access_tokens/current` | no | no |
846
+
847
+ ### customer.customers
848
+
849
+ | Method | HTTP | Path | Streaming | Pagination |
850
+ |---|---|---|---|---|
851
+ | block | POST | `/customer/v1/customers/{customer_id}/block` | no | no |
852
+ | delete | DELETE | `/customer/v1/customers/{customer_id}` | no | no |
853
+ | list | GET | `/customer/v1/customers` | no | no |
854
+ | retrieve | GET | `/customer/v1/customers/{customer_id}` | no | no |
855
+ | revokeTokens | POST | `/customer/v1/customers/{customer_id}/revoke_tokens` | no | no |
856
+ | unblock | POST | `/customer/v1/customers/{customer_id}/unblock` | no | no |
857
+
858
+ ### customer.grantCodes
859
+
860
+ | Method | HTTP | Path | Streaming | Pagination |
861
+ |---|---|---|---|---|
862
+ | create | POST | `/customer/v1/grant_codes` | no | no |
863
+
864
+ ### customer.publishableKeys
865
+
866
+ | Method | HTTP | Path | Streaming | Pagination |
867
+ |---|---|---|---|---|
868
+ | create | POST | `/customer/v1/publishable_keys` | no | no |
869
+ | delete | DELETE | `/customer/v1/publishable_keys/{key_id}` | no | no |
870
+ | list | GET | `/customer/v1/publishable_keys` | no | no |
871
+
872
+ ### customer.usage
873
+
874
+ | Method | HTTP | Path | Streaming | Pagination |
875
+ |---|---|---|---|---|
876
+ | retrieve | GET | `/customer/v1/customers/{customer_id}/usage` | no | no |
877
+
786
878
  ## cut
787
879
 
788
880
  ### cut.exports
@@ -924,7 +1016,9 @@ Multipart request bodies expand plain objects into bracketed fields (for example
924
1016
  | Method | HTTP | Path | Streaming | Pagination |
925
1017
  |---|---|---|---|---|
926
1018
  | abandon | POST | `/devops/v1/changes/{id}:abandon` | no | no |
1019
+ | gitCredential | POST | `/devops/v1/changes/{id}:gitCredential` | no | no |
927
1020
  | markLastSlice | POST | `/devops/v1/changes/{id}:markLastSlice` | no | no |
1021
+ | openPullRequest | POST | `/devops/v1/changes/{id}:openPullRequest` | no | no |
928
1022
  | retrieve | GET | `/devops/v1/changes/{id}` | no | no |
929
1023
 
930
1024
  ### devops.connections
@@ -984,9 +1078,11 @@ Multipart request bodies expand plain objects into bracketed fields (for example
984
1078
 
985
1079
  | Method | HTTP | Path | Streaming | Pagination |
986
1080
  |---|---|---|---|---|
1081
+ | create | POST | `/devops/v1/projects` | no | no |
987
1082
  | list | GET | `/devops/v1/projects` | no | no |
988
1083
  | retrieve | GET | `/devops/v1/projects/{id}` | no | no |
989
1084
  | retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
1085
+ | retrieveTestPlan | GET | `/devops/v1/projects/{project}/test-plan` | no | no |
990
1086
  | update | PATCH | `/devops/v1/projects/{id}` | no | no |
991
1087
 
992
1088
  ### devops.projects.changes
@@ -996,6 +1092,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
996
1092
  | create | POST | `/devops/v1/projects/{project}/changes` | no | no |
997
1093
  | list | GET | `/devops/v1/projects/{project}/changes` | no | no |
998
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
+
999
1107
  ### devops.projects.environments
1000
1108
 
1001
1109
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1116,6 +1224,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1116
1224
  |---|---|---|---|---|
1117
1225
  | approve | POST | `/devops/v1/promotions/{id}:approve` | no | no |
1118
1226
  | cancel | POST | `/devops/v1/promotions/{id}:cancel` | no | no |
1227
+ | checkoutCredential | POST | `/devops/v1/promotions/{id}:checkoutCredential` | no | no |
1119
1228
  | conclude | POST | `/devops/v1/promotions/{id}:conclude` | no | no |
1120
1229
  | create | POST | `/devops/v1/promotions` | no | no |
1121
1230
  | retrieve | GET | `/devops/v1/promotions/{id}` | no | no |
@@ -1131,11 +1240,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1131
1240
 
1132
1241
  | Method | HTTP | Path | Streaming | Pagination |
1133
1242
  |---|---|---|---|---|
1243
+ | close | POST | `/devops/v1/pull-requests/{id}:close` | no | no |
1134
1244
  | merge | POST | `/devops/v1/pull-requests/{id}:merge` | no | no |
1135
1245
  | recordVerdict | POST | `/devops/v1/pull-requests/{id}:recordVerdict` | no | no |
1136
1246
  | rerunGate | POST | `/devops/v1/pull-requests/{id}:rerunGate` | no | no |
1137
1247
  | retrieve | GET | `/devops/v1/pull-requests/{id}` | no | no |
1138
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
+
1139
1255
  ### devops.releases
1140
1256
 
1141
1257
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1491,6 +1607,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1491
1607
  | list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
1492
1608
  | retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
1493
1609
 
1610
+ ### media.libraries.voices
1611
+
1612
+ | Method | HTTP | Path | Streaming | Pagination |
1613
+ |---|---|---|---|---|
1614
+ | create | POST | `/media/v1/libraries/{library_id}/voices` | no | no |
1615
+
1616
+ ### media.libraries.voices.designs
1617
+
1618
+ | Method | HTTP | Path | Streaming | Pagination |
1619
+ |---|---|---|---|---|
1620
+ | create | POST | `/media/v1/libraries/{library_id}/voices/designs` | no | no |
1621
+
1494
1622
  ### media.speech
1495
1623
 
1496
1624
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1779,6 +1907,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1779
1907
  |---|---|---|---|---|
1780
1908
  | create | POST | `/organization/v1/departments/{id}/dissolve` | no | no |
1781
1909
 
1910
+ ### organization.effectiveSpec
1911
+
1912
+ | Method | HTTP | Path | Streaming | Pagination |
1913
+ |---|---|---|---|---|
1914
+ | retrieve | GET | `/organization/v1/effective_spec` | no | no |
1915
+
1782
1916
  ### organization.events
1783
1917
 
1784
1918
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1928,6 +2062,41 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1928
2062
  |---|---|---|---|---|
1929
2063
  | create | POST | `/organization/v1/positions/{id}/unfreeze` | no | no |
1930
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
+
1931
2100
  ### organization.usage
1932
2101
 
1933
2102
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1949,6 +2118,45 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1949
2118
  |---|---|---|---|---|
1950
2119
  | retrieve | GET | `/registry/v1/packages/{package_id}` | no | no |
1951
2120
 
2121
+ ### registry.packages.git
2122
+
2123
+ | Method | HTTP | Path | Streaming | Pagination |
2124
+ |---|---|---|---|---|
2125
+ | retrieveCompare | GET | `/registry/v1/packages/{package_id}/git/compare` | no | no |
2126
+ | retrieveLog | GET | `/registry/v1/packages/{package_id}/git/log` | no | no |
2127
+ | retrieveResolve | GET | `/registry/v1/packages/{package_id}/git/resolve` | no | no |
2128
+
2129
+ ### registry.packages.git.commits
2130
+
2131
+ | Method | HTTP | Path | Streaming | Pagination |
2132
+ |---|---|---|---|---|
2133
+ | retrieve | GET | `/registry/v1/packages/{package_id}/git/commits/{sha}` | no | no |
2134
+
2135
+ ### registry.packages.git.files
2136
+
2137
+ | Method | HTTP | Path | Streaming | Pagination |
2138
+ |---|---|---|---|---|
2139
+ | retrieve | GET | `/registry/v1/packages/{package_id}/git/files/{path}` | no | no |
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
+
2147
+ ### registry.packages.git.trees
2148
+
2149
+ | Method | HTTP | Path | Streaming | Pagination |
2150
+ |---|---|---|---|---|
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 |
2159
+
1952
2160
  ### registry.packages.installations
1953
2161
 
1954
2162
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1996,6 +2204,33 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1996
2204
 
1997
2205
  ## sandbox
1998
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
+
1999
2234
  ### sandbox.events.sandboxes
2000
2235
 
2001
2236
  | Method | HTTP | Path | Streaming | Pagination |
@@ -2006,6 +2241,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
2006
2241
 
2007
2242
  | Method | HTTP | Path | Streaming | Pagination |
2008
2243
  |---|---|---|---|---|
2244
+ | act | POST | `/sandbox/v1/sandboxes/{sandboxID}/act` | no | no |
2009
2245
  | connect | POST | `/sandbox/v1/sandboxes/{sandboxID}/connect` | no | no |
2010
2246
  | create | POST | `/sandbox/v1/sandboxes` | no | no |
2011
2247
  | delete | DELETE | `/sandbox/v1/sandboxes/{sandboxID}` | no | no |
@@ -2548,7 +2784,10 @@ Multipart request bodies expand plain objects into bracketed fields (for example
2548
2784
 
2549
2785
  | Operation | Reason |
2550
2786
  |---|---|
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. |
2551
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. |
2552
2791
  | agent.sessions.events.send | Events submit session input; the product verb is send rather than create. |
2553
2792
  | automation.hooks.send | Delivers a payload to a trigger's secret webhook URL; it sends an event rather than updating a hook resource. |
2554
2793
  | automation.scripts.distTags.set | A dist-tag assigns a version to a name; use npm vocabulary set rather than update. |
@@ -2557,6 +2796,10 @@ Multipart request bodies expand plain objects into bracketed fields (for example
2557
2796
  | automation.workflows.distTags.set | Workflow dist-tags use the same npm-style assignment vocabulary as script dist-tags. |
2558
2797
  | automation.workflows.vaults.set | Assign a whole vault to a definition alias, independently of published versions. |
2559
2798
  | automation.workflows.versions.create / publish | Creating a workflow version publishes it; publish is a product alias of versions.create. |
2799
+ | content.contents.unpublish | unpublish is the product act that takes a content offline; the generic action table does not carry it, and the path-derived name would read as creating an unpublish sub-resource (services/content's content.contents.unpublish). |
2800
+ | content.versions.list | A content's versions are the immutable snapshot resource of their own (services/content's content.versions.list); nesting them under contents would derive content.contents.versions.list for a read that returns the version history. |
2801
+ | content.versions.retrieve | One version is read by its number from the same versions resource (services/content's content.versions.get); nesting under contents would derive a doubled content.contents.versions.retrieve. |
2802
+ | content.playbackSessions.create | Opening one playback is the playbackSessions operation (services/content's content.playbackSessions.create); the URL's playback group is a mount, not a resource level of its own. |
2560
2803
  | crm.objects.list | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
2561
2804
  | crm.objects.create | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
2562
2805
  | crm.objects.batch.create | The terminal batch segment is the requested operation, not another collection; retain its read/create/update/upsert/archive verb. |
@@ -2576,6 +2819,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
2576
2819
  | crm.properties.list | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
2577
2820
  | crm.properties.create | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
2578
2821
  | crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
2822
+ | customer.accessTokens.revoke | Logout revokes the caller's own sign-in and its tokens (services/customer's customer.accessTokens.revoke); current is a reference to the caller's token, not a revokeCurrent sub-resource. |
2823
+ | customer.accessTokens.renew | renewal acts on the sign-in's access token (services/customer's customer.accessTokens.renew); renew is not in the generic action table, so the path alone would derive customer.accessTokens.renew.create. |
2824
+ | customer.customers.block | block is the administrative act on the customer (services/customer's customer.customers.block); it is not in the generic action table, so the path alone would derive customer.customers.block.create. |
2825
+ | customer.customers.revokeTokens | Revoking every token of one customer is an act on the customer (services/customer's customer.customers.revokeTokens); the path alone would derive customer.customers.revoke_tokens.create. |
2826
+ | customer.customers.unblock | unblock lifts the same block fact on the customer (services/customer's customer.customers.unblock); the path alone would derive customer.customers.unblock.create. |
2827
+ | customer.usage.retrieve | One customer's usage is the usage read (services/customer's customer.usage.get); usage is a projection of the customer read into billing, not a sub-resource of the customer. |
2579
2828
  | database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
2580
2829
  | devops.projects.flags.reportCodeRefs | ADR-125 §4 / #1881: a checkout reports where code names each flag key, so the write is an operation on the project's flags (devops.flags.reportCodeRefs) and returns counts, not a code-refs resource; the path alone would derive a nested codeRefs collection create. |
2581
2830
  | file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
@@ -2587,6 +2836,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
2587
2836
  | media.images.generate | ADR-094 §9 names image generation images.generate; the URL mounts it under a library, but generation is an operation on images and the path alone would derive a generations collection create. |
2588
2837
  | media.videos.generate | ADR-094 §2/§9 names video generation videos.generate beside images.generate; the URL mounts it under a library, but generation is an operation on videos and the path alone would derive a generations collection create. The unqualified videos resource is the video lane, distinct from the batch and legacy job resources. |
2589
2838
  | meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
2839
+ | sandbox.sandboxes.act | ticket-3311: act is the one display door of an addressed phone sandbox; the URL spells the operation but the generic post rule would derive sandboxes.create, colliding with createSandbox. |
2590
2840
  | sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
2591
2841
  | sandbox.sandboxes.files.remove | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
2592
2842
  | sandbox.sandboxes.files.read | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
package/README.md CHANGED
@@ -10,7 +10,7 @@ The official TypeScript SDK for [Praxis](https://deepraxis.com), the cloud where
10
10
  [![Bundle size](https://img.shields.io/bundlephobia/minzip/@deepraxis/sdk?color=2e8555)](https://bundlephobia.com/package/@deepraxis/sdk)
11
11
  [![License](https://img.shields.io/badge/license-Apache--2.0-2e8555)](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/docs/api) · [Console](https://console.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/docs/cookbook/sdk) has the details for OpenAI,
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/docs/api)
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
 
@@ -0,0 +1,3 @@
1
+ import type { Operation } from './transport.js';
2
+ /** Whether this operation's 200 response is the declared bytes of the resource, not a JSON body. */
3
+ export declare function isBinaryOperation(operation: Operation): boolean;
@@ -0,0 +1,14 @@
1
+ import * as sdk from "../generated/sdk.gen.js";
2
+ import { binaryOperations } from "../generated/binary-operations.gen.js";
3
+ /**
4
+ * The generated SDK operations whose success response the OpenAPI declares as binary bytes
5
+ * (generated from the spec into `binary-operations.gen.ts`). Resolved by function identity, so
6
+ * wrapping, renaming or minification cannot change the answer.
7
+ */
8
+ const binary = new Set(binaryOperations
9
+ .map(name => sdk[name])
10
+ .filter((operation) => typeof operation === 'function'));
11
+ /** Whether this operation's 200 response is the declared bytes of the resource, not a JSON body. */
12
+ export function isBinaryOperation(operation) {
13
+ return binary.has(operation);
14
+ }
@@ -1,9 +1,12 @@
1
1
  /**
2
- * Default credential chain for code running on a Praxis computer (ticket-5367, ADR-098 §2):
3
- * the PRAXIS_API_TOKEN environment variable, then the login file of the environment,
4
- * `~/.praxis/cli/<env>.json` — the one file `praxis login` writes for a person and the platform writes
5
- * for a managed login. Resolved at call time so a token the platform renewed in the file is picked up
6
- * by an already-running process.
2
+ * Default credential chain (ticket-5367, ADR-098 §2, ADR-157), the same rule as the `praxis` CLI:
3
+ * 1. the PRAXIS_API_TOKEN environment variable;
4
+ * 2. PRAXIS_CWD set: `$PRAXIS_CWD/.praxis/credentials/<env>.json` and nothing else — no file there means no token,
5
+ * never the home's login and never a parent directory's;
6
+ * 3. otherwise the home: `~/.praxis/credentials/<env>.json`, and while that file is absent the legacy
7
+ * `~/.praxis/cli/<env>.json` that `praxis login` wrote before ADR-157 and the platform still writes for a
8
+ * managed login.
9
+ * Resolved at call time so a token the platform renewed in the file is picked up by an already-running process.
7
10
  */
8
11
  export interface ResolvedCredentials {
9
12
  token?: string;
@@ -17,7 +20,14 @@ type ReadFile = (path: string) => string | null;
17
20
  * applies. A PRAXIS_ENV that is not a plain name is no environment at all and is ignored. Pure.
18
21
  */
19
22
  export declare function credentialsEnv(env: Env): string;
20
- /** The one login file, the same path the CLI reads for this environment. Null without a home directory. Pure. */
23
+ /** The credential file of one directory: `<dir>/.praxis/credentials/<env>.json`. Pure. */
24
+ export declare function credentialsFileIn(dir: string, env: Env): string;
25
+ /**
26
+ * The credential files this process reads, in order (ADR-157): a PRAXIS_CWD directory is the only one when named;
27
+ * otherwise the home's file and then its legacy login file. Empty without a home directory. Pure.
28
+ */
29
+ export declare function credentialsPaths(env: Env): string[];
30
+ /** The first file this process would read (the one `praxis login` writes). Null without a home directory. Pure. */
21
31
  export declare function credentialsPath(env: Env): string | null;
22
32
  export declare function resolveDefaultCredentials(env?: Env, readFile?: ReadFile): ResolvedCredentials;
23
33
  export {};
@@ -27,18 +27,37 @@ export function credentialsEnv(env) {
27
27
  }
28
28
  return 'production';
29
29
  }
30
- /** The one login file, the same path the CLI reads for this environment. Null without a home directory. Pure. */
31
- export function credentialsPath(env) {
30
+ const trimSlashes = (path) => path.replace(/[/\\]+$/, '') || path;
31
+ /** The credential file of one directory: `<dir>/.praxis/credentials/<env>.json`. Pure. */
32
+ export function credentialsFileIn(dir, env) {
33
+ return `${trimSlashes(dir)}/.praxis/credentials/${credentialsEnv(env)}.json`;
34
+ }
35
+ /**
36
+ * The credential files this process reads, in order (ADR-157): a PRAXIS_CWD directory is the only one when named;
37
+ * otherwise the home's file and then its legacy login file. Empty without a home directory. Pure.
38
+ */
39
+ export function credentialsPaths(env) {
40
+ const named = nonEmpty(env.PRAXIS_CWD);
41
+ if (named)
42
+ return [credentialsFileIn(named, env)];
32
43
  const home = nonEmpty(env.HOME) ?? nonEmpty(env.USERPROFILE);
33
- return home ? `${home.replace(/[/\\]+$/, '')}/.praxis/cli/${credentialsEnv(env)}.json` : null;
44
+ return home ? [credentialsFileIn(home, env), `${trimSlashes(home)}/.praxis/cli/${credentialsEnv(env)}.json`] : [];
45
+ }
46
+ /** The first file this process would read (the one `praxis login` writes). Null without a home directory. Pure. */
47
+ export function credentialsPath(env) {
48
+ return credentialsPaths(env)[0] ?? null;
34
49
  }
35
50
  export function resolveDefaultCredentials(env = globalThis.process?.env ?? {}, readFile = defaultReadFile) {
36
51
  const envToken = nonEmpty(env.PRAXIS_API_TOKEN);
37
52
  const envUrl = nonEmpty(env.PRAXIS_API_URL);
38
53
  if (envToken)
39
54
  return { token: envToken, ...(envUrl ? { apiUrl: envUrl } : {}) };
40
- const path = credentialsPath(env);
41
- const text = path ? readFile(path) : null;
55
+ let text = null;
56
+ for (const path of credentialsPaths(env)) {
57
+ text = readFile(path);
58
+ if (text)
59
+ break;
60
+ }
42
61
  if (!text)
43
62
  return envUrl ? { apiUrl: envUrl } : {};
44
63
  try {
@@ -3,6 +3,7 @@ import { PraxisError, PraxisTimeoutError } from "./errors.js";
3
3
  import { abortable, fetchWithRetry } from "./retry.js";
4
4
  import { parseSSE } from "./sse.js";
5
5
  import { resolveDefaultCredentials } from "./credentials.js";
6
+ import { isBinaryOperation } from "./binary-operations.js";
6
7
  /** Our own per-call keys, beyond what the generated hey-api client accepts. */
7
8
  const SDK_OPTION_KEYS = ['timeoutMs', 'maxRetries', 'stream', 'lastEventId'];
8
9
  /** Every key of the generated client's per-call RequestOptions (request parts, fetch/RequestInit, serializers,
@@ -55,7 +56,7 @@ export class Transport {
55
56
  if (!Number.isSafeInteger(retries) || retries < 0)
56
57
  throw new RangeError('maxRetries must be a non-negative integer');
57
58
  }
58
- scope(options, streaming) {
59
+ scope(operation, options, streaming) {
59
60
  assertKnownOptions(options);
60
61
  const timeoutMs = options.timeoutMs ?? Math.max(this.config.timeoutMs, serverDeadlineMs(options));
61
62
  const maxRetries = options.maxRetries ?? this.config.maxRetries;
@@ -98,7 +99,10 @@ export class Transport {
98
99
  }
99
100
  return {
100
101
  signal,
101
- options: { ...options, headers: Object.fromEntries(headers), client, signal, throwOnError: true, responseStyle: 'fields', ...(streaming ? { parseAs: 'stream' } : {}) },
102
+ // A binary operation is parsed as a Blob whatever the server says in Content-Type: the runtime
103
+ // value must match the declared `Blob | File`, and JSON bytes must survive as bytes.
104
+ options: { ...options, headers: Object.fromEntries(headers), client, signal, throwOnError: true, responseStyle: 'fields',
105
+ ...(streaming ? { parseAs: 'stream' } : isBinaryOperation(operation) ? { parseAs: 'blob' } : {}) },
102
106
  close() { clearTimeout(timer); external?.removeEventListener('abort', abort); },
103
107
  };
104
108
  }
@@ -107,7 +111,7 @@ export class Transport {
107
111
  }
108
112
  /** Internal helper access to response metadata, with the same request policy. */
109
113
  async requestWithResponse(operation, options = {}) {
110
- const scope = this.scope(options, false);
114
+ const scope = this.scope(operation, options, false);
111
115
  try {
112
116
  const result = await abortable(operation(scope.options), scope.signal);
113
117
  return { data: result.data, response: result.response };
@@ -117,7 +121,7 @@ export class Transport {
117
121
  }
118
122
  }
119
123
  async *stream(operation, options = {}) {
120
- const scope = this.scope(options, true);
124
+ const scope = this.scope(operation, options, true);
121
125
  try {
122
126
  const result = await abortable(operation(scope.options), scope.signal);
123
127
  if (!result.response.headers.get('content-type')?.split(';')[0]?.trim().toLowerCase().includes('text/event-stream')) {
@@ -0,0 +1,3 @@
1
+ /** Exported SDK operations whose 2xx response the OpenAPI declares as binary bytes: the core
2
+ * transport resolves them to a Blob whatever the response Content-Type says. */
3
+ export declare const binaryOperations: readonly string[];