@shipfox/api-agent-access-dto 20.2.0 → 21.0.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 +2 -0
- package/.turbo/turbo-type$colon$emit.log +1 -0
- package/.turbo/turbo-type.log +2 -0
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -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 +330 -0
- package/dist/schemas/diagnostic-tools.js.map +1 -0
- package/dist/schemas/paged-tools.d.ts +774 -0
- package/dist/schemas/paged-tools.d.ts.map +1 -0
- package/dist/schemas/paged-tools.js +915 -0
- package/dist/schemas/paged-tools.js.map +1 -0
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +23 -13
- package/src/index.ts +61 -0
- package/src/schemas/diagnostic-tools.ts +266 -0
- package/src/schemas/paged-tools.test.ts +106 -0
- package/src/schemas/paged-tools.ts +684 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,774 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AGENT_ACCESS_DEFAULT_PAGE_LIMIT = 50;
|
|
3
|
+
export declare const AGENT_ACCESS_PAGE_LIMIT_MAX = 100;
|
|
4
|
+
export declare const AGENT_ACCESS_RESPONSE_MAX_BYTES: number;
|
|
5
|
+
export declare const AGENT_ACCESS_TEXT_MAX_BYTES = 512;
|
|
6
|
+
export declare const AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES = 256;
|
|
7
|
+
export declare const AGENT_ACCESS_DIAGNOSTIC_CODE_MAX_BYTES = 128;
|
|
8
|
+
export declare const AGENT_ACCESS_DIAGNOSTIC_MESSAGE_MAX_BYTES = 512;
|
|
9
|
+
export declare const AGENT_ACCESS_DIAGNOSTIC_PATH_MAX_BYTES = 512;
|
|
10
|
+
export declare const AGENT_ACCESS_DIAGNOSTIC_MAX_ITEMS = 10;
|
|
11
|
+
export declare const AGENT_ACCESS_ANNOTATION_BODY_MAX_BYTES: number;
|
|
12
|
+
export declare const listProjectsInputSchema: z.ZodObject<{
|
|
13
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
14
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export declare const listWorkflowDefinitionsInputSchema: z.ZodObject<{
|
|
17
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
18
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
19
|
+
project_id: z.ZodString;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export declare const listWorkflowRunsInputSchema: z.ZodObject<{
|
|
22
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
23
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
24
|
+
project_id: z.ZodString;
|
|
25
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
cancelled: "cancelled";
|
|
27
|
+
failed: "failed";
|
|
28
|
+
pending: "pending";
|
|
29
|
+
running: "running";
|
|
30
|
+
succeeded: "succeeded";
|
|
31
|
+
}>>;
|
|
32
|
+
definition_id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
dev: "dev";
|
|
35
|
+
synced: "synced";
|
|
36
|
+
}>>;
|
|
37
|
+
trigger_source: z.ZodOptional<z.ZodString>;
|
|
38
|
+
created_from: z.ZodOptional<z.ZodString>;
|
|
39
|
+
created_to: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
export declare const getRunAnnotationsInputSchema: z.ZodObject<{
|
|
42
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
43
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
44
|
+
run_id: z.ZodString;
|
|
45
|
+
attempt: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
job_execution_id: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export declare const listTriggerEventsInputSchema: z.ZodObject<{
|
|
49
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
50
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
51
|
+
source: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
|
+
event: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
origin: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
54
|
+
cron: "cron";
|
|
55
|
+
dev: "dev";
|
|
56
|
+
integration: "integration";
|
|
57
|
+
manual: "manual";
|
|
58
|
+
}>>>;
|
|
59
|
+
outcome: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
60
|
+
discarded: "discarded";
|
|
61
|
+
errored: "errored";
|
|
62
|
+
failed: "failed";
|
|
63
|
+
received: "received";
|
|
64
|
+
routed: "routed";
|
|
65
|
+
}>>>;
|
|
66
|
+
replayable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
67
|
+
from: z.ZodOptional<z.ZodString>;
|
|
68
|
+
to: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
export type ListProjectsInputDto = z.output<typeof listProjectsInputSchema>;
|
|
71
|
+
export type ListWorkflowDefinitionsInputDto = z.output<typeof listWorkflowDefinitionsInputSchema>;
|
|
72
|
+
export type ListWorkflowRunsInputDto = z.output<typeof listWorkflowRunsInputSchema>;
|
|
73
|
+
export type GetRunAnnotationsInputDto = z.output<typeof getRunAnnotationsInputSchema>;
|
|
74
|
+
export type ListTriggerEventsInputDto = z.output<typeof listTriggerEventsInputSchema>;
|
|
75
|
+
export declare const listProjectsInputJsonSchema: {
|
|
76
|
+
readonly type: 'object';
|
|
77
|
+
readonly properties: {
|
|
78
|
+
readonly limit: {
|
|
79
|
+
readonly type: 'integer';
|
|
80
|
+
readonly minimum: 1;
|
|
81
|
+
readonly maximum: 100;
|
|
82
|
+
readonly default: 50;
|
|
83
|
+
};
|
|
84
|
+
readonly cursor: {
|
|
85
|
+
readonly type: 'string';
|
|
86
|
+
readonly minLength: 1;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
readonly additionalProperties: false;
|
|
90
|
+
};
|
|
91
|
+
export declare const listWorkflowDefinitionsInputJsonSchema: {
|
|
92
|
+
readonly type: 'object';
|
|
93
|
+
readonly properties: {
|
|
94
|
+
readonly limit: {
|
|
95
|
+
readonly type: 'integer';
|
|
96
|
+
readonly minimum: 1;
|
|
97
|
+
readonly maximum: 100;
|
|
98
|
+
readonly default: 50;
|
|
99
|
+
};
|
|
100
|
+
readonly cursor: {
|
|
101
|
+
readonly type: 'string';
|
|
102
|
+
readonly minLength: 1;
|
|
103
|
+
};
|
|
104
|
+
readonly project_id: {
|
|
105
|
+
readonly type: 'string';
|
|
106
|
+
readonly format: 'uuid';
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
readonly required: readonly ["project_id"];
|
|
110
|
+
readonly additionalProperties: false;
|
|
111
|
+
};
|
|
112
|
+
export declare const listWorkflowRunsInputJsonSchema: {
|
|
113
|
+
readonly type: 'object';
|
|
114
|
+
readonly properties: {
|
|
115
|
+
readonly limit: {
|
|
116
|
+
readonly type: 'integer';
|
|
117
|
+
readonly minimum: 1;
|
|
118
|
+
readonly maximum: 100;
|
|
119
|
+
readonly default: 50;
|
|
120
|
+
};
|
|
121
|
+
readonly cursor: {
|
|
122
|
+
readonly type: 'string';
|
|
123
|
+
readonly minLength: 1;
|
|
124
|
+
};
|
|
125
|
+
readonly project_id: {
|
|
126
|
+
readonly type: 'string';
|
|
127
|
+
readonly format: 'uuid';
|
|
128
|
+
};
|
|
129
|
+
readonly status: {
|
|
130
|
+
readonly type: 'string';
|
|
131
|
+
readonly enum: readonly ["pending", "running", "succeeded", "failed", "cancelled"];
|
|
132
|
+
};
|
|
133
|
+
readonly definition_id: {
|
|
134
|
+
readonly type: 'string';
|
|
135
|
+
readonly format: 'uuid';
|
|
136
|
+
};
|
|
137
|
+
readonly origin: {
|
|
138
|
+
readonly type: 'string';
|
|
139
|
+
readonly enum: readonly ["synced", "dev"];
|
|
140
|
+
};
|
|
141
|
+
readonly trigger_source: {
|
|
142
|
+
readonly type: 'string';
|
|
143
|
+
readonly maxLength: 512;
|
|
144
|
+
};
|
|
145
|
+
readonly created_from: {
|
|
146
|
+
readonly type: 'string';
|
|
147
|
+
readonly format: 'date-time';
|
|
148
|
+
};
|
|
149
|
+
readonly created_to: {
|
|
150
|
+
readonly type: 'string';
|
|
151
|
+
readonly format: 'date-time';
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
readonly required: readonly ["project_id"];
|
|
155
|
+
readonly additionalProperties: false;
|
|
156
|
+
};
|
|
157
|
+
export declare const getRunAnnotationsInputJsonSchema: {
|
|
158
|
+
readonly type: 'object';
|
|
159
|
+
readonly properties: {
|
|
160
|
+
readonly limit: {
|
|
161
|
+
readonly type: 'integer';
|
|
162
|
+
readonly minimum: 1;
|
|
163
|
+
readonly maximum: 100;
|
|
164
|
+
readonly default: 50;
|
|
165
|
+
};
|
|
166
|
+
readonly cursor: {
|
|
167
|
+
readonly type: 'string';
|
|
168
|
+
readonly minLength: 1;
|
|
169
|
+
};
|
|
170
|
+
readonly run_id: {
|
|
171
|
+
readonly type: 'string';
|
|
172
|
+
readonly format: 'uuid';
|
|
173
|
+
};
|
|
174
|
+
readonly attempt: {
|
|
175
|
+
readonly type: 'integer';
|
|
176
|
+
readonly minimum: 1;
|
|
177
|
+
readonly maximum: 2147483647;
|
|
178
|
+
};
|
|
179
|
+
readonly job_execution_id: {
|
|
180
|
+
readonly type: 'string';
|
|
181
|
+
readonly format: 'uuid';
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
readonly required: readonly ["run_id"];
|
|
185
|
+
readonly additionalProperties: false;
|
|
186
|
+
};
|
|
187
|
+
export declare const listTriggerEventsInputJsonSchema: {
|
|
188
|
+
readonly type: 'object';
|
|
189
|
+
readonly properties: {
|
|
190
|
+
readonly limit: {
|
|
191
|
+
readonly type: 'integer';
|
|
192
|
+
readonly minimum: 1;
|
|
193
|
+
readonly maximum: 100;
|
|
194
|
+
readonly default: 50;
|
|
195
|
+
};
|
|
196
|
+
readonly cursor: {
|
|
197
|
+
readonly type: 'string';
|
|
198
|
+
readonly minLength: 1;
|
|
199
|
+
};
|
|
200
|
+
readonly source: {
|
|
201
|
+
readonly type: 'array';
|
|
202
|
+
readonly items: {
|
|
203
|
+
readonly type: 'string';
|
|
204
|
+
readonly maxLength: 512;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
readonly event: {
|
|
208
|
+
readonly type: 'array';
|
|
209
|
+
readonly items: {
|
|
210
|
+
readonly type: 'string';
|
|
211
|
+
readonly maxLength: 512;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly origin: {
|
|
215
|
+
readonly type: 'array';
|
|
216
|
+
readonly items: {
|
|
217
|
+
readonly type: 'string';
|
|
218
|
+
readonly enum: readonly ["integration", "manual", "cron", "dev"];
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly outcome: {
|
|
222
|
+
readonly type: 'array';
|
|
223
|
+
readonly items: {
|
|
224
|
+
readonly type: 'string';
|
|
225
|
+
readonly enum: readonly ["received", "routed", "discarded", "failed", "errored"];
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
readonly replayable: {
|
|
229
|
+
readonly const: true;
|
|
230
|
+
};
|
|
231
|
+
readonly from: {
|
|
232
|
+
readonly type: 'string';
|
|
233
|
+
readonly format: 'date-time';
|
|
234
|
+
};
|
|
235
|
+
readonly to: {
|
|
236
|
+
readonly type: 'string';
|
|
237
|
+
readonly format: 'date-time';
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
readonly additionalProperties: false;
|
|
241
|
+
};
|
|
242
|
+
export declare const listProjectsResultSchema: z.ZodObject<{
|
|
243
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
244
|
+
id: z.ZodString;
|
|
245
|
+
name: z.ZodString;
|
|
246
|
+
slug: z.ZodString;
|
|
247
|
+
created_at: z.ZodString;
|
|
248
|
+
updated_at: z.ZodString;
|
|
249
|
+
}, z.core.$strict>>;
|
|
250
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
251
|
+
}, z.core.$strict>;
|
|
252
|
+
export declare const listWorkflowDefinitionsResultSchema: z.ZodObject<{
|
|
253
|
+
definitions: z.ZodArray<z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
project_id: z.ZodString;
|
|
256
|
+
name: z.ZodString;
|
|
257
|
+
config_path: z.ZodNullable<z.ZodString>;
|
|
258
|
+
source: z.ZodEnum<{
|
|
259
|
+
manual: "manual";
|
|
260
|
+
vcs: "vcs";
|
|
261
|
+
}>;
|
|
262
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
263
|
+
sha: z.ZodNullable<z.ZodString>;
|
|
264
|
+
}, z.core.$strict>>;
|
|
265
|
+
sync: z.ZodNullable<z.ZodObject<{
|
|
266
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
267
|
+
status: z.ZodEnum<{
|
|
268
|
+
failed: "failed";
|
|
269
|
+
pending: "pending";
|
|
270
|
+
succeeded: "succeeded";
|
|
271
|
+
syncing: "syncing";
|
|
272
|
+
}>;
|
|
273
|
+
last_sync_at: z.ZodString;
|
|
274
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
275
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
276
|
+
last_error_code: z.ZodNullable<z.ZodEnum<{
|
|
277
|
+
"connection-unavailable": "connection-unavailable";
|
|
278
|
+
"content-too-large": "content-too-large";
|
|
279
|
+
"invalid-definition": "invalid-definition";
|
|
280
|
+
"no-workflow-files": "no-workflow-files";
|
|
281
|
+
"provider-access-denied": "provider-access-denied";
|
|
282
|
+
"provider-file-not-found": "provider-file-not-found";
|
|
283
|
+
"provider-malformed-response": "provider-malformed-response";
|
|
284
|
+
"provider-rate-limited": "provider-rate-limited";
|
|
285
|
+
"provider-repository-not-found": "provider-repository-not-found";
|
|
286
|
+
"provider-timeout": "provider-timeout";
|
|
287
|
+
"provider-unavailable": "provider-unavailable";
|
|
288
|
+
"too-many-files": "too-many-files";
|
|
289
|
+
unknown: "unknown";
|
|
290
|
+
}>>;
|
|
291
|
+
last_error_message: z.ZodNullable<z.ZodString>;
|
|
292
|
+
diagnostics: z.ZodObject<{
|
|
293
|
+
error_count: z.ZodNumber;
|
|
294
|
+
warning_count: z.ZodNumber;
|
|
295
|
+
items: z.ZodArray<z.ZodObject<{
|
|
296
|
+
severity: z.ZodEnum<{
|
|
297
|
+
error: "error";
|
|
298
|
+
warning: "warning";
|
|
299
|
+
}>;
|
|
300
|
+
code: z.ZodString;
|
|
301
|
+
message: z.ZodString;
|
|
302
|
+
path: z.ZodOptional<z.ZodString>;
|
|
303
|
+
file_path: z.ZodOptional<z.ZodString>;
|
|
304
|
+
}, z.core.$strict>>;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
}, z.core.$strict>>;
|
|
307
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
308
|
+
}, z.core.$strict>;
|
|
309
|
+
export declare const listWorkflowRunsResultSchema: z.ZodObject<{
|
|
310
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
project_id: z.ZodString;
|
|
313
|
+
definition_id: z.ZodString;
|
|
314
|
+
number: z.ZodNumber;
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
workflow_name: z.ZodString;
|
|
317
|
+
status: z.ZodEnum<{
|
|
318
|
+
cancelled: "cancelled";
|
|
319
|
+
failed: "failed";
|
|
320
|
+
pending: "pending";
|
|
321
|
+
running: "running";
|
|
322
|
+
succeeded: "succeeded";
|
|
323
|
+
}>;
|
|
324
|
+
origin: z.ZodEnum<{
|
|
325
|
+
dev: "dev";
|
|
326
|
+
synced: "synced";
|
|
327
|
+
}>;
|
|
328
|
+
dev_source: z.ZodNullable<z.ZodObject<{
|
|
329
|
+
ref: z.ZodString;
|
|
330
|
+
commit: z.ZodString;
|
|
331
|
+
config_path: z.ZodString;
|
|
332
|
+
initiated_by_user_id: z.ZodString;
|
|
333
|
+
replay_of_event_id: z.ZodNullable<z.ZodString>;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
current_attempt: z.ZodNumber;
|
|
336
|
+
latest_attempt: z.ZodNumber;
|
|
337
|
+
trigger_provider: z.ZodNullable<z.ZodString>;
|
|
338
|
+
trigger_source: z.ZodString;
|
|
339
|
+
trigger_event: z.ZodString;
|
|
340
|
+
trigger_reference: z.ZodNullable<z.ZodObject<{
|
|
341
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
342
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
343
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
344
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
345
|
+
}, z.core.$strict>>;
|
|
346
|
+
job_status_counts: z.ZodArray<z.ZodObject<{
|
|
347
|
+
status: z.ZodEnum<{
|
|
348
|
+
cancelled: "cancelled";
|
|
349
|
+
failed: "failed";
|
|
350
|
+
pending: "pending";
|
|
351
|
+
running: "running";
|
|
352
|
+
skipped: "skipped";
|
|
353
|
+
succeeded: "succeeded";
|
|
354
|
+
}>;
|
|
355
|
+
count: z.ZodNumber;
|
|
356
|
+
}, z.core.$strict>>;
|
|
357
|
+
has_started_job_execution: z.ZodBoolean;
|
|
358
|
+
created_at: z.ZodString;
|
|
359
|
+
updated_at: z.ZodString;
|
|
360
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
361
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
362
|
+
}, z.core.$strict>>;
|
|
363
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
364
|
+
filtered_total_count: z.ZodNullable<z.ZodNumber>;
|
|
365
|
+
}, z.core.$strict>;
|
|
366
|
+
export declare const getRunAnnotationsResultSchema: z.ZodObject<{
|
|
367
|
+
annotations: z.ZodArray<z.ZodObject<{
|
|
368
|
+
id: z.ZodString;
|
|
369
|
+
origin_step_id: z.ZodString;
|
|
370
|
+
origin_step_attempt: z.ZodNumber;
|
|
371
|
+
job_execution_id: z.ZodString;
|
|
372
|
+
sequence: z.ZodNumber;
|
|
373
|
+
created_at: z.ZodString;
|
|
374
|
+
body: z.ZodString;
|
|
375
|
+
body_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
376
|
+
body_total_bytes: z.ZodOptional<z.ZodNumber>;
|
|
377
|
+
}, z.core.$strict>>;
|
|
378
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
379
|
+
}, z.core.$strict>;
|
|
380
|
+
export declare const listTriggerEventsResultSchema: z.ZodObject<{
|
|
381
|
+
trigger_events: z.ZodArray<z.ZodObject<{
|
|
382
|
+
id: z.ZodString;
|
|
383
|
+
origin: z.ZodEnum<{
|
|
384
|
+
cron: "cron";
|
|
385
|
+
dev: "dev";
|
|
386
|
+
integration: "integration";
|
|
387
|
+
manual: "manual";
|
|
388
|
+
}>;
|
|
389
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
390
|
+
source: z.ZodString;
|
|
391
|
+
event: z.ZodString;
|
|
392
|
+
outcome: z.ZodEnum<{
|
|
393
|
+
discarded: "discarded";
|
|
394
|
+
errored: "errored";
|
|
395
|
+
failed: "failed";
|
|
396
|
+
received: "received";
|
|
397
|
+
routed: "routed";
|
|
398
|
+
}>;
|
|
399
|
+
matched_count: z.ZodNumber;
|
|
400
|
+
connection_id: z.ZodNullable<z.ZodString>;
|
|
401
|
+
connection_name: z.ZodNullable<z.ZodString>;
|
|
402
|
+
replay_of_event_id: z.ZodNullable<z.ZodString>;
|
|
403
|
+
received_at: z.ZodString;
|
|
404
|
+
processed_at: z.ZodNullable<z.ZodString>;
|
|
405
|
+
}, z.core.$strict>>;
|
|
406
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
407
|
+
}, z.core.$strict>;
|
|
408
|
+
export type ListProjectsResultDto = z.infer<typeof listProjectsResultSchema>;
|
|
409
|
+
export type ListWorkflowDefinitionsResultDto = z.infer<typeof listWorkflowDefinitionsResultSchema>;
|
|
410
|
+
export type ListWorkflowRunsResultDto = z.infer<typeof listWorkflowRunsResultSchema>;
|
|
411
|
+
export type GetRunAnnotationsResultDto = z.infer<typeof getRunAnnotationsResultSchema>;
|
|
412
|
+
export type ListTriggerEventsResultDto = z.infer<typeof listTriggerEventsResultSchema>;
|
|
413
|
+
export declare const listProjectsResultJsonSchema: {
|
|
414
|
+
readonly type: 'object';
|
|
415
|
+
readonly properties: {
|
|
416
|
+
readonly projects: {
|
|
417
|
+
readonly type: 'array';
|
|
418
|
+
readonly items: {
|
|
419
|
+
readonly type: 'object';
|
|
420
|
+
readonly properties: {
|
|
421
|
+
readonly id: {
|
|
422
|
+
readonly type: 'string';
|
|
423
|
+
readonly format: 'uuid';
|
|
424
|
+
};
|
|
425
|
+
readonly name: {
|
|
426
|
+
readonly type: 'string';
|
|
427
|
+
readonly maxLength: 512;
|
|
428
|
+
};
|
|
429
|
+
readonly slug: {
|
|
430
|
+
readonly type: 'string';
|
|
431
|
+
readonly maxLength: 512;
|
|
432
|
+
};
|
|
433
|
+
readonly created_at: {
|
|
434
|
+
readonly type: 'string';
|
|
435
|
+
readonly format: 'date-time';
|
|
436
|
+
};
|
|
437
|
+
readonly updated_at: {
|
|
438
|
+
readonly type: 'string';
|
|
439
|
+
readonly format: 'date-time';
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
readonly required: readonly ['id', 'name', 'slug', 'created_at', 'updated_at'];
|
|
443
|
+
readonly additionalProperties: false;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
readonly next_cursor: {
|
|
447
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
448
|
+
readonly type: 'null';
|
|
449
|
+
}];
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
readonly required: readonly ['projects', 'next_cursor'];
|
|
453
|
+
readonly additionalProperties: false;
|
|
454
|
+
};
|
|
455
|
+
export declare const listWorkflowDefinitionsResultJsonSchema: {
|
|
456
|
+
readonly type: 'object';
|
|
457
|
+
readonly properties: {
|
|
458
|
+
readonly definitions: {
|
|
459
|
+
readonly type: 'array';
|
|
460
|
+
readonly items: {
|
|
461
|
+
readonly type: 'object';
|
|
462
|
+
readonly properties: {
|
|
463
|
+
readonly id: {
|
|
464
|
+
readonly type: 'string';
|
|
465
|
+
readonly format: 'uuid';
|
|
466
|
+
};
|
|
467
|
+
readonly project_id: {
|
|
468
|
+
readonly type: 'string';
|
|
469
|
+
readonly format: 'uuid';
|
|
470
|
+
};
|
|
471
|
+
readonly name: {
|
|
472
|
+
readonly type: 'string';
|
|
473
|
+
readonly maxLength: 512;
|
|
474
|
+
};
|
|
475
|
+
readonly config_path: {
|
|
476
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
477
|
+
readonly type: 'null';
|
|
478
|
+
}];
|
|
479
|
+
};
|
|
480
|
+
readonly source: {
|
|
481
|
+
readonly type: 'string';
|
|
482
|
+
readonly enum: readonly ['manual', 'vcs'];
|
|
483
|
+
};
|
|
484
|
+
readonly ref: {
|
|
485
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
486
|
+
readonly type: 'null';
|
|
487
|
+
}];
|
|
488
|
+
};
|
|
489
|
+
readonly sha: {
|
|
490
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
491
|
+
readonly type: 'null';
|
|
492
|
+
}];
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
readonly required: readonly ['id', 'project_id', 'name', 'config_path', 'source', 'ref', 'sha'];
|
|
496
|
+
readonly additionalProperties: false;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
readonly sync: {
|
|
500
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
501
|
+
readonly type: 'null';
|
|
502
|
+
}];
|
|
503
|
+
};
|
|
504
|
+
readonly next_cursor: {
|
|
505
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
506
|
+
readonly type: 'null';
|
|
507
|
+
}];
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
readonly required: readonly ['definitions', 'sync', 'next_cursor'];
|
|
511
|
+
readonly additionalProperties: false;
|
|
512
|
+
};
|
|
513
|
+
export declare const listWorkflowRunsResultJsonSchema: {
|
|
514
|
+
readonly type: 'object';
|
|
515
|
+
readonly properties: {
|
|
516
|
+
readonly runs: {
|
|
517
|
+
readonly type: 'array';
|
|
518
|
+
readonly items: {
|
|
519
|
+
readonly type: 'object';
|
|
520
|
+
readonly properties: {
|
|
521
|
+
readonly id: {
|
|
522
|
+
readonly type: 'string';
|
|
523
|
+
readonly format: 'uuid';
|
|
524
|
+
};
|
|
525
|
+
readonly project_id: {
|
|
526
|
+
readonly type: 'string';
|
|
527
|
+
readonly format: 'uuid';
|
|
528
|
+
};
|
|
529
|
+
readonly definition_id: {
|
|
530
|
+
readonly type: 'string';
|
|
531
|
+
readonly format: 'uuid';
|
|
532
|
+
};
|
|
533
|
+
readonly number: {
|
|
534
|
+
readonly type: 'integer';
|
|
535
|
+
readonly minimum: 1;
|
|
536
|
+
};
|
|
537
|
+
readonly name: {
|
|
538
|
+
readonly type: 'string';
|
|
539
|
+
readonly maxLength: 512;
|
|
540
|
+
};
|
|
541
|
+
readonly workflow_name: {
|
|
542
|
+
readonly type: 'string';
|
|
543
|
+
readonly maxLength: 512;
|
|
544
|
+
};
|
|
545
|
+
readonly status: {
|
|
546
|
+
readonly type: 'string';
|
|
547
|
+
readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled'];
|
|
548
|
+
};
|
|
549
|
+
readonly origin: {
|
|
550
|
+
readonly type: 'string';
|
|
551
|
+
readonly enum: readonly ['synced', 'dev'];
|
|
552
|
+
};
|
|
553
|
+
readonly dev_source: {
|
|
554
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
555
|
+
readonly type: 'null';
|
|
556
|
+
}];
|
|
557
|
+
};
|
|
558
|
+
readonly current_attempt: {
|
|
559
|
+
readonly type: 'integer';
|
|
560
|
+
readonly minimum: 1;
|
|
561
|
+
};
|
|
562
|
+
readonly latest_attempt: {
|
|
563
|
+
readonly type: 'integer';
|
|
564
|
+
readonly minimum: 1;
|
|
565
|
+
};
|
|
566
|
+
readonly trigger_provider: {
|
|
567
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
568
|
+
readonly type: 'null';
|
|
569
|
+
}];
|
|
570
|
+
};
|
|
571
|
+
readonly trigger_source: {
|
|
572
|
+
readonly type: 'string';
|
|
573
|
+
readonly maxLength: 512;
|
|
574
|
+
};
|
|
575
|
+
readonly trigger_event: {
|
|
576
|
+
readonly type: 'string';
|
|
577
|
+
readonly maxLength: 512;
|
|
578
|
+
};
|
|
579
|
+
readonly trigger_reference: {
|
|
580
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
581
|
+
readonly type: 'null';
|
|
582
|
+
}];
|
|
583
|
+
};
|
|
584
|
+
readonly job_status_counts: {
|
|
585
|
+
readonly type: 'array';
|
|
586
|
+
readonly items: {
|
|
587
|
+
readonly type: 'object';
|
|
588
|
+
readonly properties: {
|
|
589
|
+
readonly status: {
|
|
590
|
+
readonly type: 'string';
|
|
591
|
+
readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled', 'skipped'];
|
|
592
|
+
};
|
|
593
|
+
readonly count: {
|
|
594
|
+
readonly type: 'integer';
|
|
595
|
+
readonly minimum: 1;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
readonly required: readonly ['status', 'count'];
|
|
599
|
+
readonly additionalProperties: false;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
readonly has_started_job_execution: {
|
|
603
|
+
readonly type: 'boolean';
|
|
604
|
+
};
|
|
605
|
+
readonly created_at: {
|
|
606
|
+
readonly type: 'string';
|
|
607
|
+
readonly format: 'date-time';
|
|
608
|
+
};
|
|
609
|
+
readonly updated_at: {
|
|
610
|
+
readonly type: 'string';
|
|
611
|
+
readonly format: 'date-time';
|
|
612
|
+
};
|
|
613
|
+
readonly started_at: {
|
|
614
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
615
|
+
readonly type: 'null';
|
|
616
|
+
}];
|
|
617
|
+
};
|
|
618
|
+
readonly finished_at: {
|
|
619
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
620
|
+
readonly type: 'null';
|
|
621
|
+
}];
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
readonly required: readonly ['id', 'project_id', 'definition_id', 'number', 'name', 'workflow_name', 'status', 'origin', 'dev_source', 'current_attempt', 'latest_attempt', 'trigger_provider', 'trigger_source', 'trigger_event', 'trigger_reference', 'job_status_counts', 'has_started_job_execution', 'created_at', 'updated_at', 'started_at', 'finished_at'];
|
|
625
|
+
readonly additionalProperties: false;
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
readonly next_cursor: {
|
|
629
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
630
|
+
readonly type: 'null';
|
|
631
|
+
}];
|
|
632
|
+
};
|
|
633
|
+
readonly filtered_total_count: {
|
|
634
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
635
|
+
readonly type: 'null';
|
|
636
|
+
}];
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
readonly required: readonly ['runs', 'next_cursor', 'filtered_total_count'];
|
|
640
|
+
readonly additionalProperties: false;
|
|
641
|
+
};
|
|
642
|
+
export declare const getRunAnnotationsResultJsonSchema: {
|
|
643
|
+
readonly type: 'object';
|
|
644
|
+
readonly properties: {
|
|
645
|
+
readonly annotations: {
|
|
646
|
+
readonly type: 'array';
|
|
647
|
+
readonly items: {
|
|
648
|
+
readonly type: 'object';
|
|
649
|
+
readonly properties: {
|
|
650
|
+
readonly id: {
|
|
651
|
+
readonly type: 'string';
|
|
652
|
+
readonly format: 'uuid';
|
|
653
|
+
};
|
|
654
|
+
readonly origin_step_id: {
|
|
655
|
+
readonly type: 'string';
|
|
656
|
+
readonly format: 'uuid';
|
|
657
|
+
};
|
|
658
|
+
readonly origin_step_attempt: {
|
|
659
|
+
readonly type: 'integer';
|
|
660
|
+
readonly minimum: 1;
|
|
661
|
+
};
|
|
662
|
+
readonly job_execution_id: {
|
|
663
|
+
readonly type: 'string';
|
|
664
|
+
readonly format: 'uuid';
|
|
665
|
+
};
|
|
666
|
+
readonly sequence: {
|
|
667
|
+
readonly type: 'integer';
|
|
668
|
+
readonly minimum: 1;
|
|
669
|
+
};
|
|
670
|
+
readonly created_at: {
|
|
671
|
+
readonly type: 'string';
|
|
672
|
+
readonly format: 'date-time';
|
|
673
|
+
};
|
|
674
|
+
readonly body: {
|
|
675
|
+
readonly type: 'string';
|
|
676
|
+
readonly maxLength: number;
|
|
677
|
+
};
|
|
678
|
+
readonly body_truncated: {
|
|
679
|
+
readonly const: true;
|
|
680
|
+
};
|
|
681
|
+
readonly body_total_bytes: {
|
|
682
|
+
readonly type: 'integer';
|
|
683
|
+
readonly minimum: 0;
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
readonly required: readonly ['id', 'origin_step_id', 'origin_step_attempt', 'job_execution_id', 'sequence', 'created_at', 'body'];
|
|
687
|
+
readonly additionalProperties: false;
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
readonly next_cursor: {
|
|
691
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
692
|
+
readonly type: 'null';
|
|
693
|
+
}];
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
readonly required: readonly ['annotations', 'next_cursor'];
|
|
697
|
+
readonly additionalProperties: false;
|
|
698
|
+
};
|
|
699
|
+
export declare const listTriggerEventsResultJsonSchema: {
|
|
700
|
+
readonly type: 'object';
|
|
701
|
+
readonly properties: {
|
|
702
|
+
readonly trigger_events: {
|
|
703
|
+
readonly type: 'array';
|
|
704
|
+
readonly items: {
|
|
705
|
+
readonly type: 'object';
|
|
706
|
+
readonly properties: {
|
|
707
|
+
readonly id: {
|
|
708
|
+
readonly type: 'string';
|
|
709
|
+
readonly format: 'uuid';
|
|
710
|
+
};
|
|
711
|
+
readonly origin: {
|
|
712
|
+
readonly type: 'string';
|
|
713
|
+
readonly enum: readonly ['integration', 'manual', 'cron', 'dev'];
|
|
714
|
+
};
|
|
715
|
+
readonly provider: {
|
|
716
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
717
|
+
readonly type: 'null';
|
|
718
|
+
}];
|
|
719
|
+
};
|
|
720
|
+
readonly source: {
|
|
721
|
+
readonly type: 'string';
|
|
722
|
+
readonly maxLength: 512;
|
|
723
|
+
};
|
|
724
|
+
readonly event: {
|
|
725
|
+
readonly type: 'string';
|
|
726
|
+
readonly maxLength: 512;
|
|
727
|
+
};
|
|
728
|
+
readonly outcome: {
|
|
729
|
+
readonly type: 'string';
|
|
730
|
+
readonly enum: readonly ['received', 'routed', 'discarded', 'failed', 'errored'];
|
|
731
|
+
};
|
|
732
|
+
readonly matched_count: {
|
|
733
|
+
readonly type: 'integer';
|
|
734
|
+
readonly minimum: 0;
|
|
735
|
+
};
|
|
736
|
+
readonly connection_id: {
|
|
737
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
738
|
+
readonly type: 'null';
|
|
739
|
+
}];
|
|
740
|
+
};
|
|
741
|
+
readonly connection_name: {
|
|
742
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
743
|
+
readonly type: 'null';
|
|
744
|
+
}];
|
|
745
|
+
};
|
|
746
|
+
readonly replay_of_event_id: {
|
|
747
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
748
|
+
readonly type: 'null';
|
|
749
|
+
}];
|
|
750
|
+
};
|
|
751
|
+
readonly received_at: {
|
|
752
|
+
readonly type: 'string';
|
|
753
|
+
readonly format: 'date-time';
|
|
754
|
+
};
|
|
755
|
+
readonly processed_at: {
|
|
756
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
757
|
+
readonly type: 'null';
|
|
758
|
+
}];
|
|
759
|
+
};
|
|
760
|
+
};
|
|
761
|
+
readonly required: readonly ['id', 'origin', 'provider', 'source', 'event', 'outcome', 'matched_count', 'connection_id', 'connection_name', 'replay_of_event_id', 'received_at', 'processed_at'];
|
|
762
|
+
readonly additionalProperties: false;
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
readonly next_cursor: {
|
|
766
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
767
|
+
readonly type: 'null';
|
|
768
|
+
}];
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
readonly required: readonly ['trigger_events', 'next_cursor'];
|
|
772
|
+
readonly additionalProperties: false;
|
|
773
|
+
};
|
|
774
|
+
//# sourceMappingURL=paged-tools.d.ts.map
|