@intlayer/backend-contract 9.6.0 → 9.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ai.cjs +5 -6
- package/dist/cjs/analytics.cjs +3 -4
- package/dist/cjs/asset.cjs +4 -5
- package/dist/cjs/blogComment.cjs +4 -5
- package/dist/cjs/cliSessionToken.cjs +7 -8
- package/dist/cjs/common.cjs +1 -2
- package/dist/cjs/defineRoute.cjs +1 -2
- package/dist/cjs/demo.cjs +2 -3
- package/dist/cjs/dictionary.cjs +4 -5
- package/dist/cjs/environment.cjs +5 -6
- package/dist/cjs/eventListener.cjs +2 -3
- package/dist/cjs/gitProviders.cjs +3 -4
- package/dist/cjs/newsletter.cjs +4 -5
- package/dist/cjs/oAuth2.cjs +7 -8
- package/dist/cjs/organization.cjs +4 -5
- package/dist/cjs/project.cjs +4 -5
- package/dist/cjs/public.cjs +4 -5
- package/dist/cjs/responseData.cjs +1 -2
- package/dist/cjs/reviewer.cjs +4 -5
- package/dist/cjs/scan.cjs +4 -5
- package/dist/cjs/search.cjs +3 -4
- package/dist/cjs/session.cjs +5 -6
- package/dist/cjs/showcaseProject.cjs +4 -5
- package/dist/cjs/stripe.cjs +5 -6
- package/dist/cjs/tag.cjs +4 -5
- package/dist/cjs/translation.cjs +4 -5
- package/dist/cjs/user.cjs +4 -5
- package/dist/esm/ai.mjs +2 -3
- package/dist/esm/analytics.mjs +1 -2
- package/dist/esm/asset.mjs +2 -3
- package/dist/esm/blogComment.mjs +2 -3
- package/dist/esm/cliSessionToken.mjs +4 -5
- package/dist/esm/common.mjs +1 -2
- package/dist/esm/defineRoute.mjs +1 -2
- package/dist/esm/demo.mjs +1 -2
- package/dist/esm/dictionary.mjs +2 -3
- package/dist/esm/environment.mjs +3 -4
- package/dist/esm/eventListener.mjs +1 -2
- package/dist/esm/gitProviders.mjs +1 -2
- package/dist/esm/newsletter.mjs +1 -2
- package/dist/esm/oAuth2.mjs +4 -5
- package/dist/esm/organization.mjs +2 -3
- package/dist/esm/project.mjs +2 -3
- package/dist/esm/public.mjs +2 -3
- package/dist/esm/responseData.mjs +1 -2
- package/dist/esm/reviewer.mjs +2 -3
- package/dist/esm/scan.mjs +2 -3
- package/dist/esm/search.mjs +1 -2
- package/dist/esm/session.mjs +3 -4
- package/dist/esm/showcaseProject.mjs +2 -3
- package/dist/esm/stripe.mjs +3 -4
- package/dist/esm/tag.mjs +2 -3
- package/dist/esm/translation.mjs +2 -3
- package/dist/esm/user.mjs +2 -3
- package/dist/types/ai.d.ts +1 -2
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/analytics.d.ts +1 -2
- package/dist/types/analytics.d.ts.map +1 -1
- package/dist/types/asset.d.ts +0 -2
- package/dist/types/asset.d.ts.map +1 -1
- package/dist/types/blogComment.d.ts +0 -2
- package/dist/types/blogComment.d.ts.map +1 -1
- package/dist/types/cliSessionToken.d.ts +1 -3
- package/dist/types/cliSessionToken.d.ts.map +1 -1
- package/dist/types/common.d.ts +0 -2
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/defineRoute.d.ts +1 -2
- package/dist/types/defineRoute.d.ts.map +1 -1
- package/dist/types/demo.d.ts +0 -2
- package/dist/types/demo.d.ts.map +1 -1
- package/dist/types/dictionary.d.ts +1 -2
- package/dist/types/dictionary.d.ts.map +1 -1
- package/dist/types/environment.d.ts +1 -3
- package/dist/types/environment.d.ts.map +1 -1
- package/dist/types/eventListener.d.ts +0 -2
- package/dist/types/eventListener.d.ts.map +1 -1
- package/dist/types/gitProviders.d.ts +1 -2
- package/dist/types/gitProviders.d.ts.map +1 -1
- package/dist/types/newsletter.d.ts +0 -2
- package/dist/types/newsletter.d.ts.map +1 -1
- package/dist/types/oAuth2.d.ts +1 -3
- package/dist/types/oAuth2.d.ts.map +1 -1
- package/dist/types/organization.d.ts +0 -2
- package/dist/types/organization.d.ts.map +1 -1
- package/dist/types/project.d.ts +1 -2
- package/dist/types/project.d.ts.map +1 -1
- package/dist/types/public.d.ts +2 -3
- package/dist/types/public.d.ts.map +1 -1
- package/dist/types/responseData.d.ts +0 -2
- package/dist/types/responseData.d.ts.map +1 -1
- package/dist/types/reviewer.d.ts +1 -2
- package/dist/types/reviewer.d.ts.map +1 -1
- package/dist/types/scan.d.ts +1 -2
- package/dist/types/scan.d.ts.map +1 -1
- package/dist/types/search.d.ts +0 -2
- package/dist/types/search.d.ts.map +1 -1
- package/dist/types/session.d.ts +1 -2
- package/dist/types/session.d.ts.map +1 -1
- package/dist/types/showcaseProject.d.ts +1 -2
- package/dist/types/showcaseProject.d.ts.map +1 -1
- package/dist/types/stripe.d.ts +1 -3
- package/dist/types/stripe.d.ts.map +1 -1
- package/dist/types/tag.d.ts +0 -2
- package/dist/types/tag.d.ts.map +1 -1
- package/dist/types/translation.d.ts +0 -2
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/types/user.d.ts +0 -2
- package/dist/types/user.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/esm/ai.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { dateTimeSchema, isJSONObject, paginationQueryShape, repeatableQueryValueSchema, typedStringSchema, typedValueSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema, isJSONObject, paginationQueryShape, repeatableQueryValueSchema, typedStringSchema, typedValueSchema } from "./common.mjs";
|
|
4
4
|
import { tagSchema } from "./tag.mjs";
|
|
5
5
|
import { z } from "zod/mini";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/ai.ts
|
|
8
8
|
const aiOptionsSchema = typedValueSchema(isJSONObject);
|
|
9
9
|
/** Chat message exchanged with the assistants. */
|
|
10
10
|
const chatCompletionRequestMessageSchema = z.object({
|
|
@@ -256,6 +256,5 @@ const aiContract = defineRouteGroup({
|
|
|
256
256
|
}
|
|
257
257
|
});
|
|
258
258
|
|
|
259
|
-
//#endregion
|
|
260
259
|
export { aiContract, aiOptionsSchema, aiStatsSchema, chatCompletionRequestMessageSchema, discussionMessageSchema, discussionSchema };
|
|
261
260
|
//# sourceMappingURL=ai.mjs.map
|
package/dist/esm/analytics.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
|
2
2
|
import { responseDataSchema } from "./responseData.mjs";
|
|
3
3
|
import { z } from "zod/mini";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/analytics.ts
|
|
6
6
|
/** Kind of analytics event sent by the SDK. */
|
|
7
7
|
const analyticsEventTypeSchema = z.enum([
|
|
8
8
|
"page_view",
|
|
@@ -163,6 +163,5 @@ const analyticsContract = defineRouteGroup({
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
//#endregion
|
|
167
166
|
export { analyticsContract, analyticsEventTypeSchema, audienceGranularitySchema, audienceRangeSchema, audienceSeriesPointSchema, audienceStatsSchema, incomingAnalyticsEventSchema };
|
|
168
167
|
//# sourceMappingURL=analytics.mjs.map
|
package/dist/esm/asset.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { dateTimeSchema, objectIdSchema, paginationQueryShape } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema, objectIdSchema, paginationQueryShape } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/asset.ts
|
|
7
7
|
/** Image uploaded to a project (served from the CDN). */
|
|
8
8
|
const assetSchema = z.looseObject({
|
|
9
9
|
id: z.string(),
|
|
@@ -81,6 +81,5 @@ const assetContract = defineRouteGroup({
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
//#endregion
|
|
85
84
|
export { assetContract, assetSchema };
|
|
86
85
|
//# sourceMappingURL=asset.mjs.map
|
package/dist/esm/blogComment.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { objectIdSchema, paginationQueryShape } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { objectIdSchema, paginationQueryShape } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/blogComment.ts
|
|
7
7
|
/** Moderation status of a blog comment. */
|
|
8
8
|
const blogCommentStatusSchema = z.enum([
|
|
9
9
|
"pending",
|
|
@@ -89,6 +89,5 @@ const blogCommentContract = defineRouteGroup({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
//#endregion
|
|
93
92
|
export { blogCommentContract, blogCommentPublicSchema, blogCommentSchema, blogCommentStatusSchema };
|
|
94
93
|
//# sourceMappingURL=blogComment.mjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { dateTimeSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
3
|
+
import { organizationSchema } from "./organization.mjs";
|
|
4
|
+
import { projectSchema } from "./project.mjs";
|
|
2
5
|
import { responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema } from "./common.mjs";
|
|
4
6
|
import { userSchema } from "./user.mjs";
|
|
5
|
-
import { projectSchema } from "./project.mjs";
|
|
6
|
-
import { organizationSchema } from "./organization.mjs";
|
|
7
7
|
import { z } from "zod/mini";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/cliSessionToken.ts
|
|
10
10
|
/** REST contract of the CLI session routes (`intlayer login`). */
|
|
11
11
|
const cliSessionTokenContract = defineRouteGroup({
|
|
12
12
|
prefix: "/api/cli-session",
|
|
@@ -34,6 +34,5 @@ const cliSessionTokenContract = defineRouteGroup({
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
//#endregion
|
|
38
37
|
export { cliSessionTokenContract };
|
|
39
38
|
//# sourceMappingURL=cliSessionToken.mjs.map
|
package/dist/esm/common.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/common.ts
|
|
4
4
|
/** 24-character hexadecimal MongoDB ObjectId, serialized as a string. */
|
|
5
5
|
const objectIdSchema = z.string().check(z.regex(/^[a-fA-F0-9]{24}$/));
|
|
6
6
|
/**
|
|
@@ -30,6 +30,5 @@ const typedValueSchema = (isValid = () => true) => z.custom(isValid);
|
|
|
30
30
|
/** Whether a value is a plain JSON object (not null, not an array). */
|
|
31
31
|
const isJSONObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
32
32
|
|
|
33
|
-
//#endregion
|
|
34
33
|
export { dateTimeSchema, isJSONObject, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema, typedStringSchema, typedValueSchema };
|
|
35
34
|
//# sourceMappingURL=common.mjs.map
|
package/dist/esm/defineRoute.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/defineRoute.ts
|
|
2
2
|
/** Identity helper preserving literal types of a route definition. */
|
|
3
3
|
const defineRoute = (route) => route;
|
|
4
4
|
/** Identity helper preserving literal types of a route group. */
|
|
@@ -18,6 +18,5 @@ const joinRouteURL = (backendURL, prefix, path, params) => {
|
|
|
18
18
|
*/
|
|
19
19
|
const buildRouteURL = (backendURL, group, route, ...[params]) => joinRouteURL(backendURL, group.prefix, route.path, params);
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { buildRouteURL, defineRoute, defineRouteGroup };
|
|
23
22
|
//# sourceMappingURL=defineRoute.mjs.map
|
package/dist/esm/demo.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
2
|
import { z } from "zod/mini";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/demo.ts
|
|
5
5
|
/** REST contract of the `/api/demo` routes (cloud only). */
|
|
6
6
|
const demoContract = defineRouteGroup({
|
|
7
7
|
prefix: "/api/demo",
|
|
@@ -16,6 +16,5 @@ response: { 200: z.object({ ok: z.boolean() }) } }
|
|
|
16
16
|
}) }
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
//#endregion
|
|
20
19
|
export { demoContract };
|
|
21
20
|
//# sourceMappingURL=demo.mjs.map
|
package/dist/esm/dictionary.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { isJSONObject, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema, typedValueSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { isJSONObject, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema, typedValueSchema } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/dictionary.ts
|
|
7
7
|
/** Whether a value looks like a dictionary (object with a string `key`). */
|
|
8
8
|
const isDictionaryLike = (value) => isJSONObject(value) && typeof value.key === "string";
|
|
9
9
|
/** Dictionary as returned by the API (content documented as any JSON). */
|
|
@@ -158,6 +158,5 @@ const dictionaryContract = defineRouteGroup({
|
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
|
|
161
|
-
//#endregion
|
|
162
161
|
export { contentNodeSchema, dictionaryContract, dictionarySchema, localDictionarySchema, pushDictionariesResultSchema };
|
|
163
162
|
//# sourceMappingURL=dictionary.mjs.map
|
package/dist/esm/environment.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
|
-
import { responseDataSchema } from "./responseData.mjs";
|
|
3
1
|
import { objectIdSchema } from "./common.mjs";
|
|
2
|
+
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
4
3
|
import { environmentSchema, projectConfigurationSchema } from "./project.mjs";
|
|
4
|
+
import { responseDataSchema } from "./responseData.mjs";
|
|
5
5
|
import { z } from "zod/mini";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/environment.ts
|
|
8
8
|
const environmentIdParamsSchema = z.object({ environmentId: objectIdSchema });
|
|
9
9
|
/** Every environment of the project, production first when virtual. */
|
|
10
10
|
const environmentsResponseSchema = responseDataSchema(z.array(environmentSchema));
|
|
@@ -85,6 +85,5 @@ const environmentContract = defineRouteGroup({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
-
//#endregion
|
|
89
88
|
export { environmentContract };
|
|
90
89
|
//# sourceMappingURL=environment.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/eventListener.ts
|
|
4
4
|
/** Live dictionary change stream (server-sent events). */
|
|
5
5
|
const eventListenerContract = defineRouteGroup({
|
|
6
6
|
prefix: "/api/event-listener",
|
|
@@ -13,6 +13,5 @@ const eventListenerContract = defineRouteGroup({
|
|
|
13
13
|
}) }
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { eventListenerContract };
|
|
18
17
|
//# sourceMappingURL=eventListener.mjs.map
|
|
@@ -2,7 +2,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
|
2
2
|
import { responseDataSchema } from "./responseData.mjs";
|
|
3
3
|
import { z } from "zod/mini";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/gitProviders.ts
|
|
6
6
|
/**
|
|
7
7
|
* Git provider OAuth + repository routes (repository linking in the
|
|
8
8
|
* dashboard). Each provider gets its own group; the shapes below are shared.
|
|
@@ -347,6 +347,5 @@ const bitbucketContract = defineRouteGroup({
|
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
|
|
350
|
-
//#endregion
|
|
351
350
|
export { bitbucketContract, bitbucketRepositorySchema, codebergContract, forgeRepositorySchema, gitHubRepositorySchema, gitLabProjectSchema, giteeContract, githubContract, gitlabContract };
|
|
352
351
|
//# sourceMappingURL=gitProviders.mjs.map
|
package/dist/esm/newsletter.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { responseDataSchema } from "./responseData.mjs";
|
|
|
3
3
|
import { emailsListSchema, userSchema } from "./user.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/newsletter.ts
|
|
7
7
|
/** One mailing list or several. */
|
|
8
8
|
const emailListSchema = z.union([emailsListSchema, z.array(emailsListSchema)]);
|
|
9
9
|
/** REST contract of the `/api/newsletter` routes. */
|
|
@@ -44,6 +44,5 @@ const newsletterContract = defineRouteGroup({
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
//#endregion
|
|
48
47
|
export { newsletterContract };
|
|
49
48
|
//# sourceMappingURL=newsletter.mjs.map
|
package/dist/esm/oAuth2.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { dateTimeSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
3
|
+
import { organizationSchema } from "./organization.mjs";
|
|
4
|
+
import { projectSchema } from "./project.mjs";
|
|
2
5
|
import { responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema } from "./common.mjs";
|
|
4
6
|
import { userSchema } from "./user.mjs";
|
|
5
|
-
import { projectSchema } from "./project.mjs";
|
|
6
|
-
import { organizationSchema } from "./organization.mjs";
|
|
7
7
|
import { z } from "zod/mini";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/oAuth2.ts
|
|
10
10
|
/** Access token issued for an access key (client credentials). */
|
|
11
11
|
const oAuth2TokenSchema = z.looseObject({
|
|
12
12
|
accessToken: z.string(),
|
|
@@ -55,6 +55,5 @@ const oAuth2Contract = defineRouteGroup({
|
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
//#endregion
|
|
59
58
|
export { oAuth2Contract, oAuth2TokenSchema };
|
|
60
59
|
//# sourceMappingURL=oAuth2.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/organization.ts
|
|
7
7
|
/** Billing plan tiers. */
|
|
8
8
|
const planTypeSchema = z.enum([
|
|
9
9
|
"FREE",
|
|
@@ -214,6 +214,5 @@ const organizationContract = defineRouteGroup({
|
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
|
|
217
|
-
//#endregion
|
|
218
217
|
export { mailerProviderSchema, organizationContract, organizationMailerConfigInputSchema, organizationMailerConfigSchema, organizationSchema, planSchema, planTypeSchema };
|
|
219
218
|
//# sourceMappingURL=organization.mjs.map
|
package/dist/esm/project.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema, typedStringSchema, typedValueSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema, typedStringSchema, typedValueSchema } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/project.ts
|
|
7
7
|
/** Locale code (ex: `en`, `fr-CA`). */
|
|
8
8
|
const localeSchema = typedStringSchema();
|
|
9
9
|
/**
|
|
@@ -382,6 +382,5 @@ const projectContract = defineRouteGroup({
|
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
|
|
385
|
-
//#endregion
|
|
386
385
|
export { accessKeySchema, ciStatusSchema, environmentSchema, localeInsightSchema, localeSchema, projectCISchema, projectConfigurationSchema, projectContract, projectInsightsSchema, projectMemberGranularAccessSchema, projectSchema, repositoryConnectionSchema, repositoryProviderSchema, webhookSchema };
|
|
387
386
|
//# sourceMappingURL=project.mjs.map
|
package/dist/esm/public.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
|
-
import { responseDataSchema } from "./responseData.mjs";
|
|
3
2
|
import { dictionarySchema } from "./dictionary.mjs";
|
|
3
|
+
import { responseDataSchema } from "./responseData.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/public.ts
|
|
7
7
|
/** Capabilities a public browser token may carry (deliberately narrow). */
|
|
8
8
|
const publicBrowserScopeSchema = z.enum(["analytics:ingest", "dictionary:read"]);
|
|
9
9
|
const publicBrowserTokenSchema = z.object({
|
|
@@ -53,6 +53,5 @@ keys: z.optional(z.string()) }),
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
//#endregion
|
|
57
56
|
export { publicBrowserScopeSchema, publicContract };
|
|
58
57
|
//# sourceMappingURL=public.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/responseData.ts
|
|
4
4
|
/** Error payload attached to failed responses. */
|
|
5
5
|
const errorDataSchema = z.looseObject({
|
|
6
6
|
code: z.string(),
|
|
@@ -25,6 +25,5 @@ const paginatedResponseSchema = (item) => z.object({
|
|
|
25
25
|
total_items: z.nullable(z.number())
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
//#endregion
|
|
29
28
|
export { errorDataSchema, paginatedResponseSchema, responseDataSchema };
|
|
30
29
|
//# sourceMappingURL=responseData.mjs.map
|
package/dist/esm/reviewer.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/reviewer.ts
|
|
7
7
|
/** Number sent in a query string (parsed by the handler). */
|
|
8
8
|
const numericQueryValueSchema = z.union([z.string(), z.number()]);
|
|
9
9
|
const reviewerStatusSchema = z.enum([
|
|
@@ -385,6 +385,5 @@ const reviewerContract = defineRouteGroup({
|
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
387
|
|
|
388
|
-
//#endregion
|
|
389
388
|
export { REVIEWER_CATEGORIES, missionEstimateSchema, missionStatusSchema, priceDistributionSchema, reviewerCategorySchema, reviewerContract, reviewerMessageSchema, reviewerProfileSchema, reviewerReviewSchema, reviewerStatusSchema, translationMissionSchema };
|
|
390
389
|
//# sourceMappingURL=reviewer.mjs.map
|
package/dist/esm/scan.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { dateTimeSchema, paginationQueryShape } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema, paginationQueryShape } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/scan.ts
|
|
7
7
|
/**
|
|
8
8
|
* Locale routing strategies detected on a website. Mirrors
|
|
9
9
|
* `@intlayer/engine/scan` (asserted equal there: engine depends on the
|
|
@@ -220,6 +220,5 @@ const scanContract = defineRouteGroup({
|
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
|
|
223
|
-
//#endregion
|
|
224
223
|
export { hostScanSchema, hostScanSourceSchema, hostTechnologySchema, recursiveAuditStatusSchema, routingStrategySchema, scanContract, scannedHostDetailSchema, scannedHostSummarySchema, technologyCategorySchema, technologyUsageSchema };
|
|
225
224
|
//# sourceMappingURL=scan.mjs.map
|
package/dist/esm/search.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
|
2
2
|
import { responseDataSchema } from "./responseData.mjs";
|
|
3
3
|
import { z } from "zod/mini";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/search.ts
|
|
6
6
|
/** One documentation chunk matching a search. */
|
|
7
7
|
const searchDocResultSchema = z.object({
|
|
8
8
|
fileKey: z.string(),
|
|
@@ -33,6 +33,5 @@ const searchContract = defineRouteGroup({
|
|
|
33
33
|
}) }
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
//#endregion
|
|
37
36
|
export { searchContract, searchDocResultSchema };
|
|
38
37
|
//# sourceMappingURL=search.mjs.map
|
package/dist/esm/session.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { dateTimeSchema, typedStringSchema } from "./common.mjs";
|
|
2
|
-
import { userSchema } from "./user.mjs";
|
|
3
|
-
import { environmentSchema, projectSchema } from "./project.mjs";
|
|
4
2
|
import { organizationSchema } from "./organization.mjs";
|
|
3
|
+
import { environmentSchema, projectSchema } from "./project.mjs";
|
|
4
|
+
import { userSchema } from "./user.mjs";
|
|
5
5
|
import { z } from "zod/mini";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/session.ts
|
|
8
8
|
/** Named groupings of privileges granted to a user. */
|
|
9
9
|
const rolesSchema = z.enum([
|
|
10
10
|
"user",
|
|
@@ -48,6 +48,5 @@ const sessionSchema = z.looseObject({
|
|
|
48
48
|
allowedLocales: z.optional(z.nullable(z.array(typedStringSchema())))
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
//#endregion
|
|
52
51
|
export { rolesSchema, sessionDataSchema, sessionSchema };
|
|
53
52
|
//# sourceMappingURL=session.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/showcaseProject.ts
|
|
7
7
|
/** Rejects repository URLs, which belong in the `githubUrl` field. */
|
|
8
8
|
const isNotRepositoryURL = z.refine((value) => !/github\.com|gitlab\.com|bitbucket\.org|codeberg\.org|gitee\.com/.test(value), { message: "Repository URLs should be placed in the GitHub URL field" });
|
|
9
9
|
/** Optional URL where an empty string means "not provided". */
|
|
@@ -177,6 +177,5 @@ const showcaseProjectContract = defineRouteGroup({
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
//#endregion
|
|
181
180
|
export { showcaseProjectContract, showcaseProjectSchema, showcaseScanDetailsSchema };
|
|
182
181
|
//# sourceMappingURL=showcaseProject.mjs.map
|
package/dist/esm/stripe.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
|
-
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
1
|
import { dateTimeSchema, objectIdSchema, paginationQueryShape } from "./common.mjs";
|
|
2
|
+
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
4
3
|
import { planSchema } from "./organization.mjs";
|
|
4
|
+
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
5
5
|
import { z } from "zod/mini";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/stripe.ts
|
|
8
8
|
/** Stripe invoice. */
|
|
9
9
|
const stripeInvoiceSchema = z.looseObject({
|
|
10
10
|
id: z.optional(z.string()),
|
|
@@ -374,6 +374,5 @@ const stripeContract = defineRouteGroup({
|
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
376
|
|
|
377
|
-
//#endregion
|
|
378
377
|
export { affiliateInvitationSchema, affiliateSchema, affiliateStatsSchema, commissionTypeSchema, pricingResultSchema, promoCodeSchema, stripeContract, stripeInvoiceSchema, stripePaymentMethodSchema };
|
|
379
378
|
//# sourceMappingURL=stripe.mjs.map
|
package/dist/esm/tag.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/tag.ts
|
|
7
7
|
/** Tag editable fields: ownership (project, organization, creator) is set by the server. */
|
|
8
8
|
const tagFieldsShape = {
|
|
9
9
|
key: z.string().check(z.minLength(1)),
|
|
@@ -76,6 +76,5 @@ const tagContract = defineRouteGroup({
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
//#endregion
|
|
80
79
|
export { tagContract, tagSchema };
|
|
81
80
|
//# sourceMappingURL=tag.mjs.map
|
package/dist/esm/translation.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { typedStringSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { typedStringSchema } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/translation.ts
|
|
7
7
|
const jobIdParamsSchema = z.object({ jobId: z.string().check(z.minLength(1)) });
|
|
8
8
|
const jobResponseSchema = responseDataSchema(z.unknown());
|
|
9
9
|
/** Job control routes share the same shape. */
|
|
@@ -48,6 +48,5 @@ const translationContract = defineRouteGroup({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
//#endregion
|
|
52
51
|
export { translationContract };
|
|
53
52
|
//# sourceMappingURL=translation.mjs.map
|
package/dist/esm/user.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
1
2
|
import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
|
|
2
3
|
import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
|
|
3
|
-
import { dateTimeSchema, objectIdSchema, paginationQueryShape, repeatableQueryValueSchema } from "./common.mjs";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/user.ts
|
|
7
7
|
/** Mailing lists a user can subscribe to. */
|
|
8
8
|
const emailsListSchema = z.enum(["newsLetter"]);
|
|
9
9
|
/** Mailing list names, usable as values (`EmailsList.NEWS_LETTER`). */
|
|
@@ -144,6 +144,5 @@ const userContract = defineRouteGroup({
|
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
|
|
147
|
-
//#endregion
|
|
148
147
|
export { EmailsList, emailsListSchema, userContract, userSchema };
|
|
149
148
|
//# sourceMappingURL=user.mjs.map
|
package/dist/types/ai.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { Locale } from "@intlayer/types/allLocales";
|
|
|
4
4
|
import { AiProviders } from "@intlayer/types/config";
|
|
5
5
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
6
6
|
import { z } from "zod/mini";
|
|
7
|
-
//#region src/ai.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* AI settings sent by a client. Provider-specific options (from the AI SDKs)
|
|
10
9
|
* pass through untouched, so the value is only checked to be an object;
|
|
@@ -545,5 +544,5 @@ export type AutocompleteResponse = ResponseData<{
|
|
|
545
544
|
export type GetDiscussionsParams = RouteQuerystring<AIRoutes['getDiscussions']>;
|
|
546
545
|
export type GetDiscussionsResult = PaginatedResponse<DiscussionAPI>;
|
|
547
546
|
export type GetAIStatsResult = ResponseData<AIStats>;
|
|
548
|
-
|
|
547
|
+
export {};
|
|
549
548
|
//# sourceMappingURL=ai.d.ts.map
|
package/dist/types/ai.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","names":[],"sources":["../../src/ai.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai.d.ts","names":["_$__defineRoute0.RouteDefinition","_$__defineRoute0.RouteGroup"],"sources":["../../src/ai.ts"],"mappings":";;;;;;;;;;;YA+BY;EACV,cAAc;EACd;EACA;EACA;;EAEA;EACA;EACA;;qBAGW,iBAAe,EAAA,cAAA,WAAA;;qBAGf,oCAAkC,EAAA;;;;;;;;GAU7C,EAAA,KAAA;;cAMI,yBAAuB,EAAA;;;GAG3B,EAAA,KAAA;;cAGI,sBAAoB,EAAA;;;;;;;;GAQxB,EAAA,KAAA;cAEI,sBAAoB,EAAA;;;;;;;GAOxB,EAAA,KAAA;cAKI,kBAAgB,EAAA;;;;GAIpB,EAAA,KAAA;;qBAGW,yBAAuB,EAAA;;;;;;;;;GAKlC,EAAA,KAAA;;qBAGW,kBAAgB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgB3B,EAAA,KAAA;;qBAGW,eAAa,EAAA;;;;;;;;;;;;;;GAgBxB,EAAA,KAAA;;qBAUW,Y;W,aAiBUA;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;W,eAoBVA;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;W,yBAmBUA;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;W,8BAgBAA;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;W,iCASAA;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;W,UASAA;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,cA4BVA;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;W,gBAsBUA;;;;;;;;;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,YAQAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAOX,mBAAmB;;;;;YAMnB,+BAA+B,KACzC,EAAE,cAAc;EAEZ,YAAY;;YACN,gBAAgB,EAAE,cAAc;YAChC,UAAU,EAAE,cAAc;YAE1B,kBAAkB,eAAe;YACjC,oBAAoB,aAC9B,EAAE,cAAc;YAEN,oBAAoB,eAAe;YACnC,sBAAsB;EAChC,aAAa;EACb;;YAEU,8BAA8B,eACxC;YAEU,gCAAgC,aAC1C,EAAE,cAAc;YAEN,mCAAmC,eAC7C;YAEU,qCAAqC,aAC/C,EAAE,cAAc;YAEN,sCAAsC,eAChD;YAEU,wCAAwC,aAClD,EAAE,cAAc;YAEN,eAAe,eAAe;YAC9B,qBAAqB,EAAE,cAAc;YACrC,iBAAiB,aAAa;YAC9B,qBAAqB,eAAe;;YAEpC,uBAAuB;EACjC;EACA;;YAEU,WAAW,eAAe;;YAE1B,aAAa;EACvB;EACA,aAAa,EAAE,cAAc;EAC7B;;YAEU,mBAAmB,eAAe;YAClC,uBAAuB;EAAe;;YACtC,uBAAuB,iBAAiB;YACxC,uBAAuB,kBAAkB;YACzC,mBAAmB,aAAa"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RouteBodyInput, RouteDefinition, RouteGroup } from "./defineRoute.js";
|
|
2
2
|
import { ResponseData } from "./responseData.js";
|
|
3
3
|
import { z } from "zod/mini";
|
|
4
|
-
//#region src/analytics.d.ts
|
|
5
4
|
/** Kind of analytics event sent by the SDK. */
|
|
6
5
|
export declare const analyticsEventTypeSchema: z.ZodMiniEnum<{
|
|
7
6
|
content_exposure: "content_exposure";
|
|
@@ -374,5 +373,5 @@ export type GetContentStatsResult = ResponseData<ContentStatRow[]>;
|
|
|
374
373
|
export type GetExperimentResultsResult = ResponseData<ExperimentResult>;
|
|
375
374
|
export type GetAudienceResult = ResponseData<AudienceStats>;
|
|
376
375
|
export type GetPageMetadataResult = ResponseData<PageMetadata>;
|
|
377
|
-
|
|
376
|
+
export {};
|
|
378
377
|
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","names":[],"sources":["../../src/analytics.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","names":["_$__defineRoute0.RouteDefinition","_$__defineRoute0.RouteGroup"],"sources":["../../src/analytics.ts"],"mappings":";;;;qBASa,0BAAwB,EAAA;;;;;;qBAOxB,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;GAevC,EAAA,KAAA;;qBAGW,qBAAmB,EAAA;;;;;;;;;;qBAWnB,2BAAyB,EAAA;;;;;;;qBAQzB,2BAAyB,EAAA;;;;GAKpC,EAAA,KAAA;cAEI,4BAA0B,EAAA;;;;GAI9B,EAAA,KAAA;qBAEW,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAY9B,EAAA,KAAA;cAEI,4BAA0B,EAAA;;;;GAI9B,EAAA,KAAA;cAEI,sBAAoB,EAAA;;;;;GAKxB,EAAA,KAAA;cAEI,wBAAsB,EAAA;;;;;;;;;;GAY1B,EAAA,KAAA;cAEI,oBAAkB,EAAA;;;GAGtB,EAAA,KAAA;;qBAGW,mB;W,uBAoBAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;W,sBAUAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;W,sBAcUA;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,iBAQAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;W,sBASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,iBASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;YAOX,0BAA0B;YAE1B,qBAAqB,EAAE,cAAc;YACrC,yBAAyB,EAAE,cAC9B;YAEG,gBAAgB,EAAE,cAAc;YAChC,sBAAsB,EAAE,cAAc;YACtC,sBAAsB,EAAE,cAAc;YACtC,uBAAuB,EAAE,cAAc;YACvC,gBAAgB,EAAE,cAAc;YAChC,uBAAuB,EAAE,cAAc;YACvC,iBAAiB,EAAE,cAAc;YACjC,mBAAmB,EAAE,cAAc;YACnC,eAAe,EAAE,cAAc;YAE/B,sBAAsB,eAChC;YAEU,wBAAwB;EAAe;;YACvC,6BAA6B,aAAa;YAC1C,wBAAwB,aAAa;YACrC,6BAA6B,aAAa;YAC1C,oBAAoB,aAAa;YACjC,wBAAwB,aAAa"}
|
package/dist/types/asset.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RouteBodyInput, RouteDefinition, RouteGroup } from "./defineRoute.js";
|
|
2
2
|
import { PaginatedResponse, ResponseData } from "./responseData.js";
|
|
3
3
|
import { z } from "zod/mini";
|
|
4
|
-
//#region src/asset.d.ts
|
|
5
4
|
/** Image uploaded to a project (served from the CDN). */
|
|
6
5
|
export declare const assetSchema: z.ZodMiniObject<{
|
|
7
6
|
id: z.ZodMiniString<string>;
|
|
@@ -203,5 +202,4 @@ export type UploadAssetResult = ResponseData<AssetAPI>;
|
|
|
203
202
|
export type UpdateAssetBody = RouteBodyInput<AssetRoutes['updateAsset']>;
|
|
204
203
|
export type UpdateAssetResult = ResponseData<AssetAPI>;
|
|
205
204
|
export type DeleteAssetResult = ResponseData<null>;
|
|
206
|
-
//#endregion
|
|
207
205
|
//# sourceMappingURL=asset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","names":[],"sources":["../../src/asset.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asset.d.ts","names":["_$__defineRoute0.RouteDefinition","_$__defineRoute0.RouteGroup"],"sources":["../../src/asset.ts"],"mappings":";;;;qBAea,aAAW,EAAA;;;;;;;;;;;;;GAkBtB,EAAA,KAAA;;qBAMW,e;W,WAUUA;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,cASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,aAQAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,aAcAA;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,aASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;YAOX,sBAAsB;YAEtB,WAAW,EAAE,cAAc;YAC3B,kBAAkB,kBAAkB;YACpC,qBAAqB,aAAa;YAClC,oBAAoB,aAAa;YACjC,kBAAkB,eAAe;YACjC,oBAAoB,aAAa;YACjC,oBAAoB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RouteBodyInput, RouteDefinition, RouteGroup } from "./defineRoute.js";
|
|
2
2
|
import { PaginatedResponse, ResponseData } from "./responseData.js";
|
|
3
3
|
import { z } from "zod/mini";
|
|
4
|
-
//#region src/blogComment.d.ts
|
|
5
4
|
/** Moderation status of a blog comment. */
|
|
6
5
|
export declare const blogCommentStatusSchema: z.ZodMiniEnum<{
|
|
7
6
|
approved: "approved";
|
|
@@ -237,5 +236,4 @@ export type GetBlogCommentsResult = ResponseData<BlogCommentPublicAPI[]>;
|
|
|
237
236
|
export type GetAdminBlogCommentsResult = PaginatedResponse<BlogCommentAPI>;
|
|
238
237
|
export type UpdateBlogCommentStatusBody = RouteBodyInput<BlogCommentRoutes['updateBlogCommentStatus']>;
|
|
239
238
|
export type UpdateBlogCommentStatusResult = ResponseData<BlogCommentAPI>;
|
|
240
|
-
//#endregion
|
|
241
239
|
//# sourceMappingURL=blogComment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blogComment.d.ts","names":[],"sources":["../../src/blogComment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"blogComment.d.ts","names":["_$__defineRoute0.RouteDefinition","_$__defineRoute0.RouteGroup"],"sources":["../../src/blogComment.ts"],"mappings":";;;;qBAea,yBAAuB,EAAA;;;;;;qBAOvB,yBAAuB,EAAA;;;;;;;;;;;;GAQlC,EAAA,KAAA;;qBAGW,mBAAiB,EAAA;;;;;;;;;;;;;GAG5B,EAAA,KAAA;;qBAKW,qB;W,mBAeUA;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,sBAaAA;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,yBAUVA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,yBAWUA;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,mBASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;YAOX,4BAA4B;YAE5B,oBAAoB,EAAE,cAAc;YACpC,uBAAuB,EAAE,cAAc;YACvC,iBAAiB,EAAE,cAAc;YACjC,wBAAwB,eAClC;YAEU,0BAA0B,aAAa;YACvC,wBAAwB,aAAa;YACrC,6BAA6B,kBAAkB;YAC/C,8BAA8B,eACxC;YAEU,gCAAgC,aAAa"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { RouteDefinition, RouteGroup } from "./defineRoute.js";
|
|
2
|
-
import { ResponseData } from "./responseData.js";
|
|
3
2
|
import { ProjectAPI, ProjectConfigAI } from "./project.js";
|
|
4
3
|
import { OrganizationAPI } from "./organization.js";
|
|
4
|
+
import { ResponseData } from "./responseData.js";
|
|
5
5
|
import { UserAPI } from "./user.js";
|
|
6
6
|
import { z } from "zod/mini";
|
|
7
|
-
//#region src/cliSessionToken.d.ts
|
|
8
7
|
/** REST contract of the CLI session routes (`intlayer login`). */
|
|
9
8
|
export declare const cliSessionTokenContract: RouteGroup<"/api/cli-session", {
|
|
10
9
|
readonly createCliSessionToken: RouteDefinition<"POST", "/", {
|
|
@@ -259,5 +258,4 @@ export type GetCliSessionMeResult = ResponseData<{
|
|
|
259
258
|
user?: UserAPI | null;
|
|
260
259
|
organization?: OrganizationAPI | null;
|
|
261
260
|
}>;
|
|
262
|
-
//#endregion
|
|
263
261
|
//# sourceMappingURL=cliSessionToken.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cliSessionToken.d.ts","names":[],"sources":["../../src/cliSessionToken.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cliSessionToken.d.ts","names":["_$__defineRoute0.RouteDefinition","_$__project0.ProjectConfigAI","_$__defineRoute0.RouteGroup"],"sources":["../../src/cliSessionToken.ts"],"mappings":";;;;;;;qBASa,yB;W,uBAUAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;W,iBAYAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAeD,gCAAgC;YAEhC,8BAA8B;EACxC;EACA;;YAEU,wBAAwB;EAClC,SAAS;EACT,OAAO;EACP,eAAe"}
|