@seamapi/types 1.177.0 → 1.178.0

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.
Files changed (51) hide show
  1. package/dist/connect.cjs +667 -1199
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +10835 -4185
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +483 -1
  8. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
  9. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +485 -0
  11. package/lib/seam/connect/models/action-attempts/deprecated.js +108 -0
  12. package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -0
  13. package/lib/seam/connect/models/index.d.ts +2 -2
  14. package/lib/seam/connect/models/index.js +2 -2
  15. package/lib/seam/connect/models/index.js.map +1 -1
  16. package/lib/seam/connect/models/user-identities/index.d.ts +1 -0
  17. package/lib/seam/connect/models/user-identities/index.js +2 -0
  18. package/lib/seam/connect/models/user-identities/index.js.map +1 -0
  19. package/lib/seam/connect/models/{user-identity.js → user-identities/user-identity.js} +1 -1
  20. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -0
  21. package/lib/seam/connect/models/workspaces/index.d.ts +1 -0
  22. package/lib/seam/connect/models/workspaces/index.js +2 -0
  23. package/lib/seam/connect/models/workspaces/index.js.map +1 -0
  24. package/lib/seam/connect/models/workspaces/workspace.d.ts +17 -0
  25. package/lib/seam/connect/models/workspaces/workspace.js +8 -0
  26. package/lib/seam/connect/models/workspaces/workspace.js.map +1 -0
  27. package/lib/seam/connect/openapi.d.ts +124 -1235
  28. package/lib/seam/connect/openapi.js +470 -1115
  29. package/lib/seam/connect/openapi.js.map +1 -1
  30. package/lib/seam/connect/route-types.d.ts +9828 -2568
  31. package/lib/seam/connect/schemas.d.ts +1 -1
  32. package/lib/seam/connect/schemas.js +1 -1
  33. package/lib/seam/connect/schemas.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/lib/seam/connect/internal/schemas.ts +1 -1
  36. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -2
  37. package/src/lib/seam/connect/models/action-attempts/deprecated.ts +122 -0
  38. package/src/lib/seam/connect/models/index.ts +2 -2
  39. package/src/lib/seam/connect/models/user-identities/index.ts +1 -0
  40. package/src/lib/seam/connect/models/{user-identity.ts → user-identities/user-identity.ts} +1 -1
  41. package/src/lib/seam/connect/models/workspaces/index.ts +1 -0
  42. package/src/lib/seam/connect/models/workspaces/workspace.ts +8 -0
  43. package/src/lib/seam/connect/openapi.ts +491 -1115
  44. package/src/lib/seam/connect/route-types.ts +10139 -2335
  45. package/src/lib/seam/connect/schemas.ts +1 -0
  46. package/lib/seam/connect/models/network.d.ts +0 -18
  47. package/lib/seam/connect/models/network.js +0 -8
  48. package/lib/seam/connect/models/network.js.map +0 -1
  49. package/lib/seam/connect/models/user-identity.js.map +0 -1
  50. package/src/lib/seam/connect/models/network.ts +0 -10
  51. /package/lib/seam/connect/models/{user-identity.d.ts → user-identities/user-identity.d.ts} +0 -0
package/dist/connect.cjs CHANGED
@@ -14,7 +14,8 @@ __export(schemas_exports, {
14
14
  action_attempt: () => action_attempt,
15
15
  connect_webview: () => connect_webview,
16
16
  custom_metadata: () => custom_metadata,
17
- seam_event: () => seam_event
17
+ seam_event: () => seam_event,
18
+ workspace: () => workspace
18
19
  });
