{"version":3,"file":"index.cjs","sources":["../src/core/BaseHttpRequest.ts","../src/core/ApiError.ts","../src/core/CancelablePromise.ts","../src/core/request.ts","../src/core/FetchHttpRequest.ts","../src/services/EntriesService.ts","../src/services/IndexService.ts","../src/services/PubkeyService.ts","../src/services/TlogService.ts","../src/RekorClient.ts","../src/core/OpenAPI.ts"],"sourcesContent":["/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type {ApiRequestOptions} from \"./ApiRequestOptions\";\nimport type {CancelablePromise} from \"./CancelablePromise\";\nimport type {OpenAPIConfig} from \"./OpenAPI\";\n\nexport abstract class BaseHttpRequest {\n\tconstructor(public readonly config: OpenAPIConfig) {}\n\n\tpublic abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;\n}\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type {ApiResult} from \"./ApiResult\";\n\nexport class ApiError extends Error {\n\tpublic readonly url: string;\n\tpublic readonly status: number;\n\tpublic readonly statusText: string;\n\tpublic readonly body: any;\n\n\tconstructor(response: ApiResult, message: string) {\n\t\tsuper(message);\n\n\t\tthis.name = \"ApiError\";\n\t\tthis.url = response.url;\n\t\tthis.status = response.status;\n\t\tthis.statusText = response.statusText;\n\t\tthis.body = response.body;\n\t}\n}\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nexport class CancelError extends Error {\n\tconstructor(message: string) {\n\t\tsuper(message);\n\t\tthis.name = \"CancelError\";\n\t}\n\n\tpublic get isCancelled(): boolean {\n\t\treturn true;\n\t}\n}\n\nexport interface OnCancel {\n\treadonly isResolved: boolean;\n\treadonly isRejected: boolean;\n\treadonly isCancelled: boolean;\n\n\t(cancelHandler: () => void): void;\n}\n\nexport class CancelablePromise<T> implements Promise<T> {\n\treadonly [Symbol.toStringTag]: string;\n\n\tprivate _isResolved: boolean;\n\tprivate _isRejected: boolean;\n\tprivate _isCancelled: boolean;\n\tprivate readonly _cancelHandlers: (() => void)[];\n\tprivate readonly _promise: Promise<T>;\n\tprivate _resolve?: (value: T | PromiseLike<T>) => void;\n\tprivate _reject?: (reason?: any) => void;\n\n\tconstructor(\n\t\texecutor: (\n\t\t\tresolve: (value: T | PromiseLike<T>) => void,\n\t\t\treject: (reason?: any) => void,\n\t\t\tonCancel: OnCancel\n\t\t) => void\n\t) {\n\t\tthis._isResolved = false;\n\t\tthis._isRejected = false;\n\t\tthis._isCancelled = false;\n\t\tthis._cancelHandlers = [];\n\t\tthis._promise = new Promise<T>((resolve, reject) => {\n\t\t\tthis._resolve = resolve;\n\t\t\tthis._reject = reject;\n\n\t\t\tconst onResolve = (value: T | PromiseLike<T>): void => {\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis._isResolved = true;\n\t\t\t\tthis._resolve?.(value);\n\t\t\t};\n\n\t\t\tconst onReject = (reason?: any): void => {\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis._isRejected = true;\n\t\t\t\tthis._reject?.(reason);\n\t\t\t};\n\n\t\t\tconst onCancel = (cancelHandler: () => void): void => {\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis._cancelHandlers.push(cancelHandler);\n\t\t\t};\n\n\t\t\tObject.defineProperty(onCancel, \"isResolved\", {\n\t\t\t\tget: (): boolean => this._isResolved,\n\t\t\t});\n\n\t\t\tObject.defineProperty(onCancel, \"isRejected\", {\n\t\t\t\tget: (): boolean => this._isRejected,\n\t\t\t});\n\n\t\t\tObject.defineProperty(onCancel, \"isCancelled\", {\n\t\t\t\tget: (): boolean => this._isCancelled,\n\t\t\t});\n\n\t\t\treturn executor(onResolve, onReject, onCancel as OnCancel);\n\t\t});\n\t}\n\n\tpublic then<TResult1 = T, TResult2 = never>(\n\t\tonFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,\n\t\tonRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null\n\t): Promise<TResult1 | TResult2> {\n\t\treturn this._promise.then(onFulfilled, onRejected);\n\t}\n\n\tpublic catch<TResult = never>(\n\t\tonRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null\n\t): Promise<T | TResult> {\n\t\treturn this._promise.catch(onRejected);\n\t}\n\n\tpublic finally(onFinally?: (() => void) | null): Promise<T> {\n\t\treturn this._promise.finally(onFinally);\n\t}\n\n\tpublic cancel(): void {\n\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\treturn;\n\t\t}\n\t\tthis._isCancelled = true;\n\t\tif (this._cancelHandlers.length) {\n\t\t\ttry {\n\t\t\t\tfor (const cancelHandler of this._cancelHandlers) {\n\t\t\t\t\tcancelHandler();\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn(\"Cancellation threw an error\", error);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthis._cancelHandlers.length = 0;\n\t\tthis._reject?.(new CancelError(\"Request aborted\"));\n\t}\n\n\tpublic get isCancelled(): boolean {\n\t\treturn this._isCancelled;\n\t}\n}\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport {ApiError} from \"./ApiError\";\nimport type {ApiRequestOptions} from \"./ApiRequestOptions\";\nimport type {ApiResult} from \"./ApiResult\";\nimport {CancelablePromise} from \"./CancelablePromise\";\nimport type {OnCancel} from \"./CancelablePromise\";\nimport type {OpenAPIConfig} from \"./OpenAPI\";\n\nconst isDefined = <T>(\n\tvalue: T | null | undefined\n): value is Exclude<T, null | undefined> => {\n\treturn value !== undefined && value !== null;\n};\n\nconst isString = (value: any): value is string => {\n\treturn typeof value === \"string\";\n};\n\nconst isStringWithValue = (value: any): value is string => {\n\treturn isString(value) && value !== \"\";\n};\n\nconst isBlob = (value: any): value is Blob => {\n\treturn (\n\t\ttypeof value === \"object\" &&\n\t\ttypeof value.type === \"string\" &&\n\t\ttypeof value.stream === \"function\" &&\n\t\ttypeof value.arrayBuffer === \"function\" &&\n\t\ttypeof value.constructor === \"function\" &&\n\t\ttypeof value.constructor.name === \"string\" &&\n\t\t/^(Blob|File)$/.test(value.constructor.name) &&\n\t\t/^(Blob|File)$/.test(value[Symbol.toStringTag])\n\t);\n};\n\nconst isFormData = (value: any): value is FormData => {\n\treturn value instanceof FormData;\n};\n\nconst base64 = (str: string): string => {\n\ttry {\n\t\treturn btoa(str);\n\t} catch (err) {\n\t\t// @ts-ignore\n\t\treturn Buffer.from(str).toString(\"base64\");\n\t}\n};\n\nconst getQueryString = (params: Record<string, any>): string => {\n\tconst qs: string[] = [];\n\n\tconst append = (key: string, value: any) => {\n\t\tqs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\n\t};\n\n\tconst process = (key: string, value: any) => {\n\t\tif (isDefined(value)) {\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tvalue.forEach(v => {\n\t\t\t\t\tprocess(key, v);\n\t\t\t\t});\n\t\t\t} else if (typeof value === \"object\") {\n\t\t\t\tObject.entries(value).forEach(([k, v]) => {\n\t\t\t\t\tprocess(`${key}[${k}]`, v);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tappend(key, value);\n\t\t\t}\n\t\t}\n\t};\n\n\tObject.entries(params).forEach(([key, value]) => {\n\t\tprocess(key, value);\n\t});\n\n\tif (qs.length > 0) {\n\t\treturn `?${qs.join(\"&\")}`;\n\t}\n\n\treturn \"\";\n};\n\nconst getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {\n\tconst encoder = config.ENCODE_PATH || encodeURI;\n\n\tconst path = options.url\n\t\t.replace(\"{api-version}\", config.VERSION)\n\t\t.replace(/{(.*?)}/g, (substring: string, group: string) => {\n\t\t\tif (options.path?.hasOwnProperty(group)) {\n\t\t\t\treturn encoder(String(options.path[group]));\n\t\t\t}\n\t\t\treturn substring;\n\t\t});\n\n\tconst url = `${config.BASE}${path}`;\n\tif (options.query) {\n\t\treturn `${url}${getQueryString(options.query)}`;\n\t}\n\treturn url;\n};\n\nconst getFormData = (options: ApiRequestOptions): FormData | undefined => {\n\tif (options.formData) {\n\t\tconst formData = new FormData();\n\n\t\tconst process = (key: string, value: any) => {\n\t\t\tif (isString(value) || isBlob(value)) {\n\t\t\t\tformData.append(key, value);\n\t\t\t} else {\n\t\t\t\tformData.append(key, JSON.stringify(value));\n\t\t\t}\n\t\t};\n\n\t\tObject.entries(options.formData)\n\t\t\t.filter(([_, value]) => isDefined(value))\n\t\t\t.forEach(([key, value]) => {\n\t\t\t\tif (Array.isArray(value)) {\n\t\t\t\t\tvalue.forEach(v => process(key, v));\n\t\t\t\t} else {\n\t\t\t\t\tprocess(key, value);\n\t\t\t\t}\n\t\t\t});\n\n\t\treturn formData;\n\t}\n\treturn undefined;\n};\n\ntype Resolver<T> = (options: ApiRequestOptions) => Promise<T>;\n\nconst resolve = async <T>(\n\toptions: ApiRequestOptions,\n\tresolver?: T | Resolver<T>\n): Promise<T | undefined> => {\n\tif (typeof resolver === \"function\") {\n\t\treturn (resolver as Resolver<T>)(options);\n\t}\n\treturn resolver;\n};\n\nconst getHeaders = async (\n\tconfig: OpenAPIConfig,\n\toptions: ApiRequestOptions\n): Promise<Headers> => {\n\tconst token = await resolve(options, config.TOKEN);\n\tconst username = await resolve(options, config.USERNAME);\n\tconst password = await resolve(options, config.PASSWORD);\n\tconst additionalHeaders = await resolve(options, config.HEADERS);\n\n\tconst headers = Object.entries({\n\t\tAccept: \"application/json\",\n\t\t...additionalHeaders,\n\t\t...options.headers,\n\t})\n\t\t.filter(([_, value]) => isDefined(value))\n\t\t.reduce(\n\t\t\t(headers, [key, value]) => ({\n\t\t\t\t...headers,\n\t\t\t\t[key]: String(value),\n\t\t\t}),\n\t\t\t{} as Record<string, string>\n\t\t);\n\n\tif (isStringWithValue(token)) {\n\t\theaders[\"Authorization\"] = `Bearer ${token}`;\n\t}\n\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\n\t\tconst credentials = base64(`${username}:${password}`);\n\t\theaders[\"Authorization\"] = `Basic ${credentials}`;\n\t}\n\n\tif (options.body) {\n\t\tif (options.mediaType) {\n\t\t\theaders[\"Content-Type\"] = options.mediaType;\n\t\t} else if (isBlob(options.body)) {\n\t\t\theaders[\"Content-Type\"] = options.body.type || \"application/octet-stream\";\n\t\t} else if (isString(options.body)) {\n\t\t\theaders[\"Content-Type\"] = \"text/plain\";\n\t\t} else if (!isFormData(options.body)) {\n\t\t\theaders[\"Content-Type\"] = \"application/json\";\n\t\t}\n\t}\n\n\treturn new Headers(headers);\n};\n\nconst getRequestBody = (options: ApiRequestOptions): any => {\n\tif (options.body) {\n\t\tif (options.mediaType?.includes(\"/json\")) {\n\t\t\treturn JSON.stringify(options.body);\n\t\t} else if (\n\t\t\tisString(options.body) ||\n\t\t\tisBlob(options.body) ||\n\t\t\tisFormData(options.body)\n\t\t) {\n\t\t\treturn options.body;\n\t\t} else {\n\t\t\treturn JSON.stringify(options.body);\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexport const sendRequest = async (\n\tconfig: OpenAPIConfig,\n\toptions: ApiRequestOptions,\n\turl: string,\n\tbody: any,\n\tformData: FormData | undefined,\n\theaders: Headers,\n\tonCancel: OnCancel\n): Promise<Response> => {\n\tconst controller = new AbortController();\n\n\tconst request: RequestInit = {\n\t\theaders,\n\t\tbody: body ?? formData,\n\t\tmethod: options.method,\n\t\tsignal: controller.signal,\n\t};\n\n\tif (config.WITH_CREDENTIALS) {\n\t\trequest.credentials = config.CREDENTIALS;\n\t}\n\n\tonCancel(() => controller.abort());\n\n\treturn await fetch(url, request);\n};\n\nconst getResponseHeader = (\n\tresponse: Response,\n\tresponseHeader?: string\n): string | undefined => {\n\tif (responseHeader) {\n\t\tconst content = response.headers.get(responseHeader);\n\t\tif (isString(content)) {\n\t\t\treturn content;\n\t\t}\n\t}\n\treturn undefined;\n};\n\nconst getResponseBody = async (response: Response): Promise<any> => {\n\tif (response.status !== 204) {\n\t\ttry {\n\t\t\tconst contentType = response.headers.get(\"Content-Type\");\n\t\t\tif (contentType) {\n\t\t\t\tconst isJSON = contentType.toLowerCase().startsWith(\"application/json\");\n\t\t\t\tif (isJSON) {\n\t\t\t\t\treturn await response.json();\n\t\t\t\t} else {\n\t\t\t\t\treturn await response.text();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tconsole.error(error);\n\t\t}\n\t}\n\treturn undefined;\n};\n\nconst catchErrorCodes = (\n\toptions: ApiRequestOptions,\n\tresult: ApiResult\n): void => {\n\tconst errors: Record<number, string> = {\n\t\t400: \"Bad Request\",\n\t\t401: \"Unauthorized\",\n\t\t403: \"Forbidden\",\n\t\t404: \"Not Found\",\n\t\t500: \"Internal Server Error\",\n\t\t502: \"Bad Gateway\",\n\t\t503: \"Service Unavailable\",\n\t\t...options.errors,\n\t};\n\n\tconst error = errors[result.status];\n\tif (error) {\n\t\tthrow new ApiError(result, error);\n\t}\n\n\tif (!result.ok) {\n\t\tthrow new ApiError(result, \"Generic Error\");\n\t}\n};\n\n/**\n * Request method\n * @param config The OpenAPI configuration object\n * @param options The request options from the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport const request = <T>(\n\tconfig: OpenAPIConfig,\n\toptions: ApiRequestOptions\n): CancelablePromise<T> => {\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\n\t\ttry {\n\t\t\tconst url = getUrl(config, options);\n\t\t\tconst formData = getFormData(options);\n\t\t\tconst body = getRequestBody(options);\n\t\t\tconst headers = await getHeaders(config, options);\n\n\t\t\tif (!onCancel.isCancelled) {\n\t\t\t\tconst response = await sendRequest(\n\t\t\t\t\tconfig,\n\t\t\t\t\toptions,\n\t\t\t\t\turl,\n\t\t\t\t\tbody,\n\t\t\t\t\tformData,\n\t\t\t\t\theaders,\n\t\t\t\t\tonCancel\n\t\t\t\t);\n\t\t\t\tconst responseBody = await getResponseBody(response);\n\t\t\t\tconst responseHeader = getResponseHeader(\n\t\t\t\t\tresponse,\n\t\t\t\t\toptions.responseHeader\n\t\t\t\t);\n\n\t\t\t\tconst result: ApiResult = {\n\t\t\t\t\turl,\n\t\t\t\t\tok: response.ok,\n\t\t\t\t\tstatus: response.status,\n\t\t\t\t\tstatusText: response.statusText,\n\t\t\t\t\tbody: responseHeader ?? responseBody,\n\t\t\t\t};\n\n\t\t\t\tcatchErrorCodes(options, result);\n\n\t\t\t\tresolve(result.body);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\treject(error);\n\t\t}\n\t});\n};\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type {ApiRequestOptions} from \"./ApiRequestOptions\";\nimport {BaseHttpRequest} from \"./BaseHttpRequest\";\nimport type {CancelablePromise} from \"./CancelablePromise\";\nimport type {OpenAPIConfig} from \"./OpenAPI\";\nimport {request as __request} from \"./request\";\n\nexport class FetchHttpRequest extends BaseHttpRequest {\n\tconstructor(config: OpenAPIConfig) {\n\t\tsuper(config);\n\t}\n\n\t/**\n\t * Request method\n\t * @param options The request options from the service\n\t * @returns CancelablePromise<T>\n\t * @throws ApiError\n\t */\n\tpublic override request<T>(options: ApiRequestOptions): CancelablePromise<T> {\n\t\treturn __request(this.config, options);\n\t}\n}\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type {Error} from \"../models/Error\";\nimport type {LogEntry} from \"../models/LogEntry\";\nimport type {ProposedEntry} from \"../models/ProposedEntry\";\nimport type {SearchLogQuery} from \"../models/SearchLogQuery\";\n\nimport type {CancelablePromise} from \"../core/CancelablePromise\";\nimport type {BaseHttpRequest} from \"../core/BaseHttpRequest\";\n\nexport class EntriesService {\n\tconstructor(public readonly httpRequest: BaseHttpRequest) {}\n\n\t/**\n\t * Creates an entry in the transparency log\n\t * Creates an entry in the transparency log for a detached signature, public key, and content. Items can be included in the request or fetched by the server when URLs are specified.\n\t *\n\t * @returns Error There was an internal error in the server while processing the request\n\t * @returns LogEntry Returns the entry created in the transparency log\n\t * @throws ApiError\n\t */\n\tpublic createLogEntry({\n\t\tproposedEntry,\n\t}: {\n\t\tproposedEntry: ProposedEntry;\n\t}): CancelablePromise<Error | LogEntry> {\n\t\treturn this.httpRequest.request({\n\t\t\tmethod: \"POST\",\n\t\t\turl: \"/api/v1/log/entries\",\n\t\t\tbody: proposedEntry,\n\t\t\terrors: {\n\t\t\t\t400: `The content supplied to the server was invalid`,\n\t\t\t\t409: `The request conflicts with the current state of the transparency log`,\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * Retrieves an entry and inclusion proof from the transparency log (if it exists) by index\n\t * @returns LogEntry the entry in the transparency log requested along with an inclusion proof\n\t * @returns Error There was an internal error in the server while processing the request\n\t * @throws ApiError\n\t */\n\tpublic getLogEntryByIndex({\n\t\tlogIndex,\n\t}: {\n\t\t/** specifies the index of the entry in the transparency log to be retrieved **/\n\t\tlogIndex: number;\n\t}): CancelablePromise<LogEntry | Error> {\n\t\treturn this.httpRequest.request({\n\t\t\tmethod: \"GET\",\n\t\t\turl: \"/api/v1/log/entries\",\n\t\t\tquery: {\n\t\t\t\tlogIndex: logIndex,\n\t\t\t},\n\t\t\terrors: {\n\t\t\t\t404: `The content requested could not be found`,\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * Get log entry and information required to generate an inclusion proof for the entry in the transparency log\n\t * Returns the entry, root hash, tree size, and a list of hashes that can be used to calculate proof of an entry being included in the transparency log\n\t * @returns LogEntry Information needed for a client to compute the inclusion proof\n\t * @returns Error There was an internal error in the server while processing the request\n\t * @throws ApiError\n\t */\n\tpublic getLogEntryByUuid({\n\t\tentryUuid,\n\t}: {\n\t\t/** the UUID of the entry for which the inclusion proof information should be returned **/\n\t\tentryUuid: string;\n\t}): CancelablePromise<LogEntry | Error> {\n\t\treturn this.httpRequest.request({\n\t\t\tmethod: \"GET\",\n\t\t\turl: \"/api/v1/log/entries/{entryUUID}\",\n\t\t\tpath: {\n\t\t\t\tentryUUID: entryUuid,\n\t\t\t},\n\t\t\terrors: {\n\t\t\t\t404: `The content requested could not be found`,\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * Searches transparency log for one or more log entries\n\t * @returns LogEntry Returns zero or more entries from the transparency log, according to how many were included in request query\n\t * @returns Error There was an internal error in the server while processing the request\n\t * @throws ApiError\n\t */\n\tpublic searchLogQuery({\n\t\tentry,\n\t}: {\n\t\tentry: SearchLogQuery;\n\t}): CancelablePromise<Array<LogEntry> | Error> {\n\t\treturn this.httpRequest.request({\n\t\t\tmethod: \"POST\",\n\t\t\turl: \"/api/v1/log/entries/retrieve\",\n\t\t\tbody: entry,\n\t\t\terrors: {\n\t\t\t\t400: `The content supplied to the server was invalid`,\n\t\t\t\t422: `The server understood the request but is unable to process the contained instructions`,\n\t\t\t},\n\t\t});\n\t}\n}\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type {Error} from \"../models/Error\";\nimport type {SearchIndex} from \"../models/SearchIndex\";\n\nimport type {CancelablePromise} from \"../core/CancelablePromise\";\nimport type {BaseHttpRequest} from \"../core/BaseHttpRequest\";\n\nexport class IndexService {\n\tconstructor(public readonly httpRequest: BaseHttpRequest) {}\n\n\t/**\n\t * @deprecated\n\t * Searches index by entry metadata\n\t * EXPERIMENTAL - this endpoint is offered as best effort only and may be changed or removed in future releases.\n\t * The results returned from this endpoint may be incomplete.\n\t *\n\t * @returns string Returns zero or more entry UUIDs from the transparency log based on search query\n\t * @returns Error There was an internal error in the server while processing the request\n\t * @throws ApiError\n\t */\n\tpublic searchIndex({\n\t\tquery,\n\t}: {\n\t\tquery: SearchIndex;\n\t}): CancelablePromise<Array<string> | Error> {\n\t\treturn this.httpRequest.request({\n\t\t\tmethod: \"POST\",\n\t\t\turl: \"/api/v1/index/retrieve\",\n\t\t\tbody: query,\n\t\t\terrors: {\n\t\t\t\t400: `The content supplied to the server was invalid`,\n\t\t\t},\n\t\t});\n\t}\n}\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type {Error} from \"../models/Error\";\n\nimport type {CancelablePromise} from \"../core/CancelablePromise\";\nimport type {BaseHttpRequest} from \"../core/BaseHttpRequest\";\n\nexport class PubkeyService {\n\tconstructor(public readonly httpRequest: BaseHttpRequest) {}\n\n\t/**\n\t * Retrieve the public key that can be used to validate the signed tree head\n\t * Returns the public key that can be used to validate the signed tree head\n\t * @returns string The public key\n\t * @returns Error There was an internal error in the server while processing the request\n\t * @throws ApiError\n\t */\n\tpublic getPublicKey({\n\t\ttreeId,\n\t}: {\n\t\t/** The tree ID of the tree you wish to get a public key for **/\n\t\ttreeId?: string;\n\t}): CancelablePromise<string | Error> {\n\t\treturn this.httpRequest.request({\n\t\t\tmethod: \"GET\",\n\t\t\turl: \"/api/v1/log/publicKey\",\n\t\t\tquery: {\n\t\t\t\ttreeID: treeId,\n\t\t\t},\n\t\t});\n\t}\n}\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type {ConsistencyProof} from \"../models/ConsistencyProof\";\nimport type {Error} from \"../models/Error\";\nimport type {LogInfo} from \"../models/LogInfo\";\n\nimport type {CancelablePromise} from \"../core/CancelablePromise\";\nimport type {BaseHttpRequest} from \"../core/BaseHttpRequest\";\n\nexport class TlogService {\n\tconstructor(public readonly httpRequest: BaseHttpRequest) {}\n\n\t/**\n\t * Get information about the current state of the transparency log\n\t * Returns the current root hash and size of the merkle tree used to store the log entries.\n\t * @returns LogInfo A JSON object with the root hash and tree size as properties\n\t * @returns Error There was an internal error in the server while processing the request\n\t * @throws ApiError\n\t */\n\tpublic getLogInfo({\n\t\tstable = false,\n\t}: {\n\t\t/** Whether to return a stable checkpoint for the active shard **/\n\t\tstable?: boolean;\n\t}): CancelablePromise<LogInfo | Error> {\n\t\treturn this.httpRequest.request({\n\t\t\tmethod: \"GET\",\n\t\t\turl: \"/api/v1/log\",\n\t\t\tquery: {\n\t\t\t\tstable: stable,\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * Get information required to generate a consistency proof for the transparency log\n\t * Returns a list of hashes for specified tree sizes that can be used to confirm the consistency of the transparency log\n\t * @returns ConsistencyProof All hashes required to compute the consistency proof\n\t * @returns Error There was an internal error in the server while processing the request\n\t * @throws ApiError\n\t */\n\tpublic getLogProof({\n\t\tlastSize,\n\t\tfirstSize = 1,\n\t\ttreeId,\n\t}: {\n\t\t/** The size of the tree that you wish to prove consistency to **/\n\t\tlastSize: number;\n\t\t/** The size of the tree that you wish to prove consistency from (1 means the beginning of the log) Defaults to 1 if not specified\n\t\t *  **/\n\t\tfirstSize?: number;\n\t\t/** The tree ID of the tree that you wish to prove consistency for **/\n\t\ttreeId?: string;\n\t}): CancelablePromise<ConsistencyProof | Error> {\n\t\treturn this.httpRequest.request({\n\t\t\tmethod: \"GET\",\n\t\t\turl: \"/api/v1/log/proof\",\n\t\t\tquery: {\n\t\t\t\tfirstSize: firstSize,\n\t\t\t\tlastSize: lastSize,\n\t\t\t\ttreeID: treeId,\n\t\t\t},\n\t\t\terrors: {\n\t\t\t\t400: `The content supplied to the server was invalid`,\n\t\t\t},\n\t\t});\n\t}\n}\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type {BaseHttpRequest} from \"./core/BaseHttpRequest\";\nimport type {OpenAPIConfig} from \"./core/OpenAPI\";\nimport {FetchHttpRequest} from \"./core/FetchHttpRequest\";\n\nimport {EntriesService} from \"./services/EntriesService\";\nimport {IndexService} from \"./services/IndexService\";\nimport {PubkeyService} from \"./services/PubkeyService\";\nimport {TlogService} from \"./services/TlogService\";\n\ntype HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;\n\nexport class RekorClient {\n\tpublic readonly entries: EntriesService;\n\tpublic readonly index: IndexService;\n\tpublic readonly pubkey: PubkeyService;\n\tpublic readonly tlog: TlogService;\n\n\tpublic readonly request: BaseHttpRequest;\n\n\tconstructor(\n\t\tconfig?: Partial<OpenAPIConfig>,\n\t\tHttpRequest: HttpRequestConstructor = FetchHttpRequest\n\t) {\n\t\tthis.request = new HttpRequest({\n\t\t\tBASE: config?.BASE ?? \"https://rekor.sigstore.dev\",\n\t\t\tVERSION: config?.VERSION ?? \"1.0.0\",\n\t\t\tWITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,\n\t\t\tCREDENTIALS: config?.CREDENTIALS ?? \"include\",\n\t\t\tTOKEN: config?.TOKEN,\n\t\t\tUSERNAME: config?.USERNAME,\n\t\t\tPASSWORD: config?.PASSWORD,\n\t\t\tHEADERS: config?.HEADERS,\n\t\t\tENCODE_PATH: config?.ENCODE_PATH,\n\t\t});\n\n\t\tthis.entries = new EntriesService(this.request);\n\t\tthis.index = new IndexService(this.request);\n\t\tthis.pubkey = new PubkeyService(this.request);\n\t\tthis.tlog = new TlogService(this.request);\n\t}\n}\n","/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type {ApiRequestOptions} from \"./ApiRequestOptions\";\n\ntype Resolver<T> = (options: ApiRequestOptions) => Promise<T>;\ntype Headers = Record<string, string>;\n\nexport type OpenAPIConfig = {\n\tBASE: string;\n\tVERSION: string;\n\tWITH_CREDENTIALS: boolean;\n\tCREDENTIALS: \"include\" | \"omit\" | \"same-origin\";\n\tTOKEN?: string | Resolver<string>;\n\tUSERNAME?: string | Resolver<string>;\n\tPASSWORD?: string | Resolver<string>;\n\tHEADERS?: Headers | Resolver<Headers>;\n\tENCODE_PATH?: (path: string) => string;\n};\n\nexport const OpenAPI: OpenAPIConfig = {\n\tBASE: \"https://rekor.sigstore.dev\",\n\tVERSION: \"1.0.0\",\n\tWITH_CREDENTIALS: false,\n\tCREDENTIALS: \"include\",\n\tTOKEN: undefined,\n\tUSERNAME: undefined,\n\tPASSWORD: undefined,\n\tHEADERS: undefined,\n\tENCODE_PATH: undefined,\n};\n"],"names":["__request"],"mappings":";;MAOsB,eAAe,CAAA;AACR,IAAA,MAAA,CAAA;AAA5B,IAAA,WAAA,CAA4B,MAAqB,EAAA;QAArB,IAAM,CAAA,MAAA,GAAN,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