@seamapi/types 1.1103.0 → 1.1105.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 (63) hide show
  1. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +395 -0
  2. package/lib/seam/connect/models/action-attempts/action-attempt.js +10 -0
  3. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  4. package/lib/seam/connect/models/action-attempts/pause-speaker-playback.d.ts +87 -0
  5. package/lib/seam/connect/models/action-attempts/pause-speaker-playback.js +37 -0
  6. package/lib/seam/connect/models/action-attempts/pause-speaker-playback.js.map +1 -0
  7. package/lib/seam/connect/models/action-attempts/play-speaker-chime.d.ts +77 -0
  8. package/lib/seam/connect/models/action-attempts/play-speaker-chime.js +31 -0
  9. package/lib/seam/connect/models/action-attempts/play-speaker-chime.js.map +1 -0
  10. package/lib/seam/connect/models/action-attempts/resume-speaker-playback.d.ts +87 -0
  11. package/lib/seam/connect/models/action-attempts/resume-speaker-playback.js +37 -0
  12. package/lib/seam/connect/models/action-attempts/resume-speaker-playback.js.map +1 -0
  13. package/lib/seam/connect/models/action-attempts/set-speaker-mute.d.ts +77 -0
  14. package/lib/seam/connect/models/action-attempts/set-speaker-mute.js +31 -0
  15. package/lib/seam/connect/models/action-attempts/set-speaker-mute.js.map +1 -0
  16. package/lib/seam/connect/models/action-attempts/set-speaker-volume.d.ts +77 -0
  17. package/lib/seam/connect/models/action-attempts/set-speaker-volume.js +31 -0
  18. package/lib/seam/connect/models/action-attempts/set-speaker-volume.js.map +1 -0
  19. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +3 -3
  20. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +3 -3
  21. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +95 -1
  22. package/lib/seam/connect/models/devices/capability-properties/index.js +4 -2
  23. package/lib/seam/connect/models/devices/capability-properties/index.js.map +1 -1
  24. package/lib/seam/connect/models/devices/capability-properties/speaker.d.ts +98 -0
  25. package/lib/seam/connect/models/devices/capability-properties/speaker.js +61 -0
  26. package/lib/seam/connect/models/devices/capability-properties/speaker.js.map +1 -0
  27. package/lib/seam/connect/models/devices/device-metadata.d.ts +33 -0
  28. package/lib/seam/connect/models/devices/device-metadata.js +26 -0
  29. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  30. package/lib/seam/connect/models/devices/device-provider.d.ts +12 -0
  31. package/lib/seam/connect/models/devices/device-provider.js +1 -0
  32. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  33. package/lib/seam/connect/models/devices/device-type.d.ts +7 -1
  34. package/lib/seam/connect/models/devices/device-type.js +8 -0
  35. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  36. package/lib/seam/connect/models/devices/device.d.ts +200 -3
  37. package/lib/seam/connect/models/devices/device.js +16 -0
  38. package/lib/seam/connect/models/devices/device.js.map +1 -1
  39. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +144 -3
  40. package/lib/seam/connect/models/provider-capability.d.ts +1 -1
  41. package/lib/seam/connect/models/provider-capability.js +1 -0
  42. package/lib/seam/connect/models/provider-capability.js.map +1 -1
  43. package/lib/seam/connect/openapi.js +800 -45
  44. package/lib/seam/connect/openapi.js.map +1 -1
  45. package/lib/seam/connect/route-types.d.ts +7127 -40
  46. package/package.json +1 -1
  47. package/src/lib/seam/connect/internal/enums.ts +2 -0
  48. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  49. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +10 -0
  50. package/src/lib/seam/connect/models/action-attempts/pause-speaker-playback.ts +54 -0
  51. package/src/lib/seam/connect/models/action-attempts/play-speaker-chime.ts +46 -0
  52. package/src/lib/seam/connect/models/action-attempts/resume-speaker-playback.ts +54 -0
  53. package/src/lib/seam/connect/models/action-attempts/set-speaker-mute.ts +43 -0
  54. package/src/lib/seam/connect/models/action-attempts/set-speaker-volume.ts +46 -0
  55. package/src/lib/seam/connect/models/devices/capability-properties/index.ts +9 -1
  56. package/src/lib/seam/connect/models/devices/capability-properties/speaker.ts +76 -0
  57. package/src/lib/seam/connect/models/devices/device-metadata.ts +29 -0
  58. package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
  59. package/src/lib/seam/connect/models/devices/device-type.ts +16 -0
  60. package/src/lib/seam/connect/models/devices/device.ts +18 -0
  61. package/src/lib/seam/connect/models/provider-capability.ts +1 -0
  62. package/src/lib/seam/connect/openapi.ts +873 -45
  63. package/src/lib/seam/connect/route-types.ts +7879 -8
