@deepraxis/sdk 0.1.1-dev.24f349c → 0.1.1-dev.2615392

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/METHODS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # SDK methods
2
2
 
3
- Generated by `bun run generate`. 525 HTTP operations, plus product aliases. Version segments and path parameters are omitted from resource names. Inputs use typed `{ path, query, body, headers }` options. Collections form nested resource objects; POST actions retain their verb. Naming rules are documented in `scripts/resources.ts`; semantic exceptions and aliases with reasons are in `scripts/naming-overrides.ts`.
3
+ Generated by `bun run generate`. 673 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
@@ -884,6 +1080,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
884
1080
  | complete | POST | `/file/v1/uploads/{upload_id}/complete` | no | no |
885
1081
  | create | POST | `/file/v1/uploads` | no | no |
886
1082
  | createSigned | POST | `/file/v1/uploads/signed` | no | no |
1083
+ | retrieve | GET | `/file/v1/uploads/{upload_id}` | no | no |
887
1084
 
888
1085
  ### file.uploads.parts
889
1086
 
@@ -967,6 +1164,25 @@ Multipart request bodies expand plain objects into bracketed fields (for example
967
1164
 
968
1165
  ## media
969
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
+
1174
+ ### media.generation.capabilities
1175
+
1176
+ | Method | HTTP | Path | Streaming | Pagination |
1177
+ |---|---|---|---|---|
1178
+ | list | GET | `/media/v1/generation/capabilities` | no | no |
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
+
970
1186
  ### media.libraries
971
1187
 
972
1188
  | Method | HTTP | Path | Streaming | Pagination |
@@ -976,6 +1192,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
976
1192
  | list | GET | `/media/v1/libraries` | no | yes |
977
1193
  | restore | POST | `/media/v1/libraries/{library_id}/restore` | no | no |
978
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 |
979
1197
  | update | PATCH | `/media/v1/libraries/{library_id}` | no | no |
980
1198
 
981
1199
  ### media.libraries.assets
@@ -1042,6 +1260,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1042
1260
 
1043
1261
  | Method | HTTP | Path | Streaming | Pagination |
1044
1262
  |---|---|---|---|---|
1263
+ | cancel | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/cancel` | no | no |
1264
+ | list | GET | `/media/v1/libraries/{library_id}/jobs` | no | yes |
1045
1265
  | retrieve | GET | `/media/v1/libraries/{library_id}/jobs/{job_id}` | no | no |
1046
1266
 
1047
1267
  ### media.libraries.purge
@@ -1081,6 +1301,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1081
1301
  | list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
1082
1302
  | retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
1083
1303
 
1304
+ ### media.speech
1305
+
1306
+ | Method | HTTP | Path | Streaming | Pagination |
1307
+ |---|---|---|---|---|
1308
+ | create | POST | `/media/v1/libraries/{library_id}/audio/speech` | no | no |
1309
+
1310
+ ### media.videos
1311
+
1312
+ | Method | HTTP | Path | Streaming | Pagination |
1313
+ |---|---|---|---|---|
1314
+ | generate | POST | `/media/v1/libraries/{library_id}/videos/generations` | no | no |
1315
+
1084
1316
  ## meta
1085
1317
 
1086
1318
  ### meta.docs
@@ -1230,6 +1462,58 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1230
1462
  | retrieve | GET | `/model/v1/videos/{video_id}` | no | no |
1231
1463
  | retrieveContent | GET | `/model/v1/videos/{video_id}/content` | no | no |
1232
1464
 
1465
+ ## ontology
1466
+
1467
+ ### ontology.changesets
1468
+
1469
+ | Method | HTTP | Path | Streaming | Pagination |
1470
+ |---|---|---|---|---|
1471
+ | create | POST | `/ontology/v1/changesets` | no | no |
1472
+
1473
+ ### ontology.nodes
1474
+
1475
+ | Method | HTTP | Path | Streaming | Pagination |
1476
+ |---|---|---|---|---|
1477
+ | create | POST | `/ontology/v1/nodes` | no | no |
1478
+ | list | GET | `/ontology/v1/nodes` | no | yes |
1479
+ | retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
1480
+ | retrieveNeighborhood | GET | `/ontology/v1/nodes/{node_id}/neighborhood` | no | no |
1481
+ | update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
1482
+
1483
+ ### ontology.nodes.merge
1484
+
1485
+ | Method | HTTP | Path | Streaming | Pagination |
1486
+ |---|---|---|---|---|
1487
+ | create | POST | `/ontology/v1/nodes/{node_id}/merge` | no | no |
1488
+
1489
+ ### ontology.relations
1490
+
1491
+ | Method | HTTP | Path | Streaming | Pagination |
1492
+ |---|---|---|---|---|
1493
+ | create | POST | `/ontology/v1/relations` | no | no |
1494
+ | list | GET | `/ontology/v1/relations` | no | yes |
1495
+ | retrieve | GET | `/ontology/v1/relations/{relation_id}` | no | no |
1496
+
1497
+ ### ontology.relations.invalidate
1498
+
1499
+ | Method | HTTP | Path | Streaming | Pagination |
1500
+ |---|---|---|---|---|
1501
+ | create | POST | `/ontology/v1/relations/{relation_id}/invalidate` | no | no |
1502
+
1503
+ ### ontology.search
1504
+
1505
+ | Method | HTTP | Path | Streaming | Pagination |
1506
+ |---|---|---|---|---|
1507
+ | create | POST | `/ontology/v1/search` | no | no |
1508
+
1509
+ ### ontology.types
1510
+
1511
+ | Method | HTTP | Path | Streaming | Pagination |
1512
+ |---|---|---|---|---|
1513
+ | create | POST | `/ontology/v1/types` | no | no |
1514
+ | list | GET | `/ontology/v1/types` | no | no |
1515
+ | retrieve | GET | `/ontology/v1/types/{name}` | no | no |
1516
+
1233
1517
  ## organization
1234
1518
 
1235
1519
  ### organization.charges
@@ -1426,6 +1710,166 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1426
1710
  |---|---|---|---|---|
1427
1711
  | create | POST | `/search/v1/search` | no | no |
1428
1712
 
1713
+ ## studio
1714
+
1715
+ ### studio.codexes
1716
+
1717
+ | Method | HTTP | Path | Streaming | Pagination |
1718
+ |---|---|---|---|---|
1719
+ | create | POST | `/studio/v1/codexes` | no | no |
1720
+ | delete | DELETE | `/studio/v1/codexes/{codex}` | no | no |
1721
+ | list | GET | `/studio/v1/codexes` | no | no |
1722
+ | retrieve | GET | `/studio/v1/codexes/{codex}` | no | no |
1723
+ | update | PATCH | `/studio/v1/codexes/{codex}` | no | no |
1724
+
1725
+ ### studio.codexes.entries
1726
+
1727
+ | Method | HTTP | Path | Streaming | Pagination |
1728
+ |---|---|---|---|---|
1729
+ | create | POST | `/studio/v1/codexes/{codex}/entries` | no | no |
1730
+ | delete | DELETE | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
1731
+ | list | GET | `/studio/v1/codexes/{codex}/entries` | no | no |
1732
+ | retrieve | GET | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
1733
+ | update | PATCH | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
1734
+
1735
+ ### studio.genres
1736
+
1737
+ | Method | HTTP | Path | Streaming | Pagination |
1738
+ |---|---|---|---|---|
1739
+ | list | GET | `/studio/v1/genres` | no | no |
1740
+ | retrieve | GET | `/studio/v1/genres/{genre}` | no | no |
1741
+
1742
+ ### studio.platforms
1743
+
1744
+ | Method | HTTP | Path | Streaming | Pagination |
1745
+ |---|---|---|---|---|
1746
+ | list | GET | `/studio/v1/platforms` | no | no |
1747
+ | retrieve | GET | `/studio/v1/platforms/{platform}` | no | no |
1748
+
1749
+ ### studio.reviewers
1750
+
1751
+ | Method | HTTP | Path | Streaming | Pagination |
1752
+ |---|---|---|---|---|
1753
+ | list | GET | `/studio/v1/reviewers` | no | no |
1754
+ | update | PATCH | `/studio/v1/reviewers/{agent}` | no | no |
1755
+
1756
+ ### studio.styles
1757
+
1758
+ | Method | HTTP | Path | Streaming | Pagination |
1759
+ |---|---|---|---|---|
1760
+ | create | POST | `/studio/v1/styles` | no | no |
1761
+ | delete | DELETE | `/studio/v1/styles/{style}` | no | no |
1762
+ | list | GET | `/studio/v1/styles` | no | no |
1763
+ | retrieve | GET | `/studio/v1/styles/{style}` | no | no |
1764
+ | update | PATCH | `/studio/v1/styles/{style}` | no | no |
1765
+
1766
+ ### studio.templates
1767
+
1768
+ | Method | HTTP | Path | Streaming | Pagination |
1769
+ |---|---|---|---|---|
1770
+ | create | POST | `/studio/v1/templates` | no | no |
1771
+ | delete | DELETE | `/studio/v1/templates/{template}` | no | no |
1772
+ | list | GET | `/studio/v1/templates` | no | no |
1773
+ | retrieve | GET | `/studio/v1/templates/{template}` | no | no |
1774
+
1775
+ ### studio.themes
1776
+
1777
+ | Method | HTTP | Path | Streaming | Pagination |
1778
+ |---|---|---|---|---|
1779
+ | create | POST | `/studio/v1/themes` | no | no |
1780
+ | delete | DELETE | `/studio/v1/themes/{theme}` | no | no |
1781
+ | list | GET | `/studio/v1/themes` | no | no |
1782
+ | retrieve | GET | `/studio/v1/themes/{theme}` | no | no |
1783
+ | update | PATCH | `/studio/v1/themes/{theme}` | no | no |
1784
+
1785
+ ### studio.works
1786
+
1787
+ | Method | HTTP | Path | Streaming | Pagination |
1788
+ |---|---|---|---|---|
1789
+ | create | POST | `/studio/v1/works` | no | no |
1790
+ | list | GET | `/studio/v1/works` | no | no |
1791
+ | resolve | GET | `/studio/v1/works:resolve` | no | no |
1792
+ | retrieve | GET | `/studio/v1/works/{work}` | no | no |
1793
+ | update | PATCH | `/studio/v1/works/{work}` | no | no |
1794
+ | updateBrief | PATCH | `/studio/v1/works/{work}/brief` | no | no |
1795
+
1796
+ ### studio.works.drafts
1797
+
1798
+ | Method | HTTP | Path | Streaming | Pagination |
1799
+ |---|---|---|---|---|
1800
+ | create | POST | `/studio/v1/works/{work}/drafts` | no | no |
1801
+ | list | GET | `/studio/v1/works/{work}/drafts` | no | no |
1802
+ | rebase | POST | `/studio/v1/works/{work}/drafts/{draft}:rebase` | no | no |
1803
+ | retrieve | GET | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
1804
+ | retrieveExport | GET | `/studio/v1/works/{work}/drafts/{draft}/export` | no | no |
1805
+ | retrieveOutline | GET | `/studio/v1/works/{work}/drafts/{draft}/outline` | no | no |
1806
+ | retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
1807
+ | update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
1808
+
1809
+ ### studio.works.drafts.renditions
1810
+
1811
+ | Method | HTTP | Path | Streaming | Pagination |
1812
+ |---|---|---|---|---|
1813
+ | create | POST | `/studio/v1/works/{work}/drafts/{draft}/renditions` | no | no |
1814
+
1815
+ ### studio.works.drafts.status
1816
+
1817
+ | Method | HTTP | Path | Streaming | Pagination |
1818
+ |---|---|---|---|---|
1819
+ | list | GET | `/studio/v1/works/{work}/drafts/{draft}/status` | no | no |
1820
+
1821
+ ### studio.works.drafts.units
1822
+
1823
+ | Method | HTTP | Path | Streaming | Pagination |
1824
+ |---|---|---|---|---|
1825
+ | batchCreate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchCreate` | no | no |
1826
+ | batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
1827
+ | create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
1828
+
1829
+ ### studio.works.renditions
1830
+
1831
+ | Method | HTTP | Path | Streaming | Pagination |
1832
+ |---|---|---|---|---|
1833
+ | delete | DELETE | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
1834
+ | list | GET | `/studio/v1/works/{work}/renditions` | no | no |
1835
+ | publish | POST | `/studio/v1/works/{work}/renditions/{rendition}:publish` | no | no |
1836
+ | render | POST | `/studio/v1/works/{work}/renditions/{rendition}:render` | no | no |
1837
+ | retrieve | GET | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
1838
+ | retrieveContent | GET | `/studio/v1/works/{work}/renditions/{rendition}/content` | no | no |
1839
+ | update | PATCH | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
1840
+
1841
+ ### studio.works.reviewSettings
1842
+
1843
+ | Method | HTTP | Path | Streaming | Pagination |
1844
+ |---|---|---|---|---|
1845
+ | retrieve | GET | `/studio/v1/works/{work}/review-settings` | no | no |
1846
+ | update | PATCH | `/studio/v1/works/{work}/review-settings` | no | no |
1847
+
1848
+ ### studio.works.reviews
1849
+
1850
+ | Method | HTTP | Path | Streaming | Pagination |
1851
+ |---|---|---|---|---|
1852
+ | appeal | POST | `/studio/v1/works/{work}/reviews/{review}:appeal` | no | no |
1853
+ | cancel | POST | `/studio/v1/works/{work}/reviews/{review}:cancel` | no | no |
1854
+ | create | POST | `/studio/v1/works/{work}/reviews` | no | no |
1855
+ | list | GET | `/studio/v1/works/{work}/reviews` | no | no |
1856
+ | retrieve | GET | `/studio/v1/works/{work}/reviews/{review}` | no | no |
1857
+
1858
+ ### studio.works.units
1859
+
1860
+ | Method | HTTP | Path | Streaming | Pagination |
1861
+ |---|---|---|---|---|
1862
+ | move | POST | `/studio/v1/works/{work}/units/{unit}:move` | no | no |
1863
+ | retrieve | GET | `/studio/v1/works/{work}/units/{unit}` | no | no |
1864
+ | retrieveContext | GET | `/studio/v1/works/{work}/units/{unit}/context` | no | no |
1865
+ | update | PATCH | `/studio/v1/works/{work}/units/{unit}` | no | no |
1866
+
1867
+ ### studio.works.units.blocks
1868
+
1869
+ | Method | HTTP | Path | Streaming | Pagination |
1870
+ |---|---|---|---|---|
1871
+ | patch | POST | `/studio/v1/works/{work}/units/{unit}/blocks:patch` | no | no |
1872
+
1429
1873
  ## ticket
1430
1874
 
1431
1875
  ### ticket.activity
@@ -1665,11 +2109,19 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1665
2109
  | crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
1666
2110
  | database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
1667
2111
  | file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
2112
+ | 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. |
2113
+ | 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. |
2114
+ | 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. |
2115
+ | 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. |
2116
+ | media.speech.create | ADR-094 §1/§9 names speech synthesis speech.create; the URL says audio/speech because that is the artifact the caller gets back, and the path alone would derive a speech collection create under an audio level that is not an SDK resource. |
2117
+ | 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. |
2118
+ | 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. |
1668
2119
  | meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
1669
2120
  | sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
1670
2121
  | sandbox.sandboxes.files.remove | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
1671
2122
  | sandbox.sandboxes.files.read | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
1672
2123
  | sandbox.sandboxes.files.write | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
2124
+ | studio.works.reviewSettings.retrieve | A work has one review-settings singleton; the segment ends in s only because English writes it that way, so the collection rule would derive reviewSettings.list for a read that returns the settings object itself. |
1673
2125
  | vault.oauth.retrieveClientMetadata | The literal .json filename otherwise introduces a dot inside a method identifier. |
1674
2126
 
1675
2127
  ## SDK parameter aliases
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 [知行云 Praxis](https://deepraxis.com), the cloud where AI agents are built, run and hosted.
7
+ The official TypeScript SDK for [Praxis](https://deepraxis.com), the cloud where AI agents are built, run and hosted.
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/@deepraxis/sdk?label=npm&color=2e8555)](https://www.npmjs.com/package/@deepraxis/sdk)
10
10
  [![Bundle size](https://img.shields.io/bundlephobia/minzip/@deepraxis/sdk?color=2e8555)](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
- cloud browsers, web search, databases, knowledge bases, files, media, automation and hosted
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.
@@ -122,7 +122,7 @@ conversation with it, on its own machine.
122
122
  ```ts
123
123
  const { sandboxes } = praxis.sandbox;
124
124
  const sandbox = await sandboxes.create({
125
- body: { templateID: 'base' },
125
+ body: { templateID: 'base', autoPause: false }, // ends at its timeout; autoPause: true keeps a long-lived computer
126
126
  });
127
127
  const result = await sandboxes.commands.run({
128
128
  path: { sandbox_id: sandbox.sandboxID },
@@ -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", "知行云" and "Deepraxis" are trademarks of Deepractice; the license does not grant
279
+ "Praxis" and "Deepraxis" are trademarks of Deepractice; the license does not grant
280
280
  rights to use them.
@@ -1,7 +1,9 @@
1
1
  /**
2
- * Default credential chain for code running on a Praxis computer (ticket-5367):
3
- * PRAXIS_API_TOKEN environment variable, then ~/.praxis/credentials. Resolved at call time so a
4
- * token the platform renewed in the file is picked up by an already-running process.
2
+ * Default credential chain for code running on a Praxis computer (ticket-5367, ADR-098 §2):
3
+ * the PRAXIS_API_TOKEN environment variable, then the login file of the environment,
4
+ * `~/.praxis/cli/<env>.json` — the one file `praxis login` writes for a person and the platform writes
5
+ * for a managed login. Resolved at call time so a token the platform renewed in the file is picked up
6
+ * by an already-running process.
5
7
  */
6
8
  export interface ResolvedCredentials {
7
9
  token?: string;
@@ -9,6 +11,13 @@ export interface ResolvedCredentials {
9
11
  }
10
12
  type Env = Record<string, string | undefined>;
11
13
  type ReadFile = (path: string) => string | null;
14
+ /**
15
+ * Which environment's login file applies: PRAXIS_ENV when it names one, otherwise a `-develop.` host in
16
+ * PRAXIS_API_URL means develop and any other host production — the rule apps/cli/src/config/env.ts
17
+ * applies. A PRAXIS_ENV that is not a plain name is no environment at all and is ignored. Pure.
18
+ */
19
+ export declare function credentialsEnv(env: Env): string;
20
+ /** The one login file, the same path the CLI reads for this environment. Null without a home directory. Pure. */
12
21
  export declare function credentialsPath(env: Env): string | null;
13
22
  export declare function resolveDefaultCredentials(env?: Env, readFile?: ReadFile): ResolvedCredentials;
14
23
  export {};
@@ -8,9 +8,29 @@ function defaultReadFile(path) {
8
8
  return null;
9
9
  }
10
10
  }
11
+ /**
12
+ * Which environment's login file applies: PRAXIS_ENV when it names one, otherwise a `-develop.` host in
13
+ * PRAXIS_API_URL means develop and any other host production — the rule apps/cli/src/config/env.ts
14
+ * applies. A PRAXIS_ENV that is not a plain name is no environment at all and is ignored. Pure.
15
+ */
16
+ export function credentialsEnv(env) {
17
+ const declared = nonEmpty(env.PRAXIS_ENV);
18
+ if (declared && /^[A-Za-z0-9_-]+$/.test(declared))
19
+ return declared;
20
+ const apiUrl = nonEmpty(env.PRAXIS_API_URL);
21
+ if (apiUrl) {
22
+ try {
23
+ if (new URL(apiUrl).hostname.includes('-develop.'))
24
+ return 'develop';
25
+ }
26
+ catch { /* a malformed URL is not evidence of develop */ }
27
+ }
28
+ return 'production';
29
+ }
30
+ /** The one login file, the same path the CLI reads for this environment. Null without a home directory. Pure. */
11
31
  export function credentialsPath(env) {
12
32
  const home = nonEmpty(env.HOME) ?? nonEmpty(env.USERPROFILE);
13
- return home ? `${home.replace(/\/$/, '')}/.praxis/credentials` : null;
33
+ return home ? `${home.replace(/[/\\]+$/, '')}/.praxis/cli/${credentialsEnv(env)}.json` : null;
14
34
  }
15
35
  export function resolveDefaultCredentials(env = globalThis.process?.env ?? {}, readFile = defaultReadFile) {
16
36
  const envToken = nonEmpty(env.PRAXIS_API_TOKEN);
@@ -23,7 +43,7 @@ export function resolveDefaultCredentials(env = globalThis.process?.env ?? {}, r
23
43
  return envUrl ? { apiUrl: envUrl } : {};
24
44
  try {
25
45
  const file = JSON.parse(text);
26
- const token = nonEmpty(file.token);
46
+ const token = nonEmpty(file.access_token);
27
47
  const apiUrl = envUrl ?? nonEmpty(file.api_url);
28
48
  return { ...(token ? { token } : {}), ...(apiUrl ? { apiUrl } : {}) };
29
49
  }
@@ -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;