@camstack/addon-remote-storage 1.1.10 → 1.1.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/s3.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-xWLn-bqc.js");
5
+ const require_shared = require("./shared-BpumIDGo.js");
6
6
  let node_stream = require("node:stream");
7
7
  let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
8
8
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
package/dist/s3.addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-BlC4zVW3.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-fV3ZB0lu.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4
4
  import { Upload } from "@aws-sdk/lib-storage";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-xWLn-bqc.js");
5
+ const require_shared = require("./shared-BpumIDGo.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-BlC4zVW3.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-fV3ZB0lu.mjs";
2
2
  import { Client } from "ssh2";
3
3
  import * as path from "node:path";
4
4
  //#region src/providers/sftp/sftp-config-schema.ts
@@ -4652,7 +4652,7 @@ function _instanceof(cls, params = {}) {
4652
4652
  return inst;
4653
4653
  }
4654
4654
  //#endregion
4655
- //#region ../types/dist/sleep-B3AOslwX.mjs
4655
+ //#region ../types/dist/sleep-C2M2zF7x.mjs
4656
4656
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4657
4657
  EventCategory["SystemBoot"] = "system.boot";
4658
4658
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6220,6 +6220,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
6220
6220
  DeviceType["Switch"] = "switch";
6221
6221
  DeviceType["Sensor"] = "sensor";
6222
6222
  DeviceType["Thermostat"] = "thermostat";
6223
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
6224
+ * `climate-control` cap surface with `Thermostat` but renders a
6225
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
6226
+ * independent vertical/horizontal swing). Sources: native Gree, and
6227
+ * reusable by other AC integrations. */
6228
+ DeviceType["Climate"] = "climate";
6223
6229
  DeviceType["Button"] = "button";
6224
6230
  /** Generic stateless event emitter — carries a device's EXACT declared
6225
6231
  * event vocabulary verbatim (no normalization). Installed with the
@@ -8374,7 +8380,7 @@ object({
8374
8380
  /** Ms epoch when the slice was last updated (push or command). */
8375
8381
  lastFetchedAt: number()
8376
8382
  });
8377
- DeviceType.Thermostat, method(object({
8383
+ DeviceType.Thermostat, DeviceType.Climate, method(object({
8378
8384
  deviceId: number().int().nonnegative(),
8379
8385
  mode: HvacModeSchema
8380
8386
  }), _void(), {
@@ -11059,10 +11065,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
11059
11065
  id: string(),
11060
11066
  name: string(),
11061
11067
  type: string()
11062
- }))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
11068
+ }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
11063
11069
  kind: "mutation",
11064
11070
  auth: "admin"
11065
- }), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11071
+ }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11066
11072
  kind: "mutation",
11067
11073
  auth: "admin"
11068
11074
  }), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
