@deepraxis/sdk 0.1.1-dev.b4cf519 → 0.1.1-dev.b4fa9b9
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 +361 -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 +880 -139
- package/dist/generated/sdk.gen.js +3456 -1307
- package/dist/generated/types.gen.d.ts +50868 -37494
- 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 +35 -17198
- package/dist/operations.generated.js +10253 -5501
- package/dist/resources.generated.d.ts +265 -1
- package/dist/resources.generated.js +224 -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`. 665 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,178 @@ 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.environments.checkpoints
|
|
882
|
+
|
|
883
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
884
|
+
|---|---|---|---|---|
|
|
885
|
+
| list | GET | `/devops/v1/environments/{id}/checkpoints` | no | no |
|
|
886
|
+
|
|
887
|
+
### devops.flags
|
|
888
|
+
|
|
889
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
890
|
+
|---|---|---|---|---|
|
|
891
|
+
| archive | POST | `/devops/v1/flags/{id}:archive` | no | no |
|
|
892
|
+
| conclude | POST | `/devops/v1/flags/{id}:conclude` | no | no |
|
|
893
|
+
| retrieve | GET | `/devops/v1/flags/{id}` | no | no |
|
|
894
|
+
| update | PATCH | `/devops/v1/flags/{id}` | no | no |
|
|
895
|
+
|
|
896
|
+
### devops.flags.environments
|
|
897
|
+
|
|
898
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
899
|
+
|---|---|---|---|---|
|
|
900
|
+
| update | PATCH | `/devops/v1/flags/{id}/environments/{environment}` | no | no |
|
|
901
|
+
|
|
902
|
+
### devops.progressiveRollouts
|
|
903
|
+
|
|
904
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
905
|
+
|---|---|---|---|---|
|
|
906
|
+
| create | POST | `/devops/v1/progressive-rollouts` | no | no |
|
|
907
|
+
| pause | POST | `/devops/v1/progressive-rollouts/{id}:pause` | no | no |
|
|
908
|
+
| resume | POST | `/devops/v1/progressive-rollouts/{id}:resume` | no | no |
|
|
909
|
+
| retrieve | GET | `/devops/v1/progressive-rollouts/{id}` | no | no |
|
|
910
|
+
| rollback | POST | `/devops/v1/progressive-rollouts/{id}:rollback` | no | no |
|
|
911
|
+
|
|
912
|
+
### devops.projects
|
|
913
|
+
|
|
914
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
915
|
+
|---|---|---|---|---|
|
|
916
|
+
| list | GET | `/devops/v1/projects` | no | no |
|
|
917
|
+
| retrieve | GET | `/devops/v1/projects/{id}` | no | no |
|
|
918
|
+
| retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
|
|
919
|
+
|
|
920
|
+
### devops.projects.environments
|
|
921
|
+
|
|
922
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
923
|
+
|---|---|---|---|---|
|
|
924
|
+
| list | GET | `/devops/v1/projects/{project}/environments` | no | no |
|
|
925
|
+
|
|
926
|
+
### devops.projects.flags
|
|
927
|
+
|
|
928
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
929
|
+
|---|---|---|---|---|
|
|
930
|
+
| create | POST | `/devops/v1/projects/{project}/flags` | no | no |
|
|
931
|
+
| list | GET | `/devops/v1/projects/{project}/flags` | no | no |
|
|
932
|
+
|
|
933
|
+
### devops.projects.promotions
|
|
934
|
+
|
|
935
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
936
|
+
|---|---|---|---|---|
|
|
937
|
+
| list | GET | `/devops/v1/projects/{project}/promotions` | no | no |
|
|
938
|
+
|
|
939
|
+
### devops.projects.releases
|
|
940
|
+
|
|
941
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
942
|
+
|---|---|---|---|---|
|
|
943
|
+
| create | POST | `/devops/v1/projects/{project}/releases` | no | no |
|
|
944
|
+
| list | GET | `/devops/v1/projects/{project}/releases` | no | no |
|
|
945
|
+
|
|
946
|
+
### devops.projects.targets
|
|
947
|
+
|
|
948
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
949
|
+
|---|---|---|---|---|
|
|
950
|
+
| list | GET | `/devops/v1/projects/{project}/targets` | no | no |
|
|
951
|
+
| refresh | POST | `/devops/v1/projects/{project}/targets:refresh` | no | no |
|
|
952
|
+
|
|
953
|
+
### devops.projects.testCases
|
|
954
|
+
|
|
955
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
956
|
+
|---|---|---|---|---|
|
|
957
|
+
| list | GET | `/devops/v1/projects/{project}/test-cases` | no | no |
|
|
958
|
+
|
|
959
|
+
### devops.projects.testPlans
|
|
960
|
+
|
|
961
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
962
|
+
|---|---|---|---|---|
|
|
963
|
+
| create | POST | `/devops/v1/projects/{project}/test-plans` | no | no |
|
|
964
|
+
| list | GET | `/devops/v1/projects/{project}/test-plans` | no | no |
|
|
965
|
+
|
|
966
|
+
### devops.projects.testReports
|
|
967
|
+
|
|
968
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
969
|
+
|---|---|---|---|---|
|
|
970
|
+
| create | POST | `/devops/v1/projects/{project}/test-reports` | no | no |
|
|
971
|
+
|
|
972
|
+
### devops.projects.testRuns
|
|
973
|
+
|
|
974
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
975
|
+
|---|---|---|---|---|
|
|
976
|
+
| create | POST | `/devops/v1/projects/{project}/test-runs` | no | no |
|
|
977
|
+
| list | GET | `/devops/v1/projects/{project}/test-runs` | no | no |
|
|
978
|
+
|
|
979
|
+
### devops.projects.testSuites
|
|
980
|
+
|
|
981
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
982
|
+
|---|---|---|---|---|
|
|
983
|
+
| list | GET | `/devops/v1/projects/{project}/test-suites` | no | no |
|
|
984
|
+
|
|
985
|
+
### devops.promotions
|
|
986
|
+
|
|
987
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
988
|
+
|---|---|---|---|---|
|
|
989
|
+
| approve | POST | `/devops/v1/promotions/{id}:approve` | no | no |
|
|
990
|
+
| cancel | POST | `/devops/v1/promotions/{id}:cancel` | no | no |
|
|
991
|
+
| conclude | POST | `/devops/v1/promotions/{id}:conclude` | no | no |
|
|
992
|
+
| create | POST | `/devops/v1/promotions` | no | no |
|
|
993
|
+
| retrieve | GET | `/devops/v1/promotions/{id}` | no | no |
|
|
994
|
+
| retry | POST | `/devops/v1/promotions/{id}:retry` | no | no |
|
|
995
|
+
|
|
996
|
+
### devops.promotions.rollouts
|
|
997
|
+
|
|
998
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
999
|
+
|---|---|---|---|---|
|
|
1000
|
+
| list | GET | `/devops/v1/promotions/{promotion}/rollouts` | no | no |
|
|
1001
|
+
|
|
1002
|
+
### devops.releases
|
|
1003
|
+
|
|
1004
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1005
|
+
|---|---|---|---|---|
|
|
1006
|
+
| abandon | POST | `/devops/v1/releases/{id}:abandon` | no | no |
|
|
1007
|
+
| retrieve | GET | `/devops/v1/releases/{id}` | no | no |
|
|
1008
|
+
|
|
1009
|
+
### devops.rollouts
|
|
1010
|
+
|
|
1011
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1012
|
+
|---|---|---|---|---|
|
|
1013
|
+
| retrieve | GET | `/devops/v1/rollouts/{id}` | no | no |
|
|
1014
|
+
|
|
1015
|
+
### devops.testCases
|
|
1016
|
+
|
|
1017
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1018
|
+
|---|---|---|---|---|
|
|
1019
|
+
| retrieve | GET | `/devops/v1/test-cases/{id}` | no | no |
|
|
1020
|
+
|
|
1021
|
+
### devops.testPlans
|
|
1022
|
+
|
|
1023
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1024
|
+
|---|---|---|---|---|
|
|
1025
|
+
| delete | DELETE | `/devops/v1/test-plans/{id}` | no | no |
|
|
1026
|
+
| pause | POST | `/devops/v1/test-plans/{id}:pause` | no | no |
|
|
1027
|
+
| resume | POST | `/devops/v1/test-plans/{id}:resume` | no | no |
|
|
1028
|
+
| retrieve | GET | `/devops/v1/test-plans/{id}` | no | no |
|
|
1029
|
+
| update | PATCH | `/devops/v1/test-plans/{id}` | no | no |
|
|
1030
|
+
|
|
1031
|
+
### devops.testRuns
|
|
1032
|
+
|
|
1033
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1034
|
+
|---|---|---|---|---|
|
|
1035
|
+
| cancel | POST | `/devops/v1/test-runs/{id}:cancel` | no | no |
|
|
1036
|
+
| retrieve | GET | `/devops/v1/test-runs/{id}` | no | no |
|
|
1037
|
+
|
|
1038
|
+
### devops.testRuns.executions
|
|
1039
|
+
|
|
1040
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1041
|
+
|---|---|---|---|---|
|
|
1042
|
+
| list | GET | `/devops/v1/test-runs/{run}/executions` | no | no |
|
|
1043
|
+
| retrieve | GET | `/devops/v1/test-runs/{run}/executions/{case}` | no | no |
|
|
1044
|
+
|
|
1045
|
+
### devops.testSuites
|
|
1046
|
+
|
|
1047
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1048
|
+
|---|---|---|---|---|
|
|
1049
|
+
| retrieve | GET | `/devops/v1/test-suites/{id}` | no | no |
|
|
1050
|
+
|
|
855
1051
|
## file
|
|
856
1052
|
|
|
857
1053
|
### file.files
|
|
@@ -968,12 +1164,25 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
968
1164
|
|
|
969
1165
|
## media
|
|
970
1166
|
|
|
1167
|
+
### media.assets
|
|
1168
|
+
|
|
1169
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1170
|
+
|---|---|---|---|---|
|
|
1171
|
+
| edit | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/edits` | no | no |
|
|
1172
|
+
| lineage | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}/lineage` | no | no |
|
|
1173
|
+
|
|
971
1174
|
### media.generation.capabilities
|
|
972
1175
|
|
|
973
1176
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
974
1177
|
|---|---|---|---|---|
|
|
975
1178
|
| list | GET | `/media/v1/generation/capabilities` | no | no |
|
|
976
1179
|
|
|
1180
|
+
### media.images
|
|
1181
|
+
|
|
1182
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1183
|
+
|---|---|---|---|---|
|
|
1184
|
+
| generate | POST | `/media/v1/libraries/{library_id}/images/generations` | no | no |
|
|
1185
|
+
|
|
977
1186
|
### media.libraries
|
|
978
1187
|
|
|
979
1188
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -983,6 +1192,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
983
1192
|
| list | GET | `/media/v1/libraries` | no | yes |
|
|
984
1193
|
| restore | POST | `/media/v1/libraries/{library_id}/restore` | no | no |
|
|
985
1194
|
| retrieve | GET | `/media/v1/libraries/{library_id}` | no | no |
|
|
1195
|
+
| retrieveDefault | GET | `/media/v1/libraries/default` | no | no |
|
|
1196
|
+
| setDefault | PUT | `/media/v1/libraries/default` | no | no |
|
|
986
1197
|
| update | PATCH | `/media/v1/libraries/{library_id}` | no | no |
|
|
987
1198
|
|
|
988
1199
|
### media.libraries.assets
|
|
@@ -1102,6 +1313,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1102
1313
|
| list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
|
|
1103
1314
|
| retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
|
|
1104
1315
|
|
|
1316
|
+
### media.videos
|
|
1317
|
+
|
|
1318
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1319
|
+
|---|---|---|---|---|
|
|
1320
|
+
| generate | POST | `/media/v1/libraries/{library_id}/videos/generations` | no | no |
|
|
1321
|
+
|
|
1105
1322
|
## meta
|
|
1106
1323
|
|
|
1107
1324
|
### meta.docs
|
|
@@ -1266,6 +1483,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1266
1483
|
| create | POST | `/ontology/v1/nodes` | no | no |
|
|
1267
1484
|
| list | GET | `/ontology/v1/nodes` | no | yes |
|
|
1268
1485
|
| retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1486
|
+
| retrieveNeighborhood | GET | `/ontology/v1/nodes/{node_id}/neighborhood` | no | no |
|
|
1269
1487
|
| update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1270
1488
|
|
|
1271
1489
|
### ontology.nodes.merge
|
|
@@ -1498,6 +1716,142 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1498
1716
|
|---|---|---|---|---|
|
|
1499
1717
|
| create | POST | `/search/v1/search` | no | no |
|
|
1500
1718
|
|
|
1719
|
+
## studio
|
|
1720
|
+
|
|
1721
|
+
### studio.codexes
|
|
1722
|
+
|
|
1723
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1724
|
+
|---|---|---|---|---|
|
|
1725
|
+
| create | POST | `/studio/v1/codexes` | no | no |
|
|
1726
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}` | no | no |
|
|
1727
|
+
| list | GET | `/studio/v1/codexes` | no | no |
|
|
1728
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}` | no | no |
|
|
1729
|
+
| update | PATCH | `/studio/v1/codexes/{codex}` | no | no |
|
|
1730
|
+
|
|
1731
|
+
### studio.codexes.entries
|
|
1732
|
+
|
|
1733
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1734
|
+
|---|---|---|---|---|
|
|
1735
|
+
| create | POST | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1736
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1737
|
+
| list | GET | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1738
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1739
|
+
| update | PATCH | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1740
|
+
|
|
1741
|
+
### studio.genres
|
|
1742
|
+
|
|
1743
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1744
|
+
|---|---|---|---|---|
|
|
1745
|
+
| list | GET | `/studio/v1/genres` | no | no |
|
|
1746
|
+
| retrieve | GET | `/studio/v1/genres/{genre}` | no | no |
|
|
1747
|
+
|
|
1748
|
+
### studio.platforms
|
|
1749
|
+
|
|
1750
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1751
|
+
|---|---|---|---|---|
|
|
1752
|
+
| list | GET | `/studio/v1/platforms` | no | no |
|
|
1753
|
+
| retrieve | GET | `/studio/v1/platforms/{platform}` | no | no |
|
|
1754
|
+
|
|
1755
|
+
### studio.styles
|
|
1756
|
+
|
|
1757
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1758
|
+
|---|---|---|---|---|
|
|
1759
|
+
| create | POST | `/studio/v1/styles` | no | no |
|
|
1760
|
+
| delete | DELETE | `/studio/v1/styles/{style}` | no | no |
|
|
1761
|
+
| list | GET | `/studio/v1/styles` | no | no |
|
|
1762
|
+
| retrieve | GET | `/studio/v1/styles/{style}` | no | no |
|
|
1763
|
+
| update | PATCH | `/studio/v1/styles/{style}` | no | no |
|
|
1764
|
+
|
|
1765
|
+
### studio.templates
|
|
1766
|
+
|
|
1767
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1768
|
+
|---|---|---|---|---|
|
|
1769
|
+
| create | POST | `/studio/v1/templates` | no | no |
|
|
1770
|
+
| delete | DELETE | `/studio/v1/templates/{template}` | no | no |
|
|
1771
|
+
| list | GET | `/studio/v1/templates` | no | no |
|
|
1772
|
+
| retrieve | GET | `/studio/v1/templates/{template}` | no | no |
|
|
1773
|
+
|
|
1774
|
+
### studio.themes
|
|
1775
|
+
|
|
1776
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1777
|
+
|---|---|---|---|---|
|
|
1778
|
+
| create | POST | `/studio/v1/themes` | no | no |
|
|
1779
|
+
| delete | DELETE | `/studio/v1/themes/{theme}` | no | no |
|
|
1780
|
+
| list | GET | `/studio/v1/themes` | no | no |
|
|
1781
|
+
| retrieve | GET | `/studio/v1/themes/{theme}` | no | no |
|
|
1782
|
+
| update | PATCH | `/studio/v1/themes/{theme}` | no | no |
|
|
1783
|
+
|
|
1784
|
+
### studio.works
|
|
1785
|
+
|
|
1786
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1787
|
+
|---|---|---|---|---|
|
|
1788
|
+
| create | POST | `/studio/v1/works` | no | no |
|
|
1789
|
+
| list | GET | `/studio/v1/works` | no | no |
|
|
1790
|
+
| resolve | GET | `/studio/v1/works:resolve` | no | no |
|
|
1791
|
+
| retrieve | GET | `/studio/v1/works/{work}` | no | no |
|
|
1792
|
+
| update | PATCH | `/studio/v1/works/{work}` | no | no |
|
|
1793
|
+
| updateBrief | PATCH | `/studio/v1/works/{work}/brief` | no | no |
|
|
1794
|
+
|
|
1795
|
+
### studio.works.drafts
|
|
1796
|
+
|
|
1797
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1798
|
+
|---|---|---|---|---|
|
|
1799
|
+
| create | POST | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1800
|
+
| list | GET | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1801
|
+
| rebase | POST | `/studio/v1/works/{work}/drafts/{draft}:rebase` | no | no |
|
|
1802
|
+
| retrieve | GET | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1803
|
+
| retrieveExport | GET | `/studio/v1/works/{work}/drafts/{draft}/export` | no | no |
|
|
1804
|
+
| retrieveOutline | GET | `/studio/v1/works/{work}/drafts/{draft}/outline` | no | no |
|
|
1805
|
+
| retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
|
|
1806
|
+
| update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1807
|
+
|
|
1808
|
+
### studio.works.drafts.renditions
|
|
1809
|
+
|
|
1810
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1811
|
+
|---|---|---|---|---|
|
|
1812
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/renditions` | no | no |
|
|
1813
|
+
|
|
1814
|
+
### studio.works.drafts.status
|
|
1815
|
+
|
|
1816
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1817
|
+
|---|---|---|---|---|
|
|
1818
|
+
| list | GET | `/studio/v1/works/{work}/drafts/{draft}/status` | no | no |
|
|
1819
|
+
|
|
1820
|
+
### studio.works.drafts.units
|
|
1821
|
+
|
|
1822
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1823
|
+
|---|---|---|---|---|
|
|
1824
|
+
| batchCreate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchCreate` | no | no |
|
|
1825
|
+
| batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
|
|
1826
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
|
|
1827
|
+
|
|
1828
|
+
### studio.works.renditions
|
|
1829
|
+
|
|
1830
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1831
|
+
|---|---|---|---|---|
|
|
1832
|
+
| delete | DELETE | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1833
|
+
| list | GET | `/studio/v1/works/{work}/renditions` | no | no |
|
|
1834
|
+
| publish | POST | `/studio/v1/works/{work}/renditions/{rendition}:publish` | no | no |
|
|
1835
|
+
| render | POST | `/studio/v1/works/{work}/renditions/{rendition}:render` | no | no |
|
|
1836
|
+
| retrieve | GET | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1837
|
+
| retrieveContent | GET | `/studio/v1/works/{work}/renditions/{rendition}/content` | no | no |
|
|
1838
|
+
| update | PATCH | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1839
|
+
|
|
1840
|
+
### studio.works.units
|
|
1841
|
+
|
|
1842
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1843
|
+
|---|---|---|---|---|
|
|
1844
|
+
| move | POST | `/studio/v1/works/{work}/units/{unit}:move` | no | no |
|
|
1845
|
+
| retrieve | GET | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1846
|
+
| retrieveContext | GET | `/studio/v1/works/{work}/units/{unit}/context` | no | no |
|
|
1847
|
+
| update | PATCH | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1848
|
+
|
|
1849
|
+
### studio.works.units.blocks
|
|
1850
|
+
|
|
1851
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1852
|
+
|---|---|---|---|---|
|
|
1853
|
+
| patch | POST | `/studio/v1/works/{work}/units/{unit}/blocks:patch` | no | no |
|
|
1854
|
+
|
|
1501
1855
|
## ticket
|
|
1502
1856
|
|
|
1503
1857
|
### ticket.activity
|
|
@@ -1737,6 +2091,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1737
2091
|
| crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
|
|
1738
2092
|
| database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
|
|
1739
2093
|
| file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
|
|
2094
|
+
| 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. |
|
|
2095
|
+
| 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. |
|
|
2096
|
+
| media.assets.edit | ADR-094 §9 names the edit write assets.edit; an edit acts on the addressed asset and returns a Job, so the URL nesting under a library is a mount rather than an SDK resource level. |
|
|
2097
|
+
| 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. |
|
|
2098
|
+
| 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. |
|
|
2099
|
+
| 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. |
|
|
1740
2100
|
| meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
|
|
1741
2101
|
| sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
1742
2102
|
| 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) {
|