@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.
@@ -1369,6 +1369,149 @@ export default {
1369
1369
  type: 'object',
1370
1370
  'x-route-path': '/access_codes',
1371
1371
  },
1372
+ access_grant: {
1373
+ properties: {
1374
+ access_grant_id: {
1375
+ description: 'ID of the access grant.',
1376
+ format: 'uuid',
1377
+ type: 'string',
1378
+ },
1379
+ access_method_ids: {
1380
+ description: 'IDs of the access methods that were created for this access grant.',
1381
+ items: { format: 'uuid', type: 'string' },
1382
+ type: 'array',
1383
+ },
1384
+ created_at: {
1385
+ description: 'Date and time at which the access grant was created.',
1386
+ format: 'date-time',
1387
+ type: 'string',
1388
+ },
1389
+ display_name: {
1390
+ description: 'Display name of the access grant.',
1391
+ type: 'string',
1392
+ },
1393
+ location_ids: {
1394
+ deprecated: true,
1395
+ items: { format: 'uuid', type: 'string' },
1396
+ type: 'array',
1397
+ 'x-deprecated': 'Use `space_ids`.',
1398
+ },
1399
+ requested_access_methods: {
1400
+ description: 'Access methods that the user requested for this access grant.',
1401
+ items: {
1402
+ properties: {
1403
+ created_access_method_ids: {
1404
+ description: 'IDs of the access methods that were created for this requested access method.',
1405
+ items: { format: 'uuid', type: 'string' },
1406
+ type: 'array',
1407
+ },
1408
+ created_at: {
1409
+ description: 'Date and time at which the requested access method was added to this access grant.',
1410
+ format: 'date-time',
1411
+ type: 'string',
1412
+ },
1413
+ display_name: {
1414
+ description: 'Display name of the access method.',
1415
+ type: 'string',
1416
+ },
1417
+ mode: {
1418
+ description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
1419
+ enum: ['code', 'card', 'mobile_key'],
1420
+ type: 'string',
1421
+ },
1422
+ },
1423
+ required: [
1424
+ 'display_name',
1425
+ 'mode',
1426
+ 'created_at',
1427
+ 'created_access_method_ids',
1428
+ ],
1429
+ type: 'object',
1430
+ },
1431
+ type: 'array',
1432
+ },
1433
+ space_ids: {
1434
+ description: 'IDs of the spaces to which access is being given.',
1435
+ items: { format: 'uuid', type: 'string' },
1436
+ type: 'array',
1437
+ },
1438
+ user_identity_id: {
1439
+ description: 'ID of user identity to which access is being granted.',
1440
+ format: 'uuid',
1441
+ type: 'string',
1442
+ },
1443
+ workspace_id: {
1444
+ description: 'Unique identifier for the Seam workspace associated with the access grant.',
1445
+ format: 'uuid',
1446
+ type: 'string',
1447
+ },
1448
+ },
1449
+ required: [
1450
+ 'workspace_id',
1451
+ 'access_grant_id',
1452
+ 'user_identity_id',
1453
+ 'location_ids',
1454
+ 'space_ids',
1455
+ 'requested_access_methods',
1456
+ 'access_method_ids',
1457
+ 'display_name',
1458
+ 'created_at',
1459
+ ],
1460
+ type: 'object',
1461
+ 'x-draft': 'Early access.',
1462
+ 'x-route-path': '/access_grants',
1463
+ },
1464
+ access_method: {
1465
+ properties: {
1466
+ access_method_id: {
1467
+ description: 'ID of the access method.',
1468
+ format: 'uuid',
1469
+ type: 'string',
1470
+ },
1471
+ created_at: {
1472
+ description: 'Date and time at which the access method was created.',
1473
+ format: 'date-time',
1474
+ type: 'string',
1475
+ },
1476
+ display_name: {
1477
+ description: 'Display name of the access method.',
1478
+ type: 'string',
1479
+ },
1480
+ instant_key_url: {
1481
+ description: 'URL of instant key for mobile key access methods.',
1482
+ type: 'string',
1483
+ },
1484
+ is_card_encoding_required: {
1485
+ description: 'Whether card encoding is required for plastic card access methods.',
1486
+ type: 'boolean',
1487
+ },
1488
+ issued_at: {
1489
+ description: 'Date and time at which the access method was issued.',
1490
+ format: 'date-time',
1491
+ type: 'string',
1492
+ },
1493
+ mode: {
1494
+ description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
1495
+ enum: ['code', 'card', 'mobile_key'],
1496
+ type: 'string',
1497
+ },
1498
+ workspace_id: {
1499
+ description: 'Unique identifier for the Seam workspace associated with the access grant.',
1500
+ format: 'uuid',
1501
+ type: 'string',
1502
+ },
1503
+ },
1504
+ required: [
1505
+ 'workspace_id',
1506
+ 'access_method_id',
1507
+ 'display_name',
1508
+ 'mode',
1509
+ 'created_at',
1510
+ ],
1511
+ type: 'object',
1512
+ 'x-draft': 'Early access.',
1513
+ 'x-route-path': '/access_methods',
1514
+ },
1372
1515
  acs_access_group: {
1373
1516
  description: '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).',
1374
1517
  properties: {
@@ -20823,98 +20966,7 @@ export default {
20823
20966
  'application/json': {
20824
20967
  schema: {
20825
20968
  properties: {
20826
- access_grant: {
20827
- properties: {
20828
- access_grant_id: {
20829
- description: 'ID of the access grant.',
20830
- format: 'uuid',
20831
- type: 'string',
20832
- },
20833
- access_method_ids: {
20834
- description: 'IDs of the access methods that were created for this access grant.',
20835
- items: { format: 'uuid', type: 'string' },
20836
- type: 'array',
20837
- },
20838
- created_at: {
20839
- description: 'Date and time at which the access grant was created.',
20840
- format: 'date-time',
20841
- type: 'string',
20842
- },
20843
- display_name: {
20844
- description: 'Display name of the access grant.',
20845
- type: 'string',
20846
- },
20847
- location_ids: {
20848
- deprecated: true,
20849
- items: { format: 'uuid', type: 'string' },
20850
- type: 'array',
20851
- 'x-deprecated': 'Use `space_ids`.',
20852
- },
20853
- requested_access_methods: {
20854
- description: 'Access methods that the user requested for this access grant.',
20855
- items: {
20856
- properties: {
20857
- created_access_method_ids: {
20858
- description: 'IDs of the access methods that were created for this requested access method.',
20859
- items: { format: 'uuid', type: 'string' },
20860
- type: 'array',
20861
- },
20862
- created_at: {
20863
- description: 'Date and time at which the requested access method was added to this access grant.',
20864
- format: 'date-time',
20865
- type: 'string',
20866
- },
20867
- display_name: {
20868
- description: 'Display name of the access method.',
20869
- type: 'string',
20870
- },
20871
- mode: {
20872
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
20873
- enum: ['code', 'card', 'mobile_key'],
20874
- type: 'string',
20875
- },
20876
- },
20877
- required: [
20878
- 'display_name',
20879
- 'mode',
20880
- 'created_at',
20881
- 'created_access_method_ids',
20882
- ],
20883
- type: 'object',
20884
- },
20885
- type: 'array',
20886
- },
20887
- space_ids: {
20888
- description: 'IDs of the spaces to which access is being given.',
20889
- items: { format: 'uuid', type: 'string' },
20890
- type: 'array',
20891
- },
20892
- user_identity_id: {
20893
- description: 'ID of user identity to which access is being granted.',
20894
- format: 'uuid',
20895
- type: 'string',
20896
- },
20897
- workspace_id: {
20898
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
20899
- format: 'uuid',
20900
- type: 'string',
20901
- },
20902
- },
20903
- required: [
20904
- 'workspace_id',
20905
- 'access_grant_id',
20906
- 'user_identity_id',
20907
- 'location_ids',
20908
- 'space_ids',
20909
- 'requested_access_methods',
20910
- 'access_method_ids',
20911
- 'display_name',
20912
- 'created_at',
20913
- ],
20914
- type: 'object',
20915
- 'x-draft': 'Early access.',
20916
- 'x-route-path': '/access_grants',
20917
- },
20969
+ access_grant: { $ref: '#/components/schemas/access_grant' },
20918
20970
  ok: { type: 'boolean' },
20919
20971
  },
20920
20972
  required: ['access_grant', 'ok'],
@@ -21022,98 +21074,7 @@ export default {
21022
21074
  'application/json': {
21023
21075
  schema: {
21024
21076
  properties: {
21025
- access_grant: {
21026
- properties: {
21027
- access_grant_id: {
21028
- description: 'ID of the access grant.',
21029
- format: 'uuid',
21030
- type: 'string',
21031
- },
21032
- access_method_ids: {
21033
- description: 'IDs of the access methods that were created for this access grant.',
21034
- items: { format: 'uuid', type: 'string' },
21035
- type: 'array',
21036
- },
21037
- created_at: {
21038
- description: 'Date and time at which the access grant was created.',
21039
- format: 'date-time',
21040
- type: 'string',
21041
- },
21042
- display_name: {
21043
- description: 'Display name of the access grant.',
21044
- type: 'string',
21045
- },
21046
- location_ids: {
21047
- deprecated: true,
21048
- items: { format: 'uuid', type: 'string' },
21049
- type: 'array',
21050
- 'x-deprecated': 'Use `space_ids`.',
21051
- },
21052
- requested_access_methods: {
21053
- description: 'Access methods that the user requested for this access grant.',
21054
- items: {
21055
- properties: {
21056
- created_access_method_ids: {
21057
- description: 'IDs of the access methods that were created for this requested access method.',
21058
- items: { format: 'uuid', type: 'string' },
21059
- type: 'array',
21060
- },
21061
- created_at: {
21062
- description: 'Date and time at which the requested access method was added to this access grant.',
21063
- format: 'date-time',
21064
- type: 'string',
21065
- },
21066
- display_name: {
21067
- description: 'Display name of the access method.',
21068
- type: 'string',
21069
- },
21070
- mode: {
21071
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
21072
- enum: ['code', 'card', 'mobile_key'],
21073
- type: 'string',
21074
- },
21075
- },
21076
- required: [
21077
- 'display_name',
21078
- 'mode',
21079
- 'created_at',
21080
- 'created_access_method_ids',
21081
- ],
21082
- type: 'object',
21083
- },
21084
- type: 'array',
21085
- },
21086
- space_ids: {
21087
- description: 'IDs of the spaces to which access is being given.',
21088
- items: { format: 'uuid', type: 'string' },
21089
- type: 'array',
21090
- },
21091
- user_identity_id: {
21092
- description: 'ID of user identity to which access is being granted.',
21093
- format: 'uuid',
21094
- type: 'string',
21095
- },
21096
- workspace_id: {
21097
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
21098
- format: 'uuid',
21099
- type: 'string',
21100
- },
21101
- },
21102
- required: [
21103
- 'workspace_id',
21104
- 'access_grant_id',
21105
- 'user_identity_id',
21106
- 'location_ids',
21107
- 'space_ids',
21108
- 'requested_access_methods',
21109
- 'access_method_ids',
21110
- 'display_name',
21111
- 'created_at',
21112
- ],
21113
- type: 'object',
21114
- 'x-draft': 'Early access.',
21115
- 'x-route-path': '/access_grants',
21116
- },
21077
+ access_grant: { $ref: '#/components/schemas/access_grant' },
21117
21078
  ok: { type: 'boolean' },
21118
21079
  },
21119
21080
  required: ['access_grant', 'ok'],
@@ -21190,98 +21151,7 @@ export default {
21190
21151
  schema: {
21191
21152
  properties: {
21192
21153
  access_grants: {
21193
- items: {
21194
- properties: {
21195
- access_grant_id: {
21196
- description: 'ID of the access grant.',
21197
- format: 'uuid',
21198
- type: 'string',
21199
- },
21200
- access_method_ids: {
21201
- description: 'IDs of the access methods that were created for this access grant.',
21202
- items: { format: 'uuid', type: 'string' },
21203
- type: 'array',
21204
- },
21205
- created_at: {
21206
- description: 'Date and time at which the access grant was created.',
21207
- format: 'date-time',
21208
- type: 'string',
21209
- },
21210
- display_name: {
21211
- description: 'Display name of the access grant.',
21212
- type: 'string',
21213
- },
21214
- location_ids: {
21215
- deprecated: true,
21216
- items: { format: 'uuid', type: 'string' },
21217
- type: 'array',
21218
- 'x-deprecated': 'Use `space_ids`.',
21219
- },
21220
- requested_access_methods: {
21221
- description: 'Access methods that the user requested for this access grant.',
21222
- items: {
21223
- properties: {
21224
- created_access_method_ids: {
21225
- description: 'IDs of the access methods that were created for this requested access method.',
21226
- items: { format: 'uuid', type: 'string' },
21227
- type: 'array',
21228
- },
21229
- created_at: {
21230
- description: 'Date and time at which the requested access method was added to this access grant.',
21231
- format: 'date-time',
21232
- type: 'string',
21233
- },
21234
- display_name: {
21235
- description: 'Display name of the access method.',
21236
- type: 'string',
21237
- },
21238
- mode: {
21239
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
21240
- enum: ['code', 'card', 'mobile_key'],
21241
- type: 'string',
21242
- },
21243
- },
21244
- required: [
21245
- 'display_name',
21246
- 'mode',
21247
- 'created_at',
21248
- 'created_access_method_ids',
21249
- ],
21250
- type: 'object',
21251
- },
21252
- type: 'array',
21253
- },
21254
- space_ids: {
21255
- description: 'IDs of the spaces to which access is being given.',
21256
- items: { format: 'uuid', type: 'string' },
21257
- type: 'array',
21258
- },
21259
- user_identity_id: {
21260
- description: 'ID of user identity to which access is being granted.',
21261
- format: 'uuid',
21262
- type: 'string',
21263
- },
21264
- workspace_id: {
21265
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
21266
- format: 'uuid',
21267
- type: 'string',
21268
- },
21269
- },
21270
- required: [
21271
- 'workspace_id',
21272
- 'access_grant_id',
21273
- 'user_identity_id',
21274
- 'location_ids',
21275
- 'space_ids',
21276
- 'requested_access_methods',
21277
- 'access_method_ids',
21278
- 'display_name',
21279
- 'created_at',
21280
- ],
21281
- type: 'object',
21282
- 'x-draft': 'Early access.',
21283
- 'x-route-path': '/access_grants',
21284
- },
21154
+ items: { $ref: '#/components/schemas/access_grant' },
21285
21155
  type: 'array',
21286
21156
  },
21287
21157
  ok: { type: 'boolean' },
@@ -21391,55 +21261,7 @@ export default {
21391
21261
  schema: {
21392
21262
  properties: {
21393
21263
  access_method: {
21394
- properties: {
21395
- access_method_id: {
21396
- description: 'ID of the access method.',
21397
- format: 'uuid',
21398
- type: 'string',
21399
- },
21400
- created_at: {
21401
- description: 'Date and time at which the access method was created.',
21402
- format: 'date-time',
21403
- type: 'string',
21404
- },
21405
- display_name: {
21406
- description: 'Display name of the access method.',
21407
- type: 'string',
21408
- },
21409
- instant_key_url: {
21410
- description: 'URL of instant key for mobile key access methods.',
21411
- type: 'string',
21412
- },
21413
- is_card_encoding_required: {
21414
- description: 'Whether card encoding is required for plastic card access methods.',
21415
- type: 'boolean',
21416
- },
21417
- issued_at: {
21418
- description: 'Date and time at which the access method was issued.',
21419
- format: 'date-time',
21420
- type: 'string',
21421
- },
21422
- mode: {
21423
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
21424
- enum: ['code', 'card', 'mobile_key'],
21425
- type: 'string',
21426
- },
21427
- workspace_id: {
21428
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
21429
- format: 'uuid',
21430
- type: 'string',
21431
- },
21432
- },
21433
- required: [
21434
- 'workspace_id',
21435
- 'access_method_id',
21436
- 'display_name',
21437
- 'mode',
21438
- 'created_at',
21439
- ],
21440
- type: 'object',
21441
- 'x-draft': 'Early access.',
21442
- 'x-route-path': '/access_methods',
21264
+ $ref: '#/components/schemas/access_method',
21443
21265
  },
21444
21266
  ok: { type: 'boolean' },
21445
21267
  },
@@ -21496,57 +21318,7 @@ export default {
21496
21318
  schema: {
21497
21319
  properties: {
21498
21320
  access_methods: {
21499
- items: {
21500
- properties: {
21501
- access_method_id: {
21502
- description: 'ID of the access method.',
21503
- format: 'uuid',
21504
- type: 'string',
21505
- },
21506
- created_at: {
21507
- description: 'Date and time at which the access method was created.',
21508
- format: 'date-time',
21509
- type: 'string',
21510
- },
21511
- display_name: {
21512
- description: 'Display name of the access method.',
21513
- type: 'string',
21514
- },
21515
- instant_key_url: {
21516
- description: 'URL of instant key for mobile key access methods.',
21517
- type: 'string',
21518
- },
21519
- is_card_encoding_required: {
21520
- description: 'Whether card encoding is required for plastic card access methods.',
21521
- type: 'boolean',
21522
- },
21523
- issued_at: {
21524
- description: 'Date and time at which the access method was issued.',
21525
- format: 'date-time',
21526
- type: 'string',
21527
- },
21528
- mode: {
21529
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
21530
- enum: ['code', 'card', 'mobile_key'],
21531
- type: 'string',
21532
- },
21533
- workspace_id: {
21534
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
21535
- format: 'uuid',
21536
- type: 'string',
21537
- },
21538
- },
21539
- required: [
21540
- 'workspace_id',
21541
- 'access_method_id',
21542
- 'display_name',
21543
- 'mode',
21544
- 'created_at',
21545
- ],
21546
- type: 'object',
21547
- 'x-draft': 'Early access.',
21548
- 'x-route-path': '/access_methods',
21549
- },
21321
+ items: { $ref: '#/components/schemas/access_method' },
21550
21322
  type: 'array',
21551
21323
  },
21552
21324
  ok: { type: 'boolean' },
@@ -35104,98 +34876,7 @@ export default {
35104
34876
  'application/json': {
35105
34877
  schema: {
35106
34878
  properties: {
35107
- access_grant: {
35108
- properties: {
35109
- access_grant_id: {
35110
- description: 'ID of the access grant.',
35111
- format: 'uuid',
35112
- type: 'string',
35113
- },
35114
- access_method_ids: {
35115
- description: 'IDs of the access methods that were created for this access grant.',
35116
- items: { format: 'uuid', type: 'string' },
35117
- type: 'array',
35118
- },
35119
- created_at: {
35120
- description: 'Date and time at which the access grant was created.',
35121
- format: 'date-time',
35122
- type: 'string',
35123
- },
35124
- display_name: {
35125
- description: 'Display name of the access grant.',
35126
- type: 'string',
35127
- },
35128
- location_ids: {
35129
- deprecated: true,
35130
- items: { format: 'uuid', type: 'string' },
35131
- type: 'array',
35132
- 'x-deprecated': 'Use `space_ids`.',
35133
- },
35134
- requested_access_methods: {
35135
- description: 'Access methods that the user requested for this access grant.',
35136
- items: {
35137
- properties: {
35138
- created_access_method_ids: {
35139
- description: 'IDs of the access methods that were created for this requested access method.',
35140
- items: { format: 'uuid', type: 'string' },
35141
- type: 'array',
35142
- },
35143
- created_at: {
35144
- description: 'Date and time at which the requested access method was added to this access grant.',
35145
- format: 'date-time',
35146
- type: 'string',
35147
- },
35148
- display_name: {
35149
- description: 'Display name of the access method.',
35150
- type: 'string',
35151
- },
35152
- mode: {
35153
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
35154
- enum: ['code', 'card', 'mobile_key'],
35155
- type: 'string',
35156
- },
35157
- },
35158
- required: [
35159
- 'display_name',
35160
- 'mode',
35161
- 'created_at',
35162
- 'created_access_method_ids',
35163
- ],
35164
- type: 'object',
35165
- },
35166
- type: 'array',
35167
- },
35168
- space_ids: {
35169
- description: 'IDs of the spaces to which access is being given.',
35170
- items: { format: 'uuid', type: 'string' },
35171
- type: 'array',
35172
- },
35173
- user_identity_id: {
35174
- description: 'ID of user identity to which access is being granted.',
35175
- format: 'uuid',
35176
- type: 'string',
35177
- },
35178
- workspace_id: {
35179
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
35180
- format: 'uuid',
35181
- type: 'string',
35182
- },
35183
- },
35184
- required: [
35185
- 'workspace_id',
35186
- 'access_grant_id',
35187
- 'user_identity_id',
35188
- 'location_ids',
35189
- 'space_ids',
35190
- 'requested_access_methods',
35191
- 'access_method_ids',
35192
- 'display_name',
35193
- 'created_at',
35194
- ],
35195
- type: 'object',
35196
- 'x-draft': 'Early access.',
35197
- 'x-route-path': '/access_grants',
35198
- },
34879
+ access_grant: { $ref: '#/components/schemas/access_grant' },
35199
34880
  ok: { type: 'boolean' },
35200
34881
  },
35201
34882
  required: ['access_grant', 'ok'],
@@ -35303,98 +34984,7 @@ export default {
35303
34984
  'application/json': {
35304
34985
  schema: {
35305
34986
  properties: {
35306
- access_grant: {
35307
- properties: {
35308
- access_grant_id: {
35309
- description: 'ID of the access grant.',
35310
- format: 'uuid',
35311
- type: 'string',
35312
- },
35313
- access_method_ids: {
35314
- description: 'IDs of the access methods that were created for this access grant.',
35315
- items: { format: 'uuid', type: 'string' },
35316
- type: 'array',
35317
- },
35318
- created_at: {
35319
- description: 'Date and time at which the access grant was created.',
35320
- format: 'date-time',
35321
- type: 'string',
35322
- },
35323
- display_name: {
35324
- description: 'Display name of the access grant.',
35325
- type: 'string',
35326
- },
35327
- location_ids: {
35328
- deprecated: true,
35329
- items: { format: 'uuid', type: 'string' },
35330
- type: 'array',
35331
- 'x-deprecated': 'Use `space_ids`.',
35332
- },
35333
- requested_access_methods: {
35334
- description: 'Access methods that the user requested for this access grant.',
35335
- items: {
35336
- properties: {
35337
- created_access_method_ids: {
35338
- description: 'IDs of the access methods that were created for this requested access method.',
35339
- items: { format: 'uuid', type: 'string' },
35340
- type: 'array',
35341
- },
35342
- created_at: {
35343
- description: 'Date and time at which the requested access method was added to this access grant.',
35344
- format: 'date-time',
35345
- type: 'string',
35346
- },
35347
- display_name: {
35348
- description: 'Display name of the access method.',
35349
- type: 'string',
35350
- },
35351
- mode: {
35352
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
35353
- enum: ['code', 'card', 'mobile_key'],
35354
- type: 'string',
35355
- },
35356
- },
35357
- required: [
35358
- 'display_name',
35359
- 'mode',
35360
- 'created_at',
35361
- 'created_access_method_ids',
35362
- ],
35363
- type: 'object',
35364
- },
35365
- type: 'array',
35366
- },
35367
- space_ids: {
35368
- description: 'IDs of the spaces to which access is being given.',
35369
- items: { format: 'uuid', type: 'string' },
35370
- type: 'array',
35371
- },
35372
- user_identity_id: {
35373
- description: 'ID of user identity to which access is being granted.',
35374
- format: 'uuid',
35375
- type: 'string',
35376
- },
35377
- workspace_id: {
35378
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
35379
- format: 'uuid',
35380
- type: 'string',
35381
- },
35382
- },
35383
- required: [
35384
- 'workspace_id',
35385
- 'access_grant_id',
35386
- 'user_identity_id',
35387
- 'location_ids',
35388
- 'space_ids',
35389
- 'requested_access_methods',
35390
- 'access_method_ids',
35391
- 'display_name',
35392
- 'created_at',
35393
- ],
35394
- type: 'object',
35395
- 'x-draft': 'Early access.',
35396
- 'x-route-path': '/access_grants',
35397
- },
34987
+ access_grant: { $ref: '#/components/schemas/access_grant' },
35398
34988
  ok: { type: 'boolean' },
35399
34989
  },
35400
34990
  required: ['access_grant', 'ok'],
@@ -35471,98 +35061,7 @@ export default {
35471
35061
  schema: {
35472
35062
  properties: {
35473
35063
  access_grants: {
35474
- items: {
35475
- properties: {
35476
- access_grant_id: {
35477
- description: 'ID of the access grant.',
35478
- format: 'uuid',
35479
- type: 'string',
35480
- },
35481
- access_method_ids: {
35482
- description: 'IDs of the access methods that were created for this access grant.',
35483
- items: { format: 'uuid', type: 'string' },
35484
- type: 'array',
35485
- },
35486
- created_at: {
35487
- description: 'Date and time at which the access grant was created.',
35488
- format: 'date-time',
35489
- type: 'string',
35490
- },
35491
- display_name: {
35492
- description: 'Display name of the access grant.',
35493
- type: 'string',
35494
- },
35495
- location_ids: {
35496
- deprecated: true,
35497
- items: { format: 'uuid', type: 'string' },
35498
- type: 'array',
35499
- 'x-deprecated': 'Use `space_ids`.',
35500
- },
35501
- requested_access_methods: {
35502
- description: 'Access methods that the user requested for this access grant.',
35503
- items: {
35504
- properties: {
35505
- created_access_method_ids: {
35506
- description: 'IDs of the access methods that were created for this requested access method.',
35507
- items: { format: 'uuid', type: 'string' },
35508
- type: 'array',
35509
- },
35510
- created_at: {
35511
- description: 'Date and time at which the requested access method was added to this access grant.',
35512
- format: 'date-time',
35513
- type: 'string',
35514
- },
35515
- display_name: {
35516
- description: 'Display name of the access method.',
35517
- type: 'string',
35518
- },
35519
- mode: {
35520
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
35521
- enum: ['code', 'card', 'mobile_key'],
35522
- type: 'string',
35523
- },
35524
- },
35525
- required: [
35526
- 'display_name',
35527
- 'mode',
35528
- 'created_at',
35529
- 'created_access_method_ids',
35530
- ],
35531
- type: 'object',
35532
- },
35533
- type: 'array',
35534
- },
35535
- space_ids: {
35536
- description: 'IDs of the spaces to which access is being given.',
35537
- items: { format: 'uuid', type: 'string' },
35538
- type: 'array',
35539
- },
35540
- user_identity_id: {
35541
- description: 'ID of user identity to which access is being granted.',
35542
- format: 'uuid',
35543
- type: 'string',
35544
- },
35545
- workspace_id: {
35546
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
35547
- format: 'uuid',
35548
- type: 'string',
35549
- },
35550
- },
35551
- required: [
35552
- 'workspace_id',
35553
- 'access_grant_id',
35554
- 'user_identity_id',
35555
- 'location_ids',
35556
- 'space_ids',
35557
- 'requested_access_methods',
35558
- 'access_method_ids',
35559
- 'display_name',
35560
- 'created_at',
35561
- ],
35562
- type: 'object',
35563
- 'x-draft': 'Early access.',
35564
- 'x-route-path': '/access_grants',
35565
- },
35064
+ items: { $ref: '#/components/schemas/access_grant' },
35566
35065
  type: 'array',
35567
35066
  },
35568
35067
  ok: { type: 'boolean' },
@@ -35672,55 +35171,7 @@ export default {
35672
35171
  schema: {
35673
35172
  properties: {
35674
35173
  access_method: {
35675
- properties: {
35676
- access_method_id: {
35677
- description: 'ID of the access method.',
35678
- format: 'uuid',
35679
- type: 'string',
35680
- },
35681
- created_at: {
35682
- description: 'Date and time at which the access method was created.',
35683
- format: 'date-time',
35684
- type: 'string',
35685
- },
35686
- display_name: {
35687
- description: 'Display name of the access method.',
35688
- type: 'string',
35689
- },
35690
- instant_key_url: {
35691
- description: 'URL of instant key for mobile key access methods.',
35692
- type: 'string',
35693
- },
35694
- is_card_encoding_required: {
35695
- description: 'Whether card encoding is required for plastic card access methods.',
35696
- type: 'boolean',
35697
- },
35698
- issued_at: {
35699
- description: 'Date and time at which the access method was issued.',
35700
- format: 'date-time',
35701
- type: 'string',
35702
- },
35703
- mode: {
35704
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
35705
- enum: ['code', 'card', 'mobile_key'],
35706
- type: 'string',
35707
- },
35708
- workspace_id: {
35709
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
35710
- format: 'uuid',
35711
- type: 'string',
35712
- },
35713
- },
35714
- required: [
35715
- 'workspace_id',
35716
- 'access_method_id',
35717
- 'display_name',
35718
- 'mode',
35719
- 'created_at',
35720
- ],
35721
- type: 'object',
35722
- 'x-draft': 'Early access.',
35723
- 'x-route-path': '/access_methods',
35174
+ $ref: '#/components/schemas/access_method',
35724
35175
  },
35725
35176
  ok: { type: 'boolean' },
35726
35177
  },
@@ -35777,57 +35228,7 @@ export default {
35777
35228
  schema: {
35778
35229
  properties: {
35779
35230
  access_methods: {
35780
- items: {
35781
- properties: {
35782
- access_method_id: {
35783
- description: 'ID of the access method.',
35784
- format: 'uuid',
35785
- type: 'string',
35786
- },
35787
- created_at: {
35788
- description: 'Date and time at which the access method was created.',
35789
- format: 'date-time',
35790
- type: 'string',
35791
- },
35792
- display_name: {
35793
- description: 'Display name of the access method.',
35794
- type: 'string',
35795
- },
35796
- instant_key_url: {
35797
- description: 'URL of instant key for mobile key access methods.',
35798
- type: 'string',
35799
- },
35800
- is_card_encoding_required: {
35801
- description: 'Whether card encoding is required for plastic card access methods.',
35802
- type: 'boolean',
35803
- },
35804
- issued_at: {
35805
- description: 'Date and time at which the access method was issued.',
35806
- format: 'date-time',
35807
- type: 'string',
35808
- },
35809
- mode: {
35810
- description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
35811
- enum: ['code', 'card', 'mobile_key'],
35812
- type: 'string',
35813
- },
35814
- workspace_id: {
35815
- description: 'Unique identifier for the Seam workspace associated with the access grant.',
35816
- format: 'uuid',
35817
- type: 'string',
35818
- },
35819
- },
35820
- required: [
35821
- 'workspace_id',
35822
- 'access_method_id',
35823
- 'display_name',
35824
- 'mode',
35825
- 'created_at',
35826
- ],
35827
- type: 'object',
35828
- 'x-draft': 'Early access.',
35829
- 'x-route-path': '/access_methods',
35830
- },
35231
+ items: { $ref: '#/components/schemas/access_method' },
35831
35232
  type: 'array',
35832
35233
  },
35833
35234
  ok: { type: 'boolean' },