@deepraxis/sdk 0.1.1-dev.b3b65e8 → 0.1.1-dev.b478c75
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 +477 -1
- package/README.md +4 -4
- package/dist/core/credentials.d.ts +12 -3
- package/dist/core/credentials.js +22 -2
- package/dist/core/errors.d.ts +6 -0
- package/dist/core/errors.js +8 -0
- package/dist/core/transport.d.ts +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +1114 -122
- package/dist/generated/sdk.gen.js +3941 -1122
- package/dist/generated/types.gen.d.ts +59816 -42544
- package/dist/helpers/browser-actions.d.ts +84 -0
- package/dist/helpers/browser-actions.js +141 -0
- package/dist/helpers/browser-connect.d.ts +26 -2
- package/dist/helpers/browser-connect.js +263 -25
- package/dist/helpers/browser-decisions.d.ts +44 -0
- package/dist/helpers/browser-decisions.js +53 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +20 -11
- package/dist/operations.generated.d.ts +35 -16545
- package/dist/operations.generated.js +10853 -4728
- package/dist/resources.generated.d.ts +347 -9
- package/dist/resources.generated.js +300 -0
- package/package.json +2 -2
package/METHODS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SDK methods
|
|
2
2
|
|
|
3
|
-
Generated by `bun run generate`.
|
|
3
|
+
Generated by `bun run generate`. 682 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 |
|
|
@@ -570,12 +576,20 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
570
576
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
571
577
|
|---|---|---|---|---|
|
|
572
578
|
| create | POST | `/browser/v1/sessions` | no | no |
|
|
579
|
+
| frames | GET | `/browser/v1/sessions/{sessionId}/frames` | always | no |
|
|
573
580
|
| list | GET | `/browser/v1/sessions` | no | no |
|
|
574
581
|
| retrieve | GET | `/browser/v1/sessions/{sessionId}` | no | no |
|
|
575
582
|
| retrieveDebug | GET | `/browser/v1/sessions/{sessionId}/debug` | no | no |
|
|
583
|
+
| retrieveFrame | GET | `/browser/v1/sessions/{sessionId}/frame` | no | no |
|
|
576
584
|
| stream | GET | `/browser/v1/sessions/{sessionId}/stream` | always | no |
|
|
577
585
|
| update | POST | `/browser/v1/sessions/{sessionId}` | no | no |
|
|
578
586
|
|
|
587
|
+
### browser.sessions.actions
|
|
588
|
+
|
|
589
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
590
|
+
|---|---|---|---|---|
|
|
591
|
+
| create | POST | `/browser/v1/sessions/{sessionId}/actions` | no | no |
|
|
592
|
+
|
|
579
593
|
### browser.sessions.events
|
|
580
594
|
|
|
581
595
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -786,6 +800,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
786
800
|
|---|---|---|---|---|
|
|
787
801
|
| import | POST | `/cut/v1/projects/{project_id}/media:import` | no | no |
|
|
788
802
|
|
|
803
|
+
### cut.projects.renders
|
|
804
|
+
|
|
805
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
806
|
+
|---|---|---|---|---|
|
|
807
|
+
| create | POST | `/cut/v1/projects/{project_id}/renders` | no | no |
|
|
808
|
+
|
|
789
809
|
### cut.projects.versions
|
|
790
810
|
|
|
791
811
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -793,6 +813,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
793
813
|
| create | POST | `/cut/v1/projects/{project_id}/versions` | no | no |
|
|
794
814
|
| list | GET | `/cut/v1/projects/{project_id}/versions` | no | no |
|
|
795
815
|
|
|
816
|
+
### cut.renders
|
|
817
|
+
|
|
818
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
819
|
+
|---|---|---|---|---|
|
|
820
|
+
| retrieve | GET | `/cut/v1/renders/{render_id}` | no | no |
|
|
821
|
+
|
|
796
822
|
### cut.versions
|
|
797
823
|
|
|
798
824
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -852,6 +878,178 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
852
878
|
| delete | DELETE | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
853
879
|
| update | PATCH | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
854
880
|
|
|
881
|
+
## devops
|
|
882
|
+
|
|
883
|
+
### devops.environments.checkpoints
|
|
884
|
+
|
|
885
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
886
|
+
|---|---|---|---|---|
|
|
887
|
+
| list | GET | `/devops/v1/environments/{id}/checkpoints` | no | no |
|
|
888
|
+
|
|
889
|
+
### devops.flags
|
|
890
|
+
|
|
891
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
892
|
+
|---|---|---|---|---|
|
|
893
|
+
| archive | POST | `/devops/v1/flags/{id}:archive` | no | no |
|
|
894
|
+
| conclude | POST | `/devops/v1/flags/{id}:conclude` | no | no |
|
|
895
|
+
| retrieve | GET | `/devops/v1/flags/{id}` | no | no |
|
|
896
|
+
| update | PATCH | `/devops/v1/flags/{id}` | no | no |
|
|
897
|
+
|
|
898
|
+
### devops.flags.environments
|
|
899
|
+
|
|
900
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
901
|
+
|---|---|---|---|---|
|
|
902
|
+
| update | PATCH | `/devops/v1/flags/{id}/environments/{environment}` | no | no |
|
|
903
|
+
|
|
904
|
+
### devops.progressiveRollouts
|
|
905
|
+
|
|
906
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
907
|
+
|---|---|---|---|---|
|
|
908
|
+
| create | POST | `/devops/v1/progressive-rollouts` | no | no |
|
|
909
|
+
| pause | POST | `/devops/v1/progressive-rollouts/{id}:pause` | no | no |
|
|
910
|
+
| resume | POST | `/devops/v1/progressive-rollouts/{id}:resume` | no | no |
|
|
911
|
+
| retrieve | GET | `/devops/v1/progressive-rollouts/{id}` | no | no |
|
|
912
|
+
| rollback | POST | `/devops/v1/progressive-rollouts/{id}:rollback` | no | no |
|
|
913
|
+
|
|
914
|
+
### devops.projects
|
|
915
|
+
|
|
916
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
917
|
+
|---|---|---|---|---|
|
|
918
|
+
| list | GET | `/devops/v1/projects` | no | no |
|
|
919
|
+
| retrieve | GET | `/devops/v1/projects/{id}` | no | no |
|
|
920
|
+
| retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
|
|
921
|
+
|
|
922
|
+
### devops.projects.environments
|
|
923
|
+
|
|
924
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
925
|
+
|---|---|---|---|---|
|
|
926
|
+
| list | GET | `/devops/v1/projects/{project}/environments` | no | no |
|
|
927
|
+
|
|
928
|
+
### devops.projects.flags
|
|
929
|
+
|
|
930
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
931
|
+
|---|---|---|---|---|
|
|
932
|
+
| create | POST | `/devops/v1/projects/{project}/flags` | no | no |
|
|
933
|
+
| list | GET | `/devops/v1/projects/{project}/flags` | no | no |
|
|
934
|
+
|
|
935
|
+
### devops.projects.promotions
|
|
936
|
+
|
|
937
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
938
|
+
|---|---|---|---|---|
|
|
939
|
+
| list | GET | `/devops/v1/projects/{project}/promotions` | no | no |
|
|
940
|
+
|
|
941
|
+
### devops.projects.releases
|
|
942
|
+
|
|
943
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
944
|
+
|---|---|---|---|---|
|
|
945
|
+
| create | POST | `/devops/v1/projects/{project}/releases` | no | no |
|
|
946
|
+
| list | GET | `/devops/v1/projects/{project}/releases` | no | no |
|
|
947
|
+
|
|
948
|
+
### devops.projects.targets
|
|
949
|
+
|
|
950
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
951
|
+
|---|---|---|---|---|
|
|
952
|
+
| list | GET | `/devops/v1/projects/{project}/targets` | no | no |
|
|
953
|
+
| refresh | POST | `/devops/v1/projects/{project}/targets:refresh` | no | no |
|
|
954
|
+
|
|
955
|
+
### devops.projects.testCases
|
|
956
|
+
|
|
957
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
958
|
+
|---|---|---|---|---|
|
|
959
|
+
| list | GET | `/devops/v1/projects/{project}/test-cases` | no | no |
|
|
960
|
+
|
|
961
|
+
### devops.projects.testPlans
|
|
962
|
+
|
|
963
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
964
|
+
|---|---|---|---|---|
|
|
965
|
+
| create | POST | `/devops/v1/projects/{project}/test-plans` | no | no |
|
|
966
|
+
| list | GET | `/devops/v1/projects/{project}/test-plans` | no | no |
|
|
967
|
+
|
|
968
|
+
### devops.projects.testReports
|
|
969
|
+
|
|
970
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
971
|
+
|---|---|---|---|---|
|
|
972
|
+
| create | POST | `/devops/v1/projects/{project}/test-reports` | no | no |
|
|
973
|
+
|
|
974
|
+
### devops.projects.testRuns
|
|
975
|
+
|
|
976
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
977
|
+
|---|---|---|---|---|
|
|
978
|
+
| create | POST | `/devops/v1/projects/{project}/test-runs` | no | no |
|
|
979
|
+
| list | GET | `/devops/v1/projects/{project}/test-runs` | no | no |
|
|
980
|
+
|
|
981
|
+
### devops.projects.testSuites
|
|
982
|
+
|
|
983
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
984
|
+
|---|---|---|---|---|
|
|
985
|
+
| list | GET | `/devops/v1/projects/{project}/test-suites` | no | no |
|
|
986
|
+
|
|
987
|
+
### devops.promotions
|
|
988
|
+
|
|
989
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
990
|
+
|---|---|---|---|---|
|
|
991
|
+
| approve | POST | `/devops/v1/promotions/{id}:approve` | no | no |
|
|
992
|
+
| cancel | POST | `/devops/v1/promotions/{id}:cancel` | no | no |
|
|
993
|
+
| conclude | POST | `/devops/v1/promotions/{id}:conclude` | no | no |
|
|
994
|
+
| create | POST | `/devops/v1/promotions` | no | no |
|
|
995
|
+
| retrieve | GET | `/devops/v1/promotions/{id}` | no | no |
|
|
996
|
+
| retry | POST | `/devops/v1/promotions/{id}:retry` | no | no |
|
|
997
|
+
|
|
998
|
+
### devops.promotions.rollouts
|
|
999
|
+
|
|
1000
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1001
|
+
|---|---|---|---|---|
|
|
1002
|
+
| list | GET | `/devops/v1/promotions/{promotion}/rollouts` | no | no |
|
|
1003
|
+
|
|
1004
|
+
### devops.releases
|
|
1005
|
+
|
|
1006
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1007
|
+
|---|---|---|---|---|
|
|
1008
|
+
| abandon | POST | `/devops/v1/releases/{id}:abandon` | no | no |
|
|
1009
|
+
| retrieve | GET | `/devops/v1/releases/{id}` | no | no |
|
|
1010
|
+
|
|
1011
|
+
### devops.rollouts
|
|
1012
|
+
|
|
1013
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1014
|
+
|---|---|---|---|---|
|
|
1015
|
+
| retrieve | GET | `/devops/v1/rollouts/{id}` | no | no |
|
|
1016
|
+
|
|
1017
|
+
### devops.testCases
|
|
1018
|
+
|
|
1019
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1020
|
+
|---|---|---|---|---|
|
|
1021
|
+
| retrieve | GET | `/devops/v1/test-cases/{id}` | no | no |
|
|
1022
|
+
|
|
1023
|
+
### devops.testPlans
|
|
1024
|
+
|
|
1025
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1026
|
+
|---|---|---|---|---|
|
|
1027
|
+
| delete | DELETE | `/devops/v1/test-plans/{id}` | no | no |
|
|
1028
|
+
| pause | POST | `/devops/v1/test-plans/{id}:pause` | no | no |
|
|
1029
|
+
| resume | POST | `/devops/v1/test-plans/{id}:resume` | no | no |
|
|
1030
|
+
| retrieve | GET | `/devops/v1/test-plans/{id}` | no | no |
|
|
1031
|
+
| update | PATCH | `/devops/v1/test-plans/{id}` | no | no |
|
|
1032
|
+
|
|
1033
|
+
### devops.testRuns
|
|
1034
|
+
|
|
1035
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1036
|
+
|---|---|---|---|---|
|
|
1037
|
+
| cancel | POST | `/devops/v1/test-runs/{id}:cancel` | no | no |
|
|
1038
|
+
| retrieve | GET | `/devops/v1/test-runs/{id}` | no | no |
|
|
1039
|
+
|
|
1040
|
+
### devops.testRuns.executions
|
|
1041
|
+
|
|
1042
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1043
|
+
|---|---|---|---|---|
|
|
1044
|
+
| list | GET | `/devops/v1/test-runs/{run}/executions` | no | no |
|
|
1045
|
+
| retrieve | GET | `/devops/v1/test-runs/{run}/executions/{case}` | no | no |
|
|
1046
|
+
|
|
1047
|
+
### devops.testSuites
|
|
1048
|
+
|
|
1049
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1050
|
+
|---|---|---|---|---|
|
|
1051
|
+
| retrieve | GET | `/devops/v1/test-suites/{id}` | no | no |
|
|
1052
|
+
|
|
855
1053
|
## file
|
|
856
1054
|
|
|
857
1055
|
### file.files
|
|
@@ -884,6 +1082,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
884
1082
|
| complete | POST | `/file/v1/uploads/{upload_id}/complete` | no | no |
|
|
885
1083
|
| create | POST | `/file/v1/uploads` | no | no |
|
|
886
1084
|
| createSigned | POST | `/file/v1/uploads/signed` | no | no |
|
|
1085
|
+
| retrieve | GET | `/file/v1/uploads/{upload_id}` | no | no |
|
|
887
1086
|
|
|
888
1087
|
### file.uploads.parts
|
|
889
1088
|
|
|
@@ -967,6 +1166,25 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
967
1166
|
|
|
968
1167
|
## media
|
|
969
1168
|
|
|
1169
|
+
### media.assets
|
|
1170
|
+
|
|
1171
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1172
|
+
|---|---|---|---|---|
|
|
1173
|
+
| edit | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/edits` | no | no |
|
|
1174
|
+
| lineage | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}/lineage` | no | no |
|
|
1175
|
+
|
|
1176
|
+
### media.generation.capabilities
|
|
1177
|
+
|
|
1178
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1179
|
+
|---|---|---|---|---|
|
|
1180
|
+
| list | GET | `/media/v1/generation/capabilities` | no | no |
|
|
1181
|
+
|
|
1182
|
+
### media.images
|
|
1183
|
+
|
|
1184
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1185
|
+
|---|---|---|---|---|
|
|
1186
|
+
| generate | POST | `/media/v1/libraries/{library_id}/images/generations` | no | no |
|
|
1187
|
+
|
|
970
1188
|
### media.libraries
|
|
971
1189
|
|
|
972
1190
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -976,6 +1194,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
976
1194
|
| list | GET | `/media/v1/libraries` | no | yes |
|
|
977
1195
|
| restore | POST | `/media/v1/libraries/{library_id}/restore` | no | no |
|
|
978
1196
|
| retrieve | GET | `/media/v1/libraries/{library_id}` | no | no |
|
|
1197
|
+
| retrieveDefault | GET | `/media/v1/libraries/default` | no | no |
|
|
1198
|
+
| setDefault | PUT | `/media/v1/libraries/default` | no | no |
|
|
979
1199
|
| update | PATCH | `/media/v1/libraries/{library_id}` | no | no |
|
|
980
1200
|
|
|
981
1201
|
### media.libraries.assets
|
|
@@ -1042,6 +1262,8 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1042
1262
|
|
|
1043
1263
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1044
1264
|
|---|---|---|---|---|
|
|
1265
|
+
| cancel | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/cancel` | no | no |
|
|
1266
|
+
| list | GET | `/media/v1/libraries/{library_id}/jobs` | no | yes |
|
|
1045
1267
|
| retrieve | GET | `/media/v1/libraries/{library_id}/jobs/{job_id}` | no | no |
|
|
1046
1268
|
|
|
1047
1269
|
### media.libraries.purge
|
|
@@ -1081,6 +1303,33 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1081
1303
|
| list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
|
|
1082
1304
|
| retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
|
|
1083
1305
|
|
|
1306
|
+
### media.libraries.voiceConsents
|
|
1307
|
+
|
|
1308
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1309
|
+
|---|---|---|---|---|
|
|
1310
|
+
| create | POST | `/media/v1/libraries/{library_id}/voice_consents` | no | no |
|
|
1311
|
+
|
|
1312
|
+
### media.libraries.voices
|
|
1313
|
+
|
|
1314
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1315
|
+
|---|---|---|---|---|
|
|
1316
|
+
| create | POST | `/media/v1/libraries/{library_id}/voices` | no | no |
|
|
1317
|
+
| delete | DELETE | `/media/v1/libraries/{library_id}/voices/{voice_id}` | no | no |
|
|
1318
|
+
| list | GET | `/media/v1/libraries/{library_id}/voices` | no | yes |
|
|
1319
|
+
| retrieve | GET | `/media/v1/libraries/{library_id}/voices/{voice_id}` | no | no |
|
|
1320
|
+
|
|
1321
|
+
### media.speech
|
|
1322
|
+
|
|
1323
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1324
|
+
|---|---|---|---|---|
|
|
1325
|
+
| create | POST | `/media/v1/libraries/{library_id}/audio/speech` | no | no |
|
|
1326
|
+
|
|
1327
|
+
### media.videos
|
|
1328
|
+
|
|
1329
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1330
|
+
|---|---|---|---|---|
|
|
1331
|
+
| generate | POST | `/media/v1/libraries/{library_id}/videos/generations` | no | no |
|
|
1332
|
+
|
|
1084
1333
|
## meta
|
|
1085
1334
|
|
|
1086
1335
|
### meta.docs
|
|
@@ -1230,6 +1479,58 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1230
1479
|
| retrieve | GET | `/model/v1/videos/{video_id}` | no | no |
|
|
1231
1480
|
| retrieveContent | GET | `/model/v1/videos/{video_id}/content` | no | no |
|
|
1232
1481
|
|
|
1482
|
+
## ontology
|
|
1483
|
+
|
|
1484
|
+
### ontology.changesets
|
|
1485
|
+
|
|
1486
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1487
|
+
|---|---|---|---|---|
|
|
1488
|
+
| create | POST | `/ontology/v1/changesets` | no | no |
|
|
1489
|
+
|
|
1490
|
+
### ontology.nodes
|
|
1491
|
+
|
|
1492
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1493
|
+
|---|---|---|---|---|
|
|
1494
|
+
| create | POST | `/ontology/v1/nodes` | no | no |
|
|
1495
|
+
| list | GET | `/ontology/v1/nodes` | no | yes |
|
|
1496
|
+
| retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1497
|
+
| retrieveNeighborhood | GET | `/ontology/v1/nodes/{node_id}/neighborhood` | no | no |
|
|
1498
|
+
| update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1499
|
+
|
|
1500
|
+
### ontology.nodes.merge
|
|
1501
|
+
|
|
1502
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1503
|
+
|---|---|---|---|---|
|
|
1504
|
+
| create | POST | `/ontology/v1/nodes/{node_id}/merge` | no | no |
|
|
1505
|
+
|
|
1506
|
+
### ontology.relations
|
|
1507
|
+
|
|
1508
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1509
|
+
|---|---|---|---|---|
|
|
1510
|
+
| create | POST | `/ontology/v1/relations` | no | no |
|
|
1511
|
+
| list | GET | `/ontology/v1/relations` | no | yes |
|
|
1512
|
+
| retrieve | GET | `/ontology/v1/relations/{relation_id}` | no | no |
|
|
1513
|
+
|
|
1514
|
+
### ontology.relations.invalidate
|
|
1515
|
+
|
|
1516
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1517
|
+
|---|---|---|---|---|
|
|
1518
|
+
| create | POST | `/ontology/v1/relations/{relation_id}/invalidate` | no | no |
|
|
1519
|
+
|
|
1520
|
+
### ontology.search
|
|
1521
|
+
|
|
1522
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1523
|
+
|---|---|---|---|---|
|
|
1524
|
+
| create | POST | `/ontology/v1/search` | no | no |
|
|
1525
|
+
|
|
1526
|
+
### ontology.types
|
|
1527
|
+
|
|
1528
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1529
|
+
|---|---|---|---|---|
|
|
1530
|
+
| create | POST | `/ontology/v1/types` | no | no |
|
|
1531
|
+
| list | GET | `/ontology/v1/types` | no | no |
|
|
1532
|
+
| retrieve | GET | `/ontology/v1/types/{name}` | no | no |
|
|
1533
|
+
|
|
1233
1534
|
## organization
|
|
1234
1535
|
|
|
1235
1536
|
### organization.charges
|
|
@@ -1286,6 +1587,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1286
1587
|
|
|
1287
1588
|
## sandbox
|
|
1288
1589
|
|
|
1590
|
+
### sandbox.events.sandboxes
|
|
1591
|
+
|
|
1592
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1593
|
+
|---|---|---|---|---|
|
|
1594
|
+
| retrieve | GET | `/sandbox/v1/events/sandboxes/{sandboxID}` | no | no |
|
|
1595
|
+
|
|
1289
1596
|
### sandbox.sandboxes
|
|
1290
1597
|
|
|
1291
1598
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1426,6 +1733,166 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1426
1733
|
|---|---|---|---|---|
|
|
1427
1734
|
| create | POST | `/search/v1/search` | no | no |
|
|
1428
1735
|
|
|
1736
|
+
## studio
|
|
1737
|
+
|
|
1738
|
+
### studio.codexes
|
|
1739
|
+
|
|
1740
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1741
|
+
|---|---|---|---|---|
|
|
1742
|
+
| create | POST | `/studio/v1/codexes` | no | no |
|
|
1743
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}` | no | no |
|
|
1744
|
+
| list | GET | `/studio/v1/codexes` | no | no |
|
|
1745
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}` | no | no |
|
|
1746
|
+
| update | PATCH | `/studio/v1/codexes/{codex}` | no | no |
|
|
1747
|
+
|
|
1748
|
+
### studio.codexes.entries
|
|
1749
|
+
|
|
1750
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1751
|
+
|---|---|---|---|---|
|
|
1752
|
+
| create | POST | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1753
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1754
|
+
| list | GET | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1755
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1756
|
+
| update | PATCH | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1757
|
+
|
|
1758
|
+
### studio.genres
|
|
1759
|
+
|
|
1760
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1761
|
+
|---|---|---|---|---|
|
|
1762
|
+
| list | GET | `/studio/v1/genres` | no | no |
|
|
1763
|
+
| retrieve | GET | `/studio/v1/genres/{genre}` | no | no |
|
|
1764
|
+
|
|
1765
|
+
### studio.platforms
|
|
1766
|
+
|
|
1767
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1768
|
+
|---|---|---|---|---|
|
|
1769
|
+
| list | GET | `/studio/v1/platforms` | no | no |
|
|
1770
|
+
| retrieve | GET | `/studio/v1/platforms/{platform}` | no | no |
|
|
1771
|
+
|
|
1772
|
+
### studio.reviewers
|
|
1773
|
+
|
|
1774
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1775
|
+
|---|---|---|---|---|
|
|
1776
|
+
| list | GET | `/studio/v1/reviewers` | no | no |
|
|
1777
|
+
| update | PATCH | `/studio/v1/reviewers/{agent}` | no | no |
|
|
1778
|
+
|
|
1779
|
+
### studio.styles
|
|
1780
|
+
|
|
1781
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1782
|
+
|---|---|---|---|---|
|
|
1783
|
+
| create | POST | `/studio/v1/styles` | no | no |
|
|
1784
|
+
| delete | DELETE | `/studio/v1/styles/{style}` | no | no |
|
|
1785
|
+
| list | GET | `/studio/v1/styles` | no | no |
|
|
1786
|
+
| retrieve | GET | `/studio/v1/styles/{style}` | no | no |
|
|
1787
|
+
| update | PATCH | `/studio/v1/styles/{style}` | no | no |
|
|
1788
|
+
|
|
1789
|
+
### studio.templates
|
|
1790
|
+
|
|
1791
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1792
|
+
|---|---|---|---|---|
|
|
1793
|
+
| create | POST | `/studio/v1/templates` | no | no |
|
|
1794
|
+
| delete | DELETE | `/studio/v1/templates/{template}` | no | no |
|
|
1795
|
+
| list | GET | `/studio/v1/templates` | no | no |
|
|
1796
|
+
| retrieve | GET | `/studio/v1/templates/{template}` | no | no |
|
|
1797
|
+
|
|
1798
|
+
### studio.themes
|
|
1799
|
+
|
|
1800
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1801
|
+
|---|---|---|---|---|
|
|
1802
|
+
| create | POST | `/studio/v1/themes` | no | no |
|
|
1803
|
+
| delete | DELETE | `/studio/v1/themes/{theme}` | no | no |
|
|
1804
|
+
| list | GET | `/studio/v1/themes` | no | no |
|
|
1805
|
+
| retrieve | GET | `/studio/v1/themes/{theme}` | no | no |
|
|
1806
|
+
| update | PATCH | `/studio/v1/themes/{theme}` | no | no |
|
|
1807
|
+
|
|
1808
|
+
### studio.works
|
|
1809
|
+
|
|
1810
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1811
|
+
|---|---|---|---|---|
|
|
1812
|
+
| create | POST | `/studio/v1/works` | no | no |
|
|
1813
|
+
| list | GET | `/studio/v1/works` | no | no |
|
|
1814
|
+
| resolve | GET | `/studio/v1/works:resolve` | no | no |
|
|
1815
|
+
| retrieve | GET | `/studio/v1/works/{work}` | no | no |
|
|
1816
|
+
| update | PATCH | `/studio/v1/works/{work}` | no | no |
|
|
1817
|
+
| updateBrief | PATCH | `/studio/v1/works/{work}/brief` | no | no |
|
|
1818
|
+
|
|
1819
|
+
### studio.works.drafts
|
|
1820
|
+
|
|
1821
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1822
|
+
|---|---|---|---|---|
|
|
1823
|
+
| create | POST | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1824
|
+
| list | GET | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1825
|
+
| rebase | POST | `/studio/v1/works/{work}/drafts/{draft}:rebase` | no | no |
|
|
1826
|
+
| retrieve | GET | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1827
|
+
| retrieveExport | GET | `/studio/v1/works/{work}/drafts/{draft}/export` | no | no |
|
|
1828
|
+
| retrieveOutline | GET | `/studio/v1/works/{work}/drafts/{draft}/outline` | no | no |
|
|
1829
|
+
| retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
|
|
1830
|
+
| update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1831
|
+
|
|
1832
|
+
### studio.works.drafts.renditions
|
|
1833
|
+
|
|
1834
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1835
|
+
|---|---|---|---|---|
|
|
1836
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/renditions` | no | no |
|
|
1837
|
+
|
|
1838
|
+
### studio.works.drafts.status
|
|
1839
|
+
|
|
1840
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1841
|
+
|---|---|---|---|---|
|
|
1842
|
+
| list | GET | `/studio/v1/works/{work}/drafts/{draft}/status` | no | no |
|
|
1843
|
+
|
|
1844
|
+
### studio.works.drafts.units
|
|
1845
|
+
|
|
1846
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1847
|
+
|---|---|---|---|---|
|
|
1848
|
+
| batchCreate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchCreate` | no | no |
|
|
1849
|
+
| batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
|
|
1850
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
|
|
1851
|
+
|
|
1852
|
+
### studio.works.renditions
|
|
1853
|
+
|
|
1854
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1855
|
+
|---|---|---|---|---|
|
|
1856
|
+
| delete | DELETE | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1857
|
+
| list | GET | `/studio/v1/works/{work}/renditions` | no | no |
|
|
1858
|
+
| publish | POST | `/studio/v1/works/{work}/renditions/{rendition}:publish` | no | no |
|
|
1859
|
+
| render | POST | `/studio/v1/works/{work}/renditions/{rendition}:render` | no | no |
|
|
1860
|
+
| retrieve | GET | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1861
|
+
| retrieveContent | GET | `/studio/v1/works/{work}/renditions/{rendition}/content` | no | no |
|
|
1862
|
+
| update | PATCH | `/studio/v1/works/{work}/renditions/{rendition}` | no | no |
|
|
1863
|
+
|
|
1864
|
+
### studio.works.reviewSettings
|
|
1865
|
+
|
|
1866
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1867
|
+
|---|---|---|---|---|
|
|
1868
|
+
| retrieve | GET | `/studio/v1/works/{work}/review-settings` | no | no |
|
|
1869
|
+
| update | PATCH | `/studio/v1/works/{work}/review-settings` | no | no |
|
|
1870
|
+
|
|
1871
|
+
### studio.works.reviews
|
|
1872
|
+
|
|
1873
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1874
|
+
|---|---|---|---|---|
|
|
1875
|
+
| appeal | POST | `/studio/v1/works/{work}/reviews/{review}:appeal` | no | no |
|
|
1876
|
+
| cancel | POST | `/studio/v1/works/{work}/reviews/{review}:cancel` | no | no |
|
|
1877
|
+
| create | POST | `/studio/v1/works/{work}/reviews` | no | no |
|
|
1878
|
+
| list | GET | `/studio/v1/works/{work}/reviews` | no | no |
|
|
1879
|
+
| retrieve | GET | `/studio/v1/works/{work}/reviews/{review}` | no | no |
|
|
1880
|
+
|
|
1881
|
+
### studio.works.units
|
|
1882
|
+
|
|
1883
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1884
|
+
|---|---|---|---|---|
|
|
1885
|
+
| move | POST | `/studio/v1/works/{work}/units/{unit}:move` | no | no |
|
|
1886
|
+
| retrieve | GET | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1887
|
+
| retrieveContext | GET | `/studio/v1/works/{work}/units/{unit}/context` | no | no |
|
|
1888
|
+
| update | PATCH | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1889
|
+
|
|
1890
|
+
### studio.works.units.blocks
|
|
1891
|
+
|
|
1892
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1893
|
+
|---|---|---|---|---|
|
|
1894
|
+
| patch | POST | `/studio/v1/works/{work}/units/{unit}/blocks:patch` | no | no |
|
|
1895
|
+
|
|
1429
1896
|
## ticket
|
|
1430
1897
|
|
|
1431
1898
|
### ticket.activity
|
|
@@ -1474,6 +1941,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1474
1941
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1475
1942
|
|---|---|---|---|---|
|
|
1476
1943
|
| list | GET | `/ticket/v1/repositories` | no | no |
|
|
1944
|
+
| update | PATCH | `/ticket/v1/repositories/{id}` | no | no |
|
|
1477
1945
|
|
|
1478
1946
|
### ticket.tickets
|
|
1479
1947
|
|
|
@@ -1665,11 +2133,19 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1665
2133
|
| crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
|
|
1666
2134
|
| database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
|
|
1667
2135
|
| file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
|
|
2136
|
+
| 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. |
|
|
2137
|
+
| 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. |
|
|
2138
|
+
| 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. |
|
|
2139
|
+
| 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. |
|
|
2140
|
+
| 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. |
|
|
2141
|
+
| 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. |
|
|
2142
|
+
| 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
2143
|
| meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
|
|
1669
2144
|
| sandbox.sandboxes.commands.run | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
1670
2145
|
| sandbox.sandboxes.files.remove | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
1671
2146
|
| sandbox.sandboxes.files.read | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
1672
2147
|
| sandbox.sandboxes.files.write | Sandbox data operations use the E2B SDK verb while preserving URL resource nesting. |
|
|
2148
|
+
| 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
2149
|
| vault.oauth.retrieveClientMetadata | The literal .json filename otherwise introduces a dot inside a method identifier. |
|
|
1674
2150
|
|
|
1675
2151
|
## 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 [
|
|
7
|
+
The official TypeScript SDK for [Praxis](https://deepraxis.com), the cloud where AI agents are built, run and hosted.
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@deepraxis/sdk)
|
|
10
10
|
[](https://bundlephobia.com/package/@deepraxis/sdk)
|
|
@@ -33,7 +33,7 @@ console.log(completion.choices[0]?.message.content);
|
|
|
33
33
|
## Why this SDK
|
|
34
34
|
|
|
35
35
|
- **The whole platform, one client.** About 350 operations across models, agents, sandboxes,
|
|
36
|
-
|
|
36
|
+
browsers, web search, databases, knowledge bases, files, media, automation and hosted
|
|
37
37
|
applications, generated from the same contract as the API.
|
|
38
38
|
- **Types from the contract.** Every path, query, body and response is typed, including the
|
|
39
39
|
events of each stream, so your editor knows what comes back.
|
|
@@ -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"
|
|
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
|
|
4
|
-
*
|
|
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 {};
|