@seamapi/types 1.375.1 → 1.376.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 (25) hide show
  1. package/dist/connect.cjs +128 -143
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +351 -298
  4. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +182 -150
  5. package/lib/seam/connect/models/acs/acs-users/acs-user.js +2 -3
  6. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-users/index.d.ts +1 -1
  8. package/lib/seam/connect/models/acs/acs-users/index.js +1 -1
  9. package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-users/{pending-modifications.d.ts → pending-mutations.d.ts} +191 -106
  11. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +90 -0
  12. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -0
  13. package/lib/seam/connect/openapi.d.ts +56 -56
  14. package/lib/seam/connect/openapi.js +81 -99
  15. package/lib/seam/connect/openapi.js.map +1 -1
  16. package/lib/seam/connect/route-types.d.ts +119 -98
  17. package/package.json +1 -1
  18. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +2 -3
  19. package/src/lib/seam/connect/models/acs/acs-users/index.ts +1 -1
  20. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +110 -0
  21. package/src/lib/seam/connect/openapi.ts +81 -99
  22. package/src/lib/seam/connect/route-types.ts +126 -98
  23. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +0 -85
  24. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +0 -1
  25. package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +0 -109
package/dist/connect.cjs CHANGED
@@ -2378,79 +2378,82 @@ var start_end_schedule = zod.z.object({
2378
2378
  ).nullable()
2379
2379
  });
2380
2380
  var schedule = start_end_schedule;
