@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,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 { ManifestInterfaceElementFromJSON, ManifestInterfaceElementToJSON, } from './ManifestInterfaceElement.js';
15
+ /**
16
+ * Check if a given object implements the ManifestUserInterface interface.
17
+ */
18
+ export function instanceOfManifestUserInterface(value) {
19
+ if (!('elements' in value) || value['elements'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ManifestUserInterfaceFromJSON(json) {
24
+ return ManifestUserInterfaceFromJSONTyped(json, false);
25
+ }
26
+ export function ManifestUserInterfaceFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'elements': (json['elements'].map(ManifestInterfaceElementFromJSON)),
32
+ };
33
+ }
34
+ export function ManifestUserInterfaceToJSON(json) {
35
+ return ManifestUserInterfaceToJSONTyped(json, false);
36
+ }
37
+ export function ManifestUserInterfaceToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'elements': (value['elements'].map(ManifestInterfaceElementToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,74 @@
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 MidjourneyInstructions
16
+ */
17
+ export interface MidjourneyInstructions {
18
+ /**
19
+ * The creation date of the image
20
+ * @type {number}
21
+ * @memberof MidjourneyInstructions
22
+ */
23
+ creationDate: number;
24
+ /**
25
+ * The author of the image
26
+ * @type {string}
27
+ * @memberof MidjourneyInstructions
28
+ */
29
+ author: string;
30
+ /**
31
+ * The prompt used to generate the image
32
+ * @type {string}
33
+ * @memberof MidjourneyInstructions
34
+ */
35
+ prompt: string;
36
+ /**
37
+ * The chaos used to generate the image
38
+ * @type {number}
39
+ * @memberof MidjourneyInstructions
40
+ */
41
+ chaos: number;
42
+ /**
43
+ * The aspect ratio of the image
44
+ * @type {string}
45
+ * @memberof MidjourneyInstructions
46
+ */
47
+ aspectRatio: string;
48
+ /**
49
+ * The seed used to generate the image
50
+ * @type {number}
51
+ * @memberof MidjourneyInstructions
52
+ */
53
+ seed: number;
54
+ /**
55
+ * The image global unique identifier
56
+ * @type {string}
57
+ * @memberof MidjourneyInstructions
58
+ */
59
+ guid: string;
60
+ /**
61
+ * The image source URL
62
+ * @type {string}
63
+ * @memberof MidjourneyInstructions
64
+ */
65
+ source: string;
66
+ }
67
+ /**
68
+ * Check if a given object implements the MidjourneyInstructions interface.
69
+ */
70
+ export declare function instanceOfMidjourneyInstructions(value: object): value is MidjourneyInstructions;
71
+ export declare function MidjourneyInstructionsFromJSON(json: any): MidjourneyInstructions;
72
+ export declare function MidjourneyInstructionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MidjourneyInstructions;
73
+ export declare function MidjourneyInstructionsToJSON(json: any): MidjourneyInstructions;
74
+ export declare function MidjourneyInstructionsToJSONTyped(value?: MidjourneyInstructions | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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 MidjourneyInstructions interface.
16
+ */
17
+ export function instanceOfMidjourneyInstructions(value) {
18
+ if (!('creationDate' in value) || value['creationDate'] === undefined)
19
+ return false;
20
+ if (!('author' in value) || value['author'] === undefined)
21
+ return false;
22
+ if (!('prompt' in value) || value['prompt'] === undefined)
23
+ return false;
24
+ if (!('chaos' in value) || value['chaos'] === undefined)
25
+ return false;
26
+ if (!('aspectRatio' in value) || value['aspectRatio'] === undefined)
27
+ return false;
28
+ if (!('seed' in value) || value['seed'] === undefined)
29
+ return false;
30
+ if (!('guid' in value) || value['guid'] === undefined)
31
+ return false;
32
+ if (!('source' in value) || value['source'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function MidjourneyInstructionsFromJSON(json) {
37
+ return MidjourneyInstructionsFromJSONTyped(json, false);
38
+ }
39
+ export function MidjourneyInstructionsFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'creationDate': json['creationDate'],
45
+ 'author': json['author'],
46
+ 'prompt': json['prompt'],
47
+ 'chaos': json['chaos'],
48
+ 'aspectRatio': json['aspectRatio'],
49
+ 'seed': json['seed'],
50
+ 'guid': json['guid'],
51
+ 'source': json['source'],
52
+ };
53
+ }
54
+ export function MidjourneyInstructionsToJSON(json) {
55
+ return MidjourneyInstructionsToJSONTyped(json, false);
56
+ }
57
+ export function MidjourneyInstructionsToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'creationDate': value['creationDate'],
63
+ 'author': value['author'],
64
+ 'prompt': value['prompt'],
65
+ 'chaos': value['chaos'],
66
+ 'aspectRatio': value['aspectRatio'],
67
+ 'seed': value['seed'],
68
+ 'guid': value['guid'],
69
+ 'source': value['source'],
70
+ };
71
+ }
@@ -0,0 +1,82 @@
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 { RepositoryStatus } from './RepositoryStatus.js';
13
+ import type { RepositoryLocationType } from './RepositoryLocationType.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Repository
18
+ */
19
+ export interface Repository {
20
+ /**
21
+ * The entity creation date
22
+ * @type {number}
23
+ * @memberof Repository
24
+ */
25
+ creationDate: number;
26
+ /**
27
+ * The entity last modification date
28
+ * @type {number}
29
+ * @memberof Repository
30
+ */
31
+ modificationDate: number;
32
+ /**
33
+ * The unique identifier of the repository
34
+ * @type {string}
35
+ * @memberof Repository
36
+ */
37
+ id: string;
38
+ /**
39
+ * The type of the repository back-end location
40
+ * @type {RepositoryLocationType}
41
+ * @memberof Repository
42
+ */
43
+ type: RepositoryLocationType;
44
+ /**
45
+ * The URL of the repository back-end location
46
+ * @type {string}
47
+ * @memberof Repository
48
+ */
49
+ url: string;
50
+ /**
51
+ * The technical identifier of the repository
52
+ * @type {string}
53
+ * @memberof Repository
54
+ */
55
+ technicalId?: string;
56
+ /**
57
+ * The name of the repository
58
+ * @type {string}
59
+ * @memberof Repository
60
+ */
61
+ name: string;
62
+ /**
63
+ * The comment about the repository
64
+ * @type {string}
65
+ * @memberof Repository
66
+ */
67
+ comment?: string;
68
+ /**
69
+ * The status of the repository
70
+ * @type {RepositoryStatus}
71
+ * @memberof Repository
72
+ */
73
+ status: RepositoryStatus;
74
+ }
75
+ /**
76
+ * Check if a given object implements the Repository interface.
77
+ */
78
+ export declare function instanceOfRepository(value: object): value is Repository;
79
+ export declare function RepositoryFromJSON(json: any): Repository;
80
+ export declare function RepositoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Repository;
81
+ export declare function RepositoryToJSON(json: any): Repository;
82
+ export declare function RepositoryToJSONTyped(value?: Repository | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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 { RepositoryStatusFromJSON, RepositoryStatusToJSON, } from './RepositoryStatus.js';
15
+ import { RepositoryLocationTypeFromJSON, RepositoryLocationTypeToJSON, } from './RepositoryLocationType.js';
16
+ /**
17
+ * Check if a given object implements the Repository interface.
18
+ */
19
+ export function instanceOfRepository(value) {
20
+ if (!('creationDate' in value) || value['creationDate'] === undefined)
21
+ return false;
22
+ if (!('modificationDate' in value) || value['modificationDate'] === undefined)
23
+ return false;
24
+ if (!('id' in value) || value['id'] === undefined)
25
+ return false;
26
+ if (!('type' in value) || value['type'] === undefined)
27
+ return false;
28
+ if (!('url' in value) || value['url'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('status' in value) || value['status'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function RepositoryFromJSON(json) {
37
+ return RepositoryFromJSONTyped(json, false);
38
+ }
39
+ export function RepositoryFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'creationDate': json['creationDate'],
45
+ 'modificationDate': json['modificationDate'],
46
+ 'id': json['id'],
47
+ 'type': RepositoryLocationTypeFromJSON(json['type']),
48
+ 'url': json['url'],
49
+ 'technicalId': json['technicalId'] == null ? undefined : json['technicalId'],
50
+ 'name': json['name'],
51
+ 'comment': json['comment'] == null ? undefined : json['comment'],
52
+ 'status': RepositoryStatusFromJSON(json['status']),
53
+ };
54
+ }
55
+ export function RepositoryToJSON(json) {
56
+ return RepositoryToJSONTyped(json, false);
57
+ }
58
+ export function RepositoryToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'creationDate': value['creationDate'],
64
+ 'modificationDate': value['modificationDate'],
65
+ 'id': value['id'],
66
+ 'type': RepositoryLocationTypeToJSON(value['type']),
67
+ 'url': value['url'],
68
+ 'technicalId': value['technicalId'],
69
+ 'name': value['name'],
70
+ 'comment': value['comment'],
71
+ 'status': RepositoryStatusToJSON(value['status']),
72
+ };
73
+ }
@@ -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 { RepositoryActivityKind } from './RepositoryActivityKind.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RepositoryActivity
17
+ */
18
+ export interface RepositoryActivity {
19
+ /**
20
+ * The unique identifier of the repository
21
+ * @type {string}
22
+ * @memberof RepositoryActivity
23
+ */
24
+ id: string;
25
+ /**
26
+ * The kind of activity of the repository
27
+ * @type {RepositoryActivityKind}
28
+ * @memberof RepositoryActivity
29
+ */
30
+ kind: RepositoryActivityKind;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RepositoryActivity interface.
34
+ */
35
+ export declare function instanceOfRepositoryActivity(value: object): value is RepositoryActivity;
36
+ export declare function RepositoryActivityFromJSON(json: any): RepositoryActivity;
37
+ export declare function RepositoryActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepositoryActivity;
38
+ export declare function RepositoryActivityToJSON(json: any): RepositoryActivity;
39
+ export declare function RepositoryActivityToJSONTyped(value?: RepositoryActivity | 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 { RepositoryActivityKindFromJSON, RepositoryActivityKindToJSON, } from './RepositoryActivityKind.js';
15
+ /**
16
+ * Check if a given object implements the RepositoryActivity interface.
17
+ */
18
+ export function instanceOfRepositoryActivity(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('kind' in value) || value['kind'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function RepositoryActivityFromJSON(json) {
26
+ return RepositoryActivityFromJSONTyped(json, false);
27
+ }
28
+ export function RepositoryActivityFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'id': json['id'],
34
+ 'kind': RepositoryActivityKindFromJSON(json['kind']),
35
+ };
36
+ }
37
+ export function RepositoryActivityToJSON(json) {
38
+ return RepositoryActivityToJSONTyped(json, false);
39
+ }
40
+ export function RepositoryActivityToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'id': value['id'],
46
+ 'kind': RepositoryActivityKindToJSON(value['kind']),
47
+ };
48
+ }
@@ -0,0 +1,26 @@
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 kind of activity of the repository
14
+ * @export
15
+ */
16
+ export declare const RepositoryActivityKind: {
17
+ readonly None: "none";
18
+ readonly Synchronizing: "synchronizing";
19
+ readonly Watching: "watching";
20
+ };
21
+ export type RepositoryActivityKind = typeof RepositoryActivityKind[keyof typeof RepositoryActivityKind];
22
+ export declare function instanceOfRepositoryActivityKind(value: any): boolean;
23
+ export declare function RepositoryActivityKindFromJSON(json: any): RepositoryActivityKind;
24
+ export declare function RepositoryActivityKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepositoryActivityKind;
25
+ export declare function RepositoryActivityKindToJSON(value?: RepositoryActivityKind | null): any;
26
+ export declare function RepositoryActivityKindToJSONTyped(value: any, ignoreDiscriminator: boolean): RepositoryActivityKind;
@@ -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
+ /**
15
+ * The kind of activity of the repository
16
+ * @export
17
+ */
18
+ export const RepositoryActivityKind = {
19
+ None: 'none',
20
+ Synchronizing: 'synchronizing',
21
+ Watching: 'watching'
22
+ };
23
+ export function instanceOfRepositoryActivityKind(value) {
24
+ for (const key in RepositoryActivityKind) {
25
+ if (Object.prototype.hasOwnProperty.call(RepositoryActivityKind, key)) {
26
+ if (RepositoryActivityKind[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function RepositoryActivityKindFromJSON(json) {
34
+ return RepositoryActivityKindFromJSONTyped(json, false);
35
+ }
36
+ export function RepositoryActivityKindFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function RepositoryActivityKindToJSON(value) {
40
+ return value;
41
+ }
42
+ export function RepositoryActivityKindToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -0,0 +1,24 @@
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 type of the repository back-end location
14
+ * @export
15
+ */
16
+ export declare const RepositoryLocationType: {
17
+ readonly File: "file";
18
+ };
19
+ export type RepositoryLocationType = typeof RepositoryLocationType[keyof typeof RepositoryLocationType];
20
+ export declare function instanceOfRepositoryLocationType(value: any): boolean;
21
+ export declare function RepositoryLocationTypeFromJSON(json: any): RepositoryLocationType;
22
+ export declare function RepositoryLocationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepositoryLocationType;
23
+ export declare function RepositoryLocationTypeToJSON(value?: RepositoryLocationType | null): any;
24
+ export declare function RepositoryLocationTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): RepositoryLocationType;
@@ -0,0 +1,42 @@
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 type of the repository back-end location
16
+ * @export
17
+ */
18
+ export const RepositoryLocationType = {
19
+ File: 'file'
20
+ };
21
+ export function instanceOfRepositoryLocationType(value) {
22
+ for (const key in RepositoryLocationType) {
23
+ if (Object.prototype.hasOwnProperty.call(RepositoryLocationType, key)) {
24
+ if (RepositoryLocationType[key] === value) {
25
+ return true;
26
+ }
27
+ }
28
+ }
29
+ return false;
30
+ }
31
+ export function RepositoryLocationTypeFromJSON(json) {
32
+ return RepositoryLocationTypeFromJSONTyped(json, false);
33
+ }
34
+ export function RepositoryLocationTypeFromJSONTyped(json, ignoreDiscriminator) {
35
+ return json;
36
+ }
37
+ export function RepositoryLocationTypeToJSON(value) {
38
+ return value;
39
+ }
40
+ export function RepositoryLocationTypeToJSONTyped(value, ignoreDiscriminator) {
41
+ return value;
42
+ }
@@ -0,0 +1,27 @@
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 status of the repository
14
+ * @export
15
+ */
16
+ export declare const RepositoryStatus: {
17
+ readonly Unavailable: "UNAVAILABLE";
18
+ readonly Ready: "READY";
19
+ readonly Indexing: "INDEXING";
20
+ readonly UnavailableIndexing: "UNAVAILABLE_INDEXING";
21
+ };
22
+ export type RepositoryStatus = typeof RepositoryStatus[keyof typeof RepositoryStatus];
23
+ export declare function instanceOfRepositoryStatus(value: any): boolean;
24
+ export declare function RepositoryStatusFromJSON(json: any): RepositoryStatus;
25
+ export declare function RepositoryStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepositoryStatus;
26
+ export declare function RepositoryStatusToJSON(value?: RepositoryStatus | null): any;
27
+ export declare function RepositoryStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): RepositoryStatus;
@@ -0,0 +1,45 @@
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 status of the repository
16
+ * @export
17
+ */
18
+ export const RepositoryStatus = {
19
+ Unavailable: 'UNAVAILABLE',
20
+ Ready: 'READY',
21
+ Indexing: 'INDEXING',
22
+ UnavailableIndexing: 'UNAVAILABLE_INDEXING'
23
+ };
24
+ export function instanceOfRepositoryStatus(value) {
25
+ for (const key in RepositoryStatus) {
26
+ if (Object.prototype.hasOwnProperty.call(RepositoryStatus, key)) {
27
+ if (RepositoryStatus[key] === value) {
28
+ return true;
29
+ }
30
+ }
31
+ }
32
+ return false;
33
+ }
34
+ export function RepositoryStatusFromJSON(json) {
35
+ return RepositoryStatusFromJSONTyped(json, false);
36
+ }
37
+ export function RepositoryStatusFromJSONTyped(json, ignoreDiscriminator) {
38
+ return json;
39
+ }
40
+ export function RepositoryStatusToJSON(value) {
41
+ return value;
42
+ }
43
+ export function RepositoryStatusToJSONTyped(value, ignoreDiscriminator) {
44
+ return value;
45
+ }