@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
@@ -7760,7 +7760,7 @@ declare const acs_user: z.ZodObject<{
7760
7760
  from: z.ZodObject<{
7761
7761
  email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7762
7762
  full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7763
- phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
7763
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
7764
7764
  }, "strip", z.ZodTypeAny, {
7765
7765
  email_address?: string | null | undefined;
7766
7766
  full_name?: string | null | undefined;
@@ -7773,7 +7773,7 @@ declare const acs_user: z.ZodObject<{
7773
7773
  to: z.ZodObject<{
7774
7774
  email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7775
7775
  full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7776
- phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
7776
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
7777
7777
  }, "strip", z.ZodTypeAny, {
7778
7778
  email_address?: string | null | undefined;
7779
7779
  full_name?: string | null | undefined;
@@ -8013,7 +8013,7 @@ declare const acs_user: z.ZodObject<{
8013
8013
  full_name: z.ZodOptional<z.ZodString>;
8014
8014
  email: z.ZodOptional<z.ZodString>;
8015
8015
  email_address: z.ZodOptional<z.ZodString>;
8016
- phone_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
8016
+ phone_number: z.ZodOptional<z.ZodString>;
8017
8017
  } & {
8018
8018
  is_managed: z.ZodLiteral<true>;
8019
8019
  }, "strip", z.ZodTypeAny, {
@@ -8517,7 +8517,7 @@ declare const unmanaged_acs_user: z.ZodObject<{
8517
8517
  from: z.ZodObject<{
8518
8518
  email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8519
8519
  full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8520
- phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
8520
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
8521
8521
  }, "strip", z.ZodTypeAny, {
8522
8522
  email_address?: string | null | undefined;
8523
8523
  full_name?: string | null | undefined;
@@ -8530,7 +8530,7 @@ declare const unmanaged_acs_user: z.ZodObject<{
8530
8530
  to: z.ZodObject<{
8531
8531
  email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8532
8532
  full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8533
- phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
8533
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
8534
8534
  }, "strip", z.ZodTypeAny, {
8535
8535
  email_address?: string | null | undefined;
8536
8536
  full_name?: string | null | undefined;
@@ -8770,7 +8770,7 @@ declare const unmanaged_acs_user: z.ZodObject<{
8770
8770
  full_name: z.ZodOptional<z.ZodString>;
8771
8771
  email: z.ZodOptional<z.ZodString>;
8772
8772
  email_address: z.ZodOptional<z.ZodString>;
8773
- phone_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
8773
+ phone_number: z.ZodOptional<z.ZodString>;
8774
8774
  } & {
8775
8775
  is_managed: z.ZodLiteral<false>;
8776
8776
  }, "strip", z.ZodTypeAny, {
@@ -29974,7 +29974,7 @@ declare const user_identity: z.ZodObject<{
29974
29974
  user_identity_id: z.ZodString;
29975
29975
  user_identity_key: z.ZodNullable<z.ZodString>;
29976
29976
  email_address: z.ZodNullable<z.ZodString>;
29977
- phone_number: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
29977
+ phone_number: z.ZodNullable<z.ZodString>;
29978
29978
  display_name: z.ZodString;
29979
29979
  full_name: z.ZodNullable<z.ZodString>;
29980
29980
  created_at: z.ZodString;
@@ -71523,7 +71523,7 @@ type Routes = {
71523
71523
  })) | undefined;
71524
71524
  } | undefined;
71525
71525
  /** The locale to use for the portal. */
71526
- locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES') | undefined;
71526
+ locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES' | 'de-DE' | 'nl-NL' | 'el-GR' | 'pl-PL' | 'ru-RU') | undefined;
71527
71527
  /** Whether to exclude the option to select a locale within the portal UI. */
71528
71528
  exclude_locale_picker?: boolean;
71529
71529
  /** The ID of the customization profile to use for the portal. */
@@ -110580,7 +110580,7 @@ type Routes = {
110580
110580
  })) | undefined;
110581
110581
  } | undefined;
110582
110582
  /** The locale to use for the portal. */
110583
- locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES') | undefined;
110583
+ locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES' | 'de-DE' | 'nl-NL' | 'el-GR' | 'pl-PL' | 'ru-RU') | undefined;
110584
110584
  /** Whether to exclude the option to select a locale within the portal UI. */
110585
110585
  exclude_locale_picker?: boolean;
110586
110586
  /** The ID of the customization profile to use for the portal. */
@@ -110706,7 +110706,7 @@ type Routes = {
110706
110706
  })) | undefined;
110707
110707
  } | undefined) | undefined;
110708
110708
  /** The locale to use for the portal. */
110709
- locale?: (('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES') | undefined) | undefined;
110709
+ locale?: (('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES' | 'de-DE' | 'nl-NL' | 'el-GR' | 'pl-PL' | 'ru-RU') | undefined) | undefined;
110710
110710
  /** Whether to exclude the option to select a locale within the portal UI. */
110711
110711
  exclude_locale_picker?: boolean | undefined;
110712
110712
  /** The ID of the customization profile to use for the portal. */
package/dist/index.cjs CHANGED
@@ -4305,7 +4305,7 @@ var acs_system = zod.z.object({
4305
4305
 
4306
4306
  For details about the resources associated with an access control system, see the [access control systems namespace](https://docs.seam.co/api/acs).
4307
4307
  `);
4308
- var phone_number = zod.z.coerce.string().trim().refine(
4308
+ zod.z.coerce.string().trim().refine(
4309
4309
  (val) => {
4310
4310
  return /^\+[1-9]\d{1,14}$/.test(val);
4311
4311
  },
@@ -4313,6 +4313,7 @@ var phone_number = zod.z.coerce.string().trim().refine(
4313
4313
  message: "Phone number must be in E.164 format: +14155552671"
4314
4314
  }
4315
4315
  );
4316
+ var loose_phone_number = zod.z.string();
4316
4317
  var common_pending_mutation5 = zod.z.object({
4317
4318
  created_at: zod.z.string().datetime().describe("Date and time at which the mutation was created."),
4318
4319
  message: zod.z.string().describe("Detailed description of the mutation.")
@@ -4342,7 +4343,7 @@ var deferring_creation2 = common_pending_mutation5.extend({
4342
4343
  var acs_user_info = zod.z.object({
4343
4344
  email_address: zod.z.string().email().nullable().describe("Email address of the access system user."),
4344
4345
  full_name: zod.z.string().nullable().describe("Full name of the access system user."),
4345
- phone_number: phone_number.optional().nullable().describe("Phone number of the access system user.")
4346
+ phone_number: loose_phone_number.optional().nullable().describe("Phone number of the access system user.")
4346
4347
  });
4347
4348
  var updating_user_information_mutation = common_pending_mutation5.extend({
4348
4349
  mutation_code: zod.z.literal("updating_user_information").describe(
@@ -4454,10 +4455,10 @@ zod.z.object({
4454
4455
  "updating_user_information.phone_number": common_pending_mutation5.extend({
4455
4456
  mutation_code: zod.z.literal("updating_user_information"),
4456
4457
  from: zod.z.object({
4457
- phone_number: phone_number.nullable()
4458
+ phone_number: loose_phone_number.nullable()
4458
4459
  }),
4459
4460
  to: zod.z.object({
4460
- phone_number: phone_number.nullable()
4461
+ phone_number: loose_phone_number.nullable()
4461
4462
  })
4462
4463
  }).optional().nullable()
4463
4464
  });
@@ -4579,7 +4580,7 @@ var user_fields = zod.z.object({
4579
4580
  email_address: zod.z.string().email().optional().describe(
4580
4581
  "Email address of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management)."
4581
4582
  ),
4582
- phone_number: phone_number.optional().describe(
4583
+ phone_number: loose_phone_number.optional().describe(
4583
4584
  "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`)."
4584
4585
  )
4585
4586
  });
