@seamapi/types 1.264.0 → 1.264.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 (27) hide show
  1. package/dist/connect.cjs +74 -41
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +506 -336
  4. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +64 -39
  5. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +61 -21
  6. package/lib/seam/connect/models/action-attempts/deprecated.js +13 -5
  7. package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -1
  8. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +3 -18
  9. package/lib/seam/connect/models/action-attempts/encode-card.js +1 -12
  10. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
  11. package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
  12. package/lib/seam/connect/models/action-attempts/index.js +1 -0
  13. package/lib/seam/connect/models/action-attempts/index.js.map +1 -1
  14. package/lib/seam/connect/openapi.d.ts +69 -36
  15. package/lib/seam/connect/openapi.js +57 -31
  16. package/lib/seam/connect/openapi.js.map +1 -1
  17. package/lib/seam/connect/route-types.d.ts +320 -260
  18. package/lib/seam/connect/schemas.d.ts +1 -1
  19. package/lib/seam/connect/schemas.js +1 -1
  20. package/lib/seam/connect/schemas.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/lib/seam/connect/models/action-attempts/deprecated.ts +13 -5
  23. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +1 -12
  24. package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
  25. package/src/lib/seam/connect/openapi.ts +57 -33
  26. package/src/lib/seam/connect/route-types.ts +320 -260
  27. package/src/lib/seam/connect/schemas.ts +3 -0
@@ -1 +1 @@
1
- export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
@@ -1,2 +1,2 @@
1
- export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
2
2
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.264.0",
3
+ "version": "1.264.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,7 +11,7 @@ const error = z.object({
11
11
  message: z.string(),
12
12
  })
13
13
 
14
- const result = z.any()
14
+ const result = z.object({})
15
15
 
