@endora-commerce/contracts 0.107.0 → 0.109.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 (273) hide show
  1. package/dist/admin-actions.d.ts +12 -3
  2. package/dist/admin-actions.d.ts.map +1 -1
  3. package/dist/admin-actions.js +34 -3
  4. package/dist/admin-actions.js.map +1 -1
  5. package/dist/admin-contributions.d.ts +35 -6
  6. package/dist/admin-contributions.d.ts.map +1 -1
  7. package/dist/admin-contributions.js +46 -0
  8. package/dist/admin-contributions.js.map +1 -1
  9. package/dist/admin-feedback.d.ts +61 -0
  10. package/dist/admin-feedback.d.ts.map +1 -0
  11. package/dist/admin-feedback.js +71 -0
  12. package/dist/admin-feedback.js.map +1 -0
  13. package/dist/admin-name.d.ts +21 -0
  14. package/dist/admin-name.d.ts.map +1 -0
  15. package/dist/admin-name.js +30 -0
  16. package/dist/admin-name.js.map +1 -0
  17. package/dist/admin-notifications.d.ts +17 -1
  18. package/dist/admin-notifications.d.ts.map +1 -1
  19. package/dist/admin-preferences.d.ts +108 -0
  20. package/dist/admin-preferences.d.ts.map +1 -0
  21. package/dist/admin-preferences.js +133 -0
  22. package/dist/admin-preferences.js.map +1 -0
  23. package/dist/admin.d.ts +15 -1
  24. package/dist/admin.d.ts.map +1 -1
  25. package/dist/admin.js +7 -0
  26. package/dist/admin.js.map +1 -1
  27. package/dist/assets-library.d.ts +97 -3
  28. package/dist/assets-library.d.ts.map +1 -1
  29. package/dist/assets-library.js +5 -0
  30. package/dist/assets-library.js.map +1 -1
  31. package/dist/blog.d.ts +57 -0
  32. package/dist/blog.d.ts.map +1 -1
  33. package/dist/blog.js +63 -1
  34. package/dist/blog.js.map +1 -1
  35. package/dist/carts.d.ts +303 -50
  36. package/dist/carts.d.ts.map +1 -1
  37. package/dist/carts.js +95 -13
  38. package/dist/carts.js.map +1 -1
  39. package/dist/catalog.d.ts +512 -40
  40. package/dist/catalog.d.ts.map +1 -1
  41. package/dist/catalog.js +362 -23
  42. package/dist/catalog.js.map +1 -1
  43. package/dist/cms-brand.d.ts +2233 -0
  44. package/dist/cms-brand.d.ts.map +1 -0
  45. package/dist/cms-brand.js +311 -0
  46. package/dist/cms-brand.js.map +1 -0
  47. package/dist/cms-contact-form.d.ts +55 -0
  48. package/dist/cms-contact-form.d.ts.map +1 -0
  49. package/dist/cms-contact-form.js +100 -0
  50. package/dist/cms-contact-form.js.map +1 -0
  51. package/dist/cms.d.ts +537 -3
  52. package/dist/cms.d.ts.map +1 -1
  53. package/dist/cms.js +251 -0
  54. package/dist/cms.js.map +1 -1
  55. package/dist/common.d.ts +4 -0
  56. package/dist/common.d.ts.map +1 -1
  57. package/dist/common.js +14 -0
  58. package/dist/common.js.map +1 -1
  59. package/dist/comparisons.d.ts +7 -0
  60. package/dist/comparisons.d.ts.map +1 -1
  61. package/dist/comparisons.js +2 -0
  62. package/dist/comparisons.js.map +1 -1
  63. package/dist/credit-limits.d.ts.map +1 -1
  64. package/dist/credit-limits.js +3 -2
  65. package/dist/credit-limits.js.map +1 -1
  66. package/dist/crm-rich-text.d.ts +13 -0
  67. package/dist/crm-rich-text.d.ts.map +1 -0
  68. package/dist/crm-rich-text.js +13 -0
  69. package/dist/crm-rich-text.js.map +1 -0
  70. package/dist/crm.d.ts +180 -62
  71. package/dist/crm.d.ts.map +1 -1
  72. package/dist/crm.js +63 -107
  73. package/dist/crm.js.map +1 -1
  74. package/dist/custom-fields.d.ts +436 -5
  75. package/dist/custom-fields.d.ts.map +1 -1
  76. package/dist/custom-fields.js +325 -10
  77. package/dist/custom-fields.js.map +1 -1
  78. package/dist/customer-accounts.d.ts +30 -0
  79. package/dist/customer-accounts.d.ts.map +1 -1
  80. package/dist/customer-accounts.js +31 -0
  81. package/dist/customer-accounts.js.map +1 -1
  82. package/dist/document-templates.d.ts +211 -23
  83. package/dist/document-templates.d.ts.map +1 -1
  84. package/dist/document-templates.js +98 -1
  85. package/dist/document-templates.js.map +1 -1
  86. package/dist/document-values.d.ts +12 -1
  87. package/dist/document-values.d.ts.map +1 -1
  88. package/dist/document-values.js +41 -11
  89. package/dist/document-values.js.map +1 -1
  90. package/dist/email.d.ts +5 -0
  91. package/dist/email.d.ts.map +1 -1
  92. package/dist/errors.d.ts +142 -8
  93. package/dist/errors.d.ts.map +1 -1
  94. package/dist/errors.js +189 -8
  95. package/dist/errors.js.map +1 -1
  96. package/dist/index.d.ts +24 -1
  97. package/dist/index.d.ts.map +1 -1
  98. package/dist/index.js +43 -1
  99. package/dist/index.js.map +1 -1
  100. package/dist/inventory.d.ts +3 -3
  101. package/dist/invoices.d.ts +6 -2
  102. package/dist/invoices.d.ts.map +1 -1
  103. package/dist/invoices.js +10 -4
  104. package/dist/invoices.js.map +1 -1
  105. package/dist/line-groups.d.ts +80 -0
  106. package/dist/line-groups.d.ts.map +1 -0
  107. package/dist/line-groups.js +130 -0
  108. package/dist/line-groups.js.map +1 -0
  109. package/dist/localized-name.d.ts +20 -0
  110. package/dist/localized-name.d.ts.map +1 -0
  111. package/dist/localized-name.js +45 -0
  112. package/dist/localized-name.js.map +1 -0
  113. package/dist/megamenu.d.ts +674 -0
  114. package/dist/megamenu.d.ts.map +1 -1
  115. package/dist/megamenu.js +96 -3
  116. package/dist/megamenu.js.map +1 -1
  117. package/dist/mfa.d.ts +1 -0
  118. package/dist/mfa.d.ts.map +1 -1
  119. package/dist/mfa.js +8 -2
  120. package/dist/mfa.js.map +1 -1
  121. package/dist/modules.d.ts +8 -1
  122. package/dist/modules.d.ts.map +1 -1
  123. package/dist/modules.js +5 -0
  124. package/dist/modules.js.map +1 -1
  125. package/dist/money-decimal.d.ts +162 -0
  126. package/dist/money-decimal.d.ts.map +1 -0
  127. package/dist/money-decimal.js +365 -0
  128. package/dist/money-decimal.js.map +1 -0
  129. package/dist/money-input.d.ts +64 -0
  130. package/dist/money-input.d.ts.map +1 -0
  131. package/dist/money-input.js +111 -0
  132. package/dist/money-input.js.map +1 -0
  133. package/dist/newsletter.d.ts +3 -3
  134. package/dist/order-minimums.d.ts +111 -0
  135. package/dist/order-minimums.d.ts.map +1 -0
  136. package/dist/order-minimums.js +196 -0
  137. package/dist/order-minimums.js.map +1 -0
  138. package/dist/orders.d.ts +206 -2
  139. package/dist/orders.d.ts.map +1 -1
  140. package/dist/orders.js +106 -5
  141. package/dist/orders.js.map +1 -1
  142. package/dist/page-builder-props.d.ts +1401 -0
  143. package/dist/page-builder-props.d.ts.map +1 -0
  144. package/dist/page-builder-props.js +266 -0
  145. package/dist/page-builder-props.js.map +1 -0
  146. package/dist/page-builder-values.d.ts +95 -0
  147. package/dist/page-builder-values.d.ts.map +1 -0
  148. package/dist/page-builder-values.js +164 -0
  149. package/dist/page-builder-values.js.map +1 -0
  150. package/dist/payment-methods.d.ts.map +1 -1
  151. package/dist/payment-methods.js +2 -1
  152. package/dist/payment-methods.js.map +1 -1
  153. package/dist/pim-connector.d.ts +1 -1
  154. package/dist/platform-language.d.ts +9 -0
  155. package/dist/platform-language.d.ts.map +1 -1
  156. package/dist/platform-language.js +14 -0
  157. package/dist/platform-language.js.map +1 -1
  158. package/dist/price-book-decimal.d.ts +84 -0
  159. package/dist/price-book-decimal.d.ts.map +1 -0
  160. package/dist/price-book-decimal.js +175 -0
  161. package/dist/price-book-decimal.js.map +1 -0
  162. package/dist/price-books.d.ts +2206 -0
  163. package/dist/price-books.d.ts.map +1 -0
  164. package/dist/price-books.js +777 -0
  165. package/dist/price-books.js.map +1 -0
  166. package/dist/price-lists.d.ts +309 -614
  167. package/dist/price-lists.d.ts.map +1 -1
  168. package/dist/price-lists.js +113 -453
  169. package/dist/price-lists.js.map +1 -1
  170. package/dist/product-feeds.d.ts +195 -54
  171. package/dist/product-feeds.d.ts.map +1 -1
  172. package/dist/product-feeds.js +36 -1
  173. package/dist/product-feeds.js.map +1 -1
  174. package/dist/product-scopes.d.ts +628 -0
  175. package/dist/product-scopes.d.ts.map +1 -0
  176. package/dist/product-scopes.js +365 -0
  177. package/dist/product-scopes.js.map +1 -0
  178. package/dist/product-summary-text.d.ts +23 -0
  179. package/dist/product-summary-text.d.ts.map +1 -0
  180. package/dist/product-summary-text.js +64 -0
  181. package/dist/product-summary-text.js.map +1 -0
  182. package/dist/product-url-keys.d.ts +204 -0
  183. package/dist/product-url-keys.d.ts.map +1 -0
  184. package/dist/product-url-keys.js +166 -0
  185. package/dist/product-url-keys.js.map +1 -0
  186. package/dist/product-value-resolver.d.ts +6 -0
  187. package/dist/product-value-resolver.d.ts.map +1 -1
  188. package/dist/product-value-resolver.js +6 -1
  189. package/dist/product-value-resolver.js.map +1 -1
  190. package/dist/projects.d.ts +2355 -0
  191. package/dist/projects.d.ts.map +1 -0
  192. package/dist/projects.js +837 -0
  193. package/dist/projects.js.map +1 -0
  194. package/dist/promotions.d.ts +2 -2
  195. package/dist/promotions.d.ts.map +1 -1
  196. package/dist/promotions.js +8 -2
  197. package/dist/promotions.js.map +1 -1
  198. package/dist/prompt-actions.d.ts +19 -1
  199. package/dist/prompt-actions.d.ts.map +1 -1
  200. package/dist/prompt-actions.js +31 -2
  201. package/dist/prompt-actions.js.map +1 -1
  202. package/dist/quick-order.d.ts +39 -1
  203. package/dist/quick-order.d.ts.map +1 -1
  204. package/dist/quick-order.js +44 -1
  205. package/dist/quick-order.js.map +1 -1
  206. package/dist/quote-requests.d.ts +305 -1
  207. package/dist/quote-requests.d.ts.map +1 -1
  208. package/dist/quote-requests.js +173 -5
  209. package/dist/quote-requests.js.map +1 -1
  210. package/dist/record-references.d.ts +252 -0
  211. package/dist/record-references.d.ts.map +1 -0
  212. package/dist/record-references.js +179 -0
  213. package/dist/record-references.js.map +1 -0
  214. package/dist/record-rich-text.d.ts +66 -0
  215. package/dist/record-rich-text.d.ts.map +1 -0
  216. package/dist/record-rich-text.js +303 -0
  217. package/dist/record-rich-text.js.map +1 -0
  218. package/dist/returns.d.ts +81 -2
  219. package/dist/returns.d.ts.map +1 -1
  220. package/dist/returns.js +39 -4
  221. package/dist/returns.js.map +1 -1
  222. package/dist/sales-channels.d.ts +53 -7
  223. package/dist/sales-channels.d.ts.map +1 -1
  224. package/dist/sales-channels.js +40 -4
  225. package/dist/sales-channels.js.map +1 -1
  226. package/dist/saved-list-views.d.ts +28 -0
  227. package/dist/saved-list-views.d.ts.map +1 -1
  228. package/dist/saved-list-views.js +14 -1
  229. package/dist/saved-list-views.js.map +1 -1
  230. package/dist/scoped-translations.d.ts +48 -0
  231. package/dist/scoped-translations.d.ts.map +1 -0
  232. package/dist/scoped-translations.js +78 -0
  233. package/dist/scoped-translations.js.map +1 -0
  234. package/dist/search.d.ts +73 -5
  235. package/dist/search.d.ts.map +1 -1
  236. package/dist/search.js +4 -0
  237. package/dist/search.js.map +1 -1
  238. package/dist/seo.d.ts +64 -5
  239. package/dist/seo.d.ts.map +1 -1
  240. package/dist/seo.js +31 -4
  241. package/dist/seo.js.map +1 -1
  242. package/dist/settings.d.ts +32 -3
  243. package/dist/settings.d.ts.map +1 -1
  244. package/dist/settings.js +37 -3
  245. package/dist/settings.js.map +1 -1
  246. package/dist/shipping-methods.d.ts.map +1 -1
  247. package/dist/shipping-methods.js +2 -1
  248. package/dist/shipping-methods.js.map +1 -1
  249. package/dist/shopping-lists.d.ts +24 -0
  250. package/dist/shopping-lists.d.ts.map +1 -1
  251. package/dist/shopping-lists.js +20 -1
  252. package/dist/shopping-lists.js.map +1 -1
  253. package/dist/storefront-cache-tags.d.ts +29 -0
  254. package/dist/storefront-cache-tags.d.ts.map +1 -1
  255. package/dist/storefront-cache-tags.js +24 -0
  256. package/dist/storefront-cache-tags.js.map +1 -1
  257. package/dist/storefront-language-path.d.ts +77 -0
  258. package/dist/storefront-language-path.d.ts.map +1 -0
  259. package/dist/storefront-language-path.js +123 -0
  260. package/dist/storefront-language-path.js.map +1 -0
  261. package/dist/storefront-value-overrides.d.ts +67 -0
  262. package/dist/storefront-value-overrides.d.ts.map +1 -0
  263. package/dist/storefront-value-overrides.js +93 -0
  264. package/dist/storefront-value-overrides.js.map +1 -0
  265. package/dist/tasks.d.ts +2842 -0
  266. package/dist/tasks.d.ts.map +1 -0
  267. package/dist/tasks.js +901 -0
  268. package/dist/tasks.js.map +1 -0
  269. package/dist/transactional-emails.d.ts +7 -4
  270. package/dist/transactional-emails.d.ts.map +1 -1
  271. package/dist/transactional-emails.js +13 -0
  272. package/dist/transactional-emails.js.map +1 -1
  273. package/package.json +2 -2
