@seamapi/types 1.553.0 → 1.555.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 +281 -19
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +928 -4
- package/dist/index.cjs +281 -19
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +54 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +24 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +54 -0
- package/lib/seam/connect/models/access-grants/access-method.js +24 -0
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +10 -10
- package/lib/seam/connect/models/batch.d.ts +344 -0
- package/lib/seam/connect/models/events/access-grants.d.ts +66 -0
- package/lib/seam/connect/models/events/access-grants.js +21 -0
- package/lib/seam/connect/models/events/access-grants.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +65 -0
- package/lib/seam/connect/models/events/access-methods.js +12 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +65 -1
- package/lib/seam/connect/openapi.d.ts +379 -0
- package/lib/seam/connect/openapi.js +196 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +265 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +40 -0
- package/src/lib/seam/connect/models/access-grants/access-method.ts +40 -0
- package/src/lib/seam/connect/models/events/access-grants.ts +27 -0
- package/src/lib/seam/connect/models/events/access-methods.ts +15 -0
- package/src/lib/seam/connect/openapi.ts +213 -0
- package/src/lib/seam/connect/route-types.ts +279 -0
|
@@ -94,6 +94,20 @@ export const access_method_reissued_event = access_method_event.extend({
|
|
|
94
94
|
An access method was reissued due to an Access Grant update.
|
|
95
95
|
`)
|
|
96
96
|
|
|
97
|
+
export const access_method_code_changed_event = access_method_event.extend({
|
|
98
|
+
event_type: z.literal('access_method.code_changed'),
|
|
99
|
+
code: z
|
|
100
|
+
.string()
|
|
101
|
+
.describe(
|
|
102
|
+
"The new PIN code for code access methods (only present when mode is 'code').",
|
|
103
|
+
),
|
|
104
|
+
}).describe(`
|
|
105
|
+
---
|
|
106
|
+
route_path: /access_methods
|
|
107
|
+
---
|
|
108
|
+
An access method's PIN code was changed.
|
|
109
|
+
`)
|
|
110
|
+
|
|
97
111
|
export type AccessMethodRevokedEvent = z.infer<
|
|
98
112
|
typeof access_method_revoked_event
|
|
99
113
|
>
|
|
@@ -104,4 +118,5 @@ export const access_method_events = [
|
|
|
104
118
|
access_method_card_encoding_required_event,
|
|
105
119
|
access_method_deleted_event,
|
|
106
120
|
access_method_reissued_event,
|
|
121
|
+
access_method_code_changed_event,
|
|
107
122
|
] as const
|
|
@@ -1947,6 +1947,43 @@ export default {
|
|
|
1947
1947
|
format: 'uuid',
|
|
1948
1948
|
type: 'string',
|
|
1949
1949
|
},
|
|
1950
|
+
warnings: {
|
|
1951
|
+
description:
|
|
1952
|
+
'Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
1953
|
+
items: {
|
|
1954
|
+
description:
|
|
1955
|
+
'Warning associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
1956
|
+
discriminator: { propertyName: 'warning_code' },
|
|
1957
|
+
oneOf: [
|
|
1958
|
+
{
|
|
1959
|
+
description:
|
|
1960
|
+
'Indicates that the [access grant](https://docs.seam.co/latest/capability-guides/access-grants) is being deleted.',
|
|
1961
|
+
properties: {
|
|
1962
|
+
created_at: {
|
|
1963
|
+
description:
|
|
1964
|
+
'Date and time at which Seam created the warning.',
|
|
1965
|
+
format: 'date-time',
|
|
1966
|
+
type: 'string',
|
|
1967
|
+
},
|
|
1968
|
+
message: {
|
|
1969
|
+
description:
|
|
1970
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
1971
|
+
type: 'string',
|
|
1972
|
+
},
|
|
1973
|
+
warning_code: {
|
|
1974
|
+
description:
|
|
1975
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
1976
|
+
enum: ['being_deleted'],
|
|
1977
|
+
type: 'string',
|
|
1978
|
+
},
|
|
1979
|
+
},
|
|
1980
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
1981
|
+
type: 'object',
|
|
1982
|
+
},
|
|
1983
|
+
],
|
|
1984
|
+
},
|
|
1985
|
+
type: 'array',
|
|
1986
|
+
},
|
|
1950
1987
|
workspace_id: {
|
|
1951
1988
|
description:
|
|
1952
1989
|
'ID of the Seam workspace associated with the Access Grant.',
|
|
@@ -1967,6 +2004,7 @@ export default {
|
|
|
1967
2004
|
'created_at',
|
|
1968
2005
|
'starts_at',
|
|
1969
2006
|
'ends_at',
|
|
2007
|
+
'warnings',
|
|
1970
2008
|
],
|
|
1971
2009
|
type: 'object',
|
|
1972
2010
|
'x-draft': 'Early access.',
|
|
@@ -2034,6 +2072,43 @@ export default {
|
|
|
2034
2072
|
enum: ['code', 'card', 'mobile_key'],
|
|
2035
2073
|
type: 'string',
|
|
2036
2074
|
},
|
|
2075
|
+
warnings: {
|
|
2076
|
+
description:
|
|
2077
|
+
'Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).',
|
|
2078
|
+
items: {
|
|
2079
|
+
description:
|
|
2080
|
+
'Warning associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).',
|
|
2081
|
+
discriminator: { propertyName: 'warning_code' },
|
|
2082
|
+
oneOf: [
|
|
2083
|
+
{
|
|
2084
|
+
description:
|
|
2085
|
+
'Indicates that the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) is being deleted.',
|
|
2086
|
+
properties: {
|
|
2087
|
+
created_at: {
|
|
2088
|
+
description:
|
|
2089
|
+
'Date and time at which Seam created the warning.',
|
|
2090
|
+
format: 'date-time',
|
|
2091
|
+
type: 'string',
|
|
2092
|
+
},
|
|
2093
|
+
message: {
|
|
2094
|
+
description:
|
|
2095
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
2096
|
+
type: 'string',
|
|
2097
|
+
},
|
|
2098
|
+
warning_code: {
|
|
2099
|
+
description:
|
|
2100
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
2101
|
+
enum: ['being_deleted'],
|
|
2102
|
+
type: 'string',
|
|
2103
|
+
},
|
|
2104
|
+
},
|
|
2105
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
2106
|
+
type: 'object',
|
|
2107
|
+
},
|
|
2108
|
+
],
|
|
2109
|
+
},
|
|
2110
|
+
type: 'array',
|
|
2111
|
+
},
|
|
2037
2112
|
workspace_id: {
|
|
2038
2113
|
description:
|
|
2039
2114
|
'ID of the Seam workspace associated with the access method.',
|
|
@@ -2049,6 +2124,7 @@ export default {
|
|
|
2049
2124
|
'created_at',
|
|
2050
2125
|
'issued_at',
|
|
2051
2126
|
'is_issued',
|
|
2127
|
+
'warnings',
|
|
2052
2128
|
],
|
|
2053
2129
|
type: 'object',
|
|
2054
2130
|
'x-draft': 'Early access.',
|
|
@@ -14736,6 +14812,63 @@ export default {
|
|
|
14736
14812
|
type: 'object',
|
|
14737
14813
|
'x-route-path': '/access_grants',
|
|
14738
14814
|
},
|
|
14815
|
+
{
|
|
14816
|
+
description: "An Access Grant's start or end time was changed.",
|
|
14817
|
+
properties: {
|
|
14818
|
+
access_grant_id: {
|
|
14819
|
+
description: 'ID of the affected Access Grant.',
|
|
14820
|
+
format: 'uuid',
|
|
14821
|
+
type: 'string',
|
|
14822
|
+
},
|
|
14823
|
+
access_grant_key: {
|
|
14824
|
+
description: 'Key of the affected Access Grant (if present).',
|
|
14825
|
+
type: 'string',
|
|
14826
|
+
},
|
|
14827
|
+
created_at: {
|
|
14828
|
+
description: 'Date and time at which the event was created.',
|
|
14829
|
+
format: 'date-time',
|
|
14830
|
+
type: 'string',
|
|
14831
|
+
},
|
|
14832
|
+
ends_at: {
|
|
14833
|
+
description: 'The new end time for the access grant.',
|
|
14834
|
+
type: 'string',
|
|
14835
|
+
},
|
|
14836
|
+
event_id: {
|
|
14837
|
+
description: 'ID of the event.',
|
|
14838
|
+
format: 'uuid',
|
|
14839
|
+
type: 'string',
|
|
14840
|
+
},
|
|
14841
|
+
event_type: {
|
|
14842
|
+
enum: ['access_grant.access_times_changed'],
|
|
14843
|
+
type: 'string',
|
|
14844
|
+
},
|
|
14845
|
+
occurred_at: {
|
|
14846
|
+
description: 'Date and time at which the event occurred.',
|
|
14847
|
+
format: 'date-time',
|
|
14848
|
+
type: 'string',
|
|
14849
|
+
},
|
|
14850
|
+
starts_at: {
|
|
14851
|
+
description: 'The new start time for the access grant.',
|
|
14852
|
+
type: 'string',
|
|
14853
|
+
},
|
|
14854
|
+
workspace_id: {
|
|
14855
|
+
description:
|
|
14856
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
|
|
14857
|
+
format: 'uuid',
|
|
14858
|
+
type: 'string',
|
|
14859
|
+
},
|
|
14860
|
+
},
|
|
14861
|
+
required: [
|
|
14862
|
+
'event_id',
|
|
14863
|
+
'workspace_id',
|
|
14864
|
+
'created_at',
|
|
14865
|
+
'occurred_at',
|
|
14866
|
+
'access_grant_id',
|
|
14867
|
+
'event_type',
|
|
14868
|
+
],
|
|
14869
|
+
type: 'object',
|
|
14870
|
+
'x-route-path': '/access_grants',
|
|
14871
|
+
},
|
|
14739
14872
|
{
|
|
14740
14873
|
description: 'An access method was issued.',
|
|
14741
14874
|
properties: {
|
|
@@ -15036,6 +15169,70 @@ export default {
|
|
|
15036
15169
|
type: 'object',
|
|
15037
15170
|
'x-route-path': '/access_methods',
|
|
15038
15171
|
},
|
|
15172
|
+
{
|
|
15173
|
+
description: "An access method's PIN code was changed.",
|
|
15174
|
+
properties: {
|
|
15175
|
+
access_grant_ids: {
|
|
15176
|
+
description:
|
|
15177
|
+
'IDs of the access grants associated with this access method.',
|
|
15178
|
+
items: { format: 'uuid', type: 'string' },
|
|
15179
|
+
type: 'array',
|
|
15180
|
+
},
|
|
15181
|
+
access_grant_keys: {
|
|
15182
|
+
description:
|
|
15183
|
+
'Keys of the access grants associated with this access method (if present).',
|
|
15184
|
+
items: { type: 'string' },
|
|
15185
|
+
type: 'array',
|
|
15186
|
+
},
|
|
15187
|
+
access_method_id: {
|
|
15188
|
+
description: 'ID of the affected access method.',
|
|
15189
|
+
format: 'uuid',
|
|
15190
|
+
type: 'string',
|
|
15191
|
+
},
|
|
15192
|
+
code: {
|
|
15193
|
+
description:
|
|
15194
|
+
"The new PIN code for code access methods (only present when mode is 'code').",
|
|
15195
|
+
type: 'string',
|
|
15196
|
+
},
|
|
15197
|
+
created_at: {
|
|
15198
|
+
description: 'Date and time at which the event was created.',
|
|
15199
|
+
format: 'date-time',
|
|
15200
|
+
type: 'string',
|
|
15201
|
+
},
|
|
15202
|
+
event_id: {
|
|
15203
|
+
description: 'ID of the event.',
|
|
15204
|
+
format: 'uuid',
|
|
15205
|
+
type: 'string',
|
|
15206
|
+
},
|
|
15207
|
+
event_type: {
|
|
15208
|
+
enum: ['access_method.code_changed'],
|
|
15209
|
+
type: 'string',
|
|
15210
|
+
},
|
|
15211
|
+
occurred_at: {
|
|
15212
|
+
description: 'Date and time at which the event occurred.',
|
|
15213
|
+
format: 'date-time',
|
|
15214
|
+
type: 'string',
|
|
15215
|
+
},
|
|
15216
|
+
workspace_id: {
|
|
15217
|
+
description:
|
|
15218
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
|
|
15219
|
+
format: 'uuid',
|
|
15220
|
+
type: 'string',
|
|
15221
|
+
},
|
|
15222
|
+
},
|
|
15223
|
+
required: [
|
|
15224
|
+
'event_id',
|
|
15225
|
+
'workspace_id',
|
|
15226
|
+
'created_at',
|
|
15227
|
+
'occurred_at',
|
|
15228
|
+
'access_method_id',
|
|
15229
|
+
'access_grant_ids',
|
|
15230
|
+
'event_type',
|
|
15231
|
+
'code',
|
|
15232
|
+
],
|
|
15233
|
+
type: 'object',
|
|
15234
|
+
'x-route-path': '/access_methods',
|
|
15235
|
+
},
|
|
15039
15236
|
{
|
|
15040
15237
|
description:
|
|
15041
15238
|
'An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.',
|
|
@@ -43418,11 +43615,13 @@ export default {
|
|
|
43418
43615
|
'access_grant.access_granted_to_all_doors',
|
|
43419
43616
|
'access_grant.access_granted_to_door',
|
|
43420
43617
|
'access_grant.access_to_door_lost',
|
|
43618
|
+
'access_grant.access_times_changed',
|
|
43421
43619
|
'access_method.issued',
|
|
43422
43620
|
'access_method.revoked',
|
|
43423
43621
|
'access_method.card_encoding_required',
|
|
43424
43622
|
'access_method.deleted',
|
|
43425
43623
|
'access_method.reissued',
|
|
43624
|
+
'access_method.code_changed',
|
|
43426
43625
|
'acs_system.connected',
|
|
43427
43626
|
'acs_system.added',
|
|
43428
43627
|
'acs_system.disconnected',
|
|
@@ -43519,11 +43718,13 @@ export default {
|
|
|
43519
43718
|
'access_grant.access_granted_to_all_doors',
|
|
43520
43719
|
'access_grant.access_granted_to_door',
|
|
43521
43720
|
'access_grant.access_to_door_lost',
|
|
43721
|
+
'access_grant.access_times_changed',
|
|
43522
43722
|
'access_method.issued',
|
|
43523
43723
|
'access_method.revoked',
|
|
43524
43724
|
'access_method.card_encoding_required',
|
|
43525
43725
|
'access_method.deleted',
|
|
43526
43726
|
'access_method.reissued',
|
|
43727
|
+
'access_method.code_changed',
|
|
43527
43728
|
'acs_system.connected',
|
|
43528
43729
|
'acs_system.added',
|
|
43529
43730
|
'acs_system.disconnected',
|
|
@@ -43775,11 +43976,13 @@ export default {
|
|
|
43775
43976
|
'access_grant.access_granted_to_all_doors',
|
|
43776
43977
|
'access_grant.access_granted_to_door',
|
|
43777
43978
|
'access_grant.access_to_door_lost',
|
|
43979
|
+
'access_grant.access_times_changed',
|
|
43778
43980
|
'access_method.issued',
|
|
43779
43981
|
'access_method.revoked',
|
|
43780
43982
|
'access_method.card_encoding_required',
|
|
43781
43983
|
'access_method.deleted',
|
|
43782
43984
|
'access_method.reissued',
|
|
43985
|
+
'access_method.code_changed',
|
|
43783
43986
|
'acs_system.connected',
|
|
43784
43987
|
'acs_system.added',
|
|
43785
43988
|
'acs_system.disconnected',
|
|
@@ -43872,11 +44075,13 @@ export default {
|
|
|
43872
44075
|
'access_grant.access_granted_to_all_doors',
|
|
43873
44076
|
'access_grant.access_granted_to_door',
|
|
43874
44077
|
'access_grant.access_to_door_lost',
|
|
44078
|
+
'access_grant.access_times_changed',
|
|
43875
44079
|
'access_method.issued',
|
|
43876
44080
|
'access_method.revoked',
|
|
43877
44081
|
'access_method.card_encoding_required',
|
|
43878
44082
|
'access_method.deleted',
|
|
43879
44083
|
'access_method.reissued',
|
|
44084
|
+
'access_method.code_changed',
|
|
43880
44085
|
'acs_system.connected',
|
|
43881
44086
|
'acs_system.added',
|
|
43882
44087
|
'acs_system.disconnected',
|
|
@@ -49046,11 +49251,13 @@ export default {
|
|
|
49046
49251
|
'access_grant.access_granted_to_all_doors',
|
|
49047
49252
|
'access_grant.access_granted_to_door',
|
|
49048
49253
|
'access_grant.access_to_door_lost',
|
|
49254
|
+
'access_grant.access_times_changed',
|
|
49049
49255
|
'access_method.issued',
|
|
49050
49256
|
'access_method.revoked',
|
|
49051
49257
|
'access_method.card_encoding_required',
|
|
49052
49258
|
'access_method.deleted',
|
|
49053
49259
|
'access_method.reissued',
|
|
49260
|
+
'access_method.code_changed',
|
|
49054
49261
|
'acs_system.connected',
|
|
49055
49262
|
'acs_system.added',
|
|
49056
49263
|
'acs_system.disconnected',
|
|
@@ -49148,11 +49355,13 @@ export default {
|
|
|
49148
49355
|
'access_grant.access_granted_to_all_doors',
|
|
49149
49356
|
'access_grant.access_granted_to_door',
|
|
49150
49357
|
'access_grant.access_to_door_lost',
|
|
49358
|
+
'access_grant.access_times_changed',
|
|
49151
49359
|
'access_method.issued',
|
|
49152
49360
|
'access_method.revoked',
|
|
49153
49361
|
'access_method.card_encoding_required',
|
|
49154
49362
|
'access_method.deleted',
|
|
49155
49363
|
'access_method.reissued',
|
|
49364
|
+
'access_method.code_changed',
|
|
49156
49365
|
'acs_system.connected',
|
|
49157
49366
|
'acs_system.added',
|
|
49158
49367
|
'acs_system.disconnected',
|
|
@@ -49313,11 +49522,13 @@ export default {
|
|
|
49313
49522
|
'access_grant.access_granted_to_all_doors',
|
|
49314
49523
|
'access_grant.access_granted_to_door',
|
|
49315
49524
|
'access_grant.access_to_door_lost',
|
|
49525
|
+
'access_grant.access_times_changed',
|
|
49316
49526
|
'access_method.issued',
|
|
49317
49527
|
'access_method.revoked',
|
|
49318
49528
|
'access_method.card_encoding_required',
|
|
49319
49529
|
'access_method.deleted',
|
|
49320
49530
|
'access_method.reissued',
|
|
49531
|
+
'access_method.code_changed',
|
|
49321
49532
|
'acs_system.connected',
|
|
49322
49533
|
'acs_system.added',
|
|
49323
49534
|
'acs_system.disconnected',
|
|
@@ -49410,11 +49621,13 @@ export default {
|
|
|
49410
49621
|
'access_grant.access_granted_to_all_doors',
|
|
49411
49622
|
'access_grant.access_granted_to_door',
|
|
49412
49623
|
'access_grant.access_to_door_lost',
|
|
49624
|
+
'access_grant.access_times_changed',
|
|
49413
49625
|
'access_method.issued',
|
|
49414
49626
|
'access_method.revoked',
|
|
49415
49627
|
'access_method.card_encoding_required',
|
|
49416
49628
|
'access_method.deleted',
|
|
49417
49629
|
'access_method.reissued',
|
|
49630
|
+
'access_method.code_changed',
|
|
49418
49631
|
'acs_system.connected',
|
|
49419
49632
|
'acs_system.added',
|
|
49420
49633
|
'acs_system.disconnected',
|