@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.
- package/.eslintrc.cjs +9 -0
- package/.prettierignore +1 -0
- package/CHANGELOG.md +12 -0
- package/actions.ts +32 -0
- package/api/general-api.test.ts +51 -0
- package/api/general-api.ts +60 -0
- package/api/types/AWSCredentials.ts +16 -0
- package/api/types/Actor.ts +35 -0
- package/api/types/Addon.ts +17 -0
- package/api/types/AddonTenantadm.ts +17 -0
- package/api/types/Alert.ts +34 -0
- package/api/types/AlertDetails.ts +23 -0
- package/api/types/AlertSubject.ts +23 -0
- package/api/types/ApiBurst.ts +21 -0
- package/api/types/ApiBurstTenantadm.ts +21 -0
- package/api/types/ApiLimits.ts +16 -0
- package/api/types/ApiLimitsTenantadm.ts +16 -0
- package/api/types/ApiQuota.ts +17 -0
- package/api/types/ApiQuotaTenantadm.ts +17 -0
- package/api/types/Artifact.ts +48 -0
- package/api/types/ArtifactDeployments.ts +48 -0
- package/api/types/ArtifactInfo.ts +11 -0
- package/api/types/ArtifactInfoDeployments.ts +11 -0
- package/api/types/ArtifactLink.ts +11 -0
- package/api/types/ArtifactTypeInfo.ts +13 -0
- package/api/types/ArtifactTypeInfoDeployments.ts +13 -0
- package/api/types/ArtifactUpdate.ts +10 -0
- package/api/types/ArtifactUploadLink.ts +15 -0
- package/api/types/Attribute.ts +36 -0
- package/api/types/AttributeInventory.ts +32 -0
- package/api/types/AuditLog.ts +26 -0
- package/api/types/AuthSet.ts +33 -0
- package/api/types/AuthSetDeviceauth.ts +37 -0
- package/api/types/AutoAuthRequest.ts +23 -0
- package/api/types/AzureSharedAccessSecret.ts +11 -0
- package/api/types/BillingInfo.ts +13 -0
- package/api/types/BinaryDeltaConfiguration.ts +15 -0
- package/api/types/BinaryDeltaConfigurationDeployments.ts +15 -0
- package/api/types/BinaryDeltaLimits.ts +15 -0
- package/api/types/BinaryDeltaLimitsDeployments.ts +15 -0
- package/api/types/BoundingBox.ts +11 -0
- package/api/types/CancelRequest.ts +10 -0
- package/api/types/CardData.ts +49 -0
- package/api/types/CardSetupData.ts +17 -0
- package/api/types/CheckoutData.ts +13 -0
- package/api/types/Configuration.ts +11 -0
- package/api/types/Count.ts +13 -0
- package/api/types/Credentials.ts +23 -0
- package/api/types/DBusSubsystem.ts +27 -0
- package/api/types/DeltaConfiguration.ts +14 -0
- package/api/types/DeltaConfigurationDeployments.ts +14 -0
- package/api/types/Deployment.ts +95 -0
- package/api/types/DeploymentAggregation.ts +18 -0
- package/api/types/DeploymentAggregationItem.ts +18 -0
- package/api/types/DeploymentAggregationTerm.ts +23 -0
- package/api/types/DeploymentAggregationTerms.ts +18 -0
- package/api/types/DeploymentAttributeProjection.ts +11 -0
- package/api/types/DeploymentAuditlogs.ts +11 -0
- package/api/types/DeploymentDeployments.ts +99 -0
- package/api/types/DeploymentFilterTerm.ts +37 -0
- package/api/types/DeploymentIdentifier.ts +10 -0
- package/api/types/DeploymentPhase.ts +23 -0
- package/api/types/DeploymentReporting.ts +46 -0
- package/api/types/DeploymentSearchTerms.ts +39 -0
- package/api/types/DeploymentSortTerm.ts +25 -0
- package/api/types/DeploymentStatistics.ts +15 -0
- package/api/types/DeploymentStatusStatistics.ts +54 -0
- package/api/types/Device.ts +29 -0
- package/api/types/DeviceAggregation.ts +18 -0
- package/api/types/DeviceAggregationItem.ts +18 -0
- package/api/types/DeviceAggregationTerm.ts +27 -0
- package/api/types/DeviceAggregationTerms.ts +22 -0
- package/api/types/DeviceAttribute.ts +23 -0
- package/api/types/DeviceAttributeProjection.ts +15 -0
- package/api/types/DeviceAuditlogs.ts +17 -0
- package/api/types/DeviceAuthEvent.ts +23 -0
- package/api/types/DeviceConfiguration.ts +16 -0
- package/api/types/DeviceDeployment.ts +11 -0
- package/api/types/DeviceDeployments.ts +31 -0
- package/api/types/DeviceDeviceauth.ts +42 -0
- package/api/types/DeviceFilterAttribute.ts +22 -0
- package/api/types/DeviceFilterTerm.ts +41 -0
- package/api/types/DeviceInventory.ts +19 -0
- package/api/types/DeviceInventoryInventory.ts +19 -0
- package/api/types/DeviceReporting.ts +22 -0
- package/api/types/DeviceSearchTerms.ts +39 -0
- package/api/types/DeviceSortTerm.ts +29 -0
- package/api/types/DeviceState.ts +32 -0
- package/api/types/DeviceStateDeviceconnect.ts +33 -0
- package/api/types/DeviceStateIot_manager.ts +14 -0
- package/api/types/DeviceStatus.ts +19 -0
- package/api/types/DeviceWithImage.ts +80 -0
- package/api/types/DirectUploadMetadata.ts +18 -0
- package/api/types/EmailVerificationCompletion.ts +13 -0
- package/api/types/EmailVerificationRequest.ts +13 -0
- package/api/types/Error.ts +17 -0
- package/api/types/ErrorAuditlogs.ts +13 -0
- package/api/types/ErrorDeployments.ts +17 -0
- package/api/types/ErrorDeviceauth.ts +13 -0
- package/api/types/ErrorDeviceconfig.ts +17 -0
- package/api/types/ErrorDeviceconnect.ts +17 -0
- package/api/types/ErrorDevicemonitor.ts +17 -0
- package/api/types/ErrorExt.ts +18 -0
- package/api/types/ErrorInventory.ts +17 -0
- package/api/types/ErrorIot_manager.ts +17 -0
- package/api/types/ErrorNotFound.ts +17 -0
- package/api/types/ErrorReporting.ts +18 -0
- package/api/types/ErrorTenantadm.ts +13 -0
- package/api/types/ErrorUseradm.ts +17 -0
- package/api/types/Event.ts +48 -0
- package/api/types/ExternalIdentity.ts +17 -0
- package/api/types/Features.ts +17 -0
- package/api/types/FileUpload.ts +23 -0
- package/api/types/Filter.ts +19 -0
- package/api/types/FilterAttribute.ts +21 -0
- package/api/types/FilterDefinition.ts +18 -0
- package/api/types/FilterDeployments.ts +19 -0
- package/api/types/FilterInventory.ts +20 -0
- package/api/types/FilterPredicate.ts +78 -0
- package/api/types/FilterPredicateDeployments.ts +48 -0
- package/api/types/FilterPredicateInventory.ts +76 -0
- package/api/types/GeoBoundingBox.ts +10 -0
- package/api/types/GeoBoundingBoxFilter.ts +6 -0
- package/api/types/GeoDistance.ts +17 -0
- package/api/types/GeoDistanceFilter.ts +10 -0
- package/api/types/GeoPoint.ts +15 -0
- package/api/types/Group.ts +10 -0
- package/api/types/HTTP.ts +19 -0
- package/api/types/IdentityData.ts +25 -0
- package/api/types/InputParameter.ts +8 -0
- package/api/types/Integration.ts +24 -0
- package/api/types/JobStatus.ts +13 -0
- package/api/types/Limit.ts +21 -0
- package/api/types/LimitDeployments.ts +21 -0
- package/api/types/LimitDeviceauth.ts +10 -0
- package/api/types/LimitUseradm.ts +11 -0
- package/api/types/Limits.ts +11 -0
- package/api/types/LineDescriptor.ts +11 -0
- package/api/types/LogSubsystem.ts +23 -0
- package/api/types/LoginOptions.ts +18 -0
- package/api/types/ManagementAPIConfiguration.ts +5 -0
- package/api/types/MenderTypes.ts +183 -0
- package/api/types/MonitorConfiguration.ts +22 -0
- package/api/types/NewConfigurationDeployment.ts +15 -0
- package/api/types/NewConfigurationDeploymentResponse.ts +10 -0
- package/api/types/NewDeployment.ts +42 -0
- package/api/types/NewDeploymentForGroup.ts +33 -0
- package/api/types/NewDeploymentPhase.ts +37 -0
- package/api/types/NewDeploymentPhaseDeployments.ts +20 -0
- package/api/types/NewDeploymentV2.ts +31 -0
- package/api/types/NewTenant.ts +41 -0
- package/api/types/Object.ts +35 -0
- package/api/types/OwnUserUpdate.ts +21 -0
- package/api/types/PasswordResetCompletion.ts +17 -0
- package/api/types/PasswordResetRequest.ts +13 -0
- package/api/types/Permission.ts +21 -0
- package/api/types/PermissionObject.ts +14 -0
- package/api/types/PermissionSet.ts +22 -0
- package/api/types/PermissionSetWithScope.ts +15 -0
- package/api/types/PersonalAccessToken.ts +29 -0
- package/api/types/PersonalAccessTokenRequest.ts +18 -0
- package/api/types/Plan.ts +19 -0
- package/api/types/PlanBindingDetails.ts +13 -0
- package/api/types/PlanChangeRequest.ts +14 -0
- package/api/types/PlanLimits.ts +12 -0
- package/api/types/PreAuthSet.ts +16 -0
- package/api/types/Release.ts +32 -0
- package/api/types/ReleaseDeployments.ts +32 -0
- package/api/types/ReleaseUpdate.ts +13 -0
- package/api/types/Releases.ts +9 -0
- package/api/types/ReleasesDeleteError.ts +21 -0
- package/api/types/ReleasesDeployments.ts +9 -0
- package/api/types/Role.ts +19 -0
- package/api/types/RolePermission.ts +25 -0
- package/api/types/RolePermissionObject.ts +17 -0
- package/api/types/RoleUseradm.ts +19 -0
- package/api/types/SAMLMetadata.ts +21 -0
- package/api/types/Scope.ts +19 -0
- package/api/types/SelectAttribute.ts +17 -0
- package/api/types/ServiceSubsystem.ts +19 -0
- package/api/types/Settings.ts +23 -0
- package/api/types/SortCriteria.ts +30 -0
- package/api/types/SsoObject.ts +21 -0
- package/api/types/Status.ts +17 -0
- package/api/types/StatusDeviceauth.ts +18 -0
- package/api/types/StatusTenantadm.ts +19 -0
- package/api/types/StorageLimit.ts +17 -0
- package/api/types/SubscriptionData.ts +8 -0
- package/api/types/SupportRequest.ts +17 -0
- package/api/types/Tag.ts +27 -0
- package/api/types/Tags.ts +10 -0
- package/api/types/TaskResult.ts +13 -0
- package/api/types/TaskResultCLI.ts +10 -0
- package/api/types/TaskResultHTTPRequest.ts +8 -0
- package/api/types/TaskResultHTTPResponse.ts +10 -0
- package/api/types/Tenant.ts +38 -0
- package/api/types/TenantApiLimits.ts +12 -0
- package/api/types/TenantApiLimitsTenantadm.ts +12 -0
- package/api/types/TenantIdName.ts +14 -0
- package/api/types/TenantIdsData.ts +10 -0
- package/api/types/TenantInfo.ts +14 -0
- package/api/types/TenantShortInfo.ts +21 -0
- package/api/types/TenantTenantadm.ts +38 -0
- package/api/types/TenantsIdName.ts +6 -0
- package/api/types/Update.ts +17 -0
- package/api/types/UpdateDeployments.ts +18 -0
- package/api/types/UpdateFile.ts +13 -0
- package/api/types/UpdateFileDeployments.ts +13 -0
- package/api/types/UpdateTypes.ts +8 -0
- package/api/types/UpgradeCompleteRequest.ts +23 -0
- package/api/types/User.ts +13 -0
- package/api/types/UserAuditlogs.ts +13 -0
- package/api/types/UserNew.ts +26 -0
- package/api/types/UserUpdate.ts +25 -0
- package/api/types/UserUseradm.ts +45 -0
- package/api/types/UserWithTenantInfo.ts +8 -0
- package/api/types/XDeltaArgs.ts +9 -0
- package/api/types/XDeltaArgsDeployments.ts +9 -0
- package/api/types/XDeltaArgsLimits.ts +10 -0
- package/api/types/XDeltaArgsLimitsDeployments.ts +10 -0
- package/api/users-api.ts +34 -0
- package/appSlice/constants.ts +166 -0
- package/appSlice/index.ts +159 -0
- package/appSlice/reducer.test.ts +97 -0
- package/appSlice/selectors.ts +33 -0
- package/appSlice/thunks.test.ts +118 -0
- package/appSlice/thunks.ts +148 -0
- package/auth.test.ts +36 -0
- package/auth.ts +82 -0
- package/commonConstants.tsx +252 -0
- package/commonSelectors.ts +255 -0
- package/constants.ts +22 -0
- package/deploymentsSlice/constants.ts +175 -0
- package/deploymentsSlice/index.ts +145 -0
- package/deploymentsSlice/reducer.test.ts +108 -0
- package/deploymentsSlice/selectors.ts +58 -0
- package/deploymentsSlice/thunks.test.ts +425 -0
- package/deploymentsSlice/thunks.ts +382 -0
- package/devicesSlice/constants.ts +56 -0
- package/devicesSlice/index.ts +207 -0
- package/devicesSlice/reducer.test.ts +194 -0
- package/devicesSlice/selectors.ts +127 -0
- package/devicesSlice/thunks.test.tsx +1245 -0
- package/devicesSlice/thunks.tsx +1098 -0
- package/monitorSlice/constants.ts +17 -0
- package/monitorSlice/index.ts +65 -0
- package/monitorSlice/reducer.test.ts +79 -0
- package/monitorSlice/selectors.ts +15 -0
- package/monitorSlice/thunks.test.ts +112 -0
- package/monitorSlice/thunks.ts +101 -0
- package/onboardingSlice/constants.ts +53 -0
- package/onboardingSlice/index.ts +60 -0
- package/onboardingSlice/reducer.test.ts +45 -0
- package/onboardingSlice/selectors.ts +15 -0
- package/onboardingSlice/thunks.test.ts +235 -0
- package/onboardingSlice/thunks.ts +142 -0
- package/organizationSlice/constants.ts +82 -0
- package/organizationSlice/index.ts +111 -0
- package/organizationSlice/reducer.test.ts +78 -0
- package/organizationSlice/selectors.ts +45 -0
- package/organizationSlice/thunks.test.ts +619 -0
- package/organizationSlice/thunks.ts +383 -0
- package/package.json +38 -0
- package/releasesSlice/constants.ts +18 -0
- package/releasesSlice/index.ts +116 -0
- package/releasesSlice/reducer.test.ts +78 -0
- package/releasesSlice/selectors.ts +33 -0
- package/releasesSlice/thunks.test.ts +389 -0
- package/releasesSlice/thunks.ts +379 -0
- package/selectors.ts +22 -0
- package/store.ts +89 -0
- package/storehooks.test.tsx +386 -0
- package/storehooks.ts +250 -0
- package/thunks.ts +21 -0
- package/tsconfig.json +11 -0
- package/tsup.config.ts +11 -0
- package/usersSlice/constants.ts +374 -0
- package/usersSlice/index.ts +151 -0
- package/usersSlice/reducer.test.ts +141 -0
- package/usersSlice/selectors.ts +60 -0
- package/usersSlice/thunks.test.ts +660 -0
- package/usersSlice/thunks.ts +773 -0
- package/utils.test.ts +187 -0
- package/utils.ts +249 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { DeploymentAggregationTerm } from "./DeploymentAggregationTerm";
|
|
7
|
+
import type { DeploymentFilterTerm } from "./DeploymentFilterTerm";
|
|
8
|
+
|
|
9
|
+
export type DeploymentAggregationTerms = {
|
|
10
|
+
/**
|
|
11
|
+
* Aggregation terms.
|
|
12
|
+
*/
|
|
13
|
+
aggregations?: Array<DeploymentAggregationTerm>;
|
|
14
|
+
/**
|
|
15
|
+
* Filtering terms.
|
|
16
|
+
*/
|
|
17
|
+
filters?: Array<DeploymentFilterTerm>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* The deployment descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export type DeploymentAuditlogs = {
|
|
9
|
+
name: string;
|
|
10
|
+
artifact_name: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { DeploymentPhase } from "./DeploymentPhase";
|
|
7
|
+
import type { DeploymentStatistics } from "./DeploymentStatistics";
|
|
8
|
+
import type { Filter } from "./Filter";
|
|
9
|
+
|
|
10
|
+
export type DeploymentDeployments = {
|
|
11
|
+
/**
|
|
12
|
+
* Deployment identifier
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the deployment
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* Name of the artifact to deploy
|
|
21
|
+
*/
|
|
22
|
+
artifact_name: string;
|
|
23
|
+
/**
|
|
24
|
+
* Deployment's creation date and time
|
|
25
|
+
*/
|
|
26
|
+
created: string;
|
|
27
|
+
/**
|
|
28
|
+
* Deployment's completion date and time
|
|
29
|
+
*/
|
|
30
|
+
finished?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Status of the deployment
|
|
33
|
+
*/
|
|
34
|
+
status: DeploymentDeployments.status;
|
|
35
|
+
/**
|
|
36
|
+
* Number of devices the deployment acted upon
|
|
37
|
+
*/
|
|
38
|
+
device_count: number;
|
|
39
|
+
/**
|
|
40
|
+
* An array of artifact's identifiers.
|
|
41
|
+
*/
|
|
42
|
+
artifacts?: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* An array of groups the devices targeted by the deployment belong to.
|
|
45
|
+
* Available only if the user created the deployment for a group or a single device (if the device was in a static group).
|
|
46
|
+
*/
|
|
47
|
+
groups?: Array<string>;
|
|
48
|
+
phases?: Array<DeploymentPhase>;
|
|
49
|
+
/**
|
|
50
|
+
* The number of times a device can retry the deployment in case of failure, defaults to 0
|
|
51
|
+
*/
|
|
52
|
+
retries?: number;
|
|
53
|
+
/**
|
|
54
|
+
* A valid JSON object defining the update control map.
|
|
55
|
+
* *NOTE*: Available only in the Enterprise plan.
|
|
56
|
+
*/
|
|
57
|
+
update_control_map?: Record<string, any>;
|
|
58
|
+
/**
|
|
59
|
+
* max_devices denotes a limit on a number of completed deployments (failed or successful) above which the dynamic deployment will be finished.
|
|
60
|
+
*/
|
|
61
|
+
max_devices?: number;
|
|
62
|
+
/**
|
|
63
|
+
* In case of dynamic deployments this is a number of devices targeted initially (maching the filter at the moment of deployment creation).
|
|
64
|
+
*/
|
|
65
|
+
initial_device_count?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Flag indicating if the deployment is dynamic or not.
|
|
68
|
+
*/
|
|
69
|
+
dynamic?: boolean;
|
|
70
|
+
filter?: Filter;
|
|
71
|
+
type?: DeploymentDeployments.type;
|
|
72
|
+
/**
|
|
73
|
+
* A string containing a configuration object provided
|
|
74
|
+
* with the deployment constructor.
|
|
75
|
+
*/
|
|
76
|
+
configuration?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The flag idicating if the autogeneration of delta artifacts is enabled for a given deployment.
|
|
79
|
+
*/
|
|
80
|
+
autogenerate_delta?: boolean;
|
|
81
|
+
statistics?: DeploymentStatistics;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export namespace DeploymentDeployments {
|
|
85
|
+
/**
|
|
86
|
+
* Status of the deployment
|
|
87
|
+
*/
|
|
88
|
+
export enum status {
|
|
89
|
+
SCHEDULED = "scheduled",
|
|
90
|
+
PENDING = "pending",
|
|
91
|
+
INPROGRESS = "inprogress",
|
|
92
|
+
FINISHED = "finished",
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export enum type {
|
|
96
|
+
CONFIGURATION = "configuration",
|
|
97
|
+
SOFTWARE = "software",
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export type DeploymentFilterTerm = {
|
|
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: DeploymentFilterTerm.type;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export namespace DeploymentFilterTerm {
|
|
22
|
+
/**
|
|
23
|
+
* Type of filtering operation.
|
|
24
|
+
*/
|
|
25
|
+
export enum type {
|
|
26
|
+
_EQ = "$eq",
|
|
27
|
+
_GT = "$gt",
|
|
28
|
+
_GTE = "$gte",
|
|
29
|
+
_IN = "$in",
|
|
30
|
+
_LT = "$lt",
|
|
31
|
+
_LTE = "$lte",
|
|
32
|
+
_NE = "$ne",
|
|
33
|
+
_NIN = "$nin",
|
|
34
|
+
_EXISTS = "$exists",
|
|
35
|
+
_REGEX = "$regex",
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type DeploymentPhase = {
|
|
6
|
+
/**
|
|
7
|
+
* Phase identifier.
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Percentage of devices to update in the phase.
|
|
12
|
+
*/
|
|
13
|
+
batch_size?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Start date of a phase.
|
|
16
|
+
* May be undefined for the first phase of a deployment.
|
|
17
|
+
*/
|
|
18
|
+
start_ts?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Number of devices which already requested an update within this phase.
|
|
21
|
+
*/
|
|
22
|
+
device_count?: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export type DeploymentReporting = {
|
|
7
|
+
/**
|
|
8
|
+
* Device Deployment ID.
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
tenant_id?: string;
|
|
12
|
+
device_id?: string;
|
|
13
|
+
deployment_id?: string;
|
|
14
|
+
deployment_name?: string;
|
|
15
|
+
deployment_artifact_name?: string;
|
|
16
|
+
deployment_type?: string;
|
|
17
|
+
deployment_created?: string;
|
|
18
|
+
deployment_filter_id?: string;
|
|
19
|
+
deployment_all_devices?: boolean;
|
|
20
|
+
deployment_force_installation?: boolean;
|
|
21
|
+
deployment_group?: string;
|
|
22
|
+
deployment_phased?: boolean;
|
|
23
|
+
deployment_phase_id?: string;
|
|
24
|
+
deployment_retries?: number;
|
|
25
|
+
deployment_max_devices?: number;
|
|
26
|
+
deployment_autogenerate_deta?: boolean;
|
|
27
|
+
device_created?: string;
|
|
28
|
+
device_finished?: string;
|
|
29
|
+
device_elapsed_seconds?: number;
|
|
30
|
+
device_deleted?: string;
|
|
31
|
+
device_status?: string;
|
|
32
|
+
device_is_log_available?: boolean;
|
|
33
|
+
device_retries?: number;
|
|
34
|
+
device_attempts?: number;
|
|
35
|
+
image_id?: string;
|
|
36
|
+
image_description?: string;
|
|
37
|
+
image_artifact_name?: string;
|
|
38
|
+
image_device_types?: Array<string>;
|
|
39
|
+
image_signed?: boolean;
|
|
40
|
+
image_artifact_info_format?: string;
|
|
41
|
+
image_artifact_info_version?: number;
|
|
42
|
+
image_provides?: Record<string, any>;
|
|
43
|
+
image_depends?: Record<string, any>;
|
|
44
|
+
image_clear_provides?: string;
|
|
45
|
+
image_size?: number;
|
|
46
|
+
};
|
|
@@ -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 { DeploymentAttributeProjection } from "./DeploymentAttributeProjection";
|
|
7
|
+
import type { DeploymentFilterTerm } from "./DeploymentFilterTerm";
|
|
8
|
+
import type { DeploymentSortTerm } from "./DeploymentSortTerm";
|
|
9
|
+
|
|
10
|
+
export type DeploymentSearchTerms = {
|
|
11
|
+
/**
|
|
12
|
+
* Pagination parameter for iterating search results.
|
|
13
|
+
*/
|
|
14
|
+
page?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of devices returned per page.
|
|
17
|
+
*/
|
|
18
|
+
per_page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Filtering terms.
|
|
21
|
+
*/
|
|
22
|
+
filters?: Array<DeploymentFilterTerm>;
|
|
23
|
+
/**
|
|
24
|
+
* Attribute keys to sort by.
|
|
25
|
+
*/
|
|
26
|
+
sort?: Array<DeploymentSortTerm>;
|
|
27
|
+
/**
|
|
28
|
+
* Restrict the attribute result to the selected attributes.
|
|
29
|
+
*/
|
|
30
|
+
attributes?: Array<DeploymentAttributeProjection>;
|
|
31
|
+
/**
|
|
32
|
+
* Restrict the result to the given device IDs.
|
|
33
|
+
*/
|
|
34
|
+
device_ids?: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Restrict the result to the given deployment IDs.
|
|
37
|
+
*/
|
|
38
|
+
deployment_ids?: Array<string>;
|
|
39
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export type DeploymentSortTerm = {
|
|
7
|
+
/**
|
|
8
|
+
* Attribute key to sort by.
|
|
9
|
+
*/
|
|
10
|
+
attribute: string;
|
|
11
|
+
/**
|
|
12
|
+
* Sort order: ascending/descending.
|
|
13
|
+
*/
|
|
14
|
+
order: DeploymentSortTerm.order;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export namespace DeploymentSortTerm {
|
|
18
|
+
/**
|
|
19
|
+
* Sort order: ascending/descending.
|
|
20
|
+
*/
|
|
21
|
+
export enum order {
|
|
22
|
+
ASC = "asc",
|
|
23
|
+
DESC = "desc",
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { DeploymentStatusStatistics } from "./DeploymentStatusStatistics";
|
|
6
|
+
export type DeploymentStatistics = {
|
|
7
|
+
status?: DeploymentStatusStatistics;
|
|
8
|
+
/**
|
|
9
|
+
* Sum of sizes (in bytes) of all artifacts assigned to all device deployments,
|
|
10
|
+
* which are part of this deployment.
|
|
11
|
+
* If the same artifact is assigned to multiple device deployments,
|
|
12
|
+
* its size will be counted multiple times.
|
|
13
|
+
*/
|
|
14
|
+
total_size?: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type DeploymentStatusStatistics = {
|
|
6
|
+
/**
|
|
7
|
+
* Number of successful deployments.
|
|
8
|
+
*/
|
|
9
|
+
success: number;
|
|
10
|
+
/**
|
|
11
|
+
* Number of pending deployments.
|
|
12
|
+
*/
|
|
13
|
+
pending: number;
|
|
14
|
+
/**
|
|
15
|
+
* Number of deployments being downloaded.
|
|
16
|
+
*/
|
|
17
|
+
downloading: number;
|
|
18
|
+
/**
|
|
19
|
+
* Number of deployments devices are rebooting into.
|
|
20
|
+
*/
|
|
21
|
+
rebooting: number;
|
|
22
|
+
/**
|
|
23
|
+
* Number of deployments devices being installed.
|
|
24
|
+
*/
|
|
25
|
+
installing: number;
|
|
26
|
+
/**
|
|
27
|
+
* Number of failed deployments.
|
|
28
|
+
*/
|
|
29
|
+
failure: number;
|
|
30
|
+
/**
|
|
31
|
+
* Do not have appropriate artifact for device type.
|
|
32
|
+
*/
|
|
33
|
+
noartifact: number;
|
|
34
|
+
/**
|
|
35
|
+
* Number of devices unaffected by upgrade, since they are already running the specified software version.
|
|
36
|
+
*/
|
|
37
|
+
"already-installed": number;
|
|
38
|
+
/**
|
|
39
|
+
* Number of deployments aborted by user.
|
|
40
|
+
*/
|
|
41
|
+
aborted: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of deployments paused before install state.
|
|
44
|
+
*/
|
|
45
|
+
pause_before_installing: number;
|
|
46
|
+
/**
|
|
47
|
+
* Number of deployments paused before reboot phase.
|
|
48
|
+
*/
|
|
49
|
+
pause_before_rebooting: number;
|
|
50
|
+
/**
|
|
51
|
+
* Number of deployments paused before commit phase.
|
|
52
|
+
*/
|
|
53
|
+
pause_before_committing: number;
|
|
54
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { DeviceStatus } from "./DeviceStatus";
|
|
6
|
+
export type Device = {
|
|
7
|
+
/**
|
|
8
|
+
* Device identifier.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
status: DeviceStatus;
|
|
12
|
+
created?: string;
|
|
13
|
+
started?: string;
|
|
14
|
+
finished?: string;
|
|
15
|
+
deleted?: string;
|
|
16
|
+
device_type?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Availability of the device's deployment log.
|
|
19
|
+
*/
|
|
20
|
+
log: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* State reported by device
|
|
23
|
+
*/
|
|
24
|
+
state?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Additional state information
|
|
27
|
+
*/
|
|
28
|
+
substate?: string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { DeviceAggregationItem } from "./DeviceAggregationItem";
|
|
7
|
+
|
|
8
|
+
export type DeviceAggregation = {
|
|
9
|
+
/**
|
|
10
|
+
* Aggregation name
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
items?: Array<DeviceAggregationItem>;
|
|
14
|
+
/**
|
|
15
|
+
* Count of the documents not included in the items
|
|
16
|
+
*/
|
|
17
|
+
other_count?: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { DeviceAggregation } from "./DeviceAggregation";
|
|
7
|
+
|
|
8
|
+
export type DeviceAggregationItem = {
|
|
9
|
+
/**
|
|
10
|
+
* Aggregation key
|
|
11
|
+
*/
|
|
12
|
+
key?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Aggregation count
|
|
15
|
+
*/
|
|
16
|
+
count?: number;
|
|
17
|
+
aggregations?: Array<DeviceAggregation>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export type DeviceAggregationTerm = {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the aggregation.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Attribute key(s) to aggregate.
|
|
13
|
+
*/
|
|
14
|
+
attribute?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The scope the attribute(s) exists in.
|
|
17
|
+
*/
|
|
18
|
+
scope?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Number of top results to return.
|
|
21
|
+
*/
|
|
22
|
+
limit?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Sub-aggregation terms; it supports up to 5 nested subaggregations.
|
|
25
|
+
*/
|
|
26
|
+
aggregations?: Array<DeviceAggregationTerm>;
|
|
27
|
+
};
|
|
@@ -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 { DeviceAggregationTerm } from "./DeviceAggregationTerm";
|
|
7
|
+
import type { DeviceFilterTerm } from "./DeviceFilterTerm";
|
|
8
|
+
import type { GeoBoundingBoxFilter } from "./GeoBoundingBoxFilter";
|
|
9
|
+
import type { GeoDistanceFilter } from "./GeoDistanceFilter";
|
|
10
|
+
|
|
11
|
+
export type DeviceAggregationTerms = {
|
|
12
|
+
/**
|
|
13
|
+
* Aggregation terms.
|
|
14
|
+
*/
|
|
15
|
+
aggregations?: Array<DeviceAggregationTerm>;
|
|
16
|
+
/**
|
|
17
|
+
* Filtering terms.
|
|
18
|
+
*/
|
|
19
|
+
filters?: Array<DeviceFilterTerm>;
|
|
20
|
+
geo_distance_filter?: GeoDistanceFilter;
|
|
21
|
+
geo_bounding_box_filter?: GeoBoundingBoxFilter;
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export type DeviceAttribute = {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the attribute.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Value of the attribute.
|
|
13
|
+
*/
|
|
14
|
+
value: any;
|
|
15
|
+
/**
|
|
16
|
+
* The scope the attribute belongs to.
|
|
17
|
+
*/
|
|
18
|
+
scope?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional attributes description.
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export type DeviceAttributeProjection = {
|
|
7
|
+
/**
|
|
8
|
+
* Attribute key to sort by.
|
|
9
|
+
*/
|
|
10
|
+
attribute: string;
|
|
11
|
+
/**
|
|
12
|
+
* Scope the attribute key belongs to.
|
|
13
|
+
*/
|
|
14
|
+
scope?: string;
|
|
15
|
+
};
|
|
@@ -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
|
+
* Device descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export type DeviceAuditlogs = {
|
|
9
|
+
/**
|
|
10
|
+
* Device ID.
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Vendor-specific JSON representation of the device identity data (MACs, serial numbers, etc.).
|
|
15
|
+
*/
|
|
16
|
+
identity_data: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* DeviceAuthEvent describes an event that relates to changes to a device's authentication data. The properties included depends on the event type: device provisioning includes the entire device with the accepted authentication set, status change events only includes the device id and the new status, and device decommissioning will only include the device id.
|
|
8
|
+
*/
|
|
9
|
+
export type DeviceAuthEvent = {
|
|
10
|
+
/**
|
|
11
|
+
* Device unique ID.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The authentication status of the device.
|
|
16
|
+
*/
|
|
17
|
+
status?: string;
|
|
18
|
+
auth_sets?: Array<AuthSet>;
|
|
19
|
+
/**
|
|
20
|
+
* The time the device was initialized in Mender.
|
|
21
|
+
*/
|
|
22
|
+
created_ts?: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ManagementAPIConfiguration } from "./ManagementAPIConfiguration";
|
|
6
|
+
export type DeviceConfiguration = {
|
|
7
|
+
id?: string;
|
|
8
|
+
configured?: ManagementAPIConfiguration;
|
|
9
|
+
reported?: ManagementAPIConfiguration;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the latest configuration deployment
|
|
12
|
+
*/
|
|
13
|
+
deployment_id?: string;
|
|
14
|
+
reported_ts?: string;
|
|
15
|
+
updated_ts?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { Deployment } from "./Deployment";
|
|
6
|
+
import type { DeviceWithImage } from "./DeviceWithImage";
|
|
7
|
+
export type DeviceDeployment = {
|
|
8
|
+
id?: string;
|
|
9
|
+
deployment: Deployment;
|
|
10
|
+
device: DeviceWithImage;
|
|
11
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { DeviceStatus } from "./DeviceStatus";
|
|
7
|
+
|
|
8
|
+
export type DeviceDeployments = {
|
|
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
|
+
};
|