@camstack/addon-remote-storage 1.1.9 → 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-CzMRPSNo.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-DYvD9QZ6.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-CzMRPSNo.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-DYvD9QZ6.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()
@@ -15495,6 +15521,17 @@ var AvailableIntegrationTypeSchema = object({
15495
15521
  iconUrl: string().nullable(),
15496
15522
  color: string(),
15497
15523
  instanceMode: string(),
15524
+ /**
15525
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15526
+ * immediately then add devices, no config step/button), `account` (config
15527
+ * step), or `broker` (broker step). Derived server-side by
15528
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15529
+ */
15530
+ mode: _enum([
15531
+ "standalone",
15532
+ "account",
15533
+ "broker"
15534
+ ]),
15498
15535
  discoveryMode: string(),
15499
15536
  /**
15500
15537
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17955,6 +17992,12 @@ Object.freeze({
17955
17992
  addonId: null,
17956
17993
  access: "create"
17957
17994
  },
17995
+ "deviceManager.adoptionListCandidateFilters": {
17996
+ capName: "device-manager",
17997
+ capScope: "system",
17998
+ addonId: null,
17999
+ access: "view"
18000
+ },
17958
18001
  "deviceManager.adoptionListCandidates": {
17959
18002
  capName: "device-manager",
17960
18003
  capScope: "system",
@@ -18003,12 +18046,30 @@ Object.freeze({
18003
18046
  addonId: null,
18004
18047
  access: "create"
18005
18048
  },
18049
+ "deviceManager.discoverAllProviders": {
18050
+ capName: "device-manager",
18051
+ capScope: "system",
18052
+ addonId: null,
18053
+ access: "create"
18054
+ },
18006
18055
  "deviceManager.discoverDevices": {
18007
18056
  capName: "device-manager",
18008
18057
  capScope: "system",
18009
18058
  addonId: null,
18010
18059
  access: "create"
18011
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
+ },
18012
18073
  "deviceManager.enable": {
18013
18074
  capName: "device-manager",
18014
18075
  capScope: "system",
@@ -18159,6 +18220,18 @@ Object.freeze({
18159
18220
  addonId: null,
18160
18221
  access: "create"
18161
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
+ },
18162
18235
  "deviceManager.registerDevice": {
18163
18236
  capName: "device-manager",
18164
18237
  capScope: "system",
@@ -18375,6 +18448,18 @@ Object.freeze({
18375
18448
  addonId: null,
18376
18449
  access: "view"
18377
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
+ },
18378
18463
  "deviceProvider.getStatus": {
18379
18464
  capName: "device-provider",
18380
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()
@@ -15472,6 +15498,17 @@ var AvailableIntegrationTypeSchema = object({
15472
15498
  iconUrl: string().nullable(),
15473
15499
  color: string(),
15474
15500
  instanceMode: string(),
15501
+ /**
15502
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15503
+ * immediately then add devices, no config step/button), `account` (config
15504
+ * step), or `broker` (broker step). Derived server-side by
15505
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15506
+ */
15507
+ mode: _enum([
15508
+ "standalone",
15509
+ "account",
15510
+ "broker"
15511
+ ]),
15475
15512
  discoveryMode: string(),
15476
15513
  /**
15477
15514
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17932,6 +17969,12 @@ Object.freeze({
17932
17969
  addonId: null,
17933
17970
  access: "create"
17934
17971
  },
17972
+ "deviceManager.adoptionListCandidateFilters": {
17973
+ capName: "device-manager",
17974
+ capScope: "system",
17975
+ addonId: null,
17976
+ access: "view"
17977
+ },
17935
17978
  "deviceManager.adoptionListCandidates": {
17936
17979
  capName: "device-manager",
17937
17980
  capScope: "system",
@@ -17980,12 +18023,30 @@ Object.freeze({
17980
18023
  addonId: null,
17981
18024
  access: "create"
17982
18025
  },
18026
+ "deviceManager.discoverAllProviders": {
18027
+ capName: "device-manager",
18028
+ capScope: "system",
18029
+ addonId: null,
18030
+ access: "create"
18031
+ },
17983
18032
  "deviceManager.discoverDevices": {
17984
18033
  capName: "device-manager",
17985
18034
  capScope: "system",
17986
18035
  addonId: null,
17987
18036
  access: "create"
17988
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
+ },
17989
18050
  "deviceManager.enable": {
17990
18051
  capName: "device-manager",
17991
18052
  capScope: "system",
@@ -18136,6 +18197,18 @@ Object.freeze({
18136
18197
  addonId: null,
18137
18198
  access: "create"
18138
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
+ },
18139
18212
  "deviceManager.registerDevice": {
18140
18213
  capName: "device-manager",
18141
18214
  capScope: "system",
@@ -18352,6 +18425,18 @@ Object.freeze({
18352
18425
  addonId: null,
18353
18426
  access: "view"
18354
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
+ },
18355
18440
  "deviceProvider.getStatus": {
18356
18441
  capName: "device-provider",
18357
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-CzMRPSNo.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-DYvD9QZ6.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.9",
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",