@rossum/api-client 0.1.19 → 0.1.20

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 (80) hide show
  1. package/index.js +2 -0
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/src/deleteRecommendations/endpoints/list.js.map +1 -1
  5. package/src/deleteRecommendations/endpoints/list.schema.js +3 -1
  6. package/src/deleteRecommendations/endpoints/list.schema.js.map +1 -1
  7. package/src/documents/endpoints/downloads.js.map +1 -1
  8. package/src/documents/endpoints/downloads.schema.js +17 -5
  9. package/src/documents/endpoints/downloads.schema.js.map +1 -1
  10. package/src/hooks/models/hookUtils.schema.js +5 -1
  11. package/src/hooks/models/hookUtils.schema.js.map +1 -1
  12. package/src/hooks/models/log.schema.js +6 -0
  13. package/src/hooks/models/log.schema.js.map +1 -1
  14. package/src/inboxes/endpoints/index.js +2 -0
  15. package/src/inboxes/endpoints/index.js.map +1 -1
  16. package/src/inboxes/endpoints/list.js +17 -0
  17. package/src/inboxes/endpoints/list.js.map +1 -0
  18. package/src/inboxes/endpoints/list.schema.js +8 -0
  19. package/src/inboxes/endpoints/list.schema.js.map +1 -0
  20. package/src/internal/endpoints/generateRejectionEmail.js +15 -0
  21. package/src/internal/endpoints/generateRejectionEmail.js.map +1 -0
  22. package/src/internal/endpoints/generateRejectionEmail.schema.js +23 -0
  23. package/src/internal/endpoints/generateRejectionEmail.schema.js.map +1 -0
  24. package/src/internal/endpoints/index.js +2 -0
  25. package/src/internal/endpoints/index.js.map +1 -1
  26. package/src/models/annotationStatus.schema.js +1 -0
  27. package/src/models/annotationStatus.schema.js.map +1 -1
  28. package/src/queues/endpoints/upload.js +2 -1
  29. package/src/queues/endpoints/upload.js.map +1 -1
  30. package/src/tasks/endpoints/get.js +2 -1
  31. package/src/tasks/endpoints/get.js.map +1 -1
  32. package/src/tasks/models/asyncTask.schema.js +5 -1
  33. package/src/tasks/models/asyncTask.schema.js.map +1 -1
  34. package/src/uploads/endpoints/index.js +8 -0
  35. package/src/uploads/endpoints/index.js.map +1 -0
  36. package/src/uploads/endpoints/post.js +20 -0
  37. package/src/uploads/endpoints/post.js.map +1 -0
  38. package/src/uploads/endpoints/post.schema.js +12 -0
  39. package/src/uploads/endpoints/post.schema.js.map +1 -0
  40. package/src/utils/requestConfig.js +2 -1
  41. package/src/utils/requestConfig.js.map +1 -1
  42. package/types/index.d.ts +7 -2
  43. package/types/src/annotations/endpoints/list.schema.d.ts +3 -3
  44. package/types/src/annotations/endpoints/patch.schema.d.ts +3 -3
  45. package/types/src/annotations/models/annotation.schema.d.ts +3 -3
  46. package/types/src/annotations/models/annotationListResponse.d.ts +5 -5
  47. package/types/src/annotations/models/editPages.schema.d.ts +11 -11
  48. package/types/src/deleteRecommendations/endpoints/list.d.ts +3 -1
  49. package/types/src/deleteRecommendations/endpoints/list.schema.d.ts +7 -1
  50. package/types/src/documents/endpoints/downloads.d.ts +6 -0
  51. package/types/src/documents/endpoints/downloads.schema.d.ts +18 -2
  52. package/types/src/hookTemplates/models/hookTemplate.schema.d.ts +6 -6
  53. package/types/src/hooks/endpoints/logs.schema.d.ts +70 -0
  54. package/types/src/hooks/endpoints/patch.schema.d.ts +6 -6
  55. package/types/src/hooks/models/hook.schema.d.ts +9 -9
  56. package/types/src/hooks/models/hookUtils.d.ts +3 -2
  57. package/types/src/hooks/models/hookUtils.schema.d.ts +3 -2
  58. package/types/src/hooks/models/log.d.ts +7 -2
  59. package/types/src/hooks/models/log.schema.d.ts +42 -0
  60. package/types/src/inboxes/endpoints/index.d.ts +1 -0
  61. package/types/src/inboxes/endpoints/list.d.ts +7 -0
  62. package/types/src/inboxes/endpoints/list.schema.d.ts +8 -0
  63. package/types/src/internal/endpoints/generateRejectionEmail.d.ts +21 -0
  64. package/types/src/internal/endpoints/generateRejectionEmail.schema.d.ts +56 -0
  65. package/types/src/internal/endpoints/index.d.ts +1 -0
  66. package/types/src/models/annotationStatus.d.ts +1 -1
  67. package/types/src/models/annotationStatus.schema.d.ts +1 -1
  68. package/types/src/queues/endpoints/index.d.ts +1 -1
  69. package/types/src/queues/endpoints/patch.schema.d.ts +3 -3
  70. package/types/src/queues/endpoints/upload.d.ts +1 -1
  71. package/types/src/queues/models/queue.schema.d.ts +3 -3
  72. package/types/src/queues/models/queueCounts.schema.d.ts +1 -1
  73. package/types/src/tasks/endpoints/get.d.ts +1 -1
  74. package/types/src/tasks/endpoints/index.d.ts +1 -1
  75. package/types/src/tasks/models/asyncTask.d.ts +2 -1
  76. package/types/src/tasks/models/asyncTask.schema.d.ts +9 -4
  77. package/types/src/uploads/endpoints/index.d.ts +3 -0
  78. package/types/src/uploads/endpoints/post.d.ts +9 -0
  79. package/types/src/uploads/endpoints/post.schema.d.ts +15 -0
  80. package/types/src/utils/requestConfig.d.ts +1 -0
