@deepraxis/sdk 0.1.1-dev.b7312c1 → 0.1.1-dev.b8773c9

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`. 567 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`. 698 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
 
@@ -576,12 +576,20 @@ Multipart request bodies expand plain objects into bracketed fields (for example
576
576
  | Method | HTTP | Path | Streaming | Pagination |
577
577
  |---|---|---|---|---|
578
578
  | create | POST | `/browser/v1/sessions` | no | no |
579
+ | frames | GET | `/browser/v1/sessions/{sessionId}/frames` | always | no |
579
580
  | list | GET | `/browser/v1/sessions` | no | no |
580
581
  | retrieve | GET | `/browser/v1/sessions/{sessionId}` | no | no |
581
582
  | retrieveDebug | GET | `/browser/v1/sessions/{sessionId}/debug` | no | no |
583
+ | retrieveFrame | GET | `/browser/v1/sessions/{sessionId}/frame` | no | no |
582
584
  | stream | GET | `/browser/v1/sessions/{sessionId}/stream` | always | no |
583
585
  | update | POST | `/browser/v1/sessions/{sessionId}` | no | no |
584
586
 
587
+ ### browser.sessions.actions
588
+
589
+ | Method | HTTP | Path | Streaming | Pagination |
590
+ |---|---|---|---|---|
591
+ | create | POST | `/browser/v1/sessions/{sessionId}/actions` | no | no |
592
+
585
593
  ### browser.sessions.events
586
594
 
587
595
  | Method | HTTP | Path | Streaming | Pagination |
@@ -872,11 +880,119 @@ Multipart request bodies expand plain objects into bracketed fields (for example
872
880
 
873
881
  ## devops
874
882
 
883
+ ### devops.changes
884
+
885
+ | Method | HTTP | Path | Streaming | Pagination |
886
+ |---|---|---|---|---|
887
+ | abandon | POST | `/devops/v1/changes/{id}:abandon` | no | no |
888
+ | markLastSlice | POST | `/devops/v1/changes/{id}:markLastSlice` | no | no |
889
+ | retrieve | GET | `/devops/v1/changes/{id}` | no | no |
890
+
891
+ ### devops.environments
892
+
893
+ | Method | HTTP | Path | Streaming | Pagination |
894
+ |---|---|---|---|---|
895
+ | update | PATCH | `/devops/v1/environments/{id}` | no | no |
896
+
897
+ ### devops.environments.checkpoints
898
+
899
+ | Method | HTTP | Path | Streaming | Pagination |
900
+ |---|---|---|---|---|
901
+ | list | GET | `/devops/v1/environments/{id}/checkpoints` | no | no |
902
+
903
+ ### devops.flags
904
+
905
+ | Method | HTTP | Path | Streaming | Pagination |
906
+ |---|---|---|---|---|
907
+ | archive | POST | `/devops/v1/flags/{id}:archive` | no | no |
908
+ | conclude | POST | `/devops/v1/flags/{id}:conclude` | no | no |
909
+ | retrieve | GET | `/devops/v1/flags/{id}` | no | no |
910
+ | update | PATCH | `/devops/v1/flags/{id}` | no | no |
911
+
912
+ ### devops.flags.environments
913
+
914
+ | Method | HTTP | Path | Streaming | Pagination |
915
+ |---|---|---|---|---|
916
+ | update | PATCH | `/devops/v1/flags/{id}/environments/{environment}` | no | no |
917
+
918
+ ### devops.progressiveRollouts
919
+
920
+ | Method | HTTP | Path | Streaming | Pagination |
921
+ |---|---|---|---|---|
922
+ | create | POST | `/devops/v1/progressive-rollouts` | no | no |
923
+ | pause | POST | `/devops/v1/progressive-rollouts/{id}:pause` | no | no |
924
+ | resume | POST | `/devops/v1/progressive-rollouts/{id}:resume` | no | no |
925
+ | retrieve | GET | `/devops/v1/progressive-rollouts/{id}` | no | no |
926
+ | rollback | POST | `/devops/v1/progressive-rollouts/{id}:rollback` | no | no |
927
+
875
928
  ### devops.projects
876
929
 
877
930
  | Method | HTTP | Path | Streaming | Pagination |
878
931
  |---|---|---|---|---|
932
+ | list | GET | `/devops/v1/projects` | no | no |
933
+ | retrieve | GET | `/devops/v1/projects/{id}` | no | no |
879
934
  | retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
935
+ | update | PATCH | `/devops/v1/projects/{id}` | no | no |
936
+
937
+ ### devops.projects.changes
938
+
939
+ | Method | HTTP | Path | Streaming | Pagination |
940
+ |---|---|---|---|---|
941
+ | create | POST | `/devops/v1/projects/{project}/changes` | no | no |
942
+ | list | GET | `/devops/v1/projects/{project}/changes` | no | no |
943
+
944
+ ### devops.projects.environments
945
+
946
+ | Method | HTTP | Path | Streaming | Pagination |
947
+ |---|---|---|---|---|
948
+ | list | GET | `/devops/v1/projects/{project}/environments` | no | no |
949
+
950
+ ### devops.projects.environments.targets
951
+
952
+ | Method | HTTP | Path | Streaming | Pagination |
953
+ |---|---|---|---|---|
954
+ | deleteState | DELETE | `/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state` | no | no |
955
+ | retrieveState | GET | `/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state` | no | no |
956
+
957
+ ### devops.projects.environments.targets.state
958
+
959
+ | Method | HTTP | Path | Streaming | Pagination |
960
+ |---|---|---|---|---|
961
+ | create | POST | `/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state` | no | no |
962
+ | deleteLock | DELETE | `/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock` | no | no |
963
+
964
+ ### devops.projects.environments.targets.state.lock
965
+
966
+ | Method | HTTP | Path | Streaming | Pagination |
967
+ |---|---|---|---|---|
968
+ | create | POST | `/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock` | no | no |
969
+
970
+ ### devops.projects.flags
971
+
972
+ | Method | HTTP | Path | Streaming | Pagination |
973
+ |---|---|---|---|---|
974
+ | create | POST | `/devops/v1/projects/{project}/flags` | no | no |
975
+ | list | GET | `/devops/v1/projects/{project}/flags` | no | no |
976
+
977
+ ### devops.projects.promotions
978
+
979
+ | Method | HTTP | Path | Streaming | Pagination |
980
+ |---|---|---|---|---|
981
+ | list | GET | `/devops/v1/projects/{project}/promotions` | no | no |
982
+
983
+ ### devops.projects.releases
984
+
985
+ | Method | HTTP | Path | Streaming | Pagination |
986
+ |---|---|---|---|---|
987
+ | create | POST | `/devops/v1/projects/{project}/releases` | no | no |
988
+ | list | GET | `/devops/v1/projects/{project}/releases` | no | no |
989
+
990
+ ### devops.projects.targets
991
+
992
+ | Method | HTTP | Path | Streaming | Pagination |
993
+ |---|---|---|---|---|
994
+ | list | GET | `/devops/v1/projects/{project}/targets` | no | no |
995
+ | refresh | POST | `/devops/v1/projects/{project}/targets:refresh` | no | no |
880
996
 
881
997
  ### devops.projects.testCases
882
998
 
@@ -910,6 +1026,36 @@ Multipart request bodies expand plain objects into bracketed fields (for example
910
1026
  |---|---|---|---|---|
911
1027
  | list | GET | `/devops/v1/projects/{project}/test-suites` | no | no |
912
1028
 
1029
+ ### devops.promotions
1030
+
1031
+ | Method | HTTP | Path | Streaming | Pagination |
1032
+ |---|---|---|---|---|
1033
+ | approve | POST | `/devops/v1/promotions/{id}:approve` | no | no |
1034
+ | cancel | POST | `/devops/v1/promotions/{id}:cancel` | no | no |
1035
+ | conclude | POST | `/devops/v1/promotions/{id}:conclude` | no | no |
1036
+ | create | POST | `/devops/v1/promotions` | no | no |
1037
+ | retrieve | GET | `/devops/v1/promotions/{id}` | no | no |
1038
+ | retry | POST | `/devops/v1/promotions/{id}:retry` | no | no |
1039
+
1040
+ ### devops.promotions.rollouts
1041
+
1042
+ | Method | HTTP | Path | Streaming | Pagination |
1043
+ |---|---|---|---|---|
1044
+ | list | GET | `/devops/v1/promotions/{promotion}/rollouts` | no | no |
1045
+
1046
+ ### devops.releases
1047
+
1048
+ | Method | HTTP | Path | Streaming | Pagination |
1049
+ |---|---|---|---|---|
1050
+ | abandon | POST | `/devops/v1/releases/{id}:abandon` | no | no |
1051
+ | retrieve | GET | `/devops/v1/releases/{id}` | no | no |
1052
+
1053
+ ### devops.rollouts
1054
+
1055
+ | Method | HTTP | Path | Streaming | Pagination |
1056
+ |---|---|---|---|---|
1057
+ | retrieve | GET | `/devops/v1/rollouts/{id}` | no | no |
1058
+
913
1059
  ### devops.testCases
914
1060
 
915
1061
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1062,12 +1208,25 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1062
1208
 
1063
1209
  ## media
1064
1210
 
1211
+ ### media.assets
1212
+
1213
+ | Method | HTTP | Path | Streaming | Pagination |
1214
+ |---|---|---|---|---|
1215
+ | edit | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/edits` | no | no |
1216
+ | lineage | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}/lineage` | no | no |
1217
+
1065
1218
  ### media.generation.capabilities
1066
1219
 
1067
1220
  | Method | HTTP | Path | Streaming | Pagination |
1068
1221
  |---|---|---|---|---|
1069
1222
  | list | GET | `/media/v1/generation/capabilities` | no | no |
1070
1223
 
1224
+ ### media.images
1225
+
1226
+ | Method | HTTP | Path | Streaming | Pagination |
1227
+ |---|---|---|---|---|
1228
+ | generate | POST | `/media/v1/libraries/{library_id}/images/generations` | no | no |
1229
+
1071
1230
  ### media.libraries
1072
1231
 
1073
1232
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1077,6 +1236,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1077
1236
  | list | GET | `/media/v1/libraries` | no | yes |
1078
1237
  | restore | POST | `/media/v1/libraries/{library_id}/restore` | no | no |
1079
1238
  | retrieve | GET | `/media/v1/libraries/{library_id}` | no | no |
1239
+ | retrieveDefault | GET | `/media/v1/libraries/default` | no | no |
1240
+ | setDefault | PUT | `/media/v1/libraries/default` | no | no |
1080
1241
  | update | PATCH | `/media/v1/libraries/{library_id}` | no | no |
1081
1242
 
1082
1243
  ### media.libraries.assets
@@ -1139,12 +1300,6 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1139
1300
  |---|---|---|---|---|
1140
1301
  | list | GET | `/media/v1/libraries/{library_id}/folders` | no | no |
1141
1302
 
1142
- ### media.libraries.generations
1143
-
1144
- | Method | HTTP | Path | Streaming | Pagination |
1145
- |---|---|---|---|---|
1146
- | create | POST | `/media/v1/libraries/{library_id}/generations` | no | no |
1147
-
1148
1303
  ### media.libraries.jobs
1149
1304
 
1150
1305
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1153,12 +1308,6 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1153
1308
  | list | GET | `/media/v1/libraries/{library_id}/jobs` | no | yes |
1154
1309
  | retrieve | GET | `/media/v1/libraries/{library_id}/jobs/{job_id}` | no | no |
1155
1310
 
1156
- ### media.libraries.jobs.outputs.save
1157
-
1158
- | Method | HTTP | Path | Streaming | Pagination |
1159
- |---|---|---|---|---|
1160
- | create | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save` | no | no |
1161
-
1162
1311
  ### media.libraries.purge
1163
1312
 
1164
1313
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1196,6 +1345,18 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1196
1345
  | list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
1197
1346
  | retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
1198
1347
 
1348
+ ### media.speech
1349
+
1350
+ | Method | HTTP | Path | Streaming | Pagination |
1351
+ |---|---|---|---|---|
1352
+ | create | POST | `/media/v1/libraries/{library_id}/audio/speech` | no | no |
1353
+
1354
+ ### media.videos
1355
+
1356
+ | Method | HTTP | Path | Streaming | Pagination |
1357
+ |---|---|---|---|---|
1358
+ | generate | POST | `/media/v1/libraries/{library_id}/videos/generations` | no | no |
1359
+
1199
1360
  ## meta
1200
1361
 
1201
1362
  ### meta.docs
@@ -1360,6 +1521,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1360
1521
  | create | POST | `/ontology/v1/nodes` | no | no |
1361
1522
  | list | GET | `/ontology/v1/nodes` | no | yes |
1362
1523
  | retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
1524
+ | retrieveNeighborhood | GET | `/ontology/v1/nodes/{node_id}/neighborhood` | no | no |
1363
1525
  | update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
1364
1526
 
1365
1527
  ### ontology.nodes.merge
@@ -1452,6 +1614,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1452
1614
 
1453
1615
  ## sandbox
1454
1616
 
1617
+ ### sandbox.events.sandboxes
1618
+
1619
+ | Method | HTTP | Path | Streaming | Pagination |
1620
+ |---|---|---|---|---|
1621
+ | retrieve | GET | `/sandbox/v1/events/sandboxes/{sandboxID}` | no | no |
1622
+
1455
1623
  ### sandbox.sandboxes
1456
1624
 
1457
1625
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1509,6 +1677,13 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1509
1677
  |---|---|---|---|---|
1510
1678
  | create | POST | `/sandbox/v1/sandboxes/{sandboxID}/snapshots` | no | no |
1511
1679
 
1680
+ ### sandbox.sandboxes.tasks
1681
+
1682
+ | Method | HTTP | Path | Streaming | Pagination |
1683
+ |---|---|---|---|---|
1684
+ | create | POST | `/sandbox/v1/sandboxes/{sandboxID}/tasks` | no | no |
1685
+ | retrieveLog | GET | `/sandbox/v1/sandboxes/{sandboxID}/tasks/{taskID}/log` | no | no |
1686
+
1512
1687
  ### sandbox.sandboxes.upgrade
1513
1688
 
1514
1689
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1592,6 +1767,183 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1592
1767
  |---|---|---|---|---|
1593
1768
  | create | POST | `/search/v1/search` | no | no |
1594
1769
 
1770
+ ## studio
1771
+
1772
+ ### studio.codexes
1773
+
1774
+ | Method | HTTP | Path | Streaming | Pagination |
1775
+ |---|---|---|---|---|
1776
+ | create | POST | `/studio/v1/codexes` | no | no |
1777
+ | delete | DELETE | `/studio/v1/codexes/{codex}` | no | no |
1778
+ | list | GET | `/studio/v1/codexes` | no | no |
1779
+ | retrieve | GET | `/studio/v1/codexes/{codex}` | no | no |
1780
+ | update | PATCH | `/studio/v1/codexes/{codex}` | no | no |
1781
+
1782
+ ### studio.codexes.entries
1783
+
1784
+ | Method | HTTP | Path | Streaming | Pagination |
1785
+ |---|---|---|---|---|
1786
+ | create | POST | `/studio/v1/codexes/{codex}/entries` | no | no |
1787
+ | delete | DELETE | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
1788
+ | list | GET | `/studio/v1/codexes/{codex}/entries` | no | no |
1789
+ | retrieve | GET | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
1790
+ | update | PATCH | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
1791
+
1792
+ ### studio.genres
1793
+
1794
+ | Method | HTTP | Path | Streaming | Pagination |
1795
+ |---|---|---|---|---|
1796
+ | list | GET | `/studio/v1/genres` | no | no |
1797
+ | retrieve | GET | `/studio/v1/genres/{genre}` | no | no |
1798
+
1799
+ ### studio.platforms
1800
+
1801
+ | Method | HTTP | Path | Streaming | Pagination |
1802
+ |---|---|---|---|---|
1803
+ | list | GET | `/studio/v1/platforms` | no | no |
1804
+ | retrieve | GET | `/studio/v1/platforms/{platform}` | no | no |
1805
+
1806
+ ### studio.styles
1807
+
1808
+ | Method | HTTP | Path | Streaming | Pagination |
1809
+ |---|---|---|---|---|
1810
+ | create | POST | `/studio/v1/styles` | no | no |
1811
+ | delete | DELETE | `/studio/v1/styles/{style}` | no | no |
1812
+ | list | GET | `/studio/v1/styles` | no | no |
1813
+ | retrieve | GET | `/studio/v1/styles/{style}` | no | no |
1814
+ | update | PATCH | `/studio/v1/styles/{style}` | no | no |
1815
+
1816
+ ### studio.templates
1817
+
1818
+ | Method | HTTP | Path | Streaming | Pagination |
1819
+ |---|---|---|---|---|
1820
+ | create | POST | `/studio/v1/templates` | no | no |
1821
+ | delete | DELETE | `/studio/v1/templates/{template}` | no | no |
1822
+ | list | GET | `/studio/v1/templates` | no | no |
1823
+ | retrieve | GET | `/studio/v1/templates/{template}` | no | no |
1824
+
1825
+ ### studio.themes
1826
+
1827
+ | Method | HTTP | Path | Streaming | Pagination |
1828
+ |---|---|---|---|---|
1829
+ | create | POST | `/studio/v1/themes` | no | no |
1830
+ | delete | DELETE | `/studio/v1/themes/{theme}` | no | no |
1831
+ | list | GET | `/studio/v1/themes` | no | no |
1832
+ | retrieve | GET | `/studio/v1/themes/{theme}` | no | no |
1833
+ | update | PATCH | `/studio/v1/themes/{theme}` | no | no |
1834
+
1835
+ ### studio.works
1836
+
1837
+ | Method | HTTP | Path | Streaming | Pagination |
1838
+ |---|---|---|---|---|
1839
+ | create | POST | `/studio/v1/works` | no | no |
1840
+ | list | GET | `/studio/v1/works` | no | no |
1841
+ | resolve | GET | `/studio/v1/works:resolve` | no | no |
1842
+ | retrieve | GET | `/studio/v1/works/{work}` | no | no |
1843
+ | update | PATCH | `/studio/v1/works/{work}` | no | no |
1844
+
1845
+ ### studio.works.drafts
1846
+
1847
+ | Method | HTTP | Path | Streaming | Pagination |
1848
+ |---|---|---|---|---|
1849
+ | create | POST | `/studio/v1/works/{work}/drafts` | no | no |
1850
+ | list | GET | `/studio/v1/works/{work}/drafts` | no | no |
1851
+ | rebase | POST | `/studio/v1/works/{work}/drafts/{draft}:rebase` | no | no |
1852
+ | retrieve | GET | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
1853
+ | retrieveExport | GET | `/studio/v1/works/{work}/drafts/{draft}/export` | no | no |
1854
+ | retrieveOutline | GET | `/studio/v1/works/{work}/drafts/{draft}/outline` | no | no |
1855
+ | retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
1856
+ | update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
1857
+ | updateBrief | PATCH | `/studio/v1/works/{work}/drafts/{draft}/brief` | no | no |
1858
+
1859
+ ### studio.works.drafts.foreshadows
1860
+
1861
+ | Method | HTTP | Path | Streaming | Pagination |
1862
+ |---|---|---|---|---|
1863
+ | delete | DELETE | `/studio/v1/works/{work}/drafts/{draft}/foreshadows/{key}` | no | no |
1864
+ | list | GET | `/studio/v1/works/{work}/drafts/{draft}/foreshadows` | no | no |
1865
+ | update | PUT | `/studio/v1/works/{work}/drafts/{draft}/foreshadows/{key}` | no | no |
1866
+
1867
+ ### studio.works.drafts.renditions
1868
+
1869
+ | Method | HTTP | Path | Streaming | Pagination |
1870
+ |---|---|---|---|---|
1871
+ | create | POST | `/studio/v1/works/{work}/drafts/{draft}/renditions` | no | no |
1872
+
1873
+ ### studio.works.drafts.status
1874
+
1875
+ | Method | HTTP | Path | Streaming | Pagination |
1876
+ |---|---|---|---|---|
1877
+ | list | GET | `/studio/v1/works/{work}/drafts/{draft}/status` | no | no |
1878
+
1879
+ ### studio.works.drafts.units
1880
+
1881
+ | Method | HTTP | Path | Streaming | Pagination |
1882
+ |---|---|---|---|---|
1883
+ | batchCreate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchCreate` | no | no |
1884
+ | batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
1885
+ | create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
1886
+
1887
+ ### studio.works.progressions
1888
+
1889
+ | Method | HTTP | Path | Streaming | Pagination |
1890
+ |---|---|---|---|---|
1891
+ | create | POST | `/studio/v1/works/{work}/progressions` | no | no |
1892
+ | delete | DELETE | `/studio/v1/works/{work}/progressions/{id}` | no | no |
1893
+ | list | GET | `/studio/v1/works/{work}/progressions` | no | no |
1894
+
1895
+ ### studio.works.renditions
1896
+
1897
+ | Method | HTTP | Path | Streaming | Pagination |
1898
+ |---|---|---|---|---|
1899
+ | delete | DELETE | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
1900
+ | list | GET | `/studio/v1/works/{work}/renditions` | no | no |
1901
+ | publish | POST | `/studio/v1/works/{work}/renditions/{rendition}:publish` | no | no |
1902
+ | render | POST | `/studio/v1/works/{work}/renditions/{rendition}:render` | no | no |
1903
+ | retrieve | GET | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
1904
+ | retrieveContent | GET | `/studio/v1/works/{work}/renditions/{rendition}/content` | no | no |
1905
+ | update | PATCH | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
1906
+
1907
+ ### studio.works.reviewSettings
1908
+
1909
+ | Method | HTTP | Path | Streaming | Pagination |
1910
+ |---|---|---|---|---|
1911
+ | retrieve | GET | `/studio/v1/works/{work}/review-settings` | no | no |
1912
+ | update | PATCH | `/studio/v1/works/{work}/review-settings` | no | no |
1913
+
1914
+ ### studio.works.reviewers
1915
+
1916
+ | Method | HTTP | Path | Streaming | Pagination |
1917
+ |---|---|---|---|---|
1918
+ | create | POST | `/studio/v1/works/{work}/reviewers` | no | no |
1919
+ | delete | DELETE | `/studio/v1/works/{work}/reviewers/{agent}` | no | no |
1920
+ | list | GET | `/studio/v1/works/{work}/reviewers` | no | no |
1921
+ | update | PATCH | `/studio/v1/works/{work}/reviewers/{agent}` | no | no |
1922
+
1923
+ ### studio.works.reviews
1924
+
1925
+ | Method | HTTP | Path | Streaming | Pagination |
1926
+ |---|---|---|---|---|
1927
+ | cancel | POST | `/studio/v1/works/{work}/reviews/{review}:cancel` | no | no |
1928
+ | create | POST | `/studio/v1/works/{work}/reviews` | no | no |
1929
+ | list | GET | `/studio/v1/works/{work}/reviews` | no | no |
1930
+ | retrieve | GET | `/studio/v1/works/{work}/reviews/{review}` | no | no |
1931
+
1932
+ ### studio.works.units
1933
+
1934
+ | Method | HTTP | Path | Streaming | Pagination |
1935
+ |---|---|---|---|---|
1936
+ | move | POST | `/studio/v1/works/{work}/units/{unit}:move` | no | no |
1937
+ | retrieve | GET | `/studio/v1/works/{work}/units/{unit}` | no | no |
1938
+ | retrieveContext | GET | `/studio/v1/works/{work}/units/{unit}/context` | no | no |
1939
+ | update | PATCH | `/studio/v1/works/{work}/units/{unit}` | no | no |
1940
+
1941
+ ### studio.works.units.blocks
1942
+
1943
+ | Method | HTTP | Path | Streaming | Pagination |
1944
+ |---|---|---|---|---|
1945
+ | patch | POST | `/studio/v1/works/{work}/units/{unit}/blocks:patch` | no | no |
1946
+
1595
1947
  ## ticket
1596
1948
 
1597
1949
  ### ticket.activity
@@ -1640,6 +1992,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1640
1992
  | Method | HTTP | Path | Streaming | Pagination |
1641
1993
  |---|---|---|---|---|
1642
1994
  | list | GET | `/ticket/v1/repositories` | no | no |
1995
+ | update | PATCH | `/ticket/v1/repositories/{id}` | no | no |
1643
1996
 
1644
1997
  ### ticket.tickets
1645
1998
 
@@ -1831,11 +2184,19 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1831
2184
  | crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
1832
2185
  | database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
1833
2186
  | file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
2187
+ | 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. |
2188
+ | 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. |
2189
+ | 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. |
2190
+ | 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. |
2191
+ | 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. |
2192
+ | 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. |
2193
+ | 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. |
1834
2194
  | meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
1835
2195
  | sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
1836
2196
  | sandbox.sandboxes.files.remove | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
1837
2197
  | sandbox.sandboxes.files.read | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
1838
2198
  | sandbox.sandboxes.files.write | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
2199
+ | 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. |
1839
2200
  | vault.oauth.retrieveClientMetadata | The literal .json filename otherwise introduces a dot inside a method identifier. |
1840
2201
 
1841
2202
  ## 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
  }
@@ -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;