@rossum/api-client 0.1.26 → 0.1.30

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 (141) hide show
  1. package/index.js +72 -72
  2. package/index.js.map +1 -1
  3. package/package.json +3 -2
  4. package/src/hooks/endpoints/runs.js.map +1 -1
  5. package/src/hooks/endpoints/runs.schema.js +4 -0
  6. package/src/hooks/endpoints/runs.schema.js.map +1 -1
  7. package/src/hooks/endpoints/test.schema.js +2 -2
  8. package/src/hooks/endpoints/test.schema.js.map +1 -1
  9. package/src/hooks/models/hookUtils.schema.js +2 -0
  10. package/src/hooks/models/hookUtils.schema.js.map +1 -1
  11. package/src/internal/endpoints/rules/evaluateRules.js.map +1 -1
  12. package/src/internal/endpoints/rules/evaluateRules.schema.js +2 -0
  13. package/src/internal/endpoints/rules/evaluateRules.schema.js.map +1 -1
  14. package/src/internal/endpoints/schemas/evaluateFormulas.schema.js +2 -2
  15. package/src/internal/endpoints/schemas/evaluateFormulas.schema.js.map +1 -1
  16. package/src/internal/endpoints/schemas/formulasInfo.schema.js +1 -1
  17. package/src/internal/endpoints/schemas/formulasInfo.schema.js.map +1 -1
  18. package/src/queues/endpoints/automationSetup.js +15 -0
  19. package/src/queues/endpoints/automationSetup.js.map +1 -0
  20. package/src/queues/endpoints/index.js +2 -0
  21. package/src/queues/endpoints/index.js.map +1 -1
  22. package/src/queues/models/automationSetup.js +3 -0
  23. package/src/queues/models/automationSetup.js.map +1 -0
  24. package/src/queues/models/automationSetup.schema.js +49 -0
  25. package/src/queues/models/automationSetup.schema.js.map +1 -0
  26. package/src/queues/models/queueSettings.schema.js +1 -0
  27. package/src/queues/models/queueSettings.schema.js.map +1 -1
  28. package/src/rules/models/schemaRule.schema.js +1 -0
  29. package/src/rules/models/schemaRule.schema.js.map +1 -1
  30. package/src/schemas/models/schemaDatapointBase.schema.js +2 -0
  31. package/src/schemas/models/schemaDatapointBase.schema.js.map +1 -1
  32. package/src/shared/models/annotationListTable.schema.js +12 -1
  33. package/src/shared/models/annotationListTable.schema.js.map +1 -1
  34. package/src/utils/requestConfig.js +5 -4
  35. package/src/utils/requestConfig.js.map +1 -1
  36. package/src/utils/requestResponse.js +2 -2
  37. package/src/utils/requestResponse.js.map +1 -1
  38. package/types/index.d.ts +851 -316
  39. package/types/src/annotations/endpoints/index.d.ts +36 -22
  40. package/types/src/annotations/endpoints/list.d.ts +18 -11
  41. package/types/src/annotations/endpoints/search.d.ts +18 -11
  42. package/types/src/annotations/models/annotationListSideload.schema.d.ts +18 -11
  43. package/types/src/engines/endpoints/index.d.ts +18 -11
  44. package/types/src/engines/endpoints/queueStats.d.ts +18 -11
  45. package/types/src/engines/endpoints/queueStats.schema.d.ts +18 -11
  46. package/types/src/hookTemplates/endpoints/get.d.ts +9 -9
  47. package/types/src/hookTemplates/endpoints/index.d.ts +24 -24
  48. package/types/src/hookTemplates/endpoints/list.d.ts +15 -15
  49. package/types/src/hookTemplates/models/hookTemplate.schema.d.ts +9 -9
  50. package/types/src/hooks/endpoints/create.d.ts +9 -9
  51. package/types/src/hooks/endpoints/createFromTemplate.d.ts +12 -12
  52. package/types/src/hooks/endpoints/createFromTemplate.schema.d.ts +3 -3
  53. package/types/src/hooks/endpoints/get.d.ts +9 -9
  54. package/types/src/hooks/endpoints/index.d.ts +97 -81
  55. package/types/src/hooks/endpoints/list.d.ts +18 -18
  56. package/types/src/hooks/endpoints/list.schema.d.ts +3 -3
  57. package/types/src/hooks/endpoints/patch.d.ts +18 -18
  58. package/types/src/hooks/endpoints/patch.schema.d.ts +9 -9
  59. package/types/src/hooks/endpoints/runs.d.ts +29 -9
  60. package/types/src/hooks/endpoints/runs.schema.d.ts +21 -9
  61. package/types/src/hooks/endpoints/test.d.ts +8 -8
  62. package/types/src/hooks/endpoints/test.schema.d.ts +6 -6
  63. package/types/src/hooks/models/hook.schema.d.ts +21 -21
  64. package/types/src/hooks/models/hookUtils.d.ts +2 -2
  65. package/types/src/hooks/models/hookUtils.schema.d.ts +3 -3
  66. package/types/src/hooks/models/run.schema.d.ts +5 -5
  67. package/types/src/internal/endpoints/index.d.ts +2609 -1457
  68. package/types/src/internal/endpoints/rules/evaluateRules.d.ts +337 -188
  69. package/types/src/internal/endpoints/rules/evaluateRules.schema.d.ts +335 -188
  70. package/types/src/internal/endpoints/rules/suggestRule.d.ts +327 -183
  71. package/types/src/internal/endpoints/rules/suggestRule.schema.d.ts +332 -188
  72. package/types/src/internal/endpoints/rules/suggestTriggerCondition.d.ts +327 -183
  73. package/types/src/internal/endpoints/rules/suggestTriggerCondition.schema.d.ts +327 -183
  74. package/types/src/internal/endpoints/rules/suggestTriggerConditionSummary.d.ts +327 -183
  75. package/types/src/internal/endpoints/rules/suggestTriggerConditionSummary.schema.d.ts +327 -183
  76. package/types/src/internal/endpoints/schemas/evaluateFormulas.d.ts +330 -189
  77. package/types/src/internal/endpoints/schemas/evaluateFormulas.schema.d.ts +328 -187
  78. package/types/src/internal/endpoints/schemas/formulaSummary.d.ts +320 -176
  79. package/types/src/internal/endpoints/schemas/formulaSummary.schema.d.ts +320 -176
  80. package/types/src/internal/endpoints/schemas/formulasInfo.d.ts +326 -182
  81. package/types/src/internal/endpoints/schemas/formulasInfo.schema.d.ts +325 -181
  82. package/types/src/internal/endpoints/schemas/suggestFormula.d.ts +320 -176
  83. package/types/src/internal/endpoints/schemas/suggestFormula.schema.d.ts +320 -176
  84. package/types/src/organization/endpoints/create.d.ts +11 -11
  85. package/types/src/organization/endpoints/create.schema.d.ts +11 -11
  86. package/types/src/organization/endpoints/get.d.ts +9 -9
  87. package/types/src/organization/endpoints/index.d.ts +49 -49
  88. package/types/src/organization/endpoints/list.d.ts +11 -11
  89. package/types/src/organization/endpoints/patch.d.ts +18 -18
  90. package/types/src/organization/models/organization.schema.d.ts +9 -9
  91. package/types/src/queues/endpoints/automationSetup.d.ts +462 -0
  92. package/types/src/queues/endpoints/create.d.ts +14 -9
  93. package/types/src/queues/endpoints/createFromTemplate.d.ts +14 -9
  94. package/types/src/queues/endpoints/duplicate.d.ts +14 -9
  95. package/types/src/queues/endpoints/get.d.ts +14 -9
  96. package/types/src/queues/endpoints/index.d.ts +563 -65
  97. package/types/src/queues/endpoints/list.d.ts +18 -11
  98. package/types/src/queues/endpoints/patch.d.ts +28 -18
  99. package/types/src/queues/endpoints/patch.schema.d.ts +14 -9
  100. package/types/src/queues/models/automationSetup.d.ts +42 -0
  101. package/types/src/queues/models/automationSetup.schema.d.ts +751 -0
  102. package/types/src/queues/models/queue.schema.d.ts +14 -9
  103. package/types/src/queues/models/queueSettings.d.ts +1 -0
  104. package/types/src/queues/models/queueSettings.schema.d.ts +10 -7
  105. package/types/src/rule-templates/endpoints/create.d.ts +10 -10
  106. package/types/src/rule-templates/endpoints/create.schema.d.ts +5 -5
  107. package/types/src/rule-templates/endpoints/get.d.ts +5 -5
  108. package/types/src/rule-templates/endpoints/index.d.ts +32 -32
  109. package/types/src/rule-templates/endpoints/list.d.ts +7 -7
  110. package/types/src/rule-templates/endpoints/patch.d.ts +10 -10
  111. package/types/src/rule-templates/endpoints/patch.schema.d.ts +5 -5
  112. package/types/src/rule-templates/models/ruleTemplate.schema.d.ts +5 -5
  113. package/types/src/rules/endpoints/create.d.ts +10 -10
  114. package/types/src/rules/endpoints/create.schema.d.ts +5 -5
  115. package/types/src/rules/endpoints/get.d.ts +5 -5
  116. package/types/src/rules/endpoints/index.d.ts +32 -32
  117. package/types/src/rules/endpoints/list.d.ts +7 -7
  118. package/types/src/rules/endpoints/patch.d.ts +10 -10
  119. package/types/src/rules/endpoints/patch.schema.d.ts +5 -5
  120. package/types/src/rules/models/schemaRule.d.ts +1 -1
  121. package/types/src/rules/models/schemaRule.schema.d.ts +11 -11
  122. package/types/src/schemas/endpoints/create.d.ts +320 -176
  123. package/types/src/schemas/endpoints/get.d.ts +320 -176
  124. package/types/src/schemas/endpoints/list.d.ts +384 -208
  125. package/types/src/schemas/endpoints/patch.d.ts +640 -352
  126. package/types/src/schemas/endpoints/patch.schema.d.ts +320 -176
  127. package/types/src/schemas/endpoints/validate.d.ts +672 -368
  128. package/types/src/schemas/models/schema.schema.d.ts +320 -176
  129. package/types/src/schemas/models/schemaDatapoint.schema.d.ts +32 -20
  130. package/types/src/schemas/models/schemaDatapointBase.d.ts +2 -1
  131. package/types/src/schemas/models/schemaDatapointBase.schema.d.ts +12 -9
  132. package/types/src/schemas/models/schemaDatapointDate.schema.d.ts +8 -5
  133. package/types/src/schemas/models/schemaDatapointEnum.schema.d.ts +8 -5
  134. package/types/src/schemas/models/schemaDatapointNumber.schema.d.ts +8 -5
  135. package/types/src/schemas/models/schemaDatapointString.schema.d.ts +8 -5
  136. package/types/src/schemas/models/schemaItem.schema.d.ts +192 -112
  137. package/types/src/schemas/models/schemaMultivalue.schema.d.ts +112 -64
  138. package/types/src/schemas/models/schemaSection.schema.d.ts +256 -144
  139. package/types/src/schemas/models/schemaTuple.schema.d.ts +48 -28
  140. package/types/src/shared/models/annotationListTable.d.ts +11 -1
  141. package/types/src/shared/models/annotationListTable.schema.d.ts +99 -15
