@lokalise/harmony 1.17.0 → 1.17.2
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 +1 -1
- package/dist/harmony.mjs +476 -463
- package/dist/types/src/features/auth/node.d.ts +2 -1
- package/dist/types/src/features/publicApi/contributors.d.ts +45 -3
- package/dist/types/src/features/publicApi/languages.d.ts +45 -3
- package/dist/types/src/features/publicApi/projects.d.ts +180 -12
- package/dist/types/src/features/publicApi/teamUsers.d.ts +45 -3
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +45 -3
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +45 -3
- package/dist/types/src/features/publicApi/types/sharedTypes.d.ts +125 -11
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +45 -3
- package/dist/types/src/features/publicApi/types/userTokenTypes.d.ts +32 -2
- package/dist/types/src/features/publicApi/userToken.d.ts +32 -2
- package/package.json +1 -1
@@ -1,8 +1,10 @@
|
|
1
1
|
export { JwtAuthHeaderBuilderMiddleware, type JwtAuthHeaderBuilderMiddlewareProps, } from './core/middleware/jwtAuthHeaderBuilderMiddleware';
|
2
2
|
export { PublicApiHeaderBuilderMiddleware } from './core/middleware/publicApiHeaderBuilderMiddleware';
|
3
3
|
export type { JwtTokenPayload } from './core/types/jwtTokenPayload';
|
4
|
+
export { UnauthorizedError } from './errors/UnauthorizedError';
|
4
5
|
export { parseJwtTokenPayload } from './core/utils/jwtTokenPayload';
|
5
6
|
export { getJwtTokenFromCookie, getCsrfTokenFromCookie } from './frontend/utils/cookieTokenUtils';
|
7
|
+
export { createHeaderBuilderMiddleware, type HeaderBuilderMiddleware, } from './core/headers/createHeaderBuilderMiddleware';
|
6
8
|
export { HeaderBuilder, type Headers, } from './core/headers/headerBuilder';
|
7
9
|
export * from './backend/services/getAuthenticatedSessionDetailFromRequest';
|
8
10
|
export * from './frontend/services/generateTokenFromClassicSession';
|
@@ -11,4 +13,3 @@ export * from './frontend/hooks/useGetPromotedClassicSessionJwtQuery';
|
|
11
13
|
export * from './frontend/hooks/useAuthenticatedSessionPayload';
|
12
14
|
export * from './frontend/hooks/useAuthenticatedUser';
|
13
15
|
export * from './frontend/hooks/useAuthenticatedProjectContributor';
|
14
|
-
export { createHeaderBuilderMiddleware, type HeaderBuilderMiddleware, } from './core/headers/createHeaderBuilderMiddleware';
|
@@ -108,22 +108,64 @@ export declare const retrieveContributor: import('@lokalise/universal-ts-utils/n
|
|
108
108
|
}, {
|
109
109
|
projectId: string;
|
110
110
|
contributorId: number;
|
111
|
-
}>, undefined, z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
111
|
+
}>, undefined, z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
112
112
|
Authorization: z.ZodString;
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
114
114
|
Authorization: string;
|
115
115
|
}, {
|
116
116
|
Authorization: string;
|
117
117
|
}>, z.ZodObject<{
|
118
|
+
authorization: z.ZodString;
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
120
|
+
authorization: string;
|
121
|
+
}, {
|
122
|
+
authorization: string;
|
123
|
+
}>, z.ZodObject<{
|
124
|
+
AUTHORIZATION: z.ZodString;
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
126
|
+
AUTHORIZATION: string;
|
127
|
+
}, {
|
128
|
+
AUTHORIZATION: string;
|
129
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
118
130
|
'X-API-Token': z.ZodString;
|
119
131
|
}, "strip", z.ZodTypeAny, {
|
120
132
|
'X-API-Token': string;
|
121
133
|
}, {
|
122
134
|
'X-API-Token': string;
|
123
|
-
}
|
135
|
+
}>, z.ZodObject<{
|
136
|
+
'X-Api-Token': z.ZodString;
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
138
|
+
'X-Api-Token': string;
|
139
|
+
}, {
|
140
|
+
'X-Api-Token': string;
|
141
|
+
}>, z.ZodObject<{
|
142
|
+
'x-api-token': z.ZodString;
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
144
|
+
'x-api-token': string;
|
145
|
+
}, {
|
146
|
+
'x-api-token': string;
|
147
|
+
}>, z.ZodObject<{
|
148
|
+
'X-API-TOKEN': z.ZodString;
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
150
|
+
'X-API-TOKEN': string;
|
151
|
+
}, {
|
152
|
+
'X-API-TOKEN': string;
|
153
|
+
}>]>]>, z.ZodUnion<[z.ZodObject<{
|
124
154
|
'X-Lokalise-Plugin': z.ZodString;
|
125
155
|
}, "strip", z.ZodTypeAny, {
|
126
156
|
'X-Lokalise-Plugin': string;
|
127
157
|
}, {
|
128
158
|
'X-Lokalise-Plugin': string;
|
129
|
-
}
|
159
|
+
}>, z.ZodObject<{
|
160
|
+
'x-lokalise-plugin': z.ZodString;
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
162
|
+
'x-lokalise-plugin': string;
|
163
|
+
}, {
|
164
|
+
'x-lokalise-plugin': string;
|
165
|
+
}>, z.ZodObject<{
|
166
|
+
'X-LOKALISE-PLUGIN': z.ZodString;
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
168
|
+
'X-LOKALISE-PLUGIN': string;
|
169
|
+
}, {
|
170
|
+
'X-LOKALISE-PLUGIN': string;
|
171
|
+
}>]>>, false, false>;
|
@@ -48,22 +48,64 @@ export declare const listProjectLanguages: import('@lokalise/universal-ts-utils/
|
|
48
48
|
projectId: string;
|
49
49
|
}, {
|
50
50
|
projectId: string;
|
51
|
-
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodObject<{
|
51
|
+
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
52
52
|
Authorization: import('zod').ZodString;
|
53
53
|
}, "strip", import('zod').ZodTypeAny, {
|
54
54
|
Authorization: string;
|
55
55
|
}, {
|
56
56
|
Authorization: string;
|
57
57
|
}>, import('zod').ZodObject<{
|
58
|
+
authorization: import('zod').ZodString;
|
59
|
+
}, "strip", import('zod').ZodTypeAny, {
|
60
|
+
authorization: string;
|
61
|
+
}, {
|
62
|
+
authorization: string;
|
63
|
+
}>, import('zod').ZodObject<{
|
64
|
+
AUTHORIZATION: import('zod').ZodString;
|
65
|
+
}, "strip", import('zod').ZodTypeAny, {
|
66
|
+
AUTHORIZATION: string;
|
67
|
+
}, {
|
68
|
+
AUTHORIZATION: string;
|
69
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
58
70
|
'X-API-Token': import('zod').ZodString;
|
59
71
|
}, "strip", import('zod').ZodTypeAny, {
|
60
72
|
'X-API-Token': string;
|
61
73
|
}, {
|
62
74
|
'X-API-Token': string;
|
63
|
-
}
|
75
|
+
}>, import('zod').ZodObject<{
|
76
|
+
'X-Api-Token': import('zod').ZodString;
|
77
|
+
}, "strip", import('zod').ZodTypeAny, {
|
78
|
+
'X-Api-Token': string;
|
79
|
+
}, {
|
80
|
+
'X-Api-Token': string;
|
81
|
+
}>, import('zod').ZodObject<{
|
82
|
+
'x-api-token': import('zod').ZodString;
|
83
|
+
}, "strip", import('zod').ZodTypeAny, {
|
84
|
+
'x-api-token': string;
|
85
|
+
}, {
|
86
|
+
'x-api-token': string;
|
87
|
+
}>, import('zod').ZodObject<{
|
88
|
+
'X-API-TOKEN': import('zod').ZodString;
|
89
|
+
}, "strip", import('zod').ZodTypeAny, {
|
90
|
+
'X-API-TOKEN': string;
|
91
|
+
}, {
|
92
|
+
'X-API-TOKEN': string;
|
93
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
64
94
|
'X-Lokalise-Plugin': import('zod').ZodString;
|
65
95
|
}, "strip", import('zod').ZodTypeAny, {
|
66
96
|
'X-Lokalise-Plugin': string;
|
67
97
|
}, {
|
68
98
|
'X-Lokalise-Plugin': string;
|
69
|
-
}
|
99
|
+
}>, import('zod').ZodObject<{
|
100
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
101
|
+
}, "strip", import('zod').ZodTypeAny, {
|
102
|
+
'x-lokalise-plugin': string;
|
103
|
+
}, {
|
104
|
+
'x-lokalise-plugin': string;
|
105
|
+
}>, import('zod').ZodObject<{
|
106
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
107
|
+
}, "strip", import('zod').ZodTypeAny, {
|
108
|
+
'X-LOKALISE-PLUGIN': string;
|
109
|
+
}, {
|
110
|
+
'X-LOKALISE-PLUGIN': string;
|
111
|
+
}>]>>, false, false>;
|
@@ -331,25 +331,67 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
331
331
|
unbalanced_brackets: number;
|
332
332
|
};
|
333
333
|
} | undefined;
|
334
|
-
}>, undefined, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodObject<{
|
334
|
+
}>, undefined, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
335
335
|
Authorization: import('zod').ZodString;
|
336
336
|
}, "strip", import('zod').ZodTypeAny, {
|
337
337
|
Authorization: string;
|
338
338
|
}, {
|
339
339
|
Authorization: string;
|
340
340
|
}>, import('zod').ZodObject<{
|
341
|
+
authorization: import('zod').ZodString;
|
342
|
+
}, "strip", import('zod').ZodTypeAny, {
|
343
|
+
authorization: string;
|
344
|
+
}, {
|
345
|
+
authorization: string;
|
346
|
+
}>, import('zod').ZodObject<{
|
347
|
+
AUTHORIZATION: import('zod').ZodString;
|
348
|
+
}, "strip", import('zod').ZodTypeAny, {
|
349
|
+
AUTHORIZATION: string;
|
350
|
+
}, {
|
351
|
+
AUTHORIZATION: string;
|
352
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
341
353
|
'X-API-Token': import('zod').ZodString;
|
342
354
|
}, "strip", import('zod').ZodTypeAny, {
|
343
355
|
'X-API-Token': string;
|
344
356
|
}, {
|
345
357
|
'X-API-Token': string;
|
346
|
-
}
|
358
|
+
}>, import('zod').ZodObject<{
|
359
|
+
'X-Api-Token': import('zod').ZodString;
|
360
|
+
}, "strip", import('zod').ZodTypeAny, {
|
361
|
+
'X-Api-Token': string;
|
362
|
+
}, {
|
363
|
+
'X-Api-Token': string;
|
364
|
+
}>, import('zod').ZodObject<{
|
365
|
+
'x-api-token': import('zod').ZodString;
|
366
|
+
}, "strip", import('zod').ZodTypeAny, {
|
367
|
+
'x-api-token': string;
|
368
|
+
}, {
|
369
|
+
'x-api-token': string;
|
370
|
+
}>, import('zod').ZodObject<{
|
371
|
+
'X-API-TOKEN': import('zod').ZodString;
|
372
|
+
}, "strip", import('zod').ZodTypeAny, {
|
373
|
+
'X-API-TOKEN': string;
|
374
|
+
}, {
|
375
|
+
'X-API-TOKEN': string;
|
376
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
347
377
|
'X-Lokalise-Plugin': import('zod').ZodString;
|
348
378
|
}, "strip", import('zod').ZodTypeAny, {
|
349
379
|
'X-Lokalise-Plugin': string;
|
350
380
|
}, {
|
351
381
|
'X-Lokalise-Plugin': string;
|
352
|
-
}
|
382
|
+
}>, import('zod').ZodObject<{
|
383
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
384
|
+
}, "strip", import('zod').ZodTypeAny, {
|
385
|
+
'x-lokalise-plugin': string;
|
386
|
+
}, {
|
387
|
+
'x-lokalise-plugin': string;
|
388
|
+
}>, import('zod').ZodObject<{
|
389
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
390
|
+
}, "strip", import('zod').ZodTypeAny, {
|
391
|
+
'X-LOKALISE-PLUGIN': string;
|
392
|
+
}, {
|
393
|
+
'X-LOKALISE-PLUGIN': string;
|
394
|
+
}>]>>, false, false>;
|
353
395
|
/**
|
354
396
|
* Public API router definition for listing all projects
|
355
397
|
*/
|
@@ -789,25 +831,67 @@ export declare const listProjects: import('@lokalise/universal-ts-utils/node').G
|
|
789
831
|
include_statistics?: 0 | 1 | undefined;
|
790
832
|
include_settings?: 0 | 1 | undefined;
|
791
833
|
limit?: number | undefined;
|
792
|
-
}>, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodObject<{
|
834
|
+
}>, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
793
835
|
Authorization: import('zod').ZodString;
|
794
836
|
}, "strip", import('zod').ZodTypeAny, {
|
795
837
|
Authorization: string;
|
796
838
|
}, {
|
797
839
|
Authorization: string;
|
798
840
|
}>, import('zod').ZodObject<{
|
841
|
+
authorization: import('zod').ZodString;
|
842
|
+
}, "strip", import('zod').ZodTypeAny, {
|
843
|
+
authorization: string;
|
844
|
+
}, {
|
845
|
+
authorization: string;
|
846
|
+
}>, import('zod').ZodObject<{
|
847
|
+
AUTHORIZATION: import('zod').ZodString;
|
848
|
+
}, "strip", import('zod').ZodTypeAny, {
|
849
|
+
AUTHORIZATION: string;
|
850
|
+
}, {
|
851
|
+
AUTHORIZATION: string;
|
852
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
799
853
|
'X-API-Token': import('zod').ZodString;
|
800
854
|
}, "strip", import('zod').ZodTypeAny, {
|
801
855
|
'X-API-Token': string;
|
802
856
|
}, {
|
803
857
|
'X-API-Token': string;
|
804
|
-
}
|
858
|
+
}>, import('zod').ZodObject<{
|
859
|
+
'X-Api-Token': import('zod').ZodString;
|
860
|
+
}, "strip", import('zod').ZodTypeAny, {
|
861
|
+
'X-Api-Token': string;
|
862
|
+
}, {
|
863
|
+
'X-Api-Token': string;
|
864
|
+
}>, import('zod').ZodObject<{
|
865
|
+
'x-api-token': import('zod').ZodString;
|
866
|
+
}, "strip", import('zod').ZodTypeAny, {
|
867
|
+
'x-api-token': string;
|
868
|
+
}, {
|
869
|
+
'x-api-token': string;
|
870
|
+
}>, import('zod').ZodObject<{
|
871
|
+
'X-API-TOKEN': import('zod').ZodString;
|
872
|
+
}, "strip", import('zod').ZodTypeAny, {
|
873
|
+
'X-API-TOKEN': string;
|
874
|
+
}, {
|
875
|
+
'X-API-TOKEN': string;
|
876
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
805
877
|
'X-Lokalise-Plugin': import('zod').ZodString;
|
806
878
|
}, "strip", import('zod').ZodTypeAny, {
|
807
879
|
'X-Lokalise-Plugin': string;
|
808
880
|
}, {
|
809
881
|
'X-Lokalise-Plugin': string;
|
810
|
-
}
|
882
|
+
}>, import('zod').ZodObject<{
|
883
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
884
|
+
}, "strip", import('zod').ZodTypeAny, {
|
885
|
+
'x-lokalise-plugin': string;
|
886
|
+
}, {
|
887
|
+
'x-lokalise-plugin': string;
|
888
|
+
}>, import('zod').ZodObject<{
|
889
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
890
|
+
}, "strip", import('zod').ZodTypeAny, {
|
891
|
+
'X-LOKALISE-PLUGIN': string;
|
892
|
+
}, {
|
893
|
+
'X-LOKALISE-PLUGIN': string;
|
894
|
+
}>]>>, false, false>;
|
811
895
|
/**
|
812
896
|
* Public API router definition for retrieving a project
|
813
897
|
*/
|
@@ -1113,25 +1197,67 @@ export declare const retrieveProject: import('@lokalise/universal-ts-utils/node'
|
|
1113
1197
|
project_id: string;
|
1114
1198
|
}, {
|
1115
1199
|
project_id: string;
|
1116
|
-
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodObject<{
|
1200
|
+
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
1117
1201
|
Authorization: import('zod').ZodString;
|
1118
1202
|
}, "strip", import('zod').ZodTypeAny, {
|
1119
1203
|
Authorization: string;
|
1120
1204
|
}, {
|
1121
1205
|
Authorization: string;
|
1122
1206
|
}>, import('zod').ZodObject<{
|
1207
|
+
authorization: import('zod').ZodString;
|
1208
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1209
|
+
authorization: string;
|
1210
|
+
}, {
|
1211
|
+
authorization: string;
|
1212
|
+
}>, import('zod').ZodObject<{
|
1213
|
+
AUTHORIZATION: import('zod').ZodString;
|
1214
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1215
|
+
AUTHORIZATION: string;
|
1216
|
+
}, {
|
1217
|
+
AUTHORIZATION: string;
|
1218
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
1123
1219
|
'X-API-Token': import('zod').ZodString;
|
1124
1220
|
}, "strip", import('zod').ZodTypeAny, {
|
1125
1221
|
'X-API-Token': string;
|
1126
1222
|
}, {
|
1127
1223
|
'X-API-Token': string;
|
1128
|
-
}
|
1224
|
+
}>, import('zod').ZodObject<{
|
1225
|
+
'X-Api-Token': import('zod').ZodString;
|
1226
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1227
|
+
'X-Api-Token': string;
|
1228
|
+
}, {
|
1229
|
+
'X-Api-Token': string;
|
1230
|
+
}>, import('zod').ZodObject<{
|
1231
|
+
'x-api-token': import('zod').ZodString;
|
1232
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1233
|
+
'x-api-token': string;
|
1234
|
+
}, {
|
1235
|
+
'x-api-token': string;
|
1236
|
+
}>, import('zod').ZodObject<{
|
1237
|
+
'X-API-TOKEN': import('zod').ZodString;
|
1238
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1239
|
+
'X-API-TOKEN': string;
|
1240
|
+
}, {
|
1241
|
+
'X-API-TOKEN': string;
|
1242
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
1129
1243
|
'X-Lokalise-Plugin': import('zod').ZodString;
|
1130
1244
|
}, "strip", import('zod').ZodTypeAny, {
|
1131
1245
|
'X-Lokalise-Plugin': string;
|
1132
1246
|
}, {
|
1133
1247
|
'X-Lokalise-Plugin': string;
|
1134
|
-
}
|
1248
|
+
}>, import('zod').ZodObject<{
|
1249
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
1250
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1251
|
+
'x-lokalise-plugin': string;
|
1252
|
+
}, {
|
1253
|
+
'x-lokalise-plugin': string;
|
1254
|
+
}>, import('zod').ZodObject<{
|
1255
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
1256
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1257
|
+
'X-LOKALISE-PLUGIN': string;
|
1258
|
+
}, {
|
1259
|
+
'X-LOKALISE-PLUGIN': string;
|
1260
|
+
}>]>>, false, false>;
|
1135
1261
|
/**
|
1136
1262
|
* Public API router definition for updating a project
|
1137
1263
|
*/
|
@@ -1446,22 +1572,64 @@ export declare const updateProject: import('@lokalise/universal-ts-utils/node').
|
|
1446
1572
|
project_id: string;
|
1447
1573
|
}, {
|
1448
1574
|
project_id: string;
|
1449
|
-
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodObject<{
|
1575
|
+
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
1450
1576
|
Authorization: import('zod').ZodString;
|
1451
1577
|
}, "strip", import('zod').ZodTypeAny, {
|
1452
1578
|
Authorization: string;
|
1453
1579
|
}, {
|
1454
1580
|
Authorization: string;
|
1455
1581
|
}>, import('zod').ZodObject<{
|
1582
|
+
authorization: import('zod').ZodString;
|
1583
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1584
|
+
authorization: string;
|
1585
|
+
}, {
|
1586
|
+
authorization: string;
|
1587
|
+
}>, import('zod').ZodObject<{
|
1588
|
+
AUTHORIZATION: import('zod').ZodString;
|
1589
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1590
|
+
AUTHORIZATION: string;
|
1591
|
+
}, {
|
1592
|
+
AUTHORIZATION: string;
|
1593
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
1456
1594
|
'X-API-Token': import('zod').ZodString;
|
1457
1595
|
}, "strip", import('zod').ZodTypeAny, {
|
1458
1596
|
'X-API-Token': string;
|
1459
1597
|
}, {
|
1460
1598
|
'X-API-Token': string;
|
1461
|
-
}
|
1599
|
+
}>, import('zod').ZodObject<{
|
1600
|
+
'X-Api-Token': import('zod').ZodString;
|
1601
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1602
|
+
'X-Api-Token': string;
|
1603
|
+
}, {
|
1604
|
+
'X-Api-Token': string;
|
1605
|
+
}>, import('zod').ZodObject<{
|
1606
|
+
'x-api-token': import('zod').ZodString;
|
1607
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1608
|
+
'x-api-token': string;
|
1609
|
+
}, {
|
1610
|
+
'x-api-token': string;
|
1611
|
+
}>, import('zod').ZodObject<{
|
1612
|
+
'X-API-TOKEN': import('zod').ZodString;
|
1613
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1614
|
+
'X-API-TOKEN': string;
|
1615
|
+
}, {
|
1616
|
+
'X-API-TOKEN': string;
|
1617
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
1462
1618
|
'X-Lokalise-Plugin': import('zod').ZodString;
|
1463
1619
|
}, "strip", import('zod').ZodTypeAny, {
|
1464
1620
|
'X-Lokalise-Plugin': string;
|
1465
1621
|
}, {
|
1466
1622
|
'X-Lokalise-Plugin': string;
|
1467
|
-
}
|
1623
|
+
}>, import('zod').ZodObject<{
|
1624
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
1625
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1626
|
+
'x-lokalise-plugin': string;
|
1627
|
+
}, {
|
1628
|
+
'x-lokalise-plugin': string;
|
1629
|
+
}>, import('zod').ZodObject<{
|
1630
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
1631
|
+
}, "strip", import('zod').ZodTypeAny, {
|
1632
|
+
'X-LOKALISE-PLUGIN': string;
|
1633
|
+
}, {
|
1634
|
+
'X-LOKALISE-PLUGIN': string;
|
1635
|
+
}>]>>, false, false>;
|
@@ -58,22 +58,64 @@ export declare const getTeamUser: import('@lokalise/universal-ts-utils/node').Ge
|
|
58
58
|
}, {
|
59
59
|
userId: number;
|
60
60
|
teamId: number;
|
61
|
-
}>, undefined, z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
61
|
+
}>, undefined, z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
62
62
|
Authorization: z.ZodString;
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
64
64
|
Authorization: string;
|
65
65
|
}, {
|
66
66
|
Authorization: string;
|
67
67
|
}>, z.ZodObject<{
|
68
|
+
authorization: z.ZodString;
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
70
|
+
authorization: string;
|
71
|
+
}, {
|
72
|
+
authorization: string;
|
73
|
+
}>, z.ZodObject<{
|
74
|
+
AUTHORIZATION: z.ZodString;
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
76
|
+
AUTHORIZATION: string;
|
77
|
+
}, {
|
78
|
+
AUTHORIZATION: string;
|
79
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
68
80
|
'X-API-Token': z.ZodString;
|
69
81
|
}, "strip", z.ZodTypeAny, {
|
70
82
|
'X-API-Token': string;
|
71
83
|
}, {
|
72
84
|
'X-API-Token': string;
|
73
|
-
}
|
85
|
+
}>, z.ZodObject<{
|
86
|
+
'X-Api-Token': z.ZodString;
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
88
|
+
'X-Api-Token': string;
|
89
|
+
}, {
|
90
|
+
'X-Api-Token': string;
|
91
|
+
}>, z.ZodObject<{
|
92
|
+
'x-api-token': z.ZodString;
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
94
|
+
'x-api-token': string;
|
95
|
+
}, {
|
96
|
+
'x-api-token': string;
|
97
|
+
}>, z.ZodObject<{
|
98
|
+
'X-API-TOKEN': z.ZodString;
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
100
|
+
'X-API-TOKEN': string;
|
101
|
+
}, {
|
102
|
+
'X-API-TOKEN': string;
|
103
|
+
}>]>]>, z.ZodUnion<[z.ZodObject<{
|
74
104
|
'X-Lokalise-Plugin': z.ZodString;
|
75
105
|
}, "strip", z.ZodTypeAny, {
|
76
106
|
'X-Lokalise-Plugin': string;
|
77
107
|
}, {
|
78
108
|
'X-Lokalise-Plugin': string;
|
79
|
-
}
|
109
|
+
}>, z.ZodObject<{
|
110
|
+
'x-lokalise-plugin': z.ZodString;
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
112
|
+
'x-lokalise-plugin': string;
|
113
|
+
}, {
|
114
|
+
'x-lokalise-plugin': string;
|
115
|
+
}>, z.ZodObject<{
|
116
|
+
'X-LOKALISE-PLUGIN': z.ZodString;
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
118
|
+
'X-LOKALISE-PLUGIN': string;
|
119
|
+
}, {
|
120
|
+
'X-LOKALISE-PLUGIN': string;
|
121
|
+
}>]>>, false, false>;
|
@@ -1,23 +1,65 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const CONTRIBUTOR_API_BASE_HEADER_SCHEMA: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
2
|
+
export declare const CONTRIBUTOR_API_BASE_HEADER_SCHEMA: z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
3
3
|
Authorization: z.ZodString;
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
5
5
|
Authorization: string;
|
6
6
|
}, {
|
7
7
|
Authorization: string;
|
8
8
|
}>, z.ZodObject<{
|
9
|
+
authorization: z.ZodString;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
authorization: string;
|
12
|
+
}, {
|
13
|
+
authorization: string;
|
14
|
+
}>, z.ZodObject<{
|
15
|
+
AUTHORIZATION: z.ZodString;
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
17
|
+
AUTHORIZATION: string;
|
18
|
+
}, {
|
19
|
+
AUTHORIZATION: string;
|
20
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
9
21
|
'X-API-Token': z.ZodString;
|
10
22
|
}, "strip", z.ZodTypeAny, {
|
11
23
|
'X-API-Token': string;
|
12
24
|
}, {
|
13
25
|
'X-API-Token': string;
|
14
|
-
}
|
26
|
+
}>, z.ZodObject<{
|
27
|
+
'X-Api-Token': z.ZodString;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
'X-Api-Token': string;
|
30
|
+
}, {
|
31
|
+
'X-Api-Token': string;
|
32
|
+
}>, z.ZodObject<{
|
33
|
+
'x-api-token': z.ZodString;
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
35
|
+
'x-api-token': string;
|
36
|
+
}, {
|
37
|
+
'x-api-token': string;
|
38
|
+
}>, z.ZodObject<{
|
39
|
+
'X-API-TOKEN': z.ZodString;
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
|
+
'X-API-TOKEN': string;
|
42
|
+
}, {
|
43
|
+
'X-API-TOKEN': string;
|
44
|
+
}>]>]>, z.ZodUnion<[z.ZodObject<{
|
15
45
|
'X-Lokalise-Plugin': z.ZodString;
|
16
46
|
}, "strip", z.ZodTypeAny, {
|
17
47
|
'X-Lokalise-Plugin': string;
|
18
48
|
}, {
|
19
49
|
'X-Lokalise-Plugin': string;
|
20
|
-
}
|
50
|
+
}>, z.ZodObject<{
|
51
|
+
'x-lokalise-plugin': z.ZodString;
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
53
|
+
'x-lokalise-plugin': string;
|
54
|
+
}, {
|
55
|
+
'x-lokalise-plugin': string;
|
56
|
+
}>, z.ZodObject<{
|
57
|
+
'X-LOKALISE-PLUGIN': z.ZodString;
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
59
|
+
'X-LOKALISE-PLUGIN': string;
|
60
|
+
}, {
|
61
|
+
'X-LOKALISE-PLUGIN': string;
|
62
|
+
}>]>>;
|
21
63
|
export type ContributorApiBaseHeader = z.infer<typeof CONTRIBUTOR_API_BASE_HEADER_SCHEMA>;
|
22
64
|
export declare const CONTRIBUTOR_LANGUAGE_SCHEMA: z.ZodObject<{
|
23
65
|
lang_id: z.ZodNumber;
|
@@ -1,23 +1,65 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const PROJECT_API_BASE_HEADERS_SCHEMA: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
2
|
+
export declare const PROJECT_API_BASE_HEADERS_SCHEMA: z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
3
3
|
Authorization: z.ZodString;
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
5
5
|
Authorization: string;
|
6
6
|
}, {
|
7
7
|
Authorization: string;
|
8
8
|
}>, z.ZodObject<{
|
9
|
+
authorization: z.ZodString;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
authorization: string;
|
12
|
+
}, {
|
13
|
+
authorization: string;
|
14
|
+
}>, z.ZodObject<{
|
15
|
+
AUTHORIZATION: z.ZodString;
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
17
|
+
AUTHORIZATION: string;
|
18
|
+
}, {
|
19
|
+
AUTHORIZATION: string;
|
20
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
9
21
|
'X-API-Token': z.ZodString;
|
10
22
|
}, "strip", z.ZodTypeAny, {
|
11
23
|
'X-API-Token': string;
|
12
24
|
}, {
|
13
25
|
'X-API-Token': string;
|
14
|
-
}
|
26
|
+
}>, z.ZodObject<{
|
27
|
+
'X-Api-Token': z.ZodString;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
'X-Api-Token': string;
|
30
|
+
}, {
|
31
|
+
'X-Api-Token': string;
|
32
|
+
}>, z.ZodObject<{
|
33
|
+
'x-api-token': z.ZodString;
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
35
|
+
'x-api-token': string;
|
36
|
+
}, {
|
37
|
+
'x-api-token': string;
|
38
|
+
}>, z.ZodObject<{
|
39
|
+
'X-API-TOKEN': z.ZodString;
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
|
+
'X-API-TOKEN': string;
|
42
|
+
}, {
|
43
|
+
'X-API-TOKEN': string;
|
44
|
+
}>]>]>, z.ZodUnion<[z.ZodObject<{
|
15
45
|
'X-Lokalise-Plugin': z.ZodString;
|
16
46
|
}, "strip", z.ZodTypeAny, {
|
17
47
|
'X-Lokalise-Plugin': string;
|
18
48
|
}, {
|
19
49
|
'X-Lokalise-Plugin': string;
|
20
|
-
}
|
50
|
+
}>, z.ZodObject<{
|
51
|
+
'x-lokalise-plugin': z.ZodString;
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
53
|
+
'x-lokalise-plugin': string;
|
54
|
+
}, {
|
55
|
+
'x-lokalise-plugin': string;
|
56
|
+
}>, z.ZodObject<{
|
57
|
+
'X-LOKALISE-PLUGIN': z.ZodString;
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
59
|
+
'X-LOKALISE-PLUGIN': string;
|
60
|
+
}, {
|
61
|
+
'X-LOKALISE-PLUGIN': string;
|
62
|
+
}>]>>;
|
21
63
|
export type ProjectApiBaseHeaders = z.infer<typeof PROJECT_API_BASE_HEADERS_SCHEMA>;
|
22
64
|
export declare const PROJECT_TYPE_SCHEMA: z.ZodUnion<[z.ZodLiteral<"localization_files">, z.ZodLiteral<"paged_documents">, z.ZodLiteral<"marketing">]>;
|
23
65
|
export type ProjectType = z.infer<typeof PROJECT_TYPE_SCHEMA>;
|