@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.
Files changed (140) hide show
  1. package/README.md +3 -0
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +2 -0
  4. package/dist/picteus-ws-client/apis/AdministrationApi.d.ts +48 -0
  5. package/dist/picteus-ws-client/apis/AdministrationApi.js +45 -0
  6. package/dist/picteus-ws-client/apis/ExperimentApi.d.ts +48 -0
  7. package/dist/picteus-ws-client/apis/ExperimentApi.js +51 -0
  8. package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +410 -0
  9. package/dist/picteus-ws-client/apis/ExtensionApi.js +482 -0
  10. package/dist/picteus-ws-client/apis/ImageApi.d.ts +593 -0
  11. package/dist/picteus-ws-client/apis/ImageApi.js +729 -0
  12. package/dist/picteus-ws-client/apis/ImageAttachmentApi.d.ts +85 -0
  13. package/dist/picteus-ws-client/apis/ImageAttachmentApi.js +105 -0
  14. package/dist/picteus-ws-client/apis/PingApi.d.ts +48 -0
  15. package/dist/picteus-ws-client/apis/PingApi.js +51 -0
  16. package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +385 -0
  17. package/dist/picteus-ws-client/apis/RepositoryApi.js +462 -0
  18. package/dist/picteus-ws-client/apis/SettingsApi.d.ts +76 -0
  19. package/dist/picteus-ws-client/apis/SettingsApi.js +80 -0
  20. package/dist/picteus-ws-client/apis/index.d.ts +8 -0
  21. package/dist/picteus-ws-client/apis/index.js +10 -0
  22. package/dist/picteus-ws-client/index.d.ts +3 -0
  23. package/dist/picteus-ws-client/index.js +5 -0
  24. package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +38 -0
  25. package/dist/picteus-ws-client/models/Automatic1111Instruction.js +47 -0
  26. package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +45 -0
  27. package/dist/picteus-ws-client/models/Automatic1111UserComment.js +50 -0
  28. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +38 -0
  29. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +47 -0
  30. package/dist/picteus-ws-client/models/CommandEntity.d.ts +26 -0
  31. package/dist/picteus-ws-client/models/CommandEntity.js +44 -0
  32. package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +39 -0
  33. package/dist/picteus-ws-client/models/ConfigurationCapability.js +48 -0
  34. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +39 -0
  35. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +48 -0
  36. package/dist/picteus-ws-client/models/Dates.d.ts +38 -0
  37. package/dist/picteus-ws-client/models/Dates.js +47 -0
  38. package/dist/picteus-ws-client/models/Extension.d.ts +40 -0
  39. package/dist/picteus-ws-client/models/Extension.js +49 -0
  40. package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +39 -0
  41. package/dist/picteus-ws-client/models/ExtensionActivity.js +48 -0
  42. package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +26 -0
  43. package/dist/picteus-ws-client/models/ExtensionActivityKind.js +44 -0
  44. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +63 -0
  45. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +64 -0
  46. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +38 -0
  47. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +47 -0
  48. package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +58 -0
  49. package/dist/picteus-ws-client/models/ExtensionImageFeature.js +59 -0
  50. package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +38 -0
  51. package/dist/picteus-ws-client/models/ExtensionImageTag.js +47 -0
  52. package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +32 -0
  53. package/dist/picteus-ws-client/models/ExtensionSettings.js +43 -0
  54. package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +25 -0
  55. package/dist/picteus-ws-client/models/ExtensionStatus.js +43 -0
  56. package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +40 -0
  57. package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +49 -0
  58. package/dist/picteus-ws-client/models/Image.d.ts +135 -0
  59. package/dist/picteus-ws-client/models/Image.js +110 -0
  60. package/dist/picteus-ws-client/models/ImageDimensions.d.ts +38 -0
  61. package/dist/picteus-ws-client/models/ImageDimensions.js +47 -0
  62. package/dist/picteus-ws-client/models/ImageDistance.d.ts +39 -0
  63. package/dist/picteus-ws-client/models/ImageDistance.js +48 -0
  64. package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +32 -0
  65. package/dist/picteus-ws-client/models/ImageEmbeddings.js +43 -0
  66. package/dist/picteus-ws-client/models/ImageFeature.d.ts +52 -0
  67. package/dist/picteus-ws-client/models/ImageFeature.js +55 -0
  68. package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +29 -0
  69. package/dist/picteus-ws-client/models/ImageFeatureFormat.js +47 -0
  70. package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +27 -0
  71. package/dist/picteus-ws-client/models/ImageFeatureType.js +45 -0
  72. package/dist/picteus-ws-client/models/ImageFormat.d.ts +29 -0
  73. package/dist/picteus-ws-client/models/ImageFormat.js +47 -0
  74. package/dist/picteus-ws-client/models/ImageGenerator.d.ts +26 -0
  75. package/dist/picteus-ws-client/models/ImageGenerator.js +44 -0
  76. package/dist/picteus-ws-client/models/ImageMetadata.d.ts +68 -0
  77. package/dist/picteus-ws-client/models/ImageMetadata.js +53 -0
  78. package/dist/picteus-ws-client/models/ImageSummary.d.ts +114 -0
  79. package/dist/picteus-ws-client/models/ImageSummary.js +95 -0
  80. package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +39 -0
  81. package/dist/picteus-ws-client/models/ImageSummaryList.js +48 -0
  82. package/dist/picteus-ws-client/models/Manifest.d.ts +77 -0
  83. package/dist/picteus-ws-client/models/Manifest.js +72 -0
  84. package/dist/picteus-ws-client/models/ManifestCapability.d.ts +33 -0
  85. package/dist/picteus-ws-client/models/ManifestCapability.js +44 -0
  86. package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +27 -0
  87. package/dist/picteus-ws-client/models/ManifestCapabilityId.js +45 -0
  88. package/dist/picteus-ws-client/models/ManifestEvent.d.ts +33 -0
  89. package/dist/picteus-ws-client/models/ManifestEvent.js +51 -0
  90. package/dist/picteus-ws-client/models/ManifestExecution.d.ts +38 -0
  91. package/dist/picteus-ws-client/models/ManifestExecution.js +47 -0
  92. package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +52 -0
  93. package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +57 -0
  94. package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.d.ts +38 -0
  95. package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.js +47 -0
  96. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +39 -0
  97. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +46 -0
  98. package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +54 -0
  99. package/dist/picteus-ws-client/models/ManifestInstructions.js +55 -0
  100. package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +39 -0
  101. package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +48 -0
  102. package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +33 -0
  103. package/dist/picteus-ws-client/models/ManifestRuntime.js +44 -0
  104. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +25 -0
  105. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +43 -0
  106. package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +33 -0
  107. package/dist/picteus-ws-client/models/ManifestUserInterface.js +44 -0
  108. package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +74 -0
  109. package/dist/picteus-ws-client/models/MidjourneyInstructions.js +71 -0
  110. package/dist/picteus-ws-client/models/Repository.d.ts +82 -0
  111. package/dist/picteus-ws-client/models/Repository.js +73 -0
  112. package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +39 -0
  113. package/dist/picteus-ws-client/models/RepositoryActivity.js +48 -0
  114. package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +26 -0
  115. package/dist/picteus-ws-client/models/RepositoryActivityKind.js +44 -0
  116. package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +24 -0
  117. package/dist/picteus-ws-client/models/RepositoryLocationType.js +42 -0
  118. package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +27 -0
  119. package/dist/picteus-ws-client/models/RepositoryStatus.js +45 -0
  120. package/dist/picteus-ws-client/models/SearchCriteria.d.ts +47 -0
  121. package/dist/picteus-ws-client/models/SearchCriteria.js +48 -0
  122. package/dist/picteus-ws-client/models/SearchKeyword.d.ts +50 -0
  123. package/dist/picteus-ws-client/models/SearchKeyword.js +55 -0
  124. package/dist/picteus-ws-client/models/SearchRange.d.ts +38 -0
  125. package/dist/picteus-ws-client/models/SearchRange.js +43 -0
  126. package/dist/picteus-ws-client/models/SearchSorting.d.ts +39 -0
  127. package/dist/picteus-ws-client/models/SearchSorting.js +46 -0
  128. package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +29 -0
  129. package/dist/picteus-ws-client/models/SearchSortingProperty.js +47 -0
  130. package/dist/picteus-ws-client/models/Settings.d.ts +32 -0
  131. package/dist/picteus-ws-client/models/Settings.js +41 -0
  132. package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +26 -0
  133. package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +44 -0
  134. package/dist/picteus-ws-client/models/index.d.ts +55 -0
  135. package/dist/picteus-ws-client/models/index.js +57 -0
  136. package/dist/picteus-ws-client/runtime.d.ts +184 -0
  137. package/dist/picteus-ws-client/runtime.js +333 -0
  138. package/dist/picteusExtension.d.ts +145 -0
  139. package/dist/picteusExtension.js +302 -0
  140. package/package.json +53 -0
