@byline/ai 1.9.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.
Files changed (248) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -0
  3. package/dist/@types.d.ts +103 -0
  4. package/dist/@types.d.ts.map +1 -0
  5. package/dist/@types.js +68 -0
  6. package/dist/@types.js.map +1 -0
  7. package/dist/config/ai-config.d.ts +76 -0
  8. package/dist/config/ai-config.d.ts.map +1 -0
  9. package/dist/config/ai-config.js +108 -0
  10. package/dist/config/ai-config.js.map +1 -0
  11. package/dist/config/ai-config.test.node.d.ts +9 -0
  12. package/dist/config/ai-config.test.node.d.ts.map +1 -0
  13. package/dist/config/ai-config.test.node.js +31 -0
  14. package/dist/config/ai-config.test.node.js.map +1 -0
  15. package/dist/config/ai-provider.d.ts +17 -0
  16. package/dist/config/ai-provider.d.ts.map +1 -0
  17. package/dist/config/ai-provider.js +32 -0
  18. package/dist/config/ai-provider.js.map +1 -0
  19. package/dist/execute.d.ts +15 -0
  20. package/dist/execute.d.ts.map +1 -0
  21. package/dist/execute.js +473 -0
  22. package/dist/execute.js.map +1 -0
  23. package/dist/generate.d.ts +64 -0
  24. package/dist/generate.d.ts.map +1 -0
  25. package/dist/generate.js +235 -0
  26. package/dist/generate.js.map +1 -0
  27. package/dist/index.d.ts +28 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +43 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/lexical-text-edits.d.ts +23 -0
  32. package/dist/lexical-text-edits.d.ts.map +1 -0
  33. package/dist/lexical-text-edits.js +62 -0
  34. package/dist/lexical-text-edits.js.map +1 -0
  35. package/dist/lib/logger.d.ts +10 -0
  36. package/dist/lib/logger.d.ts.map +1 -0
  37. package/dist/lib/logger.js +16 -0
  38. package/dist/lib/logger.js.map +1 -0
  39. package/dist/models/anthropic/anthropic-models.d.ts +14 -0
  40. package/dist/models/anthropic/anthropic-models.d.ts.map +1 -0
  41. package/dist/models/anthropic/anthropic-models.js +41 -0
  42. package/dist/models/anthropic/anthropic-models.js.map +1 -0
  43. package/dist/models/anthropic/anthropic.d.ts +9 -0
  44. package/dist/models/anthropic/anthropic.d.ts.map +1 -0
  45. package/dist/models/anthropic/anthropic.js +20 -0
  46. package/dist/models/anthropic/anthropic.js.map +1 -0
  47. package/dist/models/anthropic/generate-native.d.ts +59 -0
  48. package/dist/models/anthropic/generate-native.d.ts.map +1 -0
  49. package/dist/models/anthropic/generate-native.js +271 -0
  50. package/dist/models/anthropic/generate-native.js.map +1 -0
  51. package/dist/models/anthropic/generate-vercel.d.ts +59 -0
  52. package/dist/models/anthropic/generate-vercel.d.ts.map +1 -0
  53. package/dist/models/anthropic/generate-vercel.js +126 -0
  54. package/dist/models/anthropic/generate-vercel.js.map +1 -0
  55. package/dist/models/anthropic/generate.d.ts +16 -0
  56. package/dist/models/anthropic/generate.d.ts.map +1 -0
  57. package/dist/models/anthropic/generate.js +28 -0
  58. package/dist/models/anthropic/generate.js.map +1 -0
  59. package/dist/models/anthropic/generate.test.node.d.ts +9 -0
  60. package/dist/models/anthropic/generate.test.node.d.ts.map +1 -0
  61. package/dist/models/anthropic/generate.test.node.js +106 -0
  62. package/dist/models/anthropic/generate.test.node.js.map +1 -0
  63. package/dist/models/anthropic/patch-native.d.ts +33 -0
  64. package/dist/models/anthropic/patch-native.d.ts.map +1 -0
  65. package/dist/models/anthropic/patch-native.js +152 -0
  66. package/dist/models/anthropic/patch-native.js.map +1 -0
  67. package/dist/models/anthropic/patch-vercel.d.ts +33 -0
  68. package/dist/models/anthropic/patch-vercel.d.ts.map +1 -0
  69. package/dist/models/anthropic/patch-vercel.js +47 -0
  70. package/dist/models/anthropic/patch-vercel.js.map +1 -0
  71. package/dist/models/anthropic/patch.d.ts +12 -0
  72. package/dist/models/anthropic/patch.d.ts.map +1 -0
  73. package/dist/models/anthropic/patch.js +16 -0
  74. package/dist/models/anthropic/patch.js.map +1 -0
  75. package/dist/models/anthropic/patch.test.node.d.ts +9 -0
  76. package/dist/models/anthropic/patch.test.node.d.ts.map +1 -0
  77. package/dist/models/anthropic/patch.test.node.js +110 -0
  78. package/dist/models/anthropic/patch.test.node.js.map +1 -0
  79. package/dist/models/anthropic/schema.d.ts +212 -0
  80. package/dist/models/anthropic/schema.d.ts.map +1 -0
  81. package/dist/models/anthropic/schema.js +131 -0
  82. package/dist/models/anthropic/schema.js.map +1 -0
  83. package/dist/models/google/generate-native.d.ts +59 -0
  84. package/dist/models/google/generate-native.d.ts.map +1 -0
  85. package/dist/models/google/generate-native.js +244 -0
  86. package/dist/models/google/generate-native.js.map +1 -0
  87. package/dist/models/google/generate-vercel.d.ts +59 -0
  88. package/dist/models/google/generate-vercel.d.ts.map +1 -0
  89. package/dist/models/google/generate-vercel.js +133 -0
  90. package/dist/models/google/generate-vercel.js.map +1 -0
  91. package/dist/models/google/generate.d.ts +16 -0
  92. package/dist/models/google/generate.d.ts.map +1 -0
  93. package/dist/models/google/generate.js +28 -0
  94. package/dist/models/google/generate.js.map +1 -0
  95. package/dist/models/google/generate.test.node.d.ts +9 -0
  96. package/dist/models/google/generate.test.node.d.ts.map +1 -0
  97. package/dist/models/google/generate.test.node.js +106 -0
  98. package/dist/models/google/generate.test.node.js.map +1 -0
  99. package/dist/models/google/google-models.d.ts +14 -0
  100. package/dist/models/google/google-models.d.ts.map +1 -0
  101. package/dist/models/google/google-models.js +25 -0
  102. package/dist/models/google/google-models.js.map +1 -0
  103. package/dist/models/google/normalize-generated-doc.d.ts +10 -0
  104. package/dist/models/google/normalize-generated-doc.d.ts.map +1 -0
  105. package/dist/models/google/normalize-generated-doc.js +48 -0
  106. package/dist/models/google/normalize-generated-doc.js.map +1 -0
  107. package/dist/models/google/patch-native.d.ts +33 -0
  108. package/dist/models/google/patch-native.d.ts.map +1 -0
  109. package/dist/models/google/patch-native.js +164 -0
  110. package/dist/models/google/patch-native.js.map +1 -0
  111. package/dist/models/google/patch-vercel.d.ts +33 -0
  112. package/dist/models/google/patch-vercel.d.ts.map +1 -0
  113. package/dist/models/google/patch-vercel.js +49 -0
  114. package/dist/models/google/patch-vercel.js.map +1 -0
  115. package/dist/models/google/patch.d.ts +12 -0
  116. package/dist/models/google/patch.d.ts.map +1 -0
  117. package/dist/models/google/patch.js +16 -0
  118. package/dist/models/google/patch.js.map +1 -0
  119. package/dist/models/google/patch.test.node.d.ts +9 -0
  120. package/dist/models/google/patch.test.node.d.ts.map +1 -0
  121. package/dist/models/google/patch.test.node.js +110 -0
  122. package/dist/models/google/patch.test.node.js.map +1 -0
  123. package/dist/models/google/schema.d.ts +416 -0
  124. package/dist/models/google/schema.d.ts.map +1 -0
  125. package/dist/models/google/schema.js +254 -0
  126. package/dist/models/google/schema.js.map +1 -0
  127. package/dist/models/openai/generate-native.d.ts +65 -0
  128. package/dist/models/openai/generate-native.d.ts.map +1 -0
  129. package/dist/models/openai/generate-native.js +276 -0
  130. package/dist/models/openai/generate-native.js.map +1 -0
  131. package/dist/models/openai/generate-vercel.d.ts +59 -0
  132. package/dist/models/openai/generate-vercel.d.ts.map +1 -0
  133. package/dist/models/openai/generate-vercel.js +132 -0
  134. package/dist/models/openai/generate-vercel.js.map +1 -0
  135. package/dist/models/openai/generate.d.ts +16 -0
  136. package/dist/models/openai/generate.d.ts.map +1 -0
  137. package/dist/models/openai/generate.js +28 -0
  138. package/dist/models/openai/generate.js.map +1 -0
  139. package/dist/models/openai/generate.test.node.d.ts +9 -0
  140. package/dist/models/openai/generate.test.node.d.ts.map +1 -0
  141. package/dist/models/openai/generate.test.node.js +106 -0
  142. package/dist/models/openai/generate.test.node.js.map +1 -0
  143. package/dist/models/openai/openai-models.d.ts +14 -0
  144. package/dist/models/openai/openai-models.d.ts.map +1 -0
  145. package/dist/models/openai/openai-models.js +23 -0
  146. package/dist/models/openai/openai-models.js.map +1 -0
  147. package/dist/models/openai/patch-native.d.ts +33 -0
  148. package/dist/models/openai/patch-native.d.ts.map +1 -0
  149. package/dist/models/openai/patch-native.js +151 -0
  150. package/dist/models/openai/patch-native.js.map +1 -0
  151. package/dist/models/openai/patch-vercel.d.ts +33 -0
  152. package/dist/models/openai/patch-vercel.d.ts.map +1 -0
  153. package/dist/models/openai/patch-vercel.js +49 -0
  154. package/dist/models/openai/patch-vercel.js.map +1 -0
  155. package/dist/models/openai/patch.d.ts +12 -0
  156. package/dist/models/openai/patch.d.ts.map +1 -0
  157. package/dist/models/openai/patch.js +16 -0
  158. package/dist/models/openai/patch.js.map +1 -0
  159. package/dist/models/openai/patch.test.node.d.ts +9 -0
  160. package/dist/models/openai/patch.test.node.d.ts.map +1 -0
  161. package/dist/models/openai/patch.test.node.js +110 -0
  162. package/dist/models/openai/patch.test.node.js.map +1 -0
  163. package/dist/models/openai/schema.d.ts +460 -0
  164. package/dist/models/openai/schema.d.ts.map +1 -0
  165. package/dist/models/openai/schema.js +327 -0
  166. package/dist/models/openai/schema.js.map +1 -0
  167. package/dist/patch.d.ts +45 -0
  168. package/dist/patch.d.ts.map +1 -0
  169. package/dist/patch.js +138 -0
  170. package/dist/patch.js.map +1 -0
  171. package/dist/plugins/ai-plugin-base.d.ts +40 -0
  172. package/dist/plugins/ai-plugin-base.d.ts.map +1 -0
  173. package/dist/plugins/ai-plugin-base.js +218 -0
  174. package/dist/plugins/ai-plugin-base.js.map +1 -0
  175. package/dist/plugins/ai-plugin.css +181 -0
  176. package/dist/plugins/lexical/create-empty-editor-state.d.ts +32 -0
  177. package/dist/plugins/lexical/create-empty-editor-state.d.ts.map +1 -0
  178. package/dist/plugins/lexical/create-empty-editor-state.js +51 -0
  179. package/dist/plugins/lexical/create-empty-editor-state.js.map +1 -0
  180. package/dist/plugins/lexical/import-html.d.ts +10 -0
  181. package/dist/plugins/lexical/import-html.d.ts.map +1 -0
  182. package/dist/plugins/lexical/import-html.js +31 -0
  183. package/dist/plugins/lexical/import-html.js.map +1 -0
  184. package/dist/plugins/lexical/index.d.ts +9 -0
  185. package/dist/plugins/lexical/index.d.ts.map +1 -0
  186. package/dist/plugins/lexical/index.js +9 -0
  187. package/dist/plugins/lexical/index.js.map +1 -0
  188. package/dist/plugins/lexical/plugin.d.ts +11 -0
  189. package/dist/plugins/lexical/plugin.d.ts.map +1 -0
  190. package/dist/plugins/lexical/plugin.js +305 -0
  191. package/dist/plugins/lexical/plugin.js.map +1 -0
  192. package/dist/plugins/storage.d.ts +18 -0
  193. package/dist/plugins/storage.d.ts.map +1 -0
  194. package/dist/plugins/storage.js +57 -0
  195. package/dist/plugins/storage.js.map +1 -0
  196. package/dist/plugins/streaming-preview.d.ts +12 -0
  197. package/dist/plugins/streaming-preview.d.ts.map +1 -0
  198. package/dist/plugins/streaming-preview.js +24 -0
  199. package/dist/plugins/streaming-preview.js.map +1 -0
  200. package/dist/plugins/text/index.d.ts +9 -0
  201. package/dist/plugins/text/index.d.ts.map +1 -0
  202. package/dist/plugins/text/index.js +9 -0
  203. package/dist/plugins/text/index.js.map +1 -0
  204. package/dist/plugins/text/plugin.d.ts +18 -0
  205. package/dist/plugins/text/plugin.d.ts.map +1 -0
  206. package/dist/plugins/text/plugin.js +261 -0
  207. package/dist/plugins/text/plugin.js.map +1 -0
  208. package/dist/prompts.d.ts +30 -0
  209. package/dist/prompts.d.ts.map +1 -0
  210. package/dist/prompts.js +83 -0
  211. package/dist/prompts.js.map +1 -0
  212. package/dist/schemas/lexical-json-schema.d.ts +68 -0
  213. package/dist/schemas/lexical-json-schema.d.ts.map +1 -0
  214. package/dist/schemas/lexical-json-schema.js +434 -0
  215. package/dist/schemas/lexical-json-schema.js.map +1 -0
  216. package/dist/scripts/list-models.d.ts +9 -0
  217. package/dist/scripts/list-models.d.ts.map +1 -0
  218. package/dist/scripts/list-models.js +55 -0
  219. package/dist/scripts/list-models.js.map +1 -0
  220. package/dist/server.d.ts +25 -0
  221. package/dist/server.d.ts.map +1 -0
  222. package/dist/server.js +22 -0
  223. package/dist/server.js.map +1 -0
  224. package/dist/utils/convert-to-lexical.d.ts +62 -0
  225. package/dist/utils/convert-to-lexical.d.ts.map +1 -0
  226. package/dist/utils/convert-to-lexical.js +210 -0
  227. package/dist/utils/convert-to-lexical.js.map +1 -0
  228. package/dist/utils/create-empty-editor-state.d.ts +32 -0
  229. package/dist/utils/create-empty-editor-state.d.ts.map +1 -0
  230. package/dist/utils/create-empty-editor-state.js +51 -0
  231. package/dist/utils/create-empty-editor-state.js.map +1 -0
  232. package/dist/utils/has-text.d.ts +10 -0
  233. package/dist/utils/has-text.d.ts.map +1 -0
  234. package/dist/utils/has-text.js +35 -0
  235. package/dist/utils/has-text.js.map +1 -0
  236. package/dist/utils/has-text.test.d.ts +9 -0
  237. package/dist/utils/has-text.test.d.ts.map +1 -0
  238. package/dist/utils/has-text.test.js +69 -0
  239. package/dist/utils/has-text.test.js.map +1 -0
  240. package/dist/utils/is-object-schema.d.ts +17 -0
  241. package/dist/utils/is-object-schema.d.ts.map +1 -0
  242. package/dist/utils/is-object-schema.js +19 -0
  243. package/dist/utils/is-object-schema.js.map +1 -0
  244. package/dist/utils/lexical-text-edits.d.ts +23 -0
  245. package/dist/utils/lexical-text-edits.d.ts.map +1 -0
  246. package/dist/utils/lexical-text-edits.js +62 -0
  247. package/dist/utils/lexical-text-edits.js.map +1 -0
  248. package/package.json +111 -0
