@deepraxis/sdk 0.1.1-dev.1b3a943 → 0.1.1-dev.1ba76a6
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 +239 -20
- package/dist/core/binary-operations.d.ts +3 -0
- package/dist/core/binary-operations.js +14 -0
- package/dist/core/credentials.d.ts +16 -6
- package/dist/core/credentials.js +24 -5
- package/dist/core/transport.js +8 -4
- package/dist/generated/binary-operations.gen.d.ts +3 -0
- package/dist/generated/binary-operations.gen.js +14 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +452 -66
- package/dist/generated/sdk.gen.js +1431 -352
- package/dist/generated/types.gen.d.ts +36436 -25951
- package/dist/helpers/application-publish.js +16 -2
- package/dist/helpers/browser-connect-error.d.ts +28 -0
- package/dist/helpers/browser-connect-error.js +74 -0
- package/dist/helpers/browser-connect.d.ts +2 -0
- package/dist/helpers/browser-connect.js +31 -38
- package/dist/operations.generated.js +2885 -889
- package/dist/resources.generated.d.ts +1902 -305
- package/dist/resources.generated.js +150 -12
- 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`. 855 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 |
|
|
@@ -80,6 +63,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
80
63
|
| send | POST | `/agent/v1/agents/{agent_id}/events` | no | no |
|
|
81
64
|
| stream | GET | `/agent/v1/agents/{agent_id}/events/stream` | always | no |
|
|
82
65
|
|
|
66
|
+
### agent.agents.inbox.letters
|
|
67
|
+
|
|
68
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
69
|
+
|---|---|---|---|---|
|
|
70
|
+
| list | GET | `/agent/v1/agents/{agent_id}/inbox/letters` | no | no |
|
|
71
|
+
|
|
83
72
|
### agent.agents.unarchive
|
|
84
73
|
|
|
85
74
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -117,6 +106,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
117
106
|
|---|---|---|---|---|
|
|
118
107
|
| list | GET | `/agent/v1/computers/{computer_id}/files` | no | no |
|
|
119
108
|
| retrieveContent | GET | `/agent/v1/computers/{computer_id}/files/content` | no | no |
|
|
109
|
+
| retrievePreview | GET | `/agent/v1/computers/{computer_id}/files/preview` | no | no |
|
|
120
110
|
|
|
121
111
|
### agent.computers.files.convert
|
|
122
112
|
|
|
@@ -191,6 +181,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
191
181
|
| retrieveContext | GET | `/agent/v1/sessions/{session_id}/context` | no | no |
|
|
192
182
|
| update | POST | `/agent/v1/sessions/{session_id}` | no | no |
|
|
193
183
|
|
|
184
|
+
### agent.sessions.agentVersion
|
|
185
|
+
|
|
186
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
187
|
+
|---|---|---|---|---|
|
|
188
|
+
| create | POST | `/agent/v1/sessions/{session_id}/agent_version` | no | no |
|
|
189
|
+
|
|
194
190
|
### agent.sessions.artifacts
|
|
195
191
|
|
|
196
192
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -225,6 +221,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
225
221
|
| send | POST | `/agent/v1/sessions/{session_id}/events` | no | no |
|
|
226
222
|
| stream | GET | `/agent/v1/sessions/{session_id}/events/stream` | always | no |
|
|
227
223
|
|
|
224
|
+
### agent.sessions.name
|
|
225
|
+
|
|
226
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
227
|
+
|---|---|---|---|---|
|
|
228
|
+
| create | POST | `/agent/v1/sessions/{session_id}/name` | no | no |
|
|
229
|
+
|
|
230
|
+
### agent.sessions.requests
|
|
231
|
+
|
|
232
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
233
|
+
|---|---|---|---|---|
|
|
234
|
+
| list | GET | `/agent/v1/sessions/{session_id}/requests` | no | no |
|
|
235
|
+
|
|
228
236
|
### agent.sessions.resources
|
|
229
237
|
|
|
230
238
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -286,6 +294,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
286
294
|
|---|---|---|---|---|
|
|
287
295
|
| list | GET | `/agent/v1/toolsets` | no | no |
|
|
288
296
|
|
|
297
|
+
### agent.uploads
|
|
298
|
+
|
|
299
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
300
|
+
|---|---|---|---|---|
|
|
301
|
+
| create | POST | `/agent/v1/uploads` | no | no |
|
|
302
|
+
|
|
303
|
+
### agent.uploads.contentUrl
|
|
304
|
+
|
|
305
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
306
|
+
|---|---|---|---|---|
|
|
307
|
+
| create | POST | `/agent/v1/uploads/{file_id}/content_url` | no | no |
|
|
308
|
+
|
|
289
309
|
## application
|
|
290
310
|
|
|
291
311
|
### application.assets.upload
|
|
@@ -678,6 +698,33 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
678
698
|
| retrieve | GET | `/canvas/v1/collections/{collection_id}` | no | no |
|
|
679
699
|
| update | PATCH | `/canvas/v1/collections/{collection_id}` | no | no |
|
|
680
700
|
|
|
701
|
+
## content
|
|
702
|
+
|
|
703
|
+
### content.contents
|
|
704
|
+
|
|
705
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
706
|
+
|---|---|---|---|---|
|
|
707
|
+
| archive | POST | `/content/v1/contents/{content_id}/archive` | no | no |
|
|
708
|
+
| create | POST | `/content/v1/contents` | no | no |
|
|
709
|
+
| list | GET | `/content/v1/contents` | no | no |
|
|
710
|
+
| publish | POST | `/content/v1/contents/{content_id}/publish` | no | no |
|
|
711
|
+
| retrieve | GET | `/content/v1/contents/{content_id}` | no | no |
|
|
712
|
+
| unpublish | POST | `/content/v1/contents/{content_id}/unpublish` | no | no |
|
|
713
|
+
| update | PATCH | `/content/v1/contents/{content_id}` | no | no |
|
|
714
|
+
|
|
715
|
+
### content.playbackSessions
|
|
716
|
+
|
|
717
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
718
|
+
|---|---|---|---|---|
|
|
719
|
+
| create | POST | `/content/v1/playback/sessions` | no | no |
|
|
720
|
+
|
|
721
|
+
### content.versions
|
|
722
|
+
|
|
723
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
724
|
+
|---|---|---|---|---|
|
|
725
|
+
| list | GET | `/content/v1/contents/{content_id}/versions` | no | no |
|
|
726
|
+
| retrieve | GET | `/content/v1/contents/{content_id}/versions/{version}` | no | no |
|
|
727
|
+
|
|
681
728
|
## crm
|
|
682
729
|
|
|
683
730
|
### crm.associations
|
|
@@ -771,6 +818,47 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
771
818
|
| create | POST | `/crm/v1/schemas` | no | no |
|
|
772
819
|
| list | GET | `/crm/v1/schemas` | no | no |
|
|
773
820
|
|
|
821
|
+
## customer
|
|
822
|
+
|
|
823
|
+
### customer.accessTokens
|
|
824
|
+
|
|
825
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
826
|
+
|---|---|---|---|---|
|
|
827
|
+
| create | POST | `/customer/v1/access_tokens` | no | no |
|
|
828
|
+
| renew | POST | `/customer/v1/access_tokens/renew` | no | no |
|
|
829
|
+
| revoke | DELETE | `/customer/v1/access_tokens/current` | no | no |
|
|
830
|
+
|
|
831
|
+
### customer.customers
|
|
832
|
+
|
|
833
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
834
|
+
|---|---|---|---|---|
|
|
835
|
+
| block | POST | `/customer/v1/customers/{customer_id}/block` | no | no |
|
|
836
|
+
| delete | DELETE | `/customer/v1/customers/{customer_id}` | no | no |
|
|
837
|
+
| list | GET | `/customer/v1/customers` | no | no |
|
|
838
|
+
| retrieve | GET | `/customer/v1/customers/{customer_id}` | no | no |
|
|
839
|
+
| revokeTokens | POST | `/customer/v1/customers/{customer_id}/revoke_tokens` | no | no |
|
|
840
|
+
| unblock | POST | `/customer/v1/customers/{customer_id}/unblock` | no | no |
|
|
841
|
+
|
|
842
|
+
### customer.grantCodes
|
|
843
|
+
|
|
844
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
845
|
+
|---|---|---|---|---|
|
|
846
|
+
| create | POST | `/customer/v1/grant_codes` | no | no |
|
|
847
|
+
|
|
848
|
+
### customer.publishableKeys
|
|
849
|
+
|
|
850
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
851
|
+
|---|---|---|---|---|
|
|
852
|
+
| create | POST | `/customer/v1/publishable_keys` | no | no |
|
|
853
|
+
| delete | DELETE | `/customer/v1/publishable_keys/{key_id}` | no | no |
|
|
854
|
+
| list | GET | `/customer/v1/publishable_keys` | no | no |
|
|
855
|
+
|
|
856
|
+
### customer.usage
|
|
857
|
+
|
|
858
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
859
|
+
|---|---|---|---|---|
|
|
860
|
+
| retrieve | GET | `/customer/v1/customers/{customer_id}/usage` | no | no |
|
|
861
|
+
|
|
774
862
|
## cut
|
|
775
863
|
|
|
776
864
|
### cut.exports
|
|
@@ -912,7 +1000,9 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
912
1000
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
913
1001
|
|---|---|---|---|---|
|
|
914
1002
|
| abandon | POST | `/devops/v1/changes/{id}:abandon` | no | no |
|
|
1003
|
+
| gitCredential | POST | `/devops/v1/changes/{id}:gitCredential` | no | no |
|
|
915
1004
|
| markLastSlice | POST | `/devops/v1/changes/{id}:markLastSlice` | no | no |
|
|
1005
|
+
| openPullRequest | POST | `/devops/v1/changes/{id}:openPullRequest` | no | no |
|
|
916
1006
|
| retrieve | GET | `/devops/v1/changes/{id}` | no | no |
|
|
917
1007
|
|
|
918
1008
|
### devops.connections
|
|
@@ -975,6 +1065,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
975
1065
|
| list | GET | `/devops/v1/projects` | no | no |
|
|
976
1066
|
| retrieve | GET | `/devops/v1/projects/{id}` | no | no |
|
|
977
1067
|
| retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
|
|
1068
|
+
| retrieveTestPlan | GET | `/devops/v1/projects/{project}/test-plan` | no | no |
|
|
978
1069
|
| update | PATCH | `/devops/v1/projects/{id}` | no | no |
|
|
979
1070
|
|
|
980
1071
|
### devops.projects.changes
|
|
@@ -1119,6 +1210,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1119
1210
|
|
|
1120
1211
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1121
1212
|
|---|---|---|---|---|
|
|
1213
|
+
| close | POST | `/devops/v1/pull-requests/{id}:close` | no | no |
|
|
1122
1214
|
| merge | POST | `/devops/v1/pull-requests/{id}:merge` | no | no |
|
|
1123
1215
|
| recordVerdict | POST | `/devops/v1/pull-requests/{id}:recordVerdict` | no | no |
|
|
1124
1216
|
| rerunGate | POST | `/devops/v1/pull-requests/{id}:rerunGate` | no | no |
|
|
@@ -1370,6 +1462,13 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1370
1462
|
|---|---|---|---|---|
|
|
1371
1463
|
| create | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/frames` | no | no |
|
|
1372
1464
|
|
|
1465
|
+
### media.libraries.assets.hls
|
|
1466
|
+
|
|
1467
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1468
|
+
|---|---|---|---|---|
|
|
1469
|
+
| create | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/hls` | no | no |
|
|
1470
|
+
| list | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}/hls` | no | no |
|
|
1471
|
+
|
|
1373
1472
|
### media.libraries.assets.import
|
|
1374
1473
|
|
|
1375
1474
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1472,6 +1571,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1472
1571
|
| list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
|
|
1473
1572
|
| retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
|
|
1474
1573
|
|
|
1574
|
+
### media.libraries.voices
|
|
1575
|
+
|
|
1576
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1577
|
+
|---|---|---|---|---|
|
|
1578
|
+
| create | POST | `/media/v1/libraries/{library_id}/voices` | no | no |
|
|
1579
|
+
|
|
1580
|
+
### media.libraries.voices.designs
|
|
1581
|
+
|
|
1582
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1583
|
+
|---|---|---|---|---|
|
|
1584
|
+
| create | POST | `/media/v1/libraries/{library_id}/voices/designs` | no | no |
|
|
1585
|
+
|
|
1475
1586
|
### media.speech
|
|
1476
1587
|
|
|
1477
1588
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1915,6 +2026,90 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1915
2026
|
|---|---|---|---|---|
|
|
1916
2027
|
| list | GET | `/organization/v1/usage` | no | no |
|
|
1917
2028
|
|
|
2029
|
+
## registry
|
|
2030
|
+
|
|
2031
|
+
### registry.installations
|
|
2032
|
+
|
|
2033
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2034
|
+
|---|---|---|---|---|
|
|
2035
|
+
| delete | DELETE | `/registry/v1/installations/{installation_id}` | no | no |
|
|
2036
|
+
| update | POST | `/registry/v1/installations/{installation_id}:update` | no | no |
|
|
2037
|
+
|
|
2038
|
+
### registry.packages
|
|
2039
|
+
|
|
2040
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2041
|
+
|---|---|---|---|---|
|
|
2042
|
+
| retrieve | GET | `/registry/v1/packages/{package_id}` | no | no |
|
|
2043
|
+
|
|
2044
|
+
### registry.packages.git
|
|
2045
|
+
|
|
2046
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2047
|
+
|---|---|---|---|---|
|
|
2048
|
+
| retrieveLog | GET | `/registry/v1/packages/{package_id}/git/log` | no | no |
|
|
2049
|
+
|
|
2050
|
+
### registry.packages.git.commits
|
|
2051
|
+
|
|
2052
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2053
|
+
|---|---|---|---|---|
|
|
2054
|
+
| retrieve | GET | `/registry/v1/packages/{package_id}/git/commits/{sha}` | no | no |
|
|
2055
|
+
|
|
2056
|
+
### registry.packages.git.files
|
|
2057
|
+
|
|
2058
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2059
|
+
|---|---|---|---|---|
|
|
2060
|
+
| retrieve | GET | `/registry/v1/packages/{package_id}/git/files/{path}` | no | no |
|
|
2061
|
+
|
|
2062
|
+
### registry.packages.git.trees
|
|
2063
|
+
|
|
2064
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2065
|
+
|---|---|---|---|---|
|
|
2066
|
+
| retrieve | GET | `/registry/v1/packages/{package_id}/git/trees/{sha}` | no | no |
|
|
2067
|
+
|
|
2068
|
+
### registry.packages.installations
|
|
2069
|
+
|
|
2070
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2071
|
+
|---|---|---|---|---|
|
|
2072
|
+
| create | POST | `/registry/v1/packages/{package_id}/installations` | no | no |
|
|
2073
|
+
| list | GET | `/registry/v1/packages/{package_id}/installations` | no | no |
|
|
2074
|
+
|
|
2075
|
+
### registry.packages.versions
|
|
2076
|
+
|
|
2077
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2078
|
+
|---|---|---|---|---|
|
|
2079
|
+
| create | POST | `/registry/v1/packages/{package_id}/versions` | no | no |
|
|
2080
|
+
| list | GET | `/registry/v1/packages/{package_id}/versions` | no | yes |
|
|
2081
|
+
| retrieveArchive | GET | `/registry/v1/packages/{package_id}/versions/{version}/archive` | no | no |
|
|
2082
|
+
| withdraw | POST | `/registry/v1/packages/{package_id}/versions/{version}:withdraw` | no | no |
|
|
2083
|
+
|
|
2084
|
+
### registry.packages.versions.contents
|
|
2085
|
+
|
|
2086
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2087
|
+
|---|---|---|---|---|
|
|
2088
|
+
| list | GET | `/registry/v1/packages/{package_id}/versions/{version}/contents` | no | no |
|
|
2089
|
+
|
|
2090
|
+
### registry.packages.versions.files
|
|
2091
|
+
|
|
2092
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2093
|
+
|---|---|---|---|---|
|
|
2094
|
+
| retrieve | GET | `/registry/v1/packages/{package_id}/versions/{version}/files/{path}` | no | no |
|
|
2095
|
+
|
|
2096
|
+
### registry.repositories
|
|
2097
|
+
|
|
2098
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2099
|
+
|---|---|---|---|---|
|
|
2100
|
+
| create | POST | `/registry/v1/repositories` | no | no |
|
|
2101
|
+
| delete | DELETE | `/registry/v1/repositories/{repository_id}` | no | no |
|
|
2102
|
+
| list | GET | `/registry/v1/repositories` | no | yes |
|
|
2103
|
+
| retrieve | GET | `/registry/v1/repositories/{repository_id}` | no | no |
|
|
2104
|
+
| update | PATCH | `/registry/v1/repositories/{repository_id}` | no | no |
|
|
2105
|
+
|
|
2106
|
+
### registry.repositories.packages
|
|
2107
|
+
|
|
2108
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2109
|
+
|---|---|---|---|---|
|
|
2110
|
+
| create | POST | `/registry/v1/repositories/{repository_id}/packages` | no | no |
|
|
2111
|
+
| list | GET | `/registry/v1/repositories/{repository_id}/packages` | no | yes |
|
|
2112
|
+
|
|
1918
2113
|
## sandbox
|
|
1919
2114
|
|
|
1920
2115
|
### sandbox.events.sandboxes
|
|
@@ -1927,6 +2122,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1927
2122
|
|
|
1928
2123
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1929
2124
|
|---|---|---|---|---|
|
|
2125
|
+
| act | POST | `/sandbox/v1/sandboxes/{sandboxID}/act` | no | no |
|
|
1930
2126
|
| connect | POST | `/sandbox/v1/sandboxes/{sandboxID}/connect` | no | no |
|
|
1931
2127
|
| create | POST | `/sandbox/v1/sandboxes` | no | no |
|
|
1932
2128
|
| delete | DELETE | `/sandbox/v1/sandboxes/{sandboxID}` | no | no |
|
|
@@ -2070,6 +2266,17 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2070
2266
|
|---|---|---|---|---|
|
|
2071
2267
|
| create | POST | `/search/v1/search` | no | no |
|
|
2072
2268
|
|
|
2269
|
+
## share
|
|
2270
|
+
|
|
2271
|
+
### share.permissions
|
|
2272
|
+
|
|
2273
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
2274
|
+
|---|---|---|---|---|
|
|
2275
|
+
| create | POST | `/share/v1/permissions` | no | no |
|
|
2276
|
+
| delete | DELETE | `/share/v1/permissions/{id}` | no | no |
|
|
2277
|
+
| list | GET | `/share/v1/permissions` | no | no |
|
|
2278
|
+
| retrieve | GET | `/share/v1/permissions/{id}` | no | no |
|
|
2279
|
+
|
|
2073
2280
|
## studio
|
|
2074
2281
|
|
|
2075
2282
|
### studio.codexes
|
|
@@ -2458,6 +2665,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2458
2665
|
|
|
2459
2666
|
| Operation | Reason |
|
|
2460
2667
|
|---|---|
|
|
2668
|
+
| 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. |
|
|
2461
2669
|
| 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. |
|
|
2462
2670
|
| agent.sessions.events.send | Events submit session input; the product verb is send rather than create. |
|
|
2463
2671
|
| automation.hooks.send | Delivers a payload to a trigger's secret webhook URL; it sends an event rather than updating a hook resource. |
|
|
@@ -2467,6 +2675,10 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2467
2675
|
| automation.workflows.distTags.set | Workflow dist-tags use the same npm-style assignment vocabulary as script dist-tags. |
|
|
2468
2676
|
| automation.workflows.vaults.set | Assign a whole vault to a definition alias, independently of published versions. |
|
|
2469
2677
|
| automation.workflows.versions.create / publish | Creating a workflow version publishes it; publish is a product alias of versions.create. |
|
|
2678
|
+
| 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). |
|
|
2679
|
+
| 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. |
|
|
2680
|
+
| 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. |
|
|
2681
|
+
| 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. |
|
|
2470
2682
|
| crm.objects.list | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
2471
2683
|
| crm.objects.create | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
2472
2684
|
| crm.objects.batch.create | The terminal batch segment is the requested operation, not another collection; retain its read/create/update/upsert/archive verb. |
|
|
@@ -2486,6 +2698,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2486
2698
|
| crm.properties.list | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
2487
2699
|
| crm.properties.create | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
2488
2700
|
| crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
|
|
2701
|
+
| 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. |
|
|
2702
|
+
| 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. |
|
|
2703
|
+
| 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. |
|
|
2704
|
+
| 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. |
|
|
2705
|
+
| 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. |
|
|
2706
|
+
| 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. |
|
|
2489
2707
|
| database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
|
|
2490
2708
|
| 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. |
|
|
2491
2709
|
| file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
|
|
@@ -2497,6 +2715,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
2497
2715
|
| 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. |
|
|
2498
2716
|
| 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. |
|
|
2499
2717
|
| meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
|
|
2718
|
+
| 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. |
|
|
2500
2719
|
| sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
2501
2720
|
| sandbox.sandboxes.files.remove | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
2502
2721
|
| sandbox.sandboxes.files.read | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
@@ -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
|
|
3
|
-
* the PRAXIS_API_TOKEN environment variable
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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
|
|
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 {};
|
package/dist/core/credentials.js
CHANGED
|
@@ -27,18 +27,37 @@ export function credentialsEnv(env) {
|
|
|
27
27
|
}
|
|
28
28
|
return 'production';
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
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
|
-
|
|
41
|
-
const
|
|
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 {
|
package/dist/core/transport.js
CHANGED
|
@@ -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
|
-
|
|
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,14 @@
|
|
|
1
|
+
// Generated by scripts/resources.ts. DO NOT EDIT.
|
|
2
|
+
/** Exported SDK operations whose 2xx response the OpenAPI declares as binary bytes: the core
|
|
3
|
+
* transport resolves them to a Blob whatever the response Content-Type says. */
|
|
4
|
+
export const binaryOperations = [
|
|
5
|
+
'browserGetSessionFrame',
|
|
6
|
+
'computersFilesContent',
|
|
7
|
+
'createAudioSpeech',
|
|
8
|
+
'downloadVideoContent',
|
|
9
|
+
'fileRetrieveFileContent',
|
|
10
|
+
'registryGitFilesRetrieve',
|
|
11
|
+
'registryPackagesVersionsArchive',
|
|
12
|
+
'registryPackagesVersionsFilesRetrieve',
|
|
13
|
+
'skillsVersionsDownload',
|
|
14
|
+
];
|