@picteus/extension-sdk 0.3.4 → 0.4.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 (157) 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 +138 -0
  4. package/dist/picteus-ws-client/apis/ApiSecretApi.js +156 -0
  5. package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +1 -1
  6. package/dist/picteus-ws-client/apis/ExtensionApi.js +1 -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 +98 -0
  12. package/dist/picteus-ws-client/apis/MiscellaneousApi.js +114 -0
  13. package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +1 -1
  14. package/dist/picteus-ws-client/apis/RepositoryApi.js +1 -1
  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/apis/index.d.ts +2 -2
  18. package/dist/picteus-ws-client/apis/index.js +2 -2
  19. package/dist/picteus-ws-client/models/ApiSecret.d.ts +75 -0
  20. package/dist/picteus-ws-client/models/ApiSecret.js +66 -0
  21. package/dist/picteus-ws-client/models/ApiSecretSummary.d.ts +63 -0
  22. package/dist/picteus-ws-client/models/ApiSecretSummary.js +60 -0
  23. package/dist/picteus-ws-client/models/ApiSecretType.d.ts +25 -0
  24. package/dist/picteus-ws-client/models/ApiSecretType.js +43 -0
  25. package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +1 -1
  26. package/dist/picteus-ws-client/models/Automatic1111Instruction.js +1 -1
  27. package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +1 -1
  28. package/dist/picteus-ws-client/models/Automatic1111UserComment.js +1 -1
  29. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +1 -1
  30. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +1 -1
  31. package/dist/picteus-ws-client/models/CommandEntity.d.ts +1 -1
  32. package/dist/picteus-ws-client/models/CommandEntity.js +1 -1
  33. package/dist/picteus-ws-client/models/ComputedImageFormat.d.ts +1 -1
  34. package/dist/picteus-ws-client/models/ComputedImageFormat.js +1 -1
  35. package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +1 -1
  36. package/dist/picteus-ws-client/models/ConfigurationCapability.js +1 -1
  37. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +1 -1
  38. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +1 -1
  39. package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
  40. package/dist/picteus-ws-client/models/Dates.js +1 -1
  41. package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
  42. package/dist/picteus-ws-client/models/Extension.js +1 -1
  43. package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
  44. package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
  45. package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +1 -1
  46. package/dist/picteus-ws-client/models/ExtensionActivityKind.js +1 -1
  47. package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +1 -1
  48. package/dist/picteus-ws-client/models/ExtensionAndManual.js +1 -1
  49. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
  50. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
  51. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
  52. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
  53. package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +1 -1
  54. package/dist/picteus-ws-client/models/ExtensionImageFeature.js +1 -1
  55. package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +1 -1
  56. package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
  57. package/dist/picteus-ws-client/models/ExtensionManual.d.ts +1 -1
  58. package/dist/picteus-ws-client/models/ExtensionManual.js +1 -1
  59. package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
  60. package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
  61. package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +1 -1
  62. package/dist/picteus-ws-client/models/ExtensionStatus.js +1 -1
  63. package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
  64. package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
  65. package/dist/picteus-ws-client/models/Image.d.ts +1 -1
  66. package/dist/picteus-ws-client/models/Image.js +1 -1
  67. package/dist/picteus-ws-client/models/ImageDimensions.d.ts +1 -1
  68. package/dist/picteus-ws-client/models/ImageDimensions.js +1 -1
  69. package/dist/picteus-ws-client/models/ImageDistance.d.ts +1 -1
  70. package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
  71. package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +1 -1
  72. package/dist/picteus-ws-client/models/ImageEmbeddings.js +1 -1
  73. package/dist/picteus-ws-client/models/ImageFeature.d.ts +1 -1
  74. package/dist/picteus-ws-client/models/ImageFeature.js +1 -1
  75. package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +1 -1
  76. package/dist/picteus-ws-client/models/ImageFeatureFormat.js +1 -1
  77. package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +1 -1
  78. package/dist/picteus-ws-client/models/ImageFeatureType.js +1 -1
  79. package/dist/picteus-ws-client/models/ImageFormat.d.ts +1 -1
  80. package/dist/picteus-ws-client/models/ImageFormat.js +1 -1
  81. package/dist/picteus-ws-client/models/ImageGenerator.d.ts +1 -1
  82. package/dist/picteus-ws-client/models/ImageGenerator.js +1 -1
  83. package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +1 -1
  84. package/dist/picteus-ws-client/models/ImageMediaUrl.js +1 -1
  85. package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
  86. package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
  87. package/dist/picteus-ws-client/models/ImageResizeRender.d.ts +1 -1
  88. package/dist/picteus-ws-client/models/ImageResizeRender.js +1 -1
  89. package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -1
  90. package/dist/picteus-ws-client/models/ImageSummary.js +1 -1
  91. package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +1 -1
  92. package/dist/picteus-ws-client/models/ImageSummaryList.js +1 -1
  93. package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
  94. package/dist/picteus-ws-client/models/Manifest.js +1 -1
  95. package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
  96. package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
  97. package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
  98. package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
  99. package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -1
  100. package/dist/picteus-ws-client/models/ManifestEvent.js +1 -1
  101. package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
  102. package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
  103. package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
  104. package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
  105. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
  106. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
  107. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
  108. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
  109. package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
  110. package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
  111. package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
  112. package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
  113. package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
  114. package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
  115. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
  116. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
  117. package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
  118. package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
  119. package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +1 -1
  120. package/dist/picteus-ws-client/models/MidjourneyInstructions.js +1 -1
  121. package/dist/picteus-ws-client/models/Repository.d.ts +1 -1
  122. package/dist/picteus-ws-client/models/Repository.js +1 -1
  123. package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
  124. package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
  125. package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
  126. package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
  127. package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
  128. package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
  129. package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +1 -1
  130. package/dist/picteus-ws-client/models/RepositoryStatus.js +1 -1
  131. package/dist/picteus-ws-client/models/SearchCriteria.d.ts +1 -1
  132. package/dist/picteus-ws-client/models/SearchCriteria.js +1 -1
  133. package/dist/picteus-ws-client/models/SearchKeyword.d.ts +1 -1
  134. package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
  135. package/dist/picteus-ws-client/models/SearchProperties.d.ts +1 -1
  136. package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
  137. package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
  138. package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
  139. package/dist/picteus-ws-client/models/SearchRange.d.ts +1 -1
  140. package/dist/picteus-ws-client/models/SearchRange.js +1 -1
  141. package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
  142. package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
  143. package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +1 -1
  144. package/dist/picteus-ws-client/models/SearchSortingProperty.js +1 -1
  145. package/dist/picteus-ws-client/models/SearchTags.d.ts +1 -1
  146. package/dist/picteus-ws-client/models/SearchTags.js +1 -1
  147. package/dist/picteus-ws-client/models/Settings.d.ts +1 -1
  148. package/dist/picteus-ws-client/models/Settings.js +1 -1
  149. package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +1 -1
  150. package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +1 -1
  151. package/dist/picteus-ws-client/models/index.d.ts +3 -0
  152. package/dist/picteus-ws-client/models/index.js +3 -0
  153. package/dist/picteus-ws-client/runtime.d.ts +1 -1
  154. package/dist/picteus-ws-client/runtime.js +1 -1
  155. package/dist/picteusExtension.d.ts +5 -2
  156. package/dist/picteusExtension.js +15 -6
  157. 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.3.5
5
+ * The version of the OpenAPI document: 0.4.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.3.5
7
+ * The version of the OpenAPI document: 0.4.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,138 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.4.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
+ import * as runtime from '../runtime.js';
13
+ import type { ApiSecret, ApiSecretSummary, ApiSecretType } from '../models/index.js';
14
+ export interface ApiSecretApiApisecretCreateRequest {
15
+ type: ApiSecretType;
16
+ name: string;
17
+ expirationDate?: number;
18
+ comment?: string;
19
+ scope?: string;
20
+ }
21
+ export interface ApiSecretApiApisecretDeleteRequest {
22
+ id: number;
23
+ }
24
+ export interface ApiSecretApiApisecretGetRequest {
25
+ id: number;
26
+ }
27
+ /**
28
+ * ApiSecretApi - interface
29
+ *
30
+ * @export
31
+ * @interface ApiSecretApiInterface
32
+ */
33
+ export interface ApiSecretApiInterface {
34
+ /**
35
+ * Declares a new API secret with the provided metadata.
36
+ * @summary Creates an API secret
37
+ * @param {ApiSecretType} type The API secret type
38
+ * @param {string} name The API secret name
39
+ * @param {number} [expirationDate] The expiration date
40
+ * @param {string} [comment] A comment about the API secret
41
+ * @param {string} [scope] The API secret scope
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ * @memberof ApiSecretApiInterface
45
+ */
46
+ apisecretCreateRaw(requestParameters: ApiSecretApiApisecretCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiSecret>>;
47
+ /**
48
+ * Declares a new API secret with the provided metadata.
49
+ * Creates an API secret
50
+ */
51
+ apisecretCreate(requestParameters: ApiSecretApiApisecretCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSecret>;
52
+ /**
53
+ * Once deleted, it cannot be used anymore.
54
+ * @summary Deletes an API secret
55
+ * @param {number} id The API secret identifier
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ * @memberof ApiSecretApiInterface
59
+ */
60
+ apisecretDeleteRaw(requestParameters: ApiSecretApiApisecretDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
61
+ /**
62
+ * Once deleted, it cannot be used anymore.
63
+ * Deletes an API secret
64
+ */
65
+ apisecretDelete(requestParameters: ApiSecretApiApisecretDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
66
+ /**
67
+ * Returns the details about an API secret.
68
+ * @summary Gets an API secret
69
+ * @param {number} id The API secret identifier
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ * @memberof ApiSecretApiInterface
73
+ */
74
+ apisecretGetRaw(requestParameters: ApiSecretApiApisecretGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiSecret>>;
75
+ /**
76
+ * Returns the details about an API secret.
77
+ * Gets an API secret
78
+ */
79
+ apisecretGet(requestParameters: ApiSecretApiApisecretGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSecret>;
80
+ /**
81
+ * Returns all available API secrets without their values.
82
+ * @summary Lists all API secrets
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ * @memberof ApiSecretApiInterface
86
+ */
87
+ apisecretListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiSecretSummary>>>;
88
+ /**
89
+ * Returns all available API secrets without their values.
90
+ * Lists all API secrets
91
+ */
92
+ apisecretList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiSecretSummary>>;
93
+ }
94
+ /**
95
+ *
96
+ */
97
+ export declare class ApiSecretApi extends runtime.BaseAPI implements ApiSecretApiInterface {
98
+ /**
99
+ * Declares a new API secret with the provided metadata.
100
+ * Creates an API secret
101
+ */
102
+ apisecretCreateRaw(requestParameters: ApiSecretApiApisecretCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiSecret>>;
103
+ /**
104
+ * Declares a new API secret with the provided metadata.
105
+ * Creates an API secret
106
+ */
107
+ apisecretCreate(requestParameters: ApiSecretApiApisecretCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSecret>;
108
+ /**
109
+ * Once deleted, it cannot be used anymore.
110
+ * Deletes an API secret
111
+ */
112
+ apisecretDeleteRaw(requestParameters: ApiSecretApiApisecretDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
113
+ /**
114
+ * Once deleted, it cannot be used anymore.
115
+ * Deletes an API secret
116
+ */
117
+ apisecretDelete(requestParameters: ApiSecretApiApisecretDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
118
+ /**
119
+ * Returns the details about an API secret.
120
+ * Gets an API secret
121
+ */
122
+ apisecretGetRaw(requestParameters: ApiSecretApiApisecretGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiSecret>>;
123
+ /**
124
+ * Returns the details about an API secret.
125
+ * Gets an API secret
126
+ */
127
+ apisecretGet(requestParameters: ApiSecretApiApisecretGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSecret>;
128
+ /**
129
+ * Returns all available API secrets without their values.
130
+ * Lists all API secrets
131
+ */
132
+ apisecretListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiSecretSummary>>>;
133
+ /**
134
+ * Returns all available API secrets without their values.
135
+ * Lists all API secrets
136
+ */
137
+ apisecretList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiSecretSummary>>;
138
+ }
@@ -0,0 +1,156 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.4.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
+ import * as runtime from '../runtime.js';
15
+ import { ApiSecretFromJSON, ApiSecretSummaryFromJSON, } from '../models/index.js';
16
+ /**
17
+ *
18
+ */
19
+ export class ApiSecretApi extends runtime.BaseAPI {
20
+ /**
21
+ * Declares a new API secret with the provided metadata.
22
+ * Creates an API secret
23
+ */
24
+ async apisecretCreateRaw(requestParameters, initOverrides) {
25
+ if (requestParameters['type'] == null) {
26
+ throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling apisecretCreate().');
27
+ }
28
+ if (requestParameters['name'] == null) {
29
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling apisecretCreate().');
30
+ }
31
+ const queryParameters = {};
32
+ if (requestParameters['type'] != null) {
33
+ queryParameters['type'] = requestParameters['type'];
34
+ }
35
+ if (requestParameters['name'] != null) {
36
+ queryParameters['name'] = requestParameters['name'];
37
+ }
38
+ if (requestParameters['expirationDate'] != null) {
39
+ queryParameters['expirationDate'] = requestParameters['expirationDate'];
40
+ }
41
+ if (requestParameters['comment'] != null) {
42
+ queryParameters['comment'] = requestParameters['comment'];
43
+ }
44
+ if (requestParameters['scope'] != null) {
45
+ queryParameters['scope'] = requestParameters['scope'];
46
+ }
47
+ const headerParameters = {};
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 = `/apiSecret/create`;
52
+ const response = await this.request({
53
+ path: urlPath,
54
+ method: 'POST',
55
+ headers: headerParameters,
56
+ query: queryParameters,
57
+ }, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiSecretFromJSON(jsonValue));
59
+ }
60
+ /**
61
+ * Declares a new API secret with the provided metadata.
62
+ * Creates an API secret
63
+ */
64
+ async apisecretCreate(requestParameters, initOverrides) {
65
+ const response = await this.apisecretCreateRaw(requestParameters, initOverrides);
66
+ return await response.value();
67
+ }
68
+ /**
69
+ * Once deleted, it cannot be used anymore.
70
+ * Deletes an API secret
71
+ */
72
+ async apisecretDeleteRaw(requestParameters, initOverrides) {
73
+ if (requestParameters['id'] == null) {
74
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apisecretDelete().');
75
+ }
76
+ const queryParameters = {};
77
+ const headerParameters = {};
78
+ if (this.configuration && this.configuration.apiKey) {
79
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
80
+ }
81
+ let urlPath = `/apiSecret/{id}/delete`;
82
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
83
+ const response = await this.request({
84
+ path: urlPath,
85
+ method: 'DELETE',
86
+ headers: headerParameters,
87
+ query: queryParameters,
88
+ }, initOverrides);
89
+ return new runtime.VoidApiResponse(response);
90
+ }
91
+ /**
92
+ * Once deleted, it cannot be used anymore.
93
+ * Deletes an API secret
94
+ */
95
+ async apisecretDelete(requestParameters, initOverrides) {
96
+ await this.apisecretDeleteRaw(requestParameters, initOverrides);
97
+ }
98
+ /**
99
+ * Returns the details about an API secret.
100
+ * Gets an API secret
101
+ */
102
+ async apisecretGetRaw(requestParameters, initOverrides) {
103
+ if (requestParameters['id'] == null) {
104
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apisecretGet().');
105
+ }
106
+ const queryParameters = {};
107
+ const headerParameters = {};
108
+ if (this.configuration && this.configuration.apiKey) {
109
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
110
+ }
111
+ let urlPath = `/apiSecret/{id}/get`;
112
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
113
+ const response = await this.request({
114
+ path: urlPath,
115
+ method: 'DELETE',
116
+ headers: headerParameters,
117
+ query: queryParameters,
118
+ }, initOverrides);
119
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiSecretFromJSON(jsonValue));
120
+ }
121
+ /**
122
+ * Returns the details about an API secret.
123
+ * Gets an API secret
124
+ */
125
+ async apisecretGet(requestParameters, initOverrides) {
126
+ const response = await this.apisecretGetRaw(requestParameters, initOverrides);
127
+ return await response.value();
128
+ }
129
+ /**
130
+ * Returns all available API secrets without their values.
131
+ * Lists all API secrets
132
+ */
133
+ async apisecretListRaw(initOverrides) {
134
+ const queryParameters = {};
135
+ const headerParameters = {};
136
+ if (this.configuration && this.configuration.apiKey) {
137
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
138
+ }
139
+ let urlPath = `/apiSecret/list`;
140
+ const response = await this.request({
141
+ path: urlPath,
142
+ method: 'GET',
143
+ headers: headerParameters,
144
+ query: queryParameters,
145
+ }, initOverrides);
146
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiSecretSummaryFromJSON));
147
+ }
148
+ /**
149
+ * Returns all available API secrets without their values.
150
+ * Lists all API secrets
151
+ */
152
+ async apisecretList(initOverrides) {
153
+ const response = await this.apisecretListRaw(initOverrides);
154
+ return await response.value();
155
+ }
156
+ }
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.3.5
5
+ * The version of the OpenAPI document: 0.4.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.3.5
7
+ * The version of the OpenAPI document: 0.4.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.3.5
5
+ * The version of the OpenAPI document: 0.4.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.3.5
7
+ * The version of the OpenAPI document: 0.4.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.3.5
5
+ * The version of the OpenAPI document: 0.4.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.3.5
7
+ * The version of the OpenAPI document: 0.4.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,98 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.4.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
+ import * as runtime from '../runtime.js';
13
+ export interface MiscellaneousApiMiscellaneousInstallChromeExtensionRequest {
14
+ body: Blob;
15
+ }
16
+ /**
17
+ * MiscellaneousApi - interface
18
+ *
19
+ * @export
20
+ * @interface MiscellaneousApiInterface
21
+ */
22
+ export interface MiscellaneousApiInterface {
23
+ /**
24
+ * It will only work provided the server is hosted by an Electron application.
25
+ * @summary Installs a Chrome extension
26
+ * @param {Blob} body The Chrome extension tarball archive
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ * @memberof MiscellaneousApiInterface
30
+ */
31
+ miscellaneousInstallChromeExtensionRaw(requestParameters: MiscellaneousApiMiscellaneousInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
32
+ /**
33
+ * It will only work provided the server is hosted by an Electron application.
34
+ * Installs a Chrome extension
35
+ */
36
+ miscellaneousInstallChromeExtension(requestParameters: MiscellaneousApiMiscellaneousInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
37
+ /**
38
+ * Enables to check that the service is accessible.
39
+ * @summary Pings the service
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ * @memberof MiscellaneousApiInterface
43
+ */
44
+ miscellaneousPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
45
+ /**
46
+ * Enables to check that the service is accessible.
47
+ * Pings the service
48
+ */
49
+ miscellaneousPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
50
+ /**
51
+ * This endpoint is for experimentation only.
52
+ * @summary Runs a test
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ * @memberof MiscellaneousApiInterface
56
+ */
57
+ miscellaneousTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
58
+ /**
59
+ * This endpoint is for experimentation only.
60
+ * Runs a test
61
+ */
62
+ miscellaneousTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
63
+ }
64
+ /**
65
+ *
66
+ */
67
+ export declare class MiscellaneousApi extends runtime.BaseAPI implements MiscellaneousApiInterface {
68
+ /**
69
+ * It will only work provided the server is hosted by an Electron application.
70
+ * Installs a Chrome extension
71
+ */
72
+ miscellaneousInstallChromeExtensionRaw(requestParameters: MiscellaneousApiMiscellaneousInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
73
+ /**
74
+ * It will only work provided the server is hosted by an Electron application.
75
+ * Installs a Chrome extension
76
+ */
77
+ miscellaneousInstallChromeExtension(requestParameters: MiscellaneousApiMiscellaneousInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
78
+ /**
79
+ * Enables to check that the service is accessible.
80
+ * Pings the service
81
+ */
82
+ miscellaneousPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
83
+ /**
84
+ * Enables to check that the service is accessible.
85
+ * Pings the service
86
+ */
87
+ miscellaneousPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
88
+ /**
89
+ * This endpoint is for experimentation only.
90
+ * Runs a test
91
+ */
92
+ miscellaneousTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
93
+ /**
94
+ * This endpoint is for experimentation only.
95
+ * Runs a test
96
+ */
97
+ miscellaneousTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
98
+ }
@@ -0,0 +1,114 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.4.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
+ import * as runtime from '../runtime.js';
15
+ /**
16
+ *
17
+ */
18
+ export class MiscellaneousApi extends runtime.BaseAPI {
19
+ /**
20
+ * It will only work provided the server is hosted by an Electron application.
21
+ * Installs a Chrome extension
22
+ */
23
+ async miscellaneousInstallChromeExtensionRaw(requestParameters, initOverrides) {
24
+ if (requestParameters['body'] == null) {
25
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling miscellaneousInstallChromeExtension().');
26
+ }
27
+ const queryParameters = {};
28
+ const headerParameters = {};
29
+ headerParameters['Content-Type'] = 'application/zip';
30
+ if (this.configuration && this.configuration.apiKey) {
31
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
32
+ }
33
+ let urlPath = `/miscellaneous/installChromeExtension`;
34
+ const response = await this.request({
35
+ path: urlPath,
36
+ method: 'PUT',
37
+ headers: headerParameters,
38
+ query: queryParameters,
39
+ body: requestParameters['body'],
40
+ }, initOverrides);
41
+ return new runtime.VoidApiResponse(response);
42
+ }
43
+ /**
44
+ * It will only work provided the server is hosted by an Electron application.
45
+ * Installs a Chrome extension
46
+ */
47
+ async miscellaneousInstallChromeExtension(requestParameters, initOverrides) {
48
+ await this.miscellaneousInstallChromeExtensionRaw(requestParameters, initOverrides);
49
+ }
50
+ /**
51
+ * Enables to check that the service is accessible.
52
+ * Pings the service
53
+ */
54
+ async miscellaneousPingRaw(initOverrides) {
55
+ const queryParameters = {};
56
+ const headerParameters = {};
57
+ if (this.configuration && this.configuration.apiKey) {
58
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
59
+ }
60
+ let urlPath = `/miscellaneous/ping`;
61
+ const response = await this.request({
62
+ path: urlPath,
63
+ method: 'GET',
64
+ headers: headerParameters,
65
+ query: queryParameters,
66
+ }, initOverrides);
67
+ if (this.isJsonMime(response.headers.get('content-type'))) {
68
+ return new runtime.JSONApiResponse(response);
69
+ }
70
+ else {
71
+ return new runtime.TextApiResponse(response);
72
+ }
73
+ }
74
+ /**
75
+ * Enables to check that the service is accessible.
76
+ * Pings the service
77
+ */
78
+ async miscellaneousPing(initOverrides) {
79
+ const response = await this.miscellaneousPingRaw(initOverrides);
80
+ return await response.value();
81
+ }
82
+ /**
83
+ * This endpoint is for experimentation only.
84
+ * Runs a test
85
+ */
86
+ async miscellaneousTestRaw(initOverrides) {
87
+ const queryParameters = {};
88
+ const headerParameters = {};
89
+ if (this.configuration && this.configuration.apiKey) {
90
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
91
+ }
92
+ let urlPath = `/miscellaneous/test`;
93
+ const response = await this.request({
94
+ path: urlPath,
95
+ method: 'GET',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ }, initOverrides);
99
+ if (this.isJsonMime(response.headers.get('content-type'))) {
100
+ return new runtime.JSONApiResponse(response);
101
+ }
102
+ else {
103
+ return new runtime.TextApiResponse(response);
104
+ }
105
+ }
106
+ /**
107
+ * This endpoint is for experimentation only.
108
+ * Runs a test
109
+ */
110
+ async miscellaneousTest(initOverrides) {
111
+ const response = await this.miscellaneousTestRaw(initOverrides);
112
+ return await response.value();
113
+ }
114
+ }
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.3.5
5
+ * The version of the OpenAPI document: 0.4.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.3.5
7
+ * The version of the OpenAPI document: 0.4.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.3.5
5
+ * The version of the OpenAPI document: 0.4.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.3.5
7
+ * The version of the OpenAPI document: 0.4.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,8 +1,8 @@
1
1
  export * from './AdministrationApi.js';
2
- export * from './ExperimentApi.js';
2
+ export * from './ApiSecretApi.js';
3
3
  export * from './ExtensionApi.js';
4
4
  export * from './ImageApi.js';
5
5
  export * from './ImageAttachmentApi.js';
6
- export * from './PingApi.js';
6
+ export * from './MiscellaneousApi.js';
7
7
  export * from './RepositoryApi.js';
8
8
  export * from './SettingsApi.js';
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AdministrationApi.js';
4
- export * from './ExperimentApi.js';
4
+ export * from './ApiSecretApi.js';
5
5
  export * from './ExtensionApi.js';
6
6
  export * from './ImageApi.js';
7
7
  export * from './ImageAttachmentApi.js';
8
- export * from './PingApi.js';
8
+ export * from './MiscellaneousApi.js';
9
9
  export * from './RepositoryApi.js';
10
10
  export * from './SettingsApi.js';