@lokalise/connector-api-contracts 1.2.2 → 1.2.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.
@@ -14,7 +14,14 @@ export declare const getAuthContract: import("@lokalise/api-contracts").GetRoute
14
14
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
15
15
  'ce-config': z.ZodString;
16
16
  'ce-auth': z.ZodString;
17
- }, z.core.$strip>, false, false>;
17
+ }, z.core.$strip>, false, false, {
18
+ 200: z.ZodObject<{
19
+ type: z.ZodEnum<{
20
+ OAuth: "OAuth";
21
+ apiToken: "apiToken";
22
+ }>;
23
+ }, z.core.$strip>;
24
+ }>;
18
25
  export declare const postAuthResponseBody: z.ZodObject<{}, z.core.$loose>;
19
26
  export type PostAuthResponseBody = Record<string, unknown> & {
20
27
  url?: string;
@@ -22,11 +29,23 @@ export type PostAuthResponseBody = Record<string, unknown> & {
22
29
  export declare const postAuthContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodNever, z.ZodObject<{}, z.core.$loose>, undefined, undefined, z.ZodObject<{
23
30
  'ce-config': z.ZodString;
24
31
  'ce-auth': z.ZodString;
25
- }, z.core.$strip>, false, false>;
32
+ }, z.core.$strip>, false, false, {
33
+ 200: z.ZodObject<{}, z.core.$loose>;
34
+ 403: z.ZodObject<{
35
+ message: z.ZodString;
36
+ statusCode: z.ZodNumber;
37
+ }, z.core.$strip>;
38
+ }>;
26
39
  export declare const postAuthRefreshContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodNever, z.ZodObject<{}, z.core.$loose>, undefined, undefined, z.ZodObject<{
27
40
  'ce-config': z.ZodString;
28
41
  'ce-auth': z.ZodString;
29
- }, z.core.$strip>, false, false>;
42
+ }, z.core.$strip>, false, false, {
43
+ 200: z.ZodObject<{}, z.core.$loose>;
44
+ 403: z.ZodObject<{
45
+ message: z.ZodString;
46
+ statusCode: z.ZodNumber;
47
+ }, z.core.$strip>;
48
+ }>;
30
49
  export declare const postAuthResponseRequestBody: z.ZodObject<{
31
50
  query: z.ZodObject<{}, z.core.$loose>;
32
51
  body: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
@@ -42,4 +61,11 @@ export declare const postAuthResponseContract: import("@lokalise/api-contracts")
42
61
  }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined, undefined, z.ZodObject<{
43
62
  'ce-config': z.ZodString;
44
63
  'ce-auth': z.ZodString;
45
- }, z.core.$strip>, false, false>;
64
+ }, z.core.$strip>, false, false, {
65
+ 200: z.ZodObject<{}, z.core.$loose>;
66
+ 403: z.ZodObject<{
67
+ message: z.ZodString;
68
+ errorCode: z.ZodNumber;
69
+ details: z.ZodObject<{}, z.core.$loose>;
70
+ }, z.core.$strip>;
71
+ }>;
@@ -31,4 +31,21 @@ export declare const getEnvContract: import("@lokalise/api-contracts").GetRouteD
31
31
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
32
32
  'ce-config': z.ZodString;
33
33
  'ce-auth': z.ZodString;
