@seamapi/types 1.177.0 → 1.177.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/connect.cjs CHANGED
@@ -39,29 +39,134 @@ var common_failed_action_attempt = common_action_attempt.extend({
39
39
  result: zod.z.null()
40
40
  });
41
41
 
42
- // src/lib/seam/connect/models/action-attempts/lock-door.ts
43
- var action_type = zod.z.literal("LOCK_DOOR");
42
+ // src/lib/seam/connect/models/action-attempts/deprecated.ts
44
43
  var error = zod.z.object({
45
44
  type: zod.z.string(),
46
45
  message: zod.z.string()
47
46
  });
48
- var result = zod.z.object({});
47
+ var result = zod.z.any();
48
+ var sync_access_codes_action_attempt = zod.z.discriminatedUnion("status", [
49
+ common_pending_action_attempt.extend({
50
+ action_type: zod.z.literal("SYNC_ACCESS_CODES")
51
+ }),
52
+ common_succeeded_action_attempt.extend({
53
+ action_type: zod.z.literal("SYNC_ACCESS_CODES"),
54
+ result
55
+ }),
56
+ common_failed_action_attempt.extend({
57
+ action_type: zod.z.literal("SYNC_ACCESS_CODES"),
58
+ error
59
+ })
60
+ ]);
61
+ var create_access_code_action_attempt = zod.z.discriminatedUnion("status", [
62
+ common_pending_action_attempt.extend({
63
+ action_type: zod.z.literal("CREATE_ACCESS_CODE")
64
+ }),
65
+ common_succeeded_action_attempt.extend({
66
+ action_type: zod.z.literal("CREATE_ACCESS_CODE"),
67
+ result
68
+ }),
69
+ common_failed_action_attempt.extend({
70
+ action_type: zod.z.literal("CREATE_ACCESS_CODE"),
71
+ error
72
+ })
73
+ ]);
74
+ var delete_access_code_action_attempt = zod.z.discriminatedUnion("status", [
75
+ common_pending_action_attempt.extend({
76
+ action_type: zod.z.literal("DELETE_ACCESS_CODE")
77
+ }),
78
+ common_succeeded_action_attempt.extend({
79
+ action_type: zod.z.literal("DELETE_ACCESS_CODE"),
80
+ result
81
+ }),
82
+ common_failed_action_attempt.extend({
83
+ action_type: zod.z.literal("DELETE_ACCESS_CODE"),
84
+ error
85
+ })
86
+ ]);
87
+ var update_access_code_action_attempt = zod.z.discriminatedUnion("status", [
88
+ common_pending_action_attempt.extend({
89
+ action_type: zod.z.literal("UPDATE_ACCESS_CODE")
90
+ }),
91
+ common_succeeded_action_attempt.extend({
92
+ action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
93
+ result
94
+ }),
95
+ common_failed_action_attempt.extend({
96
+ action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
97
+ error
98
+ })
99
+ ]);
100
+ var create_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
101
+ common_pending_action_attempt.extend({
102
+ action_type: zod.z.literal("CREATE_NOISE_THRESHOLD")
103
+ }),
104
+ common_succeeded_action_attempt.extend({
105
+ action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
106
+ result
107
+ }),
108
+ common_failed_action_attempt.extend({
109
+ action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
110
+ error
111
+ })
112
+ ]);
113
+ var delete_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
114
+ common_pending_action_attempt.extend({
115
+ action_type: zod.z.literal("DELETE_NOISE_THRESHOLD")
116
+ }),
117
+ common_succeeded_action_attempt.extend({
118
+ action_type: zod.z.literal("DELETE_NOISE_THRESHOLD"),
119
+ result
120
+ }),
121
+ common_failed_action_attempt.extend({
122
+ action_type: zod.z.literal("DELETE_NOISE_THRESHOLD"),
123
+ error
124
+ })
125
+ ]);
126
+ var update_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
127
+ common_pending_action_attempt.extend({
128
+ action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD")
129
+ }),
130
+ common_succeeded_action_attempt.extend({
131
+ action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
132
+ result
133
+ }),
134
+ common_failed_action_attempt.extend({
135
+ action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
136
+ error
137
+ })
138
+ ]);
139
+ var deprecated_action_attempts = [
140
+ ...sync_access_codes_action_attempt.options,
141
+ ...create_access_code_action_attempt.options,
142
+ ...delete_access_code_action_attempt.options,
143
+ ...update_access_code_action_attempt.options,
144
+ ...create_noise_threshold_action_attempt.options,
145
+ ...delete_noise_threshold_action_attempt.options,
146
+ ...update_noise_threshold_action_attempt.options
147
+ ];
148
+ var action_type = zod.z.literal("LOCK_DOOR");
149
+ var error2 = zod.z.object({
150
+ type: zod.z.string(),
151
+ message: zod.z.string()
152
+ });
153
+ var result2 = zod.z.object({});
49
154
  var lock_door_action_attempt = zod.z.discriminatedUnion("status", [
50
155
  common_pending_action_attempt.extend({
51
156
  action_type
52
157
  }).describe("Locking door."),
53
158
  common_succeeded_action_attempt.extend({
54
159
  action_type,
55
- result
160
+ result: result2
56
161
  }).describe("Locking door succeeded."),
57
- common_failed_action_attempt.extend({ action_type, error }).describe("Locking door failed.")
162
+ common_failed_action_attempt.extend({ action_type, error: error2 }).describe("Locking door failed.")
58
163
  ]);
59
164
  var action_type2 = zod.z.literal("RESET_SANDBOX_WORKSPACE");
60
- var error2 = zod.z.object({
165
+ var error3 = zod.z.object({
61
166
  type: zod.z.string(),
62
167
  message: zod.z.string()
63
168
  });
64
- var result2 = zod.z.object({});
169
+ var result3 = zod.z.object({});
65
170
  var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
66
171
  "status",
67
172
  [
@@ -70,84 +175,84 @@ var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
70
175
  }).describe("Resetting sandbox workspace."),
71
176
  common_succeeded_action_attempt.extend({
72
177
  action_type: action_type2,
73
- result: result2
178
+ result: result3
74
179
  }).describe("Resetting sandbox workspace succeeded."),
75
180
  common_failed_action_attempt.extend({
76
181
  action_type: action_type2,
77
- error: error2
182
+ error: error3
78
183
  }).describe("Resetting sandbox workspace failed.")
79
184
  ]
80
185
  );
81
186
  var action_type3 = zod.z.literal("SET_COOL");
