@seamapi/types 1.723.0 → 1.725.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 (127) hide show
  1. package/dist/connect.cjs +8098 -2279
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +21305 -5507
  4. package/dist/index.cjs +8098 -2279
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +205 -142
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js +57 -22
  8. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +95 -52
  10. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +5 -2
  11. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
  12. package/lib/seam/connect/models/access-grants/access-grant.d.ts +721 -12
  13. package/lib/seam/connect/models/access-grants/access-grant.js +75 -1
  14. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  15. package/lib/seam/connect/models/access-grants/access-method.d.ts +825 -8
  16. package/lib/seam/connect/models/access-grants/access-method.js +123 -1
  17. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  18. package/lib/seam/connect/models/access-grants/index.d.ts +1 -0
  19. package/lib/seam/connect/models/access-grants/index.js +1 -0
  20. package/lib/seam/connect/models/access-grants/index.js.map +1 -1
  21. package/lib/seam/connect/models/access-grants/pending-mutations.d.ts +255 -0
  22. package/lib/seam/connect/models/access-grants/pending-mutations.js +78 -0
  23. package/lib/seam/connect/models/access-grants/pending-mutations.js.map +1 -0
  24. package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -0
  25. package/lib/seam/connect/models/access-grants/requested-access-method.js +6 -0
  26. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
  27. package/lib/seam/connect/models/acs/acs-entrance.d.ts +0 -5
  28. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +80 -80
  29. package/lib/seam/connect/models/acs/metadata/salto-space.d.ts +0 -3
  30. package/lib/seam/connect/models/acs/metadata/salto-space.js +0 -5
  31. package/lib/seam/connect/models/acs/metadata/salto-space.js.map +1 -1
  32. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +36 -16
  33. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +5 -5
  34. package/lib/seam/connect/models/action-attempts/encode-credential.js +5 -5
  35. package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
  36. package/lib/seam/connect/models/action-attempts/lock-door.d.ts +13 -3
  37. package/lib/seam/connect/models/action-attempts/lock-door.js +8 -1
  38. package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -1
  39. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +5 -5
  40. package/lib/seam/connect/models/action-attempts/scan-credential.js +5 -5
  41. package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
  42. package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +13 -3
  43. package/lib/seam/connect/models/action-attempts/unlock-door.js +8 -1
  44. package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -1
  45. package/lib/seam/connect/models/batch.d.ts +3952 -752
  46. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +58 -0
  47. package/lib/seam/connect/models/connected-accounts/connected-account.js +7 -0
  48. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  49. package/lib/seam/connect/models/customer/access-grant-resources.d.ts +6 -0
  50. package/lib/seam/connect/models/customer/access-grant-resources.js +4 -0
  51. package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
  52. package/lib/seam/connect/models/customer/customer-data.d.ts +5 -0
  53. package/lib/seam/connect/models/customer/customer-portal.d.ts +169 -10
  54. package/lib/seam/connect/models/customer/customer-portal.js +46 -4
  55. package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
  56. package/lib/seam/connect/models/devices/device-metadata.d.ts +45 -38
  57. package/lib/seam/connect/models/devices/device-metadata.js +26 -9
  58. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  59. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -5
  60. package/lib/seam/connect/models/devices/device-provider.js +2 -3
  61. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  62. package/lib/seam/connect/models/devices/device-type.d.ts +0 -2
  63. package/lib/seam/connect/models/devices/device-type.js +0 -2
  64. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  65. package/lib/seam/connect/models/devices/device.d.ts +203 -52
  66. package/lib/seam/connect/models/devices/device.js +31 -0
  67. package/lib/seam/connect/models/devices/device.js.map +1 -1
  68. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +97 -38
  69. package/lib/seam/connect/models/events/access-codes.d.ts +1390 -0
  70. package/lib/seam/connect/models/events/access-codes.js +41 -11
  71. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  72. package/lib/seam/connect/models/events/access-methods.d.ts +60 -0
  73. package/lib/seam/connect/models/events/access-methods.js +9 -0
  74. package/lib/seam/connect/models/events/access-methods.js.map +1 -1
  75. package/lib/seam/connect/models/events/acs/index.d.ts +93 -0
  76. package/lib/seam/connect/models/events/acs/systems.d.ts +186 -0
  77. package/lib/seam/connect/models/events/acs/systems.js +19 -2
  78. package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
  79. package/lib/seam/connect/models/events/action-attempts.d.ts +332 -0
  80. package/lib/seam/connect/models/events/action-attempts.js +46 -0
  81. package/lib/seam/connect/models/events/action-attempts.js.map +1 -1
  82. package/lib/seam/connect/models/events/common.d.ts +26 -0
  83. package/lib/seam/connect/models/events/common.js +22 -0
  84. package/lib/seam/connect/models/events/common.js.map +1 -1
  85. package/lib/seam/connect/models/events/connected-accounts.d.ts +140 -272
  86. package/lib/seam/connect/models/events/connected-accounts.js +17 -9
  87. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  88. package/lib/seam/connect/models/events/devices.d.ts +1128 -0
  89. package/lib/seam/connect/models/events/devices.js +39 -11
  90. package/lib/seam/connect/models/events/devices.js.map +1 -1
  91. package/lib/seam/connect/models/events/seam-event.d.ts +1675 -196
  92. package/lib/seam/connect/models/events/spaces.d.ts +12 -12
  93. package/lib/seam/connect/models/phones/phone-session.d.ts +0 -20
  94. package/lib/seam/connect/openapi.d.ts +6484 -2215
  95. package/lib/seam/connect/openapi.js +8922 -3442
  96. package/lib/seam/connect/openapi.js.map +1 -1
  97. package/lib/seam/connect/route-types.d.ts +7211 -1139
  98. package/package.json +1 -1
  99. package/src/lib/seam/connect/internal/model-types.ts +1 -0
  100. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +76 -24
  101. package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +10 -2
  102. package/src/lib/seam/connect/models/access-grants/access-grant.ts +92 -1
  103. package/src/lib/seam/connect/models/access-grants/access-method.ts +162 -1
  104. package/src/lib/seam/connect/models/access-grants/index.ts +1 -0
  105. package/src/lib/seam/connect/models/access-grants/pending-mutations.ts +101 -0
  106. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +8 -0
  107. package/src/lib/seam/connect/models/acs/metadata/salto-space.ts +0 -5
  108. package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +5 -5
  109. package/src/lib/seam/connect/models/action-attempts/lock-door.ts +10 -1
  110. package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +5 -5
  111. package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +10 -1
  112. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +10 -0
  113. package/src/lib/seam/connect/models/customer/access-grant-resources.ts +7 -0
  114. package/src/lib/seam/connect/models/customer/customer-portal.ts +66 -6
  115. package/src/lib/seam/connect/models/devices/device-metadata.ts +36 -10
  116. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -3
  117. package/src/lib/seam/connect/models/devices/device-type.ts +0 -2
  118. package/src/lib/seam/connect/models/devices/device.ts +37 -0
  119. package/src/lib/seam/connect/models/events/access-codes.ts +49 -16
  120. package/src/lib/seam/connect/models/events/access-methods.ts +14 -0
  121. package/src/lib/seam/connect/models/events/acs/systems.ts +21 -3
  122. package/src/lib/seam/connect/models/events/action-attempts.ts +64 -0
  123. package/src/lib/seam/connect/models/events/common.ts +31 -0
  124. package/src/lib/seam/connect/models/events/connected-accounts.ts +23 -11
  125. package/src/lib/seam/connect/models/events/devices.ts +51 -18
  126. package/src/lib/seam/connect/openapi.ts +8974 -2885
  127. package/src/lib/seam/connect/route-types.ts +8121 -1686
