@purpleschool/gptbot-tools 0.4.11-stage-2 → 0.4.12-stage-2

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.
@@ -12,6 +12,14 @@ export declare namespace DiagramsCommand {
12
12
  fileId: z.ZodUUID;
13
13
  url: z.ZodString;
14
14
  fileType: z.ZodOptional<z.ZodEnum<typeof import("../..").FILE_TYPE>>;
15
+ attachment: z.ZodOptional<z.ZodObject<{
16
+ uuid: z.ZodUUID;
17
+ url: z.ZodString;
18
+ name: z.ZodString;
19
+ mimeType: z.ZodString;
20
+ size: z.ZodNumber;
21
+ type: z.ZodString;
22
+ }, z.core.$strip>>;
15
23
  }, z.core.$strip>>>;
16
24
  chartTypeUuid: z.ZodOptional<z.ZodUUID>;
17
25
  accentColor: z.ZodOptional<z.ZodString>;
@@ -21,6 +29,14 @@ export declare namespace DiagramsCommand {
21
29
  fileId: string;
22
30
  url: string;
23
31
  fileType?: import("../..").FILE_TYPE | undefined;
32
+ attachment?: {
33
+ uuid: string;
34
+ url: string;
35
+ name: string;
36
+ mimeType: string;
37
+ size: number;
38
+ type: string;
39
+ } | undefined;
24
40
  }[] | undefined;
25
41
  chartTypeUuid?: string | undefined;
26
42
  accentColor?: string | undefined;
@@ -48,6 +64,31 @@ export declare namespace DiagramsCommand {
48
64
  htmlUrl: string;
49
65
  createdAt: string;
50
66
  parentUuid?: string | undefined;
67
+ inputSnapshot?: {
68
+ prompt: string;
69
+ modelId: string;
70
+ attachedFiles?: {
71
+ uuid: string;
72
+ url: string;
73
+ name: string;
74
+ mimeType: string;
75
+ size: number;
76
+ type: string;
77
+ }[] | undefined;
78
+ params: {
79
+ mode: import("..").DIAGRAMS_MODE.CHART;
80
+ chartTypeUuid: string;
81
+ data: {
82
+ fileId: string;
83
+ }[];
84
+ } | {
85
+ mode: import("..").DIAGRAMS_MODE.REPORT;
86
+ accentColor: string;
87
+ data: {
88
+ fileId: string;
89
+ }[];
90
+ };
91
+ } | undefined;
51
92
  }[];
52
93
  };
53
94
  reaction: import("../..").USER_REACTION | null;
@@ -77,6 +118,31 @@ export declare namespace DiagramsCommand {
77
118
  htmlUrl: string;
78
119
  createdAt: string;
79
120
  parentUuid?: string | undefined;
121
+ inputSnapshot?: {
122
+ prompt: string;
123
+ modelId: string;
124
+ attachedFiles?: {
125
+ uuid: string;
126
+ url: string;
127
+ name: string;
128
+ mimeType: string;
129
+ size: number;
130
+ type: string;
131
+ }[] | undefined;
132
+ params: {
133
+ mode: import("..").DIAGRAMS_MODE.CHART;
134
+ chartTypeUuid: string;
135
+ data: {
136
+ fileId: string;
137
+ }[];
138
+ } | {
139
+ mode: import("..").DIAGRAMS_MODE.REPORT;
140
+ accentColor: string;
141
+ data: {
142
+ fileId: string;
143
+ }[];
144
+ };
145
+ } | undefined;
80
146
  }[];
81
147
  };
82
148
  reaction: import("../..").USER_REACTION | null;
@@ -17,6 +17,14 @@ export declare namespace EditDiagramsJobCommand {
17
17
  fileId: z.ZodUUID;
18
18
  url: z.ZodString;
19
19
  fileType: z.ZodOptional<z.ZodEnum<typeof import("../..").FILE_TYPE>>;
20
+ attachment: z.ZodOptional<z.ZodObject<{
21
+ uuid: z.ZodUUID;
22
+ url: z.ZodString;
23
+ name: z.ZodString;
24
+ mimeType: z.ZodString;
25
+ size: z.ZodNumber;
26
+ type: z.ZodString;
27
+ }, z.core.$strip>>;
20
28
  }, z.core.$strip>>>;
21
29
  }, z.core.$strip>>;
22
30
  tokenReservationId: z.ZodUUID;
