@seamapi/types 1.959.0 → 1.960.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.
@@ -2067,6 +2067,13 @@ export type Routes = {
2067
2067
  created_at?: string | undefined;
2068
2068
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2069
2069
  warning_code: 'being_deleted';
2070
+ } | {
2071
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2072
+ message: string;
2073
+ /** Date and time at which Seam created the warning. */
2074
+ created_at?: string | undefined;
2075
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2076
+ warning_code: 'unknown_issue_with_access_code';
2070
2077
  })[];
2071
2078
  /** Indicates whether Seam manages the access code. */
2072
2079
  is_managed: true;
@@ -2573,6 +2580,13 @@ export type Routes = {
2573
2580
  created_at?: string | undefined;
2574
2581
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2575
2582
  warning_code: 'being_deleted';
2583
+ } | {
2584
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2585
+ message: string;
2586
+ /** Date and time at which Seam created the warning. */
2587
+ created_at?: string | undefined;
2588
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2589
+ warning_code: 'unknown_issue_with_access_code';
2576
2590
  })[];
2577
2591
  /** Indicates whether Seam manages the access code. */
2578
2592
  is_managed: true;
@@ -4767,6 +4781,13 @@ export type Routes = {
4767
4781
  created_at?: string | undefined;
4768
4782
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4769
4783
  warning_code: 'being_deleted';
4784
+ } | {
4785
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
4786
+ message: string;
4787
+ /** Date and time at which Seam created the warning. */
4788
+ created_at?: string | undefined;
4789
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4790
+ warning_code: 'unknown_issue_with_access_code';
4770
4791
  })[];
4771
4792
  /** Indicates whether Seam manages the access code. */
4772
4793
  is_managed: true;
@@ -5321,6 +5342,13 @@ export type Routes = {
5321
5342
  created_at?: string | undefined;
5322
5343
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5323
5344
  warning_code: 'being_deleted';
5345
+ } | {
5346
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
5347
+ message: string;
5348
+ /** Date and time at which Seam created the warning. */
5349
+ created_at?: string | undefined;
5350
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5351
+ warning_code: 'unknown_issue_with_access_code';
5324
5352
  })[];
5325
5353
  /** Indicates whether Seam manages the access code. */
5326
5354
  is_managed: true;
@@ -5818,6 +5846,13 @@ export type Routes = {
5818
5846
  created_at?: string | undefined;
5819
5847
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5820
5848
  warning_code: 'being_deleted';
5849
+ } | {
5850
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
5851
+ message: string;
5852
+ /** Date and time at which Seam created the warning. */
5853
+ created_at?: string | undefined;
5854
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5855
+ warning_code: 'unknown_issue_with_access_code';
5821
5856
  })[];
5822
5857
  /** Indicates whether Seam manages the access code. */
5823
5858
  is_managed: true;
@@ -6292,6 +6327,13 @@ export type Routes = {
6292
6327
  created_at?: string | undefined;
6293
6328
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6294
6329
  warning_code: 'being_deleted';
6330
+ } | {
6331
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6332
+ message: string;
6333
+ /** Date and time at which Seam created the warning. */
6334
+ created_at?: string | undefined;
6335
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6336
+ warning_code: 'unknown_issue_with_access_code';
6295
6337
  })[];
6296
6338
  /** Indicates whether Seam manages the access code. */
6297
6339
  is_managed: true;
@@ -6799,6 +6841,13 @@ export type Routes = {
6799
6841
  created_at?: string | undefined;
6800
6842
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6801
6843
  warning_code: 'being_deleted';
6844
+ } | {
6845
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6846
+ message: string;
6847
+ /** Date and time at which Seam created the warning. */
6848
+ created_at?: string | undefined;
6849
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6850
+ warning_code: 'unknown_issue_with_access_code';
6802
6851
  })[];
6803
6852
  /** Indicates that Seam does not manage the access code. */
