@cossistant/core 0.0.24 → 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 +316 -320
- package/conversation.d.ts.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/package.json +4 -2
- package/realtime-events.d.ts +324 -326
- package/realtime-events.d.ts.map +1 -1
- package/schemas.d.ts +100 -670
- package/schemas.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 +193 -197
- 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/visitor-name.d.ts +36 -0
- package/visitor-name.d.ts.map +1 -0
- package/visitor-name.js +271 -0
- package/visitor-name.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
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
6
|
var __export = (all) => {
|
|
12
7
|
let target = {};
|
|
13
8
|
for (var name in all) __defProp(target, name, {
|
|
@@ -27,10 +22,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
27
22
|
return to;
|
|
28
23
|
};
|
|
29
24
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
30
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
31
|
-
value: mod,
|
|
32
|
-
enumerable: true
|
|
33
|
-
}) : target, mod));
|
|
34
25
|
|
|
35
26
|
//#endregion
|
|
36
|
-
export {
|
|
27
|
+
export { __export, __reExport };
|
package/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingResponseBody } from "./conversation.js";
|
|
2
2
|
import { GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, SendTimelineItemRequest, SendTimelineItemResponse, TimelineItem } from "./timeline-item.js";
|
|
3
|
-
import { Conversation as Conversation$1 } from "./
|
|
3
|
+
import { Conversation as Conversation$1 } from "./schemas.js";
|
|
4
4
|
import { ConversationsStore } from "./store/conversations-store.js";
|
|
5
5
|
import { TimelineItemsStore } from "./store/timeline-items-store.js";
|
|
6
6
|
import { WebsiteStore } from "./store/website-store.js";
|
package/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConversationStatus, ConversationTimelineType, SenderType, TimelineItemVisibility } from "./
|
|
1
|
+
import { ConversationStatus, ConversationTimelineType, SenderType, TimelineItemVisibility } from "./types/src/enums.js";
|
|
2
2
|
import { generateConversationId, generateMessageId } from "./utils.js";
|
|
3
3
|
import { CossistantRestClient } from "./rest-client.js";
|
|
4
4
|
import { createConversationsStore } from "./store/conversations-store.js";
|
package/contact.d.ts
CHANGED
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { output } from "./core.js";
|
|
3
|
-
import { ZodBoolean, ZodEmail, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodRecord, ZodString, ZodULID, ZodURL, ZodUnion } from "./schemas2.js";
|
|
4
|
-
import "./index3.js";
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
5
2
|
|
|
6
3
|
//#region ../types/src/api/contact.d.ts
|
|
7
4
|
|
|
8
5
|
/**
|
|
9
6
|
* Identify contact response schema
|
|
10
7
|
*/
|
|
11
|
-
declare const identifyContactResponseSchema: ZodObject<{
|
|
12
|
-
contact: ZodObject<{
|
|
13
|
-
id: ZodULID;
|
|
14
|
-
externalId: ZodNullable<ZodString>;
|
|
15
|
-
name: ZodNullable<ZodString>;
|
|
16
|
-
email: ZodNullable<ZodEmail>;
|
|
17
|
-
image: ZodNullable<ZodURL>;
|
|
18
|
-
metadata: ZodNullable<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
|
|
19
|
-
contactOrganizationId: ZodNullable<ZodULID>;
|
|
20
|
-
websiteId: ZodULID;
|
|
21
|
-
organizationId: ZodULID;
|
|
22
|
-
userId: ZodNullable<ZodULID>;
|
|
23
|
-
createdAt: ZodString;
|
|
24
|
-
updatedAt: ZodString;
|
|
25
|
-
},
|
|
26
|
-
visitorId: ZodULID;
|
|
27
|
-
},
|
|
28
|
-
type IdentifyContactResponse =
|
|
8
|
+
declare const identifyContactResponseSchema: z.ZodObject<{
|
|
9
|
+
contact: z.ZodObject<{
|
|
10
|
+
id: z.ZodULID;
|
|
11
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
14
|
+
image: z.ZodNullable<z.ZodURL>;
|
|
15
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
|
|
16
|
+
contactOrganizationId: z.ZodNullable<z.ZodULID>;
|
|
17
|
+
websiteId: z.ZodULID;
|
|
18
|
+
organizationId: z.ZodULID;
|
|
19
|
+
userId: z.ZodNullable<z.ZodULID>;
|
|
20
|
+
createdAt: z.ZodString;
|
|
21
|
+
updatedAt: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
visitorId: z.ZodULID;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
type IdentifyContactResponse = z.infer<typeof identifyContactResponseSchema>;
|
|
29
26
|
//#endregion
|
|
30
27
|
export { IdentifyContactResponse };
|
|
31
28
|
//# sourceMappingURL=contact.d.ts.map
|
package/contact.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../types/src/api/contact.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../types/src/api/contact.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmQa,+BAA6B,CAAA,CAAA;;;;;;;;;;;;;;;;;KAQ9B,uBAAA,GAA0B,CAAA,CAAE,aAChC"}
|