@seamapi/types 1.999.0 → 1.1000.1

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.
package/package.json CHANGED
@@ -1,28 +1,22 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.999.0",
3
+ "version": "1.1000.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "import": {
11
- "types": "./index.d.ts",
12
- "default": "./index.js"
13
- }
10
+ "types": "./index.d.ts",
11
+ "default": "./index.js"
14
12
  },
15
13
  "./connect": {
16
- "import": {
17
- "types": "./connect.d.ts",
18
- "default": "./connect.js"
19
- }
14
+ "types": "./connect.d.ts",
15
+ "default": "./connect.js"
20
16
  },
21
17
  "./devicedb": {
22
- "import": {
23
- "types": "./devicedb.d.ts",
24
- "default": "./devicedb.js"
25
- }
18
+ "types": "./devicedb.d.ts",
19
+ "default": "./devicedb.js"
26
20
  }
27
21
  },
28
22
  "module": "index.js",
@@ -73,8 +67,8 @@
73
67
  "preformat": "eslint --fix ."
74
68
  },
75
69
  "engines": {
76
- "node": ">=22.11.0",
77
- "npm": ">=10.9.4"
70
+ "node": ">=22.12.0",
71
+ "npm": ">=10.0.0"
78
72
  },
79
73
  "peerDependencies": {
80
74
  "zod": "^3.24.0"
@@ -82,11 +76,11 @@
82
76
  "devEngines": {
83
77
  "runtime": {
84
78
  "name": "node",
85
- "version": "^24.11.0 || ^22.11.0"
79
+ "version": "^24.11.0 || ^22.12.0"
86
80
  },
87
81
  "packageManager": {
88
82
  "name": "npm",
89
- "version": "^11.12.0 || ^10.9.4"
83
+ "version": "^11.0.0 || ^10.0.0"
90
84
  }
91
85
  },
92
86
  "devDependencies": {
@@ -95,6 +89,7 @@
95
89
  "concurrently": "^9.2.0",
96
90
  "del-cli": "^7.0.0",
97
91
  "eslint": "^9.31.0",
92
+ "eslint-import-resolver-typescript": "^4.4.5",
98
93
  "eslint-plugin-import": "^2.32.0",
99
94
  "eslint-plugin-n": "^17.21.0",
100
95
  "eslint-plugin-simple-import-sort": "^12.1.1",
@@ -108,6 +108,20 @@ const needs_to_be_reissued = common_acs_credential_warning
108
108
  'Access permissions for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.',
109
109
  )
110
110
 
111
+ const requested_code_unavailable = common_acs_credential_warning
112
+ .extend({
113
+ warning_code: z
114
+ .literal('requested_code_unavailable')
115
+ .describe(warning_code_description),
116
+ original_code: z
117
+ .string()
118
+ .describe('The originally requested PIN code that could not be used.'),
119
+ new_code: z.string().describe('The PIN code that was assigned instead.'),
120
+ })
121
+ .describe(
122
+ 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.',
123
+ )
124
+
111
125
  const acs_credential_warning = z
112
126
  .discriminatedUnion('warning_code', [
113
127
  waiting_to_be_issued,
@@ -116,6 +130,7 @@ const acs_credential_warning = z
116
130
  being_deleted,
117
131
  unknown_issue_with_acs_credential,
118
132
  needs_to_be_reissued,
133
+ requested_code_unavailable,
119
134
  ])
120
135
  .describe(
121
136
  'Warning associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
@@ -132,6 +147,7 @@ const _acs_credential_warning_map = z.object({
132
147
  .optional()
133
148
  .nullable(),
134
149
  needs_to_be_reissued: needs_to_be_reissued.optional().nullable(),
150
+ requested_code_unavailable: requested_code_unavailable.optional().nullable(),
135
151
  })
136
152
 
137
153
  export type AcsCredentialWarningMap = z.infer<
@@ -3701,6 +3701,46 @@ const openapi: OpenAPISpec = {
3701
3701
  required: ['created_at', 'message', 'warning_code'],
3702
3702
  type: 'object',
3703
3703
  },
3704
+ {
3705
+ description:
3706
+ 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.',
3707
+ properties: {
3708
+ created_at: {
3709
+ description:
3710
+ 'Date and time at which Seam created the warning.',
3711
+ format: 'date-time',
3712
+ type: 'string',
3713
+ },
3714
+ message: {
3715
+ description:
3716
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
3717
+ type: 'string',
3718
+ },
3719
+ new_code: {
3720
+ description: 'The PIN code that was assigned instead.',
3721
+ type: 'string',
3722
+ },
3723
+ original_code: {
3724
+ description:
3725
+ 'The originally requested PIN code that could not be used.',
3726
+ type: 'string',
3727
+ },
3728
+ warning_code: {
3729
+ description:
3730
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
3731
+ enum: ['requested_code_unavailable'],
3732
+ type: 'string',
3733
+ },
3734
+ },
3735
+ required: [
3736
+ 'created_at',
3737
+ 'message',
3738
+ 'warning_code',
3739
+ 'original_code',
3740
+ 'new_code',
3741
+ ],
3742
+ type: 'object',
3743
+ },
3704
3744
  ],
3705
3745
  },