6804
6853
  is_managed: false;
@@ -8902,6 +8951,13 @@ export type Routes = {
8902
8951
  created_at?: string | undefined;
8903
8952
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
8904
8953
  warning_code: 'being_deleted';
8954
+ } | {
8955
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
8956
+ message: string;
8957
+ /** Date and time at which Seam created the warning. */
8958
+ created_at?: string | undefined;
8959
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
8960
+ warning_code: 'unknown_issue_with_access_code';
8905
8961
  })[];
8906
8962
  /** Indicates that Seam does not manage the access code. */
8907
8963
  is_managed: false;
@@ -9295,6 +9351,13 @@ export type Routes = {
9295
9351
  created_at?: string | undefined;
9296
9352
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9297
9353
  warning_code: 'being_deleted';
9354
+ } | {
9355
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
9356
+ message: string;
9357
+ /** Date and time at which Seam created the warning. */
9358
+ created_at?: string | undefined;
9359
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9360
+ warning_code: 'unknown_issue_with_access_code';
9298
9361
  })[];
9299
9362
  /** Indicates that Seam does not manage the access code. */
9300
9363
  is_managed: false;
@@ -120715,6 +120778,13 @@ export type Routes = {
120715
120778
  created_at?: string | undefined;
120716
120779
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
120717
120780
  warning_code: 'being_deleted';
120781
+ } | {
120782
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
120783
+ message: string;
120784
+ /** Date and time at which Seam created the warning. */
120785
+ created_at?: string | undefined;
120786
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
120787
+ warning_code: 'unknown_issue_with_access_code';
120718
120788
  })[];
120719
120789
  /** Indicates that Seam does not manage the access code. */
120720
120790
  is_managed: false;
@@ -121092,6 +121162,13 @@ export type Routes = {
121092
121162
  created_at?: string | undefined;
121093
121163
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
121094
121164
  warning_code: 'being_deleted';
121165
+ } | {
121166
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
121167
+ message: string;
121168
+ /** Date and time at which Seam created the warning. */
121169
+ created_at?: string | undefined;
121170
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
121171
+ warning_code: 'unknown_issue_with_access_code';
121095
121172
  })[];
121096
121173
  /** Indicates whether Seam manages the access code. */
121097
121174
  is_managed: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.959.0",
3
+ "version": "1.960.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -298,6 +298,14 @@ const being_deleted = common_access_code_warning
298
298
  })
299
299
  .describe('Access code is being deleted.')
300
300
 
301
+ const unknown_issue_with_access_code = common_access_code_warning
302
+ .extend({
303
+ warning_code: z
304
+ .literal('unknown_issue_with_access_code')
305
+ .describe(warning_code_description),
306
+ })
307
+ .describe('An unknown issue occurred with the access code.')
308
+
301
309
  const access_code_warning = z
302
310
  .discriminatedUnion('warning_code', [
303
311
  code_rotates_periodically,
@@ -310,6 +318,7 @@ const access_code_warning = z
310
318
  management_transferred,
311
319
  using_backup_access_code,
312
320
  being_deleted,
321
+ unknown_issue_with_access_code,
313
322
  ])
