@deepraxis/sdk 0.1.1-dev.202d904 → 0.1.1-dev.21f8389

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`. 797 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`. 884 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,7 @@ 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 |
126
117
 
127
118
  ### agent.computers.files.convert
128
119
 
@@ -197,6 +188,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
197
188
  | retrieveContext | GET | `/agent/v1/sessions/{session_id}/context` | no | no |
198
189
  | update | POST | `/agent/v1/sessions/{session_id}` | no | no |
199
190
 
191
+ ### agent.sessions.agentVersion
192
+
193
+ | Method | HTTP | Path | Streaming | Pagination |
194
+ |---|---|---|---|---|
195
+ | create | POST | `/agent/v1/sessions/{session_id}/agent_version` | no | no |
196
+
200
197
  ### agent.sessions.artifacts
201
198
 
202
199
  | Method | HTTP | Path | Streaming | Pagination |
@@ -231,6 +228,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
231
228
  | send | POST | `/agent/v1/sessions/{session_id}/events` | no | no |
232
229
  | stream | GET | `/agent/v1/sessions/{session_id}/events/stream` | always | no |
233
230
 
231
+ ### agent.sessions.name
232
+
233
+ | Method | HTTP | Path | Streaming | Pagination |
234
+ |---|---|---|---|---|
235
+ | create | POST | `/agent/v1/sessions/{session_id}/name` | no | no |
236
+
234
237
  ### agent.sessions.requests
235
238
 
236
239
  | Method | HTTP | Path | Streaming | Pagination |
@@ -298,6 +301,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
298
301
  |---|---|---|---|---|
299
302
  | list | GET | `/agent/v1/toolsets` | no | no |
300
303
 
304
+ ### agent.uploads
305
+
306
+ | Method | HTTP | Path | Streaming | Pagination |
307
+ |---|---|---|---|---|
308
+ | create | POST | `/agent/v1/uploads` | no | no |
309
+
310
+ ### agent.uploads.contentUrl
311
+
312
+ | Method | HTTP | Path | Streaming | Pagination |
313
+ |---|---|---|---|---|
314
+ | create | POST | `/agent/v1/uploads/{file_id}/content_url` | no | no |
315
+
301
316
  ## application
302
317
 
303
318
  ### application.assets.upload
