@seamapi/types 1.811.0 → 1.812.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.
@@ -11079,6 +11079,17 @@ export type Routes = {
11079
11079
  warning_code: 'device_does_not_support_access_codes';
11080
11080
  /** ID of the device that does not support access codes. */
11081
11081
  device_id: string;
11082
+ } | {
11083
+ /** Date and time at which Seam created the warning. */
11084
+ created_at: string;
11085
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
11086
+ message: string;
11087
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
11088
+ warning_code: 'device_time_constraints_violated';
11089
+ /** ID of the device whose time constraints the access grant violates. */
11090
+ device_id: string;
11091
+ /** Specific reason why the grant's times are not programmable on the device. */
11092
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
11082
11093
  })[];
11083
11094
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
11084
11095
  errors: {
@@ -11276,6 +11287,17 @@ export type Routes = {
11276
11287
  warning_code: 'device_does_not_support_access_codes';
11277
11288
  /** ID of the device that does not support access codes. */
11278
11289
  device_id: string;
11290
+ } | {
11291
+ /** Date and time at which Seam created the warning. */
11292
+ created_at: string;
11293
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
11294
+ message: string;
11295
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
11296
+ warning_code: 'device_time_constraints_violated';
11297
+ /** ID of the device whose time constraints the access grant violates. */
11298
+ device_id: string;
11299
+ /** Specific reason why the grant's times are not programmable on the device. */
11300
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
11279
11301
  })[];
11280
11302
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
11281
11303
  errors: {
@@ -13565,6 +13587,17 @@ export type Routes = {
13565
13587
  warning_code: 'device_does_not_support_access_codes';
13566
13588
  /** ID of the device that does not support access codes. */
13567
13589
  device_id: string;
13590
+ } | {
13591
+ /** Date and time at which Seam created the warning. */
13592
+ created_at: string;
13593
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
13594
+ message: string;
13595
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
13596
+ warning_code: 'device_time_constraints_violated';
13597
+ /** ID of the device whose time constraints the access grant violates. */
13598
+ device_id: string;
13599
+ /** Specific reason why the grant's times are not programmable on the device. */
13600
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
13568
13601
  })[];
13569
13602
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
13570
13603
  errors: {
@@ -13764,6 +13797,17 @@ export type Routes = {
13764
13797
  warning_code: 'device_does_not_support_access_codes';
13765
13798
  /** ID of the device that does not support access codes. */
13766
13799
  device_id: string;
13800
+ } | {
13801
+ /** Date and time at which Seam created the warning. */
13802
+ created_at: string;
13803
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
13804
+ message: string;
13805
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
13806
+ warning_code: 'device_time_constraints_violated';
13807
+ /** ID of the device whose time constraints the access grant violates. */
13808
+ device_id: string;
13809
+ /** Specific reason why the grant's times are not programmable on the device. */
13810
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
13767
13811
  })[];
13768
13812
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
13769
13813
  errors: {
@@ -13937,6 +13981,17 @@ export type Routes = {
13937
13981
  warning_code: 'device_does_not_support_access_codes';
13938
13982
  /** ID of the device that does not support access codes. */
13939
13983
  device_id: string;
13984
+ } | {
13985
+ /** Date and time at which Seam created the warning. */
13986
+ created_at: string;
13987
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
13988
+ message: string;
13989
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
13990
+ warning_code: 'device_time_constraints_violated';
13991
+ /** ID of the device whose time constraints the access grant violates. */
13992
+ device_id: string;
13993
+ /** Specific reason why the grant's times are not programmable on the device. */
13994
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
13940
13995
  })[];
13941
13996
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
13942
13997
  errors: {
@@ -14119,6 +14174,17 @@ export type Routes = {
14119
14174
  warning_code: 'device_does_not_support_access_codes';
14120
14175
  /** ID of the device that does not support access codes. */
14121
14176
  device_id: string;
14177
+ } | {
14178
+ /** Date and time at which Seam created the warning. */
14179
+ created_at: string;
14180
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
14181
+ message: string;
14182
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
14183
+ warning_code: 'device_time_constraints_violated';
14184
+ /** ID of the device whose time constraints the access grant violates. */
14185
+ device_id: string;
14186
+ /** Specific reason why the grant's times are not programmable on the device. */
14187
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
14122
14188
  })[];
