@deepraxis/sdk 0.1.1-dev.402bd6c → 0.1.1-dev.40e3123

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`. 545 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`. 675 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 |
@@ -573,9 +579,16 @@ Multipart request bodies expand plain objects into bracketed fields (for example
573
579
  | list | GET | `/browser/v1/sessions` | no | no |
574
580
  | retrieve | GET | `/browser/v1/sessions/{sessionId}` | no | no |
575
581
  | retrieveDebug | GET | `/browser/v1/sessions/{sessionId}/debug` | no | no |
582
+ | retrieveFrame | GET | `/browser/v1/sessions/{sessionId}/frame` | no | no |
576
583
  | stream | GET | `/browser/v1/sessions/{sessionId}/stream` | always | no |
577
584
  | update | POST | `/browser/v1/sessions/{sessionId}` | no | no |
578
585
 
586
+ ### browser.sessions.actions
587
+
588
+ | Method | HTTP | Path | Streaming | Pagination |
589
+ |---|---|---|---|---|
590
+ | create | POST | `/browser/v1/sessions/{sessionId}/actions` | no | no |
591
+
579
592
  ### browser.sessions.events
580
593
 
581
594
  | Method | HTTP | Path | Streaming | Pagination |
@@ -786,6 +799,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
786
799
  |---|---|---|---|---|
787
800
  | import | POST | `/cut/v1/projects/{project_id}/media:import` | no | no |
788
801
 
802
+ ### cut.projects.renders
803
+
804
+ | Method | HTTP | Path | Streaming | Pagination |
805
+ |---|---|---|---|---|
806
+ | create | POST | `/cut/v1/projects/{project_id}/renders` | no | no |
807
+
789
808
  ### cut.projects.versions
790
809
 
791
810
  | Method | HTTP | Path | Streaming | Pagination |
@@ -793,6 +812,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
793
812
  | create | POST | `/cut/v1/projects/{project_id}/versions` | no | no |
794
813
  | list | GET | `/cut/v1/projects/{project_id}/versions` | no | no |
795
814
 
815
+ ### cut.renders
816
+
817
+ | Method | HTTP | Path | Streaming | Pagination |
818
+ |---|---|---|---|---|
819
+ | retrieve | GET | `/cut/v1/renders/{render_id}` | no | no |
820
+
796
821
  ### cut.versions
797
822
 
798
823
  | Method | HTTP | Path | Streaming | Pagination |
@@ -852,6 +877,178 @@ Multipart request bodies expand plain objects into bracketed fields (for example
852
877
  | delete | DELETE | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
853
878
  | update | PATCH | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
854
879
 
880
+ ## devops
881
+
882
+ ### devops.environments.checkpoints
883
+
884
+ | Method | HTTP | Path | Streaming | Pagination |
885
+ |---|---|---|---|---|
886
+ | list | GET | `/devops/v1/environments/{id}/checkpoints` | no | no |
887
+
888
+ ### devops.flags
889
+
890
+ | Method | HTTP | Path | Streaming | Pagination |
891
+ |---|---|---|---|---|
892
+ | archive | POST | `/devops/v1/flags/{id}:archive` | no | no |
893
+ | conclude | POST | `/devops/v1/flags/{id}:conclude` | no | no |
894
+ | retrieve | GET | `/devops/v1/flags/{id}` | no | no |
895
+ | update | PATCH | `/devops/v1/flags/{id}` | no | no |
896
+
897
+ ### devops.flags.environments
898
+
899
+ | Method | HTTP | Path | Streaming | Pagination |
900
+ |---|---|---|---|---|
901
+ | update | PATCH | `/devops/v1/flags/{id}/environments/{environment}` | no | no |
902
+
903
+ ### devops.progressiveRollouts
904
+
905
+ | Method | HTTP | Path | Streaming | Pagination |
906
+ |---|---|---|---|---|
907
+ | create | POST | `/devops/v1/progressive-rollouts` | no | no |
908
+ | pause | POST | `/devops/v1/progressive-rollouts/{id}:pause` | no | no |
909
+ | resume | POST | `/devops/v1/progressive-rollouts/{id}:resume` | no | no |
910
+ | retrieve | GET | `/devops/v1/progressive-rollouts/{id}` | no | no |
911
+ | rollback | POST | `/devops/v1/progressive-rollouts/{id}:rollback` | no | no |
912
+
913
+ ### devops.projects
914
+
915
+ | Method | HTTP | Path | Streaming | Pagination |
916
+ |---|---|---|---|---|
917
+ | list | GET | `/devops/v1/projects` | no | no |
918
+ | retrieve | GET | `/devops/v1/projects/{id}` | no | no |
919
+ | retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
920
+
921
+ ### devops.projects.environments
922
+
923
+ | Method | HTTP | Path | Streaming | Pagination |
924
+ |---|---|---|---|---|
925
+ | list | GET | `/devops/v1/projects/{project}/environments` | no | no |
926
+
927
+ ### devops.projects.flags
928
+
929
+ | Method | HTTP | Path | Streaming | Pagination |
930
+ |---|---|---|---|---|
931
+ | create | POST | `/devops/v1/projects/{project}/flags` | no | no |
932
+ | list | GET | `/devops/v1/projects/{project}/flags` | no | no |
933
+
934
+ ### devops.projects.promotions
935
+
936
+ | Method | HTTP | Path | Streaming | Pagination |
937
+ |---|---|---|---|---|
938
+ | list | GET | `/devops/v1/projects/{project}/promotions` | no | no |
939
+
940
+ ### devops.projects.releases
941
+
942
+ | Method | HTTP | Path | Streaming | Pagination |
943
+ |---|---|---|---|---|
944
+ | create | POST | `/devops/v1/projects/{project}/releases` | no | no |
945
+ | list | GET | `/devops/v1/projects/{project}/releases` | no | no |
946
+
947
+ ### devops.projects.targets
948
+
949
+ | Method | HTTP | Path | Streaming | Pagination |
950
+ |---|---|---|---|---|
951
+ | list | GET | `/devops/v1/projects/{project}/targets` | no | no |
952
+ | refresh | POST | `/devops/v1/projects/{project}/targets:refresh` | no | no |
953
+
954
+ ### devops.projects.testCases
955
+
956
+ | Method | HTTP | Path | Streaming | Pagination |
957
+ |---|---|---|---|---|
958
+ | list | GET | `/devops/v1/projects/{project}/test-cases` | no | no |
959
+
960
+ ### devops.projects.testPlans
961
+
962
+ | Method | HTTP | Path | Streaming | Pagination |
963
+ |---|---|---|---|---|
964
+ | create | POST | `/devops/v1/projects/{project}/test-plans` | no | no |
965
+ | list | GET | `/devops/v1/projects/{project}/test-plans` | no | no |
966
+
967
+ ### devops.projects.testReports
968
+
969
+ | Method | HTTP | Path | Streaming | Pagination |
970
+ |---|---|---|---|---|
971
+ | create | POST | `/devops/v1/projects/{project}/test-reports` | no | no |
972
+
973
+ ### devops.projects.testRuns
974
+
975
+ | Method | HTTP | Path | Streaming | Pagination |
976
+ |---|---|---|---|---|
977
+ | create | POST | `/devops/v1/projects/{project}/test-runs` | no | no |
978
+ | list | GET | `/devops/v1/projects/{project}/test-runs` | no | no |
979
+
980
+ ### devops.projects.testSuites
981
+
982
+ | Method | HTTP | Path | Streaming | Pagination |
983
+ |---|---|---|---|---|
984
+ | list | GET | `/devops/v1/projects/{project}/test-suites` | no | no |
985
+
986
+ ### devops.promotions
987
+
988
+ | Method | HTTP | Path | Streaming | Pagination |
989
+ |---|---|---|---|---|
990
+ | approve | POST | `/devops/v1/promotions/{id}:approve` | no | no |
991
+ | cancel | POST | `/devops/v1/promotions/{id}:cancel` | no | no |
992
+ | conclude | POST | `/devops/v1/promotions/{id}:conclude` | no | no |
993
+ | create | POST | `/devops/v1/promotions` | no | no |
994
+ | retrieve | GET | `/devops/v1/promotions/{id}` | no | no |
995
+ | retry | POST | `/devops/v1/promotions/{id}:retry` | no | no |
996
+
997
+ ### devops.promotions.rollouts
998
+
999
+ | Method | HTTP | Path | Streaming | Pagination |
1000
+ |---|---|---|---|---|
1001
+ | list | GET | `/devops/v1/promotions/{promotion}/rollouts` | no | no |
1002
+
1003
+ ### devops.releases
1004
+
1005
+ | Method | HTTP | Path | Streaming | Pagination |
1006
+ |---|---|---|---|---|
1007
+ | abandon | POST | `/devops/v1/releases/{id}:abandon` | no | no |
1008
+ | retrieve | GET | `/devops/v1/releases/{id}` | no | no |
1009
+
1010
+ ### devops.rollouts
1011
+
1012
+ | Method | HTTP | Path | Streaming | Pagination |
1013
+ |---|---|---|---|---|
1014
+ | retrieve | GET | `/devops/v1/rollouts/{id}` | no | no |
1015
+
1016
+ ### devops.testCases
1017
+
1018
+ | Method | HTTP | Path | Streaming | Pagination |
1019
+ |---|---|---|---|---|
1020
+ | retrieve | GET | `/devops/v1/test-cases/{id}` | no | no |
1021
+
1022
+ ### devops.testPlans
1023
+
1024
+ | Method | HTTP | Path | Streaming | Pagination |
1025
+ |---|---|---|---|---|
1026
+ | delete | DELETE | `/devops/v1/test-plans/{id}` | no | no |
1027
+ | pause | POST | `/devops/v1/test-plans/{id}:pause` | no | no |
1028
+ | resume | POST | `/devops/v1/test-plans/{id}:resume` | no | no |
1029
+ | retrieve | GET | `/devops/v1/test-plans/{id}` | no | no |
1030
+ | update | PATCH | `/devops/v1/test-plans/{id}` | no | no |
1031
+
1032
+ ### devops.testRuns
1033
+
1034
+ | Method | HTTP | Path | Streaming | Pagination |
1035
+ |---|---|---|---|---|
1036
+ | cancel | POST | `/devops/v1/test-runs/{id}:cancel` | no | no |
1037
+ | retrieve | GET | `/devops/v1/test-runs/{id}` | no | no |
1038
+
1039
+ ### devops.testRuns.executions
1040
+
1041
+ | Method | HTTP | Path | Streaming | Pagination |
1042
+ |---|---|---|---|---|
1043
+ | list | GET | `/devops/v1/test-runs/{run}/executions` | no | no |
1044
+ | retrieve | GET | `/devops/v1/test-runs/{run}/executions/{case}` | no | no |
1045
+
1046
+ ### devops.testSuites
1047
+
1048
+ | Method | HTTP | Path | Streaming | Pagination |
1049
+ |---|---|---|---|---|
1050
+ | retrieve | GET | `/devops/v1/test-suites/{id}` | no | no |
1051
+
855
1052
  ## file
856
1053
 
857
1054
  ### file.files
@@ -968,12 +1165,25 @@ Multipart request bodies expand plain objects into bracketed fields (for example
968
1165
 
969
1166
  ## media
970
1167
 
1168
+ ### media.assets
1169
+
1170
+ | Method | HTTP | Path | Streaming | Pagination |
1171
+ |---|---|---|---|---|
1172
+ | edit | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/edits` | no | no |
1173
+ | lineage | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}/lineage` | no | no |
1174
+
971
1175
  ### media.generation.capabilities
972
1176
 
973
1177
  | Method | HTTP | Path | Streaming | Pagination |
974
1178
  |---|---|---|---|---|
975
1179
  | list | GET | `/media/v1/generation/capabilities` | no | no |
976
1180
 
1181
+ ### media.images
1182
+
1183
+ | Method | HTTP | Path | Streaming | Pagination |
1184
+ |---|---|---|---|---|
1185
+ | generate | POST | `/media/v1/libraries/{library_id}/images/generations` | no | no |
1186
+
977
1187
  ### media.libraries
978
1188
 
979
1189
  | Method | HTTP | Path | Streaming | Pagination |
@@ -983,6 +1193,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
983
1193
  | list | GET | `/media/v1/libraries` | no | yes |
984
1194
  | restore | POST | `/media/v1/libraries/{library_id}/restore` | no | no |
985
1195
  | retrieve | GET | `/media/v1/libraries/{library_id}` | no | no |
1196
+ | retrieveDefault | GET | `/media/v1/libraries/default` | no | no |
1197
+ | setDefault | PUT | `/media/v1/libraries/default` | no | no |
986
1198
  | update | PATCH | `/media/v1/libraries/{library_id}` | no | no |
987
1199
 
988
1200
  ### media.libraries.assets
@@ -1045,12 +1257,6 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1045
1257
  |---|---|---|---|---|
1046
1258
  | list | GET | `/media/v1/libraries/{library_id}/folders` | no | no |
1047
1259
 
1048
- ### media.libraries.generations
1049
-
1050
- | Method | HTTP | Path | Streaming | Pagination |
1051
- |---|---|---|---|---|
1052
- | create | POST | `/media/v1/libraries/{library_id}/generations` | no | no |
1053
-
1054
1260
  ### media.libraries.jobs
1055
1261
 
1056
1262
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1059,12 +1265,6 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1059
1265
  | list | GET | `/media/v1/libraries/{library_id}/jobs` | no | yes |
1060
1266
  | retrieve | GET | `/media/v1/libraries/{library_id}/jobs/{job_id}` | no | no |
1061
1267
 
1062
- ### media.libraries.jobs.outputs.save
1063
-
1064
- | Method | HTTP | Path | Streaming | Pagination |
1065
- |---|---|---|---|---|
1066
- | create | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save` | no | no |
1067
-
1068
1268
  ### media.libraries.purge
1069
1269
 
1070
1270
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1102,6 +1302,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1102
1302
  | list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
1103
1303
  | retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
1104
1304
 
1305
+ ### media.speech
1306
+
1307
+ | Method | HTTP | Path | Streaming | Pagination |
1308
+ |---|---|---|---|---|
1309
+ | create | POST | `/media/v1/libraries/{library_id}/audio/speech` | no | no |
1310
+
1311
+ ### media.videos
1312
+
1313
+ | Method | HTTP | Path | Streaming | Pagination |
1314
+ |---|---|---|---|---|
1315
+ | generate | POST | `/media/v1/libraries/{library_id}/videos/generations` | no | no |
1316
+
1105
1317
  ## meta
1106
1318
 
1107
1319
  ### meta.docs
@@ -1266,6 +1478,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1266
1478
  | create | POST | `/ontology/v1/nodes` | no | no |
1267
1479
  | list | GET | `/ontology/v1/nodes` | no | yes |
1268
1480
  | retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
1481
+ | retrieveNeighborhood | GET | `/ontology/v1/nodes/{node_id}/neighborhood` | no | no |
1269
1482
  | update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
1270
1483
 
1271
1484
  ### ontology.nodes.merge
@@ -1498,6 +1711,166 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1498
1711
  |---|---|---|---|---|
1499
1712
  | create | POST | `/search/v1/search` | no | no |
1500
1713
 
1714
+ ## studio
1715
+
1716
+ ### studio.codexes
1717
+
1718
+ | Method | HTTP | Path | Streaming | Pagination |
1719
+ |---|---|---|---|---|
1720
+ | create | POST | `/studio/v1/codexes` | no | no |
1721
+ | delete | DELETE | `/studio/v1/codexes/{codex}` | no | no |
1722
+ | list | GET | `/studio/v1/codexes` | no | no |
1723
+ | retrieve | GET | `/studio/v1/codexes/{codex}` | no | no |
1724
+ | update | PATCH | `/studio/v1/codexes/{codex}` | no | no |
1725
+
1726
+ ### studio.codexes.entries
1727
+
1728
+ | Method | HTTP | Path | Streaming | Pagination |
1729
+ |---|---|---|---|---|
1730
+ | create | POST | `/studio/v1/codexes/{codex}/entries` | no | no |
1731
+ | delete | DELETE | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
1732
+ | list | GET | `/studio/v1/codexes/{codex}/entries` | no | no |
1733
+ | retrieve | GET | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
1734
+ | update | PATCH | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
1735
+
1736
+ ### studio.genres
1737
+
1738
+ | Method | HTTP | Path | Streaming | Pagination |
1739
+ |---|---|---|---|---|
1740
+ | list | GET | `/studio/v1/genres` | no | no |
1741
+ | retrieve | GET | `/studio/v1/genres/{genre}` | no | no |
1742
+
1743
+ ### studio.platforms
1744
+
1745
+ | Method | HTTP | Path | Streaming | Pagination |
1746
+ |---|---|---|---|---|
1747
+ | list | GET | `/studio/v1/platforms` | no | no |
1748
+ | retrieve | GET | `/studio/v1/platforms/{platform}` | no | no |
1749
+
1750
+ ### studio.reviewers
1751
+
1752
+ | Method | HTTP | Path | Streaming | Pagination |
1753
+ |---|---|---|---|---|
1754
+ | list | GET | `/studio/v1/reviewers` | no | no |
1755
+ | update | PATCH | `/studio/v1/reviewers/{agent}` | no | no |
1756
+
1757
+ ### studio.styles
1758
+
1759
+ | Method | HTTP | Path | Streaming | Pagination |
1760
+ |---|---|---|---|---|
1761
+ | create | POST | `/studio/v1/styles` | no | no |
1762
+ | delete | DELETE | `/studio/v1/styles/{style}` | no | no |
1763
+ | list | GET | `/studio/v1/styles` | no | no |
1764
+ | retrieve | GET | `/studio/v1/styles/{style}` | no | no |
1765
+ | update | PATCH | `/studio/v1/styles/{style}` | no | no |
1766
+
1767
+ ### studio.templates
1768
+
1769
+ | Method | HTTP | Path | Streaming | Pagination |
1770
+ |---|---|---|---|---|
1771
+ | create | POST | `/studio/v1/templates` | no | no |
1772
+ | delete | DELETE | `/studio/v1/templates/{template}` | no | no |
1773
+ | list | GET | `/studio/v1/templates` | no | no |
1774
+ | retrieve | GET | `/studio/v1/templates/{template}` | no | no |
1775
+
1776
+ ### studio.themes
1777
+
1778
+ | Method | HTTP | Path | Streaming | Pagination |
1779
+ |---|---|---|---|---|
1780
+ | create | POST | `/studio/v1/themes` | no | no |
1781
+ | delete | DELETE | `/studio/v1/themes/{theme}` | no | no |
1782
+ | list | GET | `/studio/v1/themes` | no | no |
1783
+ | retrieve | GET | `/studio/v1/themes/{theme}` | no | no |
1784
+ | update | PATCH | `/studio/v1/themes/{theme}` | no | no |
1785
+
1786
+ ### studio.works
1787
+
1788
+ | Method | HTTP | Path | Streaming | Pagination |
1789
+ |---|---|---|---|---|
1790
+ | create | POST | `/studio/v1/works` | no | no |
1791
+ | list | GET | `/studio/v1/works` | no | no |
1792
+ | resolve | GET | `/studio/v1/works:resolve` | no | no |
1793
+ | retrieve | GET | `/studio/v1/works/{work}` | no | no |
1794
+ | update | PATCH | `/studio/v1/works/{work}` | no | no |
1795
+ | updateBrief | PATCH | `/studio/v1/works/{work}/brief` | no | no |
1796
+
1797
+ ### studio.works.drafts
1798
+
1799
+ | Method | HTTP | Path | Streaming | Pagination |
1800
+ |---|---|---|---|---|
1801
+ | create | POST | `/studio/v1/works/{work}/drafts` | no | no |
1802
+ | list | GET | `/studio/v1/works/{work}/drafts` | no | no |
1803
+ | rebase | POST | `/studio/v1/works/{work}/drafts/{draft}:rebase` | no | no |
1804
+ | retrieve | GET | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
1805
+ | retrieveExport | GET | `/studio/v1/works/{work}/drafts/{draft}/export` | no | no |
1806
+ | retrieveOutline | GET | `/studio/v1/works/{work}/drafts/{draft}/outline` | no | no |
1807
+ | retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
1808
+ | update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
1809
+
1810
+ ### studio.works.drafts.renditions
1811
+
1812
+ | Method | HTTP | Path | Streaming | Pagination |
1813
+ |---|---|---|---|---|
1814
+ | create | POST | `/studio/v1/works/{work}/drafts/{draft}/renditions` | no | no |
1815
+
1816
+ ### studio.works.drafts.status
1817
+
1818
+ | Method | HTTP | Path | Streaming | Pagination |
1819
+ |---|---|---|---|---|
1820
+ | list | GET | `/studio/v1/works/{work}/drafts/{draft}/status` | no | no |
1821
+
1822
+ ### studio.works.drafts.units
1823
+
1824
+ | Method | HTTP | Path | Streaming | Pagination |
1825
+ |---|---|---|---|---|
1826
+ | batchCreate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchCreate` | no | no |
1827
+ | batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
1828
+ | create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
1829
+
1830
+ ### studio.works.renditions
1831
+
1832
+ | Method | HTTP | Path | Streaming | Pagination |
1833
+ |---|---|---|---|---|
1834
+ | delete | DELETE | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
1835
+ | list | GET | `/studio/v1/works/{work}/renditions` | no | no |
1836
+ | publish | POST | `/studio/v1/works/{work}/renditions/{rendition}:publish` | no | no |
1837
+ | render | POST | `/studio/v1/works/{work}/renditions/{rendition}:render` | no | no |
1838
+ | retrieve | GET | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
1839
+ | retrieveContent | GET | `/studio/v1/works/{work}/renditions/{rendition}/content` | no | no |
1840
+ | update | PATCH | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
1841
+
1842
+ ### studio.works.reviewSettings
1843
+
1844
+ | Method | HTTP | Path | Streaming | Pagination |
1845
+ |---|---|---|---|---|
1846
+ | retrieve | GET | `/studio/v1/works/{work}/review-settings` | no | no |
1847
+ | update | PATCH | `/studio/v1/works/{work}/review-settings` | no | no |
1848
+
1849
+ ### studio.works.reviews
1850
+
1851
+ | Method | HTTP | Path | Streaming | Pagination |
1852
+ |---|---|---|---|---|
1853
+ | appeal | POST | `/studio/v1/works/{work}/reviews/{review}:appeal` | no | no |
1854
+ | cancel | POST | `/studio/v1/works/{work}/reviews/{review}:cancel` | no | no |
1855
+ | create | POST | `/studio/v1/works/{work}/reviews` | no | no |
1856
+ | list | GET | `/studio/v1/works/{work}/reviews` | no | no |
1857
+ | retrieve | GET | `/studio/v1/works/{work}/reviews/{review}` | no | no |
1858
+
1859
+ ### studio.works.units
1860
+
1861
+ | Method | HTTP | Path | Streaming | Pagination |
1862
+ |---|---|---|---|---|
1863
+ | move | POST | `/studio/v1/works/{work}/units/{unit}:move` | no | no |
1864
+ | retrieve | GET | `/studio/v1/works/{work}/units/{unit}` | no | no |
1865
+ | retrieveContext | GET | `/studio/v1/works/{work}/units/{unit}/context` | no | no |
1866
+ | update | PATCH | `/studio/v1/works/{work}/units/{unit}` | no | no |
1867
+
1868
+ ### studio.works.units.blocks
1869
+
1870
+ | Method | HTTP | Path | Streaming | Pagination |
1871
+ |---|---|---|---|---|
1872
+ | patch | POST | `/studio/v1/works/{work}/units/{unit}/blocks:patch` | no | no |
1873
+
1501
1874
  ## ticket
1502
1875
 
1503
1876
  ### ticket.activity
@@ -1546,6 +1919,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1546
1919
  | Method | HTTP | Path | Streaming | Pagination |
1547
1920
  |---|---|---|---|---|
1548
1921
  | list | GET | `/ticket/v1/repositories` | no | no |
1922
+ | update | PATCH | `/ticket/v1/repositories/{id}` | no | no |
1549
1923
 
1550
1924
  ### ticket.tickets
1551
1925
 
@@ -1737,11 +2111,19 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1737
2111
  | crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
1738
2112
  | database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
1739
2113
  | file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
2114
+ | 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. |
2115
+ | 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. |
2116
+ | 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. |
2117
+ | 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. |
2118
+ | 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. |
2119
+ | 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. |
2120
+ | 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
2121
  | meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
1741
2122
  | sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
1742
2123
  | sandbox.sandboxes.files.remove | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
1743
2124
  | sandbox.sandboxes.files.read | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
1744
2125
  | sandbox.sandboxes.files.write | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
2126
+ | 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. |
1745
2127
  | vault.oauth.retrieveClientMetadata | The literal .json filename otherwise introduces a dot inside a method identifier. |
1746
2128
 
1747
2129
  ## SDK parameter aliases
package/README.md CHANGED
@@ -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 },
@@ -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;
@@ -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) {
@@ -1,6 +1,6 @@
1
1
  import { type SSEEvent } from './sse.js';
2
2
  export interface PraxisOptions {
3
- /** Explicit key. Omitted on a Praxis computer: PRAXIS_API_TOKEN, then ~/.praxis/credentials, are used. */
3
+ /** Explicit key. Omitted on a Praxis computer: PRAXIS_API_TOKEN, then the login file `~/.praxis/cli/<env>.json`, are used. */
4
4
  apiKey?: string;
5
5
  baseUrl?: string;
6
6
  timeoutMs?: number;