@@ -580,6 +595,14 @@ Multipart request bodies expand plain objects into bracketed fields (for example
580
595
  | list | GET | `/automation/v1/workflows/{ns}/{name}/versions` | no | yes |
581
596
  | retrieve | GET | `/automation/v1/workflows/{ns}/{name}/versions/{version}` | no | no |
582
597
 
598
+ ## billing
599
+
600
+ ### billing.prices
601
+
602
+ | Method | HTTP | Path | Streaming | Pagination |
603
+ |---|---|---|---|---|
604
+ | list | GET | `/billing/v1/prices` | no | no |
605
+
583
606
  ## browser
584
607
 
585
608
  ### browser.connect
@@ -690,6 +713,33 @@ Multipart request bodies expand plain objects into bracketed fields (for example
690
713
  | retrieve | GET | `/canvas/v1/collections/{collection_id}` | no | no |
691
714
  | update | PATCH | `/canvas/v1/collections/{collection_id}` | no | no |
692
715
 
716
+ ## content
717
+
718
+ ### content.contents
719
+
720
+ | Method | HTTP | Path | Streaming | Pagination |
721
+ |---|---|---|---|---|
722
+ | archive | POST | `/content/v1/contents/{content_id}/archive` | no | no |
723
+ | create | POST | `/content/v1/contents` | no | no |
724
+ | list | GET | `/content/v1/contents` | no | no |
725
+ | publish | POST | `/content/v1/contents/{content_id}/publish` | no | no |
726
+ | retrieve | GET | `/content/v1/contents/{content_id}` | no | no |
727
+ | unpublish | POST | `/content/v1/contents/{content_id}/unpublish` | no | no |
728
+ | update | PATCH | `/content/v1/contents/{content_id}` | no | no |
729
+
730
+ ### content.playbackSessions
731
+
732
+ | Method | HTTP | Path | Streaming | Pagination |
733
+ |---|---|---|---|---|
734
+ | create | POST | `/content/v1/playback/sessions` | no | no |
735
+
736
+ ### content.versions
737
+
738
+ | Method | HTTP | Path | Streaming | Pagination |
739
+ |---|---|---|---|---|
740
+ | list | GET | `/content/v1/contents/{content_id}/versions` | no | no |
741
+ | retrieve | GET | `/content/v1/contents/{content_id}/versions/{version}` | no | no |
742
+
693
743
  ## crm
694
744
 
695
745
  ### crm.associations
@@ -783,6 +833,47 @@ Multipart request bodies expand plain objects into bracketed fields (for example
783
833
  | create | POST | `/crm/v1/schemas` | no | no |
784
834
  | list | GET | `/crm/v1/schemas` | no | no |
785
835
 
836
+ ## customer
837
+
838
+ ### customer.accessTokens
839
+
840
+ | Method | HTTP | Path | Streaming | Pagination |
841
+ |---|---|---|---|---|
842
+ | create | POST | `/customer/v1/access_tokens` | no | no |
843
+ | renew | POST | `/customer/v1/access_tokens/renew` | no | no |
844
+ | revoke | DELETE | `/customer/v1/access_tokens/current` | no | no |
845
+
846
+ ### customer.customers
847
+
848
+ | Method | HTTP | Path | Streaming | Pagination |
849
+ |---|---|---|---|---|
850
+ | block | POST | `/customer/v1/customers/{customer_id}/block` | no | no |
851
+ | delete | DELETE | `/customer/v1/customers/{customer_id}` | no | no |
852
+ | list | GET | `/customer/v1/customers` | no | no |
853
+ | retrieve | GET | `/customer/v1/customers/{customer_id}` | no | no |
854
+ | revokeTokens | POST | `/customer/v1/customers/{customer_id}/revoke_tokens` | no | no |
855
+ | unblock | POST | `/customer/v1/customers/{customer_id}/unblock` | no | no |
856
+
857
+ ### customer.grantCodes
858
+
859
+ | Method | HTTP | Path | Streaming | Pagination |
860
+ |---|---|---|---|---|
861
+ | create | POST | `/customer/v1/grant_codes` | no | no |
862
+
863
+ ### customer.publishableKeys
864
+
865
+ | Method | HTTP | Path | Streaming | Pagination |
866
+ |---|---|---|---|---|
867
+ | create | POST | `/customer/v1/publishable_keys` | no | no |
868
+ | delete | DELETE | `/customer/v1/publishable_keys/{key_id}` | no | no |
869
+ | list | GET | `/customer/v1/publishable_keys` | no | no |
870
+
871
+ ### customer.usage
872
+
873
+ | Method | HTTP | Path | Streaming | Pagination |
874
+ |---|---|---|---|---|
875
+ | retrieve | GET | `/customer/v1/customers/{customer_id}/usage` | no | no |
876
+
786
877
  ## cut
787
878
 
788
879
  ### cut.exports
@@ -924,7 +1015,9 @@ Multipart request bodies expand plain objects into bracketed fields (for example
924
1015
  | Method | HTTP | Path | Streaming | Pagination |
925
1016
  |---|---|---|---|---|
926
1017
  | abandon | POST | `/devops/v1/changes/{id}:abandon` | no | no |
1018
+ | gitCredential | POST | `/devops/v1/changes/{id}:gitCredential` | no | no |
927
1019
  | markLastSlice | POST | `/devops/v1/changes/{id}:markLastSlice` | no | no |
1020
+ | openPullRequest | POST | `/devops/v1/changes/{id}:openPullRequest` | no | no |
928
1021
  | retrieve | GET | `/devops/v1/changes/{id}` | no | no |
929
1022
 
930
1023
  ### devops.connections
@@ -984,9 +1077,11 @@ Multipart request bodies expand plain objects into bracketed fields (for example
984
1077
 
985
1078
  | Method | HTTP | Path | Streaming | Pagination |
986
1079
  |---|---|---|---|---|
1080
+ | create | POST | `/devops/v1/projects` | no | no |
987
1081
  | list | GET | `/devops/v1/projects` | no | no |
988
1082
  | retrieve | GET | `/devops/v1/projects/{id}` | no | no |
989
1083
  | retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
1084
+ | retrieveTestPlan | GET | `/devops/v1/projects/{project}/test-plan` | no | no |
990
1085
  | update | PATCH | `/devops/v1/projects/{id}` | no | no |
991
1086
 
992
1087
  ### devops.projects.changes
@@ -996,6 +1091,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
996
1091
  | create | POST | `/devops/v1/projects/{project}/changes` | no | no |
997
1092
  | list | GET | `/devops/v1/projects/{project}/changes` | no | no |
998
1093
 
1094
+ ### devops.projects.defaultBranch
1095
+
1096
+ | Method | HTTP | Path | Streaming | Pagination |
1097
+ |---|---|---|---|---|
1098
+ | initialize | POST | `/devops/v1/projects/{id}/default-branch:initialize` | no | no |
1099
+
999
1100
  ### devops.projects.environments
1000
1101
 
1001
1102
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1131,11 +1232,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1131
1232
 
1132
1233
  | Method | HTTP | Path | Streaming | Pagination |
1133
1234
  |---|---|---|---|---|
1235
+ | close | POST | `/devops/v1/pull-requests/{id}:close` | no | no |
1134
1236
  | merge | POST | `/devops/v1/pull-requests/{id}:merge` | no | no |
1135
1237
  | recordVerdict | POST | `/devops/v1/pull-requests/{id}:recordVerdict` | no | no |
1136
1238
  | rerunGate | POST | `/devops/v1/pull-requests/{id}:rerunGate` | no | no |
1137
1239
  | retrieve | GET | `/devops/v1/pull-requests/{id}` | no | no |
1138
1240
 
1241
+ ### devops.pullRequests.reviews
1242
+
1243
+ | Method | HTTP | Path | Streaming | Pagination |
1244
+ |---|---|---|---|---|
1245
+ | create | POST | `/devops/v1/pull-requests/{id}/reviews` | no | no |
1246
+
1139
1247
  ### devops.releases
1140
1248
 
1141
1249
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1382,6 +1490,13 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1382
1490
  |---|---|---|---|---|
1383
1491
  | create | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/frames` | no | no |
1384
1492
 
1493
+ ### media.libraries.assets.hls
1494
+
1495
+ | Method | HTTP | Path | Streaming | Pagination |
1496
+ |---|---|---|---|---|
1497
+ | create | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/hls` | no | no |
1498
+ | list | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}/hls` | no | no |
1499
+
1385
1500
  ### media.libraries.assets.import
1386
1501
 
1387
1502
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1484,6 +1599,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1484
1599
  | list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
1485
1600
  | retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
1486
1601
 
1602
+ ### media.libraries.voices
1603
+
1604
+ | Method | HTTP | Path | Streaming | Pagination |
1605
+ |---|---|---|---|---|
1606
+ | create | POST | `/media/v1/libraries/{library_id}/voices` | no | no |
1607
+
1608
+ ### media.libraries.voices.designs
1609
+
1610
+ | Method | HTTP | Path | Streaming | Pagination |
1611
+ |---|---|---|---|---|
1612
+ | create | POST | `/media/v1/libraries/{library_id}/voices/designs` | no | no |
1613
+
1487
1614
  ### media.speech
1488
1615
 
1489
1616
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1772,6 +1899,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1772
1899
  |---|---|---|---|---|
1773
1900
  | create | POST | `/organization/v1/departments/{id}/dissolve` | no | no |
1774
1901
 
1902
+ ### organization.effectiveSpec
1903
+
1904
+ | Method | HTTP | Path | Streaming | Pagination |
1905
+ |---|---|---|---|---|
1906
+ | retrieve | GET | `/organization/v1/effective_spec` | no | no |
1907
+
1775
1908
  ### organization.events
1776
1909
 
1777
1910
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1921,14 +2054,175 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1921
2054
  |---|---|---|---|---|
1922
2055
  | create | POST | `/organization/v1/positions/{id}/unfreeze` | no | no |
1923
2056
 
2057
+ ### organization.reconcile
2058
+
2059
+ | Method | HTTP | Path | Streaming | Pagination |
2060
+ |---|---|---|---|---|
2061
+ | pause | POST | `/organization/v1/reconcile/pause` | no | no |
2062
+ | resume | POST | `/organization/v1/reconcile/resume` | no | no |
2063
+ | retrievePlan | GET | `/organization/v1/reconcile/plan` | no | no |
2064
+
2065
+ ### organization.reconcile.run
2066
+
2067
+ | Method | HTTP | Path | Streaming | Pagination |
2068
+ |---|---|---|---|---|
2069
+ | create | POST | `/organization/v1/reconcile/run` | no | no |
2070
+
2071
+ ### organization.reconcile.status
2072
+
2073
+ | Method | HTTP | Path | Streaming | Pagination |
2074
+ |---|---|---|---|---|
2075
+ | list | GET | `/organization/v1/reconcile/status` | no | no |
2076
+
2077
+ ### organization.specs
2078
+
2079
+ | Method | HTTP | Path | Streaming | Pagination |
2080
+ |---|---|---|---|---|
2081
+ | list | GET | `/organization/v1/specs` | no | no |
2082
+ | retrieve | GET | `/organization/v1/specs/{kind}/{id}` | no | no |
2083
+ | retrieveDiff | GET | `/organization/v1/specs/{kind}/{id}/diff` | no | no |
2084
+ | update | PUT | `/organization/v1/specs/{kind}/{id}` | no | no |
2085
+
2086
+ ### organization.specs.revisions
2087
+
2088
+ | Method | HTTP | Path | Streaming | Pagination |
2089
+ |---|---|---|---|---|
2090
+ | list | GET | `/organization/v1/specs/{kind}/{id}/revisions` | no | no |
2091
+
1924
2092
  ### organization.usage
1925
2093
 
1926
2094
  | Method | HTTP | Path | Streaming | Pagination |
1927
2095
  |---|---|---|---|---|
1928
2096
  | list | GET | `/organization/v1/usage` | no | no |
1929
2097
 
2098
+ ## registry
2099
+
2100
+ ### registry.installations
2101
+
2102
+ | Method | HTTP | Path | Streaming | Pagination |
2103
+ |---|---|---|---|---|
2104
+ | delete | DELETE | `/registry/v1/installations/{installation_id}` | no | no |
2105
+ | update | POST | `/registry/v1/installations/{installation_id}:update` | no | no |
2106
+
2107
+ ### registry.packages
2108
+
2109
+ | Method | HTTP | Path | Streaming | Pagination |
2110
+ |---|---|---|---|---|
2111
+ | retrieve | GET | `/registry/v1/packages/{package_id}` | no | no |
2112
+
2113
+ ### registry.packages.git
2114
+
2115
+ | Method | HTTP | Path | Streaming | Pagination |
2116
+ |---|---|---|---|---|
2117
+ | retrieveCompare | GET | `/registry/v1/packages/{package_id}/git/compare` | no | no |
2118
+ | retrieveLog | GET | `/registry/v1/packages/{package_id}/git/log` | no | no |
2119
+ | retrieveResolve | GET | `/registry/v1/packages/{package_id}/git/resolve` | no | no |
2120
+
2121
+ ### registry.packages.git.commits
2122
+
2123
+ | Method | HTTP | Path | Streaming | Pagination |
2124
+ |---|---|---|---|---|
2125
+ | retrieve | GET | `/registry/v1/packages/{package_id}/git/commits/{sha}` | no | no |
2126
+
2127
+ ### registry.packages.git.files
2128
+
2129
+ | Method | HTTP | Path | Streaming | Pagination |
2130
+ |---|---|---|---|---|
2131
+ | retrieve | GET | `/registry/v1/packages/{package_id}/git/files/{path}` | no | no |
2132
+
2133
+ ### registry.packages.git.refs
2134
+
2135
+ | Method | HTTP | Path | Streaming | Pagination |
2136
+ |---|---|---|---|---|
2137
+ | list | GET | `/registry/v1/packages/{package_id}/git/refs` | no | no |
2138
+
2139
+ ### registry.packages.git.trees
2140
+
2141
+ | Method | HTTP | Path | Streaming | Pagination |
2142
+ |---|---|---|---|---|
2143
+ | retrieve | GET | `/registry/v1/packages/{package_id}/git/trees/{sha}` | no | no |
2144
+ | retrieveRecursive | GET | `/registry/v1/packages/{package_id}/git/trees/{sha}/recursive` | no | no |
2145
+
2146
+ ### registry.packages.gitCredential
2147
+
2148
+ | Method | HTTP | Path | Streaming | Pagination |
2149
+ |---|---|---|---|---|
2150
+ | create | POST | `/registry/v1/packages/{package_id}/git-credential` | no | no |
2151
+
2152
+ ### registry.packages.installations
2153
+
2154
+ | Method | HTTP | Path | Streaming | Pagination |
2155
+ |---|---|---|---|---|
2156
+ | create | POST | `/registry/v1/packages/{package_id}/installations` | no | no |
2157
+ | list | GET | `/registry/v1/packages/{package_id}/installations` | no | no |
2158
+
2159
+ ### registry.packages.versions
2160
+
2161
+ | Method | HTTP | Path | Streaming | Pagination |
2162
+ |---|---|---|---|---|
2163
+ | create | POST | `/registry/v1/packages/{package_id}/versions` | no | no |
2164
+ | list | GET | `/registry/v1/packages/{package_id}/versions` | no | yes |
2165
+ | retrieveArchive | GET | `/registry/v1/packages/{package_id}/versions/{version}/archive` | no | no |
2166
+ | withdraw | POST | `/registry/v1/packages/{package_id}/versions/{version}:withdraw` | no | no |
2167
+
2168
+ ### registry.packages.versions.contents
2169
+
2170
+ | Method | HTTP | Path | Streaming | Pagination |
2171
+ |---|---|---|---|---|
2172
+ | list | GET | `/registry/v1/packages/{package_id}/versions/{version}/contents` | no | no |
2173
+
2174
+ ### registry.packages.versions.files
2175
+
2176
+ | Method | HTTP | Path | Streaming | Pagination |
2177
+ |---|---|---|---|---|
2178
+ | retrieve | GET | `/registry/v1/packages/{package_id}/versions/{version}/files/{path}` | no | no |
2179
+
2180
+ ### registry.repositories
2181
+
2182
+ | Method | HTTP | Path | Streaming | Pagination |
2183
+ |---|---|---|---|---|
2184
+ | create | POST | `/registry/v1/repositories` | no | no |
2185
+ | delete | DELETE | `/registry/v1/repositories/{repository_id}` | no | no |
2186
+ | list | GET | `/registry/v1/repositories` | no | yes |
2187
+ | retrieve | GET | `/registry/v1/repositories/{repository_id}` | no | no |
2188
+ | update | PATCH | `/registry/v1/repositories/{repository_id}` | no | no |
2189
+
2190
+ ### registry.repositories.packages
2191
+
2192
+ | Method | HTTP | Path | Streaming | Pagination |
2193
+ |---|---|---|---|---|
2194
+ | create | POST | `/registry/v1/repositories/{repository_id}/packages` | no | no |
2195
+ | list | GET | `/registry/v1/repositories/{repository_id}/packages` | no | yes |
2196
+
1930
2197
  ## sandbox
1931
2198
 
2199
+ ### sandbox.byod.devices
2200
+
2201
+ | Method | HTTP | Path | Streaming | Pagination |
2202
+ |---|---|---|---|---|
2203
+ | list | GET | `/sandbox/v1/byod/devices` | no | no |
2204
+ | retrieve | GET | `/sandbox/v1/byod/devices/{deviceID}` | no | no |
2205
+ | update | PATCH | `/sandbox/v1/byod/devices/{deviceID}` | no | no |
2206
+
2207
+ ### sandbox.byod.devices.disconnect
2208
+
2209
+ | Method | HTTP | Path | Streaming | Pagination |
2210
+ |---|---|---|---|---|
2211
+ | create | POST | `/sandbox/v1/byod/devices/{deviceID}/disconnect` | no | no |
2212
+
2213
+ ### sandbox.byod.pairings
2214
+
2215
+ | Method | HTTP | Path | Streaming | Pagination |
2216
+ |---|---|---|---|---|
2217
+ | create | POST | `/sandbox/v1/byod/pairings` | no | no |
2218
+ | retrieve | GET | `/sandbox/v1/byod/pairings/{code}` | no | no |
2219
+
2220
+ ### sandbox.byod.pairings.claim
2221
+
2222
+ | Method | HTTP | Path | Streaming | Pagination |
2223
+ |---|---|---|---|---|
2224
+ | create | POST | `/sandbox/v1/byod/pairings/{code}/claim` | no | no |
2225
+
1932
2226
  ### sandbox.events.sandboxes
1933
2227
 
1934
2228
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1939,6 +2233,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1939
2233
 
1940
2234
  | Method | HTTP | Path | Streaming | Pagination |
1941
2235
  |---|---|---|---|---|
2236
+ | act | POST | `/sandbox/v1/sandboxes/{sandboxID}/act` | no | no |
1942
2237
  | connect | POST | `/sandbox/v1/sandboxes/{sandboxID}/connect` | no | no |
1943
2238
  | create | POST | `/sandbox/v1/sandboxes` | no | no |
1944
2239
  | delete | DELETE | `/sandbox/v1/sandboxes/{sandboxID}` | no | no |
@@ -2481,7 +2776,10 @@ Multipart request bodies expand plain objects into bracketed fields (for example
2481
2776
 
2482
2777
  | Operation | Reason |
2483
2778
  |---|---|
2779
+ | 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. |
2484
2780
  | 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. |
2781
+ | 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. |
2782
+ | 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. |
2485
2783
  | agent.sessions.events.send | Events submit session input; the product verb is send rather than create. |
2486
2784
  | automation.hooks.send | Delivers a payload to a trigger's secret webhook URL; it sends an event rather than updating a hook resource. |
2487
2785
  | automation.scripts.distTags.set | A dist-tag assigns a version to a name; use npm vocabulary set rather than update. |
@@ -2490,6 +2788,10 @@ Multipart request bodies expand plain objects into bracketed fields (for example
2490
2788
  | automation.workflows.distTags.set | Workflow dist-tags use the same npm-style assignment vocabulary as script dist-tags. |
2491
2789
  | automation.workflows.vaults.set | Assign a whole vault to a definition alias, independently of published versions. |
2492
2790
  | automation.workflows.versions.create / publish | Creating a workflow version publishes it; publish is a product alias of versions.create. |
2791
+ | 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). |
2792
+ | 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. |
2793
+ | 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. |
2794
+ | 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. |
2493
2795
  | crm.objects.list | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
2494
2796
  | crm.objects.create | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
2495
2797
  | crm.objects.batch.create | The terminal batch segment is the requested operation, not another collection; retain its read/create/update/upsert/archive verb. |
@@ -2509,6 +2811,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
2509
2811
  | crm.properties.list | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
2510
2812
  | crm.properties.create | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
2511
2813
  | crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
2814
+ | 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. |
2815
+ | 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. |
2816
+ | 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. |
2817
+ | 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. |
2818
+ | 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. |
2819
+ | 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. |
2512
2820
  | database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
2513
2821
  | 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. |
2514
2822
  | file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
@@ -2520,6 +2828,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
2520
2828
  | 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. |
2521
2829
  | 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. |
2522
2830
  | meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
2831
+ | 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. |
2523
2832
  | sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
2524
2833
  | sandbox.sandboxes.files.remove | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
2525
2834
  | sandbox.sandboxes.files.read | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
@@ -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 {