@todoist/sdk 0.0.0-stage → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +308 -2
- package/dist/esm/authentication.js +307 -0
- package/dist/esm/clients/activity-client.js +60 -0
- package/dist/esm/clients/app-client.js +366 -0
- package/dist/esm/clients/backup-client.js +47 -0
- package/dist/esm/clients/base-client.js +29 -0
- package/dist/esm/clients/billing-client.js +160 -0
- package/dist/esm/clients/comment-client.js +92 -0
- package/dist/esm/clients/email-client.js +41 -0
- package/dist/esm/clients/filter-client.js +26 -0
- package/dist/esm/clients/folder-client.js +80 -0
- package/dist/esm/clients/id-mapping-client.js +37 -0
- package/dist/esm/clients/insights-client.js +89 -0
- package/dist/esm/clients/label-client.js +131 -0
- package/dist/esm/clients/productivity-client.js +24 -0
- package/dist/esm/clients/project-client.js +284 -0
- package/dist/esm/clients/reminder-client.js +204 -0
- package/dist/esm/clients/section-client.js +121 -0
- package/dist/esm/clients/task-client.js +264 -0
- package/dist/esm/clients/template-client.js +89 -0
- package/dist/esm/clients/ui-extension-client.js +110 -0
- package/dist/esm/clients/upload-client.js +153 -0
- package/dist/esm/clients/view-options-client.js +21 -0
- package/dist/esm/clients/workspace-client.js +384 -0
- package/dist/esm/consts/endpoints.js +193 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/test-utils/asserts.js +8 -0
- package/dist/esm/test-utils/msw-setup.js +88 -0
- package/dist/esm/test-utils/obsidian-fetch-adapter.js +51 -0
- package/dist/esm/test-utils/test-defaults.js +367 -0
- package/dist/esm/test-utils/transport-seam.js +15 -0
- package/dist/esm/test-utils/webhook-fixtures.js +26 -0
- package/dist/esm/todoist-api.js +1757 -0
- package/dist/esm/transport/fetch-with-retry.js +216 -0
- package/dist/esm/transport/http-client.js +140 -0
- package/dist/esm/transport/http-dispatcher.js +158 -0
- package/dist/esm/transport/sync-request.js +106 -0
- package/dist/esm/types/activity/index.js +2 -0
- package/dist/esm/types/activity/requests.js +1 -0
- package/dist/esm/types/activity/types.js +45 -0
- package/dist/esm/types/apps/index.js +2 -0
- package/dist/esm/types/apps/requests.js +1 -0
- package/dist/esm/types/apps/types.js +249 -0
- package/dist/esm/types/backups/index.js +2 -0
- package/dist/esm/types/backups/requests.js +1 -0
- package/dist/esm/types/backups/types.js +5 -0
- package/dist/esm/types/billing/index.js +2 -0
- package/dist/esm/types/billing/requests.js +1 -0
- package/dist/esm/types/billing/types.js +89 -0
- package/dist/esm/types/comments/index.js +2 -0
- package/dist/esm/types/comments/requests.js +1 -0
- package/dist/esm/types/comments/types.js +57 -0
- package/dist/esm/types/common.js +7 -0
- package/dist/esm/types/emails/index.js +1 -0
- package/dist/esm/types/emails/requests.js +2 -0
- package/dist/esm/types/errors.js +41 -0
- package/dist/esm/types/folders/index.js +1 -0
- package/dist/esm/types/folders/requests.js +1 -0
- package/dist/esm/types/http.js +20 -0
- package/dist/esm/types/id-mappings/index.js +2 -0
- package/dist/esm/types/id-mappings/requests.js +17 -0
- package/dist/esm/types/id-mappings/types.js +9 -0
- package/dist/esm/types/index.js +24 -0
- package/dist/esm/types/insights/index.js +2 -0
- package/dist/esm/types/insights/requests.js +1 -0
- package/dist/esm/types/insights/types.js +77 -0
- package/dist/esm/types/labels/index.js +2 -0
- package/dist/esm/types/labels/requests.js +1 -0
- package/dist/esm/types/labels/types.js +8 -0
- package/dist/esm/types/productivity/index.js +1 -0
- package/dist/esm/types/productivity/types.js +65 -0
- package/dist/esm/types/projects/index.js +2 -0
- package/dist/esm/types/projects/requests.js +1 -0
- package/dist/esm/types/projects/types.js +65 -0
- package/dist/esm/types/reminders/index.js +1 -0
- package/dist/esm/types/reminders/requests.js +92 -0
- package/dist/esm/types/sections/index.js +2 -0
- package/dist/esm/types/sections/requests.js +1 -0
- package/dist/esm/types/sections/types.js +23 -0
- package/dist/esm/types/sync/commands/calendars.js +1 -0
- package/dist/esm/types/sync/commands/filters.js +1 -0
- package/dist/esm/types/sync/commands/folders.js +1 -0
- package/dist/esm/types/sync/commands/index.js +18 -0
- package/dist/esm/types/sync/commands/labels.js +2 -0
- package/dist/esm/types/sync/commands/notes.js +1 -0
- package/dist/esm/types/sync/commands/notifications.js +1 -0
- package/dist/esm/types/sync/commands/others.js +1 -0
- package/dist/esm/types/sync/commands/project-view-options.js +1 -0
- package/dist/esm/types/sync/commands/projects.js +1 -0
- package/dist/esm/types/sync/commands/reminders.js +1 -0
- package/dist/esm/types/sync/commands/sections.js +1 -0
- package/dist/esm/types/sync/commands/shared.js +16 -0
- package/dist/esm/types/sync/commands/sharing.js +1 -0
- package/dist/esm/types/sync/commands/tasks.js +1 -0
- package/dist/esm/types/sync/commands/view-options.js +1 -0
- package/dist/esm/types/sync/commands/workspace-filters.js +1 -0
- package/dist/esm/types/sync/commands/workspaces.js +1 -0
- package/dist/esm/types/sync/index.js +6 -0
- package/dist/esm/types/sync/request.js +1 -0
- package/dist/esm/types/sync/resource-types.js +36 -0
- package/dist/esm/types/sync/resources/calendars.js +24 -0
- package/dist/esm/types/sync/resources/collaborators.js +21 -0
- package/dist/esm/types/sync/resources/completed-info.js +21 -0
- package/dist/esm/types/sync/resources/filters.js +12 -0
- package/dist/esm/types/sync/resources/folders.js +10 -0
- package/dist/esm/types/sync/resources/index.js +18 -0
- package/dist/esm/types/sync/resources/labels.js +7 -0
- package/dist/esm/types/sync/resources/live-notifications.js +35 -0
- package/dist/esm/types/sync/resources/notes.js +18 -0
- package/dist/esm/types/sync/resources/reminders.js +58 -0
- package/dist/esm/types/sync/resources/suggestions.js +33 -0
- package/dist/esm/types/sync/resources/tooltips.js +5 -0
- package/dist/esm/types/sync/resources/user-plan-limits.js +21 -0
- package/dist/esm/types/sync/resources/user-settings.js +41 -0
- package/dist/esm/types/sync/resources/user-status.js +22 -0
- package/dist/esm/types/sync/resources/user.js +109 -0
- package/dist/esm/types/sync/resources/view-options.js +128 -0
- package/dist/esm/types/sync/resources/workspace-filters.js +17 -0
- package/dist/esm/types/sync/resources/workspaces.js +69 -0
- package/dist/esm/types/sync/response.js +57 -0
- package/dist/esm/types/sync/user-preferences.js +68 -0
- package/dist/esm/types/tasks/index.js +2 -0
- package/dist/esm/types/tasks/requests.js +1 -0
- package/dist/esm/types/tasks/types.js +56 -0
- package/dist/esm/types/templates/index.js +1 -0
- package/dist/esm/types/templates/requests.js +1 -0
- package/dist/esm/types/ui-extensions/index.js +2 -0
- package/dist/esm/types/ui-extensions/requests.js +1 -0
- package/dist/esm/types/ui-extensions/types.js +74 -0
- package/dist/esm/types/uploads/index.js +1 -0
- package/dist/esm/types/uploads/requests.js +1 -0
- package/dist/esm/types/users/index.js +1 -0
- package/dist/esm/types/users/types.js +49 -0
- package/dist/esm/types/webhooks/comments.js +93 -0
- package/dist/esm/types/webhooks/envelope.js +23 -0
- package/dist/esm/types/webhooks/filters.js +27 -0
- package/dist/esm/types/webhooks/index.js +9 -0
- package/dist/esm/types/webhooks/labels.js +51 -0
- package/dist/esm/types/webhooks/projects.js +33 -0
- package/dist/esm/types/webhooks/reminders.js +32 -0
- package/dist/esm/types/webhooks/sections.js +50 -0
- package/dist/esm/types/webhooks/tasks.js +65 -0
- package/dist/esm/types/webhooks/types.js +52 -0
- package/dist/esm/types/workspaces/index.js +2 -0
- package/dist/esm/types/workspaces/requests.js +1 -0
- package/dist/esm/types/workspaces/types.js +151 -0
- package/dist/esm/utils/activity-helpers.js +53 -0
- package/dist/esm/utils/case-conversion.js +84 -0
- package/dist/esm/utils/colors.js +145 -0
- package/dist/esm/utils/file-response.js +29 -0
- package/dist/esm/utils/filter-queries.js +231 -0
- package/dist/esm/utils/filter-query-definitions.js +2789 -0
- package/dist/esm/utils/headers.js +42 -0
- package/dist/esm/utils/index.js +11 -0
- package/dist/esm/utils/multipart-upload.js +267 -0
- package/dist/esm/utils/person-names.js +61 -0
- package/dist/esm/utils/processing-helpers.js +12 -0
- package/dist/esm/utils/project-helpers.js +29 -0
- package/dist/esm/utils/request-helpers.js +43 -0
- package/dist/esm/utils/sanitization.js +131 -0
- package/dist/esm/utils/sync-helpers.js +19 -0
- package/dist/esm/utils/task-sorting.js +280 -0
- package/dist/esm/utils/uncompletable-helpers.js +54 -0
- package/dist/esm/utils/url-helpers.js +196 -0
- package/dist/esm/utils/validators.js +102 -0
- package/dist/esm/utils/view-options.js +15 -0
- package/dist/esm/utils/webhook-parser.js +56 -0
- package/dist/types/authentication.d.ts +262 -0
- package/dist/types/clients/activity-client.d.ts +12 -0
- package/dist/types/clients/app-client.d.ts +37 -0
- package/dist/types/clients/backup-client.d.ts +14 -0
- package/dist/types/clients/base-client.d.ts +23 -0
- package/dist/types/clients/billing-client.d.ts +22 -0
- package/dist/types/clients/comment-client.d.ts +15 -0
- package/dist/types/clients/email-client.d.ts +13 -0
- package/dist/types/clients/filter-client.d.ts +10 -0
- package/dist/types/clients/folder-client.d.ts +16 -0
- package/dist/types/clients/id-mapping-client.d.ts +13 -0
- package/dist/types/clients/insights-client.d.ts +18 -0
- package/dist/types/clients/label-client.d.ts +19 -0
- package/dist/types/clients/productivity-client.d.ts +12 -0
- package/dist/types/clients/project-client.d.ts +22 -0
- package/dist/types/clients/reminder-client.d.ts +25 -0
- package/dist/types/clients/section-client.d.ts +18 -0
- package/dist/types/clients/task-client.d.ts +25 -0
- package/dist/types/clients/template-client.d.ts +17 -0
- package/dist/types/clients/ui-extension-client.d.ts +18 -0
- package/dist/types/clients/upload-client.d.ts +17 -0
- package/dist/types/clients/view-options-client.d.ts +8 -0
- package/dist/types/clients/workspace-client.d.ts +43 -0
- package/dist/types/consts/endpoints.d.ts +120 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/test-utils/asserts.d.ts +1 -0
- package/dist/types/test-utils/msw-setup.d.ts +33 -0
- package/dist/types/test-utils/obsidian-fetch-adapter.d.ts +29 -0
- package/dist/types/test-utils/test-defaults.d.ts +286 -0
- package/dist/types/test-utils/transport-seam.d.ts +1 -0
- package/dist/types/test-utils/webhook-fixtures.d.ts +13 -0
- package/dist/types/todoist-api.d.ts +1437 -0
- package/dist/types/transport/fetch-with-retry.d.ts +12 -0
- package/dist/types/transport/http-client.d.ts +25 -0
- package/dist/types/transport/http-dispatcher.d.ts +65 -0
- package/dist/types/transport/sync-request.d.ts +31 -0
- package/dist/types/types/activity/index.d.ts +2 -0
- package/dist/types/types/activity/requests.d.ts +85 -0
- package/dist/types/types/activity/types.d.ts +56 -0
- package/dist/types/types/apps/index.d.ts +2 -0
- package/dist/types/types/apps/requests.d.ts +89 -0
- package/dist/types/types/apps/types.d.ts +418 -0
- package/dist/types/types/backups/index.d.ts +2 -0
- package/dist/types/types/backups/requests.d.ts +16 -0
- package/dist/types/types/backups/types.d.ts +7 -0
- package/dist/types/types/billing/index.d.ts +2 -0
- package/dist/types/types/billing/requests.d.ts +62 -0
- package/dist/types/types/billing/types.d.ts +207 -0
- package/dist/types/types/comments/index.d.ts +2 -0
- package/dist/types/types/comments/requests.d.ts +64 -0
- package/dist/types/types/comments/types.d.ts +141 -0
- package/dist/types/types/common.d.ts +13 -0
- package/dist/types/types/emails/index.d.ts +1 -0
- package/dist/types/types/emails/requests.d.ts +30 -0
- package/dist/types/types/errors.d.ts +29 -0
- package/dist/types/types/folders/index.d.ts +1 -0
- package/dist/types/types/folders/requests.d.ts +20 -0
- package/dist/types/types/http.d.ts +104 -0
- package/dist/types/types/id-mappings/index.d.ts +2 -0
- package/dist/types/types/id-mappings/requests.d.ts +28 -0
- package/dist/types/types/id-mappings/types.d.ts +13 -0
- package/dist/types/types/index.d.ts +24 -0
- package/dist/types/types/insights/index.d.ts +2 -0
- package/dist/types/types/insights/requests.d.ts +26 -0
- package/dist/types/types/insights/types.d.ts +167 -0
- package/dist/types/types/labels/index.d.ts +2 -0
- package/dist/types/types/labels/requests.d.ts +75 -0
- package/dist/types/types/labels/types.d.ts +13 -0
- package/dist/types/types/productivity/index.d.ts +1 -0
- package/dist/types/types/productivity/types.d.ts +115 -0
- package/dist/types/types/projects/index.d.ts +2 -0
- package/dist/types/types/projects/requests.d.ts +206 -0
- package/dist/types/types/projects/types.d.ts +286 -0
- package/dist/types/types/reminders/index.d.ts +1 -0
- package/dist/types/types/reminders/requests.d.ts +205 -0
- package/dist/types/types/sections/index.d.ts +2 -0
- package/dist/types/types/sections/requests.d.ts +49 -0
- package/dist/types/types/sections/types.d.ts +70 -0
- package/dist/types/types/sync/commands/calendars.d.ts +14 -0
- package/dist/types/types/sync/commands/filters.d.ts +24 -0
- package/dist/types/types/sync/commands/folders.d.ts +20 -0
- package/dist/types/types/sync/commands/index.d.ts +167 -0
- package/dist/types/types/sync/commands/labels.d.ts +32 -0
- package/dist/types/types/sync/commands/notes.d.ts +27 -0
- package/dist/types/types/sync/commands/notifications.d.ts +10 -0
- package/dist/types/types/sync/commands/others.d.ts +61 -0
- package/dist/types/types/sync/commands/project-view-options.d.ts +13 -0
- package/dist/types/types/sync/commands/projects.d.ts +96 -0
- package/dist/types/types/sync/commands/reminders.d.ts +51 -0
- package/dist/types/types/sync/commands/sections.d.ts +36 -0
- package/dist/types/types/sync/commands/shared.d.ts +51 -0
- package/dist/types/types/sync/commands/sharing.d.ts +16 -0
- package/dist/types/types/sync/commands/tasks.d.ts +78 -0
- package/dist/types/types/sync/commands/view-options.d.ts +18 -0
- package/dist/types/types/sync/commands/workspace-filters.d.ts +25 -0
- package/dist/types/types/sync/commands/workspaces.d.ts +82 -0
- package/dist/types/types/sync/index.d.ts +6 -0
- package/dist/types/types/sync/request.d.ts +7 -0
- package/dist/types/types/sync/resource-types.d.ts +5 -0
- package/dist/types/types/sync/resources/calendars.d.ts +38 -0
- package/dist/types/types/sync/resources/collaborators.d.ts +45 -0
- package/dist/types/types/sync/resources/completed-info.d.ts +33 -0
- package/dist/types/types/sync/resources/filters.d.ts +13 -0
- package/dist/types/types/sync/resources/folders.d.ts +11 -0
- package/dist/types/types/sync/resources/index.d.ts +18 -0
- package/dist/types/types/sync/resources/labels.d.ts +12 -0
- package/dist/types/types/sync/resources/live-notifications.d.ts +32 -0
- package/dist/types/types/sync/resources/notes.d.ts +34 -0
- package/dist/types/types/sync/resources/reminders.d.ts +213 -0
- package/dist/types/types/sync/resources/suggestions.d.ts +96 -0
- package/dist/types/types/sync/resources/tooltips.d.ts +6 -0
- package/dist/types/types/sync/resources/user-plan-limits.d.ts +47 -0
- package/dist/types/types/sync/resources/user-settings.d.ts +40 -0
- package/dist/types/types/sync/resources/user-status.d.ts +46 -0
- package/dist/types/types/sync/resources/user.d.ts +151 -0
- package/dist/types/types/sync/resources/view-options.d.ts +157 -0
- package/dist/types/types/sync/resources/workspace-filters.d.ts +18 -0
- package/dist/types/types/sync/resources/workspaces.d.ts +142 -0
- package/dist/types/types/sync/response.d.ts +930 -0
- package/dist/types/types/sync/user-preferences.d.ts +39 -0
- package/dist/types/types/tasks/index.d.ts +2 -0
- package/dist/types/types/tasks/requests.d.ts +197 -0
- package/dist/types/types/tasks/types.d.ts +162 -0
- package/dist/types/types/templates/index.d.ts +1 -0
- package/dist/types/types/templates/requests.d.ts +92 -0
- package/dist/types/types/ui-extensions/index.d.ts +2 -0
- package/dist/types/types/ui-extensions/requests.d.ts +108 -0
- package/dist/types/types/ui-extensions/types.d.ts +185 -0
- package/dist/types/types/uploads/index.d.ts +1 -0
- package/dist/types/types/uploads/requests.d.ts +32 -0
- package/dist/types/types/users/index.d.ts +1 -0
- package/dist/types/types/users/types.d.ts +67 -0
- package/dist/types/types/webhooks/comments.d.ts +1600 -0
- package/dist/types/types/webhooks/envelope.d.ts +34 -0
- package/dist/types/types/webhooks/filters.d.ts +99 -0
- package/dist/types/types/webhooks/index.d.ts +9 -0
- package/dist/types/types/webhooks/labels.d.ts +160 -0
- package/dist/types/types/webhooks/projects.d.ts +365 -0
- package/dist/types/types/webhooks/reminders.d.ts +82 -0
- package/dist/types/types/webhooks/sections.d.ts +372 -0
- package/dist/types/types/webhooks/tasks.d.ts +981 -0
- package/dist/types/types/webhooks/types.d.ts +2606 -0
- package/dist/types/types/workspaces/index.d.ts +2 -0
- package/dist/types/types/workspaces/requests.d.ts +260 -0
- package/dist/types/types/workspaces/types.d.ts +266 -0
- package/dist/types/utils/activity-helpers.d.ts +28 -0
- package/dist/types/utils/case-conversion.d.ts +20 -0
- package/dist/types/utils/colors.d.ts +201 -0
- package/dist/types/utils/file-response.d.ts +15 -0
- package/dist/types/utils/filter-queries.d.ts +42 -0
- package/dist/types/utils/filter-query-definitions.d.ts +27 -0
- package/dist/types/utils/headers.d.ts +20 -0
- package/dist/types/utils/index.d.ts +15 -0
- package/dist/types/utils/multipart-upload.d.ts +58 -0
- package/dist/types/utils/person-names.d.ts +52 -0
- package/dist/types/utils/processing-helpers.d.ts +1 -0
- package/dist/types/utils/project-helpers.d.ts +21 -0
- package/dist/types/utils/request-helpers.d.ts +33 -0
- package/dist/types/utils/sanitization.d.ts +52 -0
- package/dist/types/utils/sync-helpers.d.ts +17 -0
- package/dist/types/utils/task-sorting.d.ts +46 -0
- package/dist/types/utils/uncompletable-helpers.d.ts +30 -0
- package/dist/types/utils/url-helpers.d.ts +120 -0
- package/dist/types/utils/validators.d.ts +1917 -0
- package/dist/types/utils/view-options.d.ts +11 -0
- package/dist/types/utils/webhook-parser.d.ts +48 -0
- package/package.json +88 -5
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Collaborator info for the user that triggered a webhook event.
|
|
4
|
+
* @see https://developer.todoist.com/sync/v1/#webhooks
|
|
5
|
+
*/
|
|
6
|
+
export declare const WebhookInitiatorSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
fullName: z.ZodString;
|
|
9
|
+
email: z.ZodString;
|
|
10
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
isPremium: z.ZodBoolean;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
/**
|
|
14
|
+
* Collaborator info for the user that triggered a webhook event.
|
|
15
|
+
*/
|
|
16
|
+
export type WebhookInitiator = z.infer<typeof WebhookInitiatorSchema>;
|
|
17
|
+
/**
|
|
18
|
+
* Fields common to every webhook payload, regardless of `eventName`.
|
|
19
|
+
* Meant to be spread into per-event variant schemas.
|
|
20
|
+
*/
|
|
21
|
+
export declare const BaseWebhookEnvelopeShape: {
|
|
22
|
+
readonly version: z.ZodEnum<{
|
|
23
|
+
1: "1";
|
|
24
|
+
}>;
|
|
25
|
+
readonly userId: z.ZodString;
|
|
26
|
+
readonly initiator: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
fullName: z.ZodString;
|
|
29
|
+
email: z.ZodString;
|
|
30
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
isPremium: z.ZodBoolean;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
readonly triggeredAt: z.ZodCoercedDate<unknown>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Enum-like object of filter (`filter:*`) webhook event names. Single
|
|
4
|
+
* source of truth for the discriminator values — `FILTER_WEBHOOK_EVENTS`
|
|
5
|
+
* and every `z.literal()` below derive from it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FilterWebhookEventEnum: {
|
|
8
|
+
readonly Added: "filter:added";
|
|
9
|
+
readonly Updated: "filter:updated";
|
|
10
|
+
readonly Deleted: "filter:deleted";
|
|
11
|
+
};
|
|
12
|
+
/** Webhook events that carry a filter as their `eventData`. */
|
|
13
|
+
export declare const FILTER_WEBHOOK_EVENTS: readonly ["filter:added", "filter:updated", "filter:deleted"];
|
|
14
|
+
/**
|
|
15
|
+
* Webhook filter payloads match the shared {@link Filter} resource shape,
|
|
16
|
+
* so `eventData` reuses `FilterSchema` directly — no webhook-specific
|
|
17
|
+
* schema is needed.
|
|
18
|
+
*/
|
|
19
|
+
export declare const FilterAddedPayloadSchema: z.ZodObject<{
|
|
20
|
+
eventName: z.ZodLiteral<"filter:added">;
|
|
21
|
+
eventData: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
query: z.ZodString;
|
|
25
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
color: z.ZodString;
|
|
27
|
+
isDeleted: z.ZodBoolean;
|
|
28
|
+
isFavorite: z.ZodBoolean;
|
|
29
|
+
isFrozen: z.ZodBoolean;
|
|
30
|
+
itemOrder: z.ZodNumber;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
version: z.ZodEnum<{
|
|
33
|
+
1: "1";
|
|
34
|
+
}>;
|
|
35
|
+
userId: z.ZodString;
|
|
36
|
+
initiator: z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
fullName: z.ZodString;
|
|
39
|
+
email: z.ZodString;
|
|
40
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
41
|
+
isPremium: z.ZodBoolean;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type FilterAddedPayload = z.infer<typeof FilterAddedPayloadSchema>;
|
|
46
|
+
export declare const FilterUpdatedPayloadSchema: z.ZodObject<{
|
|
47
|
+
eventName: z.ZodLiteral<"filter:updated">;
|
|
48
|
+
eventData: z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
query: z.ZodString;
|
|
52
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
color: z.ZodString;
|
|
54
|
+
isDeleted: z.ZodBoolean;
|
|
55
|
+
isFavorite: z.ZodBoolean;
|
|
56
|
+
isFrozen: z.ZodBoolean;
|
|
57
|
+
itemOrder: z.ZodNumber;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
version: z.ZodEnum<{
|
|
60
|
+
1: "1";
|
|
61
|
+
}>;
|
|
62
|
+
userId: z.ZodString;
|
|
63
|
+
initiator: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
fullName: z.ZodString;
|
|
66
|
+
email: z.ZodString;
|
|
67
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
68
|
+
isPremium: z.ZodBoolean;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type FilterUpdatedPayload = z.infer<typeof FilterUpdatedPayloadSchema>;
|
|
73
|
+
export declare const FilterDeletedPayloadSchema: z.ZodObject<{
|
|
74
|
+
eventName: z.ZodLiteral<"filter:deleted">;
|
|
75
|
+
eventData: z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
query: z.ZodString;
|
|
79
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
color: z.ZodString;
|
|
81
|
+
isDeleted: z.ZodBoolean;
|
|
82
|
+
isFavorite: z.ZodBoolean;
|
|
83
|
+
isFrozen: z.ZodBoolean;
|
|
84
|
+
itemOrder: z.ZodNumber;
|
|
85
|
+
}, z.core.$loose>;
|
|
86
|
+
version: z.ZodEnum<{
|
|
87
|
+
1: "1";
|
|
88
|
+
}>;
|
|
89
|
+
userId: z.ZodString;
|
|
90
|
+
initiator: z.ZodObject<{
|
|
91
|
+
id: z.ZodString;
|
|
92
|
+
fullName: z.ZodString;
|
|
93
|
+
email: z.ZodString;
|
|
94
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
95
|
+
isPremium: z.ZodBoolean;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export type FilterDeletedPayload = z.infer<typeof FilterDeletedPayloadSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './comments.js';
|
|
2
|
+
export * from './envelope.js';
|
|
3
|
+
export * from './filters.js';
|
|
4
|
+
export * from './labels.js';
|
|
5
|
+
export * from './projects.js';
|
|
6
|
+
export * from './reminders.js';
|
|
7
|
+
export * from './sections.js';
|
|
8
|
+
export * from './tasks.js';
|
|
9
|
+
export * from './types.js';
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Enum-like object of label (`label:*`) webhook event names. Single source
|
|
4
|
+
* of truth for the discriminator values — `LABEL_WEBHOOK_EVENTS` and every
|
|
5
|
+
* `z.literal()` below derive from it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LabelWebhookEventEnum: {
|
|
8
|
+
readonly Added: "label:added";
|
|
9
|
+
readonly Updated: "label:updated";
|
|
10
|
+
readonly Deleted: "label:deleted";
|
|
11
|
+
};
|
|
12
|
+
/** Webhook events that carry a label as their `eventData`. */
|
|
13
|
+
export declare const LABEL_WEBHOOK_EVENTS: readonly ["label:added", "label:updated", "label:deleted"];
|
|
14
|
+
/**
|
|
15
|
+
* A label as delivered in a webhook payload.
|
|
16
|
+
*
|
|
17
|
+
* Webhook label payloads differ from the REST label shape in two ways:
|
|
18
|
+
* they use `item_order` (not `order`) and always include `is_deleted`. This
|
|
19
|
+
* schema reuses {@link LabelSchema}, swapping `order` for `itemOrder` on
|
|
20
|
+
* the input side and renaming it back after validation, and surfaces
|
|
21
|
+
* `isDeleted` for downstream filtering.
|
|
22
|
+
*/
|
|
23
|
+
export declare const WebhookLabelSchema: z.ZodPipe<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
color: z.ZodString;
|
|
26
|
+
isFavorite: z.ZodBoolean;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
itemOrder: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
isDeleted: z.ZodBoolean;
|
|
30
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
31
|
+
order: number | null;
|
|
32
|
+
id: string;
|
|
33
|
+
color: string;
|
|
34
|
+
isFavorite: boolean;
|
|
35
|
+
name: string;
|
|
36
|
+
isDeleted: boolean;
|
|
37
|
+
}, {
|
|
38
|
+
id: string;
|
|
39
|
+
color: string;
|
|
40
|
+
isFavorite: boolean;
|
|
41
|
+
name: string;
|
|
42
|
+
itemOrder: number | null;
|
|
43
|
+
isDeleted: boolean;
|
|
44
|
+
}>>;
|
|
45
|
+
/** A label as delivered in a webhook payload. */
|
|
46
|
+
export type WebhookLabel = z.infer<typeof WebhookLabelSchema>;
|
|
47
|
+
export declare const LabelAddedPayloadSchema: z.ZodObject<{
|
|
48
|
+
eventName: z.ZodLiteral<"label:added">;
|
|
49
|
+
eventData: z.ZodPipe<z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
color: z.ZodString;
|
|
52
|
+
isFavorite: z.ZodBoolean;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
itemOrder: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
isDeleted: z.ZodBoolean;
|
|
56
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
57
|
+
order: number | null;
|
|
58
|
+
id: string;
|
|
59
|
+
color: string;
|
|
60
|
+
isFavorite: boolean;
|
|
61
|
+
name: string;
|
|
62
|
+
isDeleted: boolean;
|
|
63
|
+
}, {
|
|
64
|
+
id: string;
|
|
65
|
+
color: string;
|
|
66
|
+
isFavorite: boolean;
|
|
67
|
+
name: string;
|
|
68
|
+
itemOrder: number | null;
|
|
69
|
+
isDeleted: boolean;
|
|
70
|
+
}>>;
|
|
71
|
+
version: z.ZodEnum<{
|
|
72
|
+
1: "1";
|
|
73
|
+
}>;
|
|
74
|
+
userId: z.ZodString;
|
|
75
|
+
initiator: z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
fullName: z.ZodString;
|
|
78
|
+
email: z.ZodString;
|
|
79
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
80
|
+
isPremium: z.ZodBoolean;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type LabelAddedPayload = z.infer<typeof LabelAddedPayloadSchema>;
|
|
85
|
+
export declare const LabelUpdatedPayloadSchema: z.ZodObject<{
|
|
86
|
+
eventName: z.ZodLiteral<"label:updated">;
|
|
87
|
+
eventData: z.ZodPipe<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
color: z.ZodString;
|
|
90
|
+
isFavorite: z.ZodBoolean;
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
itemOrder: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
isDeleted: z.ZodBoolean;
|
|
94
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
95
|
+
order: number | null;
|
|
96
|
+
id: string;
|
|
97
|
+
color: string;
|
|
98
|
+
isFavorite: boolean;
|
|
99
|
+
name: string;
|
|
100
|
+
isDeleted: boolean;
|
|
101
|
+
}, {
|
|
102
|
+
id: string;
|
|
103
|
+
color: string;
|
|
104
|
+
isFavorite: boolean;
|
|
105
|
+
name: string;
|
|
106
|
+
itemOrder: number | null;
|
|
107
|
+
isDeleted: boolean;
|
|
108
|
+
}>>;
|
|
109
|
+
version: z.ZodEnum<{
|
|
110
|
+
1: "1";
|
|
111
|
+
}>;
|
|
112
|
+
userId: z.ZodString;
|
|
113
|
+
initiator: z.ZodObject<{
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
fullName: z.ZodString;
|
|
116
|
+
email: z.ZodString;
|
|
117
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
118
|
+
isPremium: z.ZodBoolean;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
export type LabelUpdatedPayload = z.infer<typeof LabelUpdatedPayloadSchema>;
|
|
123
|
+
export declare const LabelDeletedPayloadSchema: z.ZodObject<{
|
|
124
|
+
eventName: z.ZodLiteral<"label:deleted">;
|
|
125
|
+
eventData: z.ZodPipe<z.ZodObject<{
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
color: z.ZodString;
|
|
128
|
+
isFavorite: z.ZodBoolean;
|
|
129
|
+
name: z.ZodString;
|
|
130
|
+
itemOrder: z.ZodNullable<z.ZodNumber>;
|
|
131
|
+
isDeleted: z.ZodBoolean;
|
|
132
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
133
|
+
order: number | null;
|
|
134
|
+
id: string;
|
|
135
|
+
color: string;
|
|
136
|
+
isFavorite: boolean;
|
|
137
|
+
name: string;
|
|
138
|
+
isDeleted: boolean;
|
|
139
|
+
}, {
|
|
140
|
+
id: string;
|
|
141
|
+
color: string;
|
|
142
|
+
isFavorite: boolean;
|
|
143
|
+
name: string;
|
|
144
|
+
itemOrder: number | null;
|
|
145
|
+
isDeleted: boolean;
|
|
146
|
+
}>>;
|
|
147
|
+
version: z.ZodEnum<{
|
|
148
|
+
1: "1";
|
|
149
|
+
}>;
|
|
150
|
+
userId: z.ZodString;
|
|
151
|
+
initiator: z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
fullName: z.ZodString;
|
|
154
|
+
email: z.ZodString;
|
|
155
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
156
|
+
isPremium: z.ZodBoolean;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
export type LabelDeletedPayload = z.infer<typeof LabelDeletedPayloadSchema>;
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Enum-like object of project (`project:*`) webhook event names. Single
|
|
4
|
+
* source of truth for the discriminator values — `PROJECT_WEBHOOK_EVENTS`
|
|
5
|
+
* and every `z.literal()` below derive from it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ProjectWebhookEventEnum: {
|
|
8
|
+
readonly Added: "project:added";
|
|
9
|
+
readonly Updated: "project:updated";
|
|
10
|
+
readonly Deleted: "project:deleted";
|
|
11
|
+
readonly Archived: "project:archived";
|
|
12
|
+
readonly Unarchived: "project:unarchived";
|
|
13
|
+
};
|
|
14
|
+
/** Webhook events that carry a project as their `eventData`. */
|
|
15
|
+
export declare const PROJECT_WEBHOOK_EVENTS: readonly ["project:added", "project:updated", "project:deleted", "project:archived", "project:unarchived"];
|
|
16
|
+
/**
|
|
17
|
+
* Webhook project payloads match the shape of the shared {@link Project}
|
|
18
|
+
* resource — either a personal or a workspace project. No webhook-specific
|
|
19
|
+
* schema is needed; `ProjectSchema` already dispatches on `workspaceId`.
|
|
20
|
+
*/
|
|
21
|
+
export declare const ProjectAddedPayloadSchema: z.ZodObject<{
|
|
22
|
+
eventName: z.ZodLiteral<"project:added">;
|
|
23
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
24
|
+
url: string;
|
|
25
|
+
id: string;
|
|
26
|
+
canAssignTasks: boolean;
|
|
27
|
+
childOrder: number;
|
|
28
|
+
color: string;
|
|
29
|
+
createdAt: Date | null;
|
|
30
|
+
isArchived: boolean;
|
|
31
|
+
isDeleted: boolean;
|
|
32
|
+
isFavorite: boolean;
|
|
33
|
+
isFrozen: boolean;
|
|
34
|
+
name: string;
|
|
35
|
+
updatedAt: Date | null;
|
|
36
|
+
viewStyle: string;
|
|
37
|
+
defaultOrder: number;
|
|
38
|
+
description: string;
|
|
39
|
+
isCollapsed: boolean;
|
|
40
|
+
isShared: boolean;
|
|
41
|
+
parentId: string | null;
|
|
42
|
+
inboxProject: boolean;
|
|
43
|
+
orderKey?: string | null | undefined;
|
|
44
|
+
defaultOrderKey?: string | null | undefined;
|
|
45
|
+
} | {
|
|
46
|
+
url: string;
|
|
47
|
+
id: string;
|
|
48
|
+
canAssignTasks: boolean;
|
|
49
|
+
childOrder: number;
|
|
50
|
+
color: string;
|
|
51
|
+
createdAt: Date | null;
|
|
52
|
+
isArchived: boolean;
|
|
53
|
+
isDeleted: boolean;
|
|
54
|
+
isFavorite: boolean;
|
|
55
|
+
isFrozen: boolean;
|
|
56
|
+
name: string;
|
|
57
|
+
updatedAt: Date | null;
|
|
58
|
+
viewStyle: string;
|
|
59
|
+
defaultOrder: number;
|
|
60
|
+
description: string;
|
|
61
|
+
isCollapsed: boolean;
|
|
62
|
+
isShared: boolean;
|
|
63
|
+
collaboratorRoleDefault: string;
|
|
64
|
+
folderId: string | null;
|
|
65
|
+
isInviteOnly: boolean | null;
|
|
66
|
+
isLinkSharingEnabled: boolean;
|
|
67
|
+
role: string | null;
|
|
68
|
+
status: string;
|
|
69
|
+
workspaceId: string;
|
|
70
|
+
orderKey?: string | null | undefined;
|
|
71
|
+
defaultOrderKey?: string | null | undefined;
|
|
72
|
+
access?: {
|
|
73
|
+
visibility: "restricted" | "team" | "public";
|
|
74
|
+
} | undefined;
|
|
75
|
+
}, unknown>>;
|
|
76
|
+
version: z.ZodEnum<{
|
|
77
|
+
1: "1";
|
|
78
|
+
}>;
|
|
79
|
+
userId: z.ZodString;
|
|
80
|
+
initiator: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
fullName: z.ZodString;
|
|
83
|
+
email: z.ZodString;
|
|
84
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
85
|
+
isPremium: z.ZodBoolean;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type ProjectAddedPayload = z.infer<typeof ProjectAddedPayloadSchema>;
|
|
90
|
+
export declare const ProjectUpdatedPayloadSchema: z.ZodObject<{
|
|
91
|
+
eventName: z.ZodLiteral<"project:updated">;
|
|
92
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
93
|
+
url: string;
|
|
94
|
+
id: string;
|
|
95
|
+
canAssignTasks: boolean;
|
|
96
|
+
childOrder: number;
|
|
97
|
+
color: string;
|
|
98
|
+
createdAt: Date | null;
|
|
99
|
+
isArchived: boolean;
|
|
100
|
+
isDeleted: boolean;
|
|
101
|
+
isFavorite: boolean;
|
|
102
|
+
isFrozen: boolean;
|
|
103
|
+
name: string;
|
|
104
|
+
updatedAt: Date | null;
|
|
105
|
+
viewStyle: string;
|
|
106
|
+
defaultOrder: number;
|
|
107
|
+
description: string;
|
|
108
|
+
isCollapsed: boolean;
|
|
109
|
+
isShared: boolean;
|
|
110
|
+
parentId: string | null;
|
|
111
|
+
inboxProject: boolean;
|
|
112
|
+
orderKey?: string | null | undefined;
|
|
113
|
+
defaultOrderKey?: string | null | undefined;
|
|
114
|
+
} | {
|
|
115
|
+
url: string;
|
|
116
|
+
id: string;
|
|
117
|
+
canAssignTasks: boolean;
|
|
118
|
+
childOrder: number;
|
|
119
|
+
color: string;
|
|
120
|
+
createdAt: Date | null;
|
|
121
|
+
isArchived: boolean;
|
|
122
|
+
isDeleted: boolean;
|
|
123
|
+
isFavorite: boolean;
|
|
124
|
+
isFrozen: boolean;
|
|
125
|
+
name: string;
|
|
126
|
+
updatedAt: Date | null;
|
|
127
|
+
viewStyle: string;
|
|
128
|
+
defaultOrder: number;
|
|
129
|
+
description: string;
|
|
130
|
+
isCollapsed: boolean;
|
|
131
|
+
isShared: boolean;
|
|
132
|
+
collaboratorRoleDefault: string;
|
|
133
|
+
folderId: string | null;
|
|
134
|
+
isInviteOnly: boolean | null;
|
|
135
|
+
isLinkSharingEnabled: boolean;
|
|
136
|
+
role: string | null;
|
|
137
|
+
status: string;
|
|
138
|
+
workspaceId: string;
|
|
139
|
+
orderKey?: string | null | undefined;
|
|
140
|
+
defaultOrderKey?: string | null | undefined;
|
|
141
|
+
access?: {
|
|
142
|
+
visibility: "restricted" | "team" | "public";
|
|
143
|
+
} | undefined;
|
|
144
|
+
}, unknown>>;
|
|
145
|
+
version: z.ZodEnum<{
|
|
146
|
+
1: "1";
|
|
147
|
+
}>;
|
|
148
|
+
userId: z.ZodString;
|
|
149
|
+
initiator: z.ZodObject<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
fullName: z.ZodString;
|
|
152
|
+
email: z.ZodString;
|
|
153
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
154
|
+
isPremium: z.ZodBoolean;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export type ProjectUpdatedPayload = z.infer<typeof ProjectUpdatedPayloadSchema>;
|
|
159
|
+
export declare const ProjectDeletedPayloadSchema: z.ZodObject<{
|
|
160
|
+
eventName: z.ZodLiteral<"project:deleted">;
|
|
161
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
162
|
+
url: string;
|
|
163
|
+
id: string;
|
|
164
|
+
canAssignTasks: boolean;
|
|
165
|
+
childOrder: number;
|
|
166
|
+
color: string;
|
|
167
|
+
createdAt: Date | null;
|
|
168
|
+
isArchived: boolean;
|
|
169
|
+
isDeleted: boolean;
|
|
170
|
+
isFavorite: boolean;
|
|
171
|
+
isFrozen: boolean;
|
|
172
|
+
name: string;
|
|
173
|
+
updatedAt: Date | null;
|
|
174
|
+
viewStyle: string;
|
|
175
|
+
defaultOrder: number;
|
|
176
|
+
description: string;
|
|
177
|
+
isCollapsed: boolean;
|
|
178
|
+
isShared: boolean;
|
|
179
|
+
parentId: string | null;
|
|
180
|
+
inboxProject: boolean;
|
|
181
|
+
orderKey?: string | null | undefined;
|
|
182
|
+
defaultOrderKey?: string | null | undefined;
|
|
183
|
+
} | {
|
|
184
|
+
url: string;
|
|
185
|
+
id: string;
|
|
186
|
+
canAssignTasks: boolean;
|
|
187
|
+
childOrder: number;
|
|
188
|
+
color: string;
|
|
189
|
+
createdAt: Date | null;
|
|
190
|
+
isArchived: boolean;
|
|
191
|
+
isDeleted: boolean;
|
|
192
|
+
isFavorite: boolean;
|
|
193
|
+
isFrozen: boolean;
|
|
194
|
+
name: string;
|
|
195
|
+
updatedAt: Date | null;
|
|
196
|
+
viewStyle: string;
|
|
197
|
+
defaultOrder: number;
|
|
198
|
+
description: string;
|
|
199
|
+
isCollapsed: boolean;
|
|
200
|
+
isShared: boolean;
|
|
201
|
+
collaboratorRoleDefault: string;
|
|
202
|
+
folderId: string | null;
|
|
203
|
+
isInviteOnly: boolean | null;
|
|
204
|
+
isLinkSharingEnabled: boolean;
|
|
205
|
+
role: string | null;
|
|
206
|
+
status: string;
|
|
207
|
+
workspaceId: string;
|
|
208
|
+
orderKey?: string | null | undefined;
|
|
209
|
+
defaultOrderKey?: string | null | undefined;
|
|
210
|
+
access?: {
|
|
211
|
+
visibility: "restricted" | "team" | "public";
|
|
212
|
+
} | undefined;
|
|
213
|
+
}, unknown>>;
|
|
214
|
+
version: z.ZodEnum<{
|
|
215
|
+
1: "1";
|
|
216
|
+
}>;
|
|
217
|
+
userId: z.ZodString;
|
|
218
|
+
initiator: z.ZodObject<{
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
fullName: z.ZodString;
|
|
221
|
+
email: z.ZodString;
|
|
222
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
223
|
+
isPremium: z.ZodBoolean;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
export type ProjectDeletedPayload = z.infer<typeof ProjectDeletedPayloadSchema>;
|
|
228
|
+
export declare const ProjectArchivedPayloadSchema: z.ZodObject<{
|
|
229
|
+
eventName: z.ZodLiteral<"project:archived">;
|
|
230
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
231
|
+
url: string;
|
|
232
|
+
id: string;
|
|
233
|
+
canAssignTasks: boolean;
|
|
234
|
+
childOrder: number;
|
|
235
|
+
color: string;
|
|
236
|
+
createdAt: Date | null;
|
|
237
|
+
isArchived: boolean;
|
|
238
|
+
isDeleted: boolean;
|
|
239
|
+
isFavorite: boolean;
|
|
240
|
+
isFrozen: boolean;
|
|
241
|
+
name: string;
|
|
242
|
+
updatedAt: Date | null;
|
|
243
|
+
viewStyle: string;
|
|
244
|
+
defaultOrder: number;
|
|
245
|
+
description: string;
|
|
246
|
+
isCollapsed: boolean;
|
|
247
|
+
isShared: boolean;
|
|
248
|
+
parentId: string | null;
|
|
249
|
+
inboxProject: boolean;
|
|
250
|
+
orderKey?: string | null | undefined;
|
|
251
|
+
defaultOrderKey?: string | null | undefined;
|
|
252
|
+
} | {
|
|
253
|
+
url: string;
|
|
254
|
+
id: string;
|
|
255
|
+
canAssignTasks: boolean;
|
|
256
|
+
childOrder: number;
|
|
257
|
+
color: string;
|
|
258
|
+
createdAt: Date | null;
|
|
259
|
+
isArchived: boolean;
|
|
260
|
+
isDeleted: boolean;
|
|
261
|
+
isFavorite: boolean;
|
|
262
|
+
isFrozen: boolean;
|
|
263
|
+
name: string;
|
|
264
|
+
updatedAt: Date | null;
|
|
265
|
+
viewStyle: string;
|
|
266
|
+
defaultOrder: number;
|
|
267
|
+
description: string;
|
|
268
|
+
isCollapsed: boolean;
|
|
269
|
+
isShared: boolean;
|
|
270
|
+
collaboratorRoleDefault: string;
|
|
271
|
+
folderId: string | null;
|
|
272
|
+
isInviteOnly: boolean | null;
|
|
273
|
+
isLinkSharingEnabled: boolean;
|
|
274
|
+
role: string | null;
|
|
275
|
+
status: string;
|
|
276
|
+
workspaceId: string;
|
|
277
|
+
orderKey?: string | null | undefined;
|
|
278
|
+
defaultOrderKey?: string | null | undefined;
|
|
279
|
+
access?: {
|
|
280
|
+
visibility: "restricted" | "team" | "public";
|
|
281
|
+
} | undefined;
|
|
282
|
+
}, unknown>>;
|
|
283
|
+
version: z.ZodEnum<{
|
|
284
|
+
1: "1";
|
|
285
|
+
}>;
|
|
286
|
+
userId: z.ZodString;
|
|
287
|
+
initiator: z.ZodObject<{
|
|
288
|
+
id: z.ZodString;
|
|
289
|
+
fullName: z.ZodString;
|
|
290
|
+
email: z.ZodString;
|
|
291
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
292
|
+
isPremium: z.ZodBoolean;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
export type ProjectArchivedPayload = z.infer<typeof ProjectArchivedPayloadSchema>;
|
|
297
|
+
export declare const ProjectUnarchivedPayloadSchema: z.ZodObject<{
|
|
298
|
+
eventName: z.ZodLiteral<"project:unarchived">;
|
|
299
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
300
|
+
url: string;
|
|
301
|
+
id: string;
|
|
302
|
+
canAssignTasks: boolean;
|
|
303
|
+
childOrder: number;
|
|
304
|
+
color: string;
|
|
305
|
+
createdAt: Date | null;
|
|
306
|
+
isArchived: boolean;
|
|
307
|
+
isDeleted: boolean;
|
|
308
|
+
isFavorite: boolean;
|
|
309
|
+
isFrozen: boolean;
|
|
310
|
+
name: string;
|
|
311
|
+
updatedAt: Date | null;
|
|
312
|
+
viewStyle: string;
|
|
313
|
+
defaultOrder: number;
|
|
314
|
+
description: string;
|
|
315
|
+
isCollapsed: boolean;
|
|
316
|
+
isShared: boolean;
|
|
317
|
+
parentId: string | null;
|
|
318
|
+
inboxProject: boolean;
|
|
319
|
+
orderKey?: string | null | undefined;
|
|
320
|
+
defaultOrderKey?: string | null | undefined;
|
|
321
|
+
} | {
|
|
322
|
+
url: string;
|
|
323
|
+
id: string;
|
|
324
|
+
canAssignTasks: boolean;
|
|
325
|
+
childOrder: number;
|
|
326
|
+
color: string;
|
|
327
|
+
createdAt: Date | null;
|
|
328
|
+
isArchived: boolean;
|
|
329
|
+
isDeleted: boolean;
|
|
330
|
+
isFavorite: boolean;
|
|
331
|
+
isFrozen: boolean;
|
|
332
|
+
name: string;
|
|
333
|
+
updatedAt: Date | null;
|
|
334
|
+
viewStyle: string;
|
|
335
|
+
defaultOrder: number;
|
|
336
|
+
description: string;
|
|
337
|
+
isCollapsed: boolean;
|
|
338
|
+
isShared: boolean;
|
|
339
|
+
collaboratorRoleDefault: string;
|
|
340
|
+
folderId: string | null;
|
|
341
|
+
isInviteOnly: boolean | null;
|
|
342
|
+
isLinkSharingEnabled: boolean;
|
|
343
|
+
role: string | null;
|
|
344
|
+
status: string;
|
|
345
|
+
workspaceId: string;
|
|
346
|
+
orderKey?: string | null | undefined;
|
|
347
|
+
defaultOrderKey?: string | null | undefined;
|
|
348
|
+
access?: {
|
|
349
|
+
visibility: "restricted" | "team" | "public";
|
|
350
|
+
} | undefined;
|
|
351
|
+
}, unknown>>;
|
|
352
|
+
version: z.ZodEnum<{
|
|
353
|
+
1: "1";
|
|
354
|
+
}>;
|
|
355
|
+
userId: z.ZodString;
|
|
356
|
+
initiator: z.ZodObject<{
|
|
357
|
+
id: z.ZodString;
|
|
358
|
+
fullName: z.ZodString;
|
|
359
|
+
email: z.ZodString;
|
|
360
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
361
|
+
isPremium: z.ZodBoolean;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
export type ProjectUnarchivedPayload = z.infer<typeof ProjectUnarchivedPayloadSchema>;
|