@picteus/extension-sdk 0.5.4 → 0.7.0

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 (175) hide show
  1. package/dist/picteus-ws-client/apis/AdministrationApi.d.ts +1 -1
  2. package/dist/picteus-ws-client/apis/AdministrationApi.js +1 -1
  3. package/dist/picteus-ws-client/apis/ApiSecretApi.d.ts +1 -1
  4. package/dist/picteus-ws-client/apis/ApiSecretApi.js +1 -1
  5. package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +32 -1
  6. package/dist/picteus-ws-client/apis/ExtensionApi.js +42 -1
  7. package/dist/picteus-ws-client/apis/ImageApi.d.ts +1 -1
  8. package/dist/picteus-ws-client/apis/ImageApi.js +1 -1
  9. package/dist/picteus-ws-client/apis/ImageAttachmentApi.d.ts +1 -1
  10. package/dist/picteus-ws-client/apis/ImageAttachmentApi.js +1 -1
  11. package/dist/picteus-ws-client/apis/MiscellaneousApi.d.ts +1 -28
  12. package/dist/picteus-ws-client/apis/MiscellaneousApi.js +1 -32
  13. package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +36 -3
  14. package/dist/picteus-ws-client/apis/RepositoryApi.js +49 -3
  15. package/dist/picteus-ws-client/apis/SettingsApi.d.ts +1 -1
  16. package/dist/picteus-ws-client/apis/SettingsApi.js +1 -1
  17. package/dist/picteus-ws-client/models/ApiSecret.d.ts +1 -1
  18. package/dist/picteus-ws-client/models/ApiSecret.js +1 -1
  19. package/dist/picteus-ws-client/models/ApiSecretSummary.d.ts +1 -1
  20. package/dist/picteus-ws-client/models/ApiSecretSummary.js +1 -1
  21. package/dist/picteus-ws-client/models/ApiSecretType.d.ts +1 -1
  22. package/dist/picteus-ws-client/models/ApiSecretType.js +1 -1
  23. package/dist/picteus-ws-client/models/ApplicationMetadata.d.ts +1 -1
  24. package/dist/picteus-ws-client/models/ApplicationMetadata.js +1 -1
  25. package/dist/picteus-ws-client/models/ApplicationMetadataItem.d.ts +1 -1
  26. package/dist/picteus-ws-client/models/ApplicationMetadataItem.js +1 -1
  27. package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.d.ts +1 -1
  28. package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.js +1 -1
  29. package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +1 -1
  30. package/dist/picteus-ws-client/models/Automatic1111Instruction.js +1 -1
  31. package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +1 -1
  32. package/dist/picteus-ws-client/models/Automatic1111UserComment.js +1 -1
  33. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +1 -1
  34. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +1 -1
  35. package/dist/picteus-ws-client/models/CommandEntity.d.ts +1 -1
  36. package/dist/picteus-ws-client/models/CommandEntity.js +1 -1
  37. package/dist/picteus-ws-client/models/ComputedImageFormat.d.ts +1 -1
  38. package/dist/picteus-ws-client/models/ComputedImageFormat.js +1 -1
  39. package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +1 -1
  40. package/dist/picteus-ws-client/models/ConfigurationCapability.js +1 -1
  41. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +1 -1
  42. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +1 -1
  43. package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
  44. package/dist/picteus-ws-client/models/Dates.js +1 -1
  45. package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
  46. package/dist/picteus-ws-client/models/Extension.js +1 -1
  47. package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
  48. package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
  49. package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +1 -1
  50. package/dist/picteus-ws-client/models/ExtensionActivityKind.js +1 -1
  51. package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +1 -1
  52. package/dist/picteus-ws-client/models/ExtensionAndManual.js +1 -1
  53. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
  54. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
  55. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
  56. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
  57. package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +1 -1
  58. package/dist/picteus-ws-client/models/ExtensionImageFeature.js +1 -1
  59. package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +1 -1
  60. package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
  61. package/dist/picteus-ws-client/models/ExtensionManual.d.ts +1 -1
  62. package/dist/picteus-ws-client/models/ExtensionManual.js +1 -1
  63. package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
  64. package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
  65. package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +1 -1
  66. package/dist/picteus-ws-client/models/ExtensionStatus.js +1 -1
  67. package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
  68. package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
  69. package/dist/picteus-ws-client/models/GenerationRecipe.d.ts +14 -1
  70. package/dist/picteus-ws-client/models/GenerationRecipe.js +11 -1
  71. package/dist/picteus-ws-client/models/GenerationRecipePrompt.d.ts +7 -2
  72. package/dist/picteus-ws-client/models/GenerationRecipePrompt.js +17 -14
  73. package/dist/picteus-ws-client/models/GenerationRecipeSchemaVersions.d.ts +32 -0
  74. package/dist/picteus-ws-client/models/GenerationRecipeSchemaVersions.js +41 -0
  75. package/dist/picteus-ws-client/models/Image.d.ts +4 -4
  76. package/dist/picteus-ws-client/models/Image.js +4 -4
  77. package/dist/picteus-ws-client/models/ImageDimensions.d.ts +1 -1
  78. package/dist/picteus-ws-client/models/ImageDimensions.js +1 -1
  79. package/dist/picteus-ws-client/models/ImageDistance.d.ts +1 -1
  80. package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
  81. package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +1 -1
  82. package/dist/picteus-ws-client/models/ImageEmbeddings.js +1 -1
  83. package/dist/picteus-ws-client/models/ImageFeature.d.ts +1 -1
  84. package/dist/picteus-ws-client/models/ImageFeature.js +1 -1
  85. package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +1 -1
  86. package/dist/picteus-ws-client/models/ImageFeatureFormat.js +1 -1
  87. package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +1 -1
  88. package/dist/picteus-ws-client/models/ImageFeatureType.js +1 -1
  89. package/dist/picteus-ws-client/models/ImageFormat.d.ts +1 -1
  90. package/dist/picteus-ws-client/models/ImageFormat.js +1 -1
  91. package/dist/picteus-ws-client/models/ImageGenerator.d.ts +1 -1
  92. package/dist/picteus-ws-client/models/ImageGenerator.js +1 -1
  93. package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +1 -1
  94. package/dist/picteus-ws-client/models/ImageMediaUrl.js +1 -1
  95. package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
  96. package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
  97. package/dist/picteus-ws-client/models/ImageResizeRender.d.ts +1 -1
  98. package/dist/picteus-ws-client/models/ImageResizeRender.js +1 -1
  99. package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -1
  100. package/dist/picteus-ws-client/models/ImageSummary.js +1 -1
  101. package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +1 -1
  102. package/dist/picteus-ws-client/models/ImageSummaryList.js +1 -1
  103. package/dist/picteus-ws-client/models/InstructionsPrompt.d.ts +39 -0
  104. package/dist/picteus-ws-client/models/InstructionsPrompt.js +48 -0
  105. package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
  106. package/dist/picteus-ws-client/models/Manifest.js +1 -1
  107. package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
  108. package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
  109. package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
  110. package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
  111. package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -1
  112. package/dist/picteus-ws-client/models/ManifestEvent.js +1 -1
  113. package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
  114. package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
  115. package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
  116. package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
  117. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
  118. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
  119. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
  120. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
  121. package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
  122. package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
  123. package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
  124. package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
  125. package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
  126. package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
  127. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
  128. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
  129. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.d.ts +1 -1
  130. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +1 -1
  131. package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
  132. package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
  133. package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +1 -1
  134. package/dist/picteus-ws-client/models/MidjourneyInstructions.js +1 -1
  135. package/dist/picteus-ws-client/models/PromptKind.d.ts +25 -0
  136. package/dist/picteus-ws-client/models/PromptKind.js +43 -0
  137. package/dist/picteus-ws-client/models/Repository.d.ts +1 -1
  138. package/dist/picteus-ws-client/models/Repository.js +1 -1
  139. package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
  140. package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
  141. package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
  142. package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
  143. package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
  144. package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
  145. package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +1 -1
  146. package/dist/picteus-ws-client/models/RepositoryStatus.js +1 -1
  147. package/dist/picteus-ws-client/models/SearchCriteria.d.ts +1 -1
  148. package/dist/picteus-ws-client/models/SearchCriteria.js +1 -1
  149. package/dist/picteus-ws-client/models/SearchKeyword.d.ts +1 -1
  150. package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
  151. package/dist/picteus-ws-client/models/SearchProperties.d.ts +1 -1
  152. package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
  153. package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
  154. package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
  155. package/dist/picteus-ws-client/models/SearchRange.d.ts +1 -1
  156. package/dist/picteus-ws-client/models/SearchRange.js +1 -1
  157. package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
  158. package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
  159. package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +1 -1
  160. package/dist/picteus-ws-client/models/SearchSortingProperty.js +1 -1
  161. package/dist/picteus-ws-client/models/SearchTags.d.ts +1 -1
  162. package/dist/picteus-ws-client/models/SearchTags.js +1 -1
  163. package/dist/picteus-ws-client/models/Settings.d.ts +1 -1
  164. package/dist/picteus-ws-client/models/Settings.js +1 -1
  165. package/dist/picteus-ws-client/models/TextualPrompt.d.ts +9 -2
  166. package/dist/picteus-ws-client/models/TextualPrompt.js +6 -1
  167. package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +1 -1
  168. package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +1 -1
  169. package/dist/picteus-ws-client/models/index.d.ts +3 -0
  170. package/dist/picteus-ws-client/models/index.js +3 -0
  171. package/dist/picteus-ws-client/runtime.d.ts +1 -1
  172. package/dist/picteus-ws-client/runtime.js +1 -1
  173. package/dist/picteusExtension.d.ts +12 -0
  174. package/dist/picteusExtension.js +30 -1
  175. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.7.0
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 kind of prompt
14
+ * @export
15
+ */
16
+ export declare const PromptKind: {
17
+ readonly Textual: "textual";
18
+ readonly Instructions: "instructions";
19
+ };
20
+ export type PromptKind = typeof PromptKind[keyof typeof PromptKind];
21
+ export declare function instanceOfPromptKind(value: any): boolean;
22
+ export declare function PromptKindFromJSON(json: any): PromptKind;
23
+ export declare function PromptKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): PromptKind;
24
+ export declare function PromptKindToJSON(value?: PromptKind | null): any;
25
+ export declare function PromptKindToJSONTyped(value: any, ignoreDiscriminator: boolean): PromptKind;
@@ -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.7.0
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 kind of prompt
16
+ * @export
17
+ */
18
+ export const PromptKind = {
19
+ Textual: 'textual',
20
+ Instructions: 'instructions'
21
+ };
22
+ export function instanceOfPromptKind(value) {
23
+ for (const key in PromptKind) {
24
+ if (Object.prototype.hasOwnProperty.call(PromptKind, key)) {
25
+ if (PromptKind[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function PromptKindFromJSON(json) {
33
+ return PromptKindFromJSONTyped(json, false);
34
+ }
35
+ export function PromptKindFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function PromptKindToJSON(value) {
39
+ return value;
40
+ }
41
+ export function PromptKindToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,19 +2,26 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { PromptKind } from './PromptKind.js';
12
13
  /**
13
- * The prompt of an AI-based generated image
14
+ * The textual prompt of an AI-based generated image
14
15
  * @export
15
16
  * @interface TextualPrompt
16
17
  */
17
18
  export interface TextualPrompt {
19
+ /**
20
+ * The kind of prompt
21
+ * @type {PromptKind}
22
+ * @memberof TextualPrompt
23
+ */
24
+ kind: PromptKind;
18
25
  /**
19
26
  * The textual prompt
20
27
  * @type {string}
@@ -4,17 +4,20 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { PromptKindFromJSON, PromptKindToJSON, } from './PromptKind.js';
14
15
  /**
15
16
  * Check if a given object implements the TextualPrompt interface.
16
17
  */
17
18
  export function instanceOfTextualPrompt(value) {
19
+ if (!('kind' in value) || value['kind'] === undefined)
20
+ return false;
18
21
  if (!('text' in value) || value['text'] === undefined)
19
22
  return false;
20
23
  return true;
@@ -27,6 +30,7 @@ export function TextualPromptFromJSONTyped(json, ignoreDiscriminator) {
27
30
  return json;
28
31
  }
29
32
  return {
33
+ 'kind': PromptKindFromJSON(json['kind']),
30
34
  'text': json['text'],
31
35
  };
32
36
  }
@@ -38,6 +42,7 @@ export function TextualPromptToJSONTyped(value, ignoreDiscriminator = false) {
38
42
  return value;
39
43
  }
40
44
  return {
45
+ 'kind': PromptKindToJSON(value['kind']),
41
46
  'text': value['text'],
42
47
  };
43
48
  }
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,6 +26,7 @@ export * from './ExtensionStatus.js';
26
26
  export * from './ExtensionsConfiguration.js';
27
27
  export * from './GenerationRecipe.js';
28
28
  export * from './GenerationRecipePrompt.js';
29
+ export * from './GenerationRecipeSchemaVersions.js';
29
30
  export * from './Image.js';
30
31
  export * from './ImageDimensions.js';
31
32
  export * from './ImageDistance.js';
@@ -40,6 +41,7 @@ export * from './ImageMetadata.js';
40
41
  export * from './ImageResizeRender.js';
41
42
  export * from './ImageSummary.js';
42
43
  export * from './ImageSummaryList.js';
44
+ export * from './InstructionsPrompt.js';
43
45
  export * from './Manifest.js';
44
46
  export * from './ManifestCapability.js';
45
47
  export * from './ManifestCapabilityId.js';
@@ -55,6 +57,7 @@ export * from './ManifestRuntimeEnvironment.js';
55
57
  export * from './ManifestThrottlingPolicy.js';
56
58
  export * from './ManifestUserInterface.js';
57
59
  export * from './MidjourneyInstructions.js';
60
+ export * from './PromptKind.js';
58
61
  export * from './Repository.js';
59
62
  export * from './RepositoryActivity.js';
60
63
  export * from './RepositoryActivityKind.js';
@@ -28,6 +28,7 @@ export * from './ExtensionStatus.js';
28
28
  export * from './ExtensionsConfiguration.js';
29
29
  export * from './GenerationRecipe.js';
30
30
  export * from './GenerationRecipePrompt.js';
31
+ export * from './GenerationRecipeSchemaVersions.js';
31
32
  export * from './Image.js';
32
33
  export * from './ImageDimensions.js';
33
34
  export * from './ImageDistance.js';
@@ -42,6 +43,7 @@ export * from './ImageMetadata.js';
42
43
  export * from './ImageResizeRender.js';
43
44
  export * from './ImageSummary.js';
44
45
  export * from './ImageSummaryList.js';
46
+ export * from './InstructionsPrompt.js';
45
47
  export * from './Manifest.js';
46
48
  export * from './ManifestCapability.js';
47
49
  export * from './ManifestCapabilityId.js';
@@ -57,6 +59,7 @@ export * from './ManifestRuntimeEnvironment.js';
57
59
  export * from './ManifestThrottlingPolicy.js';
58
60
  export * from './ManifestUserInterface.js';
59
61
  export * from './MidjourneyInstructions.js';
62
+ export * from './PromptKind.js';
60
63
  export * from './Repository.js';
61
64
  export * from './RepositoryActivity.js';
62
65
  export * from './RepositoryActivityKind.js';
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -81,6 +81,18 @@ export declare enum NotificationEvent {
81
81
  ImageRunCommand = "image.runCommand",
82
82
  TextComputeEmbeddings = "text.computeEmbeddings"
83
83
  }
84
+ export declare class Helper {
85
+ static readonly GENERATION_RECIPE_SCHEMA_VERSION = 1;
86
+ }
87
+ export interface ApiCallErrorDetails {
88
+ status: number;
89
+ code: number;
90
+ message: string;
91
+ }
92
+ export declare class ApiCallError extends Error {
93
+ readonly details: ApiCallErrorDetails;
94
+ constructor(details: ApiCallErrorDetails);
95
+ }
84
96
  interface LeveledLogMethod {
85
97
  (message: string, ...meta: any[]): Logger;
86
98
  (message: any): Logger;
@@ -49,6 +49,16 @@ export var NotificationEvent;
49
49
  NotificationEvent["TextComputeEmbeddings"] = "text.computeEmbeddings";
50
50
  })(NotificationEvent || (NotificationEvent = {}));
51
51
  const extensionSettingsEvent = "extension.settings";
52
+ export class Helper {
53
+ static GENERATION_RECIPE_SCHEMA_VERSION = 1;
54
+ }
55
+ export class ApiCallError extends Error {
56
+ details;
57
+ constructor(details) {
58
+ super();
59
+ this.details = details;
60
+ }
61
+ }
52
62
  const dateToString = (date) => {
53
63
  function padNumber(number, length) {
54
64
  return number.toString().padStart(length, "0");
@@ -327,7 +337,26 @@ export class PicteusExtension {
327
337
  }
328
338
  return new Configuration({
329
339
  basePath: this.webServicesBaseUrl,
330
- apiKey: this.apiKey
340
+ apiKey: this.apiKey,
341
+ fetchApi: async (input, init) => {
342
+ const response = await fetch(input, init);
343
+ if (response.status < 400) {
344
+ return Promise.resolve(response);
345
+ }
346
+ let code = -1;
347
+ let message;
348
+ const contentType = response.headers.get("content-type");
349
+ if (contentType !== null && contentType.includes("application/json") === true) {
350
+ const json = await response.json();
351
+ code = json.code;
352
+ message = json.message;
353
+ }
354
+ else {
355
+ // The result is not a JSON content
356
+ message = await response.text();
357
+ }
358
+ return Promise.reject(new ApiCallError({ status: response.status, code, message }));
359
+ }
331
360
  });
332
361
  }
333
362
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picteus/extension-sdk",
3
- "version": "0.5.4",
3
+ "version": "0.7.0",
4
4
  "productName": "Picteus TypeScript SDK",
5
5
  "description": "The Picteus extension TypeScript SDK.",
6
6
  "keywords": [