@maxim_mazurok/gapi.client.factchecktools-v1alpha1
Advanced tools
Comparing version 0.0.20240324 to 0.0.20240326
@@ -12,3 +12,3 @@ /* Type definitions for non-npm package Fact Check Tools API v1alpha1 0.0 */ | ||
// Generated from: https://factchecktools.googleapis.com/$discovery/rest?version=v1alpha1 | ||
// Revision: 20240324 | ||
// Revision: 20240326 | ||
@@ -118,2 +118,12 @@ /// <reference types="gapi.client" /> | ||
} | ||
interface GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse { | ||
/** The next pagination token in the Search response. It should be used as the `page_token` for the following request. An empty value means no more results. */ | ||
nextPageToken?: string; | ||
/** The list of claims and all of their associated information. */ | ||
results?: GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult[]; | ||
} | ||
interface GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult { | ||
/** A claim which matched the query. */ | ||
claim?: GoogleFactcheckingFactchecktoolsV1alpha1Claim; | ||
} | ||
interface GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse { | ||
@@ -139,2 +149,37 @@ /** The list of claims and all of their associated information. */ | ||
interface ClaimsResource { | ||
/** Search through fact-checked claims using an image as the query. */ | ||
imageSearch(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; | ||
/** Required. The URI of the source image. This must be a publicly-accessible image HTTP/HTTPS URL. When fetching images from HTTP/HTTPS URLs, Google cannot guarantee that the request will be completed. Your request may fail if the specified host denies the request (e.g. due to request throttling or DOS prevention), or if Google throttles requests to the site for abuse prevention. You should not depend on externally-hosted images for production applications. */ | ||
imageUri?: 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; | ||
/** Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to restrict results by language, though we do not currently consider the region. */ | ||
languageCode?: string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
/** Optional. An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if `page_token` is unset. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result. */ | ||
offset?: number; | ||
/** Optional. The pagination size. We will return up to that many results. Defaults to 10 if not set. */ | ||
pageSize?: number; | ||
/** Optional. The pagination token. You may provide the `next_page_token` returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request. */ | ||
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<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse>; | ||
/** Search through fact-checked claims. */ | ||
@@ -141,0 +186,0 @@ search(request?: { |
{ | ||
"name": "@maxim_mazurok/gapi.client.factchecktools-v1alpha1", | ||
"version": "0.0.20240324", | ||
"version": "0.0.20240326", | ||
"description": "TypeScript typings for Fact Check Tools API v1alpha1", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -72,2 +72,7 @@ # TypeScript typings for Fact Check Tools API v1alpha1 | ||
/* | ||
Search through fact-checked claims using an image as the query. | ||
*/ | ||
await gapi.client.factchecktools.claims.imageSearch({}); | ||
/* | ||
Search through fact-checked claims. | ||
@@ -74,0 +79,0 @@ */ |
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
29335
426
106