@seamapi/types 1.924.0 → 1.925.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.
@@ -1859,15 +1859,6 @@ export type Routes = {
1859
1859
  created_at?: string | undefined;
1860
1860
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
1861
1861
  error_code: 'insufficient_permissions';
1862
- } | {
1863
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
1864
- message: string;
1865
- /** Indicates that this is an access code error. */
1866
- is_access_code_error: true;
1867
- /** Date and time at which Seam created the error. */
1868
- created_at?: string | undefined;
1869
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
1870
- error_code: 'replaced_by_newer_access_code';
1871
1862
  } | {
1872
1863
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
1873
1864
  message: string;
@@ -2408,15 +2399,6 @@ export type Routes = {
2408
2399
  created_at?: string | undefined;
2409
2400
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2410
2401
  error_code: 'insufficient_permissions';
2411
- } | {
2412
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2413
- message: string;
2414
- /** Indicates that this is an access code error. */
2415
- is_access_code_error: true;
2416
- /** Date and time at which Seam created the error. */
2417
- created_at?: string | undefined;
2418
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2419
- error_code: 'replaced_by_newer_access_code';
2420
2402
  } | {
2421
2403
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2422
2404
  message: string;
@@ -4645,15 +4627,6 @@ export type Routes = {
4645
4627
  created_at?: string | undefined;
4646
4628
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4647
4629
  error_code: 'insufficient_permissions';
4648
- } | {
4649
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
4650
- message: string;
4651
- /** Indicates that this is an access code error. */
4652
- is_access_code_error: true;
4653
- /** Date and time at which Seam created the error. */
4654
- created_at?: string | undefined;
4655
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4656
- error_code: 'replaced_by_newer_access_code';
4657
4630
  } | {
4658
4631
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
4659
4632
  message: string;
@@ -5240,15 +5213,6 @@ export type Routes = {
5240
5213
  created_at?: string | undefined;
5241
5214
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5242
5215
  error_code: 'insufficient_permissions';
5243
- } | {
5244
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5245
- message: string;
5246
- /** Indicates that this is an access code error. */
5247
- is_access_code_error: true;
5248
- /** Date and time at which Seam created the error. */
5249
- created_at?: string | undefined;
5250
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5251
- error_code: 'replaced_by_newer_access_code';
5252
5216
  } | {
5253
5217
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5254
5218
  message: string;
@@ -5780,15 +5744,6 @@ export type Routes = {
5780
5744
  created_at?: string | undefined;
5781
5745
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5782
5746
  error_code: 'insufficient_permissions';
5783
- } | {
5784
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5785
- message: string;
5786
- /** Indicates that this is an access code error. */
5787
- is_access_code_error: true;
5788
- /** Date and time at which Seam created the error. */
5789
- created_at?: string | undefined;
5790
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5791
- error_code: 'replaced_by_newer_access_code';
5792
5747
  } | {
5793
5748
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5794
5749
  message: string;
@@ -6297,15 +6252,6 @@ export type Routes = {
6297
6252
  created_at?: string | undefined;
6298
6253
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6299
6254
  error_code: 'insufficient_permissions';
6300
- } | {
6301
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6302
- message: string;
6303
- /** Indicates that this is an access code error. */
6304
- is_access_code_error: true;
6305
- /** Date and time at which Seam created the error. */
6306
- created_at?: string | undefined;
6307
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6308
- error_code: 'replaced_by_newer_access_code';
6309
6255
  } | {
6310
6256
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6311
6257
  message: string;
@@ -6847,15 +6793,6 @@ export type Routes = {
6847
6793
  created_at?: string | undefined;
6848
6794
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6849
6795
  error_code: 'insufficient_permissions';
6850
- } | {
6851
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6852
- message: string;
6853
- /** Indicates that this is an access code error. */
6854
- is_access_code_error: true;
6855
- /** Date and time at which Seam created the error. */
6856
- created_at?: string | undefined;
6857
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6858
- error_code: 'replaced_by_newer_access_code';
6859
6796
  } | {
6860
6797
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6861
6798
  message: string;
@@ -8993,15 +8930,6 @@ export type Routes = {
8993
8930
  created_at?: string | undefined;
8994
8931
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
8995
8932
  error_code: 'insufficient_permissions';
8996
- } | {
8997
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
8998
- message: string;
8999
- /** Indicates that this is an access code error. */
9000
- is_access_code_error: true;
9001
- /** Date and time at which Seam created the error. */
9002
- created_at?: string | undefined;
9003
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
9004
- error_code: 'replaced_by_newer_access_code';
9005
8933
  } | {
9006
8934
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
9007
8935
  message: string;
@@ -9429,15 +9357,6 @@ export type Routes = {
9429
9357
  created_at?: string | undefined;
9430
9358
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
9431
9359
  error_code: 'insufficient_permissions';
9432
- } | {
9433
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
9434
- message: string;
9435
- /** Indicates that this is an access code error. */
9436
- is_access_code_error: true;
9437
- /** Date and time at which Seam created the error. */
9438
- created_at?: string | undefined;
9439
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
9440
- error_code: 'replaced_by_newer_access_code';
9441
9360
  } | {
9442
9361
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
9443
9362
  message: string;
@@ -117702,15 +117621,6 @@ export type Routes = {
117702
117621
  created_at?: string | undefined;
117703
117622
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
117704
117623
  error_code: 'insufficient_permissions';
117705
- } | {
117706
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
117707
- message: string;
117708
- /** Indicates that this is an access code error. */
117709
- is_access_code_error: true;
117710
- /** Date and time at which Seam created the error. */
117711
- created_at?: string | undefined;
117712
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
117713
- error_code: 'replaced_by_newer_access_code';
117714
117624
  } | {
117715
117625
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
117716
117626
  message: string;
@@ -118122,15 +118032,6 @@ export type Routes = {
118122
118032
  created_at?: string | undefined;
118123
118033
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
118124
118034
  error_code: 'insufficient_permissions';
118125
- } | {
118126
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
118127
- message: string;
118128
- /** Indicates that this is an access code error. */
118129
- is_access_code_error: true;
118130
- /** Date and time at which Seam created the error. */
118131
- created_at?: string | undefined;
118132
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
118133
- error_code: 'replaced_by_newer_access_code';
118134
118035
  } | {
118135
118036
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
118136
118037
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.924.0",
3
+ "version": "1.925.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -182,17 +182,6 @@ const salto_ks_user_not_subscribed = common_access_code_error
182
182
  `,
183
183
  )
184
184
 
185
- const replaced_by_newer_access_code = common_access_code_error.extend({
186
- error_code: z
187
- .literal('replaced_by_newer_access_code')
188
- .describe(error_code_description),
189
- }).describe(`
190
- ---
191
- resource_type: access_code
192
- ---
193
- This access code was overridden on the device by a newer access code programmed to the same slot.
194
- `)
195
-
196
185
  const access_code_error = z
197
186
  .discriminatedUnion('error_code', [
198
187
  provider_issue,
@@ -206,7 +195,6 @@ const access_code_error = z
206
195
  access_code_inactive_error,
207
196
  salto_ks_user_not_subscribed,
208
197
  insufficient_permissions,
209
- replaced_by_newer_access_code,
210
198
  ])
211
199
  .describe(
212
200
  'Errors associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).',
@@ -238,9 +226,6 @@ const _access_code_error_map = z.object({
238
226
  salto_ks_user_not_subscribed: salto_ks_user_not_subscribed
239
227
  .optional()
240
228
  .nullable(),
241
- replaced_by_newer_access_code: replaced_by_newer_access_code
242
- .optional()
243
- .nullable(),
244
229
  })
245
230
 
246
231
  export type AccessCodeErrorMap = z.infer<typeof _access_code_error_map>
@@ -497,38 +497,6 @@ const openapi: OpenAPISpec = {
497
497
  type: 'object',
498
498
  'x-resource-type': 'access_code',
499
499
  },
500
- {
501
- description:
502
- 'This access code was overridden on the device by a newer access code programmed to the same slot.',
503
- properties: {
504
- created_at: {
505
- description:
506
- 'Date and time at which Seam created the error.',
507
- format: 'date-time',
508
- type: 'string',
509
- },
510
- error_code: {
511
- description:
512
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
513
- enum: ['replaced_by_newer_access_code'],
514
- type: 'string',
515
- },
516
- is_access_code_error: {
517
- description:
518
- 'Indicates that this is an access code error.',
519
- enum: [true],
520
- type: 'boolean',
521
- },
522
- message: {
523
- description:
524
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
525
- type: 'string',
526
- },
527
- },
528
- required: ['message', 'is_access_code_error', 'error_code'],
529
- type: 'object',
530
- 'x-resource-type': 'access_code',
531
- },
532
500
  {
533
501
  description: 'Indicates that the account is disconnected.',
534
502
  properties: {
@@ -29222,38 +29190,6 @@ const openapi: OpenAPISpec = {
29222
29190
  type: 'object',
29223
29191
  'x-resource-type': 'access_code',
29224
29192
  },
29225
- {
29226
- description:
29227
- 'This access code was overridden on the device by a newer access code programmed to the same slot.',
29228
- properties: {
29229
- created_at: {
29230
- description:
29231
- 'Date and time at which Seam created the error.',
29232
- format: 'date-time',
29233
- type: 'string',
29234
- },
29235
- error_code: {
29236
- description:
29237
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
29238
- enum: ['replaced_by_newer_access_code'],
29239
- type: 'string',
29240
- },
29241
- is_access_code_error: {
29242
- description:
29243
- 'Indicates that this is an access code error.',
29244
- enum: [true],
29245
- type: 'boolean',
29246
- },
29247
- message: {
29248
- description:
29249
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
29250
- type: 'string',
29251
- },
29252
- },
29253
- required: ['message', 'is_access_code_error', 'error_code'],
29254
- type: 'object',
29255
- 'x-resource-type': 'access_code',
29256
- },
29257
29193
  {
29258
29194
  description: 'Indicates that the account is disconnected.',
29259
29195
  properties: {
@@ -2139,16 +2139,6 @@ export type Routes = {
2139
2139
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2140
2140
  error_code: 'insufficient_permissions'
2141
2141
  }
2142
- | {
2143
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2144
- message: string
2145
- /** Indicates that this is an access code error. */
2146
- is_access_code_error: true
2147
- /** Date and time at which Seam created the error. */
2148
- created_at?: string | undefined
2149
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2150
- error_code: 'replaced_by_newer_access_code'
2151
- }
2152
2142
  | {
2153
2143
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2154
2144
  message: string
@@ -2742,16 +2732,6 @@ export type Routes = {
2742
2732
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2743
2733
  error_code: 'insufficient_permissions'
2744
2734
  }
2745
- | {
2746
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2747
- message: string
2748
- /** Indicates that this is an access code error. */
2749
- is_access_code_error: true
2750
- /** Date and time at which Seam created the error. */
2751
- created_at?: string | undefined
2752
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2753
- error_code: 'replaced_by_newer_access_code'
2754
- }
2755
2735
  | {
2756
2736
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2757
2737
  message: string
@@ -5299,16 +5279,6 @@ export type Routes = {
5299
5279
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5300
5280
  error_code: 'insufficient_permissions'
5301
5281
  }
5302
- | {
5303
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5304
- message: string
5305
- /** Indicates that this is an access code error. */
5306
- is_access_code_error: true
5307
- /** Date and time at which Seam created the error. */
5308
- created_at?: string | undefined
5309
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5310
- error_code: 'replaced_by_newer_access_code'
5311
- }
5312
5282
  | {
5313
5283
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5314
5284
  message: string
@@ -5989,16 +5959,6 @@ export type Routes = {
5989
5959
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5990
5960
  error_code: 'insufficient_permissions'
5991
5961
  }
5992
- | {
5993
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5994
- message: string
5995
- /** Indicates that this is an access code error. */
5996
- is_access_code_error: true
5997
- /** Date and time at which Seam created the error. */
5998
- created_at?: string | undefined
5999
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6000
- error_code: 'replaced_by_newer_access_code'
6001
- }
6002
5962
  | {
6003
5963
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6004
5964
  message: string
@@ -6583,16 +6543,6 @@ export type Routes = {
6583
6543
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6584
6544
  error_code: 'insufficient_permissions'
6585
6545
  }
6586
- | {
6587
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6588
- message: string
6589
- /** Indicates that this is an access code error. */
6590
- is_access_code_error: true
6591
- /** Date and time at which Seam created the error. */
6592
- created_at?: string | undefined
6593
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6594
- error_code: 'replaced_by_newer_access_code'
6595
- }
6596
6546
  | {
6597
6547
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6598
6548
  message: string
@@ -7154,16 +7104,6 @@ export type Routes = {
7154
7104
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7155
7105
  error_code: 'insufficient_permissions'
7156
7106
  }
7157
- | {
7158
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7159
- message: string
7160
- /** Indicates that this is an access code error. */
7161
- is_access_code_error: true
7162
- /** Date and time at which Seam created the error. */
7163
- created_at?: string | undefined
7164
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7165
- error_code: 'replaced_by_newer_access_code'
7166
- }
7167
7107
  | {
7168
7108
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7169
7109
  message: string
@@ -7758,16 +7698,6 @@ export type Routes = {
7758
7698
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7759
7699
  error_code: 'insufficient_permissions'
7760
7700
  }
7761
- | {
7762
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7763
- message: string
7764
- /** Indicates that this is an access code error. */
7765
- is_access_code_error: true
7766
- /** Date and time at which Seam created the error. */
7767
- created_at?: string | undefined
7768
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7769
- error_code: 'replaced_by_newer_access_code'
7770
- }
7771
7701
  | {
7772
7702
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7773
7703
  message: string
@@ -10217,16 +10147,6 @@ export type Routes = {
10217
10147
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
10218
10148
  error_code: 'insufficient_permissions'
10219
10149
  }
10220
- | {
10221
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
10222
- message: string
10223
- /** Indicates that this is an access code error. */
10224
- is_access_code_error: true
10225
- /** Date and time at which Seam created the error. */
10226
- created_at?: string | undefined
10227
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
10228
- error_code: 'replaced_by_newer_access_code'
10229
- }
10230
10150
  | {
10231
10151
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
10232
10152
  message: string
@@ -10700,16 +10620,6 @@ export type Routes = {
10700
10620
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
10701
10621
  error_code: 'insufficient_permissions'
10702
10622
  }
10703
- | {
10704
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
10705
- message: string
10706
- /** Indicates that this is an access code error. */
10707
- is_access_code_error: true
10708
- /** Date and time at which Seam created the error. */
10709
- created_at?: string | undefined
10710
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
10711
- error_code: 'replaced_by_newer_access_code'
10712
- }
10713
10623
  | {
10714
10624
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
10715
10625
  message: string
@@ -140016,16 +139926,6 @@ export type Routes = {
140016
139926
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
140017
139927
  error_code: 'insufficient_permissions'
140018
139928
  }
140019
- | {
140020
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
140021
- message: string
140022
- /** Indicates that this is an access code error. */
140023
- is_access_code_error: true
140024
- /** Date and time at which Seam created the error. */
140025
- created_at?: string | undefined
140026
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
140027
- error_code: 'replaced_by_newer_access_code'
140028
- }
140029
139929
  | {
140030
139930
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
140031
139931
  message: string
@@ -140485,16 +140385,6 @@ export type Routes = {
140485
140385
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
140486
140386
  error_code: 'insufficient_permissions'
140487
140387
  }
140488
- | {
140489
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
140490
- message: string
140491
- /** Indicates that this is an access code error. */
140492
- is_access_code_error: true
140493
- /** Date and time at which Seam created the error. */
140494
- created_at?: string | undefined
140495
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
140496
- error_code: 'replaced_by_newer_access_code'
140497
- }
140498
140388
  | {
140499
140389
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
140500
140390
  message: string