@@ -0,0 +1,95 @@
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 { ImageDimensionsFromJSON, ImageDimensionsToJSON, } from './ImageDimensions.js';
15
+ import { DatesFromJSON, DatesToJSON, } from './Dates.js';
16
+ import { ImageGeneratorFromJSON, ImageGeneratorToJSON, } from './ImageGenerator.js';
17
+ import { ImageFormatFromJSON, ImageFormatToJSON, } from './ImageFormat.js';
18
+ /**
19
+ * Check if a given object implements the ImageSummary interface.
20
+ */
21
+ export function instanceOfImageSummary(value) {
22
+ if (!('creationDate' in value) || value['creationDate'] === undefined)
23
+ return false;
24
+ if (!('modificationDate' in value) || value['modificationDate'] === undefined)
25
+ return false;
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('repositoryId' in value) || value['repositoryId'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('format' in value) || value['format'] === undefined)
33
+ return false;
34
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
35
+ return false;
36
+ if (!('url' in value) || value['url'] === undefined)
37
+ return false;
38
+ if (!('sizeInBytes' in value) || value['sizeInBytes'] === undefined)
39
+ return false;
40
+ if (!('dimensions' in value) || value['dimensions'] === undefined)
41
+ return false;
42
+ if (!('fileDates' in value) || value['fileDates'] === undefined)
43
+ return false;
44
+ if (!('generators' in value) || value['generators'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ export function ImageSummaryFromJSON(json) {
49
+ return ImageSummaryFromJSONTyped(json, false);
50
+ }
51
+ export function ImageSummaryFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'creationDate': json['creationDate'],
57
+ 'modificationDate': json['modificationDate'],
58
+ 'id': json['id'],
59
+ 'repositoryId': json['repositoryId'],
60
+ 'parentId': json['parentId'] == null ? undefined : json['parentId'],
61
+ 'name': json['name'],
62
+ 'format': ImageFormatFromJSON(json['format']),
63
+ 'mimeType': json['mimeType'],
64
+ 'url': json['url'],
65
+ 'sourceUrl': json['sourceUrl'] == null ? undefined : json['sourceUrl'],
66
+ 'sizeInBytes': json['sizeInBytes'],
67
+ 'dimensions': ImageDimensionsFromJSON(json['dimensions']),
68
+ 'fileDates': DatesFromJSON(json['fileDates']),
69
+ 'generators': (json['generators'].map(ImageGeneratorFromJSON)),
70
+ };
71
+ }
72
+ export function ImageSummaryToJSON(json) {
73
+ return ImageSummaryToJSONTyped(json, false);
74
+ }
75
+ export function ImageSummaryToJSONTyped(value, ignoreDiscriminator = false) {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+ 'creationDate': value['creationDate'],
81
+ 'modificationDate': value['modificationDate'],
82
+ 'id': value['id'],
83
+ 'repositoryId': value['repositoryId'],
84
+ 'parentId': value['parentId'],
85
+ 'name': value['name'],
86
+ 'format': ImageFormatToJSON(value['format']),
87
+ 'mimeType': value['mimeType'],
88
+ 'url': value['url'],
89
+ 'sourceUrl': value['sourceUrl'],
90
+ 'sizeInBytes': value['sizeInBytes'],
91
+ 'dimensions': ImageDimensionsToJSON(value['dimensions']),
92
+ 'fileDates': DatesToJSON(value['fileDates']),
93
+ 'generators': (value['generators'].map(ImageGeneratorToJSON)),
94
+ };
95
+ }
@@ -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 ImageSummaryList
17
+ */
18
+ export interface ImageSummaryList {
19
+ /**
20
+ * The image entities
21
+ * @type {Array<ImageSummary>}
22
+ * @memberof ImageSummaryList
23
+ */
24
+ entities: Array<ImageSummary>;
25
+ /**
26
+ * The total number of image entities
27
+ * @type {number}
28
+ * @memberof ImageSummaryList
29
+ */
30
+ totalCount: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ImageSummaryList interface.
34
+ */
35
+ export declare function instanceOfImageSummaryList(value: object): value is ImageSummaryList;
36
+ export declare function ImageSummaryListFromJSON(json: any): ImageSummaryList;
37
+ export declare function ImageSummaryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageSummaryList;
38
+ export declare function ImageSummaryListToJSON(json: any): ImageSummaryList;
39
+ export declare function ImageSummaryListToJSONTyped(value?: ImageSummaryList | 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 ImageSummaryList interface.
17
+ */
18
+ export function instanceOfImageSummaryList(value) {
19
+ if (!('entities' in value) || value['entities'] === undefined)
20
+ return false;
21
+ if (!('totalCount' in value) || value['totalCount'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function ImageSummaryListFromJSON(json) {
26
+ return ImageSummaryListFromJSONTyped(json, false);
27
+ }
28
+ export function ImageSummaryListFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'entities': (json['entities'].map(ImageSummaryFromJSON)),
34
+ 'totalCount': json['totalCount'],
35
+ };
36
+ }
37
+ export function ImageSummaryListToJSON(json) {
38
+ return ImageSummaryListToJSONTyped(json, false);
39
+ }
40
+ export function ImageSummaryListToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'entities': (value['entities'].map(ImageSummaryToJSON)),
46
+ 'totalCount': value['totalCount'],
47
+ };
48
+ }
@@ -0,0 +1,77 @@
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 { ManifestUserInterface } from './ManifestUserInterface.js';
13
+ import type { ManifestRuntime } from './ManifestRuntime.js';
14
+ import type { ManifestInstructions } from './ManifestInstructions.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface Manifest
19
+ */
20
+ export interface Manifest {
21
+ /**
22
+ * The identifier of the extension
23
+ * @type {string}
24
+ * @memberof Manifest
25
+ */
26
+ id: string;
27
+ /**
28
+ * The version of the extension, which should follow the semver convention
29
+ * @type {string}
30
+ * @memberof Manifest
31
+ */
32
+ version: string;
33
+ /**
34
+ * The name of the extension
35
+ * @type {string}
36
+ * @memberof Manifest
37
+ */
38
+ name: string;
39
+ /**
40
+ * The description of the extension's purpose
41
+ * @type {string}
42
+ * @memberof Manifest
43
+ */
44
+ description: string;
45
+ /**
46
+ * The required runtime environments
47
+ * @type {Array<ManifestRuntime>}
48
+ * @memberof Manifest
49
+ */
50
+ runtimes: Array<ManifestRuntime>;
51
+ /**
52
+ * The instructions regarding the way the extension handle events
53
+ * @type {Array<ManifestInstructions>}
54
+ * @memberof Manifest
55
+ */
56
+ instructions: Array<ManifestInstructions>;
57
+ /**
58
+ * The extension settings definition
59
+ * @type {object}
60
+ * @memberof Manifest
61
+ */
62
+ settings: object;
63
+ /**
64
+ * The User Interface definition of the extensions
65
+ * @type {ManifestUserInterface}
66
+ * @memberof Manifest
67
+ */
68
+ ui?: ManifestUserInterface;
69
+ }
70
+ /**
71
+ * Check if a given object implements the Manifest interface.
72
+ */
73
+ export declare function instanceOfManifest(value: object): value is Manifest;
74
+ export declare function ManifestFromJSON(json: any): Manifest;
75
+ export declare function ManifestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Manifest;
76
+ export declare function ManifestToJSON(json: any): Manifest;
77
+ export declare function ManifestToJSONTyped(value?: Manifest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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 { ManifestUserInterfaceFromJSON, ManifestUserInterfaceToJSON, } from './ManifestUserInterface.js';
15
+ import { ManifestRuntimeFromJSON, ManifestRuntimeToJSON, } from './ManifestRuntime.js';
16
+ import { ManifestInstructionsFromJSON, ManifestInstructionsToJSON, } from './ManifestInstructions.js';
17
+ /**
18
+ * Check if a given object implements the Manifest interface.
19
+ */
20
+ export function instanceOfManifest(value) {
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('version' in value) || value['version'] === undefined)
24
+ return false;
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('description' in value) || value['description'] === undefined)
28
+ return false;
29
+ if (!('runtimes' in value) || value['runtimes'] === undefined)
30
+ return false;
31
+ if (!('instructions' in value) || value['instructions'] === undefined)
32
+ return false;
33
+ if (!('settings' in value) || value['settings'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ export function ManifestFromJSON(json) {
38
+ return ManifestFromJSONTyped(json, false);
39
+ }
40
+ export function ManifestFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'version': json['version'],
47
+ 'name': json['name'],
48
+ 'description': json['description'],
49
+ 'runtimes': (json['runtimes'].map(ManifestRuntimeFromJSON)),
50
+ 'instructions': (json['instructions'].map(ManifestInstructionsFromJSON)),
51
+ 'settings': json['settings'],
52
+ 'ui': json['ui'] == null ? undefined : ManifestUserInterfaceFromJSON(json['ui']),
53
+ };
54
+ }
55
+ export function ManifestToJSON(json) {
56
+ return ManifestToJSONTyped(json, false);
57
+ }
58
+ export function ManifestToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'version': value['version'],
65
+ 'name': value['name'],
66
+ 'description': value['description'],
67
+ 'runtimes': (value['runtimes'].map(ManifestRuntimeToJSON)),
68
+ 'instructions': (value['instructions'].map(ManifestInstructionsToJSON)),
69
+ 'settings': value['settings'],
70
+ 'ui': ManifestUserInterfaceToJSON(value['ui']),
71
+ };
72
+ }
@@ -0,0 +1,33 @@
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 { ManifestCapabilityId } from './ManifestCapabilityId.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ManifestCapability
17
+ */
18
+ export interface ManifestCapability {
19
+ /**
20
+ * The identifier of the extension capability
21
+ * @type {ManifestCapabilityId}
22
+ * @memberof ManifestCapability
23
+ */
24
+ id: ManifestCapabilityId;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ManifestCapability interface.
28
+ */
29
+ export declare function instanceOfManifestCapability(value: object): value is ManifestCapability;
30
+ export declare function ManifestCapabilityFromJSON(json: any): ManifestCapability;
31
+ export declare function ManifestCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestCapability;
32
+ export declare function ManifestCapabilityToJSON(json: any): ManifestCapability;
33
+ export declare function ManifestCapabilityToJSONTyped(value?: ManifestCapability | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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 { ManifestCapabilityIdFromJSON, ManifestCapabilityIdToJSON, } from './ManifestCapabilityId.js';
15
+ /**
16
+ * Check if a given object implements the ManifestCapability interface.
17
+ */
18
+ export function instanceOfManifestCapability(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ManifestCapabilityFromJSON(json) {
24
+ return ManifestCapabilityFromJSONTyped(json, false);
25
+ }
26
+ export function ManifestCapabilityFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'id': ManifestCapabilityIdFromJSON(json['id']),
32
+ };
33
+ }
34
+ export function ManifestCapabilityToJSON(json) {
35
+ return ManifestCapabilityToJSONTyped(json, false);
36
+ }
37
+ export function ManifestCapabilityToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'id': ManifestCapabilityIdToJSON(value['id']),
43
+ };
44
+ }
@@ -0,0 +1,27 @@
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 identifier of the extension capability
14
+ * @export
15
+ */
16
+ export declare const ManifestCapabilityId: {
17
+ readonly ImageFeatures: "image.features";
18
+ readonly ImageEmbeddings: "image.embeddings";
19
+ readonly ImageTags: "image.tags";
20
+ readonly TextEmbeddings: "text.embeddings";
21
+ };
22
+ export type ManifestCapabilityId = typeof ManifestCapabilityId[keyof typeof ManifestCapabilityId];
23
+ export declare function instanceOfManifestCapabilityId(value: any): boolean;
24
+ export declare function ManifestCapabilityIdFromJSON(json: any): ManifestCapabilityId;
25
+ export declare function ManifestCapabilityIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestCapabilityId;
26
+ export declare function ManifestCapabilityIdToJSON(value?: ManifestCapabilityId | null): any;
27
+ export declare function ManifestCapabilityIdToJSONTyped(value: any, ignoreDiscriminator: boolean): ManifestCapabilityId;
@@ -0,0 +1,45 @@
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 identifier of the extension capability
16
+ * @export
17
+ */
18
+ export const ManifestCapabilityId = {
19
+ ImageFeatures: 'image.features',
20
+ ImageEmbeddings: 'image.embeddings',
21
+ ImageTags: 'image.tags',
22
+ TextEmbeddings: 'text.embeddings'
23
+ };
24
+ export function instanceOfManifestCapabilityId(value) {
25
+ for (const key in ManifestCapabilityId) {
26
+ if (Object.prototype.hasOwnProperty.call(ManifestCapabilityId, key)) {
27
+ if (ManifestCapabilityId[key] === value) {
28
+ return true;
29
+ }
30
+ }
31
+ }
32
+ return false;
33
+ }
34
+ export function ManifestCapabilityIdFromJSON(json) {
35
+ return ManifestCapabilityIdFromJSONTyped(json, false);
36
+ }
37
+ export function ManifestCapabilityIdFromJSONTyped(json, ignoreDiscriminator) {
38
+ return json;
39
+ }
40
+ export function ManifestCapabilityIdToJSON(value) {
41
+ return value;
42
+ }
43
+ export function ManifestCapabilityIdToJSONTyped(value, ignoreDiscriminator) {
44
+ return value;
45
+ }
@@ -0,0 +1,33 @@
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 events which will trigger the instructions
14
+ * @export
15
+ */
16
+ export declare const ManifestEvent: {
17
+ readonly ProcessStarted: "process.started";
18
+ readonly ProcessRunCommand: "process.runCommand";
19
+ readonly ImageCreated: "image.created";
20
+ readonly ImageUpdated: "image.updated";
21
+ readonly ImageDeleted: "image.deleted";
22
+ readonly ImageComputeFeatures: "image.computeFeatures";
23
+ readonly ImageComputeEmbeddings: "image.computeEmbeddings";
24
+ readonly ImageComputeTags: "image.computeTags";
25
+ readonly ImageRunCommand: "image.runCommand";
26
+ readonly TextComputeEmbeddings: "text.computeEmbeddings";
27
+ };
28
+ export type ManifestEvent = typeof ManifestEvent[keyof typeof ManifestEvent];
29
+ export declare function instanceOfManifestEvent(value: any): boolean;
30
+ export declare function ManifestEventFromJSON(json: any): ManifestEvent;
31
+ export declare function ManifestEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestEvent;
32
+ export declare function ManifestEventToJSON(value?: ManifestEvent | null): any;
33
+ export declare function ManifestEventToJSONTyped(value: any, ignoreDiscriminator: boolean): ManifestEvent;
@@ -0,0 +1,51 @@
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 events which will trigger the instructions
16
+ * @export
17
+ */
18
+ export const ManifestEvent = {
19
+ ProcessStarted: 'process.started',
20
+ ProcessRunCommand: 'process.runCommand',
21
+ ImageCreated: 'image.created',
22
+ ImageUpdated: 'image.updated',
23
+ ImageDeleted: 'image.deleted',
24
+ ImageComputeFeatures: 'image.computeFeatures',
25
+ ImageComputeEmbeddings: 'image.computeEmbeddings',
26
+ ImageComputeTags: 'image.computeTags',
27
+ ImageRunCommand: 'image.runCommand',
28
+ TextComputeEmbeddings: 'text.computeEmbeddings'
29
+ };
30
+ export function instanceOfManifestEvent(value) {
31
+ for (const key in ManifestEvent) {
32
+ if (Object.prototype.hasOwnProperty.call(ManifestEvent, key)) {
33
+ if (ManifestEvent[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ export function ManifestEventFromJSON(json) {
41
+ return ManifestEventFromJSONTyped(json, false);
42
+ }
43
+ export function ManifestEventFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ export function ManifestEventToJSON(value) {
47
+ return value;
48
+ }
49
+ export function ManifestEventToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -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 ManifestExecution
16
+ */
17
+ export interface ManifestExecution {
18
+ /**
19
+ * The executable to run
20
+ * @type {string}
21
+ * @memberof ManifestExecution
22
+ */
23
+ executable: string;
24
+ /**
25
+ * The arguments to provide to the executable
26
+ * @type {Array<string>}
27
+ * @memberof ManifestExecution
28
+ */
29
+ arguments: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ManifestExecution interface.
33
+ */
34
+ export declare function instanceOfManifestExecution(value: object): value is ManifestExecution;
35
+ export declare function ManifestExecutionFromJSON(json: any): ManifestExecution;
36
+ export declare function ManifestExecutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestExecution;
37
+ export declare function ManifestExecutionToJSON(json: any): ManifestExecution;
38
+ export declare function ManifestExecutionToJSONTyped(value?: ManifestExecution | 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 ManifestExecution interface.
16
+ */
17
+ export function instanceOfManifestExecution(value) {
18
+ if (!('executable' in value) || value['executable'] === undefined)
19
+ return false;
20
+ if (!('arguments' in value) || value['arguments'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ManifestExecutionFromJSON(json) {
25
+ return ManifestExecutionFromJSONTyped(json, false);
26
+ }
27
+ export function ManifestExecutionFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'executable': json['executable'],
33
+ 'arguments': json['arguments'],
34
+ };
35
+ }
36
+ export function ManifestExecutionToJSON(json) {
37
+ return ManifestExecutionToJSONTyped(json, false);
38
+ }
39
+ export function ManifestExecutionToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'executable': value['executable'],
45
+ 'arguments': value['arguments'],
46
+ };
47
+ }