@@ -0,0 +1,2842 @@
1
+ import { z } from 'zod';
2
+ import type { SupportedLanguage } from './platform-language.js';
3
+ /** A Task's status — a code of the configured workflow (R-1). */
4
+ export declare const taskStatusCodeSchema: z.ZodString;
5
+ export type TaskStatusCode = z.infer<typeof taskStatusCodeSchema>;
6
+ /**
7
+ * The four statuses the upgrade seeds, in workflow order (FR-014): every 163
8
+ * Task already holds one of them, so no row changes. Kept for the seed and the
9
+ * tests; the live workflow is the operator's.
10
+ */
11
+ export declare const TASK_DEFAULT_STATUS_CODES: readonly ["todo", "in_progress", "done", "cancelled"];
12
+ export type TaskDefaultStatusCode = (typeof TASK_DEFAULT_STATUS_CODES)[number];
13
+ /** What a status means for the Task: still worked, finished, or abandoned. */
14
+ export declare const TASK_STATUS_CATEGORIES: readonly ["open", "done", "cancelled"];
15
+ export declare const taskStatusCategorySchema: z.ZodEnum<{
16
+ cancelled: "cancelled";
17
+ open: "open";
18
+ done: "done";
19
+ }>;
20
+ export type TaskStatusCategory = z.infer<typeof taskStatusCategorySchema>;
21
+ /**
22
+ * The categories a Task is **closed** in (FR-017) — *My Tasks*, overdue, the
23
+ * digest, sub-task progress and the Projects completion gate all read this.
24
+ */
25
+ export declare const TASK_CLOSED_STATUS_CATEGORIES: readonly ["done", "cancelled"];
26
+ export declare function isClosedTaskStatusCategory(category: TaskStatusCategory): boolean;
27
+ /** A priority — a code of the configured list (R-9). */
28
+ export declare const taskPriorityCodeSchema: z.ZodString;
29
+ export type TaskPriorityCode = z.infer<typeof taskPriorityCodeSchema>;
30
+ /** The priorities the upgrade seeds, most urgent first (FR-024). */
31
+ export declare const TASK_DEFAULT_PRIORITY_CODES: readonly ["urgent", "high", "normal", "low"];
32
+ /** `#rrggbb` — a status, priority or tag colour. */
33
+ export declare const taskColorSchema: z.ZodString;
34
+ export declare const TASK_TITLE_MAX = 200;
35
+ export declare const TASK_DESCRIPTION_MAX = 20000;
36
+ export declare const TASK_CONTEXT_NOTE_MAX = 200;
37
+ /** The most Tasks one `taskWritePort.createMany` call creates (163 research R-22). */
38
+ export declare const TASK_WRITE_PORT_BATCH_MAX = 100;
39
+ export declare const TASK_LIST_LIMIT_MAX = 100;
40
+ /** The most Tasks `GET /tasks/mine` answers. */
41
+ export declare const TASK_MINE_MAX = 500;
42
+ /** Assignees of one Task (R-2). */
43
+ export declare const TASK_ASSIGNEES_MAX = 20;
44
+ /** Tags of one Task (FR-010). */
45
+ export declare const TASK_TAGS_MAX = 50;
46
+ /** Record links one create body may carry. */
47
+ export declare const TASK_LINKS_MAX = 20;
48
+ /** Levels of sub-tasks, the top-level Task counted (FR-027, R-15). */
49
+ export declare const TASK_HIERARCHY_DEPTH_MAX = 5;
50
+ /**
51
+ * The most Tasks one status or priority removal moves to its replacement inside
52
+ * one Command; above it the removal answers 409 `TASK_STATUS_IN_USE_TOO_MANY`
53
+ * (R-1).
54
+ */
55
+ export declare const TASK_STATUS_REASSIGN_MAX = 5000;
56
+ /** One attachment's size; the asset library's own policy also applies (R-7). */
57
+ export declare const TASK_ATTACHMENT_MAX_BYTES: number;
58
+ /**
59
+ * How late a reminder may still be delivered after its moment — after downtime
60
+ * or while Tasks was off. An older one is recorded as expired and not sent
61
+ * (R-17).
62
+ */
63
+ export declare const TASK_REMINDER_GRACE_MS: number;
64
+ /** Reminders of one Task. */
65
+ export declare const TASK_REMINDERS_MAX = 10;
66
+ /** Recipients of one reminder: the caller and up to {@link TASK_ASSIGNEES_MAX} assignees. */
67
+ export declare const TASK_REMINDER_RECIPIENTS_MAX: number;
68
+ /** How far before the due moment a relative reminder may fire: 30 days. */
69
+ export declare const TASK_REMINDER_OFFSET_MAX_MINUTES: number;
70
+ /** A context owner's own key for a Task it creates (R-19). */
71
+ export declare const TASK_SOURCE_KEY_MAX = 100;
72
+ export declare const TASK_COMMENT_MAX = 20000;
73
+ export declare const TASK_TAG_NAME_MAX = 64;
74
+ export declare const TASK_STATUS_NAME_MAX = 120;
75
+ export declare const TASK_BOARD_PER_COLUMN_DEFAULT = 25;
76
+ export declare const TASK_BOARD_PER_COLUMN_MAX = 50;
77
+ /**
78
+ * A context type — the contributor's own stable code (`project`). snake_case,
79
+ * so it reads the same in a query string, a column and a log line.
80
+ */
81
+ export declare const taskContextTypeSchema: z.ZodString;
82
+ /** A name per Admin UI language — both are required (FR-012, FR-024). */
83
+ export declare const TaskLocalizedNameSchema: z.ZodObject<{
84
+ en: z.ZodString;
85
+ pl: z.ZodString;
86
+ }, z.core.$strict>;
87
+ export type TaskLocalizedName = z.infer<typeof TaskLocalizedNameSchema>;
88
+ /**
89
+ * Where a Task belongs, when it belongs anywhere. **All or nothing**: a type
90
+ * without an id, or an id without a type, is no context — the table's check
91
+ * `(context_type is null) = (context_id is null)` says the same — and a group
92
+ * (a Stage) exists only inside a context. A Task with no context is written as
93
+ * `context: null` or by leaving `context` out.
94
+ */
95
+ export declare const TaskContextSchema: z.ZodObject<{
96
+ contextType: z.ZodString;
97
+ contextId: z.ZodString;
98
+ contextGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ }, z.core.$strict>;
100
+ export type TaskContext = z.infer<typeof TaskContextSchema>;
101
+ /**
102
+ * A context as the reader is shown it: what the owner's descriptor says about it.
103
+ *
104
+ * `available: false` when the owner's `describe()` did not describe the id —
105
+ * a record that went away between the visibility check and the description.
106
+ * The context then fails closed: `label` is the sentence "unavailable record"
107
+ * in the reader's language, `href` and `groupLabel` are `null`. A label is
108
+ * never empty.
109
+ */
110
+ export declare const TaskContextSummarySchema: z.ZodObject<{
111
+ type: z.ZodString;
112
+ available: z.ZodBoolean;
113
+ label: z.ZodString;
114
+ href: z.ZodNullable<z.ZodString>;
115
+ groupLabel: z.ZodNullable<z.ZodString>;
116
+ }, z.core.$strip>;
117
+ export type TaskContextSummary = z.infer<typeof TaskContextSummarySchema>;
118
+ export declare const TaskContextDetailSchema: z.ZodObject<{
119
+ type: z.ZodString;
120
+ available: z.ZodBoolean;
121
+ label: z.ZodString;
122
+ href: z.ZodNullable<z.ZodString>;
123
+ groupLabel: z.ZodNullable<z.ZodString>;
124
+ id: z.ZodString;
125
+ groupId: z.ZodNullable<z.ZodString>;
126
+ canChangeTasks: z.ZodBoolean;
127
+ }, z.core.$strip>;
128
+ export type TaskContextDetail = z.infer<typeof TaskContextDetailSchema>;
129
+ /** The records a Task may be linked to besides its context (FR-031). */
130
+ export declare const TASK_LINK_KINDS: readonly ["opportunity", "order", "quote_request"];
131
+ export declare const taskLinkKindSchema: z.ZodEnum<{
132
+ order: "order";
133
+ quote_request: "quote_request";
134
+ opportunity: "opportunity";
135
+ }>;
136
+ export type TaskLinkKind = z.infer<typeof taskLinkKindSchema>;
137
+ export declare const TaskLinkTargetSchema: z.ZodObject<{
138
+ kind: z.ZodEnum<{
139
+ order: "order";
140
+ quote_request: "quote_request";
141
+ opportunity: "opportunity";
142
+ }>;
143
+ id: z.ZodString;
144
+ }, z.core.$strict>;
145
+ export type TaskLinkTarget = z.infer<typeof TaskLinkTargetSchema>;
146
+ /** The orders `GET /tasks` sorts by (FR-020, R-12). */
147
+ export declare const TASK_LIST_SORTS: readonly ["created", "number", "title", "due", "priority", "status", "updated"];
148
+ export declare const taskListSortSchema: z.ZodEnum<{
149
+ number: "number";
150
+ status: "status";
151
+ title: "title";
152
+ created: "created";
153
+ priority: "priority";
154
+ due: "due";
155
+ updated: "updated";
156
+ }>;
157
+ export type TaskListSort = z.infer<typeof taskListSortSchema>;
158
+ export declare const taskSortDirectionSchema: z.ZodEnum<{
159
+ asc: "asc";
160
+ desc: "desc";
161
+ }>;
162
+ export type TaskSortDirection = z.infer<typeof taskSortDirectionSchema>;
163
+ /** `GET /tasks` — keyset paging on any sort (R-12). Hidden Tasks are pre-filtered (R-3). */
164
+ export declare const TaskListQuerySchema: z.ZodObject<{
165
+ sort: z.ZodOptional<z.ZodEnum<{
166
+ number: "number";
167
+ status: "status";
168
+ title: "title";
169
+ created: "created";
170
+ priority: "priority";
171
+ due: "due";
172
+ updated: "updated";
173
+ }>>;
174
+ dir: z.ZodOptional<z.ZodEnum<{
175
+ asc: "asc";
176
+ desc: "desc";
177
+ }>>;
178
+ cursor: z.ZodOptional<z.ZodString>;
179
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
180
+ cardValues: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
181
+ status: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
182
+ statusCategory: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
183
+ cancelled: "cancelled";
184
+ open: "open";
185
+ done: "done";
186
+ }>>>>;
187
+ assignee: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"me">, z.ZodLiteral<"none">, z.ZodString]>>>>;
188
+ creator: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"me">, z.ZodString]>>;
189
+ priority: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodString]>>>>;
190
+ tagId: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
191
+ dueFrom: z.ZodOptional<z.ZodString>;
192
+ dueTo: z.ZodOptional<z.ZodString>;
193
+ overdue: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
194
+ linkedKind: z.ZodOptional<z.ZodEnum<{
195
+ order: "order";
196
+ quote_request: "quote_request";
197
+ opportunity: "opportunity";
198
+ }>>;
199
+ linkedId: z.ZodOptional<z.ZodString>;
200
+ contextType: z.ZodOptional<z.ZodString>;
201
+ contextId: z.ZodOptional<z.ZodString>;
202
+ parentId: z.ZodOptional<z.ZodString>;
203
+ isSubtask: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
204
+ hasSubtasks: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
205
+ draft: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
206
+ private: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
207
+ customFieldFilters: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
208
+ contains: z.ZodOptional<z.ZodString>;
209
+ in: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
+ is: z.ZodOptional<z.ZodBoolean>;
211
+ min: z.ZodOptional<z.ZodString>;
212
+ max: z.ZodOptional<z.ZodString>;
213
+ from: z.ZodOptional<z.ZodString>;
214
+ to: z.ZodOptional<z.ZodString>;
215
+ }, z.core.$strict>>>]>>, z.ZodTransform<Record<string, {
216
+ contains?: string | undefined;
217
+ in?: string[] | undefined;
218
+ is?: boolean | undefined;
219
+ min?: string | undefined;
220
+ max?: string | undefined;
221
+ from?: string | undefined;
222
+ to?: string | undefined;
223
+ }> | undefined, string | Record<string, {
224
+ contains?: string | undefined;
225
+ in?: string[] | undefined;
226
+ is?: boolean | undefined;
227
+ min?: string | undefined;
228
+ max?: string | undefined;
229
+ from?: string | undefined;
230
+ to?: string | undefined;
231
+ }> | undefined>>;
232
+ q: z.ZodOptional<z.ZodString>;
233
+ }, z.core.$strip>;
234
+ export type TaskListQuery = z.infer<typeof TaskListQuerySchema>;
235
+ /**
236
+ * `GET /tasks/mine` — the list's filters, with `assignee=me`,
237
+ * `statusCategory=open` and no draft implied (so those three are not taken).
238
+ */
239
+ export declare const MyTasksQuerySchema: z.ZodObject<{
240
+ assignee: z.ZodOptional<z.ZodUndefined>;
241
+ statusCategory: z.ZodOptional<z.ZodUndefined>;
242
+ draft: z.ZodOptional<z.ZodUndefined>;
243
+ sort: z.ZodOptional<z.ZodEnum<{
244
+ number: "number";
245
+ status: "status";
246
+ title: "title";
247
+ created: "created";
248
+ priority: "priority";
249
+ due: "due";
250
+ updated: "updated";
251
+ }>>;
252
+ dir: z.ZodOptional<z.ZodEnum<{
253
+ asc: "asc";
254
+ desc: "desc";
255
+ }>>;
256
+ status: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
257
+ creator: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"me">, z.ZodString]>>;
258
+ priority: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodString]>>>>;
259
+ tagId: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
260
+ dueFrom: z.ZodOptional<z.ZodString>;
261
+ dueTo: z.ZodOptional<z.ZodString>;
262
+ overdue: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
263
+ linkedKind: z.ZodOptional<z.ZodEnum<{
264
+ order: "order";
265
+ quote_request: "quote_request";
266
+ opportunity: "opportunity";
267
+ }>>;
268
+ linkedId: z.ZodOptional<z.ZodString>;
269
+ contextType: z.ZodOptional<z.ZodString>;
270
+ contextId: z.ZodOptional<z.ZodString>;
271
+ parentId: z.ZodOptional<z.ZodString>;
272
+ isSubtask: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
273
+ hasSubtasks: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
274
+ private: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
275
+ customFieldFilters: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
276
+ contains: z.ZodOptional<z.ZodString>;
277
+ in: z.ZodOptional<z.ZodArray<z.ZodString>>;
278
+ is: z.ZodOptional<z.ZodBoolean>;
279
+ min: z.ZodOptional<z.ZodString>;
280
+ max: z.ZodOptional<z.ZodString>;
281
+ from: z.ZodOptional<z.ZodString>;
282
+ to: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$strict>>>]>>, z.ZodTransform<Record<string, {
284
+ contains?: string | undefined;
285
+ in?: string[] | undefined;
286
+ is?: boolean | undefined;
287
+ min?: string | undefined;
288
+ max?: string | undefined;
289
+ from?: string | undefined;
290
+ to?: string | undefined;
291
+ }> | undefined, string | Record<string, {
292
+ contains?: string | undefined;
293
+ in?: string[] | undefined;
294
+ is?: boolean | undefined;
295
+ min?: string | undefined;
296
+ max?: string | undefined;
297
+ from?: string | undefined;
298
+ to?: string | undefined;
299
+ }> | undefined>>;
300
+ q: z.ZodOptional<z.ZodString>;
301
+ }, z.core.$strict>;
302
+ export type MyTasksQuery = z.infer<typeof MyTasksQuerySchema>;
303
+ /**
304
+ * `GET /tasks/board` — the list's filters without cursor and sort: a column is
305
+ * ordered by the board, and further cards come from `GET /tasks?status=` (R-11).
306
+ */
307
+ export declare const TaskBoardQuerySchema: z.ZodObject<{
308
+ perColumn: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
309
+ status: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
310
+ statusCategory: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
311
+ cancelled: "cancelled";
312
+ open: "open";
313
+ done: "done";
314
+ }>>>>;
315
+ assignee: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"me">, z.ZodLiteral<"none">, z.ZodString]>>>>;
316
+ creator: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"me">, z.ZodString]>>;
317
+ priority: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodString]>>>>;
318
+ tagId: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
319
+ dueFrom: z.ZodOptional<z.ZodString>;
320
+ dueTo: z.ZodOptional<z.ZodString>;
321
+ overdue: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
322
+ linkedKind: z.ZodOptional<z.ZodEnum<{
323
+ order: "order";
324
+ quote_request: "quote_request";
325
+ opportunity: "opportunity";
326
+ }>>;
327
+ linkedId: z.ZodOptional<z.ZodString>;
328
+ contextType: z.ZodOptional<z.ZodString>;
329
+ contextId: z.ZodOptional<z.ZodString>;
330
+ parentId: z.ZodOptional<z.ZodString>;
331
+ isSubtask: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
332
+ hasSubtasks: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
333
+ draft: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
334
+ private: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
335
+ customFieldFilters: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
336
+ contains: z.ZodOptional<z.ZodString>;
337
+ in: z.ZodOptional<z.ZodArray<z.ZodString>>;
338
+ is: z.ZodOptional<z.ZodBoolean>;
339
+ min: z.ZodOptional<z.ZodString>;
340
+ max: z.ZodOptional<z.ZodString>;
341
+ from: z.ZodOptional<z.ZodString>;
342
+ to: z.ZodOptional<z.ZodString>;
343
+ }, z.core.$strict>>>]>>, z.ZodTransform<Record<string, {
344
+ contains?: string | undefined;
345
+ in?: string[] | undefined;
346
+ is?: boolean | undefined;
347
+ min?: string | undefined;
348
+ max?: string | undefined;
349
+ from?: string | undefined;
350
+ to?: string | undefined;
351
+ }> | undefined, string | Record<string, {
352
+ contains?: string | undefined;
353
+ in?: string[] | undefined;
354
+ is?: boolean | undefined;
355
+ min?: string | undefined;
356
+ max?: string | undefined;
357
+ from?: string | undefined;
358
+ to?: string | undefined;
359
+ }> | undefined>>;
360
+ q: z.ZodOptional<z.ZodString>;
361
+ }, z.core.$strict>;
362
+ export type TaskBoardQuery = z.infer<typeof TaskBoardQuerySchema>;
363
+ /**
364
+ * `POST /tasks`. A `context` is accepted only for a type registered by a
365
+ * present module whose descriptor lists the id as visible to the caller — else
366
+ * 422 `TASK_CONTEXT_INVALID`. Each assignee must be an active administrator
367
+ * holding `tasks:read` — else 422 `TASK_ASSIGNEE_INVALID`. A new Task starts in
368
+ * the workflow's initial status (FR-015).
369
+ */
370
+ export declare const CreateTaskBodySchema: z.ZodObject<{
371
+ description: z.ZodOptional<z.ZodString>;
372
+ assigneeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
373
+ dueOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ dueAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ startOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
+ priorityCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
377
+ tagIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
378
+ customFieldValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
379
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
380
+ contextType: z.ZodString;
381
+ contextId: z.ZodString;
382
+ contextGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ }, z.core.$strict>>>;
384
+ parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
385
+ private: z.ZodOptional<z.ZodBoolean>;
386
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
387
+ kind: z.ZodEnum<{
388
+ order: "order";
389
+ quote_request: "quote_request";
390
+ opportunity: "opportunity";
391
+ }>;
392
+ id: z.ZodString;
393
+ }, z.core.$strict>>>;
394
+ draft: z.ZodOptional<z.ZodBoolean>;
395
+ title: z.ZodString;
396
+ }, z.core.$strict>;
397
+ export type CreateTaskBody = z.infer<typeof CreateTaskBodySchema>;
398
+ /**
399
+ * `PATCH /tasks/:id` — any of the fields, at least one. `assigneeIds` replaces
400
+ * the set; `addAssigneeIds` / `removeAssigneeIds` change it, and the two forms
401
+ * are exclusive. **`status` is not accepted**: a status change goes through
402
+ * `POST /tasks/:id/status`, which checks the workflow (R-1). Publishing goes
403
+ * through `POST /tasks/:id/publish`, so `draft` is not accepted either.
404
+ */
405
+ export declare const UpdateTaskBodySchema: z.ZodObject<{
406
+ addAssigneeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
407
+ removeAssigneeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
408
+ title: z.ZodOptional<z.ZodString>;
409
+ description: z.ZodOptional<z.ZodString>;
410
+ assigneeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
411
+ dueOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ dueAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ startOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ priorityCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
+ tagIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
416
+ customFieldValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
417
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
418
+ contextType: z.ZodString;
419
+ contextId: z.ZodString;
420
+ contextGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
421
+ }, z.core.$strict>>>;
422
+ parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ private: z.ZodOptional<z.ZodBoolean>;
424
+ }, z.core.$strict>;
425
+ export type UpdateTaskBody = z.infer<typeof UpdateTaskBodySchema>;
426
+ /**
427
+ * `POST /tasks/:id/status` — `from` is the status the caller saw; a Task that
428
+ * moved meanwhile answers 409 `TASK_TRANSITION_CONFLICT` (R-1).
429
+ */
430
+ export declare const TaskStatusChangeBodySchema: z.ZodObject<{
431
+ to: z.ZodString;
432
+ from: z.ZodString;
433
+ }, z.core.$strict>;
434
+ export type TaskStatusChangeBody = z.infer<typeof TaskStatusChangeBodySchema>;
435
+ /** `POST /tasks/:id/comments` — rich text with references, as the description (R-6). */
436
+ export declare const CreateTaskCommentBodySchema: z.ZodObject<{
437
+ body: z.ZodString;
438
+ }, z.core.$strict>;
439
+ export type CreateTaskCommentBody = z.infer<typeof CreateTaskCommentBodySchema>;
440
+ /** `PATCH /tasks/:id/comments/:commentId` — the author only. */
441
+ export declare const UpdateTaskCommentBodySchema: z.ZodObject<{
442
+ body: z.ZodString;
443
+ }, z.core.$strict>;
444
+ export type UpdateTaskCommentBody = z.infer<typeof UpdateTaskCommentBodySchema>;
445
+ /** `POST /tasks/:id/attachments` with an asset already in the library (the upload is multipart). */
446
+ export declare const CreateTaskAttachmentBodySchema: z.ZodObject<{
447
+ assetId: z.ZodString;
448
+ }, z.core.$strict>;
449
+ export type CreateTaskAttachmentBody = z.infer<typeof CreateTaskAttachmentBodySchema>;
450
+ /** `POST /tasks/:id/links`. 422 `TASK_LINK_INVALID` when the record cannot be linked (R-16). */
451
+ export declare const CreateTaskLinkBodySchema: z.ZodObject<{
452
+ kind: z.ZodEnum<{
453
+ order: "order";
454
+ quote_request: "quote_request";
455
+ opportunity: "opportunity";
456
+ }>;
457
+ id: z.ZodString;
458
+ }, z.core.$strict>;
459
+ export type CreateTaskLinkBody = z.infer<typeof CreateTaskLinkBodySchema>;
460
+ /**
461
+ * `POST /tasks/:id/reminders` — at a moment (`remindAt`) **or** some minutes
462
+ * before the due moment (`offsetMinutes`), never both, for 1–21 distinct
463
+ * recipients drawn from the caller and the assignees (R-17). A relative
464
+ * reminder on a Task without a due moment answers 422 `TASK_REMINDER_INVALID`.
465
+ */
466
+ export declare const CreateTaskReminderBodySchema: z.ZodObject<{
467
+ remindAt: z.ZodOptional<z.ZodString>;
468
+ offsetMinutes: z.ZodOptional<z.ZodNumber>;
469
+ recipientIds: z.ZodArray<z.ZodString>;
470
+ }, z.core.$strict>;
471
+ export type CreateTaskReminderBody = z.infer<typeof CreateTaskReminderBodySchema>;
472
+ /**
473
+ * `GET /tasks/lookups/assignees?q=&taskId=&contextType=&contextId=` — active
474
+ * administrators holding `tasks:read` who may see the Task; only the Creator
475
+ * for a private one. A context (both of its parts, or neither) narrows the
476
+ * answer to who may see that record — the create form's `?context=`, before
477
+ * there is a Task (issue #506); the caller must see the record themselves.
478
+ */
479
+ export declare const TaskAssigneeLookupQuerySchema: z.ZodObject<{
480
+ q: z.ZodOptional<z.ZodString>;
481
+ taskId: z.ZodOptional<z.ZodString>;
482
+ contextType: z.ZodOptional<z.ZodString>;
483
+ contextId: z.ZodOptional<z.ZodString>;
484
+ }, z.core.$strip>;
485
+ export type TaskAssigneeLookupQuery = z.infer<typeof TaskAssigneeLookupQuerySchema>;
486
+ /** `GET /tasks/lookups/mentionable?taskId=&q=` — at most 20 (R-5). */
487
+ export declare const TaskMentionableLookupQuerySchema: z.ZodObject<{
488
+ taskId: z.ZodOptional<z.ZodString>;
489
+ q: z.ZodOptional<z.ZodString>;
490
+ }, z.core.$strip>;
491
+ export type TaskMentionableLookupQuery = z.infer<typeof TaskMentionableLookupQuerySchema>;
492
+ /** `GET /tasks/lookups/documents?q=` — answers `RecordDocumentLookupResponse`. */
493
+ export declare const TaskDocumentLookupQuerySchema: z.ZodObject<{
494
+ q: z.ZodOptional<z.ZodString>;
495
+ }, z.core.$strip>;
496
+ export type TaskDocumentLookupQuery = z.infer<typeof TaskDocumentLookupQuerySchema>;
497
+ /** `GET /tasks/lookups/records?kind=&q=` — link targets (R-16). */
498
+ export declare const TaskRecordLookupQuerySchema: z.ZodObject<{
499
+ kind: z.ZodEnum<{
500
+ order: "order";
501
+ quote_request: "quote_request";
502
+ opportunity: "opportunity";
503
+ }>;
504
+ q: z.ZodOptional<z.ZodString>;
505
+ }, z.core.$strip>;
506
+ export type TaskRecordLookupQuery = z.infer<typeof TaskRecordLookupQuerySchema>;
507
+ /** `GET /tasks/lookups/contexts?q=` — the Project/Stage picker through each present descriptor. */
508
+ export declare const TaskContextLookupQuerySchema: z.ZodObject<{
509
+ q: z.ZodOptional<z.ZodString>;
510
+ }, z.core.$strip>;
511
+ export type TaskContextLookupQuery = z.infer<typeof TaskContextLookupQuerySchema>;
512
+ /** `POST /tasks/statuses`. `code` is immutable once created. */
513
+ export declare const CreateTaskStatusBodySchema: z.ZodObject<{
514
+ code: z.ZodString;
515
+ name: z.ZodObject<{
516
+ en: z.ZodString;
517
+ pl: z.ZodString;
518
+ }, z.core.$strict>;
519
+ category: z.ZodEnum<{
520
+ cancelled: "cancelled";
521
+ open: "open";
522
+ done: "done";
523
+ }>;
524
+ color: z.ZodString;
525
+ weight: z.ZodNumber;
526
+ isInitial: z.ZodOptional<z.ZodBoolean>;
527
+ }, z.core.$strict>;
528
+ export type CreateTaskStatusBody = z.infer<typeof CreateTaskStatusBodySchema>;
529
+ /** `PATCH /tasks/statuses/:code` — every field but the code, at least one. */
530
+ export declare const UpdateTaskStatusBodySchema: z.ZodObject<{
531
+ name: z.ZodOptional<z.ZodObject<{
532
+ en: z.ZodString;
533
+ pl: z.ZodString;
534
+ }, z.core.$strict>>;
535
+ category: z.ZodOptional<z.ZodEnum<{
536
+ cancelled: "cancelled";
537
+ open: "open";
538
+ done: "done";
539
+ }>>;
540
+ color: z.ZodOptional<z.ZodString>;
541
+ weight: z.ZodOptional<z.ZodNumber>;
542
+ isInitial: z.ZodOptional<z.ZodBoolean>;
543
+ }, z.core.$strict>;
544
+ export type UpdateTaskStatusBody = z.infer<typeof UpdateTaskStatusBodySchema>;
545
+ /**
546
+ * `DELETE /tasks/statuses/:code?replacement=` — required when the status is in
547
+ * use; it must be reachable. Above {@link TASK_STATUS_REASSIGN_MAX} Tasks the
548
+ * removal answers 409 `TASK_STATUS_IN_USE_TOO_MANY` (FR-016, R-1).
549
+ */
550
+ export declare const DeleteTaskStatusQuerySchema: z.ZodObject<{
551
+ replacement: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strip>;
553
+ export type DeleteTaskStatusQuery = z.infer<typeof DeleteTaskStatusQuerySchema>;
554
+ export declare const TaskTransitionEdgeSchema: z.ZodObject<{
555
+ from: z.ZodString;
556
+ to: z.ZodString;
557
+ }, z.core.$strict>;
558
+ export type TaskTransitionEdge = z.infer<typeof TaskTransitionEdgeSchema>;
559
+ /**
560
+ * `PUT /tasks/transitions` — a delta. The answer is the whole workflow; an
561
+ * invalid result answers 422 `TASK_WORKFLOW_INVALID {rule}` and changes nothing.
562
+ */
563
+ export declare const SetTaskTransitionsBodySchema: z.ZodObject<{
564
+ add: z.ZodOptional<z.ZodArray<z.ZodObject<{
565
+ from: z.ZodString;
566
+ to: z.ZodString;
567
+ }, z.core.$strict>>>;
568
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
569
+ from: z.ZodString;
570
+ to: z.ZodString;
571
+ }, z.core.$strict>>>;
572
+ }, z.core.$strict>;
573
+ export type SetTaskTransitionsBody = z.infer<typeof SetTaskTransitionsBodySchema>;
574
+ /** `POST /tasks/priorities`. Lower weight is more urgent (R-9). */
575
+ export declare const CreateTaskPriorityBodySchema: z.ZodObject<{
576
+ code: z.ZodString;
577
+ name: z.ZodObject<{
578
+ en: z.ZodString;
579
+ pl: z.ZodString;
580
+ }, z.core.$strict>;
581
+ color: z.ZodString;
582
+ weight: z.ZodNumber;
583
+ }, z.core.$strict>;
584
+ export type CreateTaskPriorityBody = z.infer<typeof CreateTaskPriorityBodySchema>;
585
+ export declare const UpdateTaskPriorityBodySchema: z.ZodObject<{
586
+ name: z.ZodOptional<z.ZodObject<{
587
+ en: z.ZodString;
588
+ pl: z.ZodString;
589
+ }, z.core.$strict>>;
590
+ color: z.ZodOptional<z.ZodString>;
591
+ weight: z.ZodOptional<z.ZodNumber>;
592
+ }, z.core.$strict>;
593
+ export type UpdateTaskPriorityBody = z.infer<typeof UpdateTaskPriorityBodySchema>;
594
+ /** `DELETE /tasks/priorities/:code?replacement=` — a code, or `none` to clear it (FR-024). */
595
+ export declare const DeleteTaskPriorityQuerySchema: z.ZodObject<{
596
+ replacement: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodString]>>;
597
+ }, z.core.$strip>;
598
+ export type DeleteTaskPriorityQuery = z.infer<typeof DeleteTaskPriorityQuerySchema>;
599
+ /** The colour a tag gets when none is chosen. */
600
+ export declare const TASK_TAG_DEFAULT_COLOR = "#64748b";
601
+ /** `POST /tasks/tags`. A taken name, case-insensitively, answers 409 `TASK_TAG_NAME_TAKEN`. */
602
+ export declare const CreateTaskTagBodySchema: z.ZodObject<{
603
+ name: z.ZodString;
604
+ color: z.ZodOptional<z.ZodString>;
605
+ }, z.core.$strict>;
606
+ export type CreateTaskTagBody = z.infer<typeof CreateTaskTagBodySchema>;
607
+ export declare const UpdateTaskTagBodySchema: z.ZodObject<{
608
+ name: z.ZodOptional<z.ZodString>;
609
+ color: z.ZodOptional<z.ZodString>;
610
+ }, z.core.$strict>;
611
+ export type UpdateTaskTagBody = z.infer<typeof UpdateTaskTagBodySchema>;
612
+ /** How many fields a board card shows at most, the title besides (R-11). */
613
+ export declare const TASK_BOARD_CARD_MAX_FIELDS = 6;
614
+ /** The fields every Task has that a board card can show, in the order they are offered. */
615
+ export declare const TASK_BOARD_BUILTIN_FIELD_KEYS: readonly ["number", "assignees", "due", "priority", "tags", "startOn", "context", "subtasks", "createdAt", "updatedAt"];
616
+ export type TaskBoardBuiltinFieldKey = (typeof TASK_BOARD_BUILTIN_FIELD_KEYS)[number];
617
+ /** `builtin:<key>` or `custom:<definition key>` — CRM's grammar. */
618
+ export declare const taskBoardFieldRefSchema: z.ZodString;
619
+ /** The `tasks.board_card_fields` default (`data-model.md` §4). */
620
+ export declare const TASK_BOARD_DEFAULT_CARD_FIELDS: readonly string[];
621
+ /** `PUT /tasks/board/card-fields`. Validated against the catalogue and the `task` definitions. */
622
+ export declare const SetTaskBoardCardFieldsBodySchema: z.ZodObject<{
623
+ fields: z.ZodArray<z.ZodString>;
624
+ }, z.core.$strict>;
625
+ export type SetTaskBoardCardFieldsBody = z.infer<typeof SetTaskBoardCardFieldsBodySchema>;
626
+ /** `PUT /tasks/settings/time-zone` — an IANA name, validated by the server (R-17). */
627
+ export declare const SetTaskTimeZoneBodySchema: z.ZodObject<{
628
+ timeZone: z.ZodString;
629
+ }, z.core.$strict>;
630
+ export type SetTaskTimeZoneBody = z.infer<typeof SetTaskTimeZoneBodySchema>;
631
+ /** `PUT /tasks/me/digest` — on, at a local hour of `tasks.time_zone` (R-18). Off is `DELETE`. */
632
+ export declare const SetTaskDigestBodySchema: z.ZodObject<{
633
+ hour: z.ZodNumber;
634
+ }, z.core.$strict>;
635
+ export type SetTaskDigestBody = z.infer<typeof SetTaskDigestBodySchema>;
636
+ export declare const TaskAssigneeSchema: z.ZodObject<{
637
+ id: z.ZodString;
638
+ name: z.ZodString;
639
+ active: z.ZodBoolean;
640
+ }, z.core.$strip>;
641
+ export type TaskAssignee = z.infer<typeof TaskAssigneeSchema>;
642
+ /** A status as a reader is shown it: its name in the reader's language. */
643
+ export declare const TaskStatusRefSchema: z.ZodObject<{
644
+ code: z.ZodString;
645
+ name: z.ZodString;
646
+ color: z.ZodString;
647
+ category: z.ZodEnum<{
648
+ cancelled: "cancelled";
649
+ open: "open";
650
+ done: "done";
651
+ }>;
652
+ }, z.core.$strip>;
653
+ export type TaskStatusRef = z.infer<typeof TaskStatusRefSchema>;
654
+ export declare const TaskPriorityRefSchema: z.ZodObject<{
655
+ code: z.ZodString;
656
+ name: z.ZodString;
657
+ color: z.ZodString;
658
+ }, z.core.$strip>;
659
+ export type TaskPriorityRef = z.infer<typeof TaskPriorityRefSchema>;
660
+ export declare const TaskTagRefSchema: z.ZodObject<{
661
+ id: z.ZodString;
662
+ name: z.ZodString;
663
+ color: z.ZodString;
664
+ }, z.core.$strip>;
665
+ export type TaskTagRef = z.infer<typeof TaskTagRefSchema>;
666
+ /** A parent the reader may not see is `available: false` with its number withheld. */
667
+ export declare const TaskParentRefSchema: z.ZodObject<{
668
+ id: z.ZodString;
669
+ number: z.ZodNullable<z.ZodString>;
670
+ available: z.ZodBoolean;
671
+ }, z.core.$strip>;
672
+ export type TaskParentRef = z.infer<typeof TaskParentRefSchema>;
673
+ /** One field of a board card, as configured (`tasks.board_card_fields`). */
674
+ export declare const TaskCardFieldValueSchema: z.ZodObject<{
675
+ ref: z.ZodString;
676
+ value: z.ZodUnknown;
677
+ }, z.core.$strip>;
678
+ export type TaskCardFieldValue = z.infer<typeof TaskCardFieldValueSchema>;
679
+ export declare const TaskSummarySchema: z.ZodObject<{
680
+ id: z.ZodString;
681
+ number: z.ZodString;
682
+ title: z.ZodString;
683
+ status: z.ZodObject<{
684
+ code: z.ZodString;
685
+ name: z.ZodString;
686
+ color: z.ZodString;
687
+ category: z.ZodEnum<{
688
+ cancelled: "cancelled";
689
+ open: "open";
690
+ done: "done";
691
+ }>;
692
+ }, z.core.$strip>;
693
+ closed: z.ZodBoolean;
694
+ assignees: z.ZodArray<z.ZodObject<{
695
+ id: z.ZodString;
696
+ name: z.ZodString;
697
+ active: z.ZodBoolean;
698
+ }, z.core.$strip>>;
699
+ dueOn: z.ZodNullable<z.ZodString>;
700
+ dueAt: z.ZodNullable<z.ZodString>;
701
+ overdue: z.ZodBoolean;
702
+ priority: z.ZodNullable<z.ZodObject<{
703
+ code: z.ZodString;
704
+ name: z.ZodString;
705
+ color: z.ZodString;
706
+ }, z.core.$strip>>;
707
+ tags: z.ZodArray<z.ZodObject<{
708
+ id: z.ZodString;
709
+ name: z.ZodString;
710
+ color: z.ZodString;
711
+ }, z.core.$strip>>;
712
+ context: z.ZodNullable<z.ZodObject<{
713
+ type: z.ZodString;
714
+ available: z.ZodBoolean;
715
+ label: z.ZodString;
716
+ href: z.ZodNullable<z.ZodString>;
717
+ groupLabel: z.ZodNullable<z.ZodString>;
718
+ }, z.core.$strip>>;
719
+ parent: z.ZodNullable<z.ZodObject<{
720
+ id: z.ZodString;
721
+ number: z.ZodNullable<z.ZodString>;
722
+ available: z.ZodBoolean;
723
+ }, z.core.$strip>>;
724
+ subtasks: z.ZodObject<{
725
+ closed: z.ZodNumber;
726
+ total: z.ZodNumber;
727
+ }, z.core.$strip>;
728
+ draft: z.ZodBoolean;
729
+ private: z.ZodBoolean;
730
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
731
+ ref: z.ZodString;
732
+ value: z.ZodUnknown;
733
+ }, z.core.$strip>>>;
734
+ createdAt: z.ZodString;
735
+ updatedAt: z.ZodString;
736
+ }, z.core.$strip>;
737
+ export type TaskSummary = z.infer<typeof TaskSummarySchema>;
738
+ /** A record link as the reader is shown it — resolved per reader, like a reference (R-16). */
739
+ export declare const TaskLinkSchema: z.ZodObject<{
740
+ id: z.ZodString;
741
+ kind: z.ZodEnum<{
742
+ order: "order";
743
+ quote_request: "quote_request";
744
+ opportunity: "opportunity";
745
+ }>;
746
+ recordId: z.ZodString;
747
+ available: z.ZodBoolean;
748
+ label: z.ZodNullable<z.ZodString>;
749
+ url: z.ZodNullable<z.ZodString>;
750
+ }, z.core.$strip>;
751
+ export type TaskLink = z.infer<typeof TaskLinkSchema>;
752
+ export declare const TaskPersonSchema: z.ZodObject<{
753
+ id: z.ZodString;
754
+ name: z.ZodString;
755
+ }, z.core.$strip>;
756
+ export type TaskPerson = z.infer<typeof TaskPersonSchema>;
757
+ export declare const TaskReminderSchema: z.ZodObject<{
758
+ id: z.ZodString;
759
+ mode: z.ZodEnum<{
760
+ absolute: "absolute";
761
+ relative: "relative";
762
+ }>;
763
+ remindAt: z.ZodString;
764
+ offsetMinutes: z.ZodNullable<z.ZodNumber>;
765
+ recipients: z.ZodArray<z.ZodObject<{
766
+ id: z.ZodString;
767
+ name: z.ZodString;
768
+ active: z.ZodBoolean;
769
+ }, z.core.$strip>>;
770
+ createdBy: z.ZodNullable<z.ZodObject<{
771
+ id: z.ZodString;
772
+ name: z.ZodString;
773
+ }, z.core.$strip>>;
774
+ done: z.ZodBoolean;
775
+ createdAt: z.ZodString;
776
+ }, z.core.$strip>;
777
+ export type TaskReminder = z.infer<typeof TaskReminderSchema>;
778
+ export declare const TaskDetailSchema: z.ZodObject<{
779
+ id: z.ZodString;
780
+ number: z.ZodString;
781
+ title: z.ZodString;
782
+ status: z.ZodObject<{
783
+ code: z.ZodString;
784
+ name: z.ZodString;
785
+ color: z.ZodString;
786
+ category: z.ZodEnum<{
787
+ cancelled: "cancelled";
788
+ open: "open";
789
+ done: "done";
790
+ }>;
791
+ }, z.core.$strip>;
792
+ closed: z.ZodBoolean;
793
+ assignees: z.ZodArray<z.ZodObject<{
794
+ id: z.ZodString;
795
+ name: z.ZodString;
796
+ active: z.ZodBoolean;
797
+ }, z.core.$strip>>;
798
+ dueOn: z.ZodNullable<z.ZodString>;
799
+ dueAt: z.ZodNullable<z.ZodString>;
800
+ overdue: z.ZodBoolean;
801
+ priority: z.ZodNullable<z.ZodObject<{
802
+ code: z.ZodString;
803
+ name: z.ZodString;
804
+ color: z.ZodString;
805
+ }, z.core.$strip>>;
806
+ tags: z.ZodArray<z.ZodObject<{
807
+ id: z.ZodString;
808
+ name: z.ZodString;
809
+ color: z.ZodString;
810
+ }, z.core.$strip>>;
811
+ parent: z.ZodNullable<z.ZodObject<{
812
+ id: z.ZodString;
813
+ number: z.ZodNullable<z.ZodString>;
814
+ available: z.ZodBoolean;
815
+ }, z.core.$strip>>;
816
+ subtasks: z.ZodObject<{
817
+ closed: z.ZodNumber;
818
+ total: z.ZodNumber;
819
+ }, z.core.$strip>;
820
+ draft: z.ZodBoolean;
821
+ private: z.ZodBoolean;
822
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
823
+ ref: z.ZodString;
824
+ value: z.ZodUnknown;
825
+ }, z.core.$strip>>>;
826
+ createdAt: z.ZodString;
827
+ updatedAt: z.ZodString;
828
+ description: z.ZodString;
829
+ references: z.ZodArray<z.ZodObject<{
830
+ type: z.ZodEnum<{
831
+ product: "product";
832
+ order: "order";
833
+ admin_user: "admin_user";
834
+ quote_request: "quote_request";
835
+ task: "task";
836
+ opportunity: "opportunity";
837
+ project: "project";
838
+ }>;
839
+ id: z.ZodString;
840
+ available: z.ZodBoolean;
841
+ label: z.ZodNullable<z.ZodString>;
842
+ url: z.ZodNullable<z.ZodString>;
843
+ order: z.ZodOptional<z.ZodObject<{
844
+ status: z.ZodString;
845
+ total: z.ZodString;
846
+ currency: z.ZodString;
847
+ placedAt: z.ZodString;
848
+ customerName: z.ZodNullable<z.ZodString>;
849
+ }, z.core.$strip>>;
850
+ }, z.core.$strip>>;
851
+ context: z.ZodNullable<z.ZodObject<{
852
+ type: z.ZodString;
853
+ available: z.ZodBoolean;
854
+ label: z.ZodString;
855
+ href: z.ZodNullable<z.ZodString>;
856
+ groupLabel: z.ZodNullable<z.ZodString>;
857
+ id: z.ZodString;
858
+ groupId: z.ZodNullable<z.ZodString>;
859
+ canChangeTasks: z.ZodBoolean;
860
+ }, z.core.$strip>>;
861
+ contextNote: z.ZodNullable<z.ZodString>;
862
+ startOn: z.ZodNullable<z.ZodString>;
863
+ customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
864
+ links: z.ZodArray<z.ZodObject<{
865
+ id: z.ZodString;
866
+ kind: z.ZodEnum<{
867
+ order: "order";
868
+ quote_request: "quote_request";
869
+ opportunity: "opportunity";
870
+ }>;
871
+ recordId: z.ZodString;
872
+ available: z.ZodBoolean;
873
+ label: z.ZodNullable<z.ZodString>;
874
+ url: z.ZodNullable<z.ZodString>;
875
+ }, z.core.$strip>>;
876
+ relatedTasks: z.ZodArray<z.ZodObject<{
877
+ id: z.ZodString;
878
+ number: z.ZodString;
879
+ title: z.ZodString;
880
+ status: z.ZodObject<{
881
+ code: z.ZodString;
882
+ name: z.ZodString;
883
+ color: z.ZodString;
884
+ category: z.ZodEnum<{
885
+ cancelled: "cancelled";
886
+ open: "open";
887
+ done: "done";
888
+ }>;
889
+ }, z.core.$strip>;
890
+ closed: z.ZodBoolean;
891
+ assignees: z.ZodArray<z.ZodObject<{
892
+ id: z.ZodString;
893
+ name: z.ZodString;
894
+ active: z.ZodBoolean;
895
+ }, z.core.$strip>>;
896
+ dueOn: z.ZodNullable<z.ZodString>;
897
+ dueAt: z.ZodNullable<z.ZodString>;
898
+ overdue: z.ZodBoolean;
899
+ priority: z.ZodNullable<z.ZodObject<{
900
+ code: z.ZodString;
901
+ name: z.ZodString;
902
+ color: z.ZodString;
903
+ }, z.core.$strip>>;
904
+ tags: z.ZodArray<z.ZodObject<{
905
+ id: z.ZodString;
906
+ name: z.ZodString;
907
+ color: z.ZodString;
908
+ }, z.core.$strip>>;
909
+ context: z.ZodNullable<z.ZodObject<{
910
+ type: z.ZodString;
911
+ available: z.ZodBoolean;
912
+ label: z.ZodString;
913
+ href: z.ZodNullable<z.ZodString>;
914
+ groupLabel: z.ZodNullable<z.ZodString>;
915
+ }, z.core.$strip>>;
916
+ parent: z.ZodNullable<z.ZodObject<{
917
+ id: z.ZodString;
918
+ number: z.ZodNullable<z.ZodString>;
919
+ available: z.ZodBoolean;
920
+ }, z.core.$strip>>;
921
+ subtasks: z.ZodObject<{
922
+ closed: z.ZodNumber;
923
+ total: z.ZodNumber;
924
+ }, z.core.$strip>;
925
+ draft: z.ZodBoolean;
926
+ private: z.ZodBoolean;
927
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
928
+ ref: z.ZodString;
929
+ value: z.ZodUnknown;
930
+ }, z.core.$strip>>>;
931
+ createdAt: z.ZodString;
932
+ updatedAt: z.ZodString;
933
+ }, z.core.$strip>>;
934
+ subtaskItems: z.ZodArray<z.ZodObject<{
935
+ id: z.ZodString;
936
+ number: z.ZodString;
937
+ title: z.ZodString;
938
+ status: z.ZodObject<{
939
+ code: z.ZodString;
940
+ name: z.ZodString;
941
+ color: z.ZodString;
942
+ category: z.ZodEnum<{
943
+ cancelled: "cancelled";
944
+ open: "open";
945
+ done: "done";
946
+ }>;
947
+ }, z.core.$strip>;
948
+ closed: z.ZodBoolean;
949
+ assignees: z.ZodArray<z.ZodObject<{
950
+ id: z.ZodString;
951
+ name: z.ZodString;
952
+ active: z.ZodBoolean;
953
+ }, z.core.$strip>>;
954
+ dueOn: z.ZodNullable<z.ZodString>;
955
+ dueAt: z.ZodNullable<z.ZodString>;
956
+ overdue: z.ZodBoolean;
957
+ priority: z.ZodNullable<z.ZodObject<{
958
+ code: z.ZodString;
959
+ name: z.ZodString;
960
+ color: z.ZodString;
961
+ }, z.core.$strip>>;
962
+ tags: z.ZodArray<z.ZodObject<{
963
+ id: z.ZodString;
964
+ name: z.ZodString;
965
+ color: z.ZodString;
966
+ }, z.core.$strip>>;
967
+ context: z.ZodNullable<z.ZodObject<{
968
+ type: z.ZodString;
969
+ available: z.ZodBoolean;
970
+ label: z.ZodString;
971
+ href: z.ZodNullable<z.ZodString>;
972
+ groupLabel: z.ZodNullable<z.ZodString>;
973
+ }, z.core.$strip>>;
974
+ parent: z.ZodNullable<z.ZodObject<{
975
+ id: z.ZodString;
976
+ number: z.ZodNullable<z.ZodString>;
977
+ available: z.ZodBoolean;
978
+ }, z.core.$strip>>;
979
+ subtasks: z.ZodObject<{
980
+ closed: z.ZodNumber;
981
+ total: z.ZodNumber;
982
+ }, z.core.$strip>;
983
+ draft: z.ZodBoolean;
984
+ private: z.ZodBoolean;
985
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
986
+ ref: z.ZodString;
987
+ value: z.ZodUnknown;
988
+ }, z.core.$strip>>>;
989
+ createdAt: z.ZodString;
990
+ updatedAt: z.ZodString;
991
+ }, z.core.$strip>>;
992
+ attachmentsCount: z.ZodNumber;
993
+ commentsCount: z.ZodNumber;
994
+ reminders: z.ZodArray<z.ZodObject<{
995
+ id: z.ZodString;
996
+ mode: z.ZodEnum<{
997
+ absolute: "absolute";
998
+ relative: "relative";
999
+ }>;
1000
+ remindAt: z.ZodString;
1001
+ offsetMinutes: z.ZodNullable<z.ZodNumber>;
1002
+ recipients: z.ZodArray<z.ZodObject<{
1003
+ id: z.ZodString;
1004
+ name: z.ZodString;
1005
+ active: z.ZodBoolean;
1006
+ }, z.core.$strip>>;
1007
+ createdBy: z.ZodNullable<z.ZodObject<{
1008
+ id: z.ZodString;
1009
+ name: z.ZodString;
1010
+ }, z.core.$strip>>;
1011
+ done: z.ZodBoolean;
1012
+ createdAt: z.ZodString;
1013
+ }, z.core.$strip>>;
1014
+ createdBy: z.ZodNullable<z.ZodObject<{
1015
+ id: z.ZodString;
1016
+ name: z.ZodString;
1017
+ }, z.core.$strip>>;
1018
+ publishedAt: z.ZodNullable<z.ZodString>;
1019
+ completedAt: z.ZodNullable<z.ZodString>;
1020
+ permissions: z.ZodObject<{
1021
+ canChange: z.ZodBoolean;
1022
+ canDelete: z.ZodBoolean;
1023
+ canPublish: z.ZodBoolean;
1024
+ }, z.core.$strip>;
1025
+ }, z.core.$strip>;
1026
+ export type TaskDetail = z.infer<typeof TaskDetailSchema>;
1027
+ /** `GET /tasks` — one page; `nextCursor` is `null` on the last. */
1028
+ export declare const TaskListResponseSchema: z.ZodObject<{
1029
+ items: z.ZodArray<z.ZodObject<{
1030
+ id: z.ZodString;
1031
+ number: z.ZodString;
1032
+ title: z.ZodString;
1033
+ status: z.ZodObject<{
1034
+ code: z.ZodString;
1035
+ name: z.ZodString;
1036
+ color: z.ZodString;
1037
+ category: z.ZodEnum<{
1038
+ cancelled: "cancelled";
1039
+ open: "open";
1040
+ done: "done";
1041
+ }>;
1042
+ }, z.core.$strip>;
1043
+ closed: z.ZodBoolean;
1044
+ assignees: z.ZodArray<z.ZodObject<{
1045
+ id: z.ZodString;
1046
+ name: z.ZodString;
1047
+ active: z.ZodBoolean;
1048
+ }, z.core.$strip>>;
1049
+ dueOn: z.ZodNullable<z.ZodString>;
1050
+ dueAt: z.ZodNullable<z.ZodString>;
1051
+ overdue: z.ZodBoolean;
1052
+ priority: z.ZodNullable<z.ZodObject<{
1053
+ code: z.ZodString;
1054
+ name: z.ZodString;
1055
+ color: z.ZodString;
1056
+ }, z.core.$strip>>;
1057
+ tags: z.ZodArray<z.ZodObject<{
1058
+ id: z.ZodString;
1059
+ name: z.ZodString;
1060
+ color: z.ZodString;
1061
+ }, z.core.$strip>>;
1062
+ context: z.ZodNullable<z.ZodObject<{
1063
+ type: z.ZodString;
1064
+ available: z.ZodBoolean;
1065
+ label: z.ZodString;
1066
+ href: z.ZodNullable<z.ZodString>;
1067
+ groupLabel: z.ZodNullable<z.ZodString>;
1068
+ }, z.core.$strip>>;
1069
+ parent: z.ZodNullable<z.ZodObject<{
1070
+ id: z.ZodString;
1071
+ number: z.ZodNullable<z.ZodString>;
1072
+ available: z.ZodBoolean;
1073
+ }, z.core.$strip>>;
1074
+ subtasks: z.ZodObject<{
1075
+ closed: z.ZodNumber;
1076
+ total: z.ZodNumber;
1077
+ }, z.core.$strip>;
1078
+ draft: z.ZodBoolean;
1079
+ private: z.ZodBoolean;
1080
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1081
+ ref: z.ZodString;
1082
+ value: z.ZodUnknown;
1083
+ }, z.core.$strip>>>;
1084
+ createdAt: z.ZodString;
1085
+ updatedAt: z.ZodString;
1086
+ }, z.core.$strip>>;
1087
+ nextCursor: z.ZodNullable<z.ZodString>;
1088
+ prevCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1089
+ }, z.core.$strip>;
1090
+ export type TaskListResponse = z.infer<typeof TaskListResponseSchema>;
1091
+ export declare const TaskBoardColumnSchema: z.ZodObject<{
1092
+ status: z.ZodObject<{
1093
+ code: z.ZodString;
1094
+ name: z.ZodString;
1095
+ color: z.ZodString;
1096
+ category: z.ZodEnum<{
1097
+ cancelled: "cancelled";
1098
+ open: "open";
1099
+ done: "done";
1100
+ }>;
1101
+ }, z.core.$strip>;
1102
+ count: z.ZodNumber;
1103
+ items: z.ZodArray<z.ZodObject<{
1104
+ id: z.ZodString;
1105
+ number: z.ZodString;
1106
+ title: z.ZodString;
1107
+ status: z.ZodObject<{
1108
+ code: z.ZodString;
1109
+ name: z.ZodString;
1110
+ color: z.ZodString;
1111
+ category: z.ZodEnum<{
1112
+ cancelled: "cancelled";
1113
+ open: "open";
1114
+ done: "done";
1115
+ }>;
1116
+ }, z.core.$strip>;
1117
+ closed: z.ZodBoolean;
1118
+ assignees: z.ZodArray<z.ZodObject<{
1119
+ id: z.ZodString;
1120
+ name: z.ZodString;
1121
+ active: z.ZodBoolean;
1122
+ }, z.core.$strip>>;
1123
+ dueOn: z.ZodNullable<z.ZodString>;
1124
+ dueAt: z.ZodNullable<z.ZodString>;
1125
+ overdue: z.ZodBoolean;
1126
+ priority: z.ZodNullable<z.ZodObject<{
1127
+ code: z.ZodString;
1128
+ name: z.ZodString;
1129
+ color: z.ZodString;
1130
+ }, z.core.$strip>>;
1131
+ tags: z.ZodArray<z.ZodObject<{
1132
+ id: z.ZodString;
1133
+ name: z.ZodString;
1134
+ color: z.ZodString;
1135
+ }, z.core.$strip>>;
1136
+ context: z.ZodNullable<z.ZodObject<{
1137
+ type: z.ZodString;
1138
+ available: z.ZodBoolean;
1139
+ label: z.ZodString;
1140
+ href: z.ZodNullable<z.ZodString>;
1141
+ groupLabel: z.ZodNullable<z.ZodString>;
1142
+ }, z.core.$strip>>;
1143
+ parent: z.ZodNullable<z.ZodObject<{
1144
+ id: z.ZodString;
1145
+ number: z.ZodNullable<z.ZodString>;
1146
+ available: z.ZodBoolean;
1147
+ }, z.core.$strip>>;
1148
+ subtasks: z.ZodObject<{
1149
+ closed: z.ZodNumber;
1150
+ total: z.ZodNumber;
1151
+ }, z.core.$strip>;
1152
+ draft: z.ZodBoolean;
1153
+ private: z.ZodBoolean;
1154
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1155
+ ref: z.ZodString;
1156
+ value: z.ZodUnknown;
1157
+ }, z.core.$strip>>>;
1158
+ createdAt: z.ZodString;
1159
+ updatedAt: z.ZodString;
1160
+ }, z.core.$strip>>;
1161
+ hasMore: z.ZodBoolean;
1162
+ }, z.core.$strip>;
1163
+ export type TaskBoardColumn = z.infer<typeof TaskBoardColumnSchema>;
1164
+ /** `GET /tasks/board` — one column per status, in workflow order (FR-019). */
1165
+ export declare const TaskBoardSchema: z.ZodObject<{
1166
+ columns: z.ZodArray<z.ZodObject<{
1167
+ status: z.ZodObject<{
1168
+ code: z.ZodString;
1169
+ name: z.ZodString;
1170
+ color: z.ZodString;
1171
+ category: z.ZodEnum<{
1172
+ cancelled: "cancelled";
1173
+ open: "open";
1174
+ done: "done";
1175
+ }>;
1176
+ }, z.core.$strip>;
1177
+ count: z.ZodNumber;
1178
+ items: z.ZodArray<z.ZodObject<{
1179
+ id: z.ZodString;
1180
+ number: z.ZodString;
1181
+ title: z.ZodString;
1182
+ status: z.ZodObject<{
1183
+ code: z.ZodString;
1184
+ name: z.ZodString;
1185
+ color: z.ZodString;
1186
+ category: z.ZodEnum<{
1187
+ cancelled: "cancelled";
1188
+ open: "open";
1189
+ done: "done";
1190
+ }>;
1191
+ }, z.core.$strip>;
1192
+ closed: z.ZodBoolean;
1193
+ assignees: z.ZodArray<z.ZodObject<{
1194
+ id: z.ZodString;
1195
+ name: z.ZodString;
1196
+ active: z.ZodBoolean;
1197
+ }, z.core.$strip>>;
1198
+ dueOn: z.ZodNullable<z.ZodString>;
1199
+ dueAt: z.ZodNullable<z.ZodString>;
1200
+ overdue: z.ZodBoolean;
1201
+ priority: z.ZodNullable<z.ZodObject<{
1202
+ code: z.ZodString;
1203
+ name: z.ZodString;
1204
+ color: z.ZodString;
1205
+ }, z.core.$strip>>;
1206
+ tags: z.ZodArray<z.ZodObject<{
1207
+ id: z.ZodString;
1208
+ name: z.ZodString;
1209
+ color: z.ZodString;
1210
+ }, z.core.$strip>>;
1211
+ context: z.ZodNullable<z.ZodObject<{
1212
+ type: z.ZodString;
1213
+ available: z.ZodBoolean;
1214
+ label: z.ZodString;
1215
+ href: z.ZodNullable<z.ZodString>;
1216
+ groupLabel: z.ZodNullable<z.ZodString>;
1217
+ }, z.core.$strip>>;
1218
+ parent: z.ZodNullable<z.ZodObject<{
1219
+ id: z.ZodString;
1220
+ number: z.ZodNullable<z.ZodString>;
1221
+ available: z.ZodBoolean;
1222
+ }, z.core.$strip>>;
1223
+ subtasks: z.ZodObject<{
1224
+ closed: z.ZodNumber;
1225
+ total: z.ZodNumber;
1226
+ }, z.core.$strip>;
1227
+ draft: z.ZodBoolean;
1228
+ private: z.ZodBoolean;
1229
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1230
+ ref: z.ZodString;
1231
+ value: z.ZodUnknown;
1232
+ }, z.core.$strip>>>;
1233
+ createdAt: z.ZodString;
1234
+ updatedAt: z.ZodString;
1235
+ }, z.core.$strip>>;
1236
+ hasMore: z.ZodBoolean;
1237
+ }, z.core.$strip>>;
1238
+ }, z.core.$strip>;
1239
+ export type TaskBoard = z.infer<typeof TaskBoardSchema>;
1240
+ /** `POST /tasks/:id/status`. `openSubtasks` > 0 drives the warning on closing a parent (FR-028). */
1241
+ export declare const TaskStatusChangeResultSchema: z.ZodObject<{
1242
+ task: z.ZodObject<{
1243
+ id: z.ZodString;
1244
+ number: z.ZodString;
1245
+ title: z.ZodString;
1246
+ status: z.ZodObject<{
1247
+ code: z.ZodString;
1248
+ name: z.ZodString;
1249
+ color: z.ZodString;
1250
+ category: z.ZodEnum<{
1251
+ cancelled: "cancelled";
1252
+ open: "open";
1253
+ done: "done";
1254
+ }>;
1255
+ }, z.core.$strip>;
1256
+ closed: z.ZodBoolean;
1257
+ assignees: z.ZodArray<z.ZodObject<{
1258
+ id: z.ZodString;
1259
+ name: z.ZodString;
1260
+ active: z.ZodBoolean;
1261
+ }, z.core.$strip>>;
1262
+ dueOn: z.ZodNullable<z.ZodString>;
1263
+ dueAt: z.ZodNullable<z.ZodString>;
1264
+ overdue: z.ZodBoolean;
1265
+ priority: z.ZodNullable<z.ZodObject<{
1266
+ code: z.ZodString;
1267
+ name: z.ZodString;
1268
+ color: z.ZodString;
1269
+ }, z.core.$strip>>;
1270
+ tags: z.ZodArray<z.ZodObject<{
1271
+ id: z.ZodString;
1272
+ name: z.ZodString;
1273
+ color: z.ZodString;
1274
+ }, z.core.$strip>>;
1275
+ parent: z.ZodNullable<z.ZodObject<{
1276
+ id: z.ZodString;
1277
+ number: z.ZodNullable<z.ZodString>;
1278
+ available: z.ZodBoolean;
1279
+ }, z.core.$strip>>;
1280
+ subtasks: z.ZodObject<{
1281
+ closed: z.ZodNumber;
1282
+ total: z.ZodNumber;
1283
+ }, z.core.$strip>;
1284
+ draft: z.ZodBoolean;
1285
+ private: z.ZodBoolean;
1286
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1287
+ ref: z.ZodString;
1288
+ value: z.ZodUnknown;
1289
+ }, z.core.$strip>>>;
1290
+ createdAt: z.ZodString;
1291
+ updatedAt: z.ZodString;
1292
+ description: z.ZodString;
1293
+ references: z.ZodArray<z.ZodObject<{
1294
+ type: z.ZodEnum<{
1295
+ product: "product";
1296
+ order: "order";
1297
+ admin_user: "admin_user";
1298
+ quote_request: "quote_request";
1299
+ task: "task";
1300
+ opportunity: "opportunity";
1301
+ project: "project";
1302
+ }>;
1303
+ id: z.ZodString;
1304
+ available: z.ZodBoolean;
1305
+ label: z.ZodNullable<z.ZodString>;
1306
+ url: z.ZodNullable<z.ZodString>;
1307
+ order: z.ZodOptional<z.ZodObject<{
1308
+ status: z.ZodString;
1309
+ total: z.ZodString;
1310
+ currency: z.ZodString;
1311
+ placedAt: z.ZodString;
1312
+ customerName: z.ZodNullable<z.ZodString>;
1313
+ }, z.core.$strip>>;
1314
+ }, z.core.$strip>>;
1315
+ context: z.ZodNullable<z.ZodObject<{
1316
+ type: z.ZodString;
1317
+ available: z.ZodBoolean;
1318
+ label: z.ZodString;
1319
+ href: z.ZodNullable<z.ZodString>;
1320
+ groupLabel: z.ZodNullable<z.ZodString>;
1321
+ id: z.ZodString;
1322
+ groupId: z.ZodNullable<z.ZodString>;
1323
+ canChangeTasks: z.ZodBoolean;
1324
+ }, z.core.$strip>>;
1325
+ contextNote: z.ZodNullable<z.ZodString>;
1326
+ startOn: z.ZodNullable<z.ZodString>;
1327
+ customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1328
+ links: z.ZodArray<z.ZodObject<{
1329
+ id: z.ZodString;
1330
+ kind: z.ZodEnum<{
1331
+ order: "order";
1332
+ quote_request: "quote_request";
1333
+ opportunity: "opportunity";
1334
+ }>;
1335
+ recordId: z.ZodString;
1336
+ available: z.ZodBoolean;
1337
+ label: z.ZodNullable<z.ZodString>;
1338
+ url: z.ZodNullable<z.ZodString>;
1339
+ }, z.core.$strip>>;
1340
+ relatedTasks: z.ZodArray<z.ZodObject<{
1341
+ id: z.ZodString;
1342
+ number: z.ZodString;
1343
+ title: z.ZodString;
1344
+ status: z.ZodObject<{
1345
+ code: z.ZodString;
1346
+ name: z.ZodString;
1347
+ color: z.ZodString;
1348
+ category: z.ZodEnum<{
1349
+ cancelled: "cancelled";
1350
+ open: "open";
1351
+ done: "done";
1352
+ }>;
1353
+ }, z.core.$strip>;
1354
+ closed: z.ZodBoolean;
1355
+ assignees: z.ZodArray<z.ZodObject<{
1356
+ id: z.ZodString;
1357
+ name: z.ZodString;
1358
+ active: z.ZodBoolean;
1359
+ }, z.core.$strip>>;
1360
+ dueOn: z.ZodNullable<z.ZodString>;
1361
+ dueAt: z.ZodNullable<z.ZodString>;
1362
+ overdue: z.ZodBoolean;
1363
+ priority: z.ZodNullable<z.ZodObject<{
1364
+ code: z.ZodString;
1365
+ name: z.ZodString;
1366
+ color: z.ZodString;
1367
+ }, z.core.$strip>>;
1368
+ tags: z.ZodArray<z.ZodObject<{
1369
+ id: z.ZodString;
1370
+ name: z.ZodString;
1371
+ color: z.ZodString;
1372
+ }, z.core.$strip>>;
1373
+ context: z.ZodNullable<z.ZodObject<{
1374
+ type: z.ZodString;
1375
+ available: z.ZodBoolean;
1376
+ label: z.ZodString;
1377
+ href: z.ZodNullable<z.ZodString>;
1378
+ groupLabel: z.ZodNullable<z.ZodString>;
1379
+ }, z.core.$strip>>;
1380
+ parent: z.ZodNullable<z.ZodObject<{
1381
+ id: z.ZodString;
1382
+ number: z.ZodNullable<z.ZodString>;
1383
+ available: z.ZodBoolean;
1384
+ }, z.core.$strip>>;
1385
+ subtasks: z.ZodObject<{
1386
+ closed: z.ZodNumber;
1387
+ total: z.ZodNumber;
1388
+ }, z.core.$strip>;
1389
+ draft: z.ZodBoolean;
1390
+ private: z.ZodBoolean;
1391
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1392
+ ref: z.ZodString;
1393
+ value: z.ZodUnknown;
1394
+ }, z.core.$strip>>>;
1395
+ createdAt: z.ZodString;
1396
+ updatedAt: z.ZodString;
1397
+ }, z.core.$strip>>;
1398
+ subtaskItems: z.ZodArray<z.ZodObject<{
1399
+ id: z.ZodString;
1400
+ number: z.ZodString;
1401
+ title: z.ZodString;
1402
+ status: z.ZodObject<{
1403
+ code: z.ZodString;
1404
+ name: z.ZodString;
1405
+ color: z.ZodString;
1406
+ category: z.ZodEnum<{
1407
+ cancelled: "cancelled";
1408
+ open: "open";
1409
+ done: "done";
1410
+ }>;
1411
+ }, z.core.$strip>;
1412
+ closed: z.ZodBoolean;
1413
+ assignees: z.ZodArray<z.ZodObject<{
1414
+ id: z.ZodString;
1415
+ name: z.ZodString;
1416
+ active: z.ZodBoolean;
1417
+ }, z.core.$strip>>;
1418
+ dueOn: z.ZodNullable<z.ZodString>;
1419
+ dueAt: z.ZodNullable<z.ZodString>;
1420
+ overdue: z.ZodBoolean;
1421
+ priority: z.ZodNullable<z.ZodObject<{
1422
+ code: z.ZodString;
1423
+ name: z.ZodString;
1424
+ color: z.ZodString;
1425
+ }, z.core.$strip>>;
1426
+ tags: z.ZodArray<z.ZodObject<{
1427
+ id: z.ZodString;
1428
+ name: z.ZodString;
1429
+ color: z.ZodString;
1430
+ }, z.core.$strip>>;
1431
+ context: z.ZodNullable<z.ZodObject<{
1432
+ type: z.ZodString;
1433
+ available: z.ZodBoolean;
1434
+ label: z.ZodString;
1435
+ href: z.ZodNullable<z.ZodString>;
1436
+ groupLabel: z.ZodNullable<z.ZodString>;
1437
+ }, z.core.$strip>>;
1438
+ parent: z.ZodNullable<z.ZodObject<{
1439
+ id: z.ZodString;
1440
+ number: z.ZodNullable<z.ZodString>;
1441
+ available: z.ZodBoolean;
1442
+ }, z.core.$strip>>;
1443
+ subtasks: z.ZodObject<{
1444
+ closed: z.ZodNumber;
1445
+ total: z.ZodNumber;
1446
+ }, z.core.$strip>;
1447
+ draft: z.ZodBoolean;
1448
+ private: z.ZodBoolean;
1449
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1450
+ ref: z.ZodString;
1451
+ value: z.ZodUnknown;
1452
+ }, z.core.$strip>>>;
1453
+ createdAt: z.ZodString;
1454
+ updatedAt: z.ZodString;
1455
+ }, z.core.$strip>>;
1456
+ attachmentsCount: z.ZodNumber;
1457
+ commentsCount: z.ZodNumber;
1458
+ reminders: z.ZodArray<z.ZodObject<{
1459
+ id: z.ZodString;
1460
+ mode: z.ZodEnum<{
1461
+ absolute: "absolute";
1462
+ relative: "relative";
1463
+ }>;
1464
+ remindAt: z.ZodString;
1465
+ offsetMinutes: z.ZodNullable<z.ZodNumber>;
1466
+ recipients: z.ZodArray<z.ZodObject<{
1467
+ id: z.ZodString;
1468
+ name: z.ZodString;
1469
+ active: z.ZodBoolean;
1470
+ }, z.core.$strip>>;
1471
+ createdBy: z.ZodNullable<z.ZodObject<{
1472
+ id: z.ZodString;
1473
+ name: z.ZodString;
1474
+ }, z.core.$strip>>;
1475
+ done: z.ZodBoolean;
1476
+ createdAt: z.ZodString;
1477
+ }, z.core.$strip>>;
1478
+ createdBy: z.ZodNullable<z.ZodObject<{
1479
+ id: z.ZodString;
1480
+ name: z.ZodString;
1481
+ }, z.core.$strip>>;
1482
+ publishedAt: z.ZodNullable<z.ZodString>;
1483
+ completedAt: z.ZodNullable<z.ZodString>;
1484
+ permissions: z.ZodObject<{
1485
+ canChange: z.ZodBoolean;
1486
+ canDelete: z.ZodBoolean;
1487
+ canPublish: z.ZodBoolean;
1488
+ }, z.core.$strip>;
1489
+ }, z.core.$strip>;
1490
+ openSubtasks: z.ZodNumber;
1491
+ }, z.core.$strip>;
1492
+ export type TaskStatusChangeResult = z.infer<typeof TaskStatusChangeResultSchema>;
1493
+ /** What deleting a Task did beyond the Task: its sub-tasks became top-level (FR-029). */
1494
+ export declare const TaskDeleteResultSchema: z.ZodObject<{
1495
+ subtasksDetached: z.ZodNumber;
1496
+ }, z.core.$strip>;
1497
+ export type TaskDeleteResult = z.infer<typeof TaskDeleteResultSchema>;
1498
+ export declare const TaskAssigneeOptionSchema: z.ZodObject<{
1499
+ id: z.ZodString;
1500
+ name: z.ZodString;
1501
+ email: z.ZodString;
1502
+ }, z.core.$strip>;
1503
+ export type TaskAssigneeOption = z.infer<typeof TaskAssigneeOptionSchema>;
1504
+ export declare const TaskCommentSchema: z.ZodObject<{
1505
+ id: z.ZodString;
1506
+ author: z.ZodNullable<z.ZodObject<{
1507
+ id: z.ZodString;
1508
+ name: z.ZodString;
1509
+ }, z.core.$strip>>;
1510
+ body: z.ZodString;
1511
+ references: z.ZodArray<z.ZodObject<{
1512
+ type: z.ZodEnum<{
1513
+ product: "product";
1514
+ order: "order";
1515
+ admin_user: "admin_user";
1516
+ quote_request: "quote_request";
1517
+ task: "task";
1518
+ opportunity: "opportunity";
1519
+ project: "project";
1520
+ }>;
1521
+ id: z.ZodString;
1522
+ available: z.ZodBoolean;
1523
+ label: z.ZodNullable<z.ZodString>;
1524
+ url: z.ZodNullable<z.ZodString>;
1525
+ order: z.ZodOptional<z.ZodObject<{
1526
+ status: z.ZodString;
1527
+ total: z.ZodString;
1528
+ currency: z.ZodString;
1529
+ placedAt: z.ZodString;
1530
+ customerName: z.ZodNullable<z.ZodString>;
1531
+ }, z.core.$strip>>;
1532
+ }, z.core.$strip>>;
1533
+ editedAt: z.ZodNullable<z.ZodString>;
1534
+ deletedAt: z.ZodNullable<z.ZodString>;
1535
+ createdAt: z.ZodString;
1536
+ }, z.core.$strip>;
1537
+ export type TaskComment = z.infer<typeof TaskCommentSchema>;
1538
+ export declare const TaskAttachmentSchema: z.ZodObject<{
1539
+ id: z.ZodString;
1540
+ assetId: z.ZodString;
1541
+ fileName: z.ZodString;
1542
+ mimeType: z.ZodString;
1543
+ sizeBytes: z.ZodNumber;
1544
+ url: z.ZodNullable<z.ZodString>;
1545
+ uploadedBy: z.ZodNullable<z.ZodObject<{
1546
+ id: z.ZodString;
1547
+ name: z.ZodString;
1548
+ }, z.core.$strip>>;
1549
+ createdAt: z.ZodString;
1550
+ }, z.core.$strip>;
1551
+ export type TaskAttachment = z.infer<typeof TaskAttachmentSchema>;
1552
+ /** A link target or a context the picker offers. */
1553
+ export declare const TaskLookupOptionSchema: z.ZodObject<{
1554
+ id: z.ZodString;
1555
+ label: z.ZodString;
1556
+ sublabel: z.ZodOptional<z.ZodString>;
1557
+ }, z.core.$strip>;
1558
+ export type TaskLookupOption = z.infer<typeof TaskLookupOptionSchema>;
1559
+ /** `GET /tasks/lookups/contexts` — a context with its groups (a Project with its Stages). */
1560
+ export declare const TaskContextOptionSchema: z.ZodObject<{
1561
+ contextType: z.ZodString;
1562
+ id: z.ZodString;
1563
+ label: z.ZodString;
1564
+ groups: z.ZodArray<z.ZodObject<{
1565
+ id: z.ZodString;
1566
+ label: z.ZodString;
1567
+ }, z.core.$strip>>;
1568
+ }, z.core.$strip>;
1569
+ export type TaskContextOption = z.infer<typeof TaskContextOptionSchema>;
1570
+ /** A status as the workflow page shows it: every language, and how many visible Tasks hold it. */
1571
+ export declare const TaskStatusConfigSchema: z.ZodObject<{
1572
+ code: z.ZodString;
1573
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
1574
+ defaultName: z.ZodString;
1575
+ category: z.ZodEnum<{
1576
+ cancelled: "cancelled";
1577
+ open: "open";
1578
+ done: "done";
1579
+ }>;
1580
+ isInitial: z.ZodBoolean;
1581
+ weight: z.ZodNumber;
1582
+ color: z.ZodString;
1583
+ inUseCount: z.ZodNumber;
1584
+ }, z.core.$strip>;
1585
+ export type TaskStatusConfig = z.infer<typeof TaskStatusConfigSchema>;
1586
+ /** `GET /tasks/workflow`, and the answer of every workflow write. */
1587
+ export declare const TaskWorkflowSchema: z.ZodObject<{
1588
+ statuses: z.ZodArray<z.ZodObject<{
1589
+ code: z.ZodString;
1590
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
1591
+ defaultName: z.ZodString;
1592
+ category: z.ZodEnum<{
1593
+ cancelled: "cancelled";
1594
+ open: "open";
1595
+ done: "done";
1596
+ }>;
1597
+ isInitial: z.ZodBoolean;
1598
+ weight: z.ZodNumber;
1599
+ color: z.ZodString;
1600
+ inUseCount: z.ZodNumber;
1601
+ }, z.core.$strip>>;
1602
+ transitions: z.ZodArray<z.ZodObject<{
1603
+ from: z.ZodString;
1604
+ to: z.ZodString;
1605
+ }, z.core.$strip>>;
1606
+ }, z.core.$strip>;
1607
+ export type TaskWorkflow = z.infer<typeof TaskWorkflowSchema>;
1608
+ export declare const TaskPriorityConfigSchema: z.ZodObject<{
1609
+ code: z.ZodString;
1610
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
1611
+ defaultName: z.ZodString;
1612
+ color: z.ZodString;
1613
+ weight: z.ZodNumber;
1614
+ inUseCount: z.ZodNumber;
1615
+ }, z.core.$strip>;
1616
+ export type TaskPriorityConfig = z.infer<typeof TaskPriorityConfigSchema>;
1617
+ export declare const TaskTagSchema: z.ZodObject<{
1618
+ id: z.ZodString;
1619
+ name: z.ZodString;
1620
+ color: z.ZodString;
1621
+ usageCount: z.ZodNumber;
1622
+ }, z.core.$strip>;
1623
+ export type TaskTag = z.infer<typeof TaskTagSchema>;
1624
+ export declare const TaskBoardCardFieldSchema: z.ZodObject<{
1625
+ ref: z.ZodString;
1626
+ source: z.ZodEnum<{
1627
+ custom: "custom";
1628
+ builtin: "builtin";
1629
+ }>;
1630
+ key: z.ZodString;
1631
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1632
+ labelDefault: z.ZodNullable<z.ZodString>;
1633
+ }, z.core.$strip>;
1634
+ export type TaskBoardCardField = z.infer<typeof TaskBoardCardFieldSchema>;
1635
+ export declare const TaskBoardCardConfigSchema: z.ZodObject<{
1636
+ fields: z.ZodArray<z.ZodObject<{
1637
+ ref: z.ZodString;
1638
+ source: z.ZodEnum<{
1639
+ custom: "custom";
1640
+ builtin: "builtin";
1641
+ }>;
1642
+ key: z.ZodString;
1643
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1644
+ labelDefault: z.ZodNullable<z.ZodString>;
1645
+ }, z.core.$strip>>;
1646
+ available: z.ZodArray<z.ZodObject<{
1647
+ ref: z.ZodString;
1648
+ source: z.ZodEnum<{
1649
+ custom: "custom";
1650
+ builtin: "builtin";
1651
+ }>;
1652
+ key: z.ZodString;
1653
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1654
+ labelDefault: z.ZodNullable<z.ZodString>;
1655
+ }, z.core.$strip>>;
1656
+ maxFields: z.ZodNumber;
1657
+ }, z.core.$strip>;
1658
+ export type TaskBoardCardConfig = z.infer<typeof TaskBoardCardConfigSchema>;
1659
+ export declare const TaskTimeZoneSchema: z.ZodObject<{
1660
+ timeZone: z.ZodString;
1661
+ }, z.core.$strip>;
1662
+ export type TaskTimeZone = z.infer<typeof TaskTimeZoneSchema>;
1663
+ /** `GET /tasks/me/digest` — `null` while the digest is off (the default, Q3 = A). */
1664
+ export declare const TaskDigestSubscriptionSchema: z.ZodNullable<z.ZodObject<{
1665
+ hour: z.ZodNumber;
1666
+ }, z.core.$strip>>;
1667
+ export type TaskDigestSubscription = z.infer<typeof TaskDigestSubscriptionSchema>;
1668
+ export declare const TaskDetailResponseSchema: z.ZodObject<{
1669
+ data: z.ZodObject<{
1670
+ id: z.ZodString;
1671
+ number: z.ZodString;
1672
+ title: z.ZodString;
1673
+ status: z.ZodObject<{
1674
+ code: z.ZodString;
1675
+ name: z.ZodString;
1676
+ color: z.ZodString;
1677
+ category: z.ZodEnum<{
1678
+ cancelled: "cancelled";
1679
+ open: "open";
1680
+ done: "done";
1681
+ }>;
1682
+ }, z.core.$strip>;
1683
+ closed: z.ZodBoolean;
1684
+ assignees: z.ZodArray<z.ZodObject<{
1685
+ id: z.ZodString;
1686
+ name: z.ZodString;
1687
+ active: z.ZodBoolean;
1688
+ }, z.core.$strip>>;
1689
+ dueOn: z.ZodNullable<z.ZodString>;
1690
+ dueAt: z.ZodNullable<z.ZodString>;
1691
+ overdue: z.ZodBoolean;
1692
+ priority: z.ZodNullable<z.ZodObject<{
1693
+ code: z.ZodString;
1694
+ name: z.ZodString;
1695
+ color: z.ZodString;
1696
+ }, z.core.$strip>>;
1697
+ tags: z.ZodArray<z.ZodObject<{
1698
+ id: z.ZodString;
1699
+ name: z.ZodString;
1700
+ color: z.ZodString;
1701
+ }, z.core.$strip>>;
1702
+ parent: z.ZodNullable<z.ZodObject<{
1703
+ id: z.ZodString;
1704
+ number: z.ZodNullable<z.ZodString>;
1705
+ available: z.ZodBoolean;
1706
+ }, z.core.$strip>>;
1707
+ subtasks: z.ZodObject<{
1708
+ closed: z.ZodNumber;
1709
+ total: z.ZodNumber;
1710
+ }, z.core.$strip>;
1711
+ draft: z.ZodBoolean;
1712
+ private: z.ZodBoolean;
1713
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1714
+ ref: z.ZodString;
1715
+ value: z.ZodUnknown;
1716
+ }, z.core.$strip>>>;
1717
+ createdAt: z.ZodString;
1718
+ updatedAt: z.ZodString;
1719
+ description: z.ZodString;
1720
+ references: z.ZodArray<z.ZodObject<{
1721
+ type: z.ZodEnum<{
1722
+ product: "product";
1723
+ order: "order";
1724
+ admin_user: "admin_user";
1725
+ quote_request: "quote_request";
1726
+ task: "task";
1727
+ opportunity: "opportunity";
1728
+ project: "project";
1729
+ }>;
1730
+ id: z.ZodString;
1731
+ available: z.ZodBoolean;
1732
+ label: z.ZodNullable<z.ZodString>;
1733
+ url: z.ZodNullable<z.ZodString>;
1734
+ order: z.ZodOptional<z.ZodObject<{
1735
+ status: z.ZodString;
1736
+ total: z.ZodString;
1737
+ currency: z.ZodString;
1738
+ placedAt: z.ZodString;
1739
+ customerName: z.ZodNullable<z.ZodString>;
1740
+ }, z.core.$strip>>;
1741
+ }, z.core.$strip>>;
1742
+ context: z.ZodNullable<z.ZodObject<{
1743
+ type: z.ZodString;
1744
+ available: z.ZodBoolean;
1745
+ label: z.ZodString;
1746
+ href: z.ZodNullable<z.ZodString>;
1747
+ groupLabel: z.ZodNullable<z.ZodString>;
1748
+ id: z.ZodString;
1749
+ groupId: z.ZodNullable<z.ZodString>;
1750
+ canChangeTasks: z.ZodBoolean;
1751
+ }, z.core.$strip>>;
1752
+ contextNote: z.ZodNullable<z.ZodString>;
1753
+ startOn: z.ZodNullable<z.ZodString>;
1754
+ customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1755
+ links: z.ZodArray<z.ZodObject<{
1756
+ id: z.ZodString;
1757
+ kind: z.ZodEnum<{
1758
+ order: "order";
1759
+ quote_request: "quote_request";
1760
+ opportunity: "opportunity";
1761
+ }>;
1762
+ recordId: z.ZodString;
1763
+ available: z.ZodBoolean;
1764
+ label: z.ZodNullable<z.ZodString>;
1765
+ url: z.ZodNullable<z.ZodString>;
1766
+ }, z.core.$strip>>;
1767
+ relatedTasks: z.ZodArray<z.ZodObject<{
1768
+ id: z.ZodString;
1769
+ number: z.ZodString;
1770
+ title: z.ZodString;
1771
+ status: z.ZodObject<{
1772
+ code: z.ZodString;
1773
+ name: z.ZodString;
1774
+ color: z.ZodString;
1775
+ category: z.ZodEnum<{
1776
+ cancelled: "cancelled";
1777
+ open: "open";
1778
+ done: "done";
1779
+ }>;
1780
+ }, z.core.$strip>;
1781
+ closed: z.ZodBoolean;
1782
+ assignees: z.ZodArray<z.ZodObject<{
1783
+ id: z.ZodString;
1784
+ name: z.ZodString;
1785
+ active: z.ZodBoolean;
1786
+ }, z.core.$strip>>;
1787
+ dueOn: z.ZodNullable<z.ZodString>;
1788
+ dueAt: z.ZodNullable<z.ZodString>;
1789
+ overdue: z.ZodBoolean;
1790
+ priority: z.ZodNullable<z.ZodObject<{
1791
+ code: z.ZodString;
1792
+ name: z.ZodString;
1793
+ color: z.ZodString;
1794
+ }, z.core.$strip>>;
1795
+ tags: z.ZodArray<z.ZodObject<{
1796
+ id: z.ZodString;
1797
+ name: z.ZodString;
1798
+ color: z.ZodString;
1799
+ }, z.core.$strip>>;
1800
+ context: z.ZodNullable<z.ZodObject<{
1801
+ type: z.ZodString;
1802
+ available: z.ZodBoolean;
1803
+ label: z.ZodString;
1804
+ href: z.ZodNullable<z.ZodString>;
1805
+ groupLabel: z.ZodNullable<z.ZodString>;
1806
+ }, z.core.$strip>>;
1807
+ parent: z.ZodNullable<z.ZodObject<{
1808
+ id: z.ZodString;
1809
+ number: z.ZodNullable<z.ZodString>;
1810
+ available: z.ZodBoolean;
1811
+ }, z.core.$strip>>;
1812
+ subtasks: z.ZodObject<{
1813
+ closed: z.ZodNumber;
1814
+ total: z.ZodNumber;
1815
+ }, z.core.$strip>;
1816
+ draft: z.ZodBoolean;
1817
+ private: z.ZodBoolean;
1818
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1819
+ ref: z.ZodString;
1820
+ value: z.ZodUnknown;
1821
+ }, z.core.$strip>>>;
1822
+ createdAt: z.ZodString;
1823
+ updatedAt: z.ZodString;
1824
+ }, z.core.$strip>>;
1825
+ subtaskItems: z.ZodArray<z.ZodObject<{
1826
+ id: z.ZodString;
1827
+ number: z.ZodString;
1828
+ title: z.ZodString;
1829
+ status: z.ZodObject<{
1830
+ code: z.ZodString;
1831
+ name: z.ZodString;
1832
+ color: z.ZodString;
1833
+ category: z.ZodEnum<{
1834
+ cancelled: "cancelled";
1835
+ open: "open";
1836
+ done: "done";
1837
+ }>;
1838
+ }, z.core.$strip>;
1839
+ closed: z.ZodBoolean;
1840
+ assignees: z.ZodArray<z.ZodObject<{
1841
+ id: z.ZodString;
1842
+ name: z.ZodString;
1843
+ active: z.ZodBoolean;
1844
+ }, z.core.$strip>>;
1845
+ dueOn: z.ZodNullable<z.ZodString>;
1846
+ dueAt: z.ZodNullable<z.ZodString>;
1847
+ overdue: z.ZodBoolean;
1848
+ priority: z.ZodNullable<z.ZodObject<{
1849
+ code: z.ZodString;
1850
+ name: z.ZodString;
1851
+ color: z.ZodString;
1852
+ }, z.core.$strip>>;
1853
+ tags: z.ZodArray<z.ZodObject<{
1854
+ id: z.ZodString;
1855
+ name: z.ZodString;
1856
+ color: z.ZodString;
1857
+ }, z.core.$strip>>;
1858
+ context: z.ZodNullable<z.ZodObject<{
1859
+ type: z.ZodString;
1860
+ available: z.ZodBoolean;
1861
+ label: z.ZodString;
1862
+ href: z.ZodNullable<z.ZodString>;
1863
+ groupLabel: z.ZodNullable<z.ZodString>;
1864
+ }, z.core.$strip>>;
1865
+ parent: z.ZodNullable<z.ZodObject<{
1866
+ id: z.ZodString;
1867
+ number: z.ZodNullable<z.ZodString>;
1868
+ available: z.ZodBoolean;
1869
+ }, z.core.$strip>>;
1870
+ subtasks: z.ZodObject<{
1871
+ closed: z.ZodNumber;
1872
+ total: z.ZodNumber;
1873
+ }, z.core.$strip>;
1874
+ draft: z.ZodBoolean;
1875
+ private: z.ZodBoolean;
1876
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1877
+ ref: z.ZodString;
1878
+ value: z.ZodUnknown;
1879
+ }, z.core.$strip>>>;
1880
+ createdAt: z.ZodString;
1881
+ updatedAt: z.ZodString;
1882
+ }, z.core.$strip>>;
1883
+ attachmentsCount: z.ZodNumber;
1884
+ commentsCount: z.ZodNumber;
1885
+ reminders: z.ZodArray<z.ZodObject<{
1886
+ id: z.ZodString;
1887
+ mode: z.ZodEnum<{
1888
+ absolute: "absolute";
1889
+ relative: "relative";
1890
+ }>;
1891
+ remindAt: z.ZodString;
1892
+ offsetMinutes: z.ZodNullable<z.ZodNumber>;
1893
+ recipients: z.ZodArray<z.ZodObject<{
1894
+ id: z.ZodString;
1895
+ name: z.ZodString;
1896
+ active: z.ZodBoolean;
1897
+ }, z.core.$strip>>;
1898
+ createdBy: z.ZodNullable<z.ZodObject<{
1899
+ id: z.ZodString;
1900
+ name: z.ZodString;
1901
+ }, z.core.$strip>>;
1902
+ done: z.ZodBoolean;
1903
+ createdAt: z.ZodString;
1904
+ }, z.core.$strip>>;
1905
+ createdBy: z.ZodNullable<z.ZodObject<{
1906
+ id: z.ZodString;
1907
+ name: z.ZodString;
1908
+ }, z.core.$strip>>;
1909
+ publishedAt: z.ZodNullable<z.ZodString>;
1910
+ completedAt: z.ZodNullable<z.ZodString>;
1911
+ permissions: z.ZodObject<{
1912
+ canChange: z.ZodBoolean;
1913
+ canDelete: z.ZodBoolean;
1914
+ canPublish: z.ZodBoolean;
1915
+ }, z.core.$strip>;
1916
+ }, z.core.$strip>;
1917
+ }, z.core.$strip>;
1918
+ /** `GET /tasks/mine` — the caller's open Tasks, by due date, undated last; at most {@link TASK_MINE_MAX}. */
1919
+ export declare const MyTasksResponseSchema: z.ZodObject<{
1920
+ data: z.ZodArray<z.ZodObject<{
1921
+ id: z.ZodString;
1922
+ number: z.ZodString;
1923
+ title: z.ZodString;
1924
+ status: z.ZodObject<{
1925
+ code: z.ZodString;
1926
+ name: z.ZodString;
1927
+ color: z.ZodString;
1928
+ category: z.ZodEnum<{
1929
+ cancelled: "cancelled";
1930
+ open: "open";
1931
+ done: "done";
1932
+ }>;
1933
+ }, z.core.$strip>;
1934
+ closed: z.ZodBoolean;
1935
+ assignees: z.ZodArray<z.ZodObject<{
1936
+ id: z.ZodString;
1937
+ name: z.ZodString;
1938
+ active: z.ZodBoolean;
1939
+ }, z.core.$strip>>;
1940
+ dueOn: z.ZodNullable<z.ZodString>;
1941
+ dueAt: z.ZodNullable<z.ZodString>;
1942
+ overdue: z.ZodBoolean;
1943
+ priority: z.ZodNullable<z.ZodObject<{
1944
+ code: z.ZodString;
1945
+ name: z.ZodString;
1946
+ color: z.ZodString;
1947
+ }, z.core.$strip>>;
1948
+ tags: z.ZodArray<z.ZodObject<{
1949
+ id: z.ZodString;
1950
+ name: z.ZodString;
1951
+ color: z.ZodString;
1952
+ }, z.core.$strip>>;
1953
+ context: z.ZodNullable<z.ZodObject<{
1954
+ type: z.ZodString;
1955
+ available: z.ZodBoolean;
1956
+ label: z.ZodString;
1957
+ href: z.ZodNullable<z.ZodString>;
1958
+ groupLabel: z.ZodNullable<z.ZodString>;
1959
+ }, z.core.$strip>>;
1960
+ parent: z.ZodNullable<z.ZodObject<{
1961
+ id: z.ZodString;
1962
+ number: z.ZodNullable<z.ZodString>;
1963
+ available: z.ZodBoolean;
1964
+ }, z.core.$strip>>;
1965
+ subtasks: z.ZodObject<{
1966
+ closed: z.ZodNumber;
1967
+ total: z.ZodNumber;
1968
+ }, z.core.$strip>;
1969
+ draft: z.ZodBoolean;
1970
+ private: z.ZodBoolean;
1971
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1972
+ ref: z.ZodString;
1973
+ value: z.ZodUnknown;
1974
+ }, z.core.$strip>>>;
1975
+ createdAt: z.ZodString;
1976
+ updatedAt: z.ZodString;
1977
+ }, z.core.$strip>>;
1978
+ }, z.core.$strip>;
1979
+ export declare const TaskBoardResponseSchema: z.ZodObject<{
1980
+ data: z.ZodObject<{
1981
+ columns: z.ZodArray<z.ZodObject<{
1982
+ status: z.ZodObject<{
1983
+ code: z.ZodString;
1984
+ name: z.ZodString;
1985
+ color: z.ZodString;
1986
+ category: z.ZodEnum<{
1987
+ cancelled: "cancelled";
1988
+ open: "open";
1989
+ done: "done";
1990
+ }>;
1991
+ }, z.core.$strip>;
1992
+ count: z.ZodNumber;
1993
+ items: z.ZodArray<z.ZodObject<{
1994
+ id: z.ZodString;
1995
+ number: z.ZodString;
1996
+ title: z.ZodString;
1997
+ status: z.ZodObject<{
1998
+ code: z.ZodString;
1999
+ name: z.ZodString;
2000
+ color: z.ZodString;
2001
+ category: z.ZodEnum<{
2002
+ cancelled: "cancelled";
2003
+ open: "open";
2004
+ done: "done";
2005
+ }>;
2006
+ }, z.core.$strip>;
2007
+ closed: z.ZodBoolean;
2008
+ assignees: z.ZodArray<z.ZodObject<{
2009
+ id: z.ZodString;
2010
+ name: z.ZodString;
2011
+ active: z.ZodBoolean;
2012
+ }, z.core.$strip>>;
2013
+ dueOn: z.ZodNullable<z.ZodString>;
2014
+ dueAt: z.ZodNullable<z.ZodString>;
2015
+ overdue: z.ZodBoolean;
2016
+ priority: z.ZodNullable<z.ZodObject<{
2017
+ code: z.ZodString;
2018
+ name: z.ZodString;
2019
+ color: z.ZodString;
2020
+ }, z.core.$strip>>;
2021
+ tags: z.ZodArray<z.ZodObject<{
2022
+ id: z.ZodString;
2023
+ name: z.ZodString;
2024
+ color: z.ZodString;
2025
+ }, z.core.$strip>>;
2026
+ context: z.ZodNullable<z.ZodObject<{
2027
+ type: z.ZodString;
2028
+ available: z.ZodBoolean;
2029
+ label: z.ZodString;
2030
+ href: z.ZodNullable<z.ZodString>;
2031
+ groupLabel: z.ZodNullable<z.ZodString>;
2032
+ }, z.core.$strip>>;
2033
+ parent: z.ZodNullable<z.ZodObject<{
2034
+ id: z.ZodString;
2035
+ number: z.ZodNullable<z.ZodString>;
2036
+ available: z.ZodBoolean;
2037
+ }, z.core.$strip>>;
2038
+ subtasks: z.ZodObject<{
2039
+ closed: z.ZodNumber;
2040
+ total: z.ZodNumber;
2041
+ }, z.core.$strip>;
2042
+ draft: z.ZodBoolean;
2043
+ private: z.ZodBoolean;
2044
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2045
+ ref: z.ZodString;
2046
+ value: z.ZodUnknown;
2047
+ }, z.core.$strip>>>;
2048
+ createdAt: z.ZodString;
2049
+ updatedAt: z.ZodString;
2050
+ }, z.core.$strip>>;
2051
+ hasMore: z.ZodBoolean;
2052
+ }, z.core.$strip>>;
2053
+ }, z.core.$strip>;
2054
+ }, z.core.$strip>;
2055
+ export declare const TaskStatusChangeResponseSchema: z.ZodObject<{
2056
+ data: z.ZodObject<{
2057
+ task: z.ZodObject<{
2058
+ id: z.ZodString;
2059
+ number: z.ZodString;
2060
+ title: z.ZodString;
2061
+ status: z.ZodObject<{
2062
+ code: z.ZodString;
2063
+ name: z.ZodString;
2064
+ color: z.ZodString;
2065
+ category: z.ZodEnum<{
2066
+ cancelled: "cancelled";
2067
+ open: "open";
2068
+ done: "done";
2069
+ }>;
2070
+ }, z.core.$strip>;
2071
+ closed: z.ZodBoolean;
2072
+ assignees: z.ZodArray<z.ZodObject<{
2073
+ id: z.ZodString;
2074
+ name: z.ZodString;
2075
+ active: z.ZodBoolean;
2076
+ }, z.core.$strip>>;
2077
+ dueOn: z.ZodNullable<z.ZodString>;
2078
+ dueAt: z.ZodNullable<z.ZodString>;
2079
+ overdue: z.ZodBoolean;
2080
+ priority: z.ZodNullable<z.ZodObject<{
2081
+ code: z.ZodString;
2082
+ name: z.ZodString;
2083
+ color: z.ZodString;
2084
+ }, z.core.$strip>>;
2085
+ tags: z.ZodArray<z.ZodObject<{
2086
+ id: z.ZodString;
2087
+ name: z.ZodString;
2088
+ color: z.ZodString;
2089
+ }, z.core.$strip>>;
2090
+ parent: z.ZodNullable<z.ZodObject<{
2091
+ id: z.ZodString;
2092
+ number: z.ZodNullable<z.ZodString>;
2093
+ available: z.ZodBoolean;
2094
+ }, z.core.$strip>>;
2095
+ subtasks: z.ZodObject<{
2096
+ closed: z.ZodNumber;
2097
+ total: z.ZodNumber;
2098
+ }, z.core.$strip>;
2099
+ draft: z.ZodBoolean;
2100
+ private: z.ZodBoolean;
2101
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2102
+ ref: z.ZodString;
2103
+ value: z.ZodUnknown;
2104
+ }, z.core.$strip>>>;
2105
+ createdAt: z.ZodString;
2106
+ updatedAt: z.ZodString;
2107
+ description: z.ZodString;
2108
+ references: z.ZodArray<z.ZodObject<{
2109
+ type: z.ZodEnum<{
2110
+ product: "product";
2111
+ order: "order";
2112
+ admin_user: "admin_user";
2113
+ quote_request: "quote_request";
2114
+ task: "task";
2115
+ opportunity: "opportunity";
2116
+ project: "project";
2117
+ }>;
2118
+ id: z.ZodString;
2119
+ available: z.ZodBoolean;
2120
+ label: z.ZodNullable<z.ZodString>;
2121
+ url: z.ZodNullable<z.ZodString>;
2122
+ order: z.ZodOptional<z.ZodObject<{
2123
+ status: z.ZodString;
2124
+ total: z.ZodString;
2125
+ currency: z.ZodString;
2126
+ placedAt: z.ZodString;
2127
+ customerName: z.ZodNullable<z.ZodString>;
2128
+ }, z.core.$strip>>;
2129
+ }, z.core.$strip>>;
2130
+ context: z.ZodNullable<z.ZodObject<{
2131
+ type: z.ZodString;
2132
+ available: z.ZodBoolean;
2133
+ label: z.ZodString;
2134
+ href: z.ZodNullable<z.ZodString>;
2135
+ groupLabel: z.ZodNullable<z.ZodString>;
2136
+ id: z.ZodString;
2137
+ groupId: z.ZodNullable<z.ZodString>;
2138
+ canChangeTasks: z.ZodBoolean;
2139
+ }, z.core.$strip>>;
2140
+ contextNote: z.ZodNullable<z.ZodString>;
2141
+ startOn: z.ZodNullable<z.ZodString>;
2142
+ customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2143
+ links: z.ZodArray<z.ZodObject<{
2144
+ id: z.ZodString;
2145
+ kind: z.ZodEnum<{
2146
+ order: "order";
2147
+ quote_request: "quote_request";
2148
+ opportunity: "opportunity";
2149
+ }>;
2150
+ recordId: z.ZodString;
2151
+ available: z.ZodBoolean;
2152
+ label: z.ZodNullable<z.ZodString>;
2153
+ url: z.ZodNullable<z.ZodString>;
2154
+ }, z.core.$strip>>;
2155
+ relatedTasks: z.ZodArray<z.ZodObject<{
2156
+ id: z.ZodString;
2157
+ number: z.ZodString;
2158
+ title: z.ZodString;
2159
+ status: z.ZodObject<{
2160
+ code: z.ZodString;
2161
+ name: z.ZodString;
2162
+ color: z.ZodString;
2163
+ category: z.ZodEnum<{
2164
+ cancelled: "cancelled";
2165
+ open: "open";
2166
+ done: "done";
2167
+ }>;
2168
+ }, z.core.$strip>;
2169
+ closed: z.ZodBoolean;
2170
+ assignees: z.ZodArray<z.ZodObject<{
2171
+ id: z.ZodString;
2172
+ name: z.ZodString;
2173
+ active: z.ZodBoolean;
2174
+ }, z.core.$strip>>;
2175
+ dueOn: z.ZodNullable<z.ZodString>;
2176
+ dueAt: z.ZodNullable<z.ZodString>;
2177
+ overdue: z.ZodBoolean;
2178
+ priority: z.ZodNullable<z.ZodObject<{
2179
+ code: z.ZodString;
2180
+ name: z.ZodString;
2181
+ color: z.ZodString;
2182
+ }, z.core.$strip>>;
2183
+ tags: z.ZodArray<z.ZodObject<{
2184
+ id: z.ZodString;
2185
+ name: z.ZodString;
2186
+ color: z.ZodString;
2187
+ }, z.core.$strip>>;
2188
+ context: z.ZodNullable<z.ZodObject<{
2189
+ type: z.ZodString;
2190
+ available: z.ZodBoolean;
2191
+ label: z.ZodString;
2192
+ href: z.ZodNullable<z.ZodString>;
2193
+ groupLabel: z.ZodNullable<z.ZodString>;
2194
+ }, z.core.$strip>>;
2195
+ parent: z.ZodNullable<z.ZodObject<{
2196
+ id: z.ZodString;
2197
+ number: z.ZodNullable<z.ZodString>;
2198
+ available: z.ZodBoolean;
2199
+ }, z.core.$strip>>;
2200
+ subtasks: z.ZodObject<{
2201
+ closed: z.ZodNumber;
2202
+ total: z.ZodNumber;
2203
+ }, z.core.$strip>;
2204
+ draft: z.ZodBoolean;
2205
+ private: z.ZodBoolean;
2206
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2207
+ ref: z.ZodString;
2208
+ value: z.ZodUnknown;
2209
+ }, z.core.$strip>>>;
2210
+ createdAt: z.ZodString;
2211
+ updatedAt: z.ZodString;
2212
+ }, z.core.$strip>>;
2213
+ subtaskItems: z.ZodArray<z.ZodObject<{
2214
+ id: z.ZodString;
2215
+ number: z.ZodString;
2216
+ title: z.ZodString;
2217
+ status: z.ZodObject<{
2218
+ code: z.ZodString;
2219
+ name: z.ZodString;
2220
+ color: z.ZodString;
2221
+ category: z.ZodEnum<{
2222
+ cancelled: "cancelled";
2223
+ open: "open";
2224
+ done: "done";
2225
+ }>;
2226
+ }, z.core.$strip>;
2227
+ closed: z.ZodBoolean;
2228
+ assignees: z.ZodArray<z.ZodObject<{
2229
+ id: z.ZodString;
2230
+ name: z.ZodString;
2231
+ active: z.ZodBoolean;
2232
+ }, z.core.$strip>>;
2233
+ dueOn: z.ZodNullable<z.ZodString>;
2234
+ dueAt: z.ZodNullable<z.ZodString>;
2235
+ overdue: z.ZodBoolean;
2236
+ priority: z.ZodNullable<z.ZodObject<{
2237
+ code: z.ZodString;
2238
+ name: z.ZodString;
2239
+ color: z.ZodString;
2240
+ }, z.core.$strip>>;
2241
+ tags: z.ZodArray<z.ZodObject<{
2242
+ id: z.ZodString;
2243
+ name: z.ZodString;
2244
+ color: z.ZodString;
2245
+ }, z.core.$strip>>;
2246
+ context: z.ZodNullable<z.ZodObject<{
2247
+ type: z.ZodString;
2248
+ available: z.ZodBoolean;
2249
+ label: z.ZodString;
2250
+ href: z.ZodNullable<z.ZodString>;
2251
+ groupLabel: z.ZodNullable<z.ZodString>;
2252
+ }, z.core.$strip>>;
2253
+ parent: z.ZodNullable<z.ZodObject<{
2254
+ id: z.ZodString;
2255
+ number: z.ZodNullable<z.ZodString>;
2256
+ available: z.ZodBoolean;
2257
+ }, z.core.$strip>>;
2258
+ subtasks: z.ZodObject<{
2259
+ closed: z.ZodNumber;
2260
+ total: z.ZodNumber;
2261
+ }, z.core.$strip>;
2262
+ draft: z.ZodBoolean;
2263
+ private: z.ZodBoolean;
2264
+ cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2265
+ ref: z.ZodString;
2266
+ value: z.ZodUnknown;
2267
+ }, z.core.$strip>>>;
2268
+ createdAt: z.ZodString;
2269
+ updatedAt: z.ZodString;
2270
+ }, z.core.$strip>>;
2271
+ attachmentsCount: z.ZodNumber;
2272
+ commentsCount: z.ZodNumber;
2273
+ reminders: z.ZodArray<z.ZodObject<{
2274
+ id: z.ZodString;
2275
+ mode: z.ZodEnum<{
2276
+ absolute: "absolute";
2277
+ relative: "relative";
2278
+ }>;
2279
+ remindAt: z.ZodString;
2280
+ offsetMinutes: z.ZodNullable<z.ZodNumber>;
2281
+ recipients: z.ZodArray<z.ZodObject<{
2282
+ id: z.ZodString;
2283
+ name: z.ZodString;
2284
+ active: z.ZodBoolean;
2285
+ }, z.core.$strip>>;
2286
+ createdBy: z.ZodNullable<z.ZodObject<{
2287
+ id: z.ZodString;
2288
+ name: z.ZodString;
2289
+ }, z.core.$strip>>;
2290
+ done: z.ZodBoolean;
2291
+ createdAt: z.ZodString;
2292
+ }, z.core.$strip>>;
2293
+ createdBy: z.ZodNullable<z.ZodObject<{
2294
+ id: z.ZodString;
2295
+ name: z.ZodString;
2296
+ }, z.core.$strip>>;
2297
+ publishedAt: z.ZodNullable<z.ZodString>;
2298
+ completedAt: z.ZodNullable<z.ZodString>;
2299
+ permissions: z.ZodObject<{
2300
+ canChange: z.ZodBoolean;
2301
+ canDelete: z.ZodBoolean;
2302
+ canPublish: z.ZodBoolean;
2303
+ }, z.core.$strip>;
2304
+ }, z.core.$strip>;
2305
+ openSubtasks: z.ZodNumber;
2306
+ }, z.core.$strip>;
2307
+ }, z.core.$strip>;
2308
+ export declare const TaskAssigneeLookupResponseSchema: z.ZodObject<{
2309
+ data: z.ZodArray<z.ZodObject<{
2310
+ id: z.ZodString;
2311
+ name: z.ZodString;
2312
+ email: z.ZodString;
2313
+ }, z.core.$strip>>;
2314
+ }, z.core.$strip>;
2315
+ export declare const TaskMentionableLookupResponseSchema: z.ZodObject<{
2316
+ data: z.ZodArray<z.ZodObject<{
2317
+ id: z.ZodString;
2318
+ name: z.ZodString;
2319
+ email: z.ZodString;
2320
+ }, z.core.$strip>>;
2321
+ }, z.core.$strip>;
2322
+ export declare const TaskRecordLookupResponseSchema: z.ZodObject<{
2323
+ data: z.ZodArray<z.ZodObject<{
2324
+ id: z.ZodString;
2325
+ label: z.ZodString;
2326
+ sublabel: z.ZodOptional<z.ZodString>;
2327
+ }, z.core.$strip>>;
2328
+ }, z.core.$strip>;
2329
+ export declare const TaskContextLookupResponseSchema: z.ZodObject<{
2330
+ data: z.ZodArray<z.ZodObject<{
2331
+ contextType: z.ZodString;
2332
+ id: z.ZodString;
2333
+ label: z.ZodString;
2334
+ groups: z.ZodArray<z.ZodObject<{
2335
+ id: z.ZodString;
2336
+ label: z.ZodString;
2337
+ }, z.core.$strip>>;
2338
+ }, z.core.$strip>>;
2339
+ }, z.core.$strip>;
2340
+ export declare const TaskCommentResponseSchema: z.ZodObject<{
2341
+ data: z.ZodObject<{
2342
+ id: z.ZodString;
2343
+ author: z.ZodNullable<z.ZodObject<{
2344
+ id: z.ZodString;
2345
+ name: z.ZodString;
2346
+ }, z.core.$strip>>;
2347
+ body: z.ZodString;
2348
+ references: z.ZodArray<z.ZodObject<{
2349
+ type: z.ZodEnum<{
2350
+ product: "product";
2351
+ order: "order";
2352
+ admin_user: "admin_user";
2353
+ quote_request: "quote_request";
2354
+ task: "task";
2355
+ opportunity: "opportunity";
2356
+ project: "project";
2357
+ }>;
2358
+ id: z.ZodString;
2359
+ available: z.ZodBoolean;
2360
+ label: z.ZodNullable<z.ZodString>;
2361
+ url: z.ZodNullable<z.ZodString>;
2362
+ order: z.ZodOptional<z.ZodObject<{
2363
+ status: z.ZodString;
2364
+ total: z.ZodString;
2365
+ currency: z.ZodString;
2366
+ placedAt: z.ZodString;
2367
+ customerName: z.ZodNullable<z.ZodString>;
2368
+ }, z.core.$strip>>;
2369
+ }, z.core.$strip>>;
2370
+ editedAt: z.ZodNullable<z.ZodString>;
2371
+ deletedAt: z.ZodNullable<z.ZodString>;
2372
+ createdAt: z.ZodString;
2373
+ }, z.core.$strip>;
2374
+ }, z.core.$strip>;
2375
+ export declare const TaskCommentListResponseSchema: z.ZodObject<{
2376
+ data: z.ZodArray<z.ZodObject<{
2377
+ id: z.ZodString;
2378
+ author: z.ZodNullable<z.ZodObject<{
2379
+ id: z.ZodString;
2380
+ name: z.ZodString;
2381
+ }, z.core.$strip>>;
2382
+ body: z.ZodString;
2383
+ references: z.ZodArray<z.ZodObject<{
2384
+ type: z.ZodEnum<{
2385
+ product: "product";
2386
+ order: "order";
2387
+ admin_user: "admin_user";
2388
+ quote_request: "quote_request";
2389
+ task: "task";
2390
+ opportunity: "opportunity";
2391
+ project: "project";
2392
+ }>;
2393
+ id: z.ZodString;
2394
+ available: z.ZodBoolean;
2395
+ label: z.ZodNullable<z.ZodString>;
2396
+ url: z.ZodNullable<z.ZodString>;
2397
+ order: z.ZodOptional<z.ZodObject<{
2398
+ status: z.ZodString;
2399
+ total: z.ZodString;
2400
+ currency: z.ZodString;
2401
+ placedAt: z.ZodString;
2402
+ customerName: z.ZodNullable<z.ZodString>;
2403
+ }, z.core.$strip>>;
2404
+ }, z.core.$strip>>;
2405
+ editedAt: z.ZodNullable<z.ZodString>;
2406
+ deletedAt: z.ZodNullable<z.ZodString>;
2407
+ createdAt: z.ZodString;
2408
+ }, z.core.$strip>>;
2409
+ }, z.core.$strip>;
2410
+ export declare const TaskAttachmentResponseSchema: z.ZodObject<{
2411
+ data: z.ZodObject<{
2412
+ id: z.ZodString;
2413
+ assetId: z.ZodString;
2414
+ fileName: z.ZodString;
2415
+ mimeType: z.ZodString;
2416
+ sizeBytes: z.ZodNumber;
2417
+ url: z.ZodNullable<z.ZodString>;
2418
+ uploadedBy: z.ZodNullable<z.ZodObject<{
2419
+ id: z.ZodString;
2420
+ name: z.ZodString;
2421
+ }, z.core.$strip>>;
2422
+ createdAt: z.ZodString;
2423
+ }, z.core.$strip>;
2424
+ }, z.core.$strip>;
2425
+ export declare const TaskAttachmentListResponseSchema: z.ZodObject<{
2426
+ data: z.ZodArray<z.ZodObject<{
2427
+ id: z.ZodString;
2428
+ assetId: z.ZodString;
2429
+ fileName: z.ZodString;
2430
+ mimeType: z.ZodString;
2431
+ sizeBytes: z.ZodNumber;
2432
+ url: z.ZodNullable<z.ZodString>;
2433
+ uploadedBy: z.ZodNullable<z.ZodObject<{
2434
+ id: z.ZodString;
2435
+ name: z.ZodString;
2436
+ }, z.core.$strip>>;
2437
+ createdAt: z.ZodString;
2438
+ }, z.core.$strip>>;
2439
+ }, z.core.$strip>;
2440
+ export declare const TaskLinkResponseSchema: z.ZodObject<{
2441
+ data: z.ZodObject<{
2442
+ id: z.ZodString;
2443
+ kind: z.ZodEnum<{
2444
+ order: "order";
2445
+ quote_request: "quote_request";
2446
+ opportunity: "opportunity";
2447
+ }>;
2448
+ recordId: z.ZodString;
2449
+ available: z.ZodBoolean;
2450
+ label: z.ZodNullable<z.ZodString>;
2451
+ url: z.ZodNullable<z.ZodString>;
2452
+ }, z.core.$strip>;
2453
+ }, z.core.$strip>;
2454
+ export declare const TaskReminderResponseSchema: z.ZodObject<{
2455
+ data: z.ZodObject<{
2456
+ id: z.ZodString;
2457
+ mode: z.ZodEnum<{
2458
+ absolute: "absolute";
2459
+ relative: "relative";
2460
+ }>;
2461
+ remindAt: z.ZodString;
2462
+ offsetMinutes: z.ZodNullable<z.ZodNumber>;
2463
+ recipients: z.ZodArray<z.ZodObject<{
2464
+ id: z.ZodString;
2465
+ name: z.ZodString;
2466
+ active: z.ZodBoolean;
2467
+ }, z.core.$strip>>;
2468
+ createdBy: z.ZodNullable<z.ZodObject<{
2469
+ id: z.ZodString;
2470
+ name: z.ZodString;
2471
+ }, z.core.$strip>>;
2472
+ done: z.ZodBoolean;
2473
+ createdAt: z.ZodString;
2474
+ }, z.core.$strip>;
2475
+ }, z.core.$strip>;
2476
+ export declare const TaskReminderListResponseSchema: z.ZodObject<{
2477
+ data: z.ZodArray<z.ZodObject<{
2478
+ id: z.ZodString;
2479
+ mode: z.ZodEnum<{
2480
+ absolute: "absolute";
2481
+ relative: "relative";
2482
+ }>;
2483
+ remindAt: z.ZodString;
2484
+ offsetMinutes: z.ZodNullable<z.ZodNumber>;
2485
+ recipients: z.ZodArray<z.ZodObject<{
2486
+ id: z.ZodString;
2487
+ name: z.ZodString;
2488
+ active: z.ZodBoolean;
2489
+ }, z.core.$strip>>;
2490
+ createdBy: z.ZodNullable<z.ZodObject<{
2491
+ id: z.ZodString;
2492
+ name: z.ZodString;
2493
+ }, z.core.$strip>>;
2494
+ done: z.ZodBoolean;
2495
+ createdAt: z.ZodString;
2496
+ }, z.core.$strip>>;
2497
+ }, z.core.$strip>;
2498
+ export declare const TaskWorkflowResponseSchema: z.ZodObject<{
2499
+ data: z.ZodObject<{
2500
+ statuses: z.ZodArray<z.ZodObject<{
2501
+ code: z.ZodString;
2502
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
2503
+ defaultName: z.ZodString;
2504
+ category: z.ZodEnum<{
2505
+ cancelled: "cancelled";
2506
+ open: "open";
2507
+ done: "done";
2508
+ }>;
2509
+ isInitial: z.ZodBoolean;
2510
+ weight: z.ZodNumber;
2511
+ color: z.ZodString;
2512
+ inUseCount: z.ZodNumber;
2513
+ }, z.core.$strip>>;
2514
+ transitions: z.ZodArray<z.ZodObject<{
2515
+ from: z.ZodString;
2516
+ to: z.ZodString;
2517
+ }, z.core.$strip>>;
2518
+ }, z.core.$strip>;
2519
+ }, z.core.$strip>;
2520
+ export declare const TaskPriorityListResponseSchema: z.ZodObject<{
2521
+ data: z.ZodArray<z.ZodObject<{
2522
+ code: z.ZodString;
2523
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
2524
+ defaultName: z.ZodString;
2525
+ color: z.ZodString;
2526
+ weight: z.ZodNumber;
2527
+ inUseCount: z.ZodNumber;
2528
+ }, z.core.$strip>>;
2529
+ }, z.core.$strip>;
2530
+ export declare const TaskPriorityResponseSchema: z.ZodObject<{
2531
+ data: z.ZodObject<{
2532
+ code: z.ZodString;
2533
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
2534
+ defaultName: z.ZodString;
2535
+ color: z.ZodString;
2536
+ weight: z.ZodNumber;
2537
+ inUseCount: z.ZodNumber;
2538
+ }, z.core.$strip>;
2539
+ }, z.core.$strip>;
2540
+ export declare const TaskTagListResponseSchema: z.ZodObject<{
2541
+ data: z.ZodArray<z.ZodObject<{
2542
+ id: z.ZodString;
2543
+ name: z.ZodString;
2544
+ color: z.ZodString;
2545
+ usageCount: z.ZodNumber;
2546
+ }, z.core.$strip>>;
2547
+ }, z.core.$strip>;
2548
+ export declare const TaskTagResponseSchema: z.ZodObject<{
2549
+ data: z.ZodObject<{
2550
+ id: z.ZodString;
2551
+ name: z.ZodString;
2552
+ color: z.ZodString;
2553
+ usageCount: z.ZodNumber;
2554
+ }, z.core.$strip>;
2555
+ }, z.core.$strip>;
2556
+ export declare const TaskBoardCardConfigResponseSchema: z.ZodObject<{
2557
+ data: z.ZodObject<{
2558
+ fields: z.ZodArray<z.ZodObject<{
2559
+ ref: z.ZodString;
2560
+ source: z.ZodEnum<{
2561
+ custom: "custom";
2562
+ builtin: "builtin";
2563
+ }>;
2564
+ key: z.ZodString;
2565
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2566
+ labelDefault: z.ZodNullable<z.ZodString>;
2567
+ }, z.core.$strip>>;
2568
+ available: z.ZodArray<z.ZodObject<{
2569
+ ref: z.ZodString;
2570
+ source: z.ZodEnum<{
2571
+ custom: "custom";
2572
+ builtin: "builtin";
2573
+ }>;
2574
+ key: z.ZodString;
2575
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2576
+ labelDefault: z.ZodNullable<z.ZodString>;
2577
+ }, z.core.$strip>>;
2578
+ maxFields: z.ZodNumber;
2579
+ }, z.core.$strip>;
2580
+ }, z.core.$strip>;
2581
+ export declare const TaskTimeZoneResponseSchema: z.ZodObject<{
2582
+ data: z.ZodObject<{
2583
+ timeZone: z.ZodString;
2584
+ }, z.core.$strip>;
2585
+ }, z.core.$strip>;
2586
+ export declare const TaskDigestSubscriptionResponseSchema: z.ZodObject<{
2587
+ data: z.ZodNullable<z.ZodObject<{
2588
+ hour: z.ZodNumber;
2589
+ }, z.core.$strip>>;
2590
+ }, z.core.$strip>;
2591
+ export declare const TaskDeleteResponseSchema: z.ZodObject<{
2592
+ data: z.ZodObject<{
2593
+ subtasksDetached: z.ZodNumber;
2594
+ }, z.core.$strip>;
2595
+ }, z.core.$strip>;
2596
+ /**
2597
+ * The codes the Tasks API raises. Each joins the platform's `ERROR_CODES`, the
2598
+ * `tasks` manifest's `errorCodes` and the module's `errors.<CODE>` sentences in
2599
+ * the change that adds its first raise site — `check:error-translations` refuses
2600
+ * a code enumerated before a manifest declares it.
2601
+ */
2602
+ export declare const TASKS_ERROR_CODES: readonly ["TASK_NOT_FOUND", "TASK_CONTEXT_INVALID", "TASK_ASSIGNEE_INVALID", "TASK_STATUS_UNKNOWN", "TASK_TRANSITION_FORBIDDEN", "TASK_TRANSITION_CONFLICT", "TASK_WORKFLOW_INVALID", "TASK_STATUS_IN_USE_TOO_MANY", "TASK_PRIORITY_UNKNOWN", "TASK_TAG_NAME_TAKEN", "TASK_TAG_UNKNOWN", "TASK_PRIVATE_ASSIGNEE", "TASK_PRIVATE_READ_ONLY", "TASK_ALREADY_PUBLISHED", "TASK_PARENT_CYCLE", "TASK_HIERARCHY_TOO_DEEP", "TASK_LINK_INVALID", "TASK_ATTACHMENT_REFUSED", "TASK_REMINDER_INVALID", "TASK_VIEW_NAME_TAKEN"];
2603
+ export type TasksErrorCode = (typeof TASKS_ERROR_CODES)[number];
2604
+ /**
2605
+ * The `eventId` / `occurredAt` envelope every in-process event carries. Spelled
2606
+ * structurally because this package may not import the platform's `EventBase`.
2607
+ */
2608
+ interface TasksEventEnvelope {
2609
+ eventId: string;
2610
+ occurredAt: string;
2611
+ }
2612
+ /** The event names `tasks` emits, once per Command, on commit. Nothing subscribes today. */
2613
+ export declare const TASKS_EVENTS: {
2614
+ readonly CREATED: "tasks.task.created.v1";
2615
+ readonly STATUS_CHANGED: "tasks.task.status_changed.v1";
2616
+ readonly ASSIGNEES_CHANGED: "tasks.task.assignees_changed.v1";
2617
+ readonly DELETED: "tasks.task.deleted.v1";
2618
+ };
2619
+ /** Payload of `tasks.task.created.v1` — emitted at publication for a draft (R-3). */
2620
+ export interface TaskCreatedEvent extends TasksEventEnvelope {
2621
+ taskId: string;
2622
+ contextType: string | null;
2623
+ contextId: string | null;
2624
+ contextGroupId: string | null;
2625
+ assigneeIds: string[];
2626
+ }
2627
+ /** Payload of `tasks.task.status_changed.v1` — codes, and the target's category. */
2628
+ export interface TaskStatusChangedEvent extends TasksEventEnvelope {
2629
+ taskId: string;
2630
+ from: string;
2631
+ to: string;
2632
+ toCategory: TaskStatusCategory;
2633
+ contextType: string | null;
2634
+ contextId: string | null;
2635
+ contextGroupId: string | null;
2636
+ }
2637
+ /** Payload of `tasks.task.assignees_changed.v1`, which replaced `tasks.task.assigned.v1`. */
2638
+ export interface TaskAssigneesChangedEvent extends TasksEventEnvelope {
2639
+ taskId: string;
2640
+ added: string[];
2641
+ removed: string[];
2642
+ }
2643
+ /** Payload of `tasks.task.deleted.v1`. */
2644
+ export interface TaskDeletedEvent extends TasksEventEnvelope {
2645
+ taskId: string;
2646
+ contextType: string | null;
2647
+ contextId: string | null;
2648
+ }
2649
+ /** A Task as it crosses a module boundary — a plain shape, never the entity. */
2650
+ export interface TaskRecord {
2651
+ id: string;
2652
+ number: string;
2653
+ title: string;
2654
+ /** A code of the workflow. */
2655
+ status: string;
2656
+ statusCategory: TaskStatusCategory;
2657
+ /**
2658
+ * The status's name per language and its fallback, and its colour — so a
2659
+ * consumer that shows a Task (Projects' Tasks tab) names its status as the
2660
+ * Tasks screens do, in its reader's language, without a second port.
2661
+ */
2662
+ statusName: Record<string, string>;
2663
+ statusDefaultName: string;
2664
+ statusColor: string;
2665
+ /** Category `done` or `cancelled`. */
2666
+ closed: boolean;
2667
+ dueOn: string | null;
2668
+ dueAt: Date | null;
2669
+ assigneeIds: string[];
2670
+ draft: boolean;
2671
+ private: boolean;
2672
+ contextType: string | null;
2673
+ contextId: string | null;
2674
+ contextGroupId: string | null;
2675
+ contextNote: string | null;
2676
+ completedAt: Date | null;
2677
+ createdAt: Date;
2678
+ updatedAt: Date;
2679
+ }
2680
+ /** What `TaskReadPort.search` is asked: the letters typed, and how many to answer. */
2681
+ export interface TaskSearchQuery {
2682
+ q?: string;
2683
+ limit: number;
2684
+ }
2685
+ /** The Tasks of one context, or of one group (a Stage) inside it. */
2686
+ export interface TaskContextQuery {
2687
+ contextType: string;
2688
+ contextId: string;
2689
+ contextGroupId?: string;
2690
+ }
2691
+ /**
2692
+ * Container name: `taskReadPort`. Owner: `tasks`.
2693
+ *
2694
+ * Reading Tasks from another module.
2695
+ *
2696
+ * Every method applies the **whole** visibility predicate for an
2697
+ * administrator's call — context (163 R-9), draft and private (165 R-3) — so a
2698
+ * private Task of another admin is absent from CRM's and Projects' references
2699
+ * and lookups. A call the system makes (no admin session — a sweep) is not
2700
+ * narrowed.
2701
+ *
2702
+ * **Owner off:** the seam fails closed — resolving this port throws
2703
+ * `ModuleDisabledError` and the call answers 503 `MODULE_DISABLED`.
2704
+ */
2705
+ export interface TaskReadPort {
2706
+ findById(id: string): Promise<TaskRecord | null>;
2707
+ /**
2708
+ * The Tasks of `ids` the caller may see, in no particular order — a hidden,
2709
+ * missing or malformed id is simply absent. One query for a page of
2710
+ * references (`specs/163-projects-and-tasks/` FR-044).
2711
+ */
2712
+ findByIds(ids: readonly string[]): Promise<TaskRecord[]>;
2713
+ /**
2714
+ * Tasks the caller may see whose number or title contains `q`
2715
+ * (case-insensitively; every visible Task for an empty `q`), newest first,
2716
+ * at most `limit` — the Tasks group of the `@@` document list (FR-044).
2717
+ */
2718
+ search(query: TaskSearchQuery): Promise<TaskRecord[]>;
2719
+ listInContext(q: TaskContextQuery): Promise<TaskRecord[]>;
2720
+ /** Category `open` and not a draft — the completion gate's question (R-1, R-3). */
2721
+ listOpenInContext(q: TaskContextQuery): Promise<TaskRecord[]>;
2722
+ countInContext(q: TaskContextQuery): Promise<number>;
2723
+ }
2724
+ /**
2725
+ * One Task another module asks `tasks` to create in its context. Validated by
2726
+ * the port with this schema before the first Command runs.
2727
+ */
2728
+ export declare const NewContextTaskSchema: z.ZodObject<{
2729
+ title: z.ZodString;
2730
+ description: z.ZodOptional<z.ZodString>;
2731
+ assigneeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2732
+ dueOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2733
+ contextGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2734
+ contextNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2735
+ sourceKey: z.ZodOptional<z.ZodString>;
2736
+ }, z.core.$strict>;
2737
+ export type NewContextTask = z.input<typeof NewContextTaskSchema>;
2738
+ /**
2739
+ * Container name: `taskWritePort`. Owner: `tasks`.
2740
+ *
2741
+ * Creating and deleting Tasks from another module.
2742
+ *
2743
+ * `createMany` runs one `tasks.task.create` Command per Task under the ambient
2744
+ * actor, at most {@link TASK_WRITE_PORT_BATCH_MAX} per call; the context's type
2745
+ * must be registered by a present module. New Tasks start in the workflow's
2746
+ * initial status and are published, never drafts. A `sourceKey` already present
2747
+ * in the context is skipped and its existing id returned, in input order (R-19).
2748
+ * **Call it after your own commit** — the implementation obtains its own
2749
+ * EntityManager (163 R-8).
2750
+ *
2751
+ * **Owner off:** the seam fails closed — resolving this port throws
2752
+ * `ModuleDisabledError`. A consumer must not wrap the call in a bare `catch`.
2753
+ */
2754
+ export interface TaskWritePort {
2755
+ createMany(input: {
2756
+ context: TaskContext;
2757
+ tasks: NewContextTask[];
2758
+ }): Promise<{
2759
+ ids: string[];
2760
+ }>;
2761
+ /** Every Task of one context — used when the context's record is deleted. */
2762
+ deleteInContext(q: {
2763
+ contextType: string;
2764
+ contextId: string;
2765
+ }): Promise<{
2766
+ deleted: number;
2767
+ }>;
2768
+ }
2769
+ /** How a context is shown on a Task: its label, its address, and its groups' labels. */
2770
+ export interface TaskContextDescription {
2771
+ label: string;
2772
+ href: string;
2773
+ /** groupId → label (a Project's Stage names). */
2774
+ groups: Map<string, string>;
2775
+ }
2776
+ /**
2777
+ * What a module registers to own Tasks: its context type and the answers only
2778
+ * it can give. Every method runs under the **caller's** ambient context.
2779
+ */
2780
+ export interface TaskContextDescriptor {
2781
+ /** The context type the module owns (`project`). */
2782
+ readonly contextType: string;
2783
+ /** The contributing module; an absent owner hides its Tasks. */
2784
+ readonly ownerModuleId: string;
2785
+ /** Every context id of this type the caller may see — the list pre-filter (163 R-9). */
2786
+ allVisibleContextIds(): Promise<string[]>;
2787
+ /** Which of `ids` the caller may see. */
2788
+ visibleContextIds(ids: readonly string[]): Promise<Set<string>>;
2789
+ describe(ids: readonly string[]): Promise<Map<string, TaskContextDescription>>;
2790
+ /**
2791
+ * Whether **another** administrator — not the caller — may see context `id`:
2792
+ * asked before somebody is told about a Task of it (the assignment bell),
2793
+ * because a bell is read outside the context's visibility and a Task's
2794
+ * number must not reach somebody its context hides it from. Answered against
2795
+ * that administrator's own permissions and reach; `false` when unsure.
2796
+ */
2797
+ canSeeAs(adminUserId: string, id: string): Promise<boolean>;
2798
+ /**
2799
+ * Whether the caller may change which Tasks context `id` holds: put a Task
2800
+ * **into** it (create it there, or move it there from elsewhere), take one
2801
+ * **out of** it (detach it, or move it to another record), or **delete** one
2802
+ * of its Tasks. Without this a holder of `tasks:write` who merely sees a
2803
+ * record could publish its Tasks to every holder of `tasks:read`, add to its
2804
+ * work or remove from it (163 T144, T147). Moving a Task between the groups
2805
+ * of one record, and editing a Task where it is, are not asked. Answered
2806
+ * under the caller's own context; `false` when unsure.
2807
+ */
2808
+ canChangeTasks(id: string): Promise<boolean>;
2809
+ /**
2810
+ * A Task's `contextNote` in the reader's language. The note is the owner's
2811
+ * own text, written when it created the Task; an owner that stores a key
2812
+ * rather than a sentence (a Project stores the responsible Role) answers it
2813
+ * here. Without this method the note is shown as it is stored.
2814
+ */
2815
+ renderNote?(note: string, language: SupportedLanguage): Promise<string>;
2816
+ /**
2817
+ * Which of these contexts still exist, and the group ids each has now —
2818
+ * regardless of who may see them. Called by `tasks` only under the system
2819
+ * actor, from its maintenance pass (R-19, issue #450). A context the owner
2820
+ * cannot vouch for must be returned as existing: absence here deletes Tasks.
2821
+ * A contributor without the method is never cleaned up.
2822
+ */
2823
+ existingContexts?(ids: readonly string[]): Promise<Map<string, ReadonlySet<string>>>;
2824
+ }
2825
+ /**
2826
+ * Container name: `taskContextRegistry`. Owner: `tasks`.
2827
+ *
2828
+ * The registry a module pushes its {@link TaskContextDescriptor} into.
2829
+ *
2830
+ * A **contribution seam**: registered ungated (a plain `ctx.di.register`),
2831
+ * pushed into from a contribution-only boot hook, declared by the contributor
2832
+ * as a `contributes-to` edge.
2833
+ *
2834
+ * **Enumeration policy: fail-closed.** A Task whose context type is
2835
+ * unregistered, or whose owner is not effectively present, is hidden — from
2836
+ * lists, counts and by id — and reappears unchanged when the owner is back.
2837
+ */
2838
+ export interface TaskContextRegistryPort {
2839
+ register(descriptor: TaskContextDescriptor): void;
2840
+ }
2841
+ export {};
2842
+ //# sourceMappingURL=tasks.d.ts.map