@@ -0,0 +1,460 @@
1
+ /**
2
+ * This Source Code is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ *
6
+ * Copyright (c) Infonomic Company Limited
7
+ */
8
+ export declare const openaiHtmlGenerationSchema: {
9
+ name: string;
10
+ strict: boolean;
11
+ schema: {
12
+ type: string;
13
+ additionalProperties: boolean;
14
+ properties: {
15
+ html: {
16
+ type: string;
17
+ description: string;
18
+ };
19
+ };
20
+ required: string[];
21
+ };
22
+ };
23
+ export declare const openaiGenerationSchema: {
24
+ readonly name: "lexical_doc_blocks_v1";
25
+ readonly strict: true;
26
+ readonly schema: {
27
+ readonly type: "object";
28
+ readonly additionalProperties: false;
29
+ readonly properties: {
30
+ readonly title: {
31
+ readonly anyOf: readonly [{
32
+ readonly type: "string";
33
+ }, {
34
+ readonly type: "null";
35
+ }];
36
+ };
37
+ readonly blocks: {
38
+ readonly type: "array";
39
+ readonly items: {
40
+ readonly anyOf: readonly [{
41
+ readonly type: "object";
42
+ readonly additionalProperties: false;
43
+ readonly properties: {
44
+ readonly kind: {
45
+ readonly type: "string";
46
+ readonly enum: readonly ["heading"];
47
+ };
48
+ readonly level: {
49
+ readonly type: "number";
50
+ readonly enum: readonly [1, 2, 3];
51
+ };
52
+ readonly inlines: {
53
+ readonly type: "array";
54
+ readonly items: {
55
+ readonly anyOf: readonly [{
56
+ readonly type: "object";
57
+ readonly additionalProperties: false;
58
+ readonly properties: {
59
+ readonly kind: {
60
+ readonly type: "string";
61
+ readonly enum: readonly ["text"];
62
+ };
63
+ readonly text: {
64
+ readonly type: "string";
65
+ };
66
+ readonly marks: {
67
+ readonly type: "object";
68
+ readonly additionalProperties: false;
69
+ readonly properties: {
70
+ readonly bold: {
71
+ readonly type: "boolean";
72
+ };
73
+ readonly italic: {
74
+ readonly type: "boolean";
75
+ };
76
+ readonly underline: {
77
+ readonly type: "boolean";
78
+ };
79
+ readonly code: {
80
+ readonly type: "boolean";
81
+ };
82
+ };
83
+ readonly required: readonly ["bold", "italic", "underline", "code"];
84
+ };
85
+ };
86
+ readonly required: readonly ["kind", "text", "marks"];
87
+ }, {
88
+ readonly type: "object";
89
+ readonly additionalProperties: false;
90
+ readonly properties: {
91
+ readonly kind: {
92
+ readonly type: "string";
93
+ readonly enum: readonly ["link"];
94
+ };
95
+ readonly url: {
96
+ readonly type: "string";
97
+ };
98
+ readonly text: {
99
+ readonly type: "string";
100
+ };
101
+ readonly marks: {
102
+ readonly type: "object";
103
+ readonly additionalProperties: false;
104
+ readonly properties: {
105
+ readonly bold: {
106
+ readonly type: "boolean";
107
+ };
108
+ readonly italic: {
109
+ readonly type: "boolean";
110
+ };
111
+ readonly underline: {
112
+ readonly type: "boolean";
113
+ };
114
+ readonly code: {
115
+ readonly type: "boolean";
116
+ };
117
+ };
118
+ readonly required: readonly ["bold", "italic", "underline", "code"];
119
+ };
120
+ };
121
+ readonly required: readonly ["kind", "url", "text", "marks"];
122
+ }, {
123
+ readonly type: "object";
124
+ readonly additionalProperties: false;
125
+ readonly properties: {
126
+ readonly kind: {
127
+ readonly type: "string";
128
+ readonly enum: readonly ["br"];
129
+ };
130
+ };
131
+ readonly required: readonly ["kind"];
132
+ }];
133
+ };
134
+ };
135
+ };
136
+ readonly required: readonly ["kind", "level", "inlines"];
137
+ }, {
138
+ readonly type: "object";
139
+ readonly additionalProperties: false;
140
+ readonly properties: {
141
+ readonly kind: {
142
+ readonly type: "string";
143
+ readonly enum: readonly ["paragraph"];
144
+ };
145
+ readonly align: {
146
+ readonly type: "string";
147
+ readonly enum: readonly ["start", "center", "right"];
148
+ };
149
+ readonly inlines: {
150
+ readonly type: "array";
151
+ readonly items: {
152
+ readonly anyOf: readonly [{
153
+ readonly type: "object";
154
+ readonly additionalProperties: false;
155
+ readonly properties: {
156
+ readonly kind: {
157
+ readonly type: "string";
158
+ readonly enum: readonly ["text"];
159
+ };
160
+ readonly text: {
161
+ readonly type: "string";
162
+ };
163
+ readonly marks: {
164
+ readonly type: "object";
165
+ readonly additionalProperties: false;
166
+ readonly properties: {
167
+ readonly bold: {
168
+ readonly type: "boolean";
169
+ };
170
+ readonly italic: {
171
+ readonly type: "boolean";
172
+ };
173
+ readonly underline: {
174
+ readonly type: "boolean";
175
+ };
176
+ readonly code: {
177
+ readonly type: "boolean";
178
+ };
179
+ };
180
+ readonly required: readonly ["bold", "italic", "underline", "code"];
181
+ };
182
+ };
183
+ readonly required: readonly ["kind", "text", "marks"];
184
+ }, {
185
+ readonly type: "object";
186
+ readonly additionalProperties: false;
187
+ readonly properties: {
188
+ readonly kind: {
189
+ readonly type: "string";
190
+ readonly enum: readonly ["link"];
191
+ };
192
+ readonly url: {
193
+ readonly type: "string";
194
+ };
195
+ readonly text: {
196
+ readonly type: "string";
197
+ };
198
+ readonly marks: {
199
+ readonly type: "object";
200
+ readonly additionalProperties: false;
201
+ readonly properties: {
202
+ readonly bold: {
203
+ readonly type: "boolean";
204
+ };
205
+ readonly italic: {
206
+ readonly type: "boolean";
207
+ };
208
+ readonly underline: {
209
+ readonly type: "boolean";
210
+ };
211
+ readonly code: {
212
+ readonly type: "boolean";
213
+ };
214
+ };
215
+ readonly required: readonly ["bold", "italic", "underline", "code"];
216
+ };
217
+ };
218
+ readonly required: readonly ["kind", "url", "text", "marks"];
219
+ }, {
220
+ readonly type: "object";
221
+ readonly additionalProperties: false;
222
+ readonly properties: {
223
+ readonly kind: {
224
+ readonly type: "string";
225
+ readonly enum: readonly ["br"];
226
+ };
227
+ };
228
+ readonly required: readonly ["kind"];
229
+ }];
230
+ };
231
+ };
232
+ };
233
+ readonly required: readonly ["kind", "align", "inlines"];
234
+ }, {
235
+ readonly type: "object";
236
+ readonly additionalProperties: false;
237
+ readonly properties: {
238
+ readonly kind: {
239
+ readonly type: "string";
240
+ readonly enum: readonly ["list"];
241
+ };
242
+ readonly listType: {
243
+ readonly type: "string";
244
+ readonly enum: readonly ["bullet", "number"];
245
+ };
246
+ readonly items: {
247
+ readonly type: "array";
248
+ readonly items: {
249
+ readonly type: "object";
250
+ readonly additionalProperties: false;
251
+ readonly properties: {
252
+ readonly indent: {
253
+ readonly type: "number";
254
+ readonly enum: readonly [0, 1];
255
+ };
256
+ readonly blocks: {
257
+ readonly type: "array";
258
+ readonly items: {
259
+ readonly anyOf: readonly [{
260
+ readonly type: "object";
261
+ readonly additionalProperties: false;
262
+ readonly properties: {
263
+ readonly kind: {
264
+ readonly type: "string";
265
+ readonly enum: readonly ["paragraph"];
266
+ };
267
+ readonly align: {
268
+ readonly type: "string";
269
+ readonly enum: readonly ["start", "center", "right"];
270
+ };
271
+ readonly inlines: {
272
+ readonly type: "array";
273
+ readonly items: {
274
+ readonly anyOf: readonly [{
275
+ readonly type: "object";
276
+ readonly additionalProperties: false;
277
+ readonly properties: {
278
+ readonly kind: {
279
+ readonly type: "string";
280
+ readonly enum: readonly ["text"];
281
+ };
282
+ readonly text: {
283
+ readonly type: "string";
284
+ };
285
+ readonly marks: {
286
+ readonly type: "object";
287
+ readonly additionalProperties: false;
288
+ readonly properties: {
289
+ readonly bold: {
290
+ readonly type: "boolean";
291
+ };
292
+ readonly italic: {
293
+ readonly type: "boolean";
294
+ };
295
+ readonly underline: {
296
+ readonly type: "boolean";
297
+ };
298
+ readonly code: {
299
+ readonly type: "boolean";
300
+ };
301
+ };
302
+ readonly required: readonly ["bold", "italic", "underline", "code"];
303
+ };
304
+ };
305
+ readonly required: readonly ["kind", "text", "marks"];
306
+ }, {
307
+ readonly type: "object";
308
+ readonly additionalProperties: false;
309
+ readonly properties: {
310
+ readonly kind: {
311
+ readonly type: "string";
312
+ readonly enum: readonly ["link"];
313
+ };
314
+ readonly url: {
315
+ readonly type: "string";
316
+ };
317
+ readonly text: {
318
+ readonly type: "string";
319
+ };
320
+ readonly marks: {
321
+ readonly type: "object";
322
+ readonly additionalProperties: false;
323
+ readonly properties: {
324
+ readonly bold: {
325
+ readonly type: "boolean";
326
+ };
327
+ readonly italic: {
328
+ readonly type: "boolean";
329
+ };
330
+ readonly underline: {
331
+ readonly type: "boolean";
332
+ };
333
+ readonly code: {
334
+ readonly type: "boolean";
335
+ };
336
+ };
337
+ readonly required: readonly ["bold", "italic", "underline", "code"];
338
+ };
339
+ };
340
+ readonly required: readonly ["kind", "url", "text", "marks"];
341
+ }, {
342
+ readonly type: "object";
343
+ readonly additionalProperties: false;
344
+ readonly properties: {
345
+ readonly kind: {
346
+ readonly type: "string";
347
+ readonly enum: readonly ["br"];
348
+ };
349
+ };
350
+ readonly required: readonly ["kind"];
351
+ }];
352
+ };
353
+ };
354
+ };
355
+ readonly required: readonly ["kind", "align", "inlines"];
356
+ }];
357
+ };
358
+ };
359
+ };
360
+ readonly required: readonly ["indent", "blocks"];
361
+ };
362
+ };
363
+ };
364
+ readonly required: readonly ["kind", "listType", "items"];
365
+ }, {
366
+ readonly type: "object";
367
+ readonly additionalProperties: false;
368
+ readonly properties: {
369
+ readonly kind: {
370
+ readonly type: "string";
371
+ readonly enum: readonly ["quote"];
372
+ };
373
+ readonly blocks: {
374
+ readonly type: "array";
375
+ readonly items: {
376
+ readonly anyOf: readonly [{
377
+ readonly type: "object";
378
+ readonly additionalProperties: false;
379
+ readonly properties: {
380
+ readonly kind: {
381
+ readonly type: "string";
382
+ readonly enum: readonly ["paragraph"];
383
+ };
384
+ readonly align: {
385
+ readonly type: "string";
386
+ readonly enum: readonly ["start", "center", "right"];
387
+ };
388
+ readonly inlines: {
389
+ readonly type: "array";
390
+ readonly items: {
391
+ readonly anyOf: readonly [{
392
+ readonly type: "object";
393
+ readonly additionalProperties: false;
394
+ readonly properties: {
395
+ readonly kind: {
396
+ readonly type: "string";
397
+ readonly enum: readonly ["text"];
398
+ };
399
+ readonly text: {
400
+ readonly type: "string";
401
+ };
402
+ readonly marks: {
403
+ readonly type: "object";
404
+ readonly additionalProperties: false;
405
+ readonly properties: {
406
+ readonly bold: {
407
+ readonly type: "boolean";
408
+ };
409
+ readonly italic: {
410
+ readonly type: "boolean";
411
+ };
412
+ readonly underline: {
413
+ readonly type: "boolean";
414
+ };
415
+ readonly code: {
416
+ readonly type: "boolean";
417
+ };
418
+ };
419
+ readonly required: readonly ["bold", "italic", "underline", "code"];
420
+ };
421
+ };
422
+ readonly required: readonly ["kind", "text", "marks"];
423
+ }, {
424
+ readonly type: "object";
425
+ readonly additionalProperties: false;
426
+ readonly properties: {
427
+ readonly kind: {
428
+ readonly type: "string";
429
+ readonly enum: readonly ["br"];
430
+ };
431
+ };
432
+ readonly required: readonly ["kind"];
433
+ }];
434
+ };
435
+ };
436
+ };
437
+ readonly required: readonly ["kind", "align", "inlines"];
438
+ }];
439
+ };
440
+ };
441
+ };
442
+ readonly required: readonly ["kind", "blocks"];
443
+ }, {
444
+ readonly type: "object";
445
+ readonly additionalProperties: false;
446
+ readonly properties: {
447
+ readonly kind: {
448
+ readonly type: "string";
449
+ readonly enum: readonly ["hr"];
450
+ };
451
+ };
452
+ readonly required: readonly ["kind"];
453
+ }];
454
+ };
455
+ };
456
+ };
457
+ readonly required: readonly ["title", "blocks"];
458
+ };
459
+ };
460
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/models/openai/schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;CActC,CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+SzB,CAAA"}