@seamapi/types 1.264.0 → 1.264.2

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 (39) hide show
  1. package/dist/connect.cjs +82 -43
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +562 -363
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +3 -3
  5. package/lib/seam/connect/models/acs/acs-credential.js +1 -0
  6. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +71 -46
  8. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +61 -21
  9. package/lib/seam/connect/models/action-attempts/deprecated.js +13 -5
  10. package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -1
  11. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +3 -18
  12. package/lib/seam/connect/models/action-attempts/encode-card.js +1 -12
  13. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
  14. package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
  15. package/lib/seam/connect/models/action-attempts/index.js +1 -0
  16. package/lib/seam/connect/models/action-attempts/index.js.map +1 -1
  17. package/lib/seam/connect/models/action-attempts/scan-card.d.ts +7 -7
  18. package/lib/seam/connect/models/devices/device-metadata.d.ts +8 -0
  19. package/lib/seam/connect/models/devices/device-metadata.js +4 -0
  20. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  21. package/lib/seam/connect/models/devices/device.d.ts +7 -0
  22. package/lib/seam/connect/models/devices/phone.d.ts +5 -0
  23. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -0
  24. package/lib/seam/connect/openapi.d.ts +73 -36
  25. package/lib/seam/connect/openapi.js +59 -31
  26. package/lib/seam/connect/openapi.js.map +1 -1
  27. package/lib/seam/connect/route-types.d.ts +353 -280
  28. package/lib/seam/connect/schemas.d.ts +1 -1
  29. package/lib/seam/connect/schemas.js +1 -1
  30. package/lib/seam/connect/schemas.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/lib/seam/connect/models/acs/acs-credential.ts +1 -0
  33. package/src/lib/seam/connect/models/action-attempts/deprecated.ts +13 -5
  34. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +1 -12
  35. package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
  36. package/src/lib/seam/connect/models/devices/device-metadata.ts +5 -0
  37. package/src/lib/seam/connect/openapi.ts +59 -33
  38. package/src/lib/seam/connect/route-types.ts +353 -280
  39. 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.2",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -76,6 +76,7 @@ export const acs_credential_on_encoder = z.object({
76
76
  created_at: z
77
77
  .string()
78
78
  .datetime()
79
+ .nullable()
79
80
  .describe('Date and time the credential was created.'),
80
81
 
81
82
  is_issued: z.boolean().nullable(),
@@ -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'
@@ -245,6 +245,11 @@ export const device_metadata = z
245
245
  akiles_metadata: z.object({
246
246
  gadget_name: z.string(),
247
247
  gadget_id: z.string(),
248
+
249
+ /**
250
+ * Group ID to add users to for this device
251
+ */
252
+ _member_group_id: z.string().optional(),
248
253
  }),
249
254
  })
250
255
  .partial()
@@ -1264,6 +1264,7 @@ export default {
1264
1264
  description:
1265
1265
  'Date and time the credential was created.',
1266
1266
  format: 'date-time',
1267
+ nullable: true,
1267
1268
  type: 'string',
1268
1269
  },
1269
1270
  ends_at: {
@@ -1640,25 +1641,7 @@ export default {
1640
1641
  },
1641
1642
  action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1642
1643
  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
- },
1644
+ result: { properties: {}, type: 'object' },
1662
1645
  status: { enum: ['success'], type: 'string' },
1663
1646
  },
1664
1647
  required: [
@@ -2282,10 +2265,16 @@ export default {
2282
2265
  },
2283
2266
  action_type: { enum: ['SYNC_ACCESS_CODES'], type: 'string' },
2284
2267
  error: { nullable: true },
2285
- result: {},
2268
+ result: { properties: {}, type: 'object' },
2286
2269
  status: { enum: ['success'], type: 'string' },
2287
2270
  },
2288
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2271
+ required: [
2272
+ 'action_attempt_id',
2273
+ 'status',
2274
+ 'error',
2275
+ 'action_type',
2276
+ 'result',
2277
+ ],
2289
2278
  type: 'object',
2290
2279
  },
2291
2280
  {
@@ -2349,10 +2338,16 @@ export default {
2349
2338
  },
2350
2339
  action_type: { enum: ['CREATE_ACCESS_CODE'], type: 'string' },
2351
2340
  error: { nullable: true },
2352
- result: {},
2341
+ result: { properties: { access_code: {} }, type: 'object' },
2353
2342
  status: { enum: ['success'], type: 'string' },
2354
2343
  },
