@seamapi/types 1.379.1 → 1.380.1

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 (34) hide show
  1. package/dist/connect.cjs +408 -36
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +573 -86
  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/capability-properties/index.d.ts +5 -5
  14. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +5 -5
  15. package/lib/seam/connect/models/devices/device-metadata.d.ts +0 -5
  16. package/lib/seam/connect/models/devices/device-metadata.js +0 -1
  17. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  18. package/lib/seam/connect/models/devices/device.d.ts +7 -14
  19. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -10
  20. package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +3 -3
  21. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +2 -0
  22. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  23. package/lib/seam/connect/openapi.d.ts +421 -17
  24. package/lib/seam/connect/openapi.js +406 -33
  25. package/lib/seam/connect/openapi.js.map +1 -1
  26. package/lib/seam/connect/route-types.d.ts +137 -42
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/models/access-grants/access-grant.ts +4 -4
  29. package/src/lib/seam/connect/models/access-grants/access-method.ts +6 -2
  30. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +25 -0
  31. package/src/lib/seam/connect/models/devices/device-metadata.ts +0 -1
  32. package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +2 -0
  33. package/src/lib/seam/connect/openapi.ts +434 -35
  34. package/src/lib/seam/connect/route-types.ts +142 -49
@@ -7936,20 +7936,11 @@ export default {
7936
7936
  },
7937
7937
  schlage_metadata: {
7938
7938
  properties: {
7939
- access_code_length: {
7940
- format: 'float',
7941
- nullable: true,
7942
- type: 'number',
7943
- },
7944
7939
  device_id: { type: 'string' },
7945
7940
  device_name: { type: 'string' },
7946
7941
  model: { type: 'string' },
7947
7942
  },
7948
- required: [
7949
- 'device_id',
7950
- 'device_name',
7951
- 'access_code_length',
7952
- ],
7943
+ required: ['device_id', 'device_name'],
7953
7944
  type: 'object',
7954
7945
  },
