mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 14:27:30 +00:00
Linter
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
* https://datatracker.ietf.org/doc/html/rfc8555#section-6.7
|
* https://datatracker.ietf.org/doc/html/rfc8555#section-6.7
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* eslint-disable max-classes-per-file */
|
||||||
|
|
||||||
// RFC 8555 Section 6.7 - Error Types
|
// RFC 8555 Section 6.7 - Error Types
|
||||||
export enum AcmeErrorType {
|
export enum AcmeErrorType {
|
||||||
AccountDoesNotExist = "accountDoesNotExist",
|
AccountDoesNotExist = "accountDoesNotExist",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Knex } from "knex";
|
import { Knex } from "knex";
|
||||||
|
|
||||||
import { TDbClient } from "@app/db";
|
import { TDbClient } from "@app/db";
|
||||||
import { TableName, TPkiAcmeAuths, TPkiAcmeOrderAuths } from "@app/db/schemas";
|
import { TableName } from "@app/db/schemas";
|
||||||
import { DatabaseError } from "@app/lib/errors";
|
import { DatabaseError } from "@app/lib/errors";
|
||||||
import { ormify, selectAllTableCols, sqlNestRelationships } from "@app/lib/knex";
|
import { ormify, selectAllTableCols, sqlNestRelationships } from "@app/lib/knex";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { TPkiAcmeChallenges } from "@app/db/schemas";
|
|
||||||
import { JWSHeaderParameters } from "jose";
|
import { JWSHeaderParameters } from "jose";
|
||||||
import {
|
import {
|
||||||
AcmeOrderResourceSchema,
|
AcmeOrderResourceSchema,
|
||||||
@@ -51,7 +50,7 @@ export type TAcmeResponse<TPayload> = {
|
|||||||
|
|
||||||
export type TPkiAcmeServiceFactory = {
|
export type TPkiAcmeServiceFactory = {
|
||||||
validateJwsPayload: <
|
validateJwsPayload: <
|
||||||
TSchema extends z.ZodSchema<any> | undefined = undefined,
|
TSchema extends z.ZodSchema<unknown> | undefined = undefined,
|
||||||
T = TSchema extends z.ZodSchema<infer R> ? R : string
|
T = TSchema extends z.ZodSchema<infer R> ? R : string
|
||||||
>({
|
>({
|
||||||
url,
|
url,
|
||||||
@@ -72,7 +71,7 @@ export type TPkiAcmeServiceFactory = {
|
|||||||
rawJwsPayload: TRawJwsPayload;
|
rawJwsPayload: TRawJwsPayload;
|
||||||
}) => Promise<TJwsPayload<TCreateAcmeAccountPayload>>;
|
}) => Promise<TJwsPayload<TCreateAcmeAccountPayload>>;
|
||||||
validateExistingAccountJwsPayload: <
|
validateExistingAccountJwsPayload: <
|
||||||
TSchema extends z.ZodSchema<any> | undefined = undefined,
|
TSchema extends z.ZodSchema<unknown> | undefined = undefined,
|
||||||
T = TSchema extends z.ZodSchema<infer R> ? R : string
|
T = TSchema extends z.ZodSchema<infer R> ? R : string
|
||||||
>({
|
>({
|
||||||
url,
|
url,
|
||||||
|
|||||||
Reference in New Issue
Block a user