@intlayer/backend-contract 0.0.0-stage → 9.6.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/README.md +330 -2
- package/dist/cjs/ai.cjs +267 -0
- package/dist/cjs/ai.cjs.map +1 -0
- package/dist/cjs/analytics.cjs +175 -0
- package/dist/cjs/analytics.cjs.map +1 -0
- package/dist/cjs/asset.cjs +88 -0
- package/dist/cjs/asset.cjs.map +1 -0
- package/dist/cjs/blogComment.cjs +98 -0
- package/dist/cjs/blogComment.cjs.map +1 -0
- package/dist/cjs/cliSessionToken.cjs +40 -0
- package/dist/cjs/cliSessionToken.cjs.map +1 -0
- package/dist/cjs/common.cjs +42 -0
- package/dist/cjs/common.cjs.map +1 -0
- package/dist/cjs/defineRoute.cjs +26 -0
- package/dist/cjs/defineRoute.cjs.map +1 -0
- package/dist/cjs/demo.cjs +22 -0
- package/dist/cjs/demo.cjs.map +1 -0
- package/dist/cjs/dictionary.cjs +168 -0
- package/dist/cjs/dictionary.cjs.map +1 -0
- package/dist/cjs/environment.cjs +91 -0
- package/dist/cjs/environment.cjs.map +1 -0
- package/dist/cjs/eventListener.cjs +19 -0
- package/dist/cjs/eventListener.cjs.map +1 -0
- package/dist/cjs/gitProviders.cjs +361 -0
- package/dist/cjs/gitProviders.cjs.map +1 -0
- package/dist/cjs/newsletter.cjs +50 -0
- package/dist/cjs/newsletter.cjs.map +1 -0
- package/dist/cjs/oAuth2.cjs +62 -0
- package/dist/cjs/oAuth2.cjs.map +1 -0
- package/dist/cjs/organization.cjs +226 -0
- package/dist/cjs/organization.cjs.map +1 -0
- package/dist/cjs/project.cjs +401 -0
- package/dist/cjs/project.cjs.map +1 -0
- package/dist/cjs/public.cjs +60 -0
- package/dist/cjs/public.cjs.map +1 -0
- package/dist/cjs/responseData.cjs +33 -0
- package/dist/cjs/responseData.cjs.map +1 -0
- package/dist/cjs/reviewer.cjs +401 -0
- package/dist/cjs/reviewer.cjs.map +1 -0
- package/dist/cjs/scan.cjs +235 -0
- package/dist/cjs/scan.cjs.map +1 -0
- package/dist/cjs/search.cjs +40 -0
- package/dist/cjs/search.cjs.map +1 -0
- package/dist/cjs/session.cjs +56 -0
- package/dist/cjs/session.cjs.map +1 -0
- package/dist/cjs/showcaseProject.cjs +185 -0
- package/dist/cjs/showcaseProject.cjs.map +1 -0
- package/dist/cjs/stripe.cjs +388 -0
- package/dist/cjs/stripe.cjs.map +1 -0
- package/dist/cjs/tag.cjs +83 -0
- package/dist/cjs/tag.cjs.map +1 -0
- package/dist/cjs/translation.cjs +54 -0
- package/dist/cjs/translation.cjs.map +1 -0
- package/dist/cjs/user.cjs +153 -0
- package/dist/cjs/user.cjs.map +1 -0
- package/dist/esm/ai.mjs +261 -0
- package/dist/esm/ai.mjs.map +1 -0
- package/dist/esm/analytics.mjs +168 -0
- package/dist/esm/analytics.mjs.map +1 -0
- package/dist/esm/asset.mjs +86 -0
- package/dist/esm/asset.mjs.map +1 -0
- package/dist/esm/blogComment.mjs +94 -0
- package/dist/esm/blogComment.mjs.map +1 -0
- package/dist/esm/cliSessionToken.mjs +39 -0
- package/dist/esm/cliSessionToken.mjs.map +1 -0
- package/dist/esm/common.mjs +35 -0
- package/dist/esm/common.mjs.map +1 -0
- package/dist/esm/defineRoute.mjs +23 -0
- package/dist/esm/defineRoute.mjs.map +1 -0
- package/dist/esm/demo.mjs +21 -0
- package/dist/esm/demo.mjs.map +1 -0
- package/dist/esm/dictionary.mjs +163 -0
- package/dist/esm/dictionary.mjs.map +1 -0
- package/dist/esm/environment.mjs +90 -0
- package/dist/esm/environment.mjs.map +1 -0
- package/dist/esm/eventListener.mjs +18 -0
- package/dist/esm/eventListener.mjs.map +1 -0
- package/dist/esm/gitProviders.mjs +352 -0
- package/dist/esm/gitProviders.mjs.map +1 -0
- package/dist/esm/newsletter.mjs +49 -0
- package/dist/esm/newsletter.mjs.map +1 -0
- package/dist/esm/oAuth2.mjs +60 -0
- package/dist/esm/oAuth2.mjs.map +1 -0
- package/dist/esm/organization.mjs +219 -0
- package/dist/esm/organization.mjs.map +1 -0
- package/dist/esm/project.mjs +387 -0
- package/dist/esm/project.mjs.map +1 -0
- package/dist/esm/public.mjs +58 -0
- package/dist/esm/public.mjs.map +1 -0
- package/dist/esm/responseData.mjs +30 -0
- package/dist/esm/responseData.mjs.map +1 -0
- package/dist/esm/reviewer.mjs +390 -0
- package/dist/esm/reviewer.mjs.map +1 -0
- package/dist/esm/scan.mjs +225 -0
- package/dist/esm/scan.mjs.map +1 -0
- package/dist/esm/search.mjs +38 -0
- package/dist/esm/search.mjs.map +1 -0
- package/dist/esm/session.mjs +53 -0
- package/dist/esm/session.mjs.map +1 -0
- package/dist/esm/showcaseProject.mjs +182 -0
- package/dist/esm/showcaseProject.mjs.map +1 -0
- package/dist/esm/stripe.mjs +379 -0
- package/dist/esm/stripe.mjs.map +1 -0
- package/dist/esm/tag.mjs +81 -0
- package/dist/esm/tag.mjs.map +1 -0
- package/dist/esm/translation.mjs +53 -0
- package/dist/esm/translation.mjs.map +1 -0
- package/dist/esm/user.mjs +149 -0
- package/dist/esm/user.mjs.map +1 -0
- package/dist/types/ai.d.ts +549 -0
- package/dist/types/ai.d.ts.map +1 -0
- package/dist/types/analytics.d.ts +378 -0
- package/dist/types/analytics.d.ts.map +1 -0
- package/dist/types/asset.d.ts +207 -0
- package/dist/types/asset.d.ts.map +1 -0
- package/dist/types/blogComment.d.ts +241 -0
- package/dist/types/blogComment.d.ts.map +1 -0
- package/dist/types/cliSessionToken.d.ts +263 -0
- package/dist/types/cliSessionToken.d.ts.map +1 -0
- package/dist/types/common.d.ts +32 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/defineRoute.d.ts +57 -0
- package/dist/types/defineRoute.d.ts.map +1 -0
- package/dist/types/demo.d.ts +21 -0
- package/dist/types/demo.d.ts.map +1 -0
- package/dist/types/dictionary.d.ts +360 -0
- package/dist/types/dictionary.d.ts.map +1 -0
- package/dist/types/environment.d.ts +284 -0
- package/dist/types/environment.d.ts.map +1 -0
- package/dist/types/eventListener.d.ts +17 -0
- package/dist/types/eventListener.d.ts.map +1 -0
- package/dist/types/gitProviders.d.ts +807 -0
- package/dist/types/gitProviders.d.ts.map +1 -0
- package/dist/types/newsletter.d.ts +165 -0
- package/dist/types/newsletter.d.ts.map +1 -0
- package/dist/types/oAuth2.d.ts +481 -0
- package/dist/types/oAuth2.d.ts.map +1 -0
- package/dist/types/organization.d.ts +1069 -0
- package/dist/types/organization.d.ts.map +1 -0
- package/dist/types/project.d.ts +1735 -0
- package/dist/types/project.d.ts.map +1 -0
- package/dist/types/public.d.ts +109 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/responseData.d.ts +68 -0
- package/dist/types/responseData.d.ts.map +1 -0
- package/dist/types/reviewer.d.ts +1239 -0
- package/dist/types/reviewer.d.ts.map +1 -0
- package/dist/types/scan.d.ts +625 -0
- package/dist/types/scan.d.ts.map +1 -0
- package/dist/types/search.d.ts +55 -0
- package/dist/types/search.d.ts.map +1 -0
- package/dist/types/session.d.ts +286 -0
- package/dist/types/session.d.ts.map +1 -0
- package/dist/types/showcaseProject.d.ts +550 -0
- package/dist/types/showcaseProject.d.ts.map +1 -0
- package/dist/types/stripe.d.ts +1219 -0
- package/dist/types/stripe.d.ts.map +1 -0
- package/dist/types/tag.d.ts +193 -0
- package/dist/types/tag.d.ts.map +1 -0
- package/dist/types/translation.d.ts +162 -0
- package/dist/types/translation.d.ts.map +1 -0
- package/dist/types/user.d.ts +447 -0
- package/dist/types/user.d.ts.map +1 -0
- package/package.json +300 -4
|
@@ -0,0 +1,1735 @@
|
|
|
1
|
+
import { RouteBody, RouteBodyInput, RouteDefinition, RouteGroup, RouteParams, RouteQuerystring } from "./defineRoute.js";
|
|
2
|
+
import { PaginatedResponse, ResponseData } from "./responseData.js";
|
|
3
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
4
|
+
import { AiConfig, URLType } from "@intlayer/types/config";
|
|
5
|
+
import { z } from "zod/mini";
|
|
6
|
+
//#region src/project.d.ts
|
|
7
|
+
/** Locale code (ex: `en`, `fr-CA`). */
|
|
8
|
+
export declare const localeSchema: z.ZodMiniCustom<Locale, Locale>;
|
|
9
|
+
/** Project AI settings: the Intlayer AI config plus the masked key state. */
|
|
10
|
+
export type ProjectConfigAI = Partial<AiConfig> & {
|
|
11
|
+
/** Masked API key (`sk-proj-****abcd`), never the real one. */
|
|
12
|
+
apiKey?: string;
|
|
13
|
+
apiKeyConfigured?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Project-level overrides of the Intlayer configuration. Loose objects: the
|
|
17
|
+
* CLI pushes whole config sections, unknown keys must reach the service.
|
|
18
|
+
*/
|
|
19
|
+
export declare const projectConfigurationSchema: z.ZodMiniObject<{
|
|
20
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
21
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
22
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
25
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
26
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
|
+
/** Generic build webhook (Vercel, Netlify, custom). */
|
|
31
|
+
export declare const webhookSchema: z.ZodMiniObject<{
|
|
32
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
33
|
+
name: z.ZodMiniString<string>;
|
|
34
|
+
url: z.ZodMiniString<string>;
|
|
35
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
36
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
37
|
+
}, z.core.$loose>;
|
|
38
|
+
/** Build triggers: git provider pipeline + generic webhooks. */
|
|
39
|
+
export declare const projectCISchema: z.ZodMiniObject<{
|
|
40
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
41
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
42
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
43
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
44
|
+
name: z.ZodMiniString<string>;
|
|
45
|
+
url: z.ZodMiniString<string>;
|
|
46
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
47
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
/** Git provider of a connected repository. */
|
|
51
|
+
export declare const repositoryProviderSchema: z.ZodMiniEnum<{
|
|
52
|
+
bitbucket: "bitbucket";
|
|
53
|
+
codeberg: "codeberg";
|
|
54
|
+
gitee: "gitee";
|
|
55
|
+
github: "github";
|
|
56
|
+
gitlab: "gitlab";
|
|
57
|
+
}>;
|
|
58
|
+
/**
|
|
59
|
+
* Git repository connected to a project. The repo-scoped token never leaves
|
|
60
|
+
* the server.
|
|
61
|
+
*/
|
|
62
|
+
export declare const repositoryConnectionSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
63
|
+
owner: z.ZodMiniString<string>;
|
|
64
|
+
repository: z.ZodMiniString<string>;
|
|
65
|
+
branch: z.ZodMiniString<string>;
|
|
66
|
+
url: z.ZodMiniString<string>;
|
|
67
|
+
configFilePath: z.ZodMiniString<string>;
|
|
68
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
69
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
70
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
71
|
+
owner: z.ZodMiniString<string>;
|
|
72
|
+
repository: z.ZodMiniString<string>;
|
|
73
|
+
branch: z.ZodMiniString<string>;
|
|
74
|
+
url: z.ZodMiniString<string>;
|
|
75
|
+
configFilePath: z.ZodMiniString<string>;
|
|
76
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
77
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
78
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
79
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
80
|
+
owner: z.ZodMiniString<string>;
|
|
81
|
+
repository: z.ZodMiniString<string>;
|
|
82
|
+
branch: z.ZodMiniString<string>;
|
|
83
|
+
url: z.ZodMiniString<string>;
|
|
84
|
+
configFilePath: z.ZodMiniString<string>;
|
|
85
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
86
|
+
workspace: z.ZodMiniString<string>;
|
|
87
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
88
|
+
owner: z.ZodMiniString<string>;
|
|
89
|
+
repository: z.ZodMiniString<string>;
|
|
90
|
+
branch: z.ZodMiniString<string>;
|
|
91
|
+
url: z.ZodMiniString<string>;
|
|
92
|
+
configFilePath: z.ZodMiniString<string>;
|
|
93
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
94
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
95
|
+
owner: z.ZodMiniString<string>;
|
|
96
|
+
repository: z.ZodMiniString<string>;
|
|
97
|
+
branch: z.ZodMiniString<string>;
|
|
98
|
+
url: z.ZodMiniString<string>;
|
|
99
|
+
configFilePath: z.ZodMiniString<string>;
|
|
100
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
101
|
+
}, z.core.$loose>], "provider">;
|
|
102
|
+
/** Project environment (production is injected when none is the default). */
|
|
103
|
+
export declare const environmentSchema: z.ZodMiniObject<{
|
|
104
|
+
id: z.ZodMiniString<string>;
|
|
105
|
+
name: z.ZodMiniString<string>;
|
|
106
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
107
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
108
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
109
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
110
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
111
|
+
}, z.core.$loose>>;
|
|
112
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
113
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
114
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
115
|
+
}, z.core.$loose>>;
|
|
116
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
117
|
+
}, z.core.$loose>>;
|
|
118
|
+
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
119
|
+
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
120
|
+
}, z.core.$loose>;
|
|
121
|
+
/** Granular per-member access, overlaid on the member's role. */
|
|
122
|
+
export declare const projectMemberGranularAccessSchema: z.ZodMiniObject<{
|
|
123
|
+
userId: z.ZodMiniString<string>;
|
|
124
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
125
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
/** Access key (OAuth2 client credentials). Live bearer tokens are never sent. */
|
|
128
|
+
export declare const accessKeySchema: z.ZodMiniObject<{
|
|
129
|
+
id: z.ZodMiniString<string>;
|
|
130
|
+
name: z.ZodMiniString<string>;
|
|
131
|
+
clientId: z.ZodMiniString<string>;
|
|
132
|
+
clientSecret: z.ZodMiniString<string>;
|
|
133
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
134
|
+
userId: z.ZodMiniString<string>;
|
|
135
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
136
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
137
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
138
|
+
createdAt: z.ZodMiniString<string>;
|
|
139
|
+
updatedAt: z.ZodMiniString<string>;
|
|
140
|
+
}, z.core.$loose>;
|
|
141
|
+
/** Project as returned by the API. */
|
|
142
|
+
export declare const projectSchema: z.ZodMiniObject<{
|
|
143
|
+
id: z.ZodMiniString<string>;
|
|
144
|
+
organizationId: z.ZodMiniString<string>;
|
|
145
|
+
name: z.ZodMiniString<string>;
|
|
146
|
+
membersIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
147
|
+
adminsIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
148
|
+
viewersIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
149
|
+
memberAccess: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
150
|
+
userId: z.ZodMiniString<string>;
|
|
151
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
152
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
153
|
+
}, z.core.$strip>>>;
|
|
154
|
+
creatorId: z.ZodMiniString<string>;
|
|
155
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
156
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
157
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
158
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
159
|
+
}, z.core.$loose>>;
|
|
160
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
161
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
162
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
163
|
+
}, z.core.$loose>>;
|
|
164
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
165
|
+
}, z.core.$loose>>;
|
|
166
|
+
repository: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
167
|
+
owner: z.ZodMiniString<string>;
|
|
168
|
+
repository: z.ZodMiniString<string>;
|
|
169
|
+
branch: z.ZodMiniString<string>;
|
|
170
|
+
url: z.ZodMiniString<string>;
|
|
171
|
+
configFilePath: z.ZodMiniString<string>;
|
|
172
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
173
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
174
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
175
|
+
owner: z.ZodMiniString<string>;
|
|
176
|
+
repository: z.ZodMiniString<string>;
|
|
177
|
+
branch: z.ZodMiniString<string>;
|
|
178
|
+
url: z.ZodMiniString<string>;
|
|
179
|
+
configFilePath: z.ZodMiniString<string>;
|
|
180
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
181
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
182
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
183
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
184
|
+
owner: z.ZodMiniString<string>;
|
|
185
|
+
repository: z.ZodMiniString<string>;
|
|
186
|
+
branch: z.ZodMiniString<string>;
|
|
187
|
+
url: z.ZodMiniString<string>;
|
|
188
|
+
configFilePath: z.ZodMiniString<string>;
|
|
189
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
190
|
+
workspace: z.ZodMiniString<string>;
|
|
191
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
192
|
+
owner: z.ZodMiniString<string>;
|
|
193
|
+
repository: z.ZodMiniString<string>;
|
|
194
|
+
branch: z.ZodMiniString<string>;
|
|
195
|
+
url: z.ZodMiniString<string>;
|
|
196
|
+
configFilePath: z.ZodMiniString<string>;
|
|
197
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
198
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
199
|
+
owner: z.ZodMiniString<string>;
|
|
200
|
+
repository: z.ZodMiniString<string>;
|
|
201
|
+
branch: z.ZodMiniString<string>;
|
|
202
|
+
url: z.ZodMiniString<string>;
|
|
203
|
+
configFilePath: z.ZodMiniString<string>;
|
|
204
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
205
|
+
}, z.core.$loose>], "provider">>>;
|
|
206
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
207
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
208
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
209
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
210
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
211
|
+
name: z.ZodMiniString<string>;
|
|
212
|
+
url: z.ZodMiniString<string>;
|
|
213
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
214
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
215
|
+
}, z.core.$loose>>>;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
autoFill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
218
|
+
imageUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
219
|
+
environments: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
220
|
+
id: z.ZodMiniString<string>;
|
|
221
|
+
name: z.ZodMiniString<string>;
|
|
222
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
223
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
224
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
225
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
226
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
227
|
+
}, z.core.$loose>>;
|
|
228
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
229
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
230
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
231
|
+
}, z.core.$loose>>;
|
|
232
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
233
|
+
}, z.core.$loose>>;
|
|
234
|
+
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
235
|
+
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
236
|
+
}, z.core.$loose>>>;
|
|
237
|
+
oAuth2Access: z.ZodMiniArray<z.ZodMiniObject<{
|
|
238
|
+
id: z.ZodMiniString<string>;
|
|
239
|
+
name: z.ZodMiniString<string>;
|
|
240
|
+
clientId: z.ZodMiniString<string>;
|
|
241
|
+
clientSecret: z.ZodMiniString<string>;
|
|
242
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
243
|
+
userId: z.ZodMiniString<string>;
|
|
244
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
245
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
246
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
247
|
+
createdAt: z.ZodMiniString<string>;
|
|
248
|
+
updatedAt: z.ZodMiniString<string>;
|
|
249
|
+
}, z.core.$loose>>;
|
|
250
|
+
createdAt: z.ZodMiniString<string>;
|
|
251
|
+
updatedAt: z.ZodMiniString<string>;
|
|
252
|
+
}, z.core.$loose>;
|
|
253
|
+
/** Translation health of one locale of a project. */
|
|
254
|
+
export declare const localeInsightSchema: z.ZodMiniObject<{
|
|
255
|
+
locale: z.ZodMiniCustom<Locale, Locale>;
|
|
256
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
257
|
+
translatedKeys: z.ZodMiniNumber<number>;
|
|
258
|
+
totalKeys: z.ZodMiniNumber<number>;
|
|
259
|
+
missingKeys: z.ZodMiniNumber<number>;
|
|
260
|
+
completionRate: z.ZodMiniNumber<number>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
/** Project-wide localization insights shown on the dashboard overview. */
|
|
263
|
+
export declare const projectInsightsSchema: z.ZodMiniObject<{
|
|
264
|
+
projectId: z.ZodMiniString<string>;
|
|
265
|
+
generatedAt: z.ZodMiniNumber<number>;
|
|
266
|
+
defaultLocale: z.ZodMiniNullable<z.ZodMiniCustom<Locale, Locale>>;
|
|
267
|
+
localeCount: z.ZodMiniNumber<number>;
|
|
268
|
+
dictionaryCount: z.ZodMiniNumber<number>;
|
|
269
|
+
keyCount: z.ZodMiniNumber<number>;
|
|
270
|
+
translationUnitCount: z.ZodMiniNumber<number>;
|
|
271
|
+
translatedUnitCount: z.ZodMiniNumber<number>;
|
|
272
|
+
overallCompletionRate: z.ZodMiniNumber<number>;
|
|
273
|
+
fullyTranslatedLocaleCount: z.ZodMiniNumber<number>;
|
|
274
|
+
dictionariesWithMissingTranslations: z.ZodMiniNumber<number>;
|
|
275
|
+
missingTranslationCount: z.ZodMiniNumber<number>;
|
|
276
|
+
localeInsights: z.ZodMiniArray<z.ZodMiniObject<{
|
|
277
|
+
locale: z.ZodMiniCustom<Locale, Locale>;
|
|
278
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
279
|
+
translatedKeys: z.ZodMiniNumber<number>;
|
|
280
|
+
totalKeys: z.ZodMiniNumber<number>;
|
|
281
|
+
missingKeys: z.ZodMiniNumber<number>;
|
|
282
|
+
completionRate: z.ZodMiniNumber<number>;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
recentlyUpdated: z.ZodMiniArray<z.ZodMiniObject<{
|
|
285
|
+
key: z.ZodMiniString<string>;
|
|
286
|
+
updatedAt: z.ZodMiniNumber<number>;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
lastUpdatedAt: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
289
|
+
memberCount: z.ZodMiniNumber<number>;
|
|
290
|
+
adminCount: z.ZodMiniNumber<number>;
|
|
291
|
+
environmentCount: z.ZodMiniNumber<number>;
|
|
292
|
+
autoFill: z.ZodMiniBoolean<boolean>;
|
|
293
|
+
aiConfigured: z.ZodMiniBoolean<boolean>;
|
|
294
|
+
repositoryProvider: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
295
|
+
bitbucket: "bitbucket";
|
|
296
|
+
codeberg: "codeberg";
|
|
297
|
+
gitee: "gitee";
|
|
298
|
+
github: "github";
|
|
299
|
+
gitlab: "gitlab";
|
|
300
|
+
}>>;
|
|
301
|
+
applicationURL: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
/** CI configuration file status of the connected repository. */
|
|
304
|
+
export declare const ciStatusSchema: z.ZodMiniObject<{
|
|
305
|
+
exists: z.ZodMiniBoolean<boolean>;
|
|
306
|
+
content: z.ZodMiniString<string>;
|
|
307
|
+
path: z.ZodMiniString<string>;
|
|
308
|
+
fileUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
309
|
+
allowAutoPush: z.ZodMiniBoolean<boolean>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
declare const ciTargetResultSchema: z.ZodMiniObject<{
|
|
312
|
+
target: z.ZodMiniString<string>;
|
|
313
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
314
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
/** REST contract of the `/api/project` routes. */
|
|
317
|
+
export declare const projectContract: RouteGroup<"/api/project", {
|
|
318
|
+
readonly getProjects: RouteDefinition<"GET", "/", {
|
|
319
|
+
readonly querystring: z.ZodMiniObject<{
|
|
320
|
+
page: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>;
|
|
321
|
+
pageSize: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>;
|
|
322
|
+
ids: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
323
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
324
|
+
search: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
325
|
+
organizationId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
326
|
+
membersIds: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
327
|
+
sortBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
328
|
+
sortOrder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
329
|
+
fetchAll: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
330
|
+
false: "false";
|
|
331
|
+
true: "true";
|
|
332
|
+
}>>;
|
|
333
|
+
}, z.core.$loose>;
|
|
334
|
+
readonly response: {
|
|
335
|
+
200: z.ZodMiniObject<{
|
|
336
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
337
|
+
status: z.ZodMiniNumber<number>;
|
|
338
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
339
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
340
|
+
data: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
341
|
+
id: z.ZodMiniString<string>;
|
|
342
|
+
organizationId: z.ZodMiniString<string>;
|
|
343
|
+
name: z.ZodMiniString<string>;
|
|
344
|
+
membersIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
345
|
+
adminsIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
346
|
+
viewersIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
347
|
+
memberAccess: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
348
|
+
userId: z.ZodMiniString<string>;
|
|
349
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
350
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
351
|
+
}, z.core.$strip>>>;
|
|
352
|
+
creatorId: z.ZodMiniString<string>;
|
|
353
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
354
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
355
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
356
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
357
|
+
}, z.core.$loose>>;
|
|
358
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
359
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
360
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
361
|
+
}, z.core.$loose>>;
|
|
362
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
363
|
+
}, z.core.$loose>>;
|
|
364
|
+
repository: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
365
|
+
owner: z.ZodMiniString<string>;
|
|
366
|
+
repository: z.ZodMiniString<string>;
|
|
367
|
+
branch: z.ZodMiniString<string>;
|
|
368
|
+
url: z.ZodMiniString<string>;
|
|
369
|
+
configFilePath: z.ZodMiniString<string>;
|
|
370
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
371
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
372
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
373
|
+
owner: z.ZodMiniString<string>;
|
|
374
|
+
repository: z.ZodMiniString<string>;
|
|
375
|
+
branch: z.ZodMiniString<string>;
|
|
376
|
+
url: z.ZodMiniString<string>;
|
|
377
|
+
configFilePath: z.ZodMiniString<string>;
|
|
378
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
379
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
380
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
381
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
382
|
+
owner: z.ZodMiniString<string>;
|
|
383
|
+
repository: z.ZodMiniString<string>;
|
|
384
|
+
branch: z.ZodMiniString<string>;
|
|
385
|
+
url: z.ZodMiniString<string>;
|
|
386
|
+
configFilePath: z.ZodMiniString<string>;
|
|
387
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
388
|
+
workspace: z.ZodMiniString<string>;
|
|
389
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
390
|
+
owner: z.ZodMiniString<string>;
|
|
391
|
+
repository: z.ZodMiniString<string>;
|
|
392
|
+
branch: z.ZodMiniString<string>;
|
|
393
|
+
url: z.ZodMiniString<string>;
|
|
394
|
+
configFilePath: z.ZodMiniString<string>;
|
|
395
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
396
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
397
|
+
owner: z.ZodMiniString<string>;
|
|
398
|
+
repository: z.ZodMiniString<string>;
|
|
399
|
+
branch: z.ZodMiniString<string>;
|
|
400
|
+
url: z.ZodMiniString<string>;
|
|
401
|
+
configFilePath: z.ZodMiniString<string>;
|
|
402
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
403
|
+
}, z.core.$loose>], "provider">>>;
|
|
404
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
405
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
406
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
407
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
408
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
409
|
+
name: z.ZodMiniString<string>;
|
|
410
|
+
url: z.ZodMiniString<string>;
|
|
411
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
412
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
413
|
+
}, z.core.$loose>>>;
|
|
414
|
+
}, z.core.$strip>>;
|
|
415
|
+
autoFill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
416
|
+
imageUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
417
|
+
environments: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
418
|
+
id: z.ZodMiniString<string>;
|
|
419
|
+
name: z.ZodMiniString<string>;
|
|
420
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
421
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
422
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
423
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
424
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
425
|
+
}, z.core.$loose>>;
|
|
426
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
427
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
428
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
429
|
+
}, z.core.$loose>>;
|
|
430
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
431
|
+
}, z.core.$loose>>;
|
|
432
|
+
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
433
|
+
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
434
|
+
}, z.core.$loose>>>;
|
|
435
|
+
oAuth2Access: z.ZodMiniArray<z.ZodMiniObject<{
|
|
436
|
+
id: z.ZodMiniString<string>;
|
|
437
|
+
name: z.ZodMiniString<string>;
|
|
438
|
+
clientId: z.ZodMiniString<string>;
|
|
439
|
+
clientSecret: z.ZodMiniString<string>;
|
|
440
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
441
|
+
userId: z.ZodMiniString<string>;
|
|
442
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
443
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
444
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
445
|
+
createdAt: z.ZodMiniString<string>;
|
|
446
|
+
updatedAt: z.ZodMiniString<string>;
|
|
447
|
+
}, z.core.$loose>>;
|
|
448
|
+
createdAt: z.ZodMiniString<string>;
|
|
449
|
+
updatedAt: z.ZodMiniString<string>;
|
|
450
|
+
}, z.core.$loose>>>;
|
|
451
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
452
|
+
code: z.ZodMiniString<string>;
|
|
453
|
+
title: z.ZodMiniString<string>;
|
|
454
|
+
message: z.ZodMiniString<string>;
|
|
455
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
456
|
+
code: z.ZodMiniString<string>;
|
|
457
|
+
title: z.ZodMiniString<string>;
|
|
458
|
+
message: z.ZodMiniString<string>;
|
|
459
|
+
}, z.core.$loose>>]>>;
|
|
460
|
+
page: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
461
|
+
page_size: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
462
|
+
total_pages: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
463
|
+
total_items: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
};
|
|
466
|
+
}>;
|
|
467
|
+
readonly getProjectInsights: RouteDefinition<"GET", "/insights", {
|
|
468
|
+
readonly response: {
|
|
469
|
+
200: z.ZodMiniObject<{
|
|
470
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
471
|
+
status: z.ZodMiniNumber<number>;
|
|
472
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
473
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
474
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
475
|
+
projectId: z.ZodMiniString<string>;
|
|
476
|
+
generatedAt: z.ZodMiniNumber<number>;
|
|
477
|
+
defaultLocale: z.ZodMiniNullable<z.ZodMiniCustom<Locale, Locale>>;
|
|
478
|
+
localeCount: z.ZodMiniNumber<number>;
|
|
479
|
+
dictionaryCount: z.ZodMiniNumber<number>;
|
|
480
|
+
keyCount: z.ZodMiniNumber<number>;
|
|
481
|
+
translationUnitCount: z.ZodMiniNumber<number>;
|
|
482
|
+
translatedUnitCount: z.ZodMiniNumber<number>;
|
|
483
|
+
overallCompletionRate: z.ZodMiniNumber<number>;
|
|
484
|
+
fullyTranslatedLocaleCount: z.ZodMiniNumber<number>;
|
|
485
|
+
dictionariesWithMissingTranslations: z.ZodMiniNumber<number>;
|
|
486
|
+
missingTranslationCount: z.ZodMiniNumber<number>;
|
|
487
|
+
localeInsights: z.ZodMiniArray<z.ZodMiniObject<{
|
|
488
|
+
locale: z.ZodMiniCustom<Locale, Locale>;
|
|
489
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
490
|
+
translatedKeys: z.ZodMiniNumber<number>;
|
|
491
|
+
totalKeys: z.ZodMiniNumber<number>;
|
|
492
|
+
missingKeys: z.ZodMiniNumber<number>;
|
|
493
|
+
completionRate: z.ZodMiniNumber<number>;
|
|
494
|
+
}, z.core.$strip>>;
|
|
495
|
+
recentlyUpdated: z.ZodMiniArray<z.ZodMiniObject<{
|
|
496
|
+
key: z.ZodMiniString<string>;
|
|
497
|
+
updatedAt: z.ZodMiniNumber<number>;
|
|
498
|
+
}, z.core.$strip>>;
|
|
499
|
+
lastUpdatedAt: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
500
|
+
memberCount: z.ZodMiniNumber<number>;
|
|
501
|
+
adminCount: z.ZodMiniNumber<number>;
|
|
502
|
+
environmentCount: z.ZodMiniNumber<number>;
|
|
503
|
+
autoFill: z.ZodMiniBoolean<boolean>;
|
|
504
|
+
aiConfigured: z.ZodMiniBoolean<boolean>;
|
|
505
|
+
repositoryProvider: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
506
|
+
bitbucket: "bitbucket";
|
|
507
|
+
codeberg: "codeberg";
|
|
508
|
+
gitee: "gitee";
|
|
509
|
+
github: "github";
|
|
510
|
+
gitlab: "gitlab";
|
|
511
|
+
}>>;
|
|
512
|
+
applicationURL: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
513
|
+
}, z.core.$strip>>;
|
|
514
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
515
|
+
code: z.ZodMiniString<string>;
|
|
516
|
+
title: z.ZodMiniString<string>;
|
|
517
|
+
message: z.ZodMiniString<string>;
|
|
518
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
519
|
+
code: z.ZodMiniString<string>;
|
|
520
|
+
title: z.ZodMiniString<string>;
|
|
521
|
+
message: z.ZodMiniString<string>;
|
|
522
|
+
}, z.core.$loose>>]>>;
|
|
523
|
+
}, z.core.$strip>;
|
|
524
|
+
};
|
|
525
|
+
}>;
|
|
526
|
+
readonly addProject: RouteDefinition<"POST", "/", {
|
|
527
|
+
readonly body: z.ZodMiniObject<{
|
|
528
|
+
name: z.ZodMiniString<string>;
|
|
529
|
+
}, z.core.$loose>;
|
|
530
|
+
readonly response: {
|
|
531
|
+
200: z.ZodMiniObject<{
|
|
532
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
533
|
+
status: z.ZodMiniNumber<number>;
|
|
534
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
535
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
536
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
537
|
+
id: z.ZodMiniString<string>;
|
|
538
|
+
organizationId: z.ZodMiniString<string>;
|
|
539
|
+
name: z.ZodMiniString<string>;
|
|
540
|
+
membersIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
541
|
+
adminsIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
542
|
+
viewersIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
543
|
+
memberAccess: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
544
|
+
userId: z.ZodMiniString<string>;
|
|
545
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
546
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
547
|
+
}, z.core.$strip>>>;
|
|
548
|
+
creatorId: z.ZodMiniString<string>;
|
|
549
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
550
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
551
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
552
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
553
|
+
}, z.core.$loose>>;
|
|
554
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
555
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
556
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
557
|
+
}, z.core.$loose>>;
|
|
558
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
559
|
+
}, z.core.$loose>>;
|
|
560
|
+
repository: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
561
|
+
owner: z.ZodMiniString<string>;
|
|
562
|
+
repository: z.ZodMiniString<string>;
|
|
563
|
+
branch: z.ZodMiniString<string>;
|
|
564
|
+
url: z.ZodMiniString<string>;
|
|
565
|
+
configFilePath: z.ZodMiniString<string>;
|
|
566
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
567
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
568
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
569
|
+
owner: z.ZodMiniString<string>;
|
|
570
|
+
repository: z.ZodMiniString<string>;
|
|
571
|
+
branch: z.ZodMiniString<string>;
|
|
572
|
+
url: z.ZodMiniString<string>;
|
|
573
|
+
configFilePath: z.ZodMiniString<string>;
|
|
574
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
575
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
576
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
577
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
578
|
+
owner: z.ZodMiniString<string>;
|
|
579
|
+
repository: z.ZodMiniString<string>;
|
|
580
|
+
branch: z.ZodMiniString<string>;
|
|
581
|
+
url: z.ZodMiniString<string>;
|
|
582
|
+
configFilePath: z.ZodMiniString<string>;
|
|
583
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
584
|
+
workspace: z.ZodMiniString<string>;
|
|
585
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
586
|
+
owner: z.ZodMiniString<string>;
|
|
587
|
+
repository: z.ZodMiniString<string>;
|
|
588
|
+
branch: z.ZodMiniString<string>;
|
|
589
|
+
url: z.ZodMiniString<string>;
|
|
590
|
+
configFilePath: z.ZodMiniString<string>;
|
|
591
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
592
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
593
|
+
owner: z.ZodMiniString<string>;
|
|
594
|
+
repository: z.ZodMiniString<string>;
|
|
595
|
+
branch: z.ZodMiniString<string>;
|
|
596
|
+
url: z.ZodMiniString<string>;
|
|
597
|
+
configFilePath: z.ZodMiniString<string>;
|
|
598
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
599
|
+
}, z.core.$loose>], "provider">>>;
|
|
600
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
601
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
602
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
603
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
604
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
605
|
+
name: z.ZodMiniString<string>;
|
|
606
|
+
url: z.ZodMiniString<string>;
|
|
607
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
608
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
609
|
+
}, z.core.$loose>>>;
|
|
610
|
+
}, z.core.$strip>>;
|
|
611
|
+
autoFill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
612
|
+
imageUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
613
|
+
environments: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
614
|
+
id: z.ZodMiniString<string>;
|
|
615
|
+
name: z.ZodMiniString<string>;
|
|
616
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
617
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
618
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
619
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
620
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
621
|
+
}, z.core.$loose>>;
|
|
622
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
623
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
624
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
625
|
+
}, z.core.$loose>>;
|
|
626
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
627
|
+
}, z.core.$loose>>;
|
|
628
|
+
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
629
|
+
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
630
|
+
}, z.core.$loose>>>;
|
|
631
|
+
oAuth2Access: z.ZodMiniArray<z.ZodMiniObject<{
|
|
632
|
+
id: z.ZodMiniString<string>;
|
|
633
|
+
name: z.ZodMiniString<string>;
|
|
634
|
+
clientId: z.ZodMiniString<string>;
|
|
635
|
+
clientSecret: z.ZodMiniString<string>;
|
|
636
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
637
|
+
userId: z.ZodMiniString<string>;
|
|
638
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
639
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
640
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
641
|
+
createdAt: z.ZodMiniString<string>;
|
|
642
|
+
updatedAt: z.ZodMiniString<string>;
|
|
643
|
+
}, z.core.$loose>>;
|
|
644
|
+
createdAt: z.ZodMiniString<string>;
|
|
645
|
+
updatedAt: z.ZodMiniString<string>;
|
|
646
|
+
}, z.core.$loose>>;
|
|
647
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
648
|
+
code: z.ZodMiniString<string>;
|
|
649
|
+
title: z.ZodMiniString<string>;
|
|
650
|
+
message: z.ZodMiniString<string>;
|
|
651
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
652
|
+
code: z.ZodMiniString<string>;
|
|
653
|
+
title: z.ZodMiniString<string>;
|
|
654
|
+
message: z.ZodMiniString<string>;
|
|
655
|
+
}, z.core.$loose>>]>>;
|
|
656
|
+
}, z.core.$strip>;
|
|
657
|
+
};
|
|
658
|
+
}>;
|
|
659
|
+
readonly updateProject: RouteDefinition<"PUT", "/", {
|
|
660
|
+
/**
|
|
661
|
+
* Allow-list: membership and ownership fields (`adminsIds`,
|
|
662
|
+
* `membersIds`, `viewersIds`, `creatorId`, `memberAccess`,
|
|
663
|
+
* `environments`) are stripped, they only change through their
|
|
664
|
+
* dedicated endpoints and the invariants those enforce.
|
|
665
|
+
*/
|
|
666
|
+
readonly body: z.ZodMiniObject<{
|
|
667
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
668
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
669
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
670
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
671
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
672
|
+
}, z.core.$loose>>;
|
|
673
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
674
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
675
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
676
|
+
}, z.core.$loose>>;
|
|
677
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
678
|
+
}, z.core.$loose>>;
|
|
679
|
+
autoFill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
680
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
681
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
682
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
683
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
684
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
685
|
+
name: z.ZodMiniString<string>;
|
|
686
|
+
url: z.ZodMiniString<string>;
|
|
687
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
688
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
689
|
+
}, z.core.$loose>>>;
|
|
690
|
+
}, z.core.$strip>>;
|
|
691
|
+
repository: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
692
|
+
owner: z.ZodMiniString<string>;
|
|
693
|
+
repository: z.ZodMiniString<string>;
|
|
694
|
+
branch: z.ZodMiniString<string>;
|
|
695
|
+
url: z.ZodMiniString<string>;
|
|
696
|
+
configFilePath: z.ZodMiniString<string>;
|
|
697
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
698
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
699
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
700
|
+
owner: z.ZodMiniString<string>;
|
|
701
|
+
repository: z.ZodMiniString<string>;
|
|
702
|
+
branch: z.ZodMiniString<string>;
|
|
703
|
+
url: z.ZodMiniString<string>;
|
|
704
|
+
configFilePath: z.ZodMiniString<string>;
|
|
705
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
706
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
707
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
708
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
709
|
+
owner: z.ZodMiniString<string>;
|
|
710
|
+
repository: z.ZodMiniString<string>;
|
|
711
|
+
branch: z.ZodMiniString<string>;
|
|
712
|
+
url: z.ZodMiniString<string>;
|
|
713
|
+
configFilePath: z.ZodMiniString<string>;
|
|
714
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
715
|
+
workspace: z.ZodMiniString<string>;
|
|
716
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
717
|
+
owner: z.ZodMiniString<string>;
|
|
718
|
+
repository: z.ZodMiniString<string>;
|
|
719
|
+
branch: z.ZodMiniString<string>;
|
|
720
|
+
url: z.ZodMiniString<string>;
|
|
721
|
+
configFilePath: z.ZodMiniString<string>;
|
|
722
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
723
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
724
|
+
owner: z.ZodMiniString<string>;
|
|
725
|
+
repository: z.ZodMiniString<string>;
|
|
726
|
+
branch: z.ZodMiniString<string>;
|
|
727
|
+
url: z.ZodMiniString<string>;
|
|
728
|
+
configFilePath: z.ZodMiniString<string>;
|
|
729
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
730
|
+
}, z.core.$loose>], "provider">>>;
|
|
731
|
+
}, z.core.$strip>;
|
|
732
|
+
readonly response: {
|
|
733
|
+
200: z.ZodMiniObject<{
|
|
734
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
735
|
+
status: z.ZodMiniNumber<number>;
|
|
736
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
737
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
738
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
739
|
+
id: z.ZodMiniString<string>;
|
|
740
|
+
organizationId: z.ZodMiniString<string>;
|
|
741
|
+
name: z.ZodMiniString<string>;
|
|
742
|
+
membersIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
743
|
+
adminsIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
744
|
+
viewersIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
745
|
+
memberAccess: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
746
|
+
userId: z.ZodMiniString<string>;
|
|
747
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
748
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
749
|
+
}, z.core.$strip>>>;
|
|
750
|
+
creatorId: z.ZodMiniString<string>;
|
|
751
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
752
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
753
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
754
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
755
|
+
}, z.core.$loose>>;
|
|
756
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
757
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
758
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
759
|
+
}, z.core.$loose>>;
|
|
760
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
761
|
+
}, z.core.$loose>>;
|
|
762
|
+
repository: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
763
|
+
owner: z.ZodMiniString<string>;
|
|
764
|
+
repository: z.ZodMiniString<string>;
|
|
765
|
+
branch: z.ZodMiniString<string>;
|
|
766
|
+
url: z.ZodMiniString<string>;
|
|
767
|
+
configFilePath: z.ZodMiniString<string>;
|
|
768
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
769
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
770
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
771
|
+
owner: z.ZodMiniString<string>;
|
|
772
|
+
repository: z.ZodMiniString<string>;
|
|
773
|
+
branch: z.ZodMiniString<string>;
|
|
774
|
+
url: z.ZodMiniString<string>;
|
|
775
|
+
configFilePath: z.ZodMiniString<string>;
|
|
776
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
777
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
778
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
779
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
780
|
+
owner: z.ZodMiniString<string>;
|
|
781
|
+
repository: z.ZodMiniString<string>;
|
|
782
|
+
branch: z.ZodMiniString<string>;
|
|
783
|
+
url: z.ZodMiniString<string>;
|
|
784
|
+
configFilePath: z.ZodMiniString<string>;
|
|
785
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
786
|
+
workspace: z.ZodMiniString<string>;
|
|
787
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
788
|
+
owner: z.ZodMiniString<string>;
|
|
789
|
+
repository: z.ZodMiniString<string>;
|
|
790
|
+
branch: z.ZodMiniString<string>;
|
|
791
|
+
url: z.ZodMiniString<string>;
|
|
792
|
+
configFilePath: z.ZodMiniString<string>;
|
|
793
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
794
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
795
|
+
owner: z.ZodMiniString<string>;
|
|
796
|
+
repository: z.ZodMiniString<string>;
|
|
797
|
+
branch: z.ZodMiniString<string>;
|
|
798
|
+
url: z.ZodMiniString<string>;
|
|
799
|
+
configFilePath: z.ZodMiniString<string>;
|
|
800
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
801
|
+
}, z.core.$loose>], "provider">>>;
|
|
802
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
803
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
804
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
805
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
806
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
807
|
+
name: z.ZodMiniString<string>;
|
|
808
|
+
url: z.ZodMiniString<string>;
|
|
809
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
810
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
811
|
+
}, z.core.$loose>>>;
|
|
812
|
+
}, z.core.$strip>>;
|
|
813
|
+
autoFill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
814
|
+
imageUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
815
|
+
environments: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
816
|
+
id: z.ZodMiniString<string>;
|
|
817
|
+
name: z.ZodMiniString<string>;
|
|
818
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
819
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
820
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
821
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
822
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
823
|
+
}, z.core.$loose>>;
|
|
824
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
825
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
826
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
827
|
+
}, z.core.$loose>>;
|
|
828
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
829
|
+
}, z.core.$loose>>;
|
|
830
|
+
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
831
|
+
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
832
|
+
}, z.core.$loose>>>;
|
|
833
|
+
oAuth2Access: z.ZodMiniArray<z.ZodMiniObject<{
|
|
834
|
+
id: z.ZodMiniString<string>;
|
|
835
|
+
name: z.ZodMiniString<string>;
|
|
836
|
+
clientId: z.ZodMiniString<string>;
|
|
837
|
+
clientSecret: z.ZodMiniString<string>;
|
|
838
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
839
|
+
userId: z.ZodMiniString<string>;
|
|
840
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
841
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
842
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
843
|
+
createdAt: z.ZodMiniString<string>;
|
|
844
|
+
updatedAt: z.ZodMiniString<string>;
|
|
845
|
+
}, z.core.$loose>>;
|
|
846
|
+
createdAt: z.ZodMiniString<string>;
|
|
847
|
+
updatedAt: z.ZodMiniString<string>;
|
|
848
|
+
}, z.core.$loose>>;
|
|
849
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
850
|
+
code: z.ZodMiniString<string>;
|
|
851
|
+
title: z.ZodMiniString<string>;
|
|
852
|
+
message: z.ZodMiniString<string>;
|
|
853
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
854
|
+
code: z.ZodMiniString<string>;
|
|
855
|
+
title: z.ZodMiniString<string>;
|
|
856
|
+
message: z.ZodMiniString<string>;
|
|
857
|
+
}, z.core.$loose>>]>>;
|
|
858
|
+
}, z.core.$strip>;
|
|
859
|
+
};
|
|
860
|
+
}>;
|
|
861
|
+
readonly updateProjectMembers: RouteDefinition<"PUT", "/members", {
|
|
862
|
+
readonly body: z.ZodMiniObject<{
|
|
863
|
+
membersIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
864
|
+
userId: z.ZodMiniString<string>;
|
|
865
|
+
isAdmin: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
866
|
+
}, z.core.$strip>>>;
|
|
867
|
+
}, z.core.$strip>;
|
|
868
|
+
readonly response: {
|
|
869
|
+
200: z.ZodMiniObject<{
|
|
870
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
871
|
+
status: z.ZodMiniNumber<number>;
|
|
872
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
873
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
874
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
875
|
+
id: z.ZodMiniString<string>;
|
|
876
|
+
organizationId: z.ZodMiniString<string>;
|
|
877
|
+
name: z.ZodMiniString<string>;
|
|
878
|
+
membersIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
879
|
+
adminsIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
880
|
+
viewersIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
881
|
+
memberAccess: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
882
|
+
userId: z.ZodMiniString<string>;
|
|
883
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
884
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
885
|
+
}, z.core.$strip>>>;
|
|
886
|
+
creatorId: z.ZodMiniString<string>;
|
|
887
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
888
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
889
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
890
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
891
|
+
}, z.core.$loose>>;
|
|
892
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
893
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
894
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
895
|
+
}, z.core.$loose>>;
|
|
896
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
897
|
+
}, z.core.$loose>>;
|
|
898
|
+
repository: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
899
|
+
owner: z.ZodMiniString<string>;
|
|
900
|
+
repository: z.ZodMiniString<string>;
|
|
901
|
+
branch: z.ZodMiniString<string>;
|
|
902
|
+
url: z.ZodMiniString<string>;
|
|
903
|
+
configFilePath: z.ZodMiniString<string>;
|
|
904
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
905
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
906
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
907
|
+
owner: z.ZodMiniString<string>;
|
|
908
|
+
repository: z.ZodMiniString<string>;
|
|
909
|
+
branch: z.ZodMiniString<string>;
|
|
910
|
+
url: z.ZodMiniString<string>;
|
|
911
|
+
configFilePath: z.ZodMiniString<string>;
|
|
912
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
913
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
914
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
915
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
916
|
+
owner: z.ZodMiniString<string>;
|
|
917
|
+
repository: z.ZodMiniString<string>;
|
|
918
|
+
branch: z.ZodMiniString<string>;
|
|
919
|
+
url: z.ZodMiniString<string>;
|
|
920
|
+
configFilePath: z.ZodMiniString<string>;
|
|
921
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
922
|
+
workspace: z.ZodMiniString<string>;
|
|
923
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
924
|
+
owner: z.ZodMiniString<string>;
|
|
925
|
+
repository: z.ZodMiniString<string>;
|
|
926
|
+
branch: z.ZodMiniString<string>;
|
|
927
|
+
url: z.ZodMiniString<string>;
|
|
928
|
+
configFilePath: z.ZodMiniString<string>;
|
|
929
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
930
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
931
|
+
owner: z.ZodMiniString<string>;
|
|
932
|
+
repository: z.ZodMiniString<string>;
|
|
933
|
+
branch: z.ZodMiniString<string>;
|
|
934
|
+
url: z.ZodMiniString<string>;
|
|
935
|
+
configFilePath: z.ZodMiniString<string>;
|
|
936
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
937
|
+
}, z.core.$loose>], "provider">>>;
|
|
938
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
939
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
940
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
941
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
942
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
943
|
+
name: z.ZodMiniString<string>;
|
|
944
|
+
url: z.ZodMiniString<string>;
|
|
945
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
946
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
947
|
+
}, z.core.$loose>>>;
|
|
948
|
+
}, z.core.$strip>>;
|
|
949
|
+
autoFill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
950
|
+
imageUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
951
|
+
environments: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
952
|
+
id: z.ZodMiniString<string>;
|
|
953
|
+
name: z.ZodMiniString<string>;
|
|
954
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
955
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
956
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
957
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
958
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
959
|
+
}, z.core.$loose>>;
|
|
960
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
961
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
962
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
963
|
+
}, z.core.$loose>>;
|
|
964
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
965
|
+
}, z.core.$loose>>;
|
|
966
|
+
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
967
|
+
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
968
|
+
}, z.core.$loose>>>;
|
|
969
|
+
oAuth2Access: z.ZodMiniArray<z.ZodMiniObject<{
|
|
970
|
+
id: z.ZodMiniString<string>;
|
|
971
|
+
name: z.ZodMiniString<string>;
|
|
972
|
+
clientId: z.ZodMiniString<string>;
|
|
973
|
+
clientSecret: z.ZodMiniString<string>;
|
|
974
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
975
|
+
userId: z.ZodMiniString<string>;
|
|
976
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
977
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
978
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
979
|
+
createdAt: z.ZodMiniString<string>;
|
|
980
|
+
updatedAt: z.ZodMiniString<string>;
|
|
981
|
+
}, z.core.$loose>>;
|
|
982
|
+
createdAt: z.ZodMiniString<string>;
|
|
983
|
+
updatedAt: z.ZodMiniString<string>;
|
|
984
|
+
}, z.core.$loose>>;
|
|
985
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
986
|
+
code: z.ZodMiniString<string>;
|
|
987
|
+
title: z.ZodMiniString<string>;
|
|
988
|
+
message: z.ZodMiniString<string>;
|
|
989
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
990
|
+
code: z.ZodMiniString<string>;
|
|
991
|
+
title: z.ZodMiniString<string>;
|
|
992
|
+
message: z.ZodMiniString<string>;
|
|
993
|
+
}, z.core.$loose>>]>>;
|
|
994
|
+
}, z.core.$strip>;
|
|
995
|
+
};
|
|
996
|
+
}>;
|
|
997
|
+
readonly pushProjectConfiguration: RouteDefinition<"PUT", "/configuration", {
|
|
998
|
+
readonly body: z.ZodMiniObject<{
|
|
999
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1000
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1001
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
1002
|
+
}, z.core.$loose>>;
|
|
1003
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1004
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1005
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1006
|
+
}, z.core.$loose>>;
|
|
1007
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
1008
|
+
}, z.core.$loose>;
|
|
1009
|
+
readonly response: {
|
|
1010
|
+
200: z.ZodMiniObject<{
|
|
1011
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1012
|
+
status: z.ZodMiniNumber<number>;
|
|
1013
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1014
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1015
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1016
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1017
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1018
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
1019
|
+
}, z.core.$loose>>;
|
|
1020
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1021
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1022
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1023
|
+
}, z.core.$loose>>;
|
|
1024
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
1025
|
+
}, z.core.$loose>>;
|
|
1026
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1027
|
+
code: z.ZodMiniString<string>;
|
|
1028
|
+
title: z.ZodMiniString<string>;
|
|
1029
|
+
message: z.ZodMiniString<string>;
|
|
1030
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1031
|
+
code: z.ZodMiniString<string>;
|
|
1032
|
+
title: z.ZodMiniString<string>;
|
|
1033
|
+
message: z.ZodMiniString<string>;
|
|
1034
|
+
}, z.core.$loose>>]>>;
|
|
1035
|
+
}, z.core.$strip>;
|
|
1036
|
+
};
|
|
1037
|
+
}>;
|
|
1038
|
+
readonly deleteProject: RouteDefinition<"DELETE", "/", {
|
|
1039
|
+
readonly response: {
|
|
1040
|
+
200: z.ZodMiniObject<{
|
|
1041
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1042
|
+
status: z.ZodMiniNumber<number>;
|
|
1043
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1044
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1045
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1046
|
+
id: z.ZodMiniString<string>;
|
|
1047
|
+
organizationId: z.ZodMiniString<string>;
|
|
1048
|
+
name: z.ZodMiniString<string>;
|
|
1049
|
+
membersIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1050
|
+
adminsIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1051
|
+
viewersIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1052
|
+
memberAccess: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1053
|
+
userId: z.ZodMiniString<string>;
|
|
1054
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
1055
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1056
|
+
}, z.core.$strip>>>;
|
|
1057
|
+
creatorId: z.ZodMiniString<string>;
|
|
1058
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1059
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1060
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1061
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
1062
|
+
}, z.core.$loose>>;
|
|
1063
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1064
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1065
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1066
|
+
}, z.core.$loose>>;
|
|
1067
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
1068
|
+
}, z.core.$loose>>;
|
|
1069
|
+
repository: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1070
|
+
owner: z.ZodMiniString<string>;
|
|
1071
|
+
repository: z.ZodMiniString<string>;
|
|
1072
|
+
branch: z.ZodMiniString<string>;
|
|
1073
|
+
url: z.ZodMiniString<string>;
|
|
1074
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1075
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
1076
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1077
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1078
|
+
owner: z.ZodMiniString<string>;
|
|
1079
|
+
repository: z.ZodMiniString<string>;
|
|
1080
|
+
branch: z.ZodMiniString<string>;
|
|
1081
|
+
url: z.ZodMiniString<string>;
|
|
1082
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1083
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
1084
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1085
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1086
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1087
|
+
owner: z.ZodMiniString<string>;
|
|
1088
|
+
repository: z.ZodMiniString<string>;
|
|
1089
|
+
branch: z.ZodMiniString<string>;
|
|
1090
|
+
url: z.ZodMiniString<string>;
|
|
1091
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1092
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
1093
|
+
workspace: z.ZodMiniString<string>;
|
|
1094
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1095
|
+
owner: z.ZodMiniString<string>;
|
|
1096
|
+
repository: z.ZodMiniString<string>;
|
|
1097
|
+
branch: z.ZodMiniString<string>;
|
|
1098
|
+
url: z.ZodMiniString<string>;
|
|
1099
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1100
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
1101
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1102
|
+
owner: z.ZodMiniString<string>;
|
|
1103
|
+
repository: z.ZodMiniString<string>;
|
|
1104
|
+
branch: z.ZodMiniString<string>;
|
|
1105
|
+
url: z.ZodMiniString<string>;
|
|
1106
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1107
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
1108
|
+
}, z.core.$loose>], "provider">>>;
|
|
1109
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1110
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1111
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1112
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1113
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1114
|
+
name: z.ZodMiniString<string>;
|
|
1115
|
+
url: z.ZodMiniString<string>;
|
|
1116
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1117
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1118
|
+
}, z.core.$loose>>>;
|
|
1119
|
+
}, z.core.$strip>>;
|
|
1120
|
+
autoFill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1121
|
+
imageUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1122
|
+
environments: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1123
|
+
id: z.ZodMiniString<string>;
|
|
1124
|
+
name: z.ZodMiniString<string>;
|
|
1125
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
1126
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1127
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1128
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1129
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
1130
|
+
}, z.core.$loose>>;
|
|
1131
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1132
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1133
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1134
|
+
}, z.core.$loose>>;
|
|
1135
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
1136
|
+
}, z.core.$loose>>;
|
|
1137
|
+
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1138
|
+
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1139
|
+
}, z.core.$loose>>>;
|
|
1140
|
+
oAuth2Access: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1141
|
+
id: z.ZodMiniString<string>;
|
|
1142
|
+
name: z.ZodMiniString<string>;
|
|
1143
|
+
clientId: z.ZodMiniString<string>;
|
|
1144
|
+
clientSecret: z.ZodMiniString<string>;
|
|
1145
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1146
|
+
userId: z.ZodMiniString<string>;
|
|
1147
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1148
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
1149
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
1150
|
+
createdAt: z.ZodMiniString<string>;
|
|
1151
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1152
|
+
}, z.core.$loose>>;
|
|
1153
|
+
createdAt: z.ZodMiniString<string>;
|
|
1154
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1155
|
+
}, z.core.$loose>>;
|
|
1156
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1157
|
+
code: z.ZodMiniString<string>;
|
|
1158
|
+
title: z.ZodMiniString<string>;
|
|
1159
|
+
message: z.ZodMiniString<string>;
|
|
1160
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1161
|
+
code: z.ZodMiniString<string>;
|
|
1162
|
+
title: z.ZodMiniString<string>;
|
|
1163
|
+
message: z.ZodMiniString<string>;
|
|
1164
|
+
}, z.core.$loose>>]>>;
|
|
1165
|
+
}, z.core.$strip>;
|
|
1166
|
+
};
|
|
1167
|
+
}>;
|
|
1168
|
+
readonly selectProject: RouteDefinition<"PUT", "/:projectId", {
|
|
1169
|
+
readonly params: z.ZodMiniObject<{
|
|
1170
|
+
projectId: z.ZodMiniString<string>;
|
|
1171
|
+
}, z.core.$strip>;
|
|
1172
|
+
readonly response: {
|
|
1173
|
+
200: z.ZodMiniObject<{
|
|
1174
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1175
|
+
status: z.ZodMiniNumber<number>;
|
|
1176
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1177
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1178
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1179
|
+
id: z.ZodMiniString<string>;
|
|
1180
|
+
organizationId: z.ZodMiniString<string>;
|
|
1181
|
+
name: z.ZodMiniString<string>;
|
|
1182
|
+
membersIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1183
|
+
adminsIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1184
|
+
viewersIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1185
|
+
memberAccess: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1186
|
+
userId: z.ZodMiniString<string>;
|
|
1187
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
1188
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1189
|
+
}, z.core.$strip>>>;
|
|
1190
|
+
creatorId: z.ZodMiniString<string>;
|
|
1191
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1192
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1193
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1194
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
1195
|
+
}, z.core.$loose>>;
|
|
1196
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1197
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1198
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1199
|
+
}, z.core.$loose>>;
|
|
1200
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
1201
|
+
}, z.core.$loose>>;
|
|
1202
|
+
repository: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1203
|
+
owner: z.ZodMiniString<string>;
|
|
1204
|
+
repository: z.ZodMiniString<string>;
|
|
1205
|
+
branch: z.ZodMiniString<string>;
|
|
1206
|
+
url: z.ZodMiniString<string>;
|
|
1207
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1208
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
1209
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1210
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1211
|
+
owner: z.ZodMiniString<string>;
|
|
1212
|
+
repository: z.ZodMiniString<string>;
|
|
1213
|
+
branch: z.ZodMiniString<string>;
|
|
1214
|
+
url: z.ZodMiniString<string>;
|
|
1215
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1216
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
1217
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1218
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1219
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1220
|
+
owner: z.ZodMiniString<string>;
|
|
1221
|
+
repository: z.ZodMiniString<string>;
|
|
1222
|
+
branch: z.ZodMiniString<string>;
|
|
1223
|
+
url: z.ZodMiniString<string>;
|
|
1224
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1225
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
1226
|
+
workspace: z.ZodMiniString<string>;
|
|
1227
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1228
|
+
owner: z.ZodMiniString<string>;
|
|
1229
|
+
repository: z.ZodMiniString<string>;
|
|
1230
|
+
branch: z.ZodMiniString<string>;
|
|
1231
|
+
url: z.ZodMiniString<string>;
|
|
1232
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1233
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
1234
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1235
|
+
owner: z.ZodMiniString<string>;
|
|
1236
|
+
repository: z.ZodMiniString<string>;
|
|
1237
|
+
branch: z.ZodMiniString<string>;
|
|
1238
|
+
url: z.ZodMiniString<string>;
|
|
1239
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1240
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
1241
|
+
}, z.core.$loose>], "provider">>>;
|
|
1242
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1243
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1244
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1245
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1246
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1247
|
+
name: z.ZodMiniString<string>;
|
|
1248
|
+
url: z.ZodMiniString<string>;
|
|
1249
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1250
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1251
|
+
}, z.core.$loose>>>;
|
|
1252
|
+
}, z.core.$strip>>;
|
|
1253
|
+
autoFill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1254
|
+
imageUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1255
|
+
environments: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1256
|
+
id: z.ZodMiniString<string>;
|
|
1257
|
+
name: z.ZodMiniString<string>;
|
|
1258
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
1259
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1260
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1261
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1262
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
1263
|
+
}, z.core.$loose>>;
|
|
1264
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1265
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1266
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1267
|
+
}, z.core.$loose>>;
|
|
1268
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
1269
|
+
}, z.core.$loose>>;
|
|
1270
|
+
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1271
|
+
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1272
|
+
}, z.core.$loose>>>;
|
|
1273
|
+
oAuth2Access: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1274
|
+
id: z.ZodMiniString<string>;
|
|
1275
|
+
name: z.ZodMiniString<string>;
|
|
1276
|
+
clientId: z.ZodMiniString<string>;
|
|
1277
|
+
clientSecret: z.ZodMiniString<string>;
|
|
1278
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1279
|
+
userId: z.ZodMiniString<string>;
|
|
1280
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1281
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
1282
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
1283
|
+
createdAt: z.ZodMiniString<string>;
|
|
1284
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1285
|
+
}, z.core.$loose>>;
|
|
1286
|
+
createdAt: z.ZodMiniString<string>;
|
|
1287
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1288
|
+
}, z.core.$loose>>;
|
|
1289
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1290
|
+
code: z.ZodMiniString<string>;
|
|
1291
|
+
title: z.ZodMiniString<string>;
|
|
1292
|
+
message: z.ZodMiniString<string>;
|
|
1293
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1294
|
+
code: z.ZodMiniString<string>;
|
|
1295
|
+
title: z.ZodMiniString<string>;
|
|
1296
|
+
message: z.ZodMiniString<string>;
|
|
1297
|
+
}, z.core.$loose>>]>>;
|
|
1298
|
+
}, z.core.$strip>;
|
|
1299
|
+
};
|
|
1300
|
+
}>;
|
|
1301
|
+
readonly unselectProject: RouteDefinition<"POST", "/logout", {
|
|
1302
|
+
readonly response: {
|
|
1303
|
+
200: z.ZodMiniObject<{
|
|
1304
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1305
|
+
status: z.ZodMiniNumber<number>;
|
|
1306
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1307
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1308
|
+
data: z.ZodMiniNullable<z.ZodMiniNull>;
|
|
1309
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1310
|
+
code: z.ZodMiniString<string>;
|
|
1311
|
+
title: z.ZodMiniString<string>;
|
|
1312
|
+
message: z.ZodMiniString<string>;
|
|
1313
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1314
|
+
code: z.ZodMiniString<string>;
|
|
1315
|
+
title: z.ZodMiniString<string>;
|
|
1316
|
+
message: z.ZodMiniString<string>;
|
|
1317
|
+
}, z.core.$loose>>]>>;
|
|
1318
|
+
}, z.core.$strip>;
|
|
1319
|
+
};
|
|
1320
|
+
}>;
|
|
1321
|
+
readonly addNewAccessKey: RouteDefinition<"POST", "/access_key", {
|
|
1322
|
+
readonly body: z.ZodMiniObject<{
|
|
1323
|
+
name: z.ZodMiniString<string>;
|
|
1324
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1325
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniISODateTime, z.ZodMiniTransform<Date, string>>>;
|
|
1326
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
1327
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
1328
|
+
}, z.core.$strip>;
|
|
1329
|
+
readonly response: {
|
|
1330
|
+
200: z.ZodMiniObject<{
|
|
1331
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1332
|
+
status: z.ZodMiniNumber<number>;
|
|
1333
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1334
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1335
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1336
|
+
id: z.ZodMiniString<string>;
|
|
1337
|
+
name: z.ZodMiniString<string>;
|
|
1338
|
+
clientId: z.ZodMiniString<string>;
|
|
1339
|
+
clientSecret: z.ZodMiniString<string>;
|
|
1340
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1341
|
+
userId: z.ZodMiniString<string>;
|
|
1342
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1343
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
1344
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
1345
|
+
createdAt: z.ZodMiniString<string>;
|
|
1346
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1347
|
+
}, z.core.$loose>>;
|
|
1348
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1349
|
+
code: z.ZodMiniString<string>;
|
|
1350
|
+
title: z.ZodMiniString<string>;
|
|
1351
|
+
message: z.ZodMiniString<string>;
|
|
1352
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1353
|
+
code: z.ZodMiniString<string>;
|
|
1354
|
+
title: z.ZodMiniString<string>;
|
|
1355
|
+
message: z.ZodMiniString<string>;
|
|
1356
|
+
}, z.core.$loose>>]>>;
|
|
1357
|
+
}, z.core.$strip>;
|
|
1358
|
+
};
|
|
1359
|
+
}>;
|
|
1360
|
+
readonly refreshAccessKey: RouteDefinition<"PATCH", "/access_key", {
|
|
1361
|
+
readonly body: z.ZodMiniObject<{
|
|
1362
|
+
clientId: z.ZodMiniString<string>;
|
|
1363
|
+
}, z.core.$strip>;
|
|
1364
|
+
readonly response: {
|
|
1365
|
+
200: z.ZodMiniObject<{
|
|
1366
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1367
|
+
status: z.ZodMiniNumber<number>;
|
|
1368
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1369
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1370
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1371
|
+
id: z.ZodMiniString<string>;
|
|
1372
|
+
name: z.ZodMiniString<string>;
|
|
1373
|
+
clientId: z.ZodMiniString<string>;
|
|
1374
|
+
clientSecret: z.ZodMiniString<string>;
|
|
1375
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1376
|
+
userId: z.ZodMiniString<string>;
|
|
1377
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1378
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
1379
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
1380
|
+
createdAt: z.ZodMiniString<string>;
|
|
1381
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1382
|
+
}, z.core.$loose>>;
|
|
1383
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1384
|
+
code: z.ZodMiniString<string>;
|
|
1385
|
+
title: z.ZodMiniString<string>;
|
|
1386
|
+
message: z.ZodMiniString<string>;
|
|
1387
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1388
|
+
code: z.ZodMiniString<string>;
|
|
1389
|
+
title: z.ZodMiniString<string>;
|
|
1390
|
+
message: z.ZodMiniString<string>;
|
|
1391
|
+
}, z.core.$loose>>]>>;
|
|
1392
|
+
}, z.core.$strip>;
|
|
1393
|
+
};
|
|
1394
|
+
}>;
|
|
1395
|
+
readonly deleteAccessKey: RouteDefinition<"DELETE", "/access_key", {
|
|
1396
|
+
readonly body: z.ZodMiniObject<{
|
|
1397
|
+
clientId: z.ZodMiniString<string>;
|
|
1398
|
+
}, z.core.$strip>;
|
|
1399
|
+
readonly response: {
|
|
1400
|
+
200: z.ZodMiniObject<{
|
|
1401
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1402
|
+
status: z.ZodMiniNumber<number>;
|
|
1403
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1404
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1405
|
+
data: z.ZodMiniNullable<z.ZodMiniNull>;
|
|
1406
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1407
|
+
code: z.ZodMiniString<string>;
|
|
1408
|
+
title: z.ZodMiniString<string>;
|
|
1409
|
+
message: z.ZodMiniString<string>;
|
|
1410
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1411
|
+
code: z.ZodMiniString<string>;
|
|
1412
|
+
title: z.ZodMiniString<string>;
|
|
1413
|
+
message: z.ZodMiniString<string>;
|
|
1414
|
+
}, z.core.$loose>>]>>;
|
|
1415
|
+
}, z.core.$strip>;
|
|
1416
|
+
};
|
|
1417
|
+
}>;
|
|
1418
|
+
readonly triggerBuild: RouteDefinition<"POST", "/build", {
|
|
1419
|
+
readonly response: {
|
|
1420
|
+
200: z.ZodMiniObject<{
|
|
1421
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1422
|
+
status: z.ZodMiniNumber<number>;
|
|
1423
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1424
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1425
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1426
|
+
results: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1427
|
+
target: z.ZodMiniString<string>;
|
|
1428
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1429
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1430
|
+
}, z.core.$strip>>;
|
|
1431
|
+
}, z.core.$strip>>;
|
|
1432
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1433
|
+
code: z.ZodMiniString<string>;
|
|
1434
|
+
title: z.ZodMiniString<string>;
|
|
1435
|
+
message: z.ZodMiniString<string>;
|
|
1436
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1437
|
+
code: z.ZodMiniString<string>;
|
|
1438
|
+
title: z.ZodMiniString<string>;
|
|
1439
|
+
message: z.ZodMiniString<string>;
|
|
1440
|
+
}, z.core.$loose>>]>>;
|
|
1441
|
+
}, z.core.$strip>;
|
|
1442
|
+
};
|
|
1443
|
+
}>;
|
|
1444
|
+
readonly triggerWebhook: RouteDefinition<"POST", "/webhook", {
|
|
1445
|
+
readonly body: z.ZodMiniObject<{
|
|
1446
|
+
webhookIndex: z.ZodMiniInt;
|
|
1447
|
+
}, z.core.$strip>;
|
|
1448
|
+
readonly response: {
|
|
1449
|
+
200: z.ZodMiniObject<{
|
|
1450
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1451
|
+
status: z.ZodMiniNumber<number>;
|
|
1452
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1453
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1454
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1455
|
+
target: z.ZodMiniString<string>;
|
|
1456
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1457
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1458
|
+
}, z.core.$strip>>;
|
|
1459
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1460
|
+
code: z.ZodMiniString<string>;
|
|
1461
|
+
title: z.ZodMiniString<string>;
|
|
1462
|
+
message: z.ZodMiniString<string>;
|
|
1463
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1464
|
+
code: z.ZodMiniString<string>;
|
|
1465
|
+
title: z.ZodMiniString<string>;
|
|
1466
|
+
message: z.ZodMiniString<string>;
|
|
1467
|
+
}, z.core.$loose>>]>>;
|
|
1468
|
+
}, z.core.$strip>;
|
|
1469
|
+
};
|
|
1470
|
+
}>;
|
|
1471
|
+
readonly getCIConfiguration: RouteDefinition<"GET", "/ci", {
|
|
1472
|
+
readonly response: {
|
|
1473
|
+
200: z.ZodMiniObject<{
|
|
1474
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1475
|
+
status: z.ZodMiniNumber<number>;
|
|
1476
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1477
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1478
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1479
|
+
exists: z.ZodMiniBoolean<boolean>;
|
|
1480
|
+
content: z.ZodMiniString<string>;
|
|
1481
|
+
path: z.ZodMiniString<string>;
|
|
1482
|
+
fileUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1483
|
+
allowAutoPush: z.ZodMiniBoolean<boolean>;
|
|
1484
|
+
}, z.core.$strip>>;
|
|
1485
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1486
|
+
code: z.ZodMiniString<string>;
|
|
1487
|
+
title: z.ZodMiniString<string>;
|
|
1488
|
+
message: z.ZodMiniString<string>;
|
|
1489
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1490
|
+
code: z.ZodMiniString<string>;
|
|
1491
|
+
title: z.ZodMiniString<string>;
|
|
1492
|
+
message: z.ZodMiniString<string>;
|
|
1493
|
+
}, z.core.$loose>>]>>;
|
|
1494
|
+
}, z.core.$strip>;
|
|
1495
|
+
};
|
|
1496
|
+
}>;
|
|
1497
|
+
readonly pushCIConfiguration: RouteDefinition<"POST", "/ci", {
|
|
1498
|
+
readonly response: {
|
|
1499
|
+
200: z.ZodMiniObject<{
|
|
1500
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1501
|
+
status: z.ZodMiniNumber<number>;
|
|
1502
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1503
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1504
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1505
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1506
|
+
}, z.core.$strip>>;
|
|
1507
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1508
|
+
code: z.ZodMiniString<string>;
|
|
1509
|
+
title: z.ZodMiniString<string>;
|
|
1510
|
+
message: z.ZodMiniString<string>;
|
|
1511
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1512
|
+
code: z.ZodMiniString<string>;
|
|
1513
|
+
title: z.ZodMiniString<string>;
|
|
1514
|
+
message: z.ZodMiniString<string>;
|
|
1515
|
+
}, z.core.$loose>>]>>;
|
|
1516
|
+
}, z.core.$strip>;
|
|
1517
|
+
};
|
|
1518
|
+
}>;
|
|
1519
|
+
readonly deleteProjectByIdAdmin: RouteDefinition<"DELETE", "/:projectId/admin", {
|
|
1520
|
+
readonly params: z.ZodMiniObject<{
|
|
1521
|
+
projectId: z.ZodMiniString<string>;
|
|
1522
|
+
}, z.core.$strip>;
|
|
1523
|
+
readonly response: {
|
|
1524
|
+
200: z.ZodMiniObject<{
|
|
1525
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1526
|
+
status: z.ZodMiniNumber<number>;
|
|
1527
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1528
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1529
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1530
|
+
id: z.ZodMiniString<string>;
|
|
1531
|
+
organizationId: z.ZodMiniString<string>;
|
|
1532
|
+
name: z.ZodMiniString<string>;
|
|
1533
|
+
membersIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1534
|
+
adminsIds: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1535
|
+
viewersIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1536
|
+
memberAccess: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1537
|
+
userId: z.ZodMiniString<string>;
|
|
1538
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
1539
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1540
|
+
}, z.core.$strip>>>;
|
|
1541
|
+
creatorId: z.ZodMiniString<string>;
|
|
1542
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1543
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1544
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1545
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
1546
|
+
}, z.core.$loose>>;
|
|
1547
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1548
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1549
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1550
|
+
}, z.core.$loose>>;
|
|
1551
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
1552
|
+
}, z.core.$loose>>;
|
|
1553
|
+
repository: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1554
|
+
owner: z.ZodMiniString<string>;
|
|
1555
|
+
repository: z.ZodMiniString<string>;
|
|
1556
|
+
branch: z.ZodMiniString<string>;
|
|
1557
|
+
url: z.ZodMiniString<string>;
|
|
1558
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1559
|
+
provider: z.ZodMiniLiteral<"github">;
|
|
1560
|
+
installationId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1561
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1562
|
+
owner: z.ZodMiniString<string>;
|
|
1563
|
+
repository: z.ZodMiniString<string>;
|
|
1564
|
+
branch: z.ZodMiniString<string>;
|
|
1565
|
+
url: z.ZodMiniString<string>;
|
|
1566
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1567
|
+
provider: z.ZodMiniLiteral<"gitlab">;
|
|
1568
|
+
projectId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1569
|
+
instanceUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1570
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1571
|
+
owner: z.ZodMiniString<string>;
|
|
1572
|
+
repository: z.ZodMiniString<string>;
|
|
1573
|
+
branch: z.ZodMiniString<string>;
|
|
1574
|
+
url: z.ZodMiniString<string>;
|
|
1575
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1576
|
+
provider: z.ZodMiniLiteral<"bitbucket">;
|
|
1577
|
+
workspace: z.ZodMiniString<string>;
|
|
1578
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1579
|
+
owner: z.ZodMiniString<string>;
|
|
1580
|
+
repository: z.ZodMiniString<string>;
|
|
1581
|
+
branch: z.ZodMiniString<string>;
|
|
1582
|
+
url: z.ZodMiniString<string>;
|
|
1583
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1584
|
+
provider: z.ZodMiniLiteral<"codeberg">;
|
|
1585
|
+
}, z.core.$loose>, z.ZodMiniObject<{
|
|
1586
|
+
owner: z.ZodMiniString<string>;
|
|
1587
|
+
repository: z.ZodMiniString<string>;
|
|
1588
|
+
branch: z.ZodMiniString<string>;
|
|
1589
|
+
url: z.ZodMiniString<string>;
|
|
1590
|
+
configFilePath: z.ZodMiniString<string>;
|
|
1591
|
+
provider: z.ZodMiniLiteral<"gitee">;
|
|
1592
|
+
}, z.core.$loose>], "provider">>>;
|
|
1593
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1594
|
+
autoTriggerBuilds: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1595
|
+
autoCommitDictionaries: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1596
|
+
webhooks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1597
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1598
|
+
name: z.ZodMiniString<string>;
|
|
1599
|
+
url: z.ZodMiniString<string>;
|
|
1600
|
+
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1601
|
+
secret: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1602
|
+
}, z.core.$loose>>>;
|
|
1603
|
+
}, z.core.$strip>>;
|
|
1604
|
+
autoFill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1605
|
+
imageUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1606
|
+
environments: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1607
|
+
id: z.ZodMiniString<string>;
|
|
1608
|
+
name: z.ZodMiniString<string>;
|
|
1609
|
+
isDefault: z.ZodMiniBoolean<boolean>;
|
|
1610
|
+
configuration: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1611
|
+
internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1612
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1613
|
+
defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
|
|
1614
|
+
}, z.core.$loose>>;
|
|
1615
|
+
editor: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1616
|
+
applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1617
|
+
cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<URLType, URLType>>;
|
|
1618
|
+
}, z.core.$loose>>;
|
|
1619
|
+
ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
|
|
1620
|
+
}, z.core.$loose>>;
|
|
1621
|
+
createdAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1622
|
+
updatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1623
|
+
}, z.core.$loose>>>;
|
|
1624
|
+
oAuth2Access: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1625
|
+
id: z.ZodMiniString<string>;
|
|
1626
|
+
name: z.ZodMiniString<string>;
|
|
1627
|
+
clientId: z.ZodMiniString<string>;
|
|
1628
|
+
clientSecret: z.ZodMiniString<string>;
|
|
1629
|
+
grants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1630
|
+
userId: z.ZodMiniString<string>;
|
|
1631
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1632
|
+
allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
|
|
1633
|
+
allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
|
|
1634
|
+
createdAt: z.ZodMiniString<string>;
|
|
1635
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1636
|
+
}, z.core.$loose>>;
|
|
1637
|
+
createdAt: z.ZodMiniString<string>;
|
|
1638
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1639
|
+
}, z.core.$loose>>;
|
|
1640
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1641
|
+
code: z.ZodMiniString<string>;
|
|
1642
|
+
title: z.ZodMiniString<string>;
|
|
1643
|
+
message: z.ZodMiniString<string>;
|
|
1644
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1645
|
+
code: z.ZodMiniString<string>;
|
|
1646
|
+
title: z.ZodMiniString<string>;
|
|
1647
|
+
message: z.ZodMiniString<string>;
|
|
1648
|
+
}, z.core.$loose>>]>>;
|
|
1649
|
+
}, z.core.$strip>;
|
|
1650
|
+
};
|
|
1651
|
+
}>;
|
|
1652
|
+
readonly updateMemberAccess: RouteDefinition<"PUT", "/member/:userId/access", {
|
|
1653
|
+
readonly params: z.ZodMiniObject<{
|
|
1654
|
+
userId: z.ZodMiniString<string>;
|
|
1655
|
+
}, z.core.$strip>;
|
|
1656
|
+
readonly body: z.ZodMiniObject<{
|
|
1657
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
1658
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1659
|
+
}, z.core.$strip>;
|
|
1660
|
+
readonly response: {
|
|
1661
|
+
200: z.ZodMiniObject<{
|
|
1662
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
1663
|
+
status: z.ZodMiniNumber<number>;
|
|
1664
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1665
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1666
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1667
|
+
userId: z.ZodMiniString<string>;
|
|
1668
|
+
allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
|
|
1669
|
+
allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
|
|
1670
|
+
}, z.core.$strip>>;
|
|
1671
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1672
|
+
code: z.ZodMiniString<string>;
|
|
1673
|
+
title: z.ZodMiniString<string>;
|
|
1674
|
+
message: z.ZodMiniString<string>;
|
|
1675
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
1676
|
+
code: z.ZodMiniString<string>;
|
|
1677
|
+
title: z.ZodMiniString<string>;
|
|
1678
|
+
message: z.ZodMiniString<string>;
|
|
1679
|
+
}, z.core.$loose>>]>>;
|
|
1680
|
+
}, z.core.$strip>;
|
|
1681
|
+
};
|
|
1682
|
+
}>;
|
|
1683
|
+
}>;
|
|
1684
|
+
/** Route definitions of the `/api/project` group, by name. */
|
|
1685
|
+
export type ProjectRoutes = (typeof projectContract)['routes'];
|
|
1686
|
+
export type ProjectConfiguration = z.output<typeof projectConfigurationSchema>;
|
|
1687
|
+
export type Webhook = z.output<typeof webhookSchema>;
|
|
1688
|
+
export type ProjectConfigCI = z.output<typeof projectCISchema>;
|
|
1689
|
+
export type RepositoryProvider = z.output<typeof repositoryProviderSchema>;
|
|
1690
|
+
export type RepositoryConnection = z.output<typeof repositoryConnectionSchema>;
|
|
1691
|
+
export type EnvironmentAPI = z.output<typeof environmentSchema>;
|
|
1692
|
+
export type ProjectMemberGranularAccessAPI = z.output<typeof projectMemberGranularAccessSchema>;
|
|
1693
|
+
export type OAuth2AccessAPI = z.output<typeof accessKeySchema>;
|
|
1694
|
+
export type ProjectAPI = z.output<typeof projectSchema>;
|
|
1695
|
+
export type ProjectInsights = z.output<typeof projectInsightsSchema>;
|
|
1696
|
+
export type CIStatus = z.output<typeof ciStatusSchema>;
|
|
1697
|
+
export type GetProjectsParams = RouteQuerystring<ProjectRoutes['getProjects']>;
|
|
1698
|
+
export type GetProjectsResult = PaginatedResponse<ProjectAPI>;
|
|
1699
|
+
export type GetProjectInsightsResult = ResponseData<ProjectInsights>;
|
|
1700
|
+
export type AddProjectBody = RouteBodyInput<ProjectRoutes['addProject']>;
|
|
1701
|
+
export type AddProjectResult = ResponseData<ProjectAPI>;
|
|
1702
|
+
export type UpdateProjectBody = RouteBodyInput<ProjectRoutes['updateProject']>;
|
|
1703
|
+
export type UpdateProjectResult = ResponseData<ProjectAPI>;
|
|
1704
|
+
export type UpdateProjectMembersBody = RouteBodyInput<ProjectRoutes['updateProjectMembers']>;
|
|
1705
|
+
export type UpdateProjectMembersResult = ResponseData<ProjectAPI>;
|
|
1706
|
+
export type PushProjectConfigurationBody = RouteBodyInput<ProjectRoutes['pushProjectConfiguration']>;
|
|
1707
|
+
export type PushProjectConfigurationResult = ResponseData<ProjectConfiguration>;
|
|
1708
|
+
export type DeleteProjectResult = ResponseData<ProjectAPI>;
|
|
1709
|
+
export type SelectProjectParam = RouteParams<ProjectRoutes['selectProject']>;
|
|
1710
|
+
export type SelectProjectResult = ResponseData<ProjectAPI>;
|
|
1711
|
+
export type UnselectProjectResult = ResponseData<null>;
|
|
1712
|
+
/** `expiresAt` also accepts a `Date`: JSON serializes it to an ISO string. */
|
|
1713
|
+
export type AddNewAccessKeyBody = Omit<RouteBodyInput<ProjectRoutes['addNewAccessKey']>, 'expiresAt'> & {
|
|
1714
|
+
expiresAt?: Date | string;
|
|
1715
|
+
};
|
|
1716
|
+
export type AddNewAccessKeyResponse = ResponseData<OAuth2AccessAPI>;
|
|
1717
|
+
export type RefreshAccessKeyBody = RouteBody<ProjectRoutes['refreshAccessKey']>;
|
|
1718
|
+
export type RefreshAccessKeyResponse = ResponseData<OAuth2AccessAPI>;
|
|
1719
|
+
export type DeleteAccessKeyBody = RouteBody<ProjectRoutes['deleteAccessKey']>;
|
|
1720
|
+
export type DeleteAccessKeyResponse = ResponseData<null>;
|
|
1721
|
+
export type TriggerBuildResult = ResponseData<{
|
|
1722
|
+
results: z.output<typeof ciTargetResultSchema>[];
|
|
1723
|
+
}>;
|
|
1724
|
+
export type TriggerWebhookBody = RouteBody<ProjectRoutes['triggerWebhook']>;
|
|
1725
|
+
export type TriggerWebhookResult = ResponseData<z.output<typeof ciTargetResultSchema>>;
|
|
1726
|
+
export type GetCIConfigurationResult = ResponseData<CIStatus>;
|
|
1727
|
+
export type PushCIConfigurationResult = ResponseData<{
|
|
1728
|
+
success: boolean;
|
|
1729
|
+
}>;
|
|
1730
|
+
export type DeleteProjectByIdAdminResult = ResponseData<ProjectAPI>;
|
|
1731
|
+
export type UpdateMemberAccessParams = RouteParams<ProjectRoutes['updateMemberAccess']>;
|
|
1732
|
+
export type UpdateMemberAccessBody = RouteBodyInput<ProjectRoutes['updateMemberAccess']>;
|
|
1733
|
+
export type UpdateMemberAccessResult = ResponseData<ProjectMemberGranularAccessAPI>;
|
|
1734
|
+
//#endregion
|
|
1735
|
+
//# sourceMappingURL=project.d.ts.map
|