@seamapi/types 1.379.0 → 1.380.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 (31) hide show
  1. package/dist/connect.cjs +404 -34
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +533 -51
  4. package/lib/seam/connect/models/access-grants/access-grant.d.ts +8 -13
  5. package/lib/seam/connect/models/access-grants/access-grant.js +4 -4
  6. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  7. package/lib/seam/connect/models/access-grants/access-method.d.ts +6 -3
  8. package/lib/seam/connect/models/access-grants/access-method.js +4 -2
  9. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  10. package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +18 -0
  11. package/lib/seam/connect/models/access-grants/requested-access-method.js +19 -0
  12. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -0
  13. package/lib/seam/connect/models/devices/device-metadata.d.ts +0 -5
  14. package/lib/seam/connect/models/devices/device-metadata.js +0 -1
  15. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  16. package/lib/seam/connect/models/devices/device.d.ts +0 -7
  17. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +0 -5
  18. package/lib/seam/connect/models/events/acs/credentials.js +2 -1
  19. package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
  20. package/lib/seam/connect/openapi.d.ts +415 -16
  21. package/lib/seam/connect/openapi.js +401 -31
  22. package/lib/seam/connect/openapi.js.map +1 -1
  23. package/lib/seam/connect/route-types.d.ts +118 -23
  24. package/package.json +1 -1
  25. package/src/lib/seam/connect/models/access-grants/access-grant.ts +4 -4
  26. package/src/lib/seam/connect/models/access-grants/access-method.ts +6 -2
  27. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +25 -0
  28. package/src/lib/seam/connect/models/devices/device-metadata.ts +0 -1
  29. package/src/lib/seam/connect/models/events/acs/credentials.ts +2 -1
  30. package/src/lib/seam/connect/openapi.ts +429 -33
  31. package/src/lib/seam/connect/route-types.ts +123 -30