@@ -12783,7 +12789,10 @@ method(object({
12783
12789
  }), FieldProbeResultSchema, {
12784
12790
  kind: "mutation",
12785
12791
  auth: "admin"
12786
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12792
+ }), method(object({
12793
+ addonId: string(),
12794
+ integrationId: string()
12795
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12787
12796
  addonId: string(),
12788
12797
  integrationId: string()
12789
12798
  }), AdoptionStatusSchema, {
@@ -12798,7 +12807,24 @@ method(object({
12798
12807
  }), method(ResyncInputSchema, ResyncResultSchema, {
12799
12808
  kind: "mutation",
12800
12809
  auth: "admin"
12810
+ }), method(object({}), object({ providers: array(object({
12811
+ addonId: string(),
12812
+ label: string()
12813
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12814
+ addonId: string(),
12815
+ label: string(),
12816
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12817
+ error: string().nullable()
12818
+ })).readonly() }), {
12819
+ kind: "mutation",
12820
+ auth: "admin"
12801
12821
  }), method(object({
12822
+ addonId: string(),
12823
+ params: record(string(), unknown()).optional()
12824
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12825
+ kind: "mutation",
12826
+ auth: "admin"
12827
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12802
12828
  deviceId: number(),
12803
12829
  key: string(),
12804
12830
  value: unknown()
@@ -17966,6 +17992,12 @@ Object.freeze({
17966
17992
  addonId: null,
17967
17993
  access: "create"
17968
17994
  },
17995
+ "deviceManager.adoptionListCandidateFilters": {
17996
+ capName: "device-manager",
17997
+ capScope: "system",
17998
+ addonId: null,
17999
+ access: "view"
18000
+ },
17969
18001
  "deviceManager.adoptionListCandidates": {
17970
18002
  capName: "device-manager",
17971
18003
  capScope: "system",
@@ -18014,12 +18046,30 @@ Object.freeze({
18014
18046
  addonId: null,
18015
18047
  access: "create"
18016
18048
  },
18049
+ "deviceManager.discoverAllProviders": {
18050
+ capName: "device-manager",
18051
+ capScope: "system",
18052
+ addonId: null,
18053
+ access: "create"
18054
+ },
18017
18055
  "deviceManager.discoverDevices": {
18018
18056
  capName: "device-manager",
18019
18057
  capScope: "system",
18020
18058
  addonId: null,
18021
18059
  access: "create"
18022
18060
  },
18061
+ "deviceManager.discoverProvider": {
18062
+ capName: "device-manager",
18063
+ capScope: "system",
18064
+ addonId: null,
18065
+ access: "create"
18066
+ },
18067
+ "deviceManager.discoveryProviders": {
18068
+ capName: "device-manager",
18069
+ capScope: "system",
18070
+ addonId: null,
18071
+ access: "view"
18072
+ },
18023
18073
  "deviceManager.enable": {
18024
18074
  capName: "device-manager",
18025
18075
  capScope: "system",
@@ -18170,6 +18220,18 @@ Object.freeze({
18170
18220
  addonId: null,
18171
18221
  access: "create"
18172
18222
  },
18223
+ "deviceManager.providerCreationType": {
18224
+ capName: "device-manager",
18225
+ capScope: "system",
18226
+ addonId: null,
18227
+ access: "view"
18228
+ },
18229
+ "deviceManager.providerDiscoveryParamsSchema": {
18230
+ capName: "device-manager",
18231
+ capScope: "system",
18232
+ addonId: null,
18233
+ access: "view"
18234
+ },
18173
18235
  "deviceManager.registerDevice": {
18174
18236
  capName: "device-manager",
18175
18237
  capScope: "system",
@@ -18386,6 +18448,18 @@ Object.freeze({
18386
18448
  addonId: null,
18387
18449
  access: "view"
18388
18450
  },
18451
+ "deviceProvider.getDiscoveryParamsSchema": {
18452
+ capName: "device-provider",
18453
+ capScope: "system",
18454
+ addonId: null,
18455
+ access: "view"
18456
+ },
18457
+ "deviceProvider.getManualCreationType": {
18458
+ capName: "device-provider",
18459
+ capScope: "system",
18460
+ addonId: null,
18461
+ access: "view"
18462
+ },
18389
18463
  "deviceProvider.getStatus": {
18390
18464
  capName: "device-provider",
18391
18465
  capScope: "system",
@@ -4629,7 +4629,7 @@ function _instanceof(cls, params = {}) {
4629
4629
  return inst;
4630
4630
  }
4631
4631
  //#endregion
4632
- //#region ../types/dist/sleep-B3AOslwX.mjs
4632
+ //#region ../types/dist/sleep-C2M2zF7x.mjs
4633
4633
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4634
4634
  EventCategory["SystemBoot"] = "system.boot";
4635
4635
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6197,6 +6197,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
6197
6197
  DeviceType["Switch"] = "switch";
6198
6198
  DeviceType["Sensor"] = "sensor";
6199
6199
  DeviceType["Thermostat"] = "thermostat";
6200
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
6201
+ * `climate-control` cap surface with `Thermostat` but renders a
6202
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
6203
+ * independent vertical/horizontal swing). Sources: native Gree, and
6204
+ * reusable by other AC integrations. */
6205
+ DeviceType["Climate"] = "climate";
6200
6206
  DeviceType["Button"] = "button";
6201
6207
  /** Generic stateless event emitter — carries a device's EXACT declared
6202
6208
  * event vocabulary verbatim (no normalization). Installed with the
@@ -8351,7 +8357,7 @@ object({
8351
8357
  /** Ms epoch when the slice was last updated (push or command). */
8352
8358
  lastFetchedAt: number()
8353
8359
  });
8354
- DeviceType.Thermostat, method(object({
8360
+ DeviceType.Thermostat, DeviceType.Climate, method(object({
8355
8361
  deviceId: number().int().nonnegative(),
8356
8362
  mode: HvacModeSchema
8357
8363
  }), _void(), {
@@ -11036,10 +11042,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
11036
11042
  id: string(),
11037
11043
  name: string(),
11038
11044
  type: string()
11039
- }))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
11045
+ }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
11040
11046
  kind: "mutation",
11041
11047
  auth: "admin"
11042
- }), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11048
+ }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11043
11049
  kind: "mutation",
11044
11050
  auth: "admin"
11045
11051
  }), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
@@ -12760,7 +12766,10 @@ method(object({
12760
12766
  }), FieldProbeResultSchema, {
12761
12767
  kind: "mutation",
12762
12768
  auth: "admin"
12763
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12769
+ }), method(object({
12770
+ addonId: string(),
12771
+ integrationId: string()
12772
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12764
12773
  addonId: string(),
12765
12774
  integrationId: string()
12766
12775
  }), AdoptionStatusSchema, {
@@ -12775,7 +12784,24 @@ method(object({
12775
12784
  }), method(ResyncInputSchema, ResyncResultSchema, {
12776
12785
  kind: "mutation",
12777
12786
  auth: "admin"
12787
+ }), method(object({}), object({ providers: array(object({
12788
+ addonId: string(),
12789
+ label: string()
12790
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12791
+ addonId: string(),
12792
+ label: string(),
12793
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12794
+ error: string().nullable()
12795
+ })).readonly() }), {
12796
+ kind: "mutation",
12797
+ auth: "admin"
12778
12798
  }), method(object({
12799
+ addonId: string(),
12800
+ params: record(string(), unknown()).optional()
12801
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12802
+ kind: "mutation",
12803
+ auth: "admin"
12804
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12779
12805
  deviceId: number(),
12780
12806
  key: string(),
12781
12807
  value: unknown()
@@ -17943,6 +17969,12 @@ Object.freeze({
17943
17969
  addonId: null,
17944
17970
  access: "create"
17945
17971
  },
17972
+ "deviceManager.adoptionListCandidateFilters": {
17973
+ capName: "device-manager",
17974
+ capScope: "system",
17975
+ addonId: null,
17976
+ access: "view"
17977
+ },
17946
17978
  "deviceManager.adoptionListCandidates": {
17947
17979
  capName: "device-manager",
17948
17980
  capScope: "system",
@@ -17991,12 +18023,30 @@ Object.freeze({
17991
18023
  addonId: null,
17992
18024
  access: "create"
17993
18025
  },
18026
+ "deviceManager.discoverAllProviders": {
18027
+ capName: "device-manager",
18028
+ capScope: "system",
18029
+ addonId: null,
18030
+ access: "create"
18031
+ },
17994
18032
  "deviceManager.discoverDevices": {
17995
18033
  capName: "device-manager",
17996
18034
  capScope: "system",
17997
18035
  addonId: null,
17998
18036
  access: "create"
17999
18037
  },
18038
+ "deviceManager.discoverProvider": {
18039
+ capName: "device-manager",
18040
+ capScope: "system",
18041
+ addonId: null,
18042
+ access: "create"
18043
+ },
18044
+ "deviceManager.discoveryProviders": {
18045
+ capName: "device-manager",
18046
+ capScope: "system",
18047
+ addonId: null,
18048
+ access: "view"
18049
+ },
18000
18050
  "deviceManager.enable": {
18001
18051
  capName: "device-manager",
18002
18052
  capScope: "system",
@@ -18147,6 +18197,18 @@ Object.freeze({
18147
18197
  addonId: null,
18148
18198
  access: "create"
18149
18199
  },
18200
+ "deviceManager.providerCreationType": {
18201
+ capName: "device-manager",
18202
+ capScope: "system",
18203
+ addonId: null,
18204
+ access: "view"
18205
+ },
18206
+ "deviceManager.providerDiscoveryParamsSchema": {
18207
+ capName: "device-manager",
18208
+ capScope: "system",
18209
+ addonId: null,
18210
+ access: "view"
18211
+ },
18150
18212
  "deviceManager.registerDevice": {
18151
18213
  capName: "device-manager",
18152
18214
  capScope: "system",
@@ -18363,6 +18425,18 @@ Object.freeze({
18363
18425
  addonId: null,
18364
18426
  access: "view"
18365
18427
  },
18428
+ "deviceProvider.getDiscoveryParamsSchema": {
18429
+ capName: "device-provider",
18430
+ capScope: "system",
18431
+ addonId: null,
18432
+ access: "view"
18433
+ },
18434
+ "deviceProvider.getManualCreationType": {
18435
+ capName: "device-provider",
18436
+ capScope: "system",
18437
+ addonId: null,
18438
+ access: "view"
18439
+ },
18366
18440
  "deviceProvider.getStatus": {
18367
18441
  capName: "device-provider",
18368
18442
  capScope: "system",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-xWLn-bqc.js");
5
+ const require_shared = require("./shared-BpumIDGo.js");
6
6
  let node_stream = require("node:stream");
7
7
  let webdav = require("webdav");
8
8
  //#region src/providers/webdav/webdav-config-schema.ts
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-BlC4zVW3.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-fV3ZB0lu.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { AuthType, createClient } from "webdav";
4
4
  //#region src/providers/webdav/webdav-config-schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",