@balena/open-balena-api 28.0.0-build-drop-device-types-v1-images-935ed5606fba5d10b2fca59593a64cf5aaee1038-1 → 28.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/balena-model.d.ts +1 -14
- package/dist/balena-model.js +1 -1
- package/dist/features/api-keys/lib.js +2 -1
- package/dist/features/api-keys/lib.js.map +1 -1
- package/dist/features/device-config/download.js +2 -2
- package/dist/features/device-config/download.js.map +1 -1
- package/dist/features/device-logs/lib/store.js +7 -7
- package/dist/features/device-logs/lib/store.js.map +1 -1
- package/dist/features/device-proxy/device-proxy.js +3 -2
- package/dist/features/device-proxy/device-proxy.js.map +1 -1
- package/dist/features/device-types/device-types.d.ts +8 -3
- package/dist/features/device-types/device-types.js +34 -17
- package/dist/features/device-types/device-types.js.map +1 -1
- package/dist/features/device-types/index.js +2 -1
- package/dist/features/device-types/index.js.map +1 -1
- package/dist/features/device-types/routes.d.ts +1 -0
- package/dist/features/device-types/routes.js +17 -2
- package/dist/features/device-types/routes.js.map +1 -1
- package/dist/features/host-os-access/access.js +2 -1
- package/dist/features/host-os-access/access.js.map +1 -1
- package/dist/features/registry/registry.js +3 -2
- package/dist/features/registry/registry.js.map +1 -1
- package/dist/features/vpn/services.js +8 -8
- package/dist/features/vpn/services.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/translations/v6/hooks.js +1 -1
- package/dist/translations/v6/hooks.js.map +1 -1
- package/package.json +18 -18
package/dist/balena-model.d.ts
CHANGED
@@ -800,15 +800,10 @@ export interface Device {
|
|
800
800
|
api_secret: Types['Short Text']['Write'] | null;
|
801
801
|
is_managed_by__service_instance: ServiceInstance['Write']['id'] | null;
|
802
802
|
is_pinned_on__release: Release['Write']['id'] | null;
|
803
|
-
should_be_running__release: Release['Write']['id'] | null;
|
804
803
|
should_be_operated_by__release: Release['Write']['id'] | null;
|
805
804
|
should_be_managed_by__release: Release['Write']['id'] | null;
|
806
805
|
update_status: 'rejected' | 'downloading' | 'downloaded' | 'applying changes' | 'aborted' | 'done' | null;
|
807
806
|
last_update_status_event: Types['Date Time']['Write'] | null;
|
808
|
-
is_web_accessible: Types['Boolean']['Write'] | null;
|
809
|
-
is_frozen: Types['Boolean']['Write'] | null;
|
810
|
-
overall_status: Types['Short Text']['Write'] | null;
|
811
|
-
overall_progress: Types['Integer']['Write'] | null;
|
812
807
|
};
|
813
808
|
}
|
814
809
|
export interface DeviceEnvironmentVariable {
|
@@ -1051,10 +1046,6 @@ export interface Release {
|
|
1051
1046
|
known_issue_list: Types['Text']['Write'] | null;
|
1052
1047
|
note: Types['Text']['Write'] | null;
|
1053
1048
|
invalidation_reason: Types['Text']['Write'] | null;
|
1054
|
-
is_final: Types['Boolean']['Write'];
|
1055
|
-
semver: Types['Short Text']['Write'];
|
1056
|
-
raw_version: Types['Short Text']['Write'];
|
1057
|
-
version: Types['JSON']['Write'];
|
1058
1049
|
};
|
1059
1050
|
}
|
1060
1051
|
export interface ReleaseTag {
|
@@ -1255,11 +1246,7 @@ export interface UserHasDirectAccessToApplication {
|
|
1255
1246
|
__id: User['Read']['id'];
|
1256
1247
|
} | [User['Read']];
|
1257
1248
|
};
|
1258
|
-
Write:
|
1259
|
-
id: Types['Big Integer']['Write'];
|
1260
|
-
user: User['Write']['id'];
|
1261
|
-
has_direct_access_to__application: Application['Write']['id'];
|
1262
|
-
};
|
1249
|
+
Write: Record<string, never>;
|
1263
1250
|
}
|
1264
1251
|
export default interface $Model {
|
1265
1252
|
actor: Actor;
|
package/dist/balena-model.js
CHANGED
@@ -20,7 +20,8 @@ const $createApiKey = async (actorType, roleName, req, actorTypeID, { apiKey, tx
|
|
20
20
|
if (actorID == null) {
|
21
21
|
throw new Error(`No ${actorType} found to associate with the api key`);
|
22
22
|
}
|
23
|
-
const res = await api.resin.
|
23
|
+
const res = await api.resin.request({
|
24
|
+
method: 'POST',
|
24
25
|
url: `${actorType}(${actorTypeID})/canAccess`,
|
25
26
|
passthrough: { req, tx },
|
26
27
|
body: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../src/features/api-keys/lib.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAC1B,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;AAiBnC,MAAM,aAAa,GAAG,KAAK,EAC1B,SAAsB,EACtB,QAAgB,EAChB,GAAY,EACZ,WAAmB,EACnB,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAyB,EAClD,EAAE;IACpB,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;QACrC,QAAQ,EAAE,SAAS;QACnB,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;QACxB,OAAO,EAAE;YACR,OAAO,EAAE,OAAO;SAChB;KACD,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC;IACtC,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,MAAM,SAAS,sCAAsC,CAAC,CAAC;IACxE,CAAC;IAED,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,
|
1
|
+
{"version":3,"file":"lib.js","source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AAE,SAAS,EAAE;YAC5D,EAAE;SACF,CAAC,CAAC;QACH,OAAO,IAAI,IAAI,IAAI,CAAC;IACrB,CAAC,EACD;QACC,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,0BAA0B;QAClC,UAAU,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,GAAG,QAAQ,IAAI,GAAG,EAAE;KACrD,CACD,CAAC;AACH,CAAC,CAAC,EAAE,CAAC;AAEL;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAG1C,GAAM,EACN,gBAA0B;AAC1B;;;;;GAKG;AACH,mBAAmB,GAAG,KAAK,EACvB,EAAE;IACN,IAAI,YAAY,GAAG,GAAG,CAAC;IAEvB,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC1B,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC5B,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;SAAM,IAAI,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC;QAC7C,2DAA2D;QAC3D,0DAA0D;QAC1D,4DAA4D;QAC5D,YAAY,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACxE,CAAC;IAED,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC;IAC5D,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { sbvrUtils, errors } from '@balena/pinejs';
|
2
2
|
import { captureException, handleHttpErrors, translateError, } from '../../infra/error-handling/index.js';
|
3
3
|
import { generateConfig } from './device-config.js';
|
4
|
-
import {
|
4
|
+
import { getDeviceTypeJsonBySlug } from '../device-types/device-types.js';
|
5
5
|
import { checkInt, getBodyOrQueryParam } from '../../lib/utils.js';
|
6
6
|
const { UnauthorizedError, NotFoundError } = errors;
|
7
7
|
const { api } = sbvrUtils;
|
@@ -40,7 +40,7 @@ export const downloadImageConfig = async (req, res) => {
|
|
40
40
|
try {
|
41
41
|
const resinApi = api.resin.clone({ passthrough: { req } });
|
42
42
|
const app = await getApp(appId, req);
|
43
|
-
const deviceTypeJson = await
|
43
|
+
const deviceTypeJson = await getDeviceTypeJsonBySlug(resinApi, deviceTypeSlug || app.is_for__device_type[0].slug);
|
44
44
|
const config = await generateConfig(req, app, deviceTypeJson, osVersion);
|
45
45
|
res.json(config);
|
46
46
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"download.js","sourceRoot":"","sources":["../../../src/features/device-config/download.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"download.js","sourceRoot":"","sources":["../../../src/features/device-config/download.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;AACpD,MAAM,EAAE,GAAG,EA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AAW,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QAE3D,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACrC,MAAM,cAAc,GAAG,MAAM,uBAAuB,CACnD,QAAQ,EACR,cAAc,IAAI,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,CACjD,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;QAEzE,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,IAAI,aAAa,GAAG,GAAG,CAAC;QACxB,IAAI,aAAa,YAAY,iBAAiB,EAAE,CAAC;YAChD,aAAa,GAAG,IAAI,aAAa,CAAC,aAAa,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC;YAC/C,OAAO;QACR,CAAC;QACD,gBAAgB,CAAC,aAAa,EAAE,yBAAyB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QACpE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;IACrD,CAAC;AACF,CAAC,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import _ from 'lodash';
|
2
1
|
import onFinished from 'on-finished';
|
3
2
|
import { sbvrUtils, errors } from '@balena/pinejs';
|
4
3
|
import { Supervisor } from './supervisor.js';
|
@@ -12,15 +11,16 @@ const { UnauthorizedError, ServiceUnavailableError, UnsupportedMediaTypeError, }
|
|
12
11
|
const { api } = sbvrUtils;
|
13
12
|
const supervisor = new Supervisor();
|
14
13
|
const getWriteContext = (() => {
|
15
|
-
const authQuery = _.once(() => api.resin.prepare({
|
16
|
-
method: 'POST',
|
17
|
-
url: `device(uuid=@uuid)/canAccess`,
|
18
|
-
body: { action: 'write-log' },
|
19
|
-
}));
|
20
14
|
const $getWriteContext = multiCacheMemoizee(async (uuid, req) => {
|
21
15
|
return await sbvrUtils.db.readTransaction(async (tx) => {
|
22
16
|
try {
|
23
|
-
const result = await
|
17
|
+
const result = await api.resin.request({
|
18
|
+
method: 'POST',
|
19
|
+
// We use a parameter alias to signify to pinejs that it's a beneficial query to cache
|
20
|
+
url: `device(uuid=@uuid)/canAccess?@uuid='${uuid}'`,
|
21
|
+
passthrough: { req, tx },
|
22
|
+
body: { action: 'write-log' },
|
23
|
+
});
|
24
24
|
const deviceId = result?.d?.[0]?.id;
|
25
25
|
if (deviceId == null) {
|
26
26
|
return false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/store.ts"],"names":[],"mappings":"AAQA,OAAO,
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/store.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACN,oCAAoC,EACpC,uCAAuC,EACvC,0BAA0B,EAC1B,uBAAuB,EACvB,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,+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AC;QAC3C,UAAU,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAC9B,gBAAgB,GAAG,IAAI,CAAC;IACzB,CAAC;AACF,CAAC"}
|
@@ -29,7 +29,7 @@ const validateSupervisorResponse = (response, req, res, filter) => {
|
|
29
29
|
try {
|
30
30
|
jsonBody = JSON.parse(body);
|
31
31
|
}
|
32
|
-
catch
|
32
|
+
catch {
|
33
33
|
badSupervisorResponse(req, res, filter, 'Invalid JSON data');
|
34
34
|
return;
|
35
35
|
}
|
@@ -137,7 +137,8 @@ async function requestDevices({ url, filter, data, req, wait = true, method = 'P
|
|
137
137
|
// internal operation of the platform.
|
138
138
|
if (method !== 'GET' && req !== permissions.root) {
|
139
139
|
await Promise.all(deviceIds.map(async (deviceId) => {
|
140
|
-
const res = (await resinApi.
|
140
|
+
const res = (await resinApi.request({
|
141
|
+
method: 'POST',
|
141
142
|
url: `device(${deviceId})/canAccess`,
|
142
143
|
body: { action: 'update' },
|
143
144
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"device-proxy.js","sourceRoot":"","sources":["../../../src/features/device-proxy/device-proxy.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACN,uBAAuB,EACvB,sBAAsB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,kGAAkG;AAClG,oEAAoE;AACpE,MAAM,sBAAsB,GAAG,KAAK,CAAC;AAErC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAExC,MAAM,EAAE,eAAe,EAAE,a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,MAAM,SAAS,GAAG,UAAU,MAAM,CAAC,IAAI,WACtC,MAAM,CAAC,QAAQ,IAAI,EACpB,GAAG,GAAG,WAAW,MAAM,CAAC,UAAU,EAAE,CAAC;QACrC,IAAI,CAAC;YACJ,OAAO,MAAM,YAAY,CAAC;gBACzB,GAAG,EAAE,SAAS;gBACd,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,oBAAoB,uBAAuB,IAAI,KAAK,IAAI,sBAAsB,EAAE;gBACvF,MAAM,EAAE,IAAI;gBACZ,MAAM;gBACN,OAAO,EAAE,sBAAsB;aAC/B,CAAC,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACd,IAAI,CAAC,IAAI,EAAE,CAAC;gBACX,4FAA4F;gBAC5F,OAAO;YACR,CAAC;YACD,MAAM,GAAG,CAAC;QACX,CAAC;IACF,CAAC,CACD,CAAC;IAEF,IAAI,CAAC,IAAI,EAAE,CAAC;QACX,OAAO;IACR,CAAC;IACD,iGAAiG;IACjG,OAAO,CAAC,MAAM,WAAW,CAAsB,CAAC;AACjD,CAAC;AAYD,MAAM,CAAC,KAAK,UAAU,WAAW,CAChC,IAAmC;IAEnC,OAAO,MAAM,cAAc,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
@@ -19,8 +19,13 @@ export declare const getDeviceTypeBySlug: (resinApi: typeof sbvrUtils.api.resin,
|
|
19
19
|
slug: string;
|
20
20
|
}>;
|
21
21
|
export declare const validateSlug: (slug?: string) => string;
|
22
|
-
/** @deprecated */
|
23
|
-
export declare const
|
22
|
+
/** @deprecated Prefer querying the device_type resource directly unless you need the device-type.json contents. */
|
23
|
+
export declare const getAccessibleDeviceTypeJsons: (resinApi: typeof sbvrUtils.api.resin) => Promise<DeviceTypeJson[]>;
|
24
24
|
/** @deprecated Use the getDeviceTypeBySlug unless you need the device-type.json contents. */
|
25
|
-
export declare const
|
25
|
+
export declare const getDeviceTypeJsonBySlug: (resinApi: typeof sbvrUtils.api.resin, slug: string) => Promise<DeviceTypeJson>;
|
26
26
|
export declare const getImageSize: (resinApi: typeof sbvrUtils.api.resin, slug: string, buildId: string) => Promise<number>;
|
27
|
+
export interface ImageVersions {
|
28
|
+
versions: string[];
|
29
|
+
latest: string;
|
30
|
+
}
|
31
|
+
export declare const getImageVersions: (resinApi: typeof sbvrUtils.api.resin, slug: string) => Promise<ImageVersions>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import _ from 'lodash';
|
2
2
|
import { errors } from '@balena/pinejs';
|
3
|
+
const { InternalRequestError } = errors;
|
3
4
|
import { captureException } from '../../infra/error-handling/index.js';
|
4
5
|
import { getCompressedSize, getDeviceTypeJson } from './build-info-facade.js';
|
5
6
|
import { getDeviceTypes } from './device-types-list.js';
|
@@ -59,15 +60,10 @@ export const validateSlug = (slug) => {
|
|
59
60
|
}
|
60
61
|
return slug;
|
61
62
|
};
|
62
|
-
/** @deprecated */
|
63
|
-
const
|
64
|
-
const
|
65
|
-
|
66
|
-
};
|
67
|
-
/** @deprecated */
|
68
|
-
export const getAccessibleDeviceTypes = async (resinApi) => {
|
69
|
-
const [deviceTypes, accessibleDeviceTypes] = await Promise.all([
|
70
|
-
getAllDeviceTypes(),
|
63
|
+
/** @deprecated Prefer querying the device_type resource directly unless you need the device-type.json contents. */
|
64
|
+
export const getAccessibleDeviceTypeJsons = async (resinApi) => {
|
65
|
+
const [deviceTypeInfosBySlug, accessibleDeviceTypes] = await Promise.all([
|
66
|
+
getDeviceTypes(),
|
71
67
|
resinApi.get({
|
72
68
|
resource: 'device_type',
|
73
69
|
options: {
|
@@ -75,19 +71,18 @@ export const getAccessibleDeviceTypes = async (resinApi) => {
|
|
75
71
|
},
|
76
72
|
}),
|
77
73
|
]);
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
});
|
74
|
+
return accessibleDeviceTypes
|
75
|
+
.map((dt) => deviceTypeInfosBySlug[dt.slug]?.latest)
|
76
|
+
.filter((dtJson) => dtJson != null);
|
82
77
|
};
|
83
78
|
/** @deprecated Use the getDeviceTypeBySlug unless you need the device-type.json contents. */
|
84
|
-
export const
|
79
|
+
export const getDeviceTypeJsonBySlug = async (resinApi, slug) => (await findDeviceTypeInfoBySlug(resinApi, slug)).latest;
|
85
80
|
export const getImageSize = async (resinApi, slug, buildId) => {
|
86
81
|
const deviceTypeInfo = await findDeviceTypeInfoBySlug(resinApi, slug);
|
87
|
-
const
|
88
|
-
const normalizedSlug =
|
82
|
+
const deviceType = deviceTypeInfo.latest;
|
83
|
+
const normalizedSlug = deviceType.slug;
|
89
84
|
if (buildId === 'latest') {
|
90
|
-
buildId =
|
85
|
+
buildId = deviceType.buildId;
|
91
86
|
}
|
92
87
|
if (!deviceTypeInfo.versions.includes(buildId)) {
|
93
88
|
throw new UnknownVersionError(slug, buildId);
|
@@ -104,4 +99,26 @@ export const getImageSize = async (resinApi, slug, buildId) => {
|
|
104
99
|
throw err;
|
105
100
|
}
|
106
101
|
};
|
102
|
+
export const getImageVersions = async (resinApi, slug) => {
|
103
|
+
const deviceTypeInfo = await findDeviceTypeInfoBySlug(resinApi, slug);
|
104
|
+
const deviceType = deviceTypeInfo.latest;
|
105
|
+
const normalizedSlug = deviceType.slug;
|
106
|
+
const buildIds = (await Promise.all(deviceTypeInfo.versions.map(async (buildId) => {
|
107
|
+
try {
|
108
|
+
if ((await getDeviceTypeJson(normalizedSlug, buildId)) != null) {
|
109
|
+
return buildId;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
catch {
|
113
|
+
return;
|
114
|
+
}
|
115
|
+
}))).filter((buildId) => buildId != null);
|
116
|
+
if (_.isEmpty(buildIds) && !_.isEmpty(deviceTypeInfo.versions)) {
|
117
|
+
throw new InternalRequestError(`Could not retrieve any image version for device type ${slug}`);
|
118
|
+
}
|
119
|
+
return {
|
120
|
+
versions: buildIds,
|
121
|
+
latest: buildIds[0],
|
122
|
+
};
|
123
|
+
};
|
107
124
|
//# sourceMappingURL=device-types.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"device-types.js","sourceRoot":"","sources":["../../../src/features/device-types/device-types.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAIvB,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;AAGlD,MAAM,OAAO,sBAAuB,SAAQ,aAAa;IACxD,YAAY,IAAY;QACvB,KAAK,CAAC,uBAAuB,IAAI,EAAE,CAAC,CAAC;IACtC,CAAC;CACD;AAED,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IACrD,YAAY,IAAY,EAAE,OAAe;QACxC,KAAK,CAAC,UAAU,IAAI,kBAAkB,OAAO,UAAU,CAAC,CAAC;IAC1D,CAAC;CACD;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACvC,QAAoC,EACpC,IAAY,EAC4B,EAAE;IAC1C,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC;QAC/B,QAAQ,EAAE,aAAa;QACvB,OAAO,EAAE;YACR,IAAI,EAAE,CAAC;YACP,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE;gBACR,iBAAiB,EAAE;oBAClB,IAAI,EAAE;wBACL,MAAM,EAAE,KAAK;wBACb,KAAK,EAAE;4BACN,GAAG,EAAE;gCACJ,uBAAuB,EAAE,IAAI;6BAC7B;yBACD;qBACD;iBACD;aACD;SACD;KACD,CAAC,CAAC;IAEH,IAAI,EAAE,IAAI,IAAI,EAAE,CAA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BAAiB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;gBAChE,OAAO,OAAO,CAAC;YAChB,CAAC;QACF,CAAC;QAAC,MAAM,CAAC;YACR,OAAO;QACR,CAAC;IACF,CAAC,CAAC,CACF,CACD,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC;IACvC,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC;QAChE,MAAM,IAAI,oBAAoB,CAC7B,wDAAwD,IAAI,EAAE,CAC9D,CAAC;IACH,CAAC;IAED,OAAO;QACN,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;KACnB,CAAC;AACH,CAAC,CAAC"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { middleware } from '../../infra/auth/index.js';
|
2
|
-
import { downloadImageSize, getDeviceType, getDeviceTypes } from './routes.js';
|
2
|
+
import { downloadImageSize, getDeviceType, getDeviceTypes, listAvailableImageVersions, } from './routes.js';
|
3
3
|
export const setup = (app) => {
|
4
4
|
app.get('/device-types/v1', middleware.resolveCredentialsAndUser, getDeviceTypes);
|
5
5
|
app.get('/device-types/v1/:deviceType', middleware.resolveCredentialsAndUser, getDeviceType);
|
6
|
+
app.get('/device-types/v1/:deviceType/images', middleware.resolveCredentialsAndUser, listAvailableImageVersions);
|
6
7
|
app.get('/device-types/v1/:deviceType/images/:version/download-size', middleware.resolveCredentialsAndUser, downloadImageSize);
|
7
8
|
};
|
8
9
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/device-types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/device-types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EACN,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,0BAA0B,GAC1B,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAgB,EAAE,EAAE;IACzC,GAAG,CAAC,GAAG,CACN,kBAAkB,EAClB,UAAU,CAAC,yBAAyB,EACpC,cAAc,CACd,CAAC;IACF,GAAG,CAAC,GAAG,CACN,8BAA8B,EAC9B,UAAU,CAAC,yBAAyB,EACpC,aAAa,CACb,CAAC;IACF,GAAG,CAAC,GAAG,CACN,qCAAqC,EACrC,UAAU,CAAC,yBAAyB,EACpC,0BAA0B,CAC1B,CAAC;IACF,GAAG,CAAC,GAAG,CACN,4DAA4D,EAC5D,UAAU,CAAC,yBAAyB,EACpC,iBAAiB,CACjB,CAAC;AACH,CAAC,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { RequestHandler } from 'express';
|
2
2
|
export declare const getDeviceTypes: RequestHandler;
|
3
3
|
export declare const getDeviceType: RequestHandler;
|
4
|
+
export declare const listAvailableImageVersions: RequestHandler;
|
4
5
|
export declare const downloadImageSize: RequestHandler;
|
@@ -6,7 +6,7 @@ const { api } = sbvrUtils;
|
|
6
6
|
export const getDeviceTypes = async (req, res) => {
|
7
7
|
const resinApi = api.resin.clone({ passthrough: { req } });
|
8
8
|
try {
|
9
|
-
const deviceTypes = await deviceTypesLib.
|
9
|
+
const deviceTypes = await deviceTypesLib.getAccessibleDeviceTypeJsons(resinApi);
|
10
10
|
res.json(deviceTypes);
|
11
11
|
}
|
12
12
|
catch (err) {
|
@@ -21,7 +21,7 @@ export const getDeviceType = async (req, res) => {
|
|
21
21
|
try {
|
22
22
|
const resinApi = api.resin.clone({ passthrough: { req } });
|
23
23
|
const slug = deviceTypesLib.validateSlug(req.params.deviceType);
|
24
|
-
const data = await deviceTypesLib.
|
24
|
+
const data = await deviceTypesLib.getDeviceTypeJsonBySlug(resinApi, slug);
|
25
25
|
res.json(data);
|
26
26
|
}
|
27
27
|
catch (err) {
|
@@ -34,6 +34,21 @@ export const getDeviceType = async (req, res) => {
|
|
34
34
|
res.status(500).send(translateError(err));
|
35
35
|
}
|
36
36
|
};
|
37
|
+
export const listAvailableImageVersions = async (req, res) => {
|
38
|
+
try {
|
39
|
+
const resinApi = api.resin.clone({ passthrough: { req } });
|
40
|
+
const slug = deviceTypesLib.validateSlug(req.params.deviceType);
|
41
|
+
const data = await deviceTypesLib.getImageVersions(resinApi, slug);
|
42
|
+
res.json(data);
|
43
|
+
}
|
44
|
+
catch (err) {
|
45
|
+
captureException(err, 'Error getting image versions', { req });
|
46
|
+
if (handleHttpErrors(req, res, err)) {
|
47
|
+
return;
|
48
|
+
}
|
49
|
+
res.status(500).send(translateError(err));
|
50
|
+
}
|
51
|
+
};
|
37
52
|
const DOWNLOAD_TIMEOUT = 30000; // we must respond within this time
|
38
53
|
export const downloadImageSize = async (req, res) => {
|
39
54
|
req.setTimeout(DOWNLOAD_TIMEOUT, _.noop);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/features/device-types/routes.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AAEpD,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,CAAC,MAAM,cAAc,GAAmB,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IAChE,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,K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AC"}
|
@@ -23,7 +23,8 @@ export async function hostOSAccess(req, res) {
|
|
23
23
|
return;
|
24
24
|
}
|
25
25
|
try {
|
26
|
-
const allowedDevices = (await api.resin.
|
26
|
+
const allowedDevices = (await api.resin.request({
|
27
|
+
method: 'POST',
|
27
28
|
url: `device(${device.id})/canAccess`,
|
28
29
|
passthrough: {
|
29
30
|
req,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"access.js","sourceRoot":"","sources":["../../../src/features/host-os-access/access.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvE,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;AACrC,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAEzC,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,GAAY,EAAE,GAAa;IAC7D,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;QAClC,QAAQ,EAAE,QAAQ;QAClB,EAAE,EAAE;YACH,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC;SAC/B;QACD,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC;SAC7B;QACD,WAAW,EAAE;YACZ,GAAG;SACH;KACD,CAAC,CAAC;IAEH,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;QACpB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QACtB,OAAO;IACR,CAAC;IAED,IAAI,CAAC;QACJ,MAAM,cAAc,GAAG,CAAC,MAAM,GAAG,CAAC,K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E,CAAC;IACvB,CAAC;AACF,CAAC"}
|
@@ -127,7 +127,8 @@ const resolveWriteAccess = async (req, imageId, tx) => {
|
|
127
127
|
return false;
|
128
128
|
}
|
129
129
|
try {
|
130
|
-
const res = await api.resin.
|
130
|
+
const res = await api.resin.request({
|
131
|
+
method: 'POST',
|
131
132
|
url: `image(${imageId})/canAccess`,
|
132
133
|
passthrough: { req, tx },
|
133
134
|
body: { action: 'push' },
|
@@ -264,7 +265,7 @@ const resolveImageLocation = multiCacheMemoizee(async (applicationSlug, releaseH
|
|
264
265
|
});
|
265
266
|
return image?.is_stored_at__image_location;
|
266
267
|
}
|
267
|
-
catch
|
268
|
+
catch {
|
268
269
|
// Ignore errors
|
269
270
|
}
|
270
271
|
}, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/features/registry/registry.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,6DAA6D;AAG7D,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EACN,0BAA0B,EAC1B,yBAAyB,EACzB,cAAc,EACd,8BAA8B,EAC9B,oCAAoC,EACpC,uCAAuC,EACvC,wBAAwB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;AACrC,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,0DAA0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BACR,OAAO,EAAE,UAAU;aACnB;SACD,CAAC,CAAC;QACH,OAAO,IAAI,EAAE,QAAQ,CAAC;IACvB,CAAC;AACF,CAAC,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import _ from 'lodash';
|
2
1
|
import { sbvrUtils, errors } from '@balena/pinejs';
|
3
2
|
import { captureException, handleHttpErrors, translateError, } from '../../infra/error-handling/index.js';
|
4
3
|
import { multiCacheMemoizee, reqPermissionNormalizer, } from '../../infra/cache/index.js';
|
@@ -6,15 +5,16 @@ import { VPN_AUTH_CACHE_TIMEOUT } from '../../lib/config.js';
|
|
6
5
|
import { checkDeviceExistsIsFrozen } from '../device-state/middleware.js';
|
7
6
|
const { api } = sbvrUtils;
|
8
7
|
const checkAuth = (() => {
|
9
|
-
const authQuery = _.once(() => api.resin.prepare({
|
10
|
-
method: 'POST',
|
11
|
-
url: `device(uuid=@uuid)/canAccess`,
|
12
|
-
body: { action: 'cloudlink' },
|
13
|
-
}));
|
14
8
|
return multiCacheMemoizee(async (uuid, req) => {
|
15
9
|
try {
|
16
|
-
await
|
17
|
-
|
10
|
+
await api.resin.request({
|
11
|
+
method: 'POST',
|
12
|
+
// We use a parameter alias to signify to pinejs that it's a beneficial query to cache
|
13
|
+
url: `device(uuid=@uuid)/canAccess?@uuid='${uuid}'`,
|
14
|
+
passthrough: {
|
15
|
+
req,
|
16
|
+
},
|
17
|
+
body: { action: 'cloudlink' },
|
18
18
|
});
|
19
19
|
return 200;
|
20
20
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../../src/features/vpn/services.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../../src/features/vpn/services.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,qCAA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E,EAAE,GAAG,EAAE,KAAK,EAAE;oBACpB,+CAA+C;oBAC/C,+BAA+B,EAAE,SAAS;iBAC1C;aACD;YACD,IAAI,EAAE;gBACL,mBAAmB,EAAE,KAAK;gBAC1B,+BAA+B,EAAE,IAAI;aACrC;SACD,CAAC,CAAC;QACH,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,gBAAgB,CAAC,GAAG,EAAE,kCAAkC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QACnE,IAAI,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;YACrC,OAAO;QACR,CAAC;QACD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;AACF,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
@@ -160,9 +160,13 @@ export declare const release: {
|
|
160
160
|
addVirtualFieldsToModel: (abstractSql: import("@balena/abstract-sql-compiler").AbstractSqlModel) => void;
|
161
161
|
};
|
162
162
|
export declare const deviceTypes: {
|
163
|
-
|
164
|
-
|
165
|
-
|
163
|
+
/** @deprecated Use getAccessibleDeviceTypeJsons */
|
164
|
+
getAccessibleDeviceTypes: (resinApi: typeof sbvrUtils.api.resin) => Promise<import("./features/device-types/device-type-json.js").DeviceTypeJson[]>;
|
165
|
+
getAccessibleDeviceTypeJsons: (resinApi: typeof sbvrUtils.api.resin) => Promise<import("./features/device-types/device-type-json.js").DeviceTypeJson[]>;
|
166
|
+
/** @deprecated Use getDeviceTypeJsonBySlug */
|
167
|
+
findBySlug: (resinApi: typeof sbvrUtils.api.resin, slug: string) => Promise<import("./features/device-types/device-type-json.js").DeviceTypeJson>;
|
168
|
+
getDeviceTypeJsonBySlug: (resinApi: typeof sbvrUtils.api.resin, slug: string) => Promise<import("./features/device-types/device-type-json.js").DeviceTypeJson>;
|
169
|
+
getDeviceTypeBySlug: (resinApi: typeof sbvrUtils.api.resin, slug: string) => Promise<{
|
166
170
|
id: number;
|
167
171
|
slug: string;
|
168
172
|
}>;
|
package/dist/index.js
CHANGED
@@ -36,7 +36,7 @@ import { updateOrInsertModel, getOrInsertModelId, } from './infra/pinejs-client-
|
|
36
36
|
import { normalizeHandle, refreshToken } from './features/auth/index.js';
|
37
37
|
import { getIP, getIPv4, isValidInteger, throttledForEach, getBodyOrQueryParam, } from './lib/utils.js';
|
38
38
|
import { createRateLimitMiddleware, createRateLimiter, getUserIDFromCreds, } from './infra/rate-limiting/index.js';
|
39
|
-
import {
|
39
|
+
import { getAccessibleDeviceTypeJsons, getDeviceTypeJsonBySlug, getDeviceTypeBySlug, } from './features/device-types/device-types.js';
|
40
40
|
import { proxy as supervisorProxy } from './features/device-proxy/device-proxy.js';
|
41
41
|
import { generateConfig } from './features/device-config/device-config.js';
|
42
42
|
import { DeviceOnlineStates, getPollInterval, getInstance as getDeviceOnlineStateManager, } from './features/device-heartbeat/index.js';
|
@@ -141,8 +141,14 @@ export const release = {
|
|
141
141
|
addVirtualFieldsToModel: addReleaseAdditionsToModel,
|
142
142
|
};
|
143
143
|
export const deviceTypes = {
|
144
|
-
|
145
|
-
|
144
|
+
// TODO: Drop me in the next major
|
145
|
+
/** @deprecated Use getAccessibleDeviceTypeJsons */
|
146
|
+
getAccessibleDeviceTypes: getAccessibleDeviceTypeJsons,
|
147
|
+
getAccessibleDeviceTypeJsons,
|
148
|
+
// TODO: Drop me in the next major
|
149
|
+
/** @deprecated Use getDeviceTypeJsonBySlug */
|
150
|
+
findBySlug: getDeviceTypeJsonBySlug,
|
151
|
+
getDeviceTypeJsonBySlug,
|
146
152
|
getDeviceTypeBySlug,
|
147
153
|
};
|
148
154
|
export * as contracts from './exports/contracts.js';
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","s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AM,CAAC,QAAQ;gBACtB,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,KAAK,QAAQ;oBAC1C,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ;oBACzB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;QAAC,MAAM,CAAC;YACR,MAAM,IAAI,MAAM,CAAC,eAAe,CAC/B,iDAAiD,CACjD,CAAC;QACH,CAAC;IACF,CAAC;CACD,CAAC,CAAC;AAEH,eAAe,CAAC,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE;IAC/B,UAAU,CAAC,EAAE,QAAQ,EAAE;QACtB,IAAI,QAAQ,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;YAC3B,0EAA0E;YAC1E,oFAAoF;YACpF,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACvD,CAAC;IACF,CAAC;CACD,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/open-balena-api",
|
3
3
|
"description": "Internet of things, Made Simple",
|
4
|
-
"version": "28.0.0
|
4
|
+
"version": "28.0.0",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -45,13 +45,13 @@
|
|
45
45
|
},
|
46
46
|
"dependencies": {
|
47
47
|
"@balena/abstract-sql-compiler": "^9.2.0",
|
48
|
-
"@balena/abstract-sql-to-typescript": "^4.0.
|
49
|
-
"@balena/env-parsing": "^1.
|
48
|
+
"@balena/abstract-sql-to-typescript": "^4.0.6",
|
49
|
+
"@balena/env-parsing": "^1.2.0",
|
50
50
|
"@balena/es-version": "^1.0.3",
|
51
51
|
"@balena/node-metrics-gatherer": "^6.0.3",
|
52
|
-
"@balena/pinejs": "^
|
53
|
-
"@balena/pinejs-webresource-cloudfront": "^0.2.
|
54
|
-
"@sentry/node": "^8.
|
52
|
+
"@balena/pinejs": "^19.0.0",
|
53
|
+
"@balena/pinejs-webresource-cloudfront": "^0.2.1",
|
54
|
+
"@sentry/node": "^8.30.0",
|
55
55
|
"@types/basic-auth": "^1.1.8",
|
56
56
|
"@types/bluebird": "^3.5.42",
|
57
57
|
"@types/cache-manager": "^4.0.6",
|
@@ -69,7 +69,7 @@
|
|
69
69
|
"@types/memoizee": "^0.4.11",
|
70
70
|
"@types/morgan": "^1.9.9",
|
71
71
|
"@types/ndjson": "^2.0.4",
|
72
|
-
"@types/node": "^
|
72
|
+
"@types/node": "^22.5.5",
|
73
73
|
"@types/node-schedule": "^2.1.7",
|
74
74
|
"@types/on-finished": "^2.3.4",
|
75
75
|
"@types/passport-jwt": "^4.0.1",
|
@@ -82,12 +82,12 @@
|
|
82
82
|
"@types/uuid": "^10.0.0",
|
83
83
|
"@types/validator": "^13.12.1",
|
84
84
|
"avsc": "^5.7.7",
|
85
|
-
"aws-sdk": "^2.
|
85
|
+
"aws-sdk": "^2.1691.0",
|
86
86
|
"balena-device-config": "^6.3.0",
|
87
87
|
"balena-semver": "^2.3.5",
|
88
88
|
"basic-auth": "^2.0.1",
|
89
89
|
"bluebird": "^3.7.2",
|
90
|
-
"body-parser": "^1.20.
|
90
|
+
"body-parser": "^1.20.3",
|
91
91
|
"cache-manager": "^4.1.0",
|
92
92
|
"cache-manager-ioredis": "^2.1.0",
|
93
93
|
"common-tags": "^1.8.2",
|
@@ -98,7 +98,7 @@
|
|
98
98
|
"cookie-session": "^2.1.0",
|
99
99
|
"escape-html": "^1.0.3",
|
100
100
|
"eventemitter3": "^5.0.1",
|
101
|
-
"express": "^4.
|
101
|
+
"express": "^4.21.0",
|
102
102
|
"fast-glob": "^3.3.2",
|
103
103
|
"ioredis": "^5.4.1",
|
104
104
|
"ipaddr.js": "^2.2.0",
|
@@ -113,7 +113,7 @@
|
|
113
113
|
"on-finished": "^2.4.1",
|
114
114
|
"passport": "^0.7.0",
|
115
115
|
"passport-jwt": "^4.0.1",
|
116
|
-
"pinejs-client-core": "^
|
116
|
+
"pinejs-client-core": "^8.0.1",
|
117
117
|
"proxy-addr": "^2.0.7",
|
118
118
|
"randomstring": "^1.3.0",
|
119
119
|
"rate-limiter-flexible": "^5.0.3",
|
@@ -130,28 +130,28 @@
|
|
130
130
|
"thirty-two": "^1.0.2",
|
131
131
|
"ts-node": "^10.9.2",
|
132
132
|
"typed-error": "^3.2.2",
|
133
|
-
"typescript": "^5.
|
133
|
+
"typescript": "^5.6.2",
|
134
134
|
"uuid": "^10.0.0",
|
135
135
|
"validator": "^13.12.0"
|
136
136
|
},
|
137
137
|
"devDependencies": {
|
138
|
-
"@balena/lint": "^
|
138
|
+
"@balena/lint": "^9.0.1",
|
139
139
|
"@types/chai": "^4.3.19",
|
140
|
-
"@types/mocha": "^10.0.
|
140
|
+
"@types/mocha": "^10.0.8",
|
141
141
|
"@types/mockery": "^1.4.33",
|
142
142
|
"@types/sinon": "^17.0.3",
|
143
143
|
"@types/supertest": "^6.0.2",
|
144
144
|
"@types/temp": "^0.9.4",
|
145
145
|
"chai": "^5.1.1",
|
146
146
|
"copyfiles": "^2.4.1",
|
147
|
-
"husky": "^9.1.
|
147
|
+
"husky": "^9.1.6",
|
148
148
|
"lint-staged": "^15.2.10",
|
149
149
|
"mocha": "^10.7.3",
|
150
150
|
"mockery": "^2.1.0",
|
151
151
|
"nock": "^13.5.5",
|
152
|
-
"pinejs-client-supertest": "^
|
152
|
+
"pinejs-client-supertest": "^3.0.0",
|
153
153
|
"rimraf": "^6.0.1",
|
154
|
-
"sinon": "^
|
154
|
+
"sinon": "^19.0.0",
|
155
155
|
"supertest": "^7.0.0"
|
156
156
|
},
|
157
157
|
"engines": {
|
@@ -168,6 +168,6 @@
|
|
168
168
|
"loader": "ts-node/esm/transpile-only"
|
169
169
|
},
|
170
170
|
"versionist": {
|
171
|
-
"publishedAt": "2024-09-
|
171
|
+
"publishedAt": "2024-09-16T14:17:45.919Z"
|
172
172
|
}
|
173
173
|
}
|