@@ -13,7 +13,7 @@ export declare const annotationPayloadSchema: z.ZodObject<{
13
13
  confirmedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  exportedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  assignedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>>;
16
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"created">, z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>>;
17
17
  rirPollId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
19
19
  type: z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warning">, z.ZodLiteral<"info">]>;
@@ -101,7 +101,7 @@ export declare const annotationPayloadSchema: z.ZodObject<{
101
101
  confirmedAt?: string | null | undefined;
102
102
  exportedAt?: string | null | undefined;
103
103
  assignedAt?: string | null | undefined;
104
- status?: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow" | undefined;
104
+ status?: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow" | undefined;
105
105
  rirPollId?: string | null | undefined;
106
106
  messages?: {
107
107
  type: "error" | "warning" | "info";
@@ -149,7 +149,7 @@ export declare const annotationPayloadSchema: z.ZodObject<{
149
149
  confirmedAt?: string | null | undefined;
150
150
  exportedAt?: string | null | undefined;
151
151
  assignedAt?: string | null | undefined;
152
- status?: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow" | undefined;
152
+ status?: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow" | undefined;
153
153
  rirPollId?: string | null | undefined;
154
154
  messages?: {
155
155
  type: "error" | "warning" | "info";
@@ -13,7 +13,7 @@ export declare const annotationSchema: z.ZodObject<{
13
13
  confirmedAt: z.ZodNullable<z.ZodString>;
14
14
  exportedAt: z.ZodNullable<z.ZodString>;
15
15
  assignedAt: z.ZodNullable<z.ZodString>;
16
- status: z.ZodUnion<[z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>;
16
+ status: z.ZodUnion<[z.ZodLiteral<"created">, z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>;
17
17
  rirPollId: z.ZodNullable<z.ZodString>;
18
18
  messages: z.ZodNullable<z.ZodArray<z.ZodObject<{
19
19
  type: z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warning">, z.ZodLiteral<"info">]>;
@@ -88,7 +88,7 @@ export declare const annotationSchema: z.ZodObject<{
88
88
  assignees: z.ZodArray<z.ZodString, "many">;
89
89
  labels: z.ZodArray<z.ZodString, "many">;
90
90
  }, "strip", z.ZodTypeAny, {
91
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
91
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
92
92
  document: string;
93
93
  assignees: string[];
94
94
  url: string;
@@ -136,7 +136,7 @@ export declare const annotationSchema: z.ZodObject<{
136
136
  hasEmailThreadWithReplies?: boolean | undefined;
137
137
  hasEmailThreadWithNewReplies?: boolean | undefined;
138
138
  }, {
139
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
139
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
140
140
  document: string;
141
141
  assignees: string[];
142
142
  url: string;
@@ -29,7 +29,7 @@ export declare const annotationListResponse: (sideload: SideloadOptions[]) => im
29
29
  confirmedAt: import("zod").ZodNullable<import("zod").ZodString>;
30
30
  exportedAt: import("zod").ZodNullable<import("zod").ZodString>;
31
31
  assignedAt: import("zod").ZodNullable<import("zod").ZodString>;
32
- status: import("zod").ZodUnion<[import("zod").ZodLiteral<"importing">, import("zod").ZodLiteral<"failed_import">, import("zod").ZodLiteral<"split">, import("zod").ZodLiteral<"to_review">, import("zod").ZodLiteral<"reviewing">, import("zod").ZodLiteral<"confirmed">, import("zod").ZodLiteral<"rejected">, import("zod").ZodLiteral<"exporting">, import("zod").ZodLiteral<"exported">, import("zod").ZodLiteral<"failed_export">, import("zod").ZodLiteral<"postponed">, import("zod").ZodLiteral<"deleted">, import("zod").ZodLiteral<"purged">, import("zod").ZodLiteral<"in_workflow">]>;
32
+ status: import("zod").ZodUnion<[import("zod").ZodLiteral<"created">, import("zod").ZodLiteral<"importing">, import("zod").ZodLiteral<"failed_import">, import("zod").ZodLiteral<"split">, import("zod").ZodLiteral<"to_review">, import("zod").ZodLiteral<"reviewing">, import("zod").ZodLiteral<"confirmed">, import("zod").ZodLiteral<"rejected">, import("zod").ZodLiteral<"exporting">, import("zod").ZodLiteral<"exported">, import("zod").ZodLiteral<"failed_export">, import("zod").ZodLiteral<"postponed">, import("zod").ZodLiteral<"deleted">, import("zod").ZodLiteral<"purged">, import("zod").ZodLiteral<"in_workflow">]>;
33
33
  rirPollId: import("zod").ZodNullable<import("zod").ZodString>;
34
34
  messages: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
35
35
  type: import("zod").ZodUnion<[import("zod").ZodLiteral<"error">, import("zod").ZodLiteral<"warning">, import("zod").ZodLiteral<"info">]>;
@@ -104,7 +104,7 @@ export declare const annotationListResponse: (sideload: SideloadOptions[]) => im
104
104
  assignees: import("zod").ZodArray<import("zod").ZodString, "many">;
105
105
  labels: import("zod").ZodArray<import("zod").ZodString, "many">;
106
106
  }, "strip", import("zod").ZodTypeAny, {
107
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
107
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
108
108
  document: string;
109
109
  assignees: string[];
110
110
  url: string;
@@ -152,7 +152,7 @@ export declare const annotationListResponse: (sideload: SideloadOptions[]) => im
152
152
  hasEmailThreadWithReplies?: boolean | undefined;
153
153
  hasEmailThreadWithNewReplies?: boolean | undefined;
154
154
  }, {
155
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
155
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
156
156
  document: string;
157
157
  assignees: string[];
158
158
  url: string;
@@ -596,7 +596,7 @@ export declare const annotationListResponse: (sideload: SideloadOptions[]) => im
596
596
  oidcId?: string | null | undefined;
597
597
  }[];
598
598
  results: {
599
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
599
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
600
600
  document: string;
601
601
  assignees: string[];
602
602
  url: string;
@@ -765,7 +765,7 @@ export declare const annotationListResponse: (sideload: SideloadOptions[]) => im
765
765
  oidcId?: string | null | undefined;
766
766
  }[];
767
767
  results: {
768
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
768
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
769
769
  document: string;
770
770
  assignees: string[];
771
771
  url: string;
@@ -13,7 +13,7 @@ export declare const editDataSourceSchema: z.ZodUnion<[z.ZodLiteral<"automation"
13
13
  export declare const accessibleChildAnnotationSchema: z.ZodObject<{
14
14
  url: z.ZodString;
15
15
  queue: z.ZodString;
16
- status: z.ZodUnion<[z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>;
16
+ status: z.ZodUnion<[z.ZodLiteral<"created">, z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>;
17
17
  started: z.ZodBoolean;
18
18
  originalFileName: z.ZodString;
19
19
  parentPages: z.ZodArray<z.ZodObject<{
@@ -27,7 +27,7 @@ export declare const accessibleChildAnnotationSchema: z.ZodObject<{
27
27
  rotationDeg: number;
28
28
  }>, "many">;
29
29
  }, "strip", z.ZodTypeAny, {
30
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
30
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
31
31
  url: string;
32
32
  queue: string;
33
33
  started: boolean;
@@ -37,7 +37,7 @@ export declare const accessibleChildAnnotationSchema: z.ZodObject<{
37
37
  rotationDeg: number;
38
38
  }[];
39
39
  }, {
40
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
40
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
41
41
  url: string;
42
42
  queue: string;
43
43
  started: boolean;
@@ -78,7 +78,7 @@ export declare const inaccessibleChildAnnotationSchema: z.ZodObject<{
78
78
  export declare const childAnnotationSchema: z.ZodUnion<[z.ZodObject<{
79
79
  url: z.ZodString;
80
80
  queue: z.ZodString;
81
- status: z.ZodUnion<[z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>;
81
+ status: z.ZodUnion<[z.ZodLiteral<"created">, z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>;
82
82
  started: z.ZodBoolean;
83
83
  originalFileName: z.ZodString;
84
84
  parentPages: z.ZodArray<z.ZodObject<{
@@ -92,7 +92,7 @@ export declare const childAnnotationSchema: z.ZodUnion<[z.ZodObject<{
92
92
  rotationDeg: number;
93
93
  }>, "many">;
94
94
  }, "strip", z.ZodTypeAny, {
95
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
95
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
96
96
  url: string;
97
97
  queue: string;
98
98
  started: boolean;
@@ -102,7 +102,7 @@ export declare const childAnnotationSchema: z.ZodUnion<[z.ZodObject<{
102
102
  rotationDeg: number;
103
103
  }[];
104
104
  }, {
105
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
105
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
106
106
  url: string;
107
107
  queue: string;
108
108
  started: boolean;
@@ -145,7 +145,7 @@ export declare const startEditPagesResponseSchema: z.ZodObject<{
145
145
  children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
146
146
  url: z.ZodString;
147
147
  queue: z.ZodString;
148
- status: z.ZodUnion<[z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>;
148
+ status: z.ZodUnion<[z.ZodLiteral<"created">, z.ZodLiteral<"importing">, z.ZodLiteral<"failed_import">, z.ZodLiteral<"split">, z.ZodLiteral<"to_review">, z.ZodLiteral<"reviewing">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">, z.ZodLiteral<"exporting">, z.ZodLiteral<"exported">, z.ZodLiteral<"failed_export">, z.ZodLiteral<"postponed">, z.ZodLiteral<"deleted">, z.ZodLiteral<"purged">, z.ZodLiteral<"in_workflow">]>;
149
149
  started: z.ZodBoolean;
150
150
  originalFileName: z.ZodString;
151
151
  parentPages: z.ZodArray<z.ZodObject<{
@@ -159,7 +159,7 @@ export declare const startEditPagesResponseSchema: z.ZodObject<{
159
159
  rotationDeg: number;
160
160
  }>, "many">;
161
161
  }, "strip", z.ZodTypeAny, {
162
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
162
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
163
163
  url: string;
164
164
  queue: string;
165
165
  started: boolean;
@@ -169,7 +169,7 @@ export declare const startEditPagesResponseSchema: z.ZodObject<{
169
169
  rotationDeg: number;
170
170
  }[];
171
171
  }, {
172
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
172
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
173
173
  url: string;
174
174
  queue: string;
175
175
  started: boolean;
@@ -210,7 +210,7 @@ export declare const startEditPagesResponseSchema: z.ZodObject<{
210
210
  parentAnnotation: string;
211
211
  sessionTimeout: string;
212
212
  children: ({
213
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
213
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
214
214
  url: string;
215
215
  queue: string;
216
216
  started: boolean;
@@ -231,7 +231,7 @@ export declare const startEditPagesResponseSchema: z.ZodObject<{
231
231
  parentAnnotation: string;
232
232
  sessionTimeout: string;
233
233
  children: ({
234
- status: "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
234
+ status: "created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow";
235
235
  url: string;
236
236
  queue: string;
237
237
  started: boolean;
@@ -1,5 +1,7 @@
1
1
  import { ListResponse } from '../../utils/listResponse';
2
2
  import { ElisRequestConfig } from '../../utils/requestConfig';
3
3
  import { DeleteRecommendation } from '../models';
4
- export type DeleteRecommendationListQueryEncoder = {};
4
+ export type DeleteRecommendationListQueryEncoder = {
5
+ queue?: number;
6
+ };
5
7
  export declare const list: (query?: DeleteRecommendationListQueryEncoder) => ElisRequestConfig<ListResponse<DeleteRecommendation>, DeleteRecommendationListQueryEncoder, never>;
@@ -1,2 +1,8 @@
1
1
  import { z } from 'zod';
2
- export declare const deleteRecommendationListQueryEncoderSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2
+ export declare const deleteRecommendationListQueryEncoderSchema: z.ZodObject<{
3
+ queue: z.ZodOptional<z.ZodNumber>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ queue?: number | undefined;
6
+ }, {
7
+ queue?: number | undefined;
8
+ }>;
@@ -7,8 +7,14 @@ export type DocumentsDownloadsQuery = {
7
7
  id: number[];
8
8
  fileName?: string | null;
9
9
  };
10
+ export type DocumentsDownloadsType = 'source_document' | 'document';
10
11
  export type DocumentsDownloadsPayload = {
11
12
  fileName: string;
12
13
  documents: Url[];
14
+ type?: DocumentsDownloadsType;
15
+ } | {
16
+ documents: readonly [Url];
17
+ zip: false;
18
+ type?: DocumentsDownloadsType;
13
19
  };
14
20
  export declare const downloads: (payload: DocumentsDownloadsPayload) => ElisRequestConfig<DocumentsDownloadsResponse, never, DocumentsDownloadsPayload>;
@@ -16,13 +16,29 @@ export declare const documentsDownloadsQuerySchema: z.ZodObject<{
16
16
  id: number[];
17
17
  fileName?: string | null | undefined;
18
18
  }>;
19
- export declare const documentsDownloadsPayloadSchema: z.ZodObject<{
19
+ export declare const documentsDownloadsTypeSchema: z.ZodUnion<[z.ZodLiteral<"source_document">, z.ZodLiteral<"document">]>;
20
+ export declare const documentsDownloadsPayloadSchema: z.ZodUnion<[z.ZodObject<{
20
21
  fileName: z.ZodString;
21
22
  documents: z.ZodArray<z.ZodString, "many">;
23
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"source_document">, z.ZodLiteral<"document">]>>;
22
24
  }, "strip", z.ZodTypeAny, {
23
25
  documents: string[];
24
26
  fileName: string;
27
+ type?: "document" | "source_document" | undefined;
25
28
  }, {
26
29
  documents: string[];
27
30
  fileName: string;
28
- }>;
31
+ type?: "document" | "source_document" | undefined;
32
+ }>, z.ZodObject<{
33
+ documents: z.ZodAny;
34
+ zip: z.ZodLiteral<false>;
35
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"source_document">, z.ZodLiteral<"document">]>>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ zip: false;
38
+ documents?: any;
39
+ type?: "document" | "source_document" | undefined;
40
+ }, {
41
+ zip: false;
42
+ documents?: any;
43
+ type?: "document" | "source_document" | undefined;
44
+ }>]>;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const hookTemplateSchema: z.ZodUnion<[z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  url: z.ZodString;
5
- events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
5
+ events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"upload.created">, z.ZodLiteral<"upload">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
6
6
  sideload: z.ZodArray<z.ZodString, "many">;
7
7
  metadata: z.ZodOptional<z.ZodUnknown>;
8
8
  test: z.ZodOptional<z.ZodUnknown>;
@@ -34,7 +34,7 @@ export declare const hookTemplateSchema: z.ZodUnion<[z.ZodIntersection<z.ZodInte
34
34
  name: string;
35
35
  sideload: string[];
36
36
  description: string;
37
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
37
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
38
38
  extensionSource: "custom" | "rossum_store";
39
39
  guide: string;
40
40
  readMoreUrl: string | null;
@@ -56,7 +56,7 @@ export declare const hookTemplateSchema: z.ZodUnion<[z.ZodIntersection<z.ZodInte
56
56
  name: string;
57
57
  sideload: string[];
58
58
  description: string;
59
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
59
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
60
60
  extensionSource: "custom" | "rossum_store";
61
61
  guide: string;
62
62
  readMoreUrl: string | null;
@@ -186,7 +186,7 @@ export declare const hookTemplateSchema: z.ZodUnion<[z.ZodIntersection<z.ZodInte
186
186
  }>>, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
187
187
  name: z.ZodString;
188
188
  url: z.ZodString;
189
- events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
189
+ events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"upload.created">, z.ZodLiteral<"upload">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
190
190
  sideload: z.ZodArray<z.ZodString, "many">;
191
191
  metadata: z.ZodOptional<z.ZodUnknown>;
192
192
  test: z.ZodOptional<z.ZodUnknown>;
@@ -218,7 +218,7 @@ export declare const hookTemplateSchema: z.ZodUnion<[z.ZodIntersection<z.ZodInte
218
218
  name: string;
219
219
  sideload: string[];
220
220
  description: string;
221
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
221
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
222
222
  extensionSource: "custom" | "rossum_store";
223
223
  guide: string;
224
224
  readMoreUrl: string | null;
@@ -240,7 +240,7 @@ export declare const hookTemplateSchema: z.ZodUnion<[z.ZodIntersection<z.ZodInte
240
240
  name: string;
241
241
  sideload: string[];
242
242
  description: string;
243
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
243
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
244
244
  extensionSource: "custom" | "rossum_store";
245
245
  guide: string;
246
246
  readMoreUrl: string | null;
@@ -148,6 +148,48 @@ export declare const logsSchema: z.ZodObject<{
148
148
  request: string | null;
149
149
  response: string | null;
150
150
  queueId?: number | null | undefined;
151
+ }>, z.ZodObject<{
152
+ emailId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
153
+ event: z.ZodLiteral<"upload">;
154
+ action: z.ZodLiteral<"created">;
155
+ }, "strip", z.ZodTypeAny, {
156
+ event: "upload";
157
+ action: "created";
158
+ emailId?: number | null | undefined;
159
+ }, {
160
+ event: "upload";
161
+ action: "created";
162
+ emailId?: number | null | undefined;
163
+ }>>, z.ZodIntersection<z.ZodObject<{
164
+ hookId: z.ZodNumber;
165
+ hookType: z.ZodUnion<[z.ZodLiteral<"webhook">, z.ZodLiteral<"function">]>;
166
+ logLevel: z.ZodUnion<[z.ZodLiteral<"INFO">, z.ZodLiteral<"WARNING">, z.ZodLiteral<"ERROR">]>;
167
+ message: z.ZodString;
168
+ queueId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
169
+ request: z.ZodNullable<z.ZodString>;
170
+ requestId: z.ZodString;
171
+ response: z.ZodNullable<z.ZodString>;
172
+ timestamp: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ message: string;
175
+ hookId: number;
176
+ requestId: string;
177
+ timestamp: string;
178
+ hookType: "function" | "webhook";
179
+ logLevel: "INFO" | "WARNING" | "ERROR";
180
+ request: string | null;
181
+ response: string | null;
182
+ queueId?: number | null | undefined;
183
+ }, {
184
+ message: string;
185
+ hookId: number;
186
+ requestId: string;
187
+ timestamp: string;
188
+ hookType: "function" | "webhook";
189
+ logLevel: "INFO" | "WARNING" | "ERROR";
190
+ request: string | null;
191
+ response: string | null;
192
+ queueId?: number | null | undefined;
151
193
  }>, z.ZodObject<{
152
194
  emailId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
153
195
  event: z.ZodLiteral<"email">;
@@ -239,6 +281,20 @@ export declare const logsSchema: z.ZodObject<{
239
281
  request: string | null;
240
282
  response: string | null;
241
283
  queueId?: number | null | undefined;
284
+ } & {
285
+ event: "upload";
286
+ action: "created";
287
+ emailId?: number | null | undefined;
288
+ }) | ({
289
+ message: string;
290
+ hookId: number;
291
+ requestId: string;
292
+ timestamp: string;
293
+ hookType: "function" | "webhook";
294
+ logLevel: "INFO" | "WARNING" | "ERROR";
295
+ request: string | null;
296
+ response: string | null;
297
+ queueId?: number | null | undefined;
242
298
  } & {
243
299
  event: "email";
244
300
  action: "received";
@@ -296,6 +352,20 @@ export declare const logsSchema: z.ZodObject<{
296
352
  request: string | null;
297
353
  response: string | null;
298
354
  queueId?: number | null | undefined;
355
+ } & {
356
+ event: "upload";
357
+ action: "created";
358
+ emailId?: number | null | undefined;
359
+ }) | ({
360
+ message: string;
361
+ hookId: number;
362
+ requestId: string;
363
+ timestamp: string;
364
+ hookType: "function" | "webhook";
365
+ logLevel: "INFO" | "WARNING" | "ERROR";
366
+ request: string | null;
367
+ response: string | null;
368
+ queueId?: number | null | undefined;
299
369
  } & {
300
370
  event: "email";
301
371
  action: "received";
@@ -108,7 +108,7 @@ export declare const hookPatchPayloadSchema: z.ZodUnion<[z.ZodIntersection<z.Zod
108
108
  queues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
109
109
  runAfter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
110
  active: z.ZodOptional<z.ZodBoolean>;
111
- events: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">>;
111
+ events: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"upload.created">, z.ZodLiteral<"upload">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">>;
112
112
  sideload: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
113
113
  metadata: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
114
114
  tokenOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -129,7 +129,7 @@ export declare const hookPatchPayloadSchema: z.ZodUnion<[z.ZodIntersection<z.Zod
129
129
  queues?: string[] | undefined;
130
130
  runAfter?: string[] | undefined;
131
131
  active?: boolean | undefined;
132
- events?: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[] | undefined;
132
+ events?: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[] | undefined;
133
133
  sideload?: string[] | undefined;
134
134
  metadata?: unknown;
135
135
  tokenOwner?: string | null | undefined;
@@ -150,7 +150,7 @@ export declare const hookPatchPayloadSchema: z.ZodUnion<[z.ZodIntersection<z.Zod
150
150
  queues?: string[] | undefined;
151
151
  runAfter?: string[] | undefined;
152
152
  active?: boolean | undefined;
153
- events?: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[] | undefined;
153
+ events?: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[] | undefined;
154
154
  sideload?: string[] | undefined;
155
155
  metadata?: unknown;
156
156
  tokenOwner?: string | null | undefined;
@@ -272,7 +272,7 @@ export declare const hookPatchPayloadSchema: z.ZodUnion<[z.ZodIntersection<z.Zod
272
272
  queues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
273
273
  runAfter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
274
274
  active: z.ZodOptional<z.ZodBoolean>;
275
- events: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">>;
275
+ events: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"upload.created">, z.ZodLiteral<"upload">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">>;
276
276
  sideload: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
277
  metadata: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
278
278
  tokenOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -293,7 +293,7 @@ export declare const hookPatchPayloadSchema: z.ZodUnion<[z.ZodIntersection<z.Zod
293
293
  queues?: string[] | undefined;
294
294
  runAfter?: string[] | undefined;
295
295
  active?: boolean | undefined;
296
- events?: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[] | undefined;
296
+ events?: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[] | undefined;
297
297
  sideload?: string[] | undefined;
298
298
  metadata?: unknown;
299
299
  tokenOwner?: string | null | undefined;
@@ -314,7 +314,7 @@ export declare const hookPatchPayloadSchema: z.ZodUnion<[z.ZodIntersection<z.Zod
314
314
  queues?: string[] | undefined;
315
315
  runAfter?: string[] | undefined;
316
316
  active?: boolean | undefined;
317
- events?: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[] | undefined;
317
+ events?: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[] | undefined;
318
318
  sideload?: string[] | undefined;
319
319
  metadata?: unknown;
320
320
  tokenOwner?: string | null | undefined;
@@ -6,7 +6,7 @@ export declare const hookBaseSchema: z.ZodObject<{
6
6
  queues: z.ZodArray<z.ZodString, "many">;
7
7
  runAfter: z.ZodArray<z.ZodString, "many">;
8
8
  active: z.ZodBoolean;
9
- events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
9
+ events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"upload.created">, z.ZodLiteral<"upload">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
10
10
  sideload: z.ZodArray<z.ZodString, "many">;
11
11
  metadata: z.ZodOptional<z.ZodUnknown>;
12
12
  tokenOwner: z.ZodNullable<z.ZodString>;
@@ -29,7 +29,7 @@ export declare const hookBaseSchema: z.ZodObject<{
29
29
  description: string | null;
30
30
  runAfter: string[];
31
31
  active: boolean;
32
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
32
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
33
33
  tokenOwner: string | null;
34
34
  extensionSource: "custom" | "rossum_store";
35
35
  guide: string | null;
@@ -50,7 +50,7 @@ export declare const hookBaseSchema: z.ZodObject<{
50
50
  description: string | null;
51
51
  runAfter: string[];
52
52
  active: boolean;
53
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
53
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
54
54
  tokenOwner: string | null;
55
55
  extensionSource: "custom" | "rossum_store";
56
56
  guide: string | null;
@@ -71,7 +71,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
71
71
  queues: z.ZodArray<z.ZodString, "many">;
72
72
  runAfter: z.ZodArray<z.ZodString, "many">;
73
73
  active: z.ZodBoolean;
74
- events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
74
+ events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"upload.created">, z.ZodLiteral<"upload">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
75
75
  sideload: z.ZodArray<z.ZodString, "many">;
76
76
  metadata: z.ZodOptional<z.ZodUnknown>;
77
77
  tokenOwner: z.ZodNullable<z.ZodString>;
@@ -94,7 +94,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
94
94
  description: string | null;
95
95
  runAfter: string[];
96
96
  active: boolean;
97
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
97
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
98
98
  tokenOwner: string | null;
99
99
  extensionSource: "custom" | "rossum_store";
100
100
  guide: string | null;
@@ -115,7 +115,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
115
115
  description: string | null;
116
116
  runAfter: string[];
117
117
  active: boolean;
118
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
118
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
119
119
  tokenOwner: string | null;
120
120
  extensionSource: "custom" | "rossum_store";
121
121
  guide: string | null;
@@ -235,7 +235,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
235
235
  queues: z.ZodArray<z.ZodString, "many">;
236
236
  runAfter: z.ZodArray<z.ZodString, "many">;
237
237
  active: z.ZodBoolean;
238
- events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
238
+ events: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"annotation_content.confirm">, z.ZodLiteral<"annotation_content.export">, z.ZodLiteral<"annotation_content.initialize">, z.ZodLiteral<"annotation_content.started">, z.ZodLiteral<"annotation_content.updated">, z.ZodLiteral<"annotation_content.user_update">, z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status.changed">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"upload.created">, z.ZodLiteral<"upload">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation">]>, "many">;
239
239
  sideload: z.ZodArray<z.ZodString, "many">;
240
240
  metadata: z.ZodOptional<z.ZodUnknown>;
241
241
  tokenOwner: z.ZodNullable<z.ZodString>;
@@ -258,7 +258,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
258
258
  description: string | null;
259
259
  runAfter: string[];
260
260
  active: boolean;
261
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
261
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
262
262
  tokenOwner: string | null;
263
263
  extensionSource: "custom" | "rossum_store";
264
264
  guide: string | null;
@@ -279,7 +279,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
279
279
  description: string | null;
280
280
  runAfter: string[];
281
281
  active: boolean;
282
- events: ("email" | "annotation_content" | "annotation_status" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
282
+ events: ("email" | "annotation_content" | "annotation_status" | "upload" | "invocation" | "annotation_content.confirm" | "annotation_content.export" | "annotation_content.initialize" | "annotation_content.started" | "annotation_content.updated" | "annotation_content.user_update" | "annotation_status.changed" | "upload.created" | "email.received" | "invocation.manual" | "invocation.scheduled")[];
283
283
  tokenOwner: string | null;
284
284
  extensionSource: "custom" | "rossum_store";
285
285
  guide: string | null;