@@ -45,6 +53,31 @@ export declare namespace EditDiagramsJobCommand {
45
53
  htmlUrl: string;
46
54
  createdAt: string;
47
55
  parentUuid?: string | undefined;
56
+ inputSnapshot?: {
57
+ prompt: string;
58
+ modelId: string;
59
+ attachedFiles?: {
60
+ uuid: string;
61
+ url: string;
62
+ name: string;
63
+ mimeType: string;
64
+ size: number;
65
+ type: string;
66
+ }[] | undefined;
67
+ params: {
68
+ mode: import("..").DIAGRAMS_MODE.CHART;
69
+ chartTypeUuid: string;
70
+ data: {
71
+ fileId: string;
72
+ }[];
73
+ } | {
74
+ mode: import("..").DIAGRAMS_MODE.REPORT;
75
+ accentColor: string;
76
+ data: {
77
+ fileId: string;
78
+ }[];
79
+ };
80
+ } | undefined;
48
81
  }[];
49
82
  };
50
83
  reaction: import("../..").USER_REACTION | null;
@@ -74,6 +107,31 @@ export declare namespace EditDiagramsJobCommand {
74
107
  htmlUrl: string;
75
108
  createdAt: string;
76
109
  parentUuid?: string | undefined;
110
+ inputSnapshot?: {
111
+ prompt: string;
112
+ modelId: string;
113
+ attachedFiles?: {
114
+ uuid: string;
115
+ url: string;
116
+ name: string;
117
+ mimeType: string;
118
+ size: number;
119
+ type: string;
120
+ }[] | undefined;
121
+ params: {
122
+ mode: import("..").DIAGRAMS_MODE.CHART;
123
+ chartTypeUuid: string;
124
+ data: {
125
+ fileId: string;
126
+ }[];
127
+ } | {
128
+ mode: import("..").DIAGRAMS_MODE.REPORT;
129
+ accentColor: string;
130
+ data: {
131
+ fileId: string;
132
+ }[];
133
+ };
134
+ } | undefined;
77
135
  }[];
78
136
  };
79
137
  reaction: import("../..").USER_REACTION | null;
@@ -8,6 +8,14 @@ export declare namespace GetDiagramsPriceCalculationDataCommand {
8
8
  fileId: z.ZodUUID;
9
9
  url: z.ZodString;
10
10
  fileType: z.ZodOptional<z.ZodEnum<typeof import("../..").FILE_TYPE>>;
11
+ attachment: z.ZodOptional<z.ZodObject<{
12
+ uuid: z.ZodUUID;
13
+ url: z.ZodString;
14
+ name: z.ZodString;
15
+ mimeType: z.ZodString;
16
+ size: z.ZodNumber;
17
+ type: z.ZodString;
18
+ }, z.core.$strip>>;
11
19
  }, z.core.$strip>>>;
12
20
  chartTypeUuid: z.ZodOptional<z.ZodUUID>;
13
21
  accentColor: z.ZodOptional<z.ZodString>;
@@ -17,6 +25,14 @@ export declare namespace GetDiagramsPriceCalculationDataCommand {
17
25
  fileId: string;
18
26
  url: string;
19
27
  fileType?: import("../..").FILE_TYPE | undefined;
28
+ attachment?: {
29
+ uuid: string;
30
+ url: string;
31
+ name: string;
32
+ mimeType: string;
33
+ size: number;
34
+ type: string;
35
+ } | undefined;
20
36
  }[] | undefined;
21
37
  chartTypeUuid?: string | undefined;
22
38
  accentColor?: string | undefined;
@@ -15,6 +15,14 @@ export declare namespace RetryDiagramsJobCommand {
15
15
  fileId: z.ZodUUID;
16
16
  url: z.ZodString;
17
17
  fileType: z.ZodOptional<z.ZodEnum<typeof import("../..").FILE_TYPE>>;
18
+ attachment: z.ZodOptional<z.ZodObject<{
19
+ uuid: z.ZodUUID;
20
+ url: z.ZodString;
21
+ name: z.ZodString;
22
+ mimeType: z.ZodString;
23
+ size: z.ZodNumber;
24
+ type: z.ZodString;
25
+ }, z.core.$strip>>;
18
26
  }, z.core.$strip>>>;
19
27
  }, z.core.$strip>>;
20
28
  tokenReservationId: z.ZodUUID;
@@ -40,6 +48,31 @@ export declare namespace RetryDiagramsJobCommand {
40
48
  htmlUrl: string;
41
49
  createdAt: string;
42
50
  parentUuid?: string | undefined;
51
+ inputSnapshot?: {
52
+ prompt: string;
53
+ modelId: string;
54
+ attachedFiles?: {
55
+ uuid: string;
56
+ url: string;
57
+ name: string;
58
+ mimeType: string;
59
+ size: number;
60
+ type: string;
61
+ }[] | undefined;
62
+ params: {
63
+ mode: import("..").DIAGRAMS_MODE.CHART;
64
+ chartTypeUuid: string;
65
+ data: {
66
+ fileId: string;
67
+ }[];
68
+ } | {
69
+ mode: import("..").DIAGRAMS_MODE.REPORT;
70
+ accentColor: string;
71
+ data: {
72
+ fileId: string;
73
+ }[];
74
+ };
75
+ } | undefined;
43
76
  }[];
