@compresr/sdk 1.3.0 → 1.3.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.
- package/dist/cjs/config/constants.d.ts +2 -2
- package/dist/cjs/config/constants.d.ts.map +1 -1
- package/dist/cjs/config/constants.js +2 -2
- package/dist/cjs/config/constants.js.map +1 -1
- package/dist/cjs/schemas/compression.d.ts +23 -23
- package/dist/cjs/schemas/compression.js +2 -2
- package/dist/cjs/schemas/compression.js.map +1 -1
- package/dist/esm/config/constants.d.ts +2 -2
- package/dist/esm/config/constants.d.ts.map +1 -1
- package/dist/esm/config/constants.js +2 -2
- package/dist/esm/config/constants.js.map +1 -1
- package/dist/esm/schemas/compression.d.ts +23 -23
- package/dist/esm/schemas/compression.js +2 -2
- package/dist/esm/schemas/compression.js.map +1 -1
- package/package.json +3 -3
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
export declare const API_KEY_PREFIX = "cmp_";
|
|
6
6
|
/** Default base URL for Compresr API */
|
|
7
7
|
export declare const DEFAULT_BASE_URL = "https://api.compresr.ai";
|
|
8
|
-
/** Default request timeout in milliseconds */
|
|
9
|
-
export declare const DEFAULT_TIMEOUT =
|
|
8
|
+
/** Default request timeout in milliseconds (5 minutes) */
|
|
9
|
+
export declare const DEFAULT_TIMEOUT = 300000;
|
|
10
10
|
/** Stream request timeout in milliseconds */
|
|
11
11
|
export declare const STREAM_TIMEOUT = 300000;
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/config/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,oCAAoC;AACpC,eAAO,MAAM,cAAc,SAAS,CAAC;AAErC,wCAAwC;AACxC,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAE1D,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/config/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,oCAAoC;AACpC,eAAO,MAAM,cAAc,SAAS,CAAC;AAErC,wCAAwC;AACxC,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAE1D,0DAA0D;AAC1D,eAAO,MAAM,eAAe,SAAU,CAAC;AAEvC,6CAA6C;AAC7C,eAAO,MAAM,cAAc,SAAU,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;CAaT,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,MAAM,CAAC,QAAQ,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC;AAC5E,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,SAAS,CAAC;AAClD,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAGzD,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,CAEpD,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,CAEpD,CAAC;AAEH,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAEtD,CAAC;AAEH,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,CAEvD,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAEjD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;CAKV,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC"}
|
|
@@ -8,8 +8,8 @@ exports.STATUS_CODES = exports.HEADERS = exports.QS_ENDPOINT_MODELS = exports.AG
|
|
|
8
8
|
exports.API_KEY_PREFIX = 'cmp_';
|
|
9
9
|
/** Default base URL for Compresr API */
|
|
10
10
|
exports.DEFAULT_BASE_URL = 'https://api.compresr.ai';
|
|
11
|
-
/** Default request timeout in milliseconds */
|
|
12
|
-
exports.DEFAULT_TIMEOUT =
|
|
11
|
+
/** Default request timeout in milliseconds (5 minutes) */
|
|
12
|
+
exports.DEFAULT_TIMEOUT = 300_000;
|
|
13
13
|
/** Stream request timeout in milliseconds */
|
|
14
14
|
exports.STREAM_TIMEOUT = 300_000;
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/config/constants.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oCAAoC;AACvB,QAAA,cAAc,GAAG,MAAM,CAAC;AAErC,wCAAwC;AAC3B,QAAA,gBAAgB,GAAG,yBAAyB,CAAC;AAE1D,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/config/constants.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oCAAoC;AACvB,QAAA,cAAc,GAAG,MAAM,CAAC;AAErC,wCAAwC;AAC3B,QAAA,gBAAgB,GAAG,yBAAyB,CAAC;AAE1D,0DAA0D;AAC7C,QAAA,eAAe,GAAG,OAAO,CAAC;AAEvC,6CAA6C;AAChC,QAAA,cAAc,GAAG,OAAO,CAAC;AAEtC;;GAEG;AACU,QAAA,MAAM,GAAG;IACpB,qBAAqB;IACrB,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,UAAU;IAEjB,gBAAgB;IAChB,SAAS,EAAE,cAAc;IAEzB,iBAAiB;IACjB,sBAAsB,EAAE,wBAAwB;IAChD,6BAA6B,EAAE,+BAA+B;IAC9D,0BAA0B,EAAE,4BAA4B;IACxD,0BAA0B,EAAE,4BAA4B;CAChD,CAAC;AAME,QAAA,0BAA0B,GAAwB,IAAI,GAAG,CAAC;IACrE,cAAM,CAAC,QAAQ;IACf,cAAM,CAAC,KAAK;CACb,CAAC,CAAC;AAEU,QAAA,qBAAqB,GAAwB,IAAI,GAAG,CAAC;IAChE,cAAM,CAAC,SAAS;CACjB,CAAC,CAAC;AAEU,QAAA,qBAAqB,GAAwB,IAAI,GAAG,CAAC;IAChE,cAAM,CAAC,KAAK;CACb,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAwB,IAAI,GAAG,CAAC;IAClE,cAAM,CAAC,KAAK;CACb,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAwB,IAAI,GAAG,CAAC;IACnE,cAAM,CAAC,QAAQ;CAChB,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAwB,IAAI,GAAG,CAAC;IAC7D,cAAM,CAAC,KAAK;CACb,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,OAAO,GAAG;IACrB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;CAChB,CAAC;AAEX;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,EAAE,EAAE,GAAG;IACP,WAAW,EAAE,GAAG;IAChB,YAAY,EAAE,GAAG;IACjB,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,GAAG;IACd,gBAAgB,EAAE,GAAG;IACrB,YAAY,EAAE,GAAG;IACjB,YAAY,EAAE,GAAG;CACT,CAAC"}
|
|
@@ -140,7 +140,7 @@ export type CompressBatchRequest = z.infer<typeof CompressBatchRequestSchema>;
|
|
|
140
140
|
* Single compression result
|
|
141
141
|
*/
|
|
142
142
|
export declare const CompressResultSchema: z.ZodObject<{
|
|
143
|
-
original_context: z.ZodString
|
|
143
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
144
|
compressed_context: z.ZodString;
|
|
145
145
|
original_tokens: z.ZodNumber;
|
|
146
146
|
compressed_tokens: z.ZodNumber;
|
|
@@ -149,7 +149,6 @@ export declare const CompressResultSchema: z.ZodObject<{
|
|
|
149
149
|
duration_ms: z.ZodNumber;
|
|
150
150
|
target_compression_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
original_context: string;
|
|
153
152
|
compressed_context: string;
|
|
154
153
|
original_tokens: number;
|
|
155
154
|
compressed_tokens: number;
|
|
@@ -157,8 +156,8 @@ export declare const CompressResultSchema: z.ZodObject<{
|
|
|
157
156
|
tokens_saved: number;
|
|
158
157
|
duration_ms: number;
|
|
159
158
|
target_compression_ratio?: number | null | undefined;
|
|
159
|
+
original_context?: string | null | undefined;
|
|
160
160
|
}, {
|
|
161
|
-
original_context: string;
|
|
162
161
|
compressed_context: string;
|
|
163
162
|
original_tokens: number;
|
|
164
163
|
compressed_tokens: number;
|
|
@@ -166,13 +165,14 @@ export declare const CompressResultSchema: z.ZodObject<{
|
|
|
166
165
|
tokens_saved: number;
|
|
167
166
|
duration_ms: number;
|
|
168
167
|
target_compression_ratio?: number | null | undefined;
|
|
168
|
+
original_context?: string | null | undefined;
|
|
169
169
|
}>;
|
|
170
170
|
export type CompressResult = z.infer<typeof CompressResultSchema>;
|
|
171
171
|
/**
|
|
172
172
|
* Batch item result
|
|
173
173
|
*/
|
|
174
174
|
export declare const CompressBatchItemResultSchema: z.ZodObject<{
|
|
175
|
-
original_context: z.ZodString
|
|
175
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
176
|
compressed_context: z.ZodString;
|
|
177
177
|
original_tokens: z.ZodNumber;
|
|
178
178
|
compressed_tokens: z.ZodNumber;
|
|
@@ -180,21 +180,21 @@ export declare const CompressBatchItemResultSchema: z.ZodObject<{
|
|
|
180
180
|
tokens_saved: z.ZodNumber;
|
|
181
181
|
duration_ms: z.ZodNumber;
|
|
182
182
|
}, "strip", z.ZodTypeAny, {
|
|
183
|
-
original_context: string;
|
|
184
183
|
compressed_context: string;
|
|
185
184
|
original_tokens: number;
|
|
186
185
|
compressed_tokens: number;
|
|
187
186
|
actual_compression_ratio: number;
|
|
188
187
|
tokens_saved: number;
|
|
189
188
|
duration_ms: number;
|
|
189
|
+
original_context?: string | null | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
original_context: string;
|
|
192
191
|
compressed_context: string;
|
|
193
192
|
original_tokens: number;
|
|
194
193
|
compressed_tokens: number;
|
|
195
194
|
actual_compression_ratio: number;
|
|
196
195
|
tokens_saved: number;
|
|
197
196
|
duration_ms: number;
|
|
197
|
+
original_context?: string | null | undefined;
|
|
198
198
|
}>;
|
|
199
199
|
export type CompressBatchItemResult = z.infer<typeof CompressBatchItemResultSchema>;
|
|
200
200
|
/**
|
|
@@ -202,7 +202,7 @@ export type CompressBatchItemResult = z.infer<typeof CompressBatchItemResultSche
|
|
|
202
202
|
*/
|
|
203
203
|
export declare const CompressBatchResultSchema: z.ZodObject<{
|
|
204
204
|
results: z.ZodArray<z.ZodObject<{
|
|
205
|
-
original_context: z.ZodString
|
|
205
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
206
|
compressed_context: z.ZodString;
|
|
207
207
|
original_tokens: z.ZodNumber;
|
|
208
208
|
compressed_tokens: z.ZodNumber;
|
|
@@ -210,21 +210,21 @@ export declare const CompressBatchResultSchema: z.ZodObject<{
|
|
|
210
210
|
tokens_saved: z.ZodNumber;
|
|
211
211
|
duration_ms: z.ZodNumber;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
original_context: string;
|
|
214
213
|
compressed_context: string;
|
|
215
214
|
original_tokens: number;
|
|
216
215
|
compressed_tokens: number;
|
|
217
216
|
actual_compression_ratio: number;
|
|
218
217
|
tokens_saved: number;
|
|
219
218
|
duration_ms: number;
|
|
219
|
+
original_context?: string | null | undefined;
|
|
220
220
|
}, {
|
|
221
|
-
original_context: string;
|
|
222
221
|
compressed_context: string;
|
|
223
222
|
original_tokens: number;
|
|
224
223
|
compressed_tokens: number;
|
|
225
224
|
actual_compression_ratio: number;
|
|
226
225
|
tokens_saved: number;
|
|
227
226
|
duration_ms: number;
|
|
227
|
+
original_context?: string | null | undefined;
|
|
228
228
|
}>, "many">;
|
|
229
229
|
total_original_tokens: z.ZodNumber;
|
|
230
230
|
total_compressed_tokens: z.ZodNumber;
|
|
@@ -233,13 +233,13 @@ export declare const CompressBatchResultSchema: z.ZodObject<{
|
|
|
233
233
|
count: z.ZodNumber;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
235
|
results: {
|
|
236
|
-
original_context: string;
|
|
237
236
|
compressed_context: string;
|
|
238
237
|
original_tokens: number;
|
|
239
238
|
compressed_tokens: number;
|
|
240
239
|
actual_compression_ratio: number;
|
|
241
240
|
tokens_saved: number;
|
|
242
241
|
duration_ms: number;
|
|
242
|
+
original_context?: string | null | undefined;
|
|
243
243
|
}[];
|
|
244
244
|
total_original_tokens: number;
|
|
245
245
|
total_compressed_tokens: number;
|
|
@@ -248,13 +248,13 @@ export declare const CompressBatchResultSchema: z.ZodObject<{
|
|
|
248
248
|
count: number;
|
|
249
249
|
}, {
|
|
250
250
|
results: {
|
|
251
|
-
original_context: string;
|
|
252
251
|
compressed_context: string;
|
|
253
252
|
original_tokens: number;
|
|
254
253
|
compressed_tokens: number;
|
|
255
254
|
actual_compression_ratio: number;
|
|
256
255
|
tokens_saved: number;
|
|
257
256
|
duration_ms: number;
|
|
257
|
+
original_context?: string | null | undefined;
|
|
258
258
|
}[];
|
|
259
259
|
total_original_tokens: number;
|
|
260
260
|
total_compressed_tokens: number;
|
|
@@ -270,7 +270,7 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
270
270
|
success: z.ZodBoolean;
|
|
271
271
|
} & {
|
|
272
272
|
data: z.ZodNullable<z.ZodObject<{
|
|
273
|
-
original_context: z.ZodString
|
|
273
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
274
|
compressed_context: z.ZodString;
|
|
275
275
|
original_tokens: z.ZodNumber;
|
|
276
276
|
compressed_tokens: z.ZodNumber;
|
|
@@ -279,7 +279,6 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
279
279
|
duration_ms: z.ZodNumber;
|
|
280
280
|
target_compression_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
281
281
|
}, "strip", z.ZodTypeAny, {
|
|
282
|
-
original_context: string;
|
|
283
282
|
compressed_context: string;
|
|
284
283
|
original_tokens: number;
|
|
285
284
|
compressed_tokens: number;
|
|
@@ -287,8 +286,8 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
287
286
|
tokens_saved: number;
|
|
288
287
|
duration_ms: number;
|
|
289
288
|
target_compression_ratio?: number | null | undefined;
|
|
289
|
+
original_context?: string | null | undefined;
|
|
290
290
|
}, {
|
|
291
|
-
original_context: string;
|
|
292
291
|
compressed_context: string;
|
|
293
292
|
original_tokens: number;
|
|
294
293
|
compressed_tokens: number;
|
|
@@ -296,11 +295,11 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
296
295
|
tokens_saved: number;
|
|
297
296
|
duration_ms: number;
|
|
298
297
|
target_compression_ratio?: number | null | undefined;
|
|
298
|
+
original_context?: string | null | undefined;
|
|
299
299
|
}>>;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
301
|
success: boolean;
|
|
302
302
|
data: {
|
|
303
|
-
original_context: string;
|
|
304
303
|
compressed_context: string;
|
|
305
304
|
original_tokens: number;
|
|
306
305
|
compressed_tokens: number;
|
|
@@ -308,11 +307,11 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
308
307
|
tokens_saved: number;
|
|
309
308
|
duration_ms: number;
|
|
310
309
|
target_compression_ratio?: number | null | undefined;
|
|
310
|
+
original_context?: string | null | undefined;
|
|
311
311
|
} | null;
|
|
312
312
|
}, {
|
|
313
313
|
success: boolean;
|
|
314
314
|
data: {
|
|
315
|
-
original_context: string;
|
|
316
315
|
compressed_context: string;
|
|
317
316
|
original_tokens: number;
|
|
318
317
|
compressed_tokens: number;
|
|
@@ -320,6 +319,7 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
320
319
|
tokens_saved: number;
|
|
321
320
|
duration_ms: number;
|
|
322
321
|
target_compression_ratio?: number | null | undefined;
|
|
322
|
+
original_context?: string | null | undefined;
|
|
323
323
|
} | null;
|
|
324
324
|
}>;
|
|
325
325
|
export type CompressResponse = z.infer<typeof CompressResponseSchema>;
|
|
@@ -331,7 +331,7 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
331
331
|
} & {
|
|
332
332
|
data: z.ZodNullable<z.ZodObject<{
|
|
333
333
|
results: z.ZodArray<z.ZodObject<{
|
|
334
|
-
original_context: z.ZodString
|
|
334
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
335
|
compressed_context: z.ZodString;
|
|
336
336
|
original_tokens: z.ZodNumber;
|
|
337
337
|
compressed_tokens: z.ZodNumber;
|
|
@@ -339,21 +339,21 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
339
339
|
tokens_saved: z.ZodNumber;
|
|
340
340
|
duration_ms: z.ZodNumber;
|
|
341
341
|
}, "strip", z.ZodTypeAny, {
|
|
342
|
-
original_context: string;
|
|
343
342
|
compressed_context: string;
|
|
344
343
|
original_tokens: number;
|
|
345
344
|
compressed_tokens: number;
|
|
346
345
|
actual_compression_ratio: number;
|
|
347
346
|
tokens_saved: number;
|
|
348
347
|
duration_ms: number;
|
|
348
|
+
original_context?: string | null | undefined;
|
|
349
349
|
}, {
|
|
350
|
-
original_context: string;
|
|
351
350
|
compressed_context: string;
|
|
352
351
|
original_tokens: number;
|
|
353
352
|
compressed_tokens: number;
|
|
354
353
|
actual_compression_ratio: number;
|
|
355
354
|
tokens_saved: number;
|
|
356
355
|
duration_ms: number;
|
|
356
|
+
original_context?: string | null | undefined;
|
|
357
357
|
}>, "many">;
|
|
358
358
|
total_original_tokens: z.ZodNumber;
|
|
359
359
|
total_compressed_tokens: z.ZodNumber;
|
|
@@ -362,13 +362,13 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
362
362
|
count: z.ZodNumber;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
364
364
|
results: {
|
|
365
|
-
original_context: string;
|
|
366
365
|
compressed_context: string;
|
|
367
366
|
original_tokens: number;
|
|
368
367
|
compressed_tokens: number;
|
|
369
368
|
actual_compression_ratio: number;
|
|
370
369
|
tokens_saved: number;
|
|
371
370
|
duration_ms: number;
|
|
371
|
+
original_context?: string | null | undefined;
|
|
372
372
|
}[];
|
|
373
373
|
total_original_tokens: number;
|
|
374
374
|
total_compressed_tokens: number;
|
|
@@ -377,13 +377,13 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
377
377
|
count: number;
|
|
378
378
|
}, {
|
|
379
379
|
results: {
|
|
380
|
-
original_context: string;
|
|
381
380
|
compressed_context: string;
|
|
382
381
|
original_tokens: number;
|
|
383
382
|
compressed_tokens: number;
|
|
384
383
|
actual_compression_ratio: number;
|
|
385
384
|
tokens_saved: number;
|
|
386
385
|
duration_ms: number;
|
|
386
|
+
original_context?: string | null | undefined;
|
|
387
387
|
}[];
|
|
388
388
|
total_original_tokens: number;
|
|
389
389
|
total_compressed_tokens: number;
|
|
@@ -395,13 +395,13 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
395
395
|
success: boolean;
|
|
396
396
|
data: {
|
|
397
397
|
results: {
|
|
398
|
-
original_context: string;
|
|
399
398
|
compressed_context: string;
|
|
400
399
|
original_tokens: number;
|
|
401
400
|
compressed_tokens: number;
|
|
402
401
|
actual_compression_ratio: number;
|
|
403
402
|
tokens_saved: number;
|
|
404
403
|
duration_ms: number;
|
|
404
|
+
original_context?: string | null | undefined;
|
|
405
405
|
}[];
|
|
406
406
|
total_original_tokens: number;
|
|
407
407
|
total_compressed_tokens: number;
|
|
@@ -413,13 +413,13 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
413
413
|
success: boolean;
|
|
414
414
|
data: {
|
|
415
415
|
results: {
|
|
416
|
-
original_context: string;
|
|
417
416
|
compressed_context: string;
|
|
418
417
|
original_tokens: number;
|
|
419
418
|
compressed_tokens: number;
|
|
420
419
|
actual_compression_ratio: number;
|
|
421
420
|
tokens_saved: number;
|
|
422
421
|
duration_ms: number;
|
|
422
|
+
original_context?: string | null | undefined;
|
|
423
423
|
}[];
|
|
424
424
|
total_original_tokens: number;
|
|
425
425
|
total_compressed_tokens: number;
|
|
@@ -66,7 +66,7 @@ exports.CompressBatchRequestSchema = zod_1.z.object({
|
|
|
66
66
|
* Single compression result
|
|
67
67
|
*/
|
|
68
68
|
exports.CompressResultSchema = zod_1.z.object({
|
|
69
|
-
original_context: zod_1.z.string(),
|
|
69
|
+
original_context: zod_1.z.string().nullish(),
|
|
70
70
|
compressed_context: zod_1.z.string(),
|
|
71
71
|
original_tokens: zod_1.z.number(),
|
|
72
72
|
compressed_tokens: zod_1.z.number(),
|
|
@@ -79,7 +79,7 @@ exports.CompressResultSchema = zod_1.z.object({
|
|
|
79
79
|
* Batch item result
|
|
80
80
|
*/
|
|
81
81
|
exports.CompressBatchItemResultSchema = zod_1.z.object({
|
|
82
|
-
original_context: zod_1.z.string(),
|
|
82
|
+
original_context: zod_1.z.string().nullish(),
|
|
83
83
|
compressed_context: zod_1.z.string(),
|
|
84
84
|
original_tokens: zod_1.z.number(),
|
|
85
85
|
compressed_tokens: zod_1.z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compression.js","sourceRoot":"","sources":["../../../src/schemas/compression.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,6BAAwB;AACxB,2CAAiD;AAEjD,gFAAgF;AAChF,kBAAkB;AAClB,gFAAgF;AAEhF;;;GAGG;AACU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,2BAA2B,CAAC;IACvD,sBAAsB,EAAE,OAAC,CAAC,MAAM,EAAE;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,C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E,OAAC,CAAC,MAAM,EAAE;IAC3B,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC7B,wBAAwB,EAAE,OAAC,CAAC,MAAM,EAAE;IACpC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAIH;;GAEG;AACU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,qCAA6B,CAAC;IAC/C,qBAAqB,EAAE,OAAC,CAAC,MAAM,EAAE;IACjC,uBAAuB,EAAE,OAAC,CAAC,MAAM,EAAE;IACnC,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC9B,yBAAyB,EAAE,OAAC,CAAC,MAAM,EAAE;IACrC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAIH,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF;;GAEG;AACU,QAAA,sBAAsB,GAAG,8BAAkB,CAAC,MAAM,CAAC;IAC9D,IAAI,EAAE,4BAAoB,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAIH;;GAEG;AACU,QAAA,2BAA2B,GAAG,8BAAkB,CAAC,MAAM,CAAC;IACnE,IAAI,EAAE,iCAAyB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
export declare const API_KEY_PREFIX = "cmp_";
|
|
6
6
|
/** Default base URL for Compresr API */
|
|
7
7
|
export declare const DEFAULT_BASE_URL = "https://api.compresr.ai";
|
|
8
|
-
/** Default request timeout in milliseconds */
|
|
9
|
-
export declare const DEFAULT_TIMEOUT =
|
|
8
|
+
/** Default request timeout in milliseconds (5 minutes) */
|
|
9
|
+
export declare const DEFAULT_TIMEOUT = 300000;
|
|
10
10
|
/** Stream request timeout in milliseconds */
|
|
11
11
|
export declare const STREAM_TIMEOUT = 300000;
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/config/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,oCAAoC;AACpC,eAAO,MAAM,cAAc,SAAS,CAAC;AAErC,wCAAwC;AACxC,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAE1D,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/config/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,oCAAoC;AACpC,eAAO,MAAM,cAAc,SAAS,CAAC;AAErC,wCAAwC;AACxC,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAE1D,0DAA0D;AAC1D,eAAO,MAAM,eAAe,SAAU,CAAC;AAEvC,6CAA6C;AAC7C,eAAO,MAAM,cAAc,SAAU,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;CAaT,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,MAAM,CAAC,QAAQ,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC;AAC5E,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,SAAS,CAAC;AAClD,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAGzD,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,CAEpD,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,CAEpD,CAAC;AAEH,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAEtD,CAAC;AAEH,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,CAEvD,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAEjD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;CAKV,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
export const API_KEY_PREFIX = 'cmp_';
|
|
6
6
|
/** Default base URL for Compresr API */
|
|
7
7
|
export const DEFAULT_BASE_URL = 'https://api.compresr.ai';
|
|
8
|
-
/** Default request timeout in milliseconds */
|
|
9
|
-
export const DEFAULT_TIMEOUT =
|
|
8
|
+
/** Default request timeout in milliseconds (5 minutes) */
|
|
9
|
+
export const DEFAULT_TIMEOUT = 300_000;
|
|
10
10
|
/** Stream request timeout in milliseconds */
|
|
11
11
|
export const STREAM_TIMEOUT = 300_000;
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/config/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,oCAAoC;AACpC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC;AAErC,wCAAwC;AACxC,MAAM,CAAC,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AAE1D,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/config/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,oCAAoC;AACpC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC;AAErC,wCAAwC;AACxC,MAAM,CAAC,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AAE1D,0DAA0D;AAC1D,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AAEvC,6CAA6C;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,qBAAqB;IACrB,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,UAAU;IAEjB,gBAAg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ompressBatchRequest = z.infer<typeof CompressBatchRequestSchema>;
|
|
|
140
140
|
* Single compression result
|
|
141
141
|
*/
|
|
142
142
|
export declare const CompressResultSchema: z.ZodObject<{
|
|
143
|
-
original_context: z.ZodString
|
|
143
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
144
|
compressed_context: z.ZodString;
|
|
145
145
|
original_tokens: z.ZodNumber;
|
|
146
146
|
compressed_tokens: z.ZodNumber;
|
|
@@ -149,7 +149,6 @@ export declare const CompressResultSchema: z.ZodObject<{
|
|
|
149
149
|
duration_ms: z.ZodNumber;
|
|
150
150
|
target_compression_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
original_context: string;
|
|
153
152
|
compressed_context: string;
|
|
154
153
|
original_tokens: number;
|
|
155
154
|
compressed_tokens: number;
|
|
@@ -157,8 +156,8 @@ export declare const CompressResultSchema: z.ZodObject<{
|
|
|
157
156
|
tokens_saved: number;
|
|
158
157
|
duration_ms: number;
|
|
159
158
|
target_compression_ratio?: number | null | undefined;
|
|
159
|
+
original_context?: string | null | undefined;
|
|
160
160
|
}, {
|
|
161
|
-
original_context: string;
|
|
162
161
|
compressed_context: string;
|
|
163
162
|
original_tokens: number;
|
|
164
163
|
compressed_tokens: number;
|
|
@@ -166,13 +165,14 @@ export declare const CompressResultSchema: z.ZodObject<{
|
|
|
166
165
|
tokens_saved: number;
|
|
167
166
|
duration_ms: number;
|
|
168
167
|
target_compression_ratio?: number | null | undefined;
|
|
168
|
+
original_context?: string | null | undefined;
|
|
169
169
|
}>;
|
|
170
170
|
export type CompressResult = z.infer<typeof CompressResultSchema>;
|
|
171
171
|
/**
|
|
172
172
|
* Batch item result
|
|
173
173
|
*/
|
|
174
174
|
export declare const CompressBatchItemResultSchema: z.ZodObject<{
|
|
175
|
-
original_context: z.ZodString
|
|
175
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
176
|
compressed_context: z.ZodString;
|
|
177
177
|
original_tokens: z.ZodNumber;
|
|
178
178
|
compressed_tokens: z.ZodNumber;
|
|
@@ -180,21 +180,21 @@ export declare const CompressBatchItemResultSchema: z.ZodObject<{
|
|
|
180
180
|
tokens_saved: z.ZodNumber;
|
|
181
181
|
duration_ms: z.ZodNumber;
|
|
182
182
|
}, "strip", z.ZodTypeAny, {
|
|
183
|
-
original_context: string;
|
|
184
183
|
compressed_context: string;
|
|
185
184
|
original_tokens: number;
|
|
186
185
|
compressed_tokens: number;
|
|
187
186
|
actual_compression_ratio: number;
|
|
188
187
|
tokens_saved: number;
|
|
189
188
|
duration_ms: number;
|
|
189
|
+
original_context?: string | null | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
original_context: string;
|
|
192
191
|
compressed_context: string;
|
|
193
192
|
original_tokens: number;
|
|
194
193
|
compressed_tokens: number;
|
|
195
194
|
actual_compression_ratio: number;
|
|
196
195
|
tokens_saved: number;
|
|
197
196
|
duration_ms: number;
|
|
197
|
+
original_context?: string | null | undefined;
|
|
198
198
|
}>;
|
|
199
199
|
export type CompressBatchItemResult = z.infer<typeof CompressBatchItemResultSchema>;
|
|
200
200
|
/**
|
|
@@ -202,7 +202,7 @@ export type CompressBatchItemResult = z.infer<typeof CompressBatchItemResultSche
|
|
|
202
202
|
*/
|
|
203
203
|
export declare const CompressBatchResultSchema: z.ZodObject<{
|
|
204
204
|
results: z.ZodArray<z.ZodObject<{
|
|
205
|
-
original_context: z.ZodString
|
|
205
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
206
|
compressed_context: z.ZodString;
|
|
207
207
|
original_tokens: z.ZodNumber;
|
|
208
208
|
compressed_tokens: z.ZodNumber;
|
|
@@ -210,21 +210,21 @@ export declare const CompressBatchResultSchema: z.ZodObject<{
|
|
|
210
210
|
tokens_saved: z.ZodNumber;
|
|
211
211
|
duration_ms: z.ZodNumber;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
original_context: string;
|
|
214
213
|
compressed_context: string;
|
|
215
214
|
original_tokens: number;
|
|
216
215
|
compressed_tokens: number;
|
|
217
216
|
actual_compression_ratio: number;
|
|
218
217
|
tokens_saved: number;
|
|
219
218
|
duration_ms: number;
|
|
219
|
+
original_context?: string | null | undefined;
|
|
220
220
|
}, {
|
|
221
|
-
original_context: string;
|
|
222
221
|
compressed_context: string;
|
|
223
222
|
original_tokens: number;
|
|
224
223
|
compressed_tokens: number;
|
|
225
224
|
actual_compression_ratio: number;
|
|
226
225
|
tokens_saved: number;
|
|
227
226
|
duration_ms: number;
|
|
227
|
+
original_context?: string | null | undefined;
|
|
228
228
|
}>, "many">;
|
|
229
229
|
total_original_tokens: z.ZodNumber;
|
|
230
230
|
total_compressed_tokens: z.ZodNumber;
|
|
@@ -233,13 +233,13 @@ export declare const CompressBatchResultSchema: z.ZodObject<{
|
|
|
233
233
|
count: z.ZodNumber;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
235
|
results: {
|
|
236
|
-
original_context: string;
|
|
237
236
|
compressed_context: string;
|
|
238
237
|
original_tokens: number;
|
|
239
238
|
compressed_tokens: number;
|
|
240
239
|
actual_compression_ratio: number;
|
|
241
240
|
tokens_saved: number;
|
|
242
241
|
duration_ms: number;
|
|
242
|
+
original_context?: string | null | undefined;
|
|
243
243
|
}[];
|
|
244
244
|
total_original_tokens: number;
|
|
245
245
|
total_compressed_tokens: number;
|
|
@@ -248,13 +248,13 @@ export declare const CompressBatchResultSchema: z.ZodObject<{
|
|
|
248
248
|
count: number;
|
|
249
249
|
}, {
|
|
250
250
|
results: {
|
|
251
|
-
original_context: string;
|
|
252
251
|
compressed_context: string;
|
|
253
252
|
original_tokens: number;
|
|
254
253
|
compressed_tokens: number;
|
|
255
254
|
actual_compression_ratio: number;
|
|
256
255
|
tokens_saved: number;
|
|
257
256
|
duration_ms: number;
|
|
257
|
+
original_context?: string | null | undefined;
|
|
258
258
|
}[];
|
|
259
259
|
total_original_tokens: number;
|
|
260
260
|
total_compressed_tokens: number;
|
|
@@ -270,7 +270,7 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
270
270
|
success: z.ZodBoolean;
|
|
271
271
|
} & {
|
|
272
272
|
data: z.ZodNullable<z.ZodObject<{
|
|
273
|
-
original_context: z.ZodString
|
|
273
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
274
|
compressed_context: z.ZodString;
|
|
275
275
|
original_tokens: z.ZodNumber;
|
|
276
276
|
compressed_tokens: z.ZodNumber;
|
|
@@ -279,7 +279,6 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
279
279
|
duration_ms: z.ZodNumber;
|
|
280
280
|
target_compression_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
281
281
|
}, "strip", z.ZodTypeAny, {
|
|
282
|
-
original_context: string;
|
|
283
282
|
compressed_context: string;
|
|
284
283
|
original_tokens: number;
|
|
285
284
|
compressed_tokens: number;
|
|
@@ -287,8 +286,8 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
287
286
|
tokens_saved: number;
|
|
288
287
|
duration_ms: number;
|
|
289
288
|
target_compression_ratio?: number | null | undefined;
|
|
289
|
+
original_context?: string | null | undefined;
|
|
290
290
|
}, {
|
|
291
|
-
original_context: string;
|
|
292
291
|
compressed_context: string;
|
|
293
292
|
original_tokens: number;
|
|
294
293
|
compressed_tokens: number;
|
|
@@ -296,11 +295,11 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
296
295
|
tokens_saved: number;
|
|
297
296
|
duration_ms: number;
|
|
298
297
|
target_compression_ratio?: number | null | undefined;
|
|
298
|
+
original_context?: string | null | undefined;
|
|
299
299
|
}>>;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
301
|
success: boolean;
|
|
302
302
|
data: {
|
|
303
|
-
original_context: string;
|
|
304
303
|
compressed_context: string;
|
|
305
304
|
original_tokens: number;
|
|
306
305
|
compressed_tokens: number;
|
|
@@ -308,11 +307,11 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
308
307
|
tokens_saved: number;
|
|
309
308
|
duration_ms: number;
|
|
310
309
|
target_compression_ratio?: number | null | undefined;
|
|
310
|
+
original_context?: string | null | undefined;
|
|
311
311
|
} | null;
|
|
312
312
|
}, {
|
|
313
313
|
success: boolean;
|
|
314
314
|
data: {
|
|
315
|
-
original_context: string;
|
|
316
315
|
compressed_context: string;
|
|
317
316
|
original_tokens: number;
|
|
318
317
|
compressed_tokens: number;
|
|
@@ -320,6 +319,7 @@ export declare const CompressResponseSchema: z.ZodObject<{
|
|
|
320
319
|
tokens_saved: number;
|
|
321
320
|
duration_ms: number;
|
|
322
321
|
target_compression_ratio?: number | null | undefined;
|
|
322
|
+
original_context?: string | null | undefined;
|
|
323
323
|
} | null;
|
|
324
324
|
}>;
|
|
325
325
|
export type CompressResponse = z.infer<typeof CompressResponseSchema>;
|
|
@@ -331,7 +331,7 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
331
331
|
} & {
|
|
332
332
|
data: z.ZodNullable<z.ZodObject<{
|
|
333
333
|
results: z.ZodArray<z.ZodObject<{
|
|
334
|
-
original_context: z.ZodString
|
|
334
|
+
original_context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
335
|
compressed_context: z.ZodString;
|
|
336
336
|
original_tokens: z.ZodNumber;
|
|
337
337
|
compressed_tokens: z.ZodNumber;
|
|
@@ -339,21 +339,21 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
339
339
|
tokens_saved: z.ZodNumber;
|
|
340
340
|
duration_ms: z.ZodNumber;
|
|
341
341
|
}, "strip", z.ZodTypeAny, {
|
|
342
|
-
original_context: string;
|
|
343
342
|
compressed_context: string;
|
|
344
343
|
original_tokens: number;
|
|
345
344
|
compressed_tokens: number;
|
|
346
345
|
actual_compression_ratio: number;
|
|
347
346
|
tokens_saved: number;
|
|
348
347
|
duration_ms: number;
|
|
348
|
+
original_context?: string | null | undefined;
|
|
349
349
|
}, {
|
|
350
|
-
original_context: string;
|
|
351
350
|
compressed_context: string;
|
|
352
351
|
original_tokens: number;
|
|
353
352
|
compressed_tokens: number;
|
|
354
353
|
actual_compression_ratio: number;
|
|
355
354
|
tokens_saved: number;
|
|
356
355
|
duration_ms: number;
|
|
356
|
+
original_context?: string | null | undefined;
|
|
357
357
|
}>, "many">;
|
|
358
358
|
total_original_tokens: z.ZodNumber;
|
|
359
359
|
total_compressed_tokens: z.ZodNumber;
|
|
@@ -362,13 +362,13 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
362
362
|
count: z.ZodNumber;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
364
364
|
results: {
|
|
365
|
-
original_context: string;
|
|
366
365
|
compressed_context: string;
|
|
367
366
|
original_tokens: number;
|
|
368
367
|
compressed_tokens: number;
|
|
369
368
|
actual_compression_ratio: number;
|
|
370
369
|
tokens_saved: number;
|
|
371
370
|
duration_ms: number;
|
|
371
|
+
original_context?: string | null | undefined;
|
|
372
372
|
}[];
|
|
373
373
|
total_original_tokens: number;
|
|
374
374
|
total_compressed_tokens: number;
|
|
@@ -377,13 +377,13 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
377
377
|
count: number;
|
|
378
378
|
}, {
|
|
379
379
|
results: {
|
|
380
|
-
original_context: string;
|
|
381
380
|
compressed_context: string;
|
|
382
381
|
original_tokens: number;
|
|
383
382
|
compressed_tokens: number;
|
|
384
383
|
actual_compression_ratio: number;
|
|
385
384
|
tokens_saved: number;
|
|
386
385
|
duration_ms: number;
|
|
386
|
+
original_context?: string | null | undefined;
|
|
387
387
|
}[];
|
|
388
388
|
total_original_tokens: number;
|
|
389
389
|
total_compressed_tokens: number;
|
|
@@ -395,13 +395,13 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
395
395
|
success: boolean;
|
|
396
396
|
data: {
|
|
397
397
|
results: {
|
|
398
|
-
original_context: string;
|
|
399
398
|
compressed_context: string;
|
|
400
399
|
original_tokens: number;
|
|
401
400
|
compressed_tokens: number;
|
|
402
401
|
actual_compression_ratio: number;
|
|
403
402
|
tokens_saved: number;
|
|
404
403
|
duration_ms: number;
|
|
404
|
+
original_context?: string | null | undefined;
|
|
405
405
|
}[];
|
|
406
406
|
total_original_tokens: number;
|
|
407
407
|
total_compressed_tokens: number;
|
|
@@ -413,13 +413,13 @@ export declare const CompressBatchResponseSchema: z.ZodObject<{
|
|
|
413
413
|
success: boolean;
|
|
414
414
|
data: {
|
|
415
415
|
results: {
|
|
416
|
-
original_context: string;
|
|
417
416
|
compressed_context: string;
|
|
418
417
|
original_tokens: number;
|
|
419
418
|
compressed_tokens: number;
|
|
420
419
|
actual_compression_ratio: number;
|
|
421
420
|
tokens_saved: number;
|
|
422
421
|
duration_ms: number;
|
|
422
|
+
original_context?: string | null | undefined;
|
|
423
423
|
}[];
|
|
424
424
|
total_original_tokens: number;
|
|
425
425
|
total_compressed_tokens: number;
|
|
@@ -63,7 +63,7 @@ export const CompressBatchRequestSchema = z.object({
|
|
|
63
63
|
* Single compression result
|
|
64
64
|
*/
|
|
65
65
|
export const CompressResultSchema = z.object({
|
|
66
|
-
original_context: z.string(),
|
|
66
|
+
original_context: z.string().nullish(),
|
|
67
67
|
compressed_context: z.string(),
|
|
68
68
|
original_tokens: z.number(),
|
|
69
69
|
compressed_tokens: z.number(),
|
|
@@ -76,7 +76,7 @@ export const CompressResultSchema = z.object({
|
|
|
76
76
|
* Batch item result
|
|
77
77
|
*/
|
|
78
78
|
export const CompressBatchItemResultSchema = z.object({
|
|
79
|
-
original_context: z.string(),
|
|
79
|
+
original_context: z.string().nullish(),
|
|
80
80
|
compressed_context: z.string(),
|
|
81
81
|
original_tokens: z.number(),
|
|
82
82
|
compressed_tokens: z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compression.js","sourceRoot":"","sources":["../../../src/schemas/compression.ts"],"names":[],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AM,EAAE;CAClB,CAAC,CAAC;AAIH,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAC9D,IAAI,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,kBAAkB,CAAC,MAAM,CAAC;IACnE,IAAI,EAAE,yBAAyB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compresr/sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "TypeScript SDK for Compresr - Intelligent context compression to reduce LLM API costs by 30-70%",
|
|
5
5
|
"author": "Compresr Team <founders@compresr.ai>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"@types/node": "^20.0.0",
|
|
77
77
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
78
78
|
"@typescript-eslint/parser": "^7.0.0",
|
|
79
|
-
"@vitest/coverage-v8": "^
|
|
79
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
80
80
|
"dotenv": "^16.4.0",
|
|
81
81
|
"eslint": "^8.57.0",
|
|
82
82
|
"msw": "^2.2.0",
|
|
83
83
|
"typescript": "^5.4.0",
|
|
84
|
-
"vitest": "^
|
|
84
|
+
"vitest": "^3.2.4"
|
|
85
85
|
}
|
|
86
86
|
}
|