@lokalise/harmony 1.17.0-exp-jwtheaderfactorysharedauth.1 → 1.17.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.
@@ -0,0 +1,32 @@
1
+ import { HeaderBuilder, Headers } from './headerBuilder';
2
+ /**
3
+ * A helper function that creates a HeaderBuilderMiddleware, it removed the
4
+ * complexity of creating a new instance of the middleware class and tracking the input types.
5
+ *
6
+ * @param middleware - A function that modifies a HeaderBuilder
7
+ * @returns - A new instance of HeaderBuilderMiddleware to be used with a HeaderBuilder
8
+ */
9
+ export declare function createHeaderBuilderMiddleware<const H extends Headers>(middleware: (builder: HeaderBuilder) => HeaderBuilder<H> | Promise<HeaderBuilder<H>>): HeaderBuilderMiddleware<H>;
10
+ export type { HeaderBuilderMiddleware };
11
+ /**
12
+ * A middleware class that allows you to modify a HeaderBuilder in a type-safe way.
13
+ * It receives a builder and returns a new builder with the modifications applied.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * const authMiddleware = createHeaderBuilderMiddleware(async (builder) => {
18
+ * const token = await fetchToken()
19
+ * return builder.add('Authorization', `Bearer ${token}`)
20
+ * })
21
+ *
22
+ * const builder = HeaderBuilder.create()
23
+ * .with(authMiddleware)
24
+ *
25
+ * const headers = await builder.resolve() // Type of headers is { 'Authorization': string }
26
+ * console.log(headers) // { 'Authorization': 'Bearer <token>' }
27
+ */
28
+ declare class HeaderBuilderMiddleware<const H extends Headers> {
29
+ private readonly middleware;
30
+ constructor(middleware: (builder: HeaderBuilder<Headers>) => HeaderBuilder<H> | Promise<HeaderBuilder<H>>);
31
+ apply<const BH extends Headers>(base: HeaderBuilder<BH>): HeaderBuilder<BH & H>;
32
+ }
@@ -1,4 +1,6 @@
1
- export type Headers<K extends string = string, V = any> = Record<K, V>;
1
+ import { HeaderBuilderMiddleware } from './createHeaderBuilderMiddleware';
2
+ export type Headers<K extends string = string, V extends string = string> = Record<K, V>;
3
+ type NoHeaders = {};
2
4
  /**
3
5
  * A builder class that helps to build up a set of headers in a type-safe way.
4
6
  * It allows you to add headers, merge them together, and resolve them into a single object.
@@ -26,7 +28,7 @@ export type Headers<K extends string = string, V = any> = Record<K, V>;
26
28
  * // 'Authorization': 'Bearer <token>'
27
29
  * // }
28
30
  */