44
77
  };
45
78
  reaction: import("../..").USER_REACTION | null;
@@ -69,6 +102,31 @@ export declare namespace RetryDiagramsJobCommand {
69
102
  htmlUrl: string;
70
103
  createdAt: string;
71
104
  parentUuid?: string | undefined;
105
+ inputSnapshot?: {
106
+ prompt: string;
107
+ modelId: string;
108
+ attachedFiles?: {
109
+ uuid: string;
110
+ url: string;
111
+ name: string;
112
+ mimeType: string;
113
+ size: number;
114
+ type: string;
115
+ }[] | undefined;
116
+ params: {
117
+ mode: import("..").DIAGRAMS_MODE.CHART;
118
+ chartTypeUuid: string;
119
+ data: {
120
+ fileId: string;
121
+ }[];
122
+ } | {
123
+ mode: import("..").DIAGRAMS_MODE.REPORT;
124
+ accentColor: string;
125
+ data: {
126
+ fileId: string;
127
+ }[];
128
+ };
129
+ } | undefined;
72
130
  }[];
73
131
  };
74
132
  reaction: import("../..").USER_REACTION | null;
@@ -27,6 +27,31 @@ export declare namespace SetReactionToDiagramsJobCommand {
27
27
  htmlUrl: string;
28
28
  createdAt: string;
29
29
  parentUuid?: string | undefined;
30
+ inputSnapshot?: {
31
+ prompt: string;
32
+ modelId: string;
33
+ attachedFiles?: {
34
+ uuid: string;
35
+ url: string;
36
+ name: string;
37
+ mimeType: string;
38
+ size: number;
39
+ type: string;
40
+ }[] | undefined;
41
+ params: {
42
+ mode: import("..").DIAGRAMS_MODE.CHART;
43
+ chartTypeUuid: string;
44
+ data: {
45
+ fileId: string;
46
+ }[];
47
+ } | {
48
+ mode: import("..").DIAGRAMS_MODE.REPORT;
49
+ accentColor: string;
50
+ data: {
51
+ fileId: string;
52
+ }[];
53
+ };
54
+ } | undefined;
30
55
  }[];
31
56
  };
32
57
  reaction: USER_REACTION | null;
@@ -56,6 +81,31 @@ export declare namespace SetReactionToDiagramsJobCommand {
56
81
  htmlUrl: string;
57
82
  createdAt: string;
58
83
  parentUuid?: string | undefined;
84
+ inputSnapshot?: {
85
+ prompt: string;
86
+ modelId: string;
87
+ attachedFiles?: {
88
+ uuid: string;
89
+ url: string;
90
+ name: string;
91
+ mimeType: string;
92
+ size: number;
93
+ type: string;
94
+ }[] | undefined;
95
+ params: {
96
+ mode: import("..").DIAGRAMS_MODE.CHART;
97
+ chartTypeUuid: string;
98
+ data: {
99
+ fileId: string;
100
+ }[];
101
+ } | {
102
+ mode: import("..").DIAGRAMS_MODE.REPORT;
103
+ accentColor: string;
104
+ data: {
105
+ fileId: string;
106
+ }[];
107
+ };
108
+ } | undefined;
59
109
  }[];
60
110
  };
61
111
  reaction: USER_REACTION | null;
@@ -25,6 +25,31 @@ export declare namespace UpdateDiagramsJobFavoriteCommand {
25
25
  htmlUrl: string;
26
26
  createdAt: string;
27
27
  parentUuid?: string | undefined;
28
+ inputSnapshot?: {
29
+ prompt: string;
30
+ modelId: string;
31
+ attachedFiles?: {
32
+ uuid: string;
33
+ url: string;
34
+ name: string;
35
+ mimeType: string;
36
+ size: number;
37
+ type: string;
38
+ }[] | undefined;
39
+ params: {
40
+ mode: import("..").DIAGRAMS_MODE.CHART;
41
+ chartTypeUuid: string;
42
+ data: {
43
+ fileId: string;
44
+ }[];
45
+ } | {
46
+ mode: import("..").DIAGRAMS_MODE.REPORT;
47
+ accentColor: string;
48
+ data: {
49
+ fileId: string;
50
+ }[];
51
+ };
52
+ } | undefined;
28
53
  }[];
29
54
  };
30
55
  reaction: import("../..").USER_REACTION | null;
