@northern.tech/store 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/.eslintrc.cjs +9 -0
  2. package/.prettierignore +1 -0
  3. package/CHANGELOG.md +12 -0
  4. package/actions.ts +32 -0
  5. package/api/general-api.test.ts +51 -0
  6. package/api/general-api.ts +60 -0
  7. package/api/types/AWSCredentials.ts +16 -0
  8. package/api/types/Actor.ts +35 -0
  9. package/api/types/Addon.ts +17 -0
  10. package/api/types/AddonTenantadm.ts +17 -0
  11. package/api/types/Alert.ts +34 -0
  12. package/api/types/AlertDetails.ts +23 -0
  13. package/api/types/AlertSubject.ts +23 -0
  14. package/api/types/ApiBurst.ts +21 -0
  15. package/api/types/ApiBurstTenantadm.ts +21 -0
  16. package/api/types/ApiLimits.ts +16 -0
  17. package/api/types/ApiLimitsTenantadm.ts +16 -0
  18. package/api/types/ApiQuota.ts +17 -0
  19. package/api/types/ApiQuotaTenantadm.ts +17 -0
  20. package/api/types/Artifact.ts +48 -0
  21. package/api/types/ArtifactDeployments.ts +48 -0
  22. package/api/types/ArtifactInfo.ts +11 -0
  23. package/api/types/ArtifactInfoDeployments.ts +11 -0
  24. package/api/types/ArtifactLink.ts +11 -0
  25. package/api/types/ArtifactTypeInfo.ts +13 -0
  26. package/api/types/ArtifactTypeInfoDeployments.ts +13 -0
  27. package/api/types/ArtifactUpdate.ts +10 -0
  28. package/api/types/ArtifactUploadLink.ts +15 -0
  29. package/api/types/Attribute.ts +36 -0
  30. package/api/types/AttributeInventory.ts +32 -0
  31. package/api/types/AuditLog.ts +26 -0
  32. package/api/types/AuthSet.ts +33 -0
  33. package/api/types/AuthSetDeviceauth.ts +37 -0
  34. package/api/types/AutoAuthRequest.ts +23 -0
  35. package/api/types/AzureSharedAccessSecret.ts +11 -0
  36. package/api/types/BillingInfo.ts +13 -0
  37. package/api/types/BinaryDeltaConfiguration.ts +15 -0
  38. package/api/types/BinaryDeltaConfigurationDeployments.ts +15 -0
  39. package/api/types/BinaryDeltaLimits.ts +15 -0
  40. package/api/types/BinaryDeltaLimitsDeployments.ts +15 -0
  41. package/api/types/BoundingBox.ts +11 -0
  42. package/api/types/CancelRequest.ts +10 -0
  43. package/api/types/CardData.ts +49 -0
  44. package/api/types/CardSetupData.ts +17 -0
  45. package/api/types/CheckoutData.ts +13 -0
  46. package/api/types/Configuration.ts +11 -0
  47. package/api/types/Count.ts +13 -0
  48. package/api/types/Credentials.ts +23 -0
  49. package/api/types/DBusSubsystem.ts +27 -0
  50. package/api/types/DeltaConfiguration.ts +14 -0
  51. package/api/types/DeltaConfigurationDeployments.ts +14 -0
  52. package/api/types/Deployment.ts +95 -0
  53. package/api/types/DeploymentAggregation.ts +18 -0
  54. package/api/types/DeploymentAggregationItem.ts +18 -0
  55. package/api/types/DeploymentAggregationTerm.ts +23 -0
  56. package/api/types/DeploymentAggregationTerms.ts +18 -0
  57. package/api/types/DeploymentAttributeProjection.ts +11 -0
  58. package/api/types/DeploymentAuditlogs.ts +11 -0
  59. package/api/types/DeploymentDeployments.ts +99 -0
  60. package/api/types/DeploymentFilterTerm.ts +37 -0
  61. package/api/types/DeploymentIdentifier.ts +10 -0
  62. package/api/types/DeploymentPhase.ts +23 -0
  63. package/api/types/DeploymentReporting.ts +46 -0
  64. package/api/types/DeploymentSearchTerms.ts +39 -0
  65. package/api/types/DeploymentSortTerm.ts +25 -0
  66. package/api/types/DeploymentStatistics.ts +15 -0
  67. package/api/types/DeploymentStatusStatistics.ts +54 -0
  68. package/api/types/Device.ts +29 -0
  69. package/api/types/DeviceAggregation.ts +18 -0
  70. package/api/types/DeviceAggregationItem.ts +18 -0
  71. package/api/types/DeviceAggregationTerm.ts +27 -0
  72. package/api/types/DeviceAggregationTerms.ts +22 -0
  73. package/api/types/DeviceAttribute.ts +23 -0
  74. package/api/types/DeviceAttributeProjection.ts +15 -0
  75. package/api/types/DeviceAuditlogs.ts +17 -0
  76. package/api/types/DeviceAuthEvent.ts +23 -0
  77. package/api/types/DeviceConfiguration.ts +16 -0
  78. package/api/types/DeviceDeployment.ts +11 -0
  79. package/api/types/DeviceDeployments.ts +31 -0
  80. package/api/types/DeviceDeviceauth.ts +42 -0
  81. package/api/types/DeviceFilterAttribute.ts +22 -0
  82. package/api/types/DeviceFilterTerm.ts +41 -0
  83. package/api/types/DeviceInventory.ts +19 -0
  84. package/api/types/DeviceInventoryInventory.ts +19 -0
  85. package/api/types/DeviceReporting.ts +22 -0
  86. package/api/types/DeviceSearchTerms.ts +39 -0
  87. package/api/types/DeviceSortTerm.ts +29 -0
  88. package/api/types/DeviceState.ts +32 -0
  89. package/api/types/DeviceStateDeviceconnect.ts +33 -0
  90. package/api/types/DeviceStateIot_manager.ts +14 -0
  91. package/api/types/DeviceStatus.ts +19 -0
  92. package/api/types/DeviceWithImage.ts +80 -0
  93. package/api/types/DirectUploadMetadata.ts +18 -0
  94. package/api/types/EmailVerificationCompletion.ts +13 -0
  95. package/api/types/EmailVerificationRequest.ts +13 -0
  96. package/api/types/Error.ts +17 -0
  97. package/api/types/ErrorAuditlogs.ts +13 -0
  98. package/api/types/ErrorDeployments.ts +17 -0
  99. package/api/types/ErrorDeviceauth.ts +13 -0
  100. package/api/types/ErrorDeviceconfig.ts +17 -0
  101. package/api/types/ErrorDeviceconnect.ts +17 -0
  102. package/api/types/ErrorDevicemonitor.ts +17 -0
  103. package/api/types/ErrorExt.ts +18 -0
  104. package/api/types/ErrorInventory.ts +17 -0
  105. package/api/types/ErrorIot_manager.ts +17 -0
  106. package/api/types/ErrorNotFound.ts +17 -0
  107. package/api/types/ErrorReporting.ts +18 -0
  108. package/api/types/ErrorTenantadm.ts +13 -0
  109. package/api/types/ErrorUseradm.ts +17 -0
  110. package/api/types/Event.ts +48 -0
  111. package/api/types/ExternalIdentity.ts +17 -0
  112. package/api/types/Features.ts +17 -0
  113. package/api/types/FileUpload.ts +23 -0
  114. package/api/types/Filter.ts +19 -0
  115. package/api/types/FilterAttribute.ts +21 -0
  116. package/api/types/FilterDefinition.ts +18 -0
  117. package/api/types/FilterDeployments.ts +19 -0
  118. package/api/types/FilterInventory.ts +20 -0
  119. package/api/types/FilterPredicate.ts +78 -0
  120. package/api/types/FilterPredicateDeployments.ts +48 -0
  121. package/api/types/FilterPredicateInventory.ts +76 -0
  122. package/api/types/GeoBoundingBox.ts +10 -0
  123. package/api/types/GeoBoundingBoxFilter.ts +6 -0
  124. package/api/types/GeoDistance.ts +17 -0
  125. package/api/types/GeoDistanceFilter.ts +10 -0
  126. package/api/types/GeoPoint.ts +15 -0
  127. package/api/types/Group.ts +10 -0
  128. package/api/types/HTTP.ts +19 -0
  129. package/api/types/IdentityData.ts +25 -0
  130. package/api/types/InputParameter.ts +8 -0
  131. package/api/types/Integration.ts +24 -0
  132. package/api/types/JobStatus.ts +13 -0
  133. package/api/types/Limit.ts +21 -0
  134. package/api/types/LimitDeployments.ts +21 -0
  135. package/api/types/LimitDeviceauth.ts +10 -0
  136. package/api/types/LimitUseradm.ts +11 -0
  137. package/api/types/Limits.ts +11 -0
  138. package/api/types/LineDescriptor.ts +11 -0
  139. package/api/types/LogSubsystem.ts +23 -0
  140. package/api/types/LoginOptions.ts +18 -0
  141. package/api/types/ManagementAPIConfiguration.ts +5 -0
  142. package/api/types/MenderTypes.ts +183 -0
  143. package/api/types/MonitorConfiguration.ts +22 -0
  144. package/api/types/NewConfigurationDeployment.ts +15 -0
  145. package/api/types/NewConfigurationDeploymentResponse.ts +10 -0
  146. package/api/types/NewDeployment.ts +42 -0
  147. package/api/types/NewDeploymentForGroup.ts +33 -0
  148. package/api/types/NewDeploymentPhase.ts +37 -0
  149. package/api/types/NewDeploymentPhaseDeployments.ts +20 -0
  150. package/api/types/NewDeploymentV2.ts +31 -0
  151. package/api/types/NewTenant.ts +41 -0
  152. package/api/types/Object.ts +35 -0
  153. package/api/types/OwnUserUpdate.ts +21 -0
  154. package/api/types/PasswordResetCompletion.ts +17 -0
  155. package/api/types/PasswordResetRequest.ts +13 -0
  156. package/api/types/Permission.ts +21 -0
  157. package/api/types/PermissionObject.ts +14 -0
  158. package/api/types/PermissionSet.ts +22 -0
  159. package/api/types/PermissionSetWithScope.ts +15 -0
  160. package/api/types/PersonalAccessToken.ts +29 -0
  161. package/api/types/PersonalAccessTokenRequest.ts +18 -0
  162. package/api/types/Plan.ts +19 -0
  163. package/api/types/PlanBindingDetails.ts +13 -0
  164. package/api/types/PlanChangeRequest.ts +14 -0
  165. package/api/types/PlanLimits.ts +12 -0
  166. package/api/types/PreAuthSet.ts +16 -0
  167. package/api/types/Release.ts +32 -0
  168. package/api/types/ReleaseDeployments.ts +32 -0
  169. package/api/types/ReleaseUpdate.ts +13 -0
  170. package/api/types/Releases.ts +9 -0
  171. package/api/types/ReleasesDeleteError.ts +21 -0
  172. package/api/types/ReleasesDeployments.ts +9 -0
  173. package/api/types/Role.ts +19 -0
  174. package/api/types/RolePermission.ts +25 -0
  175. package/api/types/RolePermissionObject.ts +17 -0
  176. package/api/types/RoleUseradm.ts +19 -0
  177. package/api/types/SAMLMetadata.ts +21 -0
  178. package/api/types/Scope.ts +19 -0
  179. package/api/types/SelectAttribute.ts +17 -0
  180. package/api/types/ServiceSubsystem.ts +19 -0
  181. package/api/types/Settings.ts +23 -0
  182. package/api/types/SortCriteria.ts +30 -0
  183. package/api/types/SsoObject.ts +21 -0
  184. package/api/types/Status.ts +17 -0
  185. package/api/types/StatusDeviceauth.ts +18 -0
  186. package/api/types/StatusTenantadm.ts +19 -0
  187. package/api/types/StorageLimit.ts +17 -0
  188. package/api/types/SubscriptionData.ts +8 -0
  189. package/api/types/SupportRequest.ts +17 -0
  190. package/api/types/Tag.ts +27 -0
  191. package/api/types/Tags.ts +10 -0
  192. package/api/types/TaskResult.ts +13 -0
  193. package/api/types/TaskResultCLI.ts +10 -0
  194. package/api/types/TaskResultHTTPRequest.ts +8 -0
  195. package/api/types/TaskResultHTTPResponse.ts +10 -0
  196. package/api/types/Tenant.ts +38 -0
  197. package/api/types/TenantApiLimits.ts +12 -0
  198. package/api/types/TenantApiLimitsTenantadm.ts +12 -0
  199. package/api/types/TenantIdName.ts +14 -0
  200. package/api/types/TenantIdsData.ts +10 -0
  201. package/api/types/TenantInfo.ts +14 -0
  202. package/api/types/TenantShortInfo.ts +21 -0
  203. package/api/types/TenantTenantadm.ts +38 -0
  204. package/api/types/TenantsIdName.ts +6 -0
  205. package/api/types/Update.ts +17 -0
  206. package/api/types/UpdateDeployments.ts +18 -0
  207. package/api/types/UpdateFile.ts +13 -0
  208. package/api/types/UpdateFileDeployments.ts +13 -0
  209. package/api/types/UpdateTypes.ts +8 -0
  210. package/api/types/UpgradeCompleteRequest.ts +23 -0
  211. package/api/types/User.ts +13 -0
  212. package/api/types/UserAuditlogs.ts +13 -0
  213. package/api/types/UserNew.ts +26 -0
  214. package/api/types/UserUpdate.ts +25 -0
  215. package/api/types/UserUseradm.ts +45 -0
  216. package/api/types/UserWithTenantInfo.ts +8 -0
  217. package/api/types/XDeltaArgs.ts +9 -0
  218. package/api/types/XDeltaArgsDeployments.ts +9 -0
  219. package/api/types/XDeltaArgsLimits.ts +10 -0
  220. package/api/types/XDeltaArgsLimitsDeployments.ts +10 -0
  221. package/api/users-api.ts +34 -0
  222. package/appSlice/constants.ts +166 -0
  223. package/appSlice/index.ts +159 -0
  224. package/appSlice/reducer.test.ts +97 -0
  225. package/appSlice/selectors.ts +33 -0
  226. package/appSlice/thunks.test.ts +118 -0
  227. package/appSlice/thunks.ts +148 -0
  228. package/auth.test.ts +36 -0
  229. package/auth.ts +82 -0
  230. package/commonConstants.tsx +252 -0
  231. package/commonSelectors.ts +255 -0
  232. package/constants.ts +22 -0
  233. package/deploymentsSlice/constants.ts +175 -0
  234. package/deploymentsSlice/index.ts +145 -0
  235. package/deploymentsSlice/reducer.test.ts +108 -0
  236. package/deploymentsSlice/selectors.ts +58 -0
  237. package/deploymentsSlice/thunks.test.ts +425 -0
  238. package/deploymentsSlice/thunks.ts +382 -0
  239. package/devicesSlice/constants.ts +56 -0
  240. package/devicesSlice/index.ts +207 -0
  241. package/devicesSlice/reducer.test.ts +194 -0
  242. package/devicesSlice/selectors.ts +127 -0
  243. package/devicesSlice/thunks.test.tsx +1245 -0
  244. package/devicesSlice/thunks.tsx +1098 -0
  245. package/monitorSlice/constants.ts +17 -0
  246. package/monitorSlice/index.ts +65 -0
  247. package/monitorSlice/reducer.test.ts +79 -0
  248. package/monitorSlice/selectors.ts +15 -0
  249. package/monitorSlice/thunks.test.ts +112 -0
  250. package/monitorSlice/thunks.ts +101 -0
  251. package/onboardingSlice/constants.ts +53 -0
  252. package/onboardingSlice/index.ts +60 -0
  253. package/onboardingSlice/reducer.test.ts +45 -0
  254. package/onboardingSlice/selectors.ts +15 -0
  255. package/onboardingSlice/thunks.test.ts +235 -0
  256. package/onboardingSlice/thunks.ts +142 -0
  257. package/organizationSlice/constants.ts +82 -0
  258. package/organizationSlice/index.ts +111 -0
  259. package/organizationSlice/reducer.test.ts +78 -0
  260. package/organizationSlice/selectors.ts +45 -0
  261. package/organizationSlice/thunks.test.ts +619 -0
  262. package/organizationSlice/thunks.ts +383 -0
  263. package/package.json +38 -0
  264. package/releasesSlice/constants.ts +18 -0
  265. package/releasesSlice/index.ts +116 -0
  266. package/releasesSlice/reducer.test.ts +78 -0
  267. package/releasesSlice/selectors.ts +33 -0
  268. package/releasesSlice/thunks.test.ts +389 -0
  269. package/releasesSlice/thunks.ts +379 -0
  270. package/selectors.ts +22 -0
  271. package/store.ts +89 -0
  272. package/storehooks.test.tsx +386 -0
  273. package/storehooks.ts +250 -0
  274. package/thunks.ts +21 -0
  275. package/tsconfig.json +11 -0
  276. package/tsup.config.ts +11 -0
  277. package/usersSlice/constants.ts +374 -0
  278. package/usersSlice/index.ts +151 -0
  279. package/usersSlice/reducer.test.ts +141 -0
  280. package/usersSlice/selectors.ts +60 -0
  281. package/usersSlice/thunks.test.ts +660 -0
  282. package/usersSlice/thunks.ts +773 -0
  283. package/utils.test.ts +187 -0
  284. package/utils.ts +249 -0
