@devpad/api 2.2.7 → 2.2.8
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/dist/{chunk-5ALH7B5B.js → chunk-NQZIDUBQ.js} +7 -1
- package/dist/chunk-TEOIDOOX.js +669 -0
- package/dist/{errors.d-ByyBTSwW.d.ts → errors.d-CNYqUDaJ.d.ts} +10 -2
- package/dist/index.d.ts +106 -4
- package/dist/index.js +260 -494
- package/dist/schema/blog.d.ts +19 -0
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +15 -5
- package/dist/schema/media.d.ts +3 -3
- package/dist/schema/media.js +7 -3
- package/dist/{schema.d-DFyjWZV1.d.ts → schema.d-BeVFWenc.d.ts} +19 -0
- package/dist/{types.d-YhCFiUtt.d.ts → types.d-BcKx3ryl.d.ts} +1 -1
- package/dist/{types.d-i9gbGlha.d.ts → types.d-BvfRohlZ.d.ts} +201 -8
- package/package.json +2 -2
- package/dist/chunk-ZPEX7KVX.js +0 -238
package/dist/chunk-ZPEX7KVX.js
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
// ../schema/dist/validation.js
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var upsert_project = z.object({
|
|
4
|
-
id: z.string().optional().nullable(),
|
|
5
|
-
project_id: z.string(),
|
|
6
|
-
owner_id: z.string().optional(),
|
|
7
|
-
name: z.string(),
|
|
8
|
-
description: z.string().nullable(),
|
|
9
|
-
specification: z.string().nullable(),
|
|
10
|
-
repo_url: z.string().nullable(),
|
|
11
|
-
repo_id: z.number().nullable(),
|
|
12
|
-
icon_url: z.string().nullable(),
|
|
13
|
-
status: z.union([z.literal("DEVELOPMENT"), z.literal("PAUSED"), z.literal("RELEASED"), z.literal("LIVE"), z.literal("FINISHED"), z.literal("ABANDONED"), z.literal("STOPPED")]).optional(),
|
|
14
|
-
deleted: z.boolean().optional().default(false),
|
|
15
|
-
link_url: z.string().nullable(),
|
|
16
|
-
link_text: z.string().nullable(),
|
|
17
|
-
visibility: z.union([z.literal("PUBLIC"), z.literal("PRIVATE"), z.literal("HIDDEN"), z.literal("ARCHIVED"), z.literal("DRAFT"), z.literal("DELETED")]).optional(),
|
|
18
|
-
current_version: z.string().nullable(),
|
|
19
|
-
force: z.boolean().optional().describe("Override protection on user-modified entities")
|
|
20
|
-
});
|
|
21
|
-
var upsert_todo = z.object({
|
|
22
|
-
id: z.string().optional().nullable(),
|
|
23
|
-
title: z.string().optional(),
|
|
24
|
-
summary: z.string().optional().nullable(),
|
|
25
|
-
description: z.string().optional().nullable(),
|
|
26
|
-
progress: z.union([z.literal("UNSTARTED"), z.literal("IN_PROGRESS"), z.literal("COMPLETED")]).optional(),
|
|
27
|
-
visibility: z.union([z.literal("PUBLIC"), z.literal("PRIVATE"), z.literal("HIDDEN"), z.literal("ARCHIVED"), z.literal("DRAFT"), z.literal("DELETED")]).optional(),
|
|
28
|
-
start_time: z.string().optional().nullable(),
|
|
29
|
-
end_time: z.string().optional().nullable(),
|
|
30
|
-
priority: z.union([z.literal("LOW"), z.literal("MEDIUM"), z.literal("HIGH")]).optional(),
|
|
31
|
-
owner_id: z.string(),
|
|
32
|
-
project_id: z.string().optional().nullable(),
|
|
33
|
-
goal_id: z.string().optional().nullable(),
|
|
34
|
-
force: z.boolean().optional().describe("Override protection on user-modified entities")
|
|
35
|
-
});
|
|
36
|
-
var update_action = z.union([z.literal("CONFIRM"), z.literal("UNLINK"), z.literal("CREATE"), z.literal("IGNORE"), z.literal("DELETE"), z.literal("COMPLETE")]);
|
|
37
|
-
var upsert_tag = z.object({
|
|
38
|
-
id: z.string().optional(),
|
|
39
|
-
title: z.string(),
|
|
40
|
-
color: z.union([z.literal("red"), z.literal("green"), z.literal("blue"), z.literal("yellow"), z.literal("purple"), z.literal("orange"), z.literal("teal"), z.literal("pink"), z.literal("gray"), z.literal("cyan"), z.literal("lime")]).nullable().optional(),
|
|
41
|
-
deleted: z.boolean().optional().default(false),
|
|
42
|
-
render: z.boolean().optional().default(true),
|
|
43
|
-
owner_id: z.string()
|
|
44
|
-
});
|
|
45
|
-
var project_config = z.object({
|
|
46
|
-
tags: z.array(z.object({
|
|
47
|
-
name: z.string(),
|
|
48
|
-
match: z.array(z.string())
|
|
49
|
-
})),
|
|
50
|
-
ignore: z.array(z.string())
|
|
51
|
-
});
|
|
52
|
-
var save_config_request = z.object({
|
|
53
|
-
id: z.string(),
|
|
54
|
-
config: project_config,
|
|
55
|
-
scan_branch: z.string().optional()
|
|
56
|
-
});
|
|
57
|
-
var save_tags_request = z.array(upsert_tag);
|
|
58
|
-
var update_user = z.object({
|
|
59
|
-
id: z.string(),
|
|
60
|
-
name: z.string().optional(),
|
|
61
|
-
image_url: z.string().optional(),
|
|
62
|
-
task_view: z.union([z.literal("list"), z.literal("grid")]).optional(),
|
|
63
|
-
email_verified: z.boolean().optional()
|
|
64
|
-
});
|
|
65
|
-
var config_schema = z.object({
|
|
66
|
-
tags: z.array(z.object({
|
|
67
|
-
name: z.string(),
|
|
68
|
-
match: z.array(z.string())
|
|
69
|
-
})),
|
|
70
|
-
ignore: z.array(z.string().regex(/^[\s\S]*$/, "Invalid path"))
|
|
71
|
-
});
|
|
72
|
-
var upsert_milestone = z.object({
|
|
73
|
-
id: z.string().optional().nullable(),
|
|
74
|
-
project_id: z.string(),
|
|
75
|
-
name: z.string().min(1).max(200),
|
|
76
|
-
description: z.string().nullable().optional(),
|
|
77
|
-
target_time: z.string().nullable().optional(),
|
|
78
|
-
target_version: z.string().nullable().optional(),
|
|
79
|
-
finished_at: z.string().nullable().optional(),
|
|
80
|
-
after_id: z.string().nullable().optional(),
|
|
81
|
-
force: z.boolean().optional().describe("Override protection on user-modified entities")
|
|
82
|
-
});
|
|
83
|
-
var upsert_goal = z.object({
|
|
84
|
-
id: z.string().optional().nullable(),
|
|
85
|
-
milestone_id: z.string(),
|
|
86
|
-
name: z.string().min(1).max(200),
|
|
87
|
-
description: z.string().nullable().optional(),
|
|
88
|
-
target_time: z.string().nullable().optional(),
|
|
89
|
-
finished_at: z.string().nullable().optional(),
|
|
90
|
-
force: z.boolean().optional().describe("Override protection on user-modified entities")
|
|
91
|
-
});
|
|
92
|
-
var rollout_shape = z.union([z.literal("gradual"), z.literal("atomic")]);
|
|
93
|
-
var run_kind = z.union([z.literal("deploy"), z.literal("rollback")]);
|
|
94
|
-
var run_status = z.union([
|
|
95
|
-
z.literal("queued"),
|
|
96
|
-
z.literal("deploying"),
|
|
97
|
-
z.literal("baking"),
|
|
98
|
-
z.literal("awaiting_approval"),
|
|
99
|
-
z.literal("rolling_back"),
|
|
100
|
-
z.literal("completed"),
|
|
101
|
-
z.literal("rolled_back"),
|
|
102
|
-
z.literal("failed"),
|
|
103
|
-
z.literal("cancelled")
|
|
104
|
-
]);
|
|
105
|
-
var forced_atomic_reason = z.union([z.literal("do_migrations"), z.literal("asset_affinity_none")]);
|
|
106
|
-
var stage_event_kind = z.union([
|
|
107
|
-
z.literal("deploy_started"),
|
|
108
|
-
z.literal("deploy_completed"),
|
|
109
|
-
z.literal("bake_started"),
|
|
110
|
-
z.literal("bake_completed"),
|
|
111
|
-
z.literal("gate_verdict"),
|
|
112
|
-
z.literal("approval_requested"),
|
|
113
|
-
z.literal("rollback_started"),
|
|
114
|
-
z.literal("rollback_completed"),
|
|
115
|
-
z.literal("warning"),
|
|
116
|
-
z.literal("error")
|
|
117
|
-
]);
|
|
118
|
-
var approval_decision = z.union([z.literal("approved"), z.literal("denied")]);
|
|
119
|
-
var grant_scope = z.string().regex(/^[a-z0-9_-]+:[a-z0-9_-]+(:[^\s]+)?$/, "Invalid scope format");
|
|
120
|
-
var rollout_stage = z.object({
|
|
121
|
-
name: z.string(),
|
|
122
|
-
traffic: z.number().int().min(0).max(100),
|
|
123
|
-
bake: z.string().nullable()
|
|
124
|
-
});
|
|
125
|
-
var resolved_rollout = z.discriminatedUnion("type", [
|
|
126
|
-
z.object({
|
|
127
|
-
type: z.literal("gradual"),
|
|
128
|
-
stages: z.array(rollout_stage)
|
|
129
|
-
}),
|
|
130
|
-
z.object({
|
|
131
|
-
type: z.literal("atomic")
|
|
132
|
-
})
|
|
133
|
-
]);
|
|
134
|
-
var gate_descriptor = z.discriminatedUnion("type", [
|
|
135
|
-
z.object({ type: z.literal("manual") }),
|
|
136
|
-
z.object({ type: z.literal("auto"), afterBake: z.boolean().optional() }),
|
|
137
|
-
z.object({ type: z.literal("analysis"), template: z.string() })
|
|
138
|
-
]);
|
|
139
|
-
var resolved_gates = z.record(z.string(), gate_descriptor);
|
|
140
|
-
var upsert_pipeline_package = z.object({
|
|
141
|
-
id: z.string().optional().nullable(),
|
|
142
|
-
owner_id: z.string(),
|
|
143
|
-
name: z.string().min(1).max(200),
|
|
144
|
-
repo_url: z.string().nullable().optional(),
|
|
145
|
-
default_template_ref: z.string().nullable().optional(),
|
|
146
|
-
script_name_overrides: z.record(z.string(), z.string()).nullable().optional(),
|
|
147
|
-
project_id: z.string().nullable().optional()
|
|
148
|
-
});
|
|
149
|
-
var upsert_pipeline_run = z.object({
|
|
150
|
-
id: z.string().optional().nullable(),
|
|
151
|
-
package_id: z.string(),
|
|
152
|
-
version_set_id: z.string(),
|
|
153
|
-
shape: rollout_shape,
|
|
154
|
-
kind: run_kind.optional(),
|
|
155
|
-
status: run_status.optional(),
|
|
156
|
-
current_stage: z.string().nullable().optional(),
|
|
157
|
-
resolved_rollout,
|
|
158
|
-
resolved_gates,
|
|
159
|
-
forced_atomic_reason: forced_atomic_reason.nullable().optional(),
|
|
160
|
-
started_at: z.string().nullable().optional(),
|
|
161
|
-
finished_at: z.string().nullable().optional()
|
|
162
|
-
});
|
|
163
|
-
var insert_pipeline_stage_event = z.object({
|
|
164
|
-
run_id: z.string(),
|
|
165
|
-
stage_name: z.string(),
|
|
166
|
-
kind: stage_event_kind,
|
|
167
|
-
payload: z.unknown().optional()
|
|
168
|
-
});
|
|
169
|
-
var upsert_pipeline_grant = z.object({
|
|
170
|
-
id: z.string().optional().nullable(),
|
|
171
|
-
package_id: z.string(),
|
|
172
|
-
stage_name: z.string(),
|
|
173
|
-
scope: grant_scope,
|
|
174
|
-
granted_by: z.string().nullable().optional(),
|
|
175
|
-
granted_at: z.string().nullable().optional()
|
|
176
|
-
});
|
|
177
|
-
var upsert_pipeline_approval = z.object({
|
|
178
|
-
run_id: z.string(),
|
|
179
|
-
stage_name: z.string(),
|
|
180
|
-
decision: approval_decision.nullable().optional(),
|
|
181
|
-
reason: z.string().nullable().optional(),
|
|
182
|
-
decided_by: z.string().nullable().optional(),
|
|
183
|
-
decided_at: z.string().nullable().optional()
|
|
184
|
-
});
|
|
185
|
-
var upsert_pipeline_analysis_template = z.object({
|
|
186
|
-
id: z.string().optional().nullable(),
|
|
187
|
-
owner_id: z.string(),
|
|
188
|
-
name: z.string().min(1).max(200),
|
|
189
|
-
query_dsl: z.unknown(),
|
|
190
|
-
threshold_dsl: z.unknown()
|
|
191
|
-
});
|
|
192
|
-
var pipeline_oidc_provider = z.literal("github");
|
|
193
|
-
var upsert_pipeline_oidc_trust = z.object({
|
|
194
|
-
id: z.string().optional().nullable(),
|
|
195
|
-
owner_id: z.string(),
|
|
196
|
-
provider: pipeline_oidc_provider.optional(),
|
|
197
|
-
github_owner: z.string().min(1).max(200),
|
|
198
|
-
repo_pattern: z.string().min(1).max(200).optional(),
|
|
199
|
-
allowed_refs: z.array(z.string()).optional(),
|
|
200
|
-
allowed_environments: z.array(z.string()).optional(),
|
|
201
|
-
expected_audience: z.string().min(1),
|
|
202
|
-
allowed_actions: z.array(z.string()).optional(),
|
|
203
|
-
session_ttl_seconds: z.number().int().positive().optional(),
|
|
204
|
-
last_used_at: z.string().nullable().optional()
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
export {
|
|
208
|
-
upsert_project,
|
|
209
|
-
upsert_todo,
|
|
210
|
-
update_action,
|
|
211
|
-
upsert_tag,
|
|
212
|
-
project_config,
|
|
213
|
-
save_config_request,
|
|
214
|
-
save_tags_request,
|
|
215
|
-
update_user,
|
|
216
|
-
config_schema,
|
|
217
|
-
upsert_milestone,
|
|
218
|
-
upsert_goal,
|
|
219
|
-
rollout_shape,
|
|
220
|
-
run_kind,
|
|
221
|
-
run_status,
|
|
222
|
-
forced_atomic_reason,
|
|
223
|
-
stage_event_kind,
|
|
224
|
-
approval_decision,
|
|
225
|
-
grant_scope,
|
|
226
|
-
rollout_stage,
|
|
227
|
-
resolved_rollout,
|
|
228
|
-
gate_descriptor,
|
|
229
|
-
resolved_gates,
|
|
230
|
-
upsert_pipeline_package,
|
|
231
|
-
upsert_pipeline_run,
|
|
232
|
-
insert_pipeline_stage_event,
|
|
233
|
-
upsert_pipeline_grant,
|
|
234
|
-
upsert_pipeline_approval,
|
|
235
|
-
upsert_pipeline_analysis_template,
|
|
236
|
-
pipeline_oidc_provider,
|
|
237
|
-
upsert_pipeline_oidc_trust
|
|
238
|
-
};
|