2355
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2344
+ required: [
2345
+ 'action_attempt_id',
2346
+ 'status',
2347
+ 'error',
2348
+ 'action_type',
2349
+ 'result',
2350
+ ],
2356
2351
  type: 'object',
2357
2352
  },
2358
2353
  {
@@ -2416,10 +2411,16 @@ export default {
2416
2411
  },
2417
2412
  action_type: { enum: ['DELETE_ACCESS_CODE'], type: 'string' },
2418
2413
  error: { nullable: true },
2419
- result: {},
2414
+ result: { properties: {}, type: 'object' },
2420
2415
  status: { enum: ['success'], type: 'string' },
2421
2416
  },
2422
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2417
+ required: [
2418
+ 'action_attempt_id',
2419
+ 'status',
2420
+ 'error',
2421
+ 'action_type',
2422
+ 'result',
2423
+ ],
2423
2424
  type: 'object',
2424
2425
  },
2425
2426
  {
@@ -2483,10 +2484,16 @@ export default {
2483
2484
  },
2484
2485
  action_type: { enum: ['UPDATE_ACCESS_CODE'], type: 'string' },
2485
2486
  error: { nullable: true },
2486
- result: {},
2487
+ result: { properties: { access_code: {} }, type: 'object' },
2487
2488
  status: { enum: ['success'], type: 'string' },
2488
2489
  },
2489
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2490
+ required: [
2491
+ 'action_attempt_id',
2492
+ 'status',
2493
+ 'error',
2494
+ 'action_type',
2495
+ 'result',
2496
+ ],
2490
2497
  type: 'object',
2491
2498
  },
2492
2499
  {
@@ -2550,10 +2557,16 @@ export default {
2550
2557
  },
2551
2558
  action_type: { enum: ['CREATE_NOISE_THRESHOLD'], type: 'string' },
2552
2559
  error: { nullable: true },
2553
- result: {},
2560
+ result: { properties: { noise_threshold: {} }, type: 'object' },
2554
2561
  status: { enum: ['success'], type: 'string' },
2555
2562
  },
2556
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2563
+ required: [
2564
+ 'action_attempt_id',
2565
+ 'status',
2566
+ 'error',
2567
+ 'action_type',
2568
+ 'result',
2569
+ ],
2557
2570
  type: 'object',
2558
2571
  },
2559
2572
  {
@@ -2617,10 +2630,16 @@ export default {
2617
2630
  },
2618
2631
  action_type: { enum: ['DELETE_NOISE_THRESHOLD'], type: 'string' },
2619
2632
  error: { nullable: true },
2620
- result: {},
2633
+ result: { properties: {}, type: 'object' },
2621
2634
  status: { enum: ['success'], type: 'string' },
2622
2635
  },
2623
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2636
+ required: [
2637
+ 'action_attempt_id',
2638
+ 'status',
2639
+ 'error',
2640
+ 'action_type',
2641
+ 'result',
2642
+ ],
2624
2643
  type: 'object',
2625
2644
  },
2626
2645
  {
@@ -2684,10 +2703,16 @@ export default {
2684
2703
  },
2685
2704
  action_type: { enum: ['UPDATE_NOISE_THRESHOLD'], type: 'string' },
2686
2705
  error: { nullable: true },
2687
- result: {},
2706
+ result: { properties: { noise_threshold: {} }, type: 'object' },
2688
2707
  status: { enum: ['success'], type: 'string' },
2689
2708
  },
2690
- required: ['action_attempt_id', 'status', 'error', 'action_type'],
2709
+ required: [
2710
+ 'action_attempt_id',
2711
+ 'status',
2712
+ 'error',
2713
+ 'action_type',
2714
+ 'result',
2715
+ ],
2691
2716
  type: 'object',
2692
2717
  },
2693
2718
  {
@@ -3272,6 +3297,7 @@ export default {
3272
3297
  properties: {
3273
3298
  akiles_metadata: {
3274
3299
  properties: {
3300
+ _member_group_id: { type: 'string' },
3275
3301
  gadget_id: { type: 'string' },
3276
3302
  gadget_name: { type: 'string' },
3277
3303
  },