@kl1/contracts 1.4.72 → 1.4.75

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.
@@ -239447,17 +239447,17 @@ export declare const publicApiContract: {
239447
239447
  body: import("zod").ZodObject<{
239448
239448
  channelId: import("zod").ZodString;
239449
239449
  message: import("zod").ZodString;
239450
- contactId: import("zod").ZodOptional<import("zod").ZodString>;
239450
+ contactId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
239451
239451
  platformUserId: import("zod").ZodOptional<import("zod").ZodString>;
239452
239452
  }, "strip", import("zod").ZodTypeAny, {
239453
239453
  message: string;
239454
239454
  channelId: string;
239455
- contactId?: string | undefined;
239455
+ contactId?: string | string[] | undefined;
239456
239456
  platformUserId?: string | undefined;
239457
239457
  }, {
239458
239458
  message: string;
239459
239459
  channelId: string;
239460
- contactId?: string | undefined;
239460
+ contactId?: string | string[] | undefined;
239461
239461
  platformUserId?: string | undefined;
239462
239462
  }>;
239463
239463
  summary: "Send line message";
@@ -1,4 +1,8 @@
1
1
  import z from 'zod';
2
+ import { CreateUpdateAiTranslateRequestSetting } from './validation';
3
+ import { AiTranslateSettingSchema } from './schema';
4
+ export type AiTranslateSettingRequestType = z.infer<typeof CreateUpdateAiTranslateRequestSetting>;
5
+ export type AiTranslateSettingResponseType = z.infer<typeof AiTranslateSettingSchema>;
2
6
  export declare const generalSettingContract: {
3
7
  autoOpenedContactWidgetId: {
4
8
  getAutoOpenedContactWidgetId: {
@@ -35,5 +39,245 @@ export declare const generalSettingContract: {
35
39
  };
36
40
  };
37
41
  };
42
+ aiTranslateSetting: {
43
+ getAiTranslateSetting: {
44
+ summary: "Get ai translate setting";
45
+ method: "GET";
46
+ path: "ms/general-setting/ai-translate-setting";
47
+ responses: {
48
+ 200: z.ZodObject<{
49
+ requestId: z.ZodString;
50
+ aiTranslateSetting: z.ZodObject<{
51
+ languageList: z.ZodNullable<z.ZodArray<z.ZodObject<{
52
+ languageName: z.ZodString;
53
+ languageCode: z.ZodString;
54
+ }, "strip", z.ZodTypeAny, {
55
+ languageName: string;
56
+ languageCode: string;
57
+ }, {
58
+ languageName: string;
59
+ languageCode: string;
60
+ }>, "many">>;
61
+ aiTranslationInstructions: z.ZodNullable<z.ZodString>;
62
+ displayAiTranslationNotice: z.ZodNullable<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ languageList: {
65
+ languageName: string;
66
+ languageCode: string;
67
+ }[] | null;
68
+ aiTranslationInstructions: string | null;
69
+ displayAiTranslationNotice: string | null;
70
+ }, {
71
+ languageList: {
72
+ languageName: string;
73
+ languageCode: string;
74
+ }[] | null;
75
+ aiTranslationInstructions: string | null;
76
+ displayAiTranslationNotice: string | null;
77
+ }>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ requestId: string;
80
+ aiTranslateSetting: {
81
+ languageList: {
82
+ languageName: string;
83
+ languageCode: string;
84
+ }[] | null;
85
+ aiTranslationInstructions: string | null;
86
+ displayAiTranslationNotice: string | null;
87
+ };
88
+ }, {
89
+ requestId: string;
90
+ aiTranslateSetting: {
91
+ languageList: {
92
+ languageName: string;
93
+ languageCode: string;
94
+ }[] | null;
95
+ aiTranslationInstructions: string | null;
96
+ displayAiTranslationNotice: string | null;
97
+ };
98
+ }>;
99
+ 400: z.ZodObject<{
100
+ message: z.ZodString;
101
+ }, "strip", z.ZodTypeAny, {
102
+ message: string;
103
+ }, {
104
+ message: string;
105
+ }>;
106
+ 401: z.ZodObject<{
107
+ message: z.ZodString;
108
+ error: z.ZodAny;
109
+ }, "strip", z.ZodTypeAny, {
110
+ message: string;
111
+ error?: any;
112
+ }, {
113
+ message: string;
114
+ error?: any;
115
+ }>;
116
+ 404: z.ZodObject<{
117
+ message: z.ZodString;
118
+ error: z.ZodAny;
119
+ }, "strip", z.ZodTypeAny, {
120
+ message: string;
121
+ error?: any;
122
+ }, {
123
+ message: string;
124
+ error?: any;
125
+ }>;
126
+ 422: z.ZodObject<{
127
+ message: z.ZodString;
128
+ error: z.ZodAny;
129
+ }, "strip", z.ZodTypeAny, {
130
+ message: string;
131
+ error?: any;
132
+ }, {
133
+ message: string;
134
+ error?: any;
135
+ }>;
136
+ 500: z.ZodObject<{
137
+ message: z.ZodString;
138
+ error: z.ZodAny;
139
+ }, "strip", z.ZodTypeAny, {
140
+ message: string;
141
+ error?: any;
142
+ }, {
143
+ message: string;
144
+ error?: any;
145
+ }>;
146
+ };
147
+ };
148
+ updateAiTranslateSetting: {
149
+ body: z.ZodObject<{
150
+ languageList: z.ZodNullable<z.ZodArray<z.ZodObject<{
151
+ languageName: z.ZodString;
152
+ languageCode: z.ZodString;
153
+ }, "strip", z.ZodTypeAny, {
154
+ languageName: string;
155
+ languageCode: string;
156
+ }, {
157
+ languageName: string;
158
+ languageCode: string;
159
+ }>, "many">>;
160
+ aiTranslationInstructions: z.ZodNullable<z.ZodString>;
161
+ displayAiTranslationNotice: z.ZodNullable<z.ZodString>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ languageList: {
164
+ languageName: string;
165
+ languageCode: string;
166
+ }[] | null;
167
+ aiTranslationInstructions: string | null;
168
+ displayAiTranslationNotice: string | null;
169
+ }, {
170
+ languageList: {
171
+ languageName: string;
172
+ languageCode: string;
173
+ }[] | null;
174
+ aiTranslationInstructions: string | null;
175
+ displayAiTranslationNotice: string | null;
176
+ }>;
177
+ summary: "Update ai translate setting";
178
+ method: "PATCH";
179
+ path: "ms/general-setting/ai-translate-setting";
180
+ responses: {
181
+ 200: z.ZodObject<{
182
+ requestId: z.ZodString;
183
+ aiTranslateSetting: z.ZodObject<{
184
+ languageList: z.ZodNullable<z.ZodArray<z.ZodObject<{
185
+ languageName: z.ZodString;
186
+ languageCode: z.ZodString;
187
+ }, "strip", z.ZodTypeAny, {
188
+ languageName: string;
189
+ languageCode: string;
190
+ }, {
191
+ languageName: string;
192
+ languageCode: string;
193
+ }>, "many">>;
194
+ aiTranslationInstructions: z.ZodNullable<z.ZodString>;
195
+ displayAiTranslationNotice: z.ZodNullable<z.ZodString>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ languageList: {
198
+ languageName: string;
199
+ languageCode: string;
200
+ }[] | null;
201
+ aiTranslationInstructions: string | null;
202
+ displayAiTranslationNotice: string | null;
203
+ }, {
204
+ languageList: {
205
+ languageName: string;
206
+ languageCode: string;
207
+ }[] | null;
208
+ aiTranslationInstructions: string | null;
209
+ displayAiTranslationNotice: string | null;
210
+ }>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ requestId: string;
213
+ aiTranslateSetting: {
214
+ languageList: {
215
+ languageName: string;
216
+ languageCode: string;
217
+ }[] | null;
218
+ aiTranslationInstructions: string | null;
219
+ displayAiTranslationNotice: string | null;
220
+ };
221
+ }, {
222
+ requestId: string;
223
+ aiTranslateSetting: {
224
+ languageList: {
225
+ languageName: string;
226
+ languageCode: string;
227
+ }[] | null;
228
+ aiTranslationInstructions: string | null;
229
+ displayAiTranslationNotice: string | null;
230
+ };
231
+ }>;
232
+ 400: z.ZodObject<{
233
+ message: z.ZodString;
234
+ }, "strip", z.ZodTypeAny, {
235
+ message: string;
236
+ }, {
237
+ message: string;
238
+ }>;
239
+ 401: z.ZodObject<{
240
+ message: z.ZodString;
241
+ error: z.ZodAny;
242
+ }, "strip", z.ZodTypeAny, {
243
+ message: string;
244
+ error?: any;
245
+ }, {
246
+ message: string;
247
+ error?: any;
248
+ }>;
249
+ 404: z.ZodObject<{
250
+ message: z.ZodString;
251
+ error: z.ZodAny;
252
+ }, "strip", z.ZodTypeAny, {
253
+ message: string;
254
+ error?: any;
255
+ }, {
256
+ message: string;
257
+ error?: any;
258
+ }>;
259
+ 422: z.ZodObject<{
260
+ message: z.ZodString;
261
+ error: z.ZodAny;
262
+ }, "strip", z.ZodTypeAny, {
263
+ message: string;
264
+ error?: any;
265
+ }, {
266
+ message: string;
267
+ error?: any;
268
+ }>;
269
+ 500: z.ZodObject<{
270
+ message: z.ZodString;
271
+ error: z.ZodAny;
272
+ }, "strip", z.ZodTypeAny, {
273
+ message: string;
274
+ error?: any;
275
+ }, {
276
+ message: string;
277
+ error?: any;
278
+ }>;
279
+ };
280
+ };
281
+ };
38
282
  };
39
283
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/general-setting/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/general-setting/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,qCAAqC,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAQpD,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,wBAAwB,CAChC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqElC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import z from 'zod';
2
+ export declare const AiTranslateSettingSchema: z.ZodObject<{
3
+ languageList: z.ZodNullable<z.ZodArray<z.ZodObject<{
4
+ languageName: z.ZodString;
5
+ languageCode: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ languageName: string;
8
+ languageCode: string;
9
+ }, {
10
+ languageName: string;
11
+ languageCode: string;
12
+ }>, "many">>;
13
+ aiTranslationInstructions: z.ZodNullable<z.ZodString>;
14
+ displayAiTranslationNotice: z.ZodNullable<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ languageList: {
17
+ languageName: string;
18
+ languageCode: string;
19
+ }[] | null;
20
+ aiTranslationInstructions: string | null;
21
+ displayAiTranslationNotice: string | null;
22
+ }, {
23
+ languageList: {
24
+ languageName: string;
25
+ languageCode: string;
26
+ }[] | null;
27
+ aiTranslationInstructions: string | null;
28
+ displayAiTranslationNotice: string | null;
29
+ }>;
30
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/general-setting/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWnC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ export declare const CreateUpdateAiTranslateRequestSetting: z.ZodObject<{
3
+ languageList: z.ZodNullable<z.ZodArray<z.ZodObject<{
4
+ languageName: z.ZodString;
5
+ languageCode: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ languageName: string;
8
+ languageCode: string;
9
+ }, {
10
+ languageName: string;
11
+ languageCode: string;
12
+ }>, "many">>;
13
+ aiTranslationInstructions: z.ZodNullable<z.ZodString>;
14
+ displayAiTranslationNotice: z.ZodNullable<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ languageList: {
17
+ languageName: string;
18
+ languageCode: string;
19
+ }[] | null;
20
+ aiTranslationInstructions: string | null;
21
+ displayAiTranslationNotice: string | null;
22
+ }, {
23
+ languageList: {
24
+ languageName: string;
25
+ languageCode: string;
26
+ }[] | null;
27
+ aiTranslationInstructions: string | null;
28
+ displayAiTranslationNotice: string | null;
29
+ }>;
30
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/general-setting/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhD,CAAC"}
@@ -19,17 +19,17 @@ export declare const publicApiContract: {
19
19
  body: z.ZodObject<{
20
20
  channelId: z.ZodString;
21
21
  message: z.ZodString;
22
- contactId: z.ZodOptional<z.ZodString>;
22
+ contactId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
23
23
  platformUserId: z.ZodOptional<z.ZodString>;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  message: string;
26
26
  channelId: string;
27
- contactId?: string | undefined;
27
+ contactId?: string | string[] | undefined;
28
28
  platformUserId?: string | undefined;
29
29
  }, {
30
30
  message: string;
31
31
  channelId: string;
32
- contactId?: string | undefined;
32
+ contactId?: string | string[] | undefined;
33
33
  platformUserId?: string | undefined;
34
34
  }>;
35
35
  summary: "Send line message";
@@ -1847,17 +1847,17 @@ export declare const ContactContractValidationSchema: {
1847
1847
  export declare const SendMessageSchema: z.ZodObject<{
1848
1848
  channelId: z.ZodString;
1849
1849
  message: z.ZodString;
1850
- contactId: z.ZodOptional<z.ZodString>;
1850
+ contactId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1851
1851
  platformUserId: z.ZodOptional<z.ZodString>;
1852
1852
  }, "strip", z.ZodTypeAny, {
1853
1853
  message: string;
1854
1854
  channelId: string;
1855
- contactId?: string | undefined;
1855
+ contactId?: string | string[] | undefined;
1856
1856
  platformUserId?: string | undefined;
1857
1857
  }, {
1858
1858
  message: string;
1859
1859
  channelId: string;
1860
- contactId?: string | undefined;
1860
+ contactId?: string | string[] | undefined;
1861
1861
  platformUserId?: string | undefined;
1862
1862
  }>;
1863
1863
  export declare const GetCxLogsSchema: z.ZodObject<{