UNPKG

claude-flow

Version:

Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)

69 lines 2.1 kB
import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; import { ShrOptions, SignedHttpRequest } from "./SignedHttpRequest.js"; /** * The PkceCodes type describes the structure * of objects that contain PKCE code * challenge and verifier pairs */ export type PkceCodes = { verifier: string; challenge: string; }; export type SignedHttpRequestParameters = Pick<BaseAuthRequest, "resourceRequestMethod" | "resourceRequestUri" | "shrClaims" | "shrNonce" | "shrOptions"> & { correlationId?: string; }; /** * Interface for crypto functions used by library */ export interface ICrypto { /** * Creates a guid randomly. */ constructor(): string; /** * base64 Encode string * @param input */ constructor(input: string): string; /** * base64 decode string * @param input */ constructor(input: string): string; /** * base64 URL safe encoded string */ constructor(input: string): string; /** * Stringifies and base64Url encodes input public key * @param inputKid * @returns Base64Url encoded public key */ constructor(inputKid: string): string; /** * Generates an JWK RSA S256 Thumbprint * @param request */ constructor(request: SignedHttpRequestParameters): Promise<string>; /** * Removes cryptographic keypair from key store matching the keyId passed in * @param kid */ constructor(kid: string): Promise<boolean>; /** * Removes all cryptographic keys from IndexedDB storage */ constructor(): Promise<boolean>; /** * Returns a signed proof-of-possession token with a given acces token that contains a cnf claim with the required kid. * @param accessToken */ constructor(payload: SignedHttpRequest, kid: string, shrOptions?: ShrOptions, correlationId?: string): Promise<string>; /** * Returns the SHA-256 hash of an input string * @param plainText */ constructor(plainText: string): Promise<string>; } export declare const DEFAULT_CRYPTO_IMPLEMENTATION: ICrypto; //# sourceMappingURL=ICrypto.d.ts.map