@seamapi/types 1.902.0 → 1.904.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 +67 -11
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +10 -10
  4. package/dist/index.cjs +67 -11
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +6 -6
  7. package/lib/seam/connect/models/acs/acs-users/acs-user.js +2 -2
  8. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  9. package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +6 -6
  10. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +4 -4
  11. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
  12. package/lib/seam/connect/models/customer/customer-portal.d.ts +6 -6
  13. package/lib/seam/connect/models/customer/customer-portal.js +12 -1
  14. package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
  15. package/lib/seam/connect/models/phone-number.d.ts +1 -0
  16. package/lib/seam/connect/models/phone-number.js +11 -0
  17. package/lib/seam/connect/models/phone-number.js.map +1 -1
  18. package/lib/seam/connect/models/phones/phone-session.d.ts +1 -1
  19. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  20. package/lib/seam/connect/models/user-identities/user-identity.js +2 -2
  21. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
  22. package/lib/seam/connect/openapi.js +60 -5
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +3 -3
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +2 -2
  27. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +4 -4
  28. package/src/lib/seam/connect/models/customer/customer-portal.ts +12 -1
  29. package/src/lib/seam/connect/models/phone-number.ts +12 -0
  30. package/src/lib/seam/connect/models/user-identities/user-identity.ts +2 -2
  31. package/src/lib/seam/connect/openapi.ts +60 -5
  32. package/src/lib/seam/connect/route-types.ts +43 -3
@@ -41312,7 +41312,7 @@ export type Routes = {
41312
41312
  })) | undefined;
41313
41313
  } | undefined;
41314
41314
  /** The locale to use for the portal. */
41315
- locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES') | undefined;
41315
+ locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES' | 'de-DE' | 'nl-NL' | 'el-GR' | 'pl-PL' | 'ru-RU') | undefined;
41316
41316
  /** Whether to exclude the option to select a locale within the portal UI. */
41317
41317
  exclude_locale_picker?: boolean;
41318
41318
  /** The ID of the customization profile to use for the portal. */
@@ -80369,7 +80369,7 @@ export type Routes = {
80369
80369
  })) | undefined;
80370
80370
  } | undefined;
80371
80371
  /** The locale to use for the portal. */
80372
- locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES') | undefined;
80372
+ locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES' | 'de-DE' | 'nl-NL' | 'el-GR' | 'pl-PL' | 'ru-RU') | undefined;
80373
80373
  /** Whether to exclude the option to select a locale within the portal UI. */
80374
80374
  exclude_locale_picker?: boolean;
80375
80375
  /** The ID of the customization profile to use for the portal. */
@@ -80495,7 +80495,7 @@ export type Routes = {
80495
80495
  })) | undefined;
80496
80496
  } | undefined) | undefined;
80497
80497
  /** The locale to use for the portal. */
80498
- locale?: (('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES') | undefined) | undefined;
80498
+ locale?: (('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES' | 'de-DE' | 'nl-NL' | 'el-GR' | 'pl-PL' | 'ru-RU') | undefined) | undefined;
80499
80499
  /** Whether to exclude the option to select a locale within the portal UI. */
80500
80500
  exclude_locale_picker?: boolean | undefined;
