@deepraxis/sdk 0.1.1-dev.463d5b5 → 0.1.1-dev.48a97c5
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 +92 -1
- package/README.md +2 -2
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +333 -117
- package/dist/generated/sdk.gen.js +576 -116
- package/dist/generated/types.gen.d.ts +5669 -2196
- package/dist/operations.generated.d.ts +869 -81
- package/dist/operations.generated.js +1195 -225
- package/dist/resources.generated.d.ts +83 -8
- package/dist/resources.generated.js +59 -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,11 +4245,19 @@ 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>;
|
|
4236
4256
|
create: (options: import("./core/transport.js").CallOptions<Types.MediaUploadAssetData>) => Promise<Types.MediaUploadResult>;
|
|
4237
4257
|
delete: (options: import("./core/transport.js").CallOptions<Types.MediaDeleteAssetData>) => Promise<Types.MediaDeleted>;
|
|
4258
|
+
frames: {
|
|
4259
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateFrameUrlsData>) => Promise<Types.MediaFrameUrls>;
|
|
4260
|
+
};
|
|
4238
4261
|
import: {
|
|
4239
4262
|
create: (options: import("./core/transport.js").CallOptions<Types.MediaImportAssetData>) => Promise<Types.MediaAsset>;
|
|
4240
4263
|
};
|
|
@@ -4263,7 +4286,17 @@ export declare function createMedia(transport: Transport): {
|
|
|
4263
4286
|
folders: {
|
|
4264
4287
|
list: (options: import("./core/transport.js").CallOptions<Types.MediaListFoldersData>) => Promise<Types.MediaFolders>;
|
|
4265
4288
|
};
|
|
4289
|
+
generations: {
|
|
4290
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateGenerationData>) => Promise<Types.MediaJob>;
|
|
4291
|
+
};
|
|
4266
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
|
+
};
|
|
4267
4300
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.MediaGetJobData>) => Promise<Types.MediaJob>;
|
|
4268
4301
|
};
|
|
4269
4302
|
list: (options?: import("./core/transport.js").CallOptions<Types.MediaListLibrariesData> | undefined) => Promise<import("./automation.js").Page<Types.MediaLibrary>>;
|
|
@@ -4284,6 +4317,10 @@ export declare function createMedia(transport: Transport): {
|
|
|
4284
4317
|
create: (options: import("./core/transport.js").CallOptions<Types.MediaVisualSearchData>) => Promise<Types.MediaSemanticSearchResult>;
|
|
4285
4318
|
};
|
|
4286
4319
|
};
|
|
4320
|
+
understandings: {
|
|
4321
|
+
list: (options: import("./core/transport.js").CallOptions<Types.MediaListUnderstandingsByLibraryData>) => Promise<import("./automation.js").Page<Types.MediaUnderstanding>>;
|
|
4322
|
+
retrieveFailureSummary: (options: import("./core/transport.js").CallOptions<Types.MediaUnderstandingFailureSummaryData>) => Promise<Types.MediaFailureSummary>;
|
|
4323
|
+
};
|
|
4287
4324
|
update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateLibraryData>) => Promise<Types.MediaLibrary>;
|
|
4288
4325
|
};
|
|
4289
4326
|
};
|
|
@@ -4337,11 +4374,17 @@ export declare function createModel(transport: Transport): {
|
|
|
4337
4374
|
start: number;
|
|
4338
4375
|
end: number;
|
|
4339
4376
|
text: string;
|
|
4377
|
+
speaker?: string;
|
|
4340
4378
|
temperature?: number;
|
|
4341
4379
|
avg_logprob?: number;
|
|
4342
4380
|
compression_ratio?: number;
|
|
4343
4381
|
no_speech_prob?: number;
|
|
4344
4382
|
}>;
|
|
4383
|
+
words?: Array<{
|
|
4384
|
+
word: string;
|
|
4385
|
+
start: number;
|
|
4386
|
+
end: number;
|
|
4387
|
+
}>;
|
|
4345
4388
|
}>;
|
|
4346
4389
|
};
|
|
4347
4390
|
};
|
|
@@ -4829,6 +4872,36 @@ export declare function createModel(transport: Transport): {
|
|
|
4829
4872
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.DownloadVideoContentData>) => Promise<Blob | File>;
|
|
4830
4873
|
};
|
|
4831
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
|
+
};
|
|
4832
4905
|
export declare function createOrganization(transport: Transport): {
|
|
4833
4906
|
charges: {
|
|
4834
4907
|
list: (options: import("./core/transport.js").CallOptions<Types.ExportOrganizationChargesData>) => Promise<{
|
|
@@ -5230,6 +5303,7 @@ export declare function createSandbox(transport: Transport): {
|
|
|
5230
5303
|
buildCount: number;
|
|
5231
5304
|
envdVersion: Types.SandboxEnvdVersion;
|
|
5232
5305
|
buildStatus: Types.SandboxTemplateBuildStatus;
|
|
5306
|
+
lifecycles?: Array<"ephemeral" | "persistent">;
|
|
5233
5307
|
official: boolean;
|
|
5234
5308
|
sourceKind?: "dockerfile" | "image" | "snapshot";
|
|
5235
5309
|
}[]>;
|
|
@@ -5509,6 +5583,7 @@ export declare const resourceFactories: {
|
|
|
5509
5583
|
media: typeof createMedia;
|
|
5510
5584
|
meta: typeof createMeta;
|
|
5511
5585
|
model: typeof createModel;
|
|
5586
|
+
ontology: typeof createOntology;
|
|
5512
5587
|
organization: typeof createOrganization;
|
|
5513
5588
|
sandbox: typeof createSandbox;
|
|
5514
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,11 +632,19 @@ 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),
|
|
634
643
|
create: bind(transport, options => sdk.mediaUploadAsset({ ...options, bodySerializer: multipartBodySerializer, headers: { 'Content-Type': null, ...options.headers } })),
|
|
635
644
|
delete: bind(transport, sdk.mediaDeleteAsset),
|
|
645
|
+
frames: {
|
|
646
|
+
create: bind(transport, sdk.mediaCreateFrameUrls),
|
|
647
|
+
},
|
|
636
648
|
import: {
|
|
637
649
|
create: bind(transport, sdk.mediaImportAsset),
|
|
638
650
|
},
|
|
@@ -661,7 +673,17 @@ export function createMedia(transport) {
|
|
|
661
673
|
folders: {
|
|
662
674
|
list: bind(transport, sdk.mediaListFolders),
|
|
663
675
|
},
|
|
676
|
+
generations: {
|
|
677
|
+
create: bind(transport, sdk.mediaCreateGeneration),
|
|
678
|
+
},
|
|
664
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
|
+
},
|
|
665
687
|
retrieve: bind(transport, sdk.mediaGetJob),
|
|
666
688
|
},
|
|
667
689
|
list: bindPage(transport, sdk.mediaListLibraries),
|
|
@@ -682,6 +704,10 @@ export function createMedia(transport) {
|
|
|
682
704
|
create: bind(transport, sdk.mediaVisualSearch),
|
|
683
705
|
},
|
|
684
706
|
},
|
|
707
|
+
understandings: {
|
|
708
|
+
list: bindPage(transport, sdk.mediaListUnderstandingsByLibrary),
|
|
709
|
+
retrieveFailureSummary: bind(transport, sdk.mediaUnderstandingFailureSummary),
|
|
710
|
+
},
|
|
685
711
|
update: bind(transport, sdk.mediaUpdateLibrary),
|
|
686
712
|
},
|
|
687
713
|
};
|
|
@@ -782,6 +808,38 @@ export function createModel(transport) {
|
|
|
782
808
|
},
|
|
783
809
|
};
|
|
784
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
|
+
}
|
|
785
843
|
export function createOrganization(transport) {
|
|
786
844
|
return {
|
|
787
845
|
charges: {
|
|
@@ -1048,6 +1106,7 @@ export const resourceFactories = {
|
|
|
1048
1106
|
media: createMedia,
|
|
1049
1107
|
meta: createMeta,
|
|
1050
1108
|
model: createModel,
|
|
1109
|
+
ontology: createOntology,
|
|
1051
1110
|
organization: createOrganization,
|
|
1052
1111
|
sandbox: createSandbox,
|
|
1053
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.48a97c5",
|
|
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": [
|