@seamapi/types 1.175.0 → 1.177.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 (116) hide show
  1. package/dist/connect.cjs +1973 -161
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +4627 -403
  4. package/lib/seam/connect/model-types.d.ts +1 -1
  5. package/lib/seam/connect/models/acs/system.d.ts +36 -0
  6. package/lib/seam/connect/models/acs/system.js +8 -0
  7. package/lib/seam/connect/models/acs/system.js.map +1 -1
  8. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +556 -0
  9. package/lib/seam/connect/models/action-attempts/action-attempt.js +20 -0
  10. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -0
  11. package/lib/seam/connect/models/action-attempts/common.d.ts +53 -0
  12. package/lib/seam/connect/models/action-attempts/common.js +24 -0
  13. package/lib/seam/connect/models/action-attempts/common.js.map +1 -0
  14. package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
  15. package/lib/seam/connect/models/action-attempts/index.js +2 -0
  16. package/lib/seam/connect/models/action-attempts/index.js.map +1 -0
  17. package/lib/seam/connect/models/action-attempts/lock-door.d.ts +72 -0
  18. package/lib/seam/connect/models/action-attempts/lock-door.js +25 -0
  19. package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -0
  20. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.d.ts +71 -0
  21. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js +28 -0
  22. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js.map +1 -0
  23. package/lib/seam/connect/models/action-attempts/set-cool.d.ts +71 -0
  24. package/lib/seam/connect/models/action-attempts/set-cool.js +25 -0
  25. package/lib/seam/connect/models/action-attempts/set-cool.js.map +1 -0
  26. package/lib/seam/connect/models/action-attempts/set-fan-mode.d.ts +71 -0
  27. package/lib/seam/connect/models/action-attempts/set-fan-mode.js +25 -0
  28. package/lib/seam/connect/models/action-attempts/set-fan-mode.js.map +1 -0
  29. package/lib/seam/connect/models/action-attempts/set-heat-cool.d.ts +71 -0
  30. package/lib/seam/connect/models/action-attempts/set-heat-cool.js +25 -0
  31. package/lib/seam/connect/models/action-attempts/set-heat-cool.js.map +1 -0
  32. package/lib/seam/connect/models/action-attempts/set-heat.d.ts +71 -0
  33. package/lib/seam/connect/models/action-attempts/set-heat.js +25 -0
  34. package/lib/seam/connect/models/action-attempts/set-heat.js.map +1 -0
  35. package/lib/seam/connect/models/action-attempts/set-thermostat-off.d.ts +71 -0
  36. package/lib/seam/connect/models/action-attempts/set-thermostat-off.js +25 -0
  37. package/lib/seam/connect/models/action-attempts/set-thermostat-off.js.map +1 -0
  38. package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +72 -0
  39. package/lib/seam/connect/models/action-attempts/unlock-door.js +25 -0
  40. package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -0
  41. package/lib/seam/connect/models/devices/managed-device.js +6 -2
  42. package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
  43. package/lib/seam/connect/models/events/access-codes.d.ts +1 -1
  44. package/lib/seam/connect/models/events/access-codes.js +1 -1
  45. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  46. package/lib/seam/connect/models/events/acs/common.d.ts +1 -1
  47. package/lib/seam/connect/models/events/acs/common.js +1 -1
  48. package/lib/seam/connect/models/events/acs/common.js.map +1 -1
  49. package/lib/seam/connect/models/events/acs/credentials.d.ts +1 -1
  50. package/lib/seam/connect/models/events/acs/credentials.js +1 -1
  51. package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
  52. package/lib/seam/connect/models/events/acs/users.d.ts +1 -1
  53. package/lib/seam/connect/models/events/acs/users.js +1 -1
  54. package/lib/seam/connect/models/events/acs/users.js.map +1 -1
  55. package/lib/seam/connect/models/events/action-attempts.d.ts +10 -10
  56. package/lib/seam/connect/models/events/client-sessions.d.ts +1 -1
  57. package/lib/seam/connect/models/events/client-sessions.js +1 -1
  58. package/lib/seam/connect/models/events/client-sessions.js.map +1 -1
  59. package/lib/seam/connect/models/events/common.d.ts +1 -1
  60. package/lib/seam/connect/models/events/common.js +1 -1
  61. package/lib/seam/connect/models/events/common.js.map +1 -1
  62. package/lib/seam/connect/models/events/connected-accounts.d.ts +1 -1
  63. package/lib/seam/connect/models/events/connected-accounts.js +1 -1
  64. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  65. package/lib/seam/connect/models/events/devices.d.ts +1 -1
  66. package/lib/seam/connect/models/events/devices.js +1 -1
  67. package/lib/seam/connect/models/events/devices.js.map +1 -1
  68. package/lib/seam/connect/models/events/enrollment-automations.d.ts +1 -1
  69. package/lib/seam/connect/models/events/enrollment-automations.js +1 -1
  70. package/lib/seam/connect/models/events/enrollment-automations.js.map +1 -1
  71. package/lib/seam/connect/models/events/phones.d.ts +1 -1
  72. package/lib/seam/connect/models/events/phones.js +1 -1
  73. package/lib/seam/connect/models/events/phones.js.map +1 -1
  74. package/lib/seam/connect/models/events/seam-event.d.ts +1 -1
  75. package/lib/seam/connect/models/events/seam-event.js +1 -1
  76. package/lib/seam/connect/models/events/seam-event.js.map +1 -1
  77. package/lib/seam/connect/models/index.d.ts +1 -0
  78. package/lib/seam/connect/models/index.js +1 -0
  79. package/lib/seam/connect/models/index.js.map +1 -1
  80. package/lib/seam/connect/openapi.d.ts +1366 -105
  81. package/lib/seam/connect/openapi.js +1686 -28
  82. package/lib/seam/connect/openapi.js.map +1 -1
  83. package/lib/seam/connect/route-types.d.ts +2764 -356
  84. package/lib/seam/connect/schemas.d.ts +1 -1
  85. package/lib/seam/connect/schemas.js +1 -1
  86. package/lib/seam/connect/schemas.js.map +1 -1
  87. package/package.json +1 -1
  88. package/src/lib/seam/connect/model-types.ts +1 -0
  89. package/src/lib/seam/connect/models/acs/system.ts +12 -0
  90. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +25 -0
  91. package/src/lib/seam/connect/models/action-attempts/common.ts +27 -0
  92. package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
  93. package/src/lib/seam/connect/models/action-attempts/lock-door.ts +35 -0
  94. package/src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.ts +39 -0
  95. package/src/lib/seam/connect/models/action-attempts/set-cool.ts +33 -0
  96. package/src/lib/seam/connect/models/action-attempts/set-fan-mode.ts +33 -0
  97. package/src/lib/seam/connect/models/action-attempts/set-heat-cool.ts +33 -0
  98. package/src/lib/seam/connect/models/action-attempts/set-heat.ts +33 -0
  99. package/src/lib/seam/connect/models/action-attempts/set-thermostat-off.ts +36 -0
  100. package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +35 -0
  101. package/src/lib/seam/connect/models/devices/managed-device.ts +8 -2
  102. package/src/lib/seam/connect/models/events/access-codes.ts +1 -1
  103. package/src/lib/seam/connect/models/events/acs/common.ts +1 -1
  104. package/src/lib/seam/connect/models/events/acs/credentials.ts +1 -1
  105. package/src/lib/seam/connect/models/events/acs/users.ts +1 -1
  106. package/src/lib/seam/connect/models/events/client-sessions.ts +1 -1
  107. package/src/lib/seam/connect/models/events/common.ts +1 -1
  108. package/src/lib/seam/connect/models/events/connected-accounts.ts +1 -1
  109. package/src/lib/seam/connect/models/events/devices.ts +1 -1
  110. package/src/lib/seam/connect/models/events/enrollment-automations.ts +1 -1
  111. package/src/lib/seam/connect/models/events/phones.ts +1 -1
  112. package/src/lib/seam/connect/models/events/seam-event.ts +1 -1
  113. package/src/lib/seam/connect/models/index.ts +1 -0
  114. package/src/lib/seam/connect/openapi.ts +1710 -28
  115. package/src/lib/seam/connect/route-types.ts +3452 -876
  116. package/src/lib/seam/connect/schemas.ts +6 -1
