@deepraxis/sdk 0.1.1-dev.da4893e → 0.1.1-dev.daf3004
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 +91 -1
- package/README.md +2 -2
- 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 +303 -117
- package/dist/generated/sdk.gen.js +546 -116
- package/dist/generated/types.gen.d.ts +3044 -270
- package/dist/operations.generated.d.ts +760 -28
- package/dist/operations.generated.js +1318 -419
- package/dist/resources.generated.d.ts +76 -8
- package/dist/resources.generated.js +58 -0
- package/package.json +2 -2
|
@@ -45,7 +45,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
45
45
|
readonly verified?: boolean;
|
|
46
46
|
enabled?: boolean;
|
|
47
47
|
} | {
|
|
48
|
-
type: "search" | "browser";
|
|
48
|
+
type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut";
|
|
49
49
|
readonly verified?: boolean;
|
|
50
50
|
enabled?: boolean;
|
|
51
51
|
}>;
|
|
@@ -212,7 +212,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
212
212
|
readonly verified?: boolean;
|
|
213
213
|
enabled?: boolean;
|
|
214
214
|
} | {
|
|
215
|
-
type: "search" | "browser";
|
|
215
|
+
type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut";
|
|
216
216
|
readonly verified?: boolean;
|
|
217
217
|
enabled?: boolean;
|
|
218
218
|
}>;
|
|
@@ -508,7 +508,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
508
508
|
readonly verified?: boolean;
|
|
509
509
|
enabled?: boolean;
|
|
510
510
|
} | {
|
|
511
|
-
type: "search" | "browser";
|
|
511
|
+
type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut";
|
|
512
512
|
readonly verified?: boolean;
|
|
513
513
|
enabled?: boolean;
|
|
514
514
|
}>;
|
|
@@ -678,7 +678,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
678
678
|
readonly verified?: boolean;
|
|
679
679
|
enabled?: boolean;
|
|
680
680
|
} | {
|
|
681
|
-
type: "search" | "browser";
|
|
681
|
+
type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut";
|
|
682
682
|
readonly verified?: boolean;
|
|
683
683
|
enabled?: boolean;
|
|
684
684
|
}>;
|
|
@@ -1107,7 +1107,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
1107
1107
|
readonly verified?: boolean;
|
|
1108
1108
|
enabled?: boolean;
|
|
1109
1109
|
} | {
|
|
1110
|
-
type: "search" | "browser";
|
|
1110
|
+
type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut";
|
|
1111
1111
|
readonly verified?: boolean;
|
|
1112
1112
|
enabled?: boolean;
|
|
1113
1113
|
}>;
|
|
@@ -1276,7 +1276,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
1276
1276
|
readonly verified?: boolean;
|
|
1277
1277
|
enabled?: boolean;
|
|
1278
1278
|
} | {
|
|
1279
|
-
type: "search" | "browser";
|
|
1279
|
+
type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut";
|
|
1280
1280
|
readonly verified?: boolean;
|
|
1281
1281
|
enabled?: boolean;
|
|
1282
1282
|
}>;
|
|
@@ -1445,7 +1445,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
1445
1445
|
readonly verified?: boolean;
|
|
1446
1446
|
enabled?: boolean;
|
|
1447
1447
|
} | {
|
|
1448
|
-
type: "search" | "browser";
|
|
1448
|
+
type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut";
|
|
1449
1449
|
readonly verified?: boolean;
|
|
1450
1450
|
enabled?: boolean;
|
|
1451
1451
|
}>;
|
|
@@ -1614,7 +1614,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
1614
1614
|
readonly verified?: boolean;
|
|
1615
1615
|
enabled?: boolean;
|
|
1616
1616
|
} | {
|
|
1617
|
-
type: "search" | "browser";
|
|
1617
|
+
type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut";
|
|
1618
1618
|
readonly verified?: boolean;
|
|
1619
1619
|
enabled?: boolean;
|
|
1620
1620
|
}>;
|
|
@@ -1793,6 +1793,20 @@ export declare function createAgent(transport: Transport): {
|
|
|
1793
1793
|
type: "computer_deleted";
|
|
1794
1794
|
}>;
|
|
1795
1795
|
files: {
|
|
1796
|
+
convert: {
|
|
1797
|
+
create: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesConvertData>) => Promise<{
|
|
1798
|
+
type: "computer";
|
|
1799
|
+
id: string;
|
|
1800
|
+
name: string;
|
|
1801
|
+
sandbox_id: string | null;
|
|
1802
|
+
machine_state: "not_started" | "provisioned";
|
|
1803
|
+
environment_id: string | null;
|
|
1804
|
+
status: "active" | "archived";
|
|
1805
|
+
created_at: string;
|
|
1806
|
+
updated_at: string;
|
|
1807
|
+
archived_at: string | null;
|
|
1808
|
+
}>;
|
|
1809
|
+
};
|
|
1796
1810
|
list: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesListData>) => Promise<{
|
|
1797
1811
|
data: Array<{
|
|
1798
1812
|
path: string;
|
|
@@ -4097,6 +4111,9 @@ export declare function createCut(transport: Transport): {
|
|
|
4097
4111
|
media: {
|
|
4098
4112
|
import: (options: import("./core/transport.js").CallOptions<Types.CutImportMediaData>) => Promise<Types.CutImportedMedia>;
|
|
4099
4113
|
};
|
|
4114
|
+
renders: {
|
|
4115
|
+
create: (options: import("./core/transport.js").CallOptions<Types.CutCreateRenderData>) => Promise<Types.CutDraftRender>;
|
|
4116
|
+
};
|
|
4100
4117
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.CutRetrieveProjectData>) => Promise<Types.CutProjectDetail>;
|
|
4101
4118
|
retrieveState: (options: import("./core/transport.js").CallOptions<Types.CutRetrieveStateData>) => Promise<Types.CutState>;
|
|
4102
4119
|
retrieveTimeline: (options: import("./core/transport.js").CallOptions<Types.CutRetrieveTimelineData>) => Promise<Types.CutTimelineResult>;
|
|
@@ -4107,6 +4124,9 @@ export declare function createCut(transport: Transport): {
|
|
|
4107
4124
|
list: (options: import("./core/transport.js").CallOptions<Types.CutListVersionsData>) => Promise<Types.CutVersionPage>;
|
|
4108
4125
|
};
|
|
4109
4126
|
};
|
|
4127
|
+
renders: {
|
|
4128
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.CutRetrieveRenderData>) => Promise<Types.CutDraftRender>;
|
|
4129
|
+
};
|
|
4110
4130
|
versions: {
|
|
4111
4131
|
restore: (options: import("./core/transport.js").CallOptions<Types.CutRestoreVersionData>) => Promise<Types.CutTransaction>;
|
|
4112
4132
|
};
|
|
@@ -4183,6 +4203,7 @@ export declare function createFile(transport: Transport): {
|
|
|
4183
4203
|
parts: {
|
|
4184
4204
|
create: (options: import("./core/transport.js").CallOptions<Types.FileAddUploadPartData>) => Promise<Types.OwnFilePraxisUploadPart>;
|
|
4185
4205
|
};
|
|
4206
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.FileRetrieveUploadData>) => Promise<Types.OwnFilePraxisUpload>;
|
|
4186
4207
|
};
|
|
4187
4208
|
};
|
|
4188
4209
|
export declare function createKnowledge(transport: Transport): {
|
|
@@ -4230,6 +4251,11 @@ export declare function createKnowledge(transport: Transport): {
|
|
|
4230
4251
|
};
|
|
4231
4252
|
};
|
|
4232
4253
|
export declare function createMedia(transport: Transport): {
|
|
4254
|
+
generation: {
|
|
4255
|
+
capabilities: {
|
|
4256
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.MediaGetGenerationCapabilitiesData> | undefined) => Promise<Types.MediaGenerationCapabilities>;
|
|
4257
|
+
};
|
|
4258
|
+
};
|
|
4233
4259
|
libraries: {
|
|
4234
4260
|
assets: {
|
|
4235
4261
|
batch: (options: import("./core/transport.js").CallOptions<Types.MediaBatchAssetsData>) => Promise<Types.MediaJob>;
|
|
@@ -4266,7 +4292,17 @@ export declare function createMedia(transport: Transport): {
|
|
|
4266
4292
|
folders: {
|
|
4267
4293
|
list: (options: import("./core/transport.js").CallOptions<Types.MediaListFoldersData>) => Promise<Types.MediaFolders>;
|
|
4268
4294
|
};
|
|
4295
|
+
generations: {
|
|
4296
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateGenerationData>) => Promise<Types.MediaJob>;
|
|
4297
|
+
};
|
|
4269
4298
|
jobs: {
|
|
4299
|
+
cancel: (options: import("./core/transport.js").CallOptions<Types.MediaCancelJobData>) => Promise<Types.MediaJob>;
|
|
4300
|
+
list: (options: import("./core/transport.js").CallOptions<Types.MediaListJobsData>) => Promise<import("./automation.js").Page<Types.MediaJob>>;
|
|
4301
|
+
outputs: {
|
|
4302
|
+
save: {
|
|
4303
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaSaveGenerationOutputData>) => Promise<Types.MediaAsset>;
|
|
4304
|
+
};
|
|
4305
|
+
};
|
|
4270
4306
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.MediaGetJobData>) => Promise<Types.MediaJob>;
|
|
4271
4307
|
};
|
|
4272
4308
|
list: (options?: import("./core/transport.js").CallOptions<Types.MediaListLibrariesData> | undefined) => Promise<import("./automation.js").Page<Types.MediaLibrary>>;
|
|
@@ -4842,6 +4878,36 @@ export declare function createModel(transport: Transport): {
|
|
|
4842
4878
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.DownloadVideoContentData>) => Promise<Blob | File>;
|
|
4843
4879
|
};
|
|
4844
4880
|
};
|
|
4881
|
+
export declare function createOntology(transport: Transport): {
|
|
4882
|
+
changesets: {
|
|
4883
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyApplyChangesetData>) => Promise<Types.OntologyChangesetResult>;
|
|
4884
|
+
};
|
|
4885
|
+
nodes: {
|
|
4886
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyCreateNodeData>) => Promise<Types.OntologyNode>;
|
|
4887
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.OntologyListNodesData> | undefined) => Promise<import("./automation.js").Page<Types.OntologyNode | Types.OntologyRestrictedNode>>;
|
|
4888
|
+
merge: {
|
|
4889
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyMergeNodeData>) => Promise<Types.OntologyNode>;
|
|
4890
|
+
};
|
|
4891
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.OntologyRetrieveNodeData>) => Promise<Types.OntologyNodeWithRelations>;
|
|
4892
|
+
update: (options: import("./core/transport.js").CallOptions<Types.OntologyUpdateNodeData>) => Promise<Types.OntologyNode>;
|
|
4893
|
+
};
|
|
4894
|
+
relations: {
|
|
4895
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyCreateRelationData>) => Promise<Types.OntologyRelation>;
|
|
4896
|
+
invalidate: {
|
|
4897
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyInvalidateRelationData>) => Promise<Types.OntologyRelation>;
|
|
4898
|
+
};
|
|
4899
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.OntologyListRelationsData> | undefined) => Promise<import("./automation.js").Page<Types.OntologyRelation>>;
|
|
4900
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.OntologyRetrieveRelationData>) => Promise<Types.OntologyRelation>;
|
|
4901
|
+
};
|
|
4902
|
+
search: {
|
|
4903
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologySearchData>) => Promise<Types.OntologySearchResult>;
|
|
4904
|
+
};
|
|
4905
|
+
types: {
|
|
4906
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyRegisterTypeData>) => Promise<unknown>;
|
|
4907
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.OntologyListTypesData> | undefined) => Promise<Types.OntologyTypeRegistrationPage>;
|
|
4908
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.OntologyRetrieveTypeData>) => Promise<Types.OntologyTypeLookup>;
|
|
4909
|
+
};
|
|
4910
|
+
};
|
|
4845
4911
|
export declare function createOrganization(transport: Transport): {
|
|
4846
4912
|
charges: {
|
|
4847
4913
|
list: (options: import("./core/transport.js").CallOptions<Types.ExportOrganizationChargesData>) => Promise<{
|
|
@@ -5243,6 +5309,7 @@ export declare function createSandbox(transport: Transport): {
|
|
|
5243
5309
|
buildCount: number;
|
|
5244
5310
|
envdVersion: Types.SandboxEnvdVersion;
|
|
5245
5311
|
buildStatus: Types.SandboxTemplateBuildStatus;
|
|
5312
|
+
lifecycles?: Array<"ephemeral" | "persistent">;
|
|
5246
5313
|
official: boolean;
|
|
5247
5314
|
sourceKind?: "dockerfile" | "image" | "snapshot";
|
|
5248
5315
|
}[]>;
|
|
@@ -5522,6 +5589,7 @@ export declare const resourceFactories: {
|
|
|
5522
5589
|
media: typeof createMedia;
|
|
5523
5590
|
meta: typeof createMeta;
|
|
5524
5591
|
model: typeof createModel;
|
|
5592
|
+
ontology: typeof createOntology;
|
|
5525
5593
|
organization: typeof createOrganization;
|
|
5526
5594
|
sandbox: typeof createSandbox;
|
|
5527
5595
|
search: typeof createSearch;
|
|
@@ -55,6 +55,9 @@ export function createAgent(transport) {
|
|
|
55
55
|
create: bind(transport, sdk.computersCreate),
|
|
56
56
|
delete: bind(transport, sdk.computersDelete),
|
|
57
57
|
files: {
|
|
58
|
+
convert: {
|
|
59
|
+
create: bind(transport, sdk.computersFilesConvert),
|
|
60
|
+
},
|
|
58
61
|
list: bind(transport, sdk.computersFilesList),
|
|
59
62
|
retrieveContent: bind(transport, sdk.computersFilesContent),
|
|
60
63
|
},
|
|
@@ -502,6 +505,9 @@ export function createCut(transport) {
|
|
|
502
505
|
media: {
|
|
503
506
|
import: bind(transport, sdk.cutImportMedia),
|
|
504
507
|
},
|
|
508
|
+
renders: {
|
|
509
|
+
create: bind(transport, sdk.cutCreateRender),
|
|
510
|
+
},
|
|
505
511
|
retrieve: bind(transport, sdk.cutRetrieveProject),
|
|
506
512
|
retrieveState: bind(transport, sdk.cutRetrieveState),
|
|
507
513
|
retrieveTimeline: bind(transport, sdk.cutRetrieveTimeline),
|
|
@@ -512,6 +518,9 @@ export function createCut(transport) {
|
|
|
512
518
|
list: bind(transport, sdk.cutListVersions),
|
|
513
519
|
},
|
|
514
520
|
},
|
|
521
|
+
renders: {
|
|
522
|
+
retrieve: bind(transport, sdk.cutRetrieveRender),
|
|
523
|
+
},
|
|
515
524
|
versions: {
|
|
516
525
|
restore: bind(transport, sdk.cutRestoreVersion),
|
|
517
526
|
},
|
|
@@ -577,6 +586,7 @@ export function createFile(transport) {
|
|
|
577
586
|
parts: {
|
|
578
587
|
create: bind(transport, options => sdk.fileAddUploadPart({ ...options, bodySerializer: multipartBodySerializer, headers: { 'Content-Type': null, ...options.headers } })),
|
|
579
588
|
},
|
|
589
|
+
retrieve: bind(transport, sdk.fileRetrieveUpload),
|
|
580
590
|
},
|
|
581
591
|
};
|
|
582
592
|
}
|
|
@@ -628,6 +638,11 @@ export function createKnowledge(transport) {
|
|
|
628
638
|
}
|
|
629
639
|
export function createMedia(transport) {
|
|
630
640
|
return {
|
|
641
|
+
generation: {
|
|
642
|
+
capabilities: {
|
|
643
|
+
list: bind(transport, sdk.mediaGetGenerationCapabilities),
|
|
644
|
+
},
|
|
645
|
+
},
|
|
631
646
|
libraries: {
|
|
632
647
|
assets: {
|
|
633
648
|
batch: bind(transport, sdk.mediaBatchAssets),
|
|
@@ -664,7 +679,17 @@ export function createMedia(transport) {
|
|
|
664
679
|
folders: {
|
|
665
680
|
list: bind(transport, sdk.mediaListFolders),
|
|
666
681
|
},
|
|
682
|
+
generations: {
|
|
683
|
+
create: bind(transport, sdk.mediaCreateGeneration),
|
|
684
|
+
},
|
|
667
685
|
jobs: {
|
|
686
|
+
cancel: bind(transport, sdk.mediaCancelJob),
|
|
687
|
+
list: bindPage(transport, sdk.mediaListJobs),
|
|
688
|
+
outputs: {
|
|
689
|
+
save: {
|
|
690
|
+
create: bind(transport, sdk.mediaSaveGenerationOutput),
|
|
691
|
+
},
|
|
692
|
+
},
|
|
668
693
|
retrieve: bind(transport, sdk.mediaGetJob),
|
|
669
694
|
},
|
|
670
695
|
list: bindPage(transport, sdk.mediaListLibraries),
|
|
@@ -789,6 +814,38 @@ export function createModel(transport) {
|
|
|
789
814
|
},
|
|
790
815
|
};
|
|
791
816
|
}
|
|
817
|
+
export function createOntology(transport) {
|
|
818
|
+
return {
|
|
819
|
+
changesets: {
|
|
820
|
+
create: bind(transport, sdk.ontologyApplyChangeset),
|
|
821
|
+
},
|
|
822
|
+
nodes: {
|
|
823
|
+
create: bind(transport, sdk.ontologyCreateNode),
|
|
824
|
+
list: bindPage(transport, sdk.ontologyListNodes),
|
|
825
|
+
merge: {
|
|
826
|
+
create: bind(transport, sdk.ontologyMergeNode),
|
|
827
|
+
},
|
|
828
|
+
retrieve: bind(transport, sdk.ontologyRetrieveNode),
|
|
829
|
+
update: bind(transport, sdk.ontologyUpdateNode),
|
|
830
|
+
},
|
|
831
|
+
relations: {
|
|
832
|
+
create: bind(transport, sdk.ontologyCreateRelation),
|
|
833
|
+
invalidate: {
|
|
834
|
+
create: bind(transport, sdk.ontologyInvalidateRelation),
|
|
835
|
+
},
|
|
836
|
+
list: bindPage(transport, sdk.ontologyListRelations),
|
|
837
|
+
retrieve: bind(transport, sdk.ontologyRetrieveRelation),
|
|
838
|
+
},
|
|
839
|
+
search: {
|
|
840
|
+
create: bind(transport, sdk.ontologySearch),
|
|
841
|
+
},
|
|
842
|
+
types: {
|
|
843
|
+
create: bind(transport, sdk.ontologyRegisterType),
|
|
844
|
+
list: bind(transport, sdk.ontologyListTypes),
|
|
845
|
+
retrieve: bind(transport, sdk.ontologyRetrieveType),
|
|
846
|
+
},
|
|
847
|
+
};
|
|
848
|
+
}
|
|
792
849
|
export function createOrganization(transport) {
|
|
793
850
|
return {
|
|
794
851
|
charges: {
|
|
@@ -1055,6 +1112,7 @@ export const resourceFactories = {
|
|
|
1055
1112
|
media: createMedia,
|
|
1056
1113
|
meta: createMeta,
|
|
1057
1114
|
model: createModel,
|
|
1115
|
+
ontology: createOntology,
|
|
1058
1116
|
organization: createOrganization,
|
|
1059
1117
|
sandbox: createSandbox,
|
|
1060
1118
|
search: createSearch,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepraxis/sdk",
|
|
3
|
-
"version": "0.1.1-dev.
|
|
3
|
+
"version": "0.1.1-dev.daf3004",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"LICENSE",
|
|
28
28
|
"METHODS.md"
|
|
29
29
|
],
|
|
30
|
-
"description": "TypeScript SDK for the Praxis
|
|
30
|
+
"description": "TypeScript SDK for the Praxis API: models, agents, sandboxes, search, data and automation.",
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"homepage": "https://deepraxis.com",
|
|
33
33
|
"keywords": [
|