Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CheckResponse

import type { CheckResponse } from "https://googleapis.deno.dev/v1/digitalassetlinks:v1.ts";

Response message for the CheckAssetLinks call.

interface CheckResponse {
debugString?: string;
errorCode?:
| "ERROR_CODE_UNSPECIFIED"
| "ERROR_CODE_INVALID_QUERY"
| "ERROR_CODE_FETCH_ERROR"
| "ERROR_CODE_FAILED_SSL_VALIDATION"
| "ERROR_CODE_REDIRECT"
| "ERROR_CODE_TOO_LARGE"
| "ERROR_CODE_MALFORMED_HTTP_RESPONSE"
| "ERROR_CODE_WRONG_CONTENT_TYPE"
| "ERROR_CODE_MALFORMED_CONTENT"
| "ERROR_CODE_SECURE_ASSET_INCLUDES_INSECURE"
| "ERROR_CODE_FETCH_BUDGET_EXHAUSTED"[];
linked?: boolean;
maxAge?: number;
}

§Properties

§
debugString?: string
[src]

Human-readable message containing information intended to help end users understand, reproduce and debug the result. The message will be in English and we are currently not planning to offer any translations. Please note that no guarantees are made about the contents or format of this string. Any aspect of it may be subject to change without notice. You should not attempt to programmatically parse this data. For programmatic access, use the error_code field below.

§
errorCode?: "ERROR_CODE_UNSPECIFIED" | "ERROR_CODE_INVALID_QUERY" | "ERROR_CODE_FETCH_ERROR" | "ERROR_CODE_FAILED_SSL_VALIDATION" | "ERROR_CODE_REDIRECT" | "ERROR_CODE_TOO_LARGE" | "ERROR_CODE_MALFORMED_HTTP_RESPONSE" | "ERROR_CODE_WRONG_CONTENT_TYPE" | "ERROR_CODE_MALFORMED_CONTENT" | "ERROR_CODE_SECURE_ASSET_INCLUDES_INSECURE" | "ERROR_CODE_FETCH_BUDGET_EXHAUSTED"[]
[src]

Error codes that describe the result of the Check operation.

§
linked?: boolean
[src]

Set to true if the assets specified in the request are linked by the relation specified in the request.

§
maxAge?: number
[src]

From serving time, how much longer the response should be considered valid barring further updates. REQUIRED