@seamapi/types 1.1127.0 → 1.1128.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1127.0",
3
+ "version": "1.1128.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -44,6 +44,7 @@ export {
44
44
  customer,
45
45
  customer_data,
46
46
  customer_portal,
47
+ customer_portal_features,
47
48
  customer_portal_theme,
48
49
  datetime,
49
50
  device_capability_flags,
@@ -150,6 +150,30 @@ const base_features = z.object({
150
150
  .describe('Configuration for the configure feature.'),
151
151
  })
152
152
 
153
+ export const customer_portal_features = z
154
+ .object({
155
+ connect: base_connect_feature
156
+ .partial()
157
+ .describe('Configuration for the connect accounts feature.'),
158
+ manage: base_manage_feature
159
+ .partial()
160
+ .describe('Configuration for the manage feature.'),
161
+ manage_devices: base_manage_devices_feature.partial().describe(`
162
+ Configuration for the manage devices feature.
163
+ ---
164
+ deprecated: Use \`manage\` instead.
165
+ ---
166
+ `),
167
+ organize: base_organize_feature
168
+ .partial()
169
+ .describe('Configuration for the organize feature.'),
170
+ configure: base_configure_feature
171
+ .partial()
172
+ .describe('Configuration for the configure feature.'),
173
+ })
174
+ .partial()
175
+ .describe('Customer portal features. Settings you omit use the Seam default.')
176
+
153
177
  export const portal_configuration_base = z.object({
154
178
  features: base_features.default({}),
155
179
  is_embedded: z
@@ -1,6 +1,7 @@
1
1
  import * as z from 'zod/v3'
2
2
 
3
3
  import { css_color, hex_color_code } from '../colors.js'
4
+ import { customer_portal_features } from '../customer/customer-portal.js'
4
5
  import { datetime } from '../datetime.js'
5
6
 
6
7
  export const customer_portal_theme = z.object({
@@ -133,6 +134,11 @@ export const customization_profile = z.object({
133
134
  .optional()
134
135
  .describe('Theme for the Instant Keys apps.'),
135
136
  message_overrides: message_overrides.optional(),
137
+ customer_portal_features: customer_portal_features
138
+ .optional()
139
+ .describe(
140
+ "Features for customer portals that use this profile. A setting passed when creating the portal takes precedence over the profile's. Changes apply to existing portals the next time they load.",
141
+ ),
136
142
  }).describe(`
137
143
  ---
138
144
  title: Customization Profile