34
- }, z.core.$strip>, false, false>;
34
+ }, z.core.$strip>, false, false, {
35
+ 200: z.ZodObject<{
36
+ defaultLocale: z.ZodString;
37
+ locales: z.ZodArray<z.ZodObject<{
38
+ name: z.ZodString;
39
+ code: z.ZodString;
40
+ }, z.core.$strip>>;
41
+ cacheItemStructure: z.ZodRecord<z.ZodString, z.ZodString>;
42
+ }, z.core.$strip>;
43
+ 403: z.ZodObject<{
44
+ statusCode: z.ZodNumber;
45
+ payload: z.ZodObject<{
46
+ message: z.ZodString;
47
+ errorCode: z.ZodString;
48
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
49
+ }, z.core.$strip>;
50
+ }, z.core.$strip>;
51
+ }>;
@@ -50,4 +50,30 @@ export declare const getItemListContract: import("@lokalise/api-contracts").GetR
50
50
  }, z.core.$strip>, z.ZodObject<{
51
51
  'ce-config': z.ZodString;
52
52
  'ce-auth': z.ZodString;
53
- }, z.core.$strip>, false, false>;
53
+ }, z.core.$strip>, false, false, {
54
+ 200: z.ZodObject<{
55
+ data: z.ZodArray<z.ZodObject<{
56
+ items: z.ZodArray<z.ZodObject<{
57
+ uniqueId: z.ZodString;
58
+ groupId: z.ZodString;
59
+ metadata: z.ZodRecord<z.ZodAny, z.ZodAny>;
60
+ fields: z.ZodObject<{}, z.core.$loose>;
61
+ title: z.ZodString;
62
+ groupTitle: z.ZodString;
63
+ }, z.core.$strip>>;
64
+ }, z.core.$strip>>;
65
+ meta: z.ZodObject<{
66
+ count: z.ZodNumber;
67
+ cursor: z.ZodOptional<z.ZodString>;
68
+ hasMore: z.ZodOptional<z.ZodBoolean>;
69
+ }, z.core.$strip>;
70
+ }, z.core.$strip>;
71
+ 401: z.ZodObject<{
72
+ statusCode: z.ZodNumber;
73
+ payload: z.ZodObject<{
74
+ message: z.ZodString;
75
+ errorCode: z.ZodString;
76
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
77
+ }, z.core.$strip>;
78
+ }, z.core.$strip>;
79
+ }>;
@@ -42,4 +42,16 @@ export declare const postPublishContract: import("@lokalise/api-contracts").Payl
42
42
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
43
43
  'ce-config': z.ZodString;
44
44
  'ce-auth': z.ZodString;
45
- }, z.core.$strip>, false, false>;
45
+ }, z.core.$strip>, false, false, {
46
+ 200: z.ZodObject<{
47
+ statusCode: z.ZodNumber;
48
+ message: z.ZodOptional<z.ZodString>;
49
+ payload: z.ZodOptional<z.ZodObject<{
50
+ message: z.ZodString;
51
+ errorCode: z.ZodString;
52
+ details: z.ZodObject<{
53
+ errors: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
54
+ }, z.core.$strip>;
55
+ }, z.core.$strip>>;
56
+ }, z.core.$strip>;
57
+ }>;
@@ -51,4 +51,28 @@ export declare const postTranslateContract: import("@lokalise/api-contracts").Pa
51
51
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
52
52
  'ce-config': z.ZodString;
53
53
  'ce-auth': z.ZodString;
54
- }, z.core.$strip>, false, false>;
54
+ }, z.core.$strip>, false, false, {
55
+ 200: z.ZodObject<{
56
+ items: z.ZodArray<z.ZodObject<{
57
+ uniqueId: z.ZodString;
58
+ groupId: z.ZodString;
59
+ metadata: z.ZodRecord<z.ZodAny, z.ZodAny>;
60
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
61
+ }, z.core.$strip>>;
62
+ payload: z.ZodOptional<z.ZodObject<{
63
+ message: z.ZodString;
64
+ errorCode: z.ZodString;
65
+ details: z.ZodObject<{
66
+ errors: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
67
+ }, z.core.$strip>;
68
+ }, z.core.$strip>>;
69
+ }, z.core.$strip>;
70
+ 403: z.ZodObject<{
71
+ statusCode: z.ZodNumber;
72
+ payload: z.ZodObject<{
73
+ message: z.ZodString;
74
+ errorCode: z.ZodString;
75
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
76
+ }, z.core.$strip>;
77
+ }, z.core.$strip>;
78
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/connector-api-contracts",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Lokalise Connector API schemas and contracts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "url": "https://github.com/lokalise/service-contracts.git"
30
30
  },
31
31
  "dependencies": {
32
- "@lokalise/api-contracts": "^5.0.0"
32
+ "@lokalise/api-contracts": "^5.2.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@lokalise/api-common": ">=6.1.0",