@seamapi/types 1.1124.0 → 1.1126.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.
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +160 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/play-speaker-audio-clip.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-audio-clip.js +31 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-audio-clip.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-favorite.d.ts +87 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-favorite.js +37 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-favorite.js.map +1 -0
- package/lib/seam/connect/models/devices/capability-properties/speaker.js +1 -1
- package/lib/seam/connect/models/devices/capability-properties/speaker.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +12 -0
- package/lib/seam/connect/models/devices/device.d.ts +24 -0
- package/lib/seam/connect/models/devices/device.js +14 -2
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +16 -0
- package/lib/seam/connect/openapi.js +507 -9
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7518 -78
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -0
- package/src/lib/seam/connect/models/action-attempts/play-speaker-audio-clip.ts +46 -0
- package/src/lib/seam/connect/models/action-attempts/play-speaker-favorite.ts +54 -0
- package/src/lib/seam/connect/models/devices/capability-properties/speaker.ts +3 -1
- package/src/lib/seam/connect/models/devices/device.ts +18 -4
- package/src/lib/seam/connect/openapi.ts +546 -12
- package/src/lib/seam/connect/route-types.ts +8435 -63
|
@@ -5701,6 +5701,166 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
5701
5701
|
status: z.ZodLiteral<"pending">;
|
|
5702
5702
|
result: z.ZodNull;
|
|
5703
5703
|
error: z.ZodNull;
|
|
5704
|
+
} & {
|
|
5705
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_FAVORITE">;
|
|
5706
|
+
}, "strip", z.ZodTypeAny, {
|
|
5707
|
+
status: "pending";
|
|
5708
|
+
action_attempt_id: string;
|
|
5709
|
+
error: null;
|
|
5710
|
+
result: null;
|
|
5711
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
5712
|
+
}, {
|
|
5713
|
+
status: "pending";
|
|
5714
|
+
action_attempt_id: string;
|
|
5715
|
+
error: null;
|
|
5716
|
+
result: null;
|
|
5717
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
5718
|
+
}>, z.ZodObject<{
|
|
5719
|
+
action_attempt_id: z.ZodString;
|
|
5720
|
+
} & {
|
|
5721
|
+
status: z.ZodLiteral<"success">;
|
|
5722
|
+
error: z.ZodNull;
|
|
5723
|
+
} & {
|
|
5724
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_FAVORITE">;
|
|
5725
|
+
result: z.ZodObject<{
|
|
5726
|
+
affected_device_ids: z.ZodArray<z.ZodString, "many">;
|
|
5727
|
+
}, "strip", z.ZodTypeAny, {
|
|
5728
|
+
affected_device_ids: string[];
|
|
5729
|
+
}, {
|
|
5730
|
+
affected_device_ids: string[];
|
|
5731
|
+
}>;
|
|
5732
|
+
}, "strip", z.ZodTypeAny, {
|
|
5733
|
+
status: "success";
|
|
5734
|
+
action_attempt_id: string;
|
|
5735
|
+
error: null;
|
|
5736
|
+
result: {
|
|
5737
|
+
affected_device_ids: string[];
|
|
5738
|
+
};
|
|
5739
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
5740
|
+
}, {
|
|
5741
|
+
status: "success";
|
|
5742
|
+
action_attempt_id: string;
|
|
5743
|
+
error: null;
|
|
5744
|
+
result: {
|
|
5745
|
+
affected_device_ids: string[];
|
|
5746
|
+
};
|
|
5747
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
5748
|
+
}>, z.ZodObject<{
|
|
5749
|
+
action_attempt_id: z.ZodString;
|
|
5750
|
+
} & {
|
|
5751
|
+
status: z.ZodLiteral<"error">;
|
|
5752
|
+
result: z.ZodNull;
|
|
5753
|
+
} & {
|
|
5754
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_FAVORITE">;
|
|
5755
|
+
error: z.ZodObject<{
|
|
5756
|
+
type: z.ZodString;
|
|
5757
|
+
message: z.ZodString;
|
|
5758
|
+
}, "strip", z.ZodTypeAny, {
|
|
5759
|
+
message: string;
|
|
5760
|
+
type: string;
|
|
5761
|
+
}, {
|
|
5762
|
+
message: string;
|
|
5763
|
+
type: string;
|
|
5764
|
+
}>;
|
|
5765
|
+
}, "strip", z.ZodTypeAny, {
|
|
5766
|
+
status: "error";
|
|
5767
|
+
action_attempt_id: string;
|
|
5768
|
+
error: {
|
|
5769
|
+
message: string;
|
|
5770
|
+
type: string;
|
|
5771
|
+
};
|
|
5772
|
+
result: null;
|
|
5773
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
5774
|
+
}, {
|
|
5775
|
+
status: "error";
|
|
5776
|
+
action_attempt_id: string;
|
|
5777
|
+
error: {
|
|
5778
|
+
message: string;
|
|
5779
|
+
type: string;
|
|
5780
|
+
};
|
|
5781
|
+
result: null;
|
|
5782
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
5783
|
+
}>, z.ZodObject<{
|
|
5784
|
+
action_attempt_id: z.ZodString;
|
|
5785
|
+
} & {
|
|
5786
|
+
status: z.ZodLiteral<"pending">;
|
|
5787
|
+
result: z.ZodNull;
|
|
5788
|
+
error: z.ZodNull;
|
|
5789
|
+
} & {
|
|
5790
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_AUDIO_CLIP">;
|
|
5791
|
+
}, "strip", z.ZodTypeAny, {
|
|
5792
|
+
status: "pending";
|
|
5793
|
+
action_attempt_id: string;
|
|
5794
|
+
error: null;
|
|
5795
|
+
result: null;
|
|
5796
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
5797
|
+
}, {
|
|
5798
|
+
status: "pending";
|
|
5799
|
+
action_attempt_id: string;
|
|
5800
|
+
error: null;
|
|
5801
|
+
result: null;
|
|
5802
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
5803
|
+
}>, z.ZodObject<{
|
|
5804
|
+
action_attempt_id: z.ZodString;
|
|
5805
|
+
} & {
|
|
5806
|
+
status: z.ZodLiteral<"success">;
|
|
5807
|
+
error: z.ZodNull;
|
|
5808
|
+
} & {
|
|
5809
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_AUDIO_CLIP">;
|
|
5810
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5811
|
+
}, "strip", z.ZodTypeAny, {
|
|
5812
|
+
status: "success";
|
|
5813
|
+
action_attempt_id: string;
|
|
5814
|
+
error: null;
|
|
5815
|
+
result: {};
|
|
5816
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
5817
|
+
}, {
|
|
5818
|
+
status: "success";
|
|
5819
|
+
action_attempt_id: string;
|
|
5820
|
+
error: null;
|
|
5821
|
+
result: {};
|
|
5822
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
5823
|
+
}>, z.ZodObject<{
|
|
5824
|
+
action_attempt_id: z.ZodString;
|
|
5825
|
+
} & {
|
|
5826
|
+
status: z.ZodLiteral<"error">;
|
|
5827
|
+
result: z.ZodNull;
|
|
5828
|
+
} & {
|
|
5829
|
+
action_type: z.ZodLiteral<"PLAY_SPEAKER_AUDIO_CLIP">;
|
|
5830
|
+
error: z.ZodObject<{
|
|
5831
|
+
type: z.ZodString;
|
|
5832
|
+
message: z.ZodString;
|
|
5833
|
+
}, "strip", z.ZodTypeAny, {
|
|
5834
|
+
message: string;
|
|
5835
|
+
type: string;
|
|
5836
|
+
}, {
|
|
5837
|
+
message: string;
|
|
5838
|
+
type: string;
|
|
5839
|
+
}>;
|
|
5840
|
+
}, "strip", z.ZodTypeAny, {
|
|
5841
|
+
status: "error";
|
|
5842
|
+
action_attempt_id: string;
|
|
5843
|
+
error: {
|
|
5844
|
+
message: string;
|
|
5845
|
+
type: string;
|
|
5846
|
+
};
|
|
5847
|
+
result: null;
|
|
5848
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
5849
|
+
}, {
|
|
5850
|
+
status: "error";
|
|
5851
|
+
action_attempt_id: string;
|
|
5852
|
+
error: {
|
|
5853
|
+
message: string;
|
|
5854
|
+
type: string;
|
|
5855
|
+
};
|
|
5856
|
+
result: null;
|
|
5857
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
5858
|
+
}>, z.ZodObject<{
|
|
5859
|
+
action_attempt_id: z.ZodString;
|
|
5860
|
+
} & {
|
|
5861
|
+
status: z.ZodLiteral<"pending">;
|
|
5862
|
+
result: z.ZodNull;
|
|
5863
|
+
error: z.ZodNull;
|
|
5704
5864
|
} & {
|
|
5705
5865
|
action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
|
|
5706
5866
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8,7 +8,9 @@ import { deprecated_action_attempts } from './deprecated.js';
|
|
|
8
8
|
import { encode_credential_action_attempt } from './encode-credential.js';
|
|
9
9
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
10
10
|
import { pause_speaker_playback_action_attempt } from './pause-speaker-playback.js';
|
|
11
|
+
import { play_speaker_audio_clip_action_attempt } from './play-speaker-audio-clip.js';
|
|
11
12
|
import { play_speaker_chime_action_attempt } from './play-speaker-chime.js';
|
|
13
|
+
import { play_speaker_favorite_action_attempt } from './play-speaker-favorite.js';
|
|
12
14
|
import { push_thermostat_programs_action_attempt } from './push-thermostat-programs.js';
|
|
13
15
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
|
|
14
16
|
import { resume_speaker_playback_action_attempt } from './resume-speaker-playback.js';
|
|
@@ -43,6 +45,8 @@ export const action_attempt = z.union([
|
|
|
43
45
|
...pause_speaker_playback_action_attempt.options,
|
|
44
46
|
...resume_speaker_playback_action_attempt.options,
|
|
45
47
|
...play_speaker_chime_action_attempt.options,
|
|
48
|
+
...play_speaker_favorite_action_attempt.options,
|
|
49
|
+
...play_speaker_audio_clip_action_attempt.options,
|
|
46
50
|
...deprecated_action_attempts,
|
|
47
51
|
]).describe(`
|
|
48
52
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,6CAA6C,EAAE,MAAM,qCAAqC,CAAA;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,qCAAqC,EAAE,MAAM,6BAA6B,CAAA;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,6CAA6C,CAAC,OAAO;IACxD,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,+BAA+B,CAAC,OAAO;IAC1C,GAAG,qCAAqC,CAAC,OAAO;IAChD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,6CAA6C,EAAE,MAAM,qCAAqC,CAAA;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,qCAAqC,EAAE,MAAM,6BAA6B,CAAA;AACnF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,oCAAoC,EAAE,MAAM,4BAA4B,CAAA;AACjF,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,6CAA6C,CAAC,OAAO;IACxD,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,+BAA+B,CAAC,OAAO;IAC1C,GAAG,qCAAqC,CAAC,OAAO;IAChD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,oCAAoC,CAAC,OAAO;IAC/C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
export declare const play_speaker_audio_clip_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<"PLAY_SPEAKER_AUDIO_CLIP">;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
status: "pending";
|
|
12
|
+
action_attempt_id: string;
|
|
13
|
+
error: null;
|
|
14
|
+
result: null;
|
|
15
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
16
|
+
}, {
|
|
17
|
+
status: "pending";
|
|
18
|
+
action_attempt_id: string;
|
|
19
|
+
error: null;
|
|
20
|
+
result: null;
|
|
21
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
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<"PLAY_SPEAKER_AUDIO_CLIP">;
|
|
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: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
36
|
+
}, {
|
|
37
|
+
status: "success";
|
|
38
|
+
action_attempt_id: string;
|
|
39
|
+
error: null;
|
|
40
|
+
result: {};
|
|
41
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
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<"PLAY_SPEAKER_AUDIO_CLIP">;
|
|
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: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
68
|
+
}, {
|
|
69
|
+
status: "error";
|
|
70
|
+
action_attempt_id: string;
|
|
71
|
+
error: {
|
|
72
|
+
message: string;
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
result: null;
|
|
76
|
+
action_type: "PLAY_SPEAKER_AUDIO_CLIP";
|
|
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('PLAY_SPEAKER_AUDIO_CLIP')
|
|
5
|
+
.describe('Action attempt to track the status of playing an audio clip 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 play_speaker_audio_clip_action_attempt = z.discriminatedUnion('status', [
|
|
16
|
+
common_pending_action_attempt
|
|
17
|
+
.extend({
|
|
18
|
+
action_type,
|
|
19
|
+
})
|
|
20
|
+
.describe('Playing an audio clip on the speaker is pending.'),
|
|
21
|
+
common_succeeded_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
result,
|
|
25
|
+
})
|
|
26
|
+
.describe('Playing an audio clip on the speaker succeeded.'),
|
|
27
|
+
common_failed_action_attempt
|
|
28
|
+
.extend({ action_type, error })
|
|
29
|
+
.describe('Playing an audio clip on the speaker failed.'),
|
|
30
|
+
]);
|
|
31
|
+
//# sourceMappingURL=play-speaker-audio-clip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"play-speaker-audio-clip.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/play-speaker-audio-clip.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,2EAA2E,CAC5E,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,sCAAsC,GAAG,CAAC,CAAC,kBAAkB,CACxE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,8CAA8C,CAAC;CAC5D,CACF,CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
export declare const play_speaker_favorite_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<"PLAY_SPEAKER_FAVORITE">;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
status: "pending";
|
|
12
|
+
action_attempt_id: string;
|
|
13
|
+
error: null;
|
|
14
|
+
result: null;
|
|
15
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
16
|
+
}, {
|
|
17
|
+
status: "pending";
|
|
18
|
+
action_attempt_id: string;
|
|
19
|
+
error: null;
|
|
20
|
+
result: null;
|
|
21
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
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<"PLAY_SPEAKER_FAVORITE">;
|
|
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: "PLAY_SPEAKER_FAVORITE";
|
|
44
|
+
}, {
|
|
45
|
+
status: "success";
|
|
46
|
+
action_attempt_id: string;
|
|
47
|
+
error: null;
|
|
48
|
+
result: {
|
|
49
|
+
affected_device_ids: string[];
|
|
50
|
+
};
|
|
51
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
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<"PLAY_SPEAKER_FAVORITE">;
|
|
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: "PLAY_SPEAKER_FAVORITE";
|
|
78
|
+
}, {
|
|
79
|
+
status: "error";
|
|
80
|
+
action_attempt_id: string;
|
|
81
|
+
error: {
|
|
82
|
+
message: string;
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
result: null;
|
|
86
|
+
action_type: "PLAY_SPEAKER_FAVORITE";
|
|
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('PLAY_SPEAKER_FAVORITE')
|
|
5
|
+
.describe('Action attempt to track the status of playing a favorite 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 now playing the favorite, including speakers grouped with the requested speaker.'),
|
|
19
|
+
})
|
|
20
|
+
.describe('Result of the action.');
|
|
21
|
+
export const play_speaker_favorite_action_attempt = z.discriminatedUnion('status', [
|
|
22
|
+
common_pending_action_attempt
|
|
23
|
+
.extend({
|
|
24
|
+
action_type,
|
|
25
|
+
})
|
|
26
|
+
.describe('Playing a favorite on the speaker is pending.'),
|
|
27
|
+
common_succeeded_action_attempt
|
|
28
|
+
.extend({
|
|
29
|
+
action_type,
|
|
30
|
+
result,
|
|
31
|
+
})
|
|
32
|
+
.describe('Playing a favorite on the speaker succeeded.'),
|
|
33
|
+
common_failed_action_attempt
|
|
34
|
+
.extend({ action_type, error })
|
|
35
|
+
.describe('Playing a favorite on the speaker failed.'),
|
|
36
|
+
]);
|
|
37
|
+
//# sourceMappingURL=play-speaker-favorite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"play-speaker-favorite.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/play-speaker-favorite.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,uBAAuB,CAAC;KAChC,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;KACb,MAAM,CAAC;IACN,mBAAmB,EAAE,CAAC;SACnB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,sGAAsG,CACvG;CACJ,CAAC;KACD,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAEpC,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,kBAAkB,CACtE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,8CAA8C,CAAC;IAC3D,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,2CAA2C,CAAC;CACzD,CACF,CAAA"}
|
|
@@ -44,7 +44,7 @@ export const speaker_capability_properties = z.object({
|
|
|
44
44
|
.describe('IDs of the other speakers that are currently grouped with this speaker. Pausing or resuming playback on a speaker also affects the speakers in its group.'),
|
|
45
45
|
supports_chime: z
|
|
46
46
|
.boolean()
|
|
47
|
-
.describe('Indicates whether the speaker can play a chime.'),
|
|
47
|
+
.describe('Indicates whether the speaker can play a chime or an audio clip.'),
|
|
48
48
|
volume_reported_at: z
|
|
49
49
|
.string()
|
|
50
50
|
.datetime()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speaker.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/speaker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;KAC3D,QAAQ,CAAC,gCAAgC,CAAC,CAAA;AAI7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,gKAAgK,CACjK;QACH,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QACzE,gBAAgB,EAAE,CAAC;aAChB,OAAO,EAAE;aACT,QAAQ,CACP,mNAAmN,CACpN;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CAAC,iDAAiD,CAAC;QAC9D,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CACP,8IAA8I,CAC/I;QACH,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,QAAQ,CACP,sEAAsE,CACvE;QACH,cAAc,EAAE,sBAAsB;QACtC,WAAW,EAAE,CAAC;aACX,MAAM,CAAC;YACN,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CAAC,iDAAiD,CAAC;YAC9D,MAAM,EAAE,CAAC;iBACN,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CAAC,kDAAkD,CAAC;YAC/D,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CAAC,iDAAiD,CAAC;SAC/D,CAAC;aACD,QAAQ,EAAE;aACV,QAAQ,CAAC,mDAAmD,CAAC;QAChE,uBAAuB,EAAE,CAAC;aACvB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;aACxB,QAAQ,CACP,2JAA2J,CAC5J;QACH,cAAc,EAAE,CAAC;aACd,OAAO,EAAE;aACT,QAAQ,
|
|
1
|
+
{"version":3,"file":"speaker.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/speaker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;KAC3D,QAAQ,CAAC,gCAAgC,CAAC,CAAA;AAI7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,gKAAgK,CACjK;QACH,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QACzE,gBAAgB,EAAE,CAAC;aAChB,OAAO,EAAE;aACT,QAAQ,CACP,mNAAmN,CACpN;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CAAC,iDAAiD,CAAC;QAC9D,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CACP,8IAA8I,CAC/I;QACH,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,QAAQ,CACP,sEAAsE,CACvE;QACH,cAAc,EAAE,sBAAsB;QACtC,WAAW,EAAE,CAAC;aACX,MAAM,CAAC;YACN,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CAAC,iDAAiD,CAAC;YAC9D,MAAM,EAAE,CAAC;iBACN,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CAAC,kDAAkD,CAAC;YAC/D,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CAAC,iDAAiD,CAAC;SAC/D,CAAC;aACD,QAAQ,EAAE;aACV,QAAQ,CAAC,mDAAmD,CAAC;QAChE,uBAAuB,EAAE,CAAC;aACvB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;aACxB,QAAQ,CACP,2JAA2J,CAC5J;QACH,cAAc,EAAE,CAAC;aACd,OAAO,EAAE;aACT,QAAQ,CACP,kEAAkE,CACnE;QACH,kBAAkB,EAAE,CAAC;aAClB,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,EAAE;aACV,QAAQ,CACP,uEAAuE,CACxE;KACJ,CAAC;SACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;;WAKd,CAAC;CACX,CAAC,CAAA"}
|
|
@@ -120,8 +120,12 @@ export declare const device_provider: z.ZodObject<{
|
|
|
120
120
|
can_stream_live_video: z.ZodOptional<z.ZodBoolean>;
|
|
121
121
|
can_set_speaker_volume: z.ZodOptional<z.ZodBoolean>;
|
|
122
122
|
can_mute_speaker: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
can_unmute_speaker: z.ZodOptional<z.ZodBoolean>;
|
|
123
124
|
can_pause_speaker_playback: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
can_resume_speaker_playback: z.ZodOptional<z.ZodBoolean>;
|
|
124
126
|
can_play_speaker_chime: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
can_play_speaker_favorite: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
can_play_speaker_audio_clip: z.ZodOptional<z.ZodBoolean>;
|
|
125
129
|
}, "strip", z.ZodTypeAny, {
|
|
126
130
|
display_name: string;
|
|
127
131
|
image_url: string;
|
|
@@ -151,8 +155,12 @@ export declare const device_provider: z.ZodObject<{
|
|
|
151
155
|
can_stream_live_video?: boolean | undefined;
|
|
152
156
|
can_set_speaker_volume?: boolean | undefined;
|
|
153
157
|
can_mute_speaker?: boolean | undefined;
|
|
158
|
+
can_unmute_speaker?: boolean | undefined;
|
|
154
159
|
can_pause_speaker_playback?: boolean | undefined;
|
|
160
|
+
can_resume_speaker_playback?: boolean | undefined;
|
|
155
161
|
can_play_speaker_chime?: boolean | undefined;
|
|
162
|
+
can_play_speaker_favorite?: boolean | undefined;
|
|
163
|
+
can_play_speaker_audio_clip?: boolean | undefined;
|
|
156
164
|
}, {
|
|
157
165
|
display_name: string;
|
|
158
166
|
image_url: string;
|
|
@@ -182,8 +190,12 @@ export declare const device_provider: z.ZodObject<{
|
|
|
182
190
|
can_stream_live_video?: boolean | undefined;
|
|
183
191
|
can_set_speaker_volume?: boolean | undefined;
|
|
184
192
|
can_mute_speaker?: boolean | undefined;
|
|
193
|
+
can_unmute_speaker?: boolean | undefined;
|
|
185
194
|
can_pause_speaker_playback?: boolean | undefined;
|
|
195
|
+
can_resume_speaker_playback?: boolean | undefined;
|
|
186
196
|
can_play_speaker_chime?: boolean | undefined;
|
|
197
|
+
can_play_speaker_favorite?: boolean | undefined;
|
|
198
|
+
can_play_speaker_audio_clip?: boolean | undefined;
|
|
187
199
|
}>;
|
|
188
200
|
export type DeviceProvider = z.infer<typeof device_provider>;
|
|
189
201
|
export declare const PROVIDER_CATEGORY_CAPABILITY_MAP: Record<ProviderCategory, ProviderCapability[]>;
|
|
@@ -24,8 +24,12 @@ export declare const device_capability_flags: z.ZodObject<{
|
|
|
24
24
|
can_stream_live_video: z.ZodOptional<z.ZodBoolean>;
|
|
25
25
|
can_set_speaker_volume: z.ZodOptional<z.ZodBoolean>;
|
|
26
26
|
can_mute_speaker: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
can_unmute_speaker: z.ZodOptional<z.ZodBoolean>;
|
|
27
28
|
can_pause_speaker_playback: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
can_resume_speaker_playback: z.ZodOptional<z.ZodBoolean>;
|
|
28
30
|
can_play_speaker_chime: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
can_play_speaker_favorite: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
can_play_speaker_audio_clip: z.ZodOptional<z.ZodBoolean>;
|
|
29
33
|
}, "strip", z.ZodTypeAny, {
|
|
30
34
|
can_remotely_unlock?: boolean | undefined;
|
|
31
35
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -51,8 +55,12 @@ export declare const device_capability_flags: z.ZodObject<{
|
|
|
51
55
|
can_stream_live_video?: boolean | undefined;
|
|
52
56
|
can_set_speaker_volume?: boolean | undefined;
|
|
53
57
|
can_mute_speaker?: boolean | undefined;
|
|
58
|
+
can_unmute_speaker?: boolean | undefined;
|
|
54
59
|
can_pause_speaker_playback?: boolean | undefined;
|
|
60
|
+
can_resume_speaker_playback?: boolean | undefined;
|
|
55
61
|
can_play_speaker_chime?: boolean | undefined;
|
|
62
|
+
can_play_speaker_favorite?: boolean | undefined;
|
|
63
|
+
can_play_speaker_audio_clip?: boolean | undefined;
|
|
56
64
|
}, {
|
|
57
65
|
can_remotely_unlock?: boolean | undefined;
|
|
58
66
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -78,8 +86,12 @@ export declare const device_capability_flags: z.ZodObject<{
|
|
|
78
86
|
can_stream_live_video?: boolean | undefined;
|
|
79
87
|
can_set_speaker_volume?: boolean | undefined;
|
|
80
88
|
can_mute_speaker?: boolean | undefined;
|
|
89
|
+
can_unmute_speaker?: boolean | undefined;
|
|
81
90
|
can_pause_speaker_playback?: boolean | undefined;
|
|
91
|
+
can_resume_speaker_playback?: boolean | undefined;
|
|
82
92
|
can_play_speaker_chime?: boolean | undefined;
|
|
93
|
+
can_play_speaker_favorite?: boolean | undefined;
|
|
94
|
+
can_play_speaker_audio_clip?: boolean | undefined;
|
|
83
95
|
}>;
|
|
84
96
|
export declare const battery_status: z.ZodEnum<["critical", "low", "good", "full"]>;
|
|
85
97
|
export type BatteryStatus = z.infer<typeof battery_status>;
|
|
@@ -6057,8 +6069,12 @@ export declare const device: z.ZodObject<{
|
|
|
6057
6069
|
can_stream_live_video: z.ZodOptional<z.ZodBoolean>;
|
|
6058
6070
|
can_set_speaker_volume: z.ZodOptional<z.ZodBoolean>;
|
|
6059
6071
|
can_mute_speaker: z.ZodOptional<z.ZodBoolean>;
|
|
6072
|
+
can_unmute_speaker: z.ZodOptional<z.ZodBoolean>;
|
|
6060
6073
|
can_pause_speaker_playback: z.ZodOptional<z.ZodBoolean>;
|
|
6074
|
+
can_resume_speaker_playback: z.ZodOptional<z.ZodBoolean>;
|
|
6061
6075
|
can_play_speaker_chime: z.ZodOptional<z.ZodBoolean>;
|
|
6076
|
+
can_play_speaker_favorite: z.ZodOptional<z.ZodBoolean>;
|
|
6077
|
+
can_play_speaker_audio_clip: z.ZodOptional<z.ZodBoolean>;
|
|
6062
6078
|
}, "strip", z.ZodTypeAny, {
|
|
6063
6079
|
display_name: string;
|
|
6064
6080
|
device_id: string;
|
|
@@ -6908,8 +6924,12 @@ export declare const device: z.ZodObject<{
|
|
|
6908
6924
|
can_stream_live_video?: boolean | undefined;
|
|
6909
6925
|
can_set_speaker_volume?: boolean | undefined;
|
|
6910
6926
|
can_mute_speaker?: boolean | undefined;
|
|
6927
|
+
can_unmute_speaker?: boolean | undefined;
|
|
6911
6928
|
can_pause_speaker_playback?: boolean | undefined;
|
|
6929
|
+
can_resume_speaker_playback?: boolean | undefined;
|
|
6912
6930
|
can_play_speaker_chime?: boolean | undefined;
|
|
6931
|
+
can_play_speaker_favorite?: boolean | undefined;
|
|
6932
|
+
can_play_speaker_audio_clip?: boolean | undefined;
|
|
6913
6933
|
nickname?: string | undefined;
|
|
6914
6934
|
location?: {
|
|
6915
6935
|
time_zone?: string | undefined;
|
|
@@ -7777,8 +7797,12 @@ export declare const device: z.ZodObject<{
|
|
|
7777
7797
|
can_stream_live_video?: boolean | undefined;
|
|
7778
7798
|
can_set_speaker_volume?: boolean | undefined;
|
|
7779
7799
|
can_mute_speaker?: boolean | undefined;
|
|
7800
|
+
can_unmute_speaker?: boolean | undefined;
|
|
7780
7801
|
can_pause_speaker_playback?: boolean | undefined;
|
|
7802
|
+
can_resume_speaker_playback?: boolean | undefined;
|
|
7781
7803
|
can_play_speaker_chime?: boolean | undefined;
|
|
7804
|
+
can_play_speaker_favorite?: boolean | undefined;
|
|
7805
|
+
can_play_speaker_audio_clip?: boolean | undefined;
|
|
7782
7806
|
nickname?: string | undefined;
|
|
7783
7807
|
location?: {
|
|
7784
7808
|
time_zone?: string | undefined;
|
|
@@ -80,13 +80,25 @@ export const device_capability_flags = z
|
|
|
80
80
|
.describe('Indicates whether the speaker supports setting its volume.'),
|
|
81
81
|
can_mute_speaker: z
|
|
82
82
|
.boolean()
|
|
83
|
-
.describe('Indicates whether the speaker supports muting
|
|
83
|
+
.describe('Indicates whether the speaker supports muting.'),
|
|
84
|
+
can_unmute_speaker: z
|
|
85
|
+
.boolean()
|
|
86
|
+
.describe('Indicates whether the speaker supports unmuting.'),
|
|
84
87
|
can_pause_speaker_playback: z
|
|
85
88
|
.boolean()
|
|
86
|
-
.describe('Indicates whether the speaker supports pausing
|
|
89
|
+
.describe('Indicates whether the speaker supports pausing playback.'),
|
|
90
|
+
can_resume_speaker_playback: z
|
|
91
|
+
.boolean()
|
|
92
|
+
.describe('Indicates whether the speaker supports resuming playback.'),
|
|
87
93
|
can_play_speaker_chime: z
|
|
88
94
|
.boolean()
|
|
89
95
|
.describe('Indicates whether the speaker supports playing a chime.'),
|
|
96
|
+
can_play_speaker_favorite: z
|
|
97
|
+
.boolean()
|
|
98
|
+
.describe("Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations."),
|
|
99
|
+
can_play_speaker_audio_clip: z
|
|
100
|
+
.boolean()
|
|
101
|
+
.describe('Indicates whether the speaker supports playing an audio clip from a URL.'),
|
|
90
102
|
})
|
|
91
103
|
.partial();
|
|
92
104
|
export const battery_status = z.enum(['critical', 'low', 'good', 'full'])
|