314
323
  .describe(
315
324
  'Warnings associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).',
@@ -336,6 +345,9 @@ const _access_code_warning_map = z.object({
336
345
  management_transferred: management_transferred.optional().nullable(),
337
346
  using_backup_access_code: using_backup_access_code.optional().nullable(),
338
347
  being_deleted: being_deleted.optional().nullable(),
348
+ unknown_issue_with_access_code: unknown_issue_with_access_code
349
+ .optional()
350
+ .nullable(),
339
351
  })
340
352
 
341
353
  export type AccessCodeWarningMap = z.infer<typeof _access_code_warning_map>
@@ -1660,6 +1660,31 @@ const openapi: OpenAPISpec = {
1660
1660
  required: ['message', 'warning_code'],
1661
1661
  type: 'object',
1662
1662
  },
1663
+ {
1664
+ description:
1665
+ 'An unknown issue occurred with the access code.',
1666
+ properties: {
1667
+ created_at: {
1668
+ description:
1669
+ 'Date and time at which Seam created the warning.',
1670
+ format: 'date-time',
1671
+ type: 'string',
1672
+ },
1673
+ message: {
1674
+ description:
1675
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
1676
+ type: 'string',
1677
+ },
1678
+ warning_code: {
1679
+ description:
1680
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
1681
+ enum: ['unknown_issue_with_access_code'],
1682
+ type: 'string',
1683
+ },
1684
+ },
1685
+ required: ['message', 'warning_code'],
1686
+ type: 'object',
1687
+ },
1663
1688
  ],
1664
1689
  },
1665
1690
  type: 'array',
@@ -30586,6 +30611,31 @@ const openapi: OpenAPISpec = {
30586
30611
  required: ['message', 'warning_code'],
30587
30612
  type: 'object',
30588
30613
  },
30614
+ {
30615
+ description:
30616
+ 'An unknown issue occurred with the access code.',
30617
+ properties: {
30618
+ created_at: {
30619
+ description:
30620
+ 'Date and time at which Seam created the warning.',
30621
+ format: 'date-time',
30622
+ type: 'string',
30623
+ },
30624
+ message: {
30625
+ description:
30626
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
30627
+ type: 'string',
30628
+ },
30629
+ warning_code: {
30630
+ description:
30631
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
30632
+ enum: ['unknown_issue_with_access_code'],
30633
+ type: 'string',
30634
+ },
30635
+ },
30636
+ required: ['message', 'warning_code'],
30637
+ type: 'object',
30638
+ },
30589
30639
  ],
30590
30640
  },
30591
30641
  type: 'array',
@@ -2434,6 +2434,14 @@ export type Routes = {
2434
2434
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2435
2435
  warning_code: 'being_deleted'
2436
2436
  }
2437
+ | {
2438
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2439
+ message: string
2440
+ /** Date and time at which Seam created the warning. */
2441
+ created_at?: string | undefined
2442
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2443
+ warning_code: 'unknown_issue_with_access_code'
2444
+ }
2437
2445
  )[]
2438
2446
  /** Indicates whether Seam manages the access code. */
2439
2447
  is_managed: true
@@ -2989,6 +2997,14 @@ export type Routes = {
2989
2997
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2990
2998
  warning_code: 'being_deleted'
2991
2999
  }
3000
+ | {
3001
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
3002
+ message: string
3003
+ /** Date and time at which Seam created the warning. */
3004
+ created_at?: string | undefined
3005
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3006
+ warning_code: 'unknown_issue_with_access_code'
3007
+ }
2992
3008
  )[]
2993
3009
  /** Indicates whether Seam manages the access code. */
2994
3010
  is_managed: true
@@ -5559,6 +5575,14 @@ export type Routes = {
5559
5575
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5560
5576
  warning_code: 'being_deleted'
5561
5577
  }
5578
+ | {
5579
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
5580
+ message: string
5581
+ /** Date and time at which Seam created the warning. */
5582
+ created_at?: string | undefined
5583
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5584
+ warning_code: 'unknown_issue_with_access_code'
5585
+ }
5562
5586
  )[]
5563
5587
  /** Indicates whether Seam manages the access code. */
5564
5588
  is_managed: true
@@ -6215,6 +6239,14 @@ export type Routes = {
6215
6239
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6216
6240
  warning_code: 'being_deleted'
6217
6241
  }
6242
+ | {
6243
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6244
+ message: string
6245
+ /** Date and time at which Seam created the warning. */
6246
+ created_at?: string | undefined
6247
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6248
+ warning_code: 'unknown_issue_with_access_code'
6249
+ }
6218
6250
  )[]
