import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Authorization = { /** * The type of object the permission is being performed on, only media is currently supported */ type: string; /** * The hashed if of the object the permissions are being performed on. */ id: string; /** * The types of permissions, currently only supports edit-transcripts */ permissions: Array; }; export type ExpiringAccessToken = { /** * an ISO8601 string of when the token will expire, defaults to two days from creation */ expiresAt?: string | undefined; /** * a list of authorizations the token will have */ authorizations?: Array | undefined; }; export type PostExpiringTokenRequest = { expiringAccessToken?: ExpiringAccessToken | undefined; }; /** * Successful response */ export type PostExpiringTokenResponse = { /** * A token which can be used to authorize requests to Wistia. Currently only for doing transcript embeds. */ token: string; }; /** @internal */ export type Authorization$Outbound = { type: string; id: string; permissions: Array; }; /** @internal */ export declare const Authorization$outboundSchema: z.ZodType; export declare function authorizationToJSON(authorization: Authorization): string; /** @internal */ export type ExpiringAccessToken$Outbound = { expires_at?: string | undefined; authorizations?: Array | undefined; }; /** @internal */ export declare const ExpiringAccessToken$outboundSchema: z.ZodType; export declare function expiringAccessTokenToJSON(expiringAccessToken: ExpiringAccessToken): string; /** @internal */ export type PostExpiringTokenRequest$Outbound = { expiring_access_token?: ExpiringAccessToken$Outbound | undefined; }; /** @internal */ export declare const PostExpiringTokenRequest$outboundSchema: z.ZodType; export declare function postExpiringTokenRequestToJSON(postExpiringTokenRequest: PostExpiringTokenRequest): string; /** @internal */ export declare const PostExpiringTokenResponse$inboundSchema: z.ZodType; export declare function postExpiringTokenResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postexpiringtoken.d.ts.map