@@ -54,6 +79,31 @@ export declare namespace UpdateDiagramsJobFavoriteCommand {
54
79
  htmlUrl: string;
55
80
  createdAt: string;
56
81
  parentUuid?: string | undefined;
82
+ inputSnapshot?: {
83
+ prompt: string;
84
+ modelId: string;
85
+ attachedFiles?: {
86
+ uuid: string;
87
+ url: string;
88
+ name: string;
89
+ mimeType: string;
90
+ size: number;
91
+ type: string;
92
+ }[] | undefined;
93
+ params: {
94
+ mode: import("..").DIAGRAMS_MODE.CHART;
95
+ chartTypeUuid: string;
96
+ data: {
97
+ fileId: string;
98
+ }[];
99
+ } | {
100
+ mode: import("..").DIAGRAMS_MODE.REPORT;
101
+ accentColor: string;
102
+ data: {
103
+ fileId: string;
104
+ }[];
105
+ };
106
+ } | undefined;
57
107
  }[];
58
108
  };
59
109
  reaction: import("../..").USER_REACTION | null;
@@ -29,6 +29,31 @@ export declare namespace UpdateDiagramsJobTitleCommand {
29
29
  htmlUrl: string;
30
30
  createdAt: string;
31
31
  parentUuid?: string | undefined;
32
+ inputSnapshot?: {
33
+ prompt: string;
34
+ modelId: string;
35
+ attachedFiles?: {
36
+ uuid: string;
37
+ url: string;
38
+ name: string;
39
+ mimeType: string;
40
+ size: number;
41
+ type: string;
42
+ }[] | undefined;
43
+ params: {
44
+ mode: import("..").DIAGRAMS_MODE.CHART;
45
+ chartTypeUuid: string;
46
+ data: {
47
+ fileId: string;
48
+ }[];
49
+ } | {
50
+ mode: import("..").DIAGRAMS_MODE.REPORT;
51
+ accentColor: string;
52
+ data: {
53
+ fileId: string;
54
+ }[];
55
+ };
56
+ } | undefined;
32
57
  }[];
33
58
  };
34
59
  reaction: import("../..").USER_REACTION | null;
@@ -58,6 +83,31 @@ export declare namespace UpdateDiagramsJobTitleCommand {
58
83
  htmlUrl: string;
59
84
  createdAt: string;
60
85
  parentUuid?: string | undefined;
86
+ inputSnapshot?: {
87
+ prompt: string;
88
+ modelId: string;
89
+ attachedFiles?: {
90
+ uuid: string;
91
+ url: string;
92
+ name: string;
93
+ mimeType: string;
94
+ size: number;
95
+ type: string;
96
+ }[] | undefined;
97
+ params: {
98
+ mode: import("..").DIAGRAMS_MODE.CHART;
99
+ chartTypeUuid: string;
100
+ data: {
101
+ fileId: string;
102
+ }[];
103
+ } | {
104
+ mode: import("..").DIAGRAMS_MODE.REPORT;
105
+ accentColor: string;
106
+ data: {
107
+ fileId: string;
108
+ }[];
109
+ };
110
+ } | undefined;
61
111
  }[];
62
112
  };
63
113
  reaction: import("../..").USER_REACTION | null;
@@ -4,10 +4,26 @@ import { FILE_TYPE, USER_REACTION } from '../../common';
4
4
  import { DIAGRAMS_MODE } from './diagrams-mode.enum';
5
5
  export declare const DiagramsModeSchema: z.ZodEnum<typeof DIAGRAMS_MODE>;
6
6
  export declare const DiagramsReportAccentColorSchema: z.ZodString;
7
+ export declare const DiagramsAttachedFileSchema: z.ZodObject<{
8
+ uuid: z.ZodUUID;
9
+ url: z.ZodString;
10
+ name: z.ZodString;
11
+ mimeType: z.ZodString;
12
+ size: z.ZodNumber;
13
+ type: z.ZodString;
14
+ }, z.core.$strip>;
7
15
  export declare const DiagramsJobDataSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
16
  fileId: z.ZodUUID;
9
17
  url: z.ZodString;
10
18
  fileType: z.ZodOptional<z.ZodEnum<typeof FILE_TYPE>>;
19
+ attachment: z.ZodOptional<z.ZodObject<{
20
+ uuid: z.ZodUUID;
21
+ url: z.ZodString;
22
+ name: z.ZodString;
23
+ mimeType: z.ZodString;
24
+ size: z.ZodNumber;
25
+ type: z.ZodString;
26
+ }, z.core.$strip>>;
11
27
  }, z.core.$strip>>>;
12
28
  type DiagramsJobData = z.infer<typeof DiagramsJobDataSchema>;
