@wix/auto_sdk_rich-content_ricos-documents 1.0.45 → 1.0.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_rich-content_ricos-documents",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,23 +21,16 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
- },
25
- "./schemas": {
26
- "import": "./build/es/schemas.mjs",
27
- "require": "./build/cjs/schemas.js",
28
- "types": "./build/es/schemas.d.mts"
29
24
  }
30
25
  },
31
26
  "files": [
32
27
  "build",
33
28
  "meta",
34
- "service-plugins",
35
- "schemas"
29
+ "service-plugins"
36
30
  ],
37
31
  "dependencies": {
38
- "@wix/sdk-runtime": "^1.0.19",
39
- "@wix/sdk-types": "^1.17.11",
40
- "zod": "^4.3.6"
32
+ "@wix/sdk-runtime": "^1.0.24",
33
+ "@wix/sdk-types": "^1.17.11"
41
34
  },
42
35
  "devDependencies": {
43
36
  "tsup": "^8.4.0",
@@ -57,5 +50,5 @@
57
50
  "fqdn": "wix.ricos.v1.document"
58
51
  }
59
52
  },
60
- "falconPackageHash": "a9b219e235d9488b5fd80cd4abe5998484992b1e9878671355f96b43"
53
+ "falconPackageHash": "96a9fc4178240bd0cf7e6f00d0ae1d5e7b94bc490a7c96e4eb72dc42"
61
54
  }
