@camstack/addon-model-studio 1.0.10 → 1.0.12

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.
@@ -4661,7 +4661,7 @@ function _instanceof(cls, params = {}) {
4661
4661
  return inst;
4662
4662
  }
4663
4663
  //#endregion
4664
- //#region ../types/dist/sleep-B3AOslwX.mjs
4664
+ //#region ../types/dist/sleep-C2M2zF7x.mjs
4665
4665
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4666
4666
  EventCategory["SystemBoot"] = "system.boot";
4667
4667
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6229,6 +6229,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
6229
6229
  DeviceType["Switch"] = "switch";
6230
6230
  DeviceType["Sensor"] = "sensor";
6231
6231
  DeviceType["Thermostat"] = "thermostat";
6232
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
6233
+ * `climate-control` cap surface with `Thermostat` but renders a
6234
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
6235
+ * independent vertical/horizontal swing). Sources: native Gree, and
6236
+ * reusable by other AC integrations. */
6237
+ DeviceType["Climate"] = "climate";
6232
6238
  DeviceType["Button"] = "button";
6233
6239
  /** Generic stateless event emitter — carries a device's EXACT declared
6234
6240
  * event vocabulary verbatim (no normalization). Installed with the
@@ -8414,7 +8420,7 @@ object({
8414
8420
  /** Ms epoch when the slice was last updated (push or command). */
8415
8421
  lastFetchedAt: number()
8416
8422
  });
8417
- DeviceType.Thermostat, method(object({
8423
+ DeviceType.Thermostat, DeviceType.Climate, method(object({
8418
8424
  deviceId: number().int().nonnegative(),
8419
8425
  mode: HvacModeSchema
8420
8426
  }), _void(), {
@@ -11099,10 +11105,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
11099
11105
  id: string(),
11100
11106
  name: string(),
11101
11107
  type: string()
11102
- }))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
11108
+ }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
11103
11109
  kind: "mutation",
11104
11110
  auth: "admin"
11105
- }), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11111
+ }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11106
11112
  kind: "mutation",
11107
11113
  auth: "admin"
11108
11114
  }), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
