mc8yp 2.2.2 → 2.2.3
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/dist/cli.mjs +72 -61
- package/package.json +11 -11
package/dist/cli.mjs
CHANGED
|
@@ -41,7 +41,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region package.json
|
|
43
43
|
var name = "mc8yp";
|
|
44
|
-
var version = "2.2.
|
|
44
|
+
var version = "2.2.3";
|
|
45
45
|
var description = "Cumulocity IoT MCP Server - Model Context Protocol integration for IoT device management";
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region \0virtual:core-openapi
|
|
@@ -93437,7 +93437,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
93437
93437
|
});
|
|
93438
93438
|
}
|
|
93439
93439
|
//#endregion
|
|
93440
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
93440
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/Paging.js
|
|
93441
93441
|
/**
|
|
93442
93442
|
* Paging allows you to query the next and previous data chunks
|
|
93443
93443
|
* in a convenient way. You can also go to a specific page or just read
|
|
@@ -93501,7 +93501,7 @@ var Paging = class {
|
|
|
93501
93501
|
}
|
|
93502
93502
|
};
|
|
93503
93503
|
//#endregion
|
|
93504
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
93504
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/Service.js
|
|
93505
93505
|
var Service = class {
|
|
93506
93506
|
constructor(client, realtime) {
|
|
93507
93507
|
this.client = client;
|
|
@@ -131895,7 +131895,7 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
131895
131895
|
exports.AbortError = AbortError;
|
|
131896
131896
|
}));
|
|
131897
131897
|
//#endregion
|
|
131898
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
131898
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/FetchClient.js
|
|
131899
131899
|
var import_node_ponyfill = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
131900
131900
|
const nodeFetch = require_lib$1();
|
|
131901
131901
|
const realFetch = nodeFetch.default || nodeFetch;
|
|
@@ -131985,7 +131985,7 @@ var FetchClient = class {
|
|
|
131985
131985
|
}
|
|
131986
131986
|
};
|
|
131987
131987
|
//#endregion
|
|
131988
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
131988
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/BasicAuth.js
|
|
131989
131989
|
var import_lib = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
131990
131990
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
131991
131991
|
var error = function error(message) {
|
|
@@ -132085,7 +132085,7 @@ var BasicAuth = class {
|
|
|
132085
132085
|
}
|
|
132086
132086
|
};
|
|
132087
132087
|
//#endregion
|
|
132088
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
132088
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/BearerAuth.js
|
|
132089
132089
|
const secrets = /* @__PURE__ */ new WeakMap();
|
|
132090
132090
|
var BearerAuth = class {
|
|
132091
132091
|
constructor(token) {
|
|
@@ -132133,7 +132133,7 @@ var BearerAuth = class {
|
|
|
132133
132133
|
}
|
|
132134
132134
|
};
|
|
132135
132135
|
//#endregion
|
|
132136
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
132136
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/BearerAuthFromSessionStorage.js
|
|
132137
132137
|
var BearerAuthFromSessionStorage = class BearerAuthFromSessionStorage extends BearerAuth {
|
|
132138
132138
|
static removeEntriesFromSessionStorage() {
|
|
132139
132139
|
sessionStorage.removeItem(BearerAuthFromSessionStorage.sessionStorageKey);
|
|
@@ -132172,7 +132172,7 @@ BearerAuthFromSessionStorage.sessionStorageKey = "bearerAuthToken";
|
|
|
132172
132172
|
*/
|
|
132173
132173
|
BearerAuthFromSessionStorage.sessionStorageKeyToKeepToken = `bearerAuthTokenKeep`;
|
|
132174
132174
|
//#endregion
|
|
132175
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
132175
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/CookieAuth.js
|
|
132176
132176
|
/**
|
|
132177
132177
|
* Allows to use Cookies for Authorization to the
|
|
132178
132178
|
* Cumulocity API.
|
|
@@ -132219,7 +132219,7 @@ var CookieAuth = class {
|
|
|
132219
132219
|
}
|
|
132220
132220
|
};
|
|
132221
132221
|
//#endregion
|
|
132222
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
132222
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/MicroserviceClientRequestAuth.js
|
|
132223
132223
|
/**
|
|
132224
132224
|
* Allows to use either Cookie-Auth or Basic-Auth
|
|
132225
132225
|
* of a microservice client request header
|
|
@@ -132267,7 +132267,7 @@ var MicroserviceClientRequestAuth = class {
|
|
|
132267
132267
|
}
|
|
132268
132268
|
};
|
|
132269
132269
|
//#endregion
|
|
132270
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
132270
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/NodeJSCookieAuth.js
|
|
132271
132271
|
/**
|
|
132272
132272
|
* Extracts the `authorization` cookie from the `set-cookie` header of a response.
|
|
132273
132273
|
*
|
|
@@ -132282,7 +132282,7 @@ var NodeJSCookieAuth = class extends MicroserviceClientRequestAuth {
|
|
|
132282
132282
|
}
|
|
132283
132283
|
};
|
|
132284
132284
|
//#endregion
|
|
132285
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
132285
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/core/QueriesUtil.js
|
|
132286
132286
|
var QueriesUtil = class {
|
|
132287
132287
|
constructor() {
|
|
132288
132288
|
this.operatorFns = {
|
|
@@ -135277,7 +135277,7 @@ var require_cometd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
135277
135277
|
});
|
|
135278
135278
|
}));
|
|
135279
135279
|
//#endregion
|
|
135280
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
135280
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/realtime/MetaChannel.js
|
|
135281
135281
|
var import_node = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
135282
135282
|
require_cometd_nodejs_client().adapt();
|
|
135283
135283
|
const lib = require_cometd();
|
|
@@ -135294,7 +135294,7 @@ var MetaChannel;
|
|
|
135294
135294
|
MetaChannel["UNSUBSCRIBE"] = "/meta/unsubscribe";
|
|
135295
135295
|
})(MetaChannel || (MetaChannel = {}));
|
|
135296
135296
|
//#endregion
|
|
135297
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
135297
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/realtime/Realtime.js
|
|
135298
135298
|
var Realtime = class {
|
|
135299
135299
|
/**
|
|
135300
135300
|
* only initializing cometd if it is actually needed
|
|
@@ -135391,7 +135391,7 @@ var Realtime = class {
|
|
|
135391
135391
|
}
|
|
135392
135392
|
};
|
|
135393
135393
|
//#endregion
|
|
135394
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
135394
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/event/EventService.js
|
|
135395
135395
|
/**
|
|
135396
135396
|
* This class allows managing for events.
|
|
135397
135397
|
*/
|
|
@@ -143888,7 +143888,7 @@ var require_populate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
143888
143888
|
};
|
|
143889
143889
|
}));
|
|
143890
143890
|
//#endregion
|
|
143891
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
143891
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/event/EventBinaryService.js
|
|
143892
143892
|
var import_form_data = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143893
143893
|
var CombinedStream = require_combined_stream();
|
|
143894
143894
|
var util = __require("util");
|
|
@@ -144123,7 +144123,7 @@ var import_form_data = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((
|
|
|
144123
144123
|
module.exports = FormData;
|
|
144124
144124
|
})))(), 1);
|
|
144125
144125
|
//#endregion
|
|
144126
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
144126
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/inventory/InventoryBinaryService.js
|
|
144127
144127
|
var InventoryBinaryService = class extends Service {
|
|
144128
144128
|
constructor() {
|
|
144129
144129
|
super(...arguments);
|
|
@@ -144263,7 +144263,7 @@ var InventoryBinaryService = class extends Service {
|
|
|
144263
144263
|
}
|
|
144264
144264
|
};
|
|
144265
144265
|
//#endregion
|
|
144266
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
144266
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/inventory/InventoryService.js
|
|
144267
144267
|
/**
|
|
144268
144268
|
* Possible types of a child.
|
|
144269
144269
|
*/
|
|
@@ -145097,7 +145097,7 @@ var InventoryService = class extends Service {
|
|
|
145097
145097
|
}
|
|
145098
145098
|
};
|
|
145099
145099
|
//#endregion
|
|
145100
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145100
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/measurement/MeasurementService.js
|
|
145101
145101
|
/**
|
|
145102
145102
|
* This class allows for managing measurements.
|
|
145103
145103
|
*/
|
|
@@ -145296,7 +145296,7 @@ var MeasurementService = class extends Service {
|
|
|
145296
145296
|
}
|
|
145297
145297
|
};
|
|
145298
145298
|
//#endregion
|
|
145299
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145299
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/measurement/ISeriesFilter.js
|
|
145300
145300
|
var aggregationType;
|
|
145301
145301
|
(function(aggregationType) {
|
|
145302
145302
|
aggregationType["MINUTELY"] = "MINUTELY";
|
|
@@ -145304,7 +145304,7 @@ var aggregationType;
|
|
|
145304
145304
|
aggregationType["DAILY"] = "DAILY";
|
|
145305
145305
|
})(aggregationType || (aggregationType = {}));
|
|
145306
145306
|
//#endregion
|
|
145307
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145307
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/alarm/AlarmService.js
|
|
145308
145308
|
/**
|
|
145309
145309
|
* This class allows for managing alarms.
|
|
145310
145310
|
*/
|
|
@@ -145496,7 +145496,7 @@ var AlarmService = class extends Service {
|
|
|
145496
145496
|
}
|
|
145497
145497
|
};
|
|
145498
145498
|
//#endregion
|
|
145499
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145499
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/operation/OperationService.js
|
|
145500
145500
|
/**
|
|
145501
145501
|
* This class allows for managing operations on a device.
|
|
145502
145502
|
*/
|
|
@@ -145623,7 +145623,7 @@ var OperationService = class extends Service {
|
|
|
145623
145623
|
}
|
|
145624
145624
|
};
|
|
145625
145625
|
//#endregion
|
|
145626
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145626
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/operation/OperationBulkService.js
|
|
145627
145627
|
/**
|
|
145628
145628
|
* This class allows for managing bulk operations.
|
|
145629
145629
|
*/
|
|
@@ -145774,14 +145774,14 @@ var OperationBulkService = class extends Service {
|
|
|
145774
145774
|
}
|
|
145775
145775
|
};
|
|
145776
145776
|
//#endregion
|
|
145777
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145777
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/gettext.js
|
|
145778
145778
|
/**
|
|
145779
145779
|
* Identity function used for marking strings for translation
|
|
145780
145780
|
* @deprecated Use the typed version of gettext instead from typed-gettext file.
|
|
145781
145781
|
*/
|
|
145782
145782
|
const gettext = (t) => t;
|
|
145783
145783
|
//#endregion
|
|
145784
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145784
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/operation/OperationBulkStatus.js
|
|
145785
145785
|
/**
|
|
145786
145786
|
* A bulk operation can have one of the following states.
|
|
145787
145787
|
*/
|
|
@@ -145793,7 +145793,7 @@ var OperationBulkStatus;
|
|
|
145793
145793
|
OperationBulkStatus[OperationBulkStatus["DELETED"] = gettext("DELETED")] = "DELETED";
|
|
145794
145794
|
})(OperationBulkStatus || (OperationBulkStatus = {}));
|
|
145795
145795
|
//#endregion
|
|
145796
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145796
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/operation/OperationBulkGeneralStatus.js
|
|
145797
145797
|
/**
|
|
145798
145798
|
* A bulk operation can have one of the following general statuses.
|
|
145799
145799
|
*/
|
|
@@ -145809,7 +145809,7 @@ var OperationBulkGeneralStatus;
|
|
|
145809
145809
|
OperationBulkGeneralStatus[OperationBulkGeneralStatus["INCORRECT"] = gettext("INCORRECT")] = "INCORRECT";
|
|
145810
145810
|
})(OperationBulkGeneralStatus || (OperationBulkGeneralStatus = {}));
|
|
145811
145811
|
//#endregion
|
|
145812
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145812
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/operation/OperationStatus.js
|
|
145813
145813
|
/**
|
|
145814
145814
|
* An Operation can have one of the following states.
|
|
145815
145815
|
*/
|
|
@@ -145821,7 +145821,7 @@ var OperationStatus;
|
|
|
145821
145821
|
OperationStatus[OperationStatus["FAILED"] = gettext("FAILED")] = "FAILED";
|
|
145822
145822
|
})(OperationStatus || (OperationStatus = {}));
|
|
145823
145823
|
//#endregion
|
|
145824
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
145824
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/tenant/TenantService.js
|
|
145825
145825
|
/**
|
|
145826
145826
|
* @description
|
|
145827
145827
|
* This service allows for managing tenants.
|
|
@@ -146188,14 +146188,14 @@ var TenantService = class extends Service {
|
|
|
146188
146188
|
}
|
|
146189
146189
|
};
|
|
146190
146190
|
//#endregion
|
|
146191
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
146191
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/tenant/TenantStatus.js
|
|
146192
146192
|
var TenantStatus;
|
|
146193
146193
|
(function(TenantStatus) {
|
|
146194
146194
|
TenantStatus[TenantStatus["ACTIVE"] = gettext("ACTIVE")] = "ACTIVE";
|
|
146195
146195
|
TenantStatus[TenantStatus["SUSPENDED"] = gettext("SUSPENDED")] = "SUSPENDED";
|
|
146196
146196
|
})(TenantStatus || (TenantStatus = {}));
|
|
146197
146197
|
//#endregion
|
|
146198
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
146198
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/tenant/TfaStrategy.js
|
|
146199
146199
|
/**
|
|
146200
146200
|
* Represents a strategy used for two-factor authentication.
|
|
146201
146201
|
*/
|
|
@@ -146207,7 +146207,7 @@ var TfaStrategy;
|
|
|
146207
146207
|
TfaStrategy["SMS"] = "SMS";
|
|
146208
146208
|
})(TfaStrategy || (TfaStrategy = {}));
|
|
146209
146209
|
//#endregion
|
|
146210
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
146210
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/user/UserInventoryRoleService.js
|
|
146211
146211
|
/**
|
|
146212
146212
|
* @description
|
|
146213
146213
|
* This service allows for managing current user's inventory roles.
|
|
@@ -146334,7 +146334,7 @@ var UserInventoryRoleService = class extends Service {
|
|
|
146334
146334
|
}
|
|
146335
146335
|
};
|
|
146336
146336
|
//#endregion
|
|
146337
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
146337
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/user/UserService.js
|
|
146338
146338
|
/**
|
|
146339
146339
|
* @description
|
|
146340
146340
|
* This service allows for managing users.
|
|
@@ -147058,7 +147058,7 @@ var UserService = class extends Service {
|
|
|
147058
147058
|
}
|
|
147059
147059
|
};
|
|
147060
147060
|
//#endregion
|
|
147061
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147061
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/user/PasswordStrength.js
|
|
147062
147062
|
var PasswordStrength;
|
|
147063
147063
|
(function(PasswordStrength) {
|
|
147064
147064
|
PasswordStrength["GREEN"] = "GREEN";
|
|
@@ -147066,7 +147066,7 @@ var PasswordStrength;
|
|
|
147066
147066
|
PasswordStrength["YELLOW"] = "YELLOW";
|
|
147067
147067
|
})(PasswordStrength || (PasswordStrength = {}));
|
|
147068
147068
|
//#endregion
|
|
147069
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147069
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationBinaryService.js
|
|
147070
147070
|
var ApplicationBinaryService = class extends Service {
|
|
147071
147071
|
constructor(client, applicationOrId) {
|
|
147072
147072
|
super(client);
|
|
@@ -147076,7 +147076,11 @@ var ApplicationBinaryService = class extends Service {
|
|
|
147076
147076
|
}
|
|
147077
147077
|
upload(binary, fileName, uploadParamsOverride) {
|
|
147078
147078
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147079
|
-
|
|
147079
|
+
let url = (uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.listUrl) || this.listUrl;
|
|
147080
|
+
if (uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.queryParams) {
|
|
147081
|
+
const queryString = Object.entries(uploadParamsOverride.queryParams).map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`).join("&");
|
|
147082
|
+
url = `${url}?${queryString}`;
|
|
147083
|
+
}
|
|
147080
147084
|
const method = "POST";
|
|
147081
147085
|
const body = this.createBinaryRequestBody(binary, fileName, uploadParamsOverride);
|
|
147082
147086
|
let bodyHeaders;
|
|
@@ -147102,7 +147106,11 @@ var ApplicationBinaryService = class extends Service {
|
|
|
147102
147106
|
});
|
|
147103
147107
|
}
|
|
147104
147108
|
uploadWithProgressXhr(binary, onProgress, fileName, uploadParamsOverride) {
|
|
147105
|
-
|
|
147109
|
+
let url = `/${this.baseUrl}/${(uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.listUrl) || this.listUrl}`;
|
|
147110
|
+
if (uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.queryParams) {
|
|
147111
|
+
const queryString = Object.entries(uploadParamsOverride.queryParams).map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`).join("&");
|
|
147112
|
+
url = `${url}?${queryString}`;
|
|
147113
|
+
}
|
|
147106
147114
|
const method = "POST";
|
|
147107
147115
|
const body = this.createBinaryRequestBody(binary, fileName, uploadParamsOverride);
|
|
147108
147116
|
let bodyHeaders;
|
|
@@ -147123,7 +147131,10 @@ var ApplicationBinaryService = class extends Service {
|
|
|
147123
147131
|
getXMLHttpResponse(xhr) {
|
|
147124
147132
|
return new Promise((res, rej) => {
|
|
147125
147133
|
xhr.addEventListener("loadend", () => {
|
|
147126
|
-
xhr.readyState === 4 && (xhr.status === 200 || xhr.status === 201) ? res(JSON.parse(xhr.responseText)) : rej(xhr.responseText ? {
|
|
147134
|
+
xhr.readyState === 4 && (xhr.status === 200 || xhr.status === 201) ? res(JSON.parse(xhr.responseText)) : rej(xhr.responseText ? {
|
|
147135
|
+
data: JSON.parse(xhr.responseText),
|
|
147136
|
+
status: xhr.status
|
|
147137
|
+
} : "Could not upload file.");
|
|
147127
147138
|
});
|
|
147128
147139
|
});
|
|
147129
147140
|
}
|
|
@@ -147223,7 +147234,7 @@ var ApplicationBinaryService = class extends Service {
|
|
|
147223
147234
|
}
|
|
147224
147235
|
};
|
|
147225
147236
|
//#endregion
|
|
147226
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147237
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationType.js
|
|
147227
147238
|
var ApplicationType;
|
|
147228
147239
|
(function(ApplicationType) {
|
|
147229
147240
|
ApplicationType["EXTERNAL"] = "EXTERNAL";
|
|
@@ -147232,7 +147243,7 @@ var ApplicationType;
|
|
|
147232
147243
|
ApplicationType["FEATURE"] = "FEATURE";
|
|
147233
147244
|
})(ApplicationType || (ApplicationType = {}));
|
|
147234
147245
|
//#endregion
|
|
147235
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147246
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationService.js
|
|
147236
147247
|
var ApplicationService = class extends Service {
|
|
147237
147248
|
constructor() {
|
|
147238
147249
|
super(...arguments);
|
|
@@ -147821,7 +147832,7 @@ var ApplicationService = class extends Service {
|
|
|
147821
147832
|
}
|
|
147822
147833
|
};
|
|
147823
147834
|
//#endregion
|
|
147824
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147835
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/application/IApplicationInstanceDetails.js
|
|
147825
147836
|
var InstanceStatus;
|
|
147826
147837
|
(function(InstanceStatus) {
|
|
147827
147838
|
InstanceStatus["Up"] = "Up";
|
|
@@ -147830,21 +147841,21 @@ var InstanceStatus;
|
|
|
147830
147841
|
InstanceStatus["Unknown"] = "Unknown";
|
|
147831
147842
|
})(InstanceStatus || (InstanceStatus = {}));
|
|
147832
147843
|
//#endregion
|
|
147833
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147844
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/application/BillingMode.js
|
|
147834
147845
|
var BillingMode;
|
|
147835
147846
|
(function(BillingMode) {
|
|
147836
147847
|
BillingMode["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
147837
147848
|
BillingMode["RESOURCES"] = "RESOURCES";
|
|
147838
147849
|
})(BillingMode || (BillingMode = {}));
|
|
147839
147850
|
//#endregion
|
|
147840
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147851
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/application/Isolation.js
|
|
147841
147852
|
var Isolation;
|
|
147842
147853
|
(function(Isolation) {
|
|
147843
147854
|
Isolation["PER_TENANT"] = "PER_TENANT";
|
|
147844
147855
|
Isolation["MULTI_TENANT"] = "MULTI_TENANT";
|
|
147845
147856
|
})(Isolation || (Isolation = {}));
|
|
147846
147857
|
//#endregion
|
|
147847
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147858
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationAvailability.js
|
|
147848
147859
|
var ApplicationAvailability;
|
|
147849
147860
|
(function(ApplicationAvailability) {
|
|
147850
147861
|
ApplicationAvailability[ApplicationAvailability["MARKET"] = gettext("MARKET")] = "MARKET";
|
|
@@ -147852,7 +147863,7 @@ var ApplicationAvailability;
|
|
|
147852
147863
|
ApplicationAvailability[ApplicationAvailability["SHARED"] = gettext("SHARED")] = "SHARED";
|
|
147853
147864
|
})(ApplicationAvailability || (ApplicationAvailability = {}));
|
|
147854
147865
|
//#endregion
|
|
147855
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147866
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/system-options/SystemOptionsService.js
|
|
147856
147867
|
var SystemOptionsService = class extends Service {
|
|
147857
147868
|
constructor() {
|
|
147858
147869
|
super(...arguments);
|
|
@@ -147928,7 +147939,7 @@ var SystemOptionsService = class extends Service {
|
|
|
147928
147939
|
}
|
|
147929
147940
|
};
|
|
147930
147941
|
//#endregion
|
|
147931
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
147942
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/tenant-options/TenantOptionsService.js
|
|
147932
147943
|
/**
|
|
147933
147944
|
* @description
|
|
147934
147945
|
* This service allows for managing tenant's options.
|
|
@@ -148105,7 +148116,7 @@ var TenantOptionsService = class extends Service {
|
|
|
148105
148116
|
}
|
|
148106
148117
|
};
|
|
148107
148118
|
//#endregion
|
|
148108
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
148119
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/tenant-security-options/TenantSecurityOptionsService.js
|
|
148109
148120
|
/**
|
|
148110
148121
|
* @description
|
|
148111
148122
|
* This service allows to get tenant security option.
|
|
@@ -148151,7 +148162,7 @@ var TenantSecurityOptionsService = class extends Service {
|
|
|
148151
148162
|
}
|
|
148152
148163
|
};
|
|
148153
148164
|
//#endregion
|
|
148154
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
148165
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/tenant-login-options/TenantLoginOptionsService.js
|
|
148155
148166
|
/**
|
|
148156
148167
|
* @description
|
|
148157
148168
|
* This service allows to get tenant login options.
|
|
@@ -148362,7 +148373,7 @@ var TenantLoginOptionsService = class extends Service {
|
|
|
148362
148373
|
}
|
|
148363
148374
|
};
|
|
148364
148375
|
//#endregion
|
|
148365
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
148376
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/tenant-login-options/ITenantLoginOptions.js
|
|
148366
148377
|
var TenantLoginOptionType;
|
|
148367
148378
|
(function(TenantLoginOptionType) {
|
|
148368
148379
|
/**
|
|
@@ -148389,7 +148400,7 @@ var UserManagementSource;
|
|
|
148389
148400
|
UserManagementSource["INTERNAL"] = "INTERNAL";
|
|
148390
148401
|
})(UserManagementSource || (UserManagementSource = {}));
|
|
148391
148402
|
//#endregion
|
|
148392
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
148403
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/audit/AuditService.js
|
|
148393
148404
|
var AuditService = class extends Service {
|
|
148394
148405
|
constructor() {
|
|
148395
148406
|
super(...arguments);
|
|
@@ -148478,7 +148489,7 @@ var AuditService = class extends Service {
|
|
|
148478
148489
|
}
|
|
148479
148490
|
};
|
|
148480
148491
|
//#endregion
|
|
148481
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
148492
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/audit/AuditRecordType.js
|
|
148482
148493
|
/**
|
|
148483
148494
|
* A specific audit record can have one of the following types
|
|
148484
148495
|
*/
|
|
@@ -148509,7 +148520,7 @@ var AuditRecordType;
|
|
|
148509
148520
|
AuditRecordType["USER_AUTHENTICATION"] = "UserAuthentication";
|
|
148510
148521
|
})(AuditRecordType || (AuditRecordType = {}));
|
|
148511
148522
|
//#endregion
|
|
148512
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
148523
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/audit/ChangeType.js
|
|
148513
148524
|
/**
|
|
148514
148525
|
* An audit record can have one of the following change type
|
|
148515
148526
|
*/
|
|
@@ -148520,7 +148531,7 @@ var ChangeType;
|
|
|
148520
148531
|
ChangeType[ChangeType["REMOVED"] = gettext("REMOVED")] = "REMOVED";
|
|
148521
148532
|
})(ChangeType || (ChangeType = {}));
|
|
148522
148533
|
//#endregion
|
|
148523
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
148534
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/inventory-role/InventoryRoleService.js
|
|
148524
148535
|
var InventoryRoleService = class extends Service {
|
|
148525
148536
|
constructor() {
|
|
148526
148537
|
super(...arguments);
|
|
@@ -148653,7 +148664,7 @@ var InventoryRoleService = class extends Service {
|
|
|
148653
148664
|
}
|
|
148654
148665
|
};
|
|
148655
148666
|
//#endregion
|
|
148656
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
148667
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationStatus.js
|
|
148657
148668
|
/**
|
|
148658
148669
|
* Device registration can have one of the following states.
|
|
148659
148670
|
*/
|
|
@@ -148665,7 +148676,7 @@ var DeviceRegistrationStatus;
|
|
|
148665
148676
|
DeviceRegistrationStatus[DeviceRegistrationStatus["BLOCKED"] = gettext("BLOCKED")] = "BLOCKED";
|
|
148666
148677
|
})(DeviceRegistrationStatus || (DeviceRegistrationStatus = {}));
|
|
148667
148678
|
//#endregion
|
|
148668
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
148679
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationService.js
|
|
148669
148680
|
/**
|
|
148670
148681
|
* This class allows registration of a new device.
|
|
148671
148682
|
*/
|
|
@@ -149018,7 +149029,7 @@ var DeviceRegistrationService = class extends Service {
|
|
|
149018
149029
|
}
|
|
149019
149030
|
};
|
|
149020
149031
|
//#endregion
|
|
149021
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
149032
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationBulkService.js
|
|
149022
149033
|
/**
|
|
149023
149034
|
* This class allows for bulk registering devices.
|
|
149024
149035
|
*/
|
|
@@ -149078,7 +149089,7 @@ var DeviceRegistrationBulkService = class {
|
|
|
149078
149089
|
}
|
|
149079
149090
|
};
|
|
149080
149091
|
//#endregion
|
|
149081
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
149092
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationSecurityMode.js
|
|
149082
149093
|
/**
|
|
149083
149094
|
* Device registration can have one of the following security modes.
|
|
149084
149095
|
*/
|
|
@@ -149089,7 +149100,7 @@ var DeviceRegistrationSecurityMode;
|
|
|
149089
149100
|
DeviceRegistrationSecurityMode["IGNORED"] = "IGNORED";
|
|
149090
149101
|
})(DeviceRegistrationSecurityMode || (DeviceRegistrationSecurityMode = {}));
|
|
149091
149102
|
//#endregion
|
|
149092
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
149103
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/user-role/UserRoleService.js
|
|
149093
149104
|
/**
|
|
149094
149105
|
* @description
|
|
149095
149106
|
* This service allows for fetch user roles.
|
|
@@ -149153,7 +149164,7 @@ var UserRoleService = class extends Service {
|
|
|
149153
149164
|
}
|
|
149154
149165
|
};
|
|
149155
149166
|
//#endregion
|
|
149156
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
149167
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/user-group/UserGroupService.js
|
|
149157
149168
|
var ChildType;
|
|
149158
149169
|
(function(ChildType) {
|
|
149159
149170
|
ChildType["ROLES"] = "roles";
|
|
@@ -149453,7 +149464,7 @@ var UserGroupService = class extends Service {
|
|
|
149453
149464
|
}
|
|
149454
149465
|
};
|
|
149455
149466
|
//#endregion
|
|
149456
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
149467
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/identity/IdentityService.js
|
|
149457
149468
|
/**
|
|
149458
149469
|
* This class allwos for managing external identifiers.
|
|
149459
149470
|
*/
|
|
@@ -149630,7 +149641,7 @@ var IdentityService = class {
|
|
|
149630
149641
|
}
|
|
149631
149642
|
};
|
|
149632
149643
|
//#endregion
|
|
149633
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
149644
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/smart-groups/SmartGroupsService.js
|
|
149634
149645
|
var SmartGroupsService = class extends Service {
|
|
149635
149646
|
constructor(client) {
|
|
149636
149647
|
super(client);
|
|
@@ -149783,7 +149794,7 @@ var SmartGroupsService = class extends Service {
|
|
|
149783
149794
|
}
|
|
149784
149795
|
};
|
|
149785
149796
|
//#endregion
|
|
149786
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
149797
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/smart-rules/SmartRulesService.js
|
|
149787
149798
|
var SmartRulesService = class SmartRulesService extends Service {
|
|
149788
149799
|
constructor(client) {
|
|
149789
149800
|
super(client);
|
|
@@ -149934,7 +149945,7 @@ var SmartRulesService = class SmartRulesService extends Service {
|
|
|
149934
149945
|
};
|
|
149935
149946
|
SmartRulesService.microserviceName = "smartrule";
|
|
149936
149947
|
//#endregion
|
|
149937
|
-
//#region node_modules/.pnpm/@c8y+client@1023.
|
|
149948
|
+
//#region node_modules/.pnpm/@c8y+client@1023.82.4/node_modules/@c8y/client/lib/esm2015/src/Client.js
|
|
149938
149949
|
var Client = class Client {
|
|
149939
149950
|
/**
|
|
149940
149951
|
* Authenticates the given user. Determines the tenant by itself via a call to tenant/currentTenant.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mc8yp",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cumulocity IoT MCP Server - Model Context Protocol integration for IoT device management",
|
|
6
6
|
"keywords": [
|
|
@@ -30,31 +30,31 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@c8y/client": "^1023.
|
|
33
|
+
"@c8y/client": "^1023.82.4",
|
|
34
34
|
"@clack/prompts": "^1.3.0",
|
|
35
35
|
"@napi-rs/keyring": "^1.3.0",
|
|
36
|
-
"@tmcp/adapter-valibot": "^0.1.
|
|
36
|
+
"@tmcp/adapter-valibot": "^0.1.6",
|
|
37
37
|
"@tmcp/transport-http": "^0.8.5",
|
|
38
|
-
"@tmcp/transport-stdio": "^0.4.
|
|
39
|
-
"@toon-format/toon": "^2.
|
|
38
|
+
"@tmcp/transport-stdio": "^0.4.3",
|
|
39
|
+
"@toon-format/toon": "^2.3.0",
|
|
40
40
|
"bumpp": "^11.1.0",
|
|
41
41
|
"citty": "^0.2.2",
|
|
42
42
|
"consola": "^3.4.2",
|
|
43
43
|
"h3": "2.0.1-rc.6",
|
|
44
44
|
"secure-exec": "^0.2.1",
|
|
45
|
-
"tmcp": "^1.19.
|
|
45
|
+
"tmcp": "^1.19.4",
|
|
46
46
|
"ufo": "^1.6.4",
|
|
47
47
|
"unctx": "^2.5.0",
|
|
48
|
-
"valibot": "^1.4.
|
|
48
|
+
"valibot": "^1.4.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@schplitt/eslint-config": "^1.5.
|
|
51
|
+
"@schplitt/eslint-config": "^1.5.1",
|
|
52
52
|
"@types/node": "^24.12.3",
|
|
53
53
|
"changelogithub": "^14.0.0",
|
|
54
|
-
"eslint": "^
|
|
54
|
+
"eslint": "^10.4.0",
|
|
55
55
|
"tsdown": "^0.22.0",
|
|
56
|
-
"typescript": "^
|
|
57
|
-
"vitest": "^4.1.
|
|
56
|
+
"typescript": "^6.0.3",
|
|
57
|
+
"vitest": "^4.1.7"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=24.0.0"
|