@seamapi/types 1.639.0 → 1.641.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 (34) hide show
  1. package/dist/connect.cjs +69 -24
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +219 -40
  4. package/dist/index.cjs +69 -24
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/model-types.d.ts +1 -1
  8. package/lib/seam/connect/models/batch.d.ts +106 -26
  9. package/lib/seam/connect/models/customer/customer-portal.d.ts +14 -0
  10. package/lib/seam/connect/models/customer/customer-portal.js +5 -0
  11. package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
  12. package/lib/seam/connect/models/customization-profiles/customization-profile.d.ts +46 -2
  13. package/lib/seam/connect/models/customization-profiles/customization-profile.js +8 -0
  14. package/lib/seam/connect/models/customization-profiles/customization-profile.js.map +1 -1
  15. package/lib/seam/connect/models/instant-keys/instant-key.d.ts +4 -4
  16. package/lib/seam/connect/models/partner/magic-link.d.ts +0 -5
  17. package/lib/seam/connect/models/partner/magic-link.js +0 -4
  18. package/lib/seam/connect/models/partner/magic-link.js.map +1 -1
  19. package/lib/seam/connect/openapi.d.ts +85 -6
  20. package/lib/seam/connect/openapi.js +53 -12
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +48 -10
  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/internal/schemas.ts +1 -1
  28. package/src/lib/seam/connect/model-types.ts +0 -1
  29. package/src/lib/seam/connect/models/customer/customer-portal.ts +5 -0
  30. package/src/lib/seam/connect/models/customization-profiles/customization-profile.ts +10 -0
  31. package/src/lib/seam/connect/models/partner/magic-link.ts +0 -7
  32. package/src/lib/seam/connect/openapi.ts +56 -12
  33. package/src/lib/seam/connect/route-types.ts +65 -26
  34. package/src/lib/seam/connect/schemas.ts +0 -1
