@getanyapi/sdk 0.49.0 → 0.50.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/dist/index.d.cts CHANGED
@@ -56221,6 +56221,10 @@ interface YoutubeVideoTranscriptInput {
56221
56221
  * Range: minimum 1.
56222
56222
  */
56223
56223
  preferLatencyUnderMs?: number;
56224
+ /**
56225
+ * Only use sources that return these fields. The cheapest source returns the transcript as one block of text and no timings, so name any of these to be served by a source that carries timed segments instead.
56226
+ */
56227
+ requireFields?: ("durationSeconds" | "segments" | "startSeconds" | "text")[];
56224
56228
  /**
56225
56229
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
56226
56230
  */
@@ -56669,7 +56673,7 @@ declare class YoutubeNamespace {
56669
56673
  *
56670
56674
  * Fetch the transcript/captions of a YouTube video or Short by URL or ID.
56671
56675
  *
56672
- * Price: $0.011 per request.
56676
+ * Price: $0.0012 per request.
56673
56677
  *
56674
56678
  * @example
56675
56679
  * const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.d.ts CHANGED
@@ -56221,6 +56221,10 @@ interface YoutubeVideoTranscriptInput {
56221
56221
  * Range: minimum 1.
56222
56222
  */
56223
56223
  preferLatencyUnderMs?: number;
56224
+ /**
56225
+ * Only use sources that return these fields. The cheapest source returns the transcript as one block of text and no timings, so name any of these to be served by a source that carries timed segments instead.
56226
+ */
56227
+ requireFields?: ("durationSeconds" | "segments" | "startSeconds" | "text")[];
56224
56228
  /**
56225
56229
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
56226
56230
  */
@@ -56669,7 +56673,7 @@ declare class YoutubeNamespace {
56669
56673
  *
56670
56674
  * Fetch the transcript/captions of a YouTube video or Short by URL or ID.
56671
56675
  *
56672
- * Price: $0.011 per request.
56676
+ * Price: $0.0012 per request.
56673
56677
  *
56674
56678
  * @example
56675
56679
  * const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.js CHANGED
@@ -7900,7 +7900,7 @@ var YoutubeNamespace = class {
7900
7900
  *
7901
7901
  * Fetch the transcript/captions of a YouTube video or Short by URL or ID.
7902
7902
  *
7903
- * Price: $0.011 per request.
7903
+ * Price: $0.0012 per request.
7904
7904
  *
7905
7905
  * @example
7906
7906
  * const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });