@seamapi/types 1.472.0 → 1.474.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.
@@ -16879,6 +16879,30 @@ export type Routes = {
16879
16879
  /** The customer key associated with this webview, if any. */
16880
16880
  customer_key?: string | undefined;
16881
16881
  }[] | undefined;
16882
+ access_methods?: {
16883
+ /** ID of the Seam workspace associated with the access method. */
16884
+ workspace_id: string;
16885
+ /** ID of the access method. */
16886
+ access_method_id: string;
16887
+ /** Display name of the access method. */
16888
+ display_name: string;
16889
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
16890
+ mode: 'code' | 'card' | 'mobile_key';
16891
+ /** Date and time at which the access method was created. */
16892
+ created_at: string;
16893
+ /** Date and time at which the access method was issued. */
16894
+ issued_at: string | null;
16895
+ /** Indicates whether the access method has been issued. */
16896
+ is_issued: boolean;
16897
+ /** URL of the Instant Key for mobile key access methods. */
16898
+ instant_key_url?: string | undefined;
16899
+ /** Token of the client session associated with the access method. */
16900
+ client_session_token?: string | undefined;
16901
+ /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
16902
+ is_encoding_required?: boolean | undefined;
16903
+ /** The actual PIN code for code access methods. */
16904
+ code?: string | undefined;
16905
+ }[] | undefined;
16882
16906
  };
16883
16907
  };
16884
16908
  };
@@ -72185,222 +72209,6 @@ export type Routes = {
72185
72209
  };
72186
72210
  };
72187
72211
  };