80501
80501
  /** The ID of the customization profile to use for the portal. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.902.0",
3
+ "version": "1.904.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
- import { phone_number } from '../../phone-number.js'
3
+ import { loose_phone_number } from '../../phone-number.js'
4
4
  import { schedule } from '../../schedule.js'
5
5
  import { acs_user_salto_space_metadata } from '../metadata/salto-space.js'
6
6
  import { acs_user_pending_mutations } from './pending-mutations.js'
@@ -200,7 +200,7 @@ const user_fields = z.object({
200
200
  .describe(
201
201
  'Email address of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).',
202
202
  ),
203
- phone_number: phone_number
203
+ phone_number: loose_phone_number
204
204
  .optional()
205
205
  .describe(
206
206
  'Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).',
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
- import { phone_number } from '../../phone-number.js'
3
+ import { loose_phone_number } from '../../phone-number.js'
4
4
 
5
5
  const common_pending_mutation = z.object({
6
6
  created_at: z
@@ -62,7 +62,7 @@ const acs_user_info = z.object({
62
62
  .string()
63
63
  .nullable()
64
64
  .describe('Full name of the access system user.'),
65
- phone_number: phone_number
65
+ phone_number: loose_phone_number
66
66
  .optional()
67
67
  .nullable()
68
68
  .describe('Phone number of the access system user.'),
@@ -276,10 +276,10 @@ const _acs_user_pending_mutations_map = z.object({
276
276
  .extend({
277
277
  mutation_code: z.literal('updating_user_information'),
278
278
  from: z.object({
279
- phone_number: phone_number.nullable(),
279
+ phone_number: loose_phone_number.nullable(),
280
280
  }),
281
281
  to: z.object({
282
- phone_number: phone_number.nullable(),
282
+ phone_number: loose_phone_number.nullable(),
283
283
  }),
284
284
  })
285
285
  .optional()
@@ -123,7 +123,18 @@ export const portal_configuration_base = z.object({
123
123
  .optional()
124
124
  .describe('Configuration for the landing page when the portal loads.'),
125
125
  locale: z
126
- .enum(['en-US', 'pt-PT', 'fr-FR', 'it-IT', 'es-ES'])
126
+ .enum([
127
+ 'en-US',
128
+ 'pt-PT',
129
+ 'fr-FR',
130
+ 'it-IT',
131
+ 'es-ES',
132
+ 'de-DE',
133
+ 'nl-NL',
134
+ 'el-GR',
135
+ 'pl-PL',
136
+ 'ru-RU',
137
+ ])
127
138
  .optional()
128
139
  .describe('The locale to use for the portal.'),
129
140
  exclude_locale_picker: z
@@ -12,3 +12,15 @@ export const phone_number = z.coerce
12
12
  message: 'Phone number must be in E.164 format: +14155552671',
13
13
  },
14
14
  )
15
+
16
+ // Use this for phone numbers that originate from provider/external-system sync
17
+ // — user identities, access system users, and their pending mutations — and,
18
+ // because the create/update endpoints for those resources pick `phone_number`
19
+ // from these same schemas, for that API input too. Synced data legitimately
20
+ // contains non-E.164 values (partial/last-four digits, spaces, or a missing
21
+ // `+`), so validating them strictly on the *output* path makes the public
22
+ // mapper throw a ZodError, which 500s the entire list endpoint for any
23
+ // workspace holding one such row; and the create/update endpoints must be able
24
+ // to round-trip those same values. Use the strict `phone_number` schema above
25
+ // only where you specifically want to reject non-E.164 input.
26
+ export const loose_phone_number = z.string()
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
- import { phone_number } from '../phone-number.js'
3
+ import { loose_phone_number } from '../phone-number.js'
4
4
 
5
5
  const common_user_identity_error = z.object({
6
6
  created_at: z
@@ -114,7 +114,7 @@ export const user_identity = z.object({
114
114
  .email()
115
115
  .nullable()
116
116
  .describe('Unique email address for the user identity.'),
117
- phone_number: phone_number
117
+ phone_number: loose_phone_number
118
118
  .nullable()
119
119
  .describe(
120
120
  'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).',
@@ -53963,7 +53963,18 @@ const openapi: OpenAPISpec = {
53963
53963
  },
53964
53964
  locale: {
53965
53965
  description: 'The locale to use for the portal.',
53966
- enum: ['en-US', 'pt-PT', 'fr-FR', 'it-IT', 'es-ES'],
53966
+ enum: [
53967
+ 'en-US',
53968
+ 'pt-PT',
53969
+ 'fr-FR',
53970
+ 'it-IT',
53971
+ 'es-ES',
53972
+ 'de-DE',
53973
+ 'nl-NL',
53974
+ 'el-GR',
53975
+ 'pl-PL',
53976
+ 'ru-RU',
53977
+ ],
53967
53978
  type: 'string',
53968
53979
  },
53969
53980
  navigation_mode: {
@@ -72629,7 +72640,18 @@ const openapi: OpenAPISpec = {
72629
72640
  },
72630
72641
  locale: {
72631
72642
  description: 'The locale to use for the portal.',
72632
- enum: ['en-US', 'pt-PT', 'fr-FR', 'it-IT', 'es-ES'],
72643
+ enum: [
72644
+ 'en-US',
72645
+ 'pt-PT',
72646
+ 'fr-FR',
72647
+ 'it-IT',
72648
+ 'es-ES',
72649
+ 'de-DE',
72650
+ 'nl-NL',
72651
+ 'el-GR',
72652
+ 'pl-PL',
72653
+ 'ru-RU',
72654
+ ],
72633
72655
  type: 'string',
72634
72656
  },
72635
72657
  navigation_mode: {
@@ -73045,7 +73067,18 @@ const openapi: OpenAPISpec = {
73045
73067
  },
73046
73068
  locale: {
73047
73069
  description: 'The locale to use for the portal.',
73048
- enum: ['en-US', 'pt-PT', 'fr-FR', 'it-IT', 'es-ES'],
73070
+ enum: [
73071
+ 'en-US',
73072
+ 'pt-PT',
73073
+ 'fr-FR',
73074
+ 'it-IT',
73075
+ 'es-ES',
73076
+ 'de-DE',
73077
+ 'nl-NL',
73078
+ 'el-GR',
73079
+ 'pl-PL',
73080
+ 'ru-RU',
73081
+ ],
73049
73082
  type: 'string',
73050
73083
  },
73051
73084
  navigation_mode: {
@@ -73414,7 +73447,18 @@ const openapi: OpenAPISpec = {
73414
73447
  },
73415
73448
  locale: {
73416
73449
  description: 'The locale to use for the portal.',
73417
- enum: ['en-US', 'pt-PT', 'fr-FR', 'it-IT', 'es-ES'],
73450
+ enum: [
73451
+ 'en-US',
73452
+ 'pt-PT',
73453
+ 'fr-FR',
73454
+ 'it-IT',
73455
+ 'es-ES',
73456
+ 'de-DE',
73457
+ 'nl-NL',
73458
+ 'el-GR',
73459
+ 'pl-PL',
73460
+ 'ru-RU',
73461
+ ],
73418
73462
  type: 'string',
73419
73463
  },
73420
73464
  navigation_mode: {
@@ -73791,7 +73835,18 @@ const openapi: OpenAPISpec = {
73791
73835
  },
73792
73836
  locale: {
73793
73837
  description: 'The locale to use for the portal.',
73794
- enum: ['en-US', 'pt-PT', 'fr-FR', 'it-IT', 'es-ES'],
73838
+ enum: [
73839
+ 'en-US',
73840
+ 'pt-PT',
73841
+ 'fr-FR',
73842
+ 'it-IT',
73843
+ 'es-ES',
73844
+ 'de-DE',
73845
+ 'nl-NL',
73846
+ 'el-GR',
73847
+ 'pl-PL',
73848
+ 'ru-RU',
73849
+ ],
73795
73850
  type: 'string',
73796
73851
  },
73797
73852
  navigation_mode: {
@@ -47864,7 +47864,20 @@ export type Routes = {
47864
47864
  }
47865
47865
  | undefined
47866
47866
  /** The locale to use for the portal. */
