@seamapi/types 1.473.0 → 1.475.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/connect.cjs CHANGED
@@ -30,6 +30,7 @@ __export(schemas_exports, {
30
30
  connect_webview: () => connect_webview,
31
31
  connected_account: () => connected_account,
32
32
  custom_metadata: () => custom_metadata,
33
+ customization_profile: () => customization_profile,
33
34
  device: () => device,
34
35
  device_provider: () => device_provider,
35
36
  instant_key: () => instant_key,
@@ -2265,6 +2266,29 @@ var unmanaged_access_code = access_code.pick({
2265
2266
 
2266
2267
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks)
2267
2268
  `);
2269
+ var access_method = zod.z.object({
2270
+ workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the access method."),
2271
+ access_method_id: zod.z.string().uuid().describe("ID of the access method."),
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("Date and time at which the access method was created."),
2277
+ issued_at: zod.z.string().datetime().nullable().describe("Date and time at which the access method was issued."),
2278
+ is_issued: zod.z.boolean().describe("Indicates whether the access method has been issued."),
2279
+ instant_key_url: zod.z.string().url().optional().describe("URL of the Instant Key for mobile key access methods."),
2280
+ client_session_token: zod.z.string().optional().describe("Token of the client session associated with the access method."),
2281
+ is_encoding_required: zod.z.boolean().optional().describe(
2282
+ "Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method."
2283
+ ),
2284
+ code: zod.z.string().optional().describe("The actual PIN code for code access methods.")
2285
+ }).describe(`
2286
+ ---
2287
+ draft: Early access.
2288
+ route_path: /access_methods
2289
+ ---
2290
+ Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key.
2291
+ `);
2268
2292
  var acs_access_group_external_type = zod.z.enum([
2269
2293
  "pti_unit",
2270
2294
  "pti_access_level",
@@ -4134,7 +4158,8 @@ zod.z.object({
4134
4158
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
4135
4159
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4136
4160
  unmanaged_devices: unmanaged_device.array().optional(),
4137
- connect_webviews: connect_webview.array().optional()
4161
+ connect_webviews: connect_webview.array().optional(),
4162
+ access_methods: access_method.array().optional()
4138
4163
  }).describe("A batch of workspace resources.");
4139
4164
  var batch = zod.z.object({
4140
4165
  batch_type: zod.z.enum([
@@ -4157,7 +4182,8 @@ var batch = zod.z.object({
4157
4182
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
4158
4183
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4159
4184
  unmanaged_devices: unmanaged_device.array().optional(),
4160
- connect_webviews: connect_webview.array().optional()
4185
+ connect_webviews: connect_webview.array().optional(),
4186
+ access_methods: access_method.array().optional()
4161
4187
  }).describe("A batch of workspace resources.");
4162
4188
  var bridge = zod.z.object({
4163
4189
  bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
@@ -4236,6 +4262,13 @@ var bridge_client_session = zod.z.object({
4236
4262
  ---
4237
4263
  Represents a [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) client session.
4238
4264
  `);
4265
+ var customization_profile = zod.z.object({
4266
+ workspace_id: zod.z.string().uuid(),
4267
+ customization_profile_id: zod.z.string().uuid(),
4268
+ logo_url: zod.z.string().optional(),
4269
+ primary_color: zod.z.string().optional(),
4270
+ secondary_color: zod.z.string().optional()
4271
+ });
4239
4272
  var common_event = zod.z.object({
4240
4273
  event_id: zod.z.string().uuid().describe("ID of the event."),
4241
4274
  workspace_id: zod.z.string().uuid().describe(
@@ -31685,6 +31718,10 @@ var openapi_default = {
31685
31718
  batch: {
31686
31719
  description: "A batch of workspace resources.",
31687
31720
  properties: {
31721
+ access_methods: {
31722
+ items: { $ref: "#/components/schemas/access_method" },
31723
+ type: "array"
31724
+ },
31688
31725
  acs_access_groups: {
31689
31726
  items: {
31690
31727
  $ref: "#/components/schemas/acs_access_group"
@@ -31842,6 +31879,10 @@ var openapi_default = {
31842
31879
  batch: {
31843
31880
  description: "A batch of workspace resources.",
31844
31881
  properties: {
31882
+ access_methods: {
31883
+ items: { $ref: "#/components/schemas/access_method" },
31884
+ type: "array"
31885
+ },
31845
31886
  acs_access_groups: {
31846
31887
  items: {
31847
31888
  $ref: "#/components/schemas/acs_access_group"
@@ -57195,6 +57236,389 @@ var openapi_default = {
57195
57236
  "x-title": "Create a Workspace"
57196
57237
  }
57197
57238
  },
57239
+ "/workspaces/customization_profiles/create": {
57240
+ post: {
57241
+ description: "Updates the customization profile for the workspace.",
57242
+ operationId: "workspacesCustomizationProfilesCreatePost",
57243
+ requestBody: {
57244
+ content: {
57245
+ "application/json": {
57246
+ schema: {
57247
+ properties: {
57248
+ primary_color: { type: "string" },
57249
+ secondary_color: { type: "string" }
57250
+ },
57251
+ required: ["primary_color", "secondary_color"],
57252
+ type: "object"
57253
+ }
57254
+ }
57255
+ }
57256
+ },
57257
+ responses: {
57258
+ 200: {
57259
+ content: {
57260
+ "application/json": {
57261
+ schema: {
57262
+ properties: {
57263
+ customization_profile: {
57264
+ properties: {
57265
+ customization_profile_id: {
57266
+ format: "uuid",
57267
+ type: "string"
57268
+ },
57269
+ logo_url: { type: "string" },
57270
+ primary_color: { type: "string" },
57271
+ secondary_color: { type: "string" },
57272
+ workspace_id: { format: "uuid", type: "string" }
57273
+ },
57274
+ required: ["workspace_id", "customization_profile_id"],
57275
+ type: "object"
57276
+ },
57277
+ ok: { type: "boolean" }
57278
+ },
57279
+ required: ["customization_profile", "ok"],
57280
+ type: "object"
57281
+ }
57282
+ }
57283
+ },
57284
+ description: "OK"
57285
+ },
57286
+ 400: { description: "Bad Request" },
57287
+ 401: { description: "Unauthorized" }
57288
+ },
57289
+ security: [{ client_session_with_customer: [] }],
57290
+ summary: "/workspaces/customization_profiles/create",
57291
+ tags: ["/workspaces"],
57292
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57293
+ "x-fern-sdk-method-name": "create",
57294
+ "x-fern-sdk-return-value": "customization_profile",
57295
+ "x-response-key": "customization_profile",
57296
+ "x-title": "Update Customization Profile"
57297
+ }
57298
+ },
57299
+ "/workspaces/customization_profiles/get": {
57300
+ get: {
57301
+ description: "Retrieves the customization profile for the workspace.",
57302
+ operationId: "workspacesCustomizationProfilesGetGet",
57303
+ parameters: [
57304
+ {
57305
+ in: "query",
57306
+ name: "customization_profile_id",
57307
+ required: true,
57308
+ schema: { format: "uuid", type: "string" }
57309
+ }
57310
+ ],
57311
+ responses: {
57312
+ 200: {
57313
+ content: {
57314
+ "application/json": {
57315
+ schema: {
57316
+ properties: {
57317
+ customization_profile: {
57318
+ properties: {
57319
+ customization_profile_id: {
57320
+ format: "uuid",
57321
+ type: "string"
57322
+ },
57323
+ logo_url: { type: "string" },
57324
+ primary_color: { type: "string" },
57325
+ secondary_color: { type: "string" },
57326
+ workspace_id: { format: "uuid", type: "string" }
57327
+ },
57328
+ required: ["workspace_id", "customization_profile_id"],
57329
+ type: "object"
57330
+ },
57331
+ ok: { type: "boolean" }
57332
+ },
57333
+ required: ["customization_profile", "ok"],
57334
+ type: "object"
57335
+ }
57336
+ }
57337
+ },
57338
+ description: "OK"
57339
+ },
57340
+ 400: { description: "Bad Request" },
57341
+ 401: { description: "Unauthorized" }
57342
+ },
57343
+ security: [{ client_session_with_customer: [] }],
57344
+ summary: "/workspaces/customization_profiles/get",
57345
+ tags: ["/workspaces"],
57346
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57347
+ "x-fern-sdk-method-name": "get",
57348
+ "x-fern-sdk-return-value": "customization_profile",
57349
+ "x-response-key": "customization_profile",
57350
+ "x-title": "Get Customization Profile"
57351
+ },
57352
+ post: {
57353
+ description: "Retrieves the customization profile for the workspace.",
57354
+ operationId: "workspacesCustomizationProfilesGetPost",
57355
+ requestBody: {
57356
+ content: {
57357
+ "application/json": {
57358
+ schema: {
57359
+ properties: {
57360
+ customization_profile_id: { format: "uuid", type: "string" }
57361
+ },
57362
+ required: ["customization_profile_id"],
57363
+ type: "object"
57364
+ }
57365
+ }
57366
+ }
57367
+ },
57368
+ responses: {
57369
+ 200: {
57370
+ content: {
57371
+ "application/json": {
57372
+ schema: {
57373
+ properties: {
57374
+ customization_profile: {
57375
+ properties: {
57376
+ customization_profile_id: {
57377
+ format: "uuid",
57378
+ type: "string"
57379
+ },
57380
+ logo_url: { type: "string" },
57381
+ primary_color: { type: "string" },
57382
+ secondary_color: { type: "string" },
57383
+ workspace_id: { format: "uuid", type: "string" }
57384
+ },
57385
+ required: ["workspace_id", "customization_profile_id"],
57386
+ type: "object"
57387
+ },
57388
+ ok: { type: "boolean" }
57389
+ },
57390
+ required: ["customization_profile", "ok"],
57391
+ type: "object"
57392
+ }
57393
+ }
57394
+ },
57395
+ description: "OK"
57396
+ },
57397
+ 400: { description: "Bad Request" },
57398
+ 401: { description: "Unauthorized" }
57399
+ },
57400
+ security: [{ client_session_with_customer: [] }],
57401
+ summary: "/workspaces/customization_profiles/get",
57402
+ tags: ["/workspaces"],
57403
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57404
+ "x-fern-sdk-method-name": "get",
57405
+ "x-fern-sdk-return-value": "customization_profile",
57406
+ "x-response-key": "customization_profile",
57407
+ "x-title": "Get Customization Profile"
57408
+ }
57409
+ },
57410
+ "/workspaces/customization_profiles/list": {
57411
+ get: {
57412
+ description: "Retrieves the customization profile for the workspace.",
57413
+ operationId: "workspacesCustomizationProfilesListGet",
57414
+ responses: {
57415
+ 200: {
57416
+ content: {
57417
+ "application/json": {
57418
+ schema: {
57419
+ properties: {
57420
+ customization_profiles: {
57421
+ items: {
57422
+ properties: {
57423
+ customization_profile_id: {
57424
+ format: "uuid",
57425
+ type: "string"
57426
+ },
57427
+ logo_url: { type: "string" },
57428
+ primary_color: { type: "string" },
57429
+ secondary_color: { type: "string" },
57430
+ workspace_id: { format: "uuid", type: "string" }
57431
+ },
57432
+ required: ["workspace_id", "customization_profile_id"],
57433
+ type: "object"
57434
+ },
57435
+ type: "array"
57436
+ },
57437
+ ok: { type: "boolean" }
57438
+ },
57439
+ required: ["customization_profiles", "ok"],
57440
+ type: "object"
57441
+ }
57442
+ }
57443
+ },
57444
+ description: "OK"
57445
+ },
57446
+ 400: { description: "Bad Request" },
57447
+ 401: { description: "Unauthorized" }
57448
+ },
57449
+ security: [{ client_session_with_customer: [] }],
57450
+ summary: "/workspaces/customization_profiles/list",
57451
+ tags: ["/workspaces"],
57452
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57453
+ "x-fern-sdk-method-name": "list",
57454
+ "x-fern-sdk-return-value": "customization_profiles",
57455
+ "x-response-key": "customization_profiles",
57456
+ "x-title": "Get Customization Profile"
57457
+ },
57458
+ post: {
57459
+ description: "Retrieves the customization profile for the workspace.",
57460
+ operationId: "workspacesCustomizationProfilesListPost",
57461
+ responses: {
57462
+ 200: {
57463
+ content: {
57464
+ "application/json": {
57465
+ schema: {
57466
+ properties: {
57467
+ customization_profiles: {
57468
+ items: {
57469
+ properties: {
57470
+ customization_profile_id: {
57471
+ format: "uuid",
57472
+ type: "string"
57473
+ },
57474
+ logo_url: { type: "string" },
57475
+ primary_color: { type: "string" },
57476
+ secondary_color: { type: "string" },
57477
+ workspace_id: { format: "uuid", type: "string" }
57478
+ },
57479
+ required: ["workspace_id", "customization_profile_id"],
57480
+ type: "object"
57481
+ },
57482
+ type: "array"
57483
+ },
57484
+ ok: { type: "boolean" }
57485
+ },
57486
+ required: ["customization_profiles", "ok"],
57487
+ type: "object"
57488
+ }
57489
+ }
57490
+ },
57491
+ description: "OK"
57492
+ },
57493
+ 400: { description: "Bad Request" },
57494
+ 401: { description: "Unauthorized" }
57495
+ },
57496
+ security: [{ client_session_with_customer: [] }],
57497
+ summary: "/workspaces/customization_profiles/list",
57498
+ tags: ["/workspaces"],
57499
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57500
+ "x-fern-sdk-method-name": "list",
57501
+ "x-fern-sdk-return-value": "customization_profiles",
57502
+ "x-response-key": "customization_profiles",
57503
+ "x-title": "Get Customization Profile"
57504
+ }
57505
+ },
57506
+ "/workspaces/customization_profiles/update": {
57507
+ patch: {
57508
+ description: "Updates the customization profile for the workspace.",
57509
+ operationId: "workspacesCustomizationProfilesUpdatePatch",
57510
+ requestBody: {
57511
+ content: {
57512
+ "application/json": {
57513
+ schema: {
57514
+ properties: {
57515
+ customization_profile_id: { format: "uuid", type: "string" },
57516
+ primary_color: { type: "string" },
57517
+ secondary_color: { type: "string" }
57518
+ },
57519
+ required: ["customization_profile_id"],
57520
+ type: "object"
57521
+ }
57522
+ }
57523
+ }
57524
+ },
57525
+ responses: {
57526
+ 200: {
57527
+ content: {
57528
+ "application/json": {
57529
+ schema: {
57530
+ properties: { ok: { type: "boolean" } },
57531
+ required: ["ok"],
57532
+ type: "object"
57533
+ }
57534
+ }
57535
+ },
57536
+ description: "OK"
57537
+ },
57538
+ 400: { description: "Bad Request" },
57539
+ 401: { description: "Unauthorized" }
57540
+ },
57541
+ security: [{ client_session_with_customer: [] }],
57542
+ summary: "/workspaces/customization_profiles/update",
57543
+ tags: ["/workspaces"],
57544
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57545
+ "x-fern-sdk-method-name": "update",
57546
+ "x-response-key": null,
57547
+ "x-title": "Update Customization Profile"
57548
+ },
57549
+ post: {
57550
+ description: "Updates the customization profile for the workspace.",
57551
+ operationId: "workspacesCustomizationProfilesUpdatePost",
57552
+ requestBody: {
57553
+ content: {
57554
+ "application/json": {
57555
+ schema: {
57556
+ properties: {
57557
+ customization_profile_id: { format: "uuid", type: "string" },
57558
+ primary_color: { type: "string" },
57559
+ secondary_color: { type: "string" }
57560
+ },
57561
+ required: ["customization_profile_id"],
57562
+ type: "object"
57563
+ }
57564
+ }
57565
+ }
57566
+ },
57567
+ responses: {
57568
+ 200: {
57569
+ content: {
57570
+ "application/json": {
57571
+ schema: {
57572
+ properties: { ok: { type: "boolean" } },
57573
+ required: ["ok"],
57574
+ type: "object"
57575
+ }
57576
+ }
57577
+ },
57578
+ description: "OK"
57579
+ },
57580
+ 400: { description: "Bad Request" },
57581
+ 401: { description: "Unauthorized" }
57582
+ },
57583
+ security: [{ client_session_with_customer: [] }],
57584
+ summary: "/workspaces/customization_profiles/update",
57585
+ tags: ["/workspaces"],
57586
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57587
+ "x-fern-sdk-method-name": "update",
57588
+ "x-response-key": null,
57589
+ "x-title": "Update Customization Profile"
57590
+ }
57591
+ },
57592
+ "/workspaces/customization_profiles/upload_images": {
57593
+ post: {
57594
+ description: "Uploads a logo for the customization profile.",
57595
+ operationId: "workspacesCustomizationProfilesUploadImagesPost",
57596
+ responses: {
57597
+ 200: {
57598
+ content: {
57599
+ "application/json": {
57600
+ schema: {
57601
+ properties: { ok: { type: "boolean" } },
57602
+ required: ["ok"],
57603
+ type: "object"
57604
+ }
57605
+ }
57606
+ },
57607
+ description: "OK"
57608
+ },
57609
+ 400: { description: "Bad Request" },
57610
+ 401: { description: "Unauthorized" }
57611
+ },
57612
+ security: [{ client_session_with_customer: [] }],
57613
+ summary: "/workspaces/customization_profiles/upload_images",
57614
+ tags: ["/workspaces"],
57615
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57616
+ "x-fern-sdk-method-name": "upload_images",
57617
+ "x-response-key": null,
57618
+ "x-title": "Upload Customization Profile Logo",
57619
+ "x-undocumented": "Internal endpoint for customer portals."
57620
+ }
57621
+ },
57198
57622
  "/workspaces/find_resources": {
57199
57623
  get: {
57200
57624
  description: "Search for resources inside a workspace.",
@@ -57216,6 +57640,10 @@ var openapi_default = {
57216
57640
  batch: {
57217
57641
  description: "A batch of workspace resources.",
57218
57642
  properties: {
57643
+ access_methods: {
57644
+ items: { $ref: "#/components/schemas/access_method" },
57645
+ type: "array"
57646
+ },
57219
57647
  acs_access_groups: {
57220
57648
  items: {
57221
57649
  $ref: "#/components/schemas/acs_access_group"
@@ -57350,6 +57778,10 @@ var openapi_default = {
57350
57778
  batch: {
57351
57779
  description: "A batch of workspace resources.",
57352
57780
  properties: {
57781
+ access_methods: {
57782
+ items: { $ref: "#/components/schemas/access_method" },
57783
+ type: "array"
57784
+ },
57353
57785
  acs_access_groups: {
57354
57786
  items: {
57355
57787
  $ref: "#/components/schemas/acs_access_group"