@cosmotech/api-ts 3.3.4 → 4.2.5-onprem

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 (154) hide show
  1. package/.github/workflows/publish.yaml +13 -12
  2. package/.github/workflows/track_dependencies.yml +31 -0
  3. package/.openapi-generator/FILES +98 -0
  4. package/.openapi-generator/VERSION +1 -1
  5. package/README.md +210 -2
  6. package/api.ts +4650 -11656
  7. package/base.ts +2 -2
  8. package/common.ts +22 -44
  9. package/configuration.ts +7 -2
  10. package/dist/api.d.ts +2165 -6422
  11. package/dist/api.js +726 -7302
  12. package/dist/base.d.ts +1 -1
  13. package/dist/base.js +2 -2
  14. package/dist/common.d.ts +5 -36
  15. package/dist/common.js +17 -39
  16. package/dist/configuration.d.ts +1 -1
  17. package/dist/configuration.js +14 -2
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +1 -1
  20. package/docs/AboutInfo.md +21 -0
  21. package/docs/AboutInfoVersion.md +33 -0
  22. package/docs/ComponentRolePermissions.md +23 -0
  23. package/docs/Connector.md +41 -0
  24. package/docs/ConnectorApi.md +218 -0
  25. package/docs/ConnectorParameter.md +31 -0
  26. package/docs/ConnectorParameterGroup.md +25 -0
  27. package/docs/ContainerResourceSizeInfo.md +23 -0
  28. package/docs/ContainerResourceSizing.md +23 -0
  29. package/docs/CreateInfo.md +24 -0
  30. package/docs/CreatedRun.md +21 -0
  31. package/docs/Dataset.md +65 -0
  32. package/docs/DatasetAccessControl.md +23 -0
  33. package/docs/DatasetApi.md +1809 -0
  34. package/docs/DatasetCompatibility.md +25 -0
  35. package/docs/DatasetConnector.md +27 -0
  36. package/docs/DatasetCopyParameters.md +25 -0
  37. package/docs/DatasetCreateInfo.md +24 -0
  38. package/docs/DatasetCreateRequest.md +31 -0
  39. package/docs/DatasetEditInfo.md +22 -0
  40. package/docs/DatasetMemberGroup.md +25 -0
  41. package/docs/DatasetMemberUser.md +23 -0
  42. package/docs/DatasetMembers.md +23 -0
  43. package/docs/DatasetPart.md +43 -0
  44. package/docs/DatasetPartCreateRequest.md +31 -0
  45. package/docs/DatasetPartTypeEnum.md +11 -0
  46. package/docs/DatasetPartUpdateRequest.md +27 -0
  47. package/docs/DatasetRole.md +21 -0
  48. package/docs/DatasetSearch.md +21 -0
  49. package/docs/DatasetSecurity.md +23 -0
  50. package/docs/DatasetSourceType.md +19 -0
  51. package/docs/DatasetTwinGraphHash.md +21 -0
  52. package/docs/DatasetTwinGraphInfo.md +25 -0
  53. package/docs/DatasetTwinGraphQuery.md +21 -0
  54. package/docs/DatasetUpdateRequest.md +29 -0
  55. package/docs/DeleteHistoricalData.md +25 -0
  56. package/docs/EditInfo.md +22 -0
  57. package/docs/FileUploadMetadata.md +22 -0
  58. package/docs/FileUploadValidation.md +23 -0
  59. package/docs/GraphProperties.md +28 -0
  60. package/docs/IAMInfoApi.md +95 -0
  61. package/docs/IngestionStatusEnum.md +15 -0
  62. package/docs/IoTypesEnum.md +11 -0
  63. package/docs/LastRunInfo.md +23 -0
  64. package/docs/MemberGroup.md +25 -0
  65. package/docs/MemberUser.md +23 -0
  66. package/docs/Members.md +23 -0
  67. package/docs/MetaApi.md +52 -0
  68. package/docs/Organization.md +27 -0
  69. package/docs/OrganizationAccessControl.md +23 -0
  70. package/docs/OrganizationApi.md +758 -0
  71. package/docs/OrganizationCreateRequest.md +23 -0
  72. package/docs/OrganizationEditInfo.md +22 -0
  73. package/docs/OrganizationMemberGroup.md +25 -0
  74. package/docs/OrganizationMemberUser.md +23 -0
  75. package/docs/OrganizationMembers.md +23 -0
  76. package/docs/OrganizationRole.md +21 -0
  77. package/docs/OrganizationSecurity.md +23 -0
  78. package/docs/OrganizationUpdateRequest.md +21 -0
  79. package/docs/QueryResult.md +21 -0
  80. package/docs/ResourceSizeInfo.md +23 -0
  81. package/docs/Run.md +57 -0
  82. package/docs/RunApi.md +442 -0
  83. package/docs/RunContainer.md +41 -0
  84. package/docs/RunData.md +25 -0
  85. package/docs/RunDataQuery.md +21 -0
  86. package/docs/RunEditInfo.md +22 -0
  87. package/docs/RunLogs.md +23 -0
  88. package/docs/RunLogsEntry.md +21 -0
  89. package/docs/RunResourceRequested.md +23 -0
  90. package/docs/RunState.md +15 -0
  91. package/docs/RunStatus.md +47 -0
  92. package/docs/RunStatusNode.md +43 -0
  93. package/docs/RunTemplate.md +87 -0
  94. package/docs/RunTemplateCreateRequest.md +37 -0
  95. package/docs/RunTemplateOrchestrator.md +11 -0
  96. package/docs/RunTemplateParameter.md +35 -0
  97. package/docs/RunTemplateParameterCreateRequest.md +35 -0
  98. package/docs/RunTemplateParameterGroup.md +31 -0
  99. package/docs/RunTemplateParameterGroupCreateRequest.md +29 -0
  100. package/docs/RunTemplateParameterGroupUpdateRequest.md +27 -0
  101. package/docs/RunTemplateParameterUpdateRequest.md +33 -0
  102. package/docs/RunTemplateParameterValue.md +25 -0
  103. package/docs/RunTemplateResourceSizing.md +23 -0
  104. package/docs/RunTemplateStepSource.md +15 -0
  105. package/docs/RunTemplateUpdateRequest.md +35 -0
  106. package/docs/Runner.md +63 -0
  107. package/docs/RunnerAccessControl.md +23 -0
  108. package/docs/RunnerApi.md +908 -0
  109. package/docs/RunnerCreateRequest.md +45 -0
  110. package/docs/RunnerDatasets.md +24 -0
  111. package/docs/RunnerEditInfo.md +22 -0
  112. package/docs/RunnerMemberGroup.md +25 -0
  113. package/docs/RunnerMemberUser.md +23 -0
  114. package/docs/RunnerMembers.md +23 -0
  115. package/docs/RunnerResourceSizing.md +23 -0
  116. package/docs/RunnerRole.md +21 -0
  117. package/docs/RunnerRunTemplateParameterValue.md +27 -0
  118. package/docs/RunnerSecurity.md +23 -0
  119. package/docs/RunnerStatus.md +11 -0
  120. package/docs/RunnerUpdateRequest.md +41 -0
  121. package/docs/RunnerValidationStatus.md +15 -0
  122. package/docs/SendRunDataRequest.md +22 -0
  123. package/docs/Solution.md +53 -0
  124. package/docs/SolutionAccessControl.md +23 -0
  125. package/docs/SolutionApi.md +1159 -0
  126. package/docs/SolutionCreateRequest.md +43 -0
  127. package/docs/SolutionEditInfo.md +22 -0
  128. package/docs/SolutionFile.md +21 -0
  129. package/docs/SolutionMemberGroup.md +25 -0
  130. package/docs/SolutionMemberUser.md +23 -0
  131. package/docs/SolutionMembers.md +23 -0
  132. package/docs/SolutionRole.md +21 -0
  133. package/docs/SolutionSecurity.md +23 -0
  134. package/docs/SolutionUpdateRequest.md +41 -0
  135. package/docs/SourceInfo.md +27 -0
  136. package/docs/SubDatasetGraphQuery.md +27 -0
  137. package/docs/TwinGraphBatchResult.md +25 -0
  138. package/docs/TwincacheStatusEnum.md +11 -0
  139. package/docs/Workspace.md +57 -0
  140. package/docs/WorkspaceAccessControl.md +23 -0
  141. package/docs/WorkspaceApi.md +1162 -0
  142. package/docs/WorkspaceCreateRequest.md +35 -0
  143. package/docs/WorkspaceEditInfo.md +22 -0
  144. package/docs/WorkspaceFile.md +21 -0
  145. package/docs/WorkspaceMemberGroup.md +25 -0
  146. package/docs/WorkspaceMemberUser.md +23 -0
  147. package/docs/WorkspaceMembers.md +23 -0
  148. package/docs/WorkspaceRole.md +21 -0
  149. package/docs/WorkspaceSecurity.md +23 -0
  150. package/docs/WorkspaceSolution.md +25 -0
  151. package/docs/WorkspaceUpdateRequest.md +31 -0
  152. package/docs/WorkspaceWebApp.md +25 -0
  153. package/index.ts +1 -1
  154. package/package.json +2 -2
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Cosmo Tech Platform API
3
3
  * Cosmo Tech Platform API