@@ -0,0 +1,87 @@
1
+ import * as z from 'zod/v3';
2
+ export declare const resume_speaker_playback_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3
+ action_attempt_id: z.ZodString;
4
+ } & {
5
+ status: z.ZodLiteral<"pending">;
6
+ result: z.ZodNull;
7
+ error: z.ZodNull;
8
+ } & {
9
+ action_type: z.ZodLiteral<"RESUME_SPEAKER_PLAYBACK">;
10
+ }, "strip", z.ZodTypeAny, {
11
+ status: "pending";
12
+ action_attempt_id: string;
13
+ error: null;
14
+ result: null;
15
+ action_type: "RESUME_SPEAKER_PLAYBACK";
16
+ }, {
17
+ status: "pending";
18
+ action_attempt_id: string;
19
+ error: null;
20
+ result: null;
21
+ action_type: "RESUME_SPEAKER_PLAYBACK";
22
+ }>, z.ZodObject<{
23
+ action_attempt_id: z.ZodString;
24
+ } & {
25
+ status: z.ZodLiteral<"success">;
26
+ error: z.ZodNull;
27
+ } & {
28
+ action_type: z.ZodLiteral<"RESUME_SPEAKER_PLAYBACK">;
29
+ result: z.ZodObject<{
30
+ affected_device_ids: z.ZodArray<z.ZodString, "many">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ affected_device_ids: string[];
33
+ }, {
34
+ affected_device_ids: string[];
35
+ }>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ status: "success";
38
+ action_attempt_id: string;
39
+ error: null;
40
+ result: {
41
+ affected_device_ids: string[];
42
+ };
43
+ action_type: "RESUME_SPEAKER_PLAYBACK";
44
+ }, {
45
+ status: "success";
46
+ action_attempt_id: string;
47
+ error: null;
48
+ result: {
49
+ affected_device_ids: string[];
50
+ };
51
+ action_type: "RESUME_SPEAKER_PLAYBACK";
52
+ }>, z.ZodObject<{
53
+ action_attempt_id: z.ZodString;
54
+ } & {
55
+ status: z.ZodLiteral<"error">;
56
+ result: z.ZodNull;
57
+ } & {
58
+ action_type: z.ZodLiteral<"RESUME_SPEAKER_PLAYBACK">;
59
+ error: z.ZodObject<{
60
+ type: z.ZodString;
61
+ message: z.ZodString;
62
+ }, "strip", z.ZodTypeAny, {
63
+ message: string;
64
+ type: string;
65
+ }, {
66
+ message: string;
67
+ type: string;
68
+ }>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ status: "error";
71
+ action_attempt_id: string;
72
+ error: {
73
+ message: string;
74
+ type: string;
75
+ };
76
+ result: null;
77
+ action_type: "RESUME_SPEAKER_PLAYBACK";
78
+ }, {
79
+ status: "error";
80
+ action_attempt_id: string;
81
+ error: {
82
+ message: string;
83
+ type: string;
84
+ };
85
+ result: null;
86
+ action_type: "RESUME_SPEAKER_PLAYBACK";
87
+ }>]>;
@@ -0,0 +1,37 @@
1
+ import * as z from 'zod/v3';
2
+ import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
3
+ const action_type = z
4
+ .literal('RESUME_SPEAKER_PLAYBACK')
5
+ .describe('Action attempt to track the status of resuming playback on a speaker.');
6
+ const error = z
7
+ .object({
8
+ type: z.string().describe('Type of the error.'),
9
+ message: z
10
+ .string()
11
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
12
+ })
13
+ .describe('Error associated with the action.');
14
+ const result = z
15
+ .object({
16
+ affected_device_ids: z
17
+ .array(z.string().uuid())
18
+ .describe('IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker.'),
19
+ })
20
+ .describe('Result of the action.');
21
+ export const resume_speaker_playback_action_attempt = z.discriminatedUnion('status', [
22
+ common_pending_action_attempt
23
+ .extend({
24
+ action_type,
25
+ })
26
+ .describe('Resuming playback on the speaker is pending.'),
27
+ common_succeeded_action_attempt
28
+ .extend({
29
+ action_type,
30
+ result,
31
+ })
32
+ .describe('Resuming playback on the speaker succeeded.'),
33
+ common_failed_action_attempt
34
+ .extend({ action_type, error })
35
+ .describe('Resuming playback on the speaker failed.'),
36
+ ]);
37
+ //# sourceMappingURL=resume-speaker-playback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resume-speaker-playback.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/resume-speaker-playback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,yBAAyB,CAAC;KAClC,QAAQ,CACP,uEAAuE,CACxE,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC;KACb,MAAM,CAAC;IACN,mBAAmB,EAAE,CAAC;SACnB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAEpC,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,kBAAkB,CACxE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,8CAA8C,CAAC;IAC3D,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,6CAA6C,CAAC;IAC1D,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,0CAA0C,CAAC;CACxD,CACF,CAAA"}
@@ -0,0 +1,77 @@
1
+ import * as z from 'zod/v3';
2
+ export declare const set_speaker_mute_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3
+ action_attempt_id: z.ZodString;
4
+ } & {
5
+ status: z.ZodLiteral<"pending">;
6
+ result: z.ZodNull;
7
+ error: z.ZodNull;
8
+ } & {
9
+ action_type: z.ZodLiteral<"SET_SPEAKER_MUTE">;
10
+ }, "strip", z.ZodTypeAny, {
11
+ status: "pending";
12
+ action_attempt_id: string;
13
+ error: null;
14
+ result: null;
15
+ action_type: "SET_SPEAKER_MUTE";
16
+ }, {
17
+ status: "pending";
18
+ action_attempt_id: string;
19
+ error: null;
20
+ result: null;
21
+ action_type: "SET_SPEAKER_MUTE";
22
+ }>, z.ZodObject<{
23
+ action_attempt_id: z.ZodString;
24
+ } & {
25
+ status: z.ZodLiteral<"success">;
26
+ error: z.ZodNull;
27
+ } & {
28
+ action_type: z.ZodLiteral<"SET_SPEAKER_MUTE">;
29
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ status: "success";
32
+ action_attempt_id: string;
33
+ error: null;
34
+ result: {};
35
+ action_type: "SET_SPEAKER_MUTE";
36
+ }, {
37
+ status: "success";
38
+ action_attempt_id: string;
39
+ error: null;
40
+ result: {};
41
+ action_type: "SET_SPEAKER_MUTE";
42
+ }>, z.ZodObject<{
43
+ action_attempt_id: z.ZodString;
44
+ } & {
45
+ status: z.ZodLiteral<"error">;
46
+ result: z.ZodNull;
47
+ } & {
48
+ action_type: z.ZodLiteral<"SET_SPEAKER_MUTE">;
49
+ error: z.ZodObject<{
50
+ type: z.ZodString;
51
+ message: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ message: string;
54
+ type: string;
55
+ }, {
56
+ message: string;
57
+ type: string;
58
+ }>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ status: "error";
61
+ action_attempt_id: string;
62
+ error: {
63
+ message: string;
64
+ type: string;
65
+ };
66
+ result: null;
67
+ action_type: "SET_SPEAKER_MUTE";
68
+ }, {
69
+ status: "error";
70
+ action_attempt_id: string;
71
+ error: {
72
+ message: string;
73
+ type: string;
74
+ };
75
+ result: null;
76
+ action_type: "SET_SPEAKER_MUTE";
77
+ }>]>;
@@ -0,0 +1,31 @@
1
+ import * as z from 'zod/v3';
2
+ import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
3
+ const action_type = z
4
+ .literal('SET_SPEAKER_MUTE')
5
+ .describe('Action attempt to track the status of muting or unmuting a speaker.');
6
+ const error = z
7
+ .object({
8
+ type: z.string().describe('Type of the error.'),
9
+ message: z
10
+ .string()
11
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
12
+ })
13
+ .describe('Error associated with the action.');
14
+ const result = z.object({}).describe('Result of the action.');
15
+ export const set_speaker_mute_action_attempt = z.discriminatedUnion('status', [
16
+ common_pending_action_attempt
17
+ .extend({
18
+ action_type,
19
+ })
20
+ .describe('Muting or unmuting the speaker is pending.'),
21
+ common_succeeded_action_attempt
22
+ .extend({
23
+ action_type,
24
+ result,
25
+ })
26
+ .describe('Muting or unmuting the speaker succeeded.'),
27
+ common_failed_action_attempt
28
+ .extend({ action_type, error })
29
+ .describe('Muting or unmuting the speaker failed.'),
30
+ ]);
31
+ //# sourceMappingURL=set-speaker-mute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-speaker-mute.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/set-speaker-mute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,kBAAkB,CAAC;KAC3B,QAAQ,CACP,qEAAqE,CACtE,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC5E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,4CAA4C,CAAC;IACzD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;IACxD,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,wCAAwC,CAAC;CACtD,CAAC,CAAA"}
@@ -0,0 +1,77 @@
1
+ import * as z from 'zod/v3';
2
+ export declare const set_speaker_volume_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3
+ action_attempt_id: z.ZodString;
4
+ } & {
5
+ status: z.ZodLiteral<"pending">;
6
+ result: z.ZodNull;
7
+ error: z.ZodNull;
8
+ } & {
9
+ action_type: z.ZodLiteral<"SET_SPEAKER_VOLUME">;
10
+ }, "strip", z.ZodTypeAny, {
11
+ status: "pending";
12
+ action_attempt_id: string;
13
+ error: null;
14
+ result: null;
15
+ action_type: "SET_SPEAKER_VOLUME";
16
+ }, {
17
+ status: "pending";
18
+ action_attempt_id: string;
19
+ error: null;
20
+ result: null;
21
+ action_type: "SET_SPEAKER_VOLUME";
22
+ }>, z.ZodObject<{
23
+ action_attempt_id: z.ZodString;
24
+ } & {
25
+ status: z.ZodLiteral<"success">;
26
+ error: z.ZodNull;
27
+ } & {
28
+ action_type: z.ZodLiteral<"SET_SPEAKER_VOLUME">;
29
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ status: "success";
32
+ action_attempt_id: string;
33
+ error: null;
34
+ result: {};
35
+ action_type: "SET_SPEAKER_VOLUME";
36
+ }, {
37
+ status: "success";
38
+ action_attempt_id: string;
39
+ error: null;
40
+ result: {};
41
+ action_type: "SET_SPEAKER_VOLUME";
42
+ }>, z.ZodObject<{
43
+ action_attempt_id: z.ZodString;
44
+ } & {
45
+ status: z.ZodLiteral<"error">;
46
+ result: z.ZodNull;
47
+ } & {
48
+ action_type: z.ZodLiteral<"SET_SPEAKER_VOLUME">;
49
+ error: z.ZodObject<{
50
+ type: z.ZodString;
51
+ message: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ message: string;
54
+ type: string;
55
+ }, {
56
+ message: string;
57
+ type: string;
58
+ }>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ status: "error";
61
+ action_attempt_id: string;
62
+ error: {
63
+ message: string;
64
+ type: string;
65
+ };
66
+ result: null;
67
+ action_type: "SET_SPEAKER_VOLUME";
68
+ }, {
69
+ status: "error";
70
+ action_attempt_id: string;
71
+ error: {
72
+ message: string;
73
+ type: string;
74
+ };
75
+ result: null;
76
+ action_type: "SET_SPEAKER_VOLUME";
77
+ }>]>;
@@ -0,0 +1,31 @@
1
+ import * as z from 'zod/v3';
2
+ import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
3
+ const action_type = z
4
+ .literal('SET_SPEAKER_VOLUME')
5
+ .describe('Action attempt to track the status of setting the volume on a speaker.');
6
+ const error = z
7
+ .object({
8
+ type: z.string().describe('Type of the error.'),
9
+ message: z
10
+ .string()
11
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
12
+ })
13
+ .describe('Error associated with the action.');
14
+ const result = z.object({}).describe('Result of the action.');
15
+ export const set_speaker_volume_action_attempt = z.discriminatedUnion('status', [
16
+ common_pending_action_attempt
17
+ .extend({
18
+ action_type,
19
+ })
20
+ .describe('Setting the speaker volume is pending.'),
21
+ common_succeeded_action_attempt
22
+ .extend({
23
+ action_type,
24
+ result,
25
+ })
26
+ .describe('Setting the speaker volume succeeded.'),
27
+ common_failed_action_attempt
28
+ .extend({ action_type, error })
29
+ .describe('Setting the speaker volume failed.'),
30
+ ]);
31
+ //# sourceMappingURL=set-speaker-volume.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-speaker-volume.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/set-speaker-volume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,oBAAoB,CAAC;KAC7B,QAAQ,CACP,wEAAwE,CACzE,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,kBAAkB,CACnE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,wCAAwC,CAAC;IACrD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,uCAAuC,CAAC;IACpD,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,oCAAoC,CAAC;CAClD,CACF,CAAA"}
@@ -8,7 +8,7 @@ export declare const connect_webview: z.ZodObject<{
8
8
  url: z.ZodString;
9
9
  device_selection_mode: z.ZodEnum<["none", "single", "multiple"]>;
10
10
  accepted_providers: z.ZodArray<z.ZodString, "many">;
11
- accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control", "camera"]>, "many">;
11
+ accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control", "camera", "speaker"]>, "many">;
12
12
  accepted_devices: z.ZodArray<z.ZodString, "many">;
13
13
  any_device_allowed: z.ZodBoolean;
14
14
  any_provider_allowed: z.ZodBoolean;
@@ -29,7 +29,7 @@ export declare const connect_webview: z.ZodObject<{
29
29
  connected_account_id: string | null;
30
30
  custom_metadata: Record<string, string | boolean>;
31
31
  automatically_manage_new_devices: boolean;
32
- accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control" | "camera")[];
32
+ accepted_capabilities: ("lock" | "thermostat" | "speaker" | "noise_sensor" | "access_control" | "camera")[];
33
33
  connect_webview_id: string;
34
34
  url: string;
35
35
  device_selection_mode: "none" | "single" | "multiple";
@@ -51,7 +51,7 @@ export declare const connect_webview: z.ZodObject<{
51
51
  connected_account_id: string | null;
52
52
  custom_metadata: Record<string, string | boolean>;
53
53
  automatically_manage_new_devices: boolean;
54
- accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control" | "camera")[];
54
+ accepted_capabilities: ("lock" | "thermostat" | "speaker" | "noise_sensor" | "access_control" | "camera")[];
55
55
  connect_webview_id: string;
56
56
  url: string;
57
57
  device_selection_mode: "none" | "single" | "multiple";
@@ -1194,7 +1194,7 @@ export declare const connected_account: z.ZodObject<{
1194
1194
  custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
1195
1195
  automatically_manage_new_devices: z.ZodBoolean;
1196
1196
  customer_key: z.ZodOptional<z.ZodString>;
1197
- accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control", "camera"]>, "many">;
1197
+ accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control", "camera", "speaker"]>, "many">;
1198
1198
  default_checkin_time: z.ZodOptional<z.ZodString>;
1199
1199
  default_checkout_time: z.ZodOptional<z.ZodString>;
1200
1200
  time_zone: z.ZodOptional<z.ZodString>;
@@ -1280,7 +1280,7 @@ export declare const connected_account: z.ZodObject<{
1280
1280
  })[];
1281
1281
  custom_metadata: Record<string, string | boolean>;
1282
1282
  automatically_manage_new_devices: boolean;
1283
- accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control" | "camera")[];
1283
+ accepted_capabilities: ("lock" | "thermostat" | "speaker" | "noise_sensor" | "access_control" | "camera")[];
1284
1284
  time_zone?: string | undefined;
1285
1285
  created_at?: string | undefined;
1286
1286
  user_identifier?: {
@@ -1377,7 +1377,7 @@ export declare const connected_account: z.ZodObject<{
1377
1377
  })[];
1378
1378
  custom_metadata: Record<string, string | boolean>;
1379
1379
  automatically_manage_new_devices: boolean;
1380
- accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control" | "camera")[];
1380
+ accepted_capabilities: ("lock" | "thermostat" | "speaker" | "noise_sensor" | "access_control" | "camera")[];
1381
1381
  time_zone?: string | undefined;
1382
1382
  created_at?: string | undefined;
1383
1383
  user_identifier?: {
@@ -1,8 +1,9 @@
1
1
  import * as z from 'zod/v3';
2
2
  import { access_code_capability_properties, access_code_code_constraint, time_frame_option } from './access-code.js';
3
3
  import { lock_capability_properties } from './lock.js';
4
+ import { speaker_capability_properties, speaker_playback_state } from './speaker.js';
4
5
  import { thermostat_capability_properties } from './thermostat.js';
5
- export { access_code_capability_properties, access_code_code_constraint, lock_capability_properties, thermostat_capability_properties, time_frame_option, };
6
+ export { access_code_capability_properties, access_code_code_constraint, lock_capability_properties, speaker_capability_properties, speaker_playback_state, thermostat_capability_properties, time_frame_option, };
6
7
  export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
7
8
  code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
8
9
  constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future", "no_ascending_or_descending_sequence", "at_least_three_unique_digits", "cannot_contain_089", "cannot_contain_0789", "unique_first_four_digits", "no_all_same_digits"]>;
@@ -136,6 +137,64 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
136
137
  door_open: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
137
138
  auto_lock_enabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
138
139
  auto_lock_delay_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
140
+ } & {
141
+ speaker: z.ZodOptional<z.ZodObject<{
142
+ volume: z.ZodNumber;
143
+ is_muted: z.ZodBoolean;
144
+ has_fixed_volume: z.ZodBoolean;
145
+ min_volume: z.ZodNumber;
146
+ max_volume: z.ZodNumber;
147
+ volume_step: z.ZodNumber;
148
+ playback_state: z.ZodEnum<["playing", "paused", "idle", "buffering", "unknown"]>;
149
+ now_playing: z.ZodOptional<z.ZodObject<{
150
+ title: z.ZodOptional<z.ZodString>;
151
+ artist: z.ZodOptional<z.ZodString>;
152
+ album: z.ZodOptional<z.ZodString>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ title?: string | undefined;
155
+ artist?: string | undefined;
156
+ album?: string | undefined;
157
+ }, {
158
+ title?: string | undefined;
159
+ artist?: string | undefined;
160
+ album?: string | undefined;
161
+ }>>;
162
+ grouped_with_device_ids: z.ZodArray<z.ZodString, "many">;
163
+ supports_chime: z.ZodBoolean;
164
+ volume_reported_at: z.ZodOptional<z.ZodString>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ volume: number;
167
+ is_muted: boolean;
168
+ has_fixed_volume: boolean;
169
+ min_volume: number;
170
+ max_volume: number;
171
+ volume_step: number;
172
+ playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
173
+ grouped_with_device_ids: string[];
174
+ supports_chime: boolean;
175
+ now_playing?: {
176
+ title?: string | undefined;
177
+ artist?: string | undefined;
178
+ album?: string | undefined;
179
+ } | undefined;
180
+ volume_reported_at?: string | undefined;
181
+ }, {
182
+ volume: number;
183
+ is_muted: boolean;
184
+ has_fixed_volume: boolean;
185
+ min_volume: number;
186
+ max_volume: number;
187
+ volume_step: number;
188
+ playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
189
+ grouped_with_device_ids: string[];
190
+ supports_chime: boolean;
191
+ now_playing?: {
192
+ title?: string | undefined;
193
+ artist?: string | undefined;
194
+ album?: string | undefined;
195
+ } | undefined;
196
+ volume_reported_at?: string | undefined;
197
+ }>>;
139
198
  }, "strip", z.ZodTypeAny, {
140
199
  code_constraints?: ({
141
200
  constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits" | "cannot_contain_089" | "cannot_contain_0789" | "unique_first_four_digits" | "no_all_same_digits";
@@ -184,6 +243,23 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
184
243
  door_open?: boolean | undefined;
185
244
  auto_lock_enabled?: boolean | undefined;
186
245
  auto_lock_delay_seconds?: number | undefined;
246
+ speaker?: {
247
+ volume: number;
248
+ is_muted: boolean;
249
+ has_fixed_volume: boolean;
250
+ min_volume: number;
251
+ max_volume: number;
252
+ volume_step: number;
253
+ playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
254
+ grouped_with_device_ids: string[];
255
+ supports_chime: boolean;
256
+ now_playing?: {
257
+ title?: string | undefined;
258
+ artist?: string | undefined;
259
+ album?: string | undefined;
260
+ } | undefined;
261
+ volume_reported_at?: string | undefined;
262
+ } | undefined;
187
263
  }, {
188
264
  code_constraints?: ({
189
265
  constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits" | "cannot_contain_089" | "cannot_contain_0789" | "unique_first_four_digits" | "no_all_same_digits";
@@ -232,6 +308,23 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
232
308
  door_open?: boolean | undefined;
233
309
  auto_lock_enabled?: boolean | undefined;
234
310
  auto_lock_delay_seconds?: number | undefined;
311
+ speaker?: {
312
+ volume: number;
313
+ is_muted: boolean;
314
+ has_fixed_volume: boolean;
315
+ min_volume: number;
316
+ max_volume: number;
317
+ volume_step: number;
318
+ playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
319
+ grouped_with_device_ids: string[];
320
+ supports_chime: boolean;
321
+ now_playing?: {
322
+ title?: string | undefined;
323
+ artist?: string | undefined;
324
+ album?: string | undefined;
325
+ } | undefined;
326
+ volume_reported_at?: string | undefined;
327
+ } | undefined;
235
328
  }>, z.ZodObject<{
236
329
  temperature_fahrenheit: z.ZodOptional<z.ZodNumber>;
237
330
  temperature_celsius: z.ZodOptional<z.ZodNumber>;
@@ -874,3 +967,4 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
874
967
  max_thermostat_daily_program_periods_per_day?: number | undefined;
875
968
  }>>;
876
969
  export type { AccessCodeConstraint, TimeFrameOption } from './access-code.js';
970
+ export type { SpeakerPlaybackState } from './speaker.js';
@@ -1,10 +1,12 @@
1
1
  import * as z from 'zod/v3';
2
2
  import { access_code_capability_properties, access_code_code_constraint, time_frame_option, } from './access-code.js';
3
3
  import { lock_capability_properties } from './lock.js';
4
+ import { speaker_capability_properties, speaker_playback_state, } from './speaker.js';
4
5
  import { thermostat_capability_properties } from './thermostat.js';
5
- export { access_code_capability_properties, access_code_code_constraint, lock_capability_properties, thermostat_capability_properties, time_frame_option, };
6
+ export { access_code_capability_properties, access_code_code_constraint, lock_capability_properties, speaker_capability_properties, speaker_playback_state, thermostat_capability_properties, time_frame_option, };
6
7
  // todo: discriminate based on capability and remove intersection type
7
8
  export const capability_properties = z.intersection(access_code_capability_properties
8
9
  .partial()
9
- .merge(lock_capability_properties.partial()), thermostat_capability_properties);
10
+ .merge(lock_capability_properties.partial())
11
+ .merge(speaker_capability_properties), thermostat_capability_properties);
10
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,iBAAiB,GAClB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAA;AAElE,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,gCAAgC,EAChC,iBAAiB,GAClB,CAAA;AAED,sEAAsE;AACtE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,YAAY,CACjD,iCAAiC;KAC9B,OAAO,EAAE;KACT,KAAK,CAAC,0BAA0B,CAAC,OAAO,EAAE,CAAC,EAC9C,gCAAgC,CACjC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,iBAAiB,GAClB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,GACvB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAA;AAElE,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC7B,sBAAsB,EACtB,gCAAgC,EAChC,iBAAiB,GAClB,CAAA;AAED,sEAAsE;AACtE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,YAAY,CACjD,iCAAiC;KAC9B,OAAO,EAAE;KACT,KAAK,CAAC,0BAA0B,CAAC,OAAO,EAAE,CAAC;KAC3C,KAAK,CAAC,6BAA6B,CAAC,EACvC,gCAAgC,CACjC,CAAA"}
@@ -0,0 +1,98 @@
1
+ import * as z from 'zod/v3';
2
+ export declare const speaker_playback_state: z.ZodEnum<["playing", "paused", "idle", "buffering", "unknown"]>;
3
+ export type SpeakerPlaybackState = z.infer<typeof speaker_playback_state>;
4
+ export declare const speaker_capability_properties: z.ZodObject<{
5
+ speaker: z.ZodOptional<z.ZodObject<{
6
+ volume: z.ZodNumber;
7
+ is_muted: z.ZodBoolean;
8
+ has_fixed_volume: z.ZodBoolean;
9
+ min_volume: z.ZodNumber;
10
+ max_volume: z.ZodNumber;
11
+ volume_step: z.ZodNumber;
12
+ playback_state: z.ZodEnum<["playing", "paused", "idle", "buffering", "unknown"]>;
13
+ now_playing: z.ZodOptional<z.ZodObject<{
14
+ title: z.ZodOptional<z.ZodString>;
15
+ artist: z.ZodOptional<z.ZodString>;
16
+ album: z.ZodOptional<z.ZodString>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ title?: string | undefined;
19
+ artist?: string | undefined;
20
+ album?: string | undefined;
21
+ }, {
22
+ title?: string | undefined;
23
+ artist?: string | undefined;
24
+ album?: string | undefined;
25
+ }>>;
26
+ grouped_with_device_ids: z.ZodArray<z.ZodString, "many">;
27
+ supports_chime: z.ZodBoolean;
28
+ volume_reported_at: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ volume: number;
31
+ is_muted: boolean;
32
+ has_fixed_volume: boolean;
33
+ min_volume: number;
34
+ max_volume: number;
35
+ volume_step: number;
36
+ playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
37
+ grouped_with_device_ids: string[];
38
+ supports_chime: boolean;
39
+ now_playing?: {
40
+ title?: string | undefined;
41
+ artist?: string | undefined;
42
+ album?: string | undefined;
43
+ } | undefined;
44
+ volume_reported_at?: string | undefined;
45
+ }, {
46
+ volume: number;
47
+ is_muted: boolean;
48
+ has_fixed_volume: boolean;
49
+ min_volume: number;
50
+ max_volume: number;
51
+ volume_step: number;
52
+ playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
53
+ grouped_with_device_ids: string[];
54
+ supports_chime: boolean;
55
+ now_playing?: {
56
+ title?: string | undefined;
57
+ artist?: string | undefined;
58
+ album?: string | undefined;
59
+ } | undefined;
60
+ volume_reported_at?: string | undefined;
61
+ }>>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ speaker?: {
64
+ volume: number;
65
+ is_muted: boolean;
66
+ has_fixed_volume: boolean;
67
+ min_volume: number;
68
+ max_volume: number;
69
+ volume_step: number;
70
+ playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
71
+ grouped_with_device_ids: string[];
72
+ supports_chime: boolean;
73
+ now_playing?: {
74
+ title?: string | undefined;
75
+ artist?: string | undefined;
76
+ album?: string | undefined;
77
+ } | undefined;
78
+ volume_reported_at?: string | undefined;
79
+ } | undefined;
80
+ }, {
81
+ speaker?: {
82
+ volume: number;
83
+ is_muted: boolean;
84
+ has_fixed_volume: boolean;
85
+ min_volume: number;
86
+ max_volume: number;
87
+ volume_step: number;
88
+ playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
89
+ grouped_with_device_ids: string[];
90
+ supports_chime: boolean;
91
+ now_playing?: {
92
+ title?: string | undefined;
93
+ artist?: string | undefined;
94
+ album?: string | undefined;
95
+ } | undefined;
96
+ volume_reported_at?: string | undefined;
97
+ } | undefined;
98
+ }>;