@cossistant/types 0.0.7 → 0.0.8
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/api/common.d.ts +47 -0
- package/api/common.d.ts.map +1 -0
- package/api/contact.d.ts +140 -0
- package/api/contact.d.ts.map +1 -0
- package/api/conversation.d.ts +95 -0
- package/api/conversation.d.ts.map +1 -0
- package/api/organization.d.ts +17 -0
- package/{dist/api → api}/organization.d.ts.map +1 -1
- package/api/timeline-item.d.ts +274 -0
- package/api/timeline-item.d.ts.map +1 -0
- package/api/upload.d.ts +103 -0
- package/api/upload.d.ts.map +1 -0
- package/api/user.d.ts +29 -0
- package/api/user.d.ts.map +1 -0
- package/api/visitor.d.ts +127 -0
- package/api/visitor.d.ts.map +1 -0
- package/api/website.d.ts +194 -0
- package/api/website.d.ts.map +1 -0
- package/api.d.ts +71 -0
- package/api.d.ts.map +1 -0
- package/checks.d.ts +189 -0
- package/checks.d.ts.map +1 -0
- package/coerce.d.ts +9 -0
- package/coerce.d.ts.map +1 -0
- package/core.d.ts +35 -0
- package/core.d.ts.map +1 -0
- package/errors.d.ts +121 -0
- package/errors.d.ts.map +1 -0
- package/errors2.d.ts +24 -0
- package/errors2.d.ts.map +1 -0
- package/index2.d.ts +4 -0
- package/index3.d.ts +1 -0
- package/metadata.d.ts +1 -0
- package/openapi-generator.d.ts +1 -0
- package/openapi-generator2.d.ts +1 -0
- package/openapi-generator3.d.ts +1 -0
- package/openapi30.d.ts +125 -0
- package/openapi30.d.ts.map +1 -0
- package/openapi31.d.ts +131 -0
- package/openapi31.d.ts.map +1 -0
- package/package.json +12 -16
- package/parse.d.ts +17 -0
- package/parse.d.ts.map +1 -0
- package/realtime-events.d.ts +138 -0
- package/realtime-events.d.ts.map +1 -0
- package/registries.d.ts +32 -0
- package/registries.d.ts.map +1 -0
- package/schemas.d.ts +46 -0
- package/schemas.d.ts.map +1 -0
- package/schemas2.d.ts +685 -0
- package/schemas2.d.ts.map +1 -0
- package/schemas3.d.ts +325 -0
- package/schemas3.d.ts.map +1 -0
- package/specification-extension.d.ts +9 -0
- package/specification-extension.d.ts.map +1 -0
- package/standard-schema.d.ts +59 -0
- package/standard-schema.d.ts.map +1 -0
- package/trpc/contact.d.ts +70 -0
- package/trpc/contact.d.ts.map +1 -0
- package/trpc/conversation.d.ts +141 -0
- package/trpc/conversation.d.ts.map +1 -0
- package/trpc/visitor.d.ts +55 -0
- package/trpc/visitor.d.ts.map +1 -0
- package/util.d.ts +41 -0
- package/util.d.ts.map +1 -0
- package/versions.d.ts +9 -0
- package/versions.d.ts.map +1 -0
- package/zod-extensions.d.ts +39 -0
- package/zod-extensions.d.ts.map +1 -0
- package/dist/api/common.d.ts +0 -44
- package/dist/api/common.d.ts.map +0 -1
- package/dist/api/contact.d.ts +0 -138
- package/dist/api/contact.d.ts.map +0 -1
- package/dist/api/conversation.d.ts +0 -91
- package/dist/api/conversation.d.ts.map +0 -1
- package/dist/api/organization.d.ts +0 -15
- package/dist/api/timeline-item.d.ts +0 -270
- package/dist/api/timeline-item.d.ts.map +0 -1
- package/dist/api/upload.d.ts +0 -100
- package/dist/api/upload.d.ts.map +0 -1
- package/dist/api/user.d.ts +0 -27
- package/dist/api/user.d.ts.map +0 -1
- package/dist/api/visitor.d.ts +0 -125
- package/dist/api/visitor.d.ts.map +0 -1
- package/dist/api/website.d.ts +0 -192
- package/dist/api/website.d.ts.map +0 -1
- package/dist/realtime-events.d.ts +0 -136
- package/dist/realtime-events.d.ts.map +0 -1
- package/dist/schemas.d.ts +0 -44
- package/dist/schemas.d.ts.map +0 -1
- package/dist/trpc/contact.d.ts +0 -68
- package/dist/trpc/contact.d.ts.map +0 -1
- package/dist/trpc/conversation.d.ts +0 -139
- package/dist/trpc/conversation.d.ts.map +0 -1
- package/dist/trpc/visitor.d.ts +0 -53
- package/dist/trpc/visitor.d.ts.map +0 -1
- /package/{dist/api → api}/common.js +0 -0
- /package/{dist/api → api}/common.js.map +0 -0
- /package/{dist/api → api}/contact.js +0 -0
- /package/{dist/api → api}/contact.js.map +0 -0
- /package/{dist/api → api}/conversation.js +0 -0
- /package/{dist/api → api}/conversation.js.map +0 -0
- /package/{dist/api → api}/index.d.ts +0 -0
- /package/{dist/api → api}/index.js +0 -0
- /package/{dist/api → api}/organization.js +0 -0
- /package/{dist/api → api}/organization.js.map +0 -0
- /package/{dist/api → api}/timeline-item.js +0 -0
- /package/{dist/api → api}/timeline-item.js.map +0 -0
- /package/{dist/api → api}/upload.js +0 -0
- /package/{dist/api → api}/upload.js.map +0 -0
- /package/{dist/api → api}/user.js +0 -0
- /package/{dist/api → api}/user.js.map +0 -0
- /package/{dist/api → api}/visitor.js +0 -0
- /package/{dist/api → api}/visitor.js.map +0 -0
- /package/{dist/api → api}/website.js +0 -0
- /package/{dist/api → api}/website.js.map +0 -0
- /package/{dist/enums.d.ts → enums.d.ts} +0 -0
- /package/{dist/enums.d.ts.map → enums.d.ts.map} +0 -0
- /package/{dist/enums.js → enums.js} +0 -0
- /package/{dist/enums.js.map → enums.js.map} +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.d.ts.map → index.d.ts.map} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/presence.d.ts → presence.d.ts} +0 -0
- /package/{dist/presence.d.ts.map → presence.d.ts.map} +0 -0
- /package/{dist/presence.js → presence.js} +0 -0
- /package/{dist/presence.js.map → presence.js.map} +0 -0
- /package/{dist/realtime-events.js → realtime-events.js} +0 -0
- /package/{dist/realtime-events.js.map → realtime-events.js.map} +0 -0
- /package/{dist/schemas.js → schemas.js} +0 -0
- /package/{dist/schemas.js.map → schemas.js.map} +0 -0
- /package/{dist/trpc → trpc}/contact.js +0 -0
- /package/{dist/trpc → trpc}/contact.js.map +0 -0
- /package/{dist/trpc → trpc}/conversation.js +0 -0
- /package/{dist/trpc → trpc}/conversation.js.map +0 -0
- /package/{dist/trpc → trpc}/visitor.js +0 -0
- /package/{dist/trpc → trpc}/visitor.js.map +0 -0
package/api/upload.d.ts
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { $strip } from "../schemas2.js";
|
|
2
|
+
import { output } from "../core.js";
|
|
3
|
+
import { ZodBoolean, ZodDiscriminatedUnion, ZodLiteral, ZodNumber, ZodObject, ZodOptional, ZodString } from "../schemas3.js";
|
|
4
|
+
import "../index3.js";
|
|
5
|
+
|
|
6
|
+
//#region src/api/upload.d.ts
|
|
7
|
+
declare const uploadOrganizationIdSchema: ZodString;
|
|
8
|
+
declare const uploadWebsiteIdSchema: ZodString;
|
|
9
|
+
declare const uploadConversationIdSchema: ZodString;
|
|
10
|
+
declare const uploadUserIdSchema: ZodString;
|
|
11
|
+
declare const uploadContactIdSchema: ZodString;
|
|
12
|
+
declare const uploadVisitorIdSchema: ZodString;
|
|
13
|
+
declare const uploadPathSchema: ZodString;
|
|
14
|
+
declare const uploadFileNameSchema: ZodString;
|
|
15
|
+
declare const uploadFileExtensionSchema: ZodString;
|
|
16
|
+
declare const uploadScopeConversationSchema: ZodObject<{
|
|
17
|
+
type: ZodLiteral<"conversation">;
|
|
18
|
+
conversationId: ZodString;
|
|
19
|
+
organizationId: ZodString;
|
|
20
|
+
websiteId: ZodString;
|
|
21
|
+
}, $strip>;
|
|
22
|
+
declare const uploadScopeUserSchema: ZodObject<{
|
|
23
|
+
type: ZodLiteral<"user">;
|
|
24
|
+
userId: ZodString;
|
|
25
|
+
organizationId: ZodString;
|
|
26
|
+
websiteId: ZodString;
|
|
27
|
+
}, $strip>;
|
|
28
|
+
declare const uploadScopeContactSchema: ZodObject<{
|
|
29
|
+
type: ZodLiteral<"contact">;
|
|
30
|
+
contactId: ZodString;
|
|
31
|
+
organizationId: ZodString;
|
|
32
|
+
websiteId: ZodString;
|
|
33
|
+
}, $strip>;
|
|
34
|
+
declare const uploadScopeVisitorSchema: ZodObject<{
|
|
35
|
+
type: ZodLiteral<"visitor">;
|
|
36
|
+
visitorId: ZodString;
|
|
37
|
+
organizationId: ZodString;
|
|
38
|
+
websiteId: ZodString;
|
|
39
|
+
}, $strip>;
|
|
40
|
+
declare const uploadScopeSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
41
|
+
type: ZodLiteral<"conversation">;
|
|
42
|
+
conversationId: ZodString;
|
|
43
|
+
organizationId: ZodString;
|
|
44
|
+
websiteId: ZodString;
|
|
45
|
+
}, $strip>, ZodObject<{
|
|
46
|
+
type: ZodLiteral<"user">;
|
|
47
|
+
userId: ZodString;
|
|
48
|
+
organizationId: ZodString;
|
|
49
|
+
websiteId: ZodString;
|
|
50
|
+
}, $strip>, ZodObject<{
|
|
51
|
+
type: ZodLiteral<"contact">;
|
|
52
|
+
contactId: ZodString;
|
|
53
|
+
organizationId: ZodString;
|
|
54
|
+
websiteId: ZodString;
|
|
55
|
+
}, $strip>, ZodObject<{
|
|
56
|
+
type: ZodLiteral<"visitor">;
|
|
57
|
+
visitorId: ZodString;
|
|
58
|
+
organizationId: ZodString;
|
|
59
|
+
websiteId: ZodString;
|
|
60
|
+
}, $strip>], "type">;
|
|
61
|
+
declare const generateUploadUrlRequestSchema: ZodObject<{
|
|
62
|
+
contentType: ZodString;
|
|
63
|
+
websiteId: ZodString;
|
|
64
|
+
scope: ZodDiscriminatedUnion<[ZodObject<{
|
|
65
|
+
type: ZodLiteral<"conversation">;
|
|
66
|
+
conversationId: ZodString;
|
|
67
|
+
organizationId: ZodString;
|
|
68
|
+
websiteId: ZodString;
|
|
69
|
+
}, $strip>, ZodObject<{
|
|
70
|
+
type: ZodLiteral<"user">;
|
|
71
|
+
userId: ZodString;
|
|
72
|
+
organizationId: ZodString;
|
|
73
|
+
websiteId: ZodString;
|
|
74
|
+
}, $strip>, ZodObject<{
|
|
75
|
+
type: ZodLiteral<"contact">;
|
|
76
|
+
contactId: ZodString;
|
|
77
|
+
organizationId: ZodString;
|
|
78
|
+
websiteId: ZodString;
|
|
79
|
+
}, $strip>, ZodObject<{
|
|
80
|
+
type: ZodLiteral<"visitor">;
|
|
81
|
+
visitorId: ZodString;
|
|
82
|
+
organizationId: ZodString;
|
|
83
|
+
websiteId: ZodString;
|
|
84
|
+
}, $strip>], "type">;
|
|
85
|
+
path: ZodOptional<ZodString>;
|
|
86
|
+
fileName: ZodOptional<ZodString>;
|
|
87
|
+
fileExtension: ZodOptional<ZodString>;
|
|
88
|
+
useCdn: ZodOptional<ZodBoolean>;
|
|
89
|
+
expiresInSeconds: ZodOptional<ZodNumber>;
|
|
90
|
+
}, $strip>;
|
|
91
|
+
type GenerateUploadUrlRequest = output<typeof generateUploadUrlRequestSchema>;
|
|
92
|
+
declare const generateUploadUrlResponseSchema: ZodObject<{
|
|
93
|
+
uploadUrl: ZodString;
|
|
94
|
+
key: ZodString;
|
|
95
|
+
bucket: ZodString;
|
|
96
|
+
expiresAt: ZodString;
|
|
97
|
+
contentType: ZodString;
|
|
98
|
+
publicUrl: ZodString;
|
|
99
|
+
}, $strip>;
|
|
100
|
+
type GenerateUploadUrlResponse = output<typeof generateUploadUrlResponseSchema>;
|
|
101
|
+
//#endregion
|
|
102
|
+
export { GenerateUploadUrlRequest, GenerateUploadUrlResponse, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema };
|
|
103
|
+
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.d.ts","names":[],"sources":["../../src/api/upload.ts"],"sourcesContent":[],"mappings":";;;;;;cAIa,4BAA0B;cAK1B,uBAAqB;cAKrB,4BAA0B;cAK1B,oBAAkB;cAKlB,uBAAqB;AApBrB,cAyBA,qBAtBX,EAsBgC,SAtBhC;AAEW,cAyBA,gBAtBX,EAsB2B,SAtB3B;AAEW,cA0BA,oBAvBX,EAuB+B,SA1BM;AAK1B,cAgCA,yBAhCkB,EAgCO,SA7BpC;AAEW,cA2CA,6BAxCX,EAwCwC,SAxCxC,CAAA;EAEW,IAAA,YAAA,CAAA,cAGX,CAAA;EAEW,cAAA,WAIX;EAEW,cAAA,WASV;EAEU,SAAA,WAAA;AAgBb,CAAA,QAAa,CAAA;cAWA,uBAAqB;;;;;CAXQ,QAAA,CAAA;AAAA,cAsB7B,wBAtB6B,EAsBL,SAtBK,CAAA;EAW7B,IAAA,YAAA,CAAA,SASV,CAAA;;;;;cAaU,0BAAwB;EAtBH,IAAA,YAAA,CAAA,SAAA,CAAA;EAAA,SAAA,WAAA;EAWrB,cAAA,WASV;;;cAaU,mBAAiB,uBAAA;;;EAtBO,cAAA,WAAA;EAAA,SAAA,WAAA;AAWrC,CAAA,QAAa,CAAA,WAAA,CASV;;;;;;EATkC,IAAA,YAAA,CAAA,SAAA,CAAA;EAAA,SAAA,WAAA;EAWxB,cAAA,WAUV;;;;;;EAV2B,SAAA,WAAA;;cAYjB,gCAA8B;;;;;;;;;;;;;;;;;IAZb,SAAA,WAAA;EAAA,CAAA,QAAA,CAAA,WAAA,CAAA;IAYjB,IAAA,YAAA,CAAA,SAAA,CA8BV;;;;;;;;;;;KAES,wBAAA,GAA2B,cAC/B;cAGK,iCAA+B;;;;;;;;KAmChC,yBAAA,GAA4B,cAChC"}
|
package/api/user.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { $strip } from "../schemas2.js";
|
|
2
|
+
import { output } from "../core.js";
|
|
3
|
+
import { ZodEmail, ZodNullable, ZodObject, ZodOptional, ZodString, ZodULID, ZodURL } from "../schemas3.js";
|
|
4
|
+
import "../index3.js";
|
|
5
|
+
|
|
6
|
+
//#region src/api/user.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Visitor data update request schema
|
|
9
|
+
*/
|
|
10
|
+
declare const userResponseSchema: ZodObject<{
|
|
11
|
+
id: ZodULID;
|
|
12
|
+
name: ZodOptional<ZodString>;
|
|
13
|
+
email: ZodEmail;
|
|
14
|
+
role: ZodNullable<ZodString>;
|
|
15
|
+
image: ZodNullable<ZodURL>;
|
|
16
|
+
createdAt: ZodString;
|
|
17
|
+
updatedAt: ZodString;
|
|
18
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
19
|
+
}, $strip>;
|
|
20
|
+
declare const updateUserProfileRequestSchema: ZodObject<{
|
|
21
|
+
userId: ZodULID;
|
|
22
|
+
name: ZodString;
|
|
23
|
+
image: ZodOptional<ZodNullable<ZodString>>;
|
|
24
|
+
}, $strip>;
|
|
25
|
+
type UserResponse = output<typeof userResponseSchema>;
|
|
26
|
+
type UpdateUserProfileRequest = output<typeof updateUserProfileRequestSchema>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { UpdateUserProfileRequest, UserResponse, updateUserProfileRequestSchema, userResponseSchema };
|
|
29
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","names":[],"sources":["../../src/api/user.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAKa,oBAAkB;;EAAlB,IAAA,aAAA,UAoCX,CAAA;;;;;;;;cAEW,gCAA8B;;;;;KAuB/B,YAAA,GAAe,cAAe;AA7DX,KA8DnB,wBAAA,GAA2B,MA9DR,CAAA,OA+DvB,8BA/DuB,CAAA"}
|
package/api/visitor.d.ts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { $strip } from "../schemas2.js";
|
|
2
|
+
import { output } from "../core.js";
|
|
3
|
+
import { ZodBoolean, ZodEnum, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodRecord, ZodString, ZodULID, ZodUnion } from "../schemas3.js";
|
|
4
|
+
import "../index3.js";
|
|
5
|
+
|
|
6
|
+
//#region src/api/visitor.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Visitor metadata are stored as key value pairs
|
|
9
|
+
* Values can be strings, numbers, booleans, or null
|
|
10
|
+
*/
|
|
11
|
+
declare const visitorMetadataSchema: ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>;
|
|
12
|
+
/**
|
|
13
|
+
* Contact information for identified visitors
|
|
14
|
+
*/
|
|
15
|
+
declare const publicContactResponseSchema: ZodObject<{
|
|
16
|
+
id: ZodULID;
|
|
17
|
+
name: ZodNullable<ZodString>;
|
|
18
|
+
email: ZodNullable<ZodString>;
|
|
19
|
+
image: ZodNullable<ZodString>;
|
|
20
|
+
metadataHash: ZodOptional<ZodString>;
|
|
21
|
+
}, $strip>;
|
|
22
|
+
type PublicContact = output<typeof publicContactResponseSchema>;
|
|
23
|
+
type VisitorMetadata = output<typeof visitorMetadataSchema>;
|
|
24
|
+
/**
|
|
25
|
+
* Visitor data update request schema
|
|
26
|
+
*/
|
|
27
|
+
declare const updateVisitorRequestSchema: ZodObject<{
|
|
28
|
+
externalId: ZodOptional<ZodString>;
|
|
29
|
+
name: ZodOptional<ZodString>;
|
|
30
|
+
email: ZodOptional<ZodString>;
|
|
31
|
+
browser: ZodOptional<ZodString>;
|
|
32
|
+
browserVersion: ZodOptional<ZodString>;
|
|
33
|
+
os: ZodOptional<ZodString>;
|
|
34
|
+
osVersion: ZodOptional<ZodString>;
|
|
35
|
+
device: ZodOptional<ZodString>;
|
|
36
|
+
deviceType: ZodOptional<ZodEnum<{
|
|
37
|
+
unknown: "unknown";
|
|
38
|
+
desktop: "desktop";
|
|
39
|
+
mobile: "mobile";
|
|
40
|
+
tablet: "tablet";
|
|
41
|
+
}>>;
|
|
42
|
+
ip: ZodOptional<ZodString>;
|
|
43
|
+
city: ZodOptional<ZodString>;
|
|
44
|
+
region: ZodOptional<ZodString>;
|
|
45
|
+
country: ZodOptional<ZodString>;
|
|
46
|
+
countryCode: ZodOptional<ZodString>;
|
|
47
|
+
latitude: ZodOptional<ZodNumber>;
|
|
48
|
+
longitude: ZodOptional<ZodNumber>;
|
|
49
|
+
language: ZodOptional<ZodString>;
|
|
50
|
+
timezone: ZodOptional<ZodString>;
|
|
51
|
+
screenResolution: ZodOptional<ZodString>;
|
|
52
|
+
viewport: ZodOptional<ZodString>;
|
|
53
|
+
metadata: ZodOptional<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
|
|
54
|
+
}, $strip>;
|
|
55
|
+
type UpdateVisitorRequest = output<typeof updateVisitorRequestSchema>;
|
|
56
|
+
declare const updateVisitorMetadataRequestSchema: ZodObject<{
|
|
57
|
+
metadata: ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>;
|
|
58
|
+
}, $strip>;
|
|
59
|
+
type UpdateVisitorMetadataRequest = output<typeof updateVisitorMetadataRequestSchema>;
|
|
60
|
+
declare const visitorProfileSchema: ZodObject<{
|
|
61
|
+
id: ZodULID;
|
|
62
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
63
|
+
blockedAt: ZodNullable<ZodString>;
|
|
64
|
+
blockedByUserId: ZodNullable<ZodString>;
|
|
65
|
+
isBlocked: ZodBoolean;
|
|
66
|
+
contact: ZodNullable<ZodObject<{
|
|
67
|
+
id: ZodULID;
|
|
68
|
+
name: ZodNullable<ZodString>;
|
|
69
|
+
email: ZodNullable<ZodString>;
|
|
70
|
+
image: ZodNullable<ZodString>;
|
|
71
|
+
metadataHash: ZodOptional<ZodString>;
|
|
72
|
+
}, $strip>>;
|
|
73
|
+
}, $strip>;
|
|
74
|
+
/**
|
|
75
|
+
* Visitor response schema
|
|
76
|
+
*/
|
|
77
|
+
declare const visitorResponseSchema: ZodObject<{
|
|
78
|
+
id: ZodULID;
|
|
79
|
+
browser: ZodNullable<ZodString>;
|
|
80
|
+
browserVersion: ZodNullable<ZodString>;
|
|
81
|
+
os: ZodNullable<ZodString>;
|
|
82
|
+
osVersion: ZodNullable<ZodString>;
|
|
83
|
+
device: ZodNullable<ZodString>;
|
|
84
|
+
deviceType: ZodNullable<ZodString>;
|
|
85
|
+
ip: ZodNullable<ZodString>;
|
|
86
|
+
city: ZodNullable<ZodString>;
|
|
87
|
+
region: ZodNullable<ZodString>;
|
|
88
|
+
country: ZodNullable<ZodString>;
|
|
89
|
+
countryCode: ZodNullable<ZodString>;
|
|
90
|
+
latitude: ZodNullable<ZodNumber>;
|
|
91
|
+
longitude: ZodNullable<ZodNumber>;
|
|
92
|
+
language: ZodNullable<ZodString>;
|
|
93
|
+
timezone: ZodNullable<ZodString>;
|
|
94
|
+
screenResolution: ZodNullable<ZodString>;
|
|
95
|
+
viewport: ZodNullable<ZodString>;
|
|
96
|
+
createdAt: ZodString;
|
|
97
|
+
updatedAt: ZodString;
|
|
98
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
99
|
+
websiteId: ZodULID;
|
|
100
|
+
organizationId: ZodULID;
|
|
101
|
+
blockedAt: ZodNullable<ZodString>;
|
|
102
|
+
blockedByUserId: ZodNullable<ZodString>;
|
|
103
|
+
isBlocked: ZodBoolean;
|
|
104
|
+
contact: any;
|
|
105
|
+
}, $strip>;
|
|
106
|
+
type Visitor = output<typeof visitorResponseSchema>;
|
|
107
|
+
type VisitorResponse = Visitor;
|
|
108
|
+
/**
|
|
109
|
+
* Visitor response schema
|
|
110
|
+
*/
|
|
111
|
+
declare const publicVisitorResponseSchema: ZodObject<{
|
|
112
|
+
id: ZodULID;
|
|
113
|
+
isBlocked: ZodBoolean;
|
|
114
|
+
language: ZodNullable<ZodString>;
|
|
115
|
+
contact: ZodNullable<ZodObject<{
|
|
116
|
+
id: ZodULID;
|
|
117
|
+
name: ZodNullable<ZodString>;
|
|
118
|
+
email: ZodNullable<ZodString>;
|
|
119
|
+
image: ZodNullable<ZodString>;
|
|
120
|
+
metadataHash: ZodOptional<ZodString>;
|
|
121
|
+
}, $strip>>;
|
|
122
|
+
}, $strip>;
|
|
123
|
+
type PublicVisitor = output<typeof publicVisitorResponseSchema>;
|
|
124
|
+
type PublicVisitorResponse = PublicVisitor;
|
|
125
|
+
//#endregion
|
|
126
|
+
export { PublicContact, PublicVisitor, PublicVisitorResponse, UpdateVisitorMetadataRequest, UpdateVisitorRequest, Visitor, VisitorMetadata, VisitorResponse, publicContactResponseSchema, publicVisitorResponseSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema };
|
|
127
|
+
//# sourceMappingURL=visitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visitor.d.ts","names":[],"sources":["../../src/api/visitor.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAOa,uBAAqB,UAAA,WAAA,UAAA,UAAA,UAAA,WAAA,aAAA,cAAA;AAAlC;;;AAAkC,cAQrB,2BARqB,EAQM,SARN,CAAA;EAAA,EAAA,SAAA;EAAA,IAAA,aAAA,UAAA,CAAA;EAAA,KAAA,aAAA,UAAA,CAAA;EAAA,KAAA,aAAA,UAAA,CAAA;EAAA,YAAA,aAAA,UAAA,CAAA;CAAA,QAAA,CAAA;AAAA,KAgCtB,aAAA,GAAgB,MAhCM,CAAA,OAgCS,2BAhCT,CAAA;AAQrB,KA0BD,eAAA,GAAkB,MAJ5B,CAAA,OAI2C,qBAJ3C,CAAA;;;;cASW,4BAA0B;;;;;;;EA/BC,SAAA,aAAA,UAAA,CAAA;EAAA,MAAA,aAAA,UAAA,CAAA;EAwB5B,UAAA,aAAa,QAAkB,CAAA;IAE/B,OAAA,EAAA,SAAe;IAKd,OAAA,EAAA,SAAA;;;;;;;;;;;;;;;;;KAwJD,oBAAA,GAAuB,cAAe;cAErC,oCAAkC;;;KAOnC,4BAAA,GAA+B,cACnC;cAGK,sBAAoB;;;;;;;;;;;;;;;;;cA2BpB,uBAAqB;;;;;;;;;;;;;EAhMK,QAAA,aAAA,UAAA,CAAA;EAAA,SAAA,aAAA,UAAA,CAAA;EAwJ3B,QAAA,aAAoB,UAAA,CAAkB;EAErC,QAAA,aAAA,UAAA,CAAA;;;;;;;;;;;EAAkC,OAAA,EAAA,GAAA;CAAA,QAAA,CAAA;AAOnC,KA4IA,OAAA,GAAU,MA5IV,CAAA,OA4IyB,qBA3I7B,CAAA;AAGK,KAyID,eAAA,GAAkB,OAnH5B;;;;cAwHW,6BAA2B;;;;;;;;;;;;KAyB5B,aAAA,GAAgB,cAAe;KAC/B,qBAAA,GAAwB"}
|
package/api/website.d.ts
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { $strip } from "../schemas2.js";
|
|
2
|
+
import { output } from "../core.js";
|
|
3
|
+
import { ZodArray, ZodBoolean, ZodEnum, ZodNullable, ZodObject, ZodOptional, ZodString, ZodULID, ZodURL } from "../schemas3.js";
|
|
4
|
+
import "../index3.js";
|
|
5
|
+
|
|
6
|
+
//#region src/api/website.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Website creation request schema
|
|
9
|
+
*/
|
|
10
|
+
declare const createWebsiteRequestSchema: ZodObject<{
|
|
11
|
+
name: ZodString;
|
|
12
|
+
domain: ZodString;
|
|
13
|
+
organizationId: ZodULID;
|
|
14
|
+
installationTarget: ZodEnum<any>;
|
|
15
|
+
}, $strip>;
|
|
16
|
+
type CreateWebsiteRequest = output<typeof createWebsiteRequestSchema>;
|
|
17
|
+
declare const websiteApiKeySchema: ZodObject<{
|
|
18
|
+
id: ZodULID;
|
|
19
|
+
name: ZodString;
|
|
20
|
+
key: ZodNullable<ZodString>;
|
|
21
|
+
keyType: ZodEnum<{
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}>;
|
|
24
|
+
isTest: ZodBoolean;
|
|
25
|
+
isActive: ZodBoolean;
|
|
26
|
+
createdAt: ZodString;
|
|
27
|
+
lastUsedAt: ZodNullable<ZodString>;
|
|
28
|
+
revokedAt: ZodNullable<ZodString>;
|
|
29
|
+
}, $strip>;
|
|
30
|
+
type WebsiteApiKey = output<typeof websiteApiKeySchema>;
|
|
31
|
+
declare const websiteSummarySchema: ZodObject<{
|
|
32
|
+
id: ZodULID;
|
|
33
|
+
slug: ZodString;
|
|
34
|
+
name: ZodString;
|
|
35
|
+
domain: ZodString;
|
|
36
|
+
contactEmail: ZodNullable<ZodString>;
|
|
37
|
+
logoUrl: ZodNullable<ZodString>;
|
|
38
|
+
organizationId: ZodULID;
|
|
39
|
+
whitelistedDomains: ZodArray<ZodURL>;
|
|
40
|
+
}, $strip>;
|
|
41
|
+
type WebsiteSummary = output<typeof websiteSummarySchema>;
|
|
42
|
+
declare const websiteDeveloperSettingsResponseSchema: ZodObject<{
|
|
43
|
+
website: ZodObject<{
|
|
44
|
+
id: ZodULID;
|
|
45
|
+
slug: ZodString;
|
|
46
|
+
name: ZodString;
|
|
47
|
+
domain: ZodString;
|
|
48
|
+
contactEmail: ZodNullable<ZodString>;
|
|
49
|
+
logoUrl: ZodNullable<ZodString>;
|
|
50
|
+
organizationId: ZodULID;
|
|
51
|
+
whitelistedDomains: ZodArray<ZodURL>;
|
|
52
|
+
}, $strip>;
|
|
53
|
+
apiKeys: ZodArray<ZodObject<{
|
|
54
|
+
id: ZodULID;
|
|
55
|
+
name: ZodString;
|
|
56
|
+
key: ZodNullable<ZodString>;
|
|
57
|
+
keyType: ZodEnum<{
|
|
58
|
+
[x: string]: any;
|
|
59
|
+
}>;
|
|
60
|
+
isTest: ZodBoolean;
|
|
61
|
+
isActive: ZodBoolean;
|
|
62
|
+
createdAt: ZodString;
|
|
63
|
+
lastUsedAt: ZodNullable<ZodString>;
|
|
64
|
+
revokedAt: ZodNullable<ZodString>;
|
|
65
|
+
}, $strip>>;
|
|
66
|
+
}, $strip>;
|
|
67
|
+
type WebsiteDeveloperSettingsResponse = output<typeof websiteDeveloperSettingsResponseSchema>;
|
|
68
|
+
declare const createWebsiteApiKeyRequestSchema: ZodObject<{
|
|
69
|
+
organizationId: ZodULID;
|
|
70
|
+
websiteId: ZodULID;
|
|
71
|
+
name: ZodString;
|
|
72
|
+
keyType: ZodEnum<{
|
|
73
|
+
[x: string]: any;
|
|
74
|
+
}>;
|
|
75
|
+
isTest: ZodBoolean;
|
|
76
|
+
}, $strip>;
|
|
77
|
+
type CreateWebsiteApiKeyRequest = output<typeof createWebsiteApiKeyRequestSchema>;
|
|
78
|
+
declare const revokeWebsiteApiKeyRequestSchema: ZodObject<{
|
|
79
|
+
organizationId: ZodULID;
|
|
80
|
+
websiteId: ZodULID;
|
|
81
|
+
apiKeyId: ZodULID;
|
|
82
|
+
}, $strip>;
|
|
83
|
+
type RevokeWebsiteApiKeyRequest = output<typeof revokeWebsiteApiKeyRequestSchema>;
|
|
84
|
+
declare const updateWebsiteRequestSchema: ZodObject<{
|
|
85
|
+
organizationId: ZodULID;
|
|
86
|
+
websiteId: ZodULID;
|
|
87
|
+
data: ZodObject<{
|
|
88
|
+
name: ZodOptional<ZodString>;
|
|
89
|
+
slug: ZodOptional<ZodString>;
|
|
90
|
+
domain: ZodOptional<ZodString>;
|
|
91
|
+
contactEmail: ZodOptional<ZodNullable<ZodString>>;
|
|
92
|
+
description: ZodOptional<ZodNullable<ZodString>>;
|
|
93
|
+
logoUrl: ZodOptional<ZodNullable<ZodString>>;
|
|
94
|
+
whitelistedDomains: ZodOptional<ZodArray<ZodURL>>;
|
|
95
|
+
installationTarget: ZodOptional<ZodEnum<any>>;
|
|
96
|
+
status: ZodOptional<ZodEnum<{
|
|
97
|
+
[x: string]: any;
|
|
98
|
+
}>>;
|
|
99
|
+
teamId: ZodOptional<ZodNullable<ZodString>>;
|
|
100
|
+
}, $strip>;
|
|
101
|
+
}, $strip>;
|
|
102
|
+
type UpdateWebsiteRequest = output<typeof updateWebsiteRequestSchema>;
|
|
103
|
+
/**
|
|
104
|
+
* Website creation response schema
|
|
105
|
+
*/
|
|
106
|
+
declare const createWebsiteResponseSchema: ZodObject<{
|
|
107
|
+
id: ZodULID;
|
|
108
|
+
name: ZodString;
|
|
109
|
+
slug: ZodString;
|
|
110
|
+
whitelistedDomains: ZodArray<ZodURL>;
|
|
111
|
+
organizationId: ZodULID;
|
|
112
|
+
apiKeys: ZodArray<ZodObject<{
|
|
113
|
+
id: ZodULID;
|
|
114
|
+
name: ZodString;
|
|
115
|
+
key: ZodNullable<ZodString>;
|
|
116
|
+
keyType: ZodEnum<{
|
|
117
|
+
[x: string]: any;
|
|
118
|
+
}>;
|
|
119
|
+
isTest: ZodBoolean;
|
|
120
|
+
isActive: ZodBoolean;
|
|
121
|
+
createdAt: ZodString;
|
|
122
|
+
lastUsedAt: ZodNullable<ZodString>;
|
|
123
|
+
revokedAt: ZodNullable<ZodString>;
|
|
124
|
+
}, $strip>>;
|
|
125
|
+
}, $strip>;
|
|
126
|
+
type CreateWebsiteResponse = output<typeof createWebsiteResponseSchema>;
|
|
127
|
+
/**
|
|
128
|
+
* Website domain validation request schema
|
|
129
|
+
*/
|
|
130
|
+
declare const checkWebsiteDomainRequestSchema: ZodObject<{
|
|
131
|
+
domain: ZodString;
|
|
132
|
+
}, $strip>;
|
|
133
|
+
type CheckWebsiteDomainRequest = output<typeof checkWebsiteDomainRequestSchema>;
|
|
134
|
+
declare const availableHumanAgentSchema: ZodObject<{
|
|
135
|
+
id: ZodULID;
|
|
136
|
+
name: ZodString;
|
|
137
|
+
image: ZodNullable<ZodString>;
|
|
138
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
139
|
+
}, $strip>;
|
|
140
|
+
declare const AvailableAIAgentSchema: ZodObject<{
|
|
141
|
+
id: ZodULID;
|
|
142
|
+
name: ZodString;
|
|
143
|
+
image: ZodNullable<ZodString>;
|
|
144
|
+
}, $strip>;
|
|
145
|
+
/**
|
|
146
|
+
* Website information response schema
|
|
147
|
+
*/
|
|
148
|
+
declare const publicWebsiteResponseSchema: ZodObject<{
|
|
149
|
+
id: ZodULID;
|
|
150
|
+
name: ZodString;
|
|
151
|
+
domain: ZodString;
|
|
152
|
+
description: ZodNullable<ZodString>;
|
|
153
|
+
logoUrl: ZodNullable<ZodString>;
|
|
154
|
+
organizationId: ZodULID;
|
|
155
|
+
status: ZodString;
|
|
156
|
+
lastOnlineAt: ZodNullable<ZodString>;
|
|
157
|
+
availableHumanAgents: ZodArray<ZodObject<{
|
|
158
|
+
id: ZodULID;
|
|
159
|
+
name: ZodString;
|
|
160
|
+
image: ZodNullable<ZodString>;
|
|
161
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
162
|
+
}, $strip>>;
|
|
163
|
+
availableAIAgents: ZodArray<ZodObject<{
|
|
164
|
+
id: ZodULID;
|
|
165
|
+
name: ZodString;
|
|
166
|
+
image: ZodNullable<ZodString>;
|
|
167
|
+
}, $strip>>;
|
|
168
|
+
visitor: any;
|
|
169
|
+
}, $strip>;
|
|
170
|
+
type PublicWebsiteResponse = output<typeof publicWebsiteResponseSchema>;
|
|
171
|
+
type AvailableHumanAgent = output<typeof availableHumanAgentSchema>;
|
|
172
|
+
type AvailableAIAgent = output<typeof AvailableAIAgentSchema>;
|
|
173
|
+
/**
|
|
174
|
+
* List websites by organization request schema
|
|
175
|
+
*/
|
|
176
|
+
declare const listByOrganizationRequestSchema: ZodObject<{
|
|
177
|
+
organizationId: ZodULID;
|
|
178
|
+
}, $strip>;
|
|
179
|
+
type ListByOrganizationRequest = output<typeof listByOrganizationRequestSchema>;
|
|
180
|
+
/**
|
|
181
|
+
* Website list item schema - simplified website info for listing
|
|
182
|
+
*/
|
|
183
|
+
declare const websiteListItemSchema: ZodObject<{
|
|
184
|
+
id: ZodULID;
|
|
185
|
+
name: ZodString;
|
|
186
|
+
slug: ZodString;
|
|
187
|
+
logoUrl: ZodNullable<ZodString>;
|
|
188
|
+
domain: ZodString;
|
|
189
|
+
organizationId: ZodULID;
|
|
190
|
+
}, $strip>;
|
|
191
|
+
type WebsiteListItem = output<typeof websiteListItemSchema>;
|
|
192
|
+
//#endregion
|
|
193
|
+
export { AvailableAIAgent, AvailableAIAgentSchema, AvailableHumanAgent, CheckWebsiteDomainRequest, CreateWebsiteApiKeyRequest, CreateWebsiteRequest, CreateWebsiteResponse, ListByOrganizationRequest, PublicWebsiteResponse, RevokeWebsiteApiKeyRequest, UpdateWebsiteRequest, WebsiteApiKey, WebsiteDeveloperSettingsResponse, WebsiteListItem, WebsiteSummary, availableHumanAgentSchema, checkWebsiteDomainRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, listByOrganizationRequestSchema, publicWebsiteResponseSchema, revokeWebsiteApiKeyRequestSchema, updateWebsiteRequestSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema };
|
|
194
|
+
//# sourceMappingURL=website.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website.d.ts","names":[],"sources":["../../src/api/website.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAOa,4BAA0B;;EAA1B,MAAA,WAAA;;;;KA8BD,oBAAA,GAAuB,cAAe;cASrC,qBAAmB;EAvCO,EAAA,SAAA;EAAA,IAAA,WAAA;EA8B3B,GAAA,aAAA,UAAoB,CAAA;EASnB,OAAA,SAAA,CAAA;;;;;;;;;KA6CD,aAAA,GAAgB,cAAe;cAE9B,sBAAoB;;;;EA/CD,MAAA,WAAA;EAAA,YAAA,aAAA,UAAA,CAAA;EA6CpB,OAAA,aAAa,UAAkB,CAAA;EAE9B,cAAA,SAqCV;;;KAES,cAAA,GAAiB,cAAe;cAE/B,wCAAsC;;;;;;;;;IAzClB,kBAAA,UAAA,OAAA,CAAA;EAAA,CAAA,QAAA,CAAA;EAuCrB,OAAA,UAAc,UAAkB,CAAA;IAE/B,EAAA,SAAA;;;;;;;;;;;;;KAUD,gCAAA,GAAmC,cACvC;cAGK,kCAAgC;;;;;;;;;KA2BjC,0BAAA,GAA6B,cACjC;cAGK,kCAAgC;;;;;KAmBjC,0BAAA,GAA6B,cACjC;AAjE2C,cAqFtC,0BArFsC,EAqFZ,SArFY,CAAA;EAAA,cAAA,SAAA;EAUvC,SAAA,SAAA;EAIC,IAAA,WAAA,CAAA;;;;;;;IAAgC,kBAAA,aAAA,SAAA,OAAA,CAAA,CAAA;IAAA,kBAAA,aAAA,QAAA,CAAA,GAAA,CAAA,CAAA;IA2BjC,MAAA,aAAA,QAA0B,CAAA;MAIzB,CAAA,CAAA,EAAA,MAAA,CAAA,EAAA,GAAA;;;;;AAAgC,KA0DjC,oBAAA,GAAuB,MA1DU,CAAA,OA0DK,0BA1DL,CAAA;;AAmB7C;AAqBA;cAuBa,6BAA2B;;;;;;;;;;;;;;;;;;;;KAsC5B,qBAAA,GAAwB,cAAe;;;;cAKtC,iCAA+B;;;KAUhC,yBAAA,GAA4B,cAChC;cAGK,2BAAyB;;EAhFC,IAAA,WAAA;EAAA,KAAA,aAAA,UAAA,CAAA;EAkB3B,UAAA,aAAoB,UAAkB,CAAA;AAKlD,CAAA,QAAa,CAAA;cA6EA,wBAAsB;;;;;;;;cAkBtB,6BAA2B;;;;;;;;;;;;;;EA/FA,CAAA,QAAA,CAAA,CAAA;EAAA,iBAAA,UAAA,UAAA,CAAA;IAsC5B,EAAA,SAAA;IAKC,IAAA,WAAA;;;EAA+B,OAAA,EAAA,GAAA;CAAA,QAAA,CAAA;AAUhC,KAmFA,qBAAA,GAAwB,MAnFC,CAAA,OAmFc,2BAnFX,CAAA;AAI3B,KAgFD,mBAAA,GAAsB,MA9DhC,CAAA,OA8D+C,yBA9D/C,CAAA;KA+DU,gBAAA,GAAmB,cAAe;;;;cAKjC,iCAA+B;;;AAtFN,KA6F1B,yBAAA,GAA4B,MA7FF,CAAA,OA8F9B,+BA9F8B,CAAA;;AAoBtC;;cAgFa,uBAAqB;;;;EAhFC,OAAA,aAAA,UAAA,CAAA;EAAA,MAAA,WAAA;EAkBtB,cAAA,SAAA;;KAyFD,eAAA,GAAkB,cAAe"}
|
package/api.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { EmptyToNever, Flatten, MakePartial } from "./util.js";
|
|
2
|
+
import { $ZodBase64, $ZodBase64URL, $ZodCIDRv4, $ZodCIDRv6, $ZodCUID, $ZodCUID2, $ZodCustom, $ZodE164, $ZodEmail, $ZodEmoji, $ZodEnum, $ZodGUID, $ZodIPv4, $ZodIPv6, $ZodISODate, $ZodISODateTime, $ZodISODuration, $ZodISOTime, $ZodJWT, $ZodKSUID, $ZodNanoID, $ZodNonOptional, $ZodStringFormat, $ZodType, $ZodULID, $ZodURL, $ZodUUID, $ZodXID, ParsePayload } from "./schemas2.js";
|
|
3
|
+
import { $ZodCheck, $ZodCheckEndsWith, $ZodCheckGreaterThan, $ZodCheckIncludes, $ZodCheckLengthEquals, $ZodCheckLessThan, $ZodCheckLowerCase, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckRegex, $ZodCheckStartsWith, $ZodCheckUpperCase } from "./checks.js";
|
|
4
|
+
import { $ZodErrorMap, $ZodIssue, $ZodIssueBase } from "./errors.js";
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/api.d.cts
|
|
7
|
+
type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
|
|
8
|
+
error?: string | $ZodErrorMap<IssueTypes> | undefined;
|
|
9
|
+
/** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
10
|
+
message?: string | undefined;
|
|
11
|
+
})>>>;
|
|
12
|
+
type TypeParams<T extends $ZodType = $ZodType & {
|
|
13
|
+
_isst: never;
|
|
14
|
+
}, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
|
|
15
|
+
type CheckParams<T extends $ZodCheck = $ZodCheck,
|
|
16
|
+
// & { _issc: never },
|
|
17
|
+
AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
|
|
18
|
+
type CheckStringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
|
|
19
|
+
type CheckTypeParams<T extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
|
|
20
|
+
type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
|
|
21
|
+
type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
|
|
22
|
+
type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
23
|
+
type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
|
|
24
|
+
type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
|
|
25
|
+
type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
|
|
26
|
+
type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
|
|
27
|
+
type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
|
|
28
|
+
type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
|
|
29
|
+
type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
|
|
30
|
+
type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
|
|
31
|
+
type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
|
|
32
|
+
type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
|
|
33
|
+
type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
|
|
34
|
+
type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
|
|
35
|
+
type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
|
|
36
|
+
type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
|
|
37
|
+
type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
|
|
38
|
+
type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
|
|
39
|
+
type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
|
|
40
|
+
type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
|
|
41
|
+
type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
|
|
42
|
+
type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
|
|
43
|
+
type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format" | "when">;
|
|
44
|
+
type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value" | "when">;
|
|
45
|
+
type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
|
|
46
|
+
type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value" | "when">;
|
|
47
|
+
type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
|
|
48
|
+
type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
|
|
49
|
+
type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
|
|
50
|
+
type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
|
|
51
|
+
type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
|
|
52
|
+
type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
|
|
53
|
+
type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
|
|
54
|
+
type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
|
|
55
|
+
type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
|
|
56
|
+
type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
|
|
57
|
+
type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
|
|
58
|
+
type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
|
|
59
|
+
type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
|
|
60
|
+
type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
|
|
61
|
+
/** The schema or check that originated this issue. */
|
|
62
|
+
readonly inst?: $ZodType | $ZodCheck;
|
|
63
|
+
/** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
|
|
64
|
+
readonly continue?: boolean | undefined;
|
|
65
|
+
} & Record<string, unknown>> : never;
|
|
66
|
+
interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
|
|
67
|
+
addIssue(arg: string | $ZodSuperRefineIssue): void;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { $RefinementCtx, $ZodCheckBase64Params, $ZodCheckBase64URLParams, $ZodCheckCIDRv4Params, $ZodCheckCIDRv6Params, $ZodCheckCUID2Params, $ZodCheckCUIDParams, $ZodCheckE164Params, $ZodCheckEmailParams, $ZodCheckEmojiParams, $ZodCheckEndsWithParams, $ZodCheckGUIDParams, $ZodCheckGreaterThanParams, $ZodCheckIPv4Params, $ZodCheckIPv6Params, $ZodCheckISODateParams, $ZodCheckISODateTimeParams, $ZodCheckISODurationParams, $ZodCheckISOTimeParams, $ZodCheckIncludesParams, $ZodCheckJWTParams, $ZodCheckKSUIDParams, $ZodCheckLengthEqualsParams, $ZodCheckLessThanParams, $ZodCheckLowerCaseParams, $ZodCheckMaxLengthParams, $ZodCheckMinLengthParams, $ZodCheckMultipleOfParams, $ZodCheckNanoIDParams, $ZodCheckNumberFormatParams, $ZodCheckRegexParams, $ZodCheckStartsWithParams, $ZodCheckULIDParams, $ZodCheckURLParams, $ZodCheckUUIDParams, $ZodCheckUpperCaseParams, $ZodCheckXIDParams, $ZodCustomParams, $ZodEnumParams, $ZodNonOptionalParams };
|
|
71
|
+
//# sourceMappingURL=api.d.ts.map
|