4
4
  *
5
- * The version of the OpenAPI document: 3.3.4
5
+ * The version of the OpenAPI document: 4.2.5-onprem
6
6
  * Contact: platform@cosmotech.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 3.3.4
8
+ * The version of the OpenAPI document: 4.2.5-onprem
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,7 +30,7 @@ var __extends = (this && this.__extends) || (function () {
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
31
  exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
32
32
  var axios_1 = require("axios");
33
- exports.BASE_PATH = "https://dev.api.cosmotech.com".replace(/\/+$/, "");
33
+ exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
34
34
  /**
35
35
  *
36
36
  * @export
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Cosmo Tech Platform API
3
3
  * Cosmo Tech Platform API
4
4
  *
5
- * The version of the OpenAPI document: 3.3.4
5
+ * The version of the OpenAPI document: 4.2.5-onprem
6
6
  * Contact: platform@cosmotech.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,54 +12,23 @@
12
12
  import type { Configuration } from "./configuration";
13
13
  import type { RequestArgs } from "./base";
14
14
  import type { AxiosInstance, AxiosResponse } from 'axios';
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export declare const DUMMY_BASE_URL = "https://example.com";
20
16
  /**
21
17
  *
22
18
  * @throws {RequiredError}
23
- * @export
24
19
  */
25
20
  export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
- /**
27
- *
28
- * @export
29
- */
30
21
  export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
- /**
32
- *
33
- * @export
34
- */
35
22
  export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
- /**
37
- *
38
- * @export
39
- */
40
23
  export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
- /**
42
- *
43
- * @export
44
- */
45
24
  export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
- /**
47
- *
48
- * @export
49
- */
50
25
  export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
26
  /**
52
- *
53
- * @export
27
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
28
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
54
30
  */
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
55
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
- /**
57
- *
58
- * @export
59
- */
60
33
  export declare const toPathString: (url: URL) => string;
61
- /**
62
- *
63
- * @export
64
- */
65
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 3.3.4
8
+ * The version of the OpenAPI document: 4.2.5-onprem
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -60,17 +60,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
60
60
  }
61
61
  };