@@ -7006,7 +7007,7 @@ var user_identity = zod.z.object({
7006
7007
  user_identity_id: zod.z.string().uuid().describe("ID of the user identity."),
7007
7008
  user_identity_key: zod.z.string().min(1).nullable().describe("Unique key for the user identity."),
7008
7009
  email_address: zod.z.string().email().nullable().describe("Unique email address for the user identity."),
7009
- phone_number: phone_number.nullable().describe(
7010
+ phone_number: loose_phone_number.nullable().describe(
7010
7011
  "Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100)."
7011
7012
  ),
7012
7013
  display_name: zod.z.string().min(1),
@@ -56242,7 +56243,18 @@ var openapi = {
56242
56243
  },
56243
56244
  locale: {
56244
56245
  description: "The locale to use for the portal.",
56245
- enum: ["en-US", "pt-PT", "fr-FR", "it-IT", "es-ES"],
56246
+ enum: [
56247
+ "en-US",
56248
+ "pt-PT",
56249
+ "fr-FR",
56250
+ "it-IT",
56251
+ "es-ES",
56252
+ "de-DE",
56253
+ "nl-NL",
56254
+ "el-GR",
56255
+ "pl-PL",
56256
+ "ru-RU"
56257
+ ],
56246
56258
  type: "string"
56247
56259
  },
56248
56260
  navigation_mode: {
@@ -74143,7 +74155,18 @@ var openapi = {
74143
74155
  },
74144
74156
  locale: {
74145
74157
  description: "The locale to use for the portal.",
74146
- enum: ["en-US", "pt-PT", "fr-FR", "it-IT", "es-ES"],
74158
+ enum: [
74159
+ "en-US",
74160
+ "pt-PT",
74161
+ "fr-FR",
74162
+ "it-IT",
74163
+ "es-ES",
74164
+ "de-DE",
74165
+ "nl-NL",
74166
+ "el-GR",
74167
+ "pl-PL",
74168
+ "ru-RU"
74169
+ ],
74147
74170
  type: "string"
74148
74171
  },
74149
74172
  navigation_mode: {
@@ -74526,7 +74549,18 @@ var openapi = {
74526
74549
  },
74527
74550
  locale: {
74528
74551
  description: "The locale to use for the portal.",
74529
- enum: ["en-US", "pt-PT", "fr-FR", "it-IT", "es-ES"],
74552
+ enum: [
74553
+ "en-US",
74554
+ "pt-PT",
74555
+ "fr-FR",
74556
+ "it-IT",
74557
+ "es-ES",
74558
+ "de-DE",
74559
+ "nl-NL",
74560
+ "el-GR",
74561
+ "pl-PL",
74562
+ "ru-RU"
74563
+ ],
74530
74564
  type: "string"
74531
74565
  },
74532
74566
  navigation_mode: {
@@ -74863,7 +74897,18 @@ var openapi = {
74863
74897
  },
74864
74898
  locale: {
74865
74899
  description: "The locale to use for the portal.",
74866
- enum: ["en-US", "pt-PT", "fr-FR", "it-IT", "es-ES"],
74900
+ enum: [
74901
+ "en-US",
74902
+ "pt-PT",
74903
+ "fr-FR",
74904
+ "it-IT",
74905
+ "es-ES",
74906
+ "de-DE",
74907
+ "nl-NL",
74908
+ "el-GR",
74909
+ "pl-PL",
74910
+ "ru-RU"
74911
+ ],
74867
74912
  type: "string"
74868
74913
  },
74869
74914
  navigation_mode: {
@@ -75208,7 +75253,18 @@ var openapi = {
75208
75253
  },
75209
75254
  locale: {
75210
75255
  description: "The locale to use for the portal.",
75211
- enum: ["en-US", "pt-PT", "fr-FR", "it-IT", "es-ES"],
75256
+ enum: [
75257
+ "en-US",
75258
+ "pt-PT",
75259
+ "fr-FR",
75260
+ "it-IT",
75261
+ "es-ES",
75262
+ "de-DE",
75263
+ "nl-NL",
75264
+ "el-GR",
75265
+ "pl-PL",
75266
+ "ru-RU"
75267
+ ],
75212
75268
  type: "string"
75213
75269
  },
75214
75270
  navigation_mode: {