@@ -58,18 +58,163 @@ declare const _access_grant_warning_map: z.ZodObject<{
58
58
  created_at: string;
59
59
  warning_code: "being_deleted";
60
60
  }>>>;
61
+ underprovisioned_access: z.ZodNullable<z.ZodOptional<z.ZodObject<{
62
+ created_at: z.ZodString;
63
+ message: z.ZodString;
64
+ } & {
65
+ warning_code: z.ZodLiteral<"underprovisioned_access">;
66
+ }, "strip", z.ZodTypeAny, {
67
+ message: string;
68
+ created_at: string;
69
+ warning_code: "underprovisioned_access";
70
+ }, {
71
+ message: string;
72
+ created_at: string;
73
+ warning_code: "underprovisioned_access";
74
+ }>>>;
75
+ overprovisioned_access: z.ZodNullable<z.ZodOptional<z.ZodObject<{
76
+ created_at: z.ZodString;
77
+ message: z.ZodString;
78
+ } & {
79
+ warning_code: z.ZodLiteral<"overprovisioned_access">;
80
+ }, "strip", z.ZodTypeAny, {
81
+ message: string;
82
+ created_at: string;
83
+ warning_code: "overprovisioned_access";
84
+ }, {
85
+ message: string;
86
+ created_at: string;
87
+ warning_code: "overprovisioned_access";
88
+ }>>>;
89
+ updating_access_times: z.ZodNullable<z.ZodOptional<z.ZodObject<{
90
+ created_at: z.ZodString;
91
+ message: z.ZodString;
92
+ } & {
93
+ warning_code: z.ZodLiteral<"updating_access_times">;
94
+ access_method_ids: z.ZodArray<z.ZodString, "many">;
95
+ }, "strip", z.ZodTypeAny, {
96
+ message: string;
97
+ created_at: string;
98
+ warning_code: "updating_access_times";
99
+ access_method_ids: string[];
100
+ }, {
101
+ message: string;
102
+ created_at: string;
103
+ warning_code: "updating_access_times";
104
+ access_method_ids: string[];
105
+ }>>>;
106
+ requested_code_unavailable_by_device: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
107
+ created_at: z.ZodString;
108
+ message: z.ZodString;
109
+ } & {
110
+ warning_code: z.ZodLiteral<"requested_code_unavailable">;
111
+ device_id: z.ZodString;
112
+ original_code: z.ZodString;
113
+ new_code: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ message: string;
116
+ device_id: string;
117
+ created_at: string;
118
+ warning_code: "requested_code_unavailable";
119
+ original_code: string;
120
+ new_code: string;
121
+ }, {
122
+ message: string;
123
+ device_id: string;
124
+ created_at: string;
125
+ warning_code: "requested_code_unavailable";
126
+ original_code: string;
127
+ new_code: string;
128
+ }>>>>;
129
+ device_does_not_support_access_codes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
130
+ created_at: z.ZodString;
131
+ message: z.ZodString;
132
+ } & {
133
+ warning_code: z.ZodLiteral<"device_does_not_support_access_codes">;
134
+ device_id: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ message: string;
137
+ device_id: string;
138
+ created_at: string;
139
+ warning_code: "device_does_not_support_access_codes";
140
+ }, {
141
+ message: string;
142
+ device_id: string;
143
+ created_at: string;
144
+ warning_code: "device_does_not_support_access_codes";
145
+ }>>>>;
61
146
  }, "strip", z.ZodTypeAny, {
62
147
  being_deleted?: {
63
148
  message: string;
64
149
  created_at: string;
65
150
  warning_code: "being_deleted";
66
151
  } | null | undefined;
152
+ updating_access_times?: {
153
+ message: string;
154
+ created_at: string;
155
+ warning_code: "updating_access_times";
156
+ access_method_ids: string[];
157
+ } | null | undefined;
158
+ underprovisioned_access?: {
159
+ message: string;
160
+ created_at: string;
161
+ warning_code: "underprovisioned_access";
162
+ } | null | undefined;
163
+ overprovisioned_access?: {
164
+ message: string;
165
+ created_at: string;
166
+ warning_code: "overprovisioned_access";
167
+ } | null | undefined;
168
+ device_does_not_support_access_codes?: Record<string, {
169
+ message: string;
170
+ device_id: string;
171
+ created_at: string;
172
+ warning_code: "device_does_not_support_access_codes";
173
+ }> | null | undefined;
174
+ requested_code_unavailable_by_device?: Record<string, {
175
+ message: string;
176
+ device_id: string;
177
+ created_at: string;
178
+ warning_code: "requested_code_unavailable";
179
+ original_code: string;
180
+ new_code: string;
181
+ }> | null | undefined;
67
182
  }, {
68
183
  being_deleted?: {
69
184
  message: string;
70
185
  created_at: string;
71
186
  warning_code: "being_deleted";
72
187
  } | null | undefined;
188
+ updating_access_times?: {
189
+ message: string;
190
+ created_at: string;
191
+ warning_code: "updating_access_times";
192
+ access_method_ids: string[];
193
+ } | null | undefined;
194
+ underprovisioned_access?: {
195
+ message: string;
196
+ created_at: string;
197
+ warning_code: "underprovisioned_access";
198
+ } | null | undefined;
199
+ overprovisioned_access?: {
200
+ message: string;
201
+ created_at: string;
202
+ warning_code: "overprovisioned_access";
203
+ } | null | undefined;
204
+ device_does_not_support_access_codes?: Record<string, {
205
+ message: string;
206
+ device_id: string;
207
+ created_at: string;
208
+ warning_code: "device_does_not_support_access_codes";
209
+ }> | null | undefined;
210
+ requested_code_unavailable_by_device?: Record<string, {
211
+ message: string;
212
+ device_id: string;
213
+ created_at: string;
214
+ warning_code: "requested_code_unavailable";
215
+ original_code: string;
216
+ new_code: string;
217
+ }> | null | undefined;
73
218
  }>;
