@lokalise/harmony 2.1.0-exp-testingContracts.1 → 2.1.0-exp-testingContracts.3
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/harmony.cjs +0 -1
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +1 -2
- package/dist/harmony103.cjs +1 -1
- package/dist/harmony103.mjs +1 -1
- package/dist/harmony104.cjs +7 -7
- package/dist/harmony104.mjs +7 -7
- package/dist/harmony106.cjs +2 -2
- package/dist/harmony106.mjs +2 -2
- package/dist/harmony107.cjs +2 -165
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +3 -166
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +16 -42
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +16 -42
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +75 -13
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +75 -13
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +10 -10
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +10 -10
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +35 -13
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +34 -12
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +8 -10
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +9 -11
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +47 -21
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +46 -20
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +10 -4
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +9 -3
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +13 -17
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +13 -17
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +161 -71
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +161 -71
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +42 -10
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +43 -11
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +12 -34
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +12 -34
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +13 -10
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +12 -9
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +9 -45
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +11 -47
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +20 -8
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +20 -8
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony123.cjs +87 -7
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +87 -7
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +30 -17
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +30 -17
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +20 -8
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +20 -8
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +7 -8
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +7 -8
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +16 -14
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +16 -14
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +8 -20
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +8 -20
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +7 -86
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +7 -86
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +15 -30
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +15 -30
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony132.cjs +2 -2
- package/dist/harmony132.mjs +2 -2
- package/dist/harmony133.cjs +2 -2
- package/dist/harmony133.mjs +2 -2
- package/dist/harmony134.cjs +3 -3
- package/dist/harmony134.mjs +3 -3
- package/dist/harmony135.cjs +1 -1
- package/dist/harmony135.mjs +1 -1
- package/dist/harmony136.cjs +3 -3
- package/dist/harmony136.mjs +3 -3
- package/dist/harmony137.cjs +2 -2
- package/dist/harmony137.mjs +2 -2
- package/dist/harmony138.cjs +2 -2
- package/dist/harmony138.mjs +2 -2
- package/dist/harmony139.cjs +2 -2
- package/dist/harmony139.mjs +2 -2
- package/dist/harmony140.cjs +2 -2
- package/dist/harmony140.mjs +2 -2
- package/dist/harmony141.cjs +3 -3
- package/dist/harmony141.mjs +3 -3
- package/dist/harmony143.cjs +1 -1
- package/dist/harmony143.mjs +1 -1
- package/dist/harmony148.cjs +10 -3
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +10 -3
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +3 -3
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +3 -3
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +3 -3
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +3 -3
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +3 -14
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +3 -14
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +7 -7
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +7 -7
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +14 -3
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +14 -3
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony154.cjs +3 -10
- package/dist/harmony154.cjs.map +1 -1
- package/dist/harmony154.mjs +3 -10
- package/dist/harmony154.mjs.map +1 -1
- package/dist/harmony160.cjs +9 -32
- package/dist/harmony160.cjs.map +1 -1
- package/dist/harmony160.mjs +8 -31
- package/dist/harmony160.mjs.map +1 -1
- package/dist/harmony161.cjs +3 -6
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +3 -6
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +6 -3
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +6 -3
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +21 -6
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +21 -6
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +3 -21
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +3 -21
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +9 -3
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +9 -3
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +3 -9
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +3 -9
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony167.cjs +32 -6
- package/dist/harmony167.cjs.map +1 -1
- package/dist/harmony167.mjs +31 -5
- package/dist/harmony167.mjs.map +1 -1
- package/dist/harmony168.cjs +1 -1
- package/dist/harmony168.mjs +1 -1
- package/dist/harmony169.cjs +1 -1
- package/dist/harmony169.mjs +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony170.cjs +2 -2
- package/dist/harmony170.mjs +2 -2
- package/dist/harmony171.cjs +11 -4
- package/dist/harmony171.cjs.map +1 -1
- package/dist/harmony171.mjs +11 -4
- package/dist/harmony171.mjs.map +1 -1
- package/dist/harmony172.cjs +15 -10
- package/dist/harmony172.cjs.map +1 -1
- package/dist/harmony172.mjs +15 -10
- package/dist/harmony172.mjs.map +1 -1
- package/dist/harmony173.cjs +18 -13
- package/dist/harmony173.cjs.map +1 -1
- package/dist/harmony173.mjs +18 -13
- package/dist/harmony173.mjs.map +1 -1
- package/dist/harmony174.cjs +10 -19
- package/dist/harmony174.cjs.map +1 -1
- package/dist/harmony174.mjs +10 -19
- package/dist/harmony174.mjs.map +1 -1
- package/dist/harmony175.cjs +4 -12
- package/dist/harmony175.cjs.map +1 -1
- package/dist/harmony175.mjs +4 -12
- package/dist/harmony175.mjs.map +1 -1
- package/dist/harmony20.cjs +1 -1
- package/dist/harmony20.mjs +1 -1
- package/dist/harmony28.cjs +1 -1
- package/dist/harmony28.mjs +1 -1
- package/dist/harmony29.cjs +1 -1
- package/dist/harmony29.mjs +1 -1
- package/dist/harmony32.cjs +1 -1
- package/dist/harmony32.mjs +1 -1
- package/dist/harmony33.cjs +1 -1
- package/dist/harmony33.mjs +1 -1
- package/dist/harmony34.cjs +1 -1
- package/dist/harmony34.mjs +1 -1
- package/dist/harmony39.cjs +1 -1
- package/dist/harmony39.mjs +1 -1
- package/dist/harmony40.cjs +1 -1
- package/dist/harmony40.mjs +1 -1
- package/dist/harmony41.cjs +1 -1
- package/dist/harmony41.mjs +1 -1
- package/dist/harmony42.cjs +2 -2
- package/dist/harmony42.mjs +2 -2
- package/dist/harmony43.cjs +2 -2
- package/dist/harmony43.mjs +2 -2
- package/dist/harmony44.cjs +1 -1
- package/dist/harmony44.mjs +1 -1
- package/dist/harmony53.cjs +3 -3
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +1 -1
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony78.cjs +74 -74
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +1 -1
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +52 -52
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +1 -1
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +4 -4
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +1 -1
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +18 -18
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +1 -1
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +15 -15
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +1 -1
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +96 -96
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +1 -1
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +24 -24
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +1 -1
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +14 -14
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +1 -1
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +2 -2
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +1 -1
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +40 -40
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +1 -1
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +27 -27
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +1 -1
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +10 -10
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +1 -1
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +1 -3
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +2 -4
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony97.cjs +2 -2
- package/dist/harmony97.mjs +2 -2
- package/dist/harmony99.cjs +2 -2
- package/dist/harmony99.mjs +2 -2
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.d.ts +8 -35
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.fixture.d.ts +1 -1
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +4 -4
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedUser.d.ts +3 -3
- package/dist/types/src/features/auth/frontend/hooks/useGetPromotedClassicSessionJwtQuery.d.ts +1 -1
- package/dist/types/src/features/auth/frontend/services/generateTokenFromClassicSession.d.ts +4 -1
- package/dist/types/src/features/auth/frontend/services/refreshExpiredToken.d.ts +4 -1
- package/dist/types/src/features/navigation/hooks/useNavigationQueries.d.ts +56 -56
- package/dist/types/src/features/publicApi/TESTING_CONTRACTS.d.ts +57 -2
- package/dist/types/src/features/publicApi/contributors.d.ts +260 -5
- package/dist/types/src/features/publicApi/hooks/useAddContributorsMutation.d.ts +7 -7
- package/dist/types/src/features/publicApi/hooks/useAddLanguagesToProjectMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +14 -14
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +3 -3
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useGetTeamUsersQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useGetUserTokenQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListProjectLanguagesQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +3 -3
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useUpdateContributorMutation.d.ts +5 -5
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +13 -13
- package/dist/types/src/features/publicApi/languages.d.ts +106 -3
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +54 -1
- package/dist/types/src/features/publicApi/projects.d.ts +520 -6
- package/dist/types/src/features/publicApi/score.d.ts +102 -3
- package/dist/types/src/features/publicApi/team.d.ts +102 -2
- package/dist/types/src/features/publicApi/teamUsers.d.ts +125 -3
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +84 -834
- package/dist/types/src/features/publicApi/types/languageTypes.d.ts +22 -212
- package/dist/types/src/features/publicApi/types/paginationTypes.d.ts +2 -8
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +71 -76
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +48 -24
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +211 -1097
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +32 -96
- package/dist/types/src/features/publicApi/types/sharedTypes.d.ts +30 -126
- package/dist/types/src/features/publicApi/types/teamRoleTypes.d.ts +7 -2
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +65 -328
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +91 -208
- package/dist/types/src/features/publicApi/types/userTokenTypes.d.ts +9 -39
- package/dist/types/src/features/publicApi/userToken.d.ts +19 -1
- package/package.json +4 -4
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
export declare const LANGUAGE_ISO_SCHEMA: z.ZodObject<{
|
|
3
3
|
lang_iso: z.ZodString;
|
|
4
4
|
custom_iso: z.ZodOptional<z.ZodString>;
|
|
5
|
-
},
|
|
6
|
-
lang_iso: string;
|
|
7
|
-
custom_iso?: string | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
lang_iso: string;
|
|
10
|
-
custom_iso?: string | undefined;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
export type LanguageIso = z.infer<typeof LANGUAGE_ISO_SCHEMA>;
|
|
13
7
|
export declare const LANGUAGE_STATISTICS_SCHEMA: z.ZodObject<{
|
|
14
8
|
language_id: z.ZodNumber;
|
|
@@ -17,54 +11,20 @@ export declare const LANGUAGE_STATISTICS_SCHEMA: z.ZodObject<{
|
|
|
17
11
|
words_to_do: z.ZodNumber;
|
|
18
12
|
project_language_id: z.ZodNumber;
|
|
19
13
|
project_language_uuid: z.ZodString;
|
|
20
|
-
},
|
|
21
|
-
progress: number;
|
|
22
|
-
language_id: number;
|
|
23
|
-
language_iso: string;
|
|
24
|
-
words_to_do: number;
|
|
25
|
-
project_language_id: number;
|
|
26
|
-
project_language_uuid: string;
|
|
27
|
-
}, {
|
|
28
|
-
progress: number;
|
|
29
|
-
language_id: number;
|
|
30
|
-
language_iso: string;
|
|
31
|
-
words_to_do: number;
|
|
32
|
-
project_language_id: number;
|
|
33
|
-
project_language_uuid: string;
|
|
34
|
-
}>;
|
|
14
|
+
}, z.core.$strip>;
|
|
35
15
|
export type LanguageStatistics = z.infer<typeof LANGUAGE_STATISTICS_SCHEMA>;
|
|
36
16
|
export declare const LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
37
17
|
projectId: z.ZodString;
|
|
38
|
-
},
|
|
39
|
-
projectId: string;
|
|
40
|
-
}, {
|
|
41
|
-
projectId: string;
|
|
42
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
43
19
|
export declare const LANGUAGE_SCHEMA: z.ZodObject<{
|
|
44
20
|
lang_id: z.ZodNumber;
|
|
45
21
|
lang_iso: z.ZodString;
|
|
46
22
|
lang_name: z.ZodString;
|
|
47
23
|
is_rtl: z.ZodBoolean;
|
|
48
|
-
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString
|
|
24
|
+
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>>;
|
|
49
25
|
project_language_id: z.ZodString;
|
|
50
26
|
project_language_uuid: z.ZodString;
|
|
51
|
-
},
|
|
52
|
-
lang_id: number;
|
|
53
|
-
lang_iso: string;
|
|
54
|
-
lang_name: string;
|
|
55
|
-
project_language_id: string;
|
|
56
|
-
project_language_uuid: string;
|
|
57
|
-
is_rtl: boolean;
|
|
58
|
-
plural_forms: (string | undefined)[];
|
|
59
|
-
}, {
|
|
60
|
-
lang_id: number;
|
|
61
|
-
lang_iso: string;
|
|
62
|
-
lang_name: string;
|
|
63
|
-
project_language_id: string;
|
|
64
|
-
project_language_uuid: string;
|
|
65
|
-
is_rtl: boolean;
|
|
66
|
-
plural_forms: (string | undefined)[];
|
|
67
|
-
}>;
|
|
27
|
+
}, z.core.$strip>;
|
|
68
28
|
export type Language = z.infer<typeof LANGUAGE_SCHEMA>;
|
|
69
29
|
export declare const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
70
30
|
project_id: z.ZodString;
|
|
@@ -74,92 +34,24 @@ export declare const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
74
34
|
lang_iso: z.ZodString;
|
|
75
35
|
lang_name: z.ZodString;
|
|
76
36
|
is_rtl: z.ZodBoolean;
|
|
77
|
-
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString
|
|
37
|
+
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>>;
|
|
78
38
|
project_language_id: z.ZodString;
|
|
79
39
|
project_language_uuid: z.ZodString;
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
lang_iso: string;
|
|
83
|
-
lang_name: string;
|
|
84
|
-
project_language_id: string;
|
|
85
|
-
project_language_uuid: string;
|
|
86
|
-
is_rtl: boolean;
|
|
87
|
-
plural_forms: (string | undefined)[];
|
|
88
|
-
}, {
|
|
89
|
-
lang_id: number;
|
|
90
|
-
lang_iso: string;
|
|
91
|
-
lang_name: string;
|
|
92
|
-
project_language_id: string;
|
|
93
|
-
project_language_uuid: string;
|
|
94
|
-
is_rtl: boolean;
|
|
95
|
-
plural_forms: (string | undefined)[];
|
|
96
|
-
}>, "many">;
|
|
97
|
-
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
languages: {
|
|
99
|
-
lang_id: number;
|
|
100
|
-
lang_iso: string;
|
|
101
|
-
lang_name: string;
|
|
102
|
-
project_language_id: string;
|
|
103
|
-
project_language_uuid: string;
|
|
104
|
-
is_rtl: boolean;
|
|
105
|
-
plural_forms: (string | undefined)[];
|
|
106
|
-
}[];
|
|
107
|
-
project_id: string;
|
|
108
|
-
project_uuid: string;
|
|
109
|
-
}, {
|
|
110
|
-
languages: {
|
|
111
|
-
lang_id: number;
|
|
112
|
-
lang_iso: string;
|
|
113
|
-
lang_name: string;
|
|
114
|
-
project_language_id: string;
|
|
115
|
-
project_language_uuid: string;
|
|
116
|
-
is_rtl: boolean;
|
|
117
|
-
plural_forms: (string | undefined)[];
|
|
118
|
-
}[];
|
|
119
|
-
project_id: string;
|
|
120
|
-
project_uuid: string;
|
|
121
|
-
}>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
122
42
|
export type ListProjectLanguagesResponse = z.infer<typeof LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA>;
|
|
123
43
|
export declare const ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
124
44
|
projectId: z.ZodString;
|
|
125
|
-
},
|
|
126
|
-
projectId: string;
|
|
127
|
-
}, {
|
|
128
|
-
projectId: string;
|
|
129
|
-
}>;
|
|
45
|
+
}, z.core.$strip>;
|
|
130
46
|
export type AddLanguagesToProjectPathParams = z.infer<typeof ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA>;
|
|
131
47
|
export declare const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
|
132
48
|
languages: z.ZodArray<z.ZodObject<{
|
|
133
49
|
lang_iso: z.ZodString;
|
|
134
50
|
custom_iso: z.ZodOptional<z.ZodString>;
|
|
135
51
|
custom_name: z.ZodOptional<z.ZodString>;
|
|
136
|
-
custom_plural_forms: z.ZodOptional<z.ZodArray<z.ZodString
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
custom_iso?: string | undefined;
|
|
140
|
-
custom_name?: string | undefined;
|
|
141
|
-
custom_plural_forms?: string[] | undefined;
|
|
142
|
-
}, {
|
|
143
|
-
lang_iso: string;
|
|
144
|
-
custom_iso?: string | undefined;
|
|
145
|
-
custom_name?: string | undefined;
|
|
146
|
-
custom_plural_forms?: string[] | undefined;
|
|
147
|
-
}>, "many">;
|
|
148
|
-
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
languages: {
|
|
150
|
-
lang_iso: string;
|
|
151
|
-
custom_iso?: string | undefined;
|
|
152
|
-
custom_name?: string | undefined;
|
|
153
|
-
custom_plural_forms?: string[] | undefined;
|
|
154
|
-
}[];
|
|
155
|
-
}, {
|
|
156
|
-
languages: {
|
|
157
|
-
lang_iso: string;
|
|
158
|
-
custom_iso?: string | undefined;
|
|
159
|
-
custom_name?: string | undefined;
|
|
160
|
-
custom_plural_forms?: string[] | undefined;
|
|
161
|
-
}[];
|
|
162
|
-
}>;
|
|
52
|
+
custom_plural_forms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
163
55
|
export type AddLanguagesToProjectRequestBody = z.infer<typeof ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA>;
|
|
164
56
|
export declare const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA: z.ZodObject<{
|
|
165
57
|
project_id: z.ZodString;
|
|
@@ -168,112 +60,30 @@ export declare const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
168
60
|
lang_id: z.ZodNumber;
|
|
169
61
|
lang_iso: z.ZodString;
|
|
170
62
|
lang_name: z.ZodString;
|
|
63
|
+
is_rtl: z.ZodBoolean;
|
|
64
|
+
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>>;
|
|
171
65
|
project_language_id: z.ZodOptional<z.ZodString>;
|
|
172
66
|
project_language_uuid: z.ZodOptional<z.ZodString>;
|
|
173
|
-
|
|
174
|
-
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
|
175
|
-
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
lang_id: number;
|
|
177
|
-
lang_iso: string;
|
|
178
|
-
lang_name: string;
|
|
179
|
-
is_rtl: boolean;
|
|
180
|
-
plural_forms: (string | undefined)[];
|
|
181
|
-
project_language_id?: string | undefined;
|
|
182
|
-
project_language_uuid?: string | undefined;
|
|
183
|
-
}, {
|
|
184
|
-
lang_id: number;
|
|
185
|
-
lang_iso: string;
|
|
186
|
-
lang_name: string;
|
|
187
|
-
is_rtl: boolean;
|
|
188
|
-
plural_forms: (string | undefined)[];
|
|
189
|
-
project_language_id?: string | undefined;
|
|
190
|
-
project_language_uuid?: string | undefined;
|
|
191
|
-
}>, "many">;
|
|
67
|
+
}, z.core.$strip>>;
|
|
192
68
|
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
69
|
message: z.ZodString;
|
|
194
70
|
code: z.ZodNumber;
|
|
195
71
|
lang_iso: z.ZodString;
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
code: number;
|
|
199
|
-
lang_iso: string;
|
|
200
|
-
}, {
|
|
201
|
-
message: string;
|
|
202
|
-
code: number;
|
|
203
|
-
lang_iso: string;
|
|
204
|
-
}>, "many">>;
|
|
205
|
-
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
languages: {
|
|
207
|
-
lang_id: number;
|
|
208
|
-
lang_iso: string;
|
|
209
|
-
lang_name: string;
|
|
210
|
-
is_rtl: boolean;
|
|
211
|
-
plural_forms: (string | undefined)[];
|
|
212
|
-
project_language_id?: string | undefined;
|
|
213
|
-
project_language_uuid?: string | undefined;
|
|
214
|
-
}[];
|
|
215
|
-
project_id: string;
|
|
216
|
-
project_uuid: string;
|
|
217
|
-
errors?: {
|
|
218
|
-
message: string;
|
|
219
|
-
code: number;
|
|
220
|
-
lang_iso: string;
|
|
221
|
-
}[] | undefined;
|
|
222
|
-
}, {
|
|
223
|
-
languages: {
|
|
224
|
-
lang_id: number;
|
|
225
|
-
lang_iso: string;
|
|
226
|
-
lang_name: string;
|
|
227
|
-
is_rtl: boolean;
|
|
228
|
-
plural_forms: (string | undefined)[];
|
|
229
|
-
project_language_id?: string | undefined;
|
|
230
|
-
project_language_uuid?: string | undefined;
|
|
231
|
-
}[];
|
|
232
|
-
project_id: string;
|
|
233
|
-
project_uuid: string;
|
|
234
|
-
errors?: {
|
|
235
|
-
message: string;
|
|
236
|
-
code: number;
|
|
237
|
-
lang_iso: string;
|
|
238
|
-
}[] | undefined;
|
|
239
|
-
}>;
|
|
72
|
+
}, z.core.$strip>>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
240
74
|
export type AddLanguagesToProjectResponse = z.infer<typeof ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA>;
|
|
241
75
|
export declare const BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
242
76
|
projectId: z.ZodString;
|
|
243
|
-
},
|
|
244
|
-
projectId: string;
|
|
245
|
-
}, {
|
|
246
|
-
projectId: string;
|
|
247
|
-
}>;
|
|
77
|
+
}, z.core.$strip>;
|
|
248
78
|
export type BulkUpdateProjectLanguagesPathParams = z.infer<typeof BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA>;
|
|
249
79
|
export declare const BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
|
250
80
|
langs: z.ZodArray<z.ZodObject<{
|
|
251
81
|
lang_iso: z.ZodString;
|
|
252
82
|
base_lang: z.ZodBoolean;
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
base_lang: boolean;
|
|
256
|
-
}, {
|
|
257
|
-
lang_iso: string;
|
|
258
|
-
base_lang: boolean;
|
|
259
|
-
}>, "many">;
|
|
260
|
-
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
langs: {
|
|
262
|
-
lang_iso: string;
|
|
263
|
-
base_lang: boolean;
|
|
264
|
-
}[];
|
|
265
|
-
}, {
|
|
266
|
-
langs: {
|
|
267
|
-
lang_iso: string;
|
|
268
|
-
base_lang: boolean;
|
|
269
|
-
}[];
|
|
270
|
-
}>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
271
85
|
export type BulkUpdateProjectLanguagesRequestBody = z.infer<typeof BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA>;
|
|
272
86
|
export declare const BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
273
87
|
result: z.ZodBoolean;
|
|
274
|
-
},
|
|
275
|
-
result: boolean;
|
|
276
|
-
}, {
|
|
277
|
-
result: boolean;
|
|
278
|
-
}>;
|
|
88
|
+
}, z.core.$strip>;
|
|
279
89
|
export type BulkUpdateProjectLanguagesResponse = z.infer<typeof BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA>;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
export declare const PAGINATION_QUERY_PARAMS_SCHEMA: z.ZodObject<{
|
|
3
3
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
4
4
|
page: z.ZodOptional<z.ZodNumber>;
|
|
5
|
-
},
|
|
6
|
-
page?: number | undefined;
|
|
7
|
-
limit?: number | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
page?: number | undefined;
|
|
10
|
-
limit?: number | undefined;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
export type PaginationQueryParams = z.infer<typeof PAGINATION_QUERY_PARAMS_SCHEMA>;
|
|
@@ -1,101 +1,96 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const PERMISSION_SCHEMA: z.ZodUnion<[z.ZodEnum<
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const PERMISSION_SCHEMA: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3
|
+
tasks: "tasks";
|
|
4
|
+
contributors: "contributors";
|
|
5
|
+
download: "download";
|
|
6
|
+
upload: "upload";
|
|
7
|
+
activity: "activity";
|
|
8
|
+
glossary_edit: "glossary_edit";
|
|
9
|
+
glossary_delete: "glossary_delete";
|
|
10
|
+
settings: "settings";
|
|
11
|
+
statistics: "statistics";
|
|
12
|
+
manage_keys: "manage_keys";
|
|
13
|
+
screenshots: "screenshots";
|
|
14
|
+
branches_create: "branches_create";
|
|
15
|
+
branches_merge: "branches_merge";
|
|
16
|
+
manage_languages: "manage_languages";
|
|
17
|
+
review: "review";
|
|
18
|
+
branches_main_modify: "branches_main_modify";
|
|
19
|
+
custom_status_modify: "custom_status_modify";
|
|
20
|
+
}>, z.ZodEnum<{
|
|
21
|
+
glossary: "glossary";
|
|
22
|
+
create_branches: "create_branches";
|
|
23
|
+
}>]>;
|
|
3
24
|
export type Permission = z.infer<typeof PERMISSION_SCHEMA>;
|
|
4
25
|
export declare const PERMISSION_TEMPLATE_SCHEMA: z.ZodObject<{
|
|
5
26
|
id: z.ZodString;
|
|
6
27
|
role: z.ZodString;
|
|
7
|
-
permissions: z.ZodArray<z.ZodUnion<[z.ZodEnum<
|
|
28
|
+
permissions: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
29
|
+
tasks: "tasks";
|
|
30
|
+
contributors: "contributors";
|
|
31
|
+
download: "download";
|
|
32
|
+
upload: "upload";
|
|
33
|
+
activity: "activity";
|
|
34
|
+
glossary_edit: "glossary_edit";
|
|
35
|
+
glossary_delete: "glossary_delete";
|
|
36
|
+
settings: "settings";
|
|
37
|
+
statistics: "statistics";
|
|
38
|
+
manage_keys: "manage_keys";
|
|
39
|
+
screenshots: "screenshots";
|
|
40
|
+
branches_create: "branches_create";
|
|
41
|
+
branches_merge: "branches_merge";
|
|
42
|
+
manage_languages: "manage_languages";
|
|
43
|
+
review: "review";
|
|
44
|
+
branches_main_modify: "branches_main_modify";
|
|
45
|
+
custom_status_modify: "custom_status_modify";
|
|
46
|
+
}>, z.ZodEnum<{
|
|
47
|
+
glossary: "glossary";
|
|
48
|
+
create_branches: "create_branches";
|
|
49
|
+
}>]>>;
|
|
8
50
|
description: z.ZodNullable<z.ZodString>;
|
|
9
51
|
tag: z.ZodNullable<z.ZodString>;
|
|
10
52
|
tagColor: z.ZodNullable<z.ZodString>;
|
|
11
53
|
tagInfo: z.ZodNullable<z.ZodString>;
|
|
12
54
|
isForMarketingProjects: z.ZodBoolean;
|
|
13
55
|
doesEnableAllReadOnlyLanguages: z.ZodBoolean;
|
|
14
|
-
},
|
|
15
|
-
id: string;
|
|
16
|
-
role: string;
|
|
17
|
-
tag: string | null;
|
|
18
|
-
description: string | null;
|
|
19
|
-
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
20
|
-
tagColor: string | null;
|
|
21
|
-
tagInfo: string | null;
|
|
22
|
-
isForMarketingProjects: boolean;
|
|
23
|
-
doesEnableAllReadOnlyLanguages: boolean;
|
|
24
|
-
}, {
|
|
25
|
-
id: string;
|
|
26
|
-
role: string;
|
|
27
|
-
tag: string | null;
|
|
28
|
-
description: string | null;
|
|
29
|
-
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
30
|
-
tagColor: string | null;
|
|
31
|
-
tagInfo: string | null;
|
|
32
|
-
isForMarketingProjects: boolean;
|
|
33
|
-
doesEnableAllReadOnlyLanguages: boolean;
|
|
34
|
-
}>;
|
|
56
|
+
}, z.core.$strip>;
|
|
35
57
|
export type PermissionTemplate = z.infer<typeof PERMISSION_TEMPLATE_SCHEMA>;
|
|
36
58
|
export declare const LIST_PERMISSION_TEMPLATES_PATH_PARAMS: z.ZodObject<{
|
|
37
59
|
teamId: z.ZodNumber;
|
|
38
|
-
},
|
|
39
|
-
teamId: number;
|
|
40
|
-
}, {
|
|
41
|
-
teamId: number;
|
|
42
|
-
}>;
|
|
60
|
+
}, z.core.$strip>;
|
|
43
61
|
export type ListPermissionTemplatesPathParams = z.infer<typeof LIST_PERMISSION_TEMPLATES_PATH_PARAMS>;
|
|
44
62
|
export declare const LIST_PERMISSION_TEMPLATES_RESPONSE: z.ZodObject<{
|
|
45
63
|
roles: z.ZodArray<z.ZodObject<{
|
|
46
64
|
id: z.ZodString;
|
|
47
65
|
role: z.ZodString;
|
|
48
|
-
permissions: z.ZodArray<z.ZodUnion<[z.ZodEnum<
|
|
66
|
+
permissions: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
67
|
+
tasks: "tasks";
|
|
68
|
+
contributors: "contributors";
|
|
69
|
+
download: "download";
|
|
70
|
+
upload: "upload";
|
|
71
|
+
activity: "activity";
|
|
72
|
+
glossary_edit: "glossary_edit";
|
|
73
|
+
glossary_delete: "glossary_delete";
|
|
74
|
+
settings: "settings";
|
|
75
|
+
statistics: "statistics";
|
|
76
|
+
manage_keys: "manage_keys";
|
|
77
|
+
screenshots: "screenshots";
|
|
78
|
+
branches_create: "branches_create";
|
|
79
|
+
branches_merge: "branches_merge";
|
|
80
|
+
manage_languages: "manage_languages";
|
|
81
|
+
review: "review";
|
|
82
|
+
branches_main_modify: "branches_main_modify";
|
|
83
|
+
custom_status_modify: "custom_status_modify";
|
|
84
|
+
}>, z.ZodEnum<{
|
|
85
|
+
glossary: "glossary";
|
|
86
|
+
create_branches: "create_branches";
|
|
87
|
+
}>]>>;
|
|
49
88
|
description: z.ZodNullable<z.ZodString>;
|
|
50
89
|
tag: z.ZodNullable<z.ZodString>;
|
|
51
90
|
tagColor: z.ZodNullable<z.ZodString>;
|
|
52
91
|
tagInfo: z.ZodNullable<z.ZodString>;
|
|
53
92
|
isForMarketingProjects: z.ZodBoolean;
|
|
54
93
|
doesEnableAllReadOnlyLanguages: z.ZodBoolean;
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
role: string;
|
|
58
|
-
tag: string | null;
|
|
59
|
-
description: string | null;
|
|
60
|
-
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
61
|
-
tagColor: string | null;
|
|
62
|
-
tagInfo: string | null;
|
|
63
|
-
isForMarketingProjects: boolean;
|
|
64
|
-
doesEnableAllReadOnlyLanguages: boolean;
|
|
65
|
-
}, {
|
|
66
|
-
id: string;
|
|
67
|
-
role: string;
|
|
68
|
-
tag: string | null;
|
|
69
|
-
description: string | null;
|
|
70
|
-
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
71
|
-
tagColor: string | null;
|
|
72
|
-
tagInfo: string | null;
|
|
73
|
-
isForMarketingProjects: boolean;
|
|
74
|
-
doesEnableAllReadOnlyLanguages: boolean;
|
|
75
|
-
}>, "many">;
|
|
76
|
-
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
roles: {
|
|
78
|
-
id: string;
|
|
79
|
-
role: string;
|
|
80
|
-
tag: string | null;
|
|
81
|
-
description: string | null;
|
|
82
|
-
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
83
|
-
tagColor: string | null;
|
|
84
|
-
tagInfo: string | null;
|
|
85
|
-
isForMarketingProjects: boolean;
|
|
86
|
-
doesEnableAllReadOnlyLanguages: boolean;
|
|
87
|
-
}[];
|
|
88
|
-
}, {
|
|
89
|
-
roles: {
|
|
90
|
-
id: string;
|
|
91
|
-
role: string;
|
|
92
|
-
tag: string | null;
|
|
93
|
-
description: string | null;
|
|
94
|
-
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
95
|
-
tagColor: string | null;
|
|
96
|
-
tagInfo: string | null;
|
|
97
|
-
isForMarketingProjects: boolean;
|
|
98
|
-
doesEnableAllReadOnlyLanguages: boolean;
|
|
99
|
-
}[];
|
|
100
|
-
}>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
101
96
|
export type ListPermissionTemplatesResponse = z.infer<typeof LIST_PERMISSION_TEMPLATES_RESPONSE>;
|
|
@@ -1,34 +1,58 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const PERMISSION_ID_SCHEMA: z.ZodUnion<[z.ZodEnum<
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const PERMISSION_ID_SCHEMA: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3
|
+
tasks: "tasks";
|
|
4
|
+
contributors: "contributors";
|
|
5
|
+
download: "download";
|
|
6
|
+
upload: "upload";
|
|
7
|
+
activity: "activity";
|
|
8
|
+
glossary_edit: "glossary_edit";
|
|
9
|
+
glossary_delete: "glossary_delete";
|
|
10
|
+
settings: "settings";
|
|
11
|
+
statistics: "statistics";
|
|
12
|
+
manage_keys: "manage_keys";
|
|
13
|
+
screenshots: "screenshots";
|
|
14
|
+
branches_create: "branches_create";
|
|
15
|
+
branches_merge: "branches_merge";
|
|
16
|
+
manage_languages: "manage_languages";
|
|
17
|
+
review: "review";
|
|
18
|
+
branches_main_modify: "branches_main_modify";
|
|
19
|
+
custom_status_modify: "custom_status_modify";
|
|
20
|
+
}>, z.ZodEnum<{
|
|
21
|
+
glossary: "glossary";
|
|
22
|
+
create_branches: "create_branches";
|
|
23
|
+
}>]>;
|
|
3
24
|
export type PermissionId = z.infer<typeof PERMISSION_ID_SCHEMA>;
|
|
4
|
-
export declare const PERMISSION_SCOPE_SCHEMA: z.ZodUnion<[z.ZodLiteral<"project">, z.ZodLiteral<"team">, z.ZodLiteral<"user">]>;
|
|
25
|
+
export declare const PERMISSION_SCOPE_SCHEMA: z.ZodUnion<readonly [z.ZodLiteral<"project">, z.ZodLiteral<"team">, z.ZodLiteral<"user">]>;
|
|
5
26
|
export type PermissionScope = z.infer<typeof PERMISSION_SCOPE_SCHEMA>;
|
|
6
27
|
export declare const PERMISSION_DETAILS_SCHEMA: z.ZodObject<{
|
|
7
|
-
id: z.ZodUnion<[z.ZodEnum<
|
|
8
|
-
|
|
28
|
+
id: z.ZodUnion<readonly [z.ZodEnum<{
|
|
29
|
+
tasks: "tasks";
|
|
30
|
+
contributors: "contributors";
|
|
31
|
+
download: "download";
|
|
32
|
+
upload: "upload";
|
|
33
|
+
activity: "activity";
|
|
34
|
+
glossary_edit: "glossary_edit";
|
|
35
|
+
glossary_delete: "glossary_delete";
|
|
36
|
+
settings: "settings";
|
|
37
|
+
statistics: "statistics";
|
|
38
|
+
manage_keys: "manage_keys";
|
|
39
|
+
screenshots: "screenshots";
|
|
40
|
+
branches_create: "branches_create";
|
|
41
|
+
branches_merge: "branches_merge";
|
|
42
|
+
manage_languages: "manage_languages";
|
|
43
|
+
review: "review";
|
|
44
|
+
branches_main_modify: "branches_main_modify";
|
|
45
|
+
custom_status_modify: "custom_status_modify";
|
|
46
|
+
}>, z.ZodEnum<{
|
|
47
|
+
glossary: "glossary";
|
|
48
|
+
create_branches: "create_branches";
|
|
49
|
+
}>]>;
|
|
50
|
+
scope: z.ZodUnion<readonly [z.ZodLiteral<"project">, z.ZodLiteral<"team">, z.ZodLiteral<"user">]>;
|
|
9
51
|
title: z.ZodString;
|
|
10
52
|
group: z.ZodString;
|
|
11
53
|
description: z.ZodNullable<z.ZodString>;
|
|
12
54
|
new_permission: z.ZodBoolean;
|
|
13
55
|
does_set_all_read_only_languages: z.ZodBoolean;
|
|
14
56
|
is_hidden: z.ZodBoolean;
|
|
15
|
-
},
|
|
16
|
-
id: "tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify";
|
|
17
|
-
title: string;
|
|
18
|
-
group: string;
|
|
19
|
-
description: string | null;
|
|
20
|
-
scope: "project" | "team" | "user";
|
|
21
|
-
new_permission: boolean;
|
|
22
|
-
does_set_all_read_only_languages: boolean;
|
|
23
|
-
is_hidden: boolean;
|
|
24
|
-
}, {
|
|
25
|
-
id: "tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify";
|
|
26
|
-
title: string;
|
|
27
|
-
group: string;
|
|
28
|
-
description: string | null;
|
|
29
|
-
scope: "project" | "team" | "user";
|
|
30
|
-
new_permission: boolean;
|
|
31
|
-
does_set_all_read_only_languages: boolean;
|
|
32
|
-
is_hidden: boolean;
|
|
33
|
-
}>;
|
|
57
|
+
}, z.core.$strip>;
|
|
34
58
|
export type PermissionDetails = z.infer<typeof PERMISSION_DETAILS_SCHEMA>;
|