13
29
  export type DiagramsChartParams = {
@@ -27,6 +43,14 @@ export declare const DiagramsNewJobParamsSchema: z.ZodPipe<z.ZodObject<{
27
43
  fileId: z.ZodUUID;
28
44
  url: z.ZodString;
29
45
  fileType: z.ZodOptional<z.ZodEnum<typeof FILE_TYPE>>;
46
+ attachment: z.ZodOptional<z.ZodObject<{
47
+ uuid: z.ZodUUID;
48
+ url: z.ZodString;
49
+ name: z.ZodString;
50
+ mimeType: z.ZodString;
51
+ size: z.ZodNumber;
52
+ type: z.ZodString;
53
+ }, z.core.$strip>>;
30
54
  }, z.core.$strip>>>;
31
55
  chartTypeUuid: z.ZodOptional<z.ZodUUID>;
32
56
  accentColor: z.ZodOptional<z.ZodString>;
@@ -36,6 +60,14 @@ export declare const DiagramsNewJobParamsSchema: z.ZodPipe<z.ZodObject<{
36
60
  fileId: string;
37
61
  url: string;
38
62
  fileType?: FILE_TYPE | undefined;
63
+ attachment?: {
64
+ uuid: string;
65
+ url: string;
66
+ name: string;
67
+ mimeType: string;
68
+ size: number;
69
+ type: string;
70
+ } | undefined;
39
71
  }[] | undefined;
40
72
  chartTypeUuid?: string | undefined;
41
73
  accentColor?: string | undefined;
@@ -46,6 +78,14 @@ export declare const DiagramsJobParamsSchema: z.ZodPipe<z.ZodObject<{
46
78
  fileId: z.ZodUUID;
47
79
  url: z.ZodString;
48
80
  fileType: z.ZodOptional<z.ZodEnum<typeof FILE_TYPE>>;
81
+ attachment: z.ZodOptional<z.ZodObject<{
82
+ uuid: z.ZodUUID;
83
+ url: z.ZodString;
84
+ name: z.ZodString;
85
+ mimeType: z.ZodString;
86
+ size: z.ZodNumber;
87
+ type: z.ZodString;
88
+ }, z.core.$strip>>;
49
89
  }, z.core.$strip>>>;
50
90
  chartTypeUuid: z.ZodOptional<z.ZodUUID>;
51
91
  accentColor: z.ZodOptional<z.ZodString>;
@@ -55,6 +95,14 @@ export declare const DiagramsJobParamsSchema: z.ZodPipe<z.ZodObject<{
55
95
  fileId: string;
56
96
  url: string;
57
97
  fileType?: FILE_TYPE | undefined;
98
+ attachment?: {
99
+ uuid: string;
100
+ url: string;
101
+ name: string;
102
+ mimeType: string;
103
+ size: number;
104
+ type: string;
105
+ } | undefined;
58
106
  }[] | undefined;
59
107
  chartTypeUuid?: string | undefined;
60
108
  accentColor?: string | undefined;
@@ -67,14 +115,73 @@ export declare const DiagramsJobParamsUpdateSchema: z.ZodObject<{
67
115
  fileId: z.ZodUUID;
68
116
  url: z.ZodString;
69
117
  fileType: z.ZodOptional<z.ZodEnum<typeof FILE_TYPE>>;
118
+ attachment: z.ZodOptional<z.ZodObject<{
119
+ uuid: z.ZodUUID;
120
+ url: z.ZodString;
121
+ name: z.ZodString;
122
+ mimeType: z.ZodString;
123
+ size: z.ZodNumber;
124
+ type: z.ZodString;
125
+ }, z.core.$strip>>;
70
126
  }, z.core.$strip>>>;
71
127
  }, z.core.$strip>;
