@seamapi/types 1.901.0 → 1.903.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 (26) hide show
  1. package/dist/connect.cjs +15 -6
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +7 -7
  4. package/dist/index.cjs +15 -6
  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/phone-number.d.ts +1 -0
  13. package/lib/seam/connect/models/phone-number.js +11 -0
  14. package/lib/seam/connect/models/phone-number.js.map +1 -1
  15. package/lib/seam/connect/models/phones/phone-session.d.ts +1 -1
  16. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  17. package/lib/seam/connect/models/user-identities/user-identity.js +2 -2
  18. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
  19. package/lib/seam/connect/openapi.js +8 -0
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +2 -2
  23. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +4 -4
  24. package/src/lib/seam/connect/models/phone-number.ts +12 -0
  25. package/src/lib/seam/connect/models/user-identities/user-identity.ts +2 -2
  26. package/src/lib/seam/connect/openapi.ts +8 -0
package/dist/connect.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),
@@ -39607,6 +39608,7 @@ var openapi = {
39607
39608
  },
39608
39609
  security: [
39609
39610
  { client_session: [] },
39611
+ { client_session_with_customer: [] },
39610
39612
  { pat_with_workspace: [] },
39611
39613
  { console_session_with_workspace: [] },
39612
39614
  { api_key: [] }
@@ -39674,6 +39676,7 @@ var openapi = {
39674
39676
  },
39675
39677
  security: [
39676
39678
  { client_session: [] },
39679
+ { client_session_with_customer: [] },
39677
39680
  { pat_with_workspace: [] },
39678
39681
  { console_session_with_workspace: [] },
39679
39682
  { api_key: [] }
@@ -39736,6 +39739,7 @@ var openapi = {
39736
39739
  },
39737
39740
  security: [
39738
39741
  { client_session: [] },
39742
+ { client_session_with_customer: [] },
39739
39743
  { pat_with_workspace: [] },
39740
39744
  { console_session_with_workspace: [] },
39741
39745
  { api_key: [] }
@@ -39796,6 +39800,7 @@ var openapi = {
39796
39800
  },
39797
39801
  security: [
39798
39802
  { client_session: [] },
39803
+ { client_session_with_customer: [] },
39799
39804
  { pat_with_workspace: [] },
39800
39805
  { console_session_with_workspace: [] },
39801
39806
  { api_key: [] }
@@ -39864,6 +39869,7 @@ var openapi = {
39864
39869
  },
39865
39870
  security: [
39866
39871
  { client_session: [] },
39872
+ { client_session_with_customer: [] },
39867
39873
  { pat_with_workspace: [] },
39868
39874
  { console_session_with_workspace: [] },
39869
39875
  { api_key: [] }
@@ -39927,6 +39933,7 @@ var openapi = {
39927
39933
  },
39928
39934
  security: [
39929
39935
  { client_session: [] },
39936
+ { client_session_with_customer: [] },
39930
39937
  { pat_with_workspace: [] },
39931
39938
  { console_session_with_workspace: [] },
39932
39939
  { api_key: [] }
@@ -40169,6 +40176,7 @@ var openapi = {
40169
40176
  },
40170
40177
  security: [
40171
40178
  { client_session: [] },
40179
+ { client_session_with_customer: [] },
40172
40180
  { pat_with_workspace: [] },
40173
40181
  { console_session_with_workspace: [] },
40174
40182
  { api_key: [] }
@@ -40231,6 +40239,7 @@ var openapi = {
40231
40239
  },
40232
40240
  security: [
40233
40241
  { client_session: [] },
40242
+ { client_session_with_customer: [] },
40234
40243
  { pat_with_workspace: [] },
40235
40244
  { console_session_with_workspace: [] },
40236
40245
  { api_key: [] }