7955
7946
  seam_bridge_metadata: {
@@ -8230,6 +8221,7 @@ export default {
8230
8221
  description:
8231
8222
  "Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
8232
8223
  minimum: 0,
8224
+ nullable: true,
8233
8225
  type: 'integer',
8234
8226
  },
8235
8227
  name: {
@@ -8260,7 +8252,6 @@ export default {
8260
8252
  'thermostat_schedule_id',
8261
8253
  'device_id',
8262
8254
  'climate_preset_key',
8263
- 'max_override_period_minutes',
8264
8255
  'starts_at',
8265
8256
  'ends_at',
8266
8257
  'created_at',
@@ -13856,6 +13847,7 @@ export default {
13856
13847
  description:
13857
13848
  "Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
13858
13849
  minimum: 0,
13850
+ nullable: true,
13859
13851
  type: 'integer',
13860
13852
  },
13861
13853
  name: {
@@ -13886,7 +13878,6 @@ export default {
13886
13878
  'thermostat_schedule_id',
13887
13879
  'device_id',
13888
13880
  'climate_preset_key',
13889
- 'max_override_period_minutes',
13890
13881
  'starts_at',
13891
13882
  'ends_at',
13892
13883
  'created_at',
@@ -28777,10 +28768,11 @@ export default {
28777
28768
  type: 'boolean',
28778
28769
  },
28779
28770
  max_override_period_minutes: {
28780
- default: 0,
28771
+ default: null,
28781
28772
  description:
28782
28773
  "Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
28783
28774
  minimum: 0,
28775
+ nullable: true,
28784
28776
  type: 'integer',
28785
28777
  },
28786
28778
  name: {
@@ -29046,6 +29038,7 @@ export default {
29046
29038
  description:
29047
29039
  "Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
29048
29040
  minimum: 0,
29041
+ nullable: true,
29049
29042
  type: 'integer',
29050
29043
  },
29051
29044
  name: {
@@ -29126,6 +29119,7 @@ export default {
29126
29119
  description:
29127
29120
  "Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
29128
29121
  minimum: 0,
29122
+ nullable: true,
29129
29123
  type: 'integer',
29130
29124
  },
29131
29125
  name: {
@@ -30088,6 +30082,7 @@ export default {
30088
30082
  type: 'string',
30089
30083
  },
30090
30084
  },
30085
+ required: ['user_identity_id'],
30091
30086
  type: 'object',
30092
30087
  },
30093
30088
  {
@@ -30116,9 +30111,9 @@ export default {
30116
30111
  },
30117
30112
  },
30118
30113
  type: 'object',
30119
- 'x-route-path': '/user_identities',
30120
30114
  },
30121
30115
  },
30116
+ required: ['user_identity'],
30122
30117
  type: 'object',
30123
30118
  },
30124
30119
  ],
@@ -30201,19 +30196,30 @@ export default {
30201
30196
  format: 'uuid',
30202
30197
  type: 'string',
30203
30198
  },
30204
- access_methods: {
30199
+ created_at: {
30200
+ description:
30201
+ 'Date and time at which the access grant was created.',
30202
+ format: 'date-time',
30203
+ type: 'string',
30204
+ },
30205
+ display_name: {
30206
+ description: 'Display name of the access grant.',
30207
+ type: 'string',
30208
+ },
30209
+ location_ids: {
30210
+ description:
30211
+ 'IDs of the locations to which access is being given.',
30212
+ items: { format: 'uuid', type: 'string' },
30213
+ type: 'array',
30214
+ },
30215
+ requested_access_methods: {
30205
30216
  description:
30206
- 'Access methods associated with this access grant.',
30217
+ 'Access methods that the user requested for this access grant.',
30207
30218
  items: {
30208
30219
  properties: {
30209
- access_method_key: {
30210
- description:
30211
- 'Key for the access method - unique within an access grant.',
30212
- type: 'string',
30213
- },
30214
30220
  created_at: {
30215
30221
  description:
30216
- 'Date and time at which the access method was created.',
30222
+ 'Date and time at which the requested access method was added to this access grant.',
30217
30223
  format: 'date-time',
30218
30224
  type: 'string',
30219
30225
  },
@@ -30222,32 +30228,116 @@ export default {
30222
30228
  'Display name of the access method.',
30223
30229
  type: 'string',
30224
30230
  },
30225
- issued_at: {
30226
- description:
30227
- 'Date and time at which the access method was issued.',
30228
- format: 'date-time',
30229
- nullable: true,
30230
- type: 'string',
30231
- },
30232
30231
  mode: {
30233
30232
  description:
30234
30233
  'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
30235
30234
  enum: ['code', 'card', 'mobile_key'],
30236
30235
  type: 'string',
30237
30236
  },
30237
+ provisioned_access_method_ids: {
30238
+ description:
30239
+ 'IDs of the locations to which access is being given.',
30240
+ items: { format: 'uuid', type: 'string' },
30241
+ type: 'array',
30242
+ },
30238
30243
  },
30239
30244
  required: [
30240
- 'access_method_key',
30241
30245
  'display_name',
30242
30246
  'mode',
30243
30247
  'created_at',
30244
- 'issued_at',
30248
+ 'provisioned_access_method_ids',
30245
30249
  ],
30246
30250
  type: 'object',
30247
30251
  'x-undocumented': 'Unreleased.',
30248
30252
  },
30249
30253
  type: 'array',
30250
30254
  },
30255
+ user_identity_id: {
30256
+ description:
30257
+ 'ID of user identity to which access is being granted.',
30258
+ format: 'uuid',
30259
+ type: 'string',
30260
+ },
30261
+ workspace_id: {
30262
+ description:
30263
+ 'Unique identifier for the Seam workspace associated with the access grant.',
30264
+ format: 'uuid',
30265
+ type: 'string',
30266
+ },
30267
+ },
30268
+ required: [
30269
+ 'workspace_id',
30270
+ 'access_grant_id',
30271
+ 'user_identity_id',
30272
+ 'location_ids',
30273
+ 'requested_access_methods',
30274
+ 'display_name',
30275
+ 'created_at',
30276
+ ],
30277
+ type: 'object',
30278
+ 'x-undocumented': 'Unreleased.',
30279
+ },
30280
+ ok: { type: 'boolean' },
30281
+ },
30282
+ required: ['access_grant', 'ok'],
30283
+ type: 'object',
30284
+ },
30285
+ },
30286
+ },
30287
+ description: 'OK',
30288
+ },
30289
+ 400: { description: 'Bad Request' },
30290
+ 401: { description: 'Unauthorized' },
30291
+ },
30292
+ security: [
30293
+ { pat_with_workspace: [] },
30294
+ { console_session_with_workspace: [] },
30295
+ { api_key: [] },
30296
+ ],
30297
+ summary: '/unstable_access_grants/create',
30298
+ tags: [],
30299
+ 'x-fern-sdk-group-name': ['unstable_access_grants'],
30300
+ 'x-fern-sdk-method-name': 'create',
30301
+ 'x-fern-sdk-return-value': 'access_grant',
30302
+ 'x-response-key': 'access_grant',
30303
+ 'x-title': 'Create an Access Grant',
30304
+ 'x-undocumented': 'Unreleased.',
30305
+ },
30306
+ },
30307
+ '/unstable_access_grants/get': {
30308
+ post: {
30309
+ description: 'Get an access grant.',
30310
+ operationId: 'unstableAccessGrantsGetPost',
30311
+ requestBody: {
30312
+ content: {
30313
+ 'application/json': {
30314
+ schema: {
30315
+ properties: {
30316
+ access_grant_id: {
30317
+ description: 'ID of access grant to get.',
30318
+ format: 'uuid',
30319
+ type: 'string',
30320
+ },
30321
+ },
30322
+ required: ['access_grant_id'],
30323
+ type: 'object',
30324
+ },
30325
+ },
30326
+ },
30327
+ },
30328
+ responses: {
30329
+ 200: {
30330
+ content: {
30331
+ 'application/json': {
30332
+ schema: {
30333
+ properties: {
30334
+ access_grant: {
30335
+ properties: {
30336
+ access_grant_id: {
30337
+ description: 'ID of the access grant.',
30338
+ format: 'uuid',
30339
+ type: 'string',
30340
+ },
30251
30341
  created_at: {
30252
30342
  description:
30253
30343
  'Date and time at which the access grant was created.',
@@ -30264,6 +30354,46 @@ export default {
30264
30354
  items: { format: 'uuid', type: 'string' },
30265
30355
  type: 'array',
30266
30356
  },
30357
+ requested_access_methods: {
30358
+ description:
30359
+ 'Access methods that the user requested for this access grant.',
30360
+ items: {
30361
+ properties: {
30362
+ created_at: {
30363
+ description:
30364
+ 'Date and time at which the requested access method was added to this access grant.',
30365
+ format: 'date-time',
30366
+ type: 'string',
30367
+ },
30368
+ display_name: {
30369
+ description:
30370
+ 'Display name of the access method.',
30371
+ type: 'string',
30372
+ },
30373
+ mode: {
30374
+ description:
30375
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
30376
+ enum: ['code', 'card', 'mobile_key'],
30377
+ type: 'string',
30378
+ },
30379
+ provisioned_access_method_ids: {
30380
+ description:
30381
+ 'IDs of the locations to which access is being given.',
30382
+ items: { format: 'uuid', type: 'string' },
30383
+ type: 'array',
30384
+ },
30385
+ },
30386
+ required: [
30387
+ 'display_name',
30388
+ 'mode',
30389
+ 'created_at',
30390
+ 'provisioned_access_method_ids',
30391
+ ],
30392
+ type: 'object',
30393
+ 'x-undocumented': 'Unreleased.',
30394
+ },
30395
+ type: 'array',
30396
+ },
30267
30397
  user_identity_id: {
30268
30398
  description:
30269
30399
  'ID of user identity to which access is being granted.',
@@ -30282,7 +30412,7 @@ export default {
30282
30412
  'access_grant_id',
30283
30413
  'user_identity_id',
30284
30414
  'location_ids',
30285
- 'access_methods',
30415
+ 'requested_access_methods',
30286
30416
  'display_name',
30287
30417
  'created_at',
30288
30418
  ],
@@ -30306,13 +30436,282 @@ export default {
30306
30436
  { console_session_with_workspace: [] },
30307
30437
  { api_key: [] },
30308
30438
  ],
30309
- summary: '/unstable_access_grants/create',
30439
+ summary: '/unstable_access_grants/get',
30310
30440
  tags: [],
30311
30441
  'x-fern-sdk-group-name': ['unstable_access_grants'],
30312
- 'x-fern-sdk-method-name': 'create',
30442
+ 'x-fern-sdk-method-name': 'get',
30313
30443
  'x-fern-sdk-return-value': 'access_grant',
30314
30444
  'x-response-key': 'access_grant',
30315
- 'x-title': 'Create an Access Grant',
30445
+ 'x-title': 'Get an Access Grant',
30446
+ 'x-undocumented': 'Unreleased.',
30447
+ },
30448
+ },
30449
+ '/unstable_access_grants/list': {
30450
+ post: {
30451
+ description: 'Get an access grant.',
30452
+ operationId: 'unstableAccessGrantsListPost',
30453
+ requestBody: {
30454
+ content: {
30455
+ 'application/json': {
30456
+ schema: {
30457
+ properties: {
30458
+ acs_entrance_id: {
30459
+ description:
30460
+ 'ID of entrance to filter list of access grants by.',
30461
+ format: 'uuid',
30462
+ type: 'string',
30463
+ },
30464
+ acs_system_id: {
30465
+ description:
30466
+ 'ID of system to filter list of access grants by.',
30467
+ format: 'uuid',
30468
+ type: 'string',
30469
+ },
30470
+ location_id: {
30471
+ description:
30472
+ 'ID of location to filter list of access grants by.',
30473
+ format: 'uuid',
30474
+ type: 'string',
30475
+ },
30476
+ user_identity_id: {
30477
+ description:
30478
+ 'ID of user identity to filter list of access grants by.',
30479
+ format: 'uuid',
30480
+ type: 'string',
30481
+ },
30482
+ },
30483
+ type: 'object',
30484
+ },
30485
+ },
30486
+ },
30487
+ },
30488
+ responses: {
30489
+ 200: {
30490
+ content: {
30491
+ 'application/json': {
30492
+ schema: {
30493
+ properties: {
30494
+ access_grants: {
30495
+ items: {
30496
+ properties: {
30497
+ access_grant_id: {
30498
+ description: 'ID of the access grant.',
30499
+ format: 'uuid',
30500
+ type: 'string',
30501
+ },
30502
+ created_at: {
30503
+ description:
30504
+ 'Date and time at which the access grant was created.',
30505
+ format: 'date-time',
30506
+ type: 'string',
30507
+ },
30508
+ display_name: {
30509
+ description: 'Display name of the access grant.',
30510
+ type: 'string',
30511
+ },
30512
+ location_ids: {
30513
+ description:
30514
+ 'IDs of the locations to which access is being given.',
30515
+ items: { format: 'uuid', type: 'string' },
30516
+ type: 'array',
30517
+ },
30518
+ requested_access_methods: {
30519
+ description:
30520
+ 'Access methods that the user requested for this access grant.',
30521
+ items: {
30522
+ properties: {
30523
+ created_at: {
30524
+ description:
30525
+ 'Date and time at which the requested access method was added to this access grant.',
30526
+ format: 'date-time',
30527
+ type: 'string',
30528
+ },
30529
+ display_name: {
30530
+ description:
30531
+ 'Display name of the access method.',
30532
+ type: 'string',
30533
+ },
30534
+ mode: {
30535
+ description:
30536
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
30537
+ enum: ['code', 'card', 'mobile_key'],
30538
+ type: 'string',
30539
+ },
30540
+ provisioned_access_method_ids: {
30541
+ description:
30542
+ 'IDs of the locations to which access is being given.',
30543
+ items: { format: 'uuid', type: 'string' },
30544
+ type: 'array',
30545
+ },
30546
+ },
30547
+ required: [
30548
+ 'display_name',
30549
+ 'mode',
30550
+ 'created_at',
30551
+ 'provisioned_access_method_ids',
30552
+ ],
30553
+ type: 'object',
30554
+ 'x-undocumented': 'Unreleased.',
30555
+ },
30556
+ type: 'array',
30557
+ },
30558
+ user_identity_id: {
30559
+ description:
30560
+ 'ID of user identity to which access is being granted.',
30561
+ format: 'uuid',
30562
+ type: 'string',
30563
+ },
30564
+ workspace_id: {
30565
+ description:
30566
+ 'Unique identifier for the Seam workspace associated with the access grant.',
30567
+ format: 'uuid',
30568
+ type: 'string',
30569
+ },
30570
+ },
30571
+ required: [
30572
+ 'workspace_id',
30573
+ 'access_grant_id',
30574
+ 'user_identity_id',
30575
+ 'location_ids',
30576
+ 'requested_access_methods',
30577
+ 'display_name',
30578
+ 'created_at',
30579
+ ],
30580
+ type: 'object',
30581
+ 'x-undocumented': 'Unreleased.',
30582
+ },
30583
+ type: 'array',
30584
+ },
30585
+ ok: { type: 'boolean' },
30586
+ },
30587
+ required: ['access_grants', 'ok'],
30588
+ type: 'object',
30589
+ },
30590
+ },
30591
+ },
30592
+ description: 'OK',
30593
+ },
30594
+ 400: { description: 'Bad Request' },
30595
+ 401: { description: 'Unauthorized' },
30596
+ },
30597
+ security: [
30598
+ { pat_with_workspace: [] },
30599
+ { console_session_with_workspace: [] },
30600
+ { api_key: [] },
30601
+ ],
30602
+ summary: '/unstable_access_grants/list',
30603
+ tags: [],
30604
+ 'x-fern-sdk-group-name': ['unstable_access_grants'],
30605
+ 'x-fern-sdk-method-name': 'list',
30606
+ 'x-fern-sdk-return-value': 'access_grants',
30607
+ 'x-response-key': 'access_grants',
30608
+ 'x-title': 'List Access Grants',
30609
+ 'x-undocumented': 'Unreleased.',
30610
+ },
30611
+ },
30612
+ '/unstable_access_grants/list_access_methods': {
30613
+ post: {
30614
+ description: 'List all access methods for an access grant.',
30615
+ operationId: 'unstableAccessGrantsListAccessMethodsPost',
30616
+ requestBody: {
30617
+ content: {
30618
+ 'application/json': {
30619
+ schema: {
30620
+ properties: {
30621
+ access_grant_id: {
30622
+ description:
30623
+ 'ID of access grant to list access methods for.',
30624
+ format: 'uuid',
30625
+ type: 'string',
30626
+ },
30627
+ },
30628
+ required: ['access_grant_id'],
30629
+ type: 'object',
30630
+ },
30631
+ },
30632
+ },
30633
+ },
30634
+ responses: {
30635
+ 200: {
30636
+ content: {
30637
+ 'application/json': {
30638
+ schema: {
30639
+ properties: {
30640
+ access_methods: {
30641
+ items: {
30642
+ properties: {
30643
+ access_method_id: {
30644
+ description: 'ID of the access method.',
30645
+ format: 'uuid',
30646
+ type: 'string',
30647
+ },
30648
+ created_at: {
30649
+ description:
30650
+ 'Date and time at which the access method was created.',
30651
+ format: 'date-time',
30652
+ type: 'string',
30653
+ },
30654
+ display_name: {
30655
+ description: 'Display name of the access method.',
30656
+ type: 'string',
30657
+ },
30658
+ issued_at: {
30659
+ description:
30660
+ 'Date and time at which the access method was issued.',
30661
+ format: 'date-time',
30662
+ nullable: true,
30663
+ type: 'string',
30664
+ },
30665
+ mode: {
30666
+ description:
30667
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
30668
+ enum: ['code', 'card', 'mobile_key'],
30669
+ type: 'string',
30670
+ },
30671
+ workspace_id: {
30672
+ description:
30673
+ 'Unique identifier for the Seam workspace associated with the access grant.',
30674
+ format: 'uuid',
30675
+ type: 'string',
30676
+ },
30677
+ },
30678
+ required: [
30679
+ 'workspace_id',
30680
+ 'access_method_id',
30681
+ 'display_name',
30682
+ 'mode',
30683
+ 'created_at',
30684
+ 'issued_at',
30685
+ ],
30686
+ type: 'object',
30687
+ 'x-undocumented': 'Unreleased.',
30688
+ },
30689
+ type: 'array',
30690
+ },
30691
+ ok: { type: 'boolean' },
30692
+ },
30693
+ required: ['access_methods', 'ok'],
30694
+ type: 'object',
30695
+ },
30696
+ },
30697
+ },
30698
+ description: 'OK',
30699
+ },
30700
+ 400: { description: 'Bad Request' },
30701
+ 401: { description: 'Unauthorized' },
30702
+ },
30703
+ security: [
30704
+ { pat_with_workspace: [] },
30705
+ { console_session_with_workspace: [] },
30706
+ { api_key: [] },
30707
+ ],
30708
+ summary: '/unstable_access_grants/list_access_methods',
30709
+ tags: [],
30710
+ 'x-fern-sdk-group-name': ['unstable_access_grants'],
30711
+ 'x-fern-sdk-method-name': 'list_access_methods',
30712
+ 'x-fern-sdk-return-value': 'access_methods',
30713
+ 'x-response-key': 'access_methods',
30714
+ 'x-title': 'Get the Access Methods for an Access Grant',
30316
30715
  'x-undocumented': 'Unreleased.',
30317
30716
  },
30318
30717
  },