128
+ export declare const DiagramsVersionInputSnapshotSchema: z.ZodObject<{
129
+ prompt: z.ZodString;
130
+ modelId: z.ZodUUID;
131
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
+ uuid: z.ZodUUID;
133
+ url: z.ZodString;
134
+ name: z.ZodString;
135
+ mimeType: z.ZodString;
136
+ size: z.ZodNumber;
137
+ type: z.ZodString;
138
+ }, z.core.$strip>>>;
139
+ params: z.ZodDiscriminatedUnion<[z.ZodObject<{
140
+ mode: z.ZodLiteral<DIAGRAMS_MODE.CHART>;
141
+ chartTypeUuid: z.ZodUUID;
142
+ data: z.ZodArray<z.ZodObject<{
143
+ fileId: z.ZodUUID;
144
+ }, z.core.$strip>>;
145
+ }, z.core.$strip>, z.ZodObject<{
146
+ mode: z.ZodLiteral<DIAGRAMS_MODE.REPORT>;
147
+ accentColor: z.ZodString;
148
+ data: z.ZodArray<z.ZodObject<{
149
+ fileId: z.ZodUUID;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strip>], "mode">;
152
+ }, z.core.$strip>;
153
+ export type DiagramsVersionInputSnapshot = z.infer<typeof DiagramsVersionInputSnapshotSchema>;
72
154
  export declare const DiagramsJobOutputSchema: z.ZodObject<{
73
155
  versions: z.ZodArray<z.ZodObject<{
74
156
  uuid: z.ZodUUID;
75
157
  htmlUrl: z.ZodString;
76
158
  createdAt: z.ZodString;
77
159
  parentUuid: z.ZodOptional<z.ZodUUID>;
160
+ inputSnapshot: z.ZodOptional<z.ZodObject<{
161
+ prompt: z.ZodString;
162
+ modelId: z.ZodUUID;
163
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
164
+ uuid: z.ZodUUID;
165
+ url: z.ZodString;
166
+ name: z.ZodString;
167
+ mimeType: z.ZodString;
168
+ size: z.ZodNumber;
169
+ type: z.ZodString;
170
+ }, z.core.$strip>>>;
171
+ params: z.ZodDiscriminatedUnion<[z.ZodObject<{
172
+ mode: z.ZodLiteral<DIAGRAMS_MODE.CHART>;
173
+ chartTypeUuid: z.ZodUUID;
174
+ data: z.ZodArray<z.ZodObject<{
175
+ fileId: z.ZodUUID;
176
+ }, z.core.$strip>>;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ mode: z.ZodLiteral<DIAGRAMS_MODE.REPORT>;
179
+ accentColor: z.ZodString;
180
+ data: z.ZodArray<z.ZodObject<{
181
+ fileId: z.ZodUUID;
182
+ }, z.core.$strip>>;
183
+ }, z.core.$strip>], "mode">;
184
+ }, z.core.$strip>>;
78
185
  }, z.core.$strip>>;
79
186
  }, z.core.$strip>;
80
187
  export type DiagramsJobOutput = z.infer<typeof DiagramsJobOutputSchema>;
@@ -93,6 +200,14 @@ export declare const DiagramsJobSchema: z.ZodObject<{
93
200
  fileId: z.ZodUUID;
94
201
  url: z.ZodString;
95
202
  fileType: z.ZodOptional<z.ZodEnum<typeof FILE_TYPE>>;
203
+ attachment: z.ZodOptional<z.ZodObject<{
204
+ uuid: z.ZodUUID;
205
+ url: z.ZodString;
206
+ name: z.ZodString;
207
+ mimeType: z.ZodString;
208
+ size: z.ZodNumber;
209
+ type: z.ZodString;
210
+ }, z.core.$strip>>;
96
211
  }, z.core.$strip>>>;
97
212
  chartTypeUuid: z.ZodOptional<z.ZodUUID>;
98
213
  accentColor: z.ZodOptional<z.ZodString>;
@@ -102,6 +217,14 @@ export declare const DiagramsJobSchema: z.ZodObject<{
102
217
  fileId: string;
103
218
  url: string;
104
219
  fileType?: FILE_TYPE | undefined;
220
+ attachment?: {
221
+ uuid: string;
222
+ url: string;
223
+ name: string;
224
+ mimeType: string;
225
+ size: number;
226
+ type: string;
227
+ } | undefined;
105
228
  }[] | undefined;
106
229
  chartTypeUuid?: string | undefined;
107
230
  accentColor?: string | undefined;
@@ -112,6 +235,31 @@ export declare const DiagramsJobSchema: z.ZodObject<{
112
235
  htmlUrl: z.ZodString;
113
236
  createdAt: z.ZodString;
114
237
  parentUuid: z.ZodOptional<z.ZodUUID>;
238
+ inputSnapshot: z.ZodOptional<z.ZodObject<{
239
+ prompt: z.ZodString;
240
+ modelId: z.ZodUUID;
241
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
242
+ uuid: z.ZodUUID;
243
+ url: z.ZodString;
244
+ name: z.ZodString;
245
+ mimeType: z.ZodString;
246
+ size: z.ZodNumber;
247
+ type: z.ZodString;
248
+ }, z.core.$strip>>>;
249
+ params: z.ZodDiscriminatedUnion<[z.ZodObject<{
250
+ mode: z.ZodLiteral<DIAGRAMS_MODE.CHART>;
251
+ chartTypeUuid: z.ZodUUID;
252
+ data: z.ZodArray<z.ZodObject<{
253
+ fileId: z.ZodUUID;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ mode: z.ZodLiteral<DIAGRAMS_MODE.REPORT>;
257
+ accentColor: z.ZodString;
258
+ data: z.ZodArray<z.ZodObject<{
259
+ fileId: z.ZodUUID;
260
+ }, z.core.$strip>>;
261
+ }, z.core.$strip>], "mode">;
262
+ }, z.core.$strip>>;
115
263
  }, z.core.$strip>>;
