@seamapi/types 1.289.0 → 1.289.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.
Files changed (24) hide show
  1. package/dist/connect.cjs +54 -38
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +172 -164
  4. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +18 -18
  5. package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -4
  6. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/{encode-card.d.ts → encode-credential.d.ts} +11 -11
  8. package/lib/seam/connect/models/action-attempts/{encode-card.js → encode-credential.js} +6 -6
  9. package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -0
  10. package/lib/seam/connect/models/action-attempts/{scan-card.d.ts → scan-credential.d.ts} +11 -11
  11. package/lib/seam/connect/models/action-attempts/{scan-card.js → scan-credential.js} +7 -7
  12. package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -0
  13. package/lib/seam/connect/openapi.d.ts +6 -2
  14. package/lib/seam/connect/openapi.js +41 -25
  15. package/lib/seam/connect/openapi.js.map +1 -1
  16. package/lib/seam/connect/route-types.d.ts +148 -144
  17. package/package.json +1 -1
  18. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
  19. package/src/lib/seam/connect/models/action-attempts/{encode-card.ts → encode-credential.ts} +8 -6
  20. package/src/lib/seam/connect/models/action-attempts/{scan-card.ts → scan-credential.ts} +9 -7
  21. package/src/lib/seam/connect/openapi.ts +46 -25
  22. package/src/lib/seam/connect/route-types.ts +148 -144
  23. package/lib/seam/connect/models/action-attempts/encode-card.js.map +0 -1
  24. package/lib/seam/connect/models/action-attempts/scan-card.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.289.0",
3
+ "version": "1.289.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -2,10 +2,10 @@ 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_card_action_attempt } from './encode-card.js'
5
+ import { encode_credential_action_attempt } from './encode-credential.js'
6
6
  import { lock_door_action_attempt } from './lock-door.js'
7
7
  import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js'
8
- import { scan_card_action_attempt } from './scan-card.js'
8
+ import { scan_credential_action_attempt } from './scan-credential.js'
9
9
  import { set_cool_action_attempt } from './set-cool.js'
10
10
  import { set_fan_mode_action_attempt } from './set-fan-mode.js'
11
11
  import { set_heat_action_attempt } from './set-heat.js'
