@kohost/api-client 3.0.0-beta.84 → 3.0.0-beta.85

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.
@@ -46,7 +46,8 @@ export interface Credential {
46
46
  | string
47
47
  | {
48
48
  [k: string]: unknown;
49
- };
49
+ }
50
+ | null;
50
51
  systemId?: string;
51
52
  [k: string]: unknown;
52
53
  }
@@ -109,7 +109,6 @@ export interface Dimmer {
109
109
  | "discPlayer"
110
110
  | "mediaPlayer"
111
111
  | "uncontrolledDevice";
112
- subType?: string | null;
113
112
  supportedNotifications?: SupportedNotifications;
114
113
  notification?: Notification;
115
114
  driver:
@@ -141,7 +140,7 @@ export interface Dimmer {
141
140
  | "cloudflare-stream"
142
141
  | "insperia-privacy";
143
142
  offline?: boolean;
144
- level: number;
143
+ level: number | null;
145
144
  systemId?: string;
146
145
  watts?: number;
147
146
  [k: string]: unknown;
@@ -140,7 +140,6 @@ export interface Dimmer {
140
140
  | "discPlayer"
141
141
  | "mediaPlayer"
142
142
  | "uncontrolledDevice";
143
- subType?: string | null;
144
143
  supportedNotifications?: SupportedNotifications;
145
144
  notification?: Notification;
146
145
  driver:
@@ -172,7 +171,7 @@ export interface Dimmer {
172
171
  | "cloudflare-stream"
173
172
  | "insperia-privacy";
174
173
  offline?: boolean;
175
- level: number;
174
+ level: number | null;
176
175
  systemId?: string;
177
176
  watts?: number;
178
177
  [k: string]: unknown;
@@ -19,7 +19,7 @@ export interface Scene {
19
19
  }[];
20
20
  dimmers?: {
21
21
  id?: string;
22
- level?: number;
22
+ level?: number | null;
23
23
  [k: string]: unknown;
24
24
  }[];
25
25
  windowCoverings?: {
@@ -5,11 +5,6 @@
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
- export type CreatedAt =
9
- | string
10
- | {
11
- [k: string]: unknown;
12
- };
13
8
  export type Date =
14
9
  | string
15
10
  | {
@@ -21,17 +16,14 @@ export type Date =
21
16
  */
22
17
  export interface Ticket {
23
18
  id: string;
24
- conversation: {
25
- id: string;
26
- userId: string;
27
- userName?: string;
28
- systemId?: string;
29
- systemName?: string;
30
- timestamp: CreatedAt;
31
- body: string;
32
- readBy?: string[];
33
- media?: MediaFile | null;
34
- }[];
19
+ conversation: (
20
+ | {
21
+ [k: string]: unknown;
22
+ }
23
+ | {
24
+ [k: string]: unknown;
25
+ }
26
+ )[];
35
27
  requester: {
36
28
  systemId?: string;
37
29
  systemName?: string;
@@ -35,7 +35,7 @@
35
35
  "type": "string"
36
36
  },
37
37
  "expires": {
38
- "type": ["string", "object"]
38
+ "type": ["string", "object", "null"]
39
39
  },
40
40
  "systemId": {
41
41
  "$ref": "definitions.json#/definitions/systemId"
@@ -14,9 +14,6 @@
14
14
  "type": {
15
15
  "$ref": "definitions.json#/definitions/type"
16
16
  },
17
- "subType": {
18
- "$ref": "definitions.json#/definitions/subType"
19
- },
20
17
  "supportedNotifications": {
21
18
  "$ref": "definitions.json#/definitions/supportedNotifications"
22
19
  },
@@ -30,7 +27,7 @@
30
27
  "type": "boolean"
31
28
  },
32
29
  "level": {
33
- "type": "number",
30
+ "type": ["number", "null"],
34
31
  "minimum": 0,
35
32
  "maximum": 100
36
33
  },
@@ -47,7 +47,14 @@
47
47
  "anyOf": [{ "$ref": "mediaFile.json" }, { "type": "null" }]
48
48
  }
49
49
  },
50
- "required": ["userId", "id", "timestamp", "body"]
50
+ "anyOf": [
51
+ {
52
+ "required": ["id", "userId", "timestamp", "body"]
53
+ },
54
+ {
55
+ "required": ["id", "systemId", "timestamp", "body"]
56
+ }
57
+ ]
51
58
  }
52
59
  },
53
60
  "requester": {
@@ -8669,9 +8669,6 @@ var require_dimmer = __commonJS({
8669
8669
  type: {
8670
8670
  $ref: "definitions.json#/definitions/type"
8671
8671
  },
8672
- subType: {
8673
- $ref: "definitions.json#/definitions/subType"
8674
- },
8675
8672
  supportedNotifications: {
8676
8673
  $ref: "definitions.json#/definitions/supportedNotifications"
8677
8674
  },
@@ -8685,7 +8682,7 @@ var require_dimmer = __commonJS({
8685
8682
  type: "boolean"
8686
8683
  },
8687
8684
  level: {
8688
- type: "number",
8685
+ type: ["number", "null"],
8689
8686
  minimum: 0,
8690
8687
  maximum: 100
8691
8688
  },
@@ -11976,7 +11973,14 @@ var require_ticket = __commonJS({
11976
11973
  anyOf: [{ $ref: "mediaFile.json" }, { type: "null" }]
11977
11974
  }
11978
11975
  },
11979
- required: ["userId", "id", "timestamp", "body"]
11976
+ anyOf: [
11977
+ {
11978
+ required: ["id", "userId", "timestamp", "body"]
11979
+ },
11980
+ {
11981
+ required: ["id", "systemId", "timestamp", "body"]
11982
+ }
11983
+ ]
11980
11984
  }
11981
11985
  },
11982
11986
  requester: {
@@ -14815,7 +14819,7 @@ var require_credential = __commonJS({
14815
14819
  type: "string"
14816
14820
  },
14817
14821
  expires: {
14818
- type: ["string", "object"]
14822
+ type: ["string", "object", "null"]
14819
14823
  },
14820
14824
  systemId: {
14821
14825
  $ref: "definitions.json#/definitions/systemId"