@@ -1,142 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const ValidateDocumentRequest: z.ZodObject<{
4
- document: z.ZodRecord<z.ZodString, z.ZodAny>;
5
- options: z.ZodOptional<z.ZodObject<{
6
- plugins: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7
- UNKNOWN_PLUGIN: "UNKNOWN_PLUGIN";
8
- ACTION_BUTTON: "ACTION_BUTTON";
9
- AUDIO: "AUDIO";
10
- CODE_BLOCK: "CODE_BLOCK";
11
- COLLAPSIBLE_LIST: "COLLAPSIBLE_LIST";
12
- DIVIDER: "DIVIDER";
13
- EMOJI: "EMOJI";
14
- FILE: "FILE";
15
- GALLERY: "GALLERY";
16
- GIPHY: "GIPHY";
17
- HASHTAG: "HASHTAG";
18
- HEADING: "HEADING";
19
- HTML: "HTML";
20
- IMAGE: "IMAGE";
21
- INDENT: "INDENT";
22
- LAYOUT: "LAYOUT";
23
- LINE_SPACING: "LINE_SPACING";
24
- LINK: "LINK";
25
- LINK_BUTTON: "LINK_BUTTON";
26
- LINK_PREVIEW: "LINK_PREVIEW";
27
- MENTIONS: "MENTIONS";
28
- POLL: "POLL";
29
- SPOILER: "SPOILER";
30
- TABLE: "TABLE";
31
- TEXT_COLOR: "TEXT_COLOR";
32
- TEXT_HIGHLIGHT: "TEXT_HIGHLIGHT";
33
- VERTICAL_EMBED: "VERTICAL_EMBED";
34
- VIDEO: "VIDEO";
35
- FONT_FAMILY: "FONT_FAMILY";
36
- CARD: "CARD";
37
- SMART_BLOCK: "SMART_BLOCK";
38
- TOC: "TOC";
39
- SHAPE: "SHAPE";
40
- }>>>;
41
- fixDocument: z.ZodOptional<z.ZodBoolean>;
42
- }, z.core.$strip>>;
43
- }, z.core.$strip>;
44
- declare const ValidateDocumentResponse: z.ZodObject<{
45
- valid: z.ZodOptional<z.ZodBoolean>;
46
- violations: z.ZodOptional<z.ZodArray<z.ZodObject<{
47
- path: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
- message: z.ZodOptional<z.ZodString>;
49
- }, z.core.$strip>>>;
50
- validDocument: z.ZodOptional<z.ZodAny>;
51
- }, z.core.$strip>;
52
- declare const ConvertToRicosDocumentRequest: z.ZodObject<{
53
- options: z.ZodIntersection<z.ZodObject<{
54
- options: z.ZodOptional<z.ZodObject<{
55
- plugins: z.ZodOptional<z.ZodArray<z.ZodEnum<{
56
- UNKNOWN_PLUGIN: "UNKNOWN_PLUGIN";
57
- ACTION_BUTTON: "ACTION_BUTTON";
58
- AUDIO: "AUDIO";
59
- CODE_BLOCK: "CODE_BLOCK";
60
- COLLAPSIBLE_LIST: "COLLAPSIBLE_LIST";
61
- DIVIDER: "DIVIDER";
62
- EMOJI: "EMOJI";
63
- FILE: "FILE";
64
- GALLERY: "GALLERY";
65
- GIPHY: "GIPHY";
66
- HASHTAG: "HASHTAG";
67
- HEADING: "HEADING";
68
- HTML: "HTML";
69
- IMAGE: "IMAGE";
70
- INDENT: "INDENT";
71
- LAYOUT: "LAYOUT";
72
- LINE_SPACING: "LINE_SPACING";
73
- LINK: "LINK";
74
- LINK_BUTTON: "LINK_BUTTON";
75
- LINK_PREVIEW: "LINK_PREVIEW";
76
- MENTIONS: "MENTIONS";
77
- POLL: "POLL";
78
- SPOILER: "SPOILER";
79
- TABLE: "TABLE";
80
- TEXT_COLOR: "TEXT_COLOR";
81
- TEXT_HIGHLIGHT: "TEXT_HIGHLIGHT";
82
- VERTICAL_EMBED: "VERTICAL_EMBED";
83
- VIDEO: "VIDEO";
84
- FONT_FAMILY: "FONT_FAMILY";
85
- CARD: "CARD";
86
- SMART_BLOCK: "SMART_BLOCK";
87
- TOC: "TOC";
88
- SHAPE: "SHAPE";
89
- }>>>;
90
- }, z.core.$strip>>;
91
- }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
92
- html: z.ZodOptional<z.ZodNever>;
93
- plainText: z.ZodOptional<z.ZodNever>;
94
- markdown: z.ZodString;
95
- }, z.core.$strip>, z.ZodObject<{
96
- markdown: z.ZodOptional<z.ZodNever>;
97
- plainText: z.ZodOptional<z.ZodNever>;
98
- html: z.ZodString;
99
- }, z.core.$strip>, z.ZodObject<{
100
- markdown: z.ZodOptional<z.ZodNever>;
101
- html: z.ZodOptional<z.ZodNever>;
102
- plainText: z.ZodString;
103
- }, z.core.$strip>]>>;
104
- }, z.core.$strip>;
105
- declare const ConvertToRicosDocumentResponse: z.ZodObject<{
106
- document: z.ZodOptional<z.ZodAny>;
107
- }, z.core.$strip>;
108
- declare const ConvertFromRicosDocumentRequest: z.ZodObject<{
109
- document: z.ZodAny;
110
- targetFormat: z.ZodEnum<{
111
- HTML: "HTML";
112
- MARKDOWN: "MARKDOWN";
113
- PLAIN_TEXT: "PLAIN_TEXT";
114
- }>;
115
- options: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
116
- plainTextOptions: z.ZodOptional<z.ZodNever>;
117
- }, z.core.$strip>, z.ZodObject<{
118
- plainTextOptions: z.ZodObject<{
119
- includeLinks: z.ZodOptional<z.ZodBoolean>;
120
- includeMediaLinks: z.ZodOptional<z.ZodBoolean>;
121
- }, z.core.$strip>;
122
- }, z.core.$strip>]>>>;
123
- }, z.core.$strip>;
124
- declare const ConvertFromRicosDocumentResponse: z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
125
- markdown: z.ZodOptional<z.ZodNever>;
126
- html: z.ZodOptional<z.ZodNever>;
127
- plainText: z.ZodOptional<z.ZodNever>;
128
- }, z.core.$strip>, z.ZodObject<{
129
- html: z.ZodOptional<z.ZodNever>;
130
- plainText: z.ZodOptional<z.ZodNever>;
131
- markdown: z.ZodString;
132
- }, z.core.$strip>, z.ZodObject<{
133
- markdown: z.ZodOptional<z.ZodNever>;
134
- plainText: z.ZodOptional<z.ZodNever>;
135
- html: z.ZodString;
136
- }, z.core.$strip>, z.ZodObject<{
137
- markdown: z.ZodOptional<z.ZodNever>;
138
- html: z.ZodOptional<z.ZodNever>;
139
- plainText: z.ZodString;
140
- }, z.core.$strip>]>>;
141
-
142
- export { ConvertFromRicosDocumentRequest, ConvertFromRicosDocumentResponse, ConvertToRicosDocumentRequest, ConvertToRicosDocumentResponse, ValidateDocumentRequest, ValidateDocumentResponse };
@@ -1,218 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // schemas.ts
31
- var schemas_exports = {};
32
- __export(schemas_exports, {
33
- ConvertFromRicosDocumentRequest: () => ConvertFromRicosDocumentRequest,
34
- ConvertFromRicosDocumentResponse: () => ConvertFromRicosDocumentResponse,
35
- ConvertToRicosDocumentRequest: () => ConvertToRicosDocumentRequest,
36
- ConvertToRicosDocumentResponse: () => ConvertToRicosDocumentResponse,
37
- ValidateDocumentRequest: () => ValidateDocumentRequest,
38
- ValidateDocumentResponse: () => ValidateDocumentResponse
39
- });
40
- module.exports = __toCommonJS(schemas_exports);
41
-
42
- // src/ricos-v1-document-ricos-documents.schemas.ts
43
- var z = __toESM(require("zod"));
44
- var ValidateDocumentRequest = /* @__PURE__ */ z.object({
45
- document: z.record(z.string(), z.any()).describe("Ricos document to validate."),
46
- options: z.object({
47
- plugins: z.array(
48
- z.enum([
49
- "UNKNOWN_PLUGIN",
50
- "ACTION_BUTTON",
51
- "AUDIO",
52
- "CODE_BLOCK",
53
- "COLLAPSIBLE_LIST",
54
- "DIVIDER",
55
- "EMOJI",
56
- "FILE",
57
- "GALLERY",
58
- "GIPHY",
59
- "HASHTAG",
60
- "HEADING",
61
- "HTML",
62
- "IMAGE",
63
- "INDENT",
64
- "LAYOUT",
65
- "LINE_SPACING",
66
- "LINK",
67
- "LINK_BUTTON",
68
- "LINK_PREVIEW",
69
- "MENTIONS",
70
- "POLL",
71
- "SPOILER",
72
- "TABLE",
73
- "TEXT_COLOR",
74
- "TEXT_HIGHLIGHT",
75
- "VERTICAL_EMBED",
76
- "VIDEO",
77
- "FONT_FAMILY",
78
- "CARD",
79
- "SMART_BLOCK",
80
- "TOC",
81
- "SHAPE"
82
- ])
83
- ).min(0).max(100).optional(),
84
- fixDocument: z.boolean().describe(
85
- "Whether to return a valid version of the document in the response."
86
- ).optional()
87
- }).describe("Options to use when validating the document.").optional()
88
- });
89
- var ValidateDocumentResponse = /* @__PURE__ */ z.object({
90
- valid: z.boolean().describe("Whether the document is valid.").optional(),
91
- violations: z.array(
92
- z.object({
93
- path: z.array(z.string()).max(100).optional(),
94
- message: z.string().describe("Error message.").max(300).optional()
95
- })
96
- ).max(100).optional(),
97
- validDocument: z.any().describe(
98
- "A valid version of the specified Ricos document.\n\nOnly returned if `fixDocument` is true."
99
- ).optional()
100
- });
101
- var ConvertToRicosDocumentRequest = /* @__PURE__ */ z.object({
102
- options: z.intersection(
103
- z.object({
104
- options: z.object({
105
- plugins: z.array(
106
- z.enum([
107
- "UNKNOWN_PLUGIN",
108
- "ACTION_BUTTON",
109
- "AUDIO",
110
- "CODE_BLOCK",
111
- "COLLAPSIBLE_LIST",
112
- "DIVIDER",
113
- "EMOJI",
114
- "FILE",
115
- "GALLERY",
116
- "GIPHY",
117
- "HASHTAG",
118
- "HEADING",
119
- "HTML",
120
- "IMAGE",
121
- "INDENT",
122
- "LAYOUT",
123
- "LINE_SPACING",
124
- "LINK",
125
- "LINK_BUTTON",
126
- "LINK_PREVIEW",
127
- "MENTIONS",
128
- "POLL",
129
- "SPOILER",
130
- "TABLE",
131
- "TEXT_COLOR",
132
- "TEXT_HIGHLIGHT",
133
- "VERTICAL_EMBED",
134
- "VIDEO",
135
- "FONT_FAMILY",
136
- "CARD",
137
- "SMART_BLOCK",
138
- "TOC",
139
- "SHAPE"
140
- ])
141
- ).min(0).max(100).optional()
142
- }).describe("Options for the converted Ricos document.").optional()
143
- }),
144
- z.xor([
145
- z.object({
146
- html: z.never().optional(),
147
- plainText: z.never().optional(),
148
- markdown: z.string().describe("Markdown content to convert.").max(3e4)
149
- }),
150
- z.object({
151
- markdown: z.never().optional(),
152
- plainText: z.never().optional(),
153
- html: z.string().describe("HTML content to convert.").max(3e4)
154
- }),
155
- z.object({
156
- markdown: z.never().optional(),
157
- html: z.never().optional(),
158
- plainText: z.string().describe("Plain text content to convert.").max(3e4)
159
- })
160
- ])
161
- ).describe("Options to use when converting to a Ricos document.")
162
- });
163
- var ConvertToRicosDocumentResponse = /* @__PURE__ */ z.object({
164
- document: z.any().describe("The specified content in a Ricos document format.").optional()
165
- });
166
- var ConvertFromRicosDocumentRequest = /* @__PURE__ */ z.object({
167
- document: z.any().describe("Ricos document to convert."),
168
- targetFormat: z.enum(["MARKDOWN", "HTML", "PLAIN_TEXT"]),
169
- options: z.intersection(
170
- z.object({}),
171
- z.xor([
172
- z.object({ plainTextOptions: z.never().optional() }),
173
- z.object({
174
- plainTextOptions: z.object({
175
- includeLinks: z.boolean().describe("Whether to include links in the Ricos document.").optional(),
176
- includeMediaLinks: z.boolean().describe(
177
- "Whether to include links to media, such as images, in the Ricos document."
178
- ).optional()
179
- }).describe("Options for converting to plain text.")
180
- })
181
- ])
182
- ).describe("Options to use when converting from a Ricos document.").optional()
183
- });
184
- var ConvertFromRicosDocumentResponse = /* @__PURE__ */ z.intersection(
185
- z.object({}),
186
- z.xor([
187
- z.object({
188
- markdown: z.never().optional(),
189
- html: z.never().optional(),
190
- plainText: z.never().optional()
191
- }),
192
- z.object({
193
- html: z.never().optional(),
194
- plainText: z.never().optional(),
195
- markdown: z.string().describe("The specified Ricos document in Markdown format.").max(3e4)
196
- }),
197
- z.object({
198
- markdown: z.never().optional(),
199
- plainText: z.never().optional(),
200
- html: z.string().describe("The specified Ricos document in HTML format.").max(3e4)
201
- }),
202
- z.object({
203
- markdown: z.never().optional(),
204
- html: z.never().optional(),
205
- plainText: z.string().describe("The specified Ricos document in plain text format.").max(3e4)
206
- })
207
- ])
208
- );
209
- // Annotate the CommonJS export names for ESM import in node:
210
- 0 && (module.exports = {
211
- ConvertFromRicosDocumentRequest,
212
- ConvertFromRicosDocumentResponse,
213
- ConvertToRicosDocumentRequest,
214
- ConvertToRicosDocumentResponse,
215
- ValidateDocumentRequest,
216
- ValidateDocumentResponse
217
- });
218
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../schemas.ts","../../src/ricos-v1-document-ricos-documents.schemas.ts"],"sourcesContent":["export * from './src/ricos-v1-document-ricos-documents.schemas.js';\n","import * as z from 'zod';\n\nexport const ValidateDocumentRequest = /*#__PURE__*/ z.object({\n document: z\n .record(z.string(), z.any())\n .describe('Ricos document to validate.'),\n options: z\n .object({\n plugins: z\n .array(\n z.enum([\n 'UNKNOWN_PLUGIN',\n 'ACTION_BUTTON',\n 'AUDIO',\n 'CODE_BLOCK',\n 'COLLAPSIBLE_LIST',\n 'DIVIDER',\n 'EMOJI',\n 'FILE',\n 'GALLERY',\n 'GIPHY',\n 'HASHTAG',\n 'HEADING',\n 'HTML',\n 'IMAGE',\n 'INDENT',\n 'LAYOUT',\n 'LINE_SPACING',\n 'LINK',\n 'LINK_BUTTON',\n 'LINK_PREVIEW',\n 'MENTIONS',\n 'POLL',\n 'SPOILER',\n 'TABLE',\n 'TEXT_COLOR',\n 'TEXT_HIGHLIGHT',\n 'VERTICAL_EMBED',\n 'VIDEO',\n 'FONT_FAMILY',\n 'CARD',\n 'SMART_BLOCK',\n 'TOC',\n 'SHAPE',\n ])\n )\n .min(0)\n .max(100)\n .optional(),\n fixDocument: z\n .boolean()\n .describe(\n 'Whether to return a valid version of the document in the response.'\n )\n .optional(),\n })\n .describe('Options to use when validating the document.')\n .optional(),\n});\nexport const ValidateDocumentResponse = /*#__PURE__*/ z.object({\n valid: z.boolean().describe('Whether the document is valid.').optional(),\n violations: z\n .array(\n z.object({\n path: z.array(z.string()).max(100).optional(),\n message: z.string().describe('Error message.').max(300).optional(),\n })\n )\n .max(100)\n .optional(),\n validDocument: z\n .any()\n .describe(\n 'A valid version of the specified Ricos document.\\n\\nOnly returned if `fixDocument` is true.'\n )\n .optional(),\n});\nexport const ConvertToRicosDocumentRequest = /*#__PURE__*/ z.object({\n options: z\n .intersection(\n z.object({\n options: z\n .object({\n plugins: z\n .array(\n z.enum([\n 'UNKNOWN_PLUGIN',\n 'ACTION_BUTTON',\n 'AUDIO',\n 'CODE_BLOCK',\n 'COLLAPSIBLE_LIST',\n 'DIVIDER',\n 'EMOJI',\n 'FILE',\n 'GALLERY',\n 'GIPHY',\n 'HASHTAG',\n 'HEADING',\n 'HTML',\n 'IMAGE',\n 'INDENT',\n 'LAYOUT',\n 'LINE_SPACING',\n 'LINK',\n 'LINK_BUTTON',\n 'LINK_PREVIEW',\n 'MENTIONS',\n 'POLL',\n 'SPOILER',\n 'TABLE',\n 'TEXT_COLOR',\n 'TEXT_HIGHLIGHT',\n 'VERTICAL_EMBED',\n 'VIDEO',\n 'FONT_FAMILY',\n 'CARD',\n 'SMART_BLOCK',\n 'TOC',\n 'SHAPE',\n ])\n )\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for the converted Ricos document.')\n .optional(),\n }),\n z.xor([\n z.object({\n html: z.never().optional(),\n plainText: z.never().optional(),\n markdown: z\n .string()\n .describe('Markdown content to convert.')\n .max(30000),\n }),\n z.object({\n markdown: z.never().optional(),\n plainText: z.never().optional(),\n html: z.string().describe('HTML content to convert.').max(30000),\n }),\n z.object({\n markdown: z.never().optional(),\n html: z.never().optional(),\n plainText: z\n .string()\n .describe('Plain text content to convert.')\n .max(30000),\n }),\n ])\n )\n .describe('Options to use when converting to a Ricos document.'),\n});\nexport const ConvertToRicosDocumentResponse = /*#__PURE__*/ z.object({\n document: z\n .any()\n .describe('The specified content in a Ricos document format.')\n .optional(),\n});\nexport const ConvertFromRicosDocumentRequest = /*#__PURE__*/ z.object({\n document: z.any().describe('Ricos document to convert.'),\n targetFormat: z.enum(['MARKDOWN', 'HTML', 'PLAIN_TEXT']),\n options: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({ plainTextOptions: z.never().optional() }),\n z.object({\n plainTextOptions: z\n .object({\n includeLinks: z\n .boolean()\n .describe('Whether to include links in the Ricos document.')\n .optional(),\n includeMediaLinks: z\n .boolean()\n .describe(\n 'Whether to include links to media, such as images, in the Ricos document.'\n )\n .optional(),\n })\n .describe('Options for converting to plain text.'),\n }),\n ])\n )\n .describe('Options to use when converting from a Ricos document.')\n .optional(),\n});\nexport const ConvertFromRicosDocumentResponse = /*#__PURE__*/ z.intersection(\n z.object({}),\n z.xor([\n z.object({\n markdown: z.never().optional(),\n html: z.never().optional(),\n plainText: z.never().optional(),\n }),\n z.object({\n html: z.never().optional(),\n plainText: z.never().optional(),\n markdown: z\n .string()\n .describe('The specified Ricos document in Markdown format.')\n .max(30000),\n }),\n z.object({\n markdown: z.never().optional(),\n plainText: z.never().optional(),\n html: z\n .string()\n .describe('The specified Ricos document in HTML format.')\n .max(30000),\n }),\n z.object({\n markdown: z.never().optional(),\n html: z.never().optional(),\n plainText: z\n .string()\n .describe('The specified Ricos document in plain text format.')\n .max(30000),\n }),\n ])\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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,CAAC;AACH;","names":[]}
@@ -1,142 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const ValidateDocumentRequest: z.ZodObject<{
4
- document: z.ZodRecord<z.ZodString, z.ZodAny>;
5
- options: z.ZodOptional<z.ZodObject<{
6
- plugins: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7
- UNKNOWN_PLUGIN: "UNKNOWN_PLUGIN";
8
- ACTION_BUTTON: "ACTION_BUTTON";
9
- AUDIO: "AUDIO";
10
- CODE_BLOCK: "CODE_BLOCK";
11
- COLLAPSIBLE_LIST: "COLLAPSIBLE_LIST";
12
- DIVIDER: "DIVIDER";
13
- EMOJI: "EMOJI";
14
- FILE: "FILE";
15
- GALLERY: "GALLERY";
16
- GIPHY: "GIPHY";
17
- HASHTAG: "HASHTAG";
18
- HEADING: "HEADING";
19
- HTML: "HTML";
20
- IMAGE: "IMAGE";
21
- INDENT: "INDENT";
22
- LAYOUT: "LAYOUT";
23
- LINE_SPACING: "LINE_SPACING";
24
- LINK: "LINK";
25
- LINK_BUTTON: "LINK_BUTTON";
26
- LINK_PREVIEW: "LINK_PREVIEW";
27
- MENTIONS: "MENTIONS";
28
- POLL: "POLL";
29
- SPOILER: "SPOILER";
30
- TABLE: "TABLE";
31
- TEXT_COLOR: "TEXT_COLOR";
32
- TEXT_HIGHLIGHT: "TEXT_HIGHLIGHT";
33
- VERTICAL_EMBED: "VERTICAL_EMBED";
34
- VIDEO: "VIDEO";
35
- FONT_FAMILY: "FONT_FAMILY";
36
- CARD: "CARD";
37
- SMART_BLOCK: "SMART_BLOCK";
38
- TOC: "TOC";
39
- SHAPE: "SHAPE";
40
- }>>>;
41
- fixDocument: z.ZodOptional<z.ZodBoolean>;
42
- }, z.core.$strip>>;
43
- }, z.core.$strip>;
44
- declare const ValidateDocumentResponse: z.ZodObject<{
45
- valid: z.ZodOptional<z.ZodBoolean>;
46
- violations: z.ZodOptional<z.ZodArray<z.ZodObject<{
47
- path: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
- message: z.ZodOptional<z.ZodString>;
49
- }, z.core.$strip>>>;
50
- validDocument: z.ZodOptional<z.ZodAny>;
51
- }, z.core.$strip>;
52
- declare const ConvertToRicosDocumentRequest: z.ZodObject<{
53
- options: z.ZodIntersection<z.ZodObject<{
54
- options: z.ZodOptional<z.ZodObject<{
55
- plugins: z.ZodOptional<z.ZodArray<z.ZodEnum<{
56
- UNKNOWN_PLUGIN: "UNKNOWN_PLUGIN";
57
- ACTION_BUTTON: "ACTION_BUTTON";
58
- AUDIO: "AUDIO";
59
- CODE_BLOCK: "CODE_BLOCK";
60
- COLLAPSIBLE_LIST: "COLLAPSIBLE_LIST";
61
- DIVIDER: "DIVIDER";
62
- EMOJI: "EMOJI";
63
- FILE: "FILE";
64
- GALLERY: "GALLERY";
65
- GIPHY: "GIPHY";
66
- HASHTAG: "HASHTAG";
67
- HEADING: "HEADING";
68
- HTML: "HTML";
69
- IMAGE: "IMAGE";
70
- INDENT: "INDENT";
71
- LAYOUT: "LAYOUT";
72
- LINE_SPACING: "LINE_SPACING";
73
- LINK: "LINK";
74
- LINK_BUTTON: "LINK_BUTTON";
75
- LINK_PREVIEW: "LINK_PREVIEW";
76
- MENTIONS: "MENTIONS";
77
- POLL: "POLL";
78
- SPOILER: "SPOILER";
79
- TABLE: "TABLE";
80
- TEXT_COLOR: "TEXT_COLOR";
81
- TEXT_HIGHLIGHT: "TEXT_HIGHLIGHT";
82
- VERTICAL_EMBED: "VERTICAL_EMBED";
83
- VIDEO: "VIDEO";
84
- FONT_FAMILY: "FONT_FAMILY";
85
- CARD: "CARD";
86
- SMART_BLOCK: "SMART_BLOCK";
87
- TOC: "TOC";
88
- SHAPE: "SHAPE";
89
- }>>>;
90
- }, z.core.$strip>>;
91
- }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
92
- html: z.ZodOptional<z.ZodNever>;
93
- plainText: z.ZodOptional<z.ZodNever>;
94
- markdown: z.ZodString;
95
- }, z.core.$strip>, z.ZodObject<{
96
- markdown: z.ZodOptional<z.ZodNever>;
97
- plainText: z.ZodOptional<z.ZodNever>;
98
- html: z.ZodString;
99
- }, z.core.$strip>, z.ZodObject<{
100
- markdown: z.ZodOptional<z.ZodNever>;
101
- html: z.ZodOptional<z.ZodNever>;
102
- plainText: z.ZodString;
103
- }, z.core.$strip>]>>;
104
- }, z.core.$strip>;
105
- declare const ConvertToRicosDocumentResponse: z.ZodObject<{
106
- document: z.ZodOptional<z.ZodAny>;
107
- }, z.core.$strip>;
108
- declare const ConvertFromRicosDocumentRequest: z.ZodObject<{
109
- document: z.ZodAny;
110
- targetFormat: z.ZodEnum<{
111
- HTML: "HTML";
112
- MARKDOWN: "MARKDOWN";
113
- PLAIN_TEXT: "PLAIN_TEXT";
114
- }>;
115
- options: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
116
- plainTextOptions: z.ZodOptional<z.ZodNever>;
117
- }, z.core.$strip>, z.ZodObject<{
118
- plainTextOptions: z.ZodObject<{
119
- includeLinks: z.ZodOptional<z.ZodBoolean>;
120
- includeMediaLinks: z.ZodOptional<z.ZodBoolean>;
121
- }, z.core.$strip>;
122
- }, z.core.$strip>]>>>;
123
- }, z.core.$strip>;
124
- declare const ConvertFromRicosDocumentResponse: z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
125
- markdown: z.ZodOptional<z.ZodNever>;
126
- html: z.ZodOptional<z.ZodNever>;
127
- plainText: z.ZodOptional<z.ZodNever>;
128
- }, z.core.$strip>, z.ZodObject<{
129
- html: z.ZodOptional<z.ZodNever>;
130
- plainText: z.ZodOptional<z.ZodNever>;
131
- markdown: z.ZodString;
132
- }, z.core.$strip>, z.ZodObject<{
133
- markdown: z.ZodOptional<z.ZodNever>;
134
- plainText: z.ZodOptional<z.ZodNever>;
135
- html: z.ZodString;
136
- }, z.core.$strip>, z.ZodObject<{
137
- markdown: z.ZodOptional<z.ZodNever>;
138
- html: z.ZodOptional<z.ZodNever>;
139
- plainText: z.ZodString;
140
- }, z.core.$strip>]>>;
141
-
142
- export { ConvertFromRicosDocumentRequest, ConvertFromRicosDocumentResponse, ConvertToRicosDocumentRequest, ConvertToRicosDocumentResponse, ValidateDocumentRequest, ValidateDocumentResponse };