62
62
  Object.defineProperty(exports, "__esModule", { value: true });
63
- exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
63
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
64
64
  var base_1 = require("./base");
65
- /**
66
- *
67
- * @export
68
- */
69
65
  exports.DUMMY_BASE_URL = 'https://example.com';
70
66
  /**
71
67
  *
72
68
  * @throws {RequiredError}
73
- * @export
74
69
  */
75
70
  var assertParamExists = function (functionName, paramName, paramValue) {
76
71
  if (paramValue === null || paramValue === undefined) {
@@ -78,10 +73,6 @@ var assertParamExists = function (functionName, paramName, paramValue) {
78
73
  }
79
74
  };
80
75
  exports.assertParamExists = assertParamExists;
81
- /**
82
- *
83
- * @export
84
- */
85
76
  var setApiKeyToObject = function (object, keyParamName, configuration) {
86
77
  return __awaiter(this, void 0, void 0, function () {
87
78
  var localVarApiKeyValue, _a;
@@ -108,20 +99,12 @@ var setApiKeyToObject = function (object, keyParamName, configuration) {
108
99
  });
109
100
  };
110
101
  exports.setApiKeyToObject = setApiKeyToObject;
111
- /**
112
- *
113
- * @export
114
- */
115
102
  var setBasicAuthToObject = function (object, configuration) {
116
103
  if (configuration && (configuration.username || configuration.password)) {
117
104
  object["auth"] = { username: configuration.username, password: configuration.password };
118
105
  }
119
106
  };
120
107
  exports.setBasicAuthToObject = setBasicAuthToObject;
121
- /**
122
- *
123
- * @export
124
- */
125
108
  var setBearerAuthToObject = function (object, configuration) {
126
109
  return __awaiter(this, void 0, void 0, function () {
127
110
  var accessToken, _a;
@@ -148,10 +131,6 @@ var setBearerAuthToObject = function (object, configuration) {
148
131
  });
149
132
  };
150
133
  exports.setBearerAuthToObject = setBearerAuthToObject;
151
- /**
152
- *
153
- * @export
154
- */
155
134
  var setOAuthToObject = function (object, name, scopes, configuration) {
156
135
  return __awaiter(this, void 0, void 0, function () {
157
136
  var localVarAccessTokenValue, _a;
@@ -183,7 +162,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
183
162
  if (parameter == null)
184
163
  return;
185
164
  if (typeof parameter === "object") {
186
- if (Array.isArray(parameter)) {
165
+ if (Array.isArray(parameter) || parameter instanceof Set) {
187
166
  parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
188
167
  }
189
168
  else {
@@ -201,10 +180,6 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
201
180
  }
202
181
  }
203
182
  }
204
- /**
205
- *
206
- * @export
207
- */
208
183
  var setSearchParams = function (url) {
209
184
  var objects = [];
210
185
  for (var _i = 1; _i < arguments.length; _i++) {
@@ -216,31 +191,34 @@ var setSearchParams = function (url) {
216
191
  };
217
192
  exports.setSearchParams = setSearchParams;
218
193
  /**
219
- *
220
- * @export
194
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
195
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
196
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
221
197
  */
198
+ // @ts-ignore
199
+ var replaceWithSerializableTypeIfNeeded = function (key, value) {
200
+ if (value instanceof Set) {
201
+ return Array.from(value);
202
+ }
203
+ else {
204
+ return value;
205
+ }
206
+ };
207
+ exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
222
208
  var serializeDataIfNeeded = function (value, requestOptions, configuration) {
223
209
  var nonString = typeof value !== 'string';
224
210
  var needsSerialization = nonString && configuration && configuration.isJsonMime
225
211
  ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
226
212
  : nonString;
227
213
  return needsSerialization
228
- ? JSON.stringify(value !== undefined ? value : {})
214
+ ? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
229
215
  : (value || "");
230
216
  };
231
217
  exports.serializeDataIfNeeded = serializeDataIfNeeded;
232
- /**
233
- *
234
- * @export
235
- */
236
218
  var toPathString = function (url) {
237
219
  return url.pathname + url.search + url.hash;
238
220
  };
239
221
  exports.toPathString = toPathString;
240
- /**
241
- *
242
- * @export
243
- */
244
222
  var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
245
223
  return function (axios, basePath) {
246
224
  var _a;
@@ -2,7 +2,7 @@
2
2
  * Cosmo Tech Platform API
3
3
  * Cosmo Tech Platform API
4
4
  *
5
- * The version of the OpenAPI document: 3.3.4
5
+ * The version of the OpenAPI document: 4.2.5-onprem
6
6
  * Contact: platform@cosmotech.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,25 +5,37 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 3.3.4
8
+ * The version of the OpenAPI document: 4.2.5-onprem
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
16
27
  exports.Configuration = void 0;
17
28
  var Configuration = /** @class */ (function () {
18
29
  function Configuration(param) {
19
30
  if (param === void 0) { param = {}; }
31
+ var _a;
20
32
  this.apiKey = param.apiKey;
21
33
  this.username = param.username;
22
34
  this.password = param.password;
23
35
  this.accessToken = param.accessToken;
24
36
  this.basePath = param.basePath;
25
37
  this.serverIndex = param.serverIndex;
26
- this.baseOptions = param.baseOptions;
38
+ this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
27
39
  this.formDataCtor = param.formDataCtor;
28
40
  }
29
41
  /**
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Cosmo Tech Platform API
3
3
  * Cosmo Tech Platform API
4
4
  *
5
- * The version of the OpenAPI document: 3.3.4
5
+ * The version of the OpenAPI document: 4.2.5-onprem
6
6
  * Contact: platform@cosmotech.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 3.3.4
8
+ * The version of the OpenAPI document: 4.2.5-onprem
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,21 @@
1
+ # AboutInfo
2
+
3
+ Misc information about the api
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **version** | [**AboutInfoVersion**](AboutInfoVersion.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AboutInfo } from '@cosmotech/api-ts';
15
+
16
+ const instance: AboutInfo = {
17
+ version,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,33 @@
1
+ # AboutInfoVersion
2
+
3
+ API version details
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **full** | **string** | Full version representation | [default to undefined]
10
+ **release** | **string** | Release main version representation | [default to undefined]
11
+ **major** | **number** | Major version number | [default to undefined]
12
+ **minor** | **number** | Minor version number | [default to undefined]
13
+ **patch** | **number** | Patch version number | [default to undefined]
14
+ **label** | **string** | Label version, may be empty | [default to undefined]
15
+ **build** | **string** | Build VCS id | [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { AboutInfoVersion } from '@cosmotech/api-ts';
21
+
22
+ const instance: AboutInfoVersion = {
23
+ full,
24
+ release,
25
+ major,
26
+ minor,
27
+ patch,
28
+ label,
29
+ build,
30
+ };
31
+ ```
32
+
33
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # ComponentRolePermissions
2
+
3
+ a RBAC by component
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **component** | **string** | | [optional] [default to undefined]
10
+ **roles** | **{ [key: string]: Array&lt;string&gt;; }** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ComponentRolePermissions } from '@cosmotech/api-ts';
16
+
17
+ const instance: ComponentRolePermissions = {
18
+ component,
19
+ roles,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,41 @@
1
+ # Connector
2
+
3
+ a version of a Connector
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | the Connector version unique identifier | [optional] [readonly] [default to undefined]
10
+ **key** | **string** | the Connector key which group Connector versions | [optional] [default to undefined]
11
+ **name** | **string** | the Connector name | [optional] [default to undefined]
12
+ **description** | **string** | the Connector description | [optional] [default to undefined]
13
+ **repository** | **string** | the registry repository containing the image | [optional] [default to undefined]
14
+ **version** | **string** | the Connector version MAJOR.MINOR.PATCH. Must be aligned with an existing repository tag | [optional] [default to undefined]
15
+ **tags** | **Array&lt;string&gt;** | the list of tags | [optional] [default to undefined]
16
+ **ownerId** | **string** | the user id which own this connector version | [optional] [readonly] [default to undefined]
17
+ **url** | **string** | an optional URL link to connector page | [optional] [default to undefined]
18
+ **ioTypes** | [**Array&lt;IoTypesEnum&gt;**](IoTypesEnum.md) | | [optional] [default to undefined]
19
+ **parameterGroups** | [**Array&lt;ConnectorParameterGroup&gt;**](ConnectorParameterGroup.md) | the list of connector parameters groups | [optional] [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { Connector } from '@cosmotech/api-ts';
25
+
26
+ const instance: Connector = {
27
+ id,
28
+ key,
29
+ name,
30
+ description,
31
+ repository,
32
+ version,
33
+ tags,
34
+ ownerId,
35
+ url,
36
+ ioTypes,
37
+ parameterGroups,
38
+ };
39
+ ```
40
+
41
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,218 @@
1
+ # ConnectorApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**findAllConnectors**](#findallconnectors) | **GET** /connectors | List all Connectors|
8
+ |[**findConnectorById**](#findconnectorbyid) | **GET** /connectors/{connector_id} | Get the details of a connector|
9
+ |[**registerConnector**](#registerconnector) | **POST** /connectors | Register a new connector|
10
+ |[**unregisterConnector**](#unregisterconnector) | **DELETE** /connectors/{connector_id} | Unregister a connector|
11
+
12
+ # **findAllConnectors**
13
+ > Array<Connector> findAllConnectors()
14
+
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ ConnectorApi,
21
+ Configuration
22
+ } from '@cosmotech/api-ts';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new ConnectorApi(configuration);
26
+
27
+ let page: number; //page number to query (first page is at index 0) (optional) (default to undefined)
28
+ let size: number; //amount of result by page (optional) (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.findAllConnectors(
31
+ page,
32
+ size
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **page** | [**number**] | page number to query (first page is at index 0) | (optional) defaults to undefined|
41
+ | **size** | [**number**] | amount of result by page | (optional) defaults to undefined|
42
+
43
+
44
+ ### Return type
45
+
46
+ **Array<Connector>**
47
+
48
+ ### Authorization
49
+
50
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**200** | the list of Connectors | - |
62
+
63
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
64
+
65
+ # **findConnectorById**
66
+ > Connector findConnectorById()
67
+
68
+
69
+ ### Example
70
+
71
+ ```typescript
72
+ import {
73
+ ConnectorApi,
74
+ Configuration
75
+ } from '@cosmotech/api-ts';
76
+
77
+ const configuration = new Configuration();
78
+ const apiInstance = new ConnectorApi(configuration);
79
+
80
+ let connectorId: string; //the Connector identifier (default to undefined)
81
+
82
+ const { status, data } = await apiInstance.findConnectorById(
83
+ connectorId
84
+ );
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ |Name | Type | Description | Notes|
90
+ |------------- | ------------- | ------------- | -------------|
91
+ | **connectorId** | [**string**] | the Connector identifier | defaults to undefined|
92
+
93
+
94
+ ### Return type
95
+
96
+ **Connector**
97
+
98
+ ### Authorization
99
+
100
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
101
+
102
+ ### HTTP request headers
103
+
104
+ - **Content-Type**: Not defined
105
+ - **Accept**: application/json
106
+
107
+
108
+ ### HTTP response details
109
+ | Status code | Description | Response headers |
110
+ |-------------|-------------|------------------|
111
+ |**200** | the Connector details | - |
112
+ |**404** | the Connector specified is unknown or you don\&#39;t have access to it | - |
113
+
114
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
115
+
116
+ # **registerConnector**
117
+ > Connector registerConnector(connector)
118
+
119
+
120
+ ### Example
121
+
122
+ ```typescript
123
+ import {
124
+ ConnectorApi,
125
+ Configuration,
126
+ Connector
127
+ } from '@cosmotech/api-ts';
128
+
129
+ const configuration = new Configuration();
130
+ const apiInstance = new ConnectorApi(configuration);
131
+
132
+ let connector: Connector; //the Connector to register
133
+
134
+ const { status, data } = await apiInstance.registerConnector(
135
+ connector
136
+ );
137
+ ```
138
+
139
+ ### Parameters
140
+
141
+ |Name | Type | Description | Notes|
142
+ |------------- | ------------- | ------------- | -------------|
143
+ | **connector** | **Connector**| the Connector to register | |
144
+
145
+
146
+ ### Return type
147
+
148
+ **Connector**
149
+
150
+ ### Authorization
151
+
152
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: application/json, application/yaml
157
+ - **Accept**: application/json
158
+
159
+
160
+ ### HTTP response details
161
+ | Status code | Description | Response headers |
162
+ |-------------|-------------|------------------|
163
+ |**201** | the connector details | - |
164
+ |**400** | Bad request | - |
165
+
166
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
167
+
168
+ # **unregisterConnector**
169
+ > unregisterConnector()
170
+
171
+
172
+ ### Example
173
+
174
+ ```typescript
175
+ import {
176
+ ConnectorApi,
177
+ Configuration
178
+ } from '@cosmotech/api-ts';
179
+
180
+ const configuration = new Configuration();
181
+ const apiInstance = new ConnectorApi(configuration);
182
+
183
+ let connectorId: string; //the Connector identifier (default to undefined)
184
+
185
+ const { status, data } = await apiInstance.unregisterConnector(
186
+ connectorId
187
+ );
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+ |Name | Type | Description | Notes|
193
+ |------------- | ------------- | ------------- | -------------|
194
+ | **connectorId** | [**string**] | the Connector identifier | defaults to undefined|
195
+
196
+
197
+ ### Return type
198
+
199
+ void (empty response body)
200
+
201
+ ### Authorization
202
+
203
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
204
+
205
+ ### HTTP request headers
206
+
207
+ - **Content-Type**: Not defined
208
+ - **Accept**: Not defined
209
+
210
+
211
+ ### HTTP response details
212
+ | Status code | Description | Response headers |
213
+ |-------------|-------------|------------------|
214
+ |**204** | Request successful | - |
215
+ |**404** | the Connector specified is unknown or you don\&#39;t have access to it | - |
216
+
217
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
218
+
@@ -0,0 +1,31 @@
1
+ # ConnectorParameter
2
+
3
+ a connector parameter
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | the connector parameter id | [default to undefined]
10
+ **label** | **string** | the list of translated parameter group labels | [default to undefined]
11
+ **valueType** | **string** | the parameter value type | [optional] [default to undefined]
12
+ **_options** | **Array&lt;string&gt;** | the list of available and valid values for the parameter | [optional] [default to undefined]
13
+ **_default** | **string** | the default value | [optional] [default to undefined]
14
+ **envVar** | **string** | associated environment variable in connector image | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { ConnectorParameter } from '@cosmotech/api-ts';
20
+
21
+ const instance: ConnectorParameter = {
22
+ id,
23
+ label,
24
+ valueType,
25
+ _options,
26
+ _default,
27
+ envVar,
28
+ };
29
+ ```
30
+
31
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)