@seamapi/types 1.476.0 → 1.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2268,6 +2268,53 @@ var unmanaged_access_code = access_code.pick({
2268
2268
 
2269
2269
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks)
2270
2270
  `);
2271
+ var requested_access_method = zod.z.object({
2272
+ display_name: zod.z.string().describe("Display name of the access method."),
2273
+ mode: zod.z.enum(["code", "card", "mobile_key"]).describe(
2274
+ "Access method mode. Supported values: `code`, `card`, `mobile_key`."
2275
+ ),
2276
+ created_at: zod.z.string().datetime().describe(
2277
+ "Date and time at which the requested access method was added to the Access Grant."
2278
+ ),
2279
+ created_access_method_ids: zod.z.array(zod.z.string().uuid()).describe(
2280
+ "IDs of the access methods created for the requested access method."
2281
+ )
2282
+ });
2283
+
2284
+ // src/lib/seam/connect/models/access-grants/access-grant.ts
2285
+ var access_grant = zod.z.object({
2286
+ workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the Access Grant."),
2287
+ access_grant_id: zod.z.string().uuid().describe("ID of the Access Grant."),
2288
+ access_grant_key: zod.z.string().optional().describe("Unique key for the access grant within the workspace."),
2289
+ user_identity_id: zod.z.string().uuid().describe("ID of user identity to which the Access Grant gives access."),
2290
+ location_ids: zod.z.array(zod.z.string().uuid()).describe(`
2291
+ ---
2292
+ deprecated: Use \`space_ids\`.
2293
+ ---
2294
+ `),
2295
+ space_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of the spaces to which the Access Grant gives access."),
2296
+ requested_access_methods: zod.z.array(requested_access_method).describe("Access methods that the user requested for the Access Grant."),
2297
+ access_method_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of the access methods created for the Access Grant."),
2298
+ client_session_token: zod.z.string().optional().describe(
2299
+ "Client Session Token. Only returned if the Access Grant has a mobile_key access method."
2300
+ ),
2301
+ name: zod.z.string().nullable().describe(
2302
+ "Name of the Access Grant. If not provided, the display name will be computed."
2303
+ ),
2304
+ display_name: zod.z.string().describe("Display name of the Access Grant."),
2305
+ instant_key_url: zod.z.string().url().optional().describe(
2306
+ "Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. "
2307
+ ),
2308
+ created_at: zod.z.string().datetime().describe("Date and time at which the Access Grant was created."),
2309
+ starts_at: zod.z.string().datetime().describe("Date and time at which the Access Grant starts."),
2310
+ ends_at: zod.z.string().datetime().nullable().describe("Date and time at which the Access Grant ends.")
2311
+ }).describe(`
2312
+ ---
2313
+ draft: Early access.
2314
+ route_path: /access_grants
2315
+ ---
2316
+ Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant.
2317
+ `);
2271
2318
  var access_method = zod.z.object({
2272
2319
  workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the access method."),
2273
2320
  access_method_id: zod.z.string().uuid().describe("ID of the access method."),
@@ -4161,7 +4208,8 @@ zod.z.object({
4161
4208
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4162
4209
  unmanaged_devices: unmanaged_device.array().optional(),
4163
4210
  connect_webviews: connect_webview.array().optional(),
4164
- access_methods: access_method.array().optional()
4211
+ access_methods: access_method.array().optional(),
4212
+ access_grants: access_grant.array().optional()
4165
4213
  }).describe("A batch of workspace resources.");
4166
4214
  var batch = zod.z.object({
4167
4215
  batch_type: zod.z.enum([
@@ -4185,7 +4233,8 @@ var batch = zod.z.object({
4185
4233
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4186
4234
  unmanaged_devices: unmanaged_device.array().optional(),
4187
4235
  connect_webviews: connect_webview.array().optional(),
4188
- access_methods: access_method.array().optional()
4236
+ access_methods: access_method.array().optional(),
4237
+ access_grants: access_grant.array().optional()
4189
4238
  }).describe("A batch of workspace resources.");
4190
4239
  var bridge = zod.z.object({
4191
4240
  bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
@@ -4265,12 +4314,20 @@ var bridge_client_session = zod.z.object({
4265
4314
  Represents a [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) client session.
4266
4315
  `);
4267
4316
  var customization_profile = zod.z.object({
4268
- workspace_id: zod.z.string().uuid(),
4269
4317
  customization_profile_id: zod.z.string().uuid(),
4270
- logo_url: zod.z.string().optional(),
4318
+ workspace_id: zod.z.string().uuid(),
4319
+ created_at: zod.z.string().datetime(),
4320
+ logo_url: zod.z.string().url().optional(),
4271
4321
  primary_color: zod.z.string().optional(),
4272
4322
  secondary_color: zod.z.string().optional()
4273
- });
4323
+ }).describe(`
4324
+ ---
4325
+ title: Customization Profile
4326
+ undocumented: Unreleased.
4327
+ route_path: /workspaces/customization_profiles
4328
+ ---
4329
+ A customization profile.
4330
+ `);
4274
4331
  var common_event = zod.z.object({
4275
4332
  event_id: zod.z.string().uuid().describe("ID of the event."),
4276
4333
  workspace_id: zod.z.string().uuid().describe(
@@ -31721,6 +31778,10 @@ var openapi_default = {
31721
31778
  batch: {
31722
31779
  description: "A batch of workspace resources.",
31723
31780
  properties: {
31781
+ access_grants: {
31782
+ items: { $ref: "#/components/schemas/access_grant" },
31783
+ type: "array"
31784
+ },
31724
31785
  access_methods: {
31725
31786
  items: { $ref: "#/components/schemas/access_method" },
31726
31787
  type: "array"
@@ -31882,6 +31943,10 @@ var openapi_default = {
31882
31943
  batch: {
31883
31944
  description: "A batch of workspace resources.",
31884
31945
  properties: {
31946
+ access_grants: {
31947
+ items: { $ref: "#/components/schemas/access_grant" },
31948
+ type: "array"
31949
+ },
31885
31950
  access_methods: {
31886
31951
  items: { $ref: "#/components/schemas/access_method" },
31887
31952
  type: "array"
@@ -57264,18 +57329,27 @@ var openapi_default = {
57264
57329
  schema: {
57265
57330
  properties: {
57266
57331
  customization_profile: {
57332
+ description: "A customization profile.",
57267
57333
  properties: {
57334
+ created_at: { format: "date-time", type: "string" },
57268
57335
  customization_profile_id: {
57269
57336
  format: "uuid",
57270
57337
  type: "string"
57271
57338
  },
57272
- logo_url: { type: "string" },
57339
+ logo_url: { format: "uri", type: "string" },
57273
57340
  primary_color: { type: "string" },
57274
57341
  secondary_color: { type: "string" },
57275
57342
  workspace_id: { format: "uuid", type: "string" }
57276
57343
  },
57277
- required: ["workspace_id", "customization_profile_id"],
57278
- type: "object"
57344
+ required: [
57345
+ "customization_profile_id",
57346
+ "workspace_id",
57347
+ "created_at"
57348
+ ],
57349
+ type: "object",
57350
+ "x-route-path": "/workspaces/customization_profiles",
57351
+ "x-title": "Customization Profile",
57352
+ "x-undocumented": "Unreleased."
57279
57353
  },
57280
57354
  ok: { type: "boolean" }
57281
57355
  },
@@ -57296,7 +57370,8 @@ var openapi_default = {
57296
57370
  "x-fern-sdk-method-name": "create",
57297
57371
  "x-fern-sdk-return-value": "customization_profile",
57298
57372
  "x-response-key": "customization_profile",
57299
- "x-title": "Update Customization Profile"
57373
+ "x-title": "Update Customization Profile",
57374
+ "x-undocumented": "Unreleased."
57300
57375
  }
57301
57376
  },
57302
57377
  "/workspaces/customization_profiles/get": {
@@ -57318,18 +57393,27 @@ var openapi_default = {
57318
57393
  schema: {
57319
57394
  properties: {
57320
57395
  customization_profile: {
57396
+ description: "A customization profile.",
57321
57397
  properties: {
57398
+ created_at: { format: "date-time", type: "string" },
57322
57399
  customization_profile_id: {
57323
57400
  format: "uuid",
57324
57401
  type: "string"
57325
57402
  },
57326
- logo_url: { type: "string" },
57403
+ logo_url: { format: "uri", type: "string" },
57327
57404
  primary_color: { type: "string" },
57328
57405
  secondary_color: { type: "string" },
57329
57406
  workspace_id: { format: "uuid", type: "string" }
57330
57407
  },
57331
- required: ["workspace_id", "customization_profile_id"],
57332
- type: "object"
57408
+ required: [
57409
+ "customization_profile_id",
57410
+ "workspace_id",
57411
+ "created_at"
57412
+ ],
57413
+ type: "object",
57414
+ "x-route-path": "/workspaces/customization_profiles",
57415
+ "x-title": "Customization Profile",
57416
+ "x-undocumented": "Unreleased."
57333
57417
  },
57334
57418
  ok: { type: "boolean" }
57335
57419
  },
@@ -57350,7 +57434,8 @@ var openapi_default = {
57350
57434
  "x-fern-sdk-method-name": "get",
57351
57435
  "x-fern-sdk-return-value": "customization_profile",
57352
57436
  "x-response-key": "customization_profile",
57353
- "x-title": "Get Customization Profile"
57437
+ "x-title": "Get Customization Profile",
57438
+ "x-undocumented": "Unreleased."
57354
57439
  },
57355
57440
  post: {
57356
57441
  description: "Retrieves the customization profile for the workspace.",
@@ -57375,18 +57460,27 @@ var openapi_default = {
57375
57460
  schema: {
57376
57461
  properties: {
57377
57462
  customization_profile: {
57463
+ description: "A customization profile.",
57378
57464
  properties: {
57465
+ created_at: { format: "date-time", type: "string" },
57379
57466
  customization_profile_id: {
57380
57467
  format: "uuid",
57381
57468
  type: "string"
57382
57469
  },
57383
- logo_url: { type: "string" },
57470
+ logo_url: { format: "uri", type: "string" },
57384
57471
  primary_color: { type: "string" },
57385
57472
  secondary_color: { type: "string" },
57386
57473
  workspace_id: { format: "uuid", type: "string" }
57387
57474
  },
57388
- required: ["workspace_id", "customization_profile_id"],
57389
- type: "object"
57475
+ required: [
57476
+ "customization_profile_id",
57477
+ "workspace_id",
57478
+ "created_at"
57479
+ ],
57480
+ type: "object",
57481
+ "x-route-path": "/workspaces/customization_profiles",
57482
+ "x-title": "Customization Profile",
57483
+ "x-undocumented": "Unreleased."
57390
57484
  },
57391
57485
  ok: { type: "boolean" }
57392
57486
  },
@@ -57407,7 +57501,8 @@ var openapi_default = {
57407
57501
  "x-fern-sdk-method-name": "get",
57408
57502
  "x-fern-sdk-return-value": "customization_profile",
57409
57503
  "x-response-key": "customization_profile",
57410
- "x-title": "Get Customization Profile"
57504
+ "x-title": "Get Customization Profile",
57505
+ "x-undocumented": "Unreleased."
57411
57506
  }
57412
57507
  },
57413
57508
  "/workspaces/customization_profiles/list": {
@@ -57422,18 +57517,27 @@ var openapi_default = {
57422
57517
  properties: {
57423
57518
  customization_profiles: {
57424
57519
  items: {
57520
+ description: "A customization profile.",
57425
57521
  properties: {
57522
+ created_at: { format: "date-time", type: "string" },
57426
57523
  customization_profile_id: {
57427
57524
  format: "uuid",
57428
57525
  type: "string"
57429
57526
  },
57430
- logo_url: { type: "string" },
57527
+ logo_url: { format: "uri", type: "string" },
57431
57528
  primary_color: { type: "string" },
57432
57529
  secondary_color: { type: "string" },
57433
57530
  workspace_id: { format: "uuid", type: "string" }
57434
57531
  },
57435
- required: ["workspace_id", "customization_profile_id"],
57436
- type: "object"
57532
+ required: [
57533
+ "customization_profile_id",
57534
+ "workspace_id",
57535
+ "created_at"
57536
+ ],
57537
+ type: "object",
57538
+ "x-route-path": "/workspaces/customization_profiles",
57539
+ "x-title": "Customization Profile",
57540
+ "x-undocumented": "Unreleased."
57437
57541
  },
57438
57542
  type: "array"
57439
57543
  },
@@ -57456,7 +57560,8 @@ var openapi_default = {
57456
57560
  "x-fern-sdk-method-name": "list",
57457
57561
  "x-fern-sdk-return-value": "customization_profiles",
57458
57562
  "x-response-key": "customization_profiles",
57459
- "x-title": "Get Customization Profile"
57563
+ "x-title": "Get Customization Profile",
57564
+ "x-undocumented": "Unreleased."
57460
57565
  },
57461
57566
  post: {
57462
57567
  description: "Retrieves the customization profile for the workspace.",
@@ -57469,18 +57574,27 @@ var openapi_default = {
57469
57574
  properties: {
57470
57575
  customization_profiles: {
57471
57576
  items: {
57577
+ description: "A customization profile.",
57472
57578
  properties: {
57579
+ created_at: { format: "date-time", type: "string" },
57473
57580
  customization_profile_id: {
57474
57581
  format: "uuid",
57475
57582
  type: "string"
57476
57583
  },
57477
- logo_url: { type: "string" },
57584
+ logo_url: { format: "uri", type: "string" },
57478
57585
  primary_color: { type: "string" },
57479
57586
  secondary_color: { type: "string" },
57480
57587
  workspace_id: { format: "uuid", type: "string" }
57481
57588
  },
57482
- required: ["workspace_id", "customization_profile_id"],
57483
- type: "object"
57589
+ required: [
57590
+ "customization_profile_id",
57591
+ "workspace_id",
57592
+ "created_at"
57593
+ ],
57594
+ type: "object",
57595
+ "x-route-path": "/workspaces/customization_profiles",
57596
+ "x-title": "Customization Profile",
57597
+ "x-undocumented": "Unreleased."
57484
57598
  },
57485
57599
  type: "array"
57486
57600
  },
@@ -57503,7 +57617,8 @@ var openapi_default = {
57503
57617
  "x-fern-sdk-method-name": "list",
57504
57618
  "x-fern-sdk-return-value": "customization_profiles",
57505
57619
  "x-response-key": "customization_profiles",
57506
- "x-title": "Get Customization Profile"
57620
+ "x-title": "Get Customization Profile",
57621
+ "x-undocumented": "Unreleased."
57507
57622
  }
57508
57623
  },
57509
57624
  "/workspaces/customization_profiles/update": {
@@ -57547,7 +57662,8 @@ var openapi_default = {
57547
57662
  "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57548
57663
  "x-fern-sdk-method-name": "update",
57549
57664
  "x-response-key": null,
57550
- "x-title": "Update Customization Profile"
57665
+ "x-title": "Update Customization Profile",
57666
+ "x-undocumented": "Unreleased."
57551
57667
  },
57552
57668
  post: {
57553
57669
  description: "Updates the customization profile for the workspace.",
@@ -57589,7 +57705,8 @@ var openapi_default = {
57589
57705
  "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57590
57706
  "x-fern-sdk-method-name": "update",
57591
57707
  "x-response-key": null,
57592
- "x-title": "Update Customization Profile"
57708
+ "x-title": "Update Customization Profile",
57709
+ "x-undocumented": "Unreleased."
57593
57710
  }
57594
57711
  },
57595
57712
  "/workspaces/customization_profiles/upload_images": {
@@ -57619,7 +57736,7 @@ var openapi_default = {
57619
57736
  "x-fern-sdk-method-name": "upload_images",
57620
57737
  "x-response-key": null,
57621
57738
  "x-title": "Upload Customization Profile Logo",
57622
- "x-undocumented": "Internal endpoint for customer portals."
57739
+ "x-undocumented": "Internal form-data endpoint for Console and Customer Portal."
57623
57740
  }
57624
57741
  },
57625
57742
  "/workspaces/find_resources": {
@@ -57643,6 +57760,10 @@ var openapi_default = {
57643
57760
  batch: {
57644
57761
  description: "A batch of workspace resources.",
57645
57762
  properties: {
57763
+ access_grants: {
57764
+ items: { $ref: "#/components/schemas/access_grant" },
57765
+ type: "array"
57766
+ },
57646
57767
  access_methods: {
57647
57768
  items: { $ref: "#/components/schemas/access_method" },
57648
57769
  type: "array"
@@ -57781,6 +57902,10 @@ var openapi_default = {
57781
57902
  batch: {
57782
57903
  description: "A batch of workspace resources.",
57783
57904
  properties: {
57905
+ access_grants: {
57906
+ items: { $ref: "#/components/schemas/access_grant" },
57907
+ type: "array"
57908
+ },
57784
57909
  access_methods: {
57785
57910
  items: { $ref: "#/components/schemas/access_method" },
57786
57911
  type: "array"