29
- export declare class HeaderBuilder<H extends Headers = {}> {
31
+ export declare class HeaderBuilder<H extends Headers = NoHeaders> {
30
32
  private readonly factories;
31
33
  /**
32
34
  * Creates a new HeaderBuilder, optionally with an initial set of headers.
@@ -92,7 +94,7 @@ export declare class HeaderBuilder<H extends Headers = {}> {
92
94
  *
93
95
  * @param extension - An object with the headers to add
94
96
  */
95
- and<const K extends string, const V, E extends Headers<K, V>>(extension: E | Promise<E>): HeaderBuilder<H & E>;
97
+ and<const K extends string, const V extends string, E extends Headers<K, V>>(extension: E | Promise<E>): HeaderBuilder<H & E>;
96
98
  /**
97
99
  * Adds a factory function that returns a promise of headers to the builder.
98
100
  * This is useful when you need to fetch some data asynchronously to build the headers.
@@ -166,34 +168,4 @@ export declare class HeaderBuilder<H extends Headers = {}> {
166
168
  */
167
169
  resolve(): Promise<H>;
168
170
  }
169
- /**
170
- * A middleware class that allows you to modify a HeaderBuilder in a type-safe way.
171
- * It receives a builder and returns a new builder with the modifications applied.
172
- *
173
- * @example
174
- * ```typescript
175
- * const authMiddleware = createHeaderBuilderMiddleware(async (builder) => {
176
- * const token = await fetchToken()
177
- * return builder.add('Authorization', `Bearer ${token}`)
178
- * })
179
- *
180
- * const builder = HeaderBuilder.create()
181
- * .with(authMiddleware)
182
- *
183
- * const headers = await builder.resolve() // Type of headers is { 'Authorization': string }
184
- * console.log(headers) // { 'Authorization': 'Bearer <token>' }
185
- */
186
- declare class HeaderBuilderMiddleware<const H extends Headers> {
187
- private readonly middleware;
188
- constructor(middleware: (builder: HeaderBuilder<Headers>) => HeaderBuilder<H> | Promise<HeaderBuilder<H>>);
189
- apply<const BH extends Headers>(base: HeaderBuilder<BH>): HeaderBuilder<BH & H>;
190
- }
191
- /**
192
- * A helper function that creates a HeaderBuilderMiddleware, it removed the
193
- * complexity of creating a new instance of the middleware class and tracking the input types.
194
- *
195
- * @param middleware - A function that modifies a HeaderBuilder
196
- * @returns - A new instance of HeaderBuilderMiddleware to be used with a HeaderBuilder
197
- */
198
- export declare function createHeaderBuilderMiddleware<const H extends Headers>(middleware: (builder: HeaderBuilder) => HeaderBuilder<H> | Promise<HeaderBuilder<H>>): HeaderBuilderMiddleware<H>;
199
- export type { HeaderBuilderMiddleware };
171
+ export {};
@@ -5,6 +5,6 @@ export type JwtAuthHeaderBuilderMiddlewareProps = {
5
5
  generateNewToken?: () => Promise<JwtToken | null>;
6
6
  onNewTokenIssued?: (token: JwtToken) => void;
7
7
  };
8
- export declare function JwtAuthHeaderBuilderMiddleware(props: JwtAuthHeaderBuilderMiddlewareProps): import('../headers/headerBuilder').HeaderBuilderMiddleware<{
8
+ export declare function JwtAuthHeaderBuilderMiddleware(props: JwtAuthHeaderBuilderMiddlewareProps): import('../headers/createHeaderBuilderMiddleware').HeaderBuilderMiddleware<{
9
9
  Authorization: `Bearer ${string}`;
10
10
  }>;
@@ -1,3 +1,3 @@
1
- export declare const PublicApiHeaderBuilderMiddleware: import('../headers/headerBuilder').HeaderBuilderMiddleware<{
2
- 'x-lokalise-plugin': string;
1
+ export declare const PublicApiHeaderBuilderMiddleware: import('../headers/createHeaderBuilderMiddleware').HeaderBuilderMiddleware<{
2
+ 'x-lokalise-plugin': "true";
3
3
  }>;
@@ -3,7 +3,7 @@ export { PublicApiHeaderBuilderMiddleware } from './core/middleware/publicApiHea
3
3
  export type { JwtTokenPayload } from './core/types/jwtTokenPayload';
4
4
  export { parseJwtTokenPayload } from './core/utils/jwtTokenPayload';
5
5
  export { getJwtTokenFromCookie, getCsrfTokenFromCookie } from './frontend/utils/cookieTokenUtils';
6
- export { HeaderBuilder, createHeaderBuilderMiddleware, type HeaderBuilderMiddleware, type Headers, } from './core/headers/headerBuilder';
6
+ export { HeaderBuilder, type Headers, } from './core/headers/headerBuilder';
7
7
  export * from './backend/services/getAuthenticatedSessionDetailFromRequest';
8
8
  export * from './frontend/services/generateTokenFromClassicSession';
9
9
  export * from './frontend/services/refreshExpiredToken';
@@ -11,3 +11,4 @@ export * from './frontend/hooks/useGetPromotedClassicSessionJwtQuery';
11
11
  export * from './frontend/hooks/useAuthenticatedSessionPayload';
12
12
  export * from './frontend/hooks/useAuthenticatedUser';
13
13
  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
- }>]>, z.ZodObject<{
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
- }>>, false, false>;
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
- }>]>, import('zod').ZodObject<{
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
- }>>, false, false>;
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
- }>]>, import('zod').ZodObject<{
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
- }>>, false, false>;
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
- }>]>, import('zod').ZodObject<{
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
- }>>, false, false>;
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
- }>]>, import('zod').ZodObject<{
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
- }>>, false, false>;
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
- }>]>, import('zod').ZodObject<{
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
- }>>, false, false>;
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
- }>]>, z.ZodObject<{
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
- }>>, false, false>;
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>;