@airnauts/comments-core 0.1.0
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/LICENSE +21 -0
- package/README.md +17 -0
- package/dist/anchor/decide.d.ts +15 -0
- package/dist/anchor/decide.d.ts.map +1 -0
- package/dist/anchor/index.d.ts +9 -0
- package/dist/anchor/index.d.ts.map +1 -0
- package/dist/anchor/locate-quote.d.ts +11 -0
- package/dist/anchor/locate-quote.d.ts.map +1 -0
- package/dist/anchor/score.d.ts +10 -0
- package/dist/anchor/score.d.ts.map +1 -0
- package/dist/anchor/weights.d.ts +18 -0
- package/dist/anchor/weights.d.ts.map +1 -0
- package/dist/contract/errors.d.ts +32 -0
- package/dist/contract/errors.d.ts.map +1 -0
- package/dist/contract/openapi.d.ts +3 -0
- package/dist/contract/openapi.d.ts.map +1 -0
- package/dist/contract/operations.d.ts +18 -0
- package/dist/contract/operations.d.ts.map +1 -0
- package/dist/contract/requests.d.ts +113 -0
- package/dist/contract/requests.d.ts.map +1 -0
- package/dist/contract/responses.d.ts +65 -0
- package/dist/contract/responses.d.ts.map +1 -0
- package/dist/contract/wire.d.ts +2 -0
- package/dist/contract/wire.d.ts.map +1 -0
- package/dist/ids.d.ts +10 -0
- package/dist/ids.d.ts.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +576 -0
- package/dist/index.js.map +1 -0
- package/dist/openapi.json +1579 -0
- package/dist/pageKey.d.ts +3 -0
- package/dist/pageKey.d.ts.map +1 -0
- package/dist/schemas/anchor.d.ts +62 -0
- package/dist/schemas/anchor.d.ts.map +1 -0
- package/dist/schemas/capture.d.ts +15 -0
- package/dist/schemas/capture.d.ts.map +1 -0
- package/dist/schemas/comment.d.ts +39 -0
- package/dist/schemas/comment.d.ts.map +1 -0
- package/dist/schemas/common.d.ts +8 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/thread.d.ts +163 -0
- package/dist/schemas/thread.d.ts.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageKey.d.ts","sourceRoot":"","sources":["../src/pageKey.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;AAE/C,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAO1D"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ANCHOR_SCHEMA_VERSION = 1;
|
|
3
|
+
export declare const Signals: z.ZodObject<{
|
|
4
|
+
tag: z.ZodString;
|
|
5
|
+
role: z.ZodOptional<z.ZodString>;
|
|
6
|
+
textSnippet: z.ZodOptional<z.ZodString>;
|
|
7
|
+
classes: z.ZodArray<z.ZodString>;
|
|
8
|
+
siblingIndex: z.ZodNumber;
|
|
9
|
+
ancestorTrail: z.ZodArray<z.ZodString>;
|
|
10
|
+
stableAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type Signals = z.infer<typeof Signals>;
|
|
13
|
+
export declare const Selection: z.ZodObject<{
|
|
14
|
+
start: z.ZodObject<{
|
|
15
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
16
|
+
textNodeIndex: z.ZodNumber;
|
|
17
|
+
offset: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
end: z.ZodObject<{
|
|
20
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
21
|
+
textNodeIndex: z.ZodNumber;
|
|
22
|
+
offset: z.ZodNumber;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
quote: z.ZodString;
|
|
25
|
+
prefix: z.ZodString;
|
|
26
|
+
suffix: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type Selection = z.infer<typeof Selection>;
|
|
29
|
+
export declare const Anchor: z.ZodObject<{
|
|
30
|
+
schemaVersion: z.ZodNumber;
|
|
31
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
32
|
+
signals: z.ZodObject<{
|
|
33
|
+
tag: z.ZodString;
|
|
34
|
+
role: z.ZodOptional<z.ZodString>;
|
|
35
|
+
textSnippet: z.ZodOptional<z.ZodString>;
|
|
36
|
+
classes: z.ZodArray<z.ZodString>;
|
|
37
|
+
siblingIndex: z.ZodNumber;
|
|
38
|
+
ancestorTrail: z.ZodArray<z.ZodString>;
|
|
39
|
+
stableAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
offset: z.ZodObject<{
|
|
42
|
+
fx: z.ZodNumber;
|
|
43
|
+
fy: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
selection: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
start: z.ZodObject<{
|
|
47
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
48
|
+
textNodeIndex: z.ZodNumber;
|
|
49
|
+
offset: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
end: z.ZodObject<{
|
|
52
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
53
|
+
textNodeIndex: z.ZodNumber;
|
|
54
|
+
offset: z.ZodNumber;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
quote: z.ZodString;
|
|
57
|
+
prefix: z.ZodString;
|
|
58
|
+
suffix: z.ZodString;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type Anchor = z.infer<typeof Anchor>;
|
|
62
|
+
//# sourceMappingURL=anchor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor.d.ts","sourceRoot":"","sources":["../../src/schemas/anchor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,qBAAqB,IAAI,CAAA;AAItC,eAAO,MAAM,OAAO;;;;;;;;iBAUM,CAAA;AAC1B,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAA;AAQ7C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;iBAQM,CAAA;AAC5B,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAEjD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUM,CAAA;AACzB,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CaptureContext: z.ZodObject<{
|
|
3
|
+
viewportW: z.ZodNumber;
|
|
4
|
+
viewportH: z.ZodNumber;
|
|
5
|
+
devicePixelRatio: z.ZodNumber;
|
|
6
|
+
userAgent: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type CaptureContext = z.infer<typeof CaptureContext>;
|
|
9
|
+
export declare const Provenance: z.ZodObject<{
|
|
10
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
11
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
12
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type Provenance = z.infer<typeof Provenance>;
|
|
15
|
+
//# sourceMappingURL=capture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../src/schemas/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,cAAc;;;;;iBAOM,CAAA;AACjC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,eAAO,MAAM,UAAU;;;;iBAMM,CAAA;AAC7B,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const Author: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthorId", "out">>;
|
|
4
|
+
email: z.ZodEmail;
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type Author = z.infer<typeof Author>;
|
|
8
|
+
export declare const Attachment: z.ZodObject<{
|
|
9
|
+
id: z.core.$ZodBranded<z.ZodString, "AttachmentId", "out">;
|
|
10
|
+
url: z.ZodURL;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
contentType: z.ZodString;
|
|
13
|
+
size: z.ZodNumber;
|
|
14
|
+
w: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
h: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type Attachment = z.infer<typeof Attachment>;
|
|
18
|
+
export declare const Comment: z.ZodObject<{
|
|
19
|
+
id: z.core.$ZodBranded<z.ZodString, "CommentId", "out">;
|
|
20
|
+
author: z.ZodObject<{
|
|
21
|
+
id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthorId", "out">>;
|
|
22
|
+
email: z.ZodEmail;
|
|
23
|
+
name: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
text: z.ZodString;
|
|
26
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
27
|
+
id: z.core.$ZodBranded<z.ZodString, "AttachmentId", "out">;
|
|
28
|
+
url: z.ZodURL;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
contentType: z.ZodString;
|
|
31
|
+
size: z.ZodNumber;
|
|
32
|
+
w: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
h: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
createdAt: z.ZodISODateTime;
|
|
36
|
+
editedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type Comment = z.infer<typeof Comment>;
|
|
39
|
+
//# sourceMappingURL=comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/schemas/comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,MAAM;;;;iBAEM,CAAA;AACzB,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAA;AAE3C,eAAO,MAAM,UAAU;;;;;;;;iBAUM,CAAA;AAC7B,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAEnD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;iBASM,CAAA;AAC1B,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const Email: z.ZodEmail;
|
|
3
|
+
export type Email = z.infer<typeof Email>;
|
|
4
|
+
export declare const IsoTimestamp: z.ZodISODateTime;
|
|
5
|
+
export type IsoTimestamp = z.infer<typeof IsoTimestamp>;
|
|
6
|
+
export declare const Cursor: z.ZodString;
|
|
7
|
+
export type Cursor = z.infer<typeof Cursor>;
|
|
8
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,KAAK,YAAkC,CAAA;AACpD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAA;AAEzC,eAAO,MAAM,YAAY,kBAAgD,CAAA;AACzE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAIvD,eAAO,MAAM,MAAM,aAAoB,CAAA;AACvC,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ThreadStatus: z.ZodEnum<{
|
|
3
|
+
open: "open";
|
|
4
|
+
resolved: "resolved";
|
|
5
|
+
}>;
|
|
6
|
+
export type ThreadStatus = z.infer<typeof ThreadStatus>;
|
|
7
|
+
export declare const AnchorState: z.ZodEnum<{
|
|
8
|
+
anchored: "anchored";
|
|
9
|
+
orphaned: "orphaned";
|
|
10
|
+
}>;
|
|
11
|
+
export type AnchorState = z.infer<typeof AnchorState>;
|
|
12
|
+
export declare const ThreadListItem: z.ZodObject<{
|
|
13
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
14
|
+
scope: z.ZodLiteral<"page">;
|
|
15
|
+
pageKey: z.ZodNullable<z.ZodString>;
|
|
16
|
+
pageUrl: z.ZodURL;
|
|
17
|
+
pageTitle: z.ZodOptional<z.ZodString>;
|
|
18
|
+
anchor: z.ZodObject<{
|
|
19
|
+
schemaVersion: z.ZodNumber;
|
|
20
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
21
|
+
signals: z.ZodObject<{
|
|
22
|
+
tag: z.ZodString;
|
|
23
|
+
role: z.ZodOptional<z.ZodString>;
|
|
24
|
+
textSnippet: z.ZodOptional<z.ZodString>;
|
|
25
|
+
classes: z.ZodArray<z.ZodString>;
|
|
26
|
+
siblingIndex: z.ZodNumber;
|
|
27
|
+
ancestorTrail: z.ZodArray<z.ZodString>;
|
|
28
|
+
stableAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
offset: z.ZodObject<{
|
|
31
|
+
fx: z.ZodNumber;
|
|
32
|
+
fy: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
selection: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
start: z.ZodObject<{
|
|
36
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
37
|
+
textNodeIndex: z.ZodNumber;
|
|
38
|
+
offset: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
end: z.ZodObject<{
|
|
41
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
42
|
+
textNodeIndex: z.ZodNumber;
|
|
43
|
+
offset: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
quote: z.ZodString;
|
|
46
|
+
prefix: z.ZodString;
|
|
47
|
+
suffix: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
status: z.ZodEnum<{
|
|
51
|
+
open: "open";
|
|
52
|
+
resolved: "resolved";
|
|
53
|
+
}>;
|
|
54
|
+
anchorState: z.ZodEnum<{
|
|
55
|
+
anchored: "anchored";
|
|
56
|
+
orphaned: "orphaned";
|
|
57
|
+
}>;
|
|
58
|
+
selectionLost: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
commentCount: z.ZodNumber;
|
|
60
|
+
unresolvedCount: z.ZodNumber;
|
|
61
|
+
createdBy: z.ZodObject<{
|
|
62
|
+
id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthorId", "out">>;
|
|
63
|
+
email: z.ZodEmail;
|
|
64
|
+
name: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
createdAt: z.ZodISODateTime;
|
|
67
|
+
updatedAt: z.ZodISODateTime;
|
|
68
|
+
lastActivityAt: z.ZodISODateTime;
|
|
69
|
+
schemaVersion: z.ZodNumber;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type ThreadListItem = z.infer<typeof ThreadListItem>;
|
|
72
|
+
export declare const Thread: z.ZodObject<{
|
|
73
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
74
|
+
scope: z.ZodLiteral<"page">;
|
|
75
|
+
pageKey: z.ZodNullable<z.ZodString>;
|
|
76
|
+
pageUrl: z.ZodURL;
|
|
77
|
+
pageTitle: z.ZodOptional<z.ZodString>;
|
|
78
|
+
anchor: z.ZodObject<{
|
|
79
|
+
schemaVersion: z.ZodNumber;
|
|
80
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
81
|
+
signals: z.ZodObject<{
|
|
82
|
+
tag: z.ZodString;
|
|
83
|
+
role: z.ZodOptional<z.ZodString>;
|
|
84
|
+
textSnippet: z.ZodOptional<z.ZodString>;
|
|
85
|
+
classes: z.ZodArray<z.ZodString>;
|
|
86
|
+
siblingIndex: z.ZodNumber;
|
|
87
|
+
ancestorTrail: z.ZodArray<z.ZodString>;
|
|
88
|
+
stableAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
offset: z.ZodObject<{
|
|
91
|
+
fx: z.ZodNumber;
|
|
92
|
+
fy: z.ZodNumber;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
selection: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
start: z.ZodObject<{
|
|
96
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
97
|
+
textNodeIndex: z.ZodNumber;
|
|
98
|
+
offset: z.ZodNumber;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
end: z.ZodObject<{
|
|
101
|
+
selectors: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
102
|
+
textNodeIndex: z.ZodNumber;
|
|
103
|
+
offset: z.ZodNumber;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
quote: z.ZodString;
|
|
106
|
+
prefix: z.ZodString;
|
|
107
|
+
suffix: z.ZodString;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
status: z.ZodEnum<{
|
|
111
|
+
open: "open";
|
|
112
|
+
resolved: "resolved";
|
|
113
|
+
}>;
|
|
114
|
+
anchorState: z.ZodEnum<{
|
|
115
|
+
anchored: "anchored";
|
|
116
|
+
orphaned: "orphaned";
|
|
117
|
+
}>;
|
|
118
|
+
selectionLost: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
commentCount: z.ZodNumber;
|
|
120
|
+
unresolvedCount: z.ZodNumber;
|
|
121
|
+
createdBy: z.ZodObject<{
|
|
122
|
+
id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthorId", "out">>;
|
|
123
|
+
email: z.ZodEmail;
|
|
124
|
+
name: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
createdAt: z.ZodISODateTime;
|
|
127
|
+
updatedAt: z.ZodISODateTime;
|
|
128
|
+
lastActivityAt: z.ZodISODateTime;
|
|
129
|
+
schemaVersion: z.ZodNumber;
|
|
130
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
131
|
+
id: z.core.$ZodBranded<z.ZodString, "CommentId", "out">;
|
|
132
|
+
author: z.ZodObject<{
|
|
133
|
+
id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthorId", "out">>;
|
|
134
|
+
email: z.ZodEmail;
|
|
135
|
+
name: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
text: z.ZodString;
|
|
138
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
139
|
+
id: z.core.$ZodBranded<z.ZodString, "AttachmentId", "out">;
|
|
140
|
+
url: z.ZodURL;
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
contentType: z.ZodString;
|
|
143
|
+
size: z.ZodNumber;
|
|
144
|
+
w: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
h: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
createdAt: z.ZodISODateTime;
|
|
148
|
+
editedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
captureContext: z.ZodObject<{
|
|
151
|
+
viewportW: z.ZodNumber;
|
|
152
|
+
viewportH: z.ZodNumber;
|
|
153
|
+
devicePixelRatio: z.ZodNumber;
|
|
154
|
+
userAgent: z.ZodString;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
158
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
159
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
export type Thread = z.infer<typeof Thread>;
|
|
163
|
+
//# sourceMappingURL=thread.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/schemas/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,YAAY;;;EAA+B,CAAA;AACxD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAEvD,eAAO,MAAM,WAAW;;;EAAmC,CAAA;AAC3D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAqBrD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA4C,CAAA;AACvE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIM,CAAA;AACzB,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@airnauts/comments-core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Framework-agnostic core for the Airnauts embeddable commenting tool: zod schemas, page-key normalization, the scoring/threshold policy, and the OpenAPI contract.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"comments",
|
|
7
|
+
"commenting",
|
|
8
|
+
"annotations",
|
|
9
|
+
"feedback",
|
|
10
|
+
"airnauts",
|
|
11
|
+
"zod",
|
|
12
|
+
"openapi"
|
|
13
|
+
],
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "Airnauts",
|
|
16
|
+
"homepage": "https://github.com/Airnauts/commenting-tool#readme",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/Airnauts/commenting-tool.git",
|
|
20
|
+
"directory": "packages/core"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/Airnauts/commenting-tool/issues"
|
|
24
|
+
},
|
|
25
|
+
"type": "module",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"!dist/.tsbuildinfo",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"zod": "^4.4.3",
|
|
43
|
+
"zod-openapi": "^5.4.6"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@scalar/openapi-parser": "^0.28.5",
|
|
47
|
+
"tsx": "^4.22.3"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsup && tsc --build --force && tsx scripts/emit-openapi.ts",
|
|
51
|
+
"typecheck": "tsc --build",
|
|
52
|
+
"test": "vitest run",
|
|
53
|
+
"emit:openapi": "tsx scripts/emit-openapi.ts"
|
|
54
|
+
}
|
|
55
|
+
}
|