74
219
  export type AccessGrantWarningMap = z.infer<typeof _access_grant_warning_map>;
75
220
  export declare const access_grant: z.ZodObject<{
@@ -84,6 +229,7 @@ export declare const access_grant: z.ZodObject<{
84
229
  display_name: z.ZodString;
85
230
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
86
231
  code: z.ZodOptional<z.ZodString>;
232
+ instant_key_max_use_count: z.ZodOptional<z.ZodNumber>;
87
233
  created_at: z.ZodString;
88
234
  created_access_method_ids: z.ZodArray<z.ZodString, "many">;
89
235
  }, "strip", z.ZodTypeAny, {
@@ -92,12 +238,14 @@ export declare const access_grant: z.ZodObject<{
92
238
  mode: "code" | "card" | "mobile_key";
93
239
  created_access_method_ids: string[];
94
240
  code?: string | undefined;
241
+ instant_key_max_use_count?: number | undefined;
95
242
  }, {
96
243
  display_name: string;
97
244
  created_at: string;
98
245
  mode: "code" | "card" | "mobile_key";
99
246
  created_access_method_ids: string[];
100
247
  code?: string | undefined;
248
+ instant_key_max_use_count?: number | undefined;
101
249
  }>, "many">;
102
250
  access_method_ids: z.ZodArray<z.ZodString, "many">;
103
251
  client_session_token: z.ZodOptional<z.ZodString>;
@@ -120,6 +268,86 @@ export declare const access_grant: z.ZodObject<{
120
268
  message: string;
121
269
  created_at: string;
122
270
  warning_code: "being_deleted";
271
+ }>, z.ZodObject<{
272
+ created_at: z.ZodString;
273
+ message: z.ZodString;
274
+ } & {
275
+ warning_code: z.ZodLiteral<"underprovisioned_access">;
276
+ }, "strip", z.ZodTypeAny, {
277
+ message: string;
278
+ created_at: string;
279
+ warning_code: "underprovisioned_access";
280
+ }, {
281
+ message: string;
282
+ created_at: string;
283
+ warning_code: "underprovisioned_access";
284
+ }>, z.ZodObject<{
285
+ created_at: z.ZodString;
286
+ message: z.ZodString;
287
+ } & {
288
+ warning_code: z.ZodLiteral<"overprovisioned_access">;
289
+ }, "strip", z.ZodTypeAny, {
290
+ message: string;
291
+ created_at: string;
292
+ warning_code: "overprovisioned_access";
293
+ }, {
294
+ message: string;
295
+ created_at: string;
296
+ warning_code: "overprovisioned_access";
297
+ }>, z.ZodObject<{
298
+ created_at: z.ZodString;
299
+ message: z.ZodString;
300
+ } & {
301
+ warning_code: z.ZodLiteral<"updating_access_times">;
302
+ access_method_ids: z.ZodArray<z.ZodString, "many">;
303
+ }, "strip", z.ZodTypeAny, {
304
+ message: string;
305
+ created_at: string;
306
+ warning_code: "updating_access_times";
307
+ access_method_ids: string[];
308
+ }, {
309
+ message: string;
310
+ created_at: string;
311
+ warning_code: "updating_access_times";
312
+ access_method_ids: string[];
313
+ }>, z.ZodObject<{
314
+ created_at: z.ZodString;
315
+ message: z.ZodString;
316
+ } & {
317
+ warning_code: z.ZodLiteral<"requested_code_unavailable">;
318
+ device_id: z.ZodString;
319
+ original_code: z.ZodString;
320
+ new_code: z.ZodString;
321
+ }, "strip", z.ZodTypeAny, {
322
+ message: string;
323
+ device_id: string;
324
+ created_at: string;
325
+ warning_code: "requested_code_unavailable";
326
+ original_code: string;
327
+ new_code: string;
328
+ }, {
329
+ message: string;
330
+ device_id: string;
331
+ created_at: string;
332
+ warning_code: "requested_code_unavailable";
333
+ original_code: string;
334
+ new_code: string;
335
+ }>, z.ZodObject<{
336
+ created_at: z.ZodString;
337
+ message: z.ZodString;
338
+ } & {
339
+ warning_code: z.ZodLiteral<"device_does_not_support_access_codes">;
340
+ device_id: z.ZodString;
341
+ }, "strip", z.ZodTypeAny, {
342
+ message: string;
343
+ device_id: string;
344
+ created_at: string;
345
+ warning_code: "device_does_not_support_access_codes";
346
+ }, {
347
+ message: string;
348
+ device_id: string;
349
+ created_at: string;
350
+ warning_code: "device_does_not_support_access_codes";
123
351
  }>]>, "many">;
124
352
  errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
125
353
  created_at: z.ZodString;
@@ -136,6 +364,103 @@ export declare const access_grant: z.ZodObject<{
136
364
  error_code: "cannot_create_requested_access_methods";
137
365
  }>]>, "many">;
