@seamapi/types 1.365.0 → 1.366.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 (28) hide show
  1. package/dist/connect.cjs +370 -2
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1304 -14
  4. package/lib/seam/connect/models/acs/{acs-user.d.ts → acs-users/acs-user.d.ts} +540 -18
  5. package/lib/seam/connect/models/acs/{acs-user.js → acs-users/acs-user.js} +9 -2
  6. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -0
  7. package/lib/seam/connect/models/acs/acs-users/index.d.ts +2 -0
  8. package/lib/seam/connect/models/acs/acs-users/index.js +3 -0
  9. package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -0
  10. package/lib/seam/connect/models/acs/acs-users/pending-modifications.d.ts +176 -0
  11. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +42 -0
  12. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +1 -0
  13. package/lib/seam/connect/models/acs/index.d.ts +1 -1
  14. package/lib/seam/connect/models/acs/index.js +1 -1
  15. package/lib/seam/connect/models/acs/index.js.map +1 -1
  16. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  17. package/lib/seam/connect/openapi.d.ts +432 -0
  18. package/lib/seam/connect/openapi.js +320 -0
  19. package/lib/seam/connect/openapi.js.map +1 -1
  20. package/lib/seam/connect/route-types.d.ts +336 -0
  21. package/package.json +1 -1
  22. package/src/lib/seam/connect/models/acs/{acs-user.ts → acs-users/acs-user.ts} +9 -2
  23. package/src/lib/seam/connect/models/acs/acs-users/index.ts +2 -0
  24. package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +56 -0
  25. package/src/lib/seam/connect/models/acs/index.ts +1 -1
  26. package/src/lib/seam/connect/openapi.ts +328 -0
  27. package/src/lib/seam/connect/route-types.ts +385 -0
  28. package/lib/seam/connect/models/acs/acs-user.js.map +0 -1
package/dist/connect.cjs CHANGED
@@ -2322,8 +2322,51 @@ var start_end_schedule = zod.z.object({
2322
2322
  ).nullable()
2323
2323
  });
2324
2324
  var schedule = start_end_schedule;
2325
+ var common_pending_modification = zod.z.object({
2326
+ created_at: zod.z.string().datetime()
2327
+ });
2328
+ var acs_user_profile = zod.z.object({
2329
+ email_address: zod.z.string().email().nullable(),
2330
+ full_name: zod.z.string().nullable(),
2331
+ phone_number: phone_number.optional().nullable()
2332
+ });
2333
+ var profile_pending_modification = common_pending_modification.extend({
2334
+ modification_code: zod.z.literal("profile"),
2335
+ modified_from: acs_user_profile.partial(),
2336
+ modified_to: acs_user_profile.partial()
2337
+ });
2338
+ var access_schedule_pending_modification = common_pending_modification.extend(
2339
+ {
2340
+ modification_code: zod.z.literal("access_schedule"),
2341
+ modified_from: schedule,
2342
+ modified_to: schedule
2343
+ }
2344
+ );
2345
+ var suspension_state_pending_modification = common_pending_modification.extend({
2346
+ modification_code: zod.z.literal("suspension_state"),
2347
+ modified_from: zod.z.object({ is_suspended: zod.z.boolean() }),
2348
+ modified_to: zod.z.object({ is_suspended: zod.z.boolean() })
2349
+ });
2350
+ var acs_access_group_membership_pending_modification = common_pending_modification.extend({
2351
+ modification_code: zod.z.literal("acs_access_group_membership"),
2352
+ modified_from: zod.z.object({
2353
+ acs_access_group_id: zod.z.string().uuid().nullable()
2354
+ }),
2355
+ modified_to: zod.z.object({
2356
+ acs_access_group_id: zod.z.string().uuid().nullable()
2357
+ })
2358
+ });
2359
+ var acs_user_pending_modification = zod.z.discriminatedUnion(
2360
+ "modification_code",
2361
+ [
2362
+ profile_pending_modification,
2363
+ access_schedule_pending_modification,
2364
+ suspension_state_pending_modification,
2365
+ acs_access_group_membership_pending_modification
2366
+ ]
2367
+ );
2325
2368
 
2326
- // src/lib/seam/connect/models/acs/acs-user.ts
2369
+ // src/lib/seam/connect/models/acs/acs-users/acs-user.ts
2327
2370
  var acs_user_external_type = zod.z.enum([
2328
2371
  "pti_user",
2329
2372
  "brivo_user",
@@ -2503,7 +2546,12 @@ var common_acs_user = zod.z.object({
2503
2546
  ),
2504
2547
  errors: zod.z.array(acs_user_errors).describe(
2505
2548
  "Errors associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management)."
2506
- )
2549
+ ),
2550
+ pending_modifications: zod.z.array(acs_user_pending_modification).optional().describe(`
2551
+ ---
2552
+ undocumented: Experimental.
2553
+ ---
2554
+ `)
2507
2555
  }).merge(user_fields);
