@utdk/google 0.0.1-20260407.8-dev.646adf4
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/LICENSE +373 -0
- package/books/README.md +3 -0
- package/books/index.ts +22 -0
- package/books/metadata.ts +1681 -0
- package/books/openapi.json +8073 -0
- package/books/package.json +41 -0
- package/books/types.ts +308 -0
- package/drive/README.md +3 -0
- package/drive/index.ts +22 -0
- package/drive/metadata.ts +1962 -0
- package/drive/openapi.json +7902 -0
- package/drive/types.ts +302 -0
- package/fcm/README.md +3 -0
- package/fcm/index.ts +22 -0
- package/fcm/metadata.ts +36 -0
- package/fcm/openapi.json +678 -0
- package/fcm/types.ts +8 -0
- package/home/README.md +3 -0
- package/home/index.ts +22 -0
- package/home/metadata.ts +512 -0
- package/home/openapi.json +5429 -0
- package/home/types.ts +182 -0
- package/index.ts +14 -0
- package/package.json +35 -0
- package/youtube/README.md +3 -0
- package/youtube/index.ts +22 -0
- package/youtube/metadata.ts +2716 -0
- package/youtube/openapi.json +15600 -0
- package/youtube/types.ts +482 -0
package/home/types.ts
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
export type GoogleHomeClient = {
|
|
2
|
+
/**
|
|
3
|
+
* Accessibility
|
|
4
|
+
* Tags: Assistant
|
|
5
|
+
* Access as: google/home.accessibility(input)
|
|
6
|
+
*/
|
|
7
|
+
accessibility: (input: { endpoint_enabled: boolean; hotword_enabled: boolean }) => Promise<{ endpoint_enabled: boolean; hotword_enabled: boolean }>;
|
|
8
|
+
/**
|
|
9
|
+
* Alarm Volume
|
|
10
|
+
* Tags: Assistant
|
|
11
|
+
* Access as: google/home.alarmVolume(input)
|
|
12
|
+
*/
|
|
13
|
+
alarmVolume: (input: { volume: number }) => Promise<{ volume: number }>;
|
|
14
|
+
/**
|
|
15
|
+
* App Device ID
|
|
16
|
+
* Tags: Device Info
|
|
17
|
+
* Access as: google/home.appDeviceId(input)
|
|
18
|
+
*/
|
|
19
|
+
appDeviceId: (input: { app_id: string }) => Promise<{ app_device_id: string; certificate: string; signed_data: string }>;
|
|
20
|
+
/**
|
|
21
|
+
* Change Discoverability
|
|
22
|
+
* Tags: Bluetooth
|
|
23
|
+
* Access as: google/home.changeDiscoverability(input)
|
|
24
|
+
*/
|
|
25
|
+
changeDiscoverability: (input: { enable_discovery: boolean }) => Promise<{ [key: string]: unknown }>;
|
|
26
|
+
/**
|
|
27
|
+
* Check Ready Status
|
|
28
|
+
* Tags: Device Info
|
|
29
|
+
* Access as: google/home.checkReadyStatus(input)
|
|
30
|
+
*/
|
|
31
|
+
checkReadyStatus: (input: { play_ready_message: boolean; user_id: string }) => Promise<{ can_enroll: boolean; enrollment_state: number; error_code: number; ready: boolean; retryable: boolean }>;
|
|
32
|
+
/**
|
|
33
|
+
* Chromecast Icon
|
|
34
|
+
* Tags: Static Files
|
|
35
|
+
* Access as: google/home.chromecastIcon()
|
|
36
|
+
*/
|
|
37
|
+
chromecastIcon: () => Promise<unknown>;
|
|
38
|
+
/**
|
|
39
|
+
* Connect to Wi-Fi Network
|
|
40
|
+
* Tags: Wifi
|
|
41
|
+
* Access as: google/home.connecttoWiFiNetwork(input)
|
|
42
|
+
*/
|
|
43
|
+
connecttoWiFiNetwork: (input: { bssid: string; enc_passwd: string; signal_level: number; ssid: string; wpa_auth: number; wpa_cipher: number }) => Promise<unknown>;
|
|
44
|
+
/**
|
|
45
|
+
* Delete Alarms and Timers
|
|
46
|
+
* Tags: Assistant
|
|
47
|
+
* Access as: google/home.deleteAlarmsandTimers(input)
|
|
48
|
+
*/
|
|
49
|
+
deleteAlarmsandTimers: (input: { ids: (string)[] }) => Promise<{ success: boolean }>;
|
|
50
|
+
/**
|
|
51
|
+
* Do Not Disturb
|
|
52
|
+
* Tags: Assistant
|
|
53
|
+
* Access as: google/home.doNotDisturb(options)
|
|
54
|
+
*/
|
|
55
|
+
doNotDisturb: (options: { headers: { "Content-Type": string } }) => Promise<{ notifications_enabled: boolean }>;
|
|
56
|
+
/**
|
|
57
|
+
* Eureka Info
|
|
58
|
+
* Tags: Device Info
|
|
59
|
+
* Access as: google/home.eurekaInfo(input)
|
|
60
|
+
*/
|
|
61
|
+
eurekaInfo: (input: { params: string; options: string; nonce: number }) => Promise<{ aogh: { aogh_api_version: string }; audio: { digital: boolean }; build_info: { build_type: number; cast_build_revision: string; cast_control_version: number; preview_channel_state: number; release_track: string; system_build_number: string }; detail: { icon_list: ({ depth: number; height: number; mimetype: string; url: string; width: number })[]; locale: { display_string: string }; timezone: { display_string: string; offset: number } }; device_info: { "4k_blocked": number; capabilities: { aogh_supported: boolean; assistant_supported: boolean; audio_hdr_supported: boolean; audio_surround_mode_supported: boolean; ble_supported: boolean; bluetooth_audio_sink_supported: boolean; bluetooth_audio_source_supported: boolean; bluetooth_supported: boolean; cloudcast_supported: boolean; content_filters_supported: boolean; display_supported: boolean; fdr_supported: boolean; hdmi_prefer_50hz_supported: boolean; hdmi_prefer_high_fps_supported: boolean; hotspot_supported: boolean; https_setup_supported: boolean; input_management_supported: boolean; keep_hotspot_until_connected_supported: boolean; multi_user_supported: boolean; multichannel_group_supported: boolean; multizone_supported: boolean; night_mode_supported: boolean; night_mode_supported_v2: boolean; opencast_supported: boolean; preview_channel_supported: boolean; reboot_supported: boolean; remote_ducking_supported: boolean; separate_tts_volume_supported: boolean; setup_supported: boolean; sleep_mode_supported: boolean; stats_supported: boolean; system_sound_effects_supported: boolean; user_eq_supported: boolean; wifi_auto_save_supported: boolean; wifi_regulatory_domain_locked: boolean; wifi_supported: boolean }; cloud_device_id: string; factory_country_code: string; hotspot_bssid: string; local_authorization_token_hash: string; mac_address: string; manufacturer: string; model_name: string; product_name: string; public_key: string; ssdp_udn: string; uma_client_id: string; uptime: number; weave_device_id: string }; multizone: { audio_output_delay: number; audio_output_delay_hdmi: number; audio_output_delay_oem: number; aux_in_group: string; dynamic_groups: (string)[]; groups: (string)[]; multichannel_status: number }; name: string; net: { ethernet_connected: boolean; ip_address: string; online: boolean }; night_mode_params: { device_override_do_not_disturb: number; do_not_disturb: boolean; enabled: boolean; led_brightness: number; volume: number; windows: ({ days: (number)[]; length_hours: number; start_hour: number })[] }; opencast: { pin_code: string }; opt_in: { audio_hdr: boolean; audio_surround_mode: number; autoplay_on_signal: boolean; cloud_ipc: boolean; hdmi_prefer_50hz: boolean; hdmi_prefer_high_fps: boolean; managed_mode: boolean; opencast: boolean; preview_channel: boolean; remote_ducking: boolean; stats: boolean; ui_flipped: boolean; wpa3_support_enabled: boolean }; proxy: { mode: string }; settings: { closed_caption: { [key: string]: unknown }; control_notifications: number; country_code: string; locale: string; network_standby: number; system_sound_effects: boolean; time_format: number; timezone: string; wake_on_cast: number }; setup: { qr_ssid_suffix: string; setup_state: number; ssid_suffix: string; stats: { num_check_connectivity: number; num_connect_wifi: number; num_connected_wifi_not_saved: number; num_initial_eureka_info: number; num_obtain_ip: number }; tos_accepted: boolean }; sign: { certificate: string; intermediate_certs: (string)[]; nonce: string; signed_data: string }; user_eq: { high_shelf: { frequency: number; gain_db: number; quality: number }; low_shelf: { frequency: number; gain_db: number; quality: number }; max_peaking_eqs: number; peaking_eqs: (string)[] }; version: number; wifi: { bssid: string; has_changes: boolean; noise_level: number; signal_level: number; ssid: string; wpa_configured: boolean; wpa_id: number; wpa_state: number } }>;
|
|
62
|
+
/**
|
|
63
|
+
* Forget paired device
|
|
64
|
+
* Tags: Bluetooth
|
|
65
|
+
* Access as: google/home.forgetpaireddevice(input)
|
|
66
|
+
*/
|
|
67
|
+
forgetpaireddevice: (input: { bond: boolean; mac_address: string }) => Promise<{ [key: string]: unknown }>;
|
|
68
|
+
/**
|
|
69
|
+
* Forget Wi-Fi Network
|
|
70
|
+
* Tags: Wifi
|
|
71
|
+
* Access as: google/home.forgetWiFiNetwork(input)
|
|
72
|
+
*/
|
|
73
|
+
forgetWiFiNetwork: (input: { wpa_id: number }) => Promise<{ [key: string]: unknown }>;
|
|
74
|
+
/**
|
|
75
|
+
* Get Alarms and Timers
|
|
76
|
+
* Tags: Assistant
|
|
77
|
+
* Access as: google/home.getAlarmsandTimers()
|
|
78
|
+
*/
|
|
79
|
+
getAlarmsandTimers: () => Promise<{ alarm: ({ date_pattern: { day: number; month: number; year: number }; fire_time: number; id: string; status: number; time_pattern: { hour: number; minute: number; second: number } })[]; timer: ({ fire_time: number; id: string; original_duration: number; status: number })[] }>;
|
|
80
|
+
/**
|
|
81
|
+
* Get Paired Devices
|
|
82
|
+
* Tags: Bluetooth
|
|
83
|
+
* Access as: google/home.getPairedDevices()
|
|
84
|
+
*/
|
|
85
|
+
getPairedDevices: () => Promise<({ bond_date: number; device_class: number; device_type: number; last_connect_date: number; mac_address: string; name: string; rssi: number; service_uuids: (string)[] })[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Get Saved Networks
|
|
88
|
+
* Tags: Wifi
|
|
89
|
+
* Access as: google/home.getSavedNetworks()
|
|
90
|
+
*/
|
|
91
|
+
getSavedNetworks: () => Promise<({ ssid: string; wpa_auth: number; wpa_cipher: number; wpa_id: number })[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Get Scan Results
|
|
94
|
+
* Tags: Bluetooth
|
|
95
|
+
* Access as: google/home.getScanResults()
|
|
96
|
+
*/
|
|
97
|
+
getScanResults: () => Promise<({ device_class: number; device_type: number; expected_profiles: number; mac_address: string; name: string; rssi: number })[]>;
|
|
98
|
+
/**
|
|
99
|
+
* Get Wi-Fi Scan Results
|
|
100
|
+
* Tags: Wifi
|
|
101
|
+
* Access as: google/home.getWiFiScanResults()
|
|
102
|
+
*/
|
|
103
|
+
getWiFiScanResults: () => Promise<({ bssid: string; signal_level: number; ssid: string; wpa_auth: number; wpa_cipher: number; wpa_id: number })[]>;
|
|
104
|
+
/**
|
|
105
|
+
* Legal Notice
|
|
106
|
+
* Tags: Static Files
|
|
107
|
+
* Access as: google/home.legalNotice()
|
|
108
|
+
*/
|
|
109
|
+
legalNotice: () => Promise<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Locales
|
|
112
|
+
* Tags: Device Info
|
|
113
|
+
* Access as: google/home.locales()
|
|
114
|
+
*/
|
|
115
|
+
locales: () => Promise<({ display_string: string; locale: string })[]>;
|
|
116
|
+
/**
|
|
117
|
+
* Night Mode settings
|
|
118
|
+
* Tags: Device Settings
|
|
119
|
+
* Access as: google/home.nightModesettings(input)
|
|
120
|
+
*/
|
|
121
|
+
nightModesettings: (input: { demo_to_user: boolean; do_not_disturb: boolean; enabled: boolean; led_brightness: number; volume: number; windows: ({ days: (number)[]; length_hours: number; start_hour: number })[] }) => Promise<{ do_not_disturb: boolean; enabled: boolean; led_brightness: number; volume: number; windows: ({ days: (number)[]; length_hours: number; start_hour: number })[] }>;
|
|
122
|
+
/**
|
|
123
|
+
* Offer
|
|
124
|
+
* Tags: Device Info
|
|
125
|
+
* Access as: google/home.offer()
|
|
126
|
+
*/
|
|
127
|
+
offer: () => Promise<{ token: string }>;
|
|
128
|
+
/**
|
|
129
|
+
* Pair with Speaker
|
|
130
|
+
* Tags: Bluetooth
|
|
131
|
+
* Access as: google/home.pairwithSpeaker(input)
|
|
132
|
+
*/
|
|
133
|
+
pairwithSpeaker: (input: { connect: boolean; mac_address: string; profile: number }) => Promise<{ [key: string]: unknown }>;
|
|
134
|
+
/**
|
|
135
|
+
* Reboot and Factory Reset
|
|
136
|
+
* Tags: Device Settings
|
|
137
|
+
* Access as: google/home.rebootandFactoryReset(input)
|
|
138
|
+
*/
|
|
139
|
+
rebootandFactoryReset: (input: { params: string }) => Promise<{ [key: string]: unknown }>;
|
|
140
|
+
/**
|
|
141
|
+
* Scan for devices
|
|
142
|
+
* Tags: Bluetooth
|
|
143
|
+
* Access as: google/home.scanfordevices(input)
|
|
144
|
+
*/
|
|
145
|
+
scanfordevices: (input: { clear_results: boolean; enable: boolean; timeout: number }) => Promise<{ [key: string]: unknown }>;
|
|
146
|
+
/**
|
|
147
|
+
* Scan for Networks
|
|
148
|
+
* Tags: Wifi
|
|
149
|
+
* Access as: google/home.scanforNetworks()
|
|
150
|
+
*/
|
|
151
|
+
scanforNetworks: () => Promise<{ [key: string]: unknown }>;
|
|
152
|
+
/**
|
|
153
|
+
* Set Equalizer Values
|
|
154
|
+
* Tags: Assistant
|
|
155
|
+
* Access as: google/home.setEqualizerValues(input)
|
|
156
|
+
*/
|
|
157
|
+
setEqualizerValues: (input: { high_shelf: { gain_db: number }; low_shelf: { gain_db: number } }) => Promise<{ [key: string]: unknown }>;
|
|
158
|
+
/**
|
|
159
|
+
* Set Eureka Info
|
|
160
|
+
* Tags: Device Settings
|
|
161
|
+
* Access as: google/home.setEurekaInfo(input)
|
|
162
|
+
*/
|
|
163
|
+
setEurekaInfo: (input: { name: string; opt_in: { opencast: boolean; preview_channel: boolean; remote_ducking: boolean; stats: boolean }; settings: { control_notifications: number } }) => Promise<{ [key: string]: unknown }>;
|
|
164
|
+
/**
|
|
165
|
+
* Status
|
|
166
|
+
* Tags: Bluetooth
|
|
167
|
+
* Access as: google/home.status()
|
|
168
|
+
*/
|
|
169
|
+
status: () => Promise<{ audio_mode: number; connected_devices: ({ device: { bond_date: number; device_class: number; device_type: number; last_connect_date: number; mac_address: string; name: string; rssi: number; service_uuids: (string)[] }; enabled_profiles: number })[]; connecting_devices: (string)[]; discovery_enabled: boolean; remote_sink: { bond_date: number; device_class: number; device_type: number; last_connect_date: number; mac_address: string; name: string; rssi: number; service_uuids: (string)[] }; scanning_enabled: boolean }>;
|
|
170
|
+
/**
|
|
171
|
+
* Test Internet Download Speed
|
|
172
|
+
* Tags: Device Info
|
|
173
|
+
* Access as: google/home.testInternetDownloadSpeed(input)
|
|
174
|
+
*/
|
|
175
|
+
testInternetDownloadSpeed: (input: { url: string }) => Promise<{ bytes_received: number; response_code: number; time_for_data_fetch: number; time_for_http_response: number }>;
|
|
176
|
+
/**
|
|
177
|
+
* Timezones
|
|
178
|
+
* Tags: Device Info
|
|
179
|
+
* Access as: google/home.timezones()
|
|
180
|
+
*/
|
|
181
|
+
timezones: () => Promise<({ display_string: string; offset: number; timezone: string })[]>;
|
|
182
|
+
};
|
package/index.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./books/index.js";
|
|
2
|
+
export { default as books } from "./books/index.js";
|
|
3
|
+
|
|
4
|
+
export * from "./drive/index.js";
|
|
5
|
+
export { default as drive } from "./drive/index.js";
|
|
6
|
+
|
|
7
|
+
export * from "./fcm/index.js";
|
|
8
|
+
export { default as fcm } from "./fcm/index.js";
|
|
9
|
+
|
|
10
|
+
export * from "./home/index.js";
|
|
11
|
+
export { default as home } from "./home/index.js";
|
|
12
|
+
|
|
13
|
+
export * from "./youtube/index.js";
|
|
14
|
+
export { default as youtube } from "./youtube/index.js";
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@utdk/google",
|
|
3
|
+
"version": "0.0.1-20260407.8-dev.646adf4",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Generated UTDK provider clients for google.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"google",
|
|
8
|
+
"generated",
|
|
9
|
+
"openapi",
|
|
10
|
+
"utdk"
|
|
11
|
+
],
|
|
12
|
+
"utdk": {
|
|
13
|
+
"namespace": "google",
|
|
14
|
+
"generation": 8,
|
|
15
|
+
"generatedAt": "2026-04-07T02:25:39.564Z",
|
|
16
|
+
"providers": [
|
|
17
|
+
"google/books",
|
|
18
|
+
"google/drive",
|
|
19
|
+
"google/fcm",
|
|
20
|
+
"google/home",
|
|
21
|
+
"google/youtube"
|
|
22
|
+
],
|
|
23
|
+
"auth": [
|
|
24
|
+
{
|
|
25
|
+
"auth_type": "oauth2",
|
|
26
|
+
"flow": "authorization_code",
|
|
27
|
+
"client_id": "${GOOGLE_CLIENT_ID}",
|
|
28
|
+
"client_secret": "${GOOGLE_CLIENT_SECRET}",
|
|
29
|
+
"authorization_url": "https://accounts.google.com/o/oauth2/v2/auth",
|
|
30
|
+
"token_url": "https://oauth2.googleapis.com/token",
|
|
31
|
+
"scopes": []
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
package/youtube/index.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CreateClientOptions } from "../../client.js";
|
|
2
|
+
import { createClient, createLazyClient } from "../../client.js";
|
|
3
|
+
import type { GoogleYoutubeClient } from "./types.js";
|
|
4
|
+
import { toolMetadata } from "./metadata.js";
|
|
5
|
+
import openApiDocument from "./openapi.json" with { type: "json" };
|
|
6
|
+
|
|
7
|
+
export * from "./types.js";
|
|
8
|
+
|
|
9
|
+
export function createGoogleYoutubeClient(
|
|
10
|
+
options: Omit<CreateClientOptions, "name" | "openApiDocument" | "toolMetadata"> = {},
|
|
11
|
+
): Promise<GoogleYoutubeClient> {
|
|
12
|
+
return createClient<GoogleYoutubeClient>({
|
|
13
|
+
...options,
|
|
14
|
+
name: "google/youtube",
|
|
15
|
+
openApiDocument,
|
|
16
|
+
toolMetadata,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const defaultClient = createLazyClient(() => createGoogleYoutubeClient());
|
|
21
|
+
|
|
22
|
+
export default defaultClient;
|