14123
14189
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
14124
14190
  errors: {
@@ -17322,6 +17388,17 @@ export type Routes = {
17322
17388
  warning_code: 'device_does_not_support_access_codes';
17323
17389
  /** ID of the device that does not support access codes. */
17324
17390
  device_id: string;
17391
+ } | {
17392
+ /** Date and time at which Seam created the warning. */
17393
+ created_at: string;
17394
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
17395
+ message: string;
17396
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
17397
+ warning_code: 'device_time_constraints_violated';
17398
+ /** ID of the device whose time constraints the access grant violates. */
17399
+ device_id: string;
17400
+ /** Specific reason why the grant's times are not programmable on the device. */
17401
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
17325
17402
  })[];
17326
17403
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
17327
17404
  errors: {
@@ -61732,6 +61809,17 @@ export type Routes = {
61732
61809
  warning_code: 'device_does_not_support_access_codes';
61733
61810
  /** ID of the device that does not support access codes. */
61734
61811
  device_id: string;
61812
+ } | {
61813
+ /** Date and time at which Seam created the warning. */
61814
+ created_at: string;
61815
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
61816
+ message: string;
61817
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
61818
+ warning_code: 'device_time_constraints_violated';
61819
+ /** ID of the device whose time constraints the access grant violates. */
61820
+ device_id: string;
61821
+ /** Specific reason why the grant's times are not programmable on the device. */
61822
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
61735
61823
  })[];
61736
61824
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
61737
61825
  errors: {
@@ -67372,6 +67460,17 @@ export type Routes = {
67372
67460
  warning_code: 'device_does_not_support_access_codes';
67373
67461
  /** ID of the device that does not support access codes. */
67374
67462
  device_id: string;
67463
+ } | {
67464
+ /** Date and time at which Seam created the warning. */
67465
+ created_at: string;
67466
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
67467
+ message: string;
67468
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
67469
+ warning_code: 'device_time_constraints_violated';
67470
+ /** ID of the device whose time constraints the access grant violates. */
67471
+ device_id: string;
67472
+ /** Specific reason why the grant's times are not programmable on the device. */
67473
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
67375
67474
  })[];
67376
67475
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
67377
67476
  errors: {
@@ -67825,6 +67924,17 @@ export type Routes = {
67825
67924
  warning_code: 'device_does_not_support_access_codes';
67826
67925
  /** ID of the device that does not support access codes. */
67827
67926
  device_id: string;
67927
+ } | {
67928
+ /** Date and time at which Seam created the warning. */
67929
+ created_at: string;
67930
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
67931
+ message: string;
67932
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
67933
+ warning_code: 'device_time_constraints_violated';
67934
+ /** ID of the device whose time constraints the access grant violates. */
67935
+ device_id: string;
67936
+ /** Specific reason why the grant's times are not programmable on the device. */
67937
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
67828
67938
  })[];
67829
67939
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
67830
67940
  errors: {
@@ -96238,6 +96348,17 @@ export type Routes = {
96238
96348
  warning_code: 'device_does_not_support_access_codes';
96239
96349
  /** ID of the device that does not support access codes. */
96240
96350
  device_id: string;
96351
+ } | {
96352
+ /** Date and time at which Seam created the warning. */
96353
+ created_at: string;
96354
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
96355
+ message: string;
96356
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
96357
+ warning_code: 'device_time_constraints_violated';
96358
+ /** ID of the device whose time constraints the access grant violates. */
96359
+ device_id: string;
96360
+ /** Specific reason why the grant's times are not programmable on the device. */
96361
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
96241
96362
  })[];
96242
96363
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
96243
96364
  errors: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.811.0",
3
+ "version": "1.812.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -149,6 +149,31 @@ const device_does_not_support_access_codes = common_access_grant_warning
149
149
  'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.',
150
150
  )
151
151
 
152
+ const device_time_constraints_violated_reason = z.enum([
153
+ 'duration_exceeds_max',
154
+ 'times_do_not_match_slots',
155
+ 'ongoing_not_supported',
156
+ ])
157
+
158
+ const device_time_constraints_violated = common_access_grant_warning
159
+ .extend({
160
+ warning_code: z
161
+ .literal('device_time_constraints_violated')
162
+ .describe(warning_code_description),
163
+ device_id: z
164
+ .string()
165
+ .uuid()
166
+ .describe(
167
+ 'ID of the device whose time constraints the access grant violates.',
168
+ ),
169
+ reason: device_time_constraints_violated_reason.describe(
170
+ "Specific reason why the grant's times are not programmable on the device.",
171
+ ),
172
+ })
173
+ .describe(
174
+ "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
175
+ )
176
+
152
177
  const access_grant_warning = z
