@maxim_mazurok/gapi.client.texttospeech-v1beta1
Advanced tools
Comparing version 0.0.20221213 to 0.0.20221219
@@ -12,3 +12,3 @@ /* Type definitions for non-npm package Cloud Text-to-Speech API v1beta1 0.0 */ | ||
// Generated from: https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1 | ||
// Revision: 20221213 | ||
// Revision: 20221219 | ||
@@ -61,9 +61,7 @@ /// <reference types="gapi.client" /> | ||
} | ||
interface GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata { | ||
/** Time of the most recent processing update. */ | ||
lastUpdateTime?: string; | ||
/** The progress of the most recent processing update in percentage, ie. 70.0%. */ | ||
progressPercentage?: number; | ||
/** Time when the request was received. */ | ||
startTime?: string; | ||
interface ListOperationsResponse { | ||
/** The standard List next-page token. */ | ||
nextPageToken?: string; | ||
/** A list of operations that matches the specified filter in the request. */ | ||
operations?: Operation[]; | ||
} | ||
@@ -116,10 +114,2 @@ interface ListVoicesResponse { | ||
} | ||
interface SynthesizeLongAudioMetadata { | ||
/** Time of the most recent processing update. */ | ||
lastUpdateTime?: string; | ||
/** The progress of the most recent processing update in percentage, ie. 70.0%. */ | ||
progressPercentage?: number; | ||
/** Time when the request was received. */ | ||
startTime?: string; | ||
} | ||
interface SynthesizeLongAudioRequest { | ||
@@ -191,3 +181,70 @@ /** Required. The configuration of the synthesized audio. */ | ||
} | ||
interface VoicesResource { | ||
interface OperationsResource { | ||
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */ | ||
get(request?: { | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
/** JSONP */ | ||
callback?: string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
/** The name of the operation resource. */ | ||
name: string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
}): Request<Operation>; | ||
/** | ||
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services | ||
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as | ||
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must | ||
* ensure the name binding is the parent resource, without the operations collection id. | ||
*/ | ||
list(request?: { | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
/** JSONP */ | ||
callback?: string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
/** The standard list filter. */ | ||
filter?: string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
/** The name of the operation's parent resource. */ | ||
name: string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
/** The standard list page size. */ | ||
pageSize?: number; | ||
/** The standard list page token. */ | ||
pageToken?: string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
}): Request<ListOperationsResponse>; | ||
} | ||
interface LocationsResource { | ||
/** Synthesizes long form text asynchronously. */ | ||
@@ -209,3 +266,3 @@ synthesizeLongAudio(request: { | ||
oauth_token?: string; | ||
/** The resource states of the request in the form of projects/*/locations/*/voices/*. */ | ||
/** The resource states of the request in the form of `projects/*/locations/*/voices/*`. */ | ||
parent: string; | ||
@@ -238,3 +295,3 @@ /** Returns response with indentations and line breaks. */ | ||
oauth_token?: string; | ||
/** The resource states of the request in the form of projects/*/locations/*/voices/*. */ | ||
/** The resource states of the request in the form of `projects/*/locations/*/voices/*`. */ | ||
parent: string; | ||
@@ -251,6 +308,4 @@ /** Returns response with indentations and line breaks. */ | ||
body: SynthesizeLongAudioRequest): Request<Operation>; | ||
operations: OperationsResource; | ||
} | ||
interface LocationsResource { | ||
voices: VoicesResource; | ||
} | ||
interface ProjectsResource { | ||
@@ -257,0 +312,0 @@ locations: LocationsResource; |
{ | ||
"name": "@maxim_mazurok/gapi.client.texttospeech-v1beta1", | ||
"version": "0.0.20221213", | ||
"version": "0.0.20221219", | ||
"description": "TypeScript typings for Cloud Text-to-Speech API v1beta1", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
20
tests.ts
@@ -6,3 +6,3 @@ /* This is stub file for gapi.client.texttospeech-v1beta1 definition tests */ | ||
// Revision: 20221213 | ||
// Revision: 20221219 | ||
@@ -34,3 +34,3 @@ gapi.load('client', async () => { | ||
/** Synthesizes long form text asynchronously. */ | ||
await gapi.client.texttospeech.projects.locations.voices.synthesizeLongAudio({ | ||
await gapi.client.texttospeech.projects.locations.synthesizeLongAudio({ | ||
parent: "Test string", | ||
@@ -63,2 +63,18 @@ }, { | ||
}); | ||
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */ | ||
await gapi.client.texttospeech.projects.locations.operations.get({ | ||
name: "Test string", | ||
}); | ||
/** | ||
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to | ||
* override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as | ||
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must | ||
* ensure the name binding is the parent resource, without the operations collection id. | ||
*/ | ||
await gapi.client.texttospeech.projects.locations.operations.list({ | ||
filter: "Test string", | ||
name: "Test string", | ||
pageSize: 42, | ||
pageToken: "Test string", | ||
}); | ||
/** Synthesizes speech synchronously: receive results after all text input has been processed. */ | ||
@@ -65,0 +81,0 @@ await gapi.client.texttospeech.text.synthesize({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32163
525