@seamapi/types 1.944.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;
@@ -74750,6 +74669,22 @@ export type Routes = {
74750
74669
  status: string;
74751
74670
  created_at: string;
74752
74671
  updated_at: string;
74672
+ deleted_codes: {
74673
+ access_code_id: string;
74674
+ code: string | null;
74675
+ name: string | null;
74676
+ is_managed: boolean;
74677
+ device_id: string | null;
74678
+ type: string | null;
74679
+ starts_at: string | null;
74680
+ ends_at: string | null;
74681
+ origin: string;
74682
+ }[];
74683
+ account_sync_requests: {
74684
+ at: string;
74685
+ phase: string;
74686
+ connected_account_ids: string[];
74687
+ }[];
74753
74688
  } | null;
74754
74689
  };
74755
74690
  maxDuration: undefined;
@@ -119050,15 +118985,6 @@ export type Routes = {
119050
118985
  created_at?: string | undefined;
119051
118986
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
119052
118987
  error_code: 'access_code_inactive';
119053
- } | {
119054
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
119055
- message: string;
119056
- /** Indicates that this is an access code error. */
119057
- is_access_code_error: true;
119058
- /** Date and time at which Seam created the error. */
119059
- created_at?: string | undefined;
119060
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
119061
- error_code: 'salto_ks_user_not_subscribed';
119062
118988
  } | {
119063
118989
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
119064
118990
  message: string;
@@ -119445,15 +119371,6 @@ export type Routes = {
119445
119371
  created_at?: string | undefined;
119446
119372
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
119447
119373
  error_code: 'access_code_inactive';
119448
- } | {
119449
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
119450
- message: string;
119451
- /** Indicates that this is an access code error. */
119452
- is_access_code_error: true;
119453
- /** Date and time at which Seam created the error. */
119454
- created_at?: string | undefined;
119455
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
119456
- error_code: 'salto_ks_user_not_subscribed';
119457
119374
  } | {
119458
119375
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
119459
119376
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.944.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.',
@@ -66010,7 +65944,7 @@ const openapi: OpenAPISpec = {
66010
65944
  '/seam/console/v1/lynx_migration/get_reservation_migration_status': {
66011
65945
  get: {
66012
65946
  description:
66013
- 'Returns the most recent per-reservation Lynx cutover run for an access grant.\nReturns a null run when the reservation has never been migrated. Keyed by\naccess_grant_id — a successful cutover deletes the access grant, but the run\nrecord outlives it, so status remains available after the migration completes.',
65947
+ 'Returns the most recent per-reservation Lynx cutover run for an access grant.\nReturns a null run when the reservation has never been migrated. Keyed by\naccess_grant_id — a successful cutover deletes the access grant, but the run\nrecord outlives it, so status remains available after the migration completes.\n\nIncludes the codes the cutover deleted (snapshotted before deletion, so the\nhistory survives the hard-delete) and each connected-account sync it requested.',
66014
65948
  operationId:
66015
65949
  'seamConsoleV1LynxMigrationGetReservationMigrationStatusGet',
66016
65950
  parameters: [
@@ -66036,7 +65970,57 @@ const openapi: OpenAPISpec = {
66036
65970
  nullable: true,
66037
65971
  properties: {
66038
65972
  access_grant_id: { format: 'uuid', type: 'string' },
65973
+ account_sync_requests: {
65974
+ items: {
65975
+ properties: {
65976
+ at: { type: 'string' },
65977
+ connected_account_ids: {
65978
+ items: { format: 'uuid', type: 'string' },
65979
+ type: 'array',
65980
+ },
65981
+ phase: { type: 'string' },
65982
+ },
65983
+ required: ['at', 'phase', 'connected_account_ids'],
65984
+ type: 'object',
65985
+ },
65986
+ type: 'array',
65987
+ },
66039
65988
  created_at: { type: 'string' },
65989
+ deleted_codes: {
65990
+ items: {
65991
+ properties: {
65992
+ access_code_id: {
65993
+ format: 'uuid',
65994
+ type: 'string',
65995
+ },
65996
+ code: { nullable: true, type: 'string' },
65997
+ device_id: {
65998
+ format: 'uuid',
65999
+ nullable: true,
66000
+ type: 'string',
66001
+ },
66002
+ ends_at: { nullable: true, type: 'string' },
66003
+ is_managed: { type: 'boolean' },
66004
+ name: { nullable: true, type: 'string' },
66005
+ origin: { type: 'string' },
66006
+ starts_at: { nullable: true, type: 'string' },
66007
+ type: { nullable: true, type: 'string' },
66008
+ },
66009
+ required: [
66010
+ 'access_code_id',
66011
+ 'code',
66012
+ 'name',
66013
+ 'is_managed',
66014
+ 'device_id',
66015
+ 'type',
66016
+ 'starts_at',
66017
+ 'ends_at',
66018
+ 'origin',
66019
+ ],
66020
+ type: 'object',
66021
+ },
66022
+ type: 'array',
66023
+ },
66040
66024
  lynx_migration_run_id: {
66041
66025
  format: 'uuid',
66042
66026
  type: 'string',
@@ -66050,6 +66034,8 @@ const openapi: OpenAPISpec = {
66050
66034
  'status',
66051
66035
  'created_at',
66052
66036
  'updated_at',
66037
+ 'deleted_codes',
66038
+ 'account_sync_requests',
66053
66039
  ],
66054
66040
  type: 'object',
66055
66041
  },
@@ -66082,7 +66068,7 @@ const openapi: OpenAPISpec = {
66082
66068
  },
66083
66069
  post: {
66084
66070
  description:
66085
- 'Returns the most recent per-reservation Lynx cutover run for an access grant.\nReturns a null run when the reservation has never been migrated. Keyed by\naccess_grant_id — a successful cutover deletes the access grant, but the run\nrecord outlives it, so status remains available after the migration completes.',
66071
+ 'Returns the most recent per-reservation Lynx cutover run for an access grant.\nReturns a null run when the reservation has never been migrated. Keyed by\naccess_grant_id — a successful cutover deletes the access grant, but the run\nrecord outlives it, so status remains available after the migration completes.\n\nIncludes the codes the cutover deleted (snapshotted before deletion, so the\nhistory survives the hard-delete) and each connected-account sync it requested.',
66086
66072
  operationId:
66087
66073
  'seamConsoleV1LynxMigrationGetReservationMigrationStatusPost',
66088
66074
  requestBody: {
@@ -66113,7 +66099,57 @@ const openapi: OpenAPISpec = {
66113
66099
  nullable: true,
66114
66100
  properties: {
66115
66101
  access_grant_id: { format: 'uuid', type: 'string' },
66102
+ account_sync_requests: {
66103
+ items: {
66104
+ properties: {
66105
+ at: { type: 'string' },
66106
+ connected_account_ids: {
66107
+ items: { format: 'uuid', type: 'string' },
66108
+ type: 'array',
66109
+ },
66110
+ phase: { type: 'string' },
66111
+ },
66112
+ required: ['at', 'phase', 'connected_account_ids'],
66113
+ type: 'object',
66114
+ },
66115
+ type: 'array',
66116
+ },
66116
66117
  created_at: { type: 'string' },
66118
+ deleted_codes: {
66119
+ items: {
66120
+ properties: {
66121
+ access_code_id: {
66122
+ format: 'uuid',
66123
+ type: 'string',
66124
+ },
66125
+ code: { nullable: true, type: 'string' },
66126
+ device_id: {
66127
+ format: 'uuid',
66128
+ nullable: true,
66129
+ type: 'string',
66130
+ },
66131
+ ends_at: { nullable: true, type: 'string' },
66132
+ is_managed: { type: 'boolean' },
66133
+ name: { nullable: true, type: 'string' },
66134
+ origin: { type: 'string' },
66135
+ starts_at: { nullable: true, type: 'string' },
66136
+ type: { nullable: true, type: 'string' },
66137
+ },
66138
+ required: [
66139
+ 'access_code_id',
66140
+ 'code',
66141
+ 'name',
66142
+ 'is_managed',
66143
+ 'device_id',
66144
+ 'type',
66145
+ 'starts_at',
66146
+ 'ends_at',
66147
+ 'origin',
66148
+ ],
66149
+ type: 'object',
66150
+ },
66151
+ type: 'array',
66152
+ },
66117
66153
  lynx_migration_run_id: {
66118
66154
  format: 'uuid',
66119
66155
  type: 'string',
@@ -66127,6 +66163,8 @@ const openapi: OpenAPISpec = {
66127
66163
  'status',
66128
66164
  'created_at',
66129
66165
  'updated_at',
66166
+ 'deleted_codes',
66167
+ 'account_sync_requests',
66130
66168
  ],
66131
66169
  type: 'object',
66132
66170
  },