153
178
  .discriminatedUnion('warning_code', [
154
179
  being_deleted,
@@ -157,6 +182,7 @@ const access_grant_warning = z
157
182
  updating_access_times,
158
183
  requested_code_unavailable,
159
184
  device_does_not_support_access_codes,
185
+ device_time_constraints_violated,
160
186
  ])
161
187
  .describe(
162
188
  'Warning associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
@@ -175,6 +201,10 @@ const _access_grant_warning_map = z.object({
175
201
  .record(z.string().uuid(), device_does_not_support_access_codes)
176
202
  .optional()
177
203
  .nullable(),
204
+ device_time_constraints_violated: z
205
+ .record(z.string().uuid(), device_time_constraints_violated)
206
+ .optional()
207
+ .nullable(),
178
208
  })
179
209
 
180
210
  export type AccessGrantWarningMap = z.infer<typeof _access_grant_warning_map>
@@ -2660,6 +2660,53 @@ export default {
2660
2660
  ],
2661
2661
  type: 'object',
2662
2662
  },
2663
+ {
2664
+ description:
2665
+ "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
2666
+ properties: {
2667
+ created_at: {
2668
+ description:
2669
+ 'Date and time at which Seam created the warning.',
2670
+ format: 'date-time',
2671
+ type: 'string',
2672
+ },
2673
+ device_id: {
2674
+ description:
2675
+ 'ID of the device whose time constraints the access grant violates.',
2676
+ format: 'uuid',
2677
+ type: 'string',
2678
+ },
2679
+ message: {
2680
+ description:
2681
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
2682
+ type: 'string',
2683
+ },
2684
+ reason: {
2685
+ description:
2686
+ "Specific reason why the grant's times are not programmable on the device.",
2687
+ enum: [
2688
+ 'duration_exceeds_max',
2689
+ 'times_do_not_match_slots',
2690
+ 'ongoing_not_supported',
2691
+ ],
2692
+ type: 'string',
2693
+ },
2694
+ warning_code: {
2695
+ description:
2696
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2697
+ enum: ['device_time_constraints_violated'],
2698
+ type: 'string',
2699
+ },
2700
+ },
2701
+ required: [
2702
+ 'created_at',
2703
+ 'message',
2704
+ 'warning_code',
2705
+ 'device_id',
2706
+ 'reason',
2707
+ ],
2708
+ type: 'object',
2709
+ },
2663
2710
  ],
2664
2711
  },
2665
2712
  type: 'array',
@@ -36323,6 +36370,53 @@ export default {
36323
36370
  ],
36324
36371
  type: 'object',
36325
36372
  },
36373
+ {
36374
+ description:
36375
+ "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
36376
+ properties: {
36377
+ created_at: {
36378
+ description:
36379
+ 'Date and time at which Seam created the warning.',
36380
+ format: 'date-time',
36381
+ type: 'string',
36382
+ },
36383
+ device_id: {
36384
+ description:
36385
+ 'ID of the device whose time constraints the access grant violates.',
36386
+ format: 'uuid',
36387
+ type: 'string',
36388
+ },
36389
+ message: {
36390
+ description:
36391
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
36392
+ type: 'string',
36393
+ },
36394
+ reason: {
36395
+ description:
36396
+ "Specific reason why the grant's times are not programmable on the device.",
36397
+ enum: [
36398
+ 'duration_exceeds_max',
36399
+ 'times_do_not_match_slots',
36400
+ 'ongoing_not_supported',
36401
+ ],
36402
+ type: 'string',
36403
+ },
36404
+ warning_code: {
36405
+ description:
36406
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
36407
+ enum: ['device_time_constraints_violated'],
36408
+ type: 'string',
36409
+ },
36410
+ },
36411
+ required: [
36412
+ 'created_at',
36413
+ 'message',
36414
+ 'warning_code',
36415
+ 'device_id',
36416
+ 'reason',
36417
+ ],
36418
+ type: 'object',
36419
+ },
36326
36420
  ],
36327
36421
  },
36328
36422
  type: 'array',
@@ -36979,6 +37073,53 @@ export default {
36979
37073
  ],
36980
37074
  type: 'object',
36981
37075
  },