@@ -16,8 +16,8 @@ import { unlock_door_action_attempt } from './unlock-door.js'
16
16
  export const action_attempt = z.union([
17
17
  ...lock_door_action_attempt.options,
18
18
  ...unlock_door_action_attempt.options,
19
- ...scan_card_action_attempt.options,
20
- ...encode_card_action_attempt.options,
19
+ ...scan_credential_action_attempt.options,
20
+ ...encode_credential_action_attempt.options,
21
21
  ...reset_sandbox_workspace_action_attempt.options,
22
22
  ...set_cool_action_attempt.options,
23
23
  ...set_heat_action_attempt.options,
@@ -11,7 +11,7 @@ import {
11
11
  common_succeeded_action_attempt,
12
12
  } from './common.js'
13
13
 
14
- const action_type = z.literal('ENCODE_CARD')
14
+ const action_type = z.literal('ENCODE_CREDENTIAL')
15
15
 
16
16
  const no_card_on_encoder_error = z.object({
17
17
  type: z.literal('no_card_on_encoder'),
@@ -31,21 +31,23 @@ const error = z.union([
31
31
 
32
32
  const result = acs_credential.or(unmanaged_acs_credential)
33
33
 
34
- export const encode_card_action_attempt = z.discriminatedUnion('status', [
34
+ export const encode_credential_action_attempt = z.discriminatedUnion('status', [
35
35
  common_pending_action_attempt
36
36
  .extend({
37
37
  action_type,
38
38
  })
39
- .describe('Encoding card data from physical encoder.'),
39
+ .describe('Encoding credential data from physical encoder.'),
40
40
  common_succeeded_action_attempt
41
41
  .extend({
42
42
  action_type,
43
43
  result,
44
44
  })
45
- .describe('Encoding card data from physical encoder succeeded.'),
45
+ .describe('Encoding credential data from physical encoder succeeded.'),
46
46
  common_failed_action_attempt
47
47
  .extend({ action_type, error })
48
- .describe('Encoding card data from physical encoder failed.'),
48
+ .describe('Encoding credential data from physical encoder failed.'),
49
49
  ])
50
50
 
51
- export type EncodeCardActionAttempt = z.infer<typeof encode_card_action_attempt>
51
+ export type EncodeCredentialActionAttempt = z.infer<
52
+ typeof encode_credential_action_attempt
53
+ >
@@ -12,7 +12,7 @@ import {
12
12
  common_succeeded_action_attempt,
13
13
  } from './common.js'
14
14
 
15
- const action_type = z.literal('SCAN_CARD')
15
+ const action_type = z.literal('SCAN_CREDENTIAL')
16
16
 
17
17
  const no_card_on_encoder_error = z.object({
18
18
  type: z.literal('no_card_on_encoder'),
@@ -33,7 +33,7 @@ const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential)
33
33
 
34
34
  const result = z.object({
35
35
  acs_credential_on_encoder: acs_credential_on_encoder.describe(
36
- 'Snapshot of the card data read from the physical encoder.',
36
+ 'Snapshot of credential data read from physical encoder.',
37
37
  ),
38
38
  acs_credential_on_seam: acs_credential_on_seam
39
39
  .nullable()
@@ -41,21 +41,23 @@ const result = z.object({
41
41
  warnings: z.array(warning),
42
42
  })
43
43
 
44
- export const scan_card_action_attempt = z.discriminatedUnion('status', [
44
+ export const scan_credential_action_attempt = z.discriminatedUnion('status', [
45
45
  common_pending_action_attempt
46
46
  .extend({
47
47
  action_type,
48
48
  })
49
- .describe('Reading card data from physical encoder.'),
49
+ .describe('Reading credential data from physical encoder.'),
50
50
  common_succeeded_action_attempt
51
51
  .extend({
52
52
  action_type,
53
53
  result,
54
54
  })
55
- .describe('Reading card data from physical encoder succeeded.'),
55
+ .describe('Reading credential data from physical encoder succeeded.'),
56
56
  common_failed_action_attempt
57
57
  .extend({ action_type, error })
58
- .describe('Reading card data from physical encoder failed.'),
58
+ .describe('Reading credential data from physical encoder failed.'),
59
59
  ])
60
60
 
61
- export type ScanCardActionAttempt = z.infer<typeof scan_card_action_attempt>
61
+ export type ScanCredentialActionAttempt = z.infer<
62
+ typeof scan_credential_action_attempt
63
+ >
@@ -1355,7 +1355,7 @@ export default {
1355
1355
  type: 'object',
1356
1356
  },
1357
1357
  {
1358
- description: 'Reading card data from physical encoder.',
1358
+ description: 'Reading credential data from physical encoder.',
1359
1359
  properties: {
1360
1360
  action_attempt_id: {
1361
1361
  description: 'The ID of the action attempt.',
@@ -1363,7 +1363,7 @@ export default {
1363
1363
  type: 'string',
1364
1364
  'x-title': 'Action Attempt ID',
1365
1365
  },
1366
- action_type: { enum: ['SCAN_CARD'], type: 'string' },
1366
+ action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' },
1367
1367
  error: { nullable: true },
1368
1368
  result: { nullable: true },
1369
1369
  status: { enum: ['pending'], type: 'string' },
@@ -1378,7 +1378,8 @@ export default {
1378
1378
  type: 'object',
1379
1379
  },
1380
1380
  {
1381
- description: 'Reading card data from physical encoder succeeded.',
1381
+ description:
1382
+ 'Reading credential data from physical encoder succeeded.',
1382
1383
  properties: {
1383
1384
  action_attempt_id: {
1384
1385
  description: 'The ID of the action attempt.',
@@ -1386,13 +1387,13 @@ export default {
1386
1387
  type: 'string',
1387
1388
  'x-title': 'Action Attempt ID',
1388
1389
  },
1389
- action_type: { enum: ['SCAN_CARD'], type: 'string' },
1390
+ action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' },
1390
1391
  error: { nullable: true },
1391
1392
  result: {
1392
1393
  properties: {
1393
1394
  acs_credential_on_encoder: {
1394
1395
  description:
1395
- 'Snapshot of the card data read from the physical encoder.',
1396
+ 'Snapshot of credential data read from physical encoder.',
1396
1397
  properties: {
1397
1398
  card_number: {
1398
1399
  description:
@@ -1864,7 +1865,8 @@ export default {
1864
1865
  type: 'object',
1865
1866
  },
1866
1867
  {
1867
- description: 'Reading card data from physical encoder failed.',
1868
+ description:
1869
+ 'Reading credential data from physical encoder failed.',
1868
1870
  properties: {
1869
1871
  action_attempt_id: {
1870
1872
  description: 'The ID of the action attempt.',
@@ -1872,7 +1874,7 @@ export default {
1872
1874
  type: 'string',
1873
1875
  'x-title': 'Action Attempt ID',
1874
1876
  },
1875
- action_type: { enum: ['SCAN_CARD'], type: 'string' },
1877
+ action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' },
1876
1878
  error: {
1877
1879
  oneOf: [
1878
1880
  {
@@ -1917,7 +1919,7 @@ export default {
1917
1919
  type: 'object',
1918
1920
  },
1919
1921
  {
1920
- description: 'Encoding card data from physical encoder.',
1922
+ description: 'Encoding credential data from physical encoder.',
1921
1923
  properties: {
1922
1924
  action_attempt_id: {
1923
1925
  description: 'The ID of the action attempt.',
@@ -1925,7 +1927,7 @@ export default {
1925
1927
  type: 'string',
1926
1928
  'x-title': 'Action Attempt ID',
1927
1929
  },
1928
- action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1930
+ action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' },
1929
1931
  error: { nullable: true },
1930
1932
  result: { nullable: true },
1931
1933
  status: { enum: ['pending'], type: 'string' },
@@ -1940,7 +1942,8 @@ export default {
1940
1942
  type: 'object',
1941
1943
  },
1942
1944
  {
1943
- description: 'Encoding card data from physical encoder succeeded.',
1945
+ description:
1946
+ 'Encoding credential data from physical encoder succeeded.',
1944
1947
  properties: {
1945
1948
  action_attempt_id: {
1946
1949
  description: 'The ID of the action attempt.',
@@ -1948,7 +1951,7 @@ export default {
1948
1951
  type: 'string',
1949
1952
  'x-title': 'Action Attempt ID',
1950
1953
  },
1951
- action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1954
+ action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' },
1952
1955
  error: { nullable: true },
1953
1956
  result: {
1954
1957
  description:
@@ -2316,7 +2319,8 @@ export default {
2316
2319
  type: 'object',
2317
2320
  },
2318
2321
  {
2319
- description: 'Encoding card data from physical encoder failed.',
2322
+ description:
2323
+ 'Encoding credential data from physical encoder failed.',
2320
2324
  properties: {
2321
2325
  action_attempt_id: {
2322
2326
  description: 'The ID of the action attempt.',
@@ -2324,7 +2328,7 @@ export default {
2324
2328
  type: 'string',
2325
2329
  'x-title': 'Action Attempt ID',
2326
2330
  },
2327
- action_type: { enum: ['ENCODE_CARD'], type: 'string' },
2331
+ action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' },
2328
2332
  error: {
2329
2333
  oneOf: [
2330
2334
  {
@@ -9201,16 +9205,25 @@ export default {
9201
9205
  'x-title': 'Update a Credential',
9202
9206
  },
9203
9207
  },
9204
- '/acs/encoders/encode_card': {
9208
+ '/acs/encoders/encode_credential': {
9205
9209
  post: {
9206
- operationId: 'acsEncodersEncodeCardPost',
9210
+ operationId: 'acsEncodersEncodeCredentialPost',
9207
9211
  requestBody: {
9208
9212
  content: {
9209
9213
  'application/json': {
9210
9214
  schema: {
9211
9215
  properties: {
9212
- acs_credential_id: { format: 'uuid', type: 'string' },
9213
- device_id: { format: 'uuid', type: 'string' },
9216
+ acs_credential_id: {
9217
+ description:
9218
+ 'ID of the acs_credential to encode on a physical card.',
9219
+ format: 'uuid',
9220
+ type: 'string',
9221
+ },
9222
+ device_id: {
9223
+ description: 'ID of the encoder to use for the encoding.',
9224
+ format: 'uuid',
9225
+ type: 'string',
9226
+ },
9214
9227
  },
9215
9228
  required: ['device_id', 'acs_credential_id'],
9216
9229
  type: 'object',
@@ -9244,10 +9257,10 @@ export default {
9244
9257
  { console_session: [] },
9245
9258
  { api_key: [] },
9246
9259
  ],
9247
- summary: '/acs/encoders/encode_card',
9260
+ summary: '/acs/encoders/encode_credential',
9248
9261
  tags: ['/acs'],
9249
9262
  'x-fern-sdk-group-name': ['acs', 'encoders'],
9250
- 'x-fern-sdk-method-name': 'encode_card',
9263
+ 'x-fern-sdk-method-name': 'encode_credential',
9251
9264
  'x-fern-sdk-return-value': 'action_attempt',
9252
9265
  'x-response-key': 'action_attempt',
9253
9266
  'x-undocumented': 'Encoding a card is currently unimplemented.',
@@ -9339,16 +9352,24 @@ export default {
9339
9352
  'x-undocumented': 'Encoders are in alpha.',
9340
9353
  },
9341
9354
  },
9342
- '/acs/encoders/scan_card': {
9355
+ '/acs/encoders/scan_credential': {
9343
9356
  post: {
9344
- operationId: 'acsEncodersScanCardPost',
9357
+ operationId: 'acsEncodersScanCredentialPost',
9345
9358
  requestBody: {
9346
9359
  content: {
9347
9360
  'application/json': {
9348
9361
  schema: {
9349
9362
  properties: {
9350
- acs_system_id: { format: 'uuid', type: 'string' },
9351
- device_id: { format: 'uuid', type: 'string' },
9363
+ acs_system_id: {
9364
+ description: 'ID of the acs_system the encoder belongs to.',
9365
+ format: 'uuid',
9366
+ type: 'string',
9367
+ },
9368
+ device_id: {
9369
+ description: 'ID of the encoder to use for the scan.',
9370
+ format: 'uuid',
9371
+ type: 'string',
9372
+ },
9352
9373
  },
9353
9374
  required: ['acs_system_id', 'device_id'],
9354
9375
  type: 'object',
@@ -9382,10 +9403,10 @@ export default {
9382
9403
  { console_session: [] },
9383
9404
  { api_key: [] },
9384
9405
  ],
9385
- summary: '/acs/encoders/scan_card',
9406
+ summary: '/acs/encoders/scan_credential',
9386
9407
  tags: ['/acs'],
9387
9408
  'x-fern-sdk-group-name': ['acs', 'encoders'],
9388
- 'x-fern-sdk-method-name': 'scan_card',
9409
+ 'x-fern-sdk-method-name': 'scan_credential',
9389
9410
  'x-fern-sdk-return-value': 'action_attempt',
9390
9411
  'x-response-key': 'action_attempt',
9391
9412
  'x-undocumented': 'Reading a card is currently unimplemented.',