@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.
- package/dist/connect.cjs +667 -1199
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +10835 -4185
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +483 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/deprecated.d.ts +485 -0
- package/lib/seam/connect/models/action-attempts/deprecated.js +108 -0
- package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -0
- package/lib/seam/connect/models/index.d.ts +2 -2
- package/lib/seam/connect/models/index.js +2 -2
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/models/user-identities/index.d.ts +1 -0
- package/lib/seam/connect/models/user-identities/index.js +2 -0
- package/lib/seam/connect/models/user-identities/index.js.map +1 -0
- package/lib/seam/connect/models/{user-identity.js → user-identities/user-identity.js} +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -0
- package/lib/seam/connect/models/workspaces/index.d.ts +1 -0
- package/lib/seam/connect/models/workspaces/index.js +2 -0
- package/lib/seam/connect/models/workspaces/index.js.map +1 -0
- package/lib/seam/connect/models/workspaces/workspace.d.ts +17 -0
- package/lib/seam/connect/models/workspaces/workspace.js +8 -0
- package/lib/seam/connect/models/workspaces/workspace.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +124 -1235
- package/lib/seam/connect/openapi.js +470 -1115
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +9828 -2568
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -2
- package/src/lib/seam/connect/models/action-attempts/deprecated.ts +122 -0
- package/src/lib/seam/connect/models/index.ts +2 -2
- package/src/lib/seam/connect/models/user-identities/index.ts +1 -0
- package/src/lib/seam/connect/models/{user-identity.ts → user-identities/user-identity.ts} +1 -1
- package/src/lib/seam/connect/models/workspaces/index.ts +1 -0
- package/src/lib/seam/connect/models/workspaces/workspace.ts +8 -0
- package/src/lib/seam/connect/openapi.ts +491 -1115
- package/src/lib/seam/connect/route-types.ts +10139 -2335
- package/src/lib/seam/connect/schemas.ts +1 -0
- package/lib/seam/connect/models/network.d.ts +0 -18
- package/lib/seam/connect/models/network.js +0 -8
- package/lib/seam/connect/models/network.js.map +0 -1
- package/lib/seam/connect/models/user-identity.js.map +0 -1
- package/src/lib/seam/connect/models/network.ts +0 -10
- /package/lib/seam/connect/models/{user-identity.d.ts → user-identities/user-identity.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export { action_attempt, connect_webview, custom_metadata, seam_event, } from './models/index.js';
|
|
1
|
+
export { action_attempt, connect_webview, custom_metadata, seam_event, workspace, } from './models/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { action_attempt, connect_webview, custom_metadata, seam_event, } from './models/index.js';
|
|
1
|
+
export { action_attempt, connect_webview, custom_metadata, seam_event, workspace, } from './models/index.js';
|
|
2
2
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,eAAe,EACf,UAAU,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,eAAe,EACf,UAAU,EACV,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -30,7 +30,6 @@ export {
|
|
|
30
30
|
lock_device_type,
|
|
31
31
|
managed_access_code,
|
|
32
32
|
managed_device,
|
|
33
|
-
network,
|
|
34
33
|
noise_sensor_device_type,
|
|
35
34
|
phone,
|
|
36
35
|
phone_number,
|
|
@@ -39,5 +38,6 @@ export {
|
|
|
39
38
|
unmanaged_access_code,
|
|
40
39
|
unmanaged_device,
|
|
41
40
|
user_identity,
|
|
41
|
+
workspace,
|
|
42
42
|
} from '../models/index.js'
|
|
43
43
|
export * from '../schemas.js'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { deprecated_action_attempts } from './deprecated.js'
|
|
3
4
|
import { lock_door_action_attempt } from './lock-door.js'
|
|
4
5
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js'
|
|
5
6
|
import { set_cool_action_attempt } from './set-cool.js'
|
|
@@ -18,8 +19,7 @@ export const action_attempt = z.union([
|
|
|
18
19
|
...set_heat_cool_action_attempt.options,
|
|
19
20
|
...set_fan_mode_action_attempt.options,
|
|
20
21
|
...set_thermostat_off_action_attempt.options,
|
|
22
|
+
...deprecated_action_attempts,
|
|
21
23
|
])
|
|
22
24
|
|
|
23
25
|
export type ActionAttempt = z.infer<typeof action_attempt>
|
|
24
|
-
|
|
25
|
-
export type ActionAttemptType = ActionAttempt['action_type']
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
common_failed_action_attempt,
|
|
5
|
+
common_pending_action_attempt,
|
|
6
|
+
common_succeeded_action_attempt,
|
|
7
|
+
} from './common.js'
|
|
8
|
+
|
|
9
|
+
const error = z.object({
|
|
10
|
+
type: z.string(),
|
|
11
|
+
message: z.string(),
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const result = z.any()
|
|
15
|
+
|
|
16
|
+
const sync_access_codes_action_attempt = z.discriminatedUnion('status', [
|
|
17
|
+
common_pending_action_attempt.extend({
|
|
18
|
+
action_type: z.literal('SYNC_ACCESS_CODES'),
|
|
19
|
+
}),
|
|
20
|
+
common_succeeded_action_attempt.extend({
|
|
21
|
+
action_type: z.literal('SYNC_ACCESS_CODES'),
|
|
22
|
+
result,
|
|
23
|
+
}),
|
|
24
|
+
common_failed_action_attempt.extend({
|
|
25
|
+
action_type: z.literal('SYNC_ACCESS_CODES'),
|
|
26
|
+
error,
|
|
27
|
+
}),
|
|
28
|
+
])
|
|
29
|
+
|
|
30
|
+
const create_access_code_action_attempt = z.discriminatedUnion('status', [
|
|
31
|
+
common_pending_action_attempt.extend({
|
|
32
|
+
action_type: z.literal('CREATE_ACCESS_CODE'),
|
|
33
|
+
}),
|
|
34
|
+
common_succeeded_action_attempt.extend({
|
|
35
|
+
action_type: z.literal('CREATE_ACCESS_CODE'),
|
|
36
|
+
result,
|
|
37
|
+
}),
|
|
38
|
+
common_failed_action_attempt.extend({
|
|
39
|
+
action_type: z.literal('CREATE_ACCESS_CODE'),
|
|
40
|
+
error,
|
|
41
|
+
}),
|
|
42
|
+
])
|
|
43
|
+
|
|
44
|
+
const delete_access_code_action_attempt = z.discriminatedUnion('status', [
|
|
45
|
+
common_pending_action_attempt.extend({
|
|
46
|
+
action_type: z.literal('DELETE_ACCESS_CODE'),
|
|
47
|
+
}),
|
|
48
|
+
common_succeeded_action_attempt.extend({
|
|
49
|
+
action_type: z.literal('DELETE_ACCESS_CODE'),
|
|
50
|
+
result,
|
|
51
|
+
}),
|
|
52
|
+
common_failed_action_attempt.extend({
|
|
53
|
+
action_type: z.literal('DELETE_ACCESS_CODE'),
|
|
54
|
+
error,
|
|
55
|
+
}),
|
|
56
|
+
])
|
|
57
|
+
|
|
58
|
+
const update_access_code_action_attempt = z.discriminatedUnion('status', [
|
|
59
|
+
common_pending_action_attempt.extend({
|
|
60
|
+
action_type: z.literal('UPDATE_ACCESS_CODE'),
|
|
61
|
+
}),
|
|
62
|
+
common_succeeded_action_attempt.extend({
|
|
63
|
+
action_type: z.literal('UPDATE_ACCESS_CODE'),
|
|
64
|
+
result,
|
|
65
|
+
}),
|
|
66
|
+
common_failed_action_attempt.extend({
|
|
67
|
+
action_type: z.literal('UPDATE_ACCESS_CODE'),
|
|
68
|
+
error,
|
|
69
|
+
}),
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
const create_noise_threshold_action_attempt = z.discriminatedUnion('status', [
|
|
73
|
+
common_pending_action_attempt.extend({
|
|
74
|
+
action_type: z.literal('CREATE_NOISE_THRESHOLD'),
|
|
75
|
+
}),
|
|
76
|
+
common_succeeded_action_attempt.extend({
|
|
77
|
+
action_type: z.literal('CREATE_NOISE_THRESHOLD'),
|
|
78
|
+
result,
|
|
79
|
+
}),
|
|
80
|
+
common_failed_action_attempt.extend({
|
|
81
|
+
action_type: z.literal('CREATE_NOISE_THRESHOLD'),
|
|
82
|
+
error,
|
|
83
|
+
}),
|
|
84
|
+
])
|
|
85
|
+
|
|
86
|
+
const delete_noise_threshold_action_attempt = z.discriminatedUnion('status', [
|
|
87
|
+
common_pending_action_attempt.extend({
|
|
88
|
+
action_type: z.literal('DELETE_NOISE_THRESHOLD'),
|
|
89
|
+
}),
|
|
90
|
+
common_succeeded_action_attempt.extend({
|
|
91
|
+
action_type: z.literal('DELETE_NOISE_THRESHOLD'),
|
|
92
|
+
result,
|
|
93
|
+
}),
|
|
94
|
+
common_failed_action_attempt.extend({
|
|
95
|
+
action_type: z.literal('DELETE_NOISE_THRESHOLD'),
|
|
96
|
+
error,
|
|
97
|
+
}),
|
|
98
|
+
])
|
|
99
|
+
|
|
100
|
+
const update_noise_threshold_action_attempt = z.discriminatedUnion('status', [
|
|
101
|
+
common_pending_action_attempt.extend({
|
|
102
|
+
action_type: z.literal('UPDATE_NOISE_THRESHOLD'),
|
|
103
|
+
}),
|
|
104
|
+
common_succeeded_action_attempt.extend({
|
|
105
|
+
action_type: z.literal('UPDATE_NOISE_THRESHOLD'),
|
|
106
|
+
result,
|
|
107
|
+
}),
|
|
108
|
+
common_failed_action_attempt.extend({
|
|
109
|
+
action_type: z.literal('UPDATE_NOISE_THRESHOLD'),
|
|
110
|
+
error,
|
|
111
|
+
}),
|
|
112
|
+
])
|
|
113
|
+
|
|
114
|
+
export const deprecated_action_attempts = [
|
|
115
|
+
...sync_access_codes_action_attempt.options,
|
|
116
|
+
...create_access_code_action_attempt.options,
|
|
117
|
+
...delete_access_code_action_attempt.options,
|
|
118
|
+
...update_access_code_action_attempt.options,
|
|
119
|
+
...create_noise_threshold_action_attempt.options,
|
|
120
|
+
...delete_noise_threshold_action_attempt.options,
|
|
121
|
+
...update_noise_threshold_action_attempt.options,
|
|
122
|
+
] as const
|
|
@@ -6,6 +6,6 @@ export * from './connect-webviews/index.js'
|
|
|
6
6
|
export * from './custom-metadata.js'
|
|
7
7
|
export * from './devices/index.js'
|
|
8
8
|
export * from './events/index.js'
|
|
9
|
-
export * from './network.js'
|
|
10
9
|
export * from './phone-number.js'
|
|
11
|
-
export * from './user-
|
|
10
|
+
export * from './user-identities/index.js'
|
|
11
|
+
export * from './workspaces/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user-identity.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './workspace.js'
|