72188
- '/unstable_locations/add_acs_entrances': {
72189
- route: '/unstable_locations/add_acs_entrances';
72190
- method: 'POST' | 'PUT';
72191
- queryParams: {};
72192
- jsonBody: {
72193
- /** ID of the location to which you want to add entrances. */
72194
- location_id: string;
72195
- /** IDs of the entrances that you want to add to the location. */
72196
- acs_entrance_ids: string[];
72197
- };
72198
- commonParams: {};
72199
- formData: {};
72200
- jsonResponse: {};
72201
- };
72202
- '/unstable_locations/add_devices': {
72203
- route: '/unstable_locations/add_devices';
72204
- method: 'POST' | 'PUT';
72205
- queryParams: {};
72206
- jsonBody: {
72207
- /** ID of the location to which you want to add devices. */
72208
- location_id: string;
72209
- /** IDs of the devices that you want to add to the location. */
72210
- device_ids: string[];
72211
- };
72212
- commonParams: {};
72213
- formData: {};
72214
- jsonResponse: {};
72215
- };
72216
- '/unstable_locations/create': {
72217
- route: '/unstable_locations/create';
72218
- method: 'POST';
72219
- queryParams: {};
72220
- jsonBody: {
72221
- /** Name of the new location. */
72222
- name: string;
72223
- /** Geolocation of the new location. */
72224
- geolocation?: {
72225
- latitude: number;
72226
- longitude: number;
72227
- } | undefined;
72228
- /** Time zone of the new location. */
72229
- time_zone?: string | undefined;
72230
- /** IDs of the devices that you want to add to the new location. */
72231
- device_ids?: string[] | undefined;
72232
- /** IDs of the entrances that you want to add to the new location. */
72233
- acs_entrance_ids?: string[] | undefined;
72234
- };
72235
- commonParams: {};
72236
- formData: {};
72237
- jsonResponse: {
72238
- /** */
72239
- location: {
72240
- /** Unique identifier for the location. */
72241
- location_id: string;
72242
- /** Unique identifier for the Seam workspace associated with the location. */
72243
- workspace_id: string;
72244
- /** Name of the location. */
72245
- name: string;
72246
- /** Display name of the location. */
72247
- display_name: string;
72248
- /** Geographical location of the location. */
72249
- geolocation?: {
72250
- latitude: number;
72251
- longitude: number;
72252
- } | undefined;
72253
- /** Time zone of the location. */
72254
- time_zone?: string | undefined;
72255
- /** Date and time at which the location object was created. */
72256
- created_at: string;
72257
- };
72258
- };
72259
- };
72260
- '/unstable_locations/delete': {
72261
- route: '/unstable_locations/delete';
72262
- method: 'DELETE' | 'POST';
72263
- queryParams: {};
72264
- jsonBody: {
72265
- /** ID of the location that you want to delete. */
72266
- location_id: string;
72267
- };
72268
- commonParams: {};
72269
- formData: {};
72270
- jsonResponse: {};
72271
- };
72272
- '/unstable_locations/get': {
72273
- route: '/unstable_locations/get';
72274
- method: 'GET' | 'POST';
72275
- queryParams: {};
72276
- jsonBody: {};
72277
- commonParams: {
72278
- /** ID of the location that you want to get. */
72279
- location_id: string;
72280
- };
72281
- formData: {};
72282
- jsonResponse: {
72283
- /** */
72284
- location: {
72285
- /** Unique identifier for the location. */
72286
- location_id: string;
72287
- /** Unique identifier for the Seam workspace associated with the location. */
72288
- workspace_id: string;
72289
- /** Name of the location. */
72290
- name: string;
72291
- /** Display name of the location. */
72292
- display_name: string;
72293
- /** Geographical location of the location. */
72294
- geolocation?: {
72295
- latitude: number;
72296
- longitude: number;
72297
- } | undefined;
72298
- /** Time zone of the location. */
72299
- time_zone?: string | undefined;
72300
- /** Date and time at which the location object was created. */
72301
- created_at: string;
72302
- };
72303
- };
72304
- };
72305
- '/unstable_locations/list': {
72306
- route: '/unstable_locations/list';
72307
- method: 'GET' | 'POST';
72308
- queryParams: {};
72309
- jsonBody: {};
72310
- commonParams: {};
72311
- formData: {};
72312
- jsonResponse: {
72313
- locations: {
72314
- /** Unique identifier for the location. */
72315
- location_id: string;
72316
- /** Unique identifier for the Seam workspace associated with the location. */
72317
- workspace_id: string;
72318
- /** Name of the location. */
72319
- name: string;
72320
- /** Display name of the location. */
72321
- display_name: string;
72322
- /** Geographical location of the location. */
72323
- geolocation?: {
72324
- latitude: number;
72325
- longitude: number;
72326
- } | undefined;
72327
- /** Time zone of the location. */
72328
- time_zone?: string | undefined;
72329
- /** Date and time at which the location object was created. */
72330
- created_at: string;
72331
- }[];
72332
- };
72333
- };
72334
- '/unstable_locations/remove_acs_entrances': {
72335
- route: '/unstable_locations/remove_acs_entrances';
72336
- method: 'POST' | 'DELETE';
72337
- queryParams: {};
72338
- jsonBody: {};
72339
- commonParams: {
72340
- /** ID of the location from which you want to remove entrances. */
72341
- location_id: string;
72342
- /** IDs of the entrances that you want to remove from the location. */
72343
- acs_entrance_ids: string[];
72344
- };
72345
- formData: {};
72346
- jsonResponse: {};
72347
- };
72348
- '/unstable_locations/remove_devices': {
72349
- route: '/unstable_locations/remove_devices';
72350
- method: 'POST' | 'DELETE';
72351
- queryParams: {};
72352
- jsonBody: {};
72353
- commonParams: {
72354
- /** ID of the location from which you want to remove devices. */
72355
- location_id: string;
72356
- /** IDs of the devices that you want to remove from the location. */
72357
- device_ids: string[];
72358
- };
72359
- formData: {};
72360
- jsonResponse: {};
72361
- };
72362
- '/unstable_locations/update': {
72363
- route: '/unstable_locations/update';
72364
- method: 'POST' | 'PATCH';
72365
- queryParams: {};
72366
- jsonBody: {
72367
- /** ID of the location that you want to update. */
72368
- location_id: string;
72369
- /** Name of the location. */
72370
- name?: string | undefined;
72371
- /** Geolocation of the location. */
72372
- geolocation?: {
72373
- latitude: number;
72374
- longitude: number;
72375
- } | undefined;
72376
- /** Time zone of the the location. */
72377
- time_zone?: string | undefined;
72378
- };
72379
- commonParams: {};
72380
- formData: {};
72381
- jsonResponse: {
72382
- /** */
72383
- location: {
72384
- /** Unique identifier for the location. */
72385
- location_id: string;
72386
- /** Unique identifier for the Seam workspace associated with the location. */
72387
- workspace_id: string;
72388
- /** Name of the location. */
72389
- name: string;
72390
- /** Display name of the location. */
72391
- display_name: string;
72392
- /** Geographical location of the location. */
72393
- geolocation?: {
72394
- latitude: number;
72395
- longitude: number;
72396
- } | undefined;
72397
- /** Time zone of the location. */
72398
- time_zone?: string | undefined;
72399
- /** Date and time at which the location object was created. */
72400
- created_at: string;
72401
- };
72402
- };
72403
- };
72404
72212
  '/unstable_partner/building_blocks/connect_accounts': {
72405
72213
  route: '/unstable_partner/building_blocks/connect_accounts';
72406
72214
  method: 'POST';
@@ -79636,6 +79444,30 @@ export type Routes = {
79636
79444
  /** The customer key associated with this webview, if any. */
79637
79445
  customer_key?: string | undefined;
79638
79446
  }[] | undefined;
79447
+ access_methods?: {
79448
+ /** ID of the Seam workspace associated with the access method. */
79449
+ workspace_id: string;
79450
+ /** ID of the access method. */
79451
+ access_method_id: string;
79452
+ /** Display name of the access method. */
79453
+ display_name: string;
79454
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
79455
+ mode: 'code' | 'card' | 'mobile_key';
79456
+ /** Date and time at which the access method was created. */
79457
+ created_at: string;
79458
+ /** Date and time at which the access method was issued. */
79459
+ issued_at: string | null;
79460
+ /** Indicates whether the access method has been issued. */
79461
+ is_issued: boolean;
79462
+ /** URL of the Instant Key for mobile key access methods. */
79463
+ instant_key_url?: string | undefined;
79464
+ /** Token of the client session associated with the access method. */
79465
+ client_session_token?: string | undefined;
79466
+ /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
79467
+ is_encoding_required?: boolean | undefined;
79468
+ /** The actual PIN code for code access methods. */
79469
+ code?: string | undefined;
79470
+ }[] | undefined;
79639
79471
  };