16
16
  const sync_access_codes_action_attempt = z.discriminatedUnion('status', [
17
17
  common_pending_action_attempt.extend({
@@ -33,7 +33,9 @@ const create_access_code_action_attempt = z.discriminatedUnion('status', [
33
33
  }),
34
34
  common_succeeded_action_attempt.extend({
35
35
  action_type: z.literal('CREATE_ACCESS_CODE'),
36
- result,
36
+ result: z.object({
37
+ access_code: z.any(),
38
+ }),
37
39
  }),
38
40
  common_failed_action_attempt.extend({
39
41
  action_type: z.literal('CREATE_ACCESS_CODE'),
@@ -61,7 +63,9 @@ const update_access_code_action_attempt = z.discriminatedUnion('status', [
61
63
  }),
62
64
  common_succeeded_action_attempt.extend({
63
65
  action_type: z.literal('UPDATE_ACCESS_CODE'),
64
- result,
66
+ result: z.object({
67
+ access_code: z.any(),
68
+ }),
65
69
  }),
66
70
  common_failed_action_attempt.extend({
67
71
  action_type: z.literal('UPDATE_ACCESS_CODE'),
@@ -75,7 +79,9 @@ const create_noise_threshold_action_attempt = z.discriminatedUnion('status', [
75
79
  }),
76
80
  common_succeeded_action_attempt.extend({
77
81
  action_type: z.literal('CREATE_NOISE_THRESHOLD'),
78
- result,
82
+ result: z.object({
83
+ noise_threshold: z.any(),
84
+ }),
79
85
  }),
80
86
  common_failed_action_attempt.extend({
81
87
  action_type: z.literal('CREATE_NOISE_THRESHOLD'),
@@ -103,7 +109,9 @@ const update_noise_threshold_action_attempt = z.discriminatedUnion('status', [
103
109
  }),
104
110
  common_succeeded_action_attempt.extend({
105
111
  action_type: z.literal('UPDATE_NOISE_THRESHOLD'),
106
- result,
112
+ result: z.object({
113
+ noise_threshold: z.any(),
114
+ }),
107
115
  }),
108
116
  common_failed_action_attempt.extend({
109
117
  action_type: z.literal('UPDATE_NOISE_THRESHOLD'),
@@ -13,18 +13,7 @@ const error = z.object({
13
13
  message: z.string(),
14
14
  })
15
15
 
16
- const result = z.object({
17
- acs_credential_id: z
18
- .string()
19
- .uuid()
20
- .nullable()
21
- .describe('Matching acs_credential currently encoded on this card.'),
22
- card_number: z
23
- .string()
24
- .nullable()
25
- .describe('A number or string that physically identifies this card.'),
26
- // TODO visionline_metadata: visionline_credential_metadata,
27
- })
16
+ const result = z.object({})
28
17
 
29
18
  export const encode_card_action_attempt = z.discriminatedUnion('status', [
30
19
  common_pending_action_attempt
@@ -1 +1,2 @@
1
1
  export * from './action-attempt.js'
2
+ export * from './common.js'
@@ -1640,25 +1640,7 @@ export default {
1640
1640
  },
1641
1641
  action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1642
1642
  error: { nullable: true },
1643
- result: {
1644
- properties: {
1645
- acs_credential_id: {
1646
- description:
1647
- 'Matching acs_credential currently encoded on this card.',
1648
- format: 'uuid',
1649
- nullable: true,
1650
- type: 'string',
1651
- },
1652
- card_number: {
1653
- description:
1654
- 'A number or string that physically identifies this card.',
1655
- nullable: true,
1656
- type: 'string',
1657
- },
1658
- },
1659
- required: ['acs_credential_id', 'card_number'],
1660
- type: 'object',
1661
- },
1643
+ result: { properties: {}, type: 'object' },
1662
1644
  status: { enum: ['success'], type: 'string' },
1663
1645
  },
1664
1646
  required: [
@@ -2282,10 +2264,16 @@ export default {
2282
2264
  },
2283
2265
  action_type: { enum: ['SYNC_ACCESS_CODES'], type: 'string' },
2284
2266
  error: { nullable: true },
2285
- result: {},
2267
+ result: { properties: {}, type: 'object' },
2286
2268
  status: { enum: ['success'], type: 'string' },
2287
2269
  },
2288
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2270
+ required: [
2271
+ 'action_attempt_id',
2272
+ 'status',
2273
+ 'error',
2274
+ 'action_type',
2275
+ 'result',
2276
+ ],
2289
2277
  type: 'object',
2290
2278
  },
2291
2279
  {
@@ -2349,10 +2337,16 @@ export default {
2349
2337
  },
2350
2338
  action_type: { enum: ['CREATE_ACCESS_CODE'], type: 'string' },
2351
2339
  error: { nullable: true },
2352
- result: {},
2340
+ result: { properties: { access_code: {} }, type: 'object' },
2353
2341
  status: { enum: ['success'], type: 'string' },
2354
2342
  },
2355
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2343
+ required: [
2344
+ 'action_attempt_id',
2345
+ 'status',
2346
+ 'error',
2347
+ 'action_type',
2348
+ 'result',
2349
+ ],
2356
2350
  type: 'object',
2357
2351
  },
2358
2352
  {
@@ -2416,10 +2410,16 @@ export default {
2416
2410
  },
2417
2411
  action_type: { enum: ['DELETE_ACCESS_CODE'], type: 'string' },
2418
2412
  error: { nullable: true },
2419
- result: {},
2413
+ result: { properties: {}, type: 'object' },
2420
2414
  status: { enum: ['success'], type: 'string' },
2421
2415
  },
2422
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2416
+ required: [
2417
+ 'action_attempt_id',
2418
+ 'status',
2419
+ 'error',
2420
+ 'action_type',
2421
+ 'result',
2422
+ ],
2423
2423
  type: 'object',
2424
2424
  },
2425
2425
  {
@@ -2483,10 +2483,16 @@ export default {
2483
2483
  },
2484
2484
  action_type: { enum: ['UPDATE_ACCESS_CODE'], type: 'string' },
2485
2485
  error: { nullable: true },
2486
- result: {},
2486
+ result: { properties: { access_code: {} }, type: 'object' },
2487
2487
  status: { enum: ['success'], type: 'string' },
2488
2488
  },
2489
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2489
+ required: [
2490
+ 'action_attempt_id',
2491
+ 'status',
2492
+ 'error',
2493
+ 'action_type',
2494
+ 'result',
2495
+ ],
2490
2496
  type: 'object',
2491
2497
  },
2492
2498
  {
@@ -2550,10 +2556,16 @@ export default {
2550
2556
  },
2551
2557
  action_type: { enum: ['CREATE_NOISE_THRESHOLD'], type: 'string' },
2552
2558
  error: { nullable: true },
2553
- result: {},
2559
+ result: { properties: { noise_threshold: {} }, type: 'object' },
2554
2560
  status: { enum: ['success'], type: 'string' },
2555
2561
  },
2556
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2562
+ required: [
2563
+ 'action_attempt_id',
2564
+ 'status',
2565
+ 'error',
2566
+ 'action_type',
2567
+ 'result',
2568
+ ],
2557
2569
  type: 'object',
2558
2570
  },
2559
2571
  {
@@ -2617,10 +2629,16 @@ export default {
2617
2629
  },
2618
2630
  action_type: { enum: ['DELETE_NOISE_THRESHOLD'], type: 'string' },
2619
2631
  error: { nullable: true },
2620
- result: {},
2632
+ result: { properties: {}, type: 'object' },
2621
2633
  status: { enum: ['success'], type: 'string' },
2622
2634
  },
2623
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2635
+ required: [
2636
+ 'action_attempt_id',
2637
+ 'status',
2638
+ 'error',
2639
+ 'action_type',
2640
+ 'result',
2641
+ ],
2624
2642
  type: 'object',
2625
2643
  },
2626
2644
  {
@@ -2684,10 +2702,16 @@ export default {
2684
2702
  },
2685
2703
  action_type: { enum: ['UPDATE_NOISE_THRESHOLD'], type: 'string' },
2686
2704
  error: { nullable: true },
2687
- result: {},
2705
+ result: { properties: { noise_threshold: {} }, type: 'object' },
2688
2706
  status: { enum: ['success'], type: 'string' },
2689
2707
  },
2690
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2708
+ required: [
2709
+ 'action_attempt_id',
2710
+ 'status',
2711
+ 'error',
2712
+ 'action_type',
2713
+ 'result',
2714
+ ],
2691
2715
  type: 'object',
2692
2716
  },
2693
2717
  {