138
366
  customization_profile_id: z.ZodOptional<z.ZodString>;
367
+ pending_mutations: z.ZodArray<z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
368
+ created_at: z.ZodString;
369
+ message: z.ZodString;
370
+ } & {
371
+ mutation_code: z.ZodLiteral<"updating_spaces">;
372
+ from: z.ZodObject<{
373
+ device_ids: z.ZodArray<z.ZodString, "many">;
374
+ }, "strip", z.ZodTypeAny, {
375
+ device_ids: string[];
376
+ }, {
377
+ device_ids: string[];
378
+ }>;
379
+ to: z.ZodObject<{
380
+ device_ids: z.ZodArray<z.ZodString, "many">;
381
+ common_code_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ device_ids: string[];
384
+ common_code_key?: string | null | undefined;
385
+ }, {
386
+ device_ids: string[];
387
+ common_code_key?: string | null | undefined;
388
+ }>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ message: string;
391
+ created_at: string;
392
+ mutation_code: "updating_spaces";
393
+ from: {
394
+ device_ids: string[];
395
+ };
396
+ to: {
397
+ device_ids: string[];
398
+ common_code_key?: string | null | undefined;
399
+ };
400
+ }, {
401
+ message: string;
402
+ created_at: string;
403
+ mutation_code: "updating_spaces";
404
+ from: {
405
+ device_ids: string[];
406
+ };
407
+ to: {
408
+ device_ids: string[];
409
+ common_code_key?: string | null | undefined;
410
+ };
411
+ }>, z.ZodObject<{
412
+ created_at: z.ZodString;
413
+ message: z.ZodString;
414
+ } & {
415
+ mutation_code: z.ZodLiteral<"updating_access_times">;
416
+ access_method_ids: z.ZodArray<z.ZodString, "many">;
417
+ from: z.ZodObject<{
418
+ starts_at: z.ZodNullable<z.ZodString>;
419
+ ends_at: z.ZodNullable<z.ZodString>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ starts_at: string | null;
422
+ ends_at: string | null;
423
+ }, {
424
+ starts_at: string | null;
425
+ ends_at: string | null;
426
+ }>;
427
+ to: z.ZodObject<{
428
+ starts_at: z.ZodNullable<z.ZodString>;
429
+ ends_at: z.ZodNullable<z.ZodString>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ starts_at: string | null;
432
+ ends_at: string | null;
433
+ }, {
434
+ starts_at: string | null;
435
+ ends_at: string | null;
436
+ }>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ message: string;
439
+ created_at: string;
440
+ mutation_code: "updating_access_times";
441
+ from: {
442
+ starts_at: string | null;
443
+ ends_at: string | null;
444
+ };
445
+ to: {
446
+ starts_at: string | null;
447
+ ends_at: string | null;
448
+ };
449
+ access_method_ids: string[];
450
+ }, {
451
+ message: string;
452
+ created_at: string;
453
+ mutation_code: "updating_access_times";
454
+ from: {
455
+ starts_at: string | null;
456
+ ends_at: string | null;
457
+ };
458
+ to: {
459
+ starts_at: string | null;
460
+ ends_at: string | null;
461
+ };
462
+ access_method_ids: string[];
463
+ }>]>, "many">;
139
464
  }, "strip", z.ZodTypeAny, {
140
465
  name: string | null;
141
466
  display_name: string;
@@ -148,12 +473,38 @@ export declare const access_grant: z.ZodObject<{
148
473
  created_at: string;
149
474
  error_code: "cannot_create_requested_access_methods";
150
475
  }[];
151
- warnings: {
476
+ warnings: ({
152
477
  message: string;
153
478
  created_at: string;
154
479
  warning_code: "being_deleted";
155
- }[];
480
+ } | {
481
+ message: string;
482
+ created_at: string;
483
+ warning_code: "underprovisioned_access";
484
+ } | {
485
+ message: string;
486
+ created_at: string;
487
+ warning_code: "overprovisioned_access";
488
+ } | {
489
+ message: string;
490
+ created_at: string;
491
+ warning_code: "updating_access_times";
492
+ access_method_ids: string[];
493
+ } | {
494
+ message: string;
495
+ device_id: string;
496
+ created_at: string;
497
+ warning_code: "requested_code_unavailable";
498
+ original_code: string;
499
+ new_code: string;
500
+ } | {
501
+ message: string;
502
+ device_id: string;
503
+ created_at: string;
504
+ warning_code: "device_does_not_support_access_codes";
505
+ })[];
156
506
  space_ids: string[];
507
+ access_method_ids: string[];
157
508
  access_grant_id: string;
158
509
  user_identity_id: string;
159
510
  location_ids: string[];
@@ -163,8 +514,33 @@ export declare const access_grant: z.ZodObject<{
163
514
  mode: "code" | "card" | "mobile_key";
164
515
  created_access_method_ids: string[];
165
516
  code?: string | undefined;
517
+ instant_key_max_use_count?: number | undefined;
166
518
  }[];
167
- access_method_ids: string[];
519
+ pending_mutations: ({
520
+ message: string;
521
+ created_at: string;
522
+ mutation_code: "updating_spaces";
523
+ from: {
524
+ device_ids: string[];
525
+ };
526
+ to: {
527
+ device_ids: string[];
528
+ common_code_key?: string | null | undefined;
529
+ };
530
+ } | {
531
+ message: string;
532
+ created_at: string;
533
+ mutation_code: "updating_access_times";
534
+ from: {
535
+ starts_at: string | null;
536
+ ends_at: string | null;
537
+ };
538
+ to: {
539
+ starts_at: string | null;
540
+ ends_at: string | null;
541
+ };
542
+ access_method_ids: string[];
543
+ })[];
168
544
  access_grant_key?: string | undefined;
169
545
  reservation_key?: string | undefined;
170
546
  client_session_token?: string | undefined;
@@ -182,12 +558,38 @@ export declare const access_grant: z.ZodObject<{
182
558
  created_at: string;
183
559
  error_code: "cannot_create_requested_access_methods";
184
560
  }[];
185
- warnings: {
561
+ warnings: ({
186
562
  message: string;
187
563
  created_at: string;
188
564
  warning_code: "being_deleted";
189
- }[];
565
+ } | {
566
+ message: string;
567
+ created_at: string;
568
+ warning_code: "underprovisioned_access";
569
+ } | {
570
+ message: string;
571
+ created_at: string;
572
+ warning_code: "overprovisioned_access";
573
+ } | {
574
+ message: string;
575
+ created_at: string;
576
+ warning_code: "updating_access_times";
577
+ access_method_ids: string[];
578
+ } | {
579
+ message: string;
580
+ device_id: string;
581
+ created_at: string;
582
+ warning_code: "requested_code_unavailable";
583
+ original_code: string;
584
+ new_code: string;
585
+ } | {
586
+ message: string;
587
+ device_id: string;
588
+ created_at: string;
589
+ warning_code: "device_does_not_support_access_codes";
590
+ })[];
190
591
  space_ids: string[];
592
+ access_method_ids: string[];
191
593
  access_grant_id: string;
192
594
  user_identity_id: string;
193
595
  location_ids: string[];
@@ -197,8 +599,33 @@ export declare const access_grant: z.ZodObject<{
197
599
  mode: "code" | "card" | "mobile_key";
198
600
  created_access_method_ids: string[];
199
601
  code?: string | undefined;
602
+ instant_key_max_use_count?: number | undefined;
200
603
  }[];
201
- access_method_ids: string[];
604
+ pending_mutations: ({
605
+ message: string;
606
+ created_at: string;
607
+ mutation_code: "updating_spaces";
608
+ from: {
609
+ device_ids: string[];
610
+ };
611
+ to: {
612
+ device_ids: string[];
613
+ common_code_key?: string | null | undefined;
614
+ };
615
+ } | {
616
+ message: string;
617
+ created_at: string;
618
+ mutation_code: "updating_access_times";
619
+ from: {
620
+ starts_at: string | null;
621
+ ends_at: string | null;
622
+ };
623
+ to: {
624
+ starts_at: string | null;
625
+ ends_at: string | null;
626
+ };
627
+ access_method_ids: string[];
628
+ })[];
202
629
  access_grant_key?: string | undefined;
203
630
  reservation_key?: string | undefined;
204
631
  client_session_token?: string | undefined;
@@ -218,6 +645,7 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
218
645
  display_name: z.ZodString;
219
646
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
220
647
  code: z.ZodOptional<z.ZodString>;
648
+ instant_key_max_use_count: z.ZodOptional<z.ZodNumber>;
221
649
  created_at: z.ZodString;
222
650
  created_access_method_ids: z.ZodArray<z.ZodString, "many">;
223
651
  }, "strip", z.ZodTypeAny, {
@@ -226,12 +654,14 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
226
654
  mode: "code" | "card" | "mobile_key";
227
655
  created_access_method_ids: string[];
228
656
  code?: string | undefined;
657
+ instant_key_max_use_count?: number | undefined;
229
658
  }, {
230
659
  display_name: string;
231
660
  created_at: string;
232
661
  mode: "code" | "card" | "mobile_key";
233
662
  created_access_method_ids: string[];
234
663
  code?: string | undefined;
664
+ instant_key_max_use_count?: number | undefined;
235
665
  }>, "many">;