@@ -19295,7 +19295,6 @@ export interface Routes {
19295
19295
  | {
19296
19296
  device_id: string
19297
19297
  device_name: string
19298
- access_code_length: number | null
19299
19298
  model?: string | undefined
19300
19299
  }
19301
19300
  | undefined
@@ -20410,7 +20409,6 @@ export interface Routes {
20410
20409
  | {
20411
20410
  device_id: string
20412
20411
  device_name: string
20413
- access_code_length: number | null
20414
20412
  model?: string | undefined
20415
20413
  }
20416
20414
  | undefined
@@ -25314,7 +25312,6 @@ export interface Routes {
25314
25312
  | {
25315
25313
  device_id: string
25316
25314
  device_name: string
25317
- access_code_length: number | null
25318
25315
  model?: string | undefined
25319
25316
  }
25320
25317
  | undefined
@@ -26241,7 +26238,6 @@ export interface Routes {
26241
26238
  | {
26242
26239
  device_id: string
26243
26240
  device_name: string
26244
- access_code_length: number | null
26245
26241
  model?: string | undefined
26246
26242
  }
26247
26243
  | undefined
@@ -27324,7 +27320,6 @@ export interface Routes {
27324
27320
  | {
27325
27321
  device_id: string
27326
27322
  device_name: string
27327
- access_code_length: number | null
27328
27323
  model?: string | undefined
27329
27324
  }
27330
27325
  | undefined
@@ -28250,7 +28245,6 @@ export interface Routes {
28250
28245
  | {
28251
28246
  device_id: string
28252
28247
  device_name: string
28253
- access_code_length: number | null
28254
28248
  model?: string | undefined
28255
28249
  }
28256
28250
  | undefined
@@ -31542,7 +31536,6 @@ export interface Routes {
31542
31536
  | {
31543
31537
  device_id: string
31544
31538
  device_name: string
31545
- access_code_length: number | null
31546
31539
  model?: string | undefined
31547
31540
  }
31548
31541
  | undefined
@@ -32468,7 +32461,6 @@ export interface Routes {
32468
32461
  | {
32469
32462
  device_id: string
32470
32463
  device_name: string
32471
- access_code_length: number | null
32472
32464
  model?: string | undefined
32473
32465
  }
32474
32466
  | undefined
@@ -39593,7 +39585,6 @@ export interface Routes {
39593
39585
  | {
39594
39586
  device_id: string
39595
39587
  device_name: string
39596
- access_code_length: number | null
39597
39588
  model?: string | undefined
39598
39589
  }
39599
39590
  | undefined
@@ -42882,7 +42873,6 @@ export interface Routes {
42882
42873
  | {
42883
42874
  device_id: string
42884
42875
  device_name: string
42885
- access_code_length: number | null
42886
42876
  model?: string | undefined
42887
42877
  }
42888
42878
  | undefined
@@ -43808,7 +43798,6 @@ export interface Routes {
43808
43798
  | {
43809
43799
  device_id: string
43810
43800
  device_name: string
43811
- access_code_length: number | null
43812
43801
  model?: string | undefined
43813
43802
  }
43814
43803
  | undefined
@@ -48295,19 +48284,17 @@ export interface Routes {
48295
48284
  commonParams: (
48296
48285
  | {
48297
48286
  /** ID of user identity for whom access is being granted. */
48298
- user_identity_id?: string | undefined
48287
+ user_identity_id: string
48299
48288
  }
48300
48289
  | {
48301
48290
  /** When used, creates a new user identity with the given details, and grants them access. */
48302
- user_identity?:
48303
- | {
48304
- /** Unique email address for the user identity. */
48305
- email_address?: (string | null) | undefined
48306
- /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
48307
- phone_number?: (string | null) | undefined
48308
- full_name?: (string | null) | undefined
48309
- }
48310
- | undefined
48291
+ user_identity: {
48292
+ /** Unique email address for the user identity. */
48293
+ email_address?: (string | null) | undefined
48294
+ /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
48295
+ phone_number?: (string | null) | undefined
48296
+ full_name?: (string | null) | undefined
48297
+ }
48311
48298
  }
48312
48299
  ) & {
48313
48300
  /** Set of IDs of existing locations to which access is being granted. */
@@ -48342,18 +48329,16 @@ export interface Routes {
48342
48329
  user_identity_id: string
48343
48330
  /** IDs of the locations to which access is being given. */
48344
48331
  location_ids: string[]
48345
- /** Access methods associated with this access grant. */
48346
- access_methods: Array<{
48347
- /** Key for the access method - unique within an access grant. */
48348
- access_method_key: string
48332
+ /** Access methods that the user requested for this access grant. */
48333
+ requested_access_methods: Array<{
48349
48334
  /** Display name of the access method. */
48350
48335
  display_name: string
48351
48336
  /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
48352
48337
  mode: 'code' | 'card' | 'mobile_key'
48353
- /** Date and time at which the access method was created. */
48338
+ /** Date and time at which the requested access method was added to this access grant. */
48354
48339
  created_at: string
48355
- /** Date and time at which the access method was issued. */
48356
- issued_at: string | null
48340
+ /** IDs of the locations to which access is being given. */
48341
+ provisioned_access_method_ids: string[]
48357
48342
  }>
48358
48343
  /** Display name of the access grant. */
48359
48344
  display_name: string
@@ -48362,6 +48347,116 @@ export interface Routes {
48362
48347
  }
48363
48348
  }
48364
48349
  }
48350
+ '/unstable_access_grants/get': {
48351
+ route: '/unstable_access_grants/get'
48352
+ method: 'GET' | 'POST'
48353
+ queryParams: {}
48354
+ jsonBody: {}
48355
+ commonParams: {
48356
+ /** ID of access grant to get. */
48357
+ access_grant_id: string
48358
+ }
48359
+ formData: {}
48360
+ jsonResponse: {
48361
+ /** */
48362
+ access_grant: {
48363
+ /** Unique identifier for the Seam workspace associated with the access grant. */
48364
+ workspace_id: string
48365
+ /** ID of the access grant. */
48366
+ access_grant_id: string
48367
+ /** ID of user identity to which access is being granted. */
48368
+ user_identity_id: string
48369
+ /** IDs of the locations to which access is being given. */
48370
+ location_ids: string[]
48371
+ /** Access methods that the user requested for this access grant. */
48372
+ requested_access_methods: Array<{
48373
+ /** Display name of the access method. */
48374
+ display_name: string
48375
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
48376
+ mode: 'code' | 'card' | 'mobile_key'
48377
+ /** Date and time at which the requested access method was added to this access grant. */
48378
+ created_at: string
48379
+ /** IDs of the locations to which access is being given. */
48380
+ provisioned_access_method_ids: string[]
48381
+ }>
48382
+ /** Display name of the access grant. */
48383
+ display_name: string
48384
+ /** Date and time at which the access grant was created. */
48385
+ created_at: string
48386
+ }
48387
+ }
48388
+ }
48389
+ '/unstable_access_grants/list': {
48390
+ route: '/unstable_access_grants/list'
48391
+ method: 'GET' | 'POST'
48392
+ queryParams: {}
48393
+ jsonBody: {}
48394
+ commonParams: {
48395
+ /** ID of user identity to filter list of access grants by. */
48396
+ user_identity_id?: string | undefined
48397
+ /** ID of system to filter list of access grants by. */
48398
+ acs_system_id?: string | undefined
48399
+ /** ID of entrance to filter list of access grants by. */
48400
+ acs_entrance_id?: string | undefined
48401
+ /** ID of location to filter list of access grants by. */
48402
+ location_id?: string | undefined
48403
+ }
48404
+ formData: {}
48405
+ jsonResponse: {
48406
+ access_grants: Array<{
48407
+ /** Unique identifier for the Seam workspace associated with the access grant. */
48408
+ workspace_id: string
48409
+ /** ID of the access grant. */
48410
+ access_grant_id: string
48411
+ /** ID of user identity to which access is being granted. */
48412
+ user_identity_id: string
48413
+ /** IDs of the locations to which access is being given. */
48414
+ location_ids: string[]
48415
+ /** Access methods that the user requested for this access grant. */
48416
+ requested_access_methods: Array<{
48417
+ /** Display name of the access method. */
48418
+ display_name: string
48419
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
48420
+ mode: 'code' | 'card' | 'mobile_key'
48421
+ /** Date and time at which the requested access method was added to this access grant. */
48422
+ created_at: string
48423
+ /** IDs of the locations to which access is being given. */
48424
+ provisioned_access_method_ids: string[]
48425
+ }>
48426
+ /** Display name of the access grant. */
48427
+ display_name: string
48428
+ /** Date and time at which the access grant was created. */
48429
+ created_at: string
48430
+ }>
48431
+ }
48432
+ }
48433
+ '/unstable_access_grants/list_access_methods': {
48434
+ route: '/unstable_access_grants/list_access_methods'
48435
+ method: 'GET' | 'POST'
48436
+ queryParams: {}
48437
+ jsonBody: {}
48438
+ commonParams: {
48439
+ /** ID of access grant to list access methods for. */
48440
+ access_grant_id: string
48441
+ }
48442
+ formData: {}
48443
+ jsonResponse: {
48444
+ access_methods: Array<{
48445
+ /** Unique identifier for the Seam workspace associated with the access grant. */
48446
+ workspace_id: string
48447
+ /** ID of the access method. */
48448
+ access_method_id: string
48449
+ /** Display name of the access method. */
48450
+ display_name: string
48451
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
48452
+ mode: 'code' | 'card' | 'mobile_key'
48453
+ /** Date and time at which the access method was created. */
48454
+ created_at: string
48455
+ /** Date and time at which the access method was issued. */
48456
+ issued_at: string | null
48457
+ }>
48458
+ }
48459
+ }
48365
48460
  '/unstable_locations/add_devices': {
48366
48461
  route: '/unstable_locations/add_devices'
48367
48462
  method: 'POST' | 'PUT'
@@ -48968,7 +49063,6 @@ export interface Routes {
48968
49063
  | {
48969
49064
  device_id: string
48970
49065
  device_name: string
48971
- access_code_length: number | null
48972
49066
  model?: string | undefined
48973
49067
  }
48974
49068
  | undefined
@@ -49896,7 +49990,6 @@ export interface Routes {
49896
49990
  | {
49897
49991
  device_id: string
49898
49992
  device_name: string
49899
- access_code_length: number | null
49900
49993
  model?: string | undefined
49901
49994
  }
49902
49995
  | undefined