@shipfox/api-agent-access-dto 20.3.0 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/diagnostic-tools.d.ts +322 -0
- package/dist/schemas/diagnostic-tools.d.ts.map +1 -0
- package/dist/schemas/diagnostic-tools.js +325 -0
- package/dist/schemas/diagnostic-tools.js.map +1 -0
- package/dist/schemas/log-tools.d.ts +215 -0
- package/dist/schemas/log-tools.d.ts.map +1 -0
- package/dist/schemas/log-tools.js +224 -0
- package/dist/schemas/log-tools.js.map +1 -0
- package/dist/schemas/paged-tools.d.ts.map +1 -1
- package/dist/schemas/paged-tools.js +1 -6
- package/dist/schemas/paged-tools.js.map +1 -1
- package/dist/schemas/primitives.d.ts +5 -0
- package/dist/schemas/primitives.d.ts.map +1 -0
- package/dist/schemas/primitives.js +9 -0
- package/dist/schemas/primitives.js.map +1 -0
- package/dist/schemas/workflow-diagnostics.d.ts +862 -0
- package/dist/schemas/workflow-diagnostics.d.ts.map +1 -0
- package/dist/schemas/workflow-diagnostics.js +876 -0
- package/dist/schemas/workflow-diagnostics.js.map +1 -0
- package/dist/schemas/workflow-tools.d.ts +1305 -0
- package/dist/schemas/workflow-tools.d.ts.map +1 -0
- package/dist/schemas/workflow-tools.js +938 -0
- package/dist/schemas/workflow-tools.js.map +1 -0
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/src/index.ts +115 -0
- package/src/schemas/diagnostic-tools.ts +255 -0
- package/src/schemas/log-tools.ts +209 -0
- package/src/schemas/paged-tools.ts +1 -10
- package/src/schemas/primitives.ts +14 -0
- package/src/schemas/workflow-diagnostics.test.ts +277 -0
- package/src/schemas/workflow-diagnostics.ts +693 -0
- package/src/schemas/workflow-tools.test.ts +202 -0
- package/src/schemas/workflow-tools.ts +738 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES, AGENT_ACCESS_TEXT_MAX_BYTES } from './paged-tools.js';
|
|
3
|
+
import { dateTimeSchema, idSchema, utf8CappedString } from './primitives.js';
|
|
4
|
+
export const AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES = 16 * 1024;
|
|
5
|
+
export const AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS = 50;
|
|
6
|
+
export const AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS = 20;
|
|
7
|
+
export const AGENT_ACCESS_FACET_MAX_ITEMS = 50;
|
|
8
|
+
export const AGENT_ACCESS_FACET_VALUE_MAX_BYTES = 256;
|
|
9
|
+
const textSchema = utf8CappedString(AGENT_ACCESS_TEXT_MAX_BYTES);
|
|
10
|
+
const shortTextSchema = utf8CappedString(AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES);
|
|
11
|
+
const serializedJsonSchema = utf8CappedString(AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES).refine(isSerializedJson, {
|
|
12
|
+
message: 'String must contain valid serialized JSON'
|
|
13
|
+
});
|
|
14
|
+
export const getTriggerEventInputSchema = z.object({
|
|
15
|
+
event_id: idSchema
|
|
16
|
+
}).strict();
|
|
17
|
+
export const getTriggerEventFacetsInputSchema = z.object({}).strict();
|
|
18
|
+
const triggerOriginSchema = z.enum([
|
|
19
|
+
'integration',
|
|
20
|
+
'manual',
|
|
21
|
+
'cron',
|
|
22
|
+
'dev'
|
|
23
|
+
]);
|
|
24
|
+
const triggerOutcomeSchema = z.enum([
|
|
25
|
+
'received',
|
|
26
|
+
'routed',
|
|
27
|
+
'discarded',
|
|
28
|
+
'failed',
|
|
29
|
+
'errored'
|
|
30
|
+
]);
|
|
31
|
+
const triggerDecisionOutcomeSchema = z.enum([
|
|
32
|
+
'triggered',
|
|
33
|
+
'filter-error',
|
|
34
|
+
'dispatch-error'
|
|
35
|
+
]);
|
|
36
|
+
const triggerDecisionSchema = z.object({
|
|
37
|
+
id: idSchema,
|
|
38
|
+
subscription_kind: z.enum([
|
|
39
|
+
'trigger',
|
|
40
|
+
'listener',
|
|
41
|
+
'dev'
|
|
42
|
+
]),
|
|
43
|
+
outcome: triggerDecisionOutcomeSchema,
|
|
44
|
+
reason: textSchema.nullable(),
|
|
45
|
+
workflow_definition_id: idSchema.nullable(),
|
|
46
|
+
project_id: idSchema.nullable(),
|
|
47
|
+
workflow_run_id: idSchema.nullable(),
|
|
48
|
+
job_id: idSchema.nullable()
|
|
49
|
+
}).strict();
|
|
50
|
+
const triggerReplaySchema = z.object({
|
|
51
|
+
id: idSchema,
|
|
52
|
+
workflow_run_id: idSchema.nullable(),
|
|
53
|
+
created_at: dateTimeSchema
|
|
54
|
+
}).strict();
|
|
55
|
+
export const getTriggerEventResultSchema = z.object({
|
|
56
|
+
id: idSchema,
|
|
57
|
+
origin: triggerOriginSchema,
|
|
58
|
+
provider: textSchema.nullable(),
|
|
59
|
+
source: textSchema,
|
|
60
|
+
event: textSchema,
|
|
61
|
+
outcome: triggerOutcomeSchema,
|
|
62
|
+
matched_count: z.number().int().nonnegative(),
|
|
63
|
+
connection_id: idSchema.nullable(),
|
|
64
|
+
connection_name: shortTextSchema.nullable(),
|
|
65
|
+
replay_of_event_id: idSchema.nullable(),
|
|
66
|
+
received_at: dateTimeSchema,
|
|
67
|
+
processed_at: dateTimeSchema.nullable(),
|
|
68
|
+
payload_preview: serializedJsonSchema,
|
|
69
|
+
payload_preview_truncated: z.literal(true).optional(),
|
|
70
|
+
payload_preview_total_bytes: z.number().int().nonnegative().optional(),
|
|
71
|
+
decisions: z.array(triggerDecisionSchema).max(AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS),
|
|
72
|
+
decisions_truncated: z.literal(true).optional(),
|
|
73
|
+
decisions_total_count: z.number().int().nonnegative(),
|
|
74
|
+
replays: z.array(triggerReplaySchema).max(AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS),
|
|
75
|
+
replays_truncated: z.literal(true).optional(),
|
|
76
|
+
replays_total_count: z.number().int().nonnegative()
|
|
77
|
+
}).strict();
|
|
78
|
+
const facetSchema = z.object({
|
|
79
|
+
value: utf8CappedString(AGENT_ACCESS_FACET_VALUE_MAX_BYTES),
|
|
80
|
+
count: z.number().int().nonnegative()
|
|
81
|
+
}).strict();
|
|
82
|
+
export const getTriggerEventFacetsResultSchema = z.object({
|
|
83
|
+
sources: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),
|
|
84
|
+
events: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),
|
|
85
|
+
origins: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS)
|
|
86
|
+
}).strict();
|
|
87
|
+
const uuid = {
|
|
88
|
+
type: 'string',
|
|
89
|
+
format: 'uuid'
|
|
90
|
+
};
|
|
91
|
+
const dateTime = {
|
|
92
|
+
type: 'string',
|
|
93
|
+
format: 'date-time'
|
|
94
|
+
};
|
|
95
|
+
const text = {
|
|
96
|
+
type: 'string',
|
|
97
|
+
maxLength: AGENT_ACCESS_TEXT_MAX_BYTES
|
|
98
|
+
};
|
|
99
|
+
const shortText = {
|
|
100
|
+
type: 'string',
|
|
101
|
+
maxLength: AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES
|
|
102
|
+
};
|
|
103
|
+
const serializedJson = {
|
|
104
|
+
type: 'string',
|
|
105
|
+
maxLength: AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES,
|
|
106
|
+
contentMediaType: 'application/json'
|
|
107
|
+
};
|
|
108
|
+
const nullable = (schema)=>({
|
|
109
|
+
anyOf: [
|
|
110
|
+
schema,
|
|
111
|
+
{
|
|
112
|
+
type: 'null'
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
});
|
|
116
|
+
export const getTriggerEventInputJsonSchema = {
|
|
117
|
+
type: 'object',
|
|
118
|
+
properties: {
|
|
119
|
+
event_id: uuid
|
|
120
|
+
},
|
|
121
|
+
required: [
|
|
122
|
+
'event_id'
|
|
123
|
+
],
|
|
124
|
+
additionalProperties: false
|
|
125
|
+
};
|
|
126
|
+
function isSerializedJson(value) {
|
|
127
|
+
try {
|
|
128
|
+
JSON.parse(value);
|
|
129
|
+
return true;
|
|
130
|
+
} catch {
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export const getTriggerEventFacetsInputJsonSchema = {
|
|
135
|
+
type: 'object',
|
|
136
|
+
properties: {},
|
|
137
|
+
additionalProperties: false
|
|
138
|
+
};
|
|
139
|
+
const triggerDecisionJsonSchema = {
|
|
140
|
+
type: 'object',
|
|
141
|
+
properties: {
|
|
142
|
+
id: uuid,
|
|
143
|
+
subscription_kind: {
|
|
144
|
+
type: 'string',
|
|
145
|
+
enum: [
|
|
146
|
+
'trigger',
|
|
147
|
+
'listener',
|
|
148
|
+
'dev'
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
outcome: {
|
|
152
|
+
type: 'string',
|
|
153
|
+
enum: [
|
|
154
|
+
'triggered',
|
|
155
|
+
'filter-error',
|
|
156
|
+
'dispatch-error'
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
reason: nullable(text),
|
|
160
|
+
workflow_definition_id: nullable(uuid),
|
|
161
|
+
project_id: nullable(uuid),
|
|
162
|
+
workflow_run_id: nullable(uuid),
|
|
163
|
+
job_id: nullable(uuid)
|
|
164
|
+
},
|
|
165
|
+
required: [
|
|
166
|
+
'id',
|
|
167
|
+
'subscription_kind',
|
|
168
|
+
'outcome',
|
|
169
|
+
'reason',
|
|
170
|
+
'workflow_definition_id',
|
|
171
|
+
'project_id',
|
|
172
|
+
'workflow_run_id',
|
|
173
|
+
'job_id'
|
|
174
|
+
],
|
|
175
|
+
additionalProperties: false
|
|
176
|
+
};
|
|
177
|
+
const triggerReplayJsonSchema = {
|
|
178
|
+
type: 'object',
|
|
179
|
+
properties: {
|
|
180
|
+
id: uuid,
|
|
181
|
+
workflow_run_id: nullable(uuid),
|
|
182
|
+
created_at: dateTime
|
|
183
|
+
},
|
|
184
|
+
required: [
|
|
185
|
+
'id',
|
|
186
|
+
'workflow_run_id',
|
|
187
|
+
'created_at'
|
|
188
|
+
],
|
|
189
|
+
additionalProperties: false
|
|
190
|
+
};
|
|
191
|
+
export const getTriggerEventResultJsonSchema = {
|
|
192
|
+
type: 'object',
|
|
193
|
+
properties: {
|
|
194
|
+
id: uuid,
|
|
195
|
+
origin: {
|
|
196
|
+
type: 'string',
|
|
197
|
+
enum: [
|
|
198
|
+
'integration',
|
|
199
|
+
'manual',
|
|
200
|
+
'cron',
|
|
201
|
+
'dev'
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
provider: nullable(text),
|
|
205
|
+
source: text,
|
|
206
|
+
event: text,
|
|
207
|
+
outcome: {
|
|
208
|
+
type: 'string',
|
|
209
|
+
enum: [
|
|
210
|
+
'received',
|
|
211
|
+
'routed',
|
|
212
|
+
'discarded',
|
|
213
|
+
'failed',
|
|
214
|
+
'errored'
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
matched_count: {
|
|
218
|
+
type: 'integer',
|
|
219
|
+
minimum: 0
|
|
220
|
+
},
|
|
221
|
+
connection_id: nullable(uuid),
|
|
222
|
+
connection_name: nullable(shortText),
|
|
223
|
+
replay_of_event_id: nullable(uuid),
|
|
224
|
+
received_at: dateTime,
|
|
225
|
+
processed_at: nullable(dateTime),
|
|
226
|
+
payload_preview: serializedJson,
|
|
227
|
+
payload_preview_truncated: {
|
|
228
|
+
const: true
|
|
229
|
+
},
|
|
230
|
+
payload_preview_total_bytes: {
|
|
231
|
+
type: 'integer',
|
|
232
|
+
minimum: 0
|
|
233
|
+
},
|
|
234
|
+
decisions: {
|
|
235
|
+
type: 'array',
|
|
236
|
+
maxItems: AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS,
|
|
237
|
+
items: triggerDecisionJsonSchema
|
|
238
|
+
},
|
|
239
|
+
decisions_truncated: {
|
|
240
|
+
const: true
|
|
241
|
+
},
|
|
242
|
+
decisions_total_count: {
|
|
243
|
+
type: 'integer',
|
|
244
|
+
minimum: 0
|
|
245
|
+
},
|
|
246
|
+
replays: {
|
|
247
|
+
type: 'array',
|
|
248
|
+
maxItems: AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS,
|
|
249
|
+
items: triggerReplayJsonSchema
|
|
250
|
+
},
|
|
251
|
+
replays_truncated: {
|
|
252
|
+
const: true
|
|
253
|
+
},
|
|
254
|
+
replays_total_count: {
|
|
255
|
+
type: 'integer',
|
|
256
|
+
minimum: 0
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
required: [
|
|
260
|
+
'id',
|
|
261
|
+
'origin',
|
|
262
|
+
'provider',
|
|
263
|
+
'source',
|
|
264
|
+
'event',
|
|
265
|
+
'outcome',
|
|
266
|
+
'matched_count',
|
|
267
|
+
'connection_id',
|
|
268
|
+
'connection_name',
|
|
269
|
+
'replay_of_event_id',
|
|
270
|
+
'received_at',
|
|
271
|
+
'processed_at',
|
|
272
|
+
'payload_preview',
|
|
273
|
+
'decisions',
|
|
274
|
+
'decisions_total_count',
|
|
275
|
+
'replays',
|
|
276
|
+
'replays_total_count'
|
|
277
|
+
],
|
|
278
|
+
additionalProperties: false
|
|
279
|
+
};
|
|
280
|
+
const facetJsonSchema = {
|
|
281
|
+
type: 'object',
|
|
282
|
+
properties: {
|
|
283
|
+
value: {
|
|
284
|
+
type: 'string',
|
|
285
|
+
maxLength: AGENT_ACCESS_FACET_VALUE_MAX_BYTES
|
|
286
|
+
},
|
|
287
|
+
count: {
|
|
288
|
+
type: 'integer',
|
|
289
|
+
minimum: 0
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
required: [
|
|
293
|
+
'value',
|
|
294
|
+
'count'
|
|
295
|
+
],
|
|
296
|
+
additionalProperties: false
|
|
297
|
+
};
|
|
298
|
+
export const getTriggerEventFacetsResultJsonSchema = {
|
|
299
|
+
type: 'object',
|
|
300
|
+
properties: {
|
|
301
|
+
sources: {
|
|
302
|
+
type: 'array',
|
|
303
|
+
maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,
|
|
304
|
+
items: facetJsonSchema
|
|
305
|
+
},
|
|
306
|
+
events: {
|
|
307
|
+
type: 'array',
|
|
308
|
+
maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,
|
|
309
|
+
items: facetJsonSchema
|
|
310
|
+
},
|
|
311
|
+
origins: {
|
|
312
|
+
type: 'array',
|
|
313
|
+
maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,
|
|
314
|
+
items: facetJsonSchema
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
required: [
|
|
318
|
+
'sources',
|
|
319
|
+
'events',
|
|
320
|
+
'origins'
|
|
321
|
+
],
|
|
322
|
+
additionalProperties: false
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
//# sourceMappingURL=diagnostic-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/diagnostic-tools.ts"],"sourcesContent":["import {z} from 'zod';\nimport type {AgentAccessObjectSchema} from './envelope.js';\nimport {\n AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES,\n AGENT_ACCESS_TEXT_MAX_BYTES,\n} from './paged-tools.js';\nimport {dateTimeSchema, idSchema, utf8CappedString} from './primitives.js';\n\nexport const AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES = 16 * 1024;\nexport const AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS = 50;\nexport const AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS = 20;\nexport const AGENT_ACCESS_FACET_MAX_ITEMS = 50;\nexport const AGENT_ACCESS_FACET_VALUE_MAX_BYTES = 256;\n\nconst textSchema = utf8CappedString(AGENT_ACCESS_TEXT_MAX_BYTES);\nconst shortTextSchema = utf8CappedString(AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES);\nconst serializedJsonSchema = utf8CappedString(AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES).refine(\n isSerializedJson,\n {message: 'String must contain valid serialized JSON'},\n);\n\nexport const getTriggerEventInputSchema = z.object({event_id: idSchema}).strict();\n\nexport const getTriggerEventFacetsInputSchema = z.object({}).strict();\n\nexport type GetTriggerEventInputDto = z.infer<typeof getTriggerEventInputSchema>;\nexport type GetTriggerEventFacetsInputDto = z.infer<typeof getTriggerEventFacetsInputSchema>;\n\nconst triggerOriginSchema = z.enum(['integration', 'manual', 'cron', 'dev']);\nconst triggerOutcomeSchema = z.enum(['received', 'routed', 'discarded', 'failed', 'errored']);\nconst triggerDecisionOutcomeSchema = z.enum(['triggered', 'filter-error', 'dispatch-error']);\nconst triggerDecisionSchema = z\n .object({\n id: idSchema,\n subscription_kind: z.enum(['trigger', 'listener', 'dev']),\n outcome: triggerDecisionOutcomeSchema,\n reason: textSchema.nullable(),\n workflow_definition_id: idSchema.nullable(),\n project_id: idSchema.nullable(),\n workflow_run_id: idSchema.nullable(),\n job_id: idSchema.nullable(),\n })\n .strict();\n\nconst triggerReplaySchema = z\n .object({\n id: idSchema,\n workflow_run_id: idSchema.nullable(),\n created_at: dateTimeSchema,\n })\n .strict();\n\nexport const getTriggerEventResultSchema = z\n .object({\n id: idSchema,\n origin: triggerOriginSchema,\n provider: textSchema.nullable(),\n source: textSchema,\n event: textSchema,\n outcome: triggerOutcomeSchema,\n matched_count: z.number().int().nonnegative(),\n connection_id: idSchema.nullable(),\n connection_name: shortTextSchema.nullable(),\n replay_of_event_id: idSchema.nullable(),\n received_at: dateTimeSchema,\n processed_at: dateTimeSchema.nullable(),\n payload_preview: serializedJsonSchema,\n payload_preview_truncated: z.literal(true).optional(),\n payload_preview_total_bytes: z.number().int().nonnegative().optional(),\n decisions: z.array(triggerDecisionSchema).max(AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS),\n decisions_truncated: z.literal(true).optional(),\n decisions_total_count: z.number().int().nonnegative(),\n replays: z.array(triggerReplaySchema).max(AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS),\n replays_truncated: z.literal(true).optional(),\n replays_total_count: z.number().int().nonnegative(),\n })\n .strict();\n\nconst facetSchema = z\n .object({\n value: utf8CappedString(AGENT_ACCESS_FACET_VALUE_MAX_BYTES),\n count: z.number().int().nonnegative(),\n })\n .strict();\n\nexport const getTriggerEventFacetsResultSchema = z\n .object({\n sources: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),\n events: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),\n origins: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),\n })\n .strict();\n\nexport type GetTriggerEventResultDto = z.infer<typeof getTriggerEventResultSchema>;\nexport type GetTriggerEventFacetsResultDto = z.infer<typeof getTriggerEventFacetsResultSchema>;\n\nconst uuid = {type: 'string', format: 'uuid'} as const;\nconst dateTime = {type: 'string', format: 'date-time'} as const;\nconst text = {type: 'string', maxLength: AGENT_ACCESS_TEXT_MAX_BYTES} as const;\nconst shortText = {\n type: 'string',\n maxLength: AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES,\n} as const;\nconst serializedJson = {\n type: 'string',\n maxLength: AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES,\n contentMediaType: 'application/json',\n} as const;\nconst nullable = (schema: Record<string, unknown>) => ({anyOf: [schema, {type: 'null'}]}) as const;\n\nexport const getTriggerEventInputJsonSchema = {\n type: 'object',\n properties: {event_id: uuid},\n required: ['event_id'],\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n\nfunction isSerializedJson(value: string): boolean {\n try {\n JSON.parse(value);\n return true;\n } catch {\n return false;\n }\n}\n\nexport const getTriggerEventFacetsInputJsonSchema = {\n type: 'object',\n properties: {},\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n\nconst triggerDecisionJsonSchema = {\n type: 'object',\n properties: {\n id: uuid,\n subscription_kind: {type: 'string', enum: ['trigger', 'listener', 'dev']},\n outcome: {type: 'string', enum: ['triggered', 'filter-error', 'dispatch-error']},\n reason: nullable(text),\n workflow_definition_id: nullable(uuid),\n project_id: nullable(uuid),\n workflow_run_id: nullable(uuid),\n job_id: nullable(uuid),\n },\n required: [\n 'id',\n 'subscription_kind',\n 'outcome',\n 'reason',\n 'workflow_definition_id',\n 'project_id',\n 'workflow_run_id',\n 'job_id',\n ],\n additionalProperties: false,\n} as const;\n\nconst triggerReplayJsonSchema = {\n type: 'object',\n properties: {\n id: uuid,\n workflow_run_id: nullable(uuid),\n created_at: dateTime,\n },\n required: ['id', 'workflow_run_id', 'created_at'],\n additionalProperties: false,\n} as const;\n\nexport const getTriggerEventResultJsonSchema = {\n type: 'object',\n properties: {\n id: uuid,\n origin: {type: 'string', enum: ['integration', 'manual', 'cron', 'dev']},\n provider: nullable(text),\n source: text,\n event: text,\n outcome: {type: 'string', enum: ['received', 'routed', 'discarded', 'failed', 'errored']},\n matched_count: {type: 'integer', minimum: 0},\n connection_id: nullable(uuid),\n connection_name: nullable(shortText),\n replay_of_event_id: nullable(uuid),\n received_at: dateTime,\n processed_at: nullable(dateTime),\n payload_preview: serializedJson,\n payload_preview_truncated: {const: true},\n payload_preview_total_bytes: {type: 'integer', minimum: 0},\n decisions: {\n type: 'array',\n maxItems: AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS,\n items: triggerDecisionJsonSchema,\n },\n decisions_truncated: {const: true},\n decisions_total_count: {type: 'integer', minimum: 0},\n replays: {\n type: 'array',\n maxItems: AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS,\n items: triggerReplayJsonSchema,\n },\n replays_truncated: {const: true},\n replays_total_count: {type: 'integer', minimum: 0},\n },\n required: [\n 'id',\n 'origin',\n 'provider',\n 'source',\n 'event',\n 'outcome',\n 'matched_count',\n 'connection_id',\n 'connection_name',\n 'replay_of_event_id',\n 'received_at',\n 'processed_at',\n 'payload_preview',\n 'decisions',\n 'decisions_total_count',\n 'replays',\n 'replays_total_count',\n ],\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n\nconst facetJsonSchema = {\n type: 'object',\n properties: {\n value: {type: 'string', maxLength: AGENT_ACCESS_FACET_VALUE_MAX_BYTES},\n count: {type: 'integer', minimum: 0},\n },\n required: ['value', 'count'],\n additionalProperties: false,\n} as const;\n\nexport const getTriggerEventFacetsResultJsonSchema = {\n type: 'object',\n properties: {\n sources: {\n type: 'array',\n maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,\n items: facetJsonSchema,\n },\n events: {\n type: 'array',\n maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,\n items: facetJsonSchema,\n },\n origins: {\n type: 'array',\n maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,\n items: facetJsonSchema,\n },\n },\n required: ['sources', 'events', 'origins'],\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n"],"names":["z","AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES","AGENT_ACCESS_TEXT_MAX_BYTES","dateTimeSchema","idSchema","utf8CappedString","AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES","AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS","AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS","AGENT_ACCESS_FACET_MAX_ITEMS","AGENT_ACCESS_FACET_VALUE_MAX_BYTES","textSchema","shortTextSchema","serializedJsonSchema","refine","isSerializedJson","message","getTriggerEventInputSchema","object","event_id","strict","getTriggerEventFacetsInputSchema","triggerOriginSchema","enum","triggerOutcomeSchema","triggerDecisionOutcomeSchema","triggerDecisionSchema","id","subscription_kind","outcome","reason","nullable","workflow_definition_id","project_id","workflow_run_id","job_id","triggerReplaySchema","created_at","getTriggerEventResultSchema","origin","provider","source","event","matched_count","number","int","nonnegative","connection_id","connection_name","replay_of_event_id","received_at","processed_at","payload_preview","payload_preview_truncated","literal","optional","payload_preview_total_bytes","decisions","array","max","decisions_truncated","decisions_total_count","replays","replays_truncated","replays_total_count","facetSchema","value","count","getTriggerEventFacetsResultSchema","sources","events","origins","uuid","type","format","dateTime","text","maxLength","shortText","serializedJson","contentMediaType","schema","anyOf","getTriggerEventInputJsonSchema","properties","required","additionalProperties","JSON","parse","getTriggerEventFacetsInputJsonSchema","triggerDecisionJsonSchema","triggerReplayJsonSchema","getTriggerEventResultJsonSchema","minimum","const","maxItems","items","facetJsonSchema","getTriggerEventFacetsResultJsonSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,SACEC,sCAAsC,EACtCC,2BAA2B,QACtB,mBAAmB;AAC1B,SAAQC,cAAc,EAAEC,QAAQ,EAAEC,gBAAgB,QAAO,kBAAkB;AAE3E,OAAO,MAAMC,yCAAyC,KAAK,KAAK;AAChE,OAAO,MAAMC,0CAA0C,GAAG;AAC1D,OAAO,MAAMC,wCAAwC,GAAG;AACxD,OAAO,MAAMC,+BAA+B,GAAG;AAC/C,OAAO,MAAMC,qCAAqC,IAAI;AAEtD,MAAMC,aAAaN,iBAAiBH;AACpC,MAAMU,kBAAkBP,iBAAiBJ;AACzC,MAAMY,uBAAuBR,iBAAiBC,wCAAwCQ,MAAM,CAC1FC,kBACA;IAACC,SAAS;AAA2C;AAGvD,OAAO,MAAMC,6BAA6BjB,EAAEkB,MAAM,CAAC;IAACC,UAAUf;AAAQ,GAAGgB,MAAM,GAAG;AAElF,OAAO,MAAMC,mCAAmCrB,EAAEkB,MAAM,CAAC,CAAC,GAAGE,MAAM,GAAG;AAKtE,MAAME,sBAAsBtB,EAAEuB,IAAI,CAAC;IAAC;IAAe;IAAU;IAAQ;CAAM;AAC3E,MAAMC,uBAAuBxB,EAAEuB,IAAI,CAAC;IAAC;IAAY;IAAU;IAAa;IAAU;CAAU;AAC5F,MAAME,+BAA+BzB,EAAEuB,IAAI,CAAC;I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,UAAUxF;YACVyF,OAAON;QACT;QACA9B,qBAAqB;YAACkC,OAAO;QAAI;QACjCjC,uBAAuB;YAACY,MAAM;YAAWoB,SAAS;QAAC;QACnD/B,SAAS;YACPW,MAAM;YACNsB,UAAUvF;YACVwF,OAAOL;QACT;QACA5B,mBAAmB;YAAC+B,OAAO;QAAI;QAC/B9B,qBAAqB;YAACS,MAAM;YAAWoB,SAAS;QAAC;IACnD;IACAR,UAAU;QACR;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD;IACDC,sBAAsB;AACxB,EAA6C;AAE7C,MAAMW,kBAAkB;IACtBxB,MAAM;IACNW,YAAY;QACVlB,OAAO;YAACO,MAAM;YAAUI,WAAWnE;QAAkC;QACrEyD,OAAO;YAACM,MAAM;YAAWoB,SAAS;QAAC;IACrC;IACAR,UAAU;QAAC;QAAS;KAAQ;IAC5BC,sBAAsB;AACxB;AAEA,OAAO,MAAMY,wCAAwC;IACnDzB,MAAM;IACNW,YAAY;QACVf,SAAS;YACPI,MAAM;YACNsB,UAAUtF;YACVuF,OAAOC;QACT;QACA3B,QAAQ;YACNG,MAAM;YACNsB,UAAUtF;YACVuF,OAAOC;QACT;QACA1B,SAAS;YACPE,MAAM;YACNsB,UAAUtF;YACVuF,OAAOC;QACT;IACF;IACAZ,UAAU;QAAC;QAAW;QAAU;KAAU;IAC1CC,sBAAsB;AACxB,EAA6C"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AGENT_ACCESS_LOG_CONTENT_MAX_BYTES: number;
|
|
3
|
+
export declare const AGENT_ACCESS_LOG_SECTION_MAX_ITEMS = 10;
|
|
4
|
+
export declare const AGENT_ACCESS_LOG_TAIL_LINES_DEFAULT = 500;
|
|
5
|
+
export declare const AGENT_ACCESS_LOG_TAIL_LINES_MAX = 2000;
|
|
6
|
+
export declare const AGENT_ACCESS_LOG_ATTEMPT_MAX = 2147483647;
|
|
7
|
+
export declare const getStepLogsInputSchema: z.ZodObject<{
|
|
8
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
attempt: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
failed_only: z.ZodOptional<z.ZodLiteral<true>>;
|
|
12
|
+
tail_lines: z.ZodDefault<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
export type GetStepLogsInputDto = z.output<typeof getStepLogsInputSchema>;
|
|
15
|
+
export declare const getStepLogsResultSchema: z.ZodObject<{
|
|
16
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
workflow_run_attempt: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
19
|
+
workflow_run_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
workflow_run_attempt: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
job_id: z.ZodOptional<z.ZodString>;
|
|
22
|
+
job_execution_id: z.ZodOptional<z.ZodString>;
|
|
23
|
+
step_id: z.ZodString;
|
|
24
|
+
step_attempt_id: z.ZodOptional<z.ZodString>;
|
|
25
|
+
attempt: z.ZodNumber;
|
|
26
|
+
content: z.ZodString;
|
|
27
|
+
total_lines: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
content_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
29
|
+
content_total_bytes: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strict>>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type GetStepLogsResultDto = z.output<typeof getStepLogsResultSchema>;
|
|
33
|
+
export declare const getStepLogsInputJsonSchema: {
|
|
34
|
+
readonly type: 'object';
|
|
35
|
+
readonly oneOf: readonly [{
|
|
36
|
+
readonly type: 'object';
|
|
37
|
+
readonly properties: {
|
|
38
|
+
readonly step_id: {
|
|
39
|
+
readonly type: 'string';
|
|
40
|
+
readonly format: 'uuid';
|
|
41
|
+
};
|
|
42
|
+
readonly attempt: {
|
|
43
|
+
readonly type: 'integer';
|
|
44
|
+
readonly minimum: 1;
|
|
45
|
+
readonly maximum: 2147483647;
|
|
46
|
+
};
|
|
47
|
+
readonly tail_lines: {
|
|
48
|
+
readonly type: 'integer';
|
|
49
|
+
readonly minimum: 1;
|
|
50
|
+
readonly maximum: 2000;
|
|
51
|
+
readonly default: 500;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly required: readonly ['step_id'];
|
|
55
|
+
readonly additionalProperties: false;
|
|
56
|
+
}, {
|
|
57
|
+
readonly type: 'object';
|
|
58
|
+
readonly properties: {
|
|
59
|
+
readonly run_id: {
|
|
60
|
+
readonly type: 'string';
|
|
61
|
+
readonly format: 'uuid';
|
|
62
|
+
};
|
|
63
|
+
readonly failed_only: {
|
|
64
|
+
readonly const: true;
|
|
65
|
+
};
|
|
66
|
+
readonly tail_lines: {
|
|
67
|
+
readonly type: 'integer';
|
|
68
|
+
readonly minimum: 1;
|
|
69
|
+
readonly maximum: 2000;
|
|
70
|
+
readonly default: 500;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
readonly required: readonly ['run_id', 'failed_only'];
|
|
74
|
+
readonly additionalProperties: false;
|
|
75
|
+
}];
|
|
76
|
+
};
|
|
77
|
+
export declare const getStepLogsResultJsonSchema: {
|
|
78
|
+
readonly type: 'object';
|
|
79
|
+
readonly oneOf: readonly [{
|
|
80
|
+
readonly type: 'object';
|
|
81
|
+
readonly properties: {
|
|
82
|
+
readonly sections: {
|
|
83
|
+
readonly type: 'array';
|
|
84
|
+
readonly minItems: 1;
|
|
85
|
+
readonly maxItems: 1;
|
|
86
|
+
readonly items: {
|
|
87
|
+
readonly type: 'object';
|
|
88
|
+
readonly properties: {
|
|
89
|
+
readonly workflow_run_id: {
|
|
90
|
+
readonly type: 'string';
|
|
91
|
+
readonly format: 'uuid';
|
|
92
|
+
};
|
|
93
|
+
readonly workflow_run_attempt: {
|
|
94
|
+
readonly type: 'integer';
|
|
95
|
+
readonly minimum: 1;
|
|
96
|
+
readonly maximum: 2147483647;
|
|
97
|
+
};
|
|
98
|
+
readonly job_id: {
|
|
99
|
+
readonly type: 'string';
|
|
100
|
+
readonly format: 'uuid';
|
|
101
|
+
};
|
|
102
|
+
readonly job_execution_id: {
|
|
103
|
+
readonly type: 'string';
|
|
104
|
+
readonly format: 'uuid';
|
|
105
|
+
};
|
|
106
|
+
readonly step_id: {
|
|
107
|
+
readonly type: 'string';
|
|
108
|
+
readonly format: 'uuid';
|
|
109
|
+
};
|
|
110
|
+
readonly step_attempt_id: {
|
|
111
|
+
readonly type: 'string';
|
|
112
|
+
readonly format: 'uuid';
|
|
113
|
+
};
|
|
114
|
+
readonly attempt: {
|
|
115
|
+
readonly type: 'integer';
|
|
116
|
+
readonly minimum: 1;
|
|
117
|
+
readonly maximum: 2147483647;
|
|
118
|
+
};
|
|
119
|
+
readonly content: {
|
|
120
|
+
readonly type: 'string';
|
|
121
|
+
readonly maxLength: number;
|
|
122
|
+
};
|
|
123
|
+
readonly total_lines: {
|
|
124
|
+
readonly type: 'integer';
|
|
125
|
+
readonly minimum: 0;
|
|
126
|
+
};
|
|
127
|
+
readonly content_truncated: {
|
|
128
|
+
readonly const: true;
|
|
129
|
+
};
|
|
130
|
+
readonly content_total_bytes: {
|
|
131
|
+
readonly type: 'integer';
|
|
132
|
+
readonly minimum: 0;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly required: readonly ['step_id', 'attempt', 'content'];
|
|
136
|
+
readonly additionalProperties: false;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
readonly required: readonly ['sections'];
|
|
141
|
+
readonly additionalProperties: false;
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: 'object';
|
|
144
|
+
readonly properties: {
|
|
145
|
+
readonly run_id: {
|
|
146
|
+
readonly type: 'string';
|
|
147
|
+
readonly format: 'uuid';
|
|
148
|
+
};
|
|
149
|
+
readonly workflow_run_attempt: {
|
|
150
|
+
readonly type: 'integer';
|
|
151
|
+
readonly minimum: 1;
|
|
152
|
+
readonly maximum: 2147483647;
|
|
153
|
+
};
|
|
154
|
+
readonly sections: {
|
|
155
|
+
readonly type: 'array';
|
|
156
|
+
readonly maxItems: 10;
|
|
157
|
+
readonly items: {
|
|
158
|
+
readonly type: 'object';
|
|
159
|
+
readonly properties: {
|
|
160
|
+
readonly workflow_run_id: {
|
|
161
|
+
readonly type: 'string';
|
|
162
|
+
readonly format: 'uuid';
|
|
163
|
+
};
|
|
164
|
+
readonly workflow_run_attempt: {
|
|
165
|
+
readonly type: 'integer';
|
|
166
|
+
readonly minimum: 1;
|
|
167
|
+
readonly maximum: 2147483647;
|
|
168
|
+
};
|
|
169
|
+
readonly job_id: {
|
|
170
|
+
readonly type: 'string';
|
|
171
|
+
readonly format: 'uuid';
|
|
172
|
+
};
|
|
173
|
+
readonly job_execution_id: {
|
|
174
|
+
readonly type: 'string';
|
|
175
|
+
readonly format: 'uuid';
|
|
176
|
+
};
|
|
177
|
+
readonly step_id: {
|
|
178
|
+
readonly type: 'string';
|
|
179
|
+
readonly format: 'uuid';
|
|
180
|
+
};
|
|
181
|
+
readonly step_attempt_id: {
|
|
182
|
+
readonly type: 'string';
|
|
183
|
+
readonly format: 'uuid';
|
|
184
|
+
};
|
|
185
|
+
readonly attempt: {
|
|
186
|
+
readonly type: 'integer';
|
|
187
|
+
readonly minimum: 1;
|
|
188
|
+
readonly maximum: 2147483647;
|
|
189
|
+
};
|
|
190
|
+
readonly content: {
|
|
191
|
+
readonly type: 'string';
|
|
192
|
+
readonly maxLength: number;
|
|
193
|
+
};
|
|
194
|
+
readonly total_lines: {
|
|
195
|
+
readonly type: 'integer';
|
|
196
|
+
readonly minimum: 0;
|
|
197
|
+
};
|
|
198
|
+
readonly content_truncated: {
|
|
199
|
+
readonly const: true;
|
|
200
|
+
};
|
|
201
|
+
readonly content_total_bytes: {
|
|
202
|
+
readonly type: 'integer';
|
|
203
|
+
readonly minimum: 0;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
readonly required: readonly ['step_id', 'attempt', 'content'];
|
|
207
|
+
readonly additionalProperties: false;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly required: readonly ['run_id', 'workflow_run_attempt', 'sections'];
|
|
212
|
+
readonly additionalProperties: false;
|
|
213
|
+
}];
|
|
214
|
+
};
|
|
215
|
+
//# sourceMappingURL=log-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-tools.d.ts","sourceRoot":"","sources":["../../src/schemas/log-tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,kCAAkC,QAAY,CAAC;AAC5D,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,mCAAmC,MAA8B,CAAC;AAC/E,eAAO,MAAM,+BAA+B,OAA0B,CAAC;AACvE,eAAO,MAAM,4BAA4B,aAAgB,CAAC;AAW1D,eAAO,MAAM,sBAAsB;;;;;;kBAyCxB,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAkB1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;kBAyBzB,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAyC5E,eAAO,MAAM,0BAA0B;mBAC/B,QAAQ;;uBAhCR,QAAQ;;;+BARI,QAAQ;iCAAU,MAAM;;;+BAEpC,SAAS;kCACN,CAAC;;;;yBAUN,IAAI,EAAE,SAAS;yBACf,OAAO,EAAE,CAAC;yBACV,OAAO;yBACP,OAAO;;;qCAGA,SAAS;;;uBAKd,QAAQ;;qBAEZ,M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