236
666
  access_method_ids: z.ZodArray<z.ZodString, "many">;
237
667
  client_session_token: z.ZodOptional<z.ZodString>;
@@ -254,6 +684,86 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
254
684
  message: string;
255
685
  created_at: string;
256
686
  warning_code: "being_deleted";
687
+ }>, z.ZodObject<{
688
+ created_at: z.ZodString;
689
+ message: z.ZodString;
690
+ } & {
691
+ warning_code: z.ZodLiteral<"underprovisioned_access">;
692
+ }, "strip", z.ZodTypeAny, {
693
+ message: string;
694
+ created_at: string;
695
+ warning_code: "underprovisioned_access";
696
+ }, {
697
+ message: string;
698
+ created_at: string;
699
+ warning_code: "underprovisioned_access";
700
+ }>, z.ZodObject<{
701
+ created_at: z.ZodString;
702
+ message: z.ZodString;
703
+ } & {
704
+ warning_code: z.ZodLiteral<"overprovisioned_access">;
705
+ }, "strip", z.ZodTypeAny, {
706
+ message: string;
707
+ created_at: string;
708
+ warning_code: "overprovisioned_access";
709
+ }, {
710
+ message: string;
711
+ created_at: string;
712
+ warning_code: "overprovisioned_access";
713
+ }>, z.ZodObject<{
714
+ created_at: z.ZodString;
715
+ message: z.ZodString;
716
+ } & {
717
+ warning_code: z.ZodLiteral<"updating_access_times">;
718
+ access_method_ids: z.ZodArray<z.ZodString, "many">;
719
+ }, "strip", z.ZodTypeAny, {
720
+ message: string;
721
+ created_at: string;
722
+ warning_code: "updating_access_times";
723
+ access_method_ids: string[];
724
+ }, {
725
+ message: string;
726
+ created_at: string;
727
+ warning_code: "updating_access_times";
728
+ access_method_ids: string[];
729
+ }>, z.ZodObject<{
730
+ created_at: z.ZodString;
731
+ message: z.ZodString;
732
+ } & {
733
+ warning_code: z.ZodLiteral<"requested_code_unavailable">;
734
+ device_id: z.ZodString;
735
+ original_code: z.ZodString;
736
+ new_code: z.ZodString;
737
+ }, "strip", z.ZodTypeAny, {
738
+ message: string;
739
+ device_id: string;
740
+ created_at: string;
741
+ warning_code: "requested_code_unavailable";
742
+ original_code: string;
743
+ new_code: string;
744
+ }, {
745
+ message: string;
746
+ device_id: string;
747
+ created_at: string;
748
+ warning_code: "requested_code_unavailable";
749
+ original_code: string;
750
+ new_code: string;
751
+ }>, z.ZodObject<{
752
+ created_at: z.ZodString;
753
+ message: z.ZodString;
754
+ } & {
755
+ warning_code: z.ZodLiteral<"device_does_not_support_access_codes">;
756
+ device_id: z.ZodString;
757
+ }, "strip", z.ZodTypeAny, {
758
+ message: string;
759
+ device_id: string;
760
+ created_at: string;
761
+ warning_code: "device_does_not_support_access_codes";
762
+ }, {
763
+ message: string;
764
+ device_id: string;
765
+ created_at: string;
766
+ warning_code: "device_does_not_support_access_codes";
257
767
  }>]>, "many">;