@@ -0,0 +1,42 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { AuthSet } from "./AuthSet";
6
+ import type { ExternalIdentity } from "./ExternalIdentity";
7
+ import type { IdentityData } from "./IdentityData";
8
+ export type DeviceDeviceauth = {
9
+ /**
10
+ * Mender assigned Device ID.
11
+ */
12
+ id?: string;
13
+ identity_data?: IdentityData;
14
+ status?: DeviceDeviceauth.status;
15
+ /**
16
+ * Created timestamp
17
+ */
18
+ created_ts?: string;
19
+ /**
20
+ * Updated timestamp
21
+ */
22
+ updated_ts?: string;
23
+ /**
24
+ * Time when accepted device contacted server for the last time.
25
+ */
26
+ check_in_time?: string;
27
+ auth_sets?: Array<AuthSet>;
28
+ /**
29
+ * Devices that are part of ongoing decommissioning process will return True
30
+ */
31
+ decommissioning?: boolean;
32
+ external_id?: ExternalIdentity;
33
+ };
34
+ export namespace DeviceDeviceauth {
35
+ export enum status {
36
+ PENDING = "pending",
37
+ ACCEPTED = "accepted",
38
+ REJECTED = "rejected",
39
+ PREAUTHORIZED = "preauthorized",
40
+ NOAUTH = "noauth",
41
+ }
42
+ }
@@ -0,0 +1,22 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Filterable attribute
8
+ */
9
+ export type DeviceFilterAttribute = {
10
+ /**
11
+ * Name of the attribute.
12
+ */
13
+ name: string;
14
+ /**
15
+ * Scope of the attribute.
16
+ */
17
+ scope: string;
18
+ /**
19
+ * Number of occurrences of the attribute in the database.
20
+ */
21
+ count: number;
22
+ };
@@ -0,0 +1,41 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ export type DeviceFilterTerm = {
7
+ /**
8
+ * Attribute key to compare.
9
+ */
10
+ attribute: string;
11
+ /**
12
+ * Filter matching expression.
13
+ */
14
+ value: any;
15
+ /**
16
+ * Type of filtering operation.
17
+ */
18
+ type: DeviceFilterTerm.type;
19
+ /**
20
+ * The scope the attribute exists in.
21
+ */
22
+ scope?: string;
23
+ };
24
+
25
+ export namespace DeviceFilterTerm {
26
+ /**
27
+ * Type of filtering operation.
28
+ */
29
+ export enum type {
30
+ _EQ = "$eq",
31
+ _GT = "$gt",
32
+ _GTE = "$gte",
33
+ _IN = "$in",
34
+ _LT = "$lt",
35
+ _LTE = "$lte",
36
+ _NE = "$ne",
37
+ _NIN = "$nin",
38
+ _EXISTS = "$exists",
39
+ _REGEX = "$regex",
40
+ }
41
+ }
@@ -0,0 +1,19 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { Attribute } from "./Attribute";
6
+ export type DeviceInventory = {
7
+ /**
8
+ * Mender-assigned unique device ID.
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Timestamp of the most recent attribute update.
13
+ */
14
+ updated_ts?: string;
15
+ /**
16
+ * A list of attribute descriptors.
17
+ */
18
+ attributes?: Array<Attribute>;
19
+ };
@@ -0,0 +1,19 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { Attribute } from "./Attribute";
6
+ export type DeviceInventoryInventory = {
7
+ /**
8
+ * Mender-assigned unique ID.
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Timestamp of the most recent attribute update.
13
+ */
14
+ updated_ts?: string;
15
+ /**
16
+ * A list of attribute descriptors.
17
+ */
18
+ attributes?: Array<Attribute>;
19
+ };
@@ -0,0 +1,22 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { DeviceAttribute } from "./DeviceAttribute";
7
+
8
+ export type DeviceReporting = {
9
+ /**
10
+ * Device ID.
11
+ */
12
+ id?: string;
13
+ /**
14
+ * Last device check-in itme.
15
+ */
16
+ check_in_time?: string;
17
+ attributes?: Array<DeviceAttribute>;
18
+ /**
19
+ * Timestamp of the last update to the device attributes.
20
+ */
21
+ updated_ts?: string;
22
+ };
@@ -0,0 +1,39 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { DeviceAttributeProjection } from "./DeviceAttributeProjection";
7
+ import type { DeviceFilterTerm } from "./DeviceFilterTerm";
8
+ import type { DeviceSortTerm } from "./DeviceSortTerm";
9
+ import type { GeoBoundingBoxFilter } from "./GeoBoundingBoxFilter";
10
+ import type { GeoDistanceFilter } from "./GeoDistanceFilter";
11
+
12
+ export type DeviceSearchTerms = {
13
+ /**
14
+ * Pagination parameter for iterating search results.
15
+ */
16
+ page?: number;
17
+ /**
18
+ * Number of devices returned per page.
19
+ */
20
+ per_page?: number;
21
+ /**
22
+ * Filtering terms.
23
+ */
24
+ filters?: Array<DeviceFilterTerm>;
25
+ geo_distance_filter?: GeoDistanceFilter;
26
+ geo_bounding_box_filter?: GeoBoundingBoxFilter;
27
+ /**
28
+ * Attribute keys to sort by.
29
+ */
30
+ sort?: Array<DeviceSortTerm>;
31
+ /**
32
+ * Restrict the attribute result to the selected attributes.
33
+ */
34
+ attributes?: Array<DeviceAttributeProjection>;
35
+ /**
36
+ * Restrict the result to the given device IDs.
37
+ */
38
+ device_ids?: Array<string>;
39
+ };
@@ -0,0 +1,29 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ export type DeviceSortTerm = {
7
+ /**
8
+ * Attribute key to sort by.
9
+ */
10
+ attribute: string;
11
+ /**
12
+ * Scope the attribute key belongs to.
13
+ */
14
+ scope?: string;
15
+ /**
16
+ * Sort order: ascending/descending.
17
+ */
18
+ order: DeviceSortTerm.order;
19
+ };
20
+
21
+ export namespace DeviceSortTerm {
22
+ /**
23
+ * Sort order: ascending/descending.
24
+ */
25
+ export enum order {
26
+ ASC = "asc",
27
+ DESC = "desc",
28
+ }
29
+ }
@@ -0,0 +1,32 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type DeviceState = {
6
+ /**
7
+ * Device ID.
8
+ */
9
+ device_id?: string;
10
+ /**
11
+ * Device status.
12
+ */
13
+ status?: DeviceState.status;
14
+ /**
15
+ * Server-side timestamp of the last device information update.
16
+ */
17
+ updated_ts?: string;
18
+ /**
19
+ * Server-side timestamp of the device creation.
20
+ */
21
+ created_ts?: string;
22
+ };
23
+ export namespace DeviceState {
24
+ /**
25
+ * Device status.
26
+ */
27
+ export enum status {
28
+ CONNECTED = "connected",
29
+ DISCONNECTED = "disconnected",
30
+ UNKNOWN = "unknown",
31
+ }
32
+ }
@@ -0,0 +1,33 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type DeviceStateDeviceconnect = {
6
+ /**
7
+ * Device ID.
8
+ */
9
+ device_id?: string;
10
+ /**
11
+ * Device status.
12
+ */
13
+ status?: DeviceStateDeviceconnect.status;
14
+ /**
15
+ * Server-side timestamp of the last device information update.
16
+ */
17
+ updated_ts?: string;
18
+ /**
19
+ * Server-side timestamp of the device creation.
20
+ */
21
+ created_ts?: string;
22
+ };
23
+
24
+ export namespace DeviceStateDeviceconnect {
25
+ /**
26
+ * Device status.
27
+ */
28
+ export enum status {
29
+ CONNECTED = "connected",
30
+ DISCONNECTED = "disconnected",
31
+ UNKNOWN = "unknown",
32
+ }
33
+ }
@@ -0,0 +1,14 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type DeviceStateIot_manager = {
6
+ /**
7
+ * The desired state for the device, as reported by the cloud/user.
8
+ */
9
+ desired?: any;
10
+ /**
11
+ * State reported by the device, this cannot be changed from the cloud.
12
+ */
13
+ reported?: any;
14
+ };
@@ -0,0 +1,19 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export enum DeviceStatus {
6
+ FAILURE = "failure",
7
+ ABORTED = "aborted",
8
+ PAUSE_BEFORE_INSTALLING = "pause_before_installing",
9
+ PAUSE_BEFORE_COMMITTING = "pause_before_committing",
10
+ PAUSE_BEFORE_REBOOTING = "pause_before_rebooting",
11
+ DOWNLOADING = "downloading",
12
+ INSTALLING = "installing",
13
+ REBOOTING = "rebooting",
14
+ PENDING = "pending",
15
+ SUCCESS = "success",
16
+ NOARTIFACT = "noartifact",
17
+ ALREADY_INSTALLED = "already-installed",
18
+ DECOMMISSIONED = "decommissioned",
19
+ }
@@ -0,0 +1,80 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { ArtifactInfo } from "./ArtifactInfo";
6
+ import type { DeviceStatus } from "./DeviceStatus";
7
+ import type { Update } from "./Update";
8
+ export type DeviceWithImage = {
9
+ /**
10
+ * Device identifier.
11
+ */
12
+ id: string;
13
+ status: DeviceStatus;
14
+ created?: string;
15
+ started?: string;
16
+ finished?: string;
17
+ deleted?: string;
18
+ device_type?: string;
19
+ /**
20
+ * Availability of the device's deployment log.
21
+ */
22
+ log: boolean;
23
+ /**
24
+ * State reported by device
25
+ */
26
+ state?: string;
27
+ /**
28
+ * Additional state information
29
+ */
30
+ substate?: string;
31
+ image?: {
32
+ /**
33
+ * Image ID
34
+ */
35
+ id?: string;
36
+ meta?: {
37
+ /**
38
+ * Image description
39
+ */
40
+ description?: string;
41
+ };
42
+ meta_artifact?: {
43
+ name?: string;
44
+ /**
45
+ * An array of compatible device types.
46
+ */
47
+ device_types_compatible?: Array<string>;
48
+ info?: ArtifactInfo;
49
+ /**
50
+ * Idicates if artifact is signed or not.
51
+ */
52
+ signed?: boolean;
53
+ updates?: Array<Update>;
54
+ /**
55
+ * List of Artifact provides.
56
+ *
57
+ * Map of key/value pairs, where both keys and values are strings.
58
+ */
59
+ artifact_provides?: Record<string, string>;
60
+ /**
61
+ * List of Artifact depends.
62
+ *
63
+ * Map of key/value pairs, where keys are strings and values are lists of strings.
64
+ */
65
+ artifact_depends?: Record<string, Array<string>>;
66
+ /**
67
+ * List of Clear Artifact provides.
68
+ */
69
+ clears_artifact_provides?: Array<string>;
70
+ };
71
+ /**
72
+ * Image size in bytes
73
+ */
74
+ size?: number;
75
+ /**
76
+ * Creation / last edition of any of the artifact properties
77
+ */
78
+ modified?: string;
79
+ };
80
+ };
@@ -0,0 +1,18 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { Update } from "./Update";
6
+ /**
7
+ * Artifact metadata
8
+ */
9
+ export type DirectUploadMetadata = {
10
+ /**
11
+ * wsize of the artifact file.
12
+ */
13
+ size?: number;
14
+ /**
15
+ * List of updates for this artifact.
16
+ */
17
+ updates?: Array<Update>;
18
+ };
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Email Verification completion
7
+ */
8
+ export type EmailVerificationCompletion = {
9
+ /**
10
+ * Secret hash received by email by the user
11
+ */
12
+ secret: string;
13
+ };
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Email Verification request
7
+ */
8
+ export type EmailVerificationRequest = {
9
+ /**
10
+ * User's email address
11
+ */
12
+ email: string;
13
+ };
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor.
7
+ */
8
+ export type Error = {
9
+ /**
10
+ * Description of the error.
11
+ */
12
+ error?: string;
13
+ /**
14
+ * Request ID (same as in X-MEN-RequestID header).
15
+ */
16
+ request_id?: string;
17
+ };
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * The error descriptor.
7
+ */
8
+ export type ErrorAuditlogs = {
9
+ /**
10
+ * The description of the error.
11
+ */
12
+ error?: string;
13
+ };
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor.
7
+ */
8
+ export type ErrorDeployments = {
9
+ /**
10
+ * Description of the error.
11
+ */
12
+ error?: string;
13
+ /**
14
+ * Request ID (same as in X-MEN-RequestID header).
15
+ */
16
+ request_id?: string;
17
+ };
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor
7
+ */
8
+ export type ErrorDeviceauth = {
9
+ /**
10
+ * Description of the error
11
+ */
12
+ error?: string;
13
+ };
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor.
7
+ */
8
+ export type ErrorDeviceconfig = {
9
+ /**
10
+ * Description of the error.
11
+ */
12
+ error?: string;
13
+ /**
14
+ * Request ID passed with the request X-Men-Requestid header or generated by the server.
15
+ */
16
+ request_id?: string;
17
+ };
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor.
7
+ */
8
+ export type ErrorDeviceconnect = {
9
+ /**
10
+ * Description of the error.
11
+ */
12
+ error?: string;
13
+ /**
14
+ * Request ID passed with the request X-MEN-RequestID header or generated by the server.
15
+ */
16
+ request_id?: string;
17
+ };
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor.
7
+ */
8
+ export type ErrorDevicemonitor = {
9
+ /**
10
+ * Description of the error.
11
+ */
12
+ error?: string;
13
+ /**
14
+ * Request ID passed with the request X-MEN-RequestID header or generated by the server.
15
+ */
16
+ request_id?: string;
17
+ };
@@ -0,0 +1,18 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor with additional metadata.
7
+ */
8
+ export type ErrorExt = {
9
+ /**
10
+ * Description of the error.
11
+ */
12
+ error: string;
13
+ /**
14
+ * Request ID (same as in X-MEN-RequestID header).
15
+ */
16
+ request_id?: string;
17
+ metadata?: Record<string, any>;
18
+ };
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor.
7
+ */
8
+ export type ErrorInventory = {
9
+ /**
10
+ * Description of the error.
11
+ */
12
+ error?: string;
13
+ /**
14
+ * Request ID (same as in X-MEN-RequestID header).
15
+ */
16
+ request_id?: string;
17
+ };
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor.
7
+ */
8
+ export type ErrorIot_manager = {
9
+ /**
10
+ * Description of the error.
11
+ */
12
+ error?: string;
13
+ /**
14
+ * Request ID passed with the request X-Men-Requestid header or generated by the server.
15
+ */
16
+ request_id?: string;
17
+ };
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Error descriptor.
7
+ */
8
+ export type ErrorNotFound = {
9
+ /**
10
+ * Description of the error.
11
+ */
12
+ error?: string;
13
+ /**
14
+ * Request ID (same as in X-MEN-RequestID header).
15
+ */
16
+ request_id?: string;
17
+ };