@rossum/api-client 0.1.18 → 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 (86) hide show
  1. package/index.js +2 -0
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/src/annotations/models/annotationData.schema.js +21 -54
  5. package/src/annotations/models/annotationData.schema.js.map +1 -1
  6. package/src/deleteRecommendations/endpoints/list.js.map +1 -1
  7. package/src/deleteRecommendations/endpoints/list.schema.js +3 -1
  8. package/src/deleteRecommendations/endpoints/list.schema.js.map +1 -1
  9. package/src/documents/endpoints/downloads.js.map +1 -1
  10. package/src/documents/endpoints/downloads.schema.js +17 -5
  11. package/src/documents/endpoints/downloads.schema.js.map +1 -1
  12. package/src/hooks/models/hookUtils.schema.js +5 -1
  13. package/src/hooks/models/hookUtils.schema.js.map +1 -1
  14. package/src/hooks/models/log.schema.js +6 -0
  15. package/src/hooks/models/log.schema.js.map +1 -1
  16. package/src/inboxes/endpoints/index.js +2 -0
  17. package/src/inboxes/endpoints/index.js.map +1 -1
  18. package/src/inboxes/endpoints/list.js +17 -0
  19. package/src/inboxes/endpoints/list.js.map +1 -0
  20. package/src/inboxes/endpoints/list.schema.js +8 -0
  21. package/src/inboxes/endpoints/list.schema.js.map +1 -0
  22. package/src/internal/endpoints/generateRejectionEmail.js +15 -0
  23. package/src/internal/endpoints/generateRejectionEmail.js.map +1 -0
  24. package/src/internal/endpoints/generateRejectionEmail.schema.js +23 -0
  25. package/src/internal/endpoints/generateRejectionEmail.schema.js.map +1 -0
  26. package/src/internal/endpoints/index.js +2 -0
  27. package/src/internal/endpoints/index.js.map +1 -1
  28. package/src/models/annotationStatus.schema.js +1 -0
  29. package/src/models/annotationStatus.schema.js.map +1 -1
  30. package/src/queues/endpoints/upload.js +2 -1
  31. package/src/queues/endpoints/upload.js.map +1 -1
  32. package/src/tasks/endpoints/get.js +2 -1
  33. package/src/tasks/endpoints/get.js.map +1 -1
  34. package/src/tasks/models/asyncTask.schema.js +5 -1
  35. package/src/tasks/models/asyncTask.schema.js.map +1 -1
  36. package/src/uploads/endpoints/index.js +8 -0
  37. package/src/uploads/endpoints/index.js.map +1 -0
  38. package/src/uploads/endpoints/post.js +20 -0
  39. package/src/uploads/endpoints/post.js.map +1 -0
  40. package/src/uploads/endpoints/post.schema.js +12 -0
  41. package/src/uploads/endpoints/post.schema.js.map +1 -0
  42. package/src/utils/requestConfig.js +2 -1
  43. package/src/utils/requestConfig.js.map +1 -1
  44. package/types/index.d.ts +7 -2
  45. package/types/src/annotations/endpoints/list.schema.d.ts +3 -3
  46. package/types/src/annotations/endpoints/patch.schema.d.ts +3 -3
  47. package/types/src/annotations/endpoints/validate.schema.d.ts +170 -170
  48. package/types/src/annotations/models/annotation.schema.d.ts +3 -3
  49. package/types/src/annotations/models/annotationData.d.ts +20 -48
  50. package/types/src/annotations/models/annotationData.schema.d.ts +1950 -1950
  51. package/types/src/annotations/models/annotationListResponse.d.ts +73 -73
  52. package/types/src/annotations/models/annotationListResponse.schema.d.ts +68 -68
  53. package/types/src/annotations/models/editPages.schema.d.ts +11 -11
  54. package/types/src/deleteRecommendations/endpoints/list.d.ts +3 -1
  55. package/types/src/deleteRecommendations/endpoints/list.schema.d.ts +7 -1
  56. package/types/src/documents/endpoints/downloads.d.ts +6 -0
  57. package/types/src/documents/endpoints/downloads.schema.d.ts +18 -2
  58. package/types/src/hookTemplates/models/hookTemplate.schema.d.ts +6 -6
  59. package/types/src/hooks/endpoints/logs.schema.d.ts +70 -0
  60. package/types/src/hooks/endpoints/patch.schema.d.ts +6 -6
  61. package/types/src/hooks/models/hook.schema.d.ts +9 -9
  62. package/types/src/hooks/models/hookUtils.d.ts +3 -2
  63. package/types/src/hooks/models/hookUtils.schema.d.ts +3 -2
  64. package/types/src/hooks/models/log.d.ts +7 -2
  65. package/types/src/hooks/models/log.schema.d.ts +42 -0
  66. package/types/src/inboxes/endpoints/index.d.ts +1 -0
  67. package/types/src/inboxes/endpoints/list.d.ts +7 -0
  68. package/types/src/inboxes/endpoints/list.schema.d.ts +8 -0
  69. package/types/src/internal/endpoints/generateRejectionEmail.d.ts +21 -0
  70. package/types/src/internal/endpoints/generateRejectionEmail.schema.d.ts +56 -0
  71. package/types/src/internal/endpoints/index.d.ts +1 -0
  72. package/types/src/models/annotationStatus.d.ts +1 -1
  73. package/types/src/models/annotationStatus.schema.d.ts +1 -1
  74. package/types/src/queues/endpoints/index.d.ts +1 -1
  75. package/types/src/queues/endpoints/patch.schema.d.ts +3 -3
  76. package/types/src/queues/endpoints/upload.d.ts +1 -1
  77. package/types/src/queues/models/queue.schema.d.ts +3 -3
  78. package/types/src/queues/models/queueCounts.schema.d.ts +1 -1
  79. package/types/src/tasks/endpoints/get.d.ts +1 -1
  80. package/types/src/tasks/endpoints/index.d.ts +1 -1
  81. package/types/src/tasks/models/asyncTask.d.ts +2 -1
  82. package/types/src/tasks/models/asyncTask.schema.d.ts +9 -4
  83. package/types/src/uploads/endpoints/index.d.ts +3 -0
  84. package/types/src/uploads/endpoints/post.d.ts +9 -0
  85. package/types/src/uploads/endpoints/post.schema.d.ts +15 -0
  86. package/types/src/utils/requestConfig.d.ts +1 -0
