@matrix-widget-toolkit/api 5.0.1 → 5.0.3

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.
@@ -50,6 +50,7 @@ export type StateEventCreateContent = {
50
50
  room_version?: string;
51
51
  creator?: string;
52
52
  additional_creators?: string[];
53
+ type?: string;
53
54
  };
54
55
  export declare const createEventSchema: Joi.ObjectSchema<StateEvent<StateEventCreateContent>>;
55
56
  /**
@@ -224,6 +224,8 @@ var createEventSchema = Joi__default.default.object(__assign$2(__assign$2({}, ev
224
224
  creator: Joi__default.default.string().optional(),
225
225
  // Room version 12 introduces the additional_creators field.
226
226
  additional_creators: Joi__default.default.array().items(Joi__default.default.string()).optional(),
227
+ // Optional room type
228
+ type: Joi__default.default.string().optional(),
227
229
  })
228
230
  .unknown()
229
231
  .required() })).unknown();
@@ -50,6 +50,7 @@ export type StateEventCreateContent = {
50
50
  room_version?: string;
51
51
  creator?: string;
52
52
  additional_creators?: string[];
53
+ type?: string;
53
54
  };
54
55
  export declare const createEventSchema: Joi.ObjectSchema<StateEvent<StateEventCreateContent>>;
55
56
  /**
@@ -218,6 +218,8 @@ var createEventSchema = Joi.object(__assign$2(__assign$2({}, eventSchemaBasicPro
218
218
  creator: Joi.string().optional(),
219
219
  // Room version 12 introduces the additional_creators field.
220
220
  additional_creators: Joi.array().items(Joi.string()).optional(),
221
+ // Optional room type
222
+ type: Joi.string().optional(),
221
223
  })
222
224
  .unknown()
223
225
  .required() })).unknown();
package/build/index.d.ts CHANGED
@@ -477,6 +477,7 @@ export declare type StateEventCreateContent = {
477
477
  room_version?: string;
478
478
  creator?: string;
479
479
  additional_creators?: string[];
480
+ type?: string;
480
481
  };
481
482
 
482
483
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matrix-widget-toolkit/api",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "A simplified layer on top of matrix-widget-api to use build widgets.",
5
5
  "author": "Nordeck IT + Consulting GmbH",
6
6
  "license": "Apache-2.0",
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "type": "module",
24
24
  "devDependencies": {
25
- "@rollup/plugin-commonjs": "28.0.6",
26
- "@types/node": "22.15.35",
25
+ "@rollup/plugin-commonjs": "28.0.9",
26
+ "@types/node": "22.19.3",
27
27
  "@types/qs": "6.14.0",
28
- "@vitest/coverage-v8": "3.2.4",
29
- "typescript": "5.8.3",
30
- "vite": "6.3.5",
31
- "vitest": "3.2.4"
28
+ "@vitest/coverage-v8": "4.0.16",
29
+ "typescript": "5.9.3",
30
+ "vite": "7.3.0",
31
+ "vitest": "4.0.16"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsc && rollup --config ../../rollup.config.mjs",
@@ -46,10 +46,10 @@
46
46
  "clean:cache": "echo 'script not implemented package'"
47
47
  },
48
48
  "dependencies": {
49
- "joi": "17.13.3",
50
- "matrix-widget-api": "1.13.1",
51
- "qs": "6.14.0",
52
- "rxjs": "7.8.2"
49
+ "joi": "^17.13.3",
50
+ "matrix-widget-api": "^1.13.1",
51
+ "qs": "^6.14.1",
52
+ "rxjs": "^7.8.2"
53
53
  },
54
54
  "repository": {
55
55
  "type": "git",