@picteus/extension-sdk 0.2.5
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/README.md +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/picteus-ws-client/apis/AdministrationApi.d.ts +48 -0
- package/dist/picteus-ws-client/apis/AdministrationApi.js +45 -0
- package/dist/picteus-ws-client/apis/ExperimentApi.d.ts +48 -0
- package/dist/picteus-ws-client/apis/ExperimentApi.js +51 -0
- package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +410 -0
- package/dist/picteus-ws-client/apis/ExtensionApi.js +482 -0
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +593 -0
- package/dist/picteus-ws-client/apis/ImageApi.js +729 -0
- package/dist/picteus-ws-client/apis/ImageAttachmentApi.d.ts +85 -0
- package/dist/picteus-ws-client/apis/ImageAttachmentApi.js +105 -0
- package/dist/picteus-ws-client/apis/PingApi.d.ts +48 -0
- package/dist/picteus-ws-client/apis/PingApi.js +51 -0
- package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +385 -0
- package/dist/picteus-ws-client/apis/RepositoryApi.js +462 -0
- package/dist/picteus-ws-client/apis/SettingsApi.d.ts +76 -0
- package/dist/picteus-ws-client/apis/SettingsApi.js +80 -0
- package/dist/picteus-ws-client/apis/index.d.ts +8 -0
- package/dist/picteus-ws-client/apis/index.js +10 -0
- package/dist/picteus-ws-client/index.d.ts +3 -0
- package/dist/picteus-ws-client/index.js +5 -0
- package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +38 -0
- package/dist/picteus-ws-client/models/Automatic1111Instruction.js +47 -0
- package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +45 -0
- package/dist/picteus-ws-client/models/Automatic1111UserComment.js +50 -0
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +38 -0
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +47 -0
- package/dist/picteus-ws-client/models/CommandEntity.d.ts +26 -0
- package/dist/picteus-ws-client/models/CommandEntity.js +44 -0
- package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +39 -0
- package/dist/picteus-ws-client/models/ConfigurationCapability.js +48 -0
- package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +39 -0
- package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +48 -0
- package/dist/picteus-ws-client/models/Dates.d.ts +38 -0
- package/dist/picteus-ws-client/models/Dates.js +47 -0
- package/dist/picteus-ws-client/models/Extension.d.ts +40 -0
- package/dist/picteus-ws-client/models/Extension.js +49 -0
- package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +39 -0
- package/dist/picteus-ws-client/models/ExtensionActivity.js +48 -0
- package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +26 -0
- package/dist/picteus-ws-client/models/ExtensionActivityKind.js +44 -0
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +63 -0
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +64 -0
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +38 -0
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +47 -0
- package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +58 -0
- package/dist/picteus-ws-client/models/ExtensionImageFeature.js +59 -0
- package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +38 -0
- package/dist/picteus-ws-client/models/ExtensionImageTag.js +47 -0
- package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +32 -0
- package/dist/picteus-ws-client/models/ExtensionSettings.js +43 -0
- package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +25 -0
- package/dist/picteus-ws-client/models/ExtensionStatus.js +43 -0
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +40 -0
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +49 -0
- package/dist/picteus-ws-client/models/Image.d.ts +135 -0
- package/dist/picteus-ws-client/models/Image.js +110 -0
- package/dist/picteus-ws-client/models/ImageDimensions.d.ts +38 -0
- package/dist/picteus-ws-client/models/ImageDimensions.js +47 -0
- package/dist/picteus-ws-client/models/ImageDistance.d.ts +39 -0
- package/dist/picteus-ws-client/models/ImageDistance.js +48 -0
- package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +32 -0
- package/dist/picteus-ws-client/models/ImageEmbeddings.js +43 -0
- package/dist/picteus-ws-client/models/ImageFeature.d.ts +52 -0
- package/dist/picteus-ws-client/models/ImageFeature.js +55 -0
- package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +29 -0
- package/dist/picteus-ws-client/models/ImageFeatureFormat.js +47 -0
- package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +27 -0
- package/dist/picteus-ws-client/models/ImageFeatureType.js +45 -0
- package/dist/picteus-ws-client/models/ImageFormat.d.ts +29 -0
- package/dist/picteus-ws-client/models/ImageFormat.js +47 -0
- package/dist/picteus-ws-client/models/ImageGenerator.d.ts +26 -0
- package/dist/picteus-ws-client/models/ImageGenerator.js +44 -0
- package/dist/picteus-ws-client/models/ImageMetadata.d.ts +68 -0
- package/dist/picteus-ws-client/models/ImageMetadata.js +53 -0
- package/dist/picteus-ws-client/models/ImageSummary.d.ts +114 -0
- package/dist/picteus-ws-client/models/ImageSummary.js +95 -0
- package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +39 -0
- package/dist/picteus-ws-client/models/ImageSummaryList.js +48 -0
- package/dist/picteus-ws-client/models/Manifest.d.ts +77 -0
- package/dist/picteus-ws-client/models/Manifest.js +72 -0
- package/dist/picteus-ws-client/models/ManifestCapability.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestCapability.js +44 -0
- package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +27 -0
- package/dist/picteus-ws-client/models/ManifestCapabilityId.js +45 -0
- package/dist/picteus-ws-client/models/ManifestEvent.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestEvent.js +51 -0
- package/dist/picteus-ws-client/models/ManifestExecution.d.ts +38 -0
- package/dist/picteus-ws-client/models/ManifestExecution.js +47 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +52 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +57 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.d.ts +38 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.js +47 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +39 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +46 -0
- package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +54 -0
- package/dist/picteus-ws-client/models/ManifestInstructions.js +55 -0
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +39 -0
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +48 -0
- package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestRuntime.js +44 -0
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +25 -0
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +43 -0
- package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestUserInterface.js +44 -0
- package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +74 -0
- package/dist/picteus-ws-client/models/MidjourneyInstructions.js +71 -0
- package/dist/picteus-ws-client/models/Repository.d.ts +82 -0
- package/dist/picteus-ws-client/models/Repository.js +73 -0
- package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +39 -0
- package/dist/picteus-ws-client/models/RepositoryActivity.js +48 -0
- package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +26 -0
- package/dist/picteus-ws-client/models/RepositoryActivityKind.js +44 -0
- package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +24 -0
- package/dist/picteus-ws-client/models/RepositoryLocationType.js +42 -0
- package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +27 -0
- package/dist/picteus-ws-client/models/RepositoryStatus.js +45 -0
- package/dist/picteus-ws-client/models/SearchCriteria.d.ts +47 -0
- package/dist/picteus-ws-client/models/SearchCriteria.js +48 -0
- package/dist/picteus-ws-client/models/SearchKeyword.d.ts +50 -0
- package/dist/picteus-ws-client/models/SearchKeyword.js +55 -0
- package/dist/picteus-ws-client/models/SearchRange.d.ts +38 -0
- package/dist/picteus-ws-client/models/SearchRange.js +43 -0
- package/dist/picteus-ws-client/models/SearchSorting.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchSorting.js +46 -0
- package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +29 -0
- package/dist/picteus-ws-client/models/SearchSortingProperty.js +47 -0
- package/dist/picteus-ws-client/models/Settings.d.ts +32 -0
- package/dist/picteus-ws-client/models/Settings.js +41 -0
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +26 -0
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +44 -0
- package/dist/picteus-ws-client/models/index.d.ts +55 -0
- package/dist/picteus-ws-client/models/index.js +57 -0
- package/dist/picteus-ws-client/runtime.d.ts +184 -0
- package/dist/picteus-ws-client/runtime.js +333 -0
- package/dist/picteusExtension.d.ts +145 -0
- package/dist/picteusExtension.js +302 -0
- package/package.json +53 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.6
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ExtensionSettings interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfExtensionSettings(value) {
|
|
18
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ExtensionSettingsFromJSON(json) {
|
|
23
|
+
return ExtensionSettingsFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ExtensionSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'value': json['value'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function ExtensionSettingsToJSON(json) {
|
|
34
|
+
return ExtensionSettingsToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ExtensionSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'value': value['value'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.6
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The status of the extension
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ExtensionStatus: {
|
|
17
|
+
readonly Enabled: "enabled";
|
|
18
|
+
readonly Paused: "paused";
|
|
19
|
+
};
|
|
20
|
+
export type ExtensionStatus = typeof ExtensionStatus[keyof typeof ExtensionStatus];
|
|
21
|
+
export declare function instanceOfExtensionStatus(value: any): boolean;
|
|
22
|
+
export declare function ExtensionStatusFromJSON(json: any): ExtensionStatus;
|
|
23
|
+
export declare function ExtensionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtensionStatus;
|
|
24
|
+
export declare function ExtensionStatusToJSON(value?: ExtensionStatus | null): any;
|
|
25
|
+
export declare function ExtensionStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ExtensionStatus;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.6
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The status of the extension
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ExtensionStatus = {
|
|
19
|
+
Enabled: 'enabled',
|
|
20
|
+
Paused: 'paused'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfExtensionStatus(value) {
|
|
23
|
+
for (const key in ExtensionStatus) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(ExtensionStatus, key)) {
|
|
25
|
+
if (ExtensionStatus[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function ExtensionStatusFromJSON(json) {
|
|
33
|
+
return ExtensionStatusFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ExtensionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function ExtensionStatusToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function ExtensionStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.6
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ConfigurationExtensionCommand } from './ConfigurationExtensionCommand.js';
|
|
13
|
+
import type { ConfigurationCapability } from './ConfigurationCapability.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ExtensionsConfiguration
|
|
18
|
+
*/
|
|
19
|
+
export interface ExtensionsConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* The capabilities
|
|
22
|
+
* @type {Array<ConfigurationCapability>}
|
|
23
|
+
* @memberof ExtensionsConfiguration
|
|
24
|
+
*/
|
|
25
|
+
capabilities: Array<ConfigurationCapability>;
|
|
26
|
+
/**
|
|
27
|
+
* The commands
|
|
28
|
+
* @type {Array<ConfigurationExtensionCommand>}
|
|
29
|
+
* @memberof ExtensionsConfiguration
|
|
30
|
+
*/
|
|
31
|
+
commands: Array<ConfigurationExtensionCommand>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ExtensionsConfiguration interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfExtensionsConfiguration(value: object): value is ExtensionsConfiguration;
|
|
37
|
+
export declare function ExtensionsConfigurationFromJSON(json: any): ExtensionsConfiguration;
|
|
38
|
+
export declare function ExtensionsConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtensionsConfiguration;
|
|
39
|
+
export declare function ExtensionsConfigurationToJSON(json: any): ExtensionsConfiguration;
|
|
40
|
+
export declare function ExtensionsConfigurationToJSONTyped(value?: ExtensionsConfiguration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.6
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ConfigurationExtensionCommandFromJSON, ConfigurationExtensionCommandToJSON, } from './ConfigurationExtensionCommand.js';
|
|
15
|
+
import { ConfigurationCapabilityFromJSON, ConfigurationCapabilityToJSON, } from './ConfigurationCapability.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the ExtensionsConfiguration interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfExtensionsConfiguration(value) {
|
|
20
|
+
if (!('capabilities' in value) || value['capabilities'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('commands' in value) || value['commands'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ExtensionsConfigurationFromJSON(json) {
|
|
27
|
+
return ExtensionsConfigurationFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ExtensionsConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'capabilities': (json['capabilities'].map(ConfigurationCapabilityFromJSON)),
|
|
35
|
+
'commands': (json['commands'].map(ConfigurationExtensionCommandFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function ExtensionsConfigurationToJSON(json) {
|
|
39
|
+
return ExtensionsConfigurationToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ExtensionsConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'capabilities': (value['capabilities'].map(ConfigurationCapabilityToJSON)),
|
|
47
|
+
'commands': (value['commands'].map(ConfigurationExtensionCommandToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.6
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ExtensionImageTag } from './ExtensionImageTag.js';
|
|
13
|
+
import type { ImageDimensions } from './ImageDimensions.js';
|
|
14
|
+
import type { ImageMetadata } from './ImageMetadata.js';
|
|
15
|
+
import type { Dates } from './Dates.js';
|
|
16
|
+
import type { ImageGenerator } from './ImageGenerator.js';
|
|
17
|
+
import type { ImageFeature } from './ImageFeature.js';
|
|
18
|
+
import type { ImageFormat } from './ImageFormat.js';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface Image
|
|
23
|
+
*/
|
|
24
|
+
export interface Image {
|
|
25
|
+
/**
|
|
26
|
+
* The entity creation date
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof Image
|
|
29
|
+
*/
|
|
30
|
+
creationDate: number;
|
|
31
|
+
/**
|
|
32
|
+
* The entity last modification date
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof Image
|
|
35
|
+
*/
|
|
36
|
+
modificationDate: number;
|
|
37
|
+
/**
|
|
38
|
+
* The unique identifier of the image
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Image
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The unique identifier of the repository it belongs to
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Image
|
|
47
|
+
*/
|
|
48
|
+
repositoryId: string;
|
|
49
|
+
/**
|
|
50
|
+
* The unique identifier of the image parent
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Image
|
|
53
|
+
*/
|
|
54
|
+
parentId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The image name
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Image
|
|
59
|
+
*/
|
|
60
|
+
name: string;
|
|
61
|
+
/**
|
|
62
|
+
* The image format
|
|
63
|
+
* @type {ImageFormat}
|
|
64
|
+
* @memberof Image
|
|
65
|
+
*/
|
|
66
|
+
format: ImageFormat;
|
|
67
|
+
/**
|
|
68
|
+
* The image MIME type
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof Image
|
|
71
|
+
*/
|
|
72
|
+
mimeType: string;
|
|
73
|
+
/**
|
|
74
|
+
* The image URL
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof Image
|
|
77
|
+
*/
|
|
78
|
+
url: string;
|
|
79
|
+
/**
|
|
80
|
+
* The image source URL
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof Image
|
|
83
|
+
*/
|
|
84
|
+
sourceUrl?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The image size in bytes
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof Image
|
|
89
|
+
*/
|
|
90
|
+
sizeInBytes: number;
|
|
91
|
+
/**
|
|
92
|
+
* The image dimensions
|
|
93
|
+
* @type {ImageDimensions}
|
|
94
|
+
* @memberof Image
|
|
95
|
+
*/
|
|
96
|
+
dimensions: ImageDimensions;
|
|
97
|
+
/**
|
|
98
|
+
* The image file dates
|
|
99
|
+
* @type {Dates}
|
|
100
|
+
* @memberof Image
|
|
101
|
+
*/
|
|
102
|
+
fileDates: Dates;
|
|
103
|
+
/**
|
|
104
|
+
* The pieces of software used to generate the image
|
|
105
|
+
* @type {Array<ImageGenerator>}
|
|
106
|
+
* @memberof Image
|
|
107
|
+
*/
|
|
108
|
+
generators: Array<ImageGenerator>;
|
|
109
|
+
/**
|
|
110
|
+
* The image metadata
|
|
111
|
+
* @type {ImageMetadata}
|
|
112
|
+
* @memberof Image
|
|
113
|
+
*/
|
|
114
|
+
metadata: ImageMetadata;
|
|
115
|
+
/**
|
|
116
|
+
* The image features
|
|
117
|
+
* @type {Array<ImageFeature>}
|
|
118
|
+
* @memberof Image
|
|
119
|
+
*/
|
|
120
|
+
features: Array<ImageFeature>;
|
|
121
|
+
/**
|
|
122
|
+
* The image tags
|
|
123
|
+
* @type {Array<ExtensionImageTag>}
|
|
124
|
+
* @memberof Image
|
|
125
|
+
*/
|
|
126
|
+
tags: Array<ExtensionImageTag>;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Check if a given object implements the Image interface.
|
|
130
|
+
*/
|
|
131
|
+
export declare function instanceOfImage(value: object): value is Image;
|
|
132
|
+
export declare function ImageFromJSON(json: any): Image;
|
|
133
|
+
export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
|
|
134
|
+
export declare function ImageToJSON(json: any): Image;
|
|
135
|
+
export declare function ImageToJSONTyped(value?: Image | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.6
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ExtensionImageTagFromJSON, ExtensionImageTagToJSON, } from './ExtensionImageTag.js';
|
|
15
|
+
import { ImageDimensionsFromJSON, ImageDimensionsToJSON, } from './ImageDimensions.js';
|
|
16
|
+
import { ImageMetadataFromJSON, ImageMetadataToJSON, } from './ImageMetadata.js';
|
|
17
|
+
import { DatesFromJSON, DatesToJSON, } from './Dates.js';
|
|
18
|
+
import { ImageGeneratorFromJSON, ImageGeneratorToJSON, } from './ImageGenerator.js';
|
|
19
|
+
import { ImageFeatureFromJSON, ImageFeatureToJSON, } from './ImageFeature.js';
|
|
20
|
+
import { ImageFormatFromJSON, ImageFormatToJSON, } from './ImageFormat.js';
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Image interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfImage(value) {
|
|
25
|
+
if (!('creationDate' in value) || value['creationDate'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('modificationDate' in value) || value['modificationDate'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('repositoryId' in value) || value['repositoryId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('format' in value) || value['format'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('sizeInBytes' in value) || value['sizeInBytes'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('dimensions' in value) || value['dimensions'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('fileDates' in value) || value['fileDates'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('generators' in value) || value['generators'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('features' in value) || value['features'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
export function ImageFromJSON(json) {
|
|
58
|
+
return ImageFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
export function ImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'creationDate': json['creationDate'],
|
|
66
|
+
'modificationDate': json['modificationDate'],
|
|
67
|
+
'id': json['id'],
|
|
68
|
+
'repositoryId': json['repositoryId'],
|
|
69
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'format': ImageFormatFromJSON(json['format']),
|
|
72
|
+
'mimeType': json['mimeType'],
|
|
73
|
+
'url': json['url'],
|
|
74
|
+
'sourceUrl': json['sourceUrl'] == null ? undefined : json['sourceUrl'],
|
|
75
|
+
'sizeInBytes': json['sizeInBytes'],
|
|
76
|
+
'dimensions': ImageDimensionsFromJSON(json['dimensions']),
|
|
77
|
+
'fileDates': DatesFromJSON(json['fileDates']),
|
|
78
|
+
'generators': (json['generators'].map(ImageGeneratorFromJSON)),
|
|
79
|
+
'metadata': ImageMetadataFromJSON(json['metadata']),
|
|
80
|
+
'features': (json['features'].map(ImageFeatureFromJSON)),
|
|
81
|
+
'tags': (json['tags'].map(ExtensionImageTagFromJSON)),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export function ImageToJSON(json) {
|
|
85
|
+
return ImageToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
export function ImageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
'creationDate': value['creationDate'],
|
|
93
|
+
'modificationDate': value['modificationDate'],
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'repositoryId': value['repositoryId'],
|
|
96
|
+
'parentId': value['parentId'],
|
|
97
|
+
'name': value['name'],
|
|
98
|
+
'format': ImageFormatToJSON(value['format']),
|
|
99
|
+
'mimeType': value['mimeType'],
|
|
100
|
+
'url': value['url'],
|
|
101
|
+
'sourceUrl': value['sourceUrl'],
|
|
102
|
+
'sizeInBytes': value['sizeInBytes'],
|
|
103
|
+
'dimensions': ImageDimensionsToJSON(value['dimensions']),
|
|
104
|
+
'fileDates': DatesToJSON(value['fileDates']),
|
|
105
|
+
'generators': (value['generators'].map(ImageGeneratorToJSON)),
|
|
106
|
+
'metadata': ImageMetadataToJSON(value['metadata']),
|
|
107
|
+
'features': (value['features'].map(ImageFeatureToJSON)),
|
|
108
|
+
'tags': (value['tags'].map(ExtensionImageTagToJSON)),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.6
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ImageDimensions
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageDimensions {
|
|
18
|
+
/**
|
|
19
|
+
* The image width in pixels
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ImageDimensions
|
|
22
|
+
*/
|
|
23
|
+
width: number;
|
|
24
|
+
/**
|
|
25
|
+
* The image height in pixels
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ImageDimensions
|
|
28
|
+
*/
|
|
29
|
+
height: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ImageDimensions interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfImageDimensions(value: object): value is ImageDimensions;
|
|
35
|
+
export declare function ImageDimensionsFromJSON(json: any): ImageDimensions;
|
|
36
|
+
export declare function ImageDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageDimensions;
|
|
37
|
+
export declare function ImageDimensionsToJSON(json: any): ImageDimensions;
|
|
38
|
+
export declare function ImageDimensionsToJSONTyped(value?: ImageDimensions | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.6
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ImageDimensions interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfImageDimensions(value) {
|
|
18
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ImageDimensionsFromJSON(json) {
|
|
25
|
+
return ImageDimensionsFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ImageDimensionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'width': json['width'],
|
|
33
|
+
'height': json['height'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ImageDimensionsToJSON(json) {
|
|
37
|
+
return ImageDimensionsToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ImageDimensionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'width': value['width'],
|
|
45
|
+
'height': value['height'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.6
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ImageSummary } from './ImageSummary.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ImageDistance
|
|
17
|
+
*/
|
|
18
|
+
export interface ImageDistance {
|
|
19
|
+
/**
|
|
20
|
+
* The distance of the image to the embeddings
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ImageDistance
|
|
23
|
+
*/
|
|
24
|
+
distance: number;
|
|
25
|
+
/**
|
|
26
|
+
* The image summary
|
|
27
|
+
* @type {ImageSummary}
|
|
28
|
+
* @memberof ImageDistance
|
|
29
|
+
*/
|
|
30
|
+
image: ImageSummary;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ImageDistance interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfImageDistance(value: object): value is ImageDistance;
|
|
36
|
+
export declare function ImageDistanceFromJSON(json: any): ImageDistance;
|
|
37
|
+
export declare function ImageDistanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageDistance;
|
|
38
|
+
export declare function ImageDistanceToJSON(json: any): ImageDistance;
|
|
39
|
+
export declare function ImageDistanceToJSONTyped(value?: ImageDistance | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.6
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ImageSummaryFromJSON, ImageSummaryToJSON, } from './ImageSummary.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ImageDistance interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfImageDistance(value) {
|
|
19
|
+
if (!('distance' in value) || value['distance'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('image' in value) || value['image'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ImageDistanceFromJSON(json) {
|
|
26
|
+
return ImageDistanceFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ImageDistanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'distance': json['distance'],
|
|
34
|
+
'image': ImageSummaryFromJSON(json['image']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ImageDistanceToJSON(json) {
|
|
38
|
+
return ImageDistanceToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ImageDistanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'distance': value['distance'],
|
|
46
|
+
'image': ImageSummaryToJSON(value['image']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.6
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ImageEmbeddings
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageEmbeddings {
|
|
18
|
+
/**
|
|
19
|
+
* The image embeddings vector
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof ImageEmbeddings
|
|
22
|
+
*/
|
|
23
|
+
values: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ImageEmbeddings interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfImageEmbeddings(value: object): value is ImageEmbeddings;
|
|
29
|
+
export declare function ImageEmbeddingsFromJSON(json: any): ImageEmbeddings;
|
|
30
|
+
export declare function ImageEmbeddingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageEmbeddings;
|
|
31
|
+
export declare function ImageEmbeddingsToJSON(json: any): ImageEmbeddings;
|
|
32
|
+
export declare function ImageEmbeddingsToJSONTyped(value?: ImageEmbeddings | null, ignoreDiscriminator?: boolean): any;
|