@lokalise/tm-api-schemas 5.7.0 → 6.0.0

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/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2023 Lokalise
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -1,6 +1,6 @@
1
1
  import type { z } from 'zod';
2
2
  export declare const TM_IMPORT_REQUEST_PARAMS_SCHEMA: z.ZodObject<{
3
3
  ownerId: z.ZodGUID;
4
- groupId: z.ZodString;
4
+ groupId: z.ZodGUID;
5
5
  }, z.core.$strip>;
6
6
  export type TmImportRequestParamsSchema = z.infer<typeof TM_IMPORT_REQUEST_PARAMS_SCHEMA>;
@@ -15,7 +15,7 @@ export declare const postConfirmUploadCompletionContract: import("@lokalise/api-
15
15
  importProcessId: z.ZodString;
16
16
  }, z.core.$strip>, z.ZodObject<{
17
17
  ownerId: z.ZodGUID;
18
- groupId: z.ZodString;
18
+ groupId: z.ZodGUID;
19
19
  }, z.core.$strip>, undefined, z.ZodUnion<[z.ZodObject<{
20
20
  'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
21
21
  Authorization: z.ZodOptional<z.ZodString>;
@@ -46,7 +46,7 @@ export declare const postCreateUploadFormDataContract: import("@lokalise/api-con
46
46
  }, z.core.$strip>;
47
47
  }, z.core.$strip>, z.ZodObject<{
48
48
  ownerId: z.ZodGUID;
49
- groupId: z.ZodString;
49
+ groupId: z.ZodGUID;
50
50
  }, z.core.$strip>, undefined, z.ZodUnion<[z.ZodObject<{
51
51
  'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
52
52
  Authorization: z.ZodOptional<z.ZodString>;
@@ -3,7 +3,7 @@ export declare const GET_IMPORT_PROCESSES_RESPONSE_SCHEMA: z.ZodObject<{
3
3
  data: z.ZodArray<z.ZodObject<{
4
4
  id: z.ZodGUID;
5
5
  ownerId: z.ZodGUID;
6
- groupId: z.ZodString;
6
+ groupId: z.ZodGUID;
7
7
  fileName: z.ZodString;
8
8
  inputFileStorageId: z.ZodGUID;
9
9
  status: z.ZodEnum<{
@@ -24,7 +24,7 @@ export declare const getImportProcessesContract: import("@lokalise/api-contracts
24
24
  data: z.ZodArray<z.ZodObject<{
25
25
  id: z.ZodGUID;
26
26
  ownerId: z.ZodGUID;
27
- groupId: z.ZodString;
27
+ groupId: z.ZodGUID;
28
28
  fileName: z.ZodString;
29
29
  inputFileStorageId: z.ZodGUID;
30
30
  status: z.ZodEnum<{
@@ -41,7 +41,7 @@ export declare const getImportProcessesContract: import("@lokalise/api-contracts
41
41
  }, z.core.$strip>>;
42
42
  }, z.core.$strip>, z.ZodObject<{
43
43
  ownerId: z.ZodGUID;
44
- groupId: z.ZodString;
44
+ groupId: z.ZodGUID;
45
45
  }, z.core.$strip>, undefined, z.ZodUnion<[z.ZodObject<{
46
46
  'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
47
47
  Authorization: z.ZodOptional<z.ZodString>;
@@ -53,7 +53,7 @@ export declare const getImportProcessesContract: import("@lokalise/api-contracts
53
53
  data: z.ZodArray<z.ZodObject<{
54
54
  id: z.ZodGUID;
55
55
  ownerId: z.ZodGUID;
56
- groupId: z.ZodString;
56
+ groupId: z.ZodGUID;
57
57
  fileName: z.ZodString;
58
58
  inputFileStorageId: z.ZodGUID;
59
59
  status: z.ZodEnum<{
@@ -6,7 +6,7 @@ export type PostBulkFindMatchesParams = z.infer<typeof POST_BULK_FIND_MATCHES_PA
6
6
  export declare const POST_BULK_FIND_MATCHES_REQUEST_BODY_SCHEMA: z.ZodObject<{
7
7
  filters: z.ZodArray<z.ZodObject<{
8
8
  filterId: z.ZodOptional<z.ZodString>;
9
- groupId: z.ZodOptional<z.ZodString>;
9
+ groupId: z.ZodOptional<z.ZodGUID>;
10
10
  sourceText: z.ZodString;
11
11
  sourceLocale: z.ZodString;
12
12
  targetLocale: z.ZodString;
@@ -24,7 +24,7 @@ export declare const BULK_TRANSLATION_MEMORY_MATCHES_SCHEMA: z.ZodObject<{
24
24
  filterId: z.ZodOptional<z.ZodString>;
25
25
  matches: z.ZodArray<z.ZodObject<{
26
26
  id: z.ZodString;
27
- groupId: z.ZodString;
27
+ groupId: z.ZodGUID;
28
28
  ownerId: z.ZodGUID;
29
29
  sourceLocale: z.ZodString;
30
30
  targetLocale: z.ZodString;
@@ -84,7 +84,7 @@ export declare const POST_BULK_FIND_MATCHES_RESPONSE_SCHEMA: z.ZodObject<{
84
84
  filterId: z.ZodOptional<z.ZodString>;
85
85
  matches: z.ZodArray<z.ZodObject<{
86
86
  id: z.ZodString;
87
- groupId: z.ZodString;
87
+ groupId: z.ZodGUID;
88
88
  ownerId: z.ZodGUID;
89
89
  sourceLocale: z.ZodString;
90
90
  targetLocale: z.ZodString;
@@ -143,7 +143,7 @@ export type PostBulkFindMatchesResponse = z.infer<typeof POST_BULK_FIND_MATCHES_
143
143
  export declare const postBulkFindMatchesContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodObject<{
144
144
  filters: z.ZodArray<z.ZodObject<{
145
145
  filterId: z.ZodOptional<z.ZodString>;
146
- groupId: z.ZodOptional<z.ZodString>;
146
+ groupId: z.ZodOptional<z.ZodGUID>;
147
147
  sourceText: z.ZodString;
148
148
  sourceLocale: z.ZodString;
149
149
  targetLocale: z.ZodString;
@@ -160,7 +160,7 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
160
160
  filterId: z.ZodOptional<z.ZodString>;
161
161
  matches: z.ZodArray<z.ZodObject<{
162
162
  id: z.ZodString;
163
- groupId: z.ZodString;
163
+ groupId: z.ZodGUID;
164
164
  ownerId: z.ZodGUID;
165
165
  sourceLocale: z.ZodString;
166
166
  targetLocale: z.ZodString;
@@ -228,7 +228,7 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
228
228
  filterId: z.ZodOptional<z.ZodString>;
229
229
  matches: z.ZodArray<z.ZodObject<{
230
230
  id: z.ZodString;
231
- groupId: z.ZodString;
231
+ groupId: z.ZodGUID;
232
232
  ownerId: z.ZodGUID;
233
233
  sourceLocale: z.ZodString;
234
234
  targetLocale: z.ZodString;
@@ -4,7 +4,7 @@ export declare const GET_TRANSLATION_MEMORY_MATCHES_REQUEST_PARAMS_SCHEMA: z.Zod
4
4
  }, z.core.$strip>;
5
5
  export type GetTranslationMemoryMatchesRequestParams = z.infer<typeof GET_TRANSLATION_MEMORY_MATCHES_REQUEST_PARAMS_SCHEMA>;
6
6
  export declare const GET_TRANSLATION_MEMORY_MATCHES_REQUEST_QUERY_SCHEMA: z.ZodObject<{
7
- 'group-id': z.ZodOptional<z.ZodString>;
7
+ 'group-id': z.ZodOptional<z.ZodGUID>;
8
8
  'source-text': z.ZodString;
9
9
  'source-locale': z.ZodString;
10
10
  'target-locale': z.ZodString;
@@ -18,7 +18,7 @@ export type GetTranslationMemoryMatchesRequestQuery = z.input<typeof GET_TRANSLA
18
18
  export declare const GET_TRANSLATION_MEMORY_MATCHES_RESPONSE_SCHEMA: z.ZodObject<{
19
19
  data: z.ZodArray<z.ZodObject<{
20
20
  id: z.ZodString;
21
- groupId: z.ZodString;
21
+ groupId: z.ZodGUID;
22
22
  ownerId: z.ZodGUID;
23
23
  sourceLocale: z.ZodString;
24
24
  targetLocale: z.ZodString;
@@ -76,7 +76,7 @@ export type GetTranslationMemoryMatchesResponse = z.infer<typeof GET_TRANSLATION
76
76
  export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
77
77
  data: z.ZodArray<z.ZodObject<{
78
78
  id: z.ZodString;
79
- groupId: z.ZodString;
79
+ groupId: z.ZodGUID;
80
80
  ownerId: z.ZodGUID;
81
81
  sourceLocale: z.ZodString;
82
82
  targetLocale: z.ZodString;
@@ -132,7 +132,7 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
132
132
  }, z.core.$strip>, z.ZodObject<{
133
133
  ownerId: z.ZodGUID;
134
134
  }, z.core.$strip>, z.ZodObject<{
135
- 'group-id': z.ZodOptional<z.ZodString>;
135
+ 'group-id': z.ZodOptional<z.ZodGUID>;
136
136
  'source-text': z.ZodString;
137
137
  'source-locale': z.ZodString;
138
138
  'target-locale': z.ZodString;
@@ -151,7 +151,7 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
151
151
  200: z.ZodObject<{
152
152
  data: z.ZodArray<z.ZodObject<{
153
153
  id: z.ZodString;
154
- groupId: z.ZodString;
154
+ groupId: z.ZodGUID;
155
155
  ownerId: z.ZodGUID;
156
156
  sourceLocale: z.ZodString;
157
157
  targetLocale: z.ZodString;
@@ -24,18 +24,18 @@ export declare const GET_TRANSLATION_MEMORY_RECORDS_QUERY_SCHEMA: z.ZodObject<{
24
24
  id: z.ZodString;
25
25
  }, z.core.$strip>>>>;
26
26
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
27
- 'group-id': z.ZodOptional<z.ZodString>;
27
+ 'group-id': z.ZodOptional<z.ZodGUID>;
28
28
  'flex-search-query': z.ZodOptional<z.ZodString>;
29
- 'filter-ids': z.ZodOptional<z.ZodPipe<z.ZodTransform<string[], string[]>, z.ZodArray<z.ZodString>>>;
30
- 'filter-source-locales': z.ZodOptional<z.ZodPipe<z.ZodTransform<string[], string[]>, z.ZodArray<z.ZodString>>>;
31
- 'filter-target-locales': z.ZodOptional<z.ZodPipe<z.ZodTransform<string[], string[]>, z.ZodArray<z.ZodString>>>;
29
+ 'filter-ids': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
30
+ 'filter-source-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
31
+ 'filter-target-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
32
32
  }, z.core.$strip>;
33
33
  export type GetTranslationMemoryRecordsQuery = z.infer<typeof GET_TRANSLATION_MEMORY_RECORDS_QUERY_SCHEMA>;
34
34
  export type GetTranslationMemoryRecordsQueryInput = z.input<typeof GET_TRANSLATION_MEMORY_RECORDS_QUERY_SCHEMA>;
35
35
  export declare const GET_TRANSLATION_MEMORY_RECORDS_RESPONSE_SCHEMA: z.ZodObject<{
36
36
  data: z.ZodArray<z.ZodObject<{
37
37
  id: z.ZodString;
38
- groupId: z.ZodString;
38
+ groupId: z.ZodGUID;
39
39
  ownerId: z.ZodGUID;
40
40
  sourceLocale: z.ZodString;
41
41
  targetLocale: z.ZodString;
@@ -97,7 +97,7 @@ export type GetTranslationMemoryRecordsResponse = z.infer<typeof GET_TRANSLATION
97
97
  export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
98
98
  data: z.ZodArray<z.ZodObject<{
99
99
  id: z.ZodString;
100
- groupId: z.ZodString;
100
+ groupId: z.ZodGUID;
101
101
  ownerId: z.ZodGUID;
102
102
  sourceLocale: z.ZodString;
103
103
  targetLocale: z.ZodString;
@@ -165,11 +165,11 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
165
165
  id: z.ZodString;
166
166
  }, z.core.$strip>>>>;
167
167
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
168
- 'group-id': z.ZodOptional<z.ZodString>;
168
+ 'group-id': z.ZodOptional<z.ZodGUID>;
169
169
  'flex-search-query': z.ZodOptional<z.ZodString>;
170
- 'filter-ids': z.ZodOptional<z.ZodPipe<z.ZodTransform<string[], string[]>, z.ZodArray<z.ZodString>>>;
171
- 'filter-source-locales': z.ZodOptional<z.ZodPipe<z.ZodTransform<string[], string[]>, z.ZodArray<z.ZodString>>>;
172
- 'filter-target-locales': z.ZodOptional<z.ZodPipe<z.ZodTransform<string[], string[]>, z.ZodArray<z.ZodString>>>;
170
+ 'filter-ids': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
171
+ 'filter-source-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
172
+ 'filter-target-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
173
173
  }, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
174
174
  'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
175
175
  Authorization: z.ZodOptional<z.ZodString>;
@@ -180,7 +180,7 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
180
180
  200: z.ZodObject<{
181
181
  data: z.ZodArray<z.ZodObject<{
182
182
  id: z.ZodString;
183
- groupId: z.ZodString;
183
+ groupId: z.ZodGUID;
184
184
  ownerId: z.ZodGUID;
185
185
  sourceLocale: z.ZodString;
186
186
  targetLocale: z.ZodString;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const PUT_TRANSLATION_MEMORY_RECORDS_PARAMS_SCHEMA: z.ZodObject<{
3
3
  ownerId: z.ZodGUID;
4
- groupId: z.ZodString;
4
+ groupId: z.ZodGUID;
5
5
  }, z.core.$strip>;
6
6
  export type PutTranslationMemoryRecordsPathParams = z.infer<typeof PUT_TRANSLATION_MEMORY_RECORDS_PARAMS_SCHEMA>;
7
7
  export declare const PUT_TRANSLATION_MEMORY_RECORD_REQUEST_BODY_SCHEMA: z.ZodArray<z.ZodObject<{
@@ -86,7 +86,7 @@ export declare const putTranslationMemoryRecordsContract: import("@lokalise/api-
86
86
  }, z.core.$loose>>;
87
87
  }, z.core.$strip>>, z.ZodUndefined, z.ZodObject<{
88
88
  ownerId: z.ZodGUID;
89
- groupId: z.ZodString;
89
+ groupId: z.ZodGUID;
90
90
  }, z.core.$strip>, undefined, z.ZodUnion<[z.ZodObject<{
91
91
  'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
92
92
  Authorization: z.ZodOptional<z.ZodString>;
@@ -2,10 +2,10 @@ import { z } from 'zod';
2
2
  export declare const LOCALE_SCHEMA: z.ZodString;
3
3
  export declare const OWNER_ID_SCHEMA: z.ZodGUID;
4
4
  export type OwnerId = z.infer<typeof OWNER_ID_SCHEMA>;
5
- export declare const GROUP_ID_SCHEMA: z.ZodString;
5
+ export declare const GROUP_ID_SCHEMA: z.ZodGUID;
6
6
  export type GroupId = z.infer<typeof GROUP_ID_SCHEMA>;
7
7
  export declare const TM_OWNER_GROUP_ID_SCHEMA: z.ZodObject<{
8
8
  ownerId: z.ZodGUID;
9
- groupId: z.ZodString;
9
+ groupId: z.ZodGUID;
10
10
  }, z.core.$strip>;
11
11
  export type TmOwnerGroupId = z.infer<typeof TM_OWNER_GROUP_ID_SCHEMA>;
@@ -5,8 +5,7 @@ export const LOCALE_SCHEMA = z.string().min(1).refine(isSupportedLocale, {
5
5
  });
6
6
  export const OWNER_ID_SCHEMA = z.guid().describe('Identifier of the owner of the TM');
7
7
  export const GROUP_ID_SCHEMA = z
8
- .string()
9
- .nonempty()
8
+ .guid()
10
9
  .describe('Identifier of an isolated group of records (e.g. can be used to separate searches per different projects)');
11
10
  export const TM_OWNER_GROUP_ID_SCHEMA = z.object({
12
11
  ownerId: OWNER_ID_SCHEMA,
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/objects/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE;IACvE,OAAO,EAAE,oBAAoB;CAC9B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAGrF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,QAAQ,CACP,2GAA2G,CAC5G,CAAA;AAGH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,eAAe;CACzB,CAAC,CAAA"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/objects/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE;IACvE,OAAO,EAAE,oBAAoB;CAC9B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAGrF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,IAAI,EAAE;KACN,QAAQ,CACP,2GAA2G,CAC5G,CAAA;AAGH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,eAAe;CACzB,CAAC,CAAA"}
@@ -9,7 +9,7 @@ export type ImportProcessStatus = ObjectValues<typeof ImportProcessStatusEnum>;
9
9
  export declare const IMPORT_PROCESS_SCHEMA: z.ZodObject<{
10
10
  id: z.ZodGUID;
11
11
  ownerId: z.ZodGUID;
12
- groupId: z.ZodString;
12
+ groupId: z.ZodGUID;
13
13
  fileName: z.ZodString;
14
14
  inputFileStorageId: z.ZodGUID;
15
15
  status: z.ZodEnum<{
@@ -40,7 +40,7 @@ export declare const TranslationMemoryRecordKindVariantEnum: {
40
40
  export type TranslationMemoryRecordKindVariant = ObjectValues<typeof TranslationMemoryRecordKindVariantEnum>;
41
41
  export declare const TRANSLATION_MEMORY_RECORD_SCHEMA: z.ZodObject<{
42
42
  id: z.ZodString;
43
- groupId: z.ZodString;
43
+ groupId: z.ZodGUID;
44
44
  ownerId: z.ZodGUID;
45
45
  sourceLocale: z.ZodString;
46
46
  targetLocale: z.ZodString;
@@ -96,7 +96,7 @@ export type TranslationMemoryRecord = z.infer<typeof TRANSLATION_MEMORY_RECORD_S
96
96
  export type TranslationMemoryRecordInput = z.input<typeof TRANSLATION_MEMORY_RECORD_SCHEMA>;
97
97
  export declare const TRANSLATION_MEMORY_MATCH_SCHEMA: z.ZodObject<{
98
98
  id: z.ZodString;
99
- groupId: z.ZodString;
99
+ groupId: z.ZodGUID;
100
100
  ownerId: z.ZodGUID;
101
101
  sourceLocale: z.ZodString;
102
102
  targetLocale: z.ZodString;
@@ -204,7 +204,7 @@ export declare const TRANSLATION_MEMORY_LOOKUP_OPTIONS_SCHEMA: z.ZodObject<{
204
204
  export type TranslationMemoryLookupOptions = z.infer<typeof TRANSLATION_MEMORY_LOOKUP_OPTIONS_SCHEMA>;
205
205
  export declare const TRANSLATION_MEMORY_FILTER_SCHEMA: z.ZodObject<{
206
206
  filterId: z.ZodOptional<z.ZodString>;
207
- groupId: z.ZodOptional<z.ZodString>;
207
+ groupId: z.ZodOptional<z.ZodGUID>;
208
208
  sourceText: z.ZodString;
209
209
  sourceLocale: z.ZodString;
210
210
  targetLocale: z.ZodString;
package/package.json CHANGED
@@ -1,54 +1,53 @@
1
1
  {
2
- "name": "@lokalise/tm-api-schemas",
3
- "version": "5.7.0",
4
- "type": "module",
5
- "author": {
6
- "name": "Lokalise",
7
- "url": "https://lokalise.com/"
8
- },
9
- "description": "API schemas for Lokalise Translation Memory service",
10
- "files": [
11
- "dist"
12
- ],
13
- "license": "Apache-2.0",
14
- "repository": {
15
- "type": "git",
16
- "url": "git://github.com/lokalise/translation-memory.git"
17
- },
18
- "main": "dist/index.js",
19
- "exports": {
20
- ".": "./dist/index.js",
21
- "./package.json": "./package.json"
22
- },
23
- "publishConfig": {
24
- "access": "public"
25
- },
26
- "scripts": {
27
- "build": "node --run clean && tsc --project tsconfig.build.json",
28
- "clean": "rimraf dist",
29
- "lint": "biome check && tsc",
30
- "lint:fix": "biome check --write",
31
- "test:ci": "echo \"No tests\"",
32
- "package-version": "echo $npm_package_version",
33
- "prepublishOnly": "node --run build",
34
- "postversion": "biome check --write package.json"
35
- },
36
- "dependencies": {
37
- "@lokalise/api-common": "^7.1.1",
38
- "@lokalise/api-contracts": "^6.9.0",
39
- "@lokalise/common-api-schemas": "^2.2.1",
40
- "@lokalise/supported-languages": "^3.2.0"
41
- },
42
- "peerDependencies": {
43
- "zod": ">=4.1.12"
44
- },
45
- "devDependencies": {
46
- "@biomejs/biome": "^2.4.11",
47
- "@lokalise/biome-config": "^3.1.1",
48
- "@lokalise/tsconfig": "^3.0.0",
49
- "@types/node": "24.10.8",
50
- "rimraf": "^6.1.3",
51
- "typescript": "5.9.3",
52
- "zod": "^4.3.6"
53
- }
54
- }
2
+ "name": "@lokalise/tm-api-schemas",
3
+ "version": "6.0.0",
4
+ "type": "module",
5
+ "author": {
6
+ "name": "Lokalise",
7
+ "url": "https://lokalise.com/"
8
+ },
9
+ "description": "API schemas for Lokalise Translation Memory service",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git://github.com/lokalise/translation-memory.git"
17
+ },
18
+ "main": "dist/index.js",
19
+ "exports": {
20
+ ".": "./dist/index.js",
21
+ "./package.json": "./package.json"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "dependencies": {
27
+ "@lokalise/api-common": "^7.1.1",
28
+ "@lokalise/api-contracts": "^6.9.0",
29
+ "@lokalise/common-api-schemas": "^2.2.1",
30
+ "@lokalise/supported-languages": "^3.2.0"
31
+ },
32
+ "peerDependencies": {
33
+ "zod": ">=4.1.12"
34
+ },
35
+ "devDependencies": {
36
+ "@biomejs/biome": "^2.4.15",
37
+ "@lokalise/biome-config": "^3.1.1",
38
+ "@lokalise/tsconfig": "^3.0.0",
39
+ "@types/node": "24.10.8",
40
+ "rimraf": "^6.1.3",
41
+ "typescript": "5.9.3",
42
+ "zod": "^4.4.3"
43
+ },
44
+ "scripts": {
45
+ "build": "node --run clean && tsc --project tsconfig.build.json",
46
+ "clean": "rimraf dist",
47
+ "lint": "biome check && tsc",
48
+ "lint:fix": "biome check --write",
49
+ "test:ci": "echo \"No tests\"",
50
+ "package-version": "echo $npm_package_version",
51
+ "postversion": "biome check --write package.json"
52
+ }
53
+ }