@seamapi/types 1.474.0 → 1.476.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.
Files changed (32) hide show
  1. package/dist/connect.cjs +396 -2
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +663 -44
  4. package/dist/index.cjs +396 -2
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/batch.d.ts +55 -55
  7. package/lib/seam/connect/models/customization_profiles/customization_profile.d.ts +21 -0
  8. package/lib/seam/connect/models/customization_profiles/customization_profile.js +9 -0
  9. package/lib/seam/connect/models/customization_profiles/customization_profile.js.map +1 -0
  10. package/lib/seam/connect/models/devices/capability-properties/access-code.d.ts +11 -11
  11. package/lib/seam/connect/models/devices/capability-properties/access-code.js +1 -0
  12. package/lib/seam/connect/models/devices/capability-properties/access-code.js.map +1 -1
  13. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +5 -5
  14. package/lib/seam/connect/models/devices/device.d.ts +7 -7
  15. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -5
  16. package/lib/seam/connect/models/index.d.ts +1 -0
  17. package/lib/seam/connect/models/index.js +1 -0
  18. package/lib/seam/connect/models/index.js.map +1 -1
  19. package/lib/seam/connect/openapi.d.ts +520 -0
  20. package/lib/seam/connect/openapi.js +384 -0
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +95 -17
  23. package/lib/seam/connect/schemas.d.ts +1 -1
  24. package/lib/seam/connect/schemas.js +1 -1
  25. package/lib/seam/connect/schemas.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/lib/seam/connect/models/customization_profiles/customization_profile.ts +11 -0
  28. package/src/lib/seam/connect/models/devices/capability-properties/access-code.ts +1 -0
  29. package/src/lib/seam/connect/models/index.ts +1 -0
  30. package/src/lib/seam/connect/openapi.ts +384 -0
  31. package/src/lib/seam/connect/route-types.ts +95 -0
  32. package/src/lib/seam/connect/schemas.ts +1 -0
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,
@@ -79,8 +80,10 @@ var access_code_code_constraint = zod.z.object({
79
80
  // Tedee
80
81
  "cannot_contain_089",
81
82
  // TTLock
82
- "cannot_contain_0789"
83
+ "cannot_contain_0789",
83
84
  // TTLock (for some cylinder devices only)
85
+ "unique_first_four_digits"
86
+ // Schlage
84
87
  ]).describe(`Code constraint type for access codes.`)
85
88
  }).describe(`Code constraint for access codes.`);
