@seamapi/types 1.945.0 → 1.946.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.
@@ -1832,15 +1832,6 @@ export type Routes = {
1832
1832
  created_at?: string | undefined;
1833
1833
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
1834
1834
  error_code: 'access_code_inactive';
1835
- } | {
1836
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
1837
- message: string;
1838
- /** Indicates that this is an access code error. */
1839
- is_access_code_error: true;
1840
- /** Date and time at which Seam created the error. */
1841
- created_at?: string | undefined;
1842
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
1843
- error_code: 'salto_ks_user_not_subscribed';
1844
1835
  } | {
1845
1836
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
1846
1837
  message: string;
@@ -2356,15 +2347,6 @@ export type Routes = {
2356
2347
  created_at?: string | undefined;
2357
2348
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2358
2349
  error_code: 'access_code_inactive';
2359
- } | {
2360
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2361
- message: string;
2362
- /** Indicates that this is an access code error. */
2363
- is_access_code_error: true;
2364
- /** Date and time at which Seam created the error. */
2365
- created_at?: string | undefined;
2366
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2367
- error_code: 'salto_ks_user_not_subscribed';
2368
2350
  } | {
2369
2351
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2370
2352
  message: string;
@@ -4568,15 +4550,6 @@ export type Routes = {
4568
4550
  created_at?: string | undefined;
4569
4551
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4570
4552
  error_code: 'access_code_inactive';
4571
- } | {
4572
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
4573
- message: string;
4574
- /** Indicates that this is an access code error. */
4575
- is_access_code_error: true;
4576
- /** Date and time at which Seam created the error. */
4577
- created_at?: string | undefined;
4578
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4579
- error_code: 'salto_ks_user_not_subscribed';
4580
4553
  } | {
4581
4554
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
4582
4555
  message: string;
@@ -5138,15 +5111,6 @@ export type Routes = {
5138
5111
  created_at?: string | undefined;
5139
5112
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5140
5113
  error_code: 'access_code_inactive';
5141
- } | {
5142
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5143
- message: string;
5144
- /** Indicates that this is an access code error. */
5145
- is_access_code_error: true;
5146
- /** Date and time at which Seam created the error. */
5147
- created_at?: string | undefined;
5148
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5149
- error_code: 'salto_ks_user_not_subscribed';
5150
5114
  } | {
5151
5115
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5152
5116
  message: string;
@@ -5653,15 +5617,6 @@ export type Routes = {
5653
5617
  created_at?: string | undefined;
5654
5618
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5655
5619
  error_code: 'access_code_inactive';
5656
- } | {
5657
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5658
- message: string;
5659
- /** Indicates that this is an access code error. */
5660
- is_access_code_error: true;
5661
- /** Date and time at which Seam created the error. */
5662
- created_at?: string | undefined;
5663
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5664
- error_code: 'salto_ks_user_not_subscribed';
5665
5620
  } | {
5666
5621
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5667
5622
  message: string;
@@ -6145,15 +6100,6 @@ export type Routes = {
6145
6100
  created_at?: string | undefined;
6146
6101
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6147
6102
  error_code: 'access_code_inactive';
6148
- } | {
6149
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6150
- message: string;
6151
- /** Indicates that this is an access code error. */
6152
- is_access_code_error: true;
6153
- /** Date and time at which Seam created the error. */
6154
- created_at?: string | undefined;
6155
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6156
- error_code: 'salto_ks_user_not_subscribed';
6157
6103
  } | {
6158
6104
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6159
6105
  message: string;
@@ -6670,15 +6616,6 @@ export type Routes = {
6670
6616
  created_at?: string | undefined;
6671
6617
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6672
6618
  error_code: 'access_code_inactive';
6673
- } | {
6674
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6675
- message: string;
6676
- /** Indicates that this is an access code error. */
6677
- is_access_code_error: true;
6678
- /** Date and time at which Seam created the error. */
6679
- created_at?: string | undefined;
6680
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6681
- error_code: 'salto_ks_user_not_subscribed';
6682
6619
  } | {
6683
6620
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6684
6621
  message: string;
@@ -8791,15 +8728,6 @@ export type Routes = {
8791
8728
  created_at?: string | undefined;
8792
8729
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
8793
8730
  error_code: 'access_code_inactive';
8794
- } | {
8795
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
8796
- message: string;
8797
- /** Indicates that this is an access code error. */
8798
- is_access_code_error: true;
8799
- /** Date and time at which Seam created the error. */
8800
- created_at?: string | undefined;
8801
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
8802
- error_code: 'salto_ks_user_not_subscribed';
8803
8731
  } | {
8804
8732
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
8805
8733
  message: string;
@@ -9202,15 +9130,6 @@ export type Routes = {
9202
9130
  created_at?: string | undefined;
9203
9131
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
9204
9132
  error_code: 'access_code_inactive';
9205
- } | {
9206
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
9207
- message: string;
9208
- /** Indicates that this is an access code error. */
9209
- is_access_code_error: true;
9210
- /** Date and time at which Seam created the error. */
9211
- created_at?: string | undefined;
9212
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
9213
- error_code: 'salto_ks_user_not_subscribed';
9214
9133
  } | {
9215
9134
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
9216
9135
  message: string;
@@ -119066,15 +118985,6 @@ export type Routes = {
119066
118985
  created_at?: string | undefined;
119067
118986
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
119068
118987
  error_code: 'access_code_inactive';
119069
- } | {
119070
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
119071
- message: string;
119072
- /** Indicates that this is an access code error. */
119073
- is_access_code_error: true;
119074
- /** Date and time at which Seam created the error. */
119075
- created_at?: string | undefined;
119076
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
119077
- error_code: 'salto_ks_user_not_subscribed';
119078
118988
  } | {
119079
118989
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
119080
118990
  message: string;
@@ -119461,15 +119371,6 @@ export type Routes = {
119461
119371
  created_at?: string | undefined;
119462
119372
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
119463
119373
  error_code: 'access_code_inactive';
119464
- } | {
119465
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
119466
- message: string;
119467
- /** Indicates that this is an access code error. */
119468
- is_access_code_error: true;
119469
- /** Date and time at which Seam created the error. */
119470
- created_at?: string | undefined;
119471
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
119472
- error_code: 'salto_ks_user_not_subscribed';
119473
119374
  } | {
119474
119375
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
119475
119376
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.945.0",
3
+ "version": "1.946.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -155,22 +155,6 @@ const access_code_inactive_error = common_access_code_error.extend({
155
155
  Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.
156
156
  `)
157
157
 
158
- const salto_ks_user_not_subscribed = common_access_code_error
159
- .extend({
160
- error_code: z
161
- .literal('salto_ks_user_not_subscribed')
162
- .describe(error_code_description),
163
- })
164
- .describe(
165
- `
166
- ---
167
- resource_type: access_code
168
- deprecated: Use \`access_code_inactive\` instead.
169
- ---
170
- Salto site user is not subscribed.
171
- `,
172
- )
173
-
174
158
  const access_code_error = z
175
159
  .discriminatedUnion('error_code', [
176
160
  provider_issue,
@@ -181,7 +165,6 @@ const access_code_error = z
181
165
  no_space_for_access_code_on_device,
182
166
  code_modified_external_to_seam_error,
183
167
  access_code_inactive_error,
184
- salto_ks_user_not_subscribed,
185
168
  insufficient_permissions,
186
169
  ])
187
170
  .describe(
@@ -208,9 +191,6 @@ const _access_code_error_map = z.object({
208
191
  .optional()
209
192
  .nullable(),
210
193
  access_code_inactive: access_code_inactive_error.optional().nullable(),
211
- salto_ks_user_not_subscribed: salto_ks_user_not_subscribed
212
- .optional()
213
- .nullable(),
214
194
  })
215
195
 
216
196
  export type AccessCodeErrorMap = z.infer<typeof _access_code_error_map>
@@ -400,39 +400,6 @@ const openapi: OpenAPISpec = {
400
400
  type: 'object',
401
401
  'x-resource-type': 'access_code',
402
402
  },
403
- {
404
- deprecated: true,
405
- description: 'Salto site user is not subscribed.',
406
- properties: {
407
- created_at: {
408
- description:
409
- 'Date and time at which Seam created the error.',
410
- format: 'date-time',
411
- type: 'string',
412
- },
413
- error_code: {
414
- description:
415
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
416
- enum: ['salto_ks_user_not_subscribed'],
417
- type: 'string',
418
- },
419
- is_access_code_error: {
420
- description:
421
- 'Indicates that this is an access code error.',
422
- enum: [true],
423
- type: 'boolean',
424
- },
425
- message: {
426
- description:
427
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
428
- type: 'string',
429
- },
430
- },
431
- required: ['message', 'is_access_code_error', 'error_code'],
432
- type: 'object',
433
- 'x-deprecated': 'Use `access_code_inactive` instead.',
434
- 'x-resource-type': 'access_code',
435
- },
436
403
  {
437
404
  description:
438
405
  'Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.',
@@ -29324,39 +29291,6 @@ const openapi: OpenAPISpec = {
29324
29291
  type: 'object',
29325
29292
  'x-resource-type': 'access_code',
29326
29293
  },
29327
- {
29328
- deprecated: true,
29329
- description: 'Salto site user is not subscribed.',
29330
- properties: {
29331
- created_at: {
29332
- description:
29333
- 'Date and time at which Seam created the error.',
29334
- format: 'date-time',
29335
- type: 'string',
29336
- },
29337
- error_code: {
29338
- description:
29339
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
29340
- enum: ['salto_ks_user_not_subscribed'],
29341
- type: 'string',
29342
- },
29343
- is_access_code_error: {
29344
- description:
29345
- 'Indicates that this is an access code error.',
29346
- enum: [true],
29347
- type: 'boolean',
29348
- },
29349
- message: {
29350
- description:
29351
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
29352
- type: 'string',
29353
- },
29354
- },
29355
- required: ['message', 'is_access_code_error', 'error_code'],
29356
- type: 'object',
29357
- 'x-deprecated': 'Use `access_code_inactive` instead.',
29358
- 'x-resource-type': 'access_code',
29359
- },
29360
29294
  {
29361
29295
  description:
29362
29296
  'Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.',
@@ -2114,16 +2114,6 @@ export type Routes = {
2114
2114
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2115
2115
  error_code: 'access_code_inactive'
2116
2116
  }
2117
- | {
2118
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2119
- message: string
2120
- /** Indicates that this is an access code error. */
2121
- is_access_code_error: true
2122
- /** Date and time at which Seam created the error. */
2123
- created_at?: string | undefined
2124
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2125
- error_code: 'salto_ks_user_not_subscribed'
2126
- }
2127
2117
  | {
2128
2118
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2129
2119
  message: string
@@ -2689,16 +2679,6 @@ export type Routes = {
2689
2679
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2690
2680
  error_code: 'access_code_inactive'
2691
2681
  }
2692
- | {
2693
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2694
- message: string
2695
- /** Indicates that this is an access code error. */
2696
- is_access_code_error: true
2697
- /** Date and time at which Seam created the error. */
2698
- created_at?: string | undefined
2699
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2700
- error_code: 'salto_ks_user_not_subscribed'
2701
- }
2702
2682
  | {
2703
2683
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2704
2684
  message: string
@@ -5223,16 +5203,6 @@ export type Routes = {
5223
5203
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5224
5204
  error_code: 'access_code_inactive'
5225
5205
  }
5226
- | {
5227
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5228
- message: string
5229
- /** Indicates that this is an access code error. */
5230
- is_access_code_error: true
5231
- /** Date and time at which Seam created the error. */
5232
- created_at?: string | undefined
5233
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5234
- error_code: 'salto_ks_user_not_subscribed'
5235
- }
5236
5206
  | {
5237
5207
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5238
5208
  message: string
@@ -5897,16 +5867,6 @@ export type Routes = {
5897
5867
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5898
5868
  error_code: 'access_code_inactive'
5899
5869
  }
5900
- | {
5901
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5902
- message: string
5903
- /** Indicates that this is an access code error. */
5904
- is_access_code_error: true
5905
- /** Date and time at which Seam created the error. */
5906
- created_at?: string | undefined
5907
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5908
- error_code: 'salto_ks_user_not_subscribed'
5909
- }
5910
5870
  | {
5911
5871
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5912
5872
  message: string
@@ -6463,16 +6423,6 @@ export type Routes = {
6463
6423
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6464
6424
  error_code: 'access_code_inactive'
6465
6425
  }
6466
- | {
6467
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6468
- message: string
6469
- /** Indicates that this is an access code error. */
6470
- is_access_code_error: true
6471
- /** Date and time at which Seam created the error. */
6472
- created_at?: string | undefined
6473
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6474
- error_code: 'salto_ks_user_not_subscribed'
6475
- }
6476
6426
  | {
6477
6427
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6478
6428
  message: string
@@ -7006,16 +6956,6 @@ export type Routes = {
7006
6956
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7007
6957
  error_code: 'access_code_inactive'
7008
6958
  }
7009
- | {
7010
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7011
- message: string
7012
- /** Indicates that this is an access code error. */
7013
- is_access_code_error: true
7014
- /** Date and time at which Seam created the error. */
7015
- created_at?: string | undefined
7016
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7017
- error_code: 'salto_ks_user_not_subscribed'
7018
- }
7019
6959
  | {
7020
6960
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7021
6961
  message: string
@@ -7582,16 +7522,6 @@ export type Routes = {
7582
7522
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7583
7523
  error_code: 'access_code_inactive'
7584
7524
  }
7585
- | {
7586
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7587
- message: string
7588
- /** Indicates that this is an access code error. */
7589
- is_access_code_error: true
7590
- /** Date and time at which Seam created the error. */
7591
- created_at?: string | undefined
7592
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7593
- error_code: 'salto_ks_user_not_subscribed'
7594
- }
7595
7525
  | {
7596
7526
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7597
7527
  message: string
@@ -10018,16 +9948,6 @@ export type Routes = {
10018
9948
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
10019
9949
  error_code: 'access_code_inactive'
10020
9950
  }
10021
- | {
10022
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
10023
- message: string
10024
- /** Indicates that this is an access code error. */
10025
- is_access_code_error: true
10026
- /** Date and time at which Seam created the error. */
10027
- created_at?: string | undefined
10028
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
10029
- error_code: 'salto_ks_user_not_subscribed'
10030
- }
10031
9951
  | {
10032
9952
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
10033
9953
  message: string
@@ -10473,16 +10393,6 @@ export type Routes = {
10473
10393
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
10474
10394
  error_code: 'access_code_inactive'
10475
10395
  }
10476
- | {
10477
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
10478
- message: string
10479
- /** Indicates that this is an access code error. */
10480
- is_access_code_error: true
10481
- /** Date and time at which Seam created the error. */
10482
- created_at?: string | undefined
10483
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
10484
- error_code: 'salto_ks_user_not_subscribed'
10485
- }
10486
10396
  | {
10487
10397
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
10488
10398
  message: string
@@ -141930,16 +141840,6 @@ export type Routes = {
141930
141840
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
141931
141841
  error_code: 'access_code_inactive'
141932
141842
  }
141933
- | {
141934
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
141935
- message: string
141936
- /** Indicates that this is an access code error. */
141937
- is_access_code_error: true
141938
- /** Date and time at which Seam created the error. */
141939
- created_at?: string | undefined
141940
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
141941
- error_code: 'salto_ks_user_not_subscribed'
141942
- }
141943
141843
  | {
141944
141844
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
141945
141845
  message: string
@@ -142371,16 +142271,6 @@ export type Routes = {
142371
142271
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
142372
142272
  error_code: 'access_code_inactive'
142373
142273
  }
142374
- | {
142375
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
142376
- message: string
142377
- /** Indicates that this is an access code error. */
142378
- is_access_code_error: true
142379
- /** Date and time at which Seam created the error. */
142380
- created_at?: string | undefined
142381
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
142382
- error_code: 'salto_ks_user_not_subscribed'
142383
- }
142384
142274
  | {
142385
142275
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
142386
142276
  message: string