@attraccess/plugin-matter 0.3.0-alpha.0 → 0.4.0-nightly.1161.1
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/index.js +4394 -1647
- package/dist/migrations.js +69 -0
- package/frontend/__federation_expose_Plugin-AcefbZx2.js +2105 -0
- package/frontend/remoteEntry.js +1 -1
- package/frontend/style.css +166 -0
- package/package.json +7 -5
- package/frontend/__federation_expose_Plugin-CDuGnCB9.js +0 -783
package/dist/migrations.js
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// backend/migrations.ts
|
|
21
21
|
var migrations_exports = {};
|
|
22
22
|
__export(migrations_exports, {
|
|
23
|
+
CreateMatterBackup1793900002000: () => CreateMatterBackup1793900002000,
|
|
23
24
|
CreateMatterConnection1793900000000: () => CreateMatterConnection1793900000000,
|
|
24
25
|
CreateMatterDeviceModel1793900001000: () => CreateMatterDeviceModel1793900001000
|
|
25
26
|
});
|
|
@@ -252,8 +253,76 @@ var CreateMatterDeviceModel1793900001000 = class {
|
|
|
252
253
|
await queryRunner.query(`DROP TABLE "plugin_matter_fabrics"`);
|
|
253
254
|
}
|
|
254
255
|
};
|
|
256
|
+
|
|
257
|
+
// backend/migrations/1793900002000-create-matter-backup.ts
|
|
258
|
+
var CreateMatterBackup1793900002000 = class {
|
|
259
|
+
constructor() {
|
|
260
|
+
this.name = "CreateMatterBackup1793900002000";
|
|
261
|
+
}
|
|
262
|
+
async up(queryRunner) {
|
|
263
|
+
await queryRunner.query(`ALTER TABLE "plugin_matter_fabrics" ADD COLUMN "fabric_generation" integer`);
|
|
264
|
+
await queryRunner.query(`ALTER TABLE "plugin_matter_fabrics" ADD COLUMN "storage_instance_id" varchar`);
|
|
265
|
+
await queryRunner.query(`ALTER TABLE "plugin_matter_fabrics" ADD COLUMN "root_cert_fingerprint" varchar`);
|
|
266
|
+
await queryRunner.query(`ALTER TABLE "plugin_matter_fabrics" ADD COLUMN "recorded_at" varchar`);
|
|
267
|
+
await queryRunner.query(
|
|
268
|
+
`CREATE TABLE "plugin_matter_recovery_keys" (
|
|
269
|
+
"id" varchar PRIMARY KEY NOT NULL,
|
|
270
|
+
"key_id" varchar NOT NULL,
|
|
271
|
+
"encrypted_key" text NOT NULL,
|
|
272
|
+
"created_at" varchar NOT NULL,
|
|
273
|
+
"acknowledged_at" varchar,
|
|
274
|
+
"retired_at" varchar
|
|
275
|
+
)`
|
|
276
|
+
);
|
|
277
|
+
await queryRunner.query(
|
|
278
|
+
`CREATE UNIQUE INDEX "UQ_plugin_matter_recovery_keys_current" ON "plugin_matter_recovery_keys" ((1)) WHERE "retired_at" IS NULL`
|
|
279
|
+
);
|
|
280
|
+
await queryRunner.query(
|
|
281
|
+
`CREATE UNIQUE INDEX "UQ_plugin_matter_recovery_keys_key_id" ON "plugin_matter_recovery_keys" ("key_id")`
|
|
282
|
+
);
|
|
283
|
+
await queryRunner.query(
|
|
284
|
+
`CREATE TABLE "plugin_matter_backups" (
|
|
285
|
+
"id" varchar PRIMARY KEY NOT NULL,
|
|
286
|
+
"created_at" varchar NOT NULL,
|
|
287
|
+
"trigger" varchar NOT NULL,
|
|
288
|
+
"actor" integer,
|
|
289
|
+
"outcome" varchar NOT NULL,
|
|
290
|
+
"reason" varchar,
|
|
291
|
+
"size_bytes" integer,
|
|
292
|
+
"sha256" varchar,
|
|
293
|
+
"format_version" integer,
|
|
294
|
+
"plugin_version" varchar,
|
|
295
|
+
"sidecar_version" varchar,
|
|
296
|
+
"matter_js_version" varchar,
|
|
297
|
+
"storage_schema_version" integer,
|
|
298
|
+
"plugin_migration" varchar,
|
|
299
|
+
"fabric_id" varchar,
|
|
300
|
+
"root_cert_fingerprint" varchar,
|
|
301
|
+
"fabric_generation" integer,
|
|
302
|
+
"storage_instance_id" varchar,
|
|
303
|
+
"recovery_key_id" varchar,
|
|
304
|
+
"consistent" boolean,
|
|
305
|
+
"blob" blob,
|
|
306
|
+
CONSTRAINT "CHK_plugin_matter_backups_outcome" CHECK ("outcome" IN ('succeeded', 'failed')),
|
|
307
|
+
CONSTRAINT "CHK_plugin_matter_backups_trigger" CHECK ("trigger" IN ('manual', 'fabric_created', 'restore', 'daily', 'fabric_changed', 'pre_restore'))
|
|
308
|
+
)`
|
|
309
|
+
);
|
|
310
|
+
await queryRunner.query(
|
|
311
|
+
`CREATE INDEX "IDX_plugin_matter_backups_created_at" ON "plugin_matter_backups" ("created_at")`
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
async down(queryRunner) {
|
|
315
|
+
await queryRunner.query(`DROP TABLE "plugin_matter_backups"`);
|
|
316
|
+
await queryRunner.query(`DROP TABLE "plugin_matter_recovery_keys"`);
|
|
317
|
+
await queryRunner.query(`ALTER TABLE "plugin_matter_fabrics" DROP COLUMN "recorded_at"`);
|
|
318
|
+
await queryRunner.query(`ALTER TABLE "plugin_matter_fabrics" DROP COLUMN "root_cert_fingerprint"`);
|
|
319
|
+
await queryRunner.query(`ALTER TABLE "plugin_matter_fabrics" DROP COLUMN "storage_instance_id"`);
|
|
320
|
+
await queryRunner.query(`ALTER TABLE "plugin_matter_fabrics" DROP COLUMN "fabric_generation"`);
|
|
321
|
+
}
|
|
322
|
+
};
|
|
255
323
|
// Annotate the CommonJS export names for ESM import in node:
|
|
256
324
|
0 && (module.exports = {
|
|
325
|
+
CreateMatterBackup1793900002000,
|
|
257
326
|
CreateMatterConnection1793900000000,
|
|
258
327
|
CreateMatterDeviceModel1793900001000
|
|
259
328
|
});
|