86
89
  var access_code_name_constraint = zod.z.object({
@@ -4261,6 +4264,13 @@ var bridge_client_session = zod.z.object({
4261
4264
  ---
4262
4265
  Represents a [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) client session.
4263
4266
  `);
4267
+ var customization_profile = zod.z.object({
4268
+ workspace_id: zod.z.string().uuid(),
4269
+ customization_profile_id: zod.z.string().uuid(),
4270
+ logo_url: zod.z.string().optional(),
4271
+ primary_color: zod.z.string().optional(),
4272
+ secondary_color: zod.z.string().optional()
4273
+ });
4264
4274
  var common_event = zod.z.object({
4265
4275
  event_id: zod.z.string().uuid().describe("ID of the event."),
4266
4276
  workspace_id: zod.z.string().uuid().describe(
@@ -15659,7 +15669,8 @@ var openapi_default = {
15659
15669
  "no_ascending_or_descending_sequence",
15660
15670
  "at_least_three_unique_digits",
15661
15671
  "cannot_contain_089",
15662
- "cannot_contain_0789"
15672
+ "cannot_contain_0789",
15673
+ "unique_first_four_digits"
15663
15674
  ],
15664
15675
  type: "string"
15665
15676
  }
@@ -57228,6 +57239,389 @@ var openapi_default = {
57228
57239
  "x-title": "Create a Workspace"
57229
57240
  }
57230
57241
  },
57242
+ "/workspaces/customization_profiles/create": {
57243
+ post: {
57244
+ description: "Updates the customization profile for the workspace.",
57245
+ operationId: "workspacesCustomizationProfilesCreatePost",
57246
+ requestBody: {
57247
+ content: {
57248
+ "application/json": {
57249
+ schema: {
57250
+ properties: {
57251
+ primary_color: { type: "string" },
57252
+ secondary_color: { type: "string" }
57253
+ },
57254
+ required: ["primary_color", "secondary_color"],
57255
+ type: "object"
57256
+ }
57257
+ }
57258
+ }
57259
+ },
57260
+ responses: {
57261
+ 200: {
57262
+ content: {
57263
+ "application/json": {
57264
+ schema: {
57265
+ properties: {
57266
+ customization_profile: {
57267
+ properties: {
57268
+ customization_profile_id: {
57269
+ format: "uuid",
57270
+ type: "string"
57271
+ },
57272
+ logo_url: { type: "string" },
57273
+ primary_color: { type: "string" },
57274
+ secondary_color: { type: "string" },
57275
+ workspace_id: { format: "uuid", type: "string" }
57276
+ },
57277
+ required: ["workspace_id", "customization_profile_id"],
57278
+ type: "object"
57279
+ },
57280
+ ok: { type: "boolean" }
57281
+ },
57282
+ required: ["customization_profile", "ok"],
57283
+ type: "object"
57284
+ }
57285
+ }
57286
+ },
57287
+ description: "OK"
57288
+ },
57289
+ 400: { description: "Bad Request" },
57290
+ 401: { description: "Unauthorized" }
57291
+ },
57292
+ security: [{ client_session_with_customer: [] }],
57293
+ summary: "/workspaces/customization_profiles/create",
57294
+ tags: ["/workspaces"],
57295
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57296
+ "x-fern-sdk-method-name": "create",
57297
+ "x-fern-sdk-return-value": "customization_profile",
57298
+ "x-response-key": "customization_profile",
57299
+ "x-title": "Update Customization Profile"
57300
+ }
57301
+ },
57302
+ "/workspaces/customization_profiles/get": {
57303
+ get: {
57304
+ description: "Retrieves the customization profile for the workspace.",
57305
+ operationId: "workspacesCustomizationProfilesGetGet",
57306
+ parameters: [
57307
+ {
57308
+ in: "query",
57309
+ name: "customization_profile_id",
57310
+ required: true,
57311
+ schema: { format: "uuid", type: "string" }
57312
+ }
57313
+ ],
57314
+ responses: {
57315
+ 200: {
57316
+ content: {
57317
+ "application/json": {
57318
+ schema: {
57319
+ properties: {
57320
+ customization_profile: {
57321
+ properties: {
57322
+ customization_profile_id: {
57323
+ format: "uuid",
57324
+ type: "string"
57325
+ },
57326
+ logo_url: { type: "string" },
57327
+ primary_color: { type: "string" },
57328
+ secondary_color: { type: "string" },
57329
+ workspace_id: { format: "uuid", type: "string" }
57330
+ },
57331
+ required: ["workspace_id", "customization_profile_id"],
57332
+ type: "object"
57333
+ },
57334
+ ok: { type: "boolean" }
57335
+ },
57336
+ required: ["customization_profile", "ok"],
57337
+ type: "object"
57338
+ }
57339
+ }
57340
+ },
57341
+ description: "OK"
57342
+ },
57343
+ 400: { description: "Bad Request" },
57344
+ 401: { description: "Unauthorized" }
57345
+ },
57346
+ security: [{ client_session_with_customer: [] }],
57347
+ summary: "/workspaces/customization_profiles/get",
57348
+ tags: ["/workspaces"],
57349
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57350
+ "x-fern-sdk-method-name": "get",
57351
+ "x-fern-sdk-return-value": "customization_profile",
57352
+ "x-response-key": "customization_profile",
57353
+ "x-title": "Get Customization Profile"
57354
+ },
57355
+ post: {
57356
+ description: "Retrieves the customization profile for the workspace.",
57357
+ operationId: "workspacesCustomizationProfilesGetPost",
57358
+ requestBody: {
57359
+ content: {
57360
+ "application/json": {
57361
+ schema: {
57362
+ properties: {
57363
+ customization_profile_id: { format: "uuid", type: "string" }
57364
+ },
57365
+ required: ["customization_profile_id"],
57366
+ type: "object"
57367
+ }
57368
+ }
57369
+ }
57370
+ },
57371
+ responses: {
57372
+ 200: {
57373
+ content: {
57374
+ "application/json": {
57375
+ schema: {
57376
+ properties: {
57377
+ customization_profile: {
57378
+ properties: {
57379
+ customization_profile_id: {
57380
+ format: "uuid",
57381
+ type: "string"
57382
+ },
57383
+ logo_url: { type: "string" },
57384
+ primary_color: { type: "string" },
57385
+ secondary_color: { type: "string" },
57386
+ workspace_id: { format: "uuid", type: "string" }
57387
+ },
57388
+ required: ["workspace_id", "customization_profile_id"],
57389
+ type: "object"
57390
+ },
57391
+ ok: { type: "boolean" }
57392
+ },
57393
+ required: ["customization_profile", "ok"],
57394
+ type: "object"
57395
+ }
57396
+ }
57397
+ },
57398
+ description: "OK"
57399
+ },
57400
+ 400: { description: "Bad Request" },
57401
+ 401: { description: "Unauthorized" }
57402
+ },
57403
+ security: [{ client_session_with_customer: [] }],
57404
+ summary: "/workspaces/customization_profiles/get",
57405
+ tags: ["/workspaces"],
57406
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57407
+ "x-fern-sdk-method-name": "get",
57408
+ "x-fern-sdk-return-value": "customization_profile",
57409
+ "x-response-key": "customization_profile",
57410
+ "x-title": "Get Customization Profile"
57411
+ }
57412
+ },
57413
+ "/workspaces/customization_profiles/list": {
57414
+ get: {
57415
+ description: "Retrieves the customization profile for the workspace.",
57416
+ operationId: "workspacesCustomizationProfilesListGet",
57417
+ responses: {
57418
+ 200: {
57419
+ content: {
57420
+ "application/json": {
57421
+ schema: {
57422
+ properties: {
57423
+ customization_profiles: {
57424
+ items: {
57425
+ properties: {
57426
+ customization_profile_id: {
57427
+ format: "uuid",
57428
+ type: "string"
57429
+ },
57430
+ logo_url: { type: "string" },
57431
+ primary_color: { type: "string" },
57432
+ secondary_color: { type: "string" },
57433
+ workspace_id: { format: "uuid", type: "string" }
57434
+ },
57435
+ required: ["workspace_id", "customization_profile_id"],
57436
+ type: "object"
57437
+ },
57438
+ type: "array"
57439
+ },
57440
+ ok: { type: "boolean" }
57441
+ },
57442
+ required: ["customization_profiles", "ok"],
57443
+ type: "object"
57444
+ }
57445
+ }
57446
+ },
57447
+ description: "OK"
57448
+ },
57449
+ 400: { description: "Bad Request" },
57450
+ 401: { description: "Unauthorized" }
57451
+ },
57452
+ security: [{ client_session_with_customer: [] }],
57453
+ summary: "/workspaces/customization_profiles/list",
57454
+ tags: ["/workspaces"],
57455
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57456
+ "x-fern-sdk-method-name": "list",
57457
+ "x-fern-sdk-return-value": "customization_profiles",
57458
+ "x-response-key": "customization_profiles",
57459
+ "x-title": "Get Customization Profile"
57460
+ },
57461
+ post: {
57462
+ description: "Retrieves the customization profile for the workspace.",
57463
+ operationId: "workspacesCustomizationProfilesListPost",
57464
+ responses: {
57465
+ 200: {
57466
+ content: {
57467
+ "application/json": {
57468
+ schema: {
57469
+ properties: {
57470
+ customization_profiles: {
57471
+ items: {
57472
+ properties: {
57473
+ customization_profile_id: {
57474
+ format: "uuid",
57475
+ type: "string"
57476
+ },
57477
+ logo_url: { type: "string" },
57478
+ primary_color: { type: "string" },
57479
+ secondary_color: { type: "string" },
57480
+ workspace_id: { format: "uuid", type: "string" }
57481
+ },
57482
+ required: ["workspace_id", "customization_profile_id"],
57483
+ type: "object"
57484
+ },
57485
+ type: "array"
57486
+ },
57487
+ ok: { type: "boolean" }
57488
+ },
57489
+ required: ["customization_profiles", "ok"],
57490
+ type: "object"
57491
+ }
57492
+ }
57493
+ },
57494
+ description: "OK"
57495
+ },
57496
+ 400: { description: "Bad Request" },
57497
+ 401: { description: "Unauthorized" }
57498
+ },
57499
+ security: [{ client_session_with_customer: [] }],
57500
+ summary: "/workspaces/customization_profiles/list",
57501
+ tags: ["/workspaces"],
57502
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57503
+ "x-fern-sdk-method-name": "list",
57504
+ "x-fern-sdk-return-value": "customization_profiles",
57505
+ "x-response-key": "customization_profiles",
57506
+ "x-title": "Get Customization Profile"
57507
+ }
57508
+ },
57509
+ "/workspaces/customization_profiles/update": {
57510
+ patch: {
57511
+ description: "Updates the customization profile for the workspace.",
57512
+ operationId: "workspacesCustomizationProfilesUpdatePatch",
57513
+ requestBody: {
57514
+ content: {
57515
+ "application/json": {
57516
+ schema: {
57517
+ properties: {
57518
+ customization_profile_id: { format: "uuid", type: "string" },
57519
+ primary_color: { type: "string" },
57520
+ secondary_color: { type: "string" }
57521
+ },
57522
+ required: ["customization_profile_id"],
57523
+ type: "object"
57524
+ }
57525
+ }
57526
+ }
57527
+ },
57528
+ responses: {
57529
+ 200: {
57530
+ content: {
57531
+ "application/json": {
57532
+ schema: {
57533
+ properties: { ok: { type: "boolean" } },
57534
+ required: ["ok"],
57535
+ type: "object"
57536
+ }
57537
+ }
57538
+ },
57539
+ description: "OK"
57540
+ },
57541
+ 400: { description: "Bad Request" },
57542
+ 401: { description: "Unauthorized" }
57543
+ },
57544
+ security: [{ client_session_with_customer: [] }],
57545
+ summary: "/workspaces/customization_profiles/update",
57546
+ tags: ["/workspaces"],
57547
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57548
+ "x-fern-sdk-method-name": "update",
57549
+ "x-response-key": null,
57550
+ "x-title": "Update Customization Profile"
57551
+ },
57552
+ post: {
57553
+ description: "Updates the customization profile for the workspace.",
57554
+ operationId: "workspacesCustomizationProfilesUpdatePost",
57555
+ requestBody: {
57556
+ content: {
57557
+ "application/json": {
57558
+ schema: {
57559
+ properties: {
57560
+ customization_profile_id: { format: "uuid", type: "string" },
57561
+ primary_color: { type: "string" },
57562
+ secondary_color: { type: "string" }
57563
+ },
57564
+ required: ["customization_profile_id"],
57565
+ type: "object"
57566
+ }
57567
+ }
57568
+ }
57569
+ },
57570
+ responses: {
57571
+ 200: {
57572
+ content: {
57573
+ "application/json": {
57574
+ schema: {
57575
+ properties: { ok: { type: "boolean" } },
57576
+ required: ["ok"],
57577
+ type: "object"
57578
+ }
57579
+ }
57580
+ },
57581
+ description: "OK"
57582
+ },
57583
+ 400: { description: "Bad Request" },
57584
+ 401: { description: "Unauthorized" }
57585
+ },
57586
+ security: [{ client_session_with_customer: [] }],
57587
+ summary: "/workspaces/customization_profiles/update",
57588
+ tags: ["/workspaces"],
57589
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57590
+ "x-fern-sdk-method-name": "update",
57591
+ "x-response-key": null,
57592
+ "x-title": "Update Customization Profile"
57593
+ }
57594
+ },
57595
+ "/workspaces/customization_profiles/upload_images": {
57596
+ post: {
57597
+ description: "Uploads a logo for the customization profile.",
57598
+ operationId: "workspacesCustomizationProfilesUploadImagesPost",
57599
+ responses: {
57600
+ 200: {
57601
+ content: {
57602
+ "application/json": {
57603
+ schema: {
57604
+ properties: { ok: { type: "boolean" } },
57605
+ required: ["ok"],
57606
+ type: "object"
57607
+ }
57608
+ }
57609
+ },
57610
+ description: "OK"
57611
+ },
57612
+ 400: { description: "Bad Request" },
57613
+ 401: { description: "Unauthorized" }
57614
+ },
57615
+ security: [{ client_session_with_customer: [] }],
57616
+ summary: "/workspaces/customization_profiles/upload_images",
57617
+ tags: ["/workspaces"],
57618
+ "x-fern-sdk-group-name": ["workspaces", "customization_profiles"],
57619
+ "x-fern-sdk-method-name": "upload_images",
57620
+ "x-response-key": null,
57621
+ "x-title": "Upload Customization Profile Logo",
57622
+ "x-undocumented": "Internal endpoint for customer portals."
57623
+ }
57624
+ },
57231
57625
  "/workspaces/find_resources": {
57232
57626
  get: {
57233
57627
  description: "Search for resources inside a workspace.",