@@ -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;
@@ -1,9 +1,10 @@
1
- export type ExtensionEventGroup = 'annotation_content' | 'annotation_status' | 'email' | 'invocation';
1
+ export type ExtensionEventGroup = 'annotation_content' | 'annotation_status' | 'upload' | 'email' | 'invocation';
2
2
  export type AnnotationContentAction = 'confirm' | 'export' | 'initialize' | 'started' | 'updated' | 'user_update';
3
+ export type UploadAction = 'created';
3
4
  export type AnnotationStatusAction = 'changed';
4
5
  export type EmailAction = 'received';
5
6
  export type InvocationAction = 'manual' | 'scheduled';
6
- export type ExtensionEvent = 'annotation_content.confirm' | 'annotation_content.export' | 'annotation_content.initialize' | 'annotation_content.started' | 'annotation_content.updated' | 'annotation_content.user_update' | 'annotation_content' | 'annotation_status.changed' | 'annotation_status' | 'email.received' | 'email' | 'invocation.manual' | 'invocation.scheduled' | 'invocation';
7
+ export type ExtensionEvent = 'annotation_content.confirm' | 'annotation_content.export' | 'annotation_content.initialize' | 'annotation_content.started' | 'annotation_content.updated' | 'annotation_content.user_update' | 'annotation_content' | 'annotation_status.changed' | 'annotation_status' | 'upload.created' | 'upload' | 'email.received' | 'email' | 'invocation.manual' | 'invocation.scheduled' | 'invocation';
7
8
  export type FunctionRuntime = 'nodejs18.x' | 'python3.8' | 'nodejs12.x';
8
9
  export type SideloadValue = 'queues' | 'modifiers' | 'schemas';
9
10
  export type ExtensionSource = 'rossum_store' | 'custom';
@@ -1,10 +1,11 @@
1
1
  import { z } from 'zod';