47867
- locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES') | undefined
47867
+ locale?:
47868
+ | (
47869
+ | 'en-US'
47870
+ | 'pt-PT'
47871
+ | 'fr-FR'
47872
+ | 'it-IT'
47873
+ | 'es-ES'
47874
+ | 'de-DE'
47875
+ | 'nl-NL'
47876
+ | 'el-GR'
47877
+ | 'pl-PL'
47878
+ | 'ru-RU'
47879
+ )
47880
+ | undefined
47868
47881
  /** Whether to exclude the option to select a locale within the portal UI. */
47869
47882
  exclude_locale_picker?: boolean
47870
47883
  /** The ID of the customization profile to use for the portal. */
@@ -96001,7 +96014,20 @@ export type Routes = {
96001
96014
  }
96002
96015
  | undefined
96003
96016
  /** The locale to use for the portal. */
96004
- locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES') | undefined
96017
+ locale?:
96018
+ | (
96019
+ | 'en-US'
96020
+ | 'pt-PT'
96021
+ | 'fr-FR'
96022
+ | 'it-IT'
96023
+ | 'es-ES'
96024
+ | 'de-DE'
96025
+ | 'nl-NL'
96026
+ | 'el-GR'
96027
+ | 'pl-PL'
96028
+ | 'ru-RU'
96029
+ )
96030
+ | undefined
96005
96031
  /** Whether to exclude the option to select a locale within the portal UI. */
96006
96032
  exclude_locale_picker?: boolean
96007
96033
  /** The ID of the customization profile to use for the portal. */
@@ -96172,7 +96198,21 @@ export type Routes = {
96172
96198
  | undefined
96173
96199
  /** The locale to use for the portal. */
96174
96200
  locale?:
96175
- | (('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES') | undefined)
96201
+ | (
96202
+ | (
96203
+ | 'en-US'
96204
+ | 'pt-PT'
96205
+ | 'fr-FR'
96206
+ | 'it-IT'
96207
+ | 'es-ES'
96208
+ | 'de-DE'
96209
+ | 'nl-NL'
96210
+ | 'el-GR'
96211
+ | 'pl-PL'
96212
+ | 'ru-RU'
96213
+ )
96214
+ | undefined
96215
+ )
96176
96216
  | undefined
96177
96217
  /** Whether to exclude the option to select a locale within the portal UI. */
96178
96218
  exclude_locale_picker?: boolean | undefined