package/dist/index.cjs CHANGED
@@ -22,7 +22,6 @@ __export(schemas_exports, {
22
22
  batch: () => batch,
23
23
  bridge: () => bridge,
24
24
  bridge_client_session: () => bridge_client_session,
25
- building_block_type: () => building_block_type,
26
25
  client_session: () => client_session,
27
26
  common_failed_action_attempt: () => common_failed_action_attempt,
28
27
  common_pending_action_attempt: () => common_pending_action_attempt,
@@ -4197,6 +4196,20 @@ var connect_webview = zod.z.object({
4197
4196
 
4198
4197
  To list all providers within a category, use \`/devices/list_device_providers\` with the desired \`provider_category\` filter. To list all provider keys, use \`/devices/list_device_providers\` with no filters.
4199
4198
  `);
4199
+ var hex_color_code = zod.z.string().refine((value) => {
4200
+ if (value != null) {
4201
+ return /^#[\da-fa-z]{3,6}$/i.test(value);
4202
+ }
4203
+ return true;
4204
+ }, "Must be a hex color");
4205
+
4206
+ // src/lib/seam/connect/models/customization-profiles/customization-profile.ts
4207
+ var customer_portal_theme = zod.z.object({
4208
+ primary_color: hex_color_code.optional(),
4209
+ primary_foreground_color: hex_color_code.optional(),
4210
+ secondary_color: hex_color_code.optional(),
4211
+ secondary_foreground_color: hex_color_code.optional()
4212
+ });
4200
4213
  var customization_profile = zod.z.object({
4201
4214
  workspace_id: zod.z.string().uuid(),
4202
4215
  name: zod.z.string().nullable(),
@@ -4204,7 +4217,8 @@ var customization_profile = zod.z.object({
4204
4217
  created_at: zod.z.string().datetime(),
4205
4218
  logo_url: zod.z.string().url().optional(),
4206
4219
  primary_color: zod.z.string().optional(),
4207
- secondary_color: zod.z.string().optional()
4220
+ secondary_color: zod.z.string().optional(),
4221
+ customer_portal_theme: customer_portal_theme.optional()
4208
4222
  }).describe(`
4209
4223
  ---
4210
4224
  title: Customization Profile
@@ -5521,14 +5535,6 @@ user_identity.omit({
5521
5535
  ---
5522
5536
  Represents an unmanaged user identity. Unmanaged user identities do not have keys.
5523
5537
  `);
5524
- var hex_color_code = zod.z.string().refine((value) => {
5525
- if (value != null) {
5526
- return /^#[\da-fa-z]{3,6}$/i.test(value);
5527
- }
5528
- return true;
5529
- }, "Must be a hex color");
5530
-
5531
- // src/lib/seam/connect/models/workspaces/workspace.ts
5532
5538
  var workspace = zod.z.object({
5533
5539
  workspace_id: zod.z.string().uuid().describe(
5534
5540
  "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces)."
@@ -5846,10 +5852,8 @@ var pagination = zod.z.object({
5846
5852
  ),
5847
5853
  next_page_url: zod.z.string().url().nullable().describe("URL to get the next page of results.")
5848
5854
  }).describe("Information about the current page of results.");
5849
- var building_block_type = zod.z.enum(["connect_accounts", "manage_devices", "organize_spaces", "console"]).describe("Type of partner building block.");
5850
5855
  var magic_link = zod.z.object({
5851
5856
  url: zod.z.string().url().describe("URL for the magic link."),
5852
- building_block_type,
5853
5857
  customer_key: zod.z.string().describe("Customer key for the magic link."),
5854
5858
  expires_at: zod.z.string().datetime().describe("Date and time at which the magic link expires."),
5855
5859
  workspace_id: zod.z.string().uuid().describe(
@@ -14197,6 +14201,15 @@ var openapi_default = {
14197
14201
  description: "A customization profile.",
14198
14202
  properties: {
14199
14203
  created_at: { format: "date-time", type: "string" },
14204
+ customer_portal_theme: {
14205
+ properties: {
14206
+ primary_color: { type: "string" },
14207
+ primary_foreground_color: { type: "string" },
14208
+ secondary_color: { type: "string" },
14209
+ secondary_foreground_color: { type: "string" }
14210
+ },
14211
+ type: "object"
14212
+ },
14200
14213
  customization_profile_id: { format: "uuid", type: "string" },
14201
14214
  logo_url: { format: "uri", type: "string" },
14202
14215
  name: { nullable: true, type: "string" },
@@ -23579,16 +23592,6 @@ var openapi_default = {
23579
23592
  magic_link: {
23580
23593
  description: "Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product\u2014either by sharing a link with users or embedding a view in an iframe.\n\nWith Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.\n\nSeam hosts these flows, handling everything from account connection and device mapping to full-featured device control.",
23581
23594
  properties: {
23582
- building_block_type: {
23583
- description: "Type of partner building block.",
23584
- enum: [
23585
- "connect_accounts",
23586
- "manage_devices",
23587
- "organize_spaces",
23588
- "console"
23589
- ],
23590
- type: "string"
23591
- },
23592
23595
  created_at: {
23593
23596
  description: "Date and time at which the magic link was created.",
23594
23597
  format: "date-time",
@@ -23616,7 +23619,6 @@ var openapi_default = {
23616
23619
  },
23617
23620
  required: [
23618
23621
  "url",
23619
- "building_block_type",
23620
23622
  "customer_key",
23621
23623
  "expires_at",
23622
23624
  "workspace_id",
@@ -43504,6 +43506,11 @@ var openapi_default = {
43504
43506
  description: "Indicates whether the customer can customize the Instant Key profile for their properties.",
43505
43507
  type: "boolean"
43506
43508
  },
43509
+ customization_profile_id: {
43510
+ description: "The ID of the customization profile to use for the portal.",
43511
+ format: "uuid",
43512
+ type: "string"
43513
+ },
43507
43514
  exclude: {
43508
43515
  default: false,
43509
43516
  description: "Whether to exclude this feature from the portal.",
@@ -55575,6 +55582,11 @@ var openapi_default = {
55575
55582
  description: "Indicates whether the customer can customize the Instant Key profile for their properties.",
55576
55583
  type: "boolean"
55577
55584
  },
55585
+ customization_profile_id: {
55586
+ description: "The ID of the customization profile to use for the portal.",
55587
+ format: "uuid",
55588
+ type: "string"
55589
+ },
55578
55590
  exclude: {
55579
55591
  default: false,
55580
55592
  description: "Whether to exclude this feature from the portal.",
@@ -55861,6 +55873,11 @@ var openapi_default = {
55861
55873
  description: "Indicates whether the customer can customize the Instant Key profile for their properties.",
55862
55874
  type: "boolean"
55863
55875
  },
55876
+ customization_profile_id: {
55877
+ description: "The ID of the customization profile to use for the portal.",
55878
+ format: "uuid",
55879
+ type: "string"
55880
+ },
55864
55881
  exclude: {
55865
55882
  default: false,
55866
55883
  description: "Whether to exclude this feature from the portal.",
@@ -66211,11 +66228,19 @@ var openapi_default = {
66211
66228
  "application/json": {
66212
66229
  schema: {
66213
66230
  properties: {
66231
+ customer_portal_theme: {
66232
+ properties: {
66233
+ primary_color: { type: "string" },
66234
+ primary_foreground_color: { type: "string" },
66235
+ secondary_color: { type: "string" },
66236
+ secondary_foreground_color: { type: "string" }
66237
+ },
66238
+ type: "object"
66239
+ },
66214
66240
  name: { default: null, nullable: true, type: "string" },
66215
66241
  primary_color: { type: "string" },
66216
66242
  secondary_color: { type: "string" }
66217
66243
  },
66218
- required: ["primary_color", "secondary_color"],
66219
66244
  type: "object"
66220
66245
  }
66221
66246
  }
@@ -66479,6 +66504,16 @@ var openapi_default = {
66479
66504
  "application/json": {
66480
66505
  schema: {
66481
66506
  properties: {
66507
+ customer_portal_theme: {
66508
+ nullable: true,
66509
+ properties: {
66510
+ primary_color: { type: "string" },
66511
+ primary_foreground_color: { type: "string" },
66512
+ secondary_color: { type: "string" },
66513
+ secondary_foreground_color: { type: "string" }
66514
+ },
66515
+ type: "object"
66516
+ },
66482
66517
  customization_profile_id: { format: "uuid", type: "string" },
66483
66518
  name: { nullable: true, type: "string" },
66484
66519
  primary_color: { type: "string" },
@@ -66528,6 +66563,16 @@ var openapi_default = {
66528
66563
  "application/json": {
66529
66564
  schema: {
66530
66565
  properties: {
66566
+ customer_portal_theme: {
66567
+ nullable: true,
66568
+ properties: {
66569
+ primary_color: { type: "string" },
66570
+ primary_foreground_color: { type: "string" },
66571
+ secondary_color: { type: "string" },
66572
+ secondary_foreground_color: { type: "string" }
66573
+ },
66574
+ type: "object"
66575
+ },
66531
66576
  customization_profile_id: { format: "uuid", type: "string" },
66532
66577
  name: { nullable: true, type: "string" },
66533
66578
  primary_color: { type: "string" },