19
20
  var common_action_attempt = zod.z.object({
20
21
  action_attempt_id: zod.z.string().uuid().describe(`
@@ -39,29 +40,134 @@ var common_failed_action_attempt = common_action_attempt.extend({
39
40
  result: zod.z.null()
40
41
  });
41
42
 
42
- // src/lib/seam/connect/models/action-attempts/lock-door.ts
43
- var action_type = zod.z.literal("LOCK_DOOR");
43
+ // src/lib/seam/connect/models/action-attempts/deprecated.ts
44
44
  var error = zod.z.object({
45
45
  type: zod.z.string(),
46
46
  message: zod.z.string()
47
47
  });
48
- var result = zod.z.object({});
48
+ var result = zod.z.any();
49
+ var sync_access_codes_action_attempt = zod.z.discriminatedUnion("status", [
50
+ common_pending_action_attempt.extend({
51
+ action_type: zod.z.literal("SYNC_ACCESS_CODES")
52
+ }),
53
+ common_succeeded_action_attempt.extend({
54
+ action_type: zod.z.literal("SYNC_ACCESS_CODES"),
55
+ result
56
+ }),
57
+ common_failed_action_attempt.extend({
58
+ action_type: zod.z.literal("SYNC_ACCESS_CODES"),
59
+ error
60
+ })
61
+ ]);
62
+ var create_access_code_action_attempt = zod.z.discriminatedUnion("status", [
63
+ common_pending_action_attempt.extend({
64
+ action_type: zod.z.literal("CREATE_ACCESS_CODE")
65
+ }),
66
+ common_succeeded_action_attempt.extend({
67
+ action_type: zod.z.literal("CREATE_ACCESS_CODE"),
68
+ result
69
+ }),
70
+ common_failed_action_attempt.extend({
71
+ action_type: zod.z.literal("CREATE_ACCESS_CODE"),
72
+ error
73
+ })
74
+ ]);
75
+ var delete_access_code_action_attempt = zod.z.discriminatedUnion("status", [
76
+ common_pending_action_attempt.extend({
77
+ action_type: zod.z.literal("DELETE_ACCESS_CODE")
78
+ }),
79
+ common_succeeded_action_attempt.extend({
80
+ action_type: zod.z.literal("DELETE_ACCESS_CODE"),
81
+ result
82
+ }),
83
+ common_failed_action_attempt.extend({
84
+ action_type: zod.z.literal("DELETE_ACCESS_CODE"),
85
+ error
86
+ })
87
+ ]);
88
+ var update_access_code_action_attempt = zod.z.discriminatedUnion("status", [
89
+ common_pending_action_attempt.extend({
90
+ action_type: zod.z.literal("UPDATE_ACCESS_CODE")
91
+ }),
92
+ common_succeeded_action_attempt.extend({
93
+ action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
94
+ result
95
+ }),
96
+ common_failed_action_attempt.extend({
97
+ action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
98
+ error
99
+ })
100
+ ]);
101
+ var create_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
102
+ common_pending_action_attempt.extend({
103
+ action_type: zod.z.literal("CREATE_NOISE_THRESHOLD")
104
+ }),
105
+ common_succeeded_action_attempt.extend({
106
+ action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
107
+ result
108
+ }),
109
+ common_failed_action_attempt.extend({
110
+ action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
111
+ error
112
+ })
113
+ ]);
114
+ var delete_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
115
+ common_pending_action_attempt.extend({
116
+ action_type: zod.z.literal("DELETE_NOISE_THRESHOLD")
117
+ }),
118
+ common_succeeded_action_attempt.extend({
119
+ action_type: zod.z.literal("DELETE_NOISE_THRESHOLD"),
120
+ result
121
+ }),
122
+ common_failed_action_attempt.extend({
123
+ action_type: zod.z.literal("DELETE_NOISE_THRESHOLD"),
124
+ error
125
+ })
126
+ ]);
127
+ var update_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
128
+ common_pending_action_attempt.extend({
129
+ action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD")
130
+ }),
131
+ common_succeeded_action_attempt.extend({
132
+ action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
133
+ result
134
+ }),
135
+ common_failed_action_attempt.extend({
136
+ action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
137
+ error
138
+ })
139
+ ]);
140
+ var deprecated_action_attempts = [
141
+ ...sync_access_codes_action_attempt.options,
142
+ ...create_access_code_action_attempt.options,
143
+ ...delete_access_code_action_attempt.options,
144
+ ...update_access_code_action_attempt.options,
145
+ ...create_noise_threshold_action_attempt.options,
146
+ ...delete_noise_threshold_action_attempt.options,
147
+ ...update_noise_threshold_action_attempt.options
148
+ ];
149
+ var action_type = zod.z.literal("LOCK_DOOR");
150
+ var error2 = zod.z.object({
151
+ type: zod.z.string(),
152
+ message: zod.z.string()
153
+ });
154
+ var result2 = zod.z.object({});
49
155
  var lock_door_action_attempt = zod.z.discriminatedUnion("status", [
50
156
  common_pending_action_attempt.extend({
51
157
  action_type
52
158
  }).describe("Locking door."),
53
159
  common_succeeded_action_attempt.extend({
54
160
  action_type,
55
- result
161
+ result: result2
56
162
  }).describe("Locking door succeeded."),
57
- common_failed_action_attempt.extend({ action_type, error }).describe("Locking door failed.")
163
+ common_failed_action_attempt.extend({ action_type, error: error2 }).describe("Locking door failed.")
58
164
  ]);
59
165
  var action_type2 = zod.z.literal("RESET_SANDBOX_WORKSPACE");
60
- var error2 = zod.z.object({
166
+ var error3 = zod.z.object({
61
167
  type: zod.z.string(),
62
168
  message: zod.z.string()
63
169
  });
64
- var result2 = zod.z.object({});
170
+ var result3 = zod.z.object({});
65
171
  var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
66
172
  "status",
67
173
  [
@@ -70,84 +176,84 @@ var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
70
176
  }).describe("Resetting sandbox workspace."),
71
177
  common_succeeded_action_attempt.extend({
72
178
  action_type: action_type2,
73
- result: result2
179
+ result: result3
74
180
  }).describe("Resetting sandbox workspace succeeded."),
75
181
  common_failed_action_attempt.extend({
76
182
  action_type: action_type2,
77
- error: error2
183
+ error: error3
78
184
  }).describe("Resetting sandbox workspace failed.")
79
185
  ]
80
186
  );
81
187
  var action_type3 = zod.z.literal("SET_COOL");
82
- var error3 = zod.z.object({
188
+ var error4 = zod.z.object({
83
189
  type: zod.z.string(),
84
190
  message: zod.z.string()
85
191
  });
86
- var result3 = zod.z.object({});
192
+ var result4 = zod.z.object({});
87
193
  var set_cool_action_attempt = zod.z.discriminatedUnion("status", [
88
194
  common_pending_action_attempt.extend({
89
195
  action_type: action_type3
90
196
  }).describe("Setting HVAC to cool."),
91
197
  common_succeeded_action_attempt.extend({
92
198
  action_type: action_type3,
93
- result: result3
199
+ result: result4
94
200
  }).describe("Setting HVAC to cool succeeded."),
95
- common_failed_action_attempt.extend({ action_type: action_type3, error: error3 }).describe("Setting HVAC to cool failed.")
201
+ common_failed_action_attempt.extend({ action_type: action_type3, error: error4 }).describe("Setting HVAC to cool failed.")
96
202
  ]);
97
203
  var action_type4 = zod.z.literal("SET_FAN_MODE");
98
- var error4 = zod.z.object({
204
+ var error5 = zod.z.object({
99
205
  type: zod.z.string(),
100
206
  message: zod.z.string()
101
207
  });
102
- var result4 = zod.z.object({});
208
+ var result5 = zod.z.object({});
103
209
  var set_fan_mode_action_attempt = zod.z.discriminatedUnion("status", [
104
210
  common_pending_action_attempt.extend({
105
211
  action_type: action_type4
106
212
  }).describe("Setting fan mode."),
107
213
  common_succeeded_action_attempt.extend({
108
214
  action_type: action_type4,
109
- result: result4
215
+ result: result5
110
216
  }).describe("Setting fan mode succeeded."),
111
- common_failed_action_attempt.extend({ action_type: action_type4, error: error4 }).describe("Setting fan mode failed.")
217
+ common_failed_action_attempt.extend({ action_type: action_type4, error: error5 }).describe("Setting fan mode failed.")
112
218
  ]);
113
219
  var action_type5 = zod.z.literal("SET_HEAT");
114
- var error5 = zod.z.object({
220
+ var error6 = zod.z.object({
115
221
  type: zod.z.string(),
116
222
  message: zod.z.string()
117
223
  });
118
- var result5 = zod.z.object({});
224
+ var result6 = zod.z.object({});
119
225
  var set_heat_action_attempt = zod.z.discriminatedUnion("status", [
120
226
  common_pending_action_attempt.extend({
121
227
  action_type: action_type5
122
228
  }).describe("Setting HVAC to heat mode."),
123
229
  common_succeeded_action_attempt.extend({
124
230
  action_type: action_type5,
125
- result: result5
231
+ result: result6
126
232
  }).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.")
233
+ common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Setting HVAC to heat mode failed.")
128
234
  ]);
129
235
  var action_type6 = zod.z.literal("SET_HEAT_COOL");
130
- var error6 = zod.z.object({
236
+ var error7 = zod.z.object({
131
237
  type: zod.z.string(),
132
238
  message: zod.z.string()
133
239
  });
134
- var result6 = zod.z.object({});
240
+ var result7 = zod.z.object({});
135
241
  var set_heat_cool_action_attempt = zod.z.discriminatedUnion("status", [
136
242
  common_pending_action_attempt.extend({
137
243
  action_type: action_type6
138
244
  }).describe("Setting HVAC to heat-cool mode."),
139
245
  common_succeeded_action_attempt.extend({
140
246
  action_type: action_type6,
141
- result: result6
247
+ result: result7
142
248
  }).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.")
249
+ common_failed_action_attempt.extend({ action_type: action_type6, error: error7 }).describe("Setting heat-cool mode failed.")
144
250
  ]);
145
251
  var action_type7 = zod.z.literal("SET_THERMOSTAT_OFF");
146
- var error7 = zod.z.object({
252
+ var error8 = zod.z.object({
147
253
  type: zod.z.string(),
148
254
  message: zod.z.string()
149
255
  });
150
- var result7 = zod.z.object({});
256
+ var result8 = zod.z.object({});
151
257
  var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
152
258
  "status",
153
259
  [
@@ -156,26 +262,26 @@ var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
156
262
  }).describe("Turning HVAC off."),
157
263
  common_succeeded_action_attempt.extend({
158
264
  action_type: action_type7,
159
- result: result7
265
+ result: result8
160
266
  }).describe("Turning HVAC off succeeded."),
161
- common_failed_action_attempt.extend({ action_type: action_type7, error: error7 }).describe("Turning HVAC off failed.")
267
+ common_failed_action_attempt.extend({ action_type: action_type7, error: error8 }).describe("Turning HVAC off failed.")
162
268
  ]
163
269
  );
164
270
  var action_type8 = zod.z.literal("UNLOCK_DOOR");
165
- var error8 = zod.z.object({
271
+ var error9 = zod.z.object({
166
272
  type: zod.z.string(),
167
273
  message: zod.z.string()
168
274
  });
169
- var result8 = zod.z.object({});
275
+ var result9 = zod.z.object({});
170
276
  var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
171
277
  common_pending_action_attempt.extend({
172
278
  action_type: action_type8
173
279
  }).describe("Unlocking door."),
174
280
  common_succeeded_action_attempt.extend({
175
281
  action_type: action_type8,
176
- result: result8
282
+ result: result9
177
283
  }).describe("Unlocking door succeeded."),
178
- common_failed_action_attempt.extend({ action_type: action_type8, error: error8 }).describe("Unlocking door failed.")
284
+ common_failed_action_attempt.extend({ action_type: action_type8, error: error9 }).describe("Unlocking door failed.")
179
285
  ]);
180
286
 
181
287
  // src/lib/seam/connect/models/action-attempts/action-attempt.ts
@@ -187,7 +293,8 @@ var action_attempt = zod.z.union([
187
293
  ...set_heat_action_attempt.options,
188
294
  ...set_heat_cool_action_attempt.options,
189
295
  ...set_fan_mode_action_attempt.options,
190
- ...set_thermostat_off_action_attempt.options
296
+ ...set_thermostat_off_action_attempt.options,
297
+ ...deprecated_action_attempts
191
298
  ]);
192
299
  zod.z.record(
193
300
  zod.z.string().max(40),
@@ -698,6 +805,12 @@ var seam_event = zod.z.discriminatedUnion("event_type", [
698
805
  ...enrollment_automation_events,
699
806
  ...phone_events
700
807
  ]);
808
+ var workspace = zod.z.object({
809
+ workspace_id: zod.z.string().uuid(),
810
+ name: zod.z.string(),
811
+ is_sandbox: zod.z.boolean(),
812
+ connect_partner_name: zod.z.string().nullable()
813
+ });
701
814
 
702
815
  // src/lib/seam/connect/openapi.ts
703
816
  var openapi_default = {
@@ -1550,14 +1663,489 @@ var openapi_default = {
1550
1663
  type: "object"
1551
1664
  },
1552
1665
  {
1553
- description: "Setting HVAC to heat mode failed.",
1666
+ description: "Setting HVAC to heat mode failed.",
1667
+ properties: {
1668
+ action_attempt_id: {
1669
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1670
+ format: "uuid",
1671
+ type: "string"
1672
+ },
1673
+ action_type: { enum: ["SET_HEAT"], type: "string" },
1674
+ error: {
1675
+ properties: {
1676
+ message: { type: "string" },
1677
+ type: { type: "string" }
1678
+ },
1679
+ required: ["type", "message"],
1680
+ type: "object"
1681
+ },
1682
+ result: { format: "null", nullable: true, type: "string" },
1683
+ status: { enum: ["error"], type: "string" }
1684
+ },
1685
+ required: [
1686
+ "action_attempt_id",
1687
+ "status",
1688
+ "result",
1689
+ "action_type",
1690
+ "error"
1691
+ ],
1692
+ type: "object"
1693
+ },
1694
+ {
1695
+ description: "Setting HVAC to heat-cool mode.",
1696
+ properties: {
1697
+ action_attempt_id: {
1698
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1699
+ format: "uuid",
1700
+ type: "string"
1701
+ },
1702
+ action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
1703
+ error: { format: "null", nullable: true, type: "string" },
1704
+ result: { format: "null", nullable: true, type: "string" },
1705
+ status: { enum: ["pending"], type: "string" }
1706
+ },
1707
+ required: [
1708
+ "action_attempt_id",
1709
+ "status",
1710
+ "result",
1711
+ "error",
1712
+ "action_type"
1713
+ ],
1714
+ type: "object"
1715
+ },
1716
+ {
1717
+ description: "Setting HVAC to heat-cool mode succeeded.",
1718
+ properties: {
1719
+ action_attempt_id: {
1720
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1721
+ format: "uuid",
1722
+ type: "string"
1723
+ },
1724
+ action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
1725
+ error: { format: "null", nullable: true, type: "string" },
1726
+ result: { properties: {}, type: "object" },
1727
+ status: { enum: ["success"], type: "string" }
1728
+ },
1729
+ required: [
1730
+ "action_attempt_id",
1731
+ "status",
1732
+ "error",
1733
+ "action_type",
1734
+ "result"
1735
+ ],
1736
+ type: "object"
1737
+ },
1738
+ {
1739
+ description: "Setting heat-cool mode failed.",
1740
+ properties: {
1741
+ action_attempt_id: {
1742
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1743
+ format: "uuid",
1744
+ type: "string"
1745
+ },
1746
+ action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
1747
+ error: {
1748
+ properties: {
1749
+ message: { type: "string" },
1750
+ type: { type: "string" }
1751
+ },
1752
+ required: ["type", "message"],
1753
+ type: "object"
1754
+ },
1755
+ result: { format: "null", nullable: true, type: "string" },
1756
+ status: { enum: ["error"], type: "string" }
1757
+ },
1758
+ required: [
1759
+ "action_attempt_id",
1760
+ "status",
1761
+ "result",
1762
+ "action_type",
1763
+ "error"
1764
+ ],
1765
+ type: "object"
1766
+ },
1767
+ {
1768
+ description: "Setting fan mode.",
1769
+ properties: {
1770
+ action_attempt_id: {
1771
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1772
+ format: "uuid",
1773
+ type: "string"
1774
+ },
1775
+ action_type: { enum: ["SET_FAN_MODE"], type: "string" },
1776
+ error: { format: "null", nullable: true, type: "string" },
1777
+ result: { format: "null", nullable: true, type: "string" },
1778
+ status: { enum: ["pending"], type: "string" }
1779
+ },
1780
+ required: [
1781
+ "action_attempt_id",
1782
+ "status",
1783
+ "result",
1784
+ "error",
1785
+ "action_type"
1786
+ ],
1787
+ type: "object"
1788
+ },
1789
+ {
1790
+ description: "Setting fan mode succeeded.",
1791
+ properties: {
1792
+ action_attempt_id: {
1793
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1794
+ format: "uuid",
1795
+ type: "string"
1796
+ },
1797
+ action_type: { enum: ["SET_FAN_MODE"], type: "string" },
1798
+ error: { format: "null", nullable: true, type: "string" },
1799
+ result: { properties: {}, type: "object" },
1800
+ status: { enum: ["success"], type: "string" }
1801
+ },
1802
+ required: [
1803
+ "action_attempt_id",
1804
+ "status",
1805
+ "error",
1806
+ "action_type",
1807
+ "result"
1808
+ ],
1809
+ type: "object"
1810
+ },
1811
+ {
1812
+ description: "Setting fan mode failed.",
1813
+ properties: {
1814
+ action_attempt_id: {
1815
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1816
+ format: "uuid",
1817
+ type: "string"
1818
+ },
1819
+ action_type: { enum: ["SET_FAN_MODE"], type: "string" },
1820
+ error: {
1821
+ properties: {
1822
+ message: { type: "string" },
1823
+ type: { type: "string" }
1824
+ },
1825
+ required: ["type", "message"],
1826
+ type: "object"
1827
+ },
1828
+ result: { format: "null", nullable: true, type: "string" },
1829
+ status: { enum: ["error"], type: "string" }
1830
+ },
1831
+ required: [
1832
+ "action_attempt_id",
1833
+ "status",
1834
+ "result",
1835
+ "action_type",
1836
+ "error"
1837
+ ],
1838
+ type: "object"
1839
+ },
1840
+ {
1841
+ description: "Turning HVAC off.",
1842
+ properties: {
1843
+ action_attempt_id: {
1844
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1845
+ format: "uuid",
1846
+ type: "string"
1847
+ },
1848
+ action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
1849
+ error: { format: "null", nullable: true, type: "string" },
1850
+ result: { format: "null", nullable: true, type: "string" },
1851
+ status: { enum: ["pending"], type: "string" }
1852
+ },
1853
+ required: [
1854
+ "action_attempt_id",
1855
+ "status",
1856
+ "result",
1857
+ "error",
1858
+ "action_type"
1859
+ ],
1860
+ type: "object"
1861
+ },
1862
+ {
1863
+ description: "Turning HVAC off succeeded.",
1864
+ properties: {
1865
+ action_attempt_id: {
1866
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1867
+ format: "uuid",
1868
+ type: "string"
1869
+ },
1870
+ action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
1871
+ error: { format: "null", nullable: true, type: "string" },
1872
+ result: { properties: {}, type: "object" },
1873
+ status: { enum: ["success"], type: "string" }
1874
+ },
1875
+ required: [
1876
+ "action_attempt_id",
1877
+ "status",
1878
+ "error",
1879
+ "action_type",
1880
+ "result"
1881
+ ],
1882
+ type: "object"
1883
+ },
1884
+ {
1885
+ description: "Turning HVAC off failed.",
1886
+ properties: {
1887
+ action_attempt_id: {
1888
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1889
+ format: "uuid",
1890
+ type: "string"
1891
+ },
1892
+ action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
1893
+ error: {
1894
+ properties: {
1895
+ message: { type: "string" },
1896
+ type: { type: "string" }
1897
+ },
1898
+ required: ["type", "message"],
1899
+ type: "object"
1900
+ },
1901
+ result: { format: "null", nullable: true, type: "string" },
1902
+ status: { enum: ["error"], type: "string" }
1903
+ },
1904
+ required: [
1905
+ "action_attempt_id",
1906
+ "status",
1907
+ "result",
1908
+ "action_type",
1909
+ "error"
1910
+ ],
1911
+ type: "object"
1912
+ },
1913
+ {
1914
+ properties: {
1915
+ action_attempt_id: {
1916
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1917
+ format: "uuid",
1918
+ type: "string"
1919
+ },
1920
+ action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
1921
+ error: { format: "null", nullable: true, type: "string" },
1922
+ result: { format: "null", nullable: true, type: "string" },
1923
+ status: { enum: ["pending"], type: "string" }
1924
+ },
1925
+ required: [
1926
+ "action_attempt_id",
1927
+ "status",
1928
+ "result",
1929
+ "error",
1930
+ "action_type"
1931
+ ],
1932
+ type: "object"
1933
+ },
1934
+ {
1935
+ properties: {
1936
+ action_attempt_id: {
1937
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1938
+ format: "uuid",
1939
+ type: "string"
1940
+ },
1941
+ action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
1942
+ error: { format: "null", nullable: true, type: "string" },
1943
+ result: { nullable: true },
1944
+ status: { enum: ["success"], type: "string" }
1945
+ },
1946
+ required: ["action_attempt_id", "status", "error", "action_type"],
1947
+ type: "object"
1948
+ },
1949
+ {
1950
+ properties: {
1951
+ action_attempt_id: {
1952
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1953
+ format: "uuid",
1954
+ type: "string"
1955
+ },
1956
+ action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
1957
+ error: {
1958
+ properties: {
1959
+ message: { type: "string" },
1960
+ type: { type: "string" }
1961
+ },
1962
+ required: ["type", "message"],
1963
+ type: "object"
1964
+ },
1965
+ result: { format: "null", nullable: true, type: "string" },
1966
+ status: { enum: ["error"], type: "string" }
1967
+ },
1968
+ required: [
1969
+ "action_attempt_id",
1970
+ "status",
1971
+ "result",
1972
+ "action_type",
1973
+ "error"
1974
+ ],
1975
+ type: "object"
1976
+ },
1977
+ {
1978
+ properties: {
1979
+ action_attempt_id: {
1980
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1981
+ format: "uuid",
1982
+ type: "string"
1983
+ },
1984
+ action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
1985
+ error: { format: "null", nullable: true, type: "string" },
1986
+ result: { format: "null", nullable: true, type: "string" },
1987
+ status: { enum: ["pending"], type: "string" }
1988
+ },
1989
+ required: [
1990
+ "action_attempt_id",
1991
+ "status",
1992
+ "result",
1993
+ "error",
1994
+ "action_type"
1995
+ ],
1996
+ type: "object"
1997
+ },
1998
+ {
1999
+ properties: {
2000
+ action_attempt_id: {
2001
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2002
+ format: "uuid",
2003
+ type: "string"
2004
+ },
2005
+ action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
2006
+ error: { format: "null", nullable: true, type: "string" },
2007
+ result: { nullable: true },
2008
+ status: { enum: ["success"], type: "string" }
2009
+ },
2010
+ required: ["action_attempt_id", "status", "error", "action_type"],
2011
+ type: "object"
2012
+ },
2013
+ {
2014
+ properties: {
2015
+ action_attempt_id: {
2016
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2017
+ format: "uuid",
2018
+ type: "string"
2019
+ },
2020
+ action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
2021
+ error: {
2022
+ properties: {
2023
+ message: { type: "string" },
2024
+ type: { type: "string" }
2025
+ },
2026
+ required: ["type", "message"],
2027
+ type: "object"
2028
+ },
2029
+ result: { format: "null", nullable: true, type: "string" },
2030
+ status: { enum: ["error"], type: "string" }
2031
+ },
2032
+ required: [
2033
+ "action_attempt_id",
2034
+ "status",
2035
+ "result",
2036
+ "action_type",
2037
+ "error"
2038
+ ],
2039
+ type: "object"
2040
+ },
2041
+ {
2042
+ properties: {
2043
+ action_attempt_id: {
2044
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2045
+ format: "uuid",
2046
+ type: "string"
2047
+ },
2048
+ action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
2049
+ error: { format: "null", nullable: true, type: "string" },
2050
+ result: { format: "null", nullable: true, type: "string" },
2051
+ status: { enum: ["pending"], type: "string" }
2052
+ },
2053
+ required: [
2054
+ "action_attempt_id",
2055
+ "status",
2056
+ "result",
2057
+ "error",
2058
+ "action_type"
2059
+ ],
2060
+ type: "object"
2061
+ },
2062
+ {
2063
+ properties: {
2064
+ action_attempt_id: {
2065
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2066
+ format: "uuid",
2067
+ type: "string"
2068
+ },
2069
+ action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
2070
+ error: { format: "null", nullable: true, type: "string" },
2071
+ result: { nullable: true },
2072
+ status: { enum: ["success"], type: "string" }
2073
+ },
2074
+ required: ["action_attempt_id", "status", "error", "action_type"],
2075
+ type: "object"
2076
+ },
2077
+ {
2078
+ properties: {
2079
+ action_attempt_id: {
2080
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2081
+ format: "uuid",
2082
+ type: "string"
2083
+ },
2084
+ action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
2085
+ error: {
2086
+ properties: {
2087
+ message: { type: "string" },
2088
+ type: { type: "string" }
2089
+ },
2090
+ required: ["type", "message"],
2091
+ type: "object"
2092
+ },
2093
+ result: { format: "null", nullable: true, type: "string" },
2094
+ status: { enum: ["error"], type: "string" }
2095
+ },
2096
+ required: [
2097
+ "action_attempt_id",
2098
+ "status",
2099
+ "result",
2100
+ "action_type",
2101
+ "error"
2102
+ ],
2103
+ type: "object"
2104
+ },
2105
+ {
2106
+ properties: {
2107
+ action_attempt_id: {
2108
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2109
+ format: "uuid",
2110
+ type: "string"
2111
+ },
2112
+ action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
2113
+ error: { format: "null", nullable: true, type: "string" },
2114
+ result: { format: "null", nullable: true, type: "string" },
2115
+ status: { enum: ["pending"], type: "string" }
2116
+ },
2117
+ required: [
2118
+ "action_attempt_id",
2119
+ "status",
2120
+ "result",
2121
+ "error",
2122
+ "action_type"
2123
+ ],
2124
+ type: "object"
2125
+ },
2126
+ {
2127
+ properties: {
2128
+ action_attempt_id: {
2129
+ description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
2130
+ format: "uuid",
2131
+ type: "string"
2132
+ },
2133
+ action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
2134
+ error: { format: "null", nullable: true, type: "string" },
2135
+ result: { nullable: true },
2136
+ status: { enum: ["success"], type: "string" }
2137
+ },
2138
+ required: ["action_attempt_id", "status", "error", "action_type"],
2139
+ type: "object"
2140
+ },
2141
+ {
1554
2142
  properties: {
1555
2143
  action_attempt_id: {
1556
2144
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1557
2145
  format: "uuid",
1558
2146
  type: "string"
1559
2147
  },
1560
- action_type: { enum: ["SET_HEAT"], type: "string" },
2148
+ action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
1561
2149
  error: {
1562
2150
  properties: {
1563
2151
  message: { type: "string" },
@@ -1579,14 +2167,13 @@ var openapi_default = {
1579
2167
  type: "object"
1580
2168
  },
1581
2169
  {
1582
- description: "Setting HVAC to heat-cool mode.",
1583
2170
  properties: {
1584
2171
  action_attempt_id: {
1585
2172
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1586
2173
  format: "uuid",
1587
2174
  type: "string"
1588
2175
  },
1589
- action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
2176
+ action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
1590
2177
  error: { format: "null", nullable: true, type: "string" },
1591
2178
  result: { format: "null", nullable: true, type: "string" },
1592
2179
  status: { enum: ["pending"], type: "string" }
@@ -1601,36 +2188,28 @@ var openapi_default = {
1601
2188
  type: "object"
1602
2189
  },
1603
2190
  {
1604
- description: "Setting HVAC to heat-cool mode succeeded.",
1605
2191
  properties: {
1606
2192
  action_attempt_id: {
1607
2193
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1608
2194
  format: "uuid",
1609
2195
  type: "string"
1610
2196
  },
1611
- action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
2197
+ action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
1612
2198
  error: { format: "null", nullable: true, type: "string" },
1613
- result: { properties: {}, type: "object" },
2199
+ result: { nullable: true },
1614
2200
  status: { enum: ["success"], type: "string" }
1615
2201
  },
1616
- required: [
1617
- "action_attempt_id",
1618
- "status",
1619
- "error",
1620
- "action_type",
1621
- "result"
1622
- ],
2202
+ required: ["action_attempt_id", "status", "error", "action_type"],
1623
2203
  type: "object"
1624
2204
  },
1625
2205
  {
1626
- description: "Setting heat-cool mode failed.",
1627
2206
  properties: {
1628
2207
  action_attempt_id: {
1629
2208
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1630
2209
  format: "uuid",
1631
2210
  type: "string"
1632
2211
  },
1633
- action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
2212
+ action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
1634
2213
  error: {
1635
2214
  properties: {
1636
2215
  message: { type: "string" },
@@ -1652,14 +2231,13 @@ var openapi_default = {
1652
2231
  type: "object"
1653
2232
  },
1654
2233
  {
1655
- description: "Setting fan mode.",
1656
2234
  properties: {
1657
2235
  action_attempt_id: {
1658
2236
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1659
2237
  format: "uuid",
1660
2238
  type: "string"
1661
2239
  },
1662
- action_type: { enum: ["SET_FAN_MODE"], type: "string" },
2240
+ action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
1663
2241
  error: { format: "null", nullable: true, type: "string" },
1664
2242
  result: { format: "null", nullable: true, type: "string" },
1665
2243
  status: { enum: ["pending"], type: "string" }
@@ -1674,36 +2252,28 @@ var openapi_default = {
1674
2252
  type: "object"
1675
2253
  },
1676
2254
  {
1677
- description: "Setting fan mode succeeded.",
1678
2255
  properties: {
1679
2256
  action_attempt_id: {
1680
2257
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1681
2258
  format: "uuid",
1682
2259
  type: "string"
1683
2260
  },
1684
- action_type: { enum: ["SET_FAN_MODE"], type: "string" },
2261
+ action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
1685
2262
  error: { format: "null", nullable: true, type: "string" },
1686
- result: { properties: {}, type: "object" },
2263
+ result: { nullable: true },
1687
2264
  status: { enum: ["success"], type: "string" }
1688
2265
  },
1689
- required: [
1690
- "action_attempt_id",
1691
- "status",
1692
- "error",
1693
- "action_type",
1694
- "result"
1695
- ],
2266
+ required: ["action_attempt_id", "status", "error", "action_type"],
1696
2267
  type: "object"
1697
2268
  },
1698
2269
  {
1699
- description: "Setting fan mode failed.",
1700
2270
  properties: {
1701
2271
  action_attempt_id: {
1702
2272
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1703
2273
  format: "uuid",
1704
2274
  type: "string"
1705
2275
  },
1706
- action_type: { enum: ["SET_FAN_MODE"], type: "string" },
2276
+ action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
1707
2277
  error: {
1708
2278
  properties: {
1709
2279
  message: { type: "string" },
@@ -1725,14 +2295,13 @@ var openapi_default = {
1725
2295
  type: "object"
1726
2296
  },
1727
2297
  {
1728
- description: "Turning HVAC off.",
1729
2298
  properties: {
1730
2299
  action_attempt_id: {
1731
2300
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1732
2301
  format: "uuid",
1733
2302
  type: "string"
1734
2303
  },
1735
- action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
2304
+ action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
1736
2305
  error: { format: "null", nullable: true, type: "string" },
1737
2306
  result: { format: "null", nullable: true, type: "string" },
1738
2307
  status: { enum: ["pending"], type: "string" }
@@ -1747,36 +2316,28 @@ var openapi_default = {
1747
2316
  type: "object"
1748
2317
  },
1749
2318
  {
1750
- description: "Turning HVAC off succeeded.",
1751
2319
  properties: {
1752
2320
  action_attempt_id: {
1753
2321
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1754
2322
  format: "uuid",
1755
2323
  type: "string"
1756
2324
  },
1757
- action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
2325
+ action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
1758
2326
  error: { format: "null", nullable: true, type: "string" },
1759
- result: { properties: {}, type: "object" },
2327
+ result: { nullable: true },
1760
2328
  status: { enum: ["success"], type: "string" }
1761
2329
  },
1762
- required: [
1763
- "action_attempt_id",
1764
- "status",
1765
- "error",
1766
- "action_type",
1767
- "result"
1768
- ],
2330
+ required: ["action_attempt_id", "status", "error", "action_type"],
1769
2331
  type: "object"
1770
2332
  },
1771
2333
  {
1772
- description: "Turning HVAC off failed.",
1773
2334
  properties: {
1774
2335
  action_attempt_id: {
1775
2336
  description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
1776
2337
  format: "uuid",
1777
2338
  type: "string"
1778
2339
  },
1779
- action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
2340
+ action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
1780
2341
  error: {
1781
2342
  properties: {
1782
2343
  message: { type: "string" },
@@ -3966,91 +4527,7 @@ var openapi_default = {
3966
4527
  properties: {
3967
4528
  access_code: { $ref: "#/components/schemas/access_code" },
3968
4529
  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
- ]
4530
+ $ref: "#/components/schemas/action_attempt"
4054
4531
  },
4055
4532
  ok: { type: "boolean" }
4056
4533
  },
@@ -4268,91 +4745,7 @@ var openapi_default = {
4268
4745
  schema: {
4269
4746
  properties: {
4270
4747
  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
- ]
4748
+ $ref: "#/components/schemas/action_attempt"
4356
4749
  },
4357
4750
  ok: { type: "boolean" }
4358
4751
  },
@@ -4754,91 +5147,7 @@ var openapi_default = {
4754
5147
  schema: {
4755
5148
  properties: {
4756
5149
  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
- ]
5150
+ $ref: "#/components/schemas/action_attempt"
4842
5151
  },
4843
5152
  ok: { type: "boolean" }
4844
5153
  },
@@ -5114,91 +5423,7 @@ var openapi_default = {
5114
5423
  schema: {
5115
5424
  properties: {
5116
5425
  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
- ]
5426
+ $ref: "#/components/schemas/action_attempt"
5202
5427
  },
5203
5428
  ok: { type: "boolean" }
5204
5429
  },
@@ -5273,91 +5498,7 @@ var openapi_default = {
5273
5498
  schema: {
5274
5499
  properties: {
5275
5500
  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
- ]
5501
+ $ref: "#/components/schemas/action_attempt"
5361
5502
  },
5362
5503
  ok: { type: "boolean" }
5363
5504
  },
@@ -5422,102 +5563,18 @@ var openapi_default = {
5422
5563
  },
5423
5564
  required: ["access_code_id"],
5424
5565
  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
- ]
5566
+ }
5567
+ }
5568
+ }
5569
+ },
5570
+ responses: {
5571
+ 200: {
5572
+ content: {
5573
+ "application/json": {
5574
+ schema: {
5575
+ properties: {
5576
+ action_attempt: {
5577
+ $ref: "#/components/schemas/action_attempt"
5521
5578
  },
5522
5579
  ok: { type: "boolean" }
5523
5580
  },
@@ -7546,91 +7603,7 @@ var openapi_default = {
7546
7603
  schema: {
7547
7604
  properties: {
7548
7605
  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
- ]
7606
+ $ref: "#/components/schemas/action_attempt"
7634
7607
  },
7635
7608
  ok: { type: "boolean" }
7636
7609
  },
@@ -7683,93 +7656,7 @@ var openapi_default = {
7683
7656
  schema: {
7684
7657
  properties: {
7685
7658
  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
- },
7659
+ items: { $ref: "#/components/schemas/action_attempt" },
7773
7660
  type: "array"
7774
7661
  },
7775
7662
  ok: { type: "boolean" }
@@ -8705,6 +8592,7 @@ var openapi_default = {
8705
8592
  401: { description: "Unauthorized" }
8706
8593
  },
8707
8594
  security: [
8595
+ { client_session: [] },
8708
8596
  { api_key: [] },
8709
8597
  { pat_with_workspace: [] },
8710
8598
  { console_session: [] }
@@ -10518,91 +10406,7 @@ var openapi_default = {
10518
10406
  schema: {
10519
10407
  properties: {
10520
10408
  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
- ]
10409
+ $ref: "#/components/schemas/action_attempt"
10606
10410
  },
10607
10411
  noise_threshold: {
10608
10412
  $ref: "#/components/schemas/noise_threshold"
@@ -10656,91 +10460,7 @@ var openapi_default = {
10656
10460
  schema: {
10657
10461
  properties: {
10658
10462
  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
- ]
10463
+ $ref: "#/components/schemas/action_attempt"
10744
10464
  },
10745
10465
  ok: { type: "boolean" }
10746
10466
  },
@@ -10895,91 +10615,7 @@ var openapi_default = {
10895
10615
  schema: {
10896
10616
  properties: {
10897
10617
  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
- ]
10618
+ $ref: "#/components/schemas/action_attempt"
10983
10619
  },
10984
10620
  ok: { type: "boolean" }
10985
10621
  },
@@ -11031,91 +10667,7 @@ var openapi_default = {
11031
10667
  schema: {
11032
10668
  properties: {
11033
10669
  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
- ]
10670
+ $ref: "#/components/schemas/action_attempt"
11119
10671
  },
11120
10672
  ok: { type: "boolean" }
11121
10673
  },
@@ -11168,91 +10720,7 @@ var openapi_default = {
11168
10720
  schema: {
11169
10721
  properties: {
11170
10722
  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
- ]
10723
+ $ref: "#/components/schemas/action_attempt"
11256
10724
  },
11257
10725
  ok: { type: "boolean" }
11258
10726
  },
@@ -13964,7 +13432,7 @@ var openapi_default = {
13964
13432
  ok: { type: "boolean" },
13965
13433
  workspace: { $ref: "#/components/schemas/workspace" }
13966
13434
  },
13967
- required: ["ok"],
13435
+ required: ["workspace", "ok"],
13968
13436
  type: "object"
13969
13437
  }
13970
13438
  }
@@ -13995,7 +13463,7 @@ var openapi_default = {
13995
13463
  ok: { type: "boolean" },
13996
13464
  workspace: { $ref: "#/components/schemas/workspace" }
13997
13465
  },
13998
- required: ["ok"],
13466
+ required: ["workspace", "ok"],
13999
13467
  type: "object"
14000
13468
  }
14001
13469
  }