37076
+ {
37077
+ description:
37078
+ "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
37079
+ properties: {
37080
+ created_at: {
37081
+ description:
37082
+ 'Date and time at which Seam created the warning.',
37083
+ format: 'date-time',
37084
+ type: 'string',
37085
+ },
37086
+ device_id: {
37087
+ description:
37088
+ 'ID of the device whose time constraints the access grant violates.',
37089
+ format: 'uuid',
37090
+ type: 'string',
37091
+ },
37092
+ message: {
37093
+ description:
37094
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
37095
+ type: 'string',
37096
+ },
37097
+ reason: {
37098
+ description:
37099
+ "Specific reason why the grant's times are not programmable on the device.",
37100
+ enum: [
37101
+ 'duration_exceeds_max',
37102
+ 'times_do_not_match_slots',
37103
+ 'ongoing_not_supported',
37104
+ ],
37105
+ type: 'string',
37106
+ },
37107
+ warning_code: {
37108
+ description:
37109
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
37110
+ enum: ['device_time_constraints_violated'],
37111
+ type: 'string',
37112
+ },
37113
+ },
37114
+ required: [
37115
+ 'created_at',
37116
+ 'message',
37117
+ 'warning_code',
37118
+ 'device_id',
37119
+ 'reason',
37120
+ ],
37121
+ type: 'object',
37122
+ },
36982
37123
  ],
36983
37124
  },
36984
37125
  type: 'array',
@@ -37684,6 +37825,55 @@ export default {
37684
37825
  ],
37685
37826
  type: 'object',
37686
37827
  },
37828
+ {
37829
+ description:
37830
+ "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
37831
+ properties: {
37832
+ created_at: {
37833
+ description:
37834
+ 'Date and time at which Seam created the warning.',
37835
+ format: 'date-time',
37836
+ type: 'string',
37837
+ },
37838
+ device_id: {
37839
+ description:
37840
+ 'ID of the device whose time constraints the access grant violates.',
37841
+ format: 'uuid',
37842
+ type: 'string',
37843
+ },
37844
+ message: {
37845
+ description:
37846
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
37847
+ type: 'string',
37848
+ },
37849
+ reason: {
37850
+ description:
37851
+ "Specific reason why the grant's times are not programmable on the device.",
37852
+ enum: [
37853
+ 'duration_exceeds_max',
37854
+ 'times_do_not_match_slots',
37855
+ 'ongoing_not_supported',
37856
+ ],
37857
+ type: 'string',
37858
+ },
37859
+ warning_code: {
37860
+ description:
37861
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
37862
+ enum: [
37863
+ 'device_time_constraints_violated',
37864
+ ],
37865
+ type: 'string',
37866
+ },
37867
+ },
37868
+ required: [
37869
+ 'created_at',
37870
+ 'message',
37871
+ 'warning_code',
37872
+ 'device_id',
37873
+ 'reason',
37874
+ ],
37875
+ type: 'object',
37876
+ },
37687
37877
  ],
37688
37878
  },
37689
37879
  type: 'array',
@@ -38376,6 +38566,55 @@ export default {
38376
38566
  ],
38377
38567
  type: 'object',
38378
38568
  },
38569
+ {
38570
+ description:
38571
+ "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
38572
+ properties: {
38573
+ created_at: {
38574
+ description:
38575
+ 'Date and time at which Seam created the warning.',
38576
+ format: 'date-time',
38577
+ type: 'string',
38578
+ },
38579
+ device_id: {
38580
+ description:
38581
+ 'ID of the device whose time constraints the access grant violates.',
38582
+ format: 'uuid',
38583
+ type: 'string',
38584
+ },
38585
+ message: {
38586
+ description:
38587
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
38588
+ type: 'string',
38589
+ },
38590
+ reason: {
38591
+ description:
38592
+ "Specific reason why the grant's times are not programmable on the device.",
38593
+ enum: [
38594
+ 'duration_exceeds_max',
38595
+ 'times_do_not_match_slots',
38596
+ 'ongoing_not_supported',
38597
+ ],
38598
+ type: 'string',
38599
+ },
38600
+ warning_code: {
38601
+ description:
38602
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
38603
+ enum: [
38604
+ 'device_time_constraints_violated',
38605
+ ],
38606
+ type: 'string',
38607
+ },
38608
+ },
38609
+ required: [
38610
+ 'created_at',
38611
+ 'message',
38612
+ 'warning_code',
38613
+ 'device_id',
38614
+ 'reason',
38615
+ ],
38616
+ type: 'object',
38617
+ },
38379
38618
  ],
38380
38619
  },
38381
38620
  type: 'array',