2508
2556
  var acs_user = common_acs_user.merge(
2509
2557
  zod.z.object({
@@ -6200,6 +6248,166 @@ var openapi_default = {
6200
6248
  type: "string",
6201
6249
  "x-undocumented": "Only used internally."
6202
6250
  },
6251
+ pending_modifications: {
6252
+ items: {
6253
+ discriminator: { propertyName: "modification_code" },
6254
+ oneOf: [
6255
+ {
6256
+ properties: {
6257
+ created_at: { format: "date-time", type: "string" },
6258
+ modification_code: { enum: ["profile"], type: "string" },
6259
+ modified_from: {
6260
+ properties: {
6261
+ email_address: {
6262
+ format: "email",
6263
+ nullable: true,
6264
+ type: "string"
6265
+ },
6266
+ full_name: { nullable: true, type: "string" },
6267
+ phone_number: { nullable: true, type: "string" }
6268
+ },
6269
+ type: "object"
6270
+ },
6271
+ modified_to: {
6272
+ properties: {
6273
+ email_address: {
6274
+ format: "email",
6275
+ nullable: true,
6276
+ type: "string"
6277
+ },
6278
+ full_name: { nullable: true, type: "string" },
6279
+ phone_number: { nullable: true, type: "string" }
6280
+ },
6281
+ type: "object"
6282
+ }
6283
+ },
6284
+ required: [
6285
+ "created_at",
6286
+ "modification_code",
6287
+ "modified_from",
6288
+ "modified_to"
6289
+ ],
6290
+ type: "object"
6291
+ },
6292
+ {
6293
+ properties: {
6294
+ created_at: { format: "date-time", type: "string" },
6295
+ modification_code: {
6296
+ enum: ["access_schedule"],
6297
+ type: "string"
6298
+ },
6299
+ modified_from: {
6300
+ properties: {
6301
+ ends_at: {
6302
+ description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
6303
+ format: "date-time",
6304
+ nullable: true,
6305
+ type: "string"
6306
+ },
6307
+ starts_at: {
6308
+ description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
6309
+ format: "date-time",
6310
+ type: "string"
6311
+ }
6312
+ },
6313
+ required: ["starts_at", "ends_at"],
6314
+ type: "object"
6315
+ },
6316
+ modified_to: {
6317
+ properties: {
6318
+ ends_at: {
6319
+ description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
6320
+ format: "date-time",
6321
+ nullable: true,
6322
+ type: "string"
6323
+ },
6324
+ starts_at: {
6325
+ description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
6326
+ format: "date-time",
6327
+ type: "string"
6328
+ }
6329
+ },
6330
+ required: ["starts_at", "ends_at"],
6331
+ type: "object"
6332
+ }
6333
+ },
6334
+ required: [
6335
+ "created_at",
6336
+ "modification_code",
6337
+ "modified_from",
6338
+ "modified_to"
6339
+ ],
6340
+ type: "object"
6341
+ },
6342
+ {
6343
+ properties: {
6344
+ created_at: { format: "date-time", type: "string" },
6345
+ modification_code: {
6346
+ enum: ["suspension_state"],
6347
+ type: "string"
6348
+ },
6349
+ modified_from: {
6350
+ properties: { is_suspended: { type: "boolean" } },
6351
+ required: ["is_suspended"],
6352
+ type: "object"
6353
+ },
6354
+ modified_to: {
6355
+ properties: { is_suspended: { type: "boolean" } },
6356
+ required: ["is_suspended"],
6357
+ type: "object"
6358
+ }
6359
+ },
6360
+ required: [
6361
+ "created_at",
6362
+ "modification_code",
6363
+ "modified_from",
6364
+ "modified_to"
6365
+ ],
6366
+ type: "object"
6367
+ },
6368
+ {
6369
+ properties: {
6370
+ created_at: { format: "date-time", type: "string" },
6371
+ modification_code: {
6372
+ enum: ["acs_access_group_membership"],
6373
+ type: "string"
6374
+ },
6375
+ modified_from: {
6376
+ properties: {
6377
+ acs_access_group_id: {
6378
+ format: "uuid",
6379
+ nullable: true,
6380
+ type: "string"
6381
+ }
6382
+ },
6383
+ required: ["acs_access_group_id"],
6384
+ type: "object"
6385
+ },
6386
+ modified_to: {
6387
+ properties: {
6388
+ acs_access_group_id: {
6389
+ format: "uuid",
6390
+ nullable: true,
6391
+ type: "string"
6392
+ }
6393
+ },
6394
+ required: ["acs_access_group_id"],
6395
+ type: "object"
6396
+ }
6397
+ },
6398
+ required: [
6399
+ "created_at",
6400
+ "modification_code",
6401
+ "modified_from",
6402
+ "modified_to"
6403
+ ],
6404
+ type: "object"
6405
+ }
6406
+ ]
6407
+ },
6408
+ type: "array",
6409
+ "x-undocumented": "Experimental."
6410
+ },
6203
6411
  phone_number: {
6204
6412
  description: "Phone number of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).",
6205
6413
  type: "string"
@@ -17420,6 +17628,166 @@ var openapi_default = {
17420
17628
  type: "string",
17421
17629
  "x-undocumented": "Only used internally."
17422
17630
  },
17631
+ pending_modifications: {
17632
+ items: {
17633
+ discriminator: { propertyName: "modification_code" },
17634
+ oneOf: [
17635
+ {
17636
+ properties: {
17637
+ created_at: { format: "date-time", type: "string" },
17638
+ modification_code: { enum: ["profile"], type: "string" },
17639
+ modified_from: {
17640
+ properties: {
17641
+ email_address: {
17642
+ format: "email",
17643
+ nullable: true,
17644
+ type: "string"
17645
+ },
17646
+ full_name: { nullable: true, type: "string" },
17647
+ phone_number: { nullable: true, type: "string" }
17648
+ },
17649
+ type: "object"
17650
+ },
17651
+ modified_to: {
17652
+ properties: {
17653
+ email_address: {
17654
+ format: "email",
17655
+ nullable: true,
17656
+ type: "string"
17657
+ },
17658
+ full_name: { nullable: true, type: "string" },
17659
+ phone_number: { nullable: true, type: "string" }
17660
+ },
17661
+ type: "object"
17662
+ }
17663
+ },
17664
+ required: [
17665
+ "created_at",
17666
+ "modification_code",
17667
+ "modified_from",
17668
+ "modified_to"
17669
+ ],
17670
+ type: "object"
17671
+ },
17672
+ {
17673
+ properties: {
17674
+ created_at: { format: "date-time", type: "string" },
17675
+ modification_code: {
17676
+ enum: ["access_schedule"],
17677
+ type: "string"
17678
+ },
17679
+ modified_from: {
17680
+ properties: {
17681
+ ends_at: {
17682
+ description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
17683
+ format: "date-time",
17684
+ nullable: true,
17685
+ type: "string"
17686
+ },
17687
+ starts_at: {
17688
+ description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
17689
+ format: "date-time",
17690
+ type: "string"
17691
+ }
17692
+ },
17693
+ required: ["starts_at", "ends_at"],
17694
+ type: "object"
17695
+ },
17696
+ modified_to: {
17697
+ properties: {
17698
+ ends_at: {
17699
+ description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
17700
+ format: "date-time",
17701
+ nullable: true,
17702
+ type: "string"
17703
+ },
17704
+ starts_at: {
17705
+ description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
17706
+ format: "date-time",
17707
+ type: "string"
17708
+ }
17709
+ },
17710
+ required: ["starts_at", "ends_at"],
17711
+ type: "object"
17712
+ }
17713
+ },
17714
+ required: [
17715
+ "created_at",
17716
+ "modification_code",
17717
+ "modified_from",
17718
+ "modified_to"
17719
+ ],
17720
+ type: "object"
17721
+ },
17722
+ {
17723
+ properties: {
17724
+ created_at: { format: "date-time", type: "string" },
17725
+ modification_code: {
17726
+ enum: ["suspension_state"],
17727
+ type: "string"
17728
+ },
17729
+ modified_from: {
17730
+ properties: { is_suspended: { type: "boolean" } },
17731
+ required: ["is_suspended"],
17732
+ type: "object"
17733
+ },
17734
+ modified_to: {
17735
+ properties: { is_suspended: { type: "boolean" } },
17736
+ required: ["is_suspended"],
17737
+ type: "object"
17738
+ }
17739
+ },
17740
+ required: [
17741
+ "created_at",
17742
+ "modification_code",
17743
+ "modified_from",
17744
+ "modified_to"
17745
+ ],
17746
+ type: "object"
17747
+ },
17748
+ {
17749
+ properties: {
17750
+ created_at: { format: "date-time", type: "string" },
17751
+ modification_code: {
17752
+ enum: ["acs_access_group_membership"],
17753
+ type: "string"
17754
+ },
17755
+ modified_from: {
17756
+ properties: {
17757
+ acs_access_group_id: {
17758
+ format: "uuid",
17759
+ nullable: true,
17760
+ type: "string"
17761
+ }
17762
+ },
17763
+ required: ["acs_access_group_id"],
17764
+ type: "object"
17765
+ },
17766
+ modified_to: {
17767
+ properties: {
17768
+ acs_access_group_id: {
17769
+ format: "uuid",
17770
+ nullable: true,
17771
+ type: "string"
17772
+ }
17773
+ },
17774
+ required: ["acs_access_group_id"],
17775
+ type: "object"
17776
+ }
17777
+ },
17778
+ required: [
17779
+ "created_at",
17780
+ "modification_code",
17781
+ "modified_from",
17782
+ "modified_to"
17783
+ ],
17784
+ type: "object"
17785
+ }
17786
+ ]
17787
+ },
17788
+ type: "array",
17789
+ "x-undocumented": "Experimental."
17790
+ },
17423
17791
  phone_number: {
17424
17792
  description: "Phone number of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).",
17425
17793
  type: "string"