@@ -3,6 +3,10 @@ import { LogLevel } from '../models/runLog';
3
3
  export type RunsQuery = Partial<{
4
4
  timestampAfter: string;
5
5
  timestampBefore: string;
6
+ startAfter: string;
7
+ startBefore: string;
8
+ endAfter: string;
9
+ endBefore: string;
6
10
  search: string;
7
11
  hook: Array<number>;
8
12
  requestId: string;
@@ -75,11 +79,11 @@ export declare const runs: (query?: RunsQuery) => {
75
79
  action: import("zod").ZodUnion<[import("zod").ZodLiteral<"confirm">, import("zod").ZodLiteral<"export">, import("zod").ZodLiteral<"initialize">, import("zod").ZodLiteral<"started">, import("zod").ZodLiteral<"updated">, import("zod").ZodLiteral<"user_update">]>;
76
80
  }, "strip", import("zod").ZodTypeAny, {
77
81
  event: "annotation_content";
78
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
82
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
79
83
  annotationId?: number | null | undefined;
80
84
  }, {
81
85
  event: "annotation_content";
82
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
86
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
83
87
  annotationId?: number | null | undefined;
84
88
  }>>, import("zod").ZodIntersection<import("zod").ZodObject<{
85
89
  hookId: import("zod").ZodNumber;
@@ -311,13 +315,13 @@ export declare const runs: (query?: RunsQuery) => {
311
315
  cancelRequested?: string | null | undefined;
312
316
  }>, import("zod").ZodObject<{
313
317
  event: import("zod").ZodLiteral<"invocation">;
314
- action: import("zod").ZodUnion<[import("zod").ZodLiteral<"manual">, import("zod").ZodLiteral<"scheduled">, import("zod").ZodLiteral<"integration">]>;
318
+ action: import("zod").ZodUnion<[import("zod").ZodLiteral<"manual">, import("zod").ZodLiteral<"scheduled">, import("zod").ZodLiteral<"integration">, import("zod").ZodLiteral<"interface">]>;
315
319
  }, "strip", import("zod").ZodTypeAny, {
316
320
  event: "invocation";
317
- action: "manual" | "scheduled" | "integration";
321
+ action: "manual" | "scheduled" | "integration" | "interface";
318
322
  }, {
319
323
  event: "invocation";
320
- action: "manual" | "scheduled" | "integration";
324
+ action: "manual" | "scheduled" | "integration" | "interface";
321
325
  }>>]>, "many">;
322
326
  }, "strip", import("zod").ZodTypeAny, {
323
327
  results: (({
@@ -338,7 +342,7 @@ export declare const runs: (query?: RunsQuery) => {
338
342
  cancelRequested?: string | null | undefined;
339
343
  } & {
340
344
  event: "annotation_content";
341
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
345
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
342
346
  annotationId?: number | null | undefined;
343
347
  }) | ({
344
348
  message: string;
@@ -418,7 +422,7 @@ export declare const runs: (query?: RunsQuery) => {
418
422
  cancelRequested?: string | null | undefined;
419
423
  } & {
420
424
  event: "invocation";
421
- action: "manual" | "scheduled" | "integration";
425
+ action: "manual" | "scheduled" | "integration" | "interface";
422
426
  }))[];
423
427
  }, {
424
428
  results: (({
@@ -439,7 +443,7 @@ export declare const runs: (query?: RunsQuery) => {
439
443
  cancelRequested?: string | null | undefined;
440
444
  } & {
441
445
  event: "annotation_content";
442
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
446
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
443
447
  annotationId?: number | null | undefined;
444
448
  }) | ({
445
449
  message: string;
@@ -519,12 +523,16 @@ export declare const runs: (query?: RunsQuery) => {
519
523
  cancelRequested?: string | null | undefined;
520
524
  } & {
521
525
  event: "invocation";
522
- action: "manual" | "scheduled" | "integration";
526
+ action: "manual" | "scheduled" | "integration" | "interface";
523
527
  }))[];
524
528
  }>;
525
529
  readonly query: Partial<{
526
530
  timestampAfter: string;
527
531
  timestampBefore: string;
532
+ startAfter: string;
533
+ startBefore: string;
534
+ endAfter: string;
535
+ endBefore: string;
528
536
  search: string;
529
537
  hook: Array<number>;
530
538
  requestId: string;
@@ -539,6 +547,10 @@ export declare const runs: (query?: RunsQuery) => {
539
547
  readonly querySchema: import("zod").ZodObject<{
540
548
  timestampAfter: import("zod").ZodOptional<import("zod").ZodString>;
541
549
  timestampBefore: import("zod").ZodOptional<import("zod").ZodString>;
550
+ startAfter: import("zod").ZodOptional<import("zod").ZodString>;
551
+ startBefore: import("zod").ZodOptional<import("zod").ZodString>;
552
+ endAfter: import("zod").ZodOptional<import("zod").ZodString>;
553
+ endBefore: import("zod").ZodOptional<import("zod").ZodString>;
542
554
  search: import("zod").ZodOptional<import("zod").ZodString>;
543
555
  hook: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
544
556
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -552,6 +564,10 @@ export declare const runs: (query?: RunsQuery) => {
552
564
  }, "strip", import("zod").ZodTypeAny, {
553
565
  timestampAfter?: string | undefined;
554
566
  timestampBefore?: string | undefined;
567
+ startAfter?: string | undefined;
568
+ startBefore?: string | undefined;
569
+ endAfter?: string | undefined;
570
+ endBefore?: string | undefined;
555
571
  search?: string | undefined;
556
572
  hook?: number[] | undefined;
557
573
  requestId?: string | undefined;
@@ -565,6 +581,10 @@ export declare const runs: (query?: RunsQuery) => {
565
581
  }, {
566
582
  timestampAfter?: string | undefined;
567
583
  timestampBefore?: string | undefined;
584
+ startAfter?: string | undefined;
585
+ startBefore?: string | undefined;
586
+ endAfter?: string | undefined;
587
+ endBefore?: string | undefined;
568
588
  search?: string | undefined;
569
589
  hook?: number[] | undefined;
570
590
  requestId?: string | undefined;
@@ -2,6 +2,10 @@ import { z } from 'zod';
2
2
  export declare const runsQuerySchema: z.ZodObject<{
3
3
  timestampAfter: z.ZodOptional<z.ZodString>;
4
4
  timestampBefore: z.ZodOptional<z.ZodString>;
5
+ startAfter: z.ZodOptional<z.ZodString>;
6
+ startBefore: z.ZodOptional<z.ZodString>;
7
+ endAfter: z.ZodOptional<z.ZodString>;
8
+ endBefore: z.ZodOptional<z.ZodString>;
5
9
  search: z.ZodOptional<z.ZodString>;
6
10
  hook: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
7
11
  requestId: z.ZodOptional<z.ZodString>;
@@ -15,6 +19,10 @@ export declare const runsQuerySchema: z.ZodObject<{
15
19
  }, "strip", z.ZodTypeAny, {
16
20
  timestampAfter?: string | undefined;
17
21
  timestampBefore?: string | undefined;
22
+ startAfter?: string | undefined;
23
+ startBefore?: string | undefined;
24
+ endAfter?: string | undefined;
25
+ endBefore?: string | undefined;
18
26
  search?: string | undefined;
19
27
  hook?: number[] | undefined;
20
28
  requestId?: string | undefined;
@@ -28,6 +36,10 @@ export declare const runsQuerySchema: z.ZodObject<{
28
36
  }, {
29
37
  timestampAfter?: string | undefined;
30
38
  timestampBefore?: string | undefined;
39
+ startAfter?: string | undefined;
40
+ startBefore?: string | undefined;
41
+ endAfter?: string | undefined;
42
+ endBefore?: string | undefined;
31
43
  search?: string | undefined;
32
44
  hook?: number[] | undefined;
33
45
  requestId?: string | undefined;
@@ -94,11 +106,11 @@ export declare const runsSchema: z.ZodObject<{
94
106
  action: z.ZodUnion<[z.ZodLiteral<"confirm">, z.ZodLiteral<"export">, z.ZodLiteral<"initialize">, z.ZodLiteral<"started">, z.ZodLiteral<"updated">, z.ZodLiteral<"user_update">]>;
95
107
  }, "strip", z.ZodTypeAny, {
96
108
  event: "annotation_content";
97
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
109
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
98
110
  annotationId?: number | null | undefined;
99
111
  }, {
100
112
  event: "annotation_content";
101
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
113
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
102
114
  annotationId?: number | null | undefined;
103
115
  }>>, z.ZodIntersection<z.ZodObject<{
104
116
  hookId: z.ZodNumber;
@@ -330,13 +342,13 @@ export declare const runsSchema: z.ZodObject<{
330
342
  cancelRequested?: string | null | undefined;
331
343
  }>, z.ZodObject<{
332
344
  event: z.ZodLiteral<"invocation">;
333
- action: z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"integration">]>;
345
+ action: z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"integration">, z.ZodLiteral<"interface">]>;
334
346
  }, "strip", z.ZodTypeAny, {
335
347
  event: "invocation";
336
- action: "manual" | "scheduled" | "integration";
348
+ action: "manual" | "scheduled" | "integration" | "interface";
337
349
  }, {
338
350
  event: "invocation";
339
- action: "manual" | "scheduled" | "integration";
351
+ action: "manual" | "scheduled" | "integration" | "interface";
340
352
  }>>]>, "many">;
341
353
  }, "strip", z.ZodTypeAny, {
342
354
  results: (({
@@ -357,7 +369,7 @@ export declare const runsSchema: z.ZodObject<{
357
369
  cancelRequested?: string | null | undefined;
358
370
  } & {
359
371
  event: "annotation_content";
360
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
372
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
361
373
  annotationId?: number | null | undefined;
362
374
  }) | ({
363
375
  message: string;
@@ -437,7 +449,7 @@ export declare const runsSchema: z.ZodObject<{
437
449
  cancelRequested?: string | null | undefined;
438
450
  } & {
439
451
  event: "invocation";
440
- action: "manual" | "scheduled" | "integration";
452
+ action: "manual" | "scheduled" | "integration" | "interface";
441
453
  }))[];
442
454
  }, {
443
455
  results: (({
@@ -458,7 +470,7 @@ export declare const runsSchema: z.ZodObject<{
458
470
  cancelRequested?: string | null | undefined;
459
471
  } & {
460
472
  event: "annotation_content";
461
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
473
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
462
474
  annotationId?: number | null | undefined;
463
475
  }) | ({
464
476
  message: string;
@@ -538,6 +550,6 @@ export declare const runsSchema: z.ZodObject<{
538
550
  cancelRequested?: string | null | undefined;
539
551
  } & {
540
552
  event: "invocation";
541
- action: "manual" | "scheduled" | "integration";
553
+ action: "manual" | "scheduled" | "integration" | "interface";
542
554
  }))[];
543
555
  }>;
@@ -4,14 +4,14 @@ export type TestPayload = {
4
4
  payload?: unknown;
5
5
  };
6
6
  export type TestResponse = {
7
- log: string;
7
+ log: string | null;
8
8
  response: Partial<{
9
9
  messages: unknown[];
10
10
  operations: unknown[];
11
11
  updatedDatapoints: unknown[];
12
12
  suggestedOperations: unknown[];
13
13
  }>;
14
- stacktrace?: string;
14
+ stacktrace?: string | null;
15
15
  };
16
16
  export declare const test: (hookId: number, payload: TestPayload) => {
17
17
  readonly endpoint: `/hooks/${number}/test`;
@@ -110,7 +110,7 @@ export declare const test: (hookId: number, payload: TestPayload) => {
110
110
  }>;
111
111
  readonly payload: TestPayload;
112
112
  readonly responseSchema: import("zod").ZodObject<{
113
- log: import("zod").ZodString;
113
+ log: import("zod").ZodNullable<import("zod").ZodString>;
114
114
  response: import("zod").ZodObject<{
115
115
  messages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>;
116
116
  operations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>;
@@ -127,7 +127,7 @@ export declare const test: (hookId: number, payload: TestPayload) => {
127
127
  updatedDatapoints?: unknown[] | undefined;
128
128
  suggestedOperations?: unknown[] | undefined;
129
129
  }>;
130
- stacktrace: import("zod").ZodOptional<import("zod").ZodString>;
130
+ stacktrace: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
131
131
  }, "strip", import("zod").ZodTypeAny, {
132
132
  response: {
133
133
  messages?: unknown[] | undefined;
@@ -135,8 +135,8 @@ export declare const test: (hookId: number, payload: TestPayload) => {
135
135
  updatedDatapoints?: unknown[] | undefined;
136
136
  suggestedOperations?: unknown[] | undefined;
137
137
  };
138
- log: string;
139
- stacktrace?: string | undefined;
138
+ log: string | null;
139
+ stacktrace?: string | null | undefined;
140
140
  }, {
141
141
  response: {
142
142
  messages?: unknown[] | undefined;
@@ -144,7 +144,7 @@ export declare const test: (hookId: number, payload: TestPayload) => {
144
144
  updatedDatapoints?: unknown[] | undefined;
145
145
  suggestedOperations?: unknown[] | undefined;
146
146
  };
147
- log: string;
148
- stacktrace?: string | undefined;
147
+ log: string | null;
148
+ stacktrace?: string | null | undefined;
149
149
  }>;
150
150
  };
@@ -92,7 +92,7 @@ export declare const testPayloadSchema: z.ZodObject<{
92
92
  payload?: unknown;
93
93
  }>;
94
94
  export declare const testResponseSchema: z.ZodObject<{
95
- log: z.ZodString;
95
+ log: z.ZodNullable<z.ZodString>;
96
96
  response: z.ZodObject<{
97
97
  messages: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
98
98
  operations: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
@@ -109,7 +109,7 @@ export declare const testResponseSchema: z.ZodObject<{
109
109
  updatedDatapoints?: unknown[] | undefined;
110
110
  suggestedOperations?: unknown[] | undefined;
111
111
  }>;
112
- stacktrace: z.ZodOptional<z.ZodString>;
112
+ stacktrace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
113
113
  }, "strip", z.ZodTypeAny, {
114
114
  response: {
115
115
  messages?: unknown[] | undefined;
@@ -117,8 +117,8 @@ export declare const testResponseSchema: z.ZodObject<{
117
117
  updatedDatapoints?: unknown[] | undefined;
118
118
  suggestedOperations?: unknown[] | undefined;
119
119
  };
120
- log: string;
121
- stacktrace?: string | undefined;
120
+ log: string | null;
121
+ stacktrace?: string | null | undefined;
122
122
  }, {
123
123
  response: {
124
124
  messages?: unknown[] | undefined;
@@ -126,6 +126,6 @@ export declare const testResponseSchema: z.ZodObject<{
126
126
  updatedDatapoints?: unknown[] | undefined;
127
127
  suggestedOperations?: unknown[] | undefined;
128
128
  };
129
- log: string;
130
- stacktrace?: string | undefined;
129
+ log: string | null;
130
+ stacktrace?: string | null | undefined;
131
131
  }>;
@@ -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<"upload.created">, z.ZodLiteral<"upload">, z.ZodLiteral<"email.received">, z.ZodLiteral<"email">, z.ZodLiteral<"invocation.manual">, z.ZodLiteral<"invocation.scheduled">, z.ZodLiteral<"invocation.integration">, 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.integration">, z.ZodLiteral<"invocation.interface">, 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" | "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" | "invocation.integration")[];
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" | "invocation.integration" | "invocation.interface")[];
33
33
  sideload: string[];
34
34
  tokenOwner: string | null;
35
35
  extensionSource: "custom" | "rossum_store";
@@ -51,7 +51,7 @@ export declare const hookBaseSchema: z.ZodObject<{
51
51
  description: string | null;
52
52
  runAfter: string[];
53
53
  active: boolean;
54
- 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" | "invocation.integration")[];
54
+ 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" | "invocation.integration" | "invocation.interface")[];
55
55
  sideload: string[];
56
56
  tokenOwner: string | null;
57
57
  extensionSource: "custom" | "rossum_store";
@@ -74,7 +74,7 @@ export declare const webhookHookSchema: z.ZodIntersection<z.ZodObject<{
74
74
  queues: z.ZodArray<z.ZodString, "many">;
75
75
  runAfter: z.ZodArray<z.ZodString, "many">;
76
76
  active: z.ZodBoolean;
77
- 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.integration">, z.ZodLiteral<"invocation">]>, "many">;
77
+ 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.integration">, z.ZodLiteral<"invocation.interface">, z.ZodLiteral<"invocation">]>, "many">;
78
78
  sideload: z.ZodArray<z.ZodString, "many">;
79
79
  metadata: z.ZodOptional<z.ZodUnknown>;
80
80
  tokenOwner: z.ZodNullable<z.ZodString>;
@@ -97,7 +97,7 @@ export declare const webhookHookSchema: z.ZodIntersection<z.ZodObject<{
97
97
  description: string | null;
98
98
  runAfter: string[];
99
99
  active: boolean;
100
- 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" | "invocation.integration")[];
100
+ 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" | "invocation.integration" | "invocation.interface")[];
101
101
  sideload: string[];
102
102
  tokenOwner: string | null;
103
103
  extensionSource: "custom" | "rossum_store";
@@ -119,7 +119,7 @@ export declare const webhookHookSchema: z.ZodIntersection<z.ZodObject<{
119
119
  description: string | null;
120
120
  runAfter: string[];
121
121
  active: boolean;
122
- 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" | "invocation.integration")[];
122
+ 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" | "invocation.integration" | "invocation.interface")[];
123
123
  sideload: string[];
124
124
  tokenOwner: string | null;
125
125
  extensionSource: "custom" | "rossum_store";
@@ -242,7 +242,7 @@ export declare const functionHookSchema: z.ZodIntersection<z.ZodObject<{
242
242
  queues: z.ZodArray<z.ZodString, "many">;
243
243
  runAfter: z.ZodArray<z.ZodString, "many">;
244
244
  active: z.ZodBoolean;
245
- 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.integration">, z.ZodLiteral<"invocation">]>, "many">;
245
+ 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.integration">, z.ZodLiteral<"invocation.interface">, z.ZodLiteral<"invocation">]>, "many">;
246
246
  sideload: z.ZodArray<z.ZodString, "many">;
247
247
  metadata: z.ZodOptional<z.ZodUnknown>;
248
248
  tokenOwner: z.ZodNullable<z.ZodString>;
@@ -265,7 +265,7 @@ export declare const functionHookSchema: z.ZodIntersection<z.ZodObject<{
265
265
  description: string | null;
266
266
  runAfter: string[];
267
267
  active: boolean;
268
- 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" | "invocation.integration")[];
268
+ 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" | "invocation.integration" | "invocation.interface")[];
269
269
  sideload: string[];
270
270
  tokenOwner: string | null;
271
271
  extensionSource: "custom" | "rossum_store";
@@ -287,7 +287,7 @@ export declare const functionHookSchema: z.ZodIntersection<z.ZodObject<{
287
287
  description: string | null;
288
288
  runAfter: string[];
289
289
  active: boolean;
290
- 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" | "invocation.integration")[];
290
+ 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" | "invocation.integration" | "invocation.interface")[];
291
291
  sideload: string[];
292
292
  tokenOwner: string | null;
293
293
  extensionSource: "custom" | "rossum_store";
@@ -403,7 +403,7 @@ export declare const jobHookSchema: z.ZodIntersection<z.ZodObject<{
403
403
  queues: z.ZodArray<z.ZodString, "many">;
404
404
  runAfter: z.ZodArray<z.ZodString, "many">;
405
405
  active: z.ZodBoolean;
406
- 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.integration">, z.ZodLiteral<"invocation">]>, "many">;
406
+ 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.integration">, z.ZodLiteral<"invocation.interface">, z.ZodLiteral<"invocation">]>, "many">;
407
407
  sideload: z.ZodArray<z.ZodString, "many">;
408
408
  metadata: z.ZodOptional<z.ZodUnknown>;
409
409
  tokenOwner: z.ZodNullable<z.ZodString>;
@@ -426,7 +426,7 @@ export declare const jobHookSchema: z.ZodIntersection<z.ZodObject<{
426
426
  description: string | null;
427
427
  runAfter: string[];
428
428
  active: boolean;
429
- 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" | "invocation.integration")[];
429
+ 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" | "invocation.integration" | "invocation.interface")[];
430
430
  sideload: string[];
431
431
  tokenOwner: string | null;
432
432
  extensionSource: "custom" | "rossum_store";
@@ -448,7 +448,7 @@ export declare const jobHookSchema: z.ZodIntersection<z.ZodObject<{
448
448
  description: string | null;
449
449
  runAfter: string[];
450
450
  active: boolean;
451
- 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" | "invocation.integration")[];
451
+ 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" | "invocation.integration" | "invocation.interface")[];
452
452
  sideload: string[];
453
453
  tokenOwner: string | null;
454
454
  extensionSource: "custom" | "rossum_store";
@@ -551,7 +551,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
551
551
  queues: z.ZodArray<z.ZodString, "many">;
552
552
  runAfter: z.ZodArray<z.ZodString, "many">;
553
553
  active: z.ZodBoolean;
554
- 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.integration">, z.ZodLiteral<"invocation">]>, "many">;
554
+ 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.integration">, z.ZodLiteral<"invocation.interface">, z.ZodLiteral<"invocation">]>, "many">;
555
555
  sideload: z.ZodArray<z.ZodString, "many">;
556
556
  metadata: z.ZodOptional<z.ZodUnknown>;
557
557
  tokenOwner: z.ZodNullable<z.ZodString>;
@@ -574,7 +574,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
574
574
  description: string | null;
575
575
  runAfter: string[];
576
576
  active: boolean;
577
- 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" | "invocation.integration")[];
577
+ 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" | "invocation.integration" | "invocation.interface")[];
578
578
  sideload: string[];
579
579
  tokenOwner: string | null;
580
580
  extensionSource: "custom" | "rossum_store";
@@ -596,7 +596,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
596
596
  description: string | null;
597
597
  runAfter: string[];
598
598
  active: boolean;
599
- 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" | "invocation.integration")[];
599
+ 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" | "invocation.integration" | "invocation.interface")[];
600
600
  sideload: string[];
601
601
  tokenOwner: string | null;
602
602
  extensionSource: "custom" | "rossum_store";
@@ -718,7 +718,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
718
718
  queues: z.ZodArray<z.ZodString, "many">;
719
719
  runAfter: z.ZodArray<z.ZodString, "many">;
720
720
  active: z.ZodBoolean;
721
- 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.integration">, z.ZodLiteral<"invocation">]>, "many">;
721
+ 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.integration">, z.ZodLiteral<"invocation.interface">, z.ZodLiteral<"invocation">]>, "many">;
722
722
  sideload: z.ZodArray<z.ZodString, "many">;
723
723
  metadata: z.ZodOptional<z.ZodUnknown>;
724
724
  tokenOwner: z.ZodNullable<z.ZodString>;
@@ -741,7 +741,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
741
741
  description: string | null;
742
742
  runAfter: string[];
743
743
  active: boolean;
744
- 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" | "invocation.integration")[];
744
+ 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" | "invocation.integration" | "invocation.interface")[];
745
745
  sideload: string[];
746
746
  tokenOwner: string | null;
747
747
  extensionSource: "custom" | "rossum_store";
@@ -763,7 +763,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
763
763
  description: string | null;
764
764
  runAfter: string[];
765
765
  active: boolean;
766
- 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" | "invocation.integration")[];
766
+ 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" | "invocation.integration" | "invocation.interface")[];
767
767
  sideload: string[];
768
768
  tokenOwner: string | null;
769
769
  extensionSource: "custom" | "rossum_store";
@@ -878,7 +878,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
878
878
  queues: z.ZodArray<z.ZodString, "many">;
879
879
  runAfter: z.ZodArray<z.ZodString, "many">;
880
880
  active: z.ZodBoolean;
881
- 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.integration">, z.ZodLiteral<"invocation">]>, "many">;
881
+ 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.integration">, z.ZodLiteral<"invocation.interface">, z.ZodLiteral<"invocation">]>, "many">;
882
882
  sideload: z.ZodArray<z.ZodString, "many">;
883
883
  metadata: z.ZodOptional<z.ZodUnknown>;
884
884
  tokenOwner: z.ZodNullable<z.ZodString>;
@@ -901,7 +901,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
901
901
  description: string | null;
902
902
  runAfter: string[];
903
903
  active: boolean;
904
- 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" | "invocation.integration")[];
904
+ 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" | "invocation.integration" | "invocation.interface")[];
905
905
  sideload: string[];
906
906
  tokenOwner: string | null;
907
907
  extensionSource: "custom" | "rossum_store";
@@ -923,7 +923,7 @@ export declare const hookSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
923
923
  description: string | null;
924
924
  runAfter: string[];
925
925
  active: boolean;
926
- 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" | "invocation.integration")[];
926
+ 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" | "invocation.integration" | "invocation.interface")[];
927
927
  sideload: string[];
928
928
  tokenOwner: string | null;
929
929
  extensionSource: "custom" | "rossum_store";
@@ -3,9 +3,9 @@ export type AnnotationContentAction = 'confirm' | 'export' | 'initialize' | 'sta
3
3
  export type UploadAction = 'created';
4
4
  export type AnnotationStatusAction = 'changed';
5
5
  export type EmailAction = 'received';
6
- export type InvocationAction = 'manual' | 'scheduled' | 'integration';
6
+ export type InvocationAction = 'manual' | 'scheduled' | 'integration' | 'interface';
7
7
  export type HookAction = AnnotationContentAction | UploadAction | AnnotationStatusAction | EmailAction | InvocationAction;
8
- 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.integration' | 'invocation';
8
+ 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.integration' | 'invocation.interface' | 'invocation';
9
9
  export type FunctionRuntime = 'nodejs22.x' | 'nodejs18.x' | 'python3.12' | 'python3.8';
10
10
  export type ExtensionSource = 'rossum_store' | 'custom';
11
11
  export type ExtensionStatus = 'pending' | 'ready' | 'failed';
@@ -4,9 +4,9 @@ export declare const annotationContentActionSchema: z.ZodUnion<[z.ZodLiteral<"co
4
4
  export declare const uploadActionSchema: z.ZodLiteral<"created">;
5
5
  export declare const annotationStatusActionSchema: z.ZodLiteral<"changed">;
6
6
  export declare const emailActionSchema: z.ZodLiteral<"received">;
7
- export declare const invocationActionSchema: z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"integration">]>;
8
- export declare const hookActionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"confirm">, z.ZodLiteral<"export">, z.ZodLiteral<"initialize">, z.ZodLiteral<"started">, z.ZodLiteral<"updated">, z.ZodLiteral<"user_update">]>, z.ZodLiteral<"created">, z.ZodLiteral<"changed">, z.ZodLiteral<"received">, z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"integration">]>]>;
9
- 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.integration">, z.ZodLiteral<"invocation">]>;
7
+ export declare const invocationActionSchema: z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"integration">, z.ZodLiteral<"interface">]>;
8
+ export declare const hookActionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"confirm">, z.ZodLiteral<"export">, z.ZodLiteral<"initialize">, z.ZodLiteral<"started">, z.ZodLiteral<"updated">, z.ZodLiteral<"user_update">]>, z.ZodLiteral<"created">, z.ZodLiteral<"changed">, z.ZodLiteral<"received">, z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"integration">, z.ZodLiteral<"interface">]>]>;
9
+ 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.integration">, z.ZodLiteral<"invocation.interface">, z.ZodLiteral<"invocation">]>;
10
10
  export declare const functionRuntimeSchema: z.ZodUnion<[z.ZodLiteral<"nodejs22.x">, z.ZodLiteral<"nodejs18.x">, z.ZodLiteral<"python3.12">, z.ZodLiteral<"python3.8">]>;
11
11
  export declare const extensionSourceSchema: z.ZodUnion<[z.ZodLiteral<"rossum_store">, z.ZodLiteral<"custom">]>;
12
12
  export declare const extensionStatusSchema: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"ready">, z.ZodLiteral<"failed">]>;
@@ -55,11 +55,11 @@ export declare const runSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
55
55
  action: z.ZodUnion<[z.ZodLiteral<"confirm">, z.ZodLiteral<"export">, z.ZodLiteral<"initialize">, z.ZodLiteral<"started">, z.ZodLiteral<"updated">, z.ZodLiteral<"user_update">]>;
56
56
  }, "strip", z.ZodTypeAny, {
57
57
  event: "annotation_content";
58
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
58
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
59
59
  annotationId?: number | null | undefined;
60
60
  }, {
61
61
  event: "annotation_content";
62
- action: "started" | "confirm" | "export" | "initialize" | "updated" | "user_update";
62
+ action: "started" | "export" | "confirm" | "initialize" | "updated" | "user_update";
63
63
  annotationId?: number | null | undefined;
64
64
  }>>, z.ZodIntersection<z.ZodObject<{
65
65
  hookId: z.ZodNumber;
@@ -291,11 +291,11 @@ export declare const runSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
291
291
  cancelRequested?: string | null | undefined;
292
292
  }>, z.ZodObject<{
293
293
  event: z.ZodLiteral<"invocation">;
294
- action: z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"integration">]>;
294
+ action: z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"integration">, z.ZodLiteral<"interface">]>;
295
295
  }, "strip", z.ZodTypeAny, {
296
296
  event: "invocation";
297
- action: "manual" | "scheduled" | "integration";
297
+ action: "manual" | "scheduled" | "integration" | "interface";
298
298
  }, {
299
299
  event: "invocation";
300
- action: "manual" | "scheduled" | "integration";
300
+ action: "manual" | "scheduled" | "integration" | "interface";
301
301
  }>>]>;