@@ -1 +1 @@
1
- export type { ConnectWebview, CustomMetadata, SeamEvent, SeamEventType, } from './models/index.js';
1
+ export type { ActionAttempt, ConnectWebview, CustomMetadata, SeamEvent, SeamEventType, } from './models/index.js';
@@ -5,6 +5,26 @@ export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>;
5
5
  export declare const acs_system: z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  created_at: z.ZodString;
8
+ errors: z.ZodArray<z.ZodObject<{
9
+ error_code: z.ZodString;
10
+ message: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ message: string;
13
+ error_code: string;
14
+ }, {
15
+ message: string;
16
+ error_code: string;
17
+ }>, "many">;
18
+ warnings: z.ZodArray<z.ZodObject<{
19
+ warning_code: z.ZodString;
20
+ message: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ message: string;
23
+ warning_code: string;
24
+ }, {
25
+ message: string;
26
+ warning_code: string;
27
+ }>, "many">;
8
28
  acs_system_id: z.ZodString;
9
29
  workspace_id: z.ZodString;
10
30
  external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building"]>>;
@@ -21,6 +41,14 @@ export declare const acs_system: z.ZodObject<{
21
41
  }, "strip", z.ZodTypeAny, {
22
42
  name: string;
23
43
  created_at: string;
44
+ errors: {
45
+ message: string;
46
+ error_code: string;
47
+ }[];
48
+ warnings: {
49
+ message: string;
50
+ warning_code: string;
51
+ }[];
24
52
  acs_system_id: string;
25
53
  workspace_id: string;
26
54
  connected_account_ids: string[];
@@ -37,6 +65,14 @@ export declare const acs_system: z.ZodObject<{
37
65
  }, {
38
66
  name: string;
39
67
  created_at: string;
68
+ errors: {
69
+ message: string;
70
+ error_code: string;
71
+ }[];
72
+ warnings: {
73
+ message: string;
74
+ warning_code: string;
75
+ }[];
40
76
  acs_system_id: string;
41
77
  workspace_id: string;
42
78
  connected_account_ids: string[];
@@ -35,6 +35,14 @@ export const acs_system = z
35
35
  connected_account_ids: z.array(z.string()),
36
36
  image_url: z.string(),
37
37
  image_alt_text: z.string(),
38
+ errors: z.array(z.object({
39
+ error_code: z.string(),
40
+ message: z.string(),
41
+ })),
42
+ warnings: z.array(z.object({
43
+ warning_code: z.string(),
44
+ message: z.string(),
45
+ })),
38
46
  })