258
768
  errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
259
769
  created_at: z.ZodString;
@@ -270,6 +780,103 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
270
780
  error_code: "cannot_create_requested_access_methods";
271
781
  }>]>, "many">;
272
782
  customization_profile_id: z.ZodOptional<z.ZodString>;
783
+ pending_mutations: z.ZodArray<z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
784
+ created_at: z.ZodString;
785
+ message: z.ZodString;
786
+ } & {
787
+ mutation_code: z.ZodLiteral<"updating_spaces">;
788
+ from: z.ZodObject<{
789
+ device_ids: z.ZodArray<z.ZodString, "many">;
790
+ }, "strip", z.ZodTypeAny, {
791
+ device_ids: string[];
792
+ }, {
793
+ device_ids: string[];
794
+ }>;
795
+ to: z.ZodObject<{
796
+ device_ids: z.ZodArray<z.ZodString, "many">;
797
+ common_code_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ device_ids: string[];
800
+ common_code_key?: string | null | undefined;
801
+ }, {
802
+ device_ids: string[];
803
+ common_code_key?: string | null | undefined;
804
+ }>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ message: string;
807
+ created_at: string;
808
+ mutation_code: "updating_spaces";
809
+ from: {
810
+ device_ids: string[];
811
+ };
812
+ to: {
813
+ device_ids: string[];
814
+ common_code_key?: string | null | undefined;
815
+ };
816
+ }, {
817
+ message: string;
818
+ created_at: string;
819
+ mutation_code: "updating_spaces";
820
+ from: {
821
+ device_ids: string[];
822
+ };
823
+ to: {
824
+ device_ids: string[];
825
+ common_code_key?: string | null | undefined;
826
+ };
827
+ }>, z.ZodObject<{
828
+ created_at: z.ZodString;
829
+ message: z.ZodString;
830
+ } & {
831
+ mutation_code: z.ZodLiteral<"updating_access_times">;
832
+ access_method_ids: z.ZodArray<z.ZodString, "many">;
833
+ from: z.ZodObject<{
834
+ starts_at: z.ZodNullable<z.ZodString>;
835
+ ends_at: z.ZodNullable<z.ZodString>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ starts_at: string | null;
838
+ ends_at: string | null;
839
+ }, {
840
+ starts_at: string | null;
841
+ ends_at: string | null;
842
+ }>;
843
+ to: z.ZodObject<{
844
+ starts_at: z.ZodNullable<z.ZodString>;
845
+ ends_at: z.ZodNullable<z.ZodString>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ starts_at: string | null;
848
+ ends_at: string | null;
849
+ }, {
850
+ starts_at: string | null;
851
+ ends_at: string | null;
852
+ }>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ message: string;
855
+ created_at: string;
856
+ mutation_code: "updating_access_times";
857
+ from: {
858
+ starts_at: string | null;
859
+ ends_at: string | null;
860
+ };
861
+ to: {
862
+ starts_at: string | null;
863
+ ends_at: string | null;
864
+ };
865
+ access_method_ids: string[];
866
+ }, {
867
+ message: string;
868
+ created_at: string;
869
+ mutation_code: "updating_access_times";
870
+ from: {
871
+ starts_at: string | null;
872
+ ends_at: string | null;
873
+ };
874
+ to: {
875
+ starts_at: string | null;
876
+ ends_at: string | null;
877
+ };
878
+ access_method_ids: string[];
879
+ }>]>, "many">;
273
880
  }, "access_grant_key" | "user_identity_id" | "client_session_token" | "instant_key_url" | "customization_profile_id"> & {
274
881
  user_identity_id: z.ZodOptional<z.ZodString>;
275
882
  }, "strip", z.ZodTypeAny, {
@@ -284,12 +891,38 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
284
891
  created_at: string;
285
892
  error_code: "cannot_create_requested_access_methods";
286
893
  }[];
