@seamapi/types 1.894.0 → 1.896.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.
@@ -46128,6 +46128,17 @@ export type Routes = {
46128
46128
  [x: string]: string | boolean;
46129
46129
  } | undefined;
46130
46130
  event_type: 'access_code.changed';
46131
+ /** List of properties that changed on the access code. */
46132
+ changed_properties?: {
46133
+ /** Name of the property that changed (e.g. `code`). */
46134
+ property: string;
46135
+ /** Previous value of the property, or null if not set. */
46136
+ from: string | null;
46137
+ /** New value of the property, or null if cleared. */
46138
+ to: string | null;
46139
+ }[] | undefined;
46140
+ /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
46141
+ change_reason?: string | undefined;
46131
46142
  } | {
46132
46143
  /** ID of the event. */
46133
46144
  event_id: string;
@@ -48974,6 +48985,17 @@ export type Routes = {
48974
48985
  [x: string]: string | boolean;
48975
48986
  } | undefined;
48976
48987
  event_type: 'access_code.changed';
48988
+ /** List of properties that changed on the access code. */
48989
+ changed_properties?: {
48990
+ /** Name of the property that changed (e.g. `code`). */
48991
+ property: string;
48992
+ /** Previous value of the property, or null if not set. */
48993
+ from: string | null;
48994
+ /** New value of the property, or null if cleared. */
48995
+ to: string | null;
48996
+ }[] | undefined;
48997
+ /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
48998
+ change_reason?: string | undefined;
48977
48999
  } | {
48978
49000
  /** ID of the event. */
48979
49001
  event_id: string;
@@ -77263,6 +77285,17 @@ export type Routes = {
77263
77285
  [x: string]: string | boolean;
77264
77286
  } | undefined;
77265
77287
  event_type: 'access_code.changed';
77288
+ /** List of properties that changed on the access code. */
77289
+ changed_properties?: {
77290
+ /** Name of the property that changed (e.g. `code`). */
77291
+ property: string;
77292
+ /** Previous value of the property, or null if not set. */
77293
+ from: string | null;
77294
+ /** New value of the property, or null if cleared. */
77295
+ to: string | null;
77296
+ }[] | undefined;
77297
+ /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
77298
+ change_reason?: string | undefined;
77266
77299
  } | {
77267
77300
  /** ID of the event. */
77268
77301
  event_id: string;
@@ -113787,6 +113820,17 @@ export type Routes = {
113787
113820
  [x: string]: string | boolean;
113788
113821
  } | undefined;
113789
113822
  event_type: 'access_code.changed';
113823
+ /** List of properties that changed on the access code. */
113824
+ changed_properties?: {
113825
+ /** Name of the property that changed (e.g. `code`). */
113826
+ property: string;
113827
+ /** Previous value of the property, or null if not set. */
113828
+ from: string | null;
113829
+ /** New value of the property, or null if cleared. */
113830
+ to: string | null;
113831
+ }[] | undefined;
113832
+ /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
113833
+ change_reason?: string | undefined;
113790
113834
  } | {
113791
113835
  /** ID of the event. */
113792
113836
  event_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.894.0",
3
+ "version": "1.896.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -67,6 +67,30 @@ export type AccessCodeCreatedEvent = z.infer<typeof access_code_created_event>
67
67
 
68
68
  export const access_code_changed_event = access_code_event.extend({
69
69
  event_type: z.literal('access_code.changed'),
70
+ changed_properties: z
71
+ .array(
72
+ z.object({
73
+ property: z
74
+ .string()
75
+ .describe('Name of the property that changed (e.g. `code`).'),
76
+ from: z
77
+ .string()
78
+ .nullable()
79
+ .describe('Previous value of the property, or null if not set.'),
80
+ to: z
81
+ .string()
82
+ .nullable()
83
+ .describe('New value of the property, or null if cleared.'),
84
+ }),
85
+ )
86
+ .optional()
87
+ .describe('List of properties that changed on the access code.'),
88
+ change_reason: z
89
+ .string()
90
+ .optional()
91
+ .describe(
92
+ 'Human-readable reason for the change (e.g. `ongoing code auto-renewed`).',
93
+ ),
70
94
  }).describe(`
71
95
  ---
72
96
  route_path: /access_codes
@@ -17736,6 +17736,39 @@ const openapi: OpenAPISpec = {
17736
17736
  format: 'uuid',
17737
17737
  type: 'string',
17738
17738
  },
17739
+ change_reason: {
17740
+ description:
17741
+ 'Human-readable reason for the change (e.g. `ongoing code auto-renewed`).',
17742
+ type: 'string',
17743
+ },
17744
+ changed_properties: {
17745
+ description:
17746
+ 'List of properties that changed on the access code.',
17747
+ items: {
17748
+ properties: {
17749
+ from: {
17750
+ description:
17751
+ 'Previous value of the property, or null if not set.',
17752
+ nullable: true,
17753
+ type: 'string',
17754
+ },
17755
+ property: {
17756
+ description:
17757
+ 'Name of the property that changed (e.g. `code`).',
17758
+ type: 'string',
17759
+ },
17760
+ to: {
17761
+ description:
17762
+ 'New value of the property, or null if cleared.',
17763
+ nullable: true,
17764
+ type: 'string',
17765
+ },
17766
+ },
17767
+ required: ['property', 'from', 'to'],
17768
+ type: 'object',
17769
+ },
17770
+ type: 'array',
17771
+ },
17739
17772
  connected_account_custom_metadata: {
17740
17773
  additionalProperties: {
17741
17774
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
@@ -55405,6 +55405,19 @@ export type Routes = {
55405
55405
  }
55406
55406
  | undefined
55407
55407
  event_type: 'access_code.changed'
55408
+ /** List of properties that changed on the access code. */
55409
+ changed_properties?:
55410
+ | {
55411
+ /** Name of the property that changed (e.g. `code`). */
55412
+ property: string
55413
+ /** Previous value of the property, or null if not set. */
55414
+ from: string | null
55415
+ /** New value of the property, or null if cleared. */
55416
+ to: string | null
55417
+ }[]
55418
+ | undefined
55419
+ /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
55420
+ change_reason?: string | undefined
55408
55421
  }
55409
55422
  | {
55410
55423
  /** ID of the event. */
@@ -58825,6 +58838,19 @@ export type Routes = {
58825
58838
  }
58826
58839
  | undefined
58827
58840
  event_type: 'access_code.changed'
58841
+ /** List of properties that changed on the access code. */
58842
+ changed_properties?:
58843
+ | {
58844
+ /** Name of the property that changed (e.g. `code`). */
58845
+ property: string
58846
+ /** Previous value of the property, or null if not set. */
58847
+ from: string | null
58848
+ /** New value of the property, or null if cleared. */
58849
+ to: string | null
58850
+ }[]
58851
+ | undefined
58852
+ /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
58853
+ change_reason?: string | undefined
58828
58854
  }
58829
58855
  | {
58830
58856
  /** ID of the event. */
@@ -92500,6 +92526,19 @@ export type Routes = {
92500
92526
  }
92501
92527
  | undefined
92502
92528
  event_type: 'access_code.changed'
92529
+ /** List of properties that changed on the access code. */
92530
+ changed_properties?:
92531
+ | {
92532
+ /** Name of the property that changed (e.g. `code`). */
92533
+ property: string
92534
+ /** Previous value of the property, or null if not set. */
92535
+ from: string | null
92536
+ /** New value of the property, or null if cleared. */
92537
+ to: string | null
92538
+ }[]
92539
+ | undefined
92540
+ /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
92541
+ change_reason?: string | undefined
92503
92542
  }
92504
92543
  | {
92505
92544
  /** ID of the event. */
@@ -135559,6 +135598,19 @@ export type Routes = {
135559
135598
  }
135560
135599
  | undefined
135561
135600
  event_type: 'access_code.changed'
135601
+ /** List of properties that changed on the access code. */
135602
+ changed_properties?:
135603
+ | {
135604
+ /** Name of the property that changed (e.g. `code`). */
135605
+ property: string
135606
+ /** Previous value of the property, or null if not set. */
135607
+ from: string | null
135608
+ /** New value of the property, or null if cleared. */
135609
+ to: string | null
135610
+ }[]
135611
+ | undefined
135612
+ /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
135613
+ change_reason?: string | undefined
135562
135614
  }
135563
135615
  | {
135564
135616
  /** ID of the event. */