@deepraxis/sdk 0.1.1-dev.e5614a0 → 0.1.1-dev.e9377c2
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 +317 -45
- package/dist/generated/sdk.gen.js +556 -44
- package/dist/generated/types.gen.d.ts +5611 -1658
- package/dist/operations.generated.d.ts +876 -91
- package/dist/operations.generated.js +1475 -506
- package/dist/resources.generated.d.ts +82 -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
|
}>;
|
|
@@ -4183,6 +4183,7 @@ export declare function createFile(transport: Transport): {
|
|
|
4183
4183
|
parts: {
|
|
4184
4184
|
create: (options: import("./core/transport.js").CallOptions<Types.FileAddUploadPartData>) => Promise<Types.OwnFilePraxisUploadPart>;
|
|
4185
4185
|
};
|
|
4186
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.FileRetrieveUploadData>) => Promise<Types.OwnFilePraxisUpload>;
|
|
4186
4187
|
};
|
|
4187
4188
|
};
|
|
4188
4189
|
export declare function createKnowledge(transport: Transport): {
|
|
@@ -4230,11 +4231,19 @@ export declare function createKnowledge(transport: Transport): {
|
|
|
4230
4231
|
};
|
|
4231
4232
|
};
|
|
4232
4233
|
export declare function createMedia(transport: Transport): {
|
|
4234
|
+
generation: {
|
|
4235
|
+
capabilities: {
|
|
4236
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.MediaGetGenerationCapabilitiesData> | undefined) => Promise<Types.MediaGenerationCapabilities>;
|
|
4237
|
+
};
|
|
4238
|
+
};
|
|
4233
4239
|
libraries: {
|
|
4234
4240
|
assets: {
|
|
4235
4241
|
batch: (options: import("./core/transport.js").CallOptions<Types.MediaBatchAssetsData>) => Promise<Types.MediaJob>;
|
|
4236
4242
|
create: (options: import("./core/transport.js").CallOptions<Types.MediaUploadAssetData>) => Promise<Types.MediaUploadResult>;
|
|
4237
4243
|
delete: (options: import("./core/transport.js").CallOptions<Types.MediaDeleteAssetData>) => Promise<Types.MediaDeleted>;
|
|
4244
|
+
frames: {
|
|
4245
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateFrameUrlsData>) => Promise<Types.MediaFrameUrls>;
|
|
4246
|
+
};
|
|
4238
4247
|
import: {
|
|
4239
4248
|
create: (options: import("./core/transport.js").CallOptions<Types.MediaImportAssetData>) => Promise<Types.MediaAsset>;
|
|
4240
4249
|
};
|
|
@@ -4263,7 +4272,17 @@ export declare function createMedia(transport: Transport): {
|
|
|
4263
4272
|
folders: {
|
|
4264
4273
|
list: (options: import("./core/transport.js").CallOptions<Types.MediaListFoldersData>) => Promise<Types.MediaFolders>;
|
|
4265
4274
|
};
|
|
4275
|
+
generations: {
|
|
4276
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateGenerationData>) => Promise<Types.MediaJob>;
|
|
4277
|
+
};
|
|
4266
4278
|
jobs: {
|
|
4279
|
+
cancel: (options: import("./core/transport.js").CallOptions<Types.MediaCancelJobData>) => Promise<Types.MediaJob>;
|
|
4280
|
+
list: (options: import("./core/transport.js").CallOptions<Types.MediaListJobsData>) => Promise<import("./automation.js").Page<Types.MediaJob>>;
|
|
4281
|
+
outputs: {
|
|
4282
|
+
save: {
|
|
4283
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaSaveGenerationOutputData>) => Promise<Types.MediaAsset>;
|
|
4284
|
+
};
|
|
4285
|
+
};
|
|
4267
4286
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.MediaGetJobData>) => Promise<Types.MediaJob>;
|
|
4268
4287
|
};
|
|
4269
4288
|
list: (options?: import("./core/transport.js").CallOptions<Types.MediaListLibrariesData> | undefined) => Promise<import("./automation.js").Page<Types.MediaLibrary>>;
|
|
@@ -4284,6 +4303,10 @@ export declare function createMedia(transport: Transport): {
|
|
|
4284
4303
|
create: (options: import("./core/transport.js").CallOptions<Types.MediaVisualSearchData>) => Promise<Types.MediaSemanticSearchResult>;
|
|
4285
4304
|
};
|
|
4286
4305
|
};
|
|
4306
|
+
understandings: {
|
|
4307
|
+
list: (options: import("./core/transport.js").CallOptions<Types.MediaListUnderstandingsByLibraryData>) => Promise<import("./automation.js").Page<Types.MediaUnderstanding>>;
|
|
4308
|
+
retrieveFailureSummary: (options: import("./core/transport.js").CallOptions<Types.MediaUnderstandingFailureSummaryData>) => Promise<Types.MediaFailureSummary>;
|
|
4309
|
+
};
|
|
4287
4310
|
update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateLibraryData>) => Promise<Types.MediaLibrary>;
|
|
4288
4311
|
};
|
|
4289
4312
|
};
|
|
@@ -4337,11 +4360,17 @@ export declare function createModel(transport: Transport): {
|
|
|
4337
4360
|
start: number;
|
|
4338
4361
|
end: number;
|
|
4339
4362
|
text: string;
|
|
4363
|
+
speaker?: string;
|
|
4340
4364
|
temperature?: number;
|
|
4341
4365
|
avg_logprob?: number;
|
|
4342
4366
|
compression_ratio?: number;
|
|
4343
4367
|
no_speech_prob?: number;
|
|
4344
4368
|
}>;
|
|
4369
|
+
words?: Array<{
|
|
4370
|
+
word: string;
|
|
4371
|
+
start: number;
|
|
4372
|
+
end: number;
|
|
4373
|
+
}>;
|
|
4345
4374
|
}>;
|
|
4346
4375
|
};
|
|
4347
4376
|
};
|
|
@@ -4829,6 +4858,36 @@ export declare function createModel(transport: Transport): {
|
|
|
4829
4858
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.DownloadVideoContentData>) => Promise<Blob | File>;
|
|
4830
4859
|
};
|
|
4831
4860
|
};
|
|
4861
|
+
export declare function createOntology(transport: Transport): {
|
|
4862
|
+
changesets: {
|
|
4863
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyApplyChangesetData>) => Promise<Types.OntologyChangesetResult>;
|
|
4864
|
+
};
|
|
4865
|
+
nodes: {
|
|
4866
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyCreateNodeData>) => Promise<Types.OntologyNode>;
|
|
4867
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.OntologyListNodesData> | undefined) => Promise<import("./automation.js").Page<Types.OntologyNode | Types.OntologyRestrictedNode>>;
|
|
4868
|
+
merge: {
|
|
4869
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyMergeNodeData>) => Promise<Types.OntologyNode>;
|
|
4870
|
+
};
|
|
4871
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.OntologyRetrieveNodeData>) => Promise<Types.OntologyNodeWithRelations>;
|
|
4872
|
+
update: (options: import("./core/transport.js").CallOptions<Types.OntologyUpdateNodeData>) => Promise<Types.OntologyNode>;
|
|
4873
|
+
};
|
|
4874
|
+
relations: {
|
|
4875
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyCreateRelationData>) => Promise<Types.OntologyRelation>;
|
|
4876
|
+
invalidate: {
|
|
4877
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyInvalidateRelationData>) => Promise<Types.OntologyRelation>;
|
|
4878
|
+
};
|
|
4879
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.OntologyListRelationsData> | undefined) => Promise<import("./automation.js").Page<Types.OntologyRelation>>;
|
|
4880
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.OntologyRetrieveRelationData>) => Promise<Types.OntologyRelation>;
|
|
4881
|
+
};
|
|
4882
|
+
search: {
|
|
4883
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologySearchData>) => Promise<Types.OntologySearchResult>;
|
|
4884
|
+
};
|
|
4885
|
+
types: {
|
|
4886
|
+
create: (options: import("./core/transport.js").CallOptions<Types.OntologyRegisterTypeData>) => Promise<unknown>;
|
|
4887
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.OntologyListTypesData> | undefined) => Promise<Types.OntologyTypeRegistrationPage>;
|
|
4888
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.OntologyRetrieveTypeData>) => Promise<Types.OntologyTypeLookup>;
|
|
4889
|
+
};
|
|
4890
|
+
};
|
|
4832
4891
|
export declare function createOrganization(transport: Transport): {
|
|
4833
4892
|
charges: {
|
|
4834
4893
|
list: (options: import("./core/transport.js").CallOptions<Types.ExportOrganizationChargesData>) => Promise<{
|
|
@@ -5073,6 +5132,19 @@ export declare function createOrganization(transport: Transport): {
|
|
|
5073
5132
|
}>;
|
|
5074
5133
|
}>;
|
|
5075
5134
|
};
|
|
5135
|
+
members: {
|
|
5136
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.ListOrganizationMembersData> | undefined) => Promise<{
|
|
5137
|
+
data: Array<{
|
|
5138
|
+
id: string;
|
|
5139
|
+
name: string | null;
|
|
5140
|
+
email: string;
|
|
5141
|
+
role: "owner" | "admin" | "member";
|
|
5142
|
+
joined_at: string;
|
|
5143
|
+
}>;
|
|
5144
|
+
has_more: boolean;
|
|
5145
|
+
next_page: string | null;
|
|
5146
|
+
}>;
|
|
5147
|
+
};
|
|
5076
5148
|
usage: {
|
|
5077
5149
|
list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationUsageData>) => Promise<{
|
|
5078
5150
|
object: "page";
|
|
@@ -5217,6 +5289,7 @@ export declare function createSandbox(transport: Transport): {
|
|
|
5217
5289
|
buildCount: number;
|
|
5218
5290
|
envdVersion: Types.SandboxEnvdVersion;
|
|
5219
5291
|
buildStatus: Types.SandboxTemplateBuildStatus;
|
|
5292
|
+
lifecycles?: Array<"ephemeral" | "persistent">;
|
|
5220
5293
|
official: boolean;
|
|
5221
5294
|
sourceKind?: "dockerfile" | "image" | "snapshot";
|
|
5222
5295
|
}[]>;
|
|
@@ -5496,6 +5569,7 @@ export declare const resourceFactories: {
|
|
|
5496
5569
|
media: typeof createMedia;
|
|
5497
5570
|
meta: typeof createMeta;
|
|
5498
5571
|
model: typeof createModel;
|
|
5572
|
+
ontology: typeof createOntology;
|
|
5499
5573
|
organization: typeof createOrganization;
|
|
5500
5574
|
sandbox: typeof createSandbox;
|
|
5501
5575
|
search: typeof createSearch;
|
|
@@ -577,6 +577,7 @@ export function createFile(transport) {
|
|
|
577
577
|
parts: {
|
|
578
578
|
create: bind(transport, options => sdk.fileAddUploadPart({ ...options, bodySerializer: multipartBodySerializer, headers: { 'Content-Type': null, ...options.headers } })),
|
|
579
579
|
},
|
|
580
|
+
retrieve: bind(transport, sdk.fileRetrieveUpload),
|
|
580
581
|
},
|
|
581
582
|
};
|
|
582
583
|
}
|
|
@@ -628,11 +629,19 @@ export function createKnowledge(transport) {
|
|
|
628
629
|
}
|
|
629
630
|
export function createMedia(transport) {
|
|
630
631
|
return {
|
|
632
|
+
generation: {
|
|
633
|
+
capabilities: {
|
|
634
|
+
list: bind(transport, sdk.mediaGetGenerationCapabilities),
|
|
635
|
+
},
|
|
636
|
+
},
|
|
631
637
|
libraries: {
|
|
632
638
|
assets: {
|
|
633
639
|
batch: bind(transport, sdk.mediaBatchAssets),
|
|
634
640
|
create: bind(transport, options => sdk.mediaUploadAsset({ ...options, bodySerializer: multipartBodySerializer, headers: { 'Content-Type': null, ...options.headers } })),
|
|
635
641
|
delete: bind(transport, sdk.mediaDeleteAsset),
|
|
642
|
+
frames: {
|
|
643
|
+
create: bind(transport, sdk.mediaCreateFrameUrls),
|
|
644
|
+
},
|
|
636
645
|
import: {
|
|
637
646
|
create: bind(transport, sdk.mediaImportAsset),
|
|
638
647
|
},
|
|
@@ -661,7 +670,17 @@ export function createMedia(transport) {
|
|
|
661
670
|
folders: {
|
|
662
671
|
list: bind(transport, sdk.mediaListFolders),
|
|
663
672
|
},
|
|
673
|
+
generations: {
|
|
674
|
+
create: bind(transport, sdk.mediaCreateGeneration),
|
|
675
|
+
},
|
|
664
676
|
jobs: {
|
|
677
|
+
cancel: bind(transport, sdk.mediaCancelJob),
|
|
678
|
+
list: bindPage(transport, sdk.mediaListJobs),
|
|
679
|
+
outputs: {
|
|
680
|
+
save: {
|
|
681
|
+
create: bind(transport, sdk.mediaSaveGenerationOutput),
|
|
682
|
+
},
|
|
683
|
+
},
|
|
665
684
|
retrieve: bind(transport, sdk.mediaGetJob),
|
|
666
685
|
},
|
|
667
686
|
list: bindPage(transport, sdk.mediaListLibraries),
|
|
@@ -682,6 +701,10 @@ export function createMedia(transport) {
|
|
|
682
701
|
create: bind(transport, sdk.mediaVisualSearch),
|
|
683
702
|
},
|
|
684
703
|
},
|
|
704
|
+
understandings: {
|
|
705
|
+
list: bindPage(transport, sdk.mediaListUnderstandingsByLibrary),
|
|
706
|
+
retrieveFailureSummary: bind(transport, sdk.mediaUnderstandingFailureSummary),
|
|
707
|
+
},
|
|
685
708
|
update: bind(transport, sdk.mediaUpdateLibrary),
|
|
686
709
|
},
|
|
687
710
|
};
|
|
@@ -782,6 +805,38 @@ export function createModel(transport) {
|
|
|
782
805
|
},
|
|
783
806
|
};
|
|
784
807
|
}
|
|
808
|
+
export function createOntology(transport) {
|
|
809
|
+
return {
|
|
810
|
+
changesets: {
|
|
811
|
+
create: bind(transport, sdk.ontologyApplyChangeset),
|
|
812
|
+
},
|
|
813
|
+
nodes: {
|
|
814
|
+
create: bind(transport, sdk.ontologyCreateNode),
|
|
815
|
+
list: bindPage(transport, sdk.ontologyListNodes),
|
|
816
|
+
merge: {
|
|
817
|
+
create: bind(transport, sdk.ontologyMergeNode),
|
|
818
|
+
},
|
|
819
|
+
retrieve: bind(transport, sdk.ontologyRetrieveNode),
|
|
820
|
+
update: bind(transport, sdk.ontologyUpdateNode),
|
|
821
|
+
},
|
|
822
|
+
relations: {
|
|
823
|
+
create: bind(transport, sdk.ontologyCreateRelation),
|
|
824
|
+
invalidate: {
|
|
825
|
+
create: bind(transport, sdk.ontologyInvalidateRelation),
|
|
826
|
+
},
|
|
827
|
+
list: bindPage(transport, sdk.ontologyListRelations),
|
|
828
|
+
retrieve: bind(transport, sdk.ontologyRetrieveRelation),
|
|
829
|
+
},
|
|
830
|
+
search: {
|
|
831
|
+
create: bind(transport, sdk.ontologySearch),
|
|
832
|
+
},
|
|
833
|
+
types: {
|
|
834
|
+
create: bind(transport, sdk.ontologyRegisterType),
|
|
835
|
+
list: bind(transport, sdk.ontologyListTypes),
|
|
836
|
+
retrieve: bind(transport, sdk.ontologyRetrieveType),
|
|
837
|
+
},
|
|
838
|
+
};
|
|
839
|
+
}
|
|
785
840
|
export function createOrganization(transport) {
|
|
786
841
|
return {
|
|
787
842
|
charges: {
|
|
@@ -806,6 +861,9 @@ export function createOrganization(transport) {
|
|
|
806
861
|
},
|
|
807
862
|
retrieve: bind(transport, sdk.getOrganizationFeedback),
|
|
808
863
|
},
|
|
864
|
+
members: {
|
|
865
|
+
list: bind(transport, sdk.listOrganizationMembers),
|
|
866
|
+
},
|
|
809
867
|
usage: {
|
|
810
868
|
list: bind(transport, sdk.listOrganizationUsage),
|
|
811
869
|
},
|
|
@@ -1045,6 +1103,7 @@ export const resourceFactories = {
|
|
|
1045
1103
|
media: createMedia,
|
|
1046
1104
|
meta: createMeta,
|
|
1047
1105
|
model: createModel,
|
|
1106
|
+
ontology: createOntology,
|
|
1048
1107
|
organization: createOrganization,
|
|
1049
1108
|
sandbox: createSandbox,
|
|
1050
1109
|
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.e9377c2",
|
|
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": [
|