@seamapi/types 1.370.0 → 1.370.2

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.
@@ -7315,6 +7315,9 @@ export interface Routes {
7315
7315
  }>;
7316
7316
  /** */
7317
7317
  pending_modifications?: Array<{
7318
+ created_at: string;
7319
+ modification_code: 'create';
7320
+ } | {
7318
7321
  created_at: string;
7319
7322
  modification_code: 'profile';
7320
7323
  modified_from: {
@@ -11728,6 +11731,9 @@ export interface Routes {
11728
11731
  }>;
11729
11732
  /** */
11730
11733
  pending_modifications?: Array<{
11734
+ created_at: string;
11735
+ modification_code: 'create';
11736
+ } | {
11731
11737
  created_at: string;
11732
11738
  modification_code: 'profile';
11733
11739
  modified_from: {
@@ -11906,6 +11912,9 @@ export interface Routes {
11906
11912
  }>;
11907
11913
  /** */
11908
11914
  pending_modifications?: Array<{
11915
+ created_at: string;
11916
+ modification_code: 'create';
11917
+ } | {
11909
11918
  created_at: string;
11910
11919
  modification_code: 'profile';
11911
11920
  modified_from: {
@@ -12080,6 +12089,9 @@ export interface Routes {
12080
12089
  }>;
12081
12090
  /** */
12082
12091
  pending_modifications?: Array<{
12092
+ created_at: string;
12093
+ modification_code: 'create';
12094
+ } | {
12083
12095
  created_at: string;
12084
12096
  modification_code: 'profile';
12085
12097
  modified_from: {
@@ -12363,6 +12375,9 @@ export interface Routes {
12363
12375
  }>;
12364
12376
  /** */
12365
12377
  pending_modifications?: Array<{
12378
+ created_at: string;
12379
+ modification_code: 'create';
12380
+ } | {
12366
12381
  created_at: string;
12367
12382
  modification_code: 'profile';
12368
12383
  modified_from: {
@@ -12527,6 +12542,9 @@ export interface Routes {
12527
12542
  }>;
12528
12543
  /** */
12529
12544
  pending_modifications?: Array<{
12545
+ created_at: string;
12546
+ modification_code: 'create';
12547
+ } | {
12530
12548
  created_at: string;
12531
12549
  modification_code: 'profile';
12532
12550
  modified_from: {
@@ -40647,6 +40665,9 @@ export interface Routes {
40647
40665
  }>;
40648
40666
  /** */
40649
40667
  pending_modifications?: Array<{
40668
+ created_at: string;
40669
+ modification_code: 'create';
40670
+ } | {
40650
40671
  created_at: string;
40651
40672
  modification_code: 'profile';
40652
40673
  modified_from: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.370.0",
3
+ "version": "1.370.2",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -7,6 +7,10 @@ const common_pending_modification = z.object({
7
7
  created_at: z.string().datetime(),
8
8
  })
9
9
 
10
+ const lifecycle_create = common_pending_modification.extend({
11
+ modification_code: z.literal('create'),
12
+ })
13
+
10
14
  const acs_user_profile = z.object({
11
15
  email_address: z.string().email().nullable(),
12
16
  full_name: z.string().nullable(),
@@ -48,6 +52,7 @@ const acs_access_group_membership_pending_modification =
48
52
  export const acs_user_pending_modification = z.discriminatedUnion(
49
53
  'modification_code',
50
54
  [
55
+ lifecycle_create,
51
56
  profile_pending_modification,
52
57
  access_schedule_pending_modification,
53
58
  suspension_state_pending_modification,
@@ -60,6 +65,7 @@ export type AcsUserPendingModification = z.infer<
60
65
  >
61
66
 
62
67
  const acs_user_pending_modifications_map = z.object({
68
+ lifecycle_create: lifecycle_create.optional().nullable(),
63
69
  'profile.full_name': common_pending_modification
64
70
  .extend({
65
71
  modification_code: z.literal('profile'),
@@ -2446,6 +2446,14 @@ export default {
2446
2446
  items: {
2447
2447
  discriminator: { propertyName: 'modification_code' },
2448
2448
  oneOf: [
2449
+ {
2450
+ properties: {
2451
+ created_at: { format: 'date-time', type: 'string' },
2452
+ modification_code: { enum: ['create'], type: 'string' },
2453
+ },
2454
+ required: ['created_at', 'modification_code'],
2455
+ type: 'object',
2456
+ },
2449
2457
  {
2450
2458
  properties: {
2451
2459
  created_at: { format: 'date-time', type: 'string' },
@@ -14974,6 +14982,14 @@ export default {
14974
14982
  items: {
14975
14983
  discriminator: { propertyName: 'modification_code' },
14976
14984
  oneOf: [
14985
+ {
14986
+ properties: {
14987
+ created_at: { format: 'date-time', type: 'string' },
14988
+ modification_code: { enum: ['create'], type: 'string' },
14989
+ },
14990
+ required: ['created_at', 'modification_code'],
14991
+ type: 'object',
14992
+ },
14977
14993
  {
14978
14994
  properties: {
14979
14995
  created_at: { format: 'date-time', type: 'string' },
@@ -20083,7 +20099,7 @@ export default {
20083
20099
  '/acs/systems/list': {
20084
20100
  post: {
20085
20101
  description:
20086
- 'Returns a list of all [access control systems](https://docs.seam.co/latest/capability-guides/access-systems).\n\nTo filter the list of returned access control systems by a specific connected account ID, include the\n`connected_account_id` in the request body. If you omit the `connected_account_id` parameter, the\nresponse includes all access control systems connected to your workspace.',
20102
+ 'Returns a list of all [access control systems](https://docs.seam.co/latest/capability-guides/access-systems).\n\nTo filter the list of returned access control systems by a specific connected account ID, include the `connected_account_id` in the request body. If you omit the `connected_account_id` parameter, the response includes all access control systems connected to your workspace.',
20087
20103
  operationId: 'acsSystemsListPost',
20088
20104
  requestBody: {
20089
20105
  content: {
@@ -8529,6 +8529,10 @@ export interface Routes {
8529
8529
  /** */
8530
8530
  pending_modifications?:
8531
8531
  | Array<
8532
+ | {
8533
+ created_at: string
8534
+ modification_code: 'create'
8535
+ }
8532
8536
  | {
8533
8537
  created_at: string
8534
8538
  modification_code: 'profile'
@@ -13817,6 +13821,10 @@ export interface Routes {
13817
13821
  /** */
13818
13822
  pending_modifications?:
13819
13823
  | Array<
13824
+ | {
13825
+ created_at: string
13826
+ modification_code: 'create'
13827
+ }
13820
13828
  | {
13821
13829
  created_at: string
13822
13830
  modification_code: 'profile'
@@ -14028,6 +14036,10 @@ export interface Routes {
14028
14036
  /** */
14029
14037
  pending_modifications?:
14030
14038
  | Array<
14039
+ | {
14040
+ created_at: string
14041
+ modification_code: 'create'
14042
+ }
14031
14043
  | {
14032
14044
  created_at: string
14033
14045
  modification_code: 'profile'
@@ -14235,6 +14247,10 @@ export interface Routes {
14235
14247
  /** */
14236
14248
  pending_modifications?:
14237
14249
  | Array<
14250
+ | {
14251
+ created_at: string
14252
+ modification_code: 'create'
14253
+ }
14238
14254
  | {
14239
14255
  created_at: string
14240
14256
  modification_code: 'profile'
@@ -14574,6 +14590,10 @@ export interface Routes {
14574
14590
  /** */
14575
14591
  pending_modifications?:
14576
14592
  | Array<
14593
+ | {
14594
+ created_at: string
14595
+ modification_code: 'create'
14596
+ }
14577
14597
  | {
14578
14598
  created_at: string
14579
14599
  modification_code: 'profile'
@@ -14771,6 +14791,10 @@ export interface Routes {
14771
14791
  /** */
14772
14792
  pending_modifications?:
14773
14793
  | Array<
14794
+ | {
14795
+ created_at: string
14796
+ modification_code: 'create'
14797
+ }
14774
14798
  | {
14775
14799
  created_at: string
14776
14800
  modification_code: 'profile'
@@ -49624,6 +49648,10 @@ export interface Routes {
49624
49648
  /** */
49625
49649
  pending_modifications?:
49626
49650
  | Array<
49651
+ | {
49652
+ created_at: string
49653
+ modification_code: 'create'
49654
+ }
49627
49655
  | {
49628
49656
  created_at: string
49629
49657
  modification_code: 'profile'