2381
- var common_pending_modification = zod.z.object({
2381
+ var common_pending_mutation = zod.z.object({
2382
2382
  created_at: zod.z.string().datetime()
2383
2383
  });
2384
- var lifecycle_create = common_pending_modification.extend({
2385
- modification_code: zod.z.literal("create")
2384
+ var creating = common_pending_mutation.extend({
2385
+ mutation_code: zod.z.literal("creating")
2386
2386
  });
2387
- var acs_user_profile = zod.z.object({
2387
+ var deleting = common_pending_mutation.extend({
2388
+ mutation_code: zod.z.literal("deleting")
2389
+ });
2390
+ var acs_user_info = zod.z.object({
2388
2391
  email_address: zod.z.string().email().nullable(),
2389
2392
  full_name: zod.z.string().nullable(),
2390
2393
  phone_number: phone_number.optional().nullable()
2391
2394
  });
2392
- var profile_pending_modification = common_pending_modification.extend({
2393
- modification_code: zod.z.literal("profile"),
2394
- modified_from: acs_user_profile.partial(),
2395
- modified_to: acs_user_profile.partial()
2395
+ var updating_user_information_mutation = common_pending_mutation.extend({
2396
+ mutation_code: zod.z.literal("updating_user_information"),
2397
+ from: acs_user_info.partial(),
2398
+ to: acs_user_info.partial()
2396
2399
  });
2397
- var access_schedule_pending_modification = common_pending_modification.extend(
2398
- {
2399
- modification_code: zod.z.literal("access_schedule"),
2400
- modified_from: schedule,
2401
- modified_to: schedule
2402
- }
2403
- );
2404
- var suspension_state_pending_modification = common_pending_modification.extend({
2405
- modification_code: zod.z.literal("suspension_state"),
2406
- modified_from: zod.z.object({ is_suspended: zod.z.boolean() }),
2407
- modified_to: zod.z.object({ is_suspended: zod.z.boolean() })
2400
+ var updating_access_schedule_mutation = common_pending_mutation.extend({
2401
+ mutation_code: zod.z.literal("updating_access_schedule"),
2402
+ from: schedule,
2403
+ to: schedule
2404
+ });
2405
+ var updating_suspension_state_mutation = common_pending_mutation.extend({
2406
+ mutation_code: zod.z.literal("updating_suspension_state"),
2407
+ from: zod.z.object({ is_suspended: zod.z.boolean() }),
2408
+ to: zod.z.object({ is_suspended: zod.z.boolean() })
2408
2409
  });
2409
- var acs_access_group_membership_pending_modification = common_pending_modification.extend({
2410
- modification_code: zod.z.literal("acs_access_group_membership"),
2411
- modified_from: zod.z.object({
2410
+ var updating_group_membership_mutation = common_pending_mutation.extend({
2411
+ mutation_code: zod.z.literal("updating_group_membership"),
2412
+ from: zod.z.object({
2412
2413
  acs_access_group_id: zod.z.string().uuid().nullable()
2413
2414
  }),
2414
- modified_to: zod.z.object({
2415
+ to: zod.z.object({
2415
2416
  acs_access_group_id: zod.z.string().uuid().nullable()
2416
2417
  })
2417
2418
  });
2418
- var acs_user_pending_modification = zod.z.discriminatedUnion(
2419
- "modification_code",
2419
+ var acs_user_pending_mutations = zod.z.discriminatedUnion(
2420
+ "mutation_code",
2420
2421
  [
2421
- lifecycle_create,
2422
- profile_pending_modification,
2423
- access_schedule_pending_modification,
2424
- suspension_state_pending_modification,
2425
- acs_access_group_membership_pending_modification
2422
+ creating,
2423
+ deleting,
2424
+ updating_user_information_mutation,
2425
+ updating_access_schedule_mutation,
2426
+ updating_suspension_state_mutation,
2427
+ updating_group_membership_mutation
2426
2428
  ]
2427
2429
  );
2428
2430
  zod.z.object({
2429
- lifecycle_create: lifecycle_create.optional().nullable(),
2430
- "profile.full_name": common_pending_modification.extend({
2431
- modification_code: zod.z.literal("profile"),
2432
- modified_from: zod.z.object({
2431
+ creating: creating.optional().nullable(),
2432
+ deleting: deleting.optional().nullable(),
2433
+ "updating_user_information.full_name": common_pending_mutation.extend({
2434
+ mutation_code: zod.z.literal("updating_user_information"),
2435
+ from: zod.z.object({
2433
2436
  full_name: zod.z.string().nullable()
2434
2437
  }),
2435
- modified_to: zod.z.object({
2438
+ to: zod.z.object({
2436
2439
  full_name: zod.z.string().nullable()
2437
2440
  })
2438
2441
  }).optional().nullable(),
2439
- "profile.email_address": common_pending_modification.extend({
2440
- modification_code: zod.z.literal("profile"),
2441
- modified_from: zod.z.object({
2442
+ "updating_user_information.email_address": common_pending_mutation.extend({
2443
+ mutation_code: zod.z.literal("updating_user_information"),
2444
+ from: zod.z.object({
2442
2445
  email_address: zod.z.string().email().nullable()
2443
2446
  }),
2444
- modified_to: zod.z.object({
2447
+ to: zod.z.object({
2445
2448
  email_address: zod.z.string().email().nullable()
2446
2449
  })
2447
2450
  }).optional().nullable(),
2448
- "profile.phone_number": common_pending_modification.extend({
2449
- modification_code: zod.z.literal("profile"),
2450
- modified_from: zod.z.object({
2451
+ "updating_user_information.phone_number": common_pending_mutation.extend({
2452
+ mutation_code: zod.z.literal("updating_user_information"),
2453
+ from: zod.z.object({
2451
2454
  phone_number: phone_number.nullable()
2452
2455
  }),
2453
- modified_to: zod.z.object({
2456
+ to: zod.z.object({
2454
2457
  phone_number: phone_number.nullable()
2455
2458
  })
2456
2459
  }).optional().nullable()
@@ -2637,7 +2640,7 @@ var common_acs_user = zod.z.object({
2637
2640
  errors: zod.z.array(acs_user_errors).describe(
2638
2641
  "Errors associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management)."
2639
2642
  ),
2640
- pending_modifications: zod.z.array(acs_user_pending_modification).optional().describe(`
2643
+ pending_mutations: zod.z.array(acs_user_pending_mutations).optional().describe(`
2641
2644
  ---
2642
2645
  undocumented: Experimental.
2643
2646
  ---
@@ -6425,23 +6428,30 @@ var openapi_default = {
6425
6428
  type: "string",
6426
6429
  "x-undocumented": "Only used internally."
6427
6430
  },
6428
- pending_modifications: {
6431
+ pending_mutations: {
6429
6432
  items: {
6430
- discriminator: { propertyName: "modification_code" },
6433
+ discriminator: { propertyName: "mutation_code" },
6431
6434
  oneOf: [
6432
6435
  {
6433
6436
  properties: {
6434
6437
  created_at: { format: "date-time", type: "string" },
6435
- modification_code: { enum: ["create"], type: "string" }
6438
+ mutation_code: { enum: ["creating"], type: "string" }
6439
+ },
6440
+ required: ["created_at", "mutation_code"],
6441
+ type: "object"
6442
+ },
6443
+ {
6444
+ properties: {
6445
+ created_at: { format: "date-time", type: "string" },
6446
+ mutation_code: { enum: ["deleting"], type: "string" }
6436
6447
  },
6437
- required: ["created_at", "modification_code"],
6448
+ required: ["created_at", "mutation_code"],
6438
6449
  type: "object"
6439
6450
  },
6440
6451
  {
6441
6452
  properties: {
6442
6453
  created_at: { format: "date-time", type: "string" },
6443
- modification_code: { enum: ["profile"], type: "string" },
6444
- modified_from: {
6454
+ from: {
6445
6455
  properties: {
6446
6456
  email_address: {
6447
6457
  format: "email",
@@ -6453,7 +6463,11 @@ var openapi_default = {
6453
6463
  },
6454
6464
  type: "object"
6455
6465
  },
6456
- modified_to: {
6466
+ mutation_code: {
6467
+ enum: ["updating_user_information"],
6468
+ type: "string"
6469
+ },
6470
+ to: {
6457
6471
  properties: {
6458
6472
  email_address: {
6459
6473
  format: "email",
@@ -6466,22 +6480,13 @@ var openapi_default = {
6466
6480
  type: "object"
6467
6481
  }
6468
6482
  },
6469
- required: [
6470
- "created_at",
6471
- "modification_code",
6472
- "modified_from",
6473
- "modified_to"
6474
- ],
6483
+ required: ["created_at", "mutation_code", "from", "to"],
6475
6484
  type: "object"
6476
6485
  },
6477
6486
  {
6478
6487
  properties: {
6479
6488
  created_at: { format: "date-time", type: "string" },
6480
- modification_code: {
6481
- enum: ["access_schedule"],
6482
- type: "string"
6483
- },
6484
- modified_from: {
6489
+ from: {
6485
6490
  properties: {
6486
6491
  ends_at: {
6487
6492
  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.",
@@ -6498,7 +6503,11 @@ var openapi_default = {
6498
6503
  required: ["starts_at", "ends_at"],
6499
6504
  type: "object"
6500
6505
  },
6501
- modified_to: {
6506
+ mutation_code: {
6507
+ enum: ["updating_access_schedule"],
6508
+ type: "string"
6509
+ },
6510
+ to: {
6502
6511
  properties: {
6503
6512
  ends_at: {
6504
6513
  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.",
@@ -6516,48 +6525,34 @@ var openapi_default = {
6516
6525
  type: "object"
6517
6526
  }
6518
6527
  },
6519
- required: [
6520
- "created_at",
6521
- "modification_code",
6522
- "modified_from",
6523
- "modified_to"
6524
- ],
6528
+ required: ["created_at", "mutation_code", "from", "to"],
6525
6529
  type: "object"
6526
6530
  },
6527
6531
  {
6528
6532
  properties: {
6529
6533
  created_at: { format: "date-time", type: "string" },
6530
- modification_code: {
6531
- enum: ["suspension_state"],
6532
- type: "string"
6533
- },
6534
- modified_from: {
6534
+ from: {
6535
6535
  properties: { is_suspended: { type: "boolean" } },
6536
6536
  required: ["is_suspended"],
6537
6537
  type: "object"
6538
6538
  },
6539
- modified_to: {
6539
+ mutation_code: {
6540
+ enum: ["updating_suspension_state"],
6541
+ type: "string"
6542
+ },
6543
+ to: {
6540
6544
  properties: { is_suspended: { type: "boolean" } },
6541
6545
  required: ["is_suspended"],
6542
6546
  type: "object"
6543
6547
  }
6544
6548
  },
6545
- required: [
6546
- "created_at",
6547
- "modification_code",
6548
- "modified_from",
6549
- "modified_to"
6550
- ],
6549
+ required: ["created_at", "mutation_code", "from", "to"],
6551
6550
  type: "object"
6552
6551
  },
6553
6552
  {
6554
6553
  properties: {
6555
6554
  created_at: { format: "date-time", type: "string" },
6556
- modification_code: {
6557
- enum: ["acs_access_group_membership"],
6558
- type: "string"
6559
- },
6560
- modified_from: {
6555
+ from: {
6561
6556
  properties: {
6562
6557
  acs_access_group_id: {
6563
6558
  format: "uuid",
@@ -6568,7 +6563,11 @@ var openapi_default = {
6568
6563
  required: ["acs_access_group_id"],
6569
6564
  type: "object"
6570
6565
  },
6571
- modified_to: {
6566
+ mutation_code: {
6567
+ enum: ["updating_group_membership"],
6568
+ type: "string"
6569
+ },
6570
+ to: {
6572
6571
  properties: {
6573
6572
  acs_access_group_id: {
6574
6573
  format: "uuid",
@@ -6580,12 +6579,7 @@ var openapi_default = {
6580
6579
  type: "object"
6581
6580
  }
6582
6581
  },
6583
- required: [
6584
- "created_at",
6585
- "modification_code",
6586
- "modified_from",
6587
- "modified_to"
6588
- ],
6582
+ required: ["created_at", "mutation_code", "from", "to"],
6589
6583
  type: "object"
6590
6584
  }
6591
6585
  ]
@@ -18079,23 +18073,30 @@ var openapi_default = {
18079
18073
  type: "string",
18080
18074
  "x-undocumented": "Only used internally."
18081
18075
  },
18082
- pending_modifications: {
18076
+ pending_mutations: {
18083
18077
  items: {
18084
- discriminator: { propertyName: "modification_code" },
18078
+ discriminator: { propertyName: "mutation_code" },
18085
18079
  oneOf: [
18086
18080
  {
18087
18081
  properties: {
18088
18082
  created_at: { format: "date-time", type: "string" },
18089
- modification_code: { enum: ["create"], type: "string" }
18083
+ mutation_code: { enum: ["creating"], type: "string" }
18090
18084
  },
18091
- required: ["created_at", "modification_code"],
18085
+ required: ["created_at", "mutation_code"],
18092
18086
  type: "object"
18093
18087
  },
18094
18088
  {
18095
18089
  properties: {
18096
18090
  created_at: { format: "date-time", type: "string" },
18097
- modification_code: { enum: ["profile"], type: "string" },
18098
- modified_from: {
18091
+ mutation_code: { enum: ["deleting"], type: "string" }
18092
+ },
18093
+ required: ["created_at", "mutation_code"],
18094
+ type: "object"
18095
+ },
18096
+ {
18097
+ properties: {
18098
+ created_at: { format: "date-time", type: "string" },
18099
+ from: {
18099
18100
  properties: {
18100
18101
  email_address: {
18101
18102
  format: "email",
@@ -18107,7 +18108,11 @@ var openapi_default = {
18107
18108
  },
18108
18109
  type: "object"
18109
18110
  },
18110
- modified_to: {
18111
+ mutation_code: {
18112
+ enum: ["updating_user_information"],
18113
+ type: "string"
18114
+ },
18115
+ to: {
18111
18116
  properties: {
18112
18117
  email_address: {
18113
18118
  format: "email",
@@ -18120,22 +18125,13 @@ var openapi_default = {
18120
18125
  type: "object"
18121
18126
  }
18122
18127
  },
18123
- required: [
18124
- "created_at",
18125
- "modification_code",
18126
- "modified_from",
18127
- "modified_to"
18128
- ],
18128
+ required: ["created_at", "mutation_code", "from", "to"],
18129
18129
  type: "object"
18130
18130
  },
18131
18131
  {
18132
18132
  properties: {
18133
18133
  created_at: { format: "date-time", type: "string" },
18134
- modification_code: {
18135
- enum: ["access_schedule"],
18136
- type: "string"
18137
- },
18138
- modified_from: {
18134
+ from: {
18139
18135
  properties: {
18140
18136
  ends_at: {
18141
18137
  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.",
@@ -18152,7 +18148,11 @@ var openapi_default = {
18152
18148
  required: ["starts_at", "ends_at"],
18153
18149
  type: "object"
18154
18150
  },
18155
- modified_to: {
18151
+ mutation_code: {
18152
+ enum: ["updating_access_schedule"],
18153
+ type: "string"
18154
+ },
18155
+ to: {
18156
18156
  properties: {
18157
18157
  ends_at: {
18158
18158
  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.",
@@ -18170,48 +18170,34 @@ var openapi_default = {
18170
18170
  type: "object"
18171
18171
  }
18172
18172
  },
18173
- required: [
18174
- "created_at",
18175
- "modification_code",
18176
- "modified_from",
18177
- "modified_to"
18178
- ],
18173
+ required: ["created_at", "mutation_code", "from", "to"],
18179
18174
  type: "object"
18180
18175
  },
18181
18176
  {
18182
18177
  properties: {
18183
18178
  created_at: { format: "date-time", type: "string" },
18184
- modification_code: {
18185
- enum: ["suspension_state"],
18186
- type: "string"
18187
- },
18188
- modified_from: {
18179
+ from: {
18189
18180
  properties: { is_suspended: { type: "boolean" } },
18190
18181
  required: ["is_suspended"],
18191
18182
  type: "object"
18192
18183
  },
18193
- modified_to: {
18184
+ mutation_code: {
18185
+ enum: ["updating_suspension_state"],
18186
+ type: "string"
18187
+ },
18188
+ to: {
18194
18189
  properties: { is_suspended: { type: "boolean" } },
18195
18190
  required: ["is_suspended"],
18196
18191
  type: "object"
18197
18192
  }
18198
18193
  },
18199
- required: [
18200
- "created_at",
18201
- "modification_code",
18202
- "modified_from",
18203
- "modified_to"
18204
- ],
18194
+ required: ["created_at", "mutation_code", "from", "to"],
18205
18195
  type: "object"
18206
18196
  },
18207
18197
  {
18208
18198
  properties: {
18209
18199
  created_at: { format: "date-time", type: "string" },
18210
- modification_code: {
18211
- enum: ["acs_access_group_membership"],
18212
- type: "string"
18213
- },
18214
- modified_from: {
18200
+ from: {
18215
18201
  properties: {
18216
18202
  acs_access_group_id: {
18217
18203
  format: "uuid",
@@ -18222,7 +18208,11 @@ var openapi_default = {
18222
18208
  required: ["acs_access_group_id"],
18223
18209
  type: "object"
18224
18210
  },
18225
- modified_to: {
18211
+ mutation_code: {
18212
+ enum: ["updating_group_membership"],
18213
+ type: "string"
18214
+ },
18215
+ to: {
18226
18216
  properties: {
18227
18217
  acs_access_group_id: {
18228
18218
  format: "uuid",
@@ -18234,12 +18224,7 @@ var openapi_default = {
18234
18224
  type: "object"
18235
18225
  }
18236
18226
  },
18237
- required: [
18238
- "created_at",
18239
- "modification_code",
18240
- "modified_from",
18241
- "modified_to"
18242
- ],
18227
+ required: ["created_at", "mutation_code", "from", "to"],
18243
18228
  type: "object"
18244
18229
  }
18245
18230
  ]
@@ -23096,7 +23081,7 @@ var openapi_default = {
23096
23081
  },
23097
23082
  "/acs/systems/list_compatible_credential_manager_acs_systems": {
23098
23083
  post: {
23099
- description: "Returns a list of all credential manager ACS systems that are compatible with a specified\n[access control system](https://docs.seam.co/latest/capability-guides/access-systems).\n\nSpecify the ACS system for which you want to retrieve all compatible credential manager ACS\nsystems by including the corresponding `acs_system_id` in the request body.",
23084
+ description: "Returns a list of all credential manager ACS systems that are compatible with a specified [access control system](https://docs.seam.co/latest/capability-guides/access-systems).\n\nSpecify the ACS system for which you want to retrieve all compatible credential manager ACS systems by including the corresponding `acs_system_id` in the request body.",
23100
23085
  operationId: "acsSystemsListCompatibleCredentialManagerAcsSystemsPost",
23101
23086
  requestBody: {
23102
23087
  content: {