@deepraxis/sdk 0.1.1-dev.cc34a92 → 0.1.1-dev.d3030b1
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 +310 -1
- package/README.md +2 -2
- 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 +786 -49
- package/dist/generated/sdk.gen.js +2886 -981
- package/dist/generated/types.gen.d.ts +46153 -34371
- 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 +6855 -3680
- package/dist/operations.generated.js +8496 -4561
- package/dist/resources.generated.d.ts +263 -9
- package/dist/resources.generated.js +199 -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`. 619 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,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
967
1068
|
|
|
968
1069
|
## media
|
|
969
1070
|
|
|
1071
|
+
### media.generation.capabilities
|
|
1072
|
+
|
|
1073
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1074
|
+
|---|---|---|---|---|
|
|
1075
|
+
| list | GET | `/media/v1/generation/capabilities` | no | no |
|
|
1076
|
+
|
|
970
1077
|
### media.libraries
|
|
971
1078
|
|
|
972
1079
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -989,6 +1096,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
989
1096
|
| retrieve | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}` | no | no |
|
|
990
1097
|
| update | PATCH | `/media/v1/libraries/{library_id}/assets/{asset_id}` | no | no |
|
|
991
1098
|
|
|
1099
|
+
### media.libraries.assets.frames
|
|
1100
|
+
|
|
1101
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1102
|
+
|---|---|---|---|---|
|
|
1103
|
+
| create | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/frames` | no | no |
|
|
1104
|
+
|
|
992
1105
|
### media.libraries.assets.import
|
|
993
1106
|
|
|
994
1107
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1032,12 +1145,26 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1032
1145
|
|---|---|---|---|---|
|
|
1033
1146
|
| list | GET | `/media/v1/libraries/{library_id}/folders` | no | no |
|
|
1034
1147
|
|
|
1148
|
+
### media.libraries.generations
|
|
1149
|
+
|
|
1150
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1151
|
+
|---|---|---|---|---|
|
|
1152
|
+
| create | POST | `/media/v1/libraries/{library_id}/generations` | no | no |
|
|
1153
|
+
|
|
1035
1154
|
### media.libraries.jobs
|
|
1036
1155
|
|
|
1037
1156
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1038
1157
|
|---|---|---|---|---|
|
|
1158
|
+
| cancel | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/cancel` | no | no |
|
|
1159
|
+
| list | GET | `/media/v1/libraries/{library_id}/jobs` | no | yes |
|
|
1039
1160
|
| retrieve | GET | `/media/v1/libraries/{library_id}/jobs/{job_id}` | no | no |
|
|
1040
1161
|
|
|
1162
|
+
### media.libraries.jobs.outputs.save
|
|
1163
|
+
|
|
1164
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1165
|
+
|---|---|---|---|---|
|
|
1166
|
+
| create | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save` | no | no |
|
|
1167
|
+
|
|
1041
1168
|
### media.libraries.purge
|
|
1042
1169
|
|
|
1043
1170
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1068,6 +1195,13 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1068
1195
|
|---|---|---|---|---|
|
|
1069
1196
|
| create | POST | `/media/v1/libraries/{library_id}/search/visual` | no | no |
|
|
1070
1197
|
|
|
1198
|
+
### media.libraries.understandings
|
|
1199
|
+
|
|
1200
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1201
|
+
|---|---|---|---|---|
|
|
1202
|
+
| list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
|
|
1203
|
+
| retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
|
|
1204
|
+
|
|
1071
1205
|
## meta
|
|
1072
1206
|
|
|
1073
1207
|
### meta.docs
|
|
@@ -1217,6 +1351,57 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1217
1351
|
| retrieve | GET | `/model/v1/videos/{video_id}` | no | no |
|
|
1218
1352
|
| retrieveContent | GET | `/model/v1/videos/{video_id}/content` | no | no |
|
|
1219
1353
|
|
|
1354
|
+
## ontology
|
|
1355
|
+
|
|
1356
|
+
### ontology.changesets
|
|
1357
|
+
|
|
1358
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1359
|
+
|---|---|---|---|---|
|
|
1360
|
+
| create | POST | `/ontology/v1/changesets` | no | no |
|
|
1361
|
+
|
|
1362
|
+
### ontology.nodes
|
|
1363
|
+
|
|
1364
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1365
|
+
|---|---|---|---|---|
|
|
1366
|
+
| create | POST | `/ontology/v1/nodes` | no | no |
|
|
1367
|
+
| list | GET | `/ontology/v1/nodes` | no | yes |
|
|
1368
|
+
| retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1369
|
+
| update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1370
|
+
|
|
1371
|
+
### ontology.nodes.merge
|
|
1372
|
+
|
|
1373
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1374
|
+
|---|---|---|---|---|
|
|
1375
|
+
| create | POST | `/ontology/v1/nodes/{node_id}/merge` | no | no |
|
|
1376
|
+
|
|
1377
|
+
### ontology.relations
|
|
1378
|
+
|
|
1379
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1380
|
+
|---|---|---|---|---|
|
|
1381
|
+
| create | POST | `/ontology/v1/relations` | no | no |
|
|
1382
|
+
| list | GET | `/ontology/v1/relations` | no | yes |
|
|
1383
|
+
| retrieve | GET | `/ontology/v1/relations/{relation_id}` | no | no |
|
|
1384
|
+
|
|
1385
|
+
### ontology.relations.invalidate
|
|
1386
|
+
|
|
1387
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1388
|
+
|---|---|---|---|---|
|
|
1389
|
+
| create | POST | `/ontology/v1/relations/{relation_id}/invalidate` | no | no |
|
|
1390
|
+
|
|
1391
|
+
### ontology.search
|
|
1392
|
+
|
|
1393
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1394
|
+
|---|---|---|---|---|
|
|
1395
|
+
| create | POST | `/ontology/v1/search` | no | no |
|
|
1396
|
+
|
|
1397
|
+
### ontology.types
|
|
1398
|
+
|
|
1399
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1400
|
+
|---|---|---|---|---|
|
|
1401
|
+
| create | POST | `/ontology/v1/types` | no | no |
|
|
1402
|
+
| list | GET | `/ontology/v1/types` | no | no |
|
|
1403
|
+
| retrieve | GET | `/ontology/v1/types/{name}` | no | no |
|
|
1404
|
+
|
|
1220
1405
|
## organization
|
|
1221
1406
|
|
|
1222
1407
|
### organization.charges
|
|
@@ -1259,6 +1444,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1259
1444
|
| create | POST | `/organization/v1/feedback/{id}/messages` | no | no |
|
|
1260
1445
|
| list | GET | `/organization/v1/feedback/{id}/messages` | no | no |
|
|
1261
1446
|
|
|
1447
|
+
### organization.members
|
|
1448
|
+
|
|
1449
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1450
|
+
|---|---|---|---|---|
|
|
1451
|
+
| list | GET | `/organization/v1/members` | no | no |
|
|
1452
|
+
|
|
1262
1453
|
### organization.usage
|
|
1263
1454
|
|
|
1264
1455
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1407,6 +1598,124 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1407
1598
|
|---|---|---|---|---|
|
|
1408
1599
|
| create | POST | `/search/v1/search` | no | no |
|
|
1409
1600
|
|
|
1601
|
+
## studio
|
|
1602
|
+
|
|
1603
|
+
### studio.codexes
|
|
1604
|
+
|
|
1605
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1606
|
+
|---|---|---|---|---|
|
|
1607
|
+
| create | POST | `/studio/v1/codexes` | no | no |
|
|
1608
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}` | no | no |
|
|
1609
|
+
| list | GET | `/studio/v1/codexes` | no | no |
|
|
1610
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}` | no | no |
|
|
1611
|
+
| update | PATCH | `/studio/v1/codexes/{codex}` | no | no |
|
|
1612
|
+
|
|
1613
|
+
### studio.codexes.entries
|
|
1614
|
+
|
|
1615
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1616
|
+
|---|---|---|---|---|
|
|
1617
|
+
| create | POST | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1618
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1619
|
+
| list | GET | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1620
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1621
|
+
| update | PATCH | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1622
|
+
|
|
1623
|
+
### studio.genres
|
|
1624
|
+
|
|
1625
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1626
|
+
|---|---|---|---|---|
|
|
1627
|
+
| list | GET | `/studio/v1/genres` | no | no |
|
|
1628
|
+
| retrieve | GET | `/studio/v1/genres/{genre}` | no | no |
|
|
1629
|
+
|
|
1630
|
+
### studio.platforms
|
|
1631
|
+
|
|
1632
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1633
|
+
|---|---|---|---|---|
|
|
1634
|
+
| list | GET | `/studio/v1/platforms` | no | no |
|
|
1635
|
+
| retrieve | GET | `/studio/v1/platforms/{platform}` | no | no |
|
|
1636
|
+
|
|
1637
|
+
### studio.styles
|
|
1638
|
+
|
|
1639
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1640
|
+
|---|---|---|---|---|
|
|
1641
|
+
| create | POST | `/studio/v1/styles` | no | no |
|
|
1642
|
+
| delete | DELETE | `/studio/v1/styles/{style}` | no | no |
|
|
1643
|
+
| list | GET | `/studio/v1/styles` | no | no |
|
|
1644
|
+
| retrieve | GET | `/studio/v1/styles/{style}` | no | no |
|
|
1645
|
+
| update | PATCH | `/studio/v1/styles/{style}` | no | no |
|
|
1646
|
+
|
|
1647
|
+
### studio.templates
|
|
1648
|
+
|
|
1649
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1650
|
+
|---|---|---|---|---|
|
|
1651
|
+
| create | POST | `/studio/v1/templates` | no | no |
|
|
1652
|
+
| delete | DELETE | `/studio/v1/templates/{template}` | no | no |
|
|
1653
|
+
| list | GET | `/studio/v1/templates` | no | no |
|
|
1654
|
+
| retrieve | GET | `/studio/v1/templates/{template}` | no | no |
|
|
1655
|
+
|
|
1656
|
+
### studio.themes
|
|
1657
|
+
|
|
1658
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1659
|
+
|---|---|---|---|---|
|
|
1660
|
+
| create | POST | `/studio/v1/themes` | no | no |
|
|
1661
|
+
| delete | DELETE | `/studio/v1/themes/{theme}` | no | no |
|
|
1662
|
+
| list | GET | `/studio/v1/themes` | no | no |
|
|
1663
|
+
| retrieve | GET | `/studio/v1/themes/{theme}` | no | no |
|
|
1664
|
+
| update | PATCH | `/studio/v1/themes/{theme}` | no | no |
|
|
1665
|
+
|
|
1666
|
+
### studio.works
|
|
1667
|
+
|
|
1668
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1669
|
+
|---|---|---|---|---|
|
|
1670
|
+
| create | POST | `/studio/v1/works` | no | no |
|
|
1671
|
+
| list | GET | `/studio/v1/works` | no | no |
|
|
1672
|
+
| resolve | GET | `/studio/v1/works:resolve` | no | no |
|
|
1673
|
+
| retrieve | GET | `/studio/v1/works/{work}` | no | no |
|
|
1674
|
+
| update | PATCH | `/studio/v1/works/{work}` | no | no |
|
|
1675
|
+
| updateBrief | PATCH | `/studio/v1/works/{work}/brief` | no | no |
|
|
1676
|
+
|
|
1677
|
+
### studio.works.drafts
|
|
1678
|
+
|
|
1679
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1680
|
+
|---|---|---|---|---|
|
|
1681
|
+
| create | POST | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1682
|
+
| list | GET | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1683
|
+
| rebase | POST | `/studio/v1/works/{work}/drafts/{draft}:rebase` | no | no |
|
|
1684
|
+
| retrieve | GET | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1685
|
+
| retrieveExport | GET | `/studio/v1/works/{work}/drafts/{draft}/export` | no | no |
|
|
1686
|
+
| retrieveOutline | GET | `/studio/v1/works/{work}/drafts/{draft}/outline` | no | no |
|
|
1687
|
+
| retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
|
|
1688
|
+
| update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1689
|
+
|
|
1690
|
+
### studio.works.drafts.status
|
|
1691
|
+
|
|
1692
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1693
|
+
|---|---|---|---|---|
|
|
1694
|
+
| list | GET | `/studio/v1/works/{work}/drafts/{draft}/status` | no | no |
|
|
1695
|
+
|
|
1696
|
+
### studio.works.drafts.units
|
|
1697
|
+
|
|
1698
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1699
|
+
|---|---|---|---|---|
|
|
1700
|
+
| batchCreate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchCreate` | no | no |
|
|
1701
|
+
| batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
|
|
1702
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
|
|
1703
|
+
|
|
1704
|
+
### studio.works.units
|
|
1705
|
+
|
|
1706
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1707
|
+
|---|---|---|---|---|
|
|
1708
|
+
| move | POST | `/studio/v1/works/{work}/units/{unit}:move` | no | no |
|
|
1709
|
+
| retrieve | GET | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1710
|
+
| retrieveContext | GET | `/studio/v1/works/{work}/units/{unit}/context` | no | no |
|
|
1711
|
+
| update | PATCH | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1712
|
+
|
|
1713
|
+
### studio.works.units.blocks
|
|
1714
|
+
|
|
1715
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1716
|
+
|---|---|---|---|---|
|
|
1717
|
+
| patch | POST | `/studio/v1/works/{work}/units/{unit}/blocks:patch` | no | no |
|
|
1718
|
+
|
|
1410
1719
|
## ticket
|
|
1411
1720
|
|
|
1412
1721
|
### ticket.activity
|
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)
|
|
@@ -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) {
|