@seamapi/types 1.836.0 → 1.838.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 +144 -12
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +661 -232
- package/dist/index.cjs +144 -12
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +7 -7
- package/lib/seam/connect/models/acs/acs-credential.js +1 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.d.ts +101 -0
- package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js +19 -1
- package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +125 -7
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +1 -0
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +101 -0
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +30 -0
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -24
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +10 -10
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +14 -14
- package/lib/seam/connect/models/batch.d.ts +210 -52
- package/lib/seam/connect/models/phones/phone-session.d.ts +12 -12
- package/lib/seam/connect/openapi.js +115 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +297 -144
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +1 -0
- package/src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts +24 -1
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +1 -0
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +35 -0
- package/src/lib/seam/connect/openapi.ts +121 -0
- package/src/lib/seam/connect/route-types.ts +306 -0
package/package.json
CHANGED
|
@@ -32,9 +32,31 @@ const deleting = common_pending_mutation
|
|
|
32
32
|
'Seam is in the process of pushing a credential deletion to the integrated access system.',
|
|
33
33
|
)
|
|
34
34
|
|
|
35
|
+
const updating_user_assignment = common_pending_mutation
|
|
36
|
+
.extend({
|
|
37
|
+
mutation_code: z
|
|
38
|
+
.literal('updating_user_assignment')
|
|
39
|
+
.describe(
|
|
40
|
+
'Mutation code to indicate that Seam is in the process of assigning or unassigning the credential to a user on the integrated access system.',
|
|
41
|
+
),
|
|
42
|
+
from: z
|
|
43
|
+
.object({
|
|
44
|
+
acs_user_id: z.string().uuid().nullable().describe('Previous user ID.'),
|
|
45
|
+
})
|
|
46
|
+
.describe('Previous user assignment.'),
|
|
47
|
+
to: z
|
|
48
|
+
.object({
|
|
49
|
+
acs_user_id: z.string().uuid().nullable().describe('New user ID.'),
|
|
50
|
+
})
|
|
51
|
+
.describe('New user assignment.'),
|
|
52
|
+
})
|
|
53
|
+
.describe(
|
|
54
|
+
'Seam is in the process of assigning or unassigning the credential to a user on the integrated access system.',
|
|
55
|
+
)
|
|
56
|
+
|
|
35
57
|
export const acs_credential_pending_mutations = z.discriminatedUnion(
|
|
36
58
|
'mutation_code',
|
|
37
|
-
[creating, deleting],
|
|
59
|
+
[creating, deleting, updating_user_assignment],
|
|
38
60
|
)
|
|
39
61
|
|
|
40
62
|
export type AcsCredentialPendingMutation = z.infer<
|
|
@@ -44,6 +66,7 @@ export type AcsCredentialPendingMutation = z.infer<
|
|
|
44
66
|
const _acs_credential_pending_mutations_map = z.object({
|
|
45
67
|
creating: creating.optional().nullable(),
|
|
46
68
|
deleting: deleting.optional().nullable(),
|
|
69
|
+
updating_user_assignment: updating_user_assignment.optional().nullable(),
|
|
47
70
|
})
|
|
48
71
|
|
|
49
72
|
export type AcsCredentialPendingMutationsMap = z.infer<
|
|
@@ -179,6 +179,36 @@ const deferring_group_membership_update_mutation = common_pending_mutation
|
|
|
179
179
|
'A scheduled access group membership change is pending for this user.',
|
|
180
180
|
)
|
|
181
181
|
|
|
182
|
+
const updating_credential_assignment_mutation = common_pending_mutation
|
|
183
|
+
.extend({
|
|
184
|
+
mutation_code: z
|
|
185
|
+
.literal('updating_credential_assignment')
|
|
186
|
+
.describe(
|
|
187
|
+
'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
|
|
188
|
+
),
|
|
189
|
+
from: z
|
|
190
|
+
.object({
|
|
191
|
+
acs_credential_id: z
|
|
192
|
+
.string()
|
|
193
|
+
.uuid()
|
|
194
|
+
.nullable()
|
|
195
|
+
.describe('Previous credential ID.'),
|
|
196
|
+
})
|
|
197
|
+
.describe('Previous credential assignment.'),
|
|
198
|
+
to: z
|
|
199
|
+
.object({
|
|
200
|
+
acs_credential_id: z
|
|
201
|
+
.string()
|
|
202
|
+
.uuid()
|
|
203
|
+
.nullable()
|
|
204
|
+
.describe('New credential ID.'),
|
|
205
|
+
})
|
|
206
|
+
.describe('New credential assignment.'),
|
|
207
|
+
})
|
|
208
|
+
.describe(
|
|
209
|
+
'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
|
|
210
|
+
)
|
|
211
|
+
|
|
182
212
|
export const acs_user_pending_mutations = z.discriminatedUnion(
|
|
183
213
|
'mutation_code',
|
|
184
214
|
[
|
|
@@ -190,6 +220,7 @@ export const acs_user_pending_mutations = z.discriminatedUnion(
|
|
|
190
220
|
updating_suspension_state_mutation,
|
|
191
221
|
updating_group_membership_mutation,
|
|
192
222
|
deferring_group_membership_update_mutation,
|
|
223
|
+
updating_credential_assignment_mutation,
|
|
193
224
|
],
|
|
194
225
|
)
|
|
195
226
|
|
|
@@ -210,6 +241,10 @@ const _acs_user_pending_mutations_map = z.object({
|
|
|
210
241
|
.record(z.string().uuid(), deferring_group_membership_update_mutation)
|
|
211
242
|
.optional()
|
|
212
243
|
.nullable(),
|
|
244
|
+
updating_credential_assignment: z
|
|
245
|
+
.record(z.string().uuid(), updating_credential_assignment_mutation)
|
|
246
|
+
.optional()
|
|
247
|
+
.nullable(),
|
|
213
248
|
updating_suspension_state: updating_suspension_state_mutation
|
|
214
249
|
.optional()
|
|
215
250
|
.nullable(),
|
|
@@ -3830,6 +3830,7 @@ const openapi: OpenAPISpec = {
|
|
|
3830
3830
|
'dormakaba_ambiance_credential',
|
|
3831
3831
|
'hotek_card',
|
|
3832
3832
|
'salto_ks_tag',
|
|
3833
|
+
'avigilon_alta_credential',
|
|
3833
3834
|
],
|
|
3834
3835
|
type: 'string',
|
|
3835
3836
|
},
|
|
@@ -5316,6 +5317,7 @@ const openapi: OpenAPISpec = {
|
|
|
5316
5317
|
'latch_user',
|
|
5317
5318
|
'dormakaba_community_user',
|
|
5318
5319
|
'salto_space_user',
|
|
5320
|
+
'avigilon_alta_user',
|
|
5319
5321
|
],
|
|
5320
5322
|
type: 'string',
|
|
5321
5323
|
},
|
|
@@ -5714,6 +5716,62 @@ const openapi: OpenAPISpec = {
|
|
|
5714
5716
|
],
|
|
5715
5717
|
type: 'object',
|
|
5716
5718
|
},
|
|
5719
|
+
{
|
|
5720
|
+
description:
|
|
5721
|
+
'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
|
|
5722
|
+
properties: {
|
|
5723
|
+
created_at: {
|
|
5724
|
+
description:
|
|
5725
|
+
'Date and time at which the mutation was created.',
|
|
5726
|
+
format: 'date-time',
|
|
5727
|
+
type: 'string',
|
|
5728
|
+
},
|
|
5729
|
+
from: {
|
|
5730
|
+
description: 'Previous credential assignment.',
|
|
5731
|
+
properties: {
|
|
5732
|
+
acs_credential_id: {
|
|
5733
|
+
description: 'Previous credential ID.',
|
|
5734
|
+
format: 'uuid',
|
|
5735
|
+
nullable: true,
|
|
5736
|
+
type: 'string',
|
|
5737
|
+
},
|
|
5738
|
+
},
|
|
5739
|
+
required: ['acs_credential_id'],
|
|
5740
|
+
type: 'object',
|
|
5741
|
+
},
|
|
5742
|
+
message: {
|
|
5743
|
+
description: 'Detailed description of the mutation.',
|
|
5744
|
+
type: 'string',
|
|
5745
|
+
},
|
|
5746
|
+
mutation_code: {
|
|
5747
|
+
description:
|
|
5748
|
+
'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
|
|
5749
|
+
enum: ['updating_credential_assignment'],
|
|
5750
|
+
type: 'string',
|
|
5751
|
+
},
|
|
5752
|
+
to: {
|
|
5753
|
+
description: 'New credential assignment.',
|
|
5754
|
+
properties: {
|
|
5755
|
+
acs_credential_id: {
|
|
5756
|
+
description: 'New credential ID.',
|
|
5757
|
+
format: 'uuid',
|
|
5758
|
+
nullable: true,
|
|
5759
|
+
type: 'string',
|
|
5760
|
+
},
|
|
5761
|
+
},
|
|
5762
|
+
required: ['acs_credential_id'],
|
|
5763
|
+
type: 'object',
|
|
5764
|
+
},
|
|
5765
|
+
},
|
|
5766
|
+
required: [
|
|
5767
|
+
'created_at',
|
|
5768
|
+
'message',
|
|
5769
|
+
'mutation_code',
|
|
5770
|
+
'from',
|
|
5771
|
+
'to',
|
|
5772
|
+
],
|
|
5773
|
+
type: 'object',
|
|
5774
|
+
},
|
|
5717
5775
|
],
|
|
5718
5776
|
},
|
|
5719
5777
|
type: 'array',
|
|
@@ -6450,6 +6508,7 @@ const openapi: OpenAPISpec = {
|
|
|
6450
6508
|
'dormakaba_ambiance_credential',
|
|
6451
6509
|
'hotek_card',
|
|
6452
6510
|
'salto_ks_tag',
|
|
6511
|
+
'avigilon_alta_credential',
|
|
6453
6512
|
],
|
|
6454
6513
|
type: 'string',
|
|
6455
6514
|
},
|
|
@@ -6907,6 +6966,7 @@ const openapi: OpenAPISpec = {
|
|
|
6907
6966
|
'dormakaba_ambiance_credential',
|
|
6908
6967
|
'hotek_card',
|
|
6909
6968
|
'salto_ks_tag',
|
|
6969
|
+
'avigilon_alta_credential',
|
|
6910
6970
|
],
|
|
6911
6971
|
type: 'string',
|
|
6912
6972
|
},
|
|
@@ -7620,6 +7680,7 @@ const openapi: OpenAPISpec = {
|
|
|
7620
7680
|
'dormakaba_ambiance_credential',
|
|
7621
7681
|
'hotek_card',
|
|
7622
7682
|
'salto_ks_tag',
|
|
7683
|
+
'avigilon_alta_credential',
|
|
7623
7684
|
],
|
|
7624
7685
|
type: 'string',
|
|
7625
7686
|
},
|
|
@@ -8074,6 +8135,7 @@ const openapi: OpenAPISpec = {
|
|
|
8074
8135
|
'dormakaba_ambiance_credential',
|
|
8075
8136
|
'hotek_card',
|
|
8076
8137
|
'salto_ks_tag',
|
|
8138
|
+
'avigilon_alta_credential',
|
|
8077
8139
|
],
|
|
8078
8140
|
type: 'string',
|
|
8079
8141
|
},
|
|
@@ -25479,6 +25541,7 @@ const openapi: OpenAPISpec = {
|
|
|
25479
25541
|
'dormakaba_ambiance_credential',
|
|
25480
25542
|
'hotek_card',
|
|
25481
25543
|
'salto_ks_tag',
|
|
25544
|
+
'avigilon_alta_credential',
|
|
25482
25545
|
],
|
|
25483
25546
|
type: 'string',
|
|
25484
25547
|
},
|
|
@@ -28871,6 +28934,7 @@ const openapi: OpenAPISpec = {
|
|
|
28871
28934
|
'dormakaba_ambiance_credential',
|
|
28872
28935
|
'hotek_card',
|
|
28873
28936
|
'salto_ks_tag',
|
|
28937
|
+
'avigilon_alta_credential',
|
|
28874
28938
|
],
|
|
28875
28939
|
type: 'string',
|
|
28876
28940
|
},
|
|
@@ -29394,6 +29458,7 @@ const openapi: OpenAPISpec = {
|
|
|
29394
29458
|
'latch_user',
|
|
29395
29459
|
'dormakaba_community_user',
|
|
29396
29460
|
'salto_space_user',
|
|
29461
|
+
'avigilon_alta_user',
|
|
29397
29462
|
],
|
|
29398
29463
|
type: 'string',
|
|
29399
29464
|
},
|
|
@@ -29792,6 +29857,62 @@ const openapi: OpenAPISpec = {
|
|
|
29792
29857
|
],
|
|
29793
29858
|
type: 'object',
|
|
29794
29859
|
},
|
|
29860
|
+
{
|
|
29861
|
+
description:
|
|
29862
|
+
'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
|
|
29863
|
+
properties: {
|
|
29864
|
+
created_at: {
|
|
29865
|
+
description:
|
|
29866
|
+
'Date and time at which the mutation was created.',
|
|
29867
|
+
format: 'date-time',
|
|
29868
|
+
type: 'string',
|
|
29869
|
+
},
|
|
29870
|
+
from: {
|
|
29871
|
+
description: 'Previous credential assignment.',
|
|
29872
|
+
properties: {
|
|
29873
|
+
acs_credential_id: {
|
|
29874
|
+
description: 'Previous credential ID.',
|
|
29875
|
+
format: 'uuid',
|
|
29876
|
+
nullable: true,
|
|
29877
|
+
type: 'string',
|
|
29878
|
+
},
|
|
29879
|
+
},
|
|
29880
|
+
required: ['acs_credential_id'],
|
|
29881
|
+
type: 'object',
|
|
29882
|
+
},
|
|
29883
|
+
message: {
|
|
29884
|
+
description: 'Detailed description of the mutation.',
|
|
29885
|
+
type: 'string',
|
|
29886
|
+
},
|
|
29887
|
+
mutation_code: {
|
|
29888
|
+
description:
|
|
29889
|
+
'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
|
|
29890
|
+
enum: ['updating_credential_assignment'],
|
|
29891
|
+
type: 'string',
|
|
29892
|
+
},
|
|
29893
|
+
to: {
|
|
29894
|
+
description: 'New credential assignment.',
|
|
29895
|
+
properties: {
|
|
29896
|
+
acs_credential_id: {
|
|
29897
|
+
description: 'New credential ID.',
|
|
29898
|
+
format: 'uuid',
|
|
29899
|
+
nullable: true,
|
|
29900
|
+
type: 'string',
|
|
29901
|
+
},
|
|
29902
|
+
},
|
|
29903
|
+
required: ['acs_credential_id'],
|
|
29904
|
+
type: 'object',
|
|
29905
|
+
},
|
|
29906
|
+
},
|
|
29907
|
+
required: [
|
|
29908
|
+
'created_at',
|
|
29909
|
+
'message',
|
|
29910
|
+
'mutation_code',
|
|
29911
|
+
'from',
|
|
29912
|
+
'to',
|
|
29913
|
+
],
|
|
29914
|
+
type: 'object',
|
|
29915
|
+
},
|
|
29795
29916
|
],
|
|
29796
29917
|
},
|
|
29797
29918
|
type: 'array',
|