@seamapi/types 1.411.0 → 1.411.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.
@@ -1561,6 +1561,160 @@ export default {
1561
1561
  type: 'object',
1562
1562
  'x-route-path': '/access_codes',
1563
1563
  },
1564
+ access_grant: {
1565
+ properties: {
1566
+ access_grant_id: {
1567
+ description: 'ID of the access grant.',
1568
+ format: 'uuid',
1569
+ type: 'string',
1570
+ },
1571
+ access_method_ids: {
1572
+ description:
1573
+ 'IDs of the access methods that were created for this access grant.',
1574
+ items: { format: 'uuid', type: 'string' },
1575
+ type: 'array',
1576
+ },
1577
+ created_at: {
1578
+ description: 'Date and time at which the access grant was created.',
1579
+ format: 'date-time',
1580
+ type: 'string',
1581
+ },
1582
+ display_name: {
1583
+ description: 'Display name of the access grant.',
1584
+ type: 'string',
1585
+ },
1586
+ location_ids: {
1587
+ deprecated: true,
1588
+ items: { format: 'uuid', type: 'string' },
1589
+ type: 'array',
1590
+ 'x-deprecated': 'Use `space_ids`.',
1591
+ },
1592
+ requested_access_methods: {
1593
+ description:
1594
+ 'Access methods that the user requested for this access grant.',
1595
+ items: {
1596
+ properties: {
1597
+ created_access_method_ids: {
1598
+ description:
1599
+ 'IDs of the access methods that were created for this requested access method.',
1600
+ items: { format: 'uuid', type: 'string' },
1601
+ type: 'array',
1602
+ },
1603
+ created_at: {
1604
+ description:
1605
+ 'Date and time at which the requested access method was added to this access grant.',
1606
+ format: 'date-time',
1607
+ type: 'string',
1608
+ },
1609
+ display_name: {
1610
+ description: 'Display name of the access method.',
1611
+ type: 'string',
1612
+ },
1613
+ mode: {
1614
+ description:
1615
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
1616
+ enum: ['code', 'card', 'mobile_key'],
1617
+ type: 'string',
1618
+ },
1619
+ },
1620
+ required: [
1621
+ 'display_name',
1622
+ 'mode',
1623
+ 'created_at',
1624
+ 'created_access_method_ids',
1625
+ ],
1626
+ type: 'object',
1627
+ },
1628
+ type: 'array',
1629
+ },
1630
+ space_ids: {
1631
+ description: 'IDs of the spaces to which access is being given.',
1632
+ items: { format: 'uuid', type: 'string' },
1633
+ type: 'array',
1634
+ },
1635
+ user_identity_id: {
1636
+ description:
1637
+ 'ID of user identity to which access is being granted.',
1638
+ format: 'uuid',
1639
+ type: 'string',
1640
+ },
1641
+ workspace_id: {
1642
+ description:
1643
+ 'Unique identifier for the Seam workspace associated with the access grant.',
1644
+ format: 'uuid',
1645
+ type: 'string',
1646
+ },
1647
+ },
1648
+ required: [
1649
+ 'workspace_id',
1650
+ 'access_grant_id',
1651
+ 'user_identity_id',
1652
+ 'location_ids',
1653
+ 'space_ids',
1654
+ 'requested_access_methods',
1655
+ 'access_method_ids',
1656
+ 'display_name',
1657
+ 'created_at',
1658
+ ],
1659
+ type: 'object',
1660
+ 'x-draft': 'Early access.',
1661
+ 'x-route-path': '/access_grants',
1662
+ },
1663
+ access_method: {
1664
+ properties: {
1665
+ access_method_id: {
1666
+ description: 'ID of the access method.',
1667
+ format: 'uuid',
1668
+ type: 'string',
1669
+ },
1670
+ created_at: {
1671
+ description:
1672
+ 'Date and time at which the access method was created.',
1673
+ format: 'date-time',
1674
+ type: 'string',
1675
+ },
1676
+ display_name: {
1677
+ description: 'Display name of the access method.',
1678
+ type: 'string',
1679
+ },
1680
+ instant_key_url: {
1681
+ description: 'URL of instant key for mobile key access methods.',
1682
+ type: 'string',
1683
+ },
1684
+ is_card_encoding_required: {
1685
+ description:
1686
+ 'Whether card encoding is required for plastic card access methods.',
1687
+ type: 'boolean',
1688
+ },
1689
+ issued_at: {
1690
+ description: 'Date and time at which the access method was issued.',
1691
+ format: 'date-time',
1692
+ type: 'string',
1693
+ },
1694
+ mode: {
1695
+ description:
1696
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
1697
+ enum: ['code', 'card', 'mobile_key'],
1698
+ type: 'string',
1699
+ },
1700
+ workspace_id: {
1701
+ description:
1702
+ 'Unique identifier for the Seam workspace associated with the access grant.',
1703
+ format: 'uuid',
1704
+ type: 'string',
1705
+ },
1706
+ },
1707
+ required: [
1708
+ 'workspace_id',
1709
+ 'access_method_id',
1710
+ 'display_name',
1711
+ 'mode',
1712
+ 'created_at',
1713
+ ],
1714
+ type: 'object',
1715
+ 'x-draft': 'Early access.',
1716
+ 'x-route-path': '/access_methods',
1717
+ },
1564
1718
  acs_access_group: {
1565
1719
  description:
1566
1720
  'Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.\n\nSome access control systems use [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups), which are sets of users, combined with sets of permissions. These permissions include both the set of areas or assets that the users can access and the schedule during which the users can access these areas or assets. Instead of assigning access rights individually to each access control system user, which can be time-consuming and error-prone, administrators can assign users to an access group, thereby ensuring that the users inherit all the permissions associated with the access group. Using access groups streamlines the process of managing large numbers of access control system users, especially in bigger organizations or complexes.\n\nTo learn whether your access control system supports access groups, see the corresponding [system integration guide](https://docs.seam.co/latest/device-and-system-integration-guides/overview#access-control-systems).',
@@ -22854,108 +23008,7 @@ export default {
22854
23008
  'application/json': {
22855
23009
  schema: {
22856
23010
  properties: {
22857
- access_grant: {
22858
- properties: {
22859
- access_grant_id: {
22860
- description: 'ID of the access grant.',
22861
- format: 'uuid',
22862
- type: 'string',
22863
- },
22864
- access_method_ids: {
22865
- description:
22866
- 'IDs of the access methods that were created for this access grant.',
22867
- items: { format: 'uuid', type: 'string' },
22868
- type: 'array',
22869
- },
22870
- created_at: {
22871
- description:
22872
- 'Date and time at which the access grant was created.',
22873
- format: 'date-time',
22874
- type: 'string',
22875
- },
22876
- display_name: {
22877
- description: 'Display name of the access grant.',
22878
- type: 'string',
22879
- },
22880
- location_ids: {
22881
- deprecated: true,
22882
- items: { format: 'uuid', type: 'string' },
22883
- type: 'array',
22884
- 'x-deprecated': 'Use `space_ids`.',
22885
- },
22886
- requested_access_methods: {
22887
- description:
22888
- 'Access methods that the user requested for this access grant.',
22889
- items: {
22890
- properties: {
22891
- created_access_method_ids: {
22892
- description:
22893
- 'IDs of the access methods that were created for this requested access method.',
22894
- items: { format: 'uuid', type: 'string' },
22895
- type: 'array',
22896
- },
22897
- created_at: {
22898
- description:
22899
- 'Date and time at which the requested access method was added to this access grant.',
22900
- format: 'date-time',
22901
- type: 'string',
22902
- },
22903
- display_name: {
22904
- description:
22905
- 'Display name of the access method.',
22906
- type: 'string',
22907
- },
22908
- mode: {
22909
- description:
22910
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
22911
- enum: ['code', 'card', 'mobile_key'],
22912
- type: 'string',
22913
- },
22914
- },
22915
- required: [
22916
- 'display_name',
22917
- 'mode',
22918
- 'created_at',
22919
- 'created_access_method_ids',
22920
- ],
22921
- type: 'object',
22922
- },
22923
- type: 'array',
22924
- },
22925
- space_ids: {
22926
- description:
22927
- 'IDs of the spaces to which access is being given.',
22928
- items: { format: 'uuid', type: 'string' },
22929
- type: 'array',
22930
- },
22931
- user_identity_id: {
22932
- description:
22933
- 'ID of user identity to which access is being granted.',
22934
- format: 'uuid',
22935
- type: 'string',
22936
- },
22937
- workspace_id: {
22938
- description:
22939
- 'Unique identifier for the Seam workspace associated with the access grant.',
22940
- format: 'uuid',
22941
- type: 'string',
22942
- },
22943
- },
22944
- required: [
22945
- 'workspace_id',
22946
- 'access_grant_id',
22947
- 'user_identity_id',
22948
- 'location_ids',
22949
- 'space_ids',
22950
- 'requested_access_methods',
22951
- 'access_method_ids',
22952
- 'display_name',
22953
- 'created_at',
22954
- ],
22955
- type: 'object',
22956
- 'x-draft': 'Early access.',
22957
- 'x-route-path': '/access_grants',
22958
- },
23011
+ access_grant: { $ref: '#/components/schemas/access_grant' },
22959
23012
  ok: { type: 'boolean' },
22960
23013
  },
22961
23014
  required: ['access_grant', 'ok'],
@@ -23063,108 +23116,7 @@ export default {
23063
23116
  'application/json': {
23064
23117
  schema: {
23065
23118
  properties: {
23066
- access_grant: {
23067
- properties: {
23068
- access_grant_id: {
23069
- description: 'ID of the access grant.',
23070
- format: 'uuid',
23071
- type: 'string',
23072
- },
23073
- access_method_ids: {
23074
- description:
23075
- 'IDs of the access methods that were created for this access grant.',
23076
- items: { format: 'uuid', type: 'string' },
23077
- type: 'array',
23078
- },
23079
- created_at: {
23080
- description:
23081
- 'Date and time at which the access grant was created.',
23082
- format: 'date-time',
23083
- type: 'string',
23084
- },
23085
- display_name: {
23086
- description: 'Display name of the access grant.',
23087
- type: 'string',
23088
- },
23089
- location_ids: {
23090
- deprecated: true,
23091
- items: { format: 'uuid', type: 'string' },
23092
- type: 'array',
23093
- 'x-deprecated': 'Use `space_ids`.',
23094
- },
23095
- requested_access_methods: {
23096
- description:
23097
- 'Access methods that the user requested for this access grant.',
23098
- items: {
23099
- properties: {
23100
- created_access_method_ids: {
23101
- description:
23102
- 'IDs of the access methods that were created for this requested access method.',
23103
- items: { format: 'uuid', type: 'string' },
23104
- type: 'array',
23105
- },
23106
- created_at: {
23107
- description:
23108
- 'Date and time at which the requested access method was added to this access grant.',
23109
- format: 'date-time',
23110
- type: 'string',
23111
- },
23112
- display_name: {
23113
- description:
23114
- 'Display name of the access method.',
23115
- type: 'string',
23116
- },
23117
- mode: {
23118
- description:
23119
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
23120
- enum: ['code', 'card', 'mobile_key'],
23121
- type: 'string',
23122
- },
23123
- },
23124
- required: [
23125
- 'display_name',
23126
- 'mode',
23127
- 'created_at',
23128
- 'created_access_method_ids',
23129
- ],
23130
- type: 'object',
23131
- },
23132
- type: 'array',
23133
- },
23134
- space_ids: {
23135
- description:
23136
- 'IDs of the spaces to which access is being given.',
23137
- items: { format: 'uuid', type: 'string' },
23138
- type: 'array',
23139
- },
23140
- user_identity_id: {
23141
- description:
23142
- 'ID of user identity to which access is being granted.',
23143
- format: 'uuid',
23144
- type: 'string',
23145
- },
23146
- workspace_id: {
23147
- description:
23148
- 'Unique identifier for the Seam workspace associated with the access grant.',
23149
- format: 'uuid',
23150
- type: 'string',
23151
- },
23152
- },
23153
- required: [
23154
- 'workspace_id',
23155
- 'access_grant_id',
23156
- 'user_identity_id',
23157
- 'location_ids',
23158
- 'space_ids',
23159
- 'requested_access_methods',
23160
- 'access_method_ids',
23161
- 'display_name',
23162
- 'created_at',
23163
- ],
23164
- type: 'object',
23165
- 'x-draft': 'Early access.',
23166
- 'x-route-path': '/access_grants',
23167
- },
23119
+ access_grant: { $ref: '#/components/schemas/access_grant' },
23168
23120
  ok: { type: 'boolean' },
23169
23121
  },
23170
23122
  required: ['access_grant', 'ok'],
@@ -23245,108 +23197,7 @@ export default {
23245
23197
  schema: {
23246
23198
  properties: {
23247
23199
  access_grants: {
23248
- items: {
23249
- properties: {
23250
- access_grant_id: {
23251
- description: 'ID of the access grant.',
23252
- format: 'uuid',
23253
- type: 'string',
23254
- },
23255
- access_method_ids: {
23256
- description:
23257
- 'IDs of the access methods that were created for this access grant.',
23258
- items: { format: 'uuid', type: 'string' },
23259
- type: 'array',
23260
- },
23261
- created_at: {
23262
- description:
23263
- 'Date and time at which the access grant was created.',
23264
- format: 'date-time',
23265
- type: 'string',
23266
- },
23267
- display_name: {
23268
- description: 'Display name of the access grant.',
23269
- type: 'string',
23270
- },
23271
- location_ids: {
23272
- deprecated: true,
23273
- items: { format: 'uuid', type: 'string' },
23274
- type: 'array',
23275
- 'x-deprecated': 'Use `space_ids`.',
23276
- },
23277
- requested_access_methods: {
23278
- description:
23279
- 'Access methods that the user requested for this access grant.',
23280
- items: {
23281
- properties: {
23282
- created_access_method_ids: {
23283
- description:
23284
- 'IDs of the access methods that were created for this requested access method.',
23285
- items: { format: 'uuid', type: 'string' },
23286
- type: 'array',
23287
- },
23288
- created_at: {
23289
- description:
23290
- 'Date and time at which the requested access method was added to this access grant.',
23291
- format: 'date-time',
23292
- type: 'string',
23293
- },
23294
- display_name: {
23295
- description:
23296
- 'Display name of the access method.',
23297
- type: 'string',
23298
- },
23299
- mode: {
23300
- description:
23301
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
23302
- enum: ['code', 'card', 'mobile_key'],
23303
- type: 'string',
23304
- },
23305
- },
23306
- required: [
23307
- 'display_name',
23308
- 'mode',
23309
- 'created_at',
23310
- 'created_access_method_ids',
23311
- ],
23312
- type: 'object',
23313
- },
23314
- type: 'array',
23315
- },
23316
- space_ids: {
23317
- description:
23318
- 'IDs of the spaces to which access is being given.',
23319
- items: { format: 'uuid', type: 'string' },
23320
- type: 'array',
23321
- },
23322
- user_identity_id: {
23323
- description:
23324
- 'ID of user identity to which access is being granted.',
23325
- format: 'uuid',
23326
- type: 'string',
23327
- },
23328
- workspace_id: {
23329
- description:
23330
- 'Unique identifier for the Seam workspace associated with the access grant.',
23331
- format: 'uuid',
23332
- type: 'string',
23333
- },
23334
- },
23335
- required: [
23336
- 'workspace_id',
23337
- 'access_grant_id',
23338
- 'user_identity_id',
23339
- 'location_ids',
23340
- 'space_ids',
23341
- 'requested_access_methods',
23342
- 'access_method_ids',
23343
- 'display_name',
23344
- 'created_at',
23345
- ],
23346
- type: 'object',
23347
- 'x-draft': 'Early access.',
23348
- 'x-route-path': '/access_grants',
23349
- },
23200
+ items: { $ref: '#/components/schemas/access_grant' },
23350
23201
  type: 'array',
23351
23202
  },
23352
23203
  ok: { type: 'boolean' },
@@ -23456,61 +23307,7 @@ export default {
23456
23307
  schema: {
23457
23308
  properties: {
23458
23309
  access_method: {
23459
- properties: {
23460
- access_method_id: {
23461
- description: 'ID of the access method.',
23462
- format: 'uuid',
23463
- type: 'string',
23464
- },
23465
- created_at: {
23466
- description:
23467
- 'Date and time at which the access method was created.',
23468
- format: 'date-time',
23469
- type: 'string',
23470
- },
23471
- display_name: {
23472
- description: 'Display name of the access method.',
23473
- type: 'string',
23474
- },
23475
- instant_key_url: {
23476
- description:
23477
- 'URL of instant key for mobile key access methods.',
23478
- type: 'string',
23479
- },
23480
- is_card_encoding_required: {
23481
- description:
23482
- 'Whether card encoding is required for plastic card access methods.',
23483
- type: 'boolean',
23484
- },
23485
- issued_at: {
23486
- description:
23487
- 'Date and time at which the access method was issued.',
23488
- format: 'date-time',
23489
- type: 'string',
23490
- },
23491
- mode: {
23492
- description:
23493
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
23494
- enum: ['code', 'card', 'mobile_key'],
23495
- type: 'string',
23496
- },
23497
- workspace_id: {
23498
- description:
23499
- 'Unique identifier for the Seam workspace associated with the access grant.',
23500
- format: 'uuid',
23501
- type: 'string',
23502
- },
23503
- },
23504
- required: [
23505
- 'workspace_id',
23506
- 'access_method_id',
23507
- 'display_name',
23508
- 'mode',
23509
- 'created_at',
23510
- ],
23511
- type: 'object',
23512
- 'x-draft': 'Early access.',
23513
- 'x-route-path': '/access_methods',
23310
+ $ref: '#/components/schemas/access_method',
23514
23311
  },
23515
23312
  ok: { type: 'boolean' },
23516
23313
  },
@@ -23569,63 +23366,7 @@ export default {
23569
23366
  schema: {
23570
23367
  properties: {
23571
23368
  access_methods: {
23572
- items: {
23573
- properties: {
23574
- access_method_id: {
23575
- description: 'ID of the access method.',
23576
- format: 'uuid',
23577
- type: 'string',
23578
- },
23579
- created_at: {
23580
- description:
23581
- 'Date and time at which the access method was created.',
23582
- format: 'date-time',
23583
- type: 'string',
23584
- },
23585
- display_name: {
23586
- description: 'Display name of the access method.',
23587
- type: 'string',
23588
- },
23589
- instant_key_url: {
23590
- description:
23591
- 'URL of instant key for mobile key access methods.',
23592
- type: 'string',
23593
- },
23594
- is_card_encoding_required: {
23595
- description:
23596
- 'Whether card encoding is required for plastic card access methods.',
23597
- type: 'boolean',
23598
- },
23599
- issued_at: {
23600
- description:
23601
- 'Date and time at which the access method was issued.',
23602
- format: 'date-time',
23603
- type: 'string',
23604
- },
23605
- mode: {
23606
- description:
23607
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
23608
- enum: ['code', 'card', 'mobile_key'],
23609
- type: 'string',
23610
- },
23611
- workspace_id: {
23612
- description:
23613
- 'Unique identifier for the Seam workspace associated with the access grant.',
23614
- format: 'uuid',
23615
- type: 'string',
23616
- },
23617
- },
23618
- required: [
23619
- 'workspace_id',
23620
- 'access_method_id',
23621
- 'display_name',
23622
- 'mode',
23623
- 'created_at',
23624
- ],
23625
- type: 'object',
23626
- 'x-draft': 'Early access.',
23627
- 'x-route-path': '/access_methods',
23628
- },
23369
+ items: { $ref: '#/components/schemas/access_method' },
23629
23370
  type: 'array',
23630
23371
  },
23631
23372
  ok: { type: 'boolean' },
@@ -37972,108 +37713,7 @@ export default {
37972
37713
  'application/json': {
37973
37714
  schema: {
37974
37715
  properties: {
37975
- access_grant: {
37976
- properties: {
37977
- access_grant_id: {
37978
- description: 'ID of the access grant.',
37979
- format: 'uuid',
37980
- type: 'string',
37981
- },
37982
- access_method_ids: {
37983
- description:
37984
- 'IDs of the access methods that were created for this access grant.',
37985
- items: { format: 'uuid', type: 'string' },
37986
- type: 'array',
37987
- },
37988
- created_at: {
37989
- description:
37990
- 'Date and time at which the access grant was created.',
37991
- format: 'date-time',
37992
- type: 'string',
37993
- },
37994
- display_name: {
37995
- description: 'Display name of the access grant.',
37996
- type: 'string',
37997
- },
37998
- location_ids: {
37999
- deprecated: true,
38000
- items: { format: 'uuid', type: 'string' },
38001
- type: 'array',
38002
- 'x-deprecated': 'Use `space_ids`.',
38003
- },
38004
- requested_access_methods: {
38005
- description:
38006
- 'Access methods that the user requested for this access grant.',
38007
- items: {
38008
- properties: {
38009
- created_access_method_ids: {
38010
- description:
38011
- 'IDs of the access methods that were created for this requested access method.',
38012
- items: { format: 'uuid', type: 'string' },
38013
- type: 'array',
38014
- },
38015
- created_at: {
38016
- description:
38017
- 'Date and time at which the requested access method was added to this access grant.',
38018
- format: 'date-time',
38019
- type: 'string',
38020
- },
38021
- display_name: {
38022
- description:
38023
- 'Display name of the access method.',
38024
- type: 'string',
38025
- },
38026
- mode: {
38027
- description:
38028
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
38029
- enum: ['code', 'card', 'mobile_key'],
38030
- type: 'string',
38031
- },
38032
- },
38033
- required: [
38034
- 'display_name',
38035
- 'mode',
38036
- 'created_at',
38037
- 'created_access_method_ids',
38038
- ],
38039
- type: 'object',
38040
- },
38041
- type: 'array',
38042
- },
38043
- space_ids: {
38044
- description:
38045
- 'IDs of the spaces to which access is being given.',
38046
- items: { format: 'uuid', type: 'string' },
38047
- type: 'array',
38048
- },
38049
- user_identity_id: {
38050
- description:
38051
- 'ID of user identity to which access is being granted.',
38052
- format: 'uuid',
38053
- type: 'string',
38054
- },
38055
- workspace_id: {
38056
- description:
38057
- 'Unique identifier for the Seam workspace associated with the access grant.',
38058
- format: 'uuid',
38059
- type: 'string',
38060
- },
38061
- },
38062
- required: [
38063
- 'workspace_id',
38064
- 'access_grant_id',
38065
- 'user_identity_id',
38066
- 'location_ids',
38067
- 'space_ids',
38068
- 'requested_access_methods',
38069
- 'access_method_ids',
38070
- 'display_name',
38071
- 'created_at',
38072
- ],
38073
- type: 'object',
38074
- 'x-draft': 'Early access.',
38075
- 'x-route-path': '/access_grants',
38076
- },
37716
+ access_grant: { $ref: '#/components/schemas/access_grant' },
38077
37717
  ok: { type: 'boolean' },
38078
37718
  },
38079
37719
  required: ['access_grant', 'ok'],
@@ -38181,108 +37821,7 @@ export default {
38181
37821
  'application/json': {
38182
37822
  schema: {
38183
37823
  properties: {
38184
- access_grant: {
38185
- properties: {
38186
- access_grant_id: {
38187
- description: 'ID of the access grant.',
38188
- format: 'uuid',
38189
- type: 'string',
38190
- },
38191
- access_method_ids: {
38192
- description:
38193
- 'IDs of the access methods that were created for this access grant.',
38194
- items: { format: 'uuid', type: 'string' },
38195
- type: 'array',
38196
- },
38197
- created_at: {
38198
- description:
38199
- 'Date and time at which the access grant was created.',
38200
- format: 'date-time',
38201
- type: 'string',
38202
- },
38203
- display_name: {
38204
- description: 'Display name of the access grant.',
38205
- type: 'string',
38206
- },
38207
- location_ids: {
38208
- deprecated: true,
38209
- items: { format: 'uuid', type: 'string' },
38210
- type: 'array',
38211
- 'x-deprecated': 'Use `space_ids`.',
38212
- },
38213
- requested_access_methods: {
38214
- description:
38215
- 'Access methods that the user requested for this access grant.',
38216
- items: {
38217
- properties: {
38218
- created_access_method_ids: {
38219
- description:
38220
- 'IDs of the access methods that were created for this requested access method.',
38221
- items: { format: 'uuid', type: 'string' },
38222
- type: 'array',
38223
- },
38224
- created_at: {
38225
- description:
38226
- 'Date and time at which the requested access method was added to this access grant.',
38227
- format: 'date-time',
38228
- type: 'string',
38229
- },
38230
- display_name: {
38231
- description:
38232
- 'Display name of the access method.',
38233
- type: 'string',
38234
- },
38235
- mode: {
38236
- description:
38237
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
38238
- enum: ['code', 'card', 'mobile_key'],
38239
- type: 'string',
38240
- },
38241
- },
38242
- required: [
38243
- 'display_name',
38244
- 'mode',
38245
- 'created_at',
38246
- 'created_access_method_ids',
38247
- ],
38248
- type: 'object',
38249
- },
38250
- type: 'array',
38251
- },
38252
- space_ids: {
38253
- description:
38254
- 'IDs of the spaces to which access is being given.',
38255
- items: { format: 'uuid', type: 'string' },
38256
- type: 'array',
38257
- },
38258
- user_identity_id: {
38259
- description:
38260
- 'ID of user identity to which access is being granted.',
38261
- format: 'uuid',
38262
- type: 'string',
38263
- },
38264
- workspace_id: {
38265
- description:
38266
- 'Unique identifier for the Seam workspace associated with the access grant.',
38267
- format: 'uuid',
38268
- type: 'string',
38269
- },
38270
- },
38271
- required: [
38272
- 'workspace_id',
38273
- 'access_grant_id',
38274
- 'user_identity_id',
38275
- 'location_ids',
38276
- 'space_ids',
38277
- 'requested_access_methods',
38278
- 'access_method_ids',
38279
- 'display_name',
38280
- 'created_at',
38281
- ],
38282
- type: 'object',
38283
- 'x-draft': 'Early access.',
38284
- 'x-route-path': '/access_grants',
38285
- },
37824
+ access_grant: { $ref: '#/components/schemas/access_grant' },
38286
37825
  ok: { type: 'boolean' },
38287
37826
  },
38288
37827
  required: ['access_grant', 'ok'],
@@ -38363,108 +37902,7 @@ export default {
38363
37902
  schema: {
38364
37903
  properties: {
38365
37904
  access_grants: {
38366
- items: {
38367
- properties: {
38368
- access_grant_id: {
38369
- description: 'ID of the access grant.',
38370
- format: 'uuid',
38371
- type: 'string',
38372
- },
38373
- access_method_ids: {
38374
- description:
38375
- 'IDs of the access methods that were created for this access grant.',
38376
- items: { format: 'uuid', type: 'string' },
38377
- type: 'array',
38378
- },
38379
- created_at: {
38380
- description:
38381
- 'Date and time at which the access grant was created.',
38382
- format: 'date-time',
38383
- type: 'string',
38384
- },
38385
- display_name: {
38386
- description: 'Display name of the access grant.',
38387
- type: 'string',
38388
- },
38389
- location_ids: {
38390
- deprecated: true,
38391
- items: { format: 'uuid', type: 'string' },
38392
- type: 'array',
38393
- 'x-deprecated': 'Use `space_ids`.',
38394
- },
38395
- requested_access_methods: {
38396
- description:
38397
- 'Access methods that the user requested for this access grant.',
38398
- items: {
38399
- properties: {
38400
- created_access_method_ids: {
38401
- description:
38402
- 'IDs of the access methods that were created for this requested access method.',
38403
- items: { format: 'uuid', type: 'string' },
38404
- type: 'array',
38405
- },
38406
- created_at: {
38407
- description:
38408
- 'Date and time at which the requested access method was added to this access grant.',
38409
- format: 'date-time',
38410
- type: 'string',
38411
- },
38412
- display_name: {
38413
- description:
38414
- 'Display name of the access method.',
38415
- type: 'string',
38416
- },
38417
- mode: {
38418
- description:
38419
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
38420
- enum: ['code', 'card', 'mobile_key'],
38421
- type: 'string',
38422
- },
38423
- },
38424
- required: [
38425
- 'display_name',
38426
- 'mode',
38427
- 'created_at',
38428
- 'created_access_method_ids',
38429
- ],
38430
- type: 'object',
38431
- },
38432
- type: 'array',
38433
- },
38434
- space_ids: {
38435
- description:
38436
- 'IDs of the spaces to which access is being given.',
38437
- items: { format: 'uuid', type: 'string' },
38438
- type: 'array',
38439
- },
38440
- user_identity_id: {
38441
- description:
38442
- 'ID of user identity to which access is being granted.',
38443
- format: 'uuid',
38444
- type: 'string',
38445
- },
38446
- workspace_id: {
38447
- description:
38448
- 'Unique identifier for the Seam workspace associated with the access grant.',
38449
- format: 'uuid',
38450
- type: 'string',
38451
- },
38452
- },
38453
- required: [
38454
- 'workspace_id',
38455
- 'access_grant_id',
38456
- 'user_identity_id',
38457
- 'location_ids',
38458
- 'space_ids',
38459
- 'requested_access_methods',
38460
- 'access_method_ids',
38461
- 'display_name',
38462
- 'created_at',
38463
- ],
38464
- type: 'object',
38465
- 'x-draft': 'Early access.',
38466
- 'x-route-path': '/access_grants',
38467
- },
37905
+ items: { $ref: '#/components/schemas/access_grant' },
38468
37906
  type: 'array',
38469
37907
  },
38470
37908
  ok: { type: 'boolean' },
@@ -38576,61 +38014,7 @@ export default {
38576
38014
  schema: {
38577
38015
  properties: {
38578
38016
  access_method: {
38579
- properties: {
38580
- access_method_id: {
38581
- description: 'ID of the access method.',
38582
- format: 'uuid',
38583
- type: 'string',
38584
- },
38585
- created_at: {
38586
- description:
38587
- 'Date and time at which the access method was created.',
38588
- format: 'date-time',
38589
- type: 'string',
38590
- },
38591
- display_name: {
38592
- description: 'Display name of the access method.',
38593
- type: 'string',
38594
- },
38595
- instant_key_url: {
38596
- description:
38597
- 'URL of instant key for mobile key access methods.',
38598
- type: 'string',
38599
- },
38600
- is_card_encoding_required: {
38601
- description:
38602
- 'Whether card encoding is required for plastic card access methods.',
38603
- type: 'boolean',
38604
- },
38605
- issued_at: {
38606
- description:
38607
- 'Date and time at which the access method was issued.',
38608
- format: 'date-time',
38609
- type: 'string',
38610
- },
38611
- mode: {
38612
- description:
38613
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
38614
- enum: ['code', 'card', 'mobile_key'],
38615
- type: 'string',
38616
- },
38617
- workspace_id: {
38618
- description:
38619
- 'Unique identifier for the Seam workspace associated with the access grant.',
38620
- format: 'uuid',
38621
- type: 'string',
38622
- },
38623
- },
38624
- required: [
38625
- 'workspace_id',
38626
- 'access_method_id',
38627
- 'display_name',
38628
- 'mode',
38629
- 'created_at',
38630
- ],
38631
- type: 'object',
38632
- 'x-draft': 'Early access.',
38633
- 'x-route-path': '/access_methods',
38017
+ $ref: '#/components/schemas/access_method',
38634
38018
  },
38635
38019
  ok: { type: 'boolean' },
38636
38020
  },
@@ -38689,63 +38073,7 @@ export default {
38689
38073
  schema: {
38690
38074
  properties: {
38691
38075
  access_methods: {
38692
- items: {
38693
- properties: {
38694
- access_method_id: {
38695
- description: 'ID of the access method.',
38696
- format: 'uuid',
38697
- type: 'string',
38698
- },
38699
- created_at: {
38700
- description:
38701
- 'Date and time at which the access method was created.',
38702
- format: 'date-time',
38703
- type: 'string',
38704
- },
38705
- display_name: {
38706
- description: 'Display name of the access method.',
38707
- type: 'string',
38708
- },
38709
- instant_key_url: {
38710
- description:
38711
- 'URL of instant key for mobile key access methods.',
38712
- type: 'string',
38713
- },
38714
- is_card_encoding_required: {
38715
- description:
38716
- 'Whether card encoding is required for plastic card access methods.',
38717
- type: 'boolean',
38718
- },
38719
- issued_at: {
38720
- description:
38721
- 'Date and time at which the access method was issued.',
38722
- format: 'date-time',
38723
- type: 'string',
38724
- },
38725
- mode: {
38726
- description:
38727
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
38728
- enum: ['code', 'card', 'mobile_key'],
38729
- type: 'string',
38730
- },
38731
- workspace_id: {
38732
- description:
38733
- 'Unique identifier for the Seam workspace associated with the access grant.',
38734
- format: 'uuid',
38735
- type: 'string',
38736
- },
38737
- },
38738
- required: [
38739
- 'workspace_id',
38740
- 'access_method_id',
38741
- 'display_name',
38742
- 'mode',
38743
- 'created_at',
38744
- ],
38745
- type: 'object',
38746
- 'x-draft': 'Early access.',
38747
- 'x-route-path': '/access_methods',
38748
- },
38076
+ items: { $ref: '#/components/schemas/access_method' },
38749
38077
  type: 'array',
38750
38078
  },
38751
38079
  ok: { type: 'boolean' },