79640
79472
  };
79641
79473
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.472.0",
3
+ "version": "1.474.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -49,11 +49,9 @@ export {
49
49
  seam_event_type as event_type,
50
50
  facility_resource,
51
51
  fan_mode_setting,
52
- geolocation,
53
52
  guest_resource,
54
53
  instant_key,
55
54
  listing_resource,
56
- location,
57
55
  lock_device_type,
58
56
  magic_link,
59
57
  access_code as managed_access_code,
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { access_method } from './access-grants/access-method.js'
3
4
  import {
4
5
  acs_access_group,
5
6
  unmanaged_acs_access_group,
@@ -63,6 +64,7 @@ export const workspaces_batch = z
63
64
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
64
65
  unmanaged_devices: unmanaged_device.array().optional(),
65
66
  connect_webviews: connect_webview.array().optional(),
67
+ access_methods: access_method.array().optional(),
66
68
  })
67
69
  .describe('A batch of workspace resources.')
68
70
 
@@ -89,6 +91,7 @@ export const batch = z
89
91
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
90
92
  unmanaged_devices: unmanaged_device.array().optional(),
91
93
  connect_webviews: connect_webview.array().optional(),
94
+ access_methods: access_method.array().optional(),
92
95
  })
93
96
  .describe('A batch of workspace resources.')
94
97
 
@@ -16,7 +16,6 @@ export * from './customer/user-identity-resources.js'
16
16
  export * from './devices/index.js'
17
17
  export * from './events/index.js'
18
18
  export * from './instant-keys/index.js'
19
- export * from './locations/index.js'
20
19
  export * from './noise-sensors/index.js'
21
20
  export * from './pagination.js'
22
21
  export * from './partner/index.js'