@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,85 @@
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 * as runtime from '../runtime.js';
13
+ export interface ImageAttachmentApiImageattachmentCreateRequest {
14
+ imageId: string;
15
+ extensionId: string;
16
+ mimeType: string;
17
+ body: Blob;
18
+ }
19
+ export interface ImageAttachmentApiImageattachmentDownloadRequest {
20
+ uri: string;
21
+ }
22
+ /**
23
+ * ImageAttachmentApi - interface
24
+ *
25
+ * @export
26
+ * @interface ImageAttachmentApiInterface
27
+ */
28
+ export interface ImageAttachmentApiInterface {
29
+ /**
30
+ * Stores a binary attachment related to an image for a given extension.
31
+ * @summary Declares an image binary attachment
32
+ * @param {string} imageId The image identifier
33
+ * @param {string} extensionId The extension identifier
34
+ * @param {string} mimeType The MIME type of the attachment payload
35
+ * @param {Blob} body The attachment payload
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ * @memberof ImageAttachmentApiInterface
39
+ */
40
+ imageattachmentCreateRaw(requestParameters: ImageAttachmentApiImageattachmentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
41
+ /**
42
+ * Stores a binary attachment related to an image for a given extension.
43
+ * Declares an image binary attachment
44
+ */
45
+ imageattachmentCreate(requestParameters: ImageAttachmentApiImageattachmentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
46
+ /**
47
+ * Retrieves the payload of a binary attachment related to an image for a given extension.
48
+ * @summary Downloads an image binary attachment
49
+ * @param {string} uri The attachment URI
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ * @memberof ImageAttachmentApiInterface
53
+ */
54
+ imageattachmentDownloadRaw(requestParameters: ImageAttachmentApiImageattachmentDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
55
+ /**
56
+ * Retrieves the payload of a binary attachment related to an image for a given extension.
57
+ * Downloads an image binary attachment
58
+ */
59
+ imageattachmentDownload(requestParameters: ImageAttachmentApiImageattachmentDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
60
+ }
61
+ /**
62
+ *
63
+ */
64
+ export declare class ImageAttachmentApi extends runtime.BaseAPI implements ImageAttachmentApiInterface {
65
+ /**
66
+ * Stores a binary attachment related to an image for a given extension.
67
+ * Declares an image binary attachment
68
+ */
69
+ imageattachmentCreateRaw(requestParameters: ImageAttachmentApiImageattachmentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
70
+ /**
71
+ * Stores a binary attachment related to an image for a given extension.
72
+ * Declares an image binary attachment
73
+ */
74
+ imageattachmentCreate(requestParameters: ImageAttachmentApiImageattachmentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
75
+ /**
76
+ * Retrieves the payload of a binary attachment related to an image for a given extension.
77
+ * Downloads an image binary attachment
78
+ */
79
+ imageattachmentDownloadRaw(requestParameters: ImageAttachmentApiImageattachmentDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
80
+ /**
81
+ * Retrieves the payload of a binary attachment related to an image for a given extension.
82
+ * Downloads an image binary attachment
83
+ */
84
+ imageattachmentDownload(requestParameters: ImageAttachmentApiImageattachmentDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
85
+ }
@@ -0,0 +1,105 @@
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 * as runtime from '../runtime.js';
15
+ /**
16
+ *
17
+ */
18
+ export class ImageAttachmentApi extends runtime.BaseAPI {
19
+ /**
20
+ * Stores a binary attachment related to an image for a given extension.
21
+ * Declares an image binary attachment
22
+ */
23
+ async imageattachmentCreateRaw(requestParameters, initOverrides) {
24
+ if (requestParameters['imageId'] == null) {
25
+ throw new runtime.RequiredError('imageId', 'Required parameter "imageId" was null or undefined when calling imageattachmentCreate().');
26
+ }
27
+ if (requestParameters['extensionId'] == null) {
28
+ throw new runtime.RequiredError('extensionId', 'Required parameter "extensionId" was null or undefined when calling imageattachmentCreate().');
29
+ }
30
+ if (requestParameters['mimeType'] == null) {
31
+ throw new runtime.RequiredError('mimeType', 'Required parameter "mimeType" was null or undefined when calling imageattachmentCreate().');
32
+ }
33
+ if (requestParameters['body'] == null) {
34
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling imageattachmentCreate().');
35
+ }
36
+ const queryParameters = {};
37
+ if (requestParameters['imageId'] != null) {
38
+ queryParameters['imageId'] = requestParameters['imageId'];
39
+ }
40
+ if (requestParameters['extensionId'] != null) {
41
+ queryParameters['extensionId'] = requestParameters['extensionId'];
42
+ }
43
+ if (requestParameters['mimeType'] != null) {
44
+ queryParameters['mimeType'] = requestParameters['mimeType'];
45
+ }
46
+ const headerParameters = {};
47
+ headerParameters['Content-Type'] = 'image/png';
48
+ if (this.configuration && this.configuration.apiKey) {
49
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
50
+ }
51
+ let urlPath = `/imageAttachment/create`;
52
+ const response = await this.request({
53
+ path: urlPath,
54
+ method: 'POST',
55
+ headers: headerParameters,
56
+ query: queryParameters,
57
+ body: requestParameters['body'],
58
+ }, initOverrides);
59
+ if (this.isJsonMime(response.headers.get('content-type'))) {
60
+ return new runtime.JSONApiResponse(response);
61
+ }
62
+ else {
63
+ return new runtime.TextApiResponse(response);
64
+ }
65
+ }
66
+ /**
67
+ * Stores a binary attachment related to an image for a given extension.
68
+ * Declares an image binary attachment
69
+ */
70
+ async imageattachmentCreate(requestParameters, initOverrides) {
71
+ const response = await this.imageattachmentCreateRaw(requestParameters, initOverrides);
72
+ return await response.value();
73
+ }
74
+ /**
75
+ * Retrieves the payload of a binary attachment related to an image for a given extension.
76
+ * Downloads an image binary attachment
77
+ */
78
+ async imageattachmentDownloadRaw(requestParameters, initOverrides) {
79
+ if (requestParameters['uri'] == null) {
80
+ throw new runtime.RequiredError('uri', 'Required parameter "uri" was null or undefined when calling imageattachmentDownload().');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ if (this.configuration && this.configuration.apiKey) {
85
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
86
+ }
87
+ let urlPath = `/imageAttachment/{uri}/download`;
88
+ urlPath = urlPath.replace(`{${"uri"}}`, encodeURIComponent(String(requestParameters['uri'])));
89
+ const response = await this.request({
90
+ path: urlPath,
91
+ method: 'GET',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ }, initOverrides);
95
+ return new runtime.BlobApiResponse(response);
96
+ }
97
+ /**
98
+ * Retrieves the payload of a binary attachment related to an image for a given extension.
99
+ * Downloads an image binary attachment
100
+ */
101
+ async imageattachmentDownload(requestParameters, initOverrides) {
102
+ const response = await this.imageattachmentDownloadRaw(requestParameters, initOverrides);
103
+ return await response.value();
104
+ }
105
+ }
@@ -0,0 +1,48 @@
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 * as runtime from '../runtime.js';
13
+ /**
14
+ * PingApi - interface
15
+ *
16
+ * @export
17
+ * @interface PingApiInterface
18
+ */
19
+ export interface PingApiInterface {
20
+ /**
21
+ * Enables to check that the service is accessible.
22
+ * @summary Pings the service
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ * @memberof PingApiInterface
26
+ */
27
+ pingPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
28
+ /**
29
+ * Enables to check that the service is accessible.
30
+ * Pings the service
31
+ */
32
+ pingPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
33
+ }
34
+ /**
35
+ *
36
+ */
37
+ export declare class PingApi extends runtime.BaseAPI implements PingApiInterface {
38
+ /**
39
+ * Enables to check that the service is accessible.
40
+ * Pings the service
41
+ */
42
+ pingPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
43
+ /**
44
+ * Enables to check that the service is accessible.
45
+ * Pings the service
46
+ */
47
+ pingPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
48
+ }
@@ -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
+ import * as runtime from '../runtime.js';
15
+ /**
16
+ *
17
+ */
18
+ export class PingApi extends runtime.BaseAPI {
19
+ /**
20
+ * Enables to check that the service is accessible.
21
+ * Pings the service
22
+ */
23
+ async pingPingRaw(initOverrides) {
24
+ const queryParameters = {};
25
+ const headerParameters = {};
26
+ if (this.configuration && this.configuration.apiKey) {
27
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
28
+ }
29
+ let urlPath = `/ping`;
30
+ const response = await this.request({
31
+ path: urlPath,
32
+ method: 'GET',
33
+ headers: headerParameters,
34
+ query: queryParameters,
35
+ }, initOverrides);
36
+ if (this.isJsonMime(response.headers.get('content-type'))) {
37
+ return new runtime.JSONApiResponse(response);
38
+ }
39
+ else {
40
+ return new runtime.TextApiResponse(response);
41
+ }
42
+ }
43
+ /**
44
+ * Enables to check that the service is accessible.
45
+ * Pings the service
46
+ */
47
+ async pingPing(initOverrides) {
48
+ const response = await this.pingPingRaw(initOverrides);
49
+ return await response.value();
50
+ }
51
+ }
@@ -0,0 +1,385 @@
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 * as runtime from '../runtime.js';
13
+ import type { Image, ImageSummaryList, Repository, RepositoryActivity, SearchCriteria, SearchRange, SearchSorting } from '../models/index.js';
14
+ export interface RepositoryApiRepositoryCreateRequest {
15
+ type: RepositoryCreateTypeEnum;
16
+ url: string;
17
+ name: string;
18
+ comment?: string;
19
+ watch?: boolean;
20
+ technicalId?: string;
21
+ }
22
+ export interface RepositoryApiRepositoryDeleteRequest {
23
+ id: string;
24
+ }
25
+ export interface RepositoryApiRepositoryEnsureRequest {
26
+ technicalId: string;
27
+ name: string;
28
+ comment?: string;
29
+ watch?: boolean;
30
+ }
31
+ export interface RepositoryApiRepositoryGetRequest {
32
+ id: string;
33
+ }
34
+ export interface RepositoryApiRepositoryGetImageByUrlRequest {
35
+ url: string;
36
+ }
37
+ export interface RepositoryApiRepositorySearchImagesRequest {
38
+ id: string;
39
+ criteria?: SearchCriteria;
40
+ sorting?: SearchSorting;
41
+ range?: SearchRange;
42
+ }
43
+ export interface RepositoryApiRepositoryStartOrStopRequest {
44
+ isStart: boolean;
45
+ }
46
+ export interface RepositoryApiRepositoryStoreImageRequest {
47
+ id: string;
48
+ body: Blob;
49
+ sourceUrl?: string;
50
+ parentId?: string;
51
+ applicationMetadata?: string;
52
+ directoryPath?: string;
53
+ nameWithoutExtension?: string;
54
+ }
55
+ export interface RepositoryApiRepositorySynchronizeRequest {
56
+ id: string;
57
+ }
58
+ export interface RepositoryApiRepositoryWatchRequest {
59
+ id: string;
60
+ isStart: boolean;
61
+ }
62
+ /**
63
+ * RepositoryApi - interface
64
+ *
65
+ * @export
66
+ * @interface RepositoryApiInterface
67
+ */
68
+ export interface RepositoryApiInterface {
69
+ /**
70
+ * Returns all the declared repositories activities.
71
+ * @summary Indicates the repositories activities
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ * @memberof RepositoryApiInterface
75
+ */
76
+ repositoryActivitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RepositoryActivity>>>;
77
+ /**
78
+ * Returns all the declared repositories activities.
79
+ * Indicates the repositories activities
80
+ */
81
+ repositoryActivities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RepositoryActivity>>;
82
+ /**
83
+ * Declares a new repository.
84
+ * @summary Creates a repository
85
+ * @param {'file'} type The repository type
86
+ * @param {string} url The repository URL
87
+ * @param {string} name The repository name
88
+ * @param {string} [comment] The repository comment
89
+ * @param {boolean} [watch] Whether the repository should be watched immediately ; when not defined, this parameter has the implicit \&#39;false\&#39; value
90
+ * @param {string} [technicalId] The technical identifier
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof RepositoryApiInterface
94
+ */
95
+ repositoryCreateRaw(requestParameters: RepositoryApiRepositoryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
96
+ /**
97
+ * Declares a new repository.
98
+ * Creates a repository
99
+ */
100
+ repositoryCreate(requestParameters: RepositoryApiRepositoryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
101
+ /**
102
+ * Deletes a repository along with all the images attached to it.
103
+ * @summary Deletes a repository
104
+ * @param {string} id The repository identifier
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ * @memberof RepositoryApiInterface
108
+ */
109
+ repositoryDeleteRaw(requestParameters: RepositoryApiRepositoryDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
110
+ /**
111
+ * Deletes a repository along with all the images attached to it.
112
+ * Deletes a repository
113
+ */
114
+ repositoryDelete(requestParameters: RepositoryApiRepositoryDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
115
+ /**
116
+ * Ensures that a repository with type \'file\' and with the provided identifier exists, and if not, creates it.
117
+ * @summary Ensures a repository exists
118
+ * @param {string} technicalId The repository technical identifier
119
+ * @param {string} name The repository name
120
+ * @param {string} [comment] The repository comment
121
+ * @param {boolean} [watch] Whether the repository should be watched immediately ; when not defined, this parameter has the implicit \&#39;false\&#39; value
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ * @memberof RepositoryApiInterface
125
+ */
126
+ repositoryEnsureRaw(requestParameters: RepositoryApiRepositoryEnsureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
127
+ /**
128
+ * Ensures that a repository with type \'file\' and with the provided identifier exists, and if not, creates it.
129
+ * Ensures a repository exists
130
+ */
131
+ repositoryEnsure(requestParameters: RepositoryApiRepositoryEnsureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
132
+ /**
133
+ * Returns a single repository.
134
+ * @summary Gets a repository
135
+ * @param {string} id The repository identifier
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ * @memberof RepositoryApiInterface
139
+ */
140
+ repositoryGetRaw(requestParameters: RepositoryApiRepositoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
141
+ /**
142
+ * Returns a single repository.
143
+ * Gets a repository
144
+ */
145
+ repositoryGet(requestParameters: RepositoryApiRepositoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
146
+ /**
147
+ * Returns the details about an image.
148
+ * @summary Gets an image from its URL
149
+ * @param {string} url The image URL
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ * @memberof RepositoryApiInterface
153
+ */
154
+ repositoryGetImageByUrlRaw(requestParameters: RepositoryApiRepositoryGetImageByUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Image>>;
155
+ /**
156
+ * Returns the details about an image.
157
+ * Gets an image from its URL
158
+ */
159
+ repositoryGetImageByUrl(requestParameters: RepositoryApiRepositoryGetImageByUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
160
+ /**
161
+ * Lists all the declared repositories.
162
+ * @summary Lists repositories
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ * @memberof RepositoryApiInterface
166
+ */
167
+ repositoryListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Repository>>>;
168
+ /**
169
+ * Lists all the declared repositories.
170
+ * Lists repositories
171
+ */
172
+ repositoryList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Repository>>;
173
+ /**
174
+ * Searches images within the repository with the provided criteria.
175
+ * @summary Searches for images within the repository
176
+ * @param {string} id The repository identifier
177
+ * @param {SearchCriteria} [criteria] The criteria that will be applied to the search as a filter
178
+ * @param {SearchSorting} [sorting] Indicates how the search results should be sorted
179
+ * @param {SearchRange} [range] The range of items to consider following the search
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ * @memberof RepositoryApiInterface
183
+ */
184
+ repositorySearchImagesRaw(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageSummaryList>>;
185
+ /**
186
+ * Searches images within the repository with the provided criteria.
187
+ * Searches for images within the repository
188
+ */
189
+ repositorySearchImages(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageSummaryList>;
190
+ /**
191
+ * Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
192
+ * @summary Starts or stop the repositories
193
+ * @param {boolean} isStart Whether the repositories should be started or stopped
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ * @memberof RepositoryApiInterface
197
+ */
198
+ repositoryStartOrStopRaw(requestParameters: RepositoryApiRepositoryStartOrStopRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
199
+ /**
200
+ * Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
201
+ * Starts or stop the repositories
202
+ */
203
+ repositoryStartOrStop(requestParameters: RepositoryApiRepositoryStartOrStopRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
204
+ /**
205
+ * Declares an image in the repository and returns it.
206
+ * @summary Creates an image in the repository
207
+ * @param {string} id The repository identifier
208
+ * @param {Blob} body The image file
209
+ * @param {string} [sourceUrl] The URL of the image source
210
+ * @param {string} [parentId] The identifier of the image parent image
211
+ * @param {string} [applicationMetadata] The JSON string containing the application metadata
212
+ * @param {string} [directoryPath] The relative directory path within the repository that will host the image
213
+ * @param {string} [nameWithoutExtension] The image file name, without its extension
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ * @memberof RepositoryApiInterface
217
+ */
218
+ repositoryStoreImageRaw(requestParameters: RepositoryApiRepositoryStoreImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Image>>;
219
+ /**
220
+ * Declares an image in the repository and returns it.
221
+ * Creates an image in the repository
222
+ */
223
+ repositoryStoreImage(requestParameters: RepositoryApiRepositoryStoreImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
224
+ /**
225
+ * Synchronizes a repository against its back-end.
226
+ * @summary Synchronizes a repository
227
+ * @param {string} id The repository identifier
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ * @memberof RepositoryApiInterface
231
+ */
232
+ repositorySynchronizeRaw(requestParameters: RepositoryApiRepositorySynchronizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
233
+ /**
234
+ * Synchronizes a repository against its back-end.
235
+ * Synchronizes a repository
236
+ */
237
+ repositorySynchronize(requestParameters: RepositoryApiRepositorySynchronizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
238
+ /**
239
+ * Starts or stops listening to the repository back-end images changes.
240
+ * @summary Starts or stops watching a repository
241
+ * @param {string} id The repository identifier
242
+ * @param {boolean} isStart Whether the repository should start or stop watching
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ * @memberof RepositoryApiInterface
246
+ */
247
+ repositoryWatchRaw(requestParameters: RepositoryApiRepositoryWatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
248
+ /**
249
+ * Starts or stops listening to the repository back-end images changes.
250
+ * Starts or stops watching a repository
251
+ */
252
+ repositoryWatch(requestParameters: RepositoryApiRepositoryWatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
253
+ }
254
+ /**
255
+ *
256
+ */
257
+ export declare class RepositoryApi extends runtime.BaseAPI implements RepositoryApiInterface {
258
+ /**
259
+ * Returns all the declared repositories activities.
260
+ * Indicates the repositories activities
261
+ */
262
+ repositoryActivitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RepositoryActivity>>>;
263
+ /**
264
+ * Returns all the declared repositories activities.
265
+ * Indicates the repositories activities
266
+ */
267
+ repositoryActivities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RepositoryActivity>>;
268
+ /**
269
+ * Declares a new repository.
270
+ * Creates a repository
271
+ */
272
+ repositoryCreateRaw(requestParameters: RepositoryApiRepositoryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
273
+ /**
274
+ * Declares a new repository.
275
+ * Creates a repository
276
+ */
277
+ repositoryCreate(requestParameters: RepositoryApiRepositoryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
278
+ /**
279
+ * Deletes a repository along with all the images attached to it.
280
+ * Deletes a repository
281
+ */
282
+ repositoryDeleteRaw(requestParameters: RepositoryApiRepositoryDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
283
+ /**
284
+ * Deletes a repository along with all the images attached to it.
285
+ * Deletes a repository
286
+ */
287
+ repositoryDelete(requestParameters: RepositoryApiRepositoryDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
288
+ /**
289
+ * Ensures that a repository with type \'file\' and with the provided identifier exists, and if not, creates it.
290
+ * Ensures a repository exists
291
+ */
292
+ repositoryEnsureRaw(requestParameters: RepositoryApiRepositoryEnsureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
293
+ /**
294
+ * Ensures that a repository with type \'file\' and with the provided identifier exists, and if not, creates it.
295
+ * Ensures a repository exists
296
+ */
297
+ repositoryEnsure(requestParameters: RepositoryApiRepositoryEnsureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
298
+ /**
299
+ * Returns a single repository.
300
+ * Gets a repository
301
+ */
302
+ repositoryGetRaw(requestParameters: RepositoryApiRepositoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
303
+ /**
304
+ * Returns a single repository.
305
+ * Gets a repository
306
+ */
307
+ repositoryGet(requestParameters: RepositoryApiRepositoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
308
+ /**
309
+ * Returns the details about an image.
310
+ * Gets an image from its URL
311
+ */
312
+ repositoryGetImageByUrlRaw(requestParameters: RepositoryApiRepositoryGetImageByUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Image>>;
313
+ /**
314
+ * Returns the details about an image.
315
+ * Gets an image from its URL
316
+ */
317
+ repositoryGetImageByUrl(requestParameters: RepositoryApiRepositoryGetImageByUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
318
+ /**
319
+ * Lists all the declared repositories.
320
+ * Lists repositories
321
+ */
322
+ repositoryListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Repository>>>;
323
+ /**
324
+ * Lists all the declared repositories.
325
+ * Lists repositories
326
+ */
327
+ repositoryList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Repository>>;
328
+ /**
329
+ * Searches images within the repository with the provided criteria.
330
+ * Searches for images within the repository
331
+ */
332
+ repositorySearchImagesRaw(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageSummaryList>>;
333
+ /**
334
+ * Searches images within the repository with the provided criteria.
335
+ * Searches for images within the repository
336
+ */
337
+ repositorySearchImages(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageSummaryList>;
338
+ /**
339
+ * Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
340
+ * Starts or stop the repositories
341
+ */
342
+ repositoryStartOrStopRaw(requestParameters: RepositoryApiRepositoryStartOrStopRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
343
+ /**
344
+ * Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
345
+ * Starts or stop the repositories
346
+ */
347
+ repositoryStartOrStop(requestParameters: RepositoryApiRepositoryStartOrStopRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
348
+ /**
349
+ * Declares an image in the repository and returns it.
350
+ * Creates an image in the repository
351
+ */
352
+ repositoryStoreImageRaw(requestParameters: RepositoryApiRepositoryStoreImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Image>>;
353
+ /**
354
+ * Declares an image in the repository and returns it.
355
+ * Creates an image in the repository
356
+ */
357
+ repositoryStoreImage(requestParameters: RepositoryApiRepositoryStoreImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
358
+ /**
359
+ * Synchronizes a repository against its back-end.
360
+ * Synchronizes a repository
361
+ */
362
+ repositorySynchronizeRaw(requestParameters: RepositoryApiRepositorySynchronizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
363
+ /**
364
+ * Synchronizes a repository against its back-end.
365
+ * Synchronizes a repository
366
+ */
367
+ repositorySynchronize(requestParameters: RepositoryApiRepositorySynchronizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
368
+ /**
369
+ * Starts or stops listening to the repository back-end images changes.
370
+ * Starts or stops watching a repository
371
+ */
372
+ repositoryWatchRaw(requestParameters: RepositoryApiRepositoryWatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
373
+ /**
374
+ * Starts or stops listening to the repository back-end images changes.
375
+ * Starts or stops watching a repository
376
+ */
377
+ repositoryWatch(requestParameters: RepositoryApiRepositoryWatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
378
+ }
379
+ /**
380
+ * @export
381
+ */
382
+ export declare const RepositoryCreateTypeEnum: {
383
+ readonly File: "file";
384
+ };
385
+ export type RepositoryCreateTypeEnum = typeof RepositoryCreateTypeEnum[keyof typeof RepositoryCreateTypeEnum];