import { APIResource } from "../resource.js"; import * as Core from "../core.js"; export declare class Credentials extends APIResource { /** * Encrypts and stores credentials for an origin */ create(body: CredentialCreateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Encrypts and updates credentials for an origin */ update(body?: CredentialUpdateParams, options?: Core.RequestOptions): Core.APIPromise; update(options?: Core.RequestOptions): Core.APIPromise; /** * Fetches all credential metadata for the current organization. */ list(query?: CredentialListParams, options?: Core.RequestOptions): Core.APIPromise; list(options?: Core.RequestOptions): Core.APIPromise; /** * Deletes encrypted credentials from the database */ delete(body: CredentialDeleteParams, options?: Core.RequestOptions): Core.APIPromise; } export interface CredentialCreateResponse { /** * Date and time the credential was created */ createdAt: string; /** * Date and time the credential was last updated */ updatedAt: string; /** * Label for the credential */ label?: string; /** * The namespace the credential is stored against. Defaults to "default". */ namespace?: string; /** * Website origin the credential is for */ origin?: string; } export interface CredentialUpdateResponse { /** * Date and time the credential was created */ createdAt: string; /** * Date and time the credential was last updated */ updatedAt: string; /** * Label for the credential */ label?: string; /** * The namespace the credential is stored against. Defaults to "default". */ namespace?: string; /** * Website origin the credential is for */ origin?: string; } export interface CredentialListResponse { credentials: Array; } export declare namespace CredentialListResponse { interface Credential { /** * Date and time the credential was created */ createdAt: string; /** * Date and time the credential was last updated */ updatedAt: string; /** * Label for the credential */ label?: string; /** * The namespace the credential is stored against. Defaults to "default". */ namespace?: string; /** * Website origin the credential is for */ origin?: string; } } export interface CredentialDeleteResponse { success: boolean; } export interface CredentialCreateParams { /** * Value for the credential */ value: { [key: string]: string; }; /** * Label for the credential */ label?: string; /** * The namespace the credential is stored against. Defaults to "default". */ namespace?: string; /** * Website origin the credential is for */ origin?: string; } export interface CredentialUpdateParams { /** * Label for the credential */ label?: string; /** * The namespace the credential is stored against. Defaults to "default". */ namespace?: string; /** * Website origin the credential is for */ origin?: string; /** * Value for the credential */ value?: { [key: string]: string; }; } export interface CredentialListParams { /** * namespace credential is stored against */ namespace?: string; /** * website origin the credential is for */ origin?: string; } export interface CredentialDeleteParams { /** * Website origin the credential is for */ origin: string; /** * The namespace the credential is stored against. Defaults to "default". */ namespace?: string; } export declare namespace Credentials { export { type CredentialCreateResponse as CredentialCreateResponse, type CredentialUpdateResponse as CredentialUpdateResponse, type CredentialListResponse as CredentialListResponse, type CredentialDeleteResponse as CredentialDeleteResponse, type CredentialCreateParams as CredentialCreateParams, type CredentialUpdateParams as CredentialUpdateParams, type CredentialListParams as CredentialListParams, type CredentialDeleteParams as CredentialDeleteParams, }; } //# sourceMappingURL=credentials.d.ts.map