@seamapi/types 1.427.0 → 1.428.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.427.0",
3
+ "version": "1.428.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -26,11 +26,11 @@ export const access_method = z.object({
26
26
  .url()
27
27
  .optional()
28
28
  .describe('URL of the Instant Key for mobile key access methods.'),
29
- is_card_encoding_required: z
29
+ is_encoding_required: z
30
30
  .boolean()
31
31
  .optional()
32
32
  .describe(
33
- 'Indicates whether card encoding is required for plastic card access methods.',
33
+ 'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.',
34
34
  ),
35
35
  }).describe(`
36
36
  ---
@@ -2,7 +2,6 @@ import { z } from 'zod'
2
2
 
3
3
  import { activate_climate_preset_action_attempt } from './activate-climate-preset.js'
4
4
  import { deprecated_action_attempts } from './deprecated.js'
5
- import { encode_access_method_action_attempt } from './encode-access-method.js'
6
5
  import { encode_credential_action_attempt } from './encode-credential.js'
7
6
  import { lock_door_action_attempt } from './lock-door.js'
8
7
  import { push_thermostat_programs_action_attempt } from './push-thermostat-programs.js'
@@ -18,7 +17,6 @@ export const action_attempt = z.union([
18
17
  ...lock_door_action_attempt.options,
19
18
  ...unlock_door_action_attempt.options,
20
19
  ...scan_credential_action_attempt.options,
21
- ...encode_access_method_action_attempt.options,
22
20
  ...encode_credential_action_attempt.options,
23
21
  ...reset_sandbox_workspace_action_attempt.options,
24
22
  ...set_fan_mode_action_attempt.options,
@@ -33,7 +31,7 @@ export const action_attempt = z.union([
33
31
  route_path: /action_attempts
34
32
  ---
35
33
  Represents an action attempt that enables you to keep track of the progress of your action that affects a physical device or system.actions against a device. Action attempts are useful because the physical world is intrinsically asynchronous.
36
-
34
+
37
35
  When you request for a device to perform an action, the Seam API immediately returns an action attempt object. In the background, the Seam API performs the action.
38
36
 
39
37
  See also [Action Attempts](https://docs.seam.co/latest/core-concepts/action-attempts).
@@ -1956,9 +1956,9 @@ export default {
1956
1956
  format: 'uri',
1957
1957
  type: 'string',
1958
1958
  },
1959
- is_card_encoding_required: {
1959
+ is_encoding_required: {
1960
1960
  description:
1961
- 'Indicates whether card encoding is required for plastic card access methods.',
1961
+ 'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.',
1962
1962
  type: 'boolean',
1963
1963
  },
1964
1964
  issued_at: {
@@ -5513,260 +5513,6 @@ export default {
5513
5513
  ],
5514
5514
  type: 'object',
5515
5515
  },
5516
- {
5517
- description:
5518
- 'Encoding access method data from the physical encoder onto a card is pending.',
5519
- properties: {
5520
- action_attempt_id: {
5521
- description: 'ID of the action attempt.',
5522
- format: 'uuid',
5523
- type: 'string',
5524
- },
5525
- action_type: {
5526
- description:
5527
- 'Action attempt to track the status of encoding an access method from the physical encoder onto a card.',
5528
- enum: ['ENCODE_ACCESS_METHOD'],
5529
- type: 'string',
5530
- },
5531
- error: {
5532
- description:
5533
- 'Errors associated with the action attempt. Null for pending action attempts.',
5534
- nullable: true,
5535
- },
5536
- result: {
5537
- description:
5538
- 'Result of the action attempt. Null for pending action attempts.',
5539
- nullable: true,
5540
- },
5541
- status: { enum: ['pending'], type: 'string' },
5542
- },
5543
- required: [
5544
- 'action_attempt_id',
5545
- 'status',
5546
- 'result',
5547
- 'error',
5548
- 'action_type',
5549
- ],
5550
- type: 'object',
5551
- },
5552
- {
5553
- description:
5554
- 'Encoding access method data from the physical encoder onto a card succeeded.',
5555
- properties: {
5556
- action_attempt_id: {
5557
- description: 'ID of the action attempt.',
5558
- format: 'uuid',
5559
- type: 'string',
5560
- },
5561
- action_type: {
5562
- description:
5563
- 'Action attempt to track the status of encoding an access method from the physical encoder onto a card.',
5564
- enum: ['ENCODE_ACCESS_METHOD'],
5565
- type: 'string',
5566
- },
5567
- error: {
5568
- description:
5569
- 'Errors associated with the action attempt. Null for successful action attempts.',
5570
- nullable: true,
5571
- },
5572
- result: {
5573
- description:
5574
- 'Result of an encoding attempt. If the attempt was successful, includes the access method data that was encoded onto the card.',
5575
- properties: {
5576
- access_method_id: {
5577
- description: 'ID of the access method.',
5578
- format: 'uuid',
5579
- type: 'string',
5580
- },
5581
- created_at: {
5582
- description:
5583
- 'Date and time at which the access method was created.',
5584
- format: 'date-time',
5585
- type: 'string',
5586
- },
5587
- display_name: {
5588
- description: 'Display name of the access method.',
5589
- type: 'string',
5590
- },
5591
- instant_key_url: {
5592
- description:
5593
- 'URL of the Instant Key for mobile key access methods.',
5594
- format: 'uri',
5595
- type: 'string',
5596
- },
5597
- is_card_encoding_required: {
5598
- description:
5599
- 'Indicates whether card encoding is required for plastic card access methods.',
5600
- type: 'boolean',
5601
- },
5602
- issued_at: {
5603
- description:
5604
- 'Date and time at which the access method was issued.',
5605
- format: 'date-time',
5606
- type: 'string',
5607
- },
5608
- mode: {
5609
- description:
5610
- 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
5611
- enum: ['code', 'card', 'mobile_key'],
5612
- type: 'string',
5613
- },
5614
- workspace_id: {
5615
- description:
5616
- 'ID of the Seam workspace associated with the access method.',
5617
- format: 'uuid',
5618
- type: 'string',
5619
- },
5620
- },
5621
- required: [
5622
- 'workspace_id',
5623
- 'access_method_id',
5624
- 'display_name',
5625
- 'mode',
5626
- 'created_at',
5627
- ],
5628
- type: 'object',
5629
- },
5630
- status: { enum: ['success'], type: 'string' },
5631
- },
5632
- required: [
5633
- 'action_attempt_id',
5634
- 'status',
5635
- 'error',
5636
- 'action_type',
5637
- 'result',
5638
- ],
5639
- type: 'object',
5640
- },
5641
- {
5642
- description:
5643
- 'Encoding access method data from the physical encoder onto a card failed.',
5644
- properties: {
5645
- action_attempt_id: {
5646
- description: 'ID of the action attempt.',
5647
- format: 'uuid',
5648
- type: 'string',
5649
- },
5650
- action_type: {
5651
- description:
5652
- 'Action attempt to track the status of encoding an access method from the physical encoder onto a card.',
5653
- enum: ['ENCODE_ACCESS_METHOD'],
5654
- type: 'string',
5655
- },
5656
- error: {
5657
- oneOf: [
5658
- {
5659
- description:
5660
- "Error that doesn't fit into other specific error categories.",
5661
- properties: {
5662
- message: {
5663
- description:
5664
- 'Message for the error associated with the action attempt.',
5665
- type: 'string',
5666
- },
5667
- type: {
5668
- description:
5669
- 'Type of the error associated with the action attempt.',
5670
- enum: ['uncategorized_error'],
5671
- type: 'string',
5672
- },
5673
- },
5674
- required: ['type', 'message'],
5675
- type: 'object',
5676
- },
5677
- {
5678
- description: 'Error to indicate an expired action attempt.',
5679
- properties: {
5680
- message: {
5681
- description:
5682
- 'Message for the error associated with the action attempt.',
5683
- type: 'string',
5684
- },
5685
- type: {
5686
- description:
5687
- 'Type of the error associated with the action attempt.',
5688
- enum: ['action_attempt_expired'],
5689
- type: 'string',
5690
- },
5691
- },
5692
- required: ['type', 'message'],
5693
- type: 'object',
5694
- },
5695
- {
5696
- description:
5697
- 'Error to indicate that there is no credential on the encoder.',
5698
- properties: {
5699
- message: {
5700
- description:
5701
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
5702
- type: 'string',
5703
- },
5704
- type: {
5705
- description:
5706
- 'Error type to indicate that there is no credential on the encoder.',
5707
- enum: ['no_credential_on_encoder'],
5708
- type: 'string',
5709
- },
5710
- },
5711
- required: ['type', 'message'],
5712
- type: 'object',
5713
- },
5714
- {
5715
- description:
5716
- 'Error to indicate an incompatible card format.',
5717
- properties: {
5718
- message: {
5719
- description:
5720
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
5721
- type: 'string',
5722
- },
5723
- type: {
5724
- description:
5725
- 'Error type to indicate an incompatible card format.',
5726
- enum: ['incompatible_card_format'],
5727
- type: 'string',
5728
- },
5729
- },
5730
- required: ['type', 'message'],
5731
- type: 'object',
5732
- },
5733
- {
5734
- description:
5735
- 'Error to indicate that the affected credential cannot be reissued.',
5736
- properties: {
5737
- message: {
5738
- description:
5739
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
5740
- type: 'string',
5741
- },
5742
- type: {
5743
- description:
5744
- 'Error type to indicate that the affected credential cannot be reissued.',
5745
- enum: ['credential_cannot_be_reissued'],
5746
- type: 'string',
5747
- },
5748
- },
5749
- required: ['type', 'message'],
5750
- type: 'object',
5751
- },
5752
- ],
5753
- },
5754
- result: {
5755
- description:
5756
- 'Result of the action attempt. Null for failed action attempts.',
5757
- nullable: true,
5758
- },
5759
- status: { enum: ['error'], type: 'string' },
5760
- },
5761
- required: [
5762
- 'action_attempt_id',
5763
- 'status',
5764
- 'result',
5765
- 'action_type',
5766
- 'error',
5767
- ],
5768
- type: 'object',
5769
- },
5770
5516
  {
5771
5517
  description:
5772
5518
  'Encoding credential data from the physical encoder onto a card is pending.',
@@ -27392,6 +27138,71 @@ export default {
27392
27138
  'x-title': 'Delete an Access Method',
27393
27139
  },
27394
27140
  },
27141
+ '/access_methods/encode': {
27142
+ post: {
27143
+ description:
27144
+ 'Encodes an existing [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).',
27145
+ operationId: 'accessMethodsEncodePost',
27146
+ requestBody: {
27147
+ content: {
27148
+ 'application/json': {
27149
+ schema: {
27150
+ properties: {
27151
+ access_method_id: {
27152
+ description:
27153
+ 'ID of the `access_method` to encode onto a card.',
27154
+ format: 'uuid',
27155
+ type: 'string',
27156
+ },
27157
+ acs_encoder_id: {
27158
+ description:
27159
+ 'ID of the `acs_encoder` to use to encode the `acs_credential`.',
27160
+ format: 'uuid',
27161
+ type: 'string',
27162
+ },
27163
+ },
27164
+ required: ['acs_encoder_id', 'access_method_id'],
27165
+ type: 'object',
27166
+ },
27167
+ },
27168
+ },
27169
+ },
27170
+ responses: {
27171
+ 200: {
27172
+ content: {
27173
+ 'application/json': {
27174
+ schema: {
27175
+ properties: {
27176
+ action_attempt: {
27177
+ $ref: '#/components/schemas/action_attempt',
27178
+ },
27179
+ ok: { type: 'boolean' },
27180
+ },
27181
+ required: ['action_attempt', 'ok'],
27182
+ type: 'object',
27183
+ },
27184
+ },
27185
+ },
27186
+ description: 'OK',
27187
+ },
27188
+ 400: { description: 'Bad Request' },
27189
+ 401: { description: 'Unauthorized' },
27190
+ },
27191
+ security: [
27192
+ { pat_with_workspace: [] },
27193
+ { console_session_with_workspace: [] },
27194
+ { api_key: [] },
27195
+ ],
27196
+ summary: '/access_methods/encode',
27197
+ tags: [],
27198
+ 'x-action-attempt-type': 'ENCODE_CREDENTIAL',
27199
+ 'x-fern-sdk-group-name': ['access_methods'],
27200
+ 'x-fern-sdk-method-name': 'encode',
27201
+ 'x-fern-sdk-return-value': 'action_attempt',
27202
+ 'x-response-key': 'action_attempt',
27203
+ 'x-title': 'Encode an Access Method',
27204
+ },
27205
+ },
27395
27206
  '/access_methods/get': {
27396
27207
  get: {
27397
27208
  description: 'Get an access method.',
@@ -30216,11 +30027,11 @@ export default {
30216
30027
  'x-title': 'Update a Credential',
30217
30028
  },
30218
30029
  },
30219
- '/acs/encoders/encode_access_method': {
30030
+ '/acs/encoders/encode_credential': {
30220
30031
  post: {
30221
30032
  description:
30222
- 'Encodes an existing access method onto a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).',
30223
- operationId: 'acsEncodersEncodeAccessMethodPost',
30033
+ 'Encodes an existing [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). Either provide an `acs_credential_id` or an `access_method_id`',
30034
+ operationId: 'acsEncodersEncodeCredentialPost',
30224
30035
  requestBody: {
30225
30036
  content: {
30226
30037
  'application/json': {
@@ -30232,65 +30043,6 @@ export default {
30232
30043
  format: 'uuid',
30233
30044
  type: 'string',
30234
30045
  },
30235
- acs_encoder_id: {
30236
- description:
30237
- 'ID of the `acs_encoder` to use to encode the `access_method`.',
30238
- format: 'uuid',
30239
- type: 'string',
30240
- },
30241
- },
30242
- required: ['acs_encoder_id', 'access_method_id'],
30243
- type: 'object',
30244
- },
30245
- },
30246
- },
30247
- },
30248
- responses: {
30249
- 200: {
30250
- content: {
30251
- 'application/json': {
30252
- schema: {
30253
- properties: {
30254
- action_attempt: {
30255
- $ref: '#/components/schemas/action_attempt',
30256
- },
30257
- ok: { type: 'boolean' },
30258
- },
30259
- required: ['action_attempt', 'ok'],
30260
- type: 'object',
30261
- },
30262
- },
30263
- },
30264
- description: 'OK',
30265
- },
30266
- 400: { description: 'Bad Request' },
30267
- 401: { description: 'Unauthorized' },
30268
- },
30269
- security: [
30270
- { pat_with_workspace: [] },
30271
- { console_session_with_workspace: [] },
30272
- { api_key: [] },
30273
- ],
30274
- summary: '/acs/encoders/encode_access_method',
30275
- tags: ['/acs'],
30276
- 'x-action-attempt-type': 'ENCODE_ACCESS_METHOD',
30277
- 'x-fern-sdk-group-name': ['acs', 'encoders'],
30278
- 'x-fern-sdk-method-name': 'encode_access_method',
30279
- 'x-fern-sdk-return-value': 'action_attempt',
30280
- 'x-response-key': 'action_attempt',
30281
- 'x-title': 'Encode an Access Method',
30282
- },
30283
- },
30284
- '/acs/encoders/encode_credential': {
30285
- post: {
30286
- description:
30287
- 'Encodes an existing [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).',
30288
- operationId: 'acsEncodersEncodeCredentialPost',
30289
- requestBody: {
30290
- content: {
30291
- 'application/json': {
30292
- schema: {
30293
- properties: {
30294
30046
  acs_credential_id: {
30295
30047
  description:
30296
30048
  'ID of the `acs_credential` to encode onto a card.',
@@ -30304,7 +30056,7 @@ export default {
30304
30056
  type: 'string',
30305
30057
  },
30306
30058
  },
30307
- required: ['acs_encoder_id', 'acs_credential_id'],
30059
+ required: ['acs_encoder_id'],
30308
30060
  type: 'object',
30309
30061
  },
30310
30062
  },