39
47
  .merge(acs_system_capability_flags);
40
48
  //# sourceMappingURL=system.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAE9E,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,UAAU;IACV,UAAU;IACV,YAAY;IACZ,eAAe;IACf,qCAAqC;IACrC,mBAAmB;IACnB,+BAA+B;IAC/B,gBAAgB;CACR,CAAA;AAEV,oEAAoE;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,IAAI,CAAC,+BAA+B,CAAC;KACrC,QAAQ,EAAE,CAAA;AAIb,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,aAAa,EAAE,wBAAwB;IACvC,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,WAAW,EAAE,wBAAwB,CAAC,QAAQ,CAAC;;;;OAI5C,CAAC;IACJ,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;OAItD,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC;KACD,KAAK,CAAC,2BAA2B,CAAC,CAAA"}
1
+ {"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAE9E,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,UAAU;IACV,UAAU;IACV,YAAY;IACZ,eAAe;IACf,qCAAqC;IACrC,mBAAmB;IACnB,+BAA+B;IAC/B,gBAAgB;CACR,CAAA;AAEV,oEAAoE;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,IAAI,CAAC,+BAA+B,CAAC;KACrC,QAAQ,EAAE,CAAA;AAIb,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,aAAa,EAAE,wBAAwB;IACvC,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,WAAW,EAAE,wBAAwB,CAAC,QAAQ,CAAC;;;;OAI5C,CAAC;IACJ,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;OAItD,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;CACF,CAAC;KACD,KAAK,CAAC,2BAA2B,CAAC,CAAA"}
@@ -0,0 +1,556 @@
1
+ import { z } from 'zod';
2
+ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
3
+ error: z.ZodNull;
4
+ status: z.ZodLiteral<"pending">;
5
+ action_attempt_id: z.ZodString;
6
+ result: z.ZodNull;
7
+ action_type: z.ZodLiteral<"LOCK_DOOR">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ error: null;
10
+ status: "pending";
11
+ action_attempt_id: string;
12
+ result: null;
13
+ action_type: "LOCK_DOOR";
14
+ }, {
15
+ error: null;
16
+ status: "pending";
17
+ action_attempt_id: string;
18
+ result: null;
19
+ action_type: "LOCK_DOOR";
20
+ }>, z.ZodObject<{
21
+ error: z.ZodNull;
22
+ status: z.ZodLiteral<"success">;
23
+ action_attempt_id: z.ZodString;
24
+ action_type: z.ZodLiteral<"LOCK_DOOR">;
25
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ error: null;
28
+ status: "success";
29
+ action_attempt_id: string;
30
+ result: {};
31
+ action_type: "LOCK_DOOR";
32
+ }, {
33
+ error: null;
34
+ status: "success";
35
+ action_attempt_id: string;
36
+ result: {};
37
+ action_type: "LOCK_DOOR";
38
+ }>, z.ZodObject<{
39
+ status: z.ZodLiteral<"error">;
40
+ action_attempt_id: z.ZodString;
41
+ result: z.ZodNull;
42
+ action_type: z.ZodLiteral<"LOCK_DOOR">;
43
+ error: z.ZodObject<{
44
+ type: z.ZodString;
45
+ message: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: string;
48
+ message: string;
49
+ }, {
50
+ type: string;
51
+ message: string;
52
+ }>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ error: {
55
+ type: string;
56
+ message: string;
57
+ };
58
+ status: "error";
59
+ action_attempt_id: string;
60
+ result: null;
61
+ action_type: "LOCK_DOOR";
62
+ }, {
63
+ error: {
64
+ type: string;
65
+ message: string;
66
+ };
67
+ status: "error";
68
+ action_attempt_id: string;
69
+ result: null;
70
+ action_type: "LOCK_DOOR";
71
+ }>, z.ZodObject<{
72
+ error: z.ZodNull;
73
+ status: z.ZodLiteral<"pending">;
74
+ action_attempt_id: z.ZodString;
75
+ result: z.ZodNull;
76
+ action_type: z.ZodLiteral<"UNLOCK_DOOR">;
77
+ }, "strip", z.ZodTypeAny, {
78
+ error: null;
79
+ status: "pending";
80
+ action_attempt_id: string;
81
+ result: null;
82
+ action_type: "UNLOCK_DOOR";
83
+ }, {
84
+ error: null;
85
+ status: "pending";
86
+ action_attempt_id: string;
87
+ result: null;
88
+ action_type: "UNLOCK_DOOR";
89
+ }>, z.ZodObject<{
90
+ error: z.ZodNull;
91
+ status: z.ZodLiteral<"success">;
92
+ action_attempt_id: z.ZodString;
93
+ action_type: z.ZodLiteral<"UNLOCK_DOOR">;
94
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ error: null;
97
+ status: "success";
98
+ action_attempt_id: string;
99
+ result: {};
100
+ action_type: "UNLOCK_DOOR";
101
+ }, {
102
+ error: null;
103
+ status: "success";
104
+ action_attempt_id: string;
105
+ result: {};
106
+ action_type: "UNLOCK_DOOR";
107
+ }>, z.ZodObject<{
108
+ status: z.ZodLiteral<"error">;
109
+ action_attempt_id: z.ZodString;
110
+ result: z.ZodNull;
111
+ action_type: z.ZodLiteral<"UNLOCK_DOOR">;
112
+ error: z.ZodObject<{
113
+ type: z.ZodString;
114
+ message: z.ZodString;
115
+ }, "strip", z.ZodTypeAny, {
116
+ type: string;
117
+ message: string;
118
+ }, {
119
+ type: string;
120
+ message: string;
121
+ }>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ error: {
124
+ type: string;
125
+ message: string;
126
+ };
127
+ status: "error";
128
+ action_attempt_id: string;
129
+ result: null;
130
+ action_type: "UNLOCK_DOOR";
131
+ }, {
132
+ error: {
133
+ type: string;
134
+ message: string;
135
+ };
136
+ status: "error";
137
+ action_attempt_id: string;
138
+ result: null;
139
+ action_type: "UNLOCK_DOOR";
140
+ }>, z.ZodObject<{
141
+ error: z.ZodNull;
142
+ status: z.ZodLiteral<"pending">;
143
+ action_attempt_id: z.ZodString;
144
+ result: z.ZodNull;
145
+ action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
146
+ }, "strip", z.ZodTypeAny, {
147
+ error: null;
148
+ status: "pending";
149
+ action_attempt_id: string;
150
+ result: null;
151
+ action_type: "RESET_SANDBOX_WORKSPACE";
152
+ }, {
153
+ error: null;
154
+ status: "pending";
155
+ action_attempt_id: string;
156
+ result: null;
157
+ action_type: "RESET_SANDBOX_WORKSPACE";
158
+ }>, z.ZodObject<{
159
+ error: z.ZodNull;
160
+ status: z.ZodLiteral<"success">;
161
+ action_attempt_id: z.ZodString;
162
+ action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
163
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ error: null;
166
+ status: "success";
167
+ action_attempt_id: string;
168
+ result: {};
169
+ action_type: "RESET_SANDBOX_WORKSPACE";
170
+ }, {
171
+ error: null;
172
+ status: "success";
173
+ action_attempt_id: string;
174
+ result: {};
175
+ action_type: "RESET_SANDBOX_WORKSPACE";
176
+ }>, z.ZodObject<{
177
+ status: z.ZodLiteral<"error">;
178
+ action_attempt_id: z.ZodString;
179
+ result: z.ZodNull;
180
+ action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
181
+ error: z.ZodObject<{
182
+ type: z.ZodString;
183
+ message: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ type: string;
186
+ message: string;
187
+ }, {
188
+ type: string;
189
+ message: string;
190
+ }>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ error: {
193
+ type: string;
194
+ message: string;
195
+ };
196
+ status: "error";
197
+ action_attempt_id: string;
198
+ result: null;
199
+ action_type: "RESET_SANDBOX_WORKSPACE";
200
+ }, {
201
+ error: {
202
+ type: string;
203
+ message: string;
204
+ };
205
+ status: "error";
206
+ action_attempt_id: string;
207
+ result: null;
208
+ action_type: "RESET_SANDBOX_WORKSPACE";
209
+ }>, z.ZodObject<{
210
+ error: z.ZodNull;
211
+ status: z.ZodLiteral<"pending">;
212
+ action_attempt_id: z.ZodString;
213
+ result: z.ZodNull;
214
+ action_type: z.ZodLiteral<"SET_COOL">;
215
+ }, "strip", z.ZodTypeAny, {
216
+ error: null;
217
+ status: "pending";
218
+ action_attempt_id: string;
219
+ result: null;
220
+ action_type: "SET_COOL";
221
+ }, {
222
+ error: null;
223
+ status: "pending";
224
+ action_attempt_id: string;
225
+ result: null;
226
+ action_type: "SET_COOL";
227
+ }>, z.ZodObject<{
228
+ error: z.ZodNull;
229
+ status: z.ZodLiteral<"success">;
230
+ action_attempt_id: z.ZodString;
231
+ action_type: z.ZodLiteral<"SET_COOL">;
232
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ error: null;
235
+ status: "success";
236
+ action_attempt_id: string;
237
+ result: {};
238
+ action_type: "SET_COOL";
239
+ }, {
240
+ error: null;
241
+ status: "success";
242
+ action_attempt_id: string;
243
+ result: {};
244
+ action_type: "SET_COOL";
245
+ }>, z.ZodObject<{
246
+ status: z.ZodLiteral<"error">;
247
+ action_attempt_id: z.ZodString;
248
+ result: z.ZodNull;
249
+ action_type: z.ZodLiteral<"SET_COOL">;
250
+ error: z.ZodObject<{
251
+ type: z.ZodString;
252
+ message: z.ZodString;
253
+ }, "strip", z.ZodTypeAny, {
254
+ type: string;
255
+ message: string;
256
+ }, {
257
+ type: string;
258
+ message: string;
259
+ }>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ error: {
262
+ type: string;
263
+ message: string;
264
+ };
265
+ status: "error";
266
+ action_attempt_id: string;
267
+ result: null;
268
+ action_type: "SET_COOL";
269
+ }, {
270
+ error: {
271
+ type: string;
272
+ message: string;
273
+ };
274
+ status: "error";
275
+ action_attempt_id: string;
276
+ result: null;
277
+ action_type: "SET_COOL";
278
+ }>, z.ZodObject<{
279
+ error: z.ZodNull;
280
+ status: z.ZodLiteral<"pending">;
281
+ action_attempt_id: z.ZodString;
282
+ result: z.ZodNull;
283
+ action_type: z.ZodLiteral<"SET_HEAT">;
284
+ }, "strip", z.ZodTypeAny, {
285
+ error: null;
286
+ status: "pending";
287
+ action_attempt_id: string;
288
+ result: null;
289
+ action_type: "SET_HEAT";
290
+ }, {
291
+ error: null;
292
+ status: "pending";
293
+ action_attempt_id: string;
294
+ result: null;
295
+ action_type: "SET_HEAT";
296
+ }>, z.ZodObject<{
297
+ error: z.ZodNull;
298
+ status: z.ZodLiteral<"success">;
299
+ action_attempt_id: z.ZodString;
300
+ action_type: z.ZodLiteral<"SET_HEAT">;
301
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ error: null;
304
+ status: "success";
305
+ action_attempt_id: string;
306
+ result: {};
307
+ action_type: "SET_HEAT";
308
+ }, {
309
+ error: null;
310
+ status: "success";
311
+ action_attempt_id: string;
312
+ result: {};
313
+ action_type: "SET_HEAT";
314
+ }>, z.ZodObject<{
315
+ status: z.ZodLiteral<"error">;
316
+ action_attempt_id: z.ZodString;
317
+ result: z.ZodNull;
318
+ action_type: z.ZodLiteral<"SET_HEAT">;
319
+ error: z.ZodObject<{
320
+ type: z.ZodString;
321
+ message: z.ZodString;
322
+ }, "strip", z.ZodTypeAny, {
323
+ type: string;
324
+ message: string;
325
+ }, {
326
+ type: string;
327
+ message: string;
328
+ }>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ error: {
331
+ type: string;
332
+ message: string;
333
+ };
334
+ status: "error";
335
+ action_attempt_id: string;
336
+ result: null;
337
+ action_type: "SET_HEAT";
338
+ }, {
339
+ error: {
340
+ type: string;
341
+ message: string;
342
+ };
343
+ status: "error";
344
+ action_attempt_id: string;
345
+ result: null;
346
+ action_type: "SET_HEAT";
347
+ }>, z.ZodObject<{
348
+ error: z.ZodNull;
349
+ status: z.ZodLiteral<"pending">;
350
+ action_attempt_id: z.ZodString;
351
+ result: z.ZodNull;
352
+ action_type: z.ZodLiteral<"SET_HEAT_COOL">;
353
+ }, "strip", z.ZodTypeAny, {
354
+ error: null;
355
+ status: "pending";
356
+ action_attempt_id: string;
357
+ result: null;
358
+ action_type: "SET_HEAT_COOL";
359
+ }, {
360
+ error: null;
361
+ status: "pending";
362
+ action_attempt_id: string;
363
+ result: null;
364
+ action_type: "SET_HEAT_COOL";
365
+ }>, z.ZodObject<{
366
+ error: z.ZodNull;
367
+ status: z.ZodLiteral<"success">;
368
+ action_attempt_id: z.ZodString;
369
+ action_type: z.ZodLiteral<"SET_HEAT_COOL">;
370
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ error: null;
373
+ status: "success";
374
+ action_attempt_id: string;
375
+ result: {};
376
+ action_type: "SET_HEAT_COOL";
377
+ }, {
378
+ error: null;
379
+ status: "success";
380
+ action_attempt_id: string;
381
+ result: {};
382
+ action_type: "SET_HEAT_COOL";
383
+ }>, z.ZodObject<{
384
+ status: z.ZodLiteral<"error">;
385
+ action_attempt_id: z.ZodString;
386
+ result: z.ZodNull;
387
+ action_type: z.ZodLiteral<"SET_HEAT_COOL">;
388
+ error: z.ZodObject<{
389
+ type: z.ZodString;
390
+ message: z.ZodString;
391
+ }, "strip", z.ZodTypeAny, {
392
+ type: string;
393
+ message: string;
394
+ }, {
395
+ type: string;
396
+ message: string;
397
+ }>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ error: {
400
+ type: string;
401
+ message: string;
402
+ };
403
+ status: "error";
404
+ action_attempt_id: string;
405
+ result: null;
406
+ action_type: "SET_HEAT_COOL";
407
+ }, {
408
+ error: {
409
+ type: string;
410
+ message: string;
411
+ };
412
+ status: "error";
413
+ action_attempt_id: string;
414
+ result: null;
415
+ action_type: "SET_HEAT_COOL";
416
+ }>, z.ZodObject<{
417
+ error: z.ZodNull;
418
+ status: z.ZodLiteral<"pending">;
419
+ action_attempt_id: z.ZodString;
420
+ result: z.ZodNull;
421
+ action_type: z.ZodLiteral<"SET_FAN_MODE">;
422
+ }, "strip", z.ZodTypeAny, {
423
+ error: null;
424
+ status: "pending";
425
+ action_attempt_id: string;
426
+ result: null;
427
+ action_type: "SET_FAN_MODE";
428
+ }, {
429
+ error: null;
430
+ status: "pending";
431
+ action_attempt_id: string;
432
+ result: null;
433
+ action_type: "SET_FAN_MODE";
434
+ }>, z.ZodObject<{
435
+ error: z.ZodNull;
436
+ status: z.ZodLiteral<"success">;
437
+ action_attempt_id: z.ZodString;
438
+ action_type: z.ZodLiteral<"SET_FAN_MODE">;
439
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ error: null;
442
+ status: "success";
443
+ action_attempt_id: string;
444
+ result: {};
445
+ action_type: "SET_FAN_MODE";
446
+ }, {
447
+ error: null;
448
+ status: "success";
449
+ action_attempt_id: string;
450
+ result: {};
451
+ action_type: "SET_FAN_MODE";
452
+ }>, z.ZodObject<{
453
+ status: z.ZodLiteral<"error">;
454
+ action_attempt_id: z.ZodString;
455
+ result: z.ZodNull;
456
+ action_type: z.ZodLiteral<"SET_FAN_MODE">;
457
+ error: z.ZodObject<{
458
+ type: z.ZodString;
459
+ message: z.ZodString;
460
+ }, "strip", z.ZodTypeAny, {
461
+ type: string;
462
+ message: string;
463
+ }, {
464
+ type: string;
465
+ message: string;
466
+ }>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ error: {
469
+ type: string;
470
+ message: string;
471
+ };
472
+ status: "error";
473
+ action_attempt_id: string;
474
+ result: null;
475
+ action_type: "SET_FAN_MODE";
476
+ }, {
477
+ error: {
478
+ type: string;
479
+ message: string;
480
+ };
481
+ status: "error";
482
+ action_attempt_id: string;
483
+ result: null;
484
+ action_type: "SET_FAN_MODE";
485
+ }>, z.ZodObject<{
486
+ error: z.ZodNull;
487
+ status: z.ZodLiteral<"pending">;
488
+ action_attempt_id: z.ZodString;
489
+ result: z.ZodNull;
490
+ action_type: z.ZodLiteral<"SET_THERMOSTAT_OFF">;
491
+ }, "strip", z.ZodTypeAny, {
492
+ error: null;
493
+ status: "pending";
494
+ action_attempt_id: string;
495
+ result: null;
496
+ action_type: "SET_THERMOSTAT_OFF";
497
+ }, {
498
+ error: null;
499
+ status: "pending";
500
+ action_attempt_id: string;
501
+ result: null;
502
+ action_type: "SET_THERMOSTAT_OFF";
503
+ }>, z.ZodObject<{
504
+ error: z.ZodNull;
505
+ status: z.ZodLiteral<"success">;
506
+ action_attempt_id: z.ZodString;
507
+ action_type: z.ZodLiteral<"SET_THERMOSTAT_OFF">;
508
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ error: null;
511
+ status: "success";
512
+ action_attempt_id: string;
513
+ result: {};
514
+ action_type: "SET_THERMOSTAT_OFF";
515
+ }, {
516
+ error: null;
517
+ status: "success";
518
+ action_attempt_id: string;
519
+ result: {};
520
+ action_type: "SET_THERMOSTAT_OFF";
521
+ }>, z.ZodObject<{
522
+ status: z.ZodLiteral<"error">;
523
+ action_attempt_id: z.ZodString;
524
+ result: z.ZodNull;
525
+ action_type: z.ZodLiteral<"SET_THERMOSTAT_OFF">;
526
+ error: z.ZodObject<{
527
+ type: z.ZodString;
528
+ message: z.ZodString;
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: string;
531
+ message: string;
532
+ }, {
533
+ type: string;
534
+ message: string;
535
+ }>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ error: {
538
+ type: string;
539
+ message: string;
540
+ };
541
+ status: "error";
542
+ action_attempt_id: string;
543
+ result: null;
544
+ action_type: "SET_THERMOSTAT_OFF";
545
+ }, {
546
+ error: {
547
+ type: string;
548
+ message: string;
549
+ };
550
+ status: "error";
551
+ action_attempt_id: string;
552
+ result: null;
553
+ action_type: "SET_THERMOSTAT_OFF";
554
+ }>]>;
555
+ export type ActionAttempt = z.infer<typeof action_attempt>;
556
+ export type ActionAttemptType = ActionAttempt['action_type'];
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { lock_door_action_attempt } from './lock-door.js';
3
+ import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
4
+ import { set_cool_action_attempt } from './set-cool.js';
5
+ import { set_fan_mode_action_attempt } from './set-fan-mode.js';
6
+ import { set_heat_action_attempt } from './set-heat.js';
7
+ import { set_heat_cool_action_attempt } from './set-heat-cool.js';
8
+ import { set_thermostat_off_action_attempt } from './set-thermostat-off.js';
9
+ import { unlock_door_action_attempt } from './unlock-door.js';
10
+ export const action_attempt = z.union([
11
+ ...lock_door_action_attempt.options,
12
+ ...unlock_door_action_attempt.options,
13
+ ...reset_sandbox_workspace_action_attempt.options,
14
+ ...set_cool_action_attempt.options,
15
+ ...set_heat_action_attempt.options,
16
+ ...set_heat_cool_action_attempt.options,
17
+ ...set_fan_mode_action_attempt.options,
18
+ ...set_thermostat_off_action_attempt.options,
19
+ ]);
20
+ //# sourceMappingURL=action-attempt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;CAC7C,CAAC,CAAA"}