@@ -12856,7 +12862,10 @@ method(object({
12856
12862
  }), FieldProbeResultSchema, {
12857
12863
  kind: "mutation",
12858
12864
  auth: "admin"
12859
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12865
+ }), method(object({
12866
+ addonId: string(),
12867
+ integrationId: string()
12868
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12860
12869
  addonId: string(),
12861
12870
  integrationId: string()
12862
12871
  }), AdoptionStatusSchema, {
@@ -12871,7 +12880,24 @@ method(object({
12871
12880
  }), method(ResyncInputSchema, ResyncResultSchema, {
12872
12881
  kind: "mutation",
12873
12882
  auth: "admin"
12883
+ }), method(object({}), object({ providers: array(object({
12884
+ addonId: string(),
12885
+ label: string()
12886
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12887
+ addonId: string(),
12888
+ label: string(),
12889
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12890
+ error: string().nullable()
12891
+ })).readonly() }), {
12892
+ kind: "mutation",
12893
+ auth: "admin"
12874
12894
  }), method(object({
12895
+ addonId: string(),
12896
+ params: record(string(), unknown()).optional()
12897
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12898
+ kind: "mutation",
12899
+ auth: "admin"
12900
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12875
12901
  deviceId: number(),
12876
12902
  key: string(),
12877
12903
  value: unknown()
@@ -18000,6 +18026,12 @@ Object.freeze({
18000
18026
  addonId: null,
18001
18027
  access: "create"
18002
18028
  },
18029
+ "deviceManager.adoptionListCandidateFilters": {
18030
+ capName: "device-manager",
18031
+ capScope: "system",
18032
+ addonId: null,
18033
+ access: "view"
18034
+ },
18003
18035
  "deviceManager.adoptionListCandidates": {
18004
18036
  capName: "device-manager",
18005
18037
  capScope: "system",
@@ -18048,12 +18080,30 @@ Object.freeze({
18048
18080
  addonId: null,
18049
18081
  access: "create"
18050
18082
  },
18083
+ "deviceManager.discoverAllProviders": {
18084
+ capName: "device-manager",
18085
+ capScope: "system",
18086
+ addonId: null,
18087
+ access: "create"
18088
+ },
18051
18089
  "deviceManager.discoverDevices": {
18052
18090
  capName: "device-manager",
18053
18091
  capScope: "system",
18054
18092
  addonId: null,
18055
18093
  access: "create"
18056
18094
  },
18095
+ "deviceManager.discoverProvider": {
18096
+ capName: "device-manager",
18097
+ capScope: "system",
18098
+ addonId: null,
18099
+ access: "create"
18100
+ },
18101
+ "deviceManager.discoveryProviders": {
18102
+ capName: "device-manager",
18103
+ capScope: "system",
18104
+ addonId: null,
18105
+ access: "view"
18106
+ },
18057
18107
  "deviceManager.enable": {
18058
18108
  capName: "device-manager",
18059
18109
  capScope: "system",
@@ -18204,6 +18254,18 @@ Object.freeze({
18204
18254
  addonId: null,
18205
18255
  access: "create"
18206
18256
  },
18257
+ "deviceManager.providerCreationType": {
18258
+ capName: "device-manager",
18259
+ capScope: "system",
18260
+ addonId: null,
18261
+ access: "view"
18262
+ },
18263
+ "deviceManager.providerDiscoveryParamsSchema": {
18264
+ capName: "device-manager",
18265
+ capScope: "system",
18266
+ addonId: null,
18267
+ access: "view"
18268
+ },
18207
18269
  "deviceManager.registerDevice": {
18208
18270
  capName: "device-manager",
18209
18271
  capScope: "system",
@@ -18420,6 +18482,18 @@ Object.freeze({
18420
18482
  addonId: null,
18421
18483
  access: "view"
18422
18484
  },
18485
+ "deviceProvider.getDiscoveryParamsSchema": {
18486
+ capName: "device-provider",
18487
+ capScope: "system",
18488
+ addonId: null,
18489
+ access: "view"
18490
+ },
18491
+ "deviceProvider.getManualCreationType": {
18492
+ capName: "device-provider",
18493
+ capScope: "system",
18494
+ addonId: null,
18495
+ access: "view"
18496
+ },
18423
18497
  "deviceProvider.getStatus": {
18424
18498
  capName: "device-provider",
18425
18499
  capScope: "system",
@@ -4638,7 +4638,7 @@ function _instanceof(cls, params = {}) {
4638
4638
  return inst;
4639
4639
  }
4640
4640
  //#endregion
4641
- //#region ../types/dist/sleep-B3AOslwX.mjs
4641
+ //#region ../types/dist/sleep-C2M2zF7x.mjs
4642
4642
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4643
4643
  EventCategory["SystemBoot"] = "system.boot";
4644
4644
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6206,6 +6206,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
6206
6206
  DeviceType["Switch"] = "switch";
6207
6207
  DeviceType["Sensor"] = "sensor";
6208
6208
  DeviceType["Thermostat"] = "thermostat";
6209
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
6210
+ * `climate-control` cap surface with `Thermostat` but renders a
6211
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
6212
+ * independent vertical/horizontal swing). Sources: native Gree, and
6213
+ * reusable by other AC integrations. */
6214
+ DeviceType["Climate"] = "climate";
6209
6215
  DeviceType["Button"] = "button";
6210
6216
  /** Generic stateless event emitter — carries a device's EXACT declared
6211
6217
  * event vocabulary verbatim (no normalization). Installed with the
@@ -8391,7 +8397,7 @@ object({
8391
8397
  /** Ms epoch when the slice was last updated (push or command). */
8392
8398
  lastFetchedAt: number()
8393
8399
  });
8394
- DeviceType.Thermostat, method(object({
8400
+ DeviceType.Thermostat, DeviceType.Climate, method(object({
8395
8401
  deviceId: number().int().nonnegative(),
8396
8402
  mode: HvacModeSchema
8397
8403
  }), _void(), {
@@ -11076,10 +11082,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
11076
11082
  id: string(),
11077
11083
  name: string(),
11078
11084
  type: string()
11079
- }))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
11085
+ }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
11080
11086
  kind: "mutation",
11081
11087
  auth: "admin"
11082
- }), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11088
+ }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11083
11089
  kind: "mutation",
11084
11090
  auth: "admin"
11085
11091
  }), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
@@ -12833,7 +12839,10 @@ method(object({
12833
12839
  }), FieldProbeResultSchema, {
12834
12840
  kind: "mutation",
12835
12841
  auth: "admin"
12836
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12842
+ }), method(object({
12843
+ addonId: string(),
12844
+ integrationId: string()
12845
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12837
12846
  addonId: string(),
12838
12847
  integrationId: string()
12839
12848
  }), AdoptionStatusSchema, {
@@ -12848,7 +12857,24 @@ method(object({
12848
12857
  }), method(ResyncInputSchema, ResyncResultSchema, {
12849
12858
  kind: "mutation",
12850
12859
  auth: "admin"
12860
+ }), method(object({}), object({ providers: array(object({
12861
+ addonId: string(),
12862
+ label: string()
12863
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12864
+ addonId: string(),
12865
+ label: string(),
12866
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12867
+ error: string().nullable()
12868
+ })).readonly() }), {
12869
+ kind: "mutation",
12870
+ auth: "admin"
12851
12871
  }), method(object({
12872
+ addonId: string(),
12873
+ params: record(string(), unknown()).optional()
12874
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12875
+ kind: "mutation",
12876
+ auth: "admin"
12877
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12852
12878
  deviceId: number(),
12853
12879
  key: string(),
12854
12880
  value: unknown()
@@ -17977,6 +18003,12 @@ Object.freeze({
17977
18003
  addonId: null,
17978
18004
  access: "create"
17979
18005
  },
18006
+ "deviceManager.adoptionListCandidateFilters": {
18007
+ capName: "device-manager",
18008
+ capScope: "system",
18009
+ addonId: null,
18010
+ access: "view"
18011
+ },
17980
18012
  "deviceManager.adoptionListCandidates": {
17981
18013
  capName: "device-manager",
17982
18014
  capScope: "system",
@@ -18025,12 +18057,30 @@ Object.freeze({
18025
18057
  addonId: null,
18026
18058
  access: "create"
18027
18059
  },
18060
+ "deviceManager.discoverAllProviders": {
18061
+ capName: "device-manager",
18062
+ capScope: "system",
18063
+ addonId: null,
18064
+ access: "create"
18065
+ },
18028
18066
  "deviceManager.discoverDevices": {
18029
18067
  capName: "device-manager",
18030
18068
  capScope: "system",
18031
18069
  addonId: null,
18032
18070
  access: "create"
18033
18071
  },
18072
+ "deviceManager.discoverProvider": {
18073
+ capName: "device-manager",
18074
+ capScope: "system",
18075
+ addonId: null,
18076
+ access: "create"
18077
+ },
18078
+ "deviceManager.discoveryProviders": {
18079
+ capName: "device-manager",
18080
+ capScope: "system",
18081
+ addonId: null,
18082
+ access: "view"
18083
+ },
18034
18084
  "deviceManager.enable": {
18035
18085
  capName: "device-manager",
18036
18086
  capScope: "system",
@@ -18181,6 +18231,18 @@ Object.freeze({
18181
18231
  addonId: null,
18182
18232
  access: "create"
18183
18233
  },
18234
+ "deviceManager.providerCreationType": {
18235
+ capName: "device-manager",
18236
+ capScope: "system",
18237
+ addonId: null,
18238
+ access: "view"
18239
+ },
18240
+ "deviceManager.providerDiscoveryParamsSchema": {
18241
+ capName: "device-manager",
18242
+ capScope: "system",
18243
+ addonId: null,
18244
+ access: "view"
18245
+ },
18184
18246
  "deviceManager.registerDevice": {
18185
18247
  capName: "device-manager",
18186
18248
  capScope: "system",
@@ -18397,6 +18459,18 @@ Object.freeze({
18397
18459
  addonId: null,
18398
18460
  access: "view"
18399
18461
  },
18462
+ "deviceProvider.getDiscoveryParamsSchema": {
18463
+ capName: "device-provider",
18464
+ capScope: "system",
18465
+ addonId: null,
18466
+ access: "view"
18467
+ },
18468
+ "deviceProvider.getManualCreationType": {
18469
+ capName: "device-provider",
18470
+ capScope: "system",
18471
+ addonId: null,
18472
+ access: "view"
18473
+ },
18400
18474
  "deviceProvider.getStatus": {
18401
18475
  capName: "device-provider",
18402
18476
  capScope: "system",
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-Yr77KJQ4.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CXjVYjP0.mjs";
2
2
  export { t as get, e as init };
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-dP9vjIgQ.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-0dLOtqH4.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-model-studio",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",
@@ -37,7 +37,8 @@
37
37
  "description": "Register, manipulate and distribute custom detection models",
38
38
  "entry": "./dist/index.js",
39
39
  "execution": {
40
- "placement": "any-node"
40
+ "placement": "any-node",
41
+ "heapProfile": "heavy"
41
42
  },
42
43
  "capabilities": [
43
44
  {