@cossistant/core 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_virtual/rolldown_runtime.js +1 -10
- package/client.d.ts +1 -1
- package/client.js +1 -1
- package/contact.d.ts +19 -22
- package/contact.d.ts.map +1 -1
- package/conversation.d.ts +311 -315
- package/conversation.d.ts.map +1 -1
- package/package.json +4 -2
- package/realtime-events.d.ts +320 -322
- package/realtime-events.d.ts.map +1 -1
- package/schemas.d.ts +100 -670
- package/schemas.d.ts.map +1 -1
- package/store/create-store.d.ts.map +1 -1
- package/store/seen-store.d.ts +1 -1
- package/store/timeline-items-store.js +1 -1
- package/timeline-item.d.ts +189 -193
- package/timeline-item.d.ts.map +1 -1
- package/types/src/api/timeline-item.js +120 -0
- package/types/src/api/timeline-item.js.map +1 -0
- package/types/src/enums.js.map +1 -0
- package/api.d.ts +0 -71
- package/api.d.ts.map +0 -1
- package/checks.d.ts +0 -189
- package/checks.d.ts.map +0 -1
- package/coerce.d.ts +0 -9
- package/coerce.d.ts.map +0 -1
- package/core.d.ts +0 -35
- package/core.d.ts.map +0 -1
- package/errors.d.ts +0 -121
- package/errors.d.ts.map +0 -1
- package/errors2.d.ts +0 -24
- package/errors2.d.ts.map +0 -1
- package/index2.d.ts +0 -4
- package/index3.d.ts +0 -1
- package/metadata.d.ts +0 -1
- package/openapi-generator.d.ts +0 -1
- package/openapi-generator2.d.ts +0 -1
- package/openapi-generator3.d.ts +0 -1
- package/openapi30.d.ts +0 -125
- package/openapi30.d.ts.map +0 -1
- package/openapi31.d.ts +0 -131
- package/openapi31.d.ts.map +0 -1
- package/packages/types/src/api/timeline-item.js +0 -122
- package/packages/types/src/api/timeline-item.js.map +0 -1
- package/packages/types/src/enums.js.map +0 -1
- package/parse.d.ts +0 -17
- package/parse.d.ts.map +0 -1
- package/registries.d.ts +0 -32
- package/registries.d.ts.map +0 -1
- package/schemas2.d.ts +0 -320
- package/schemas2.d.ts.map +0 -1
- package/schemas3.d.ts +0 -105
- package/schemas3.d.ts.map +0 -1
- package/specification-extension.d.ts +0 -9
- package/specification-extension.d.ts.map +0 -1
- package/standard-schema.d.ts +0 -59
- package/standard-schema.d.ts.map +0 -1
- package/util.d.ts +0 -41
- package/util.d.ts.map +0 -1
- package/versions.d.ts +0 -9
- package/versions.d.ts.map +0 -1
- package/zod-extensions.d.ts +0 -39
- package/zod-extensions.d.ts.map +0 -1
- /package/{packages/types → types}/src/enums.js +0 -0
package/schemas3.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { $strip } from "./schemas.js";
|
|
2
|
-
import { output } from "./core.js";
|
|
3
|
-
import { ZodArray, ZodDefault, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodString, ZodUnion } from "./schemas2.js";
|
|
4
|
-
|
|
5
|
-
//#region ../types/src/schemas.d.ts
|
|
6
|
-
|
|
7
|
-
declare const conversationSchema: ZodObject<{
|
|
8
|
-
id: ZodString;
|
|
9
|
-
title: ZodOptional<ZodString>;
|
|
10
|
-
createdAt: ZodString;
|
|
11
|
-
updatedAt: ZodString;
|
|
12
|
-
visitorId: ZodString;
|
|
13
|
-
websiteId: ZodString;
|
|
14
|
-
status: ZodDefault<ZodEnum<{
|
|
15
|
-
resolved: "resolved";
|
|
16
|
-
open: "open";
|
|
17
|
-
spam: "spam";
|
|
18
|
-
}>>;
|
|
19
|
-
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
20
|
-
lastTimelineItem: ZodOptional<ZodObject<{
|
|
21
|
-
id: ZodOptional<ZodString>;
|
|
22
|
-
conversationId: ZodString;
|
|
23
|
-
organizationId: ZodString;
|
|
24
|
-
visibility: ZodEnum<{
|
|
25
|
-
public: "public";
|
|
26
|
-
private: "private";
|
|
27
|
-
}>;
|
|
28
|
-
type: ZodEnum<{
|
|
29
|
-
message: "message";
|
|
30
|
-
event: "event";
|
|
31
|
-
identification: "identification";
|
|
32
|
-
}>;
|
|
33
|
-
text: ZodNullable<ZodString>;
|
|
34
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
35
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
36
|
-
type: ZodLiteral<"text">;
|
|
37
|
-
text: ZodString;
|
|
38
|
-
}, $strip>, ZodObject<{
|
|
39
|
-
type: ZodLiteral<"event">;
|
|
40
|
-
eventType: ZodEnum<{
|
|
41
|
-
assigned: "assigned";
|
|
42
|
-
unassigned: "unassigned";
|
|
43
|
-
participant_requested: "participant_requested";
|
|
44
|
-
participant_joined: "participant_joined";
|
|
45
|
-
participant_left: "participant_left";
|
|
46
|
-
status_changed: "status_changed";
|
|
47
|
-
priority_changed: "priority_changed";
|
|
48
|
-
tag_added: "tag_added";
|
|
49
|
-
tag_removed: "tag_removed";
|
|
50
|
-
resolved: "resolved";
|
|
51
|
-
reopened: "reopened";
|
|
52
|
-
visitor_blocked: "visitor_blocked";
|
|
53
|
-
visitor_unblocked: "visitor_unblocked";
|
|
54
|
-
visitor_identified: "visitor_identified";
|
|
55
|
-
}>;
|
|
56
|
-
actorUserId: ZodNullable<ZodString>;
|
|
57
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
58
|
-
targetUserId: ZodNullable<ZodString>;
|
|
59
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
60
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
61
|
-
}, $strip>, ZodObject<{
|
|
62
|
-
type: ZodLiteral<"image">;
|
|
63
|
-
url: ZodString;
|
|
64
|
-
mediaType: ZodString;
|
|
65
|
-
fileName: ZodOptional<ZodString>;
|
|
66
|
-
size: ZodOptional<ZodNumber>;
|
|
67
|
-
width: ZodOptional<ZodNumber>;
|
|
68
|
-
height: ZodOptional<ZodNumber>;
|
|
69
|
-
}, $strip>, ZodObject<{
|
|
70
|
-
type: ZodLiteral<"file">;
|
|
71
|
-
url: ZodString;
|
|
72
|
-
mediaType: ZodString;
|
|
73
|
-
fileName: ZodOptional<ZodString>;
|
|
74
|
-
size: ZodOptional<ZodNumber>;
|
|
75
|
-
}, $strip>, ZodObject<{
|
|
76
|
-
type: ZodLiteral<"metadata">;
|
|
77
|
-
source: ZodEnum<{
|
|
78
|
-
email: "email";
|
|
79
|
-
widget: "widget";
|
|
80
|
-
api: "api";
|
|
81
|
-
}>;
|
|
82
|
-
}, $strip>]>>;
|
|
83
|
-
userId: ZodNullable<ZodString>;
|
|
84
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
85
|
-
visitorId: ZodNullable<ZodString>;
|
|
86
|
-
createdAt: ZodString;
|
|
87
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
88
|
-
}, $strip>>;
|
|
89
|
-
}, $strip>;
|
|
90
|
-
type Conversation = output<typeof conversationSchema>;
|
|
91
|
-
declare const conversationSeenSchema: ZodObject<{
|
|
92
|
-
id: ZodString;
|
|
93
|
-
conversationId: ZodString;
|
|
94
|
-
userId: ZodNullable<ZodString>;
|
|
95
|
-
visitorId: ZodNullable<ZodString>;
|
|
96
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
97
|
-
lastSeenAt: ZodString;
|
|
98
|
-
createdAt: ZodString;
|
|
99
|
-
updatedAt: ZodString;
|
|
100
|
-
deletedAt: ZodNullable<ZodString>;
|
|
101
|
-
}, $strip>;
|
|
102
|
-
type ConversationSeen = output<typeof conversationSeenSchema>;
|
|
103
|
-
//#endregion
|
|
104
|
-
export { Conversation, ConversationSeen };
|
|
105
|
-
//# sourceMappingURL=schemas3.d.ts.map
|
package/schemas3.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas3.d.ts","names":[],"sources":["../../types/src/schemas.ts"],"sourcesContent":[],"mappings":";;;;;;cAkBa,oBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,SAAA,aAAA,UAAA,CAAA;IAAA,SAAA,aAAA,UAAA,CAAA;IAkBnB,SAAA,WAAY;IAEX,SAAA,aAUX,YAAA,UAAA,CAAA,CAAA;;;KAZU,YAAA,GAAe,cAAe;cAE7B,wBAAsB;;;;;;;;;;;AAAA,KAYvB,gBAAA,GAAmB,MAZI,CAAA,OAYW,sBAZX,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/openapi3-ts@4.5.0/node_modules/openapi3-ts/dist/model/specification-extension.d.ts
|
|
2
|
-
type IExtensionName = `x-${string}`;
|
|
3
|
-
type IExtensionType = any;
|
|
4
|
-
type ISpecificationExtension = {
|
|
5
|
-
[extensionName: IExtensionName]: IExtensionType;
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ISpecificationExtension };
|
|
9
|
-
//# sourceMappingURL=specification-extension.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"specification-extension.d.ts","names":["IExtensionName","IExtensionType","ISpecificationExtension","SpecificationExtension"],"sources":["../../../node_modules/.bun/openapi3-ts@4.5.0/node_modules/openapi3-ts/dist/model/specification-extension.d.ts"],"sourcesContent":["export type IExtensionName = `x-${string}`;\nexport type IExtensionType = any;\nexport type ISpecificationExtension = {\n [extensionName: IExtensionName]: IExtensionType;\n};\nexport declare class SpecificationExtension implements ISpecificationExtension {\n [extensionName: IExtensionName]: any;\n static isValidExtension(extensionName: string): boolean;\n getExtension(extensionName: string): any;\n addExtension(extensionName: string, payload: any): void;\n listExtensions(): string[];\n}\n"],"x_google_ignoreList":[0],"mappings":";KAAYA,cAAAA;AAAAA,KACAC,cAAAA,GADc,GAAA;AACdA,KACAC,uBAAAA,GADc;EACdA,CAAAA,aAAAA,EACQF,cADe,CAAA,EACEC,cAAjBD"}
|
package/standard-schema.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/standard-schema.d.cts
|
|
2
|
-
/** The Standard Schema interface. */
|
|
3
|
-
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
4
|
-
/** The Standard Schema properties. */
|
|
5
|
-
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
6
|
-
}
|
|
7
|
-
declare namespace StandardSchemaV1 {
|
|
8
|
-
/** The Standard Schema properties interface. */
|
|
9
|
-
interface Props<Input = unknown, Output = Input> {
|
|
10
|
-
/** The version number of the standard. */
|
|
11
|
-
readonly version: 1;
|
|
12
|
-
/** The vendor name of the schema library. */
|
|
13
|
-
readonly vendor: string;
|
|
14
|
-
/** Validates unknown input values. */
|
|
15
|
-
readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
|
|
16
|
-
/** Inferred types associated with the schema. */
|
|
17
|
-
readonly types?: Types<Input, Output> | undefined;
|
|
18
|
-
}
|
|
19
|
-
/** The result interface of the validate function. */
|
|
20
|
-
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
21
|
-
/** The result interface if validation succeeds. */
|
|
22
|
-
interface SuccessResult<Output> {
|
|
23
|
-
/** The typed output value. */
|
|
24
|
-
readonly value: Output;
|
|
25
|
-
/** The non-existent issues. */
|
|
26
|
-
readonly issues?: undefined;
|
|
27
|
-
}
|
|
28
|
-
/** The result interface if validation fails. */
|
|
29
|
-
interface FailureResult {
|
|
30
|
-
/** The issues of failed validation. */
|
|
31
|
-
readonly issues: ReadonlyArray<Issue>;
|
|
32
|
-
}
|
|
33
|
-
/** The issue interface of the failure output. */
|
|
34
|
-
interface Issue {
|
|
35
|
-
/** The error message of the issue. */
|
|
36
|
-
readonly message: string;
|
|
37
|
-
/** The path of the issue, if any. */
|
|
38
|
-
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
39
|
-
}
|
|
40
|
-
/** The path segment interface of the issue. */
|
|
41
|
-
interface PathSegment {
|
|
42
|
-
/** The key representing a path segment. */
|
|
43
|
-
readonly key: PropertyKey;
|
|
44
|
-
}
|
|
45
|
-
/** The Standard Schema types interface. */
|
|
46
|
-
interface Types<Input = unknown, Output = Input> {
|
|
47
|
-
/** The input type of the schema. */
|
|
48
|
-
readonly input: Input;
|
|
49
|
-
/** The output type of the schema. */
|
|
50
|
-
readonly output: Output;
|
|
51
|
-
}
|
|
52
|
-
/** Infers the input type of a Standard Schema. */
|
|
53
|
-
type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
54
|
-
/** Infers the output type of a Standard Schema. */
|
|
55
|
-
type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
export { StandardSchemaV1 };
|
|
59
|
-
//# sourceMappingURL=standard-schema.d.ts.map
|
package/standard-schema.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"standard-schema.d.ts","names":["StandardSchemaV1","Input","Output","Props","Schema","Result","Promise","Types","SuccessResult","FailureResult","Issue","ReadonlyArray","PropertyKey","PathSegment","NonNullable"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/standard-schema.d.cts"],"sourcesContent":["/** The Standard Schema interface. */\nexport interface StandardSchemaV1<Input = unknown, Output = Input> {\n /** The Standard Schema properties. */\n readonly \"~standard\": StandardSchemaV1.Props<Input, Output>;\n}\nexport declare namespace StandardSchemaV1 {\n /** The Standard Schema properties interface. */\n interface Props<Input = unknown, Output = Input> {\n /** The version number of the standard. */\n readonly version: 1;\n /** The vendor name of the schema library. */\n readonly vendor: string;\n /** Validates unknown input values. */\n readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;\n /** Inferred types associated with the schema. */\n readonly types?: Types<Input, Output> | undefined;\n }\n /** The result interface of the validate function. */\n type Result<Output> = SuccessResult<Output> | FailureResult;\n /** The result interface if validation succeeds. */\n interface SuccessResult<Output> {\n /** The typed output value. */\n readonly value: Output;\n /** The non-existent issues. */\n readonly issues?: undefined;\n }\n /** The result interface if validation fails. */\n interface FailureResult {\n /** The issues of failed validation. */\n readonly issues: ReadonlyArray<Issue>;\n }\n /** The issue interface of the failure output. */\n interface Issue {\n /** The error message of the issue. */\n readonly message: string;\n /** The path of the issue, if any. */\n readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;\n }\n /** The path segment interface of the issue. */\n interface PathSegment {\n /** The key representing a path segment. */\n readonly key: PropertyKey;\n }\n /** The Standard Schema types interface. */\n interface Types<Input = unknown, Output = Input> {\n /** The input type of the schema. */\n readonly input: Input;\n /** The output type of the schema. */\n readonly output: Output;\n }\n /** Infers the input type of a Standard Schema. */\n type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema[\"~standard\"][\"types\"]>[\"input\"];\n /** Infers the output type of a Standard Schema. */\n type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema[\"~standard\"][\"types\"]>[\"output\"];\n}\n"],"x_google_ignoreList":[0],"mappings":";;AACiBA,UAAAA,gBAAgBC,CAAAA,QAAAC,OAAA,EAAA,SAA2BD,KAA3B,CAAA,CAAA;EAA2BA;EAEXA,SAAAA,WAAAA,EAAvBD,gBAAAA,CAAiBG,KAAMF,CAAAA,KAAAA,EAAOC,MAAPD,CAAAA;;AAAvBD,kBAEDA,gBAAAA,CAFkBG;EAAK;EAEvBH,UAAAA,KAAAA,CAAAA,QAAgB,OAAAC,EAAAA,SAEKA,KAFLG,CAAAA,CAAAA;IAEKH;IAMQC,SAAAA,OAAAA,EAAAA,CAAAA;IAAPG;IAAgCH,SAAAA,MAAAA,EAAAA,MAAAA;IAAPG;IAARC,SAAAA,QAAAA,EAAAA,CAAAA,KAAAA,EAAAA,OAAAA,EAAAA,GAAjBD,MAAiBC,CAAVJ,MAAUI,CAAAA,GAAAA,OAAAA,CAAQD,MAARC,CAAeJ,MAAfI,CAAAA,CAAAA;IAEjCL;IAAOC,SAAAA,KAAAA,CAAAA,EAAbK,KAAaL,CAAPD,KAAOC,EAAAA,MAAAA,CAAAA,GAAAA,SAAAA;EAAbK;EAGeL;EAAdM,KAAAA,MAAAA,CAAAA,MAAAA,CAAAA,GAAAA,aAAAA,CAAcN,MAAdM,CAAAA,GAAwBC,aAAxBD;EAAwBC;EAI1BP,UAAAA,aAAAA,CAAAA,MAAAA,CAAAA,CAAAA;IAOeQ;IAAdC,SAAAA,KAAAA,EAPDT,MAOCS;IAOaC;IAAcC,SAAAA,MAAAA,CAAAA,EAAAA,SAAAA;EAA5BF;EAKFC;EAGwBX,UAAAA,aAAAA,CAAAA;IAEtBA;IAECC,SAAAA,MAAAA,EAnBAS,aAmBAT,CAnBcQ,KAmBdR,CAAAA;EAGUF;EAAgCI;EAAZU,UAAAA,KAAAA,CAAAA;IAEnBd;IAAgCI,SAAAA,OAAAA,EAAAA,MAAAA;IAAZU;IAAW,SAAA,IAAA,CAAA,EAjB3CH,aAiB2C,CAjB7BC,WAiB6B,GAjBfC,WAiBe,CAAA,GAAA,SAAA;;;;;kBAZ7CD;;;4CAGwBX;;oBAEtBA;;qBAECC;;;iCAGUF,oBAAoBc,YAAYV;;kCAE/BJ,oBAAoBc,YAAYV"}
|
package/util.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/util.d.cts
|
|
2
|
-
|
|
3
|
-
type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
|
|
4
|
-
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
5
|
-
type Omit<T, K$1 extends keyof T> = Pick<T, Exclude<keyof T, K$1>>;
|
|
6
|
-
type MakePartial<T, K$1 extends keyof T> = Omit<T, K$1> & InexactPartial<Pick<T, K$1>>;
|
|
7
|
-
type NoUndefined<T> = T extends undefined ? never : T;
|
|
8
|
-
type LoosePartial<T extends object> = InexactPartial<T> & {
|
|
9
|
-
[k: string]: unknown;
|
|
10
|
-
};
|
|
11
|
-
type Mask<Keys extends PropertyKey> = { [K in Keys]?: true };
|
|
12
|
-
type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
|
|
13
|
-
type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
14
|
-
readonly [Symbol.toStringTag]: string;
|
|
15
|
-
} | Date | Error | Generator | Promise<unknown> | RegExp;
|
|
16
|
-
type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
|
|
17
|
-
type SomeObject = Record<PropertyKey, any>;
|
|
18
|
-
type Identity<T> = T;
|
|
19
|
-
type Flatten<T> = Identity<{ [k in keyof T]: T[k] }>;
|
|
20
|
-
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
21
|
-
type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] }>;
|
|
22
|
-
type AnyFunc = (...args: any[]) => any;
|
|
23
|
-
type MaybeAsync<T> = T | Promise<T>;
|
|
24
|
-
type EnumValue = string | number;
|
|
25
|
-
type EnumLike = Readonly<Record<string, EnumValue>>;
|
|
26
|
-
type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k }>;
|
|
27
|
-
type Literal = string | number | bigint | boolean | null | undefined;
|
|
28
|
-
type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
29
|
-
type HasLength = {
|
|
30
|
-
length: number;
|
|
31
|
-
};
|
|
32
|
-
type Numeric = number | bigint | Date;
|
|
33
|
-
type PropValues = Record<string, Set<Primitive>>;
|
|
34
|
-
type PrimitiveSet = Set<Primitive>;
|
|
35
|
-
type EmptyToNever<T> = keyof T extends never ? never : T;
|
|
36
|
-
declare abstract class Class {
|
|
37
|
-
constructor(..._args: any[]);
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
export { AnyFunc, Class, EmptyToNever, EnumLike, Extend, Flatten, HasLength, IsAny, JWTAlgorithm, Literal, LoosePartial, MakePartial, MakeReadonly, Mask, MaybeAsync, NoUndefined, Numeric, Prettify, Primitive, PrimitiveSet, PropValues, ToEnum };
|
|
41
|
-
//# sourceMappingURL=util.d.ts.map
|
package/util.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","names":["checks","$ZodConfig","errors","schemas","JSONType","JWTAlgorithm","HashAlgorithm","HashEncoding","HashFormat","IPVersion","MimeTypes","ParsedTypes","AssertEqual","V","T","U","AssertNotEqual","AssertExtends","IsAny","Omit","K","Exclude","Pick","OmitKeys","MakePartial","InexactPartial","MakeRequired","Required","Exactly","X","Record","NoUndefined","Whatever","LoosePartial","Mask","Keys","PropertyKey","Writeable","P","EmptyObject","BuiltIn","Symbol","toStringTag","Date","Error","Generator","Promise","RegExp","MakeReadonly","Map","ReadonlyMap","Set","ReadonlySet","Head","Tail","Array","ReadonlyArray","Readonly","SomeObject","Identity","Flatten","k","Mapped","Prettify","NoNeverKeys","NoNever","Extend","A","B","TupleItems","SomeType","AnyFunc","IsProp","MaybeAsync","KeyOf","OmitIndexSignature","ExtractIndexSignature","SchemaClass","EnumValue","EnumLike","ToEnum","KeysEnum","KeysArray","Literal","LiteralArray","Primitive","PrimitiveArray","HasSize","HasLength","Numeric","SafeParseResult","SafeParseSuccess","SafeParseError","$ZodError","PropValues","PrimitiveSet","assertEqual","assertNotEqual","assertIs","assertNever","assert","getEnumValues","joinValues","jsonStringifyReplacer","cached","nullish","cleanRegex","floatSafeRemainder","defineLazy","objectClone","assignProp","mergeDefs","cloneDef","$ZodType","getElementAtPath","promiseAllObject","Awaited","randomString","esc","captureStackTrace","Function","isObject","allowsEval","isPlainObject","shallowClone","numKeys","getParsedType","propertyKeyTypes","primitiveTypes","escapeRegex","clone","EmptyToNever","Normalize","normalizeParams","createTransparentProxy","stringifyPrimitive","optionalKeys","$ZodShape","CleanKey","ToCleanMap","$ZodLooseShape","FromCleanMap","NUMBER_FORMAT_RANGES","$ZodNumberFormats","BIGINT_FORMAT_RANGES","$ZodBigIntFormats","pick","$ZodObject","omit","extend","safeExtend","merge","partial","$ZodOptional","required","$ZodNonOptional","Constructor","Def","aborted","ParsePayload","prefixIssues","$ZodRawIssue","unwrapMessage","finalizeIssue","ParseContextInternal","$ZodIssue","getSizableOrigin","getLengthableOrigin","issue","cleanEnum","base64ToUint8Array","Uint8Array","InstanceType","uint8ArrayToBase64","base64urlToUint8Array","uint8ArrayToBase64url","hexToUint8Array","uint8ArrayToHex","Class"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/util.d.cts"],"sourcesContent":["import type * as checks from \"./checks.cjs\";\nimport type { $ZodConfig } from \"./core.cjs\";\nimport type * as errors from \"./errors.cjs\";\nimport type * as schemas from \"./schemas.cjs\";\nexport type JSONType = string | number | boolean | null | JSONType[] | {\n [key: string]: JSONType;\n};\nexport type JWTAlgorithm = \"HS256\" | \"HS384\" | \"HS512\" | \"RS256\" | \"RS384\" | \"RS512\" | \"ES256\" | \"ES384\" | \"ES512\" | \"PS256\" | \"PS384\" | \"PS512\" | \"EdDSA\" | (string & {});\nexport type HashAlgorithm = \"md5\" | \"sha1\" | \"sha256\" | \"sha384\" | \"sha512\";\nexport type HashEncoding = \"hex\" | \"base64\" | \"base64url\";\nexport type HashFormat = `${HashAlgorithm}_${HashEncoding}`;\nexport type IPVersion = \"v4\" | \"v6\";\nexport type MimeTypes = \"application/json\" | \"application/xml\" | \"application/x-www-form-urlencoded\" | \"application/javascript\" | \"application/pdf\" | \"application/zip\" | \"application/vnd.ms-excel\" | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\" | \"application/msword\" | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\" | \"application/vnd.ms-powerpoint\" | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\" | \"application/octet-stream\" | \"application/graphql\" | \"text/html\" | \"text/plain\" | \"text/css\" | \"text/javascript\" | \"text/csv\" | \"image/png\" | \"image/jpeg\" | \"image/gif\" | \"image/svg+xml\" | \"image/webp\" | \"audio/mpeg\" | \"audio/ogg\" | \"audio/wav\" | \"audio/webm\" | \"video/mp4\" | \"video/webm\" | \"video/ogg\" | \"font/woff\" | \"font/woff2\" | \"font/ttf\" | \"font/otf\" | \"multipart/form-data\" | (string & {});\nexport type ParsedTypes = \"string\" | \"number\" | \"bigint\" | \"boolean\" | \"symbol\" | \"undefined\" | \"object\" | \"function\" | \"file\" | \"date\" | \"array\" | \"map\" | \"set\" | \"nan\" | \"null\" | \"promise\";\nexport type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;\nexport type AssertNotEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? false : true;\nexport type AssertExtends<T, U> = T extends U ? T : never;\nexport type IsAny<T> = 0 extends 1 & T ? true : false;\nexport type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\nexport type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;\nexport type MakePartial<T, K extends keyof T> = Omit<T, K> & InexactPartial<Pick<T, K>>;\nexport type MakeRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;\nexport type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;\nexport type NoUndefined<T> = T extends undefined ? never : T;\nexport type Whatever = {} | undefined | null;\nexport type LoosePartial<T extends object> = InexactPartial<T> & {\n [k: string]: unknown;\n};\nexport type Mask<Keys extends PropertyKey> = {\n [K in Keys]?: true;\n};\nexport type Writeable<T> = {\n -readonly [P in keyof T]: T[P];\n} & {};\nexport type InexactPartial<T> = {\n [P in keyof T]?: T[P] | undefined;\n};\nexport type EmptyObject = Record<string, never>;\nexport type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {\n readonly [Symbol.toStringTag]: string;\n} | Date | Error | Generator | Promise<unknown> | RegExp;\nexport type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;\nexport type SomeObject = Record<PropertyKey, any>;\nexport type Identity<T> = T;\nexport type Flatten<T> = Identity<{\n [k in keyof T]: T[k];\n}>;\nexport type Mapped<T> = {\n [k in keyof T]: T[k];\n};\nexport type Prettify<T> = {\n [K in keyof T]: T[K];\n} & {};\nexport type NoNeverKeys<T> = {\n [k in keyof T]: [T[k]] extends [never] ? never : k;\n}[keyof T];\nexport type NoNever<T> = Identity<{\n [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never;\n}>;\nexport type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : {\n [K in keyof A as K extends keyof B ? never : K]: A[K];\n} & {\n [K in keyof B]: B[K];\n}>;\nexport type TupleItems = ReadonlyArray<schemas.SomeType>;\nexport type AnyFunc = (...args: any[]) => any;\nexport type IsProp<T, K extends keyof T> = T[K] extends AnyFunc ? never : K;\nexport type MaybeAsync<T> = T | Promise<T>;\nexport type KeyOf<T> = keyof OmitIndexSignature<T>;\nexport type OmitIndexSignature<T> = {\n [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K];\n};\nexport type ExtractIndexSignature<T> = {\n [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K];\n};\nexport type Keys<T extends object> = keyof OmitIndexSignature<T>;\nexport type SchemaClass<T extends schemas.SomeType> = {\n new (def: T[\"_zod\"][\"def\"]): T;\n};\nexport type EnumValue = string | number;\nexport type EnumLike = Readonly<Record<string, EnumValue>>;\nexport type ToEnum<T extends EnumValue> = Flatten<{\n [k in T]: k;\n}>;\nexport type KeysEnum<T extends object> = ToEnum<Exclude<keyof T, symbol>>;\nexport type KeysArray<T extends object> = Flatten<(keyof T & string)[]>;\nexport type Literal = string | number | bigint | boolean | null | undefined;\nexport type LiteralArray = Array<Literal>;\nexport type Primitive = string | number | symbol | bigint | boolean | null | undefined;\nexport type PrimitiveArray = Array<Primitive>;\nexport type HasSize = {\n size: number;\n};\nexport type HasLength = {\n length: number;\n};\nexport type Numeric = number | bigint | Date;\nexport type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T>;\nexport type SafeParseSuccess<T> = {\n success: true;\n data: T;\n error?: never;\n};\nexport type SafeParseError<T> = {\n success: false;\n data?: never;\n error: errors.$ZodError<T>;\n};\nexport type PropValues = Record<string, Set<Primitive>>;\nexport type PrimitiveSet = Set<Primitive>;\nexport declare function assertEqual<A, B>(val: AssertEqual<A, B>): AssertEqual<A, B>;\nexport declare function assertNotEqual<A, B>(val: AssertNotEqual<A, B>): AssertNotEqual<A, B>;\nexport declare function assertIs<T>(_arg: T): void;\nexport declare function assertNever(_x: never): never;\nexport declare function assert<T>(_: any): asserts _ is T;\nexport declare function getEnumValues(entries: EnumLike): EnumValue[];\nexport declare function joinValues<T extends Primitive[]>(array: T, separator?: string): string;\nexport declare function jsonStringifyReplacer(_: string, value: any): any;\nexport declare function cached<T>(getter: () => T): {\n value: T;\n};\nexport declare function nullish(input: any): boolean;\nexport declare function cleanRegex(source: string): string;\nexport declare function floatSafeRemainder(val: number, step: number): number;\nexport declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;\nexport declare function objectClone(obj: object): any;\nexport declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;\nexport declare function mergeDefs(...defs: Record<string, any>[]): any;\nexport declare function cloneDef(schema: schemas.$ZodType): any;\nexport declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;\nexport declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{\n [k in keyof T]: Awaited<T[k]>;\n}>;\nexport declare function randomString(length?: number): string;\nexport declare function esc(str: string): string;\nexport declare const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void;\nexport declare function isObject(data: any): data is Record<PropertyKey, unknown>;\nexport declare const allowsEval: {\n value: boolean;\n};\nexport declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;\nexport declare function shallowClone(o: any): any;\nexport declare function numKeys(data: any): number;\nexport declare const getParsedType: (data: any) => ParsedTypes;\nexport declare const propertyKeyTypes: Set<string>;\nexport declare const primitiveTypes: Set<string>;\nexport declare function escapeRegex(str: string): string;\nexport declare function clone<T extends schemas.$ZodType>(inst: T, def?: T[\"_zod\"][\"def\"], params?: {\n parent: boolean;\n}): T;\nexport type EmptyToNever<T> = keyof T extends never ? never : T;\nexport type Normalize<T> = T extends undefined ? never : T extends Record<any, any> ? Flatten<{\n [k in keyof Omit<T, \"error\" | \"message\">]: T[k];\n} & (\"error\" extends keyof T ? {\n error?: Exclude<T[\"error\"], string>;\n} : unknown)> : never;\nexport declare function normalizeParams<T>(_params: T): Normalize<T>;\nexport declare function createTransparentProxy<T extends object>(getter: () => T): T;\nexport declare function stringifyPrimitive(value: any): string;\nexport declare function optionalKeys(shape: schemas.$ZodShape): string[];\nexport type CleanKey<T extends PropertyKey> = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T;\nexport type ToCleanMap<T extends schemas.$ZodLooseShape> = {\n [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k;\n};\nexport type FromCleanMap<T extends schemas.$ZodLooseShape> = {\n [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k;\n};\nexport declare const NUMBER_FORMAT_RANGES: Record<checks.$ZodNumberFormats, [number, number]>;\nexport declare const BIGINT_FORMAT_RANGES: Record<checks.$ZodBigIntFormats, [bigint, bigint]>;\nexport declare function pick(schema: schemas.$ZodObject, mask: Record<string, unknown>): any;\nexport declare function omit(schema: schemas.$ZodObject, mask: object): any;\nexport declare function extend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;\nexport declare function safeExtend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;\nexport declare function merge(a: schemas.$ZodObject, b: schemas.$ZodObject): any;\nexport declare function partial(Class: SchemaClass<schemas.$ZodOptional> | null, schema: schemas.$ZodObject, mask: object | undefined): any;\nexport declare function required(Class: SchemaClass<schemas.$ZodNonOptional>, schema: schemas.$ZodObject, mask: object | undefined): any;\nexport type Constructor<T, Def extends any[] = any[]> = new (...args: Def) => T;\nexport declare function aborted(x: schemas.ParsePayload, startIndex?: number): boolean;\nexport declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIssue[]): errors.$ZodRawIssue[];\nexport declare function unwrapMessage(message: string | {\n message: string;\n} | undefined | null): string | undefined;\nexport declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;\nexport declare function getSizableOrigin(input: any): \"set\" | \"map\" | \"file\" | \"unknown\";\nexport declare function getLengthableOrigin(input: any): \"array\" | \"string\" | \"unknown\";\nexport declare function issue(_iss: string, input: any, inst: any): errors.$ZodRawIssue;\nexport declare function issue(_iss: errors.$ZodRawIssue): errors.$ZodRawIssue;\nexport declare function cleanEnum(obj: Record<string, EnumValue>): EnumValue[];\nexport declare function base64ToUint8Array(base64: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToBase64(bytes: Uint8Array): string;\nexport declare function base64urlToUint8Array(base64url: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToBase64url(bytes: Uint8Array): string;\nexport declare function hexToUint8Array(hex: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToHex(bytes: Uint8Array): string;\nexport declare abstract class Class {\n constructor(..._args: any[]);\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAkBkEoB,KAXtDf,YAAAA,GAWsDe,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,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AAAA,GAAAA,SAAAA;AAAMhD,KA0BViE,SAAAA,GA1BUjE,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,OAAAA,GAAAA,IAAAA,GAAAA,SAAAA;AAKMN,KA0BhB0E,SAAAA,GA1BgB1E;EAAYA,MAAAA,EAAAA,MAAAA;CAARgC;AAAO,KA6B3B2C,OAAAA,GA7B2B,MAAA,GAAA,MAAA,GA6BC9C,IA7BD;AAcU,KA2BrCmD,UAAAA,GAAahE,MA3BwB,CAAA,MAAA,EA2BTqB,GA3BS,CA2BLkC,SA3BK,CAAA,CAAA;AAKrCF,KAuBAY,YAAAA,GAAe5C,GAvBR,CAuBYkC,SAvBZ,CAAA;KAgEP8C,wBAAwBrH,0BAA0BA;uBA4ChCoK,KAAAA"}
|
package/versions.d.ts
DELETED
package/versions.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","names":["version"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/versions.d.cts"],"sourcesContent":["export declare const version: {\n readonly major: 4;\n readonly minor: 1;\n readonly patch: number;\n};\n"],"x_google_ignoreList":[0],"mappings":";cAAqBA;EAAAA,SAAAA,KAIpB,EAAA,CAAA"}
|
package/zod-extensions.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ParameterObject, SchemaObject } from "./openapi30.js";
|
|
2
|
-
import { ParameterObject as ParameterObject$1, SchemaObject as SchemaObject$1 } from "./openapi31.js";
|
|
3
|
-
import { $ZodType, $ZodTypeInternals } from "./schemas.js";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.bun/@asteasolutions+zod-to-openapi@8.1.0+5954958163efbb2a/node_modules/@asteasolutions/zod-to-openapi/dist/zod-extensions.d.ts
|
|
6
|
-
type ExampleValue<T> = T extends Date ? string : T;
|
|
7
|
-
type ParameterObject$2 = ParameterObject | ParameterObject$1;
|
|
8
|
-
type SchemaObject$2 = SchemaObject | SchemaObject$1;
|
|
9
|
-
type UnionPreferredType = 'oneOf' | 'anyOf';
|
|
10
|
-
type ZodOpenAPIMetadata<T = any, E = ExampleValue<T>> = Omit<SchemaObject$2, 'example' | 'examples' | 'default'> & {
|
|
11
|
-
param?: Partial<ParameterObject$2> & {
|
|
12
|
-
example?: E;
|
|
13
|
-
};
|
|
14
|
-
example?: E;
|
|
15
|
-
examples?: E[];
|
|
16
|
-
default?: T;
|
|
17
|
-
_internal?: never;
|
|
18
|
-
};
|
|
19
|
-
interface OpenApiOptions {
|
|
20
|
-
unionPreferredType?: UnionPreferredType;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* Since this commit https://github.com/colinhacks/zod/commit/6707ebb14c885b1c577ce64a240475e26e3ff182
|
|
25
|
-
* zod started preserving metadata from functions. Since the ZodObject type contains some function types
|
|
26
|
-
* that also have generics this leads to a too deep type instantiation. We only use this type internally
|
|
27
|
-
* so I've opted to type the _internal metadata in the registry as any. However the Metadata.getInternalMetadata
|
|
28
|
-
* method has an explicit return type of ZodOpenAPIInternalMetadata.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
declare module 'zod' {
|
|
32
|
-
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
33
|
-
openapi(metadata: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;
|
|
34
|
-
openapi(refId: string, metadata?: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { ZodOpenAPIMetadata };
|
|
39
|
-
//# sourceMappingURL=zod-extensions.d.ts.map
|
package/zod-extensions.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod-extensions.d.ts","names":["ParameterObject","ParameterObject30","SchemaObject","SchemaObject30","ParameterObject31","SchemaObject31","ZodObject","z","core","ExampleValue","T","Date","UnionPreferredType","ZodOpenAPIMetadata","E","Omit","Partial","OpenApiOptions","InternalUserOnlyZodOpenAPIInternalMetadata","ZodOpenApiFullMetadataForRegistry","ZodOpenAPIInternalMetadata","ZodOpenApiFullMetadata","_0","Output","Input","Internals","$ZodTypeInternals","$ZodType","sideEffect","extendZodWithOpenApi"],"sources":["../../../node_modules/.bun/@asteasolutions+zod-to-openapi@8.1.0+5954958163efbb2a/node_modules/@asteasolutions/zod-to-openapi/dist/zod-extensions.d.ts"],"sourcesContent":["import { ParameterObject as ParameterObject30, SchemaObject as SchemaObject30 } from 'openapi3-ts/oas30';\nimport { ParameterObject as ParameterObject31, SchemaObject as SchemaObject31 } from 'openapi3-ts/oas31';\nimport type { ZodObject } from 'zod';\nimport { z } from 'zod';\nimport type { core } from 'zod';\ntype ExampleValue<T> = T extends Date ? string : T;\ntype ParameterObject = ParameterObject30 | ParameterObject31;\ntype SchemaObject = SchemaObject30 | SchemaObject31;\nexport type UnionPreferredType = 'oneOf' | 'anyOf';\nexport type ZodOpenAPIMetadata<T = any, E = ExampleValue<T>> = Omit<SchemaObject, 'example' | 'examples' | 'default'> & {\n param?: Partial<ParameterObject> & {\n example?: E;\n };\n example?: E;\n examples?: E[];\n default?: T;\n _internal?: never;\n};\ninterface OpenApiOptions {\n unionPreferredType?: UnionPreferredType;\n}\n/**\n *\n * Since this commit https://github.com/colinhacks/zod/commit/6707ebb14c885b1c577ce64a240475e26e3ff182\n * zod started preserving metadata from functions. Since the ZodObject type contains some function types\n * that also have generics this leads to a too deep type instantiation. We only use this type internally\n * so I've opted to type the _internal metadata in the registry as any. However the Metadata.getInternalMetadata\n * method has an explicit return type of ZodOpenAPIInternalMetadata.\n */\ninterface InternalUserOnlyZodOpenAPIInternalMetadata extends OpenApiOptions {\n refId?: string;\n extendedFrom?: {\n refId: string;\n schema: any;\n };\n}\n/**\n *\n * The metadata that is received from the registry should be obtained using the Metadata methods that have an\n * explicit return type of ZodOpenApiFullMetadata or ZodOpenAPIInternalMetadata.\n *\n * @deprecated Do not use for anything other than the registry. See the comment above for more details.\n */\nexport interface ZodOpenApiFullMetadataForRegistry<T = any> extends Omit<ZodOpenAPIMetadata<T>, '_internal'> {\n _internal?: InternalUserOnlyZodOpenAPIInternalMetadata;\n [k: string]: unknown;\n}\nexport interface ZodOpenAPIInternalMetadata extends InternalUserOnlyZodOpenAPIInternalMetadata {\n extendedFrom?: {\n refId: string;\n schema: ZodObject;\n };\n}\nexport interface ZodOpenApiFullMetadata<T = any> extends ZodOpenApiFullMetadataForRegistry<T> {\n _internal?: ZodOpenAPIInternalMetadata;\n}\ndeclare module 'zod' {\n interface ZodType<out Output = unknown, out Input = unknown, out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>> extends core.$ZodType<Output, Input, Internals> {\n openapi(metadata: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;\n openapi(refId: string, metadata?: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;\n }\n}\nexport declare function extendZodWithOpenApi(zod: typeof z): void;\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAIgC,KAC3BS,YAAAA,CAAAA,CAAY,CAAA,GAAMC,CAAN,SAAgBC,IAAhB,GAAA,MAAA,GAAgCD,CAAhC;KACZV,iBAAAA,GAAkBC,eADAS,GACoBN,iBADpBM;KAElBR,cAAAA,GAAeC,YAFaQ,GAEIN,cAFJM;AAAgBD,KAGrCE,kBAAAA,GAHqCF,OAAAA,GAAAA,OAAAA;AAAC,KAItCG,kBAJsC,CAAA,IAAA,GAAA,EAAA,IAINJ,YAJM,CAIOC,CAJP,CAAA,CAAA,GAIaK,IAJb,CAIkBb,cAJlB,EAAA,SAAA,GAAA,UAAA,GAAA,SAAA,CAAA,GAAA;EAC7CF,KAAAA,CAAAA,EAIOgB,OAJPhB,CAIeA,iBAJA,CAAA,GAAGC;IAClBC,OAAAA,CAAAA,EAIaY,CAJbZ;EACOU,CAAAA;EACAC,OAAAA,CAAAA,EAIEC,CAJFD;EAA6CH,QAAAA,CAAAA,EAK1CI,CAL0CJ,EAAAA;EAAbD,OAAAA,CAAAA,EAM9BC,CAN8BD;EAAwBP,SAAAA,CAAAA,EAAAA,KAAAA;CAALa;UASrDE,cAAAA,CARUjB;EAARgB,kBAAAA,CAAAA,EASaJ,kBATbI;;;;;;AAOV;AAsCD;;;;;qFAEsFR,kBAAuBe,QAAQC,SAAShB,kBAAuBe,QAAQC,gBAAgBhB,SAAce,QAAQC,OAAOC;sBACjLT,QAAQH,mBAAmBW,mBAAmBP;sCAC9BD,QAAQH,mBAAmBW,mBAAmBP"}
|
|
File without changes
|