@seamapi/types 1.736.0 → 1.738.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 +659 -22
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2935 -423
- package/dist/index.cjs +659 -22
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +590 -0
- package/lib/seam/connect/models/acs/acs-access-group.js +4 -0
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-groups/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/acs-access-groups/index.js +2 -0
- package/lib/seam/connect/models/acs/acs-access-groups/index.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.d.ts +511 -0
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +126 -0
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +12 -12
- package/lib/seam/connect/models/acs/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/index.js +1 -0
- package/lib/seam/connect/models/acs/index.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +20 -20
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +12 -12
- package/lib/seam/connect/models/batch.d.ts +868 -74
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
- package/lib/seam/connect/models/devices/device-provider.js +2 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/events/acs/entrances.d.ts +8 -8
- package/lib/seam/connect/models/events/acs/index.d.ts +8 -8
- package/lib/seam/connect/models/events/acs/users.d.ts +8 -8
- package/lib/seam/connect/models/events/devices.d.ts +4 -4
- package/lib/seam/connect/models/events/seam-event.d.ts +10 -10
- package/lib/seam/connect/models/phones/phone-session.d.ts +30 -30
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +12 -12
- package/lib/seam/connect/openapi.d.ts +512 -0
- package/lib/seam/connect/openapi.js +544 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +616 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +6 -0
- package/src/lib/seam/connect/models/acs/acs-access-groups/index.ts +1 -0
- package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +171 -0
- package/src/lib/seam/connect/models/acs/index.ts +1 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +754 -172
- package/src/lib/seam/connect/route-types.ts +665 -0
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
import { schedule } from '../schedule.js'
|
|
4
|
+
import { acs_access_group_pending_mutations } from './acs-access-groups/pending-mutations.js'
|
|
4
5
|
|
|
5
6
|
// If changed, update seam.acs_access_group.external_type generated column
|
|
6
7
|
export const acs_access_group_external_type = z.enum([
|
|
@@ -118,6 +119,11 @@ const common_acs_access_group = z.object({
|
|
|
118
119
|
.describe(
|
|
119
120
|
"`starts_at` and `ends_at` timestamps for the access group's access.",
|
|
120
121
|
),
|
|
122
|
+
pending_mutations: z
|
|
123
|
+
.array(acs_access_group_pending_mutations)
|
|
124
|
+
.describe(
|
|
125
|
+
'Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system.',
|
|
126
|
+
),
|
|
121
127
|
})
|
|
122
128
|
|
|
123
129
|
export const acs_access_group = common_acs_access_group.extend({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pending-mutations.js'
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
const common_pending_mutation = z.object({
|
|
4
|
+
created_at: z
|
|
5
|
+
.string()
|
|
6
|
+
.datetime()
|
|
7
|
+
.describe('Date and time at which the mutation was created.'),
|
|
8
|
+
message: z.string().describe('Detailed description of the mutation.'),
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
const creating = common_pending_mutation
|
|
12
|
+
.extend({
|
|
13
|
+
mutation_code: z
|
|
14
|
+
.literal('creating')
|
|
15
|
+
.describe(
|
|
16
|
+
'Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system.',
|
|
17
|
+
),
|
|
18
|
+
})
|
|
19
|
+
.describe(
|
|
20
|
+
'Seam is in the process of pushing an access group creation to the integrated access system.',
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
const deleting = common_pending_mutation
|
|
24
|
+
.extend({
|
|
25
|
+
mutation_code: z
|
|
26
|
+
.literal('deleting')
|
|
27
|
+
.describe(
|
|
28
|
+
'Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system.',
|
|
29
|
+
),
|
|
30
|
+
})
|
|
31
|
+
.describe(
|
|
32
|
+
'Seam is in the process of pushing an access group deletion to the integrated access system.',
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
const acs_access_group_info = z.object({
|
|
36
|
+
name: z.string().nullable().describe('Name of the access group.'),
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
const updating_group_information = common_pending_mutation
|
|
40
|
+
.extend({
|
|
41
|
+
mutation_code: z
|
|
42
|
+
.literal('updating_group_information')
|
|
43
|
+
.describe(
|
|
44
|
+
'Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system.',
|
|
45
|
+
),
|
|
46
|
+
from: acs_access_group_info
|
|
47
|
+
.partial()
|
|
48
|
+
.describe('Old access group information.'),
|
|
49
|
+
to: acs_access_group_info
|
|
50
|
+
.partial()
|
|
51
|
+
.describe('New access group information.'),
|
|
52
|
+
})
|
|
53
|
+
.describe(
|
|
54
|
+
'Seam is in the process of pushing an access group information update to the integrated access system.',
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
const access_schedule = z
|
|
58
|
+
.object({
|
|
59
|
+
starts_at: z
|
|
60
|
+
.string()
|
|
61
|
+
.datetime()
|
|
62
|
+
.nullable()
|
|
63
|
+
.describe('Starting time for the access schedule.'),
|
|
64
|
+
ends_at: z
|
|
65
|
+
.string()
|
|
66
|
+
.datetime()
|
|
67
|
+
.nullable()
|
|
68
|
+
.describe('Ending time for the access schedule.'),
|
|
69
|
+
})
|
|
70
|
+
.describe('Access schedule involved in the mutation.')
|
|
71
|
+
|
|
72
|
+
const updating_access_schedule = common_pending_mutation
|
|
73
|
+
.extend({
|
|
74
|
+
mutation_code: z
|
|
75
|
+
.literal('updating_access_schedule')
|
|
76
|
+
.describe(
|
|
77
|
+
'Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.',
|
|
78
|
+
),
|
|
79
|
+
from: access_schedule.describe('Old access schedule information.'),
|
|
80
|
+
to: access_schedule.describe('New access schedule information.'),
|
|
81
|
+
})
|
|
82
|
+
.describe(
|
|
83
|
+
'Seam is in the process of pushing an access schedule update to the integrated access system.',
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
const updating_user_membership = common_pending_mutation
|
|
87
|
+
.extend({
|
|
88
|
+
mutation_code: z
|
|
89
|
+
.literal('updating_user_membership')
|
|
90
|
+
.describe(
|
|
91
|
+
'Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system.',
|
|
92
|
+
),
|
|
93
|
+
from: z
|
|
94
|
+
.object({
|
|
95
|
+
acs_user_id: z.string().uuid().nullable().describe('Old user ID.'),
|
|
96
|
+
})
|
|
97
|
+
.describe('Old user membership.'),
|
|
98
|
+
to: z
|
|
99
|
+
.object({
|
|
100
|
+
acs_user_id: z.string().uuid().nullable().describe('New user ID.'),
|
|
101
|
+
})
|
|
102
|
+
.describe('New user membership.'),
|
|
103
|
+
})
|
|
104
|
+
.describe(
|
|
105
|
+
'Seam is in the process of pushing a user membership update to the integrated access system.',
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
const updating_entrance_membership = common_pending_mutation
|
|
109
|
+
.extend({
|
|
110
|
+
mutation_code: z
|
|
111
|
+
.literal('updating_entrance_membership')
|
|
112
|
+
.describe(
|
|
113
|
+
'Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system.',
|
|
114
|
+
),
|
|
115
|
+
from: z
|
|
116
|
+
.object({
|
|
117
|
+
acs_entrance_id: z
|
|
118
|
+
.string()
|
|
119
|
+
.uuid()
|
|
120
|
+
.nullable()
|
|
121
|
+
.describe('Old entrance ID.'),
|
|
122
|
+
})
|
|
123
|
+
.describe('Old entrance membership.'),
|
|
124
|
+
to: z
|
|
125
|
+
.object({
|
|
126
|
+
acs_entrance_id: z
|
|
127
|
+
.string()
|
|
128
|
+
.uuid()
|
|
129
|
+
.nullable()
|
|
130
|
+
.describe('New entrance ID.'),
|
|
131
|
+
})
|
|
132
|
+
.describe('New entrance membership.'),
|
|
133
|
+
})
|
|
134
|
+
.describe(
|
|
135
|
+
'Seam is in the process of pushing an entrance membership update to the integrated access system.',
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
export const acs_access_group_pending_mutations = z.discriminatedUnion(
|
|
139
|
+
'mutation_code',
|
|
140
|
+
[
|
|
141
|
+
creating,
|
|
142
|
+
deleting,
|
|
143
|
+
updating_group_information,
|
|
144
|
+
updating_access_schedule,
|
|
145
|
+
updating_user_membership,
|
|
146
|
+
updating_entrance_membership,
|
|
147
|
+
],
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
export type AcsAccessGroupPendingMutation = z.infer<
|
|
151
|
+
typeof acs_access_group_pending_mutations
|
|
152
|
+
>
|
|
153
|
+
|
|
154
|
+
const _acs_access_group_pending_mutations_map = z.object({
|
|
155
|
+
creating: creating.optional().nullable(),
|
|
156
|
+
deleting: deleting.optional().nullable(),
|
|
157
|
+
updating_name: updating_group_information.optional().nullable(),
|
|
158
|
+
updating_access_schedule: updating_access_schedule.optional().nullable(),
|
|
159
|
+
updating_user_membership: z
|
|
160
|
+
.record(z.string().uuid(), updating_user_membership)
|
|
161
|
+
.optional()
|
|
162
|
+
.nullable(),
|
|
163
|
+
updating_entrance_membership: z
|
|
164
|
+
.record(z.string().uuid(), updating_entrance_membership)
|
|
165
|
+
.optional()
|
|
166
|
+
.nullable(),
|
|
167
|
+
})
|
|
168
|
+
|
|
169
|
+
export type AcsAccessGroupPendingMutationsMap = z.infer<
|
|
170
|
+
typeof _acs_access_group_pending_mutations_map
|
|
171
|
+
>
|
|
@@ -98,6 +98,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
98
98
|
'keynest',
|
|
99
99
|
'hotek',
|
|
100
100
|
'ultraloq',
|
|
101
|
+
'dormakaba_oracode',
|
|
101
102
|
],
|
|
102
103
|
|
|
103
104
|
consumer_smartlocks: [
|
|
@@ -114,6 +115,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
114
115
|
'lockly',
|
|
115
116
|
'tedee',
|
|
116
117
|
'ultraloq',
|
|
118
|
+
'dormakaba_oracode',
|
|
117
119
|
],
|
|
118
120
|
|
|
119
121
|
beta: ['korelock'],
|