@deepraxis/sdk 0.1.1-dev.e47a392 → 0.1.1-dev.e5cbcae
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 +79 -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 +290 -117
- package/dist/generated/sdk.gen.js +505 -116
- package/dist/generated/types.gen.d.ts +2721 -292
- package/dist/operations.generated.d.ts +700 -23
- package/dist/operations.generated.js +850 -23
- package/dist/resources.generated.d.ts +70 -8
- package/dist/resources.generated.js +52 -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;
|
|
@@ -4183,6 +4197,7 @@ export declare function createFile(transport: Transport): {
|
|
|
4183
4197
|
parts: {
|
|
4184
4198
|
create: (options: import("./core/transport.js").CallOptions<Types.FileAddUploadPartData>) => Promise<Types.OwnFilePraxisUploadPart>;
|
|
4185
4199
|
};
|
|
4200
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.FileRetrieveUploadData>) => Promise<Types.OwnFilePraxisUpload>;
|
|
4186
4201
|
};
|
|
4187
4202
|
};
|
|
4188
4203
|
export declare function createKnowledge(transport: Transport): {
|
|
@@ -4230,6 +4245,11 @@ export declare function createKnowledge(transport: Transport): {
|
|
|
4230
4245
|
};
|
|
4231
4246
|
};
|
|
4232
4247
|
export declare function createMedia(transport: Transport): {
|
|
4248
|
+
generation: {
|
|
4249
|
+
capabilities: {
|
|
4250
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.MediaGetGenerationCapabilitiesData> | undefined) => Promise<Types.MediaGenerationCapabilities>;
|
|
4251
|
+
};
|
|
4252
|
+
};
|
|
4233
4253
|
libraries: {
|
|
4234
4254
|
assets: {
|
|
4235
4255
|
batch: (options: import("./core/transport.js").CallOptions<Types.MediaBatchAssetsData>) => Promise<Types.MediaJob>;
|
|
@@ -4266,7 +4286,17 @@ export declare function createMedia(transport: Transport): {
|
|
|
4266
4286
|
folders: {
|
|
4267
4287
|
list: (options: import("./core/transport.js").CallOptions<Types.MediaListFoldersData>) => Promise<Types.MediaFolders>;
|
|
4268
4288
|
};
|
|
4289
|
+
generations: {
|
|
4290
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateGenerationData>) => Promise<Types.MediaJob>;
|
|
4291
|
+
};
|
|
4269
4292
|
jobs: {
|
|
4293
|
+
cancel: (options: import("./core/transport.js").CallOptions<Types.MediaCancelJobData>) => Promise<Types.MediaJob>;
|
|
4294
|
+
list: (options: import("./core/transport.js").CallOptions<Types.MediaListJobsData>) => Promise<import("./automation.js").Page<Types.MediaJob>>;
|
|
4295
|
+
outputs: {
|
|
4296
|
+
save: {
|
|
4297
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaSaveGenerationOutputData>) => Promise<Types.MediaAsset>;
|
|
4298
|
+
};
|
|
4299
|
+
};
|
|
4270
4300
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.MediaGetJobData>) => Promise<Types.MediaJob>;
|
|
4271
4301
|
};
|
|
4272
4302
|
list: (options?: import("./core/transport.js").CallOptions<Types.MediaListLibrariesData> | undefined) => Promise<import("./automation.js").Page<Types.MediaLibrary>>;
|
|
@@ -4842,6 +4872,36 @@ export declare function createModel(transport: Transport): {
|
|
|
4842
4872
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.DownloadVideoContentData>) => Promise<Blob | File>;
|
|
4843
4873
|
};
|
|
4844
4874
|
};
|
|
4875
|
+
export declare function createOntology(transport: Transport): {
|
|
4876
|
+
changesets: {
|
|
4877
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyApplyChangesetData>) => Promise<Types.OntologyChangesetResult>;
|
|
4878
|
+
};
|
|
4879
|
+
nodes: {
|
|
4880
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyCreateNodeData>) => Promise<Types.OntologyNode>;
|
|
4881
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.OntologyListNodesData> | undefined) => Promise<import("./automation.js").Page<Types.OntologyNode | Types.OntologyRestrictedNode>>;
|
|
4882
|
+
merge: {
|
|
4883
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyMergeNodeData>) => Promise<Types.OntologyNode>;
|
|
4884
|
+
};
|
|
4885
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.OntologyRetrieveNodeData>) => Promise<Types.OntologyNodeWithRelations>;
|
|
4886
|
+
update: (options: import("./core/transport.js").CallOptions<Types.OntologyUpdateNodeData>) => Promise<Types.OntologyNode>;
|
|
4887
|
+
};
|
|
4888
|
+
relations: {
|
|
4889
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyCreateRelationData>) => Promise<Types.OntologyRelation>;
|
|
4890
|
+
invalidate: {
|
|
4891
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyInvalidateRelationData>) => Promise<Types.OntologyRelation>;
|
|
4892
|
+
};
|
|
4893
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.OntologyListRelationsData> | undefined) => Promise<import("./automation.js").Page<Types.OntologyRelation>>;
|
|
4894
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.OntologyRetrieveRelationData>) => Promise<Types.OntologyRelation>;
|
|
4895
|
+
};
|
|
4896
|
+
search: {
|
|
4897
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologySearchData>) => Promise<Types.OntologySearchResult>;
|
|
4898
|
+
};
|
|
4899
|
+
types: {
|
|
4900
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyRegisterTypeData>) => Promise<unknown>;
|
|
4901
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.OntologyListTypesData> | undefined) => Promise<Types.OntologyTypeRegistrationPage>;
|
|
4902
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.OntologyRetrieveTypeData>) => Promise<Types.OntologyTypeLookup>;
|
|
4903
|
+
};
|
|
4904
|
+
};
|
|
4845
4905
|
export declare function createOrganization(transport: Transport): {
|
|
4846
4906
|
charges: {
|
|
4847
4907
|
list: (options: import("./core/transport.js").CallOptions<Types.ExportOrganizationChargesData>) => Promise<{
|
|
@@ -5243,6 +5303,7 @@ export declare function createSandbox(transport: Transport): {
|
|
|
5243
5303
|
buildCount: number;
|
|
5244
5304
|
envdVersion: Types.SandboxEnvdVersion;
|
|
5245
5305
|
buildStatus: Types.SandboxTemplateBuildStatus;
|
|
5306
|
+
lifecycles?: Array<"ephemeral" | "persistent">;
|
|
5246
5307
|
official: boolean;
|
|
5247
5308
|
sourceKind?: "dockerfile" | "image" | "snapshot";
|
|
5248
5309
|
}[]>;
|
|
@@ -5522,6 +5583,7 @@ export declare const resourceFactories: {
|
|
|
5522
5583
|
media: typeof createMedia;
|
|
5523
5584
|
meta: typeof createMeta;
|
|
5524
5585
|
model: typeof createModel;
|
|
5586
|
+
ontology: typeof createOntology;
|
|
5525
5587
|
organization: typeof createOrganization;
|
|
5526
5588
|
sandbox: typeof createSandbox;
|
|
5527
5589
|
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
|
},
|
|
@@ -577,6 +580,7 @@ export function createFile(transport) {
|
|
|
577
580
|
parts: {
|
|
578
581
|
create: bind(transport, options => sdk.fileAddUploadPart({ ...options, bodySerializer: multipartBodySerializer, headers: { 'Content-Type': null, ...options.headers } })),
|
|
579
582
|
},
|
|
583
|
+
retrieve: bind(transport, sdk.fileRetrieveUpload),
|
|
580
584
|
},
|
|
581
585
|
};
|
|
582
586
|
}
|
|
@@ -628,6 +632,11 @@ export function createKnowledge(transport) {
|
|
|
628
632
|
}
|
|
629
633
|
export function createMedia(transport) {
|
|
630
634
|
return {
|
|
635
|
+
generation: {
|
|
636
|
+
capabilities: {
|
|
637
|
+
list: bind(transport, sdk.mediaGetGenerationCapabilities),
|
|
638
|
+
},
|
|
639
|
+
},
|
|
631
640
|
libraries: {
|
|
632
641
|
assets: {
|
|
633
642
|
batch: bind(transport, sdk.mediaBatchAssets),
|
|
@@ -664,7 +673,17 @@ export function createMedia(transport) {
|
|
|
664
673
|
folders: {
|
|
665
674
|
list: bind(transport, sdk.mediaListFolders),
|
|
666
675
|
},
|
|
676
|
+
generations: {
|
|
677
|
+
create: bind(transport, sdk.mediaCreateGeneration),
|
|
678
|
+
},
|
|
667
679
|
jobs: {
|
|
680
|
+
cancel: bind(transport, sdk.mediaCancelJob),
|
|
681
|
+
list: bindPage(transport, sdk.mediaListJobs),
|
|
682
|
+
outputs: {
|
|
683
|
+
save: {
|
|
684
|
+
create: bind(transport, sdk.mediaSaveGenerationOutput),
|
|
685
|
+
},
|
|
686
|
+
},
|
|
668
687
|
retrieve: bind(transport, sdk.mediaGetJob),
|
|
669
688
|
},
|
|
670
689
|
list: bindPage(transport, sdk.mediaListLibraries),
|
|
@@ -789,6 +808,38 @@ export function createModel(transport) {
|
|
|
789
808
|
},
|
|
790
809
|
};
|
|
791
810
|
}
|
|
811
|
+
export function createOntology(transport) {
|
|
812
|
+
return {
|
|
813
|
+
changesets: {
|
|
814
|
+
create: bind(transport, sdk.ontologyApplyChangeset),
|
|
815
|
+
},
|
|
816
|
+
nodes: {
|
|
817
|
+
create: bind(transport, sdk.ontologyCreateNode),
|
|
818
|
+
list: bindPage(transport, sdk.ontologyListNodes),
|
|
819
|
+
merge: {
|
|
820
|
+
create: bind(transport, sdk.ontologyMergeNode),
|
|
821
|
+
},
|
|
822
|
+
retrieve: bind(transport, sdk.ontologyRetrieveNode),
|
|
823
|
+
update: bind(transport, sdk.ontologyUpdateNode),
|
|
824
|
+
},
|
|
825
|
+
relations: {
|
|
826
|
+
create: bind(transport, sdk.ontologyCreateRelation),
|
|
827
|
+
invalidate: {
|
|
828
|
+
create: bind(transport, sdk.ontologyInvalidateRelation),
|
|
829
|
+
},
|
|
830
|
+
list: bindPage(transport, sdk.ontologyListRelations),
|
|
831
|
+
retrieve: bind(transport, sdk.ontologyRetrieveRelation),
|
|
832
|
+
},
|
|
833
|
+
search: {
|
|
834
|
+
create: bind(transport, sdk.ontologySearch),
|
|
835
|
+
},
|
|
836
|
+
types: {
|
|
837
|
+
create: bind(transport, sdk.ontologyRegisterType),
|
|
838
|
+
list: bind(transport, sdk.ontologyListTypes),
|
|
839
|
+
retrieve: bind(transport, sdk.ontologyRetrieveType),
|
|
840
|
+
},
|
|
841
|
+
};
|
|
842
|
+
}
|
|
792
843
|
export function createOrganization(transport) {
|
|
793
844
|
return {
|
|
794
845
|
charges: {
|
|
@@ -1055,6 +1106,7 @@ export const resourceFactories = {
|
|
|
1055
1106
|
media: createMedia,
|
|
1056
1107
|
meta: createMeta,
|
|
1057
1108
|
model: createModel,
|
|
1109
|
+
ontology: createOntology,
|
|
1058
1110
|
organization: createOrganization,
|
|
1059
1111
|
sandbox: createSandbox,
|
|
1060
1112
|
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.e5cbcae",
|
|
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": [
|