@seamapi/types 1.289.0 → 1.290.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.
Files changed (28) hide show
  1. package/dist/connect.cjs +70 -38
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +212 -164
  4. package/lib/seam/connect/models/acs/acs-system.d.ts +20 -0
  5. package/lib/seam/connect/models/acs/acs-system.js +7 -0
  6. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +18 -18
  8. package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -4
  9. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/{encode-card.d.ts → encode-credential.d.ts} +11 -11
  11. package/lib/seam/connect/models/action-attempts/{encode-card.js → encode-credential.js} +6 -6
  12. package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -0
  13. package/lib/seam/connect/models/action-attempts/{scan-card.d.ts → scan-credential.d.ts} +11 -11
  14. package/lib/seam/connect/models/action-attempts/{scan-card.js → scan-credential.js} +7 -7
  15. package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -0
  16. package/lib/seam/connect/openapi.d.ts +17 -2
  17. package/lib/seam/connect/openapi.js +53 -25
  18. package/lib/seam/connect/openapi.js.map +1 -1
  19. package/lib/seam/connect/route-types.d.ts +164 -144
  20. package/package.json +1 -1
  21. package/src/lib/seam/connect/models/acs/acs-system.ts +8 -0
  22. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
  23. package/src/lib/seam/connect/models/action-attempts/{encode-card.ts → encode-credential.ts} +8 -6
  24. package/src/lib/seam/connect/models/action-attempts/{scan-card.ts → scan-credential.ts} +9 -7
  25. package/src/lib/seam/connect/openapi.ts +58 -25
  26. package/src/lib/seam/connect/route-types.ts +164 -144
  27. package/lib/seam/connect/models/action-attempts/encode-card.js.map +0 -1
  28. 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.290.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -27,6 +27,13 @@ export const acs_system_capability_flags = z.object({
27
27
  ),
28
28
  })
29
29
 
30
+ export const location = z.object({
31
+ time_zone: z
32
+ .string()
33
+ .nullable()
34
+ .describe('Time zone in which the `acs_system` is located.'),
35
+ })
36
+
30
37
  // If changed, update seam.acs_system.external_type generated column
