@seamapi/types 1.410.2 → 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.
package/dist/connect.cjs CHANGED
@@ -5087,7 +5087,8 @@ var pagination = zod.z.object({
5087
5087
  var building_block_type = zod.z.enum([
5088
5088
  "connect_accounts",
5089
5089
  "manage_devices",
5090
- "organize_spaces"
5090
+ "organize_spaces",
5091
+ "console"
5091
5092
  ]);
5092
5093
  var magic_link = zod.z.object({
5093
5094
  url: zod.z.string().url(),
@@ -6538,6 +6539,149 @@ var openapi_default = {
6538
6539
  type: "object",
6539
6540
  "x-route-path": "/access_codes"
6540
6541
  },
6542
+ access_grant: {
6543
+ properties: {
6544
+ access_grant_id: {
6545
+ description: "ID of the access grant.",
6546
+ format: "uuid",
6547
+ type: "string"
6548
+ },
6549
+ access_method_ids: {
6550
+ description: "IDs of the access methods that were created for this access grant.",
6551
+ items: { format: "uuid", type: "string" },
6552
+ type: "array"
6553
+ },
6554
+ created_at: {
6555
+ description: "Date and time at which the access grant was created.",
6556
+ format: "date-time",
6557
+ type: "string"
6558
+ },
6559
+ display_name: {
6560
+ description: "Display name of the access grant.",
6561
+ type: "string"
6562
+ },
6563
+ location_ids: {
6564
+ deprecated: true,
6565
+ items: { format: "uuid", type: "string" },
6566
+ type: "array",
6567
+ "x-deprecated": "Use `space_ids`."
6568
+ },
6569
+ requested_access_methods: {
6570
+ description: "Access methods that the user requested for this access grant.",
6571
+ items: {
6572
+ properties: {
6573
+ created_access_method_ids: {
6574
+ description: "IDs of the access methods that were created for this requested access method.",
6575
+ items: { format: "uuid", type: "string" },
6576
+ type: "array"
6577
+ },
6578
+ created_at: {
6579
+ description: "Date and time at which the requested access method was added to this access grant.",
6580
+ format: "date-time",
6581
+ type: "string"
6582
+ },
6583
+ display_name: {
6584
+ description: "Display name of the access method.",
6585
+ type: "string"
6586
+ },
6587
+ mode: {
6588
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
6589
+ enum: ["code", "card", "mobile_key"],
6590
+ type: "string"
6591
+ }
6592
+ },
6593
+ required: [
6594
+ "display_name",
6595
+ "mode",
6596
+ "created_at",
6597
+ "created_access_method_ids"
6598
+ ],
6599
+ type: "object"
6600
+ },
6601
+ type: "array"
6602
+ },
6603
+ space_ids: {
6604
+ description: "IDs of the spaces to which access is being given.",
6605
+ items: { format: "uuid", type: "string" },
6606
+ type: "array"
6607
+ },
6608
+ user_identity_id: {
6609
+ description: "ID of user identity to which access is being granted.",
6610
+ format: "uuid",
6611
+ type: "string"
6612
+ },
6613
+ workspace_id: {
6614
+ description: "Unique identifier for the Seam workspace associated with the access grant.",
6615
+ format: "uuid",
6616
+ type: "string"
6617
+ }
6618
+ },
6619
+ required: [
6620
+ "workspace_id",
6621
+ "access_grant_id",
6622
+ "user_identity_id",
6623
+ "location_ids",
6624
+ "space_ids",
6625
+ "requested_access_methods",
6626
+ "access_method_ids",
6627
+ "display_name",
6628
+ "created_at"
6629
+ ],
6630
+ type: "object",
6631
+ "x-draft": "Early access.",
6632
+ "x-route-path": "/access_grants"
6633
+ },
6634
+ access_method: {
6635
+ properties: {
6636
+ access_method_id: {
6637
+ description: "ID of the access method.",
6638
+ format: "uuid",
6639
+ type: "string"
6640
+ },
6641
+ created_at: {
6642
+ description: "Date and time at which the access method was created.",
6643
+ format: "date-time",
6644
+ type: "string"
6645
+ },
6646
+ display_name: {
6647
+ description: "Display name of the access method.",
6648
+ type: "string"
6649
+ },
6650
+ instant_key_url: {
6651
+ description: "URL of instant key for mobile key access methods.",
6652
+ type: "string"
6653
+ },
6654
+ is_card_encoding_required: {
6655
+ description: "Whether card encoding is required for plastic card access methods.",
6656
+ type: "boolean"
6657
+ },
6658
+ issued_at: {
6659
+ description: "Date and time at which the access method was issued.",
6660
+ format: "date-time",
6661
+ type: "string"
6662
+ },
6663
+ mode: {
6664
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
6665
+ enum: ["code", "card", "mobile_key"],
6666
+ type: "string"
6667
+ },
6668
+ workspace_id: {
6669
+ description: "Unique identifier for the Seam workspace associated with the access grant.",
6670
+ format: "uuid",
6671
+ type: "string"
6672
+ }
6673
+ },
6674
+ required: [
6675
+ "workspace_id",
6676
+ "access_method_id",
6677
+ "display_name",
6678
+ "mode",
6679
+ "created_at"
6680
+ ],
6681
+ type: "object",
6682
+ "x-draft": "Early access.",
6683
+ "x-route-path": "/access_methods"
6684
+ },
6541
6685
  acs_access_group: {
6542
6686
  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).",
6543
6687
  properties: {
@@ -19754,7 +19898,12 @@ var openapi_default = {
19754
19898
  magic_link: {
19755
19899
  properties: {
19756
19900
  building_block_type: {
19757
- enum: ["connect_accounts", "manage_devices", "organize_spaces"],
19901
+ enum: [
19902
+ "connect_accounts",
19903
+ "manage_devices",
19904
+ "organize_spaces",
19905
+ "console"
19906
+ ],
19758
19907
  type: "string"
19759
19908
  },
19760
19909
  created_at: { format: "date-time", type: "string" },
@@ -25987,98 +26136,7 @@ var openapi_default = {
25987
26136
  "application/json": {
25988
26137
  schema: {
25989
26138
  properties: {
25990
- access_grant: {
25991
- properties: {
25992
- access_grant_id: {
25993
- description: "ID of the access grant.",
25994
- format: "uuid",
25995
- type: "string"
25996
- },
25997
- access_method_ids: {
25998
- description: "IDs of the access methods that were created for this access grant.",
25999
- items: { format: "uuid", type: "string" },
26000
- type: "array"
26001
- },
26002
- created_at: {
26003
- description: "Date and time at which the access grant was created.",
26004
- format: "date-time",
26005
- type: "string"
26006
- },
26007
- display_name: {
26008
- description: "Display name of the access grant.",
26009
- type: "string"
26010
- },
26011
- location_ids: {
26012
- deprecated: true,
26013
- items: { format: "uuid", type: "string" },
26014
- type: "array",
26015
- "x-deprecated": "Use `space_ids`."
26016
- },
26017
- requested_access_methods: {
26018
- description: "Access methods that the user requested for this access grant.",
26019
- items: {
26020
- properties: {
26021
- created_access_method_ids: {
26022
- description: "IDs of the access methods that were created for this requested access method.",
26023
- items: { format: "uuid", type: "string" },
26024
- type: "array"
26025
- },
26026
- created_at: {
26027
- description: "Date and time at which the requested access method was added to this access grant.",
26028
- format: "date-time",
26029
- type: "string"
26030
- },
26031
- display_name: {
26032
- description: "Display name of the access method.",
26033
- type: "string"
26034
- },
26035
- mode: {
26036
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
26037
- enum: ["code", "card", "mobile_key"],
26038
- type: "string"
26039
- }
26040
- },
26041
- required: [
26042
- "display_name",
26043
- "mode",
26044
- "created_at",
26045
- "created_access_method_ids"
26046
- ],
26047
- type: "object"
26048
- },
26049
- type: "array"
26050
- },
26051
- space_ids: {
26052
- description: "IDs of the spaces to which access is being given.",
26053
- items: { format: "uuid", type: "string" },
26054
- type: "array"
26055
- },
26056
- user_identity_id: {
26057
- description: "ID of user identity to which access is being granted.",
26058
- format: "uuid",
26059
- type: "string"
26060
- },
26061
- workspace_id: {
26062
- description: "Unique identifier for the Seam workspace associated with the access grant.",
26063
- format: "uuid",
26064
- type: "string"
26065
- }
26066
- },
26067
- required: [
26068
- "workspace_id",
26069
- "access_grant_id",
26070
- "user_identity_id",
26071
- "location_ids",
26072
- "space_ids",
26073
- "requested_access_methods",
26074
- "access_method_ids",
26075
- "display_name",
26076
- "created_at"
26077
- ],
26078
- type: "object",
26079
- "x-draft": "Early access.",
26080
- "x-route-path": "/access_grants"
26081
- },
26139
+ access_grant: { $ref: "#/components/schemas/access_grant" },
26082
26140
  ok: { type: "boolean" }
26083
26141
  },
26084
26142
  required: ["access_grant", "ok"],
@@ -26186,98 +26244,7 @@ var openapi_default = {
26186
26244
  "application/json": {
26187
26245
  schema: {
26188
26246
  properties: {
26189
- access_grant: {
26190
- properties: {
26191
- access_grant_id: {
26192
- description: "ID of the access grant.",
26193
- format: "uuid",
26194
- type: "string"
26195
- },
26196
- access_method_ids: {
26197
- description: "IDs of the access methods that were created for this access grant.",
26198
- items: { format: "uuid", type: "string" },
26199
- type: "array"
26200
- },
26201
- created_at: {
26202
- description: "Date and time at which the access grant was created.",
26203
- format: "date-time",
26204
- type: "string"
26205
- },
26206
- display_name: {
26207
- description: "Display name of the access grant.",
26208
- type: "string"
26209
- },
26210
- location_ids: {
26211
- deprecated: true,
26212
- items: { format: "uuid", type: "string" },
26213
- type: "array",
26214
- "x-deprecated": "Use `space_ids`."
26215
- },
26216
- requested_access_methods: {
26217
- description: "Access methods that the user requested for this access grant.",
26218
- items: {
26219
- properties: {
26220
- created_access_method_ids: {
26221
- description: "IDs of the access methods that were created for this requested access method.",
26222
- items: { format: "uuid", type: "string" },
26223
- type: "array"
26224
- },
26225
- created_at: {
26226
- description: "Date and time at which the requested access method was added to this access grant.",
26227
- format: "date-time",
26228
- type: "string"
26229
- },
26230
- display_name: {
26231
- description: "Display name of the access method.",
26232
- type: "string"
26233
- },
26234
- mode: {
26235
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
26236
- enum: ["code", "card", "mobile_key"],
26237
- type: "string"
26238
- }
26239
- },
26240
- required: [
26241
- "display_name",
26242
- "mode",
26243
- "created_at",
26244
- "created_access_method_ids"
26245
- ],
26246
- type: "object"
26247
- },
26248
- type: "array"
26249
- },
26250
- space_ids: {
26251
- description: "IDs of the spaces to which access is being given.",
26252
- items: { format: "uuid", type: "string" },
26253
- type: "array"
26254
- },
26255
- user_identity_id: {
26256
- description: "ID of user identity to which access is being granted.",
26257
- format: "uuid",
26258
- type: "string"
26259
- },
26260
- workspace_id: {
26261
- description: "Unique identifier for the Seam workspace associated with the access grant.",
26262
- format: "uuid",
26263
- type: "string"
26264
- }
26265
- },
26266
- required: [
26267
- "workspace_id",
26268
- "access_grant_id",
26269
- "user_identity_id",
26270
- "location_ids",
26271
- "space_ids",
26272
- "requested_access_methods",
26273
- "access_method_ids",
26274
- "display_name",
26275
- "created_at"
26276
- ],
26277
- type: "object",
26278
- "x-draft": "Early access.",
26279
- "x-route-path": "/access_grants"
26280
- },
26247
+ access_grant: { $ref: "#/components/schemas/access_grant" },
26281
26248
  ok: { type: "boolean" }
26282
26249
  },
26283
26250
  required: ["access_grant", "ok"],
@@ -26354,98 +26321,7 @@ var openapi_default = {
26354
26321
  schema: {
26355
26322
  properties: {
26356
26323
  access_grants: {
26357
- items: {
26358
- properties: {
26359
- access_grant_id: {
26360
- description: "ID of the access grant.",
26361
- format: "uuid",
26362
- type: "string"
26363
- },
26364
- access_method_ids: {
26365
- description: "IDs of the access methods that were created for this access grant.",
26366
- items: { format: "uuid", type: "string" },
26367
- type: "array"
26368
- },
26369
- created_at: {
26370
- description: "Date and time at which the access grant was created.",
26371
- format: "date-time",
26372
- type: "string"
26373
- },
26374
- display_name: {
26375
- description: "Display name of the access grant.",
26376
- type: "string"
26377
- },
26378
- location_ids: {
26379
- deprecated: true,
26380
- items: { format: "uuid", type: "string" },
26381
- type: "array",
26382
- "x-deprecated": "Use `space_ids`."
26383
- },
26384
- requested_access_methods: {
26385
- description: "Access methods that the user requested for this access grant.",
26386
- items: {
26387
- properties: {
26388
- created_access_method_ids: {
26389
- description: "IDs of the access methods that were created for this requested access method.",
26390
- items: { format: "uuid", type: "string" },
26391
- type: "array"
26392
- },
26393
- created_at: {
26394
- description: "Date and time at which the requested access method was added to this access grant.",
26395
- format: "date-time",
26396
- type: "string"
26397
- },
26398
- display_name: {
26399
- description: "Display name of the access method.",
26400
- type: "string"
26401
- },
26402
- mode: {
26403
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
26404
- enum: ["code", "card", "mobile_key"],
26405
- type: "string"
26406
- }
26407
- },
26408
- required: [
26409
- "display_name",
26410
- "mode",
26411
- "created_at",
26412
- "created_access_method_ids"
26413
- ],
26414
- type: "object"
26415
- },
26416
- type: "array"
26417
- },
26418
- space_ids: {
26419
- description: "IDs of the spaces to which access is being given.",
26420
- items: { format: "uuid", type: "string" },
26421
- type: "array"
26422
- },
26423
- user_identity_id: {
26424
- description: "ID of user identity to which access is being granted.",
26425
- format: "uuid",
26426
- type: "string"
26427
- },
26428
- workspace_id: {
26429
- description: "Unique identifier for the Seam workspace associated with the access grant.",
26430
- format: "uuid",
26431
- type: "string"
26432
- }
26433
- },
26434
- required: [
26435
- "workspace_id",
26436
- "access_grant_id",
26437
- "user_identity_id",
26438
- "location_ids",
26439
- "space_ids",
26440
- "requested_access_methods",
26441
- "access_method_ids",
26442
- "display_name",
26443
- "created_at"
26444
- ],
26445
- type: "object",
26446
- "x-draft": "Early access.",
26447
- "x-route-path": "/access_grants"
26448
- },
26324
+ items: { $ref: "#/components/schemas/access_grant" },
26449
26325
  type: "array"
26450
26326
  },
26451
26327
  ok: { type: "boolean" }
@@ -26555,55 +26431,7 @@ var openapi_default = {
26555
26431
  schema: {
26556
26432
  properties: {
26557
26433
  access_method: {
26558
- properties: {
26559
- access_method_id: {
26560
- description: "ID of the access method.",
26561
- format: "uuid",
26562
- type: "string"
26563
- },
26564
- created_at: {
26565
- description: "Date and time at which the access method was created.",
26566
- format: "date-time",
26567
- type: "string"
26568
- },
26569
- display_name: {
26570
- description: "Display name of the access method.",
26571
- type: "string"
26572
- },
26573
- instant_key_url: {
26574
- description: "URL of instant key for mobile key access methods.",
26575
- type: "string"
26576
- },
26577
- is_card_encoding_required: {
26578
- description: "Whether card encoding is required for plastic card access methods.",
26579
- type: "boolean"
26580
- },
26581
- issued_at: {
26582
- description: "Date and time at which the access method was issued.",
26583
- format: "date-time",
26584
- type: "string"
26585
- },
26586
- mode: {
26587
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
26588
- enum: ["code", "card", "mobile_key"],
26589
- type: "string"
26590
- },
26591
- workspace_id: {
26592
- description: "Unique identifier for the Seam workspace associated with the access grant.",
26593
- format: "uuid",
26594
- type: "string"
26595
- }
26596
- },
26597
- required: [
26598
- "workspace_id",
26599
- "access_method_id",
26600
- "display_name",
26601
- "mode",
26602
- "created_at"
26603
- ],
26604
- type: "object",
26605
- "x-draft": "Early access.",
26606
- "x-route-path": "/access_methods"
26434
+ $ref: "#/components/schemas/access_method"
26607
26435
  },
26608
26436
  ok: { type: "boolean" }
26609
26437
  },
@@ -26660,57 +26488,7 @@ var openapi_default = {
26660
26488
  schema: {
26661
26489
  properties: {
26662
26490
  access_methods: {
26663
- items: {
26664
- properties: {
26665
- access_method_id: {
26666
- description: "ID of the access method.",
26667
- format: "uuid",
26668
- type: "string"
26669
- },
26670
- created_at: {
26671
- description: "Date and time at which the access method was created.",
26672
- format: "date-time",
26673
- type: "string"
26674
- },
26675
- display_name: {
26676
- description: "Display name of the access method.",
26677
- type: "string"
26678
- },
26679
- instant_key_url: {
26680
- description: "URL of instant key for mobile key access methods.",
26681
- type: "string"
26682
- },
26683
- is_card_encoding_required: {
26684
- description: "Whether card encoding is required for plastic card access methods.",
26685
- type: "boolean"
26686
- },
26687
- issued_at: {
26688
- description: "Date and time at which the access method was issued.",
26689
- format: "date-time",
26690
- type: "string"
26691
- },
26692
- mode: {
26693
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
26694
- enum: ["code", "card", "mobile_key"],
26695
- type: "string"
26696
- },
26697
- workspace_id: {
26698
- description: "Unique identifier for the Seam workspace associated with the access grant.",
26699
- format: "uuid",
26700
- type: "string"
26701
- }
26702
- },
26703
- required: [
26704
- "workspace_id",
26705
- "access_method_id",
26706
- "display_name",
26707
- "mode",
26708
- "created_at"
26709
- ],
26710
- type: "object",
26711
- "x-draft": "Early access.",
26712
- "x-route-path": "/access_methods"
26713
- },
26491
+ items: { $ref: "#/components/schemas/access_method" },
26714
26492
  type: "array"
26715
26493
  },
26716
26494
  ok: { type: "boolean" }
@@ -40268,98 +40046,7 @@ var openapi_default = {
40268
40046
  "application/json": {
40269
40047
  schema: {
40270
40048
  properties: {
40271
- access_grant: {
40272
- properties: {
40273
- access_grant_id: {
40274
- description: "ID of the access grant.",
40275
- format: "uuid",
40276
- type: "string"
40277
- },
40278
- access_method_ids: {
40279
- description: "IDs of the access methods that were created for this access grant.",
40280
- items: { format: "uuid", type: "string" },
40281
- type: "array"
40282
- },
40283
- created_at: {
40284
- description: "Date and time at which the access grant was created.",
40285
- format: "date-time",
40286
- type: "string"
40287
- },
40288
- display_name: {
40289
- description: "Display name of the access grant.",
40290
- type: "string"
40291
- },
40292
- location_ids: {
40293
- deprecated: true,
40294
- items: { format: "uuid", type: "string" },
40295
- type: "array",
40296
- "x-deprecated": "Use `space_ids`."
40297
- },
40298
- requested_access_methods: {
40299
- description: "Access methods that the user requested for this access grant.",
40300
- items: {
40301
- properties: {
40302
- created_access_method_ids: {
40303
- description: "IDs of the access methods that were created for this requested access method.",
40304
- items: { format: "uuid", type: "string" },
40305
- type: "array"
40306
- },
40307
- created_at: {
40308
- description: "Date and time at which the requested access method was added to this access grant.",
40309
- format: "date-time",
40310
- type: "string"
40311
- },
40312
- display_name: {
40313
- description: "Display name of the access method.",
40314
- type: "string"
40315
- },
40316
- mode: {
40317
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
40318
- enum: ["code", "card", "mobile_key"],
40319
- type: "string"
40320
- }
40321
- },
40322
- required: [
40323
- "display_name",
40324
- "mode",
40325
- "created_at",
40326
- "created_access_method_ids"
40327
- ],
40328
- type: "object"
40329
- },
40330
- type: "array"
40331
- },
40332
- space_ids: {
40333
- description: "IDs of the spaces to which access is being given.",
40334
- items: { format: "uuid", type: "string" },
40335
- type: "array"
40336
- },
40337
- user_identity_id: {
40338
- description: "ID of user identity to which access is being granted.",
40339
- format: "uuid",
40340
- type: "string"
40341
- },
40342
- workspace_id: {
40343
- description: "Unique identifier for the Seam workspace associated with the access grant.",
40344
- format: "uuid",
40345
- type: "string"
40346
- }
40347
- },
40348
- required: [
40349
- "workspace_id",
40350
- "access_grant_id",
40351
- "user_identity_id",
40352
- "location_ids",
40353
- "space_ids",
40354
- "requested_access_methods",
40355
- "access_method_ids",
40356
- "display_name",
40357
- "created_at"
40358
- ],
40359
- type: "object",
40360
- "x-draft": "Early access.",
40361
- "x-route-path": "/access_grants"
40362
- },
40049
+ access_grant: { $ref: "#/components/schemas/access_grant" },
40363
40050
  ok: { type: "boolean" }
40364
40051
  },
40365
40052
  required: ["access_grant", "ok"],
@@ -40467,98 +40154,7 @@ var openapi_default = {
40467
40154
  "application/json": {
40468
40155
  schema: {
40469
40156
  properties: {
40470
- access_grant: {
40471
- properties: {
40472
- access_grant_id: {
40473
- description: "ID of the access grant.",
40474
- format: "uuid",
40475
- type: "string"
40476
- },
40477
- access_method_ids: {
40478
- description: "IDs of the access methods that were created for this access grant.",
40479
- items: { format: "uuid", type: "string" },
40480
- type: "array"
40481
- },
40482
- created_at: {
40483
- description: "Date and time at which the access grant was created.",
40484
- format: "date-time",
40485
- type: "string"
40486
- },
40487
- display_name: {
40488
- description: "Display name of the access grant.",
40489
- type: "string"
40490
- },
40491
- location_ids: {
40492
- deprecated: true,
40493
- items: { format: "uuid", type: "string" },
40494
- type: "array",
40495
- "x-deprecated": "Use `space_ids`."
40496
- },
40497
- requested_access_methods: {
40498
- description: "Access methods that the user requested for this access grant.",
40499
- items: {
40500
- properties: {
40501
- created_access_method_ids: {
40502
- description: "IDs of the access methods that were created for this requested access method.",
40503
- items: { format: "uuid", type: "string" },
40504
- type: "array"
40505
- },
40506
- created_at: {
40507
- description: "Date and time at which the requested access method was added to this access grant.",
40508
- format: "date-time",
40509
- type: "string"
40510
- },
40511
- display_name: {
40512
- description: "Display name of the access method.",
40513
- type: "string"
40514
- },
40515
- mode: {
40516
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
40517
- enum: ["code", "card", "mobile_key"],
40518
- type: "string"
40519
- }
40520
- },
40521
- required: [
40522
- "display_name",
40523
- "mode",
40524
- "created_at",
40525
- "created_access_method_ids"
40526
- ],
40527
- type: "object"
40528
- },
40529
- type: "array"
40530
- },
40531
- space_ids: {
40532
- description: "IDs of the spaces to which access is being given.",
40533
- items: { format: "uuid", type: "string" },
40534
- type: "array"
40535
- },
40536
- user_identity_id: {
40537
- description: "ID of user identity to which access is being granted.",
40538
- format: "uuid",
40539
- type: "string"
40540
- },
40541
- workspace_id: {
40542
- description: "Unique identifier for the Seam workspace associated with the access grant.",
40543
- format: "uuid",
40544
- type: "string"
40545
- }
40546
- },
40547
- required: [
40548
- "workspace_id",
40549
- "access_grant_id",
40550
- "user_identity_id",
40551
- "location_ids",
40552
- "space_ids",
40553
- "requested_access_methods",
40554
- "access_method_ids",
40555
- "display_name",
40556
- "created_at"
40557
- ],
40558
- type: "object",
40559
- "x-draft": "Early access.",
40560
- "x-route-path": "/access_grants"
40561
- },
40157
+ access_grant: { $ref: "#/components/schemas/access_grant" },
40562
40158
  ok: { type: "boolean" }
40563
40159
  },
40564
40160
  required: ["access_grant", "ok"],
@@ -40635,98 +40231,7 @@ var openapi_default = {
40635
40231
  schema: {
40636
40232
  properties: {
40637
40233
  access_grants: {
40638
- items: {
40639
- properties: {
40640
- access_grant_id: {
40641
- description: "ID of the access grant.",
40642
- format: "uuid",
40643
- type: "string"
40644
- },
40645
- access_method_ids: {
40646
- description: "IDs of the access methods that were created for this access grant.",
40647
- items: { format: "uuid", type: "string" },
40648
- type: "array"
40649
- },
40650
- created_at: {
40651
- description: "Date and time at which the access grant was created.",
40652
- format: "date-time",
40653
- type: "string"
40654
- },
40655
- display_name: {
40656
- description: "Display name of the access grant.",
40657
- type: "string"
40658
- },
40659
- location_ids: {
40660
- deprecated: true,
40661
- items: { format: "uuid", type: "string" },
40662
- type: "array",
40663
- "x-deprecated": "Use `space_ids`."
40664
- },
40665
- requested_access_methods: {
40666
- description: "Access methods that the user requested for this access grant.",
40667
- items: {
40668
- properties: {
40669
- created_access_method_ids: {
40670
- description: "IDs of the access methods that were created for this requested access method.",
40671
- items: { format: "uuid", type: "string" },
40672
- type: "array"
40673
- },
40674
- created_at: {
40675
- description: "Date and time at which the requested access method was added to this access grant.",
40676
- format: "date-time",
40677
- type: "string"
40678
- },
40679
- display_name: {
40680
- description: "Display name of the access method.",
40681
- type: "string"
40682
- },
40683
- mode: {
40684
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
40685
- enum: ["code", "card", "mobile_key"],
40686
- type: "string"
40687
- }
40688
- },
40689
- required: [
40690
- "display_name",
40691
- "mode",
40692
- "created_at",
40693
- "created_access_method_ids"
40694
- ],
40695
- type: "object"
40696
- },
40697
- type: "array"
40698
- },
40699
- space_ids: {
40700
- description: "IDs of the spaces to which access is being given.",
40701
- items: { format: "uuid", type: "string" },
40702
- type: "array"
40703
- },
40704
- user_identity_id: {
40705
- description: "ID of user identity to which access is being granted.",
40706
- format: "uuid",
40707
- type: "string"
40708
- },
40709
- workspace_id: {
40710
- description: "Unique identifier for the Seam workspace associated with the access grant.",
40711
- format: "uuid",
40712
- type: "string"
40713
- }
40714
- },
40715
- required: [
40716
- "workspace_id",
40717
- "access_grant_id",
40718
- "user_identity_id",
40719
- "location_ids",
40720
- "space_ids",
40721
- "requested_access_methods",
40722
- "access_method_ids",
40723
- "display_name",
40724
- "created_at"
40725
- ],
40726
- type: "object",
40727
- "x-draft": "Early access.",
40728
- "x-route-path": "/access_grants"
40729
- },
40234
+ items: { $ref: "#/components/schemas/access_grant" },
40730
40235
  type: "array"
40731
40236
  },
40732
40237
  ok: { type: "boolean" }
@@ -40836,55 +40341,7 @@ var openapi_default = {
40836
40341
  schema: {
40837
40342
  properties: {
40838
40343
  access_method: {
40839
- properties: {
40840
- access_method_id: {
40841
- description: "ID of the access method.",
40842
- format: "uuid",
40843
- type: "string"
40844
- },
40845
- created_at: {
40846
- description: "Date and time at which the access method was created.",
40847
- format: "date-time",
40848
- type: "string"
40849
- },
40850
- display_name: {
40851
- description: "Display name of the access method.",
40852
- type: "string"
40853
- },
40854
- instant_key_url: {
40855
- description: "URL of instant key for mobile key access methods.",
40856
- type: "string"
40857
- },
40858
- is_card_encoding_required: {
40859
- description: "Whether card encoding is required for plastic card access methods.",
40860
- type: "boolean"
40861
- },
40862
- issued_at: {
40863
- description: "Date and time at which the access method was issued.",
40864
- format: "date-time",
40865
- type: "string"
40866
- },
40867
- mode: {
40868
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
40869
- enum: ["code", "card", "mobile_key"],
40870
- type: "string"
40871
- },
40872
- workspace_id: {
40873
- description: "Unique identifier for the Seam workspace associated with the access grant.",
40874
- format: "uuid",
40875
- type: "string"
40876
- }
40877
- },
40878
- required: [
40879
- "workspace_id",
40880
- "access_method_id",
40881
- "display_name",
40882
- "mode",
40883
- "created_at"
40884
- ],
40885
- type: "object",
40886
- "x-draft": "Early access.",
40887
- "x-route-path": "/access_methods"
40344
+ $ref: "#/components/schemas/access_method"
40888
40345
  },
40889
40346
  ok: { type: "boolean" }
40890
40347
  },
@@ -40941,57 +40398,7 @@ var openapi_default = {
40941
40398
  schema: {
40942
40399
  properties: {
40943
40400
  access_methods: {
40944
- items: {
40945
- properties: {
40946
- access_method_id: {
40947
- description: "ID of the access method.",
40948
- format: "uuid",
40949
- type: "string"
40950
- },
40951
- created_at: {
40952
- description: "Date and time at which the access method was created.",
40953
- format: "date-time",
40954
- type: "string"
40955
- },
40956
- display_name: {
40957
- description: "Display name of the access method.",
40958
- type: "string"
40959
- },
40960
- instant_key_url: {
40961
- description: "URL of instant key for mobile key access methods.",
40962
- type: "string"
40963
- },
40964
- is_card_encoding_required: {
40965
- description: "Whether card encoding is required for plastic card access methods.",
40966
- type: "boolean"
40967
- },
40968
- issued_at: {
40969
- description: "Date and time at which the access method was issued.",
40970
- format: "date-time",
40971
- type: "string"
40972
- },
40973
- mode: {
40974
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
40975
- enum: ["code", "card", "mobile_key"],
40976
- type: "string"
40977
- },
40978
- workspace_id: {
40979
- description: "Unique identifier for the Seam workspace associated with the access grant.",
40980
- format: "uuid",
40981
- type: "string"
40982
- }
40983
- },
40984
- required: [
40985
- "workspace_id",
40986
- "access_method_id",
40987
- "display_name",
40988
- "mode",
40989
- "created_at"
40990
- ],
40991
- type: "object",
40992
- "x-draft": "Early access.",
40993
- "x-route-path": "/access_methods"
40994
- },
40401
+ items: { $ref: "#/components/schemas/access_method" },
40995
40402
  type: "array"
40996
40403
  },
40997
40404
  ok: { type: "boolean" }
@@ -42100,72 +41507,43 @@ var openapi_default = {
42100
41507
  content: {
42101
41508
  "application/json": {
42102
41509
  schema: {
42103
- oneOf: [
42104
- {
42105
- properties: {
42106
- building_block_type: {
42107
- description: "`connect_accounts` building block type.",
42108
- enum: ["connect_accounts"],
42109
- type: "string"
42110
- },
42111
- customer_key: {
42112
- description: "Customer key for which you want to create a new building block magic link.",
42113
- type: "string"
42114
- }
42115
- },
42116
- required: ["building_block_type", "customer_key"],
42117
- type: "object"
41510
+ properties: {
41511
+ building_block_type: {
41512
+ description: "Type of building block to create a magic link for.",
41513
+ enum: [
41514
+ "connect_accounts",
41515
+ "organize_spaces",
41516
+ "console",
41517
+ "manage_devices"
41518
+ ],
41519
+ type: "string"
42118
41520
  },
42119
- {
42120
- properties: {
42121
- building_block_type: {
42122
- description: "`manage_devices` building block type.",
42123
- enum: ["manage_devices"],
42124
- type: "string"
42125
- },
42126
- customer_key: {
42127
- description: "Customer key for which you want to create a new building block magic link.",
42128
- type: "string"
42129
- }
42130
- },
42131
- required: ["building_block_type", "customer_key"],
42132
- type: "object"
41521
+ customer_key: {
41522
+ description: "Customer key for which you want to create a new building block magic link.",
41523
+ type: "string"
42133
41524
  },
42134
- {
42135
- properties: {
42136
- building_block_type: {
42137
- description: "`organize_spaces` building block type.",
42138
- enum: ["organize_spaces"],
42139
- type: "string"
42140
- },
42141
- customer_key: {
42142
- description: "Customer key for which you want to create a new building block magic link.",
42143
- type: "string"
42144
- },
42145
- partner_resources: {
42146
- description: "Optional list of partner resources that you want to include in the new building block magic link.",
42147
- items: {
42148
- properties: {
42149
- custom_metadata: {
42150
- additionalProperties: { type: "string" },
42151
- type: "object"
42152
- },
42153
- description: { type: "string" },
42154
- name: { type: "string" },
42155
- partner_resource_key: { type: "string" }
42156
- },
42157
- required: ["partner_resource_key", "name"],
42158
- type: "object",
42159
- "x-route-path": "/unstable_partner/resources",
42160
- "x-undocumented": "Unreleased."
41525
+ spaces: {
41526
+ description: "Optional list of spaces that you want to include in the new building block magic link.",
41527
+ items: {
41528
+ properties: {
41529
+ custom_metadata: {
41530
+ additionalProperties: { type: "string" },
41531
+ type: "object"
42161
41532
  },
42162
- type: "array"
42163
- }
41533
+ description: { type: "string" },
41534
+ name: { type: "string" },
41535
+ space_key: { type: "string" }
41536
+ },
41537
+ required: ["space_key", "name"],
41538
+ type: "object",
41539
+ "x-route-path": "/unstable_partner/resources",
41540
+ "x-undocumented": "Unreleased."
42164
41541
  },
42165
- required: ["building_block_type", "customer_key"],
42166
- type: "object"
41542
+ type: "array"
42167
41543
  }
42168
- ]
41544
+ },
41545
+ required: ["building_block_type", "customer_key"],
41546
+ type: "object"
42169
41547
  }
42170
41548
  }
42171
41549
  }
@@ -42271,8 +41649,8 @@ var openapi_default = {
42271
41649
  description: "Customer key for which you want to organize spaces.",
42272
41650
  type: "string"
42273
41651
  },
42274
- partner_resources: {
42275
- description: "Optional list of partner resources that you want to include in the new building block magic link.",
41652
+ spaces: {
41653
+ description: "Optional list of spaces that you want to include in the new building block magic link.",
42276
41654
  items: {
42277
41655
  properties: {
42278
41656
  custom_metadata: {
@@ -42281,9 +41659,9 @@ var openapi_default = {
42281
41659
  },
42282
41660
  description: { type: "string" },
42283
41661
  name: { type: "string" },
42284
- partner_resource_key: { type: "string" }
41662
+ space_key: { type: "string" }
42285
41663
  },
42286
- required: ["partner_resource_key", "name"],
41664
+ required: ["space_key", "name"],
42287
41665
  type: "object",
42288
41666
  "x-route-path": "/unstable_partner/resources",
42289
41667
  "x-undocumented": "Unreleased."