116
264
  }, z.core.$strip>;
117
265
  reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DiagramsJobSchema = exports.DiagramsJobOutputSchema = exports.DiagramsJobParamsUpdateSchema = exports.DiagramsJobParamsSchema = exports.DiagramsNewJobParamsSchema = exports.DiagramsJobDataSchema = exports.DiagramsReportAccentColorSchema = exports.DiagramsModeSchema = void 0;
3
+ exports.DiagramsJobSchema = exports.DiagramsJobOutputSchema = exports.DiagramsVersionInputSnapshotSchema = exports.DiagramsJobParamsUpdateSchema = exports.DiagramsJobParamsSchema = exports.DiagramsNewJobParamsSchema = exports.DiagramsJobDataSchema = exports.DiagramsAttachedFileSchema = exports.DiagramsReportAccentColorSchema = exports.DiagramsModeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const job_status_enum_1 = require("../../tools/enums/job-status.enum");
6
6
  const common_1 = require("../../common");
@@ -9,11 +9,20 @@ exports.DiagramsModeSchema = zod_1.z.enum(diagrams_mode_enum_1.DIAGRAMS_MODE);
9
9
  exports.DiagramsReportAccentColorSchema = zod_1.z
10
10
  .string()
11
11
  .regex(/^#[0-9a-fA-F]{6}$/, 'Expected a hexadecimal color in #RRGGBB format');
12
+ exports.DiagramsAttachedFileSchema = zod_1.z.object({
13
+ uuid: zod_1.z.uuid(),
14
+ url: zod_1.z.string(),
15
+ name: zod_1.z.string(),
16
+ mimeType: zod_1.z.string(),
17
+ size: zod_1.z.number().nonnegative(),
18
+ type: zod_1.z.string(),
19
+ });
12
20
  exports.DiagramsJobDataSchema = zod_1.z
13
21
  .array(zod_1.z.object({
14
22
  fileId: zod_1.z.uuid(),
15
23
  url: zod_1.z.string(),
16
24
  fileType: zod_1.z.enum(common_1.FILE_TYPE).optional(),
25
+ attachment: exports.DiagramsAttachedFileSchema.optional(),
17
26
  }))
18
27
  .optional();
19
28
  const createDiagramsJobParamsSchema = (mode) => zod_1.z
@@ -68,12 +77,31 @@ exports.DiagramsJobParamsUpdateSchema = zod_1.z.object({
68
77
  accentColor: exports.DiagramsReportAccentColorSchema.optional(),
69
78
  data: exports.DiagramsJobDataSchema,
70
79
  });
80
+ // Historical inputs use stable file IDs, never the processing/storage URLs.
81
+ exports.DiagramsVersionInputSnapshotSchema = zod_1.z.object({
82
+ prompt: zod_1.z.string(),
83
+ modelId: zod_1.z.uuid(),
84
+ attachedFiles: zod_1.z.array(exports.DiagramsAttachedFileSchema).optional(),
85
+ params: zod_1.z.discriminatedUnion('mode', [
86
+ zod_1.z.object({
87
+ mode: zod_1.z.literal(diagrams_mode_enum_1.DIAGRAMS_MODE.CHART),
88
+ chartTypeUuid: zod_1.z.uuid(),
89
+ data: zod_1.z.array(zod_1.z.object({ fileId: zod_1.z.uuid() })),
90
+ }),
91
+ zod_1.z.object({
92
+ mode: zod_1.z.literal(diagrams_mode_enum_1.DIAGRAMS_MODE.REPORT),
93
+ accentColor: exports.DiagramsReportAccentColorSchema,
94
+ data: zod_1.z.array(zod_1.z.object({ fileId: zod_1.z.uuid() })),
95
+ }),
96
+ ]),
97
+ });
71
98
  exports.DiagramsJobOutputSchema = zod_1.z.object({
72
99
  versions: zod_1.z.array(zod_1.z.object({
73
100
  uuid: zod_1.z.uuid(),
74
101
  htmlUrl: zod_1.z.string(),
75
102
  createdAt: zod_1.z.string(),
76
103
  parentUuid: zod_1.z.uuid().optional(),
104
+ inputSnapshot: exports.DiagramsVersionInputSnapshotSchema.optional(),
77
105
  })),
78
106
  });
79
107
  exports.DiagramsJobSchema = zod_1.z.object({
@@ -24,6 +24,31 @@ export declare namespace FindDiagramsJobByUuidQuery {
24
24
  htmlUrl: string;
25
25
  createdAt: string;
26
26
  parentUuid?: string | undefined;
27
+ inputSnapshot?: {
28
+ prompt: string;
29
+ modelId: string;
30
+ attachedFiles?: {
31
+ uuid: string;
32
+ url: string;
33
+ name: string;
34
+ mimeType: string;
35
+ size: number;
36
+ type: string;
37
+ }[] | undefined;
38
+ params: {
39
+ mode: import("..").DIAGRAMS_MODE.CHART;
40
+ chartTypeUuid: string;
41
+ data: {
42
+ fileId: string;
43
+ }[];
44
+ } | {
45
+ mode: import("..").DIAGRAMS_MODE.REPORT;
46
+ accentColor: string;
47
+ data: {
48
+ fileId: string;
49
+ }[];
50
+ };
51
+ } | undefined;
27
52
  }[];
28
53
  };
29
54
  reaction: import("../..").USER_REACTION | null;
@@ -53,6 +78,31 @@ export declare namespace FindDiagramsJobByUuidQuery {
53
78
  htmlUrl: string;
54
79
  createdAt: string;
55
80
  parentUuid?: string | undefined;
81
+ inputSnapshot?: {
82
+ prompt: string;
83
+ modelId: string;
84
+ attachedFiles?: {
85
+ uuid: string;
86
+ url: string;
87
+ name: string;
88
+ mimeType: string;
89
+ size: number;
90
+ type: string;
91
+ }[] | undefined;
92
+ params: {
93
+ mode: import("..").DIAGRAMS_MODE.CHART;
94
+ chartTypeUuid: string;
95
+ data: {
96
+ fileId: string;
97
+ }[];
98
+ } | {
99
+ mode: import("..").DIAGRAMS_MODE.REPORT;
100
+ accentColor: string;
101
+ data: {
102
+ fileId: string;
103
+ }[];
104
+ };
105
+ } | undefined;
56
106
  }[];
57
107
  };
58
108
  reaction: import("../..").USER_REACTION | null;
@@ -31,6 +31,31 @@ export declare namespace FindDiagramsJobsQuery {
31
31
  htmlUrl: string;
32
32
  createdAt: string;
33
33
  parentUuid?: string | undefined;
34
+ inputSnapshot?: {
35
+ prompt: string;
36
+ modelId: string;
37
+ attachedFiles?: {
38
+ uuid: string;
39
+ url: string;
40
+ name: string;
41
+ mimeType: string;
42
+ size: number;
43
+ type: string;
44
+ }[] | undefined;
45
+ params: {
46
+ mode: import("..").DIAGRAMS_MODE.CHART;
47
+ chartTypeUuid: string;
48
+ data: {
49
+ fileId: string;
50
+ }[];
51
+ } | {
52
+ mode: import("..").DIAGRAMS_MODE.REPORT;
53
+ accentColor: string;
54
+ data: {
55
+ fileId: string;
56
+ }[];
57
+ };
58
+ } | undefined;
34
59
  }[];
35
60
  };