31
38
  export const acs_system_external_type = z.enum([
32
39
  'pti_site',
@@ -219,6 +226,7 @@ export const acs_system = z
219
226
  deprecated: Use \`external_type_display_name\`.
220
227
  ---
221
228
  `),
229
+ location,
222
230
  name: z.string().describe('Name of the `acs_system`.'),
223
231
  created_at: z
224
232
  .string()
@@ -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
+ >
@@ -809,6 +809,17 @@ export default {
809
809
  'Indicates if the `acs_system` is a credential manager.',
810
810
  type: 'boolean',
811
811
  },
812
+ location: {
813
+ properties: {
814
+ time_zone: {
815
+ description: 'Time zone in which the `acs_system` is located.',
816
+ nullable: true,
817
+ type: 'string',
818
+ },
819
+ },
820
+ required: ['time_zone'],
821
+ type: 'object',
822
+ },
812
823
  name: { description: 'Name of the `acs_system`.', type: 'string' },
813
824
  system_type: {
814
825
  deprecated: true,
@@ -893,6 +904,7 @@ export default {
893
904
  required: [
894
905
  'acs_system_id',
895
906
  'is_credential_manager',
907
+ 'location',
896
908
  'name',
897
909
  'created_at',
898
910
  'workspace_id',
@@ -1355,7 +1367,7 @@ export default {
1355
1367
  type: 'object',
1356
1368
  },
1357
1369
  {
1358
- description: 'Reading card data from physical encoder.',
1370
+ description: 'Reading credential data from physical encoder.',
1359
1371
  properties: {
1360
1372
  action_attempt_id: {
1361
1373
  description: 'The ID of the action attempt.',
@@ -1363,7 +1375,7 @@ export default {
1363
1375
  type: 'string',
1364
1376
  'x-title': 'Action Attempt ID',
1365
1377
  },
1366
- action_type: { enum: ['SCAN_CARD'], type: 'string' },
1378
+ action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' },
1367
1379
  error: { nullable: true },
1368
1380
  result: { nullable: true },
1369
1381
  status: { enum: ['pending'], type: 'string' },
@@ -1378,7 +1390,8 @@ export default {
1378
1390
  type: 'object',
1379
1391
  },
1380
1392
  {
1381
- description: 'Reading card data from physical encoder succeeded.',
1393
+ description:
1394
+ 'Reading credential data from physical encoder succeeded.',
1382
1395
  properties: {
1383
1396
  action_attempt_id: {
1384
1397
  description: 'The ID of the action attempt.',
@@ -1386,13 +1399,13 @@ export default {
1386
1399
  type: 'string',
1387
1400
  'x-title': 'Action Attempt ID',
1388
1401
  },
1389
- action_type: { enum: ['SCAN_CARD'], type: 'string' },
1402
+ action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' },
1390
1403
  error: { nullable: true },
1391
1404
  result: {
1392
1405
  properties: {
1393
1406
  acs_credential_on_encoder: {
1394
1407
  description:
1395
- 'Snapshot of the card data read from the physical encoder.',
1408
+ 'Snapshot of credential data read from physical encoder.',
1396
1409
  properties: {
1397
1410
  card_number: {
1398
1411
  description:
@@ -1864,7 +1877,8 @@ export default {
1864
1877
  type: 'object',
1865
1878
  },
1866
1879
  {
1867
- description: 'Reading card data from physical encoder failed.',
1880
+ description:
1881
+ 'Reading credential data from physical encoder failed.',
1868
1882
  properties: {
1869
1883
  action_attempt_id: {
1870
1884
  description: 'The ID of the action attempt.',
@@ -1872,7 +1886,7 @@ export default {
1872
1886
  type: 'string',
1873
1887
  'x-title': 'Action Attempt ID',
1874
1888
  },
1875
- action_type: { enum: ['SCAN_CARD'], type: 'string' },
1889
+ action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' },
1876
1890
  error: {
1877
1891
  oneOf: [
1878
1892
  {
@@ -1917,7 +1931,7 @@ export default {
1917
1931
  type: 'object',
1918
1932
  },
1919
1933
  {
1920
- description: 'Encoding card data from physical encoder.',
1934
+ description: 'Encoding credential data from physical encoder.',
1921
1935
  properties: {
1922
1936
  action_attempt_id: {
1923
1937
  description: 'The ID of the action attempt.',
@@ -1925,7 +1939,7 @@ export default {
1925
1939
  type: 'string',
1926
1940
  'x-title': 'Action Attempt ID',
1927
1941
  },
1928
- action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1942
+ action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' },
1929
1943
  error: { nullable: true },
1930
1944
  result: { nullable: true },
1931
1945
  status: { enum: ['pending'], type: 'string' },
@@ -1940,7 +1954,8 @@ export default {
1940
1954
  type: 'object',
1941
1955
  },
1942
1956
  {
1943
- description: 'Encoding card data from physical encoder succeeded.',
1957
+ description:
1958
+ 'Encoding credential data from physical encoder succeeded.',
1944
1959
  properties: {
1945
1960
  action_attempt_id: {
1946
1961
  description: 'The ID of the action attempt.',
@@ -1948,7 +1963,7 @@ export default {
1948
1963
  type: 'string',
1949
1964
  'x-title': 'Action Attempt ID',
1950
1965
  },
1951
- action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1966
+ action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' },
1952
1967
  error: { nullable: true },
1953
1968
  result: {
1954
1969
  description:
@@ -2316,7 +2331,8 @@ export default {
2316
2331
  type: 'object',
2317
2332
  },
2318
2333
  {
2319
- description: 'Encoding card data from physical encoder failed.',
2334
+ description:
2335
+ 'Encoding credential data from physical encoder failed.',
2320
2336
  properties: {
2321
2337
  action_attempt_id: {
2322
2338
  description: 'The ID of the action attempt.',
@@ -2324,7 +2340,7 @@ export default {
2324
2340
  type: 'string',
2325
2341
  'x-title': 'Action Attempt ID',
2326
2342
  },
2327
- action_type: { enum: ['ENCODE_CARD'], type: 'string' },
2343
+ action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' },
2328
2344
  error: {
2329
2345
  oneOf: [
2330
2346
  {
@@ -9201,16 +9217,25 @@ export default {
9201
9217
  'x-title': 'Update a Credential',
9202
9218
  },
9203
9219
  },
9204
- '/acs/encoders/encode_card': {
9220
+ '/acs/encoders/encode_credential': {
9205
9221
  post: {
9206
- operationId: 'acsEncodersEncodeCardPost',
9222
+ operationId: 'acsEncodersEncodeCredentialPost',
9207
9223
  requestBody: {
9208
9224
  content: {
9209
9225
  'application/json': {
9210
9226
  schema: {
9211
9227
  properties: {
9212
- acs_credential_id: { format: 'uuid', type: 'string' },
9213
- device_id: { format: 'uuid', type: 'string' },
9228
+ acs_credential_id: {
9229
+ description:
9230
+ 'ID of the acs_credential to encode on a physical card.',
9231
+ format: 'uuid',
9232
+ type: 'string',
9233
+ },
9234
+ device_id: {
9235
+ description: 'ID of the encoder to use for the encoding.',
9236
+ format: 'uuid',
9237
+ type: 'string',
9238
+ },
9214
9239
  },
9215
9240
  required: ['device_id', 'acs_credential_id'],
9216
9241
  type: 'object',
@@ -9244,10 +9269,10 @@ export default {
9244
9269
  { console_session: [] },
9245
9270
  { api_key: [] },
9246
9271
  ],
9247
- summary: '/acs/encoders/encode_card',
9272
+ summary: '/acs/encoders/encode_credential',
9248
9273
  tags: ['/acs'],
9249
9274
  'x-fern-sdk-group-name': ['acs', 'encoders'],
9250
- 'x-fern-sdk-method-name': 'encode_card',
9275
+ 'x-fern-sdk-method-name': 'encode_credential',
9251
9276
  'x-fern-sdk-return-value': 'action_attempt',
9252
9277
  'x-response-key': 'action_attempt',
9253
9278
  'x-undocumented': 'Encoding a card is currently unimplemented.',
@@ -9339,16 +9364,24 @@ export default {
9339
9364
  'x-undocumented': 'Encoders are in alpha.',
9340
9365
  },
9341
9366
  },
9342
- '/acs/encoders/scan_card': {
9367
+ '/acs/encoders/scan_credential': {
9343
9368
  post: {
9344
- operationId: 'acsEncodersScanCardPost',
9369
+ operationId: 'acsEncodersScanCredentialPost',
9345
9370
  requestBody: {
9346
9371
  content: {
9347
9372
  'application/json': {
9348
9373
  schema: {
9349
9374
  properties: {
9350
- acs_system_id: { format: 'uuid', type: 'string' },
9351
- device_id: { format: 'uuid', type: 'string' },
9375
+ acs_system_id: {
9376
+ description: 'ID of the acs_system the encoder belongs to.',
9377
+ format: 'uuid',
9378
+ type: 'string',
9379
+ },
9380
+ device_id: {
9381
+ description: 'ID of the encoder to use for the scan.',
9382
+ format: 'uuid',
9383
+ type: 'string',
9384
+ },
9352
9385
  },
9353
9386
  required: ['acs_system_id', 'device_id'],
9354
9387
  type: 'object',
@@ -9382,10 +9415,10 @@ export default {
9382
9415
  { console_session: [] },
9383
9416
  { api_key: [] },
9384
9417
  ],
9385
- summary: '/acs/encoders/scan_card',
9418
+ summary: '/acs/encoders/scan_credential',
9386
9419
  tags: ['/acs'],
9387
9420
  'x-fern-sdk-group-name': ['acs', 'encoders'],
9388
- 'x-fern-sdk-method-name': 'scan_card',
9421
+ 'x-fern-sdk-method-name': 'scan_credential',
9389
9422
  'x-fern-sdk-return-value': 'action_attempt',
9390
9423
  'x-response-key': 'action_attempt',
9391
9424
  'x-undocumented': 'Reading a card is currently unimplemented.',