2
- export declare const extensionEventGroupSchema: z.ZodUnion<[z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation">]>;
2
+ export declare const extensionEventGroupSchema: z.ZodUnion<[z.ZodLiteral<"annotation_content">, z.ZodLiteral<"annotation_status">, z.ZodLiteral<"upload">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation">]>;
3
3
  export declare const annotationContentActionSchema: z.ZodUnion<[z.ZodLiteral<"confirm">, z.ZodLiteral<"export">, z.ZodLiteral<"initialize">, z.ZodLiteral<"started">, z.ZodLiteral<"updated">, z.ZodLiteral<"user_update">]>;
4
+ export declare const uploadActionSchema: z.ZodLiteral<"created">;
4
5
  export declare const annotationStatusActionSchema: z.ZodLiteral<"changed">;
5
6
  export declare const emailActionSchema: z.ZodLiteral<"received">;
6
7
  export declare const invocationActionSchema: z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"scheduled">]>;
7
- export declare const extensionEventSchema: 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">]>;
8
+ export declare const extensionEventSchema: 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">]>;
8
9
  export declare const functionRuntimeSchema: z.ZodUnion<[z.ZodLiteral<"nodejs18.x">, z.ZodLiteral<"python3.8">, z.ZodLiteral<"nodejs12.x">]>;
9
10
  export declare const sideloadValueSchema: z.ZodUnion<[z.ZodLiteral<"queues">, z.ZodLiteral<"modifiers">, z.ZodLiteral<"schemas">]>;
10
11
  export declare const extensionSourceSchema: z.ZodUnion<[z.ZodLiteral<"rossum_store">, z.ZodLiteral<"custom">]>;
@@ -1,5 +1,5 @@
1
1
  import { HookType } from './hook';
2
- import { AnnotationContentAction, AnnotationStatusAction, EmailAction, InvocationAction } from './hookUtils';
2
+ import { AnnotationContentAction, AnnotationStatusAction, UploadAction, EmailAction, InvocationAction } from './hookUtils';
3
3
  export type LogLevel = 'INFO' | 'WARNING' | 'ERROR';
4
4
  type LogRequest = string;
5
5
  type LogResponse = string;
@@ -13,6 +13,11 @@ type AnnotationStatusLog = LogBase & {
13
13
  event: 'annotation_status';
14
14
  action: AnnotationStatusAction;
15
15
  };
16
+ type UploadLog = LogBase & {
17
+ emailId?: number | null;
18
+ event: 'upload';
19
+ action: UploadAction;
20
+ };
16
21
  type EmailLog = LogBase & {
17
22
  emailId?: number | null;
18
23
  event: 'email';
@@ -33,5 +38,5 @@ type LogBase = {
33
38
  response: LogResponse | null;
34
39
  timestamp: string;
35
40
  };
36
- export type Log = AnnotationContentLog | AnnotationStatusLog | EmailLog | InvocationLog;
41
+ export type Log = AnnotationContentLog | AnnotationStatusLog | UploadLog | EmailLog | InvocationLog;
37
42
  export {};
@@ -114,6 +114,48 @@ export declare const logSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
114
114
  request: string | null;
115
115
  response: string | null;
116
116
  queueId?: number | null | undefined;
117
+ }>, z.ZodObject<{
118
+ emailId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
119
+ event: z.ZodLiteral<"upload">;
120
+ action: z.ZodLiteral<"created">;
121
+ }, "strip", z.ZodTypeAny, {
122
+ event: "upload";
123
+ action: "created";
124
+ emailId?: number | null | undefined;
125
+ }, {
126
+ event: "upload";
127
+ action: "created";
128
+ emailId?: number | null | undefined;
129
+ }>>, z.ZodIntersection<z.ZodObject<{
130
+ hookId: z.ZodNumber;
131
+ hookType: z.ZodUnion<[z.ZodLiteral<"webhook">, z.ZodLiteral<"function">]>;
132
+ logLevel: z.ZodUnion<[z.ZodLiteral<"INFO">, z.ZodLiteral<"WARNING">, z.ZodLiteral<"ERROR">]>;
133
+ message: z.ZodString;
134
+ queueId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
135
+ request: z.ZodNullable<z.ZodString>;
136
+ requestId: z.ZodString;
137
+ response: z.ZodNullable<z.ZodString>;
138
+ timestamp: z.ZodString;
139
+ }, "strip", z.ZodTypeAny, {
140
+ message: string;
141
+ hookId: number;
142
+ requestId: string;
143
+ timestamp: string;
144
+ hookType: "function" | "webhook";
145
+ logLevel: "INFO" | "WARNING" | "ERROR";
146
+ request: string | null;
147
+ response: string | null;
148
+ queueId?: number | null | undefined;
149
+ }, {
150
+ message: string;
151
+ hookId: number;
152
+ requestId: string;
153
+ timestamp: string;
154
+ hookType: "function" | "webhook";
155
+ logLevel: "INFO" | "WARNING" | "ERROR";
156
+ request: string | null;
157
+ response: string | null;
158
+ queueId?: number | null | undefined;
117
159
  }>, z.ZodObject<{
118
160
  emailId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
119
161
  event: z.ZodLiteral<"email">;
@@ -2,4 +2,5 @@ export declare const inboxes: {
2
2
  create: (payload: import("./create").CreateInboxPayload) => import("../../utils/requestConfig").ElisRequestConfig<import("../models").Inbox, never, import("./create").CreateInboxPayload>;
3
3
  get: (inboxId: number) => import("../../utils/requestConfig").ElisRequestConfig<import("../models").Inbox, never, never>;
4
4
  patch: (inboxId: number, payload?: import("./patch").InboxPatchPayload) => import("../../utils/requestConfig").ElisRequestConfig<import("../models").Inbox, never, import("./patch").InboxPatchPayload>;
5
+ list: (query: import("./list").ListInboxesQuery) => import("../../utils/requestConfig").ElisRequestConfig<import("../../utils/listResponse").ListResponse<import("../models").Inbox>, import("./list").ListInboxesQuery, never>;
5
6
  };
@@ -0,0 +1,7 @@
1
+ import { ListResponse } from '../../utils/listResponse';
2
+ import { ElisRequestConfig } from '../../utils/requestConfig';
3
+ import { Inbox } from '../models';
4
+ export type ListInboxesQuery = {
5
+ page?: number;
6
+ };
7
+ export declare const list: (query: ListInboxesQuery) => ElisRequestConfig<ListResponse<Inbox>, ListInboxesQuery, never>;
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ export declare const listInboxesQuerySchema: z.ZodObject<{
3
+ page: z.ZodOptional<z.ZodNumber>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ page?: number | undefined;
6
+ }, {
7
+ page?: number | undefined;
8
+ }>;
@@ -0,0 +1,21 @@
1
+ import { Url } from '../../types';
2
+ import { ElisRequestConfig } from '../../utils/requestConfig';
3
+ export type GenerateResponse = {
4
+ emailBody: string;
5
+ };
6
+ type ContextMessage = {
7
+ label: string;
8
+ content: string;
9
+ };
10
+ type ContextOptions = {
11
+ short: boolean;
12
+ friendly: boolean;
13
+ regenerate: boolean;
14
+ };
15
+ export type GenerateRejectionPayload = {
16
+ annotation: Url;
17
+ messages: ContextMessage[];
18
+ options: ContextOptions;
19
+ };
20
+ export declare const generateRejectionEmail: (payload: GenerateRejectionPayload) => ElisRequestConfig<GenerateResponse, never, GenerateRejectionPayload>;
21
+ export {};
@@ -0,0 +1,56 @@
1
+ import { z } from 'zod';
2
+ export declare const generateResponseSchema: z.ZodObject<{
3
+ emailBody: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ emailBody: string;
6
+ }, {
7
+ emailBody: string;
8
+ }>;
9
+ export declare const generateRejectionPayloadSchema: z.ZodObject<{
10
+ annotation: z.ZodString;
11
+ messages: z.ZodArray<z.ZodObject<{
12
+ label: z.ZodString;
13
+ content: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ content: string;
16
+ label: string;
17
+ }, {
18
+ content: string;
19
+ label: string;
20
+ }>, "many">;
21
+ options: z.ZodObject<{
22
+ short: z.ZodBoolean;
23
+ friendly: z.ZodBoolean;
24
+ regenerate: z.ZodBoolean;
25
+ }, "strip", z.ZodTypeAny, {
26
+ short: boolean;
27
+ friendly: boolean;
28
+ regenerate: boolean;
29
+ }, {
30
+ short: boolean;
31
+ friendly: boolean;
32
+ regenerate: boolean;
33
+ }>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ options: {
36
+ short: boolean;
37
+ friendly: boolean;
38
+ regenerate: boolean;
39
+ };
40
+ annotation: string;
41
+ messages: {
42
+ content: string;
43
+ label: string;
44
+ }[];
45
+ }, {
46
+ options: {
47
+ short: boolean;
48
+ friendly: boolean;
49
+ regenerate: boolean;
50
+ };
51
+ annotation: string;
52
+ messages: {
53
+ content: string;
54
+ label: string;
55
+ }[];
56
+ }>;
@@ -2,4 +2,5 @@ export declare const internal: {
2
2
  requestDemo: (payload: import("./requestDemo").RequestDemoPayload) => import("../../utils/requestConfig").ElisRequestConfig<unknown, never, import("./requestDemo").RequestDemoPayload>;
3
3
  requestExtension: (payload: import("./requestExtension").RequestExtensionPayload) => import("../../utils/requestConfig").ElisRequestConfig<unknown, never, import("./requestExtension").RequestExtensionPayload>;
4
4
  domainSettings: (query: import("./domainSettings").DomainSettingsQuery) => import("../../utils/requestConfig").ElisRequestConfig<import("./domainSettings").DomainSettingsResponse, import("./domainSettings").DomainSettingsQuery, never>;
5
+ generateRejectionEmail: (payload: import("./generateRejectionEmail").GenerateRejectionPayload) => import("../../utils/requestConfig").ElisRequestConfig<import("./generateRejectionEmail").GenerateResponse, never, import("./generateRejectionEmail").GenerateRejectionPayload>;
5
6
  };
@@ -1 +1 @@
1
- export type AnnotationStatus = 'importing' | 'failed_import' | 'split' | 'to_review' | 'reviewing' | 'confirmed' | 'rejected' | 'exporting' | 'exported' | 'failed_export' | 'postponed' | 'deleted' | 'purged' | 'in_workflow';
1
+ export type AnnotationStatus = 'created' | 'importing' | 'failed_import' | 'split' | 'to_review' | 'reviewing' | 'confirmed' | 'rejected' | 'exporting' | 'exported' | 'failed_export' | 'postponed' | 'deleted' | 'purged' | 'in_workflow';
@@ -1,2 +1,2 @@
1
1
  import { z } from 'zod';
2
- export declare const annotationStatusSchema: 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">]>;
2
+ export declare const annotationStatusSchema: 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">]>;
@@ -24,7 +24,7 @@ export declare const queues: {
24
24
  columns: string;
25
25
  id: string;
26
26
  }>, never>;
27
- upload: (queueId: number, fileName: string, payload: unknown) => import("../../utils/requestConfig").ElisRequestConfig<import("./upload").UploadResponse, never, unknown>;
27
+ upload: (queueId: number, fileName: string, payload: unknown, signal?: AbortSignal | undefined) => import("../../utils/requestConfig").ElisRequestConfig<import("./upload").UploadResponse, never, unknown>;
28
28
  suggestedRecipients: (queueId: number, payload?: import("./suggestedRecipients").SuggestedRecipientsPayload) => import("../../utils/requestConfig").ElisRequestConfig<import("./suggestedRecipients").SuggestedRecipientsResponse, never, import("./suggestedRecipients").SuggestedRecipientsPayload>;
29
29
  duplicate: (queueId: number, payload: import("./duplicate").QueueDuplicatePayload) => import("../../utils/requestConfig").ElisRequestConfig<import("../models").Queue, never, import("./duplicate").QueueDuplicatePayload>;
30
30
  };
@@ -13,7 +13,7 @@ export declare const queuePatchPayloadSchema: z.ZodObject<{
13
13
  sessionTimeout: z.ZodOptional<z.ZodString>;
14
14
  rirUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  rirParams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- counts: z.ZodOptional<z.ZodRecord<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">]>, z.ZodNumber>>;
16
+ counts: z.ZodOptional<z.ZodRecord<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">]>, z.ZodNumber>>;
17
17
  defaultScoreThreshold: z.ZodOptional<z.ZodNumber>;
18
18
  automationEnabled: z.ZodOptional<z.ZodBoolean>;
19
19
  automationLevel: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"always">, z.ZodLiteral<"confident">, z.ZodLiteral<"never">]>>;
@@ -308,7 +308,7 @@ export declare const queuePatchPayloadSchema: z.ZodObject<{
308
308
  sessionTimeout?: string | undefined;
309
309
  rirUrl?: string | null | undefined;
310
310
  rirParams?: string | null | undefined;
311
- counts?: Partial<Record<"importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow", number>> | undefined;
311
+ counts?: Partial<Record<"created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow", number>> | undefined;
312
312
  defaultScoreThreshold?: number | undefined;
313
313
  automationEnabled?: boolean | undefined;
314
314
  automationLevel?: "never" | "always" | "confident" | undefined;
@@ -387,7 +387,7 @@ export declare const queuePatchPayloadSchema: z.ZodObject<{
387
387
  sessionTimeout?: string | undefined;
388
388
  rirUrl?: string | null | undefined;
389
389
  rirParams?: string | null | undefined;
390
- counts?: Partial<Record<"importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow", number>> | undefined;
390
+ counts?: Partial<Record<"created" | "importing" | "failed_import" | "split" | "to_review" | "reviewing" | "confirmed" | "rejected" | "exporting" | "exported" | "failed_export" | "postponed" | "deleted" | "purged" | "in_workflow", number>> | undefined;
391
391
  defaultScoreThreshold?: number | undefined;
392
392
  automationEnabled?: boolean | undefined;
393
393
  automationLevel?: "never" | "always" | "confident" | undefined;
@@ -11,4 +11,4 @@ export type UploadResponse = {
11
11
  annotation: Url;
12
12
  }>;
13
13
  };
14
- export declare const upload: (queueId: number, fileName: string, payload: unknown) => ElisRequestConfig<UploadResponse, never, unknown>;
14
+ export declare const upload: (queueId: number, fileName: string, payload: unknown, signal?: AbortSignal) => ElisRequestConfig<UploadResponse, never, unknown>;