3706
3746
  type: 'array',
@@ -6767,6 +6807,47 @@ const openapi: OpenAPISpec = {
6767
6807
  ],
6768
6808
  type: 'object',
6769
6809
  },
6810
+ {
6811
+ description:
6812
+ 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.',
6813
+ properties: {
6814
+ created_at: {
6815
+ description:
6816
+ 'Date and time at which Seam created the warning.',
6817
+ format: 'date-time',
6818
+ type: 'string',
6819
+ },
6820
+ message: {
6821
+ description:
6822
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
6823
+ type: 'string',
6824
+ },
6825
+ new_code: {
6826
+ description:
6827
+ 'The PIN code that was assigned instead.',
6828
+ type: 'string',
6829
+ },
6830
+ original_code: {
6831
+ description:
6832
+ 'The originally requested PIN code that could not be used.',
6833
+ type: 'string',
6834
+ },
6835
+ warning_code: {
6836
+ description:
6837
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
6838
+ enum: ['requested_code_unavailable'],
6839
+ type: 'string',
6840
+ },
6841
+ },
6842
+ required: [
6843
+ 'created_at',
6844
+ 'message',
6845
+ 'warning_code',
6846
+ 'original_code',
6847
+ 'new_code',
6848
+ ],
6849
+ type: 'object',
6850
+ },
6770
6851
  ],
6771
6852
  },
6772
6853
  type: 'array',
@@ -7245,6 +7326,47 @@ const openapi: OpenAPISpec = {
7245
7326
  ],
7246
7327
  type: 'object',
7247
7328
  },
7329
+ {
7330
+ description:
7331
+ 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.',
7332
+ properties: {
7333
+ created_at: {
7334
+ description:
7335
+ 'Date and time at which Seam created the warning.',
7336
+ format: 'date-time',
7337
+ type: 'string',
7338
+ },
7339
+ message: {
7340
+ description:
7341
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
7342
+ type: 'string',
7343
+ },
7344
+ new_code: {
7345
+ description:
7346
+ 'The PIN code that was assigned instead.',
7347
+ type: 'string',
7348
+ },
7349
+ original_code: {
7350
+ description:
7351
+ 'The originally requested PIN code that could not be used.',
7352
+ type: 'string',
7353
+ },
7354
+ warning_code: {
7355
+ description:
7356
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
7357
+ enum: ['requested_code_unavailable'],
7358
+ type: 'string',
7359
+ },
7360
+ },
7361
+ required: [
7362
+ 'created_at',
7363
+ 'message',
7364
+ 'warning_code',
7365
+ 'original_code',
7366
+ 'new_code',
7367
+ ],
7368
+ type: 'object',
7369
+ },
7248
7370
  ],
7249
7371
  },
7250
7372
  type: 'array',
@@ -7982,6 +8104,47 @@ const openapi: OpenAPISpec = {
7982
8104
  ],
7983
8105
  type: 'object',
7984
8106
  },
8107
+ {
8108
+ description:
8109
+ 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.',
8110
+ properties: {
8111
+ created_at: {
8112
+ description:
8113
+ 'Date and time at which Seam created the warning.',
8114
+ format: 'date-time',
8115
+ type: 'string',
8116
+ },
8117
+ message: {
8118
+ description:
8119
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
8120
+ type: 'string',
8121
+ },
8122
+ new_code: {
8123
+ description:
8124
+ 'The PIN code that was assigned instead.',
8125
+ type: 'string',
8126
+ },
8127
+ original_code: {
8128
+ description:
8129
+ 'The originally requested PIN code that could not be used.',
8130
+ type: 'string',
8131
+ },
8132
+ warning_code: {
8133
+ description:
8134
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
8135
+ enum: ['requested_code_unavailable'],
8136
+ type: 'string',
8137
+ },
8138
+ },
8139
+ required: [
8140
+ 'created_at',
8141
+ 'message',
8142
+ 'warning_code',
8143
+ 'original_code',
8144
+ 'new_code',
8145
+ ],
8146
+ type: 'object',
8147
+ },
7985
8148
  ],
7986
8149
  },
7987
8150
  type: 'array',
@@ -8457,6 +8620,47 @@ const openapi: OpenAPISpec = {
8457
8620
  ],
8458
8621
  type: 'object',
8459
8622
  },
