@deepraxis/sdk 0.1.1-dev.33a7e79 → 0.1.1-dev.3656610
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 +465 -1
- package/README.md +3 -3
- package/dist/core/client.d.ts +7 -1
- package/dist/core/client.js +3 -0
- package/dist/core/errors.d.ts +6 -0
- package/dist/core/errors.js +8 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +1095 -53
- package/dist/generated/sdk.gen.js +4090 -1159
- package/dist/generated/types.gen.d.ts +56000 -39189
- 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/helpers/sandbox-templates.d.ts +121 -0
- package/dist/helpers/sandbox-templates.js +60 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/operations.generated.d.ts +9439 -4495
- package/dist/operations.generated.js +11518 -5355
- package/dist/resources.generated.d.ts +428 -10
- package/dist/resources.generated.js +288 -1
- 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`. 620 HTTP operations, plus product aliases. Version segments and path parameters are omitted from resource names. Inputs use typed `{ path, query, body, headers }` options. Collections form nested resource objects; POST actions retain their verb. Naming rules are documented in `scripts/resources.ts`; semantic exceptions and aliases with reasons are in `scripts/naming-overrides.ts`.
|
|
4
4
|
|
|
5
5
|
`always` returns an AsyncIterable; `optional` streams with `{ stream: true }`; `yes` pagination returns a Page. Only `{ data, next_cursor }` + `cursor` query contracts are automatically paginated.
|
|
6
6
|
|
|
@@ -103,6 +103,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
103
103
|
| list | GET | `/agent/v1/computers/{computer_id}/files` | no | no |
|
|
104
104
|
| retrieveContent | GET | `/agent/v1/computers/{computer_id}/files/content` | no | no |
|
|
105
105
|
|
|
106
|
+
### agent.computers.files.convert
|
|
107
|
+
|
|
108
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
109
|
+
|---|---|---|---|---|
|
|
110
|
+
| create | POST | `/agent/v1/computers/{computer_id}/files/convert` | no | no |
|
|
111
|
+
|
|
106
112
|
### agent.computers.leases
|
|
107
113
|
|
|
108
114
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -576,6 +582,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
576
582
|
| stream | GET | `/browser/v1/sessions/{sessionId}/stream` | always | no |
|
|
577
583
|
| update | POST | `/browser/v1/sessions/{sessionId}` | no | no |
|
|
578
584
|
|
|
585
|
+
### browser.sessions.actions
|
|
586
|
+
|
|
587
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
588
|
+
|---|---|---|---|---|
|
|
589
|
+
| create | POST | `/browser/v1/sessions/{sessionId}/actions` | no | no |
|
|
590
|
+
|
|
579
591
|
### browser.sessions.events
|
|
580
592
|
|
|
581
593
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -605,6 +617,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
605
617
|
| delete | DELETE | `/canvas/v1/canvases/{canvas_id}` | no | no |
|
|
606
618
|
| execute | POST | `/canvas/v1/canvases/{canvas_id}:execute` | no | no |
|
|
607
619
|
| list | GET | `/canvas/v1/canvases` | no | yes |
|
|
620
|
+
| restore | POST | `/canvas/v1/canvases/{canvas_id}:restore` | no | no |
|
|
608
621
|
| retrieve | GET | `/canvas/v1/canvases/{canvas_id}` | no | no |
|
|
609
622
|
| update | PATCH | `/canvas/v1/canvases/{canvas_id}` | no | no |
|
|
610
623
|
|
|
@@ -620,6 +633,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
620
633
|
|---|---|---|---|---|
|
|
621
634
|
| list | GET | `/canvas/v1/canvases/{canvas_id}/nodes` | no | no |
|
|
622
635
|
|
|
636
|
+
### canvas.canvases.versions
|
|
637
|
+
|
|
638
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
639
|
+
|---|---|---|---|---|
|
|
640
|
+
| list | GET | `/canvas/v1/canvases/{canvas_id}/versions` | no | no |
|
|
641
|
+
|
|
623
642
|
### canvas.collections
|
|
624
643
|
|
|
625
644
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -630,6 +649,99 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
630
649
|
| retrieve | GET | `/canvas/v1/collections/{collection_id}` | no | no |
|
|
631
650
|
| update | PATCH | `/canvas/v1/collections/{collection_id}` | no | no |
|
|
632
651
|
|
|
652
|
+
## crm
|
|
653
|
+
|
|
654
|
+
### crm.associations
|
|
655
|
+
|
|
656
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
657
|
+
|---|---|---|---|---|
|
|
658
|
+
| create | PUT | `/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}` | no | no |
|
|
659
|
+
| createDefault | PUT | `/crm/v1/objects/{objectType}/{objectId}/associations/default/{toObjectType}/{toObjectId}` | no | no |
|
|
660
|
+
| list | GET | `/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}` | no | no |
|
|
661
|
+
| remove | DELETE | `/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}` | no | no |
|
|
662
|
+
|
|
663
|
+
### crm.changes
|
|
664
|
+
|
|
665
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
666
|
+
|---|---|---|---|---|
|
|
667
|
+
| revert | POST | `/crm/v1/changes/{changeSetId}:revert` | no | no |
|
|
668
|
+
|
|
669
|
+
### crm.layouts
|
|
670
|
+
|
|
671
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
672
|
+
|---|---|---|---|---|
|
|
673
|
+
| retrieve | GET | `/crm/v1/layouts/{objectType}` | no | no |
|
|
674
|
+
| update | PUT | `/crm/v1/layouts/{objectType}` | no | no |
|
|
675
|
+
|
|
676
|
+
### crm.leads
|
|
677
|
+
|
|
678
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
679
|
+
|---|---|---|---|---|
|
|
680
|
+
| qualify | POST | `/crm/v1/leads/{leadId}:qualify` | no | no |
|
|
681
|
+
|
|
682
|
+
### crm.objects
|
|
683
|
+
|
|
684
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
685
|
+
|---|---|---|---|---|
|
|
686
|
+
| archive | DELETE | `/crm/v1/objects/{objectType}/{objectId}` | no | no |
|
|
687
|
+
| create | POST | `/crm/v1/objects/{objectType}` | no | no |
|
|
688
|
+
| list | GET | `/crm/v1/objects/{objectType}` | no | no |
|
|
689
|
+
| retrieve | GET | `/crm/v1/objects/{objectType}/{objectId}` | no | no |
|
|
690
|
+
| search | POST | `/crm/v1/objects/{objectType}/search` | no | no |
|
|
691
|
+
| update | PATCH | `/crm/v1/objects/{objectType}/{objectId}` | no | no |
|
|
692
|
+
|
|
693
|
+
### crm.objects.batch
|
|
694
|
+
|
|
695
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
696
|
+
|---|---|---|---|---|
|
|
697
|
+
| archive | POST | `/crm/v1/objects/{objectType}/batch/archive` | no | no |
|
|
698
|
+
| create | POST | `/crm/v1/objects/{objectType}/batch/create` | no | no |
|
|
699
|
+
| read | POST | `/crm/v1/objects/{objectType}/batch/read` | no | no |
|
|
700
|
+
| update | POST | `/crm/v1/objects/{objectType}/batch/update` | no | no |
|
|
701
|
+
| upsert | POST | `/crm/v1/objects/{objectType}/batch/upsert` | no | no |
|
|
702
|
+
|
|
703
|
+
### crm.pipelines
|
|
704
|
+
|
|
705
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
706
|
+
|---|---|---|---|---|
|
|
707
|
+
| archive | DELETE | `/crm/v1/pipelines/{objectType}/{pipelineId}` | no | no |
|
|
708
|
+
| create | POST | `/crm/v1/pipelines/{objectType}` | no | no |
|
|
709
|
+
| list | GET | `/crm/v1/pipelines/{objectType}` | no | no |
|
|
710
|
+
| retrieve | GET | `/crm/v1/pipelines/{objectType}/{pipelineId}` | no | no |
|
|
711
|
+
| update | PATCH | `/crm/v1/pipelines/{objectType}/{pipelineId}` | no | no |
|
|
712
|
+
|
|
713
|
+
### crm.pipelines.stages
|
|
714
|
+
|
|
715
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
716
|
+
|---|---|---|---|---|
|
|
717
|
+
| archive | DELETE | `/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}` | no | no |
|
|
718
|
+
| create | POST | `/crm/v1/pipelines/{objectType}/{pipelineId}/stages` | no | no |
|
|
719
|
+
| update | PATCH | `/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}` | no | no |
|
|
720
|
+
|
|
721
|
+
### crm.properties
|
|
722
|
+
|
|
723
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
724
|
+
|---|---|---|---|---|
|
|
725
|
+
| archive | DELETE | `/crm/v1/properties/{objectType}/{propertyName}` | no | no |
|
|
726
|
+
| create | POST | `/crm/v1/properties/{objectType}` | no | no |
|
|
727
|
+
| list | GET | `/crm/v1/properties/{objectType}` | no | no |
|
|
728
|
+
| retrieve | GET | `/crm/v1/properties/{objectType}/{propertyName}` | no | no |
|
|
729
|
+
| update | PATCH | `/crm/v1/properties/{objectType}/{propertyName}` | no | no |
|
|
730
|
+
|
|
731
|
+
### crm.properties.groups
|
|
732
|
+
|
|
733
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
734
|
+
|---|---|---|---|---|
|
|
735
|
+
| create | POST | `/crm/v1/properties/{objectType}/groups` | no | no |
|
|
736
|
+
| list | GET | `/crm/v1/properties/{objectType}/groups` | no | no |
|
|
737
|
+
|
|
738
|
+
### crm.schemas
|
|
739
|
+
|
|
740
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
741
|
+
|---|---|---|---|---|
|
|
742
|
+
| create | POST | `/crm/v1/schemas` | no | no |
|
|
743
|
+
| list | GET | `/crm/v1/schemas` | no | no |
|
|
744
|
+
|
|
633
745
|
## cut
|
|
634
746
|
|
|
635
747
|
### cut.exports
|
|
@@ -686,6 +798,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
686
798
|
|---|---|---|---|---|
|
|
687
799
|
| import | POST | `/cut/v1/projects/{project_id}/media:import` | no | no |
|
|
688
800
|
|
|
801
|
+
### cut.projects.renders
|
|
802
|
+
|
|
803
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
804
|
+
|---|---|---|---|---|
|
|
805
|
+
| create | POST | `/cut/v1/projects/{project_id}/renders` | no | no |
|
|
806
|
+
|
|
689
807
|
### cut.projects.versions
|
|
690
808
|
|
|
691
809
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -693,6 +811,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
693
811
|
| create | POST | `/cut/v1/projects/{project_id}/versions` | no | no |
|
|
694
812
|
| list | GET | `/cut/v1/projects/{project_id}/versions` | no | no |
|
|
695
813
|
|
|
814
|
+
### cut.renders
|
|
815
|
+
|
|
816
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
817
|
+
|---|---|---|---|---|
|
|
818
|
+
| retrieve | GET | `/cut/v1/renders/{render_id}` | no | no |
|
|
819
|
+
|
|
696
820
|
### cut.versions
|
|
697
821
|
|
|
698
822
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -752,6 +876,82 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
752
876
|
| delete | DELETE | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
753
877
|
| update | PATCH | `/database/v1/databases/{database_id}/tables/{table}/fields/{field}` | no | no |
|
|
754
878
|
|
|
879
|
+
## devops
|
|
880
|
+
|
|
881
|
+
### devops.projects
|
|
882
|
+
|
|
883
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
884
|
+
|---|---|---|---|---|
|
|
885
|
+
| retrieveTestCatalog | GET | `/devops/v1/projects/{project}/test-catalog` | no | no |
|
|
886
|
+
|
|
887
|
+
### devops.projects.testCases
|
|
888
|
+
|
|
889
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
890
|
+
|---|---|---|---|---|
|
|
891
|
+
| list | GET | `/devops/v1/projects/{project}/test-cases` | no | no |
|
|
892
|
+
|
|
893
|
+
### devops.projects.testPlans
|
|
894
|
+
|
|
895
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
896
|
+
|---|---|---|---|---|
|
|
897
|
+
| create | POST | `/devops/v1/projects/{project}/test-plans` | no | no |
|
|
898
|
+
| list | GET | `/devops/v1/projects/{project}/test-plans` | no | no |
|
|
899
|
+
|
|
900
|
+
### devops.projects.testReports
|
|
901
|
+
|
|
902
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
903
|
+
|---|---|---|---|---|
|
|
904
|
+
| create | POST | `/devops/v1/projects/{project}/test-reports` | no | no |
|
|
905
|
+
|
|
906
|
+
### devops.projects.testRuns
|
|
907
|
+
|
|
908
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
909
|
+
|---|---|---|---|---|
|
|
910
|
+
| create | POST | `/devops/v1/projects/{project}/test-runs` | no | no |
|
|
911
|
+
| list | GET | `/devops/v1/projects/{project}/test-runs` | no | no |
|
|
912
|
+
|
|
913
|
+
### devops.projects.testSuites
|
|
914
|
+
|
|
915
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
916
|
+
|---|---|---|---|---|
|
|
917
|
+
| list | GET | `/devops/v1/projects/{project}/test-suites` | no | no |
|
|
918
|
+
|
|
919
|
+
### devops.testCases
|
|
920
|
+
|
|
921
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
922
|
+
|---|---|---|---|---|
|
|
923
|
+
| retrieve | GET | `/devops/v1/test-cases/{id}` | no | no |
|
|
924
|
+
|
|
925
|
+
### devops.testPlans
|
|
926
|
+
|
|
927
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
928
|
+
|---|---|---|---|---|
|
|
929
|
+
| delete | DELETE | `/devops/v1/test-plans/{id}` | no | no |
|
|
930
|
+
| pause | POST | `/devops/v1/test-plans/{id}:pause` | no | no |
|
|
931
|
+
| resume | POST | `/devops/v1/test-plans/{id}:resume` | no | no |
|
|
932
|
+
| retrieve | GET | `/devops/v1/test-plans/{id}` | no | no |
|
|
933
|
+
| update | PATCH | `/devops/v1/test-plans/{id}` | no | no |
|
|
934
|
+
|
|
935
|
+
### devops.testRuns
|
|
936
|
+
|
|
937
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
938
|
+
|---|---|---|---|---|
|
|
939
|
+
| cancel | POST | `/devops/v1/test-runs/{id}:cancel` | no | no |
|
|
940
|
+
| retrieve | GET | `/devops/v1/test-runs/{id}` | no | no |
|
|
941
|
+
|
|
942
|
+
### devops.testRuns.executions
|
|
943
|
+
|
|
944
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
945
|
+
|---|---|---|---|---|
|
|
946
|
+
| list | GET | `/devops/v1/test-runs/{run}/executions` | no | no |
|
|
947
|
+
| retrieve | GET | `/devops/v1/test-runs/{run}/executions/{case}` | no | no |
|
|
948
|
+
|
|
949
|
+
### devops.testSuites
|
|
950
|
+
|
|
951
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
952
|
+
|---|---|---|---|---|
|
|
953
|
+
| retrieve | GET | `/devops/v1/test-suites/{id}` | no | no |
|
|
954
|
+
|
|
755
955
|
## file
|
|
756
956
|
|
|
757
957
|
### file.files
|
|
@@ -770,6 +970,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
770
970
|
|---|---|---|---|---|
|
|
771
971
|
| revoke | POST | `/file/v1/files/{file_id}/content_links:revoke` | no | no |
|
|
772
972
|
|
|
973
|
+
### file.files.contentUrl
|
|
974
|
+
|
|
975
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
976
|
+
|---|---|---|---|---|
|
|
977
|
+
| create | POST | `/file/v1/files/{file_id}/content_url` | no | no |
|
|
978
|
+
|
|
773
979
|
### file.uploads
|
|
774
980
|
|
|
775
981
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -778,6 +984,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
778
984
|
| complete | POST | `/file/v1/uploads/{upload_id}/complete` | no | no |
|
|
779
985
|
| create | POST | `/file/v1/uploads` | no | no |
|
|
780
986
|
| createSigned | POST | `/file/v1/uploads/signed` | no | no |
|
|
987
|
+
| retrieve | GET | `/file/v1/uploads/{upload_id}` | no | no |
|
|
781
988
|
|
|
782
989
|
### file.uploads.parts
|
|
783
990
|
|
|
@@ -861,6 +1068,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
861
1068
|
|
|
862
1069
|
## media
|
|
863
1070
|
|
|
1071
|
+
### media.generation.capabilities
|
|
1072
|
+
|
|
1073
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1074
|
+
|---|---|---|---|---|
|
|
1075
|
+
| list | GET | `/media/v1/generation/capabilities` | no | no |
|
|
1076
|
+
|
|
864
1077
|
### media.libraries
|
|
865
1078
|
|
|
866
1079
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -883,6 +1096,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
883
1096
|
| retrieve | GET | `/media/v1/libraries/{library_id}/assets/{asset_id}` | no | no |
|
|
884
1097
|
| update | PATCH | `/media/v1/libraries/{library_id}/assets/{asset_id}` | no | no |
|
|
885
1098
|
|
|
1099
|
+
### media.libraries.assets.frames
|
|
1100
|
+
|
|
1101
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1102
|
+
|---|---|---|---|---|
|
|
1103
|
+
| create | POST | `/media/v1/libraries/{library_id}/assets/{asset_id}/frames` | no | no |
|
|
1104
|
+
|
|
886
1105
|
### media.libraries.assets.import
|
|
887
1106
|
|
|
888
1107
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -926,12 +1145,26 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
926
1145
|
|---|---|---|---|---|
|
|
927
1146
|
| list | GET | `/media/v1/libraries/{library_id}/folders` | no | no |
|
|
928
1147
|
|
|
1148
|
+
### media.libraries.generations
|
|
1149
|
+
|
|
1150
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1151
|
+
|---|---|---|---|---|
|
|
1152
|
+
| create | POST | `/media/v1/libraries/{library_id}/generations` | no | no |
|
|
1153
|
+
|
|
929
1154
|
### media.libraries.jobs
|
|
930
1155
|
|
|
931
1156
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
932
1157
|
|---|---|---|---|---|
|
|
1158
|
+
| cancel | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/cancel` | no | no |
|
|
1159
|
+
| list | GET | `/media/v1/libraries/{library_id}/jobs` | no | yes |
|
|
933
1160
|
| retrieve | GET | `/media/v1/libraries/{library_id}/jobs/{job_id}` | no | no |
|
|
934
1161
|
|
|
1162
|
+
### media.libraries.jobs.outputs.save
|
|
1163
|
+
|
|
1164
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1165
|
+
|---|---|---|---|---|
|
|
1166
|
+
| create | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save` | no | no |
|
|
1167
|
+
|
|
935
1168
|
### media.libraries.purge
|
|
936
1169
|
|
|
937
1170
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -962,6 +1195,13 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
962
1195
|
|---|---|---|---|---|
|
|
963
1196
|
| create | POST | `/media/v1/libraries/{library_id}/search/visual` | no | no |
|
|
964
1197
|
|
|
1198
|
+
### media.libraries.understandings
|
|
1199
|
+
|
|
1200
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1201
|
+
|---|---|---|---|---|
|
|
1202
|
+
| list | GET | `/media/v1/libraries/{library_id}/understandings` | no | yes |
|
|
1203
|
+
| retrieveFailureSummary | GET | `/media/v1/libraries/{library_id}/understandings/failure_summary` | no | no |
|
|
1204
|
+
|
|
965
1205
|
## meta
|
|
966
1206
|
|
|
967
1207
|
### meta.docs
|
|
@@ -1111,6 +1351,58 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1111
1351
|
| retrieve | GET | `/model/v1/videos/{video_id}` | no | no |
|
|
1112
1352
|
| retrieveContent | GET | `/model/v1/videos/{video_id}/content` | no | no |
|
|
1113
1353
|
|
|
1354
|
+
## ontology
|
|
1355
|
+
|
|
1356
|
+
### ontology.changesets
|
|
1357
|
+
|
|
1358
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1359
|
+
|---|---|---|---|---|
|
|
1360
|
+
| create | POST | `/ontology/v1/changesets` | no | no |
|
|
1361
|
+
|
|
1362
|
+
### ontology.nodes
|
|
1363
|
+
|
|
1364
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1365
|
+
|---|---|---|---|---|
|
|
1366
|
+
| create | POST | `/ontology/v1/nodes` | no | no |
|
|
1367
|
+
| list | GET | `/ontology/v1/nodes` | no | yes |
|
|
1368
|
+
| retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1369
|
+
| retrieveNeighborhood | GET | `/ontology/v1/nodes/{node_id}/neighborhood` | no | no |
|
|
1370
|
+
| update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
|
|
1371
|
+
|
|
1372
|
+
### ontology.nodes.merge
|
|
1373
|
+
|
|
1374
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1375
|
+
|---|---|---|---|---|
|
|
1376
|
+
| create | POST | `/ontology/v1/nodes/{node_id}/merge` | no | no |
|
|
1377
|
+
|
|
1378
|
+
### ontology.relations
|
|
1379
|
+
|
|
1380
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1381
|
+
|---|---|---|---|---|
|
|
1382
|
+
| create | POST | `/ontology/v1/relations` | no | no |
|
|
1383
|
+
| list | GET | `/ontology/v1/relations` | no | yes |
|
|
1384
|
+
| retrieve | GET | `/ontology/v1/relations/{relation_id}` | no | no |
|
|
1385
|
+
|
|
1386
|
+
### ontology.relations.invalidate
|
|
1387
|
+
|
|
1388
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1389
|
+
|---|---|---|---|---|
|
|
1390
|
+
| create | POST | `/ontology/v1/relations/{relation_id}/invalidate` | no | no |
|
|
1391
|
+
|
|
1392
|
+
### ontology.search
|
|
1393
|
+
|
|
1394
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1395
|
+
|---|---|---|---|---|
|
|
1396
|
+
| create | POST | `/ontology/v1/search` | no | no |
|
|
1397
|
+
|
|
1398
|
+
### ontology.types
|
|
1399
|
+
|
|
1400
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1401
|
+
|---|---|---|---|---|
|
|
1402
|
+
| create | POST | `/ontology/v1/types` | no | no |
|
|
1403
|
+
| list | GET | `/ontology/v1/types` | no | no |
|
|
1404
|
+
| retrieve | GET | `/ontology/v1/types/{name}` | no | no |
|
|
1405
|
+
|
|
1114
1406
|
## organization
|
|
1115
1407
|
|
|
1116
1408
|
### organization.charges
|
|
@@ -1153,6 +1445,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1153
1445
|
| create | POST | `/organization/v1/feedback/{id}/messages` | no | no |
|
|
1154
1446
|
| list | GET | `/organization/v1/feedback/{id}/messages` | no | no |
|
|
1155
1447
|
|
|
1448
|
+
### organization.members
|
|
1449
|
+
|
|
1450
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1451
|
+
|---|---|---|---|---|
|
|
1452
|
+
| list | GET | `/organization/v1/members` | no | no |
|
|
1453
|
+
|
|
1156
1454
|
### organization.usage
|
|
1157
1455
|
|
|
1158
1456
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
@@ -1235,7 +1533,36 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1235
1533
|
|
|
1236
1534
|
| Method | HTTP | Path | Streaming | Pagination |
|
|
1237
1535
|
|---|---|---|---|---|
|
|
1536
|
+
| create | POST | `/sandbox/v1/templates` | no | no |
|
|
1537
|
+
| delete | DELETE | `/sandbox/v1/templates/{templateID}` | no | no |
|
|
1238
1538
|
| list | GET | `/sandbox/v1/templates` | no | no |
|
|
1539
|
+
| retrieve | GET | `/sandbox/v1/templates/{templateID}` | no | no |
|
|
1540
|
+
|
|
1541
|
+
### sandbox.templates.aliases
|
|
1542
|
+
|
|
1543
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1544
|
+
|---|---|---|---|---|
|
|
1545
|
+
| retrieve | GET | `/sandbox/v1/templates/aliases/{alias}` | no | no |
|
|
1546
|
+
|
|
1547
|
+
### sandbox.templates.builds
|
|
1548
|
+
|
|
1549
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1550
|
+
|---|---|---|---|---|
|
|
1551
|
+
| update | POST | `/sandbox/v1/templates/{templateID}/builds/{buildID}` | no | no |
|
|
1552
|
+
|
|
1553
|
+
### sandbox.templates.builds.status
|
|
1554
|
+
|
|
1555
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1556
|
+
|---|---|---|---|---|
|
|
1557
|
+
| list | GET | `/sandbox/v1/templates/{templateID}/builds/{buildID}/status` | no | no |
|
|
1558
|
+
|
|
1559
|
+
### sandbox.templates.tags
|
|
1560
|
+
|
|
1561
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1562
|
+
|---|---|---|---|---|
|
|
1563
|
+
| create | POST | `/sandbox/v1/templates/tags` | no | no |
|
|
1564
|
+
| delete | DELETE | `/sandbox/v1/templates/tags` | no | no |
|
|
1565
|
+
| list | GET | `/sandbox/v1/templates/{templateID}/tags` | no | no |
|
|
1239
1566
|
|
|
1240
1567
|
### sandbox.volumes
|
|
1241
1568
|
|
|
@@ -1272,6 +1599,124 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1272
1599
|
|---|---|---|---|---|
|
|
1273
1600
|
| create | POST | `/search/v1/search` | no | no |
|
|
1274
1601
|
|
|
1602
|
+
## studio
|
|
1603
|
+
|
|
1604
|
+
### studio.codexes
|
|
1605
|
+
|
|
1606
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1607
|
+
|---|---|---|---|---|
|
|
1608
|
+
| create | POST | `/studio/v1/codexes` | no | no |
|
|
1609
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}` | no | no |
|
|
1610
|
+
| list | GET | `/studio/v1/codexes` | no | no |
|
|
1611
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}` | no | no |
|
|
1612
|
+
| update | PATCH | `/studio/v1/codexes/{codex}` | no | no |
|
|
1613
|
+
|
|
1614
|
+
### studio.codexes.entries
|
|
1615
|
+
|
|
1616
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1617
|
+
|---|---|---|---|---|
|
|
1618
|
+
| create | POST | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1619
|
+
| delete | DELETE | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1620
|
+
| list | GET | `/studio/v1/codexes/{codex}/entries` | no | no |
|
|
1621
|
+
| retrieve | GET | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1622
|
+
| update | PATCH | `/studio/v1/codexes/{codex}/entries/{entry}` | no | no |
|
|
1623
|
+
|
|
1624
|
+
### studio.genres
|
|
1625
|
+
|
|
1626
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1627
|
+
|---|---|---|---|---|
|
|
1628
|
+
| list | GET | `/studio/v1/genres` | no | no |
|
|
1629
|
+
| retrieve | GET | `/studio/v1/genres/{genre}` | no | no |
|
|
1630
|
+
|
|
1631
|
+
### studio.platforms
|
|
1632
|
+
|
|
1633
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1634
|
+
|---|---|---|---|---|
|
|
1635
|
+
| list | GET | `/studio/v1/platforms` | no | no |
|
|
1636
|
+
| retrieve | GET | `/studio/v1/platforms/{platform}` | no | no |
|
|
1637
|
+
|
|
1638
|
+
### studio.styles
|
|
1639
|
+
|
|
1640
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1641
|
+
|---|---|---|---|---|
|
|
1642
|
+
| create | POST | `/studio/v1/styles` | no | no |
|
|
1643
|
+
| delete | DELETE | `/studio/v1/styles/{style}` | no | no |
|
|
1644
|
+
| list | GET | `/studio/v1/styles` | no | no |
|
|
1645
|
+
| retrieve | GET | `/studio/v1/styles/{style}` | no | no |
|
|
1646
|
+
| update | PATCH | `/studio/v1/styles/{style}` | no | no |
|
|
1647
|
+
|
|
1648
|
+
### studio.templates
|
|
1649
|
+
|
|
1650
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1651
|
+
|---|---|---|---|---|
|
|
1652
|
+
| create | POST | `/studio/v1/templates` | no | no |
|
|
1653
|
+
| delete | DELETE | `/studio/v1/templates/{template}` | no | no |
|
|
1654
|
+
| list | GET | `/studio/v1/templates` | no | no |
|
|
1655
|
+
| retrieve | GET | `/studio/v1/templates/{template}` | no | no |
|
|
1656
|
+
|
|
1657
|
+
### studio.themes
|
|
1658
|
+
|
|
1659
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1660
|
+
|---|---|---|---|---|
|
|
1661
|
+
| create | POST | `/studio/v1/themes` | no | no |
|
|
1662
|
+
| delete | DELETE | `/studio/v1/themes/{theme}` | no | no |
|
|
1663
|
+
| list | GET | `/studio/v1/themes` | no | no |
|
|
1664
|
+
| retrieve | GET | `/studio/v1/themes/{theme}` | no | no |
|
|
1665
|
+
| update | PATCH | `/studio/v1/themes/{theme}` | no | no |
|
|
1666
|
+
|
|
1667
|
+
### studio.works
|
|
1668
|
+
|
|
1669
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1670
|
+
|---|---|---|---|---|
|
|
1671
|
+
| create | POST | `/studio/v1/works` | no | no |
|
|
1672
|
+
| list | GET | `/studio/v1/works` | no | no |
|
|
1673
|
+
| resolve | GET | `/studio/v1/works:resolve` | no | no |
|
|
1674
|
+
| retrieve | GET | `/studio/v1/works/{work}` | no | no |
|
|
1675
|
+
| update | PATCH | `/studio/v1/works/{work}` | no | no |
|
|
1676
|
+
| updateBrief | PATCH | `/studio/v1/works/{work}/brief` | no | no |
|
|
1677
|
+
|
|
1678
|
+
### studio.works.drafts
|
|
1679
|
+
|
|
1680
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1681
|
+
|---|---|---|---|---|
|
|
1682
|
+
| create | POST | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1683
|
+
| list | GET | `/studio/v1/works/{work}/drafts` | no | no |
|
|
1684
|
+
| rebase | POST | `/studio/v1/works/{work}/drafts/{draft}:rebase` | no | no |
|
|
1685
|
+
| retrieve | GET | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1686
|
+
| retrieveExport | GET | `/studio/v1/works/{work}/drafts/{draft}/export` | no | no |
|
|
1687
|
+
| retrieveOutline | GET | `/studio/v1/works/{work}/drafts/{draft}/outline` | no | no |
|
|
1688
|
+
| retrieveReview | GET | `/studio/v1/works/{work}/drafts/{draft}/review` | no | no |
|
|
1689
|
+
| update | PATCH | `/studio/v1/works/{work}/drafts/{draft}` | no | no |
|
|
1690
|
+
|
|
1691
|
+
### studio.works.drafts.status
|
|
1692
|
+
|
|
1693
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1694
|
+
|---|---|---|---|---|
|
|
1695
|
+
| list | GET | `/studio/v1/works/{work}/drafts/{draft}/status` | no | no |
|
|
1696
|
+
|
|
1697
|
+
### studio.works.drafts.units
|
|
1698
|
+
|
|
1699
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1700
|
+
|---|---|---|---|---|
|
|
1701
|
+
| batchCreate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchCreate` | no | no |
|
|
1702
|
+
| batchUpdate | POST | `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | no | no |
|
|
1703
|
+
| create | POST | `/studio/v1/works/{work}/drafts/{draft}/units` | no | no |
|
|
1704
|
+
|
|
1705
|
+
### studio.works.units
|
|
1706
|
+
|
|
1707
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1708
|
+
|---|---|---|---|---|
|
|
1709
|
+
| move | POST | `/studio/v1/works/{work}/units/{unit}:move` | no | no |
|
|
1710
|
+
| retrieve | GET | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1711
|
+
| retrieveContext | GET | `/studio/v1/works/{work}/units/{unit}/context` | no | no |
|
|
1712
|
+
| update | PATCH | `/studio/v1/works/{work}/units/{unit}` | no | no |
|
|
1713
|
+
|
|
1714
|
+
### studio.works.units.blocks
|
|
1715
|
+
|
|
1716
|
+
| Method | HTTP | Path | Streaming | Pagination |
|
|
1717
|
+
|---|---|---|---|---|
|
|
1718
|
+
| patch | POST | `/studio/v1/works/{work}/units/{unit}/blocks:patch` | no | no |
|
|
1719
|
+
|
|
1275
1720
|
## ticket
|
|
1276
1721
|
|
|
1277
1722
|
### ticket.activity
|
|
@@ -1490,6 +1935,25 @@ Multipart request bodies expand plain objects into bracketed fields (for example
|
|
|
1490
1935
|
| automation.workflows.distTags.set | Workflow dist-tags use the same npm-style assignment vocabulary as script dist-tags. |
|
|
1491
1936
|
| automation.workflows.vaults.set | Assign a whole vault to a definition alias, independently of published versions. |
|
|
1492
1937
|
| automation.workflows.versions.create / publish | Creating a workflow version publishes it; publish is a product alias of versions.create. |
|
|
1938
|
+
| crm.objects.list | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
1939
|
+
| crm.objects.create | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
1940
|
+
| crm.objects.batch.create | The terminal batch segment is the requested operation, not another collection; retain its read/create/update/upsert/archive verb. |
|
|
1941
|
+
| crm.objects.batch.read | The terminal batch segment is the requested operation, not another collection; retain its read/create/update/upsert/archive verb. |
|
|
1942
|
+
| crm.objects.batch.update | The terminal batch segment is the requested operation, not another collection; retain its read/create/update/upsert/archive verb. |
|
|
1943
|
+
| crm.objects.batch.upsert | The terminal batch segment is the requested operation, not another collection; retain its read/create/update/upsert/archive verb. |
|
|
1944
|
+
| crm.objects.search | The terminal search segment queries records without creating a nested search resource. |
|
|
1945
|
+
| crm.objects.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
|
|
1946
|
+
| crm.associations.createDefault | CRM relationships live below objects in the URL but form the associations SDK resource; distinguish labelled and default creation from record updates. |
|
|
1947
|
+
| crm.associations.list | CRM relationships live below objects in the URL but form the associations SDK resource; distinguish labelled and default creation from record updates. |
|
|
1948
|
+
| crm.associations.remove | CRM relationships live below objects in the URL but form the associations SDK resource; distinguish labelled and default creation from record updates. |
|
|
1949
|
+
| crm.associations.create | CRM relationships live below objects in the URL but form the associations SDK resource; distinguish labelled and default creation from record updates. |
|
|
1950
|
+
| crm.pipelines.list | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
1951
|
+
| crm.pipelines.create | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
1952
|
+
| crm.pipelines.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
|
|
1953
|
+
| crm.pipelines.stages.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
|
|
1954
|
+
| crm.properties.list | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
1955
|
+
| crm.properties.create | CRM objectType selects a collection, not an entity; preserve list/create separately from retrieve/update on an identified resource. |
|
|
1956
|
+
| crm.properties.archive | CRM DELETE archives the resource rather than permanently deleting it; expose the archive product verb. |
|
|
1493
1957
|
| database.databases.rest.create | The final parameter identifies a table collection; POST inserts rows rather than updating the table. |
|
|
1494
1958
|
| file.uploads.createSigned | Signed upload creation returns a one-time local PUT URL; ADR-039 names this operation uploads.createSigned. |
|
|
1495
1959
|
| meta.docs.search | Documentation keyword search is an operation on docs, not a nested collection. |
|
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.
|
|
@@ -276,5 +276,5 @@ sandboxes, search, data, automation and the rest of the platform.
|
|
|
276
276
|
|
|
277
277
|
[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0). Copyright 2026 南京深度实践人工智能科技有限公司 (Deepractice).
|
|
278
278
|
|
|
279
|
-
"Praxis"
|
|
279
|
+
"Praxis" and "Deepraxis" are trademarks of Deepractice; the license does not grant
|
|
280
280
|
rights to use them.
|
package/dist/core/client.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SandboxTemplateBuildInput, type SandboxTemplateBuildResult } from "../helpers/sandbox-templates.js";
|
|
1
2
|
import { type UploadFileOptions, type UploadedFile } from '../helpers/file-upload.js';
|
|
2
3
|
import { resourceFactories } from '../resources.generated.js';
|
|
3
4
|
import { type PraxisOptions } from './transport.js';
|
|
@@ -7,7 +8,12 @@ import { type CountInput, type CountResult } from '../helpers/database-count.js'
|
|
|
7
8
|
type Resources = {
|
|
8
9
|
readonly [K in keyof typeof resourceFactories]: ReturnType<(typeof resourceFactories)[K]>;
|
|
9
10
|
};
|
|
10
|
-
export interface Praxis extends Omit<Resources, 'application' | 'browser' | 'database' | 'file'> {
|
|
11
|
+
export interface Praxis extends Omit<Resources, 'application' | 'browser' | 'database' | 'file' | 'sandbox'> {
|
|
12
|
+
readonly sandbox: Omit<Resources['sandbox'], 'templates'> & {
|
|
13
|
+
templates: Resources['sandbox']['templates'] & {
|
|
14
|
+
build(input: SandboxTemplateBuildInput): Promise<SandboxTemplateBuildResult>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
11
17
|
readonly browser: Resources['browser'] & {
|
|
12
18
|
connect(options?: BrowserConnectOptions): Promise<PraxisBrowser>;
|
|
13
19
|
};
|
package/dist/core/client.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { buildSandboxTemplate } from "../helpers/sandbox-templates.js";
|
|
1
2
|
import { uploadFile } from "../helpers/file-upload.js";
|
|
2
3
|
import { resourceFactories } from "../resources.generated.js";
|
|
3
4
|
import { Transport } from "./transport.js";
|
|
@@ -10,6 +11,8 @@ export class Praxis {
|
|
|
10
11
|
for (const [name, create] of Object.entries(resourceFactories)) {
|
|
11
12
|
const resource = create(transport);
|
|
12
13
|
// Assemble before sealing the resource property; never replace a readonly SDK resource.
|
|
14
|
+
if (name === 'sandbox')
|
|
15
|
+
Object.assign(resource.templates, { build: (input) => buildSandboxTemplate(this, input) });
|
|
13
16
|
if (name === 'file')
|
|
14
17
|
Object.assign(resource, { uploadFile: (file, options) => uploadFile(this, file, options) });
|
|
15
18
|
if (name === 'database')
|