@picteus/extension-sdk 0.17.0 → 0.19.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 (253) hide show
  1. package/dist/generated/backEndIntents.d.ts +216 -0
  2. package/dist/generated/backEndIntents.js +12 -0
  3. package/dist/generated/frontEndIntents.d.ts +1112 -0
  4. package/dist/generated/frontEndIntents.js +97 -0
  5. package/dist/generated/intentValidator.d.ts +49 -0
  6. package/dist/generated/intentValidator.js +363 -0
  7. package/dist/generated/viewKit.d.ts +1961 -565
  8. package/dist/generated/viewKit.js +1263 -489
  9. package/dist/index.d.ts +3 -2
  10. package/dist/index.js +3 -2
  11. package/dist/picteus-ws-client/apis/AdministrationApi.d.ts +1 -1
  12. package/dist/picteus-ws-client/apis/AdministrationApi.js +1 -1
  13. package/dist/picteus-ws-client/apis/ApiSecretApi.d.ts +1 -1
  14. package/dist/picteus-ws-client/apis/ApiSecretApi.js +1 -1
  15. package/dist/picteus-ws-client/apis/CollectionApi.d.ts +1 -1
  16. package/dist/picteus-ws-client/apis/CollectionApi.js +1 -1
  17. package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +1 -1
  18. package/dist/picteus-ws-client/apis/ExtensionApi.js +1 -1
  19. package/dist/picteus-ws-client/apis/ImageApi.d.ts +5 -1
  20. package/dist/picteus-ws-client/apis/ImageApi.js +7 -1
  21. package/dist/picteus-ws-client/apis/ImageAttachmentApi.d.ts +1 -1
  22. package/dist/picteus-ws-client/apis/ImageAttachmentApi.js +1 -1
  23. package/dist/picteus-ws-client/apis/MiscellaneousApi.d.ts +1 -1
  24. package/dist/picteus-ws-client/apis/MiscellaneousApi.js +1 -1
  25. package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +1 -1
  26. package/dist/picteus-ws-client/apis/RepositoryApi.js +1 -1
  27. package/dist/picteus-ws-client/apis/SettingsApi.d.ts +1 -1
  28. package/dist/picteus-ws-client/apis/SettingsApi.js +1 -1
  29. package/dist/picteus-ws-client/models/ApiSecret.d.ts +1 -1
  30. package/dist/picteus-ws-client/models/ApiSecret.js +1 -1
  31. package/dist/picteus-ws-client/models/ApiSecretSummary.d.ts +1 -1
  32. package/dist/picteus-ws-client/models/ApiSecretSummary.js +1 -1
  33. package/dist/picteus-ws-client/models/ApiSecretType.d.ts +1 -1
  34. package/dist/picteus-ws-client/models/ApiSecretType.js +1 -1
  35. package/dist/picteus-ws-client/models/ApplicationConfiguration.d.ts +1 -1
  36. package/dist/picteus-ws-client/models/ApplicationConfiguration.js +1 -1
  37. package/dist/picteus-ws-client/models/ApplicationMetadata.d.ts +1 -1
  38. package/dist/picteus-ws-client/models/ApplicationMetadata.js +1 -1
  39. package/dist/picteus-ws-client/models/ApplicationMetadataItem.d.ts +1 -1
  40. package/dist/picteus-ws-client/models/ApplicationMetadataItem.js +1 -1
  41. package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.d.ts +1 -1
  42. package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.js +1 -1
  43. package/dist/picteus-ws-client/models/ApplicationSettings.d.ts +1 -1
  44. package/dist/picteus-ws-client/models/ApplicationSettings.js +1 -1
  45. package/dist/picteus-ws-client/models/Collection.d.ts +1 -1
  46. package/dist/picteus-ws-client/models/Collection.js +1 -1
  47. package/dist/picteus-ws-client/models/CommandEntity.d.ts +1 -1
  48. package/dist/picteus-ws-client/models/CommandEntity.js +1 -1
  49. package/dist/picteus-ws-client/models/ComputedImageFormat.d.ts +1 -1
  50. package/dist/picteus-ws-client/models/ComputedImageFormat.js +1 -1
  51. package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +1 -1
  52. package/dist/picteus-ws-client/models/ConfigurationCapability.js +1 -1
  53. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +1 -1
  54. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +1 -1
  55. package/dist/picteus-ws-client/models/ConstantsRegistry.d.ts +1 -1
  56. package/dist/picteus-ws-client/models/ConstantsRegistry.js +1 -1
  57. package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
  58. package/dist/picteus-ws-client/models/Dates.js +1 -1
  59. package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
  60. package/dist/picteus-ws-client/models/Extension.js +1 -1
  61. package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
  62. package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
  63. package/dist/picteus-ws-client/models/ExtensionActivityState.d.ts +1 -1
  64. package/dist/picteus-ws-client/models/ExtensionActivityState.js +1 -1
  65. package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +1 -1
  66. package/dist/picteus-ws-client/models/ExtensionAndManual.js +1 -1
  67. package/dist/picteus-ws-client/models/ExtensionCategory.d.ts +1 -1
  68. package/dist/picteus-ws-client/models/ExtensionCategory.js +1 -1
  69. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
  70. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
  71. package/dist/picteus-ws-client/models/ExtensionIdImageEmbeddingName.d.ts +1 -1
  72. package/dist/picteus-ws-client/models/ExtensionIdImageEmbeddingName.js +1 -1
  73. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
  74. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
  75. package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +1 -1
  76. package/dist/picteus-ws-client/models/ExtensionImageFeature.js +1 -1
  77. package/dist/picteus-ws-client/models/ExtensionImageFeatureName.d.ts +1 -1
  78. package/dist/picteus-ws-client/models/ExtensionImageFeatureName.js +1 -1
  79. package/dist/picteus-ws-client/models/ExtensionImageFeaturesAttribute.d.ts +1 -1
  80. package/dist/picteus-ws-client/models/ExtensionImageFeaturesAttribute.js +1 -1
  81. package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +1 -1
  82. package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
  83. package/dist/picteus-ws-client/models/ExtensionImageTagsAttribute.d.ts +1 -1
  84. package/dist/picteus-ws-client/models/ExtensionImageTagsAttribute.js +1 -1
  85. package/dist/picteus-ws-client/models/ExtensionManual.d.ts +1 -1
  86. package/dist/picteus-ws-client/models/ExtensionManual.js +1 -1
  87. package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
  88. package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
  89. package/dist/picteus-ws-client/models/ExtensionState.d.ts +1 -1
  90. package/dist/picteus-ws-client/models/ExtensionState.js +1 -1
  91. package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
  92. package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
  93. package/dist/picteus-ws-client/models/GenerationRecipe.d.ts +1 -1
  94. package/dist/picteus-ws-client/models/GenerationRecipe.js +1 -1
  95. package/dist/picteus-ws-client/models/GenerationRecipePrompt.d.ts +1 -1
  96. package/dist/picteus-ws-client/models/GenerationRecipePrompt.js +1 -1
  97. package/dist/picteus-ws-client/models/Image.d.ts +1 -1
  98. package/dist/picteus-ws-client/models/Image.js +1 -1
  99. package/dist/picteus-ws-client/models/ImageDimensions.d.ts +1 -1
  100. package/dist/picteus-ws-client/models/ImageDimensions.js +1 -1
  101. package/dist/picteus-ws-client/models/ImageDistance.d.ts +1 -1
  102. package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
  103. package/dist/picteus-ws-client/models/ImageEmbedding.d.ts +1 -1
  104. package/dist/picteus-ws-client/models/ImageEmbedding.js +1 -1
  105. package/dist/picteus-ws-client/models/ImageFeature.d.ts +1 -1
  106. package/dist/picteus-ws-client/models/ImageFeature.js +1 -1
  107. package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +1 -1
  108. package/dist/picteus-ws-client/models/ImageFeatureFormat.js +1 -1
  109. package/dist/picteus-ws-client/models/ImageFeatureNullValue.d.ts +1 -1
  110. package/dist/picteus-ws-client/models/ImageFeatureNullValue.js +1 -1
  111. package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +1 -1
  112. package/dist/picteus-ws-client/models/ImageFeatureType.js +1 -1
  113. package/dist/picteus-ws-client/models/ImageFeatureValue.d.ts +1 -1
  114. package/dist/picteus-ws-client/models/ImageFeatureValue.js +1 -1
  115. package/dist/picteus-ws-client/models/ImageFormat.d.ts +1 -1
  116. package/dist/picteus-ws-client/models/ImageFormat.js +1 -1
  117. package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +1 -1
  118. package/dist/picteus-ws-client/models/ImageMediaUrl.js +1 -1
  119. package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
  120. package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
  121. package/dist/picteus-ws-client/models/ImageResizeRender.d.ts +1 -1
  122. package/dist/picteus-ws-client/models/ImageResizeRender.js +1 -1
  123. package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -1
  124. package/dist/picteus-ws-client/models/ImageSummary.js +1 -1
  125. package/dist/picteus-ws-client/models/InstructionsPrompt.d.ts +1 -1
  126. package/dist/picteus-ws-client/models/InstructionsPrompt.js +1 -1
  127. package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
  128. package/dist/picteus-ws-client/models/Manifest.js +1 -1
  129. package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
  130. package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
  131. package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
  132. package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
  133. package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -1
  134. package/dist/picteus-ws-client/models/ManifestEvent.js +1 -1
  135. package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
  136. package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
  137. package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
  138. package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
  139. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
  140. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
  141. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
  142. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
  143. package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.d.ts +1 -1
  144. package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.js +1 -1
  145. package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
  146. package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
  147. package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
  148. package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
  149. package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.d.ts +1 -1
  150. package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.js +1 -1
  151. package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
  152. package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
  153. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
  154. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
  155. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.d.ts +1 -1
  156. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +1 -1
  157. package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
  158. package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
  159. package/dist/picteus-ws-client/models/PromptKind.d.ts +1 -1
  160. package/dist/picteus-ws-client/models/PromptKind.js +1 -1
  161. package/dist/picteus-ws-client/models/Repository.d.ts +1 -1
  162. package/dist/picteus-ws-client/models/Repository.js +1 -1
  163. package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
  164. package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
  165. package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
  166. package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
  167. package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
  168. package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
  169. package/dist/picteus-ws-client/models/RepositoryState.d.ts +1 -1
  170. package/dist/picteus-ws-client/models/RepositoryState.js +1 -1
  171. package/dist/picteus-ws-client/models/RunCommandParameters.d.ts +1 -1
  172. package/dist/picteus-ws-client/models/RunCommandParameters.js +1 -1
  173. package/dist/picteus-ws-client/models/SearchCriteria.d.ts +1 -1
  174. package/dist/picteus-ws-client/models/SearchCriteria.js +1 -1
  175. package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.d.ts +1 -1
  176. package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.js +1 -1
  177. package/dist/picteus-ws-client/models/SearchFeatureCondition.d.ts +1 -1
  178. package/dist/picteus-ws-client/models/SearchFeatureCondition.js +1 -1
  179. package/dist/picteus-ws-client/models/SearchFeatureConditionValue.d.ts +1 -1
  180. package/dist/picteus-ws-client/models/SearchFeatureConditionValue.js +1 -1
  181. package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.d.ts +1 -1
  182. package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.js +1 -1
  183. package/dist/picteus-ws-client/models/SearchFeatures.d.ts +1 -1
  184. package/dist/picteus-ws-client/models/SearchFeatures.js +1 -1
  185. package/dist/picteus-ws-client/models/SearchFeaturesResult.d.ts +1 -1
  186. package/dist/picteus-ws-client/models/SearchFeaturesResult.js +1 -1
  187. package/dist/picteus-ws-client/models/SearchFilter.d.ts +1 -1
  188. package/dist/picteus-ws-client/models/SearchFilter.js +1 -1
  189. package/dist/picteus-ws-client/models/SearchFilterOrigin.d.ts +1 -1
  190. package/dist/picteus-ws-client/models/SearchFilterOrigin.js +1 -1
  191. package/dist/picteus-ws-client/models/SearchImageIdResult.d.ts +1 -1
  192. package/dist/picteus-ws-client/models/SearchImageIdResult.js +1 -1
  193. package/dist/picteus-ws-client/models/SearchImageResult.d.ts +1 -1
  194. package/dist/picteus-ws-client/models/SearchImageResult.js +1 -1
  195. package/dist/picteus-ws-client/models/SearchImageSummaryResult.d.ts +1 -1
  196. package/dist/picteus-ws-client/models/SearchImageSummaryResult.js +1 -1
  197. package/dist/picteus-ws-client/models/SearchImagesOrigin.d.ts +1 -1
  198. package/dist/picteus-ws-client/models/SearchImagesOrigin.js +1 -1
  199. package/dist/picteus-ws-client/models/SearchKeyword.d.ts +1 -1
  200. package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
  201. package/dist/picteus-ws-client/models/SearchMediaUrlResult.d.ts +1 -1
  202. package/dist/picteus-ws-client/models/SearchMediaUrlResult.js +1 -1
  203. package/dist/picteus-ws-client/models/SearchOriginNature.d.ts +1 -1
  204. package/dist/picteus-ws-client/models/SearchOriginNature.js +1 -1
  205. package/dist/picteus-ws-client/models/SearchParameters.d.ts +1 -1
  206. package/dist/picteus-ws-client/models/SearchParameters.js +1 -1
  207. package/dist/picteus-ws-client/models/SearchProperties.d.ts +1 -1
  208. package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
  209. package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
  210. package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
  211. package/dist/picteus-ws-client/models/SearchRange.d.ts +1 -1
  212. package/dist/picteus-ws-client/models/SearchRange.js +1 -1
  213. package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.d.ts +1 -1
  214. package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.js +1 -1
  215. package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
  216. package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
  217. package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +1 -1
  218. package/dist/picteus-ws-client/models/SearchSortingProperty.js +1 -1
  219. package/dist/picteus-ws-client/models/SearchTags.d.ts +1 -1
  220. package/dist/picteus-ws-client/models/SearchTags.js +1 -1
  221. package/dist/picteus-ws-client/models/SearchTagsResult.d.ts +1 -1
  222. package/dist/picteus-ws-client/models/SearchTagsResult.js +1 -1
  223. package/dist/picteus-ws-client/models/Software.d.ts +1 -1
  224. package/dist/picteus-ws-client/models/Software.js +1 -1
  225. package/dist/picteus-ws-client/models/TextualPrompt.d.ts +1 -1
  226. package/dist/picteus-ws-client/models/TextualPrompt.js +1 -1
  227. package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +1 -1
  228. package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +1 -1
  229. package/dist/picteus-ws-client/models/UserInterfaceSidebarIntegration.d.ts +1 -1
  230. package/dist/picteus-ws-client/models/UserInterfaceSidebarIntegration.js +1 -1
  231. package/dist/picteus-ws-client/models/UserInterfaceWindowIntegration.d.ts +1 -1
  232. package/dist/picteus-ws-client/models/UserInterfaceWindowIntegration.js +1 -1
  233. package/dist/picteus-ws-client/runtime.d.ts +1 -1
  234. package/dist/picteus-ws-client/runtime.js +1 -1
  235. package/dist/picteusExtension.d.ts +13 -4
  236. package/dist/picteusExtension.js +45 -24
  237. package/package.json +4 -6
  238. package/dist/featureViewGrammar.d.ts +0 -2814
  239. package/dist/featureViewGrammar.js +0 -2612
  240. package/dist/generated/featureViewGrammar.d.ts +0 -3913
  241. package/dist/generated/featureViewGrammar.js +0 -4099
  242. package/dist/intents.d.ts +0 -188
  243. package/dist/intents.js +0 -26
  244. package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +0 -26
  245. package/dist/picteus-ws-client/models/ExtensionActivityKind.js +0 -44
  246. package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +0 -25
  247. package/dist/picteus-ws-client/models/ExtensionStatus.js +0 -43
  248. package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +0 -32
  249. package/dist/picteus-ws-client/models/ImageEmbeddings.js +0 -43
  250. package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +0 -27
  251. package/dist/picteus-ws-client/models/RepositoryStatus.js +0 -45
  252. package/dist/picteus-ws-client/models/Settings.d.ts +0 -32
  253. package/dist/picteus-ws-client/models/Settings.js +0 -41
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.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.22.0
5
+ * The version of the OpenAPI document: 0.23.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.22.0
7
+ * The version of the OpenAPI document: 0.23.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,6 +1,6 @@
1
1
  import { Socket } from "socket.io-client";
