@deepraxis/sdk 0.1.1-dev.4421e6c → 0.1.1-dev.44bea19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +321 -1
- package/README.md +3 -3
- package/dist/core/errors.d.ts +6 -0
- package/dist/core/errors.js +8 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +805 -131
- package/dist/generated/sdk.gen.js +2660 -718
- package/dist/generated/types.gen.d.ts +48103 -36686
- package/dist/helpers/browser-actions.d.ts +84 -0
- package/dist/helpers/browser-actions.js +141 -0
- package/dist/helpers/browser-connect.d.ts +26 -2
- package/dist/helpers/browser-connect.js +263 -25
- package/dist/helpers/browser-decisions.d.ts +44 -0
- package/dist/helpers/browser-decisions.js +53 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +20 -11
- package/dist/operations.generated.d.ts +7167 -3798
- package/dist/operations.generated.js +9098 -4901
- package/dist/resources.generated.d.ts +255 -9
- package/dist/resources.generated.js +207 -0
- package/package.json +2 -2
package/METHODS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SDK methods
|
|
2
2
|
|
|
3
|
-
Generated by `bun run generate`.
|
|
3
|
+
Generated by `bun run generate`. 631 HTTP operations, plus product aliases. Version segments and path parameters are omitted from resource names. Inputs use typed `{ path, query, body, headers }` options. Collections form nested resource objects; POST actions retain their verb. Naming rules are documented in `scripts/resources.ts`; semantic exceptions and aliases with reasons are in `scripts/naming-overrides.ts`.
|
|
4
4
|
|
|
5
5
|
`always` returns an AsyncIterable; `optional` streams with `{ stream: true }`; `yes` pagination returns a Page. Only `{ data, next_cursor }` + `cursor` query contracts are automatically paginated.
|
|
6
6
|
|
|
@@ -103,6 +103,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
103
103
|
| list | GET | `/agent/v1/computers/{computer_id}/files` | no | no |
|
|
104
104
|
| retrieveContent | GET | `/agent/v1/computers/{computer_id}/files/content` | no | no |
|
|
105
105
|
|
|
106
|
+
### agent.computers.files.convert
|
|
107
|
+
|
|
108
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
109
|
+
|---|---|---|---|---|
|
|
110
|
+
| create | POST | `/agent/v1/computers/{computer_id}/files/convert` | no | no |
|
|
111
|
+
|
|
106
112
|
### agent.computers.leases
|
|
107
113
|
|
|
108
114
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -576,6 +582,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
576
582
|
| stream | GET | `/browser/v1/sessions/{sessionId}/stream` | always | no |
|
|
577
583
|
| update | POST | `/browser/v1/sessions/{sessionId}` | no | no |
|
|
578
584
|
|
|
585
|
+
### browser.sessions.actions
|
|
586
|
+
|
|
587
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
588
|
+
|---|---|---|---|---|
|
|
589
|
+
| create | POST | `/browser/v1/sessions/{sessionId}/actions` | no | no |
|
|
590
|
+
|
|
579
591
|
### browser.sessions.events
|
|
580
592
|
|
|
581
593
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -786,6 +798,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
786
798
|
|---|---|---|---|---|
|
|
787
799
|
| import | POST | `/cut/v1/projects/{project_id}/media:import` | no | no |
|
|
788
800
|
|
|
801
|
+
### cut.projects.renders
|
|
802
|
+
|
|
803
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
804
|
+
|---|---|---|---|---|
|
|
805
|
+
| create | POST | `/cut/v1/projects/{project_id}/renders` | no | no |
|
|
806
|
+
|
|
789
807
|
### cut.projects.versions
|
|
790
808
|
|
|
791
809
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -793,6 +811,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
793
811
|
| create | POST | `/cut/v1/projects/{project_id}/versions` | no | no |
|
|
794
812
|
| list | GET | `/cut/v1/projects/{project_id}/versions` | no | no |
|
|
795
813
|
|
|
814
|
+
### cut.renders
|
|
815
|
+
|
|
816
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
817
|
+
|---|---|---|---|---|
|
|
818
|
+
| retrieve | GET | `/cut/v1/renders/{render_id}` | no | no |
|
|
819
|
+
|
|
796
820
|
### cut.versions
|
|
797
821
|
|
|
798
822
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -852,6 +876,82 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
852
876
|
| delete | DELETE | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
853
877
|
| update | PATCH | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
854
878
|
|
|
879
|
+
## devops
|
|
880
|
+
|
|
881
|
+
### devops.projects
|
|
882
|
+
|
|
883
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
884
|
+
|---|---|---|---|---|
|
|
885
|
+
| retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
|
|
886
|
+
|
|
887
|
+
### devops.projects.testCases
|
|
888
|
+
|
|
889
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
890
|
+
|---|---|---|---|---|
|
|
891
|
+
| list | GET | `/devops/v1/projects/{project}/test-cases` | no | no |
|
|
892
|
+
|
|
893
|
+
### devops.projects.testPlans
|
|
894
|
+
|
|
895
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
896
|
+
|---|---|---|---|---|
|
|
897
|
+
| create | POST | `/devops/v1/projects/{project}/test-plans` | no | no |
|
|
898
|
+
| list | GET | `/devops/v1/projects/{project}/test-plans` | no | no |
|
|
899
|
+
|
|
900
|
+
### devops.projects.testReports
|
|
901
|
+
|
|
902
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
903
|
+
|---|---|---|---|---|
|
|
904
|
+
| create | POST | `/devops/v1/projects/{project}/test-reports` | no | no |
|
|
905
|
+
|
|
906
|
+
### devops.projects.testRuns
|
|
907
|
+
|
|
908
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
909
|
+
|---|---|---|---|---|
|
|
910
|
+
| create | POST | `/devops/v1/projects/{project}/test-runs` | no | no |
|
|
911
|
+
| list | GET | `/devops/v1/projects/{project}/test-runs` | no | no |
|
|
912
|
+
|
|
913
|
+
### devops.projects.testSuites
|
|
914
|
+
|
|
915
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
916
|
+
|---|---|---|---|---|
|
|
917
|
+
| list | GET | `/devops/v1/projects/{project}/test-suites` | no | no |
|
|
918
|
+
|
|
919
|
+
### devops.testCases
|
|
920
|
+
|
|
921
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
922
|
+
|---|---|---|---|---|
|
|
923
|
+
| retrieve | GET | `/devops/v1/test-cases/{id}` | no | no |
|
|
924
|
+
|
|
925
|
+
### devops.testPlans
|
|
926
|
+
|
|
927
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
928
|
+
|---|---|---|---|---|
|
|
929
|
+
| delete | DELETE | `/devops/v1/test-plans/{id}` | no | no |
|
|
930
|
+
| pause | POST | `/devops/v1/test-plans/{id}:pause` | no | no |
|
|
931
|
+
| resume | POST | `/devops/v1/test-plans/{id}:resume` | no | no |
|
|
932
|
+
| retrieve | GET | `/devops/v1/test-plans/{id}` | no | no |
|
|
933
|
+
| update | PATCH | `/devops/v1/test-plans/{id}` | no | no |
|
|
934
|
+
|
|
935
|
+
### devops.testRuns
|
|
936
|
+
|
|
937
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
938
|
+
|---|---|---|---|---|
|
|
939
|
+
| cancel | POST | `/devops/v1/test-runs/{id}:cancel` | no | no |
|
|
940
|
+
| retrieve | GET | `/devops/v1/test-runs/{id}` | no | no |
|
|
941
|
+
|
|
942
|
+
### devops.testRuns.executions
|
|
943
|
+
|
|
944
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
945
|
+
|---|---|---|---|---|
|
|
946
|
+
| list | GET | `/devops/v1/test-runs/{run}/executions` | no | no |
|
|
947
|
+
| retrieve | GET | `/devops/v1/test-runs/{run}/executions/{case}` | no | no |
|
|
948
|
+
|
|
949
|
+
### devops.testSuites
|
|
950
|
+
|
|
951
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
952
|
+
|---|---|---|---|---|
|
|
953
|
+
| retrieve | GET | `/devops/v1/test-suites/{id}` | no | no |
|
|
954
|
+
|
|
855
955
|
## file
|
|
856
956
|
|
|
857
957
|
### file.files
|
|
@@ -884,6 +984,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
884
984
|
| complete | POST | `/file/v1/uploads/{upload_id}/complete` | no | no |
|
|
885
985
|
| create | POST | `/file/v1/uploads` | no | no |
|
|
886
986
|
| createSigned | POST | `/file/v1/uploads/signed` | no | no |
|
|
987
|
+
| retrieve | GET | `/file/v1/uploads/{upload_id}` | no | no |
|
|
887
988
|
|
|
888
989
|
### file.uploads.parts
|
|
889
990
|
|
|
@@ -967,6 +1068,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
967
1068
|
|
|
968
1069
|
## media
|
|
969
1070
|
|
|
1071
|
+
### media.assets
|
|
1072
|
+
|
|
1073
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1074
|
+
|---|---|---|---|---|
|
|
1075
|
+
| lineage | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}/lineage` | no | no |
|
|
1076
|
+
|
|
1077
|
+
### media.generation.capabilities
|
|
1078
|
+
|
|
1079
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1080
|
+
|---|---|---|---|---|
|
|
1081
|
+
| list | GET | `/media/v1/generation/capabilities` | no | no |
|
|
1082
|
+
|
|
970
1083
|
### media.libraries
|
|
971
1084
|
|
|
972
1085
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -976,6 +1089,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
976
1089
|
| list | GET | `/media/v1/libraries` | no | yes |
|
|
977
1090
|
| restore | POST | `/media/v1/libraries/{library_id}/restore` | no | no |
|
|
978
1091
|
| retrieve | GET | `/media/v1/libraries/{library_id}` | no | no |
|
|
1092
|
+
| retrieveDefault | GET | `/media/v1/libraries/default` | no | no |
|
|
1093
|
+
| setDefault | PUT | `/media/v1/libraries/default` | no | no |
|
|
979
1094
|
| update | PATCH | `/media/v1/libraries/{library_id}` | no | no |
|
|
980
1095
|
|
|
981
1096
|
### media.libraries.assets
|
|
@@ -1038,12 +1153,26 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1038
1153
|
|---|---|---|---|---|
|
|
1039
1154
|
| list | GET | `/media/v1/libraries/{library_id}/folders` | no | no |
|
|
1040
1155
|
|
|
1156
|
+
### media.libraries.generations
|
|
1157
|
+
|
|
1158
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1159
|
+
|---|---|---|---|---|
|
|
1160
|
+
| create | POST | `/media/v1/libraries/{library_id}/generations` | no | no |
|
|
1161
|
+
|
|
1041
1162
|
### media.libraries.jobs
|
|
1042
1163
|
|
|
1043
1164
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1044
1165
|
|---|---|---|---|---|
|
|
1166
|
+
| cancel | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/cancel` | no | no |
|
|
1167
|
+
| list | GET | `/media/v1/libraries/{library_id}/jobs` | no | yes |
|
|
1045
1168
|
| retrieve | GET | `/media/v1/libraries/{library_id}/jobs/{job_id}` | no | no |
|
|
1046
1169
|
|
|
1170
|
+
### media.libraries.jobs.outputs.save
|
|
1171
|
+
|
|
1172
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1173
|
+
|---|---|---|---|---|
|
|
1174
|
+
| create | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save` | no | no |
|
|
1175
|
+
|
|
1047
1176
|
### media.libraries.purge
|
|
1048
1177
|
|
|
1049
1178
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1230,6 +1359,58 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1230
1359
|
| retrieve | GET | `/model/v1/videos/{video_id}` | no | no |
|
|
1231
1360
|
| retrieveContent | GET | `/model/v1/videos/{video_id}/content` | no | no |
|
|
1232
1361
|
|
|
1362
|
+
## ontology
|
|
1363
|
+
|
|
1364
|
+
### ontology.changesets
|
|
1365
|
+
|
|
1366
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1367
|
+
|---|---|---|---|---|
|
|
1368
|
+
| create | POST | `/ontology/v1/changesets` | no | no |
|
|
1369
|
+
|
|
1370
|
+
### ontology.nodes
|
|
1371
|
+
|
|
1372
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1373
|
+
|---|---|---|---|---|
|
|
1374
|
+
| create | POST | `/ontology/v1/nodes` | no | no |
|
|
1375
|
+
| list | GET | `/ontology/v1/nodes` | no | yes |
|
|
1376
|
+
| retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1377
|
+
| retrieveNeighborhood | GET | `/ontology/v1/nodes/{node_id}/neighborhood` | no | no |
|
|
1378
|
+
| update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1379
|
+
|
|
1380
|
+
### ontology.nodes.merge
|
|
1381
|
+
|
|
1382
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1383
|
+
|---|---|---|---|---|
|
|
1384
|
+
| create | POST | `/ontology/v1/nodes/{node_id}/merge` | no | no |
|
|
1385
|
+
|
|
1386
|
+
### ontology.relations
|
|
1387
|
+
|
|
1388
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1389
|
+
|---|---|---|---|---|
|
|
1390
|
+
| create | POST | `/ontology/v1/relations` | no | no |
|
|
1391
|
+
| list | GET | `/ontology/v1/relations` | no | yes |
|
|
1392
|
+
| retrieve | GET | `/ontology/v1/relations/{relation_id}` | no | no |
|
|
1393
|
+
|
|
1394
|
+
### ontology.relations.invalidate
|
|
1395
|
+
|
|
1396
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1397
|
+
|---|---|---|---|---|
|
|
1398
|
+
| create | POST | `/ontology/v1/relations/{relation_id}/invalidate` | no | no |
|
|
1399
|
+
|
|
1400
|
+
### ontology.search
|
|
1401
|
+
|
|
1402
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1403
|
+
|---|---|---|---|---|
|
|
1404
|
+
| create | POST | `/ontology/v1/search` | no | no |
|
|
1405
|
+
|
|
1406
|
+
### ontology.types
|
|
1407
|
+
|
|
1408
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1409
|
+
|---|---|---|---|---|
|
|
1410
|
+
| create | POST | `/ontology/v1/types` | no | no |
|
|
1411
|
+
| list | GET | `/ontology/v1/types` | no | no |
|
|
1412
|
+
| retrieve | GET | `/ontology/v1/types/{name}` | no | no |
|
|
1413
|
+
|
|
1233
1414
|
## organization
|
|
1234
1415
|
|
|
1235
1416
|
### organization.charges
|
|
@@ -1426,6 +1607,142 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1426
1607
|
|---|---|---|---|---|
|
|
1427
1608
|
| create | POST | `/search/v1/search` | no | no |
|
|
1428
1609
|
|
|
1610
|
+
## studio
|
|
1611
|
+
|
|
1612
|
+
### studio.codexes
|
|
1613
|
+
|
|
1614
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1615
|
+
|---|---|---|---|---|
|
|
1616
|
+
| create | POST | `/studio/v1/codexes` | no | no |
|
|
1617
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}` | no | no |
|
|
1618
|
+
| list | GET | `/studio/v1/codexes` | no | no |
|
|
1619
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}` | no | no |
|
|
1620
|
+
| update | PATCH | `/studio/v1/codexes/{codex}` | no | no |
|
|
1621
|
+
|
|
1622
|
+
### studio.codexes.entries
|
|
1623
|
+
|
|
1624
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1625
|
+
|---|---|---|---|---|
|
|
1626
|
+
| create | POST | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1627
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1628
|
+
| list | GET | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1629
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1630
|
+
| update | PATCH | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1631
|
+
|
|
1632
|
+
### studio.genres
|
|
1633
|
+
|
|
1634
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1635
|
+
|---|---|---|---|---|
|
|
1636
|
+
| list | GET | `/studio/v1/genres` | no | no |
|
|
1637
|
+
| retrieve | GET | `/studio/v1/genres/{genre}` | no | no |
|
|
1638
|
+
|
|
1639
|
+
### studio.platforms
|
|
1640
|
+
|
|
1641
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1642
|
+
|---|---|---|---|---|
|
|
1643
|
+
| list | GET | `/studio/v1/platforms` | no | no |
|
|
1644
|
+
| retrieve | GET | `/studio/v1/platforms/{platform}` | no | no |
|
|
1645
|
+
|
|
1646
|
+
### studio.styles
|
|
1647
|
+
|
|
1648
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1649
|
+
|---|---|---|---|---|
|
|
1650
|
+
| create | POST | `/studio/v1/styles` | no | no |
|
|
1651
|
+
| delete | DELETE | `/studio/v1/styles/{style}` | no | no |
|
|
1652
|
+
| list | GET | `/studio/v1/styles` | no | no |
|
|
1653
|
+
| retrieve | GET | `/studio/v1/styles/{style}` | no | no |
|
|
1654
|
+
| update | PATCH | `/studio/v1/styles/{style}` | no | no |
|
|
1655
|
+
|
|
1656
|
+
### studio.templates
|
|
1657
|
+
|
|
1658
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1659
|
+
|---|---|---|---|---|
|
|
1660
|
+
| create | POST | `/studio/v1/templates` | no | no |
|
|
1661
|
+
| delete | DELETE | `/studio/v1/templates/{template}` | no | no |
|
|
1662
|
+
| list | GET | `/studio/v1/templates` | no | no |
|
|
1663
|
+
| retrieve | GET | `/studio/v1/templates/{template}` | no | no |
|
|
1664
|
+
|
|
1665
|
+
### studio.themes
|
|
1666
|
+
|
|
1667
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1668
|
+
|---|---|---|---|---|
|
|
1669
|
+
| create | POST | `/studio/v1/themes` | no | no |
|
|
1670
|
+
| delete | DELETE | `/studio/v1/themes/{theme}` | no | no |
|
|
1671
|
+
| list | GET | `/studio/v1/themes` | no | no |
|
|
1672
|
+
| retrieve | GET | `/studio/v1/themes/{theme}` | no | no |
|
|
1673
|
+
| update | PATCH | `/studio/v1/themes/{theme}` | no | no |
|
|
1674
|
+
|
|
1675
|
+
### studio.works
|
|
1676
|
+
|
|
1677
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1678
|
+
|---|---|---|---|---|
|
|
1679
|
+
| create | POST | `/studio/v1/works` | no | no |
|
|
1680
|
+
| list | GET | `/studio/v1/works` | no | no |
|
|
1681
|
+
| resolve | GET | `/studio/v1/works:resolve` | no | no |
|
|
1682
|
+
| retrieve | GET | `/studio/v1/works/{work}` | no | no |
|
|
1683
|
+
| update | PATCH | `/studio/v1/works/{work}` | no | no |
|
|
1684
|
+
| updateBrief | PATCH | `/studio/v1/works/{work}/brief` | no | no |
|
|
1685
|
+
|
|
1686
|
+
### studio.works.drafts
|
|
1687
|
+
|
|
1688
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1689
|
+
|---|---|---|---|---|
|
|
1690
|
+
| create | POST | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1691
|
+
| list | GET | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1692
|
+
| rebase | POST | `/studio/v1/works/{work}/drafts/{draft}:rebase` | no | no |
|
|
1693
|
+
| retrieve | GET | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1694
|
+
| retrieveExport | GET | `/studio/v1/works/{work}/drafts/{draft}/export` | no | no |
|
|
1695
|
+
| retrieveOutline | GET | `/studio/v1/works/{work}/drafts/{draft}/outline` | no | no |
|
|
1696
|
+
| retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
|
|
1697
|
+
| update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1698
|
+
|
|
1699
|
+
### studio.works.drafts.renditions
|
|
1700
|
+
|
|
1701
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1702
|
+
|---|---|---|---|---|
|
|
1703
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/renditions` | no | no |
|
|
1704
|
+
|
|
1705
|
+
### studio.works.drafts.status
|
|
1706
|
+
|
|
1707
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1708
|
+
|---|---|---|---|---|
|
|
1709
|
+
| list | GET | `/studio/v1/works/{work}/drafts/{draft}/status` | no | no |
|
|
1710
|
+
|
|
1711
|
+
### studio.works.drafts.units
|
|
1712
|
+
|
|
1713
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1714
|
+
|---|---|---|---|---|
|
|
1715
|
+
| batchCreate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchCreate` | no | no |
|
|
1716
|
+
| batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
|
|
1717
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
|
|
1718
|
+
|
|
1719
|
+
### studio.works.renditions
|
|
1720
|
+
|
|
1721
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1722
|
+
|---|---|---|---|---|
|
|
1723
|
+
| delete | DELETE | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1724
|
+
| list | GET | `/studio/v1/works/{work}/renditions` | no | no |
|
|
1725
|
+
| publish | POST | `/studio/v1/works/{work}/renditions/{rendition}:publish` | no | no |
|
|
1726
|
+
| render | POST | `/studio/v1/works/{work}/renditions/{rendition}:render` | no | no |
|
|
1727
|
+
| retrieve | GET | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1728
|
+
| retrieveContent | GET | `/studio/v1/works/{work}/renditions/{rendition}/content` | no | no |
|
|
1729
|
+
| update | PATCH | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1730
|
+
|
|
1731
|
+
### studio.works.units
|
|
1732
|
+
|
|
1733
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1734
|
+
|---|---|---|---|---|
|
|
1735
|
+
| move | POST | `/studio/v1/works/{work}/units/{unit}:move` | no | no |
|
|
1736
|
+
| retrieve | GET | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1737
|
+
| retrieveContext | GET | `/studio/v1/works/{work}/units/{unit}/context` | no | no |
|
|
1738
|
+
| update | PATCH | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1739
|
+
|
|
1740
|
+
### studio.works.units.blocks
|
|
1741
|
+
|
|
1742
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1743
|
+
|---|---|---|---|---|
|
|
1744
|
+
| patch | POST | `/studio/v1/works/{work}/units/{unit}/blocks:patch` | no | no |
|
|
1745
|
+
|
|
1429
1746
|
## ticket
|
|
1430
1747
|
|
|
1431
1748
|
### ticket.activity
|
|
@@ -1665,6 +1982,9 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1665
1982
|
| crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
|
|
1666
1983
|
| database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
|
|
1667
1984
|
| file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
|
|
1985
|
+
| media.libraries.retrieveDefault | ADR-094 §9 names the default-library read libraries.retrieveDefault; the URL names a reference rather than an id, so the path-derived name would otherwise read as retrieving a library called default. |
|
|
1986
|
+
| media.libraries.setDefault | ADR-094 §9 names the default-library write libraries.setDefault; the URL has no library id because the organization owns one default library, so the path alone cannot say which. |
|
|
1987
|
+
| media.assets.lineage | ADR-094 §9 names the edit-tree read assets.lineage; lineage is the product verb and the URL nesting under a library is a mount, not an SDK resource level. |
|
|
1668
1988
|
| meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
|
|
1669
1989
|
| sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
1670
1990
|
| sandbox.sandboxes.files.remove | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**Models, agents, sandboxes, search, data and automation, typed end to end.**
|
|
6
6
|
|
|
7
|
-
The official TypeScript SDK for [
|
|
7
|
+
The official TypeScript SDK for [Praxis](https://deepraxis.com), the cloud where AI agents are built, run and hosted.
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@deepraxis/sdk)
|
|
10
10
|
[](https://bundlephobia.com/package/@deepraxis/sdk)
|
|
@@ -33,7 +33,7 @@ console.log(completion.choices[0]?.message.content);
|
|
|
33
33
|
## Why this SDK
|
|
34
34
|
|
|
35
35
|
- **The whole platform, one client.** About 350 operations across models, agents, sandboxes,
|
|
36
|
-
|
|
36
|
+
browsers, web search, databases, knowledge bases, files, media, automation and hosted
|
|
37
37
|
applications, generated from the same contract as the API.
|
|
38
38
|
- **Types from the contract.** Every path, query, body and response is typed, including the
|
|
39
39
|
events of each stream, so your editor knows what comes back.
|
|
@@ -276,5 +276,5 @@ sandboxes, search, data, automation and the rest of the platform.
|
|
|
276
276
|
|
|
277
277
|
[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0). Copyright 2026 南京深度实践人工智能科技有限公司 (Deepractice).
|
|
278
278
|
|
|
279
|
-
"Praxis"
|
|
279
|
+
"Praxis" and "Deepraxis" are trademarks of Deepractice; the license does not grant
|
|
280
280
|
rights to use them.
|
package/dist/core/errors.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export interface ProblemDetails {
|
|
|
9
9
|
requestId?: string;
|
|
10
10
|
message?: string;
|
|
11
11
|
param?: string | null;
|
|
12
|
+
/** ticket-681 — the documentation page the failure points at, and the exact section to read. */
|
|
13
|
+
docUrl?: string;
|
|
14
|
+
describe?: string;
|
|
12
15
|
raw?: unknown;
|
|
13
16
|
}
|
|
14
17
|
/** Pure normalization shared by HTTP clients and the automation call ledger.
|
|
@@ -26,6 +29,9 @@ export declare class PraxisError extends Error {
|
|
|
26
29
|
readonly errors: unknown[];
|
|
27
30
|
readonly requestId?: string;
|
|
28
31
|
readonly param?: string | null;
|
|
32
|
+
/** ticket-681 — the documented page and the exact section an agent should read to fix the call. */
|
|
33
|
+
readonly docUrl?: string;
|
|
34
|
+
readonly describe?: string;
|
|
29
35
|
readonly raw?: unknown;
|
|
30
36
|
constructor(problem?: ProblemDetails, options?: ErrorOptions);
|
|
31
37
|
static fromResponse(response: Response, body: unknown): PraxisError;
|
package/dist/core/errors.js
CHANGED
|
@@ -16,6 +16,9 @@ export function problemFrom(status, headers, body, statusText) {
|
|
|
16
16
|
param: typeof param === 'string' ? param : param === null || nested.param === null ? null : undefined,
|
|
17
17
|
errors: Array.isArray(value.errors) ? value.errors : [],
|
|
18
18
|
requestId: headers.get('x-request-id') ?? string(value.requestId) ?? string(value.request_id),
|
|
19
|
+
// Both spellings reach here: the own face writes snake_case, an in-process problem keeps docUrl.
|
|
20
|
+
docUrl: string(nested.doc_url) ?? string(value.doc_url) ?? string(nested.docUrl) ?? string(value.docUrl),
|
|
21
|
+
describe: string(nested.describe) ?? string(value.describe),
|
|
19
22
|
raw: body,
|
|
20
23
|
};
|
|
21
24
|
}
|
|
@@ -28,6 +31,9 @@ export class PraxisError extends Error {
|
|
|
28
31
|
errors;
|
|
29
32
|
requestId;
|
|
30
33
|
param;
|
|
34
|
+
/** ticket-681 — the documented page and the exact section an agent should read to fix the call. */
|
|
35
|
+
docUrl;
|
|
36
|
+
describe;
|
|
31
37
|
raw;
|
|
32
38
|
constructor(problem = {}, options) {
|
|
33
39
|
super(problem.message ?? problem.detail ?? problem.title ?? `Praxis request failed${problem.status ? ` (${problem.status})` : ''}`, options);
|
|
@@ -40,6 +46,8 @@ export class PraxisError extends Error {
|
|
|
40
46
|
this.errors = problem.errors ?? [];
|
|
41
47
|
this.requestId = problem.requestId;
|
|
42
48
|
this.param = problem.param;
|
|
49
|
+
this.docUrl = problem.docUrl;
|
|
50
|
+
this.describe = problem.describe;
|
|
43
51
|
this.raw = problem.raw;
|
|
44
52
|
}
|
|
45
53
|
static fromResponse(response, body) {
|