mc8yp 2.2.2 → 2.2.4
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 +107 -96
- package/package.json +13 -13
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.4";
|
|
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
|
|
@@ -85288,7 +85288,7 @@ const specs = Object.freeze([{
|
|
|
85288
85288
|
}
|
|
85289
85289
|
},
|
|
85290
85290
|
"servers": [{
|
|
85291
|
-
"url": "https://<TENANT_DOMAIN
|
|
85291
|
+
"url": "https://<TENANT_DOMAIN>/service/dtm",
|
|
85292
85292
|
"description": "The Digital Twin Manager service."
|
|
85293
85293
|
}],
|
|
85294
85294
|
"tags": [
|
|
@@ -85322,7 +85322,7 @@ const specs = Object.freeze([{
|
|
|
85322
85322
|
}
|
|
85323
85323
|
],
|
|
85324
85324
|
"paths": {
|
|
85325
|
-
"/definitions/properties/{identifier}": {
|
|
85325
|
+
"/service/dtm/definitions/properties/{identifier}": {
|
|
85326
85326
|
"get": {
|
|
85327
85327
|
"tags": ["Property Definitions"],
|
|
85328
85328
|
"summary": "Retrieve a Property Definition by identifier",
|
|
@@ -85783,7 +85783,7 @@ const specs = Object.freeze([{
|
|
|
85783
85783
|
"x-c8y-client-semantic": "delete"
|
|
85784
85784
|
}
|
|
85785
85785
|
},
|
|
85786
|
-
"/definitions/measurements": {
|
|
85786
|
+
"/service/dtm/definitions/measurements": {
|
|
85787
85787
|
"get": {
|
|
85788
85788
|
"tags": ["Measurement Definitions"],
|
|
85789
85789
|
"summary": "Retrieve Measurement Definitions",
|
|
@@ -86134,7 +86134,7 @@ const specs = Object.freeze([{
|
|
|
86134
86134
|
"x-c8y-client-semantic": "create"
|
|
86135
86135
|
}
|
|
86136
86136
|
},
|
|
86137
|
-
"/definitions/events": {
|
|
86137
|
+
"/service/dtm/definitions/events": {
|
|
86138
86138
|
"get": {
|
|
86139
86139
|
"tags": ["Event Definitions"],
|
|
86140
86140
|
"summary": "Retrieve Event Definitions",
|
|
@@ -86485,7 +86485,7 @@ const specs = Object.freeze([{
|
|
|
86485
86485
|
"x-c8y-client-semantic": "create"
|
|
86486
86486
|
}
|
|
86487
86487
|
},
|
|
86488
|
-
"/definitions/assets": {
|
|
86488
|
+
"/service/dtm/definitions/assets": {
|
|
86489
86489
|
"get": {
|
|
86490
86490
|
"tags": ["Asset Definitions"],
|
|
86491
86491
|
"summary": "Retrieve Asset Definitions",
|
|
@@ -86866,7 +86866,7 @@ const specs = Object.freeze([{
|
|
|
86866
86866
|
"x-c8y-client-semantic": "create"
|
|
86867
86867
|
}
|
|
86868
86868
|
},
|
|
86869
|
-
"/definitions/alarms": {
|
|
86869
|
+
"/service/dtm/definitions/alarms": {
|
|
86870
86870
|
"get": {
|
|
86871
86871
|
"tags": ["Alarm Definitions"],
|
|
86872
86872
|
"summary": "Retrieve a collection of Alarm Definitions",
|
|
@@ -87217,7 +87217,7 @@ const specs = Object.freeze([{
|
|
|
87217
87217
|
"x-c8y-client-semantic": "create"
|
|
87218
87218
|
}
|
|
87219
87219
|
},
|
|
87220
|
-
"/assets/{assetId}": {
|
|
87220
|
+
"/service/dtm/assets/{assetId}": {
|
|
87221
87221
|
"get": {
|
|
87222
87222
|
"tags": ["Assets"],
|
|
87223
87223
|
"summary": "Retrieve an existing asset",
|
|
@@ -87619,7 +87619,7 @@ const specs = Object.freeze([{
|
|
|
87619
87619
|
"x-c8y-client-semantic": "delete"
|
|
87620
87620
|
}
|
|
87621
87621
|
},
|
|
87622
|
-
"/assets/{assetId}/linkedSeries/{fragment}/{series}/source": {
|
|
87622
|
+
"/service/dtm/assets/{assetId}/linkedSeries/{fragment}/{series}/source": {
|
|
87623
87623
|
"get": {
|
|
87624
87624
|
"tags": ["Linked Series"],
|
|
87625
87625
|
"summary": "Retrieve the source for a given linked series",
|
|
@@ -88106,7 +88106,7 @@ const specs = Object.freeze([{
|
|
|
88106
88106
|
]
|
|
88107
88107
|
}
|
|
88108
88108
|
},
|
|
88109
|
-
"/assets/{assetId}/linkedSeries/{fragment}/{series}/source/type": { "put": {
|
|
88109
|
+
"/service/dtm/assets/{assetId}/linkedSeries/{fragment}/{series}/source/type": { "put": {
|
|
88110
88110
|
"tags": ["Linked Series"],
|
|
88111
88111
|
"summary": "Update the measurement type of a linked series source",
|
|
88112
88112
|
"description": "Modifies the `type` of a source of a linked series for a given asset. If the `fetchTypeFromSource` is set to\n`true`, the type specified in the body of the request will be ignored. Instead, the value is fetched from the last measurement of\nthe device defined by the which `source.id`.",
|
|
@@ -88255,7 +88255,7 @@ const specs = Object.freeze([{
|
|
|
88255
88255
|
{ "Basic": [] }
|
|
88256
88256
|
]
|
|
88257
88257
|
} },
|
|
88258
|
-
"/assets/{assetId}/linkedSeries/{fragment}/{series}/label": { "put": {
|
|
88258
|
+
"/service/dtm/assets/{assetId}/linkedSeries/{fragment}/{series}/label": { "put": {
|
|
88259
88259
|
"tags": ["Linked Series"],
|
|
88260
88260
|
"summary": "Update the label of a linked series",
|
|
88261
88261
|
"description": "Modifies the `label` of a linked series for a given asset.",
|
|
@@ -88369,7 +88369,7 @@ const specs = Object.freeze([{
|
|
|
88369
88369
|
{ "Basic": [] }
|
|
88370
88370
|
]
|
|
88371
88371
|
} },
|
|
88372
|
-
"/definitions/properties": {
|
|
88372
|
+
"/service/dtm/definitions/properties": {
|
|
88373
88373
|
"get": {
|
|
88374
88374
|
"tags": ["Property Definitions"],
|
|
88375
88375
|
"summary": "Retrieve all Property Definitions",
|
|
@@ -88649,7 +88649,7 @@ const specs = Object.freeze([{
|
|
|
88649
88649
|
"x-c8y-client-semantic": "create"
|
|
88650
88650
|
}
|
|
88651
88651
|
},
|
|
88652
|
-
"/definitions/properties/compose": { "post": {
|
|
88652
|
+
"/service/dtm/definitions/properties/compose": { "post": {
|
|
88653
88653
|
"tags": ["Property Definitions"],
|
|
88654
88654
|
"summary": "Create JSON schema from Property Definitions",
|
|
88655
88655
|
"description": "Creates a JSON schema object type.\n\n This operation constructs a JSON Schema object type that encapsulates one or more `Property Definition`s as its properties. The resulting schema will include all provided `Property Definition`s. \n\n The `Property Definition`s to be included are supplied in the request body. At least one `Property Definition` must be provided and identified by its `identifier`. If a `Property Definition` applies to a specific domain entity, a corresponding `context` must also be supplied.",
|
|
@@ -88746,7 +88746,7 @@ const specs = Object.freeze([{
|
|
|
88746
88746
|
{ "Basic": [] }
|
|
88747
88747
|
]
|
|
88748
88748
|
} },
|
|
88749
|
-
"/assets": {
|
|
88749
|
+
"/service/dtm/assets": {
|
|
88750
88750
|
"get": {
|
|
88751
88751
|
"tags": ["Assets"],
|
|
88752
88752
|
"summary": "Retrieve assets",
|
|
@@ -89034,7 +89034,7 @@ const specs = Object.freeze([{
|
|
|
89034
89034
|
"x-c8y-client-semantic": "create"
|
|
89035
89035
|
}
|
|
89036
89036
|
},
|
|
89037
|
-
"/assets/{assetId}/subAssets/{subAssetId}": {
|
|
89037
|
+
"/service/dtm/assets/{assetId}/subAssets/{subAssetId}": {
|
|
89038
89038
|
"post": {
|
|
89039
89039
|
"tags": ["Assets"],
|
|
89040
89040
|
"summary": "Assign an asset as a sub-asset",
|
|
@@ -89255,7 +89255,7 @@ const specs = Object.freeze([{
|
|
|
89255
89255
|
]
|
|
89256
89256
|
}
|
|
89257
89257
|
},
|
|
89258
|
-
"/assets/{assetId}/linkedSeries": {
|
|
89258
|
+
"/service/dtm/assets/{assetId}/linkedSeries": {
|
|
89259
89259
|
"get": {
|
|
89260
89260
|
"tags": ["Linked Series"],
|
|
89261
89261
|
"summary": "Retrieve linked series for an asset",
|
|
@@ -89664,7 +89664,7 @@ const specs = Object.freeze([{
|
|
|
89664
89664
|
]
|
|
89665
89665
|
}
|
|
89666
89666
|
},
|
|
89667
|
-
"/assets/{assetId}/devices/{deviceId}": {
|
|
89667
|
+
"/service/dtm/assets/{assetId}/devices/{deviceId}": {
|
|
89668
89668
|
"post": {
|
|
89669
89669
|
"tags": ["Assets"],
|
|
89670
89670
|
"summary": "Assign a device to an asset",
|
|
@@ -89885,7 +89885,7 @@ const specs = Object.freeze([{
|
|
|
89885
89885
|
]
|
|
89886
89886
|
}
|
|
89887
89887
|
},
|
|
89888
|
-
"/definitions/properties/tags": { "get": {
|
|
89888
|
+
"/service/dtm/definitions/properties/tags": { "get": {
|
|
89889
89889
|
"tags": ["Property Definitions"],
|
|
89890
89890
|
"summary": "Retrieve tags of given Property Definitions",
|
|
89891
89891
|
"description": "Finds a collection of `Property Definition`s but returns only their associated `tag`s.",
|
|
@@ -89980,7 +89980,7 @@ const specs = Object.freeze([{
|
|
|
89980
89980
|
],
|
|
89981
89981
|
"x-codegen-resource-name": "listTags"
|
|
89982
89982
|
} },
|
|
89983
|
-
"/definitions/properties/count": { "get": {
|
|
89983
|
+
"/service/dtm/definitions/properties/count": { "get": {
|
|
89984
89984
|
"tags": ["Property Definitions"],
|
|
89985
89985
|
"summary": "Get the count of all Property Definitions",
|
|
89986
89986
|
"description": "Counts the collection of `Property Definition`s.\n\n The following rules will be applied when searching for the `Property Definition`s: \n\n * `identifiers`, `titles`, `tags` will be concatenated using logical AND operators\n\n * Values within a filter will be concatenated using a logical OR operator\n\n For instance, the query filter `?identifiers=id_a,id_b&title=position` results in the following query filter:` (identifier equals id_a OR identifier equals id_b) AND title equals position `\n\n *Will be executed in context of an `Storage` tenant.*",
|
|
@@ -90132,7 +90132,7 @@ const specs = Object.freeze([{
|
|
|
90132
90132
|
],
|
|
90133
90133
|
"x-codegen-resource-name": "count"
|
|
90134
90134
|
} },
|
|
90135
|
-
"/definitions/measurements/{identifier}": {
|
|
90135
|
+
"/service/dtm/definitions/measurements/{identifier}": {
|
|
90136
90136
|
"get": {
|
|
90137
90137
|
"tags": ["Measurement Definitions"],
|
|
90138
90138
|
"summary": "Retrieve a Measurement Definition by identifier",
|
|
@@ -90347,7 +90347,7 @@ const specs = Object.freeze([{
|
|
|
90347
90347
|
"x-c8y-client-semantic": "delete"
|
|
90348
90348
|
}
|
|
90349
90349
|
},
|
|
90350
|
-
"/definitions/measurements/tags": { "get": {
|
|
90350
|
+
"/service/dtm/definitions/measurements/tags": { "get": {
|
|
90351
90351
|
"tags": ["Measurement Definitions"],
|
|
90352
90352
|
"summary": "Retrieve tags of given Measurement Definitions",
|
|
90353
90353
|
"description": "Finds a collection of `Measurement Definition`s but returns only their associated `tag`s.",
|
|
@@ -90442,7 +90442,7 @@ const specs = Object.freeze([{
|
|
|
90442
90442
|
],
|
|
90443
90443
|
"x-codegen-resource-name": "listTags"
|
|
90444
90444
|
} },
|
|
90445
|
-
"/definitions/measurements/count": { "get": {
|
|
90445
|
+
"/service/dtm/definitions/measurements/count": { "get": {
|
|
90446
90446
|
"tags": ["Measurement Definitions"],
|
|
90447
90447
|
"summary": "Get the count of all Measurement Definitions",
|
|
90448
90448
|
"description": "Counts the collection of `Measurement Definition`s.\n\n The following rules will be applied when searching for the `Measurement Definition`s: \n\n * `identifiers`, `titles`, `tags` will be concatenated using logical AND operators\n\n * Values within a filter will be concatenated using a logical OR operator\n\n For instance, the query filter `?identifiers=id_a,id_b&title=position` results in the following query filter:` (identifier equals id_a OR identifier equals id_b) AND title equals position `\n\n *Will be executed in context of an `Storage` tenant.*",
|
|
@@ -90548,7 +90548,7 @@ const specs = Object.freeze([{
|
|
|
90548
90548
|
],
|
|
90549
90549
|
"x-codegen-resource-name": "count"
|
|
90550
90550
|
} },
|
|
90551
|
-
"/definitions/events/{identifier}": {
|
|
90551
|
+
"/service/dtm/definitions/events/{identifier}": {
|
|
90552
90552
|
"get": {
|
|
90553
90553
|
"tags": ["Event Definitions"],
|
|
90554
90554
|
"summary": "Retrieve an Event Definition by identifier",
|
|
@@ -90763,7 +90763,7 @@ const specs = Object.freeze([{
|
|
|
90763
90763
|
"x-c8y-client-semantic": "delete"
|
|
90764
90764
|
}
|
|
90765
90765
|
},
|
|
90766
|
-
"/definitions/events/tags": { "get": {
|
|
90766
|
+
"/service/dtm/definitions/events/tags": { "get": {
|
|
90767
90767
|
"tags": ["Event Definitions"],
|
|
90768
90768
|
"summary": "Retrieve tags of given Event Definitions",
|
|
90769
90769
|
"description": "Finds a collection of `Event Definition`s but returns only their associated `tag`s.",
|
|
@@ -90858,7 +90858,7 @@ const specs = Object.freeze([{
|
|
|
90858
90858
|
],
|
|
90859
90859
|
"x-codegen-resource-name": "listTags"
|
|
90860
90860
|
} },
|
|
90861
|
-
"/definitions/events/count": { "get": {
|
|
90861
|
+
"/service/dtm/definitions/events/count": { "get": {
|
|
90862
90862
|
"tags": ["Event Definitions"],
|
|
90863
90863
|
"summary": "Get the count of all Event Definitions",
|
|
90864
90864
|
"description": "Counts the collection of `Event Definition`s.\n\n The following rules will be applied when searching for the `Event Definition`s: \n\n * `identifiers`, `titles`, `tags` will be concatenated using logical AND operators\n\n * Values within a filter will be concatenated using a logical OR operator\n\n For instance, the query filter `?identifiers=id_a,id_b&title=position` results in the following query filter:` (identifier equals id_a OR identifier equals id_b) AND title equals position `\n\n *Will be executed in context of an `Storage` tenant.*",
|
|
@@ -90964,7 +90964,7 @@ const specs = Object.freeze([{
|
|
|
90964
90964
|
],
|
|
90965
90965
|
"x-codegen-resource-name": "count"
|
|
90966
90966
|
} },
|
|
90967
|
-
"/definitions/assets/{identifier}": {
|
|
90967
|
+
"/service/dtm/definitions/assets/{identifier}": {
|
|
90968
90968
|
"get": {
|
|
90969
90969
|
"tags": ["Asset Definitions"],
|
|
90970
90970
|
"summary": "Retrieve an Asset Definition by identifier",
|
|
@@ -91179,7 +91179,7 @@ const specs = Object.freeze([{
|
|
|
91179
91179
|
"x-c8y-client-semantic": "delete"
|
|
91180
91180
|
}
|
|
91181
91181
|
},
|
|
91182
|
-
"/definitions/assets/count": { "get": {
|
|
91182
|
+
"/service/dtm/definitions/assets/count": { "get": {
|
|
91183
91183
|
"tags": ["Asset Definitions"],
|
|
91184
91184
|
"summary": "Get count of Asset Definitions",
|
|
91185
91185
|
"description": "Counts the collection of `Asset Definition`s.\n\n The following rules will be applied when searching for the `Asset Definition`s: \n\n * `identifiers`, `titles`, `onlyRoots` will be concatenated using logical AND operators\n\n * Values within a filter will be concatenated using a logical OR operator\n\n For instance, the query filter `?identifiers=id_a,id_b&title=position` results in the following query filter:` (identifier equals id_a OR identifier equals id_b) AND title equals position `\n\n *Will be executed in context of an `Storage` tenant.*",
|
|
@@ -91295,7 +91295,7 @@ const specs = Object.freeze([{
|
|
|
91295
91295
|
],
|
|
91296
91296
|
"x-codegen-resource-name": "count"
|
|
91297
91297
|
} },
|
|
91298
|
-
"/definitions/alarms/{identifier}": {
|
|
91298
|
+
"/service/dtm/definitions/alarms/{identifier}": {
|
|
91299
91299
|
"get": {
|
|
91300
91300
|
"tags": ["Alarm Definitions"],
|
|
91301
91301
|
"summary": "Retrieve an Alarm Definition by identifier",
|
|
@@ -91510,7 +91510,7 @@ const specs = Object.freeze([{
|
|
|
91510
91510
|
"x-c8y-client-semantic": "delete"
|
|
91511
91511
|
}
|
|
91512
91512
|
},
|
|
91513
|
-
"/definitions/alarms/tags": { "get": {
|
|
91513
|
+
"/service/dtm/definitions/alarms/tags": { "get": {
|
|
91514
91514
|
"tags": ["Alarm Definitions"],
|
|
91515
91515
|
"summary": "Retrieve tags of Alarm Definitions",
|
|
91516
91516
|
"description": "Finds a collection of `Alarm Definition`s but returns only their associated `tag`s.",
|
|
@@ -91605,7 +91605,7 @@ const specs = Object.freeze([{
|
|
|
91605
91605
|
],
|
|
91606
91606
|
"x-codegen-resource-name": "listTags"
|
|
91607
91607
|
} },
|
|
91608
|
-
"/definitions/alarms/count": { "get": {
|
|
91608
|
+
"/service/dtm/definitions/alarms/count": { "get": {
|
|
91609
91609
|
"tags": ["Alarm Definitions"],
|
|
91610
91610
|
"summary": "Get count of Alarm Definitions",
|
|
91611
91611
|
"description": "Counts the collection of `Alarm Definition`s.\n\n The following rules will be applied when searching for the `Alarm Definition`s: \n\n * `identifiers`, `titles`, `tags` will be concatenated using logical AND operators\n\n * Values within a filter will be concatenated using a logical OR operator\n\n For instance, the query filter `?identifiers=id_a,id_b&title=position` results in the following query filter:` (identifier equals id_a OR identifier equals id_b) AND title equals position `\n\n *Will be executed in context of an `Storage` tenant.*",
|
|
@@ -91711,7 +91711,7 @@ const specs = Object.freeze([{
|
|
|
91711
91711
|
],
|
|
91712
91712
|
"x-codegen-resource-name": "count"
|
|
91713
91713
|
} },
|
|
91714
|
-
"/assets/{assetId}/subAssets": { "get": {
|
|
91714
|
+
"/service/dtm/assets/{assetId}/subAssets": { "get": {
|
|
91715
91715
|
"tags": ["Assets"],
|
|
91716
91716
|
"summary": "Retrieve sub-assets of an asset",
|
|
91717
91717
|
"description": "Retrieves sub-assets of an asset.\n\n Fetches all sub-assets of the parent asset specified by `assetId`. You can optionally apply the filter `query`.",
|
|
@@ -91840,7 +91840,7 @@ const specs = Object.freeze([{
|
|
|
91840
91840
|
{ "Basic": [] }
|
|
91841
91841
|
]
|
|
91842
91842
|
} },
|
|
91843
|
-
"/assets/{assetId}/linkedSeries/count": { "get": {
|
|
91843
|
+
"/service/dtm/assets/{assetId}/linkedSeries/count": { "get": {
|
|
91844
91844
|
"tags": ["Linked Series"],
|
|
91845
91845
|
"summary": "Get count of linked series for an asset",
|
|
91846
91846
|
"description": "Counts linked series for a given asset.\n\n Provides a count of linked series, with optional `fragment` and `series` query parameters to filter and count specific linked series.",
|
|
@@ -91933,7 +91933,7 @@ const specs = Object.freeze([{
|
|
|
91933
91933
|
],
|
|
91934
91934
|
"x-codegen-resource-name": "count"
|
|
91935
91935
|
} },
|
|
91936
|
-
"/assets/{assetId}/devices": { "get": {
|
|
91936
|
+
"/service/dtm/assets/{assetId}/devices": { "get": {
|
|
91937
91937
|
"tags": ["Assets"],
|
|
91938
91938
|
"summary": "Retrieve child devices of an asset",
|
|
91939
91939
|
"description": "Retrieves child devices of an asset.\n\n Fetches all child devices of the parent asset specified by `assetId`.",
|
|
@@ -92052,7 +92052,7 @@ const specs = Object.freeze([{
|
|
|
92052
92052
|
{ "Basic": [] }
|
|
92053
92053
|
]
|
|
92054
92054
|
} },
|
|
92055
|
-
"/assets/linkedSeries": { "get": {
|
|
92055
|
+
"/service/dtm/assets/linkedSeries": { "get": {
|
|
92056
92056
|
"tags": ["Linked Series"],
|
|
92057
92057
|
"summary": "Retrieve linked series for all assets",
|
|
92058
92058
|
"description": "Retrieves linked series for all assets on your tenant.\n\n Provides a list of linked series, with a set of optional query parameters to filter for specific linked series, asset types or asset ids.",
|
|
@@ -92177,7 +92177,7 @@ const specs = Object.freeze([{
|
|
|
92177
92177
|
],
|
|
92178
92178
|
"x-c8y-client-semantic": "list"
|
|
92179
92179
|
} },
|
|
92180
|
-
"/assets/externalIds/{externalId}": { "get": {
|
|
92180
|
+
"/service/dtm/assets/externalIds/{externalId}": { "get": {
|
|
92181
92181
|
"tags": ["Assets"],
|
|
92182
92182
|
"summary": "Retrieve an asset by its external ID",
|
|
92183
92183
|
"description": "Retrieves an Asset by its external ID of type `c8y_ExternalId`.\n\n This endpoint allows clients to look up assets using identifiers from external systems. It resolves the external ID to a ManagedObject and returns the corresponding Asset if found.",
|
|
@@ -92295,7 +92295,7 @@ const specs = Object.freeze([{
|
|
|
92295
92295
|
{ "Basic": [] }
|
|
92296
92296
|
]
|
|
92297
92297
|
} },
|
|
92298
|
-
"/assets/count": { "get": {
|
|
92298
|
+
"/service/dtm/assets/count": { "get": {
|
|
92299
92299
|
"tags": ["Assets"],
|
|
92300
92300
|
"summary": "Get count of assets",
|
|
92301
92301
|
"description": "Counts all assets on your tenant.\n\n You can optionally apply the filters `query` and `onlyRoots`.",
|
|
@@ -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.4",
|
|
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.
|
|
34
|
-
"@clack/prompts": "^1.
|
|
33
|
+
"@c8y/client": "^1023.82.4",
|
|
34
|
+
"@clack/prompts": "^1.4.0",
|
|
35
35
|
"@napi-rs/keyring": "^1.3.0",
|
|
36
|
-
"@tmcp/adapter-valibot": "^0.1.
|
|
37
|
-
"@tmcp/transport-http": "^0.8.
|
|
38
|
-
"@tmcp/transport-stdio": "^0.4.
|
|
39
|
-
"@toon-format/toon": "^2.
|
|
36
|
+
"@tmcp/adapter-valibot": "^0.1.6",
|
|
37
|
+
"@tmcp/transport-http": "^0.8.6",
|
|
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"
|