287
- warnings: {
894
+ warnings: ({
288
895
  message: string;
289
896
  created_at: string;
290
897
  warning_code: "being_deleted";
291
- }[];
898
+ } | {
899
+ message: string;
900
+ created_at: string;
901
+ warning_code: "underprovisioned_access";
902
+ } | {
903
+ message: string;
904
+ created_at: string;
905
+ warning_code: "overprovisioned_access";
906
+ } | {
907
+ message: string;
908
+ created_at: string;
909
+ warning_code: "updating_access_times";
910
+ access_method_ids: string[];
911
+ } | {
912
+ message: string;
913
+ device_id: string;
914
+ created_at: string;
915
+ warning_code: "requested_code_unavailable";
916
+ original_code: string;
917
+ new_code: string;
918
+ } | {
919
+ message: string;
920
+ device_id: string;
921
+ created_at: string;
922
+ warning_code: "device_does_not_support_access_codes";
923
+ })[];
292
924
  space_ids: string[];
925
+ access_method_ids: string[];
293
926
  access_grant_id: string;
294
927
  location_ids: string[];
295
928
  requested_access_methods: {
@@ -298,8 +931,33 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
298
931
  mode: "code" | "card" | "mobile_key";
299
932
  created_access_method_ids: string[];
300
933
  code?: string | undefined;
934
+ instant_key_max_use_count?: number | undefined;
301
935
  }[];
