import * as t from "io-ts"; import * as r from "@pagopa/ts-commons/lib/requests"; import { Card } from "./Card"; import { ProblemJson } from "./ProblemJson"; import { CgnStatusUpsertRequest } from "./CgnStatusUpsertRequest"; import { InstanceId } from "./InstanceId"; import { EycaCard } from "./EycaCard"; import { EycaActivationDetail } from "./EycaActivationDetail"; import { CgnActivationDetail } from "./CgnActivationDetail"; import { Otp } from "./Otp"; /**************************************************************** * getCgnStatus */ export type GetCgnStatusT = r.IGetApiRequestType<{ readonly ApiKey: string; readonly fiscalcode: string; }, "X-Functions-Key", never, r.IResponseType<200, Card, never> | r.IResponseType<401, undefined, never> | r.IResponseType<404, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const getCgnStatusDefaultResponses: { 200: t.UnionC<[t.ExactC; }>, t.PartialC<{}>]>>, t.IntersectionC<[t.ExactC, t.Type]>; expiration_date: t.UnionC<[t.Type, t.Type]>; }>, t.PartialC<{}>]>>, t.ExactC; }>, t.PartialC<{}>]>>]>, t.IntersectionC<[t.ExactC, t.Type]>; expiration_date: t.UnionC<[t.Type, t.Type]>; }>, t.PartialC<{}>]>>, t.ExactC; }>, t.PartialC<{}>]>>]>, t.IntersectionC<[t.ExactC, t.Type]>; expiration_date: t.UnionC<[t.Type, t.Type]>; }>, t.PartialC<{}>]>>, t.ExactC; revocation_date: t.UnionC<[t.Type, t.Type]>; revocation_reason: import("@pagopa/ts-commons/lib/types").Tagged; }>, t.PartialC<{}>]>>]>, t.IntersectionC<[t.ExactC, t.Type]>; expiration_date: t.UnionC<[t.Type, t.Type]>; }>, t.PartialC<{}>]>>, t.ExactC; }>, t.PartialC<{}>]>>]>]>; 401: t.UndefinedC; 404: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type GetCgnStatusResponsesT = { 200: t.Type; 401: t.Type; 404: t.Type; 500: t.Type; }; export declare function getCgnStatusDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<401, A1, never> | r.IResponseType<404, A2, never> | r.IResponseType<500, A3, never>>; export declare const getCgnStatusDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<404, undefined, never> | r.IResponseType<200, ({ status: import("./CardPending").StatusEnum; } & {}) | ({ activation_date: Date; expiration_date: Date; } & {} & { status: import("./CardPendingDelete").StatusEnum; } & {}) | ({ activation_date: Date; expiration_date: Date; } & {} & { status: import("./CardActivated").StatusEnum; } & {}) | ({ activation_date: Date; expiration_date: Date; } & {} & { status: import("./CardRevoked").StatusEnum; revocation_date: Date; revocation_reason: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}) | ({ activation_date: Date; expiration_date: Date; } & {} & { status: import("./CardExpired").StatusEnum; } & {}), never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never>>; /**************************************************************** * upsertCgnStatus */ export type UpsertCgnStatusT = r.IPostApiRequestType<{ readonly ApiKey: string; readonly fiscalcode: string; readonly body?: CgnStatusUpsertRequest; }, "Content-Type" | "X-Functions-Key", never, r.IResponseType<201, InstanceId, "Location"> | r.IResponseType<202, InstanceId, never> | r.IResponseType<401, undefined, never> | r.IResponseType<403, undefined, never> | r.IResponseType<404, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const upsertCgnStatusDefaultResponses: { 201: t.ExactC; }>, t.PartialC<{}>]>>; 202: t.ExactC; }>, t.PartialC<{}>]>>; 401: t.UndefinedC; 403: t.UndefinedC; 404: t.UndefinedC; 409: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type UpsertCgnStatusResponsesT = { 201: t.Type; 202: t.Type; 401: t.Type; 403: t.Type; 404: t.Type; 409: t.Type; 500: t.Type; }; export declare function upsertCgnStatusDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<202, A1, never> | r.IResponseType<401, A2, never> | r.IResponseType<403, A3, never> | r.IResponseType<404, A4, never> | r.IResponseType<409, A5, never> | r.IResponseType<500, A6, never>>; export declare const upsertCgnStatusDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<404, undefined, never> | r.IResponseType<403, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never> | r.IResponseType<201, { id: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}, "Location"> | r.IResponseType<202, { id: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}, never>>; /**************************************************************** * getEycaStatus */ export type GetEycaStatusT = r.IGetApiRequestType<{ readonly ApiKey: string; readonly fiscalcode: string; }, "X-Functions-Key", never, r.IResponseType<200, EycaCard, never> | r.IResponseType<401, undefined, never> | r.IResponseType<403, undefined, never> | r.IResponseType<404, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const getEycaStatusDefaultResponses: { 200: t.UnionC<[t.ExactC; }>, t.PartialC<{}>]>>, t.IntersectionC<[t.IntersectionC<[t.ExactC, t.Type]>; expiration_date: t.UnionC<[t.Type, t.Type]>; }>, t.PartialC<{}>]>>, t.ExactC; }>, t.PartialC<{}>]>>]>, t.ExactC, string, string, unknown>; }>, t.PartialC<{}>]>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC, t.Type]>; expiration_date: t.UnionC<[t.Type, t.Type]>; }>, t.PartialC<{}>]>>, t.ExactC; }>, t.PartialC<{}>]>>]>, t.ExactC, string, string, unknown>; }>, t.PartialC<{}>]>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC, t.Type]>; expiration_date: t.UnionC<[t.Type, t.Type]>; }>, t.PartialC<{}>]>>, t.ExactC; revocation_date: t.UnionC<[t.Type, t.Type]>; revocation_reason: import("@pagopa/ts-commons/lib/types").Tagged; }>, t.PartialC<{}>]>>]>, t.ExactC, string, string, unknown>; }>, t.PartialC<{}>]>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC, t.Type]>; expiration_date: t.UnionC<[t.Type, t.Type]>; }>, t.PartialC<{}>]>>, t.ExactC; }>, t.PartialC<{}>]>>]>, t.ExactC, string, string, unknown>; }>, t.PartialC<{}>]>>]>]>; 401: t.UndefinedC; 403: t.UndefinedC; 404: t.UndefinedC; 409: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type GetEycaStatusResponsesT = { 200: t.Type; 401: t.Type; 403: t.Type; 404: t.Type; 409: t.Type; 500: t.Type; }; export declare function getEycaStatusDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<401, A1, never> | r.IResponseType<403, A2, never> | r.IResponseType<404, A3, never> | r.IResponseType<409, A4, never> | r.IResponseType<500, A5, never>>; export declare const getEycaStatusDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<404, undefined, never> | r.IResponseType<403, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never> | r.IResponseType<200, ({ status: import("./CardPending").StatusEnum; } & {}) | ({ activation_date: Date; expiration_date: Date; } & {} & { status: import("./CardPendingDelete").StatusEnum; } & {} & { card_number: string & import("@pagopa/ts-commons/lib/strings").IPatternStringTag<"^[A-Z][0-9]{3}-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[A-Z][0-9]{3}$">; } & {}) | ({ activation_date: Date; expiration_date: Date; } & {} & { status: import("./CardActivated").StatusEnum; } & {} & { card_number: string & import("@pagopa/ts-commons/lib/strings").IPatternStringTag<"^[A-Z][0-9]{3}-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[A-Z][0-9]{3}$">; } & {}) | ({ activation_date: Date; expiration_date: Date; } & {} & { status: import("./CardRevoked").StatusEnum; revocation_date: Date; revocation_reason: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {} & { card_number: string & import("@pagopa/ts-commons/lib/strings").IPatternStringTag<"^[A-Z][0-9]{3}-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[A-Z][0-9]{3}$">; } & {}) | ({ activation_date: Date; expiration_date: Date; } & {} & { status: import("./CardExpired").StatusEnum; } & {} & { card_number: string & import("@pagopa/ts-commons/lib/strings").IPatternStringTag<"^[A-Z][0-9]{3}-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[A-Z][0-9]{3}$">; } & {}), never>>; /**************************************************************** * startEycaActivation */ export type StartEycaActivationT = r.IPostApiRequestType<{ readonly ApiKey: string; readonly fiscalcode: string; }, "Content-Type" | "X-Functions-Key", never, r.IResponseType<201, InstanceId, "Location"> | r.IResponseType<202, InstanceId, never> | r.IResponseType<401, undefined, never> | r.IResponseType<403, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const startEycaActivationDefaultResponses: { 201: t.ExactC; }>, t.PartialC<{}>]>>; 202: t.ExactC; }>, t.PartialC<{}>]>>; 401: t.UndefinedC; 403: t.UndefinedC; 409: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type StartEycaActivationResponsesT = { 201: t.Type; 202: t.Type; 401: t.Type; 403: t.Type; 409: t.Type; 500: t.Type; }; export declare function startEycaActivationDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<202, A1, never> | r.IResponseType<401, A2, never> | r.IResponseType<403, A3, never> | r.IResponseType<409, A4, never> | r.IResponseType<500, A5, never>>; export declare const startEycaActivationDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<403, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never> | r.IResponseType<201, { id: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}, "Location"> | r.IResponseType<202, { id: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}, never>>; /**************************************************************** * getEycaActivation */ export type GetEycaActivationT = r.IGetApiRequestType<{ readonly ApiKey: string; readonly fiscalcode: string; }, "X-Functions-Key", never, r.IResponseType<200, EycaActivationDetail, never> | r.IResponseType<401, undefined, never> | r.IResponseType<404, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const getEycaActivationDefaultResponses: { 200: t.ExactC; }>, t.PartialC<{ created_at: t.UnionC<[t.Type, t.Type]>; last_updated_at: t.UnionC<[t.Type, t.Type]>; }>]>>; 401: t.UndefinedC; 404: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type GetEycaActivationResponsesT = { 200: t.Type; 401: t.Type; 404: t.Type; 500: t.Type; }; export declare function getEycaActivationDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<401, A1, never> | r.IResponseType<404, A2, never> | r.IResponseType<500, A3, never>>; export declare const getEycaActivationDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<404, undefined, never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never> | r.IResponseType<200, { status: import("./EycaActivationDetail").StatusEnum; } & { created_at?: Date | undefined; last_updated_at?: Date | undefined; }, never>>; /**************************************************************** * startCgnActivation */ export type StartCgnActivationT = r.IPostApiRequestType<{ readonly ApiKey: string; readonly fiscalcode: string; }, "Content-Type" | "X-Functions-Key", never, r.IResponseType<201, InstanceId, "Location"> | r.IResponseType<202, InstanceId, never> | r.IResponseType<401, undefined, never> | r.IResponseType<403, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const startCgnActivationDefaultResponses: { 201: t.ExactC; }>, t.PartialC<{}>]>>; 202: t.ExactC; }>, t.PartialC<{}>]>>; 401: t.UndefinedC; 403: t.UndefinedC; 409: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type StartCgnActivationResponsesT = { 201: t.Type; 202: t.Type; 401: t.Type; 403: t.Type; 409: t.Type; 500: t.Type; }; export declare function startCgnActivationDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<202, A1, never> | r.IResponseType<401, A2, never> | r.IResponseType<403, A3, never> | r.IResponseType<409, A4, never> | r.IResponseType<500, A5, never>>; export declare const startCgnActivationDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<403, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never> | r.IResponseType<201, { id: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}, "Location"> | r.IResponseType<202, { id: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}, never>>; /**************************************************************** * getCgnActivation */ export type GetCgnActivationT = r.IGetApiRequestType<{ readonly ApiKey: string; readonly fiscalcode: string; }, "X-Functions-Key", never, r.IResponseType<200, CgnActivationDetail, never> | r.IResponseType<401, undefined, never> | r.IResponseType<404, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const getCgnActivationDefaultResponses: { 200: t.ExactC; }>, t.PartialC<{}>]>>; status: t.Type; }>, t.PartialC<{ created_at: t.UnionC<[t.Type, t.Type]>; last_updated_at: t.UnionC<[t.Type, t.Type]>; }>]>>; 401: t.UndefinedC; 404: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type GetCgnActivationResponsesT = { 200: t.Type; 401: t.Type; 404: t.Type; 500: t.Type; }; export declare function getCgnActivationDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<401, A1, never> | r.IResponseType<404, A2, never> | r.IResponseType<500, A3, never>>; export declare const getCgnActivationDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<404, undefined, never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never> | r.IResponseType<200, { instance_id: { id: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}; status: import("./CgnActivationDetail").StatusEnum; } & { created_at?: Date | undefined; last_updated_at?: Date | undefined; }, never>>; /**************************************************************** * startCgnUnsubscription */ export type StartCgnUnsubscriptionT = r.IPostApiRequestType<{ readonly ApiKey: string; readonly fiscalcode: string; }, "Content-Type" | "X-Functions-Key", never, r.IResponseType<201, InstanceId, "Location"> | r.IResponseType<202, InstanceId, never> | r.IResponseType<401, undefined, never> | r.IResponseType<403, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const startCgnUnsubscriptionDefaultResponses: { 201: t.ExactC; }>, t.PartialC<{}>]>>; 202: t.ExactC; }>, t.PartialC<{}>]>>; 401: t.UndefinedC; 403: t.UndefinedC; 409: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type StartCgnUnsubscriptionResponsesT = { 201: t.Type; 202: t.Type; 401: t.Type; 403: t.Type; 409: t.Type; 500: t.Type; }; export declare function startCgnUnsubscriptionDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<202, A1, never> | r.IResponseType<401, A2, never> | r.IResponseType<403, A3, never> | r.IResponseType<409, A4, never> | r.IResponseType<500, A5, never>>; export declare const startCgnUnsubscriptionDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<403, undefined, never> | r.IResponseType<409, undefined, never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never> | r.IResponseType<201, { id: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}, "Location"> | r.IResponseType<202, { id: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; } & {}, never>>; /**************************************************************** * generateOtp */ export type GenerateOtpT = r.IPostApiRequestType<{ readonly ApiKey: string; readonly fiscalcode: string; }, "Content-Type" | "X-Functions-Key", never, r.IResponseType<200, Otp, never> | r.IResponseType<401, undefined, never> | r.IResponseType<403, undefined, never> | r.IResponseType<500, ProblemJson, never>>; export declare const generateOtpDefaultResponses: { 200: t.ExactC, string, string, unknown>; expires_at: t.UnionC<[t.Type, t.Type]>; ttl: t.NumberC; }>, t.PartialC<{}>]>>; 401: t.UndefinedC; 403: t.UndefinedC; 500: t.ExactC, t.PartialC<{ type: t.Type; title: t.StringC; status: t.UnionC<[import("@pagopa/ts-commons/lib/types").Tagged, number, number, unknown>, t.LiteralC<599>]>; detail: t.StringC; instance: t.StringC; }>]>>; }; export type GenerateOtpResponsesT = { 200: t.Type; 401: t.Type; 403: t.Type; 500: t.Type; }; export declare function generateOtpDecoder(overrideTypes?: Partial> | t.Type | undefined): r.ResponseDecoder | r.IResponseType<401, A1, never> | r.IResponseType<403, A2, never> | r.IResponseType<500, A3, never>>; export declare const generateOtpDefaultDecoder: () => r.ResponseDecoder | r.IResponseType<403, undefined, never> | r.IResponseType<500, {} & { type?: string | undefined; title?: string | undefined; status?: 599 | (number & import("@pagopa/ts-commons/lib/numbers").IWithinRangeIntegerTag<100, 599>) | undefined; detail?: string | undefined; instance?: string | undefined; }, never> | r.IResponseType<200, { code: string & import("@pagopa/ts-commons/lib/strings").IPatternStringTag<"^[A-Z0-9]{9,13}$">; expires_at: Date; ttl: number; } & {}, never>>;