@camstack/addon-model-studio 1.0.9 → 1.0.11
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/_stub.js +1190 -1046
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CQOeRC27.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-D6Wd9iZV.mjs} +4 -4
- package/dist/addon-model-studio.css +1 -1
- package/dist/{hostInit-DLTJmPBA.mjs → hostInit-CQOosPYZ.mjs} +3 -3
- package/dist/model-studio.addon.js +90 -5
- package/dist/model-studio.addon.mjs +90 -5
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-4wP8hs_8.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BzgDZiVU.mjs} +1 -1
- package/package.json +1 -1
|
@@ -4661,7 +4661,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4661
4661
|
return inst;
|
|
4662
4662
|
}
|
|
4663
4663
|
//#endregion
|
|
4664
|
-
//#region ../types/dist/sleep-
|
|
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(
|
|
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()
|
|
@@ -15529,6 +15555,17 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
15529
15555
|
iconUrl: string().nullable(),
|
|
15530
15556
|
color: string(),
|
|
15531
15557
|
instanceMode: string(),
|
|
15558
|
+
/**
|
|
15559
|
+
* Integration wizard `mode` (LOCKED MODEL): `standalone` (create
|
|
15560
|
+
* immediately then add devices, no config step/button), `account` (config
|
|
15561
|
+
* step), or `broker` (broker step). Derived server-side by
|
|
15562
|
+
* `getAvailableTypes` when the addon manifest omits an explicit `mode`.
|
|
15563
|
+
*/
|
|
15564
|
+
mode: _enum([
|
|
15565
|
+
"standalone",
|
|
15566
|
+
"account",
|
|
15567
|
+
"broker"
|
|
15568
|
+
]),
|
|
15532
15569
|
discoveryMode: string(),
|
|
15533
15570
|
/**
|
|
15534
15571
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
@@ -17989,6 +18026,12 @@ Object.freeze({
|
|
|
17989
18026
|
addonId: null,
|
|
17990
18027
|
access: "create"
|
|
17991
18028
|
},
|
|
18029
|
+
"deviceManager.adoptionListCandidateFilters": {
|
|
18030
|
+
capName: "device-manager",
|
|
18031
|
+
capScope: "system",
|
|
18032
|
+
addonId: null,
|
|
18033
|
+
access: "view"
|
|
18034
|
+
},
|
|
17992
18035
|
"deviceManager.adoptionListCandidates": {
|
|
17993
18036
|
capName: "device-manager",
|
|
17994
18037
|
capScope: "system",
|
|
@@ -18037,12 +18080,30 @@ Object.freeze({
|
|
|
18037
18080
|
addonId: null,
|
|
18038
18081
|
access: "create"
|
|
18039
18082
|
},
|
|
18083
|
+
"deviceManager.discoverAllProviders": {
|
|
18084
|
+
capName: "device-manager",
|
|
18085
|
+
capScope: "system",
|
|
18086
|
+
addonId: null,
|
|
18087
|
+
access: "create"
|
|
18088
|
+
},
|
|
18040
18089
|
"deviceManager.discoverDevices": {
|
|
18041
18090
|
capName: "device-manager",
|
|
18042
18091
|
capScope: "system",
|
|
18043
18092
|
addonId: null,
|
|
18044
18093
|
access: "create"
|
|
18045
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
|
+
},
|
|
18046
18107
|
"deviceManager.enable": {
|
|
18047
18108
|
capName: "device-manager",
|
|
18048
18109
|
capScope: "system",
|
|
@@ -18193,6 +18254,18 @@ Object.freeze({
|
|
|
18193
18254
|
addonId: null,
|
|
18194
18255
|
access: "create"
|
|
18195
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
|
+
},
|
|
18196
18269
|
"deviceManager.registerDevice": {
|
|
18197
18270
|
capName: "device-manager",
|
|
18198
18271
|
capScope: "system",
|
|
@@ -18409,6 +18482,18 @@ Object.freeze({
|
|
|
18409
18482
|
addonId: null,
|
|
18410
18483
|
access: "view"
|
|
18411
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
|
+
},
|
|
18412
18497
|
"deviceProvider.getStatus": {
|
|
18413
18498
|
capName: "device-provider",
|
|
18414
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-
|
|
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(
|
|
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()
|
|
@@ -15506,6 +15532,17 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
15506
15532
|
iconUrl: string().nullable(),
|
|
15507
15533
|
color: string(),
|
|
15508
15534
|
instanceMode: string(),
|
|
15535
|
+
/**
|
|
15536
|
+
* Integration wizard `mode` (LOCKED MODEL): `standalone` (create
|
|
15537
|
+
* immediately then add devices, no config step/button), `account` (config
|
|
15538
|
+
* step), or `broker` (broker step). Derived server-side by
|
|
15539
|
+
* `getAvailableTypes` when the addon manifest omits an explicit `mode`.
|
|
15540
|
+
*/
|
|
15541
|
+
mode: _enum([
|
|
15542
|
+
"standalone",
|
|
15543
|
+
"account",
|
|
15544
|
+
"broker"
|
|
15545
|
+
]),
|
|
15509
15546
|
discoveryMode: string(),
|
|
15510
15547
|
/**
|
|
15511
15548
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
@@ -17966,6 +18003,12 @@ Object.freeze({
|
|
|
17966
18003
|
addonId: null,
|
|
17967
18004
|
access: "create"
|
|
17968
18005
|
},
|
|
18006
|
+
"deviceManager.adoptionListCandidateFilters": {
|
|
18007
|
+
capName: "device-manager",
|
|
18008
|
+
capScope: "system",
|
|
18009
|
+
addonId: null,
|
|
18010
|
+
access: "view"
|
|
18011
|
+
},
|
|
17969
18012
|
"deviceManager.adoptionListCandidates": {
|
|
17970
18013
|
capName: "device-manager",
|
|
17971
18014
|
capScope: "system",
|
|
@@ -18014,12 +18057,30 @@ Object.freeze({
|
|
|
18014
18057
|
addonId: null,
|
|
18015
18058
|
access: "create"
|
|
18016
18059
|
},
|
|
18060
|
+
"deviceManager.discoverAllProviders": {
|
|
18061
|
+
capName: "device-manager",
|
|
18062
|
+
capScope: "system",
|
|
18063
|
+
addonId: null,
|
|
18064
|
+
access: "create"
|
|
18065
|
+
},
|
|
18017
18066
|
"deviceManager.discoverDevices": {
|
|
18018
18067
|
capName: "device-manager",
|
|
18019
18068
|
capScope: "system",
|
|
18020
18069
|
addonId: null,
|
|
18021
18070
|
access: "create"
|
|
18022
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
|
+
},
|
|
18023
18084
|
"deviceManager.enable": {
|
|
18024
18085
|
capName: "device-manager",
|
|
18025
18086
|
capScope: "system",
|
|
@@ -18170,6 +18231,18 @@ Object.freeze({
|
|
|
18170
18231
|
addonId: null,
|
|
18171
18232
|
access: "create"
|
|
18172
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
|
+
},
|
|
18173
18246
|
"deviceManager.registerDevice": {
|
|
18174
18247
|
capName: "device-manager",
|
|
18175
18248
|
capScope: "system",
|
|
@@ -18386,6 +18459,18 @@ Object.freeze({
|
|
|
18386
18459
|
addonId: null,
|
|
18387
18460
|
access: "view"
|
|
18388
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
|
+
},
|
|
18389
18474
|
"deviceProvider.getStatus": {
|
|
18390
18475
|
capName: "device-provider",
|
|
18391
18476
|
capScope: "system",
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BzgDZiVU.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-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-D6Wd9iZV.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|