36
61
  reaction: import("../..").USER_REACTION | null;
@@ -65,6 +90,31 @@ export declare namespace FindDiagramsJobsQuery {
65
90
  htmlUrl: string;
66
91
  createdAt: string;
67
92
  parentUuid?: string | undefined;
93
+ inputSnapshot?: {
94
+ prompt: string;
95
+ modelId: string;
96
+ attachedFiles?: {
97
+ uuid: string;
98
+ url: string;
99
+ name: string;
100
+ mimeType: string;
101
+ size: number;
102
+ type: string;
103
+ }[] | undefined;
104
+ params: {
105
+ mode: import("..").DIAGRAMS_MODE.CHART;
106
+ chartTypeUuid: string;
107
+ data: {
108
+ fileId: string;
109
+ }[];
110
+ } | {
111
+ mode: import("..").DIAGRAMS_MODE.REPORT;
112
+ accentColor: string;
113
+ data: {
114
+ fileId: string;
115
+ }[];
116
+ };
117
+ } | undefined;
68
118
  }[];
69
119
  };
70
120
  reaction: import("../..").USER_REACTION | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.4.11-stage-2",
3
+ "version": "0.4.12-stage-2",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "license": "ISC",
16
16
  "description": "",
17
17
  "dependencies": {
18
- "@purpleschool/rugpt-lib-common": "^0.0.95",
18
+ "@purpleschool/rugpt-lib-common": "^0.0.97",
19
19
  "zod": "^4.4.3"
20
20
  }
21
21
  }