8623
+ {
8624
+ description:
8625
+ 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.',
8626
+ properties: {
8627
+ created_at: {
8628
+ description:
8629
+ 'Date and time at which Seam created the warning.',
8630
+ format: 'date-time',
8631
+ type: 'string',
8632
+ },
8633
+ message: {
8634
+ description:
8635
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
8636
+ type: 'string',
8637
+ },
8638
+ new_code: {
8639
+ description:
8640
+ 'The PIN code that was assigned instead.',
8641
+ type: 'string',
8642
+ },
8643
+ original_code: {
8644
+ description:
8645
+ 'The originally requested PIN code that could not be used.',
8646
+ type: 'string',
8647
+ },
8648
+ warning_code: {
8649
+ description:
8650
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
8651
+ enum: ['requested_code_unavailable'],
8652
+ type: 'string',
8653
+ },
8654
+ },
8655
+ required: [
8656
+ 'created_at',
8657
+ 'message',
8658
+ 'warning_code',
8659
+ 'original_code',
8660
+ 'new_code',
8661
+ ],
8662
+ type: 'object',
8663
+ },
8460
8664
  ],
8461
8665
  },
8462
8666
  type: 'array',
@@ -9206,6 +9410,47 @@ const openapi: OpenAPISpec = {
9206
9410
  required: ['created_at', 'message', 'warning_code'],
9207
9411
  type: 'object',
9208
9412
  },
9413
+ {
9414
+ description:
9415
+ 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.',
9416
+ properties: {
9417
+ created_at: {
9418
+ description:
9419
+ 'Date and time at which Seam created the warning.',
9420
+ format: 'date-time',
9421
+ type: 'string',
9422
+ },
9423
+ message: {
9424
+ description:
9425
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
9426
+ type: 'string',
9427
+ },
9428
+ new_code: {
9429
+ description:
9430
+ 'The PIN code that was assigned instead.',
9431
+ type: 'string',
9432
+ },
9433
+ original_code: {
9434
+ description:
9435
+ 'The originally requested PIN code that could not be used.',
9436
+ type: 'string',
9437
+ },
9438
+ warning_code: {
9439
+ description:
9440
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
9441
+ enum: ['requested_code_unavailable'],
9442
+ type: 'string',
9443
+ },
9444
+ },
9445
+ required: [
9446
+ 'created_at',
9447
+ 'message',
9448
+ 'warning_code',
9449
+ 'original_code',
9450
+ 'new_code',
9451
+ ],
9452
+ type: 'object',
9453
+ },
9209
9454
  ],
9210
9455
  },
9211
9456
  type: 'array',
@@ -29141,6 +29386,47 @@ const openapi: OpenAPISpec = {
29141
29386
  ],
29142
29387
  type: 'object',
29143
29388
  },
29389
+ {
29390
+ description:
29391
+ 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.',
29392
+ properties: {
29393
+ created_at: {
29394
+ description:
29395
+ 'Date and time at which Seam created the warning.',
29396
+ format: 'date-time',
29397
+ type: 'string',
29398
+ },
29399
+ message: {
29400
+ description:
29401
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
29402
+ type: 'string',
29403
+ },
29404
+ new_code: {
29405
+ description:
29406
+ 'The PIN code that was assigned instead.',
29407
+ type: 'string',
29408
+ },
29409
+ original_code: {
29410
+ description:
29411
+ 'The originally requested PIN code that could not be used.',
29412
+ type: 'string',
29413
+ },
29414
+ warning_code: {
29415
+ description:
29416
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
29417
+ enum: ['requested_code_unavailable'],
29418
+ type: 'string',
29419
+ },
29420
+ },
29421
+ required: [
29422
+ 'created_at',
29423
+ 'message',
29424
+ 'warning_code',
29425
+ 'original_code',
29426
+ 'new_code',
29427
+ ],
29428
+ type: 'object',
29429
+ },
29144
29430
  ],
29145
29431
  },
29146
29432
  type: 'array',
@@ -33120,6 +33406,46 @@ const openapi: OpenAPISpec = {
33120
33406
  required: ['created_at', 'message', 'warning_code'],
33121
33407
  type: 'object',
33122
33408
  },
33409
+ {
33410
+ description:
33411
+ 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.',
33412
+ properties: {
33413
+ created_at: {
33414
+ description:
33415
+ 'Date and time at which Seam created the warning.',
33416
+ format: 'date-time',
33417
+ type: 'string',
33418
+ },
33419
+ message: {
33420
+ description:
33421
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
33422
+ type: 'string',
33423
+ },
33424
+ new_code: {
33425
+ description: 'The PIN code that was assigned instead.',
33426
+ type: 'string',
33427
+ },
33428
+ original_code: {
33429
+ description:
33430
+ 'The originally requested PIN code that could not be used.',
33431
+ type: 'string',
33432
+ },
33433
+ warning_code: {
33434
+ description:
33435
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
33436
+ enum: ['requested_code_unavailable'],
33437
+ type: 'string',
33438
+ },
33439
+ },
33440
+ required: [
33441
+ 'created_at',
33442
+ 'message',
33443
+ 'warning_code',
33444
+ 'original_code',
33445
+ 'new_code',
33446
+ ],
33447
+ type: 'object',
33448
+ },
33123
33449
  ],
33124
33450
  },
33125
33451
  type: 'array',