2
- import { ApiSecretApi, CollectionApi, Configuration, ExtensionApi, ImageApi, ImageAttachmentApi, Manifest, MiscellaneousApi, RepositoryApi } from "./index.js";
3
- import { Intent } from "./intents.js";
2
+ import { ApiSecretApi, BackIntent, CollectionApi, Configuration, ExtensionApi, FrontIntent, ImageApi, ImageAttachmentApi, Manifest, MiscellaneousApi, RepositoryApi } from "./index.js";
3
+ export type Intent = FrontIntent | BackIntent;
4
4
  export type EventValue = Record<string, any>;
5
5
  export declare const InstructionReturnedErrorCause: {
6
6
  readonly Cancel: 0;
@@ -30,6 +30,10 @@ export declare const EventName: {
30
30
  readonly TextComputeEmbeddings: "text.computeEmbeddings";
31
31
  };
32
32
  export type EventName = (typeof EventName)[keyof typeof EventName];
33
+ export type Entity = {
34
+ type: "image" | "repository" | "collection";
35
+ id: string | number;
36
+ };
33
37
  export declare class Helper {
34
38
  static readonly GENERATION_RECIPE_SCHEMA_VERSION = 2;
35
39
  }
@@ -73,8 +77,10 @@ declare class MessageSender {
73
77
  export declare class Communicator {
74
78
  private readonly logger;
75
79
  private readonly sender;
76
- constructor(logger: Logger, sender: MessageSender);
77
- sendLog(message: string, level: "debug" | "info" | "warn" | "error"): void;
80
+ private entity;
81
+ constructor(logger: Logger, sender: MessageSender, entity?: Entity);
82
+ forEntity(entity: Entity): this;
83
+ sendLog(message: string, level: "debug" | "info" | "warn" | "error", entity?: Entity): void;
78
84
  sendNotification(value: Record<string, any>): void;
79
85
  launchIntent<T>(intent: Intent): Promise<T>;
80
86
  private sendMessage;
@@ -130,5 +136,8 @@ export declare class PicteusExtension {
130
136
  private disconnectSocket;
131
137
  private exit;
132
138
  private getApiConfiguration;
139
+ private computeEventEntity;
140
+ private extractEventValueId;
141
+ private extractEventCommandId;
133
142
  }
134
143
  export {};
@@ -136,13 +136,21 @@ const instructionsEvent = "instructions";
136
136
  export class Communicator {
137
137
  logger;
138
138
  sender;
139
- constructor(logger, sender) {
139
+ entity;
140
+ constructor(logger, sender, entity) {
140
141
  this.logger = logger;
141
142
  this.sender = sender;
143
+ this.entity = entity;
142
144
  }
143
- sendLog(message, level) {
145
+ forEntity(entity) {
146
+ this.entity = entity;
147
+ return this;
148
+ }
149
+ sendLog(message, level, entity) {
144
150
  this.logger[level](message);
145
- this.sendMessage(instructionsEvent, { log: { message, level } });
151
+ const actualEntity = entity ?? this.entity;
152
+ const log = actualEntity === undefined ? { message, level } : { message, level, entity: actualEntity };
153
+ this.sendMessage(instructionsEvent, { log });
146
154
  }
147
155
  // noinspection JSUnusedGlobalSymbols
148
156
  sendNotification(value) {
@@ -246,47 +254,37 @@ export class PicteusExtension {
246
254
  }
247
255
  async onEvent(communicator, event, value) {
248
256
  if (event === EventName.ImageCreated) {
249
- const imageId = value["id"];
250
- return await this.onImageCreated(communicator, imageId);
257
+ return await this.onImageCreated(communicator, this.extractEventValueId(value));
251
258
  }
252
259
  else if (event === EventName.ImageUpdated) {
253
- const imageId = value["id"];
254
- return await this.onImageUpdated(communicator, imageId);
260
+ return await this.onImageUpdated(communicator, this.extractEventValueId(value));
255
261
  }
256
262
  else if (event === EventName.ImageDeleted) {
257
- const imageId = value["id"];
258
- return await this.onImageDeleted(communicator, imageId);
263
+ return await this.onImageDeleted(communicator, this.extractEventValueId(value));
259
264
  }
260
265
  else if (event === EventName.ImageTagsUpdated) {
261
- const imageId = value["id"];
262
- return await this.onImageTagsUpdated(communicator, imageId);
266
+ return await this.onImageTagsUpdated(communicator, this.extractEventValueId(value));
263
267
  }
264
268
  else if (event === EventName.ImageFeaturesUpdated) {
265
- const imageId = value["id"];
266
- return await this.onImageFeaturesUpdated(communicator, imageId);
269
+ return await this.onImageFeaturesUpdated(communicator, this.extractEventValueId(value));
267
270
  }
268
271
  else if (event === EventName.ImageComputeTags) {
269
- const imageId = value["id"];
270
- return await this.onComputeImageTags(communicator, imageId);
272
+ return await this.onComputeImageTags(communicator, this.extractEventValueId(value));
271
273
  }
272
274
  else if (event === EventName.ImageComputeFeatures) {
273
- const imageId = value["id"];
274
- return await this.onComputeImageFeatures(communicator, imageId);
275
+ return await this.onComputeImageFeatures(communicator, this.extractEventValueId(value));
275
276
  }
276
277
  else if (event === EventName.ImageComputeEmbeddings) {
277
- const imageId = value["id"];
278
- return await this.onComputeImageEmbeddings(communicator, imageId);
278
+ return await this.onComputeImageEmbeddings(communicator, this.extractEventValueId(value));
279
279
  }
280
280
  else if (event === EventName.ImageRunCommand) {
281
- const commandId = value["commandId"];
282
281
  const imageIds = value["imageIds"];
283
282
  const parameters = value["parameters"] ?? {};
284
- return await this.onImagesCommand(communicator, commandId, imageIds, parameters);
283
+ return await this.onImagesCommand(communicator, this.extractEventCommandId(value), imageIds, parameters);
285
284
  }
286
285
  else if (event === EventName.ProcessRunCommand) {
287
- const commandId = value["commandId"];
288
286
  const parameters = value["parameters"] ?? {};
289
- return await this.onProcessCommand(communicator, commandId, parameters);
287
+ return await this.onProcessCommand(communicator, this.extractEventCommandId(value), parameters);
290
288
  }
291
289
  else if (event === EventName.TextComputeEmbeddings) {
292
290
  const text = value["text"];
@@ -386,7 +384,8 @@ export class PicteusExtension {
386
384
  return this.toString();
387
385
  }, contextId);
388
386
  sender.maximumPayloadSizeInBytes = globalSender.maximumPayloadSizeInBytes;
389
- const communicator = new Communicator(this.logger, sender);
387
+ const entity = this.computeEventEntity(channel, value);
388
+ const communicator = new Communicator(this.logger, sender, entity);
390
389
  const requiresResult = channel !== extensionSettingsChannel;
391
390
  let result;
392
391
  let success = false;
@@ -486,4 +485,26 @@ export class PicteusExtension {
486
485
  ]
487
486
  });
488
487
  }
488
+ computeEventEntity(channel, value) {
489
+ const imageComputationEvents = new Set([
490
+ EventName.ImageCreated,
491
+ EventName.ImageUpdated,
492
+ EventName.ImageTagsUpdated,
493
+ EventName.ImageFeaturesUpdated,
494
+ EventName.ImageDeleted,
495
+ EventName.ImageComputeTags,
496
+ EventName.ImageComputeFeatures,
497
+ EventName.ImageComputeEmbeddings
498
+ ]);
499
+ if (imageComputationEvents.has(channel) === false) {
500
+ return undefined;
501
+ }
502
+ return { type: "image", id: this.extractEventValueId(value) };
503
+ }
504
+ extractEventValueId(value) {
505
+ return value["id"];
506
+ }
507
+ extractEventCommandId(value) {
508
+ return value["commandId"];
509
+ }
489
510
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picteus/extension-sdk",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "productName": "Picteus TypeScript SDK",
5
5
  "description": "The Picteus extension TypeScript SDK.",
6
6
  "keywords": [
@@ -38,14 +38,12 @@
38
38
  "./dist"
39
39
  ],
40
40
  "scripts": {
41
- "compile": "tsc && tsc-alias --resolve-full-paths",
42
- "compileWithTsup": "tsup src/index.ts --tsconfig tsconfig.json --format cjs,esm --dts --clean --minify-whitespace --minify-identifiers --minify-syntax"
41
+ "compile": "tsc && tsc-alias --resolve-full-paths"
43
42
  },
44
43
  "devDependencies": {
45
44
  "typescript": "5.9.2",
46
- "@types/node": "20.19.0",
47
- "tsc-alias": "1.8.17",
48
- "tsup": "8.5.1"
45
+ "@types/node": "22.17.1",
46
+ "tsc-alias": "1.8.17"
49
47
  },
50
48
  "dependencies": {
51
49
  "socket.io-client": "4.8.3"