@lokalise/connector-api-contracts 1.2.1 → 1.2.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.
@@ -12,20 +12,20 @@ export declare const getAuthContract: import("@lokalise/api-contracts").GetRoute
12
12
  apiToken: "apiToken";
13
13
  }>;
14
14
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
15
- 'CE-Config': z.ZodString;
16
- 'CE-Auth': z.ZodString;
15
+ 'ce-config': z.ZodString;
16
+ 'ce-auth': z.ZodString;
17
17
  }, z.core.$strip>, false, false>;
18
18
  export declare const postAuthResponseBody: z.ZodObject<{}, z.core.$loose>;
19
19
  export type PostAuthResponseBody = Record<string, unknown> & {
20
20
  url?: string;
21
21
  };
22
22
  export declare const postAuthContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodNever, z.ZodObject<{}, z.core.$loose>, undefined, undefined, z.ZodObject<{
23
- 'CE-Config': z.ZodString;
24
- 'CE-Auth': z.ZodString;
23
+ 'ce-config': z.ZodString;
24
+ 'ce-auth': z.ZodString;
25
25
  }, z.core.$strip>, false, false>;
26
26
  export declare const postAuthRefreshContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodNever, z.ZodObject<{}, z.core.$loose>, undefined, undefined, z.ZodObject<{
27
- 'CE-Config': z.ZodString;
28
- 'CE-Auth': z.ZodString;
27
+ 'ce-config': z.ZodString;
28
+ 'ce-auth': z.ZodString;
29
29
  }, z.core.$strip>, false, false>;
30
30
  export declare const postAuthResponseRequestBody: z.ZodObject<{
31
31
  query: z.ZodObject<{}, z.core.$loose>;
@@ -40,6 +40,6 @@ export declare const postAuthResponseContract: import("@lokalise/api-contracts")
40
40
  body: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
41
41
  redirectUrl: z.ZodString;
42
42
  }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined, undefined, z.ZodObject<{
43
- 'CE-Config': z.ZodString;
44
- 'CE-Auth': z.ZodString;
43
+ 'ce-config': z.ZodString;
44
+ 'ce-auth': z.ZodString;
45
45
  }, z.core.$strip>, false, false>;
@@ -34,9 +34,9 @@ export type CommonErrorResponse = z.infer<typeof COMMON_ERROR_RESPONSE_SCHEMA>;
34
34
  * These headers are used before the initial setup was established
35
35
  */
36
36
  export declare const CONNECTOR_REQUEST_HEADERS_SCHEMA_PRE_SETUP: z.ZodObject<{
37
- 'CE-Config': z.ZodString;
37
+ 'ce-config': z.ZodString;
38
38
  }, z.core.$strip>;
39
39
  export declare const CONNECTOR_REQUEST_HEADERS_SCHEMA: z.ZodObject<{
40
- 'CE-Config': z.ZodString;
41
- 'CE-Auth': z.ZodString;
40
+ 'ce-config': z.ZodString;
41
+ 'ce-auth': z.ZodString;
42
42
  }, z.core.$strip>;
@@ -30,10 +30,10 @@ export const COMMON_ERROR_RESPONSE_SCHEMA = z.object({
30
30
  * These headers are used before the initial setup was established
31
31
  */
32
32
  export const CONNECTOR_REQUEST_HEADERS_SCHEMA_PRE_SETUP = z.object({
33
- 'CE-Config': z.string(),
33
+ 'ce-config': z.string(),
34
34
  });
35
35
  export const CONNECTOR_REQUEST_HEADERS_SCHEMA = z.object({
36
- 'CE-Config': z.string(),
37
- 'CE-Auth': z.string(),
36
+ 'ce-config': z.string(),
37
+ 'ce-auth': z.string(),
38
38
  });
39
39
  //# sourceMappingURL=commonSchemas.js.map
@@ -29,6 +29,6 @@ export declare const getEnvContract: import("@lokalise/api-contracts").GetRouteD
29
29
  }, z.core.$strip>>;
30
30
  cacheItemStructure: z.ZodRecord<z.ZodString, z.ZodString>;
31
31
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
32
- 'CE-Config': z.ZodString;
33
- 'CE-Auth': z.ZodString;
32
+ 'ce-config': z.ZodString;
33
+ 'ce-auth': z.ZodString;
34
34
  }, z.core.$strip>, false, false>;
@@ -48,6 +48,6 @@ export declare const getItemListContract: import("@lokalise/api-contracts").GetR
48
48
  limit: z.ZodOptional<z.ZodString>;
49
49
  cursor: z.ZodOptional<z.ZodString>;
50
50
  }, z.core.$strip>, z.ZodObject<{
51
- 'CE-Config': z.ZodString;
52
- 'CE-Auth': z.ZodString;
51
+ 'ce-config': z.ZodString;
52
+ 'ce-auth': z.ZodString;
53
53
  }, z.core.$strip>, false, false>;
@@ -40,6 +40,6 @@ export declare const postPublishContract: import("@lokalise/api-contracts").Payl
40
40
  }, z.core.$strip>;
41
41
  }, z.core.$strip>>;
42
42
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
43
- 'CE-Config': z.ZodString;
44
- 'CE-Auth': z.ZodString;
43
+ 'ce-config': z.ZodString;
44
+ 'ce-auth': z.ZodString;
45
45
  }, z.core.$strip>, false, false>;
@@ -49,6 +49,6 @@ export declare const postTranslateContract: import("@lokalise/api-contracts").Pa
49
49
  }, z.core.$strip>;
50
50
  }, z.core.$strip>>;
51
51
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
52
- 'CE-Config': z.ZodString;
53
- 'CE-Auth': z.ZodString;
52
+ 'ce-config': z.ZodString;
53
+ 'ce-auth': z.ZodString;
54
54
  }, z.core.$strip>, false, false>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/connector-api-contracts",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Lokalise Connector API schemas and contracts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",