@wix/auto_sdk_papyrus_documents 1.0.1 → 1.0.3
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/build/cjs/index.d.ts +17 -17
- package/build/cjs/index.js +138 -138
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +524 -524
- package/build/cjs/index.typings.js +122 -122
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +529 -529
- package/build/cjs/meta.js +112 -112
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +22 -22
- package/build/cjs/schemas.js +298 -260
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +17 -17
- package/build/es/index.mjs +138 -138
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +524 -524
- package/build/es/index.typings.mjs +122 -122
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +529 -529
- package/build/es/meta.mjs +112 -112
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +22 -22
- package/build/es/schemas.mjs +298 -260
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +17 -17
- package/build/internal/cjs/index.typings.d.ts +550 -550
- package/build/internal/cjs/meta.d.ts +560 -560
- package/build/internal/cjs/schemas.d.ts +22 -22
- package/build/internal/es/index.d.mts +17 -17
- package/build/internal/es/index.typings.d.mts +550 -550
- package/build/internal/es/meta.d.mts +560 -560
- package/build/internal/es/schemas.d.mts +22 -22
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -1118
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -872
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -716
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -666
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1067
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -826
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -669
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -610
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/cjs/schemas.js
CHANGED
|
@@ -55,16 +55,42 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
55
55
|
|
|
56
56
|
// src/papyrus-v1-document-documents.schemas.ts
|
|
57
57
|
var z = __toESM(require("zod"));
|
|
58
|
+
var GetDownloadPageRequest = /* @__PURE__ */ z.object({
|
|
59
|
+
file: /* @__PURE__ */ z.string().max(1e3)
|
|
60
|
+
});
|
|
61
|
+
var GetDownloadPageResponse = /* @__PURE__ */ z.object({
|
|
62
|
+
body: /* @__PURE__ */ z.string().optional(),
|
|
63
|
+
statusCode: /* @__PURE__ */ z.number().int().optional().nullable(),
|
|
64
|
+
headers: /* @__PURE__ */ z.array(
|
|
65
|
+
/* @__PURE__ */ z.object({
|
|
66
|
+
key: /* @__PURE__ */ z.string().optional(),
|
|
67
|
+
value: /* @__PURE__ */ z.string().optional()
|
|
68
|
+
})
|
|
69
|
+
).optional()
|
|
70
|
+
});
|
|
71
|
+
var RedirectToDocumentRequest = /* @__PURE__ */ z.object({
|
|
72
|
+
file: /* @__PURE__ */ z.string().max(1e3)
|
|
73
|
+
});
|
|
74
|
+
var RedirectToDocumentResponse = /* @__PURE__ */ z.object({
|
|
75
|
+
body: /* @__PURE__ */ z.string().optional(),
|
|
76
|
+
statusCode: /* @__PURE__ */ z.number().int().optional().nullable(),
|
|
77
|
+
headers: /* @__PURE__ */ z.array(
|
|
78
|
+
/* @__PURE__ */ z.object({
|
|
79
|
+
key: /* @__PURE__ */ z.string().optional(),
|
|
80
|
+
value: /* @__PURE__ */ z.string().optional()
|
|
81
|
+
})
|
|
82
|
+
).optional()
|
|
83
|
+
});
|
|
58
84
|
var CreateDocumentRequest = /* @__PURE__ */ z.object({
|
|
59
|
-
options: z.object({
|
|
60
|
-
document: z.object({
|
|
61
|
-
_id: z.string().describe("Document ID.").regex(
|
|
85
|
+
options: /* @__PURE__ */ z.object({
|
|
86
|
+
document: /* @__PURE__ */ z.object({
|
|
87
|
+
_id: /* @__PURE__ */ z.string().describe("Document ID.").regex(
|
|
62
88
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
63
89
|
"Must be a valid GUID"
|
|
64
90
|
).optional().nullable(),
|
|
65
|
-
_createdDate: z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
66
|
-
_updatedDate: z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
67
|
-
renderStatus: z.enum([
|
|
91
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
92
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
93
|
+
renderStatus: /* @__PURE__ */ z.enum([
|
|
68
94
|
"UNKNOWN",
|
|
69
95
|
"ACCEPTED",
|
|
70
96
|
"RENDERING",
|
|
@@ -72,193 +98,208 @@ var CreateDocumentRequest = /* @__PURE__ */ z.object({
|
|
|
72
98
|
"FAILED",
|
|
73
99
|
"EXPIRED"
|
|
74
100
|
]).optional(),
|
|
75
|
-
downloadUrl: z.string().describe(
|
|
101
|
+
downloadUrl: /* @__PURE__ */ z.string().describe(
|
|
76
102
|
"URL to download document. Returned only when Document is in `READY` state."
|
|
77
103
|
).url().optional().nullable(),
|
|
78
|
-
templateId: z.string().describe(
|
|
104
|
+
templateId: /* @__PURE__ */ z.string().describe(
|
|
79
105
|
"Template ID. When this parameter used the document will be rendered with this template default settings"
|
|
80
106
|
).min(1).max(20).optional().nullable(),
|
|
81
|
-
externalId: z.string().describe(
|
|
107
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
82
108
|
"Unique per tenant external ID, for example order number. Used to retrieve Document later."
|
|
83
109
|
).min(1).max(100),
|
|
84
|
-
templateSettingsExternalId: z.string().describe(
|
|
110
|
+
templateSettingsExternalId: /* @__PURE__ */ z.string().describe(
|
|
85
111
|
"Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings."
|
|
86
112
|
).max(100).optional().nullable(),
|
|
87
|
-
templateSettingsId: z.string().describe("Template settings ID.").regex(
|
|
113
|
+
templateSettingsId: /* @__PURE__ */ z.string().describe("Template settings ID.").regex(
|
|
88
114
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
89
115
|
"Must be a valid GUID"
|
|
90
116
|
).optional().nullable(),
|
|
91
|
-
appSlug: z.string().describe("The app slug of the template").min(1).max(20),
|
|
92
|
-
templateType: z.string().describe("The type of the template.").min(1).max(20),
|
|
93
|
-
content: z.object({
|
|
94
|
-
pages: z.array(
|
|
95
|
-
|
|
117
|
+
appSlug: /* @__PURE__ */ z.string().describe("The app slug of the template").min(1).max(20),
|
|
118
|
+
templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20),
|
|
119
|
+
content: /* @__PURE__ */ z.object({
|
|
120
|
+
pages: /* @__PURE__ */ z.array(
|
|
121
|
+
/* @__PURE__ */ z.record(
|
|
122
|
+
/* @__PURE__ */ z.string(),
|
|
123
|
+
/* @__PURE__ */ z.any()
|
|
124
|
+
)
|
|
125
|
+
).min(1).max(100).optional(),
|
|
126
|
+
content: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
96
127
|
"Other document content referenced by $content variable"
|
|
97
128
|
).optional().nullable(),
|
|
98
|
-
language: z.string().describe(
|
|
129
|
+
language: /* @__PURE__ */ z.string().describe(
|
|
99
130
|
"ISO 639-1 language code of content (used in translations)."
|
|
100
131
|
).optional(),
|
|
101
|
-
locale: z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
132
|
+
locale: /* @__PURE__ */ z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
102
133
|
}).describe("Document content that is injected into template."),
|
|
103
|
-
expiresInHours: z.number().int().describe(
|
|
134
|
+
expiresInHours: /* @__PURE__ */ z.number().int().describe(
|
|
104
135
|
"Number of hours after which document will be eventually expired and its content erased."
|
|
105
136
|
).min(1).max(43800).optional(),
|
|
106
|
-
expirationDate: z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
107
|
-
format: z.enum(["UNKNOWN", "PDF"]).optional(),
|
|
108
|
-
public: z.boolean().describe(
|
|
137
|
+
expirationDate: /* @__PURE__ */ z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
138
|
+
format: /* @__PURE__ */ z.enum(["UNKNOWN", "PDF"]).optional(),
|
|
139
|
+
public: /* @__PURE__ */ z.boolean().describe(
|
|
109
140
|
"Whether the link to the uploaded document is public or private.\nFor public document static URL will be returned.\nFor private document temporary URL will be generated by DocumentService.DownloadDocument."
|
|
110
141
|
).optional().nullable(),
|
|
111
|
-
fileName: z.string().describe(
|
|
142
|
+
fileName: /* @__PURE__ */ z.string().describe(
|
|
112
143
|
"Optional filename (without extension) to be used for the downloadable document."
|
|
113
144
|
).min(1).max(50).optional().nullable(),
|
|
114
|
-
contentChecksum: z.string().describe(
|
|
145
|
+
contentChecksum: /* @__PURE__ */ z.string().describe(
|
|
115
146
|
"Client defined content checksum. Can be used for content comparison."
|
|
116
147
|
).min(1).max(64).optional().nullable(),
|
|
117
|
-
renderDelayedEventConfig: z.object({
|
|
118
|
-
timeInQueueMinutes: z.number().int().describe(
|
|
148
|
+
renderDelayedEventConfig: /* @__PURE__ */ z.object({
|
|
149
|
+
timeInQueueMinutes: /* @__PURE__ */ z.number().int().describe(
|
|
119
150
|
"Controls DocumentRenderDelayed action event sending.\nEvent will be sent after time_in_queue_minutes if document render status is ACCEPTED/RENDERING."
|
|
120
151
|
).min(5).max(120).optional()
|
|
121
152
|
}).describe("Rendering notification config.").optional(),
|
|
122
|
-
sizeInBytes: z.number().int().describe(
|
|
153
|
+
sizeInBytes: /* @__PURE__ */ z.number().int().describe(
|
|
123
154
|
"Size in bytes of a rendered document. Returned only when Document is in `READY` state."
|
|
124
155
|
).optional().nullable()
|
|
125
156
|
}).describe("Document to be created").optional()
|
|
126
157
|
}).optional()
|
|
127
158
|
});
|
|
128
159
|
var CreateDocumentResponse = /* @__PURE__ */ z.object({
|
|
129
|
-
_id: z.string().describe("Document ID.").regex(
|
|
160
|
+
_id: /* @__PURE__ */ z.string().describe("Document ID.").regex(
|
|
130
161
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
131
162
|
"Must be a valid GUID"
|
|
132
163
|
).optional().nullable(),
|
|
133
|
-
_createdDate: z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
134
|
-
_updatedDate: z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
135
|
-
renderStatus: z.enum(["UNKNOWN", "ACCEPTED", "RENDERING", "READY", "FAILED", "EXPIRED"]).describe("Document render status.").optional(),
|
|
136
|
-
downloadUrl: z.string().describe(
|
|
164
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
165
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
166
|
+
renderStatus: /* @__PURE__ */ z.enum(["UNKNOWN", "ACCEPTED", "RENDERING", "READY", "FAILED", "EXPIRED"]).describe("Document render status.").optional(),
|
|
167
|
+
downloadUrl: /* @__PURE__ */ z.string().describe(
|
|
137
168
|
"URL to download document. Returned only when Document is in `READY` state."
|
|
138
169
|
).url().optional().nullable(),
|
|
139
|
-
templateId: z.string().describe(
|
|
170
|
+
templateId: /* @__PURE__ */ z.string().describe(
|
|
140
171
|
"Template ID. When this parameter used the document will be rendered with this template default settings"
|
|
141
172
|
).min(1).max(20).optional().nullable(),
|
|
142
|
-
externalId: z.string().describe(
|
|
173
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
143
174
|
"Unique per tenant external ID, for example order number. Used to retrieve Document later."
|
|
144
175
|
).min(1).max(100).optional().nullable(),
|
|
145
|
-
templateSettingsExternalId: z.string().describe(
|
|
176
|
+
templateSettingsExternalId: /* @__PURE__ */ z.string().describe(
|
|
146
177
|
"Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings."
|
|
147
178
|
).max(100).optional().nullable(),
|
|
148
|
-
templateSettingsId: z.string().describe("Template settings ID.").regex(
|
|
179
|
+
templateSettingsId: /* @__PURE__ */ z.string().describe("Template settings ID.").regex(
|
|
149
180
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
150
181
|
"Must be a valid GUID"
|
|
151
182
|
).optional().nullable(),
|
|
152
|
-
appSlug: z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
153
|
-
templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
154
|
-
content: z.object({
|
|
155
|
-
pages: z.array(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
183
|
+
appSlug: /* @__PURE__ */ z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
184
|
+
templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
185
|
+
content: /* @__PURE__ */ z.object({
|
|
186
|
+
pages: /* @__PURE__ */ z.array(
|
|
187
|
+
/* @__PURE__ */ z.record(
|
|
188
|
+
/* @__PURE__ */ z.string(),
|
|
189
|
+
/* @__PURE__ */ z.any()
|
|
190
|
+
)
|
|
191
|
+
).min(1).max(100).optional(),
|
|
192
|
+
content: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Other document content referenced by $content variable").optional().nullable(),
|
|
193
|
+
language: /* @__PURE__ */ z.string().describe("ISO 639-1 language code of content (used in translations).").optional(),
|
|
194
|
+
locale: /* @__PURE__ */ z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
159
195
|
}).describe("Document content that is injected into template.").optional(),
|
|
160
|
-
expiresInHours: z.number().int().describe(
|
|
196
|
+
expiresInHours: /* @__PURE__ */ z.number().int().describe(
|
|
161
197
|
"Number of hours after which document will be eventually expired and its content erased."
|
|
162
198
|
).min(1).max(43800).optional(),
|
|
163
|
-
expirationDate: z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
164
|
-
format: z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
165
|
-
public: z.boolean().describe(
|
|
199
|
+
expirationDate: /* @__PURE__ */ z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
200
|
+
format: /* @__PURE__ */ z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
201
|
+
public: /* @__PURE__ */ z.boolean().describe(
|
|
166
202
|
"Whether the link to the uploaded document is public or private.\nFor public document static URL will be returned.\nFor private document temporary URL will be generated by DocumentService.DownloadDocument."
|
|
167
203
|
).optional().nullable(),
|
|
168
|
-
fileName: z.string().describe(
|
|
204
|
+
fileName: /* @__PURE__ */ z.string().describe(
|
|
169
205
|
"Optional filename (without extension) to be used for the downloadable document."
|
|
170
206
|
).min(1).max(50).optional().nullable(),
|
|
171
|
-
contentChecksum: z.string().describe(
|
|
207
|
+
contentChecksum: /* @__PURE__ */ z.string().describe(
|
|
172
208
|
"Client defined content checksum. Can be used for content comparison."
|
|
173
209
|
).min(1).max(64).optional().nullable(),
|
|
174
|
-
renderDelayedEventConfig: z.object({
|
|
175
|
-
timeInQueueMinutes: z.number().int().describe(
|
|
210
|
+
renderDelayedEventConfig: /* @__PURE__ */ z.object({
|
|
211
|
+
timeInQueueMinutes: /* @__PURE__ */ z.number().int().describe(
|
|
176
212
|
"Controls DocumentRenderDelayed action event sending.\nEvent will be sent after time_in_queue_minutes if document render status is ACCEPTED/RENDERING."
|
|
177
213
|
).min(5).max(120).optional()
|
|
178
214
|
}).describe("Rendering notification config.").optional(),
|
|
179
|
-
sizeInBytes: z.number().int().describe(
|
|
215
|
+
sizeInBytes: /* @__PURE__ */ z.number().int().describe(
|
|
180
216
|
"Size in bytes of a rendered document. Returned only when Document is in `READY` state."
|
|
181
217
|
).optional().nullable()
|
|
182
218
|
});
|
|
183
219
|
var GetDocumentRequest = /* @__PURE__ */ z.object({
|
|
184
|
-
documentId: z.string().describe("ID of the Document to retrieve").regex(
|
|
220
|
+
documentId: /* @__PURE__ */ z.string().describe("ID of the Document to retrieve").regex(
|
|
185
221
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
186
222
|
"Must be a valid GUID"
|
|
187
223
|
),
|
|
188
|
-
options: z.object({
|
|
189
|
-
fields: z.array(z.enum(["DOCUMENT_CONTENT"])).max(1).optional()
|
|
224
|
+
options: /* @__PURE__ */ z.object({
|
|
225
|
+
fields: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["DOCUMENT_CONTENT"])).max(1).optional()
|
|
190
226
|
}).optional()
|
|
191
227
|
});
|
|
192
228
|
var GetDocumentResponse = /* @__PURE__ */ z.object({
|
|
193
|
-
_id: z.string().describe("Document ID.").regex(
|
|
229
|
+
_id: /* @__PURE__ */ z.string().describe("Document ID.").regex(
|
|
194
230
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
195
231
|
"Must be a valid GUID"
|
|
196
232
|
).optional().nullable(),
|
|
197
|
-
_createdDate: z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
198
|
-
_updatedDate: z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
199
|
-
renderStatus: z.enum(["UNKNOWN", "ACCEPTED", "RENDERING", "READY", "FAILED", "EXPIRED"]).describe("Document render status.").optional(),
|
|
200
|
-
downloadUrl: z.string().describe(
|
|
233
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
234
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
235
|
+
renderStatus: /* @__PURE__ */ z.enum(["UNKNOWN", "ACCEPTED", "RENDERING", "READY", "FAILED", "EXPIRED"]).describe("Document render status.").optional(),
|
|
236
|
+
downloadUrl: /* @__PURE__ */ z.string().describe(
|
|
201
237
|
"URL to download document. Returned only when Document is in `READY` state."
|
|
202
238
|
).url().optional().nullable(),
|
|
203
|
-
templateId: z.string().describe(
|
|
239
|
+
templateId: /* @__PURE__ */ z.string().describe(
|
|
204
240
|
"Template ID. When this parameter used the document will be rendered with this template default settings"
|
|
205
241
|
).min(1).max(20).optional().nullable(),
|
|
206
|
-
externalId: z.string().describe(
|
|
242
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
207
243
|
"Unique per tenant external ID, for example order number. Used to retrieve Document later."
|
|
208
244
|
).min(1).max(100).optional().nullable(),
|
|
209
|
-
templateSettingsExternalId: z.string().describe(
|
|
245
|
+
templateSettingsExternalId: /* @__PURE__ */ z.string().describe(
|
|
210
246
|
"Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings."
|
|
211
247
|
).max(100).optional().nullable(),
|
|
212
|
-
templateSettingsId: z.string().describe("Template settings ID.").regex(
|
|
248
|
+
templateSettingsId: /* @__PURE__ */ z.string().describe("Template settings ID.").regex(
|
|
213
249
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
214
250
|
"Must be a valid GUID"
|
|
215
251
|
).optional().nullable(),
|
|
216
|
-
appSlug: z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
217
|
-
templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
218
|
-
content: z.object({
|
|
219
|
-
pages: z.array(
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
252
|
+
appSlug: /* @__PURE__ */ z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
253
|
+
templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
254
|
+
content: /* @__PURE__ */ z.object({
|
|
255
|
+
pages: /* @__PURE__ */ z.array(
|
|
256
|
+
/* @__PURE__ */ z.record(
|
|
257
|
+
/* @__PURE__ */ z.string(),
|
|
258
|
+
/* @__PURE__ */ z.any()
|
|
259
|
+
)
|
|
260
|
+
).min(1).max(100).optional(),
|
|
261
|
+
content: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Other document content referenced by $content variable").optional().nullable(),
|
|
262
|
+
language: /* @__PURE__ */ z.string().describe("ISO 639-1 language code of content (used in translations).").optional(),
|
|
263
|
+
locale: /* @__PURE__ */ z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
223
264
|
}).describe("Document content that is injected into template.").optional(),
|
|
224
|
-
expiresInHours: z.number().int().describe(
|
|
265
|
+
expiresInHours: /* @__PURE__ */ z.number().int().describe(
|
|
225
266
|
"Number of hours after which document will be eventually expired and its content erased."
|
|
226
267
|
).min(1).max(43800).optional(),
|
|
227
|
-
expirationDate: z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
228
|
-
format: z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
229
|
-
public: z.boolean().describe(
|
|
268
|
+
expirationDate: /* @__PURE__ */ z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
269
|
+
format: /* @__PURE__ */ z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
270
|
+
public: /* @__PURE__ */ z.boolean().describe(
|
|
230
271
|
"Whether the link to the uploaded document is public or private.\nFor public document static URL will be returned.\nFor private document temporary URL will be generated by DocumentService.DownloadDocument."
|
|
231
272
|
).optional().nullable(),
|
|
232
|
-
fileName: z.string().describe(
|
|
273
|
+
fileName: /* @__PURE__ */ z.string().describe(
|
|
233
274
|
"Optional filename (without extension) to be used for the downloadable document."
|
|
234
275
|
).min(1).max(50).optional().nullable(),
|
|
235
|
-
contentChecksum: z.string().describe(
|
|
276
|
+
contentChecksum: /* @__PURE__ */ z.string().describe(
|
|
236
277
|
"Client defined content checksum. Can be used for content comparison."
|
|
237
278
|
).min(1).max(64).optional().nullable(),
|
|
238
|
-
renderDelayedEventConfig: z.object({
|
|
239
|
-
timeInQueueMinutes: z.number().int().describe(
|
|
279
|
+
renderDelayedEventConfig: /* @__PURE__ */ z.object({
|
|
280
|
+
timeInQueueMinutes: /* @__PURE__ */ z.number().int().describe(
|
|
240
281
|
"Controls DocumentRenderDelayed action event sending.\nEvent will be sent after time_in_queue_minutes if document render status is ACCEPTED/RENDERING."
|
|
241
282
|
).min(5).max(120).optional()
|
|
242
283
|
}).describe("Rendering notification config.").optional(),
|
|
243
|
-
sizeInBytes: z.number().int().describe(
|
|
284
|
+
sizeInBytes: /* @__PURE__ */ z.number().int().describe(
|
|
244
285
|
"Size in bytes of a rendered document. Returned only when Document is in `READY` state."
|
|
245
286
|
).optional().nullable()
|
|
246
287
|
});
|
|
247
288
|
var DeleteDocumentRequest = /* @__PURE__ */ z.object({
|
|
248
|
-
documentId: z.string().describe("ID of the Document to delete").regex(
|
|
289
|
+
documentId: /* @__PURE__ */ z.string().describe("ID of the Document to delete").regex(
|
|
249
290
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
250
291
|
"Must be a valid GUID"
|
|
251
292
|
)
|
|
252
293
|
});
|
|
253
294
|
var DeleteDocumentResponse = /* @__PURE__ */ z.object({
|
|
254
|
-
document: z.object({
|
|
255
|
-
_id: z.string().describe("Document ID.").regex(
|
|
295
|
+
document: /* @__PURE__ */ z.object({
|
|
296
|
+
_id: /* @__PURE__ */ z.string().describe("Document ID.").regex(
|
|
256
297
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
257
298
|
"Must be a valid GUID"
|
|
258
299
|
).optional().nullable(),
|
|
259
|
-
_createdDate: z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
260
|
-
_updatedDate: z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
261
|
-
renderStatus: z.enum([
|
|
300
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
301
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
302
|
+
renderStatus: /* @__PURE__ */ z.enum([
|
|
262
303
|
"UNKNOWN",
|
|
263
304
|
"ACCEPTED",
|
|
264
305
|
"RENDERING",
|
|
@@ -266,94 +307,99 @@ var DeleteDocumentResponse = /* @__PURE__ */ z.object({
|
|
|
266
307
|
"FAILED",
|
|
267
308
|
"EXPIRED"
|
|
268
309
|
]).describe("Document render status.").optional(),
|
|
269
|
-
downloadUrl: z.string().describe(
|
|
310
|
+
downloadUrl: /* @__PURE__ */ z.string().describe(
|
|
270
311
|
"URL to download document. Returned only when Document is in `READY` state."
|
|
271
312
|
).url().optional().nullable(),
|
|
272
|
-
templateId: z.string().describe(
|
|
313
|
+
templateId: /* @__PURE__ */ z.string().describe(
|
|
273
314
|
"Template ID. When this parameter used the document will be rendered with this template default settings"
|
|
274
315
|
).min(1).max(20).optional().nullable(),
|
|
275
|
-
externalId: z.string().describe(
|
|
316
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
276
317
|
"Unique per tenant external ID, for example order number. Used to retrieve Document later."
|
|
277
318
|
).min(1).max(100).optional().nullable(),
|
|
278
|
-
templateSettingsExternalId: z.string().describe(
|
|
319
|
+
templateSettingsExternalId: /* @__PURE__ */ z.string().describe(
|
|
279
320
|
"Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings."
|
|
280
321
|
).max(100).optional().nullable(),
|
|
281
|
-
templateSettingsId: z.string().describe("Template settings ID.").regex(
|
|
322
|
+
templateSettingsId: /* @__PURE__ */ z.string().describe("Template settings ID.").regex(
|
|
282
323
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
283
324
|
"Must be a valid GUID"
|
|
284
325
|
).optional().nullable(),
|
|
285
|
-
appSlug: z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
286
|
-
templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
287
|
-
content: z.object({
|
|
288
|
-
pages: z.array(
|
|
289
|
-
|
|
290
|
-
|
|
326
|
+
appSlug: /* @__PURE__ */ z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
327
|
+
templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
328
|
+
content: /* @__PURE__ */ z.object({
|
|
329
|
+
pages: /* @__PURE__ */ z.array(
|
|
330
|
+
/* @__PURE__ */ z.record(
|
|
331
|
+
/* @__PURE__ */ z.string(),
|
|
332
|
+
/* @__PURE__ */ z.any()
|
|
333
|
+
)
|
|
334
|
+
).min(1).max(100).optional(),
|
|
335
|
+
content: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Other document content referenced by $content variable").optional().nullable(),
|
|
336
|
+
language: /* @__PURE__ */ z.string().describe(
|
|
291
337
|
"ISO 639-1 language code of content (used in translations)."
|
|
292
338
|
).optional(),
|
|
293
|
-
locale: z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
339
|
+
locale: /* @__PURE__ */ z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
294
340
|
}).describe("Document content that is injected into template.").optional(),
|
|
295
|
-
expiresInHours: z.number().int().describe(
|
|
341
|
+
expiresInHours: /* @__PURE__ */ z.number().int().describe(
|
|
296
342
|
"Number of hours after which document will be eventually expired and its content erased."
|
|
297
343
|
).min(1).max(43800).optional(),
|
|
298
|
-
expirationDate: z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
299
|
-
format: z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
300
|
-
public: z.boolean().describe(
|
|
344
|
+
expirationDate: /* @__PURE__ */ z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
345
|
+
format: /* @__PURE__ */ z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
346
|
+
public: /* @__PURE__ */ z.boolean().describe(
|
|
301
347
|
"Whether the link to the uploaded document is public or private.\nFor public document static URL will be returned.\nFor private document temporary URL will be generated by DocumentService.DownloadDocument."
|
|
302
348
|
).optional().nullable(),
|
|
303
|
-
fileName: z.string().describe(
|
|
349
|
+
fileName: /* @__PURE__ */ z.string().describe(
|
|
304
350
|
"Optional filename (without extension) to be used for the downloadable document."
|
|
305
351
|
).min(1).max(50).optional().nullable(),
|
|
306
|
-
contentChecksum: z.string().describe(
|
|
352
|
+
contentChecksum: /* @__PURE__ */ z.string().describe(
|
|
307
353
|
"Client defined content checksum. Can be used for content comparison."
|
|
308
354
|
).min(1).max(64).optional().nullable(),
|
|
309
|
-
renderDelayedEventConfig: z.object({
|
|
310
|
-
timeInQueueMinutes: z.number().int().describe(
|
|
355
|
+
renderDelayedEventConfig: /* @__PURE__ */ z.object({
|
|
356
|
+
timeInQueueMinutes: /* @__PURE__ */ z.number().int().describe(
|
|
311
357
|
"Controls DocumentRenderDelayed action event sending.\nEvent will be sent after time_in_queue_minutes if document render status is ACCEPTED/RENDERING."
|
|
312
358
|
).min(5).max(120).optional()
|
|
313
359
|
}).describe("Rendering notification config.").optional(),
|
|
314
|
-
sizeInBytes: z.number().int().describe(
|
|
360
|
+
sizeInBytes: /* @__PURE__ */ z.number().int().describe(
|
|
315
361
|
"Size in bytes of a rendered document. Returned only when Document is in `READY` state."
|
|
316
362
|
).optional().nullable()
|
|
317
363
|
}).describe("Deleted document.").optional()
|
|
318
364
|
});
|
|
319
365
|
var QueryDocumentRequest = /* @__PURE__ */ z.object({
|
|
320
|
-
query: z.intersection(
|
|
321
|
-
z.object({
|
|
322
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
366
|
+
query: /* @__PURE__ */ z.intersection(
|
|
367
|
+
/* @__PURE__ */ z.object({
|
|
368
|
+
filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
323
369
|
"Filter object.\n\nLearn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)."
|
|
324
370
|
).optional().nullable(),
|
|
325
|
-
sort: z.array(
|
|
326
|
-
z.object({
|
|
327
|
-
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
328
|
-
order: z.enum(["ASC", "DESC"]).optional(),
|
|
329
|
-
origin: z.object({
|
|
330
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
331
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
371
|
+
sort: /* @__PURE__ */ z.array(
|
|
372
|
+
/* @__PURE__ */ z.object({
|
|
373
|
+
fieldName: /* @__PURE__ */ z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
374
|
+
order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional(),
|
|
375
|
+
origin: /* @__PURE__ */ z.object({
|
|
376
|
+
latitude: /* @__PURE__ */ z.number().describe("Address latitude.").optional().nullable(),
|
|
377
|
+
longitude: /* @__PURE__ */ z.number().describe("Address longitude.").optional().nullable()
|
|
332
378
|
}).describe(
|
|
333
379
|
"Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
|
|
334
380
|
).optional()
|
|
335
381
|
})
|
|
336
382
|
).optional()
|
|
337
383
|
}),
|
|
338
|
-
z.xor([
|
|
339
|
-
z.object({
|
|
340
|
-
paging: z.never().optional(),
|
|
341
|
-
cursorPaging: z.never().optional()
|
|
384
|
+
/* @__PURE__ */ z.xor([
|
|
385
|
+
/* @__PURE__ */ z.object({
|
|
386
|
+
paging: /* @__PURE__ */ z.never().optional(),
|
|
387
|
+
cursorPaging: /* @__PURE__ */ z.never().optional()
|
|
342
388
|
}),
|
|
343
|
-
z.object({
|
|
344
|
-
cursorPaging: z.never().optional(),
|
|
345
|
-
paging: z.object({
|
|
346
|
-
limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
|
|
347
|
-
offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
|
|
389
|
+
/* @__PURE__ */ z.object({
|
|
390
|
+
cursorPaging: /* @__PURE__ */ z.never().optional(),
|
|
391
|
+
paging: /* @__PURE__ */ z.object({
|
|
392
|
+
limit: /* @__PURE__ */ z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
|
|
393
|
+
offset: /* @__PURE__ */ z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
|
|
348
394
|
}).describe(
|
|
349
395
|
"Paging options to limit and offset the number of items."
|
|
350
396
|
)
|
|
351
397
|
}),
|
|
352
|
-
z.object({
|
|
353
|
-
paging: z.never().optional(),
|
|
354
|
-
cursorPaging: z.object({
|
|
355
|
-
limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
356
|
-
cursor: z.string().describe(
|
|
398
|
+
/* @__PURE__ */ z.object({
|
|
399
|
+
paging: /* @__PURE__ */ z.never().optional(),
|
|
400
|
+
cursorPaging: /* @__PURE__ */ z.object({
|
|
401
|
+
limit: /* @__PURE__ */ z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
402
|
+
cursor: /* @__PURE__ */ z.string().describe(
|
|
357
403
|
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
358
404
|
).max(16e3).optional().nullable()
|
|
359
405
|
}).describe(
|
|
@@ -362,20 +408,20 @@ var QueryDocumentRequest = /* @__PURE__ */ z.object({
|
|
|
362
408
|
})
|
|
363
409
|
])
|
|
364
410
|
).describe("WQL expression"),
|
|
365
|
-
options: z.object({
|
|
366
|
-
fields: z.array(z.enum(["DOCUMENT_CONTENT"])).max(1).optional()
|
|
411
|
+
options: /* @__PURE__ */ z.object({
|
|
412
|
+
fields: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["DOCUMENT_CONTENT"])).max(1).optional()
|
|
367
413
|
}).optional()
|
|
368
414
|
});
|
|
369
415
|
var QueryDocumentResponse = /* @__PURE__ */ z.object({
|
|
370
|
-
documents: z.array(
|
|
371
|
-
z.object({
|
|
372
|
-
_id: z.string().describe("Document ID.").regex(
|
|
416
|
+
documents: /* @__PURE__ */ z.array(
|
|
417
|
+
/* @__PURE__ */ z.object({
|
|
418
|
+
_id: /* @__PURE__ */ z.string().describe("Document ID.").regex(
|
|
373
419
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
374
420
|
"Must be a valid GUID"
|
|
375
421
|
).optional().nullable(),
|
|
376
|
-
_createdDate: z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
377
|
-
_updatedDate: z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
378
|
-
renderStatus: z.enum([
|
|
422
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
423
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
424
|
+
renderStatus: /* @__PURE__ */ z.enum([
|
|
379
425
|
"UNKNOWN",
|
|
380
426
|
"ACCEPTED",
|
|
381
427
|
"RENDERING",
|
|
@@ -383,72 +429,77 @@ var QueryDocumentResponse = /* @__PURE__ */ z.object({
|
|
|
383
429
|
"FAILED",
|
|
384
430
|
"EXPIRED"
|
|
385
431
|
]).describe("Document render status.").optional(),
|
|
386
|
-
downloadUrl: z.string().describe(
|
|
432
|
+
downloadUrl: /* @__PURE__ */ z.string().describe(
|
|
387
433
|
"URL to download document. Returned only when Document is in `READY` state."
|
|
388
434
|
).url().optional().nullable(),
|
|
389
|
-
templateId: z.string().describe(
|
|
435
|
+
templateId: /* @__PURE__ */ z.string().describe(
|
|
390
436
|
"Template ID. When this parameter used the document will be rendered with this template default settings"
|
|
391
437
|
).min(1).max(20).optional().nullable(),
|
|
392
|
-
externalId: z.string().describe(
|
|
438
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
393
439
|
"Unique per tenant external ID, for example order number. Used to retrieve Document later."
|
|
394
440
|
).min(1).max(100).optional().nullable(),
|
|
395
|
-
templateSettingsExternalId: z.string().describe(
|
|
441
|
+
templateSettingsExternalId: /* @__PURE__ */ z.string().describe(
|
|
396
442
|
"Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings."
|
|
397
443
|
).max(100).optional().nullable(),
|
|
398
|
-
templateSettingsId: z.string().describe("Template settings ID.").regex(
|
|
444
|
+
templateSettingsId: /* @__PURE__ */ z.string().describe("Template settings ID.").regex(
|
|
399
445
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
400
446
|
"Must be a valid GUID"
|
|
401
447
|
).optional().nullable(),
|
|
402
|
-
appSlug: z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
403
|
-
templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
404
|
-
content: z.object({
|
|
405
|
-
pages: z.array(
|
|
406
|
-
|
|
448
|
+
appSlug: /* @__PURE__ */ z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
449
|
+
templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
450
|
+
content: /* @__PURE__ */ z.object({
|
|
451
|
+
pages: /* @__PURE__ */ z.array(
|
|
452
|
+
/* @__PURE__ */ z.record(
|
|
453
|
+
/* @__PURE__ */ z.string(),
|
|
454
|
+
/* @__PURE__ */ z.any()
|
|
455
|
+
)
|
|
456
|
+
).min(1).max(100).optional(),
|
|
457
|
+
content: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
407
458
|
"Other document content referenced by $content variable"
|
|
408
459
|
).optional().nullable(),
|
|
409
|
-
language: z.string().describe(
|
|
460
|
+
language: /* @__PURE__ */ z.string().describe(
|
|
410
461
|
"ISO 639-1 language code of content (used in translations)."
|
|
411
462
|
).optional(),
|
|
412
|
-
locale: z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
463
|
+
locale: /* @__PURE__ */ z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
413
464
|
}).describe("Document content that is injected into template.").optional(),
|
|
414
|
-
expiresInHours: z.number().int().describe(
|
|
465
|
+
expiresInHours: /* @__PURE__ */ z.number().int().describe(
|
|
415
466
|
"Number of hours after which document will be eventually expired and its content erased."
|
|
416
467
|
).min(1).max(43800).optional(),
|
|
417
|
-
expirationDate: z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
418
|
-
format: z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
419
|
-
public: z.boolean().describe(
|
|
468
|
+
expirationDate: /* @__PURE__ */ z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
469
|
+
format: /* @__PURE__ */ z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
470
|
+
public: /* @__PURE__ */ z.boolean().describe(
|
|
420
471
|
"Whether the link to the uploaded document is public or private.\nFor public document static URL will be returned.\nFor private document temporary URL will be generated by DocumentService.DownloadDocument."
|
|
421
472
|
).optional().nullable(),
|
|
422
|
-
fileName: z.string().describe(
|
|
473
|
+
fileName: /* @__PURE__ */ z.string().describe(
|
|
423
474
|
"Optional filename (without extension) to be used for the downloadable document."
|
|
424
475
|
).min(1).max(50).optional().nullable(),
|
|
425
|
-
contentChecksum: z.string().describe(
|
|
476
|
+
contentChecksum: /* @__PURE__ */ z.string().describe(
|
|
426
477
|
"Client defined content checksum. Can be used for content comparison."
|
|
427
478
|
).min(1).max(64).optional().nullable(),
|
|
428
|
-
renderDelayedEventConfig: z.object({
|
|
429
|
-
timeInQueueMinutes: z.number().int().describe(
|
|
479
|
+
renderDelayedEventConfig: /* @__PURE__ */ z.object({
|
|
480
|
+
timeInQueueMinutes: /* @__PURE__ */ z.number().int().describe(
|
|
430
481
|
"Controls DocumentRenderDelayed action event sending.\nEvent will be sent after time_in_queue_minutes if document render status is ACCEPTED/RENDERING."
|
|
431
482
|
).min(5).max(120).optional()
|
|
432
483
|
}).describe("Rendering notification config.").optional(),
|
|
433
|
-
sizeInBytes: z.number().int().describe(
|
|
484
|
+
sizeInBytes: /* @__PURE__ */ z.number().int().describe(
|
|
434
485
|
"Size in bytes of a rendered document. Returned only when Document is in `READY` state."
|
|
435
486
|
).optional().nullable()
|
|
436
487
|
})
|
|
437
488
|
).optional(),
|
|
438
|
-
metadata: z.object({
|
|
439
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
440
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
441
|
-
total: z.number().int().describe(
|
|
489
|
+
metadata: /* @__PURE__ */ z.object({
|
|
490
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
491
|
+
offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
492
|
+
total: /* @__PURE__ */ z.number().int().describe(
|
|
442
493
|
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
443
494
|
).optional().nullable(),
|
|
444
|
-
tooManyToCount: z.boolean().describe(
|
|
495
|
+
tooManyToCount: /* @__PURE__ */ z.boolean().describe(
|
|
445
496
|
"Flag that indicates the server failed to calculate the `total` field."
|
|
446
497
|
).optional().nullable(),
|
|
447
|
-
cursors: z.object({
|
|
448
|
-
next: z.string().describe(
|
|
498
|
+
cursors: /* @__PURE__ */ z.object({
|
|
499
|
+
next: /* @__PURE__ */ z.string().describe(
|
|
449
500
|
"Cursor string pointing to the next page in the list of results."
|
|
450
501
|
).max(16e3).optional().nullable(),
|
|
451
|
-
prev: z.string().describe(
|
|
502
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
452
503
|
"Cursor pointing to the previous page in the list of results."
|
|
453
504
|
).max(16e3).optional().nullable()
|
|
454
505
|
}).describe(
|
|
@@ -457,12 +508,12 @@ var QueryDocumentResponse = /* @__PURE__ */ z.object({
|
|
|
457
508
|
}).describe("Query results' metadata").optional()
|
|
458
509
|
});
|
|
459
510
|
var UpdateDocumentRequest = /* @__PURE__ */ z.object({
|
|
460
|
-
_id: z.string().describe("Document ID.").regex(
|
|
511
|
+
_id: /* @__PURE__ */ z.string().describe("Document ID.").regex(
|
|
461
512
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
462
513
|
"Must be a valid GUID"
|
|
463
514
|
),
|
|
464
|
-
options: z.object({
|
|
465
|
-
renderStatus: z.enum([
|
|
515
|
+
options: /* @__PURE__ */ z.object({
|
|
516
|
+
renderStatus: /* @__PURE__ */ z.enum([
|
|
466
517
|
"UNKNOWN",
|
|
467
518
|
"ACCEPTED",
|
|
468
519
|
"RENDERING",
|
|
@@ -470,29 +521,29 @@ var UpdateDocumentRequest = /* @__PURE__ */ z.object({
|
|
|
470
521
|
"FAILED",
|
|
471
522
|
"EXPIRED"
|
|
472
523
|
]).optional(),
|
|
473
|
-
file: z.object({
|
|
474
|
-
fileId: z.string().describe("File ID.").optional().nullable(),
|
|
475
|
-
staticUrl: z.string().describe("File URL. Defined only for public documents.").optional().nullable(),
|
|
476
|
-
filePath: z.string().describe("File path.").optional().nullable(),
|
|
477
|
-
sizeInBytes: z.number().int().describe("Size in bytes.").optional().nullable()
|
|
524
|
+
file: /* @__PURE__ */ z.object({
|
|
525
|
+
fileId: /* @__PURE__ */ z.string().describe("File ID.").optional().nullable(),
|
|
526
|
+
staticUrl: /* @__PURE__ */ z.string().describe("File URL. Defined only for public documents.").optional().nullable(),
|
|
527
|
+
filePath: /* @__PURE__ */ z.string().describe("File path.").optional().nullable(),
|
|
528
|
+
sizeInBytes: /* @__PURE__ */ z.number().int().describe("Size in bytes.").optional().nullable()
|
|
478
529
|
}).describe("Rendered document file.").optional(),
|
|
479
|
-
sourceFile: z.object({
|
|
480
|
-
fileId: z.string().describe("File ID.").optional().nullable(),
|
|
481
|
-
staticUrl: z.string().describe("File URL. Defined only for public documents.").optional().nullable(),
|
|
482
|
-
filePath: z.string().describe("File path.").optional().nullable(),
|
|
483
|
-
sizeInBytes: z.number().int().describe("Size in bytes.").optional().nullable()
|
|
530
|
+
sourceFile: /* @__PURE__ */ z.object({
|
|
531
|
+
fileId: /* @__PURE__ */ z.string().describe("File ID.").optional().nullable(),
|
|
532
|
+
staticUrl: /* @__PURE__ */ z.string().describe("File URL. Defined only for public documents.").optional().nullable(),
|
|
533
|
+
filePath: /* @__PURE__ */ z.string().describe("File path.").optional().nullable(),
|
|
534
|
+
sizeInBytes: /* @__PURE__ */ z.number().int().describe("Size in bytes.").optional().nullable()
|
|
484
535
|
}).describe("Rendered document source HTML file.").optional()
|
|
485
536
|
}).optional()
|
|
486
537
|
});
|
|
487
538
|
var UpdateDocumentResponse = /* @__PURE__ */ z.object({
|
|
488
|
-
document: z.object({
|
|
489
|
-
_id: z.string().describe("Document ID.").regex(
|
|
539
|
+
document: /* @__PURE__ */ z.object({
|
|
540
|
+
_id: /* @__PURE__ */ z.string().describe("Document ID.").regex(
|
|
490
541
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
491
542
|
"Must be a valid GUID"
|
|
492
543
|
).optional().nullable(),
|
|
493
|
-
_createdDate: z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
494
|
-
_updatedDate: z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
495
|
-
renderStatus: z.enum([
|
|
544
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was created.").optional().nullable(),
|
|
545
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Represents the time this Document was last updated.").optional().nullable(),
|
|
546
|
+
renderStatus: /* @__PURE__ */ z.enum([
|
|
496
547
|
"UNKNOWN",
|
|
497
548
|
"ACCEPTED",
|
|
498
549
|
"RENDERING",
|
|
@@ -500,145 +551,132 @@ var UpdateDocumentResponse = /* @__PURE__ */ z.object({
|
|
|
500
551
|
"FAILED",
|
|
501
552
|
"EXPIRED"
|
|
502
553
|
]).describe("Document render status.").optional(),
|
|
503
|
-
downloadUrl: z.string().describe(
|
|
554
|
+
downloadUrl: /* @__PURE__ */ z.string().describe(
|
|
504
555
|
"URL to download document. Returned only when Document is in `READY` state."
|
|
505
556
|
).url().optional().nullable(),
|
|
506
|
-
templateId: z.string().describe(
|
|
557
|
+
templateId: /* @__PURE__ */ z.string().describe(
|
|
507
558
|
"Template ID. When this parameter used the document will be rendered with this template default settings"
|
|
508
559
|
).min(1).max(20).optional().nullable(),
|
|
509
|
-
externalId: z.string().describe(
|
|
560
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
510
561
|
"Unique per tenant external ID, for example order number. Used to retrieve Document later."
|
|
511
562
|
).min(1).max(100).optional().nullable(),
|
|
512
|
-
templateSettingsExternalId: z.string().describe(
|
|
563
|
+
templateSettingsExternalId: /* @__PURE__ */ z.string().describe(
|
|
513
564
|
"Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings."
|
|
514
565
|
).max(100).optional().nullable(),
|
|
515
|
-
templateSettingsId: z.string().describe("Template settings ID.").regex(
|
|
566
|
+
templateSettingsId: /* @__PURE__ */ z.string().describe("Template settings ID.").regex(
|
|
516
567
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
517
568
|
"Must be a valid GUID"
|
|
518
569
|
).optional().nullable(),
|
|
519
|
-
appSlug: z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
520
|
-
templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
521
|
-
content: z.object({
|
|
522
|
-
pages: z.array(
|
|
523
|
-
|
|
524
|
-
|
|
570
|
+
appSlug: /* @__PURE__ */ z.string().describe("The app slug of the template").min(1).max(20).optional().nullable(),
|
|
571
|
+
templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
|
|
572
|
+
content: /* @__PURE__ */ z.object({
|
|
573
|
+
pages: /* @__PURE__ */ z.array(
|
|
574
|
+
/* @__PURE__ */ z.record(
|
|
575
|
+
/* @__PURE__ */ z.string(),
|
|
576
|
+
/* @__PURE__ */ z.any()
|
|
577
|
+
)
|
|
578
|
+
).min(1).max(100).optional(),
|
|
579
|
+
content: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Other document content referenced by $content variable").optional().nullable(),
|
|
580
|
+
language: /* @__PURE__ */ z.string().describe(
|
|
525
581
|
"ISO 639-1 language code of content (used in translations)."
|
|
526
582
|
).optional(),
|
|
527
|
-
locale: z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
583
|
+
locale: /* @__PURE__ */ z.string().describe("e.g. en-US.").min(2).max(35).optional().nullable()
|
|
528
584
|
}).describe("Document content that is injected into template.").optional(),
|
|
529
|
-
expiresInHours: z.number().int().describe(
|
|
585
|
+
expiresInHours: /* @__PURE__ */ z.number().int().describe(
|
|
530
586
|
"Number of hours after which document will be eventually expired and its content erased."
|
|
531
587
|
).min(1).max(43800).optional(),
|
|
532
|
-
expirationDate: z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
533
|
-
format: z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
534
|
-
public: z.boolean().describe(
|
|
588
|
+
expirationDate: /* @__PURE__ */ z.date().describe("Represents the time this document becomes expired.").optional().nullable(),
|
|
589
|
+
format: /* @__PURE__ */ z.enum(["UNKNOWN", "PDF"]).describe("Document format. Defaults to `PDF`.").optional(),
|
|
590
|
+
public: /* @__PURE__ */ z.boolean().describe(
|
|
535
591
|
"Whether the link to the uploaded document is public or private.\nFor public document static URL will be returned.\nFor private document temporary URL will be generated by DocumentService.DownloadDocument."
|
|
536
592
|
).optional().nullable(),
|
|
537
|
-
fileName: z.string().describe(
|
|
593
|
+
fileName: /* @__PURE__ */ z.string().describe(
|
|
538
594
|
"Optional filename (without extension) to be used for the downloadable document."
|
|
539
595
|
).min(1).max(50).optional().nullable(),
|
|
540
|
-
contentChecksum: z.string().describe(
|
|
596
|
+
contentChecksum: /* @__PURE__ */ z.string().describe(
|
|
541
597
|
"Client defined content checksum. Can be used for content comparison."
|
|
542
598
|
).min(1).max(64).optional().nullable(),
|
|
543
|
-
renderDelayedEventConfig: z.object({
|
|
544
|
-
timeInQueueMinutes: z.number().int().describe(
|
|
599
|
+
renderDelayedEventConfig: /* @__PURE__ */ z.object({
|
|
600
|
+
timeInQueueMinutes: /* @__PURE__ */ z.number().int().describe(
|
|
545
601
|
"Controls DocumentRenderDelayed action event sending.\nEvent will be sent after time_in_queue_minutes if document render status is ACCEPTED/RENDERING."
|
|
546
602
|
).min(5).max(120).optional()
|
|
547
603
|
}).describe("Rendering notification config.").optional(),
|
|
548
|
-
sizeInBytes: z.number().int().describe(
|
|
604
|
+
sizeInBytes: /* @__PURE__ */ z.number().int().describe(
|
|
549
605
|
"Size in bytes of a rendered document. Returned only when Document is in `READY` state."
|
|
550
606
|
).optional().nullable()
|
|
551
607
|
}).describe("The created Document").optional()
|
|
552
608
|
});
|
|
553
609
|
var DownloadDocumentRequest = /* @__PURE__ */ z.object({
|
|
554
|
-
documentId: z.string().describe("ID of the Document to retrieve").regex(
|
|
610
|
+
documentId: /* @__PURE__ */ z.string().describe("ID of the Document to retrieve").regex(
|
|
555
611
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
556
612
|
"Must be a valid GUID"
|
|
557
613
|
),
|
|
558
|
-
options: z.object({
|
|
559
|
-
urlExpirationInSeconds: z.number().int().describe("URL expiration time. Only relevant for private documents.").min(600).max(86400).optional().nullable(),
|
|
560
|
-
contentDisposition: z.enum(["ATTACHMENT", "INLINE"]).optional()
|
|
614
|
+
options: /* @__PURE__ */ z.object({
|
|
615
|
+
urlExpirationInSeconds: /* @__PURE__ */ z.number().int().describe("URL expiration time. Only relevant for private documents.").min(600).max(86400).optional().nullable(),
|
|
616
|
+
contentDisposition: /* @__PURE__ */ z.enum(["ATTACHMENT", "INLINE"]).optional()
|
|
561
617
|
}).optional()
|
|
562
618
|
});
|
|
563
619
|
var DownloadDocumentResponse = /* @__PURE__ */ z.object({
|
|
564
|
-
downloadUrl: z.string().describe("Download URL.").optional(),
|
|
565
|
-
expirationDate: z.date().describe(
|
|
620
|
+
downloadUrl: /* @__PURE__ */ z.string().describe("Download URL.").optional(),
|
|
621
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
566
622
|
"URL expiration timestamp. Not provided for public documents because their links do not expire."
|
|
567
623
|
).optional().nullable()
|
|
568
624
|
});
|
|
569
625
|
var GetDownloadUrlRequest = /* @__PURE__ */ z.object({
|
|
570
|
-
options: z.intersection(
|
|
571
|
-
z.object({
|
|
572
|
-
urlExpirationInSeconds: z.number().int().describe("URL expiration time. Only relevant for private documents.").min(600).max(86400).optional().nullable(),
|
|
573
|
-
downloadButtonText: z.string().max(100).optional().nullable(),
|
|
574
|
-
contentDisposition: z.enum(["ATTACHMENT", "INLINE"]).optional()
|
|
626
|
+
options: /* @__PURE__ */ z.intersection(
|
|
627
|
+
/* @__PURE__ */ z.object({
|
|
628
|
+
urlExpirationInSeconds: /* @__PURE__ */ z.number().int().describe("URL expiration time. Only relevant for private documents.").min(600).max(86400).optional().nullable(),
|
|
629
|
+
downloadButtonText: /* @__PURE__ */ z.string().max(100).optional().nullable(),
|
|
630
|
+
contentDisposition: /* @__PURE__ */ z.enum(["ATTACHMENT", "INLINE"]).optional()
|
|
575
631
|
}),
|
|
576
|
-
z.xor([
|
|
577
|
-
z.object({
|
|
578
|
-
externalId: z.never().optional(),
|
|
579
|
-
fileToken: z.never().optional(),
|
|
580
|
-
documentId: z.string().describe("ID of the Document to retrieve").regex(
|
|
632
|
+
/* @__PURE__ */ z.xor([
|
|
633
|
+
/* @__PURE__ */ z.object({
|
|
634
|
+
externalId: /* @__PURE__ */ z.never().optional(),
|
|
635
|
+
fileToken: /* @__PURE__ */ z.never().optional(),
|
|
636
|
+
documentId: /* @__PURE__ */ z.string().describe("ID of the Document to retrieve").regex(
|
|
581
637
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
582
638
|
"Must be a valid GUID"
|
|
583
639
|
)
|
|
584
640
|
}),
|
|
585
|
-
z.object({
|
|
586
|
-
documentId: z.never().optional(),
|
|
587
|
-
fileToken: z.never().optional(),
|
|
588
|
-
externalId: z.string().describe("ID of the Document to retrieve").min(1).max(100)
|
|
641
|
+
/* @__PURE__ */ z.object({
|
|
642
|
+
documentId: /* @__PURE__ */ z.never().optional(),
|
|
643
|
+
fileToken: /* @__PURE__ */ z.never().optional(),
|
|
644
|
+
externalId: /* @__PURE__ */ z.string().describe("ID of the Document to retrieve").min(1).max(100)
|
|
589
645
|
}),
|
|
590
|
-
z.object({
|
|
591
|
-
documentId: z.never().optional(),
|
|
592
|
-
externalId: z.never().optional(),
|
|
593
|
-
fileToken: z.string().describe("Signed file token").min(1).max(500)
|
|
646
|
+
/* @__PURE__ */ z.object({
|
|
647
|
+
documentId: /* @__PURE__ */ z.never().optional(),
|
|
648
|
+
externalId: /* @__PURE__ */ z.never().optional(),
|
|
649
|
+
fileToken: /* @__PURE__ */ z.string().describe("Signed file token").min(1).max(500)
|
|
594
650
|
})
|
|
595
651
|
])
|
|
596
652
|
)
|
|
597
653
|
});
|
|
598
654
|
var GetDownloadUrlResponse = /* @__PURE__ */ z.object({
|
|
599
|
-
downloadUrl: z.string().describe("Download URL.").optional().nullable(),
|
|
600
|
-
expirationDate: z.date().describe(
|
|
655
|
+
downloadUrl: /* @__PURE__ */ z.string().describe("Download URL.").optional().nullable(),
|
|
656
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
601
657
|
"URL expiration timestamp. Not provided for public documents because their links do not expire."
|
|
602
658
|
).optional().nullable(),
|
|
603
|
-
documentId: z.string().describe("Document ID.").regex(
|
|
659
|
+
documentId: /* @__PURE__ */ z.string().describe("Document ID.").regex(
|
|
604
660
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
605
661
|
"Must be a valid GUID"
|
|
606
662
|
).optional().nullable(),
|
|
607
|
-
renderStatus: z.enum(["UNKNOWN", "ACCEPTED", "RENDERING", "READY", "FAILED", "EXPIRED"]).describe("Document render status.").optional(),
|
|
608
|
-
downloadPageUrl: z.string().describe("Download URL.").optional().nullable(),
|
|
609
|
-
contentChecksum: z.string().describe(
|
|
663
|
+
renderStatus: /* @__PURE__ */ z.enum(["UNKNOWN", "ACCEPTED", "RENDERING", "READY", "FAILED", "EXPIRED"]).describe("Document render status.").optional(),
|
|
664
|
+
downloadPageUrl: /* @__PURE__ */ z.string().describe("Download URL.").optional().nullable(),
|
|
665
|
+
contentChecksum: /* @__PURE__ */ z.string().describe(
|
|
610
666
|
"Client defined content checksum. Can be used for content comparison."
|
|
611
667
|
).min(1).max(64).optional().nullable()
|
|
612
668
|
});
|
|
613
669
|
var DownloadDocumentSourceRequest = /* @__PURE__ */ z.object({
|
|
614
|
-
documentId: z.string().describe("ID of the Document to retrieve").regex(
|
|
670
|
+
documentId: /* @__PURE__ */ z.string().describe("ID of the Document to retrieve").regex(
|
|
615
671
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
616
672
|
"Must be a valid GUID"
|
|
617
673
|
),
|
|
618
|
-
options: z.object({
|
|
674
|
+
options: /* @__PURE__ */ z.object({
|
|
675
|
+
contentDisposition: /* @__PURE__ */ z.enum(["ATTACHMENT", "INLINE"]).optional()
|
|
676
|
+
}).optional()
|
|
619
677
|
});
|
|
620
678
|
var DownloadDocumentSourceResponse = /* @__PURE__ */ z.object({
|
|
621
|
-
downloadUrl: z.string().describe("Download URL. Expires after 10 minutes.").optional()
|
|
622
|
-
});
|
|
623
|
-
var GetDownloadPageRequest = /* @__PURE__ */ z.object({
|
|
624
|
-
file: z.string().max(1e3)
|
|
625
|
-
});
|
|
626
|
-
var GetDownloadPageResponse = /* @__PURE__ */ z.object({
|
|
627
|
-
body: z.string().optional(),
|
|
628
|
-
statusCode: z.number().int().optional().nullable(),
|
|
629
|
-
headers: z.array(
|
|
630
|
-
z.object({ key: z.string().optional(), value: z.string().optional() })
|
|
631
|
-
).optional()
|
|
632
|
-
});
|
|
633
|
-
var RedirectToDocumentRequest = /* @__PURE__ */ z.object({
|
|
634
|
-
file: z.string().max(1e3)
|
|
635
|
-
});
|
|
636
|
-
var RedirectToDocumentResponse = /* @__PURE__ */ z.object({
|
|
637
|
-
body: z.string().optional(),
|
|
638
|
-
statusCode: z.number().int().optional().nullable(),
|
|
639
|
-
headers: z.array(
|
|
640
|
-
z.object({ key: z.string().optional(), value: z.string().optional() })
|
|
641
|
-
).optional()
|
|
679
|
+
downloadUrl: /* @__PURE__ */ z.string().describe("Download URL. Expires after 10 minutes.").optional()
|
|
642
680
|
});
|
|
643
681
|
// Annotate the CommonJS export names for ESM import in node:
|
|
644
682
|
0 && (module.exports = {
|