82
- var error3 = zod.z.object({
187
+ var error4 = zod.z.object({
83
188
  type: zod.z.string(),
84
189
  message: zod.z.string()
85
190
  });
86
- var result3 = zod.z.object({});
191
+ var result4 = zod.z.object({});
87
192
  var set_cool_action_attempt = zod.z.discriminatedUnion("status", [
88
193
  common_pending_action_attempt.extend({
89
194
  action_type: action_type3
90
195
  }).describe("Setting HVAC to cool."),
91
196
  common_succeeded_action_attempt.extend({
92
197
  action_type: action_type3,
93
- result: result3
198
+ result: result4
94
199
  }).describe("Setting HVAC to cool succeeded."),
95
- common_failed_action_attempt.extend({ action_type: action_type3, error: error3 }).describe("Setting HVAC to cool failed.")
200
+ common_failed_action_attempt.extend({ action_type: action_type3, error: error4 }).describe("Setting HVAC to cool failed.")
96
201
  ]);
97
202
  var action_type4 = zod.z.literal("SET_FAN_MODE");
98
- var error4 = zod.z.object({
203
+ var error5 = zod.z.object({
99
204
  type: zod.z.string(),
100
205
  message: zod.z.string()
101
206
  });
102
- var result4 = zod.z.object({});
207
+ var result5 = zod.z.object({});
103
208
  var set_fan_mode_action_attempt = zod.z.discriminatedUnion("status", [
104
209
  common_pending_action_attempt.extend({
105
210
  action_type: action_type4
106
211
  }).describe("Setting fan mode."),
107
212
  common_succeeded_action_attempt.extend({
108
213
  action_type: action_type4,
109
- result: result4
214
+ result: result5
110
215
  }).describe("Setting fan mode succeeded."),
111
- common_failed_action_attempt.extend({ action_type: action_type4, error: error4 }).describe("Setting fan mode failed.")
216
+ common_failed_action_attempt.extend({ action_type: action_type4, error: error5 }).describe("Setting fan mode failed.")
112
217
  ]);
113
218
  var action_type5 = zod.z.literal("SET_HEAT");
114
- var error5 = zod.z.object({
219
+ var error6 = zod.z.object({
115
220
  type: zod.z.string(),
116
221
  message: zod.z.string()
117
222
  });
118
- var result5 = zod.z.object({});
223
+ var result6 = zod.z.object({});
119
224
  var set_heat_action_attempt = zod.z.discriminatedUnion("status", [
120
225
  common_pending_action_attempt.extend({
121
226
  action_type: action_type5
122
227
  }).describe("Setting HVAC to heat mode."),
123
228
  common_succeeded_action_attempt.extend({
124
229
  action_type: action_type5,
125
- result: result5
230
+ result: result6
126
231
  }).describe("Setting HVAC to heat mode succeeded."),
127
- common_failed_action_attempt.extend({ action_type: action_type5, error: error5 }).describe("Setting HVAC to heat mode failed.")
232
+ common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Setting HVAC to heat mode failed.")
128
233
  ]);
129
234
  var action_type6 = zod.z.literal("SET_HEAT_COOL");
130
- var error6 = zod.z.object({
235
+ var error7 = zod.z.object({
131
236
  type: zod.z.string(),
132
237
  message: zod.z.string()
133
238
  });
134
- var result6 = zod.z.object({});
239
+ var result7 = zod.z.object({});
135
240
  var set_heat_cool_action_attempt = zod.z.discriminatedUnion("status", [
136
241
  common_pending_action_attempt.extend({
137
242
  action_type: action_type6
138
243
  }).describe("Setting HVAC to heat-cool mode."),
139
244
  common_succeeded_action_attempt.extend({
140
245
  action_type: action_type6,
141
- result: result6
246
+ result: result7
142
247
  }).describe("Setting HVAC to heat-cool mode succeeded."),
143
- common_failed_action_attempt.extend({ action_type: action_type6, error: error6 }).describe("Setting heat-cool mode failed.")
248
+ common_failed_action_attempt.extend({ action_type: action_type6, error: error7 }).describe("Setting heat-cool mode failed.")
144
249
  ]);
145
250
  var action_type7 = zod.z.literal("SET_THERMOSTAT_OFF");
146
- var error7 = zod.z.object({
251
+ var error8 = zod.z.object({
147
252
  type: zod.z.string(),
148
253
  message: zod.z.string()
149
254
  });
150
- var result7 = zod.z.object({});
255
+ var result8 = zod.z.object({});
151
256
  var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
152
257
  "status",
153
258
  [
@@ -156,26 +261,26 @@ var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
156
261
  }).describe("Turning HVAC off."),
157
262
  common_succeeded_action_attempt.extend({
158
263
  action_type: action_type7,
159
- result: result7
264
+ result: result8
160
265
  }).describe("Turning HVAC off succeeded."),
161
- common_failed_action_attempt.extend({ action_type: action_type7, error: error7 }).describe("Turning HVAC off failed.")
266
+ common_failed_action_attempt.extend({ action_type: action_type7, error: error8 }).describe("Turning HVAC off failed.")
162
267
  ]
163
268
  );
164
269
  var action_type8 = zod.z.literal("UNLOCK_DOOR");
165
- var error8 = zod.z.object({
270
+ var error9 = zod.z.object({
166
271
  type: zod.z.string(),
167
272
  message: zod.z.string()
168
273
  });
169
- var result8 = zod.z.object({});
274
+ var result9 = zod.z.object({});
170
275
  var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
171
276
  common_pending_action_attempt.extend({
172
277
  action_type: action_type8
173
278
  }).describe("Unlocking door."),
174
279
  common_succeeded_action_attempt.extend({
175
280
  action_type: action_type8,
176
- result: result8
281
+ result: result9
177
282
  }).describe("Unlocking door succeeded."),
178
- common_failed_action_attempt.extend({ action_type: action_type8, error: error8 }).describe("Unlocking door failed.")
283
+ common_failed_action_attempt.extend({ action_type: action_type8, error: error9 }).describe("Unlocking door failed.")
179
284
  ]);
180
285
 
181
286
  // src/lib/seam/connect/models/action-attempts/action-attempt.ts
@@ -187,7 +292,8 @@ var action_attempt = zod.z.union([
187
292
  ...set_heat_action_attempt.options,
188
293
  ...set_heat_cool_action_attempt.options,
189
294
  ...set_fan_mode_action_attempt.options,
190
- ...set_thermostat_off_action_attempt.options
295
+ ...set_thermostat_off_action_attempt.options,
296
+ ...deprecated_action_attempts
191
297
  ]);
192
298
  zod.z.record(
193
299
  zod.z.string().max(40),
@@ -1557,7 +1663,482 @@ var openapi_default = {
1557
1663
  format: "uuid",
1558
1664
  type: "string"
1559
1665
  },
1560
- action_type: { enum: ["SET_HEAT"], type: "string" },
1666
+ action_type: { enum: ["SET_HEAT"], type: "string" },
1667
+ error: {
1668
+ properties: {
1669
+ message: { type: "string" },
1670
+ type: { type: "string" }
1671
+ },
1672
+ required: ["type", "message"],
1673
+ type: "object"
1674
+ },
1675
+ result: { format: "null", nullable: true, type: "string" },
1676
+ status: { enum: ["error"], type: "string" }
1677
+ },
1678
+ required: [
1679
+ "action_attempt_id",
1680
+ "status",
1681
+ "result",
1682
+ "action_type",
1683
+ "error"
1684
+ ],
1685
+ type: "object"
1686
+ },
1687
+ {
1688
+ description: "Setting HVAC to heat-cool mode.",
1689
+ properties: {
1690
+ action_attempt_id: {
1691
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1692
+ format: "uuid",
1693
+ type: "string"
1694
+ },
1695
+ action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
1696
+ error: { format: "null", nullable: true, type: "string" },
1697
+ result: { format: "null", nullable: true, type: "string" },
1698
+ status: { enum: ["pending"], type: "string" }
1699
+ },
1700
+ required: [
1701
+ "action_attempt_id",
1702
+ "status",
1703
+ "result",
1704
+ "error",
1705
+ "action_type"
1706
+ ],
1707
+ type: "object"
1708
+ },
1709
+ {
1710
+ description: "Setting HVAC to heat-cool mode succeeded.",
1711
+ properties: {
1712
+ action_attempt_id: {
1713
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1714
+ format: "uuid",
1715
+ type: "string"
1716
+ },
1717
+ action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
1718
+ error: { format: "null", nullable: true, type: "string" },
1719
+ result: { properties: {}, type: "object" },
1720
+ status: { enum: ["success"], type: "string" }
1721
+ },
1722
+ required: [
1723
+ "action_attempt_id",
1724
+ "status",
1725
+ "error",
1726
+ "action_type",
1727
+ "result"
1728
+ ],
1729
+ type: "object"
1730
+ },
1731
+ {
1732
+ description: "Setting heat-cool mode failed.",
1733
+ properties: {
1734
+ action_attempt_id: {
1735
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1736
+ format: "uuid",
1737
+ type: "string"
1738
+ },
1739
+ action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
1740
+ error: {
1741
+ properties: {
1742
+ message: { type: "string" },
1743
+ type: { type: "string" }
1744
+ },
1745
+ required: ["type", "message"],
1746
+ type: "object"
1747
+ },
1748
+ result: { format: "null", nullable: true, type: "string" },
1749
+ status: { enum: ["error"], type: "string" }
1750
+ },
1751
+ required: [
1752
+ "action_attempt_id",
1753
+ "status",
1754
+ "result",
1755
+ "action_type",
1756
+ "error"
1757
+ ],
1758
+ type: "object"
1759
+ },
1760
+ {
1761
+ description: "Setting fan mode.",
1762
+ properties: {
1763
+ action_attempt_id: {
1764
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1765
+ format: "uuid",
1766
+ type: "string"
1767
+ },
1768
+ action_type: { enum: ["SET_FAN_MODE"], type: "string" },
1769
+ error: { format: "null", nullable: true, type: "string" },
1770
+ result: { format: "null", nullable: true, type: "string" },
1771
+ status: { enum: ["pending"], type: "string" }
1772
+ },
1773
+ required: [
1774
+ "action_attempt_id",
1775
+ "status",
1776
+ "result",
1777
+ "error",
1778
+ "action_type"
1779
+ ],
1780
+ type: "object"
1781
+ },
1782
+ {
1783
+ description: "Setting fan mode succeeded.",
1784
+ properties: {
1785
+ action_attempt_id: {
1786
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1787
+ format: "uuid",
1788
+ type: "string"
1789
+ },
1790
+ action_type: { enum: ["SET_FAN_MODE"], type: "string" },
1791
+ error: { format: "null", nullable: true, type: "string" },
1792
+ result: { properties: {}, type: "object" },
1793
+ status: { enum: ["success"], type: "string" }
1794
+ },
1795
+ required: [
1796
+ "action_attempt_id",
1797
+ "status",
1798
+ "error",
1799
+ "action_type",
1800
+ "result"
1801
+ ],
1802
+ type: "object"
1803
+ },
1804
+ {
1805
+ description: "Setting fan mode failed.",
1806
+ properties: {
1807
+ action_attempt_id: {
1808
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1809
+ format: "uuid",
1810
+ type: "string"
1811
+ },
1812
+ action_type: { enum: ["SET_FAN_MODE"], type: "string" },
1813
+ error: {
1814
+ properties: {
1815
+ message: { type: "string" },
1816
+ type: { type: "string" }
1817
+ },
1818
+ required: ["type", "message"],
1819
+ type: "object"
1820
+ },
1821
+ result: { format: "null", nullable: true, type: "string" },
1822
+ status: { enum: ["error"], type: "string" }
1823
+ },
1824
+ required: [
1825
+ "action_attempt_id",
1826
+ "status",
1827
+ "result",
1828
+ "action_type",
1829
+ "error"
1830
+ ],
1831
+ type: "object"
1832
+ },
1833
+ {
1834
+ description: "Turning HVAC off.",
1835
+ properties: {
1836
+ action_attempt_id: {
1837
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1838
+ format: "uuid",
1839
+ type: "string"
1840
+ },
1841
+ action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
1842
+ error: { format: "null", nullable: true, type: "string" },
1843
+ result: { format: "null", nullable: true, type: "string" },
1844
+ status: { enum: ["pending"], type: "string" }
1845
+ },
1846
+ required: [
1847
+ "action_attempt_id",
1848
+ "status",
1849
+ "result",
1850
+ "error",
1851
+ "action_type"
1852
+ ],
1853
+ type: "object"
1854
+ },
1855
+ {
1856
+ description: "Turning HVAC off succeeded.",
1857
+ properties: {
1858
+ action_attempt_id: {
1859
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1860
+ format: "uuid",
1861
+ type: "string"
1862
+ },
1863
+ action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
1864
+ error: { format: "null", nullable: true, type: "string" },
1865
+ result: { properties: {}, type: "object" },
1866
+ status: { enum: ["success"], type: "string" }
1867
+ },
1868
+ required: [
1869
+ "action_attempt_id",
1870
+ "status",
1871
+ "error",
1872
+ "action_type",
1873
+ "result"
1874
+ ],
1875
+ type: "object"
1876
+ },
1877
+ {
1878
+ description: "Turning HVAC off failed.",
1879
+ properties: {
1880
+ action_attempt_id: {
1881
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1882
+ format: "uuid",
1883
+ type: "string"
1884
+ },
1885
+ action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
1886
+ error: {
1887
+ properties: {
1888
+ message: { type: "string" },
1889
+ type: { type: "string" }
1890
+ },
1891
+ required: ["type", "message"],
1892
+ type: "object"
1893
+ },
1894
+ result: { format: "null", nullable: true, type: "string" },
1895
+ status: { enum: ["error"], type: "string" }
1896
+ },
1897
+ required: [
1898
+ "action_attempt_id",
1899
+ "status",
1900
+ "result",
1901
+ "action_type",
1902
+ "error"
1903
+ ],
1904
+ type: "object"
1905
+ },
1906
+ {
1907
+ properties: {
1908
+ action_attempt_id: {
1909
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1910
+ format: "uuid",
1911
+ type: "string"
1912
+ },
1913
+ action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
1914
+ error: { format: "null", nullable: true, type: "string" },
1915
+ result: { format: "null", nullable: true, type: "string" },
1916
+ status: { enum: ["pending"], type: "string" }
1917
+ },
1918
+ required: [
1919
+ "action_attempt_id",
1920
+ "status",
1921
+ "result",
1922
+ "error",
1923
+ "action_type"
1924
+ ],
1925
+ type: "object"
1926
+ },
1927
+ {
1928
+ properties: {
1929
+ action_attempt_id: {
1930
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1931
+ format: "uuid",
1932
+ type: "string"
1933
+ },
1934
+ action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
1935
+ error: { format: "null", nullable: true, type: "string" },
1936
+ result: { nullable: true },
1937
+ status: { enum: ["success"], type: "string" }
1938
+ },
1939
+ required: ["action_attempt_id", "status", "error", "action_type"],
1940
+ type: "object"
1941
+ },
1942
+ {
1943
+ properties: {
1944
+ action_attempt_id: {
1945
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1946
+ format: "uuid",
1947
+ type: "string"
1948
+ },
1949
+ action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
1950
+ error: {
1951
+ properties: {
1952
+ message: { type: "string" },
1953
+ type: { type: "string" }
1954
+ },
1955
+ required: ["type", "message"],
1956
+ type: "object"
1957
+ },
1958
+ result: { format: "null", nullable: true, type: "string" },
1959
+ status: { enum: ["error"], type: "string" }
1960
+ },
1961
+ required: [
1962
+ "action_attempt_id",
1963
+ "status",
1964
+ "result",
1965
+ "action_type",
1966
+ "error"
1967
+ ],
1968
+ type: "object"
1969
+ },
1970
+ {
1971
+ properties: {
1972
+ action_attempt_id: {
1973
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1974
+ format: "uuid",
1975
+ type: "string"
1976
+ },
1977
+ action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
1978
+ error: { format: "null", nullable: true, type: "string" },
1979
+ result: { format: "null", nullable: true, type: "string" },
1980
+ status: { enum: ["pending"], type: "string" }
1981
+ },
1982
+ required: [
1983
+ "action_attempt_id",
1984
+ "status",
1985
+ "result",
1986
+ "error",
1987
+ "action_type"
1988
+ ],
1989
+ type: "object"
1990
+ },
1991
+ {
1992
+ properties: {
1993
+ action_attempt_id: {
1994
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1995
+ format: "uuid",
1996
+ type: "string"
1997
+ },
1998
+ action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
1999
+ error: { format: "null", nullable: true, type: "string" },
2000
+ result: { nullable: true },
2001
+ status: { enum: ["success"], type: "string" }
2002
+ },
2003
+ required: ["action_attempt_id", "status", "error", "action_type"],
2004
+ type: "object"
2005
+ },
2006
+ {
2007
+ properties: {
2008
+ action_attempt_id: {
2009
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2010
+ format: "uuid",
2011
+ type: "string"
2012
+ },
2013
+ action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
2014
+ error: {
2015
+ properties: {
2016
+ message: { type: "string" },
2017
+ type: { type: "string" }
2018
+ },
2019
+ required: ["type", "message"],
2020
+ type: "object"
2021
+ },
2022
+ result: { format: "null", nullable: true, type: "string" },
2023
+ status: { enum: ["error"], type: "string" }
2024
+ },
2025
+ required: [
2026
+ "action_attempt_id",
2027
+ "status",
2028
+ "result",
2029
+ "action_type",
2030
+ "error"
2031
+ ],
2032
+ type: "object"
2033
+ },
2034
+ {
2035
+ properties: {
2036
+ action_attempt_id: {
2037
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2038
+ format: "uuid",
2039
+ type: "string"
2040
+ },
2041
+ action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
2042
+ error: { format: "null", nullable: true, type: "string" },
2043
+ result: { format: "null", nullable: true, type: "string" },
2044
+ status: { enum: ["pending"], type: "string" }
2045
+ },
2046
+ required: [
2047
+ "action_attempt_id",
2048
+ "status",
2049
+ "result",
2050
+ "error",
2051
+ "action_type"
2052
+ ],
2053
+ type: "object"
2054
+ },
2055
+ {
2056
+ properties: {
2057
+ action_attempt_id: {
2058
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2059
+ format: "uuid",
2060
+ type: "string"
2061
+ },
2062
+ action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
2063
+ error: { format: "null", nullable: true, type: "string" },
2064
+ result: { nullable: true },
2065
+ status: { enum: ["success"], type: "string" }
2066
+ },
2067
+ required: ["action_attempt_id", "status", "error", "action_type"],
2068
+ type: "object"
2069
+ },
2070
+ {
2071
+ properties: {
2072
+ action_attempt_id: {
2073
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2074
+ format: "uuid",
2075
+ type: "string"
2076
+ },
2077
+ action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
2078
+ error: {
2079
+ properties: {
2080
+ message: { type: "string" },
2081
+ type: { type: "string" }
2082
+ },
2083
+ required: ["type", "message"],
2084
+ type: "object"
2085
+ },
2086
+ result: { format: "null", nullable: true, type: "string" },
2087
+ status: { enum: ["error"], type: "string" }
2088
+ },
2089
+ required: [
2090
+ "action_attempt_id",
2091
+ "status",
2092
+ "result",
2093
+ "action_type",
2094
+ "error"
2095
+ ],
2096
+ type: "object"
2097
+ },
2098
+ {
2099
+ properties: {
2100
+ action_attempt_id: {
2101
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2102
+ format: "uuid",
2103
+ type: "string"
2104
+ },
2105
+ action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
2106
+ error: { format: "null", nullable: true, type: "string" },
2107
+ result: { format: "null", nullable: true, type: "string" },
2108
+ status: { enum: ["pending"], type: "string" }
2109
+ },
2110
+ required: [
2111
+ "action_attempt_id",
2112
+ "status",
2113
+ "result",
2114
+ "error",
2115
+ "action_type"
2116
+ ],
2117
+ type: "object"
2118
+ },
2119
+ {
2120
+ properties: {
2121
+ action_attempt_id: {
2122
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2123
+ format: "uuid",
2124
+ type: "string"
2125
+ },
2126
+ action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
2127
+ error: { format: "null", nullable: true, type: "string" },
2128
+ result: { nullable: true },
2129
+ status: { enum: ["success"], type: "string" }
2130
+ },
2131
+ required: ["action_attempt_id", "status", "error", "action_type"],
2132
+ type: "object"
2133
+ },
2134
+ {
2135
+ properties: {
2136
+ action_attempt_id: {
2137
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2138
+ format: "uuid",
2139
+ type: "string"
2140
+ },
2141
+ action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
1561
2142
  error: {
1562
2143
  properties: {
1563
2144
  message: { type: "string" },
@@ -1579,14 +2160,13 @@ var openapi_default = {
1579
2160
  type: "object"
1580
2161
  },
1581
2162
  {
1582
- description: "Setting HVAC to heat-cool mode.",
1583
2163
  properties: {
1584
2164
  action_attempt_id: {
1585
2165
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1586
2166
  format: "uuid",
1587
2167
  type: "string"
1588
2168
  },
1589
- action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
2169
+ action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
1590
2170
  error: { format: "null", nullable: true, type: "string" },
1591
2171
  result: { format: "null", nullable: true, type: "string" },
1592
2172
  status: { enum: ["pending"], type: "string" }
@@ -1601,36 +2181,28 @@ var openapi_default = {
1601
2181
  type: "object"
1602
2182
  },
1603
2183
  {
1604
- description: "Setting HVAC to heat-cool mode succeeded.",
1605
2184
  properties: {
1606
2185
  action_attempt_id: {
1607
2186
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1608
2187
  format: "uuid",
1609
2188
  type: "string"
1610
2189
  },
1611
- action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
2190
+ action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
1612
2191
  error: { format: "null", nullable: true, type: "string" },
1613
- result: { properties: {}, type: "object" },
2192
+ result: { nullable: true },
1614
2193
  status: { enum: ["success"], type: "string" }
1615
2194
  },
1616
- required: [
1617
- "action_attempt_id",
1618
- "status",
1619
- "error",
1620
- "action_type",
1621
- "result"
1622
- ],
2195
+ required: ["action_attempt_id", "status", "error", "action_type"],
1623
2196
  type: "object"
1624
2197
  },
1625
2198
  {
1626
- description: "Setting heat-cool mode failed.",
1627
2199
  properties: {
1628
2200
  action_attempt_id: {
1629
2201
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1630
2202
  format: "uuid",
1631
2203
  type: "string"
1632
2204
  },
1633
- action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
2205
+ action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
1634
2206
  error: {
1635
2207
  properties: {
1636
2208
  message: { type: "string" },
@@ -1652,14 +2224,13 @@ var openapi_default = {
1652
2224
  type: "object"
1653
2225
  },
1654
2226
  {
1655
- description: "Setting fan mode.",
1656
2227
  properties: {
1657
2228
  action_attempt_id: {
1658
2229
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1659
2230
  format: "uuid",
1660
2231
  type: "string"
1661
2232
  },
1662
- action_type: { enum: ["SET_FAN_MODE"], type: "string" },
2233
+ action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
1663
2234
  error: { format: "null", nullable: true, type: "string" },
1664
2235
  result: { format: "null", nullable: true, type: "string" },
1665
2236
  status: { enum: ["pending"], type: "string" }
@@ -1674,36 +2245,28 @@ var openapi_default = {
1674
2245
  type: "object"
1675
2246
  },
1676
2247
  {
1677
- description: "Setting fan mode succeeded.",
1678
2248
  properties: {
1679
2249
  action_attempt_id: {
1680
2250
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1681
2251
  format: "uuid",
1682
2252
  type: "string"
1683
2253
  },
1684
- action_type: { enum: ["SET_FAN_MODE"], type: "string" },
2254
+ action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
1685
2255
  error: { format: "null", nullable: true, type: "string" },
1686
- result: { properties: {}, type: "object" },
2256
+ result: { nullable: true },
1687
2257
  status: { enum: ["success"], type: "string" }
1688
2258
  },
1689
- required: [
1690
- "action_attempt_id",
1691
- "status",
1692
- "error",
1693
- "action_type",
1694
- "result"
1695
- ],
2259
+ required: ["action_attempt_id", "status", "error", "action_type"],
1696
2260
  type: "object"
1697
2261
  },
1698
2262
  {
1699
- description: "Setting fan mode failed.",
1700
2263
  properties: {
1701
2264
  action_attempt_id: {
1702
2265
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1703
2266
  format: "uuid",
1704
2267
  type: "string"
1705
2268
  },
1706
- action_type: { enum: ["SET_FAN_MODE"], type: "string" },
2269
+ action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
1707
2270
  error: {
1708
2271
  properties: {
1709
2272
  message: { type: "string" },
@@ -1725,14 +2288,13 @@ var openapi_default = {
1725
2288
  type: "object"
1726
2289
  },
1727
2290
  {
1728
- description: "Turning HVAC off.",
1729
2291
  properties: {
1730
2292
  action_attempt_id: {
1731
2293
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1732
2294
  format: "uuid",
1733
2295
  type: "string"
1734
2296
  },
1735
- action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
2297
+ action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
1736
2298
  error: { format: "null", nullable: true, type: "string" },
1737
2299
  result: { format: "null", nullable: true, type: "string" },
1738
2300
  status: { enum: ["pending"], type: "string" }
@@ -1747,36 +2309,28 @@ var openapi_default = {
1747
2309
  type: "object"
1748
2310
  },
1749
2311
  {
1750
- description: "Turning HVAC off succeeded.",
1751
2312
  properties: {
1752
2313
  action_attempt_id: {
1753
2314
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1754
2315
  format: "uuid",
1755
2316
  type: "string"
1756
2317
  },
1757
- action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
2318
+ action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
1758
2319
  error: { format: "null", nullable: true, type: "string" },
1759
- result: { properties: {}, type: "object" },
2320
+ result: { nullable: true },
1760
2321
  status: { enum: ["success"], type: "string" }
1761
2322
  },
1762
- required: [
1763
- "action_attempt_id",
1764
- "status",
1765
- "error",
1766
- "action_type",
1767
- "result"
1768
- ],
2323
+ required: ["action_attempt_id", "status", "error", "action_type"],
1769
2324
  type: "object"
1770
2325
  },
1771
2326
  {
1772
- description: "Turning HVAC off failed.",
1773
2327
  properties: {
1774
2328
  action_attempt_id: {
1775
2329
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1776
2330
  format: "uuid",
1777
2331
  type: "string"
1778
2332
  },
1779
- action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
2333
+ action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
1780
2334
  error: {
1781
2335
  properties: {
1782
2336
  message: { type: "string" },
@@ -3966,91 +4520,7 @@ var openapi_default = {
3966
4520
  properties: {
3967
4521
  access_code: { $ref: "#/components/schemas/access_code" },
3968
4522
  action_attempt: {
3969
- discriminator: { propertyName: "status" },
3970
- oneOf: [
3971
- {
3972
- properties: {
3973
- action_attempt_id: {
3974
- format: "uuid",
3975
- type: "string"
3976
- },
3977
- action_type: { type: "string" },
3978
- error: {
3979
- format: "null",
3980
- nullable: true,
3981
- type: "string"
3982
- },
3983
- result: { nullable: true },
3984
- status: { enum: ["success"], type: "string" }
3985
- },
3986
- required: [
3987
- "status",
3988
- "action_type",
3989
- "action_attempt_id",
3990
- "error"
3991
- ],
3992
- type: "object"
3993
- },
3994
- {
3995
- properties: {
3996
- action_attempt_id: {
3997
- format: "uuid",
3998
- type: "string"
3999
- },
4000
- action_type: { type: "string" },
4001
- error: {
4002
- format: "null",
4003
- nullable: true,
4004
- type: "string"
4005
- },
4006
- result: {
4007
- format: "null",
4008
- nullable: true,
4009
- type: "string"
4010
- },
4011
- status: { enum: ["pending"], type: "string" }
4012
- },
4013
- required: [
4014
- "status",
4015
- "action_type",
4016
- "action_attempt_id",
4017
- "result",
4018
- "error"
4019
- ],
4020
- type: "object"
4021
- },
4022
- {
4023
- properties: {
4024
- action_attempt_id: {
4025
- format: "uuid",
4026
- type: "string"
4027
- },
4028
- action_type: { type: "string" },
4029
- error: {
4030
- properties: {
4031
- message: { type: "string" },
4032
- type: { type: "string" }
4033
- },
4034
- required: ["type", "message"],
4035
- type: "object"
4036
- },
4037
- result: {
4038
- format: "null",
4039
- nullable: true,
4040
- type: "string"
4041
- },
4042
- status: { enum: ["error"], type: "string" }
4043
- },
4044
- required: [
4045
- "status",
4046
- "action_type",
4047
- "action_attempt_id",
4048
- "result",
4049
- "error"
4050
- ],
4051
- type: "object"
4052
- }
4053
- ]
4523
+ $ref: "#/components/schemas/action_attempt"
4054
4524
  },
4055
4525
  ok: { type: "boolean" }
4056
4526
  },
@@ -4268,91 +4738,7 @@ var openapi_default = {
4268
4738
  schema: {
4269
4739
  properties: {
4270
4740
  action_attempt: {
4271
- discriminator: { propertyName: "status" },
4272
- oneOf: [
4273
- {
4274
- properties: {
4275
- action_attempt_id: {
4276
- format: "uuid",
4277
- type: "string"
4278
- },
4279
- action_type: { type: "string" },
4280
- error: {
4281
- format: "null",
4282
- nullable: true,
4283
- type: "string"
4284
- },
4285
- result: { nullable: true },
4286
- status: { enum: ["success"], type: "string" }
4287
- },
4288
- required: [
4289
- "status",
4290
- "action_type",
4291
- "action_attempt_id",
4292
- "error"
4293
- ],
4294
- type: "object"
4295
- },
4296
- {
4297
- properties: {
4298
- action_attempt_id: {
4299
- format: "uuid",
4300
- type: "string"
4301
- },
4302
- action_type: { type: "string" },
4303
- error: {
4304
- format: "null",
4305
- nullable: true,
4306
- type: "string"
4307
- },
4308
- result: {
4309
- format: "null",
4310
- nullable: true,
4311
- type: "string"
4312
- },
4313
- status: { enum: ["pending"], type: "string" }
4314
- },
4315
- required: [
4316
- "status",
4317
- "action_type",
4318
- "action_attempt_id",
4319
- "result",
4320
- "error"
4321
- ],
4322
- type: "object"
4323
- },
4324
- {
4325
- properties: {
4326
- action_attempt_id: {
4327
- format: "uuid",
4328
- type: "string"
4329
- },
4330
- action_type: { type: "string" },
4331
- error: {
4332
- properties: {
4333
- message: { type: "string" },
4334
- type: { type: "string" }
4335
- },
4336
- required: ["type", "message"],
4337
- type: "object"
4338
- },
4339
- result: {
4340
- format: "null",
4341
- nullable: true,
4342
- type: "string"
4343
- },
4344
- status: { enum: ["error"], type: "string" }
4345
- },
4346
- required: [
4347
- "status",
4348
- "action_type",
4349
- "action_attempt_id",
4350
- "result",
4351
- "error"
4352
- ],
4353
- type: "object"
4354
- }
4355
- ]
4741
+ $ref: "#/components/schemas/action_attempt"
4356
4742
  },
4357
4743
  ok: { type: "boolean" }
4358
4744
  },
@@ -4754,91 +5140,7 @@ var openapi_default = {
4754
5140
  schema: {
4755
5141
  properties: {
4756
5142
  action_attempt: {
4757
- discriminator: { propertyName: "status" },
4758
- oneOf: [
4759
- {
4760
- properties: {
4761
- action_attempt_id: {
4762
- format: "uuid",
4763
- type: "string"
4764
- },
4765
- action_type: { type: "string" },
4766
- error: {
4767
- format: "null",
4768
- nullable: true,
4769
- type: "string"
4770
- },
4771
- result: { nullable: true },
4772
- status: { enum: ["success"], type: "string" }
4773
- },
4774
- required: [
4775
- "status",
4776
- "action_type",
4777
- "action_attempt_id",
4778
- "error"
4779
- ],
4780
- type: "object"
4781
- },
4782
- {
4783
- properties: {
4784
- action_attempt_id: {
4785
- format: "uuid",
4786
- type: "string"
4787
- },
4788
- action_type: { type: "string" },
4789
- error: {
4790
- format: "null",
4791
- nullable: true,
4792
- type: "string"
4793
- },
4794
- result: {
4795
- format: "null",
4796
- nullable: true,
4797
- type: "string"
4798
- },
4799
- status: { enum: ["pending"], type: "string" }
4800
- },
4801
- required: [
4802
- "status",
4803
- "action_type",
4804
- "action_attempt_id",
4805
- "result",
4806
- "error"
4807
- ],
4808
- type: "object"
4809
- },
4810
- {
4811
- properties: {
4812
- action_attempt_id: {
4813
- format: "uuid",
4814
- type: "string"
4815
- },
4816
- action_type: { type: "string" },
4817
- error: {
4818
- properties: {
4819
- message: { type: "string" },
4820
- type: { type: "string" }
4821
- },
4822
- required: ["type", "message"],
4823
- type: "object"
4824
- },
4825
- result: {
4826
- format: "null",
4827
- nullable: true,
4828
- type: "string"
4829
- },
4830
- status: { enum: ["error"], type: "string" }
4831
- },
4832
- required: [
4833
- "status",
4834
- "action_type",
4835
- "action_attempt_id",
4836
- "result",
4837
- "error"
4838
- ],
4839
- type: "object"
4840
- }
4841
- ]
5143
+ $ref: "#/components/schemas/action_attempt"
4842
5144
  },
4843
5145
  ok: { type: "boolean" }
4844
5146
  },
@@ -5114,91 +5416,7 @@ var openapi_default = {
5114
5416
  schema: {
5115
5417
  properties: {
5116
5418
  action_attempt: {
5117
- discriminator: { propertyName: "status" },
5118
- oneOf: [
5119
- {
5120
- properties: {
5121
- action_attempt_id: {
5122
- format: "uuid",
5123
- type: "string"
5124
- },
5125
- action_type: { type: "string" },
5126
- error: {
5127
- format: "null",
5128
- nullable: true,
5129
- type: "string"
5130
- },
5131
- result: { nullable: true },
5132
- status: { enum: ["success"], type: "string" }
5133
- },
5134
- required: [
5135
- "status",
5136
- "action_type",
5137
- "action_attempt_id",
5138
- "error"
5139
- ],
5140
- type: "object"
5141
- },
5142
- {
5143
- properties: {
5144
- action_attempt_id: {
5145
- format: "uuid",
5146
- type: "string"
5147
- },
5148
- action_type: { type: "string" },
5149
- error: {
5150
- format: "null",
5151
- nullable: true,
5152
- type: "string"
5153
- },
5154
- result: {
5155
- format: "null",
5156
- nullable: true,
5157
- type: "string"
5158
- },
5159
- status: { enum: ["pending"], type: "string" }
5160
- },
5161
- required: [
5162
- "status",
5163
- "action_type",
5164
- "action_attempt_id",
5165
- "result",
5166
- "error"
5167
- ],
5168
- type: "object"
5169
- },
5170
- {
5171
- properties: {
5172
- action_attempt_id: {
5173
- format: "uuid",
5174
- type: "string"
5175
- },
5176
- action_type: { type: "string" },
5177
- error: {
5178
- properties: {
5179
- message: { type: "string" },
5180
- type: { type: "string" }
5181
- },
5182
- required: ["type", "message"],
5183
- type: "object"
5184
- },
5185
- result: {
5186
- format: "null",
5187
- nullable: true,
5188
- type: "string"
5189
- },
5190
- status: { enum: ["error"], type: "string" }
5191
- },
5192
- required: [
5193
- "status",
5194
- "action_type",
5195
- "action_attempt_id",
5196
- "result",
5197
- "error"
5198
- ],
5199
- type: "object"
5200
- }
5201
- ]
5419
+ $ref: "#/components/schemas/action_attempt"
5202
5420
  },
5203
5421
  ok: { type: "boolean" }
5204
5422
  },
@@ -5273,91 +5491,7 @@ var openapi_default = {
5273
5491
  schema: {
5274
5492
  properties: {
5275
5493
  action_attempt: {
5276
- discriminator: { propertyName: "status" },
5277
- oneOf: [
5278
- {
5279
- properties: {
5280
- action_attempt_id: {
5281
- format: "uuid",
5282
- type: "string"
5283
- },
5284
- action_type: { type: "string" },
5285
- error: {
5286
- format: "null",
5287
- nullable: true,
5288
- type: "string"
5289
- },
5290
- result: { nullable: true },
5291
- status: { enum: ["success"], type: "string" }
5292
- },
5293
- required: [
5294
- "status",
5295
- "action_type",
5296
- "action_attempt_id",
5297
- "error"
5298
- ],
5299
- type: "object"
5300
- },
5301
- {
5302
- properties: {
5303
- action_attempt_id: {
5304
- format: "uuid",
5305
- type: "string"
5306
- },
5307
- action_type: { type: "string" },
5308
- error: {
5309
- format: "null",
5310
- nullable: true,
5311
- type: "string"
5312
- },
5313
- result: {
5314
- format: "null",
5315
- nullable: true,
5316
- type: "string"
5317
- },
5318
- status: { enum: ["pending"], type: "string" }
5319
- },
5320
- required: [
5321
- "status",
5322
- "action_type",
5323
- "action_attempt_id",
5324
- "result",
5325
- "error"
5326
- ],
5327
- type: "object"
5328
- },
5329
- {
5330
- properties: {
5331
- action_attempt_id: {
5332
- format: "uuid",
5333
- type: "string"
5334
- },
5335
- action_type: { type: "string" },
5336
- error: {
5337
- properties: {
5338
- message: { type: "string" },
5339
- type: { type: "string" }
5340
- },
5341
- required: ["type", "message"],
5342
- type: "object"
5343
- },
5344
- result: {
5345
- format: "null",
5346
- nullable: true,
5347
- type: "string"
5348
- },
5349
- status: { enum: ["error"], type: "string" }
5350
- },
5351
- required: [
5352
- "status",
5353
- "action_type",
5354
- "action_attempt_id",
5355
- "result",
5356
- "error"
5357
- ],
5358
- type: "object"
5359
- }
5360
- ]
5494
+ $ref: "#/components/schemas/action_attempt"
5361
5495
  },
5362
5496
  ok: { type: "boolean" }
5363
5497
  },
@@ -5417,107 +5551,23 @@ var openapi_default = {
5417
5551
  starts_at: { type: "string" },
5418
5552
  sync: { default: false, type: "boolean" },
5419
5553
  type: { enum: ["ongoing", "time_bound"], type: "string" },
5420
- use_backup_access_code_pool: { type: "boolean" },
5421
- use_offline_access_code: { type: "boolean" }
5422
- },
5423
- required: ["access_code_id"],
5424
- type: "object"
5425
- }
5426
- }
5427
- }
5428
- },
5429
- responses: {
5430
- 200: {
5431
- content: {
5432
- "application/json": {
5433
- schema: {
5434
- properties: {
5435
- action_attempt: {
5436
- discriminator: { propertyName: "status" },
5437
- oneOf: [
5438
- {
5439
- properties: {
5440
- action_attempt_id: {
5441
- format: "uuid",
5442
- type: "string"
5443
- },
5444
- action_type: { type: "string" },
5445
- error: {
5446
- format: "null",
5447
- nullable: true,
5448
- type: "string"
5449
- },
5450
- result: { nullable: true },
5451
- status: { enum: ["success"], type: "string" }
5452
- },
5453
- required: [
5454
- "status",
5455
- "action_type",
5456
- "action_attempt_id",
5457
- "error"
5458
- ],
5459
- type: "object"
5460
- },
5461
- {
5462
- properties: {
5463
- action_attempt_id: {
5464
- format: "uuid",
5465
- type: "string"
5466
- },
5467
- action_type: { type: "string" },
5468
- error: {
5469
- format: "null",
5470
- nullable: true,
5471
- type: "string"
5472
- },
5473
- result: {
5474
- format: "null",
5475
- nullable: true,
5476
- type: "string"
5477
- },
5478
- status: { enum: ["pending"], type: "string" }
5479
- },
5480
- required: [
5481
- "status",
5482
- "action_type",
5483
- "action_attempt_id",
5484
- "result",
5485
- "error"
5486
- ],
5487
- type: "object"
5488
- },
5489
- {
5490
- properties: {
5491
- action_attempt_id: {
5492
- format: "uuid",
5493
- type: "string"
5494
- },
5495
- action_type: { type: "string" },
5496
- error: {
5497
- properties: {
5498
- message: { type: "string" },
5499
- type: { type: "string" }
5500
- },
5501
- required: ["type", "message"],
5502
- type: "object"
5503
- },
5504
- result: {
5505
- format: "null",
5506
- nullable: true,
5507
- type: "string"
5508
- },
5509
- status: { enum: ["error"], type: "string" }
5510
- },
5511
- required: [
5512
- "status",
5513
- "action_type",
5514
- "action_attempt_id",
5515
- "result",
5516
- "error"
5517
- ],
5518
- type: "object"
5519
- }
5520
- ]
5554
+ use_backup_access_code_pool: { type: "boolean" },
5555
+ use_offline_access_code: { type: "boolean" }
5556
+ },
5557
+ required: ["access_code_id"],
5558
+ type: "object"
5559
+ }
5560
+ }
5561
+ }
5562
+ },
5563
+ responses: {
5564
+ 200: {
5565
+ content: {
5566
+ "application/json": {
5567
+ schema: {
5568
+ properties: {
5569
+ action_attempt: {
5570
+ $ref: "#/components/schemas/action_attempt"
5521
5571
  },
5522
5572
  ok: { type: "boolean" }
5523
5573
  },
@@ -7546,91 +7596,7 @@ var openapi_default = {
7546
7596
  schema: {
7547
7597
  properties: {
7548
7598
  action_attempt: {
7549
- discriminator: { propertyName: "status" },
7550
- oneOf: [
7551
- {
7552
- properties: {
7553
- action_attempt_id: {
7554
- format: "uuid",
7555
- type: "string"
7556
- },
7557
- action_type: { type: "string" },
7558
- error: {
7559
- format: "null",
7560
- nullable: true,
7561
- type: "string"
7562
- },
7563
- result: { nullable: true },
7564
- status: { enum: ["success"], type: "string" }
7565
- },
7566
- required: [
7567
- "status",
7568
- "action_type",
7569
- "action_attempt_id",
7570
- "error"
7571
- ],
7572
- type: "object"
7573
- },
7574
- {
7575
- properties: {
7576
- action_attempt_id: {
7577
- format: "uuid",
7578
- type: "string"
7579
- },
7580
- action_type: { type: "string" },
7581
- error: {
7582
- format: "null",
7583
- nullable: true,
7584
- type: "string"
7585
- },
7586
- result: {
7587
- format: "null",
7588
- nullable: true,
7589
- type: "string"
7590
- },
7591
- status: { enum: ["pending"], type: "string" }
7592
- },
7593
- required: [
7594
- "status",
7595
- "action_type",
7596
- "action_attempt_id",
7597
- "result",
7598
- "error"
7599
- ],
7600
- type: "object"
7601
- },
7602
- {
7603
- properties: {
7604
- action_attempt_id: {
7605
- format: "uuid",
7606
- type: "string"
7607
- },
7608
- action_type: { type: "string" },
7609
- error: {
7610
- properties: {
7611
- message: { type: "string" },
7612
- type: { type: "string" }
7613
- },
7614
- required: ["type", "message"],
7615
- type: "object"
7616
- },
7617
- result: {
7618
- format: "null",
7619
- nullable: true,
7620
- type: "string"
7621
- },
7622
- status: { enum: ["error"], type: "string" }
7623
- },
7624
- required: [
7625
- "status",
7626
- "action_type",
7627
- "action_attempt_id",
7628
- "result",
7629
- "error"
7630
- ],
7631
- type: "object"
7632
- }
7633
- ]
7599
+ $ref: "#/components/schemas/action_attempt"
7634
7600
  },
7635
7601
  ok: { type: "boolean" }
7636
7602
  },
@@ -7683,93 +7649,7 @@ var openapi_default = {
7683
7649
  schema: {
7684
7650
  properties: {
7685
7651
  action_attempts: {
7686
- items: {
7687
- discriminator: { propertyName: "status" },
7688
- oneOf: [
7689
- {
7690
- properties: {
7691
- action_attempt_id: {
7692
- format: "uuid",
7693
- type: "string"
7694
- },
7695
- action_type: { type: "string" },
7696
- error: {
7697
- format: "null",
7698
- nullable: true,
7699
- type: "string"
7700
- },
7701
- result: { nullable: true },
7702
- status: { enum: ["success"], type: "string" }
7703
- },
7704
- required: [
7705
- "status",
7706
- "action_type",
7707
- "action_attempt_id",
7708
- "error"
7709
- ],
7710
- type: "object"
7711
- },
7712
- {
7713
- properties: {
7714
- action_attempt_id: {
7715
- format: "uuid",
7716
- type: "string"
7717
- },
7718
- action_type: { type: "string" },
7719
- error: {
7720
- format: "null",
7721
- nullable: true,
7722
- type: "string"
7723
- },
7724
- result: {
7725
- format: "null",
7726
- nullable: true,
7727
- type: "string"
7728
- },
7729
- status: { enum: ["pending"], type: "string" }
7730
- },
7731
- required: [
7732
- "status",
7733
- "action_type",
7734
- "action_attempt_id",
7735
- "result",
7736
- "error"
7737
- ],
7738
- type: "object"
7739
- },
7740
- {
7741
- properties: {
7742
- action_attempt_id: {
7743
- format: "uuid",
7744
- type: "string"
7745
- },
7746
- action_type: { type: "string" },
7747
- error: {
7748
- properties: {
7749
- message: { type: "string" },
7750
- type: { type: "string" }
7751
- },
7752
- required: ["type", "message"],
7753
- type: "object"
7754
- },
7755
- result: {
7756
- format: "null",
7757
- nullable: true,
7758
- type: "string"
7759
- },
7760
- status: { enum: ["error"], type: "string" }
7761
- },
7762
- required: [
7763
- "status",
7764
- "action_type",
7765
- "action_attempt_id",
7766
- "result",
7767
- "error"
7768
- ],
7769
- type: "object"
7770
- }
7771
- ]
7772
- },
7652
+ items: { $ref: "#/components/schemas/action_attempt" },
7773
7653
  type: "array"
7774
7654
  },
7775
7655
  ok: { type: "boolean" }
@@ -10518,91 +10398,7 @@ var openapi_default = {
10518
10398
  schema: {
10519
10399
  properties: {
10520
10400
  action_attempt: {
10521
- discriminator: { propertyName: "status" },
10522
- oneOf: [
10523
- {
10524
- properties: {
10525
- action_attempt_id: {
10526
- format: "uuid",
10527
- type: "string"
10528
- },
10529
- action_type: { type: "string" },
10530
- error: {
10531
- format: "null",
10532
- nullable: true,
10533
- type: "string"
10534
- },
10535
- result: { nullable: true },
10536
- status: { enum: ["success"], type: "string" }
10537
- },
10538
- required: [
10539
- "status",
10540
- "action_type",
10541
- "action_attempt_id",
10542
- "error"
10543
- ],
10544
- type: "object"
10545
- },
10546
- {
10547
- properties: {
10548
- action_attempt_id: {
10549
- format: "uuid",
10550
- type: "string"
10551
- },
10552
- action_type: { type: "string" },
10553
- error: {
10554
- format: "null",
10555
- nullable: true,
10556
- type: "string"
10557
- },
10558
- result: {
10559
- format: "null",
10560
- nullable: true,
10561
- type: "string"
10562
- },
10563
- status: { enum: ["pending"], type: "string" }
10564
- },
10565
- required: [
10566
- "status",
10567
- "action_type",
10568
- "action_attempt_id",
10569
- "result",
10570
- "error"
10571
- ],
10572
- type: "object"
10573
- },
10574
- {
10575
- properties: {
10576
- action_attempt_id: {
10577
- format: "uuid",
10578
- type: "string"
10579
- },
10580
- action_type: { type: "string" },
10581
- error: {
10582
- properties: {
10583
- message: { type: "string" },
10584
- type: { type: "string" }
10585
- },
10586
- required: ["type", "message"],
10587
- type: "object"
10588
- },
10589
- result: {
10590
- format: "null",
10591
- nullable: true,
10592
- type: "string"
10593
- },
10594
- status: { enum: ["error"], type: "string" }
10595
- },
10596
- required: [
10597
- "status",
10598
- "action_type",
10599
- "action_attempt_id",
10600
- "result",
10601
- "error"
10602
- ],
10603
- type: "object"
10604
- }
10605
- ]
10401
+ $ref: "#/components/schemas/action_attempt"
10606
10402
  },
10607
10403
  noise_threshold: {
10608
10404
  $ref: "#/components/schemas/noise_threshold"
@@ -10656,91 +10452,7 @@ var openapi_default = {
10656
10452
  schema: {
10657
10453
  properties: {
10658
10454
  action_attempt: {
10659
- discriminator: { propertyName: "status" },
10660
- oneOf: [
10661
- {
10662
- properties: {
10663
- action_attempt_id: {
10664
- format: "uuid",
10665
- type: "string"
10666
- },
10667
- action_type: { type: "string" },
10668
- error: {
10669
- format: "null",
10670
- nullable: true,
10671
- type: "string"
10672
- },
10673
- result: { nullable: true },
10674
- status: { enum: ["success"], type: "string" }
10675
- },
10676
- required: [
10677
- "status",
10678
- "action_type",
10679
- "action_attempt_id",
10680
- "error"
10681
- ],
10682
- type: "object"
10683
- },
10684
- {
10685
- properties: {
10686
- action_attempt_id: {
10687
- format: "uuid",
10688
- type: "string"
10689
- },
10690
- action_type: { type: "string" },
10691
- error: {
10692
- format: "null",
10693
- nullable: true,
10694
- type: "string"
10695
- },
10696
- result: {
10697
- format: "null",
10698
- nullable: true,
10699
- type: "string"
10700
- },
10701
- status: { enum: ["pending"], type: "string" }
10702
- },
10703
- required: [
10704
- "status",
10705
- "action_type",
10706
- "action_attempt_id",
10707
- "result",
10708
- "error"
10709
- ],
10710
- type: "object"
10711
- },
10712
- {
10713
- properties: {
10714
- action_attempt_id: {
10715
- format: "uuid",
10716
- type: "string"
10717
- },
10718
- action_type: { type: "string" },
10719
- error: {
10720
- properties: {
10721
- message: { type: "string" },
10722
- type: { type: "string" }
10723
- },
10724
- required: ["type", "message"],
10725
- type: "object"
10726
- },
10727
- result: {
10728
- format: "null",
10729
- nullable: true,
10730
- type: "string"
10731
- },
10732
- status: { enum: ["error"], type: "string" }
10733
- },
10734
- required: [
10735
- "status",
10736
- "action_type",
10737
- "action_attempt_id",
10738
- "result",
10739
- "error"
10740
- ],
10741
- type: "object"
10742
- }
10743
- ]
10455
+ $ref: "#/components/schemas/action_attempt"
10744
10456
  },
10745
10457
  ok: { type: "boolean" }
10746
10458
  },
@@ -10895,91 +10607,7 @@ var openapi_default = {
10895
10607
  schema: {
10896
10608
  properties: {
10897
10609
  action_attempt: {
10898
- discriminator: { propertyName: "status" },
10899
- oneOf: [
10900
- {
10901
- properties: {
10902
- action_attempt_id: {
10903
- format: "uuid",
10904
- type: "string"
10905
- },
10906
- action_type: { type: "string" },
10907
- error: {
10908
- format: "null",
10909
- nullable: true,
10910
- type: "string"
10911
- },
10912
- result: { nullable: true },
10913
- status: { enum: ["success"], type: "string" }
10914
- },
10915
- required: [
10916
- "status",
10917
- "action_type",
10918
- "action_attempt_id",
10919
- "error"
10920
- ],
10921
- type: "object"
10922
- },
10923
- {
10924
- properties: {
10925
- action_attempt_id: {
10926
- format: "uuid",
10927
- type: "string"
10928
- },
10929
- action_type: { type: "string" },
10930
- error: {
10931
- format: "null",
10932
- nullable: true,
10933
- type: "string"
10934
- },
10935
- result: {
10936
- format: "null",
10937
- nullable: true,
10938
- type: "string"
10939
- },
10940
- status: { enum: ["pending"], type: "string" }
10941
- },
10942
- required: [
10943
- "status",
10944
- "action_type",
10945
- "action_attempt_id",
10946
- "result",
10947
- "error"
10948
- ],
10949
- type: "object"
10950
- },
10951
- {
10952
- properties: {
10953
- action_attempt_id: {
10954
- format: "uuid",
10955
- type: "string"
10956
- },
10957
- action_type: { type: "string" },
10958
- error: {
10959
- properties: {
10960
- message: { type: "string" },
10961
- type: { type: "string" }
10962
- },
10963
- required: ["type", "message"],
10964
- type: "object"
10965
- },
10966
- result: {
10967
- format: "null",
10968
- nullable: true,
10969
- type: "string"
10970
- },
10971
- status: { enum: ["error"], type: "string" }
10972
- },
10973
- required: [
10974
- "status",
10975
- "action_type",
10976
- "action_attempt_id",
10977
- "result",
10978
- "error"
10979
- ],
10980
- type: "object"
10981
- }
10982
- ]
10610
+ $ref: "#/components/schemas/action_attempt"
10983
10611
  },
10984
10612
  ok: { type: "boolean" }
10985
10613
  },
@@ -11031,91 +10659,7 @@ var openapi_default = {
11031
10659
  schema: {
11032
10660
  properties: {
11033
10661
  action_attempt: {
11034
- discriminator: { propertyName: "status" },
11035
- oneOf: [
11036
- {
11037
- properties: {
11038
- action_attempt_id: {
11039
- format: "uuid",
11040
- type: "string"
11041
- },
11042
- action_type: { type: "string" },
11043
- error: {
11044
- format: "null",
11045
- nullable: true,
11046
- type: "string"
11047
- },
11048
- result: { nullable: true },
11049
- status: { enum: ["success"], type: "string" }
11050
- },
11051
- required: [
11052
- "status",
11053
- "action_type",
11054
- "action_attempt_id",
11055
- "error"
11056
- ],
11057
- type: "object"
11058
- },
11059
- {
11060
- properties: {
11061
- action_attempt_id: {
11062
- format: "uuid",
11063
- type: "string"
11064
- },
11065
- action_type: { type: "string" },
11066
- error: {
11067
- format: "null",
11068
- nullable: true,
11069
- type: "string"
11070
- },
11071
- result: {
11072
- format: "null",
11073
- nullable: true,
11074
- type: "string"
11075
- },
11076
- status: { enum: ["pending"], type: "string" }
11077
- },
11078
- required: [
11079
- "status",
11080
- "action_type",
11081
- "action_attempt_id",
11082
- "result",
11083
- "error"
11084
- ],
11085
- type: "object"
11086
- },
11087
- {
11088
- properties: {
11089
- action_attempt_id: {
11090
- format: "uuid",
11091
- type: "string"
11092
- },
11093
- action_type: { type: "string" },
11094
- error: {
11095
- properties: {
11096
- message: { type: "string" },
11097
- type: { type: "string" }
11098
- },
11099
- required: ["type", "message"],
11100
- type: "object"
11101
- },
11102
- result: {
11103
- format: "null",
11104
- nullable: true,
11105
- type: "string"
11106
- },
11107
- status: { enum: ["error"], type: "string" }
11108
- },
11109
- required: [
11110
- "status",
11111
- "action_type",
11112
- "action_attempt_id",
11113
- "result",
11114
- "error"
11115
- ],
11116
- type: "object"
11117
- }
11118
- ]
10662
+ $ref: "#/components/schemas/action_attempt"
11119
10663
  },
11120
10664
  ok: { type: "boolean" }
11121
10665
  },
@@ -11168,91 +10712,7 @@ var openapi_default = {
11168
10712
  schema: {
11169
10713
  properties: {
11170
10714
  action_attempt: {
11171
- discriminator: { propertyName: "status" },
11172
- oneOf: [
11173
- {
11174
- properties: {
11175
- action_attempt_id: {
11176
- format: "uuid",
11177
- type: "string"
11178
- },
11179
- action_type: { type: "string" },
11180
- error: {
11181
- format: "null",
11182
- nullable: true,
11183
- type: "string"
11184
- },
11185
- result: { nullable: true },
11186
- status: { enum: ["success"], type: "string" }
11187
- },
11188
- required: [
11189
- "status",
11190
- "action_type",
11191
- "action_attempt_id",
11192
- "error"
11193
- ],
11194
- type: "object"
11195
- },
11196
- {
11197
- properties: {
11198
- action_attempt_id: {
11199
- format: "uuid",
11200
- type: "string"
11201
- },
11202
- action_type: { type: "string" },
11203
- error: {
11204
- format: "null",
11205
- nullable: true,
11206
- type: "string"
11207
- },
11208
- result: {
11209
- format: "null",
11210
- nullable: true,
11211
- type: "string"
11212
- },
11213
- status: { enum: ["pending"], type: "string" }
11214
- },
11215
- required: [
11216
- "status",
11217
- "action_type",
11218
- "action_attempt_id",
11219
- "result",
11220
- "error"
11221
- ],
11222
- type: "object"
11223
- },
11224
- {
11225
- properties: {
11226
- action_attempt_id: {
11227
- format: "uuid",
11228
- type: "string"
11229
- },
11230
- action_type: { type: "string" },
11231
- error: {
11232
- properties: {
11233
- message: { type: "string" },
11234
- type: { type: "string" }
11235
- },
11236
- required: ["type", "message"],
11237
- type: "object"
11238
- },
11239
- result: {
11240
- format: "null",
11241
- nullable: true,
11242
- type: "string"
11243
- },
11244
- status: { enum: ["error"], type: "string" }
11245
- },
11246
- required: [
11247
- "status",
11248
- "action_type",
11249
- "action_attempt_id",
11250
- "result",
11251
- "error"
11252
- ],
11253
- type: "object"
11254
- }
11255
- ]
10715
+ $ref: "#/components/schemas/action_attempt"
11256
10716
  },
11257
10717
  ok: { type: "boolean" }
11258
10718
  },