@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,36 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Attribute descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export type Attribute = {
|
|
9
|
+
/**
|
|
10
|
+
* A human readable, unique attribute ID, e.g. 'device_type', 'ip_addr', 'cpu_load', etc.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* The scope of the attribute.
|
|
15
|
+
*
|
|
16
|
+
* Scope is a string and acts as namespace for the attribute name.
|
|
17
|
+
*/
|
|
18
|
+
scope: string;
|
|
19
|
+
/**
|
|
20
|
+
* Attribute description.
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The current value of the attribute.
|
|
25
|
+
*
|
|
26
|
+
* Attribute type is implicit, inferred from the JSON type.
|
|
27
|
+
*
|
|
28
|
+
* Supported types: number, string, array of numbers, array of strings.
|
|
29
|
+
* Mixed type arrays are not allowed.
|
|
30
|
+
*/
|
|
31
|
+
value: string;
|
|
32
|
+
/**
|
|
33
|
+
* The date and time of last tag update in RFC3339 format.
|
|
34
|
+
*/
|
|
35
|
+
timestamp?: string;
|
|
36
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Attribute descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export type AttributeInventory = {
|
|
9
|
+
/**
|
|
10
|
+
* A human readable, unique attribute ID, e.g. 'device_type', 'ip_addr', 'cpu_load', etc.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* The scope of the attribute.
|
|
15
|
+
*
|
|
16
|
+
* Scope is a string and acts as namespace for the attribute name.
|
|
17
|
+
*/
|
|
18
|
+
scope: string;
|
|
19
|
+
/**
|
|
20
|
+
* Attribute description.
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The current value of the attribute.
|
|
25
|
+
*
|
|
26
|
+
* Attribute type is implicit, inferred from the JSON type.
|
|
27
|
+
*
|
|
28
|
+
* Supported types: number, string, array of numbers, array of strings.
|
|
29
|
+
* Mixed arrays are not allowed.
|
|
30
|
+
*/
|
|
31
|
+
value: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { Actor } from "./Actor";
|
|
6
|
+
import type { Object } from "./Object";
|
|
7
|
+
/**
|
|
8
|
+
* The audit log.
|
|
9
|
+
*/
|
|
10
|
+
export type AuditLog = {
|
|
11
|
+
actor: Actor;
|
|
12
|
+
time: string;
|
|
13
|
+
action: AuditLog.action;
|
|
14
|
+
object: Object;
|
|
15
|
+
change?: string;
|
|
16
|
+
};
|
|
17
|
+
export namespace AuditLog {
|
|
18
|
+
export enum action {
|
|
19
|
+
CREATE = "create",
|
|
20
|
+
UPDATE = "update",
|
|
21
|
+
DELETE = "delete",
|
|
22
|
+
ABORT = "abort",
|
|
23
|
+
REJECT = "reject",
|
|
24
|
+
DECOMMISSION = "decommission",
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* AuthSet describes the identity a device use to authenticate with the Mender servier.
|
|
7
|
+
*/
|
|
8
|
+
export type AuthSet = {
|
|
9
|
+
/**
|
|
10
|
+
* The unique ID of the authentication set.
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The unique ID of the device the authentication set belongs.
|
|
15
|
+
*/
|
|
16
|
+
device_id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The identity data presented by the device.
|
|
19
|
+
*/
|
|
20
|
+
identity_data?: Record<string, any>;
|
|
21
|
+
/**
|
|
22
|
+
* PEM-encoded public key of the device authentication set.
|
|
23
|
+
*/
|
|
24
|
+
pubkey?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Authentication status of the set.
|
|
27
|
+
*/
|
|
28
|
+
status?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The creation timestamp of the authentication set.
|
|
31
|
+
*/
|
|
32
|
+
ts?: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { IdentityData } from "./IdentityData";
|
|
6
|
+
/**
|
|
7
|
+
* Authentication data set
|
|
8
|
+
*/
|
|
9
|
+
export type AuthSetDeviceauth = {
|
|
10
|
+
/**
|
|
11
|
+
* Authentication data set ID.
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The device's public key (PEM encoding), generated by the device or pre-provisioned by the vendor. Currently supported public algorithms are: RSA, ED25519 and ECDSA.
|
|
16
|
+
*/
|
|
17
|
+
pubkey?: string;
|
|
18
|
+
identity_data?: IdentityData;
|
|
19
|
+
status?: AuthSetDeviceauth.status;
|
|
20
|
+
/**
|
|
21
|
+
* Created timestamp
|
|
22
|
+
*/
|
|
23
|
+
ts?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Device ID connected to authentication data set
|
|
26
|
+
*/
|
|
27
|
+
device_id?: string;
|
|
28
|
+
};
|
|
29
|
+
export namespace AuthSetDeviceauth {
|
|
30
|
+
export enum status {
|
|
31
|
+
PENDING = "pending",
|
|
32
|
+
ACCEPTED = "accepted",
|
|
33
|
+
REJECTED = "rejected",
|
|
34
|
+
PREAUTHORIZED = "preauthorized",
|
|
35
|
+
NOAUTH = "noauth",
|
|
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 AutoAuthRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Vendor-specific JSON representation of the device identity data (MACs, serial numbers, etc.).
|
|
8
|
+
*/
|
|
9
|
+
id_data: string;
|
|
10
|
+
/**
|
|
11
|
+
* The device's public key (PEM encoding), generated by the device or pre-provisioned by the vendor. Currently supported public algorithms are: RSA, ED25519 and ECDSA.
|
|
12
|
+
*/
|
|
13
|
+
pubkey: string;
|
|
14
|
+
/**
|
|
15
|
+
* Tenant token.
|
|
16
|
+
*/
|
|
17
|
+
tenant_token?: string;
|
|
18
|
+
/**
|
|
19
|
+
* External identity which can be used to verify devices managed by cloud providers.
|
|
20
|
+
* Currently, only Azure IoT Edge devices are supported.
|
|
21
|
+
*/
|
|
22
|
+
external_id?: string;
|
|
23
|
+
};
|
|
@@ -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
|
+
* Shared Access Secret is an authentication mechanism in the form of a
|
|
7
|
+
* connection string for Azure IoT Hub.
|
|
8
|
+
*/
|
|
9
|
+
export type AzureSharedAccessSecret = {
|
|
10
|
+
connection_string: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CardData } from "./CardData";
|
|
6
|
+
import type { SubscriptionData } from "./SubscriptionData";
|
|
7
|
+
/**
|
|
8
|
+
* Billing related data, such as credit card information and next billing date
|
|
9
|
+
*/
|
|
10
|
+
export type BillingInfo = {
|
|
11
|
+
card?: CardData;
|
|
12
|
+
subscription?: SubscriptionData;
|
|
13
|
+
};
|
|
@@ -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 { XDeltaArgs } from "./XDeltaArgs";
|
|
6
|
+
/**
|
|
7
|
+
* The mender-binary-delta-generator configuration options.
|
|
8
|
+
*/
|
|
9
|
+
export type BinaryDeltaConfiguration = {
|
|
10
|
+
xdelta_args?: XDeltaArgs;
|
|
11
|
+
/**
|
|
12
|
+
* Delta generation job timeout in seconds.
|
|
13
|
+
*/
|
|
14
|
+
timeout?: number;
|
|
15
|
+
};
|
|
@@ -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 { XDeltaArgs } from "./XDeltaArgs";
|
|
6
|
+
/**
|
|
7
|
+
* The mender-binary-delta-generator configuration options.
|
|
8
|
+
*/
|
|
9
|
+
export type BinaryDeltaConfigurationDeployments = {
|
|
10
|
+
xdelta_args?: XDeltaArgs;
|
|
11
|
+
/**
|
|
12
|
+
* Delta generation job timeout in seconds.
|
|
13
|
+
*/
|
|
14
|
+
timeout?: number;
|
|
15
|
+
};
|
|
@@ -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 { Limit } from "./Limit";
|
|
6
|
+
import type { XDeltaArgsLimits } from "./XDeltaArgsLimits";
|
|
7
|
+
/**
|
|
8
|
+
* The mender-binary-delta-generator configuration limits.
|
|
9
|
+
*/
|
|
10
|
+
export type BinaryDeltaLimits = {
|
|
11
|
+
xdelta_args_limits?: XDeltaArgsLimits;
|
|
12
|
+
timeout?: Limit;
|
|
13
|
+
jobs_in_parallel?: Limit;
|
|
14
|
+
queue_length?: Limit;
|
|
15
|
+
};
|
|
@@ -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 { Limit } from "./Limit";
|
|
6
|
+
import type { XDeltaArgsLimits } from "./XDeltaArgsLimits";
|
|
7
|
+
/**
|
|
8
|
+
* The mender-binary-delta-generator configuration limits.
|
|
9
|
+
*/
|
|
10
|
+
export type BinaryDeltaLimitsDeployments = {
|
|
11
|
+
xdelta_args_limits?: XDeltaArgsLimits;
|
|
12
|
+
timeout?: Limit;
|
|
13
|
+
jobs_in_parallel?: Limit;
|
|
14
|
+
queue_length?: Limit;
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { GeoPoint } from "./GeoPoint";
|
|
7
|
+
|
|
8
|
+
export type BoundingBox = {
|
|
9
|
+
top_left: GeoPoint;
|
|
10
|
+
bottom_right: GeoPoint;
|
|
11
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Card information stored in Stripe. The full type description is available at "https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.yaml#/components/schemas/payment_method_card"
|
|
7
|
+
*/
|
|
8
|
+
export type CardData = {
|
|
9
|
+
/**
|
|
10
|
+
* Card brand. Can be `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
11
|
+
*/
|
|
12
|
+
brand?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Checks on Card address and CVC if provided.
|
|
15
|
+
*/
|
|
16
|
+
checks?: any;
|
|
17
|
+
/**
|
|
18
|
+
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
19
|
+
*/
|
|
20
|
+
country?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Two-digit number representing the card's expiration month.
|
|
23
|
+
*/
|
|
24
|
+
exp_month?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Four-digit number representing the card's expiration year.
|
|
27
|
+
*/
|
|
28
|
+
exp_year?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
|
31
|
+
*/
|
|
32
|
+
fingerprint?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
35
|
+
*/
|
|
36
|
+
funding?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The last four digits of the card.
|
|
39
|
+
*/
|
|
40
|
+
last4?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Contains details on how this Card maybe be used for 3D Secure authentication.
|
|
43
|
+
*/
|
|
44
|
+
three_d_secure_usage?: any;
|
|
45
|
+
/**
|
|
46
|
+
* If this Card is part of a card wallet, this contains the details of the card wallet.
|
|
47
|
+
*/
|
|
48
|
+
wallet?: any;
|
|
49
|
+
};
|
|
@@ -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
|
+
* Stripe setup intent data.
|
|
7
|
+
*/
|
|
8
|
+
export type CardSetupData = {
|
|
9
|
+
/**
|
|
10
|
+
* Setup intent id.
|
|
11
|
+
*/
|
|
12
|
+
intent_id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Setup intent secret.
|
|
15
|
+
*/
|
|
16
|
+
secret: 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
|
+
* Checkout data.
|
|
7
|
+
*/
|
|
8
|
+
export type CheckoutData = {
|
|
9
|
+
/**
|
|
10
|
+
* Stripe client secret.
|
|
11
|
+
*/
|
|
12
|
+
secret: string;
|
|
13
|
+
};
|
|
@@ -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 { DeltaConfiguration } from "./DeltaConfiguration";
|
|
6
|
+
/**
|
|
7
|
+
* Configuration.
|
|
8
|
+
*/
|
|
9
|
+
export type Configuration = {
|
|
10
|
+
delta?: DeltaConfiguration;
|
|
11
|
+
};
|
|
@@ -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
|
+
* Counter type
|
|
7
|
+
*/
|
|
8
|
+
export type Count = {
|
|
9
|
+
/**
|
|
10
|
+
* The count of requested items.
|
|
11
|
+
*/
|
|
12
|
+
count?: number;
|
|
13
|
+
};
|
|
@@ -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 { AWSCredentials } from "./AWSCredentials";
|
|
6
|
+
import type { AzureSharedAccessSecret } from "./AzureSharedAccessSecret";
|
|
7
|
+
import type { HTTP } from "./HTTP";
|
|
8
|
+
export type Credentials = {
|
|
9
|
+
/**
|
|
10
|
+
* The credential type
|
|
11
|
+
*/
|
|
12
|
+
type: Credentials.type;
|
|
13
|
+
} & (AWSCredentials | AzureSharedAccessSecret | HTTP);
|
|
14
|
+
export namespace Credentials {
|
|
15
|
+
/**
|
|
16
|
+
* The credential type
|
|
17
|
+
*/
|
|
18
|
+
export enum type {
|
|
19
|
+
AWS = "aws",
|
|
20
|
+
SAS = "sas",
|
|
21
|
+
HTTP = "http",
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* dbus subsystem specific configuration
|
|
7
|
+
*/
|
|
8
|
+
export type DBusSubsystem = {
|
|
9
|
+
dbus: {
|
|
10
|
+
/**
|
|
11
|
+
* Check name.
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* DBus pattern to look for
|
|
16
|
+
*/
|
|
17
|
+
pattern: string;
|
|
18
|
+
/**
|
|
19
|
+
* DBus watch expression
|
|
20
|
+
*/
|
|
21
|
+
watch: string;
|
|
22
|
+
/**
|
|
23
|
+
* Number of seconds after which the alert is considered expired and an OK is sent
|
|
24
|
+
*/
|
|
25
|
+
alert_expiration?: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { BinaryDeltaConfiguration } from "./BinaryDeltaConfiguration";
|
|
6
|
+
import type { BinaryDeltaLimits } from "./BinaryDeltaLimits";
|
|
7
|
+
/**
|
|
8
|
+
* Delta configuration options.
|
|
9
|
+
*/
|
|
10
|
+
export type DeltaConfiguration = {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
binary_delta?: BinaryDeltaConfiguration;
|
|
13
|
+
binary_delta_limits?: BinaryDeltaLimits;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { BinaryDeltaConfiguration } from "./BinaryDeltaConfiguration";
|
|
6
|
+
import type { BinaryDeltaLimits } from "./BinaryDeltaLimits";
|
|
7
|
+
/**
|
|
8
|
+
* Delta configuration options.
|
|
9
|
+
*/
|
|
10
|
+
export type DeltaConfigurationDeployments = {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
binary_delta?: BinaryDeltaConfiguration;
|
|
13
|
+
binary_delta_limits?: BinaryDeltaLimits;
|
|
14
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { DeploymentPhase } from "./DeploymentPhase";
|
|
6
|
+
import type { DeploymentStatistics } from "./DeploymentStatistics";
|
|
7
|
+
import type { Filter } from "./Filter";
|
|
8
|
+
export type Deployment = {
|
|
9
|
+
/**
|
|
10
|
+
* Deployment identifier
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Name of the deployment
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Name of the artifact to deploy
|
|
19
|
+
*/
|
|
20
|
+
artifact_name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Deployment's creation date and time
|
|
23
|
+
*/
|
|
24
|
+
created: string;
|
|
25
|
+
/**
|
|
26
|
+
* Deployment's completion date and time
|
|
27
|
+
*/
|
|
28
|
+
finished?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Status of the deployment
|
|
31
|
+
*/
|
|
32
|
+
status: Deployment.status;
|
|
33
|
+
/**
|
|
34
|
+
* Number of devices the deployment acted upon
|
|
35
|
+
*/
|
|
36
|
+
device_count: number;
|
|
37
|
+
/**
|
|
38
|
+
* An array of artifact's identifiers.
|
|
39
|
+
*/
|
|
40
|
+
artifacts?: Array<string>;
|
|
41
|
+
/**
|
|
42
|
+
* An array of groups the devices targeted by the deployment belong to.
|
|
43
|
+
* Available only if the user created the deployment for a group or a single device (if the device was in a static group).
|
|
44
|
+
*/
|
|
45
|
+
groups?: Array<string>;
|
|
46
|
+
phases?: Array<DeploymentPhase>;
|
|
47
|
+
/**
|
|
48
|
+
* The number of times a device can retry the deployment in case of failure, defaults to 0
|
|
49
|
+
*/
|
|
50
|
+
retries?: number;
|
|
51
|
+
/**
|
|
52
|
+
* A valid JSON object defining the update control map.
|
|
53
|
+
* *NOTE*: Available only in the Enterprise plan.
|
|
54
|
+
*/
|
|
55
|
+
update_control_map?: Record<string, any>;
|
|
56
|
+
/**
|
|
57
|
+
* max_devices denotes a limit on a number of completed deployments (failed or successful) above which the dynamic deployment will be finished.
|
|
58
|
+
*/
|
|
59
|
+
max_devices?: number;
|
|
60
|
+
/**
|
|
61
|
+
* In case of dynamic deployments this is a number of devices targeted initially (maching the filter at the moment of deployment creation).
|
|
62
|
+
*/
|
|
63
|
+
initial_device_count?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Flag indicating if the deployment is dynamic or not.
|
|
66
|
+
*/
|
|
67
|
+
dynamic?: boolean;
|
|
68
|
+
filter?: Filter;
|
|
69
|
+
type?: Deployment.type;
|
|
70
|
+
/**
|
|
71
|
+
* A string containing a configuration object provided
|
|
72
|
+
* with the deployment constructor.
|
|
73
|
+
*/
|
|
74
|
+
configuration?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The flag idicating if the autogeneration of delta artifacts is enabled for a given deployment.
|
|
77
|
+
*/
|
|
78
|
+
autogenerate_delta?: boolean;
|
|
79
|
+
statistics?: DeploymentStatistics;
|
|
80
|
+
};
|
|
81
|
+
export namespace Deployment {
|
|
82
|
+
/**
|
|
83
|
+
* Status of the deployment
|
|
84
|
+
*/
|
|
85
|
+
export enum status {
|
|
86
|
+
SCHEDULED = "scheduled",
|
|
87
|
+
PENDING = "pending",
|
|
88
|
+
INPROGRESS = "inprogress",
|
|
89
|
+
FINISHED = "finished",
|
|
90
|
+
}
|
|
91
|
+
export enum type {
|
|
92
|
+
CONFIGURATION = "configuration",
|
|
93
|
+
SOFTWARE = "software",
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -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 { DeploymentAggregationItem } from "./DeploymentAggregationItem";
|
|
7
|
+
|
|
8
|
+
export type DeploymentAggregation = {
|
|
9
|
+
/**
|
|
10
|
+
* Aggregation name
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
items?: Array<DeploymentAggregationItem>;
|
|
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 { DeploymentAggregation } from "./DeploymentAggregation";
|
|
7
|
+
|
|
8
|
+
export type DeploymentAggregationItem = {
|
|
9
|
+
/**
|
|
10
|
+
* Aggregation key
|
|
11
|
+
*/
|
|
12
|
+
key?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Aggregation count
|
|
15
|
+
*/
|
|
16
|
+
count?: number;
|
|
17
|
+
aggregations?: Array<DeploymentAggregation>;
|
|
18
|
+
};
|
|
@@ -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 DeploymentAggregationTerm = {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the aggregation.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Attribute key(s) to aggregate.
|
|
13
|
+
*/
|
|
14
|
+
attribute?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Number of top results to return.
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Sub-aggregation terms; it supports up to 5 nested subaggregations.
|
|
21
|
+
*/
|
|
22
|
+
aggregations?: Array<DeploymentAggregationTerm>;
|
|
23
|
+
};
|