302
- access_method_ids: string[];
936
+ pending_mutations: ({
937
+ message: string;
938
+ created_at: string;
939
+ mutation_code: "updating_spaces";
940
+ from: {
941
+ device_ids: string[];
942
+ };
943
+ to: {
944
+ device_ids: string[];
945
+ common_code_key?: string | null | undefined;
946
+ };
947
+ } | {
948
+ message: string;
949
+ created_at: string;
950
+ mutation_code: "updating_access_times";
951
+ from: {
952
+ starts_at: string | null;
953
+ ends_at: string | null;
954
+ };
955
+ to: {
956
+ starts_at: string | null;
957
+ ends_at: string | null;
958
+ };
959
+ access_method_ids: string[];
960
+ })[];
303
961
  reservation_key?: string | undefined;
304
962
  user_identity_id?: string | undefined;
305
963
  }, {
@@ -314,12 +972,38 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
314
972
  created_at: string;
315
973
  error_code: "cannot_create_requested_access_methods";
316
974
  }[];
317
- warnings: {
975
+ warnings: ({
318
976
  message: string;
319
977
  created_at: string;
320
978
  warning_code: "being_deleted";
321
- }[];
979
+ } | {
980
+ message: string;
981
+ created_at: string;
982
+ warning_code: "underprovisioned_access";
983
+ } | {
984
+ message: string;
985
+ created_at: string;
986
+ warning_code: "overprovisioned_access";
987
+ } | {
988
+ message: string;
989
+ created_at: string;
990
+ warning_code: "updating_access_times";
991
+ access_method_ids: string[];
992
+ } | {
993
+ message: string;
994
+ device_id: string;
995
+ created_at: string;
996
+ warning_code: "requested_code_unavailable";
997
+ original_code: string;
998
+ new_code: string;
999
+ } | {
1000
+ message: string;
1001
+ device_id: string;
1002
+ created_at: string;
1003
+ warning_code: "device_does_not_support_access_codes";
1004
+ })[];
322
1005
  space_ids: string[];
1006
+ access_method_ids: string[];
323
1007
  access_grant_id: string;
324
1008
  location_ids: string[];
325
1009
  requested_access_methods: {
@@ -328,8 +1012,33 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
328
1012
  mode: "code" | "card" | "mobile_key";
329
1013
  created_access_method_ids: string[];
330
1014
  code?: string | undefined;
1015
+ instant_key_max_use_count?: number | undefined;
331
1016
  }[];
332
- access_method_ids: string[];
1017
+ pending_mutations: ({
1018
+ message: string;
1019
+ created_at: string;
1020
+ mutation_code: "updating_spaces";
1021
+ from: {
1022
+ device_ids: string[];
1023
+ };
1024
+ to: {
1025
+ device_ids: string[];
1026
+ common_code_key?: string | null | undefined;
1027
+ };
1028
+ } | {
1029
+ message: string;
1030
+ created_at: string;
1031
+ mutation_code: "updating_access_times";
1032
+ from: {
1033
+ starts_at: string | null;
1034
+ ends_at: string | null;
1035
+ };
1036
+ to: {
1037
+ starts_at: string | null;
1038
+ ends_at: string | null;
1039
+ };
1040
+ access_method_ids: string[];
1041
+ })[];
333
1042
  reservation_key?: string | undefined;
334
1043
  user_identity_id?: string | undefined;
335
1044
  }>;