6219
6251
  /** Indicates whether Seam manages the access code. */
6220
6252
  is_managed: true
@@ -6761,6 +6793,14 @@ export type Routes = {
6761
6793
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6762
6794
  warning_code: 'being_deleted'
6763
6795
  }
6796
+ | {
6797
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6798
+ message: string
6799
+ /** Date and time at which Seam created the warning. */
6800
+ created_at?: string | undefined
6801
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6802
+ warning_code: 'unknown_issue_with_access_code'
6803
+ }
6764
6804
  )[]
6765
6805
  /** Indicates whether Seam manages the access code. */
6766
6806
  is_managed: true
@@ -7284,6 +7324,14 @@ export type Routes = {
7284
7324
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7285
7325
  warning_code: 'being_deleted'
7286
7326
  }
7327
+ | {
7328
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
7329
+ message: string
7330
+ /** Date and time at which Seam created the warning. */
7331
+ created_at?: string | undefined
7332
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7333
+ warning_code: 'unknown_issue_with_access_code'
7334
+ }
7287
7335
  )[]
7288
7336
  /** Indicates whether Seam manages the access code. */
7289
7337
  is_managed: true
@@ -7840,6 +7888,14 @@ export type Routes = {
7840
7888
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7841
7889
  warning_code: 'being_deleted'
7842
7890
  }
7891
+ | {
7892
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
7893
+ message: string
7894
+ /** Date and time at which Seam created the warning. */
7895
+ created_at?: string | undefined
7896
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7897
+ warning_code: 'unknown_issue_with_access_code'
7898
+ }
7843
7899
  )[]
7844
7900
  /** Indicates that Seam does not manage the access code. */
7845
7901
  is_managed: false
@@ -10312,6 +10368,14 @@ export type Routes = {
10312
10368
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
10313
10369
  warning_code: 'being_deleted'
10314
10370
  }
10371
+ | {
10372
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
10373
+ message: string
10374
+ /** Date and time at which Seam created the warning. */
10375
+ created_at?: string | undefined
10376
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
10377
+ warning_code: 'unknown_issue_with_access_code'
10378
+ }
10315
10379
  )[]
10316
10380
  /** Indicates that Seam does not manage the access code. */
10317
10381
  is_managed: false
@@ -10747,6 +10811,14 @@ export type Routes = {
10747
10811
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
10748
10812
  warning_code: 'being_deleted'
10749
10813
  }
10814
+ | {
10815
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
10816
+ message: string
10817
+ /** Date and time at which Seam created the warning. */
10818
+ created_at?: string | undefined
10819
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
10820
+ warning_code: 'unknown_issue_with_access_code'
10821
+ }
10750
10822
  )[]
10751
10823
  /** Indicates that Seam does not manage the access code. */
10752
10824
  is_managed: false
@@ -146819,6 +146891,14 @@ export type Routes = {
146819
146891
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
146820
146892
  warning_code: 'being_deleted'
146821
146893
  }
146894
+ | {
146895
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
146896
+ message: string
146897
+ /** Date and time at which Seam created the warning. */
146898
+ created_at?: string | undefined
146899
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
146900
+ warning_code: 'unknown_issue_with_access_code'
146901
+ }
146822
146902
  )[]
146823
146903
  /** Indicates that Seam does not manage the access code. */
146824
146904
  is_managed: false
@@ -147240,6 +147320,14 @@ export type Routes = {
147240
147320
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
147241
147321
  warning_code: 'being_deleted'
147242
147322
  }
147323
+ | {
147324
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
147325
+ message: string
147326
+ /** Date and time at which Seam created the warning. */
147327
+ created_at?: string | undefined
147328
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
147329
+ warning_code: 'unknown_issue_with_access_code'
147330
+ }
147243
147331
  )[]
147244
147332
  /** Indicates whether Seam manages the access code. */
147245
147333
  is_managed: true