@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,52 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.2.6
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ManifestExtensionCommandOn } from './ManifestExtensionCommandOn.js';
13
+ import type { ManifestExtensionCommandLabel } from './ManifestExtensionCommandLabel.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ManifestExtensionCommand
18
+ */
19
+ export interface ManifestExtensionCommand {
20
+ /**
21
+ * The identifier of the command
22
+ * @type {string}
23
+ * @memberof ManifestExtensionCommand
24
+ */
25
+ id: string;
26
+ /**
27
+ * The kind of entity and the conditions the command applies to
28
+ * @type {ManifestExtensionCommandOn}
29
+ * @memberof ManifestExtensionCommand
30
+ */
31
+ on: ManifestExtensionCommandOn;
32
+ /**
33
+ * The definition of the parameters the command requires
34
+ * @type {object}
35
+ * @memberof ManifestExtensionCommand
36
+ */
37
+ parameters: object;
38
+ /**
39
+ * The labels for the command
40
+ * @type {Array<ManifestExtensionCommandLabel>}
41
+ * @memberof ManifestExtensionCommand
42
+ */
43
+ labels: Array<ManifestExtensionCommandLabel>;
44
+ }
45
+ /**
46
+ * Check if a given object implements the ManifestExtensionCommand interface.
47
+ */
48
+ export declare function instanceOfManifestExtensionCommand(value: object): value is ManifestExtensionCommand;
49
+ export declare function ManifestExtensionCommandFromJSON(json: any): ManifestExtensionCommand;
50
+ export declare function ManifestExtensionCommandFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestExtensionCommand;
51
+ export declare function ManifestExtensionCommandToJSON(json: any): ManifestExtensionCommand;
52
+ export declare function ManifestExtensionCommandToJSONTyped(value?: ManifestExtensionCommand | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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 { ManifestExtensionCommandOnFromJSON, ManifestExtensionCommandOnToJSON, } from './ManifestExtensionCommandOn.js';
15
+ import { ManifestExtensionCommandLabelFromJSON, ManifestExtensionCommandLabelToJSON, } from './ManifestExtensionCommandLabel.js';
16
+ /**
17
+ * Check if a given object implements the ManifestExtensionCommand interface.
18
+ */
19
+ export function instanceOfManifestExtensionCommand(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('on' in value) || value['on'] === undefined)
23
+ return false;
24
+ if (!('parameters' in value) || value['parameters'] === undefined)
25
+ return false;
26
+ if (!('labels' in value) || value['labels'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function ManifestExtensionCommandFromJSON(json) {
31
+ return ManifestExtensionCommandFromJSONTyped(json, false);
32
+ }
33
+ export function ManifestExtensionCommandFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'on': ManifestExtensionCommandOnFromJSON(json['on']),
40
+ 'parameters': json['parameters'],
41
+ 'labels': (json['labels'].map(ManifestExtensionCommandLabelFromJSON)),
42
+ };
43
+ }
44
+ export function ManifestExtensionCommandToJSON(json) {
45
+ return ManifestExtensionCommandToJSONTyped(json, false);
46
+ }
47
+ export function ManifestExtensionCommandToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'id': value['id'],
53
+ 'on': ManifestExtensionCommandOnToJSON(value['on']),
54
+ 'parameters': value['parameters'],
55
+ 'labels': (value['labels'].map(ManifestExtensionCommandLabelToJSON)),
56
+ };
57
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.2.6
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ManifestExtensionCommandLabel
16
+ */
17
+ export interface ManifestExtensionCommandLabel {
18
+ /**
19
+ * The locale the label applies on
20
+ * @type {string}
21
+ * @memberof ManifestExtensionCommandLabel
22
+ */
23
+ locale: string;
24
+ /**
25
+ * The command label for the corresponding locale
26
+ * @type {string}
27
+ * @memberof ManifestExtensionCommandLabel
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ManifestExtensionCommandLabel interface.
33
+ */
34
+ export declare function instanceOfManifestExtensionCommandLabel(value: object): value is ManifestExtensionCommandLabel;
35
+ export declare function ManifestExtensionCommandLabelFromJSON(json: any): ManifestExtensionCommandLabel;
36
+ export declare function ManifestExtensionCommandLabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestExtensionCommandLabel;
37
+ export declare function ManifestExtensionCommandLabelToJSON(json: any): ManifestExtensionCommandLabel;
38
+ export declare function ManifestExtensionCommandLabelToJSONTyped(value?: ManifestExtensionCommandLabel | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.2.6
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ManifestExtensionCommandLabel interface.
16
+ */
17
+ export function instanceOfManifestExtensionCommandLabel(value) {
18
+ if (!('locale' in value) || value['locale'] === undefined)
19
+ return false;
20
+ if (!('value' in value) || value['value'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ManifestExtensionCommandLabelFromJSON(json) {
25
+ return ManifestExtensionCommandLabelFromJSONTyped(json, false);
26
+ }
27
+ export function ManifestExtensionCommandLabelFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'locale': json['locale'],
33
+ 'value': json['value'],
34
+ };
35
+ }
36
+ export function ManifestExtensionCommandLabelToJSON(json) {
37
+ return ManifestExtensionCommandLabelToJSONTyped(json, false);
38
+ }
39
+ export function ManifestExtensionCommandLabelToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'locale': value['locale'],
45
+ 'value': value['value'],
46
+ };
47
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.2.6
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CommandEntity } from './CommandEntity.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ManifestExtensionCommandOn
17
+ */
18
+ export interface ManifestExtensionCommandOn {
19
+ /**
20
+ * The entity the command applies to
21
+ * @type {CommandEntity}
22
+ * @memberof ManifestExtensionCommandOn
23
+ */
24
+ entity: CommandEntity;
25
+ /**
26
+ * The tags the entity should be attached to for the command to apply
27
+ * @type {Array<string>}
28
+ * @memberof ManifestExtensionCommandOn
29
+ */
30
+ withTags?: Array<string>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ManifestExtensionCommandOn interface.
34
+ */
35
+ export declare function instanceOfManifestExtensionCommandOn(value: object): value is ManifestExtensionCommandOn;
36
+ export declare function ManifestExtensionCommandOnFromJSON(json: any): ManifestExtensionCommandOn;
37
+ export declare function ManifestExtensionCommandOnFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestExtensionCommandOn;
38
+ export declare function ManifestExtensionCommandOnToJSON(json: any): ManifestExtensionCommandOn;
39
+ export declare function ManifestExtensionCommandOnToJSONTyped(value?: ManifestExtensionCommandOn | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,46 @@
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 { CommandEntityFromJSON, CommandEntityToJSON, } from './CommandEntity.js';
15
+ /**
16
+ * Check if a given object implements the ManifestExtensionCommandOn interface.
17
+ */
18
+ export function instanceOfManifestExtensionCommandOn(value) {
19
+ if (!('entity' in value) || value['entity'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ManifestExtensionCommandOnFromJSON(json) {
24
+ return ManifestExtensionCommandOnFromJSONTyped(json, false);
25
+ }
26
+ export function ManifestExtensionCommandOnFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'entity': CommandEntityFromJSON(json['entity']),
32
+ 'withTags': json['withTags'] == null ? undefined : json['withTags'],
33
+ };
34
+ }
35
+ export function ManifestExtensionCommandOnToJSON(json) {
36
+ return ManifestExtensionCommandOnToJSONTyped(json, false);
37
+ }
38
+ export function ManifestExtensionCommandOnToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'entity': CommandEntityToJSON(value['entity']),
44
+ 'withTags': value['withTags'],
45
+ };
46
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.2.6
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ManifestEvent } from './ManifestEvent.js';
13
+ import type { ManifestCapability } from './ManifestCapability.js';
14
+ import type { ManifestExtensionCommand } from './ManifestExtensionCommand.js';
15
+ import type { ManifestExecution } from './ManifestExecution.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ManifestInstructions
20
+ */
21
+ export interface ManifestInstructions {
22
+ /**
23
+ * The events which will trigger the instructions
24
+ * @type {Array<ManifestEvent>}
25
+ * @memberof ManifestInstructions
26
+ */
27
+ events: Array<ManifestEvent>;
28
+ /**
29
+ * The capabilities attached to the instructions
30
+ * @type {Array<ManifestCapability>}
31
+ * @memberof ManifestInstructions
32
+ */
33
+ capabilities?: Array<ManifestCapability>;
34
+ /**
35
+ * The execution to run when one of the event of the instructions occurs
36
+ * @type {ManifestExecution}
37
+ * @memberof ManifestInstructions
38
+ */
39
+ execution: ManifestExecution;
40
+ /**
41
+ * The possible commands of the event
42
+ * @type {Array<ManifestExtensionCommand>}
43
+ * @memberof ManifestInstructions
44
+ */
45
+ commands?: Array<ManifestExtensionCommand>;
46
+ }
47
+ /**
48
+ * Check if a given object implements the ManifestInstructions interface.
49
+ */
50
+ export declare function instanceOfManifestInstructions(value: object): value is ManifestInstructions;
51
+ export declare function ManifestInstructionsFromJSON(json: any): ManifestInstructions;
52
+ export declare function ManifestInstructionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestInstructions;
53
+ export declare function ManifestInstructionsToJSON(json: any): ManifestInstructions;
54
+ export declare function ManifestInstructionsToJSONTyped(value?: ManifestInstructions | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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 { ManifestEventFromJSON, ManifestEventToJSON, } from './ManifestEvent.js';
15
+ import { ManifestCapabilityFromJSON, ManifestCapabilityToJSON, } from './ManifestCapability.js';
16
+ import { ManifestExtensionCommandFromJSON, ManifestExtensionCommandToJSON, } from './ManifestExtensionCommand.js';
17
+ import { ManifestExecutionFromJSON, ManifestExecutionToJSON, } from './ManifestExecution.js';
18
+ /**
19
+ * Check if a given object implements the ManifestInstructions interface.
20
+ */
21
+ export function instanceOfManifestInstructions(value) {
22
+ if (!('events' in value) || value['events'] === undefined)
23
+ return false;
24
+ if (!('execution' in value) || value['execution'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function ManifestInstructionsFromJSON(json) {
29
+ return ManifestInstructionsFromJSONTyped(json, false);
30
+ }
31
+ export function ManifestInstructionsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'events': (json['events'].map(ManifestEventFromJSON)),
37
+ 'capabilities': json['capabilities'] == null ? undefined : (json['capabilities'].map(ManifestCapabilityFromJSON)),
38
+ 'execution': ManifestExecutionFromJSON(json['execution']),
39
+ 'commands': json['commands'] == null ? undefined : (json['commands'].map(ManifestExtensionCommandFromJSON)),
40
+ };
41
+ }
42
+ export function ManifestInstructionsToJSON(json) {
43
+ return ManifestInstructionsToJSONTyped(json, false);
44
+ }
45
+ export function ManifestInstructionsToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'events': (value['events'].map(ManifestEventToJSON)),
51
+ 'capabilities': value['capabilities'] == null ? undefined : (value['capabilities'].map(ManifestCapabilityToJSON)),
52
+ 'execution': ManifestExecutionToJSON(value['execution']),
53
+ 'commands': value['commands'] == null ? undefined : (value['commands'].map(ManifestExtensionCommandToJSON)),
54
+ };
55
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.2.6
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { UserInterfaceAnchor } from './UserInterfaceAnchor.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ManifestInterfaceElement
17
+ */
18
+ export interface ManifestInterfaceElement {
19
+ /**
20
+ * The location where the User Interface is anchored
21
+ * @type {UserInterfaceAnchor}
22
+ * @memberof ManifestInterfaceElement
23
+ */
24
+ anchor: UserInterfaceAnchor;
25
+ /**
26
+ * The URL of the User Interface
27
+ * @type {string}
28
+ * @memberof ManifestInterfaceElement
29
+ */
30
+ url: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ManifestInterfaceElement interface.
34
+ */
35
+ export declare function instanceOfManifestInterfaceElement(value: object): value is ManifestInterfaceElement;
36
+ export declare function ManifestInterfaceElementFromJSON(json: any): ManifestInterfaceElement;
37
+ export declare function ManifestInterfaceElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestInterfaceElement;
38
+ export declare function ManifestInterfaceElementToJSON(json: any): ManifestInterfaceElement;
39
+ export declare function ManifestInterfaceElementToJSONTyped(value?: ManifestInterfaceElement | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.2.6
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { UserInterfaceAnchorFromJSON, UserInterfaceAnchorToJSON, } from './UserInterfaceAnchor.js';
15
+ /**
16
+ * Check if a given object implements the ManifestInterfaceElement interface.
17
+ */
18
+ export function instanceOfManifestInterfaceElement(value) {
19
+ if (!('anchor' in value) || value['anchor'] === undefined)
20
+ return false;
21
+ if (!('url' in value) || value['url'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function ManifestInterfaceElementFromJSON(json) {
26
+ return ManifestInterfaceElementFromJSONTyped(json, false);
27
+ }
28
+ export function ManifestInterfaceElementFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'anchor': UserInterfaceAnchorFromJSON(json['anchor']),
34
+ 'url': json['url'],
35
+ };
36
+ }
37
+ export function ManifestInterfaceElementToJSON(json) {
38
+ return ManifestInterfaceElementToJSONTyped(json, false);
39
+ }
40
+ export function ManifestInterfaceElementToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'anchor': UserInterfaceAnchorToJSON(value['anchor']),
46
+ 'url': value['url'],
47
+ };
48
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.2.6
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ManifestRuntimeEnvironment } from './ManifestRuntimeEnvironment.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ManifestRuntime
17
+ */
18
+ export interface ManifestRuntime {
19
+ /**
20
+ * The unique identifier of the runtime environment
21
+ * @type {ManifestRuntimeEnvironment}
22
+ * @memberof ManifestRuntime
23
+ */
24
+ environment: ManifestRuntimeEnvironment;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ManifestRuntime interface.
28
+ */
29
+ export declare function instanceOfManifestRuntime(value: object): value is ManifestRuntime;
30
+ export declare function ManifestRuntimeFromJSON(json: any): ManifestRuntime;
31
+ export declare function ManifestRuntimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestRuntime;
32
+ export declare function ManifestRuntimeToJSON(json: any): ManifestRuntime;
33
+ export declare function ManifestRuntimeToJSONTyped(value?: ManifestRuntime | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.2.6
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ManifestRuntimeEnvironmentFromJSON, ManifestRuntimeEnvironmentToJSON, } from './ManifestRuntimeEnvironment.js';
15
+ /**
16
+ * Check if a given object implements the ManifestRuntime interface.
17
+ */
18
+ export function instanceOfManifestRuntime(value) {
19
+ if (!('environment' in value) || value['environment'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ManifestRuntimeFromJSON(json) {
24
+ return ManifestRuntimeFromJSONTyped(json, false);
25
+ }
26
+ export function ManifestRuntimeFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'environment': ManifestRuntimeEnvironmentFromJSON(json['environment']),
32
+ };
33
+ }
34
+ export function ManifestRuntimeToJSON(json) {
35
+ return ManifestRuntimeToJSONTyped(json, false);
36
+ }
37
+ export function ManifestRuntimeToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'environment': ManifestRuntimeEnvironmentToJSON(value['environment']),
43
+ };
44
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.2.6
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The unique identifier of the runtime environment
14
+ * @export
15
+ */
16
+ export declare const ManifestRuntimeEnvironment: {
17
+ readonly Python: "python";
18
+ readonly Node: "node";
19
+ };
20
+ export type ManifestRuntimeEnvironment = typeof ManifestRuntimeEnvironment[keyof typeof ManifestRuntimeEnvironment];
21
+ export declare function instanceOfManifestRuntimeEnvironment(value: any): boolean;
22
+ export declare function ManifestRuntimeEnvironmentFromJSON(json: any): ManifestRuntimeEnvironment;
23
+ export declare function ManifestRuntimeEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestRuntimeEnvironment;
24
+ export declare function ManifestRuntimeEnvironmentToJSON(value?: ManifestRuntimeEnvironment | null): any;
25
+ export declare function ManifestRuntimeEnvironmentToJSONTyped(value: any, ignoreDiscriminator: boolean): ManifestRuntimeEnvironment;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.2.6
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The unique identifier of the runtime environment
16
+ * @export
17
+ */
18
+ export const ManifestRuntimeEnvironment = {
19
+ Python: 'python',
20
+ Node: 'node'
21
+ };
22
+ export function instanceOfManifestRuntimeEnvironment(value) {
23
+ for (const key in ManifestRuntimeEnvironment) {
24
+ if (Object.prototype.hasOwnProperty.call(ManifestRuntimeEnvironment, key)) {
25
+ if (ManifestRuntimeEnvironment[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function ManifestRuntimeEnvironmentFromJSON(json) {
33
+ return ManifestRuntimeEnvironmentFromJSONTyped(json, false);
34
+ }
35
+ export function ManifestRuntimeEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function ManifestRuntimeEnvironmentToJSON(value) {
39
+ return value;
40
+ }
41
+ export function ManifestRuntimeEnvironmentToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.2.6
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ManifestInterfaceElement } from './ManifestInterfaceElement.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ManifestUserInterface
17
+ */
18
+ export interface ManifestUserInterface {
19
+ /**
20
+ * The various elements of the User Interface
21
+ * @type {Array<ManifestInterfaceElement>}
22
+ * @memberof ManifestUserInterface
23
+ */
24
+ elements: Array<ManifestInterfaceElement>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ManifestUserInterface interface.
28
+ */
29
+ export declare function instanceOfManifestUserInterface(value: object): value is ManifestUserInterface;
30
+ export declare function ManifestUserInterfaceFromJSON(json: any): ManifestUserInterface;
31
+ export declare function ManifestUserInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManifestUserInterface;
32
+ export declare function ManifestUserInterfaceToJSON(json: any): ManifestUserInterface;
33
+ export declare function ManifestUserInterfaceToJSONTyped(value?: ManifestUserInterface | null, ignoreDiscriminator?: boolean): any;