@veruna/api-contracts 1.1.26 → 1.1.27

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.
@@ -20,6 +20,10 @@ export declare namespace ClientFileAttachCommand {
20
20
  originalFilename: z.ZodString;
21
21
  originalContentType: z.ZodString;
22
22
  originalSize: z.ZodNumber;
23
+ originalKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ processingCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ extractedTokenCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ textPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
27
  }, z.core.$strip>>;
24
28
  }, z.core.$strip>;
25
29
  const URL: (chatId: string) => string;
@@ -11,6 +11,10 @@ export declare const ClientFileAttachmentItemSchema: z.ZodObject<{
11
11
  originalFilename: z.ZodString;
12
12
  originalContentType: z.ZodString;
13
13
  originalSize: z.ZodNumber;
14
+ originalKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ processingCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ extractedTokenCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ textPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
18
  }, z.core.$strip>;
15
19
  export declare const ClientFileAttachResponseSchema: z.ZodObject<{
16
20
  items: z.ZodArray<z.ZodObject<{
@@ -24,6 +28,10 @@ export declare const ClientFileAttachResponseSchema: z.ZodObject<{
24
28
  originalFilename: z.ZodString;
25
29
  originalContentType: z.ZodString;
26
30
  originalSize: z.ZodNumber;
31
+ originalKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ processingCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ extractedTokenCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ textPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
35
  }, z.core.$strip>>;
28
36
  }, z.core.$strip>;
29
37
  export type ClientFileAttachResponseDto = z.infer<typeof ClientFileAttachResponseSchema>;
@@ -15,6 +15,10 @@ exports.ClientFileAttachmentItemSchema = zod_1.z.object({
15
15
  originalFilename: zod_1.z.string().min(1),
16
16
  originalContentType: zod_1.z.string().min(1),
17
17
  originalSize: zod_1.z.number().int().nonnegative(),
18
+ originalKey: zod_1.z.string().nullable().optional(),
19
+ processingCategory: zod_1.z.string().nullable().optional(),
20
+ extractedTokenCount: zod_1.z.number().int().nullable().optional(),
21
+ textPreview: zod_1.z.string().nullable().optional(),
18
22
  });
19
23
  exports.ClientFileAttachResponseSchema = zod_1.z.object({
20
24
  items: zod_1.z.array(exports.ClientFileAttachmentItemSchema),
@@ -1 +1 @@
1
- {"version":3,"file":"client-file-attach-response.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-attach-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAC7C,mEAAyD;AAE5C,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,sCAAc,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC/C,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC;CACjD,CAAC,CAAC"}
1
+ {"version":3,"file":"client-file-attach-response.schema.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-attach-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAC7C,mEAAyD;AAE5C,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,sCAAc,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAE5C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAE7C,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAEpD,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAE3D,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC;CACjD,CAAC,CAAC"}
@@ -1,4 +1,8 @@
1
1
  export declare const CLIENT_FILE_IMAGE_MIME_TYPES: readonly ["image/jpeg", "image/png", "image/webp"];
2
- export declare const CLIENT_FILE_DOC_MIME_TYPES: readonly ["application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "text/plain", "text/markdown", "text/csv", "text/html", "text/css", "text/xml", "application/json", "application/xml", "text/yaml", "application/x-yaml", "text/javascript", "application/javascript", "text/x-python", "application/x-python-code", "text/x-java-source", "text/x-c", "text/x-c++src", "text/x-csharp", "text/x-go", "text/x-rust", "text/x-ruby", "text/x-php", "application/x-php", "text/x-swift", "text/x-kotlin", "text/x-scala", "text/x-sql", "text/x-shellscript", "application/x-sh", "text/x-typescript", "application/typescript"];
2
+ export declare const CLIENT_FILE_TEXT_NATIVE_MIME_TYPES: readonly ["text/plain", "text/markdown", "text/csv", "text/xml", "application/json", "application/xml", "text/yaml", "application/x-yaml", "text/css", "text/javascript", "application/javascript", "text/x-python", "application/x-python-code", "text/x-java-source", "text/x-c", "text/x-c++src", "text/x-csharp", "text/x-go", "text/x-rust", "text/x-ruby", "text/x-php", "application/x-php", "text/x-swift", "text/x-kotlin", "text/x-scala", "text/x-sql", "text/x-shellscript", "application/x-sh", "text/x-typescript", "application/typescript"];
3
+ export declare const CLIENT_FILE_VISUAL_DOC_MIME_TYPES: readonly ["application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "text/html"];
4
+ export declare const CLIENT_FILE_DOC_MIME_TYPES: readonly ["application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "text/html", "text/plain", "text/markdown", "text/csv", "text/xml", "application/json", "application/xml", "text/yaml", "application/x-yaml", "text/css", "text/javascript", "application/javascript", "text/x-python", "application/x-python-code", "text/x-java-source", "text/x-c", "text/x-c++src", "text/x-csharp", "text/x-go", "text/x-rust", "text/x-ruby", "text/x-php", "application/x-php", "text/x-swift", "text/x-kotlin", "text/x-scala", "text/x-sql", "text/x-shellscript", "application/x-sh", "text/x-typescript", "application/typescript"];
3
5
  export type ClientFileImageMimeType = (typeof CLIENT_FILE_IMAGE_MIME_TYPES)[number];
4
6
  export type ClientFileDocMimeType = (typeof CLIENT_FILE_DOC_MIME_TYPES)[number];
7
+ export type ClientFileTextNativeMimeType = (typeof CLIENT_FILE_TEXT_NATIVE_MIME_TYPES)[number];
8
+ export type ClientFileVisualDocMimeType = (typeof CLIENT_FILE_VISUAL_DOC_MIME_TYPES)[number];
@@ -1,29 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CLIENT_FILE_DOC_MIME_TYPES = exports.CLIENT_FILE_IMAGE_MIME_TYPES = void 0;
3
+ exports.CLIENT_FILE_DOC_MIME_TYPES = exports.CLIENT_FILE_VISUAL_DOC_MIME_TYPES = exports.CLIENT_FILE_TEXT_NATIVE_MIME_TYPES = exports.CLIENT_FILE_IMAGE_MIME_TYPES = void 0;
4
4
  exports.CLIENT_FILE_IMAGE_MIME_TYPES = [
5
5
  'image/jpeg',
6
6
  'image/png',
7
7
  'image/webp',
8
8
  ];
9
- exports.CLIENT_FILE_DOC_MIME_TYPES = [
10
- 'application/pdf',
11
- 'application/msword',
12
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
13
- 'application/vnd.ms-excel',
14
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
15
- 'application/vnd.ms-powerpoint',
16
- 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
9
+ exports.CLIENT_FILE_TEXT_NATIVE_MIME_TYPES = [
17
10
  'text/plain',
18
11
  'text/markdown',
19
12
  'text/csv',
20
- 'text/html',
21
- 'text/css',
22
13
  'text/xml',
23
14
  'application/json',
24
15
  'application/xml',
25
16
  'text/yaml',
26
17
  'application/x-yaml',
18
+ 'text/css',
27
19
  'text/javascript',
28
20
  'application/javascript',
29
21
  'text/x-python',
@@ -46,4 +38,18 @@ exports.CLIENT_FILE_DOC_MIME_TYPES = [
46
38
  'text/x-typescript',
47
39
  'application/typescript',
48
40
  ];
41
+ exports.CLIENT_FILE_VISUAL_DOC_MIME_TYPES = [
42
+ 'application/msword',
43
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
44
+ 'application/vnd.ms-excel',
45
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
46
+ 'application/vnd.ms-powerpoint',
47
+ 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
48
+ 'text/html',
49
+ ];
50
+ exports.CLIENT_FILE_DOC_MIME_TYPES = [
51
+ 'application/pdf',
52
+ ...exports.CLIENT_FILE_VISUAL_DOC_MIME_TYPES,
53
+ ...exports.CLIENT_FILE_TEXT_NATIVE_MIME_TYPES,
54
+ ];
49
55
  //# sourceMappingURL=client-file-mime-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-file-mime-types.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-mime-types.ts"],"names":[],"mappings":";;;AACa,QAAA,4BAA4B,GAAG;IACxC,YAAY;IACZ,WAAW;IACX,YAAY;CACN,CAAC;AAGE,QAAA,0BAA0B,GAAG;IAEtC,iBAAiB;IACjB,oBAAoB;IACpB,yEAAyE;IACzE,0BAA0B;IAC1B,mEAAmE;IACnE,+BAA+B;IAC/B,2EAA2E;IAE3E,YAAY;IACZ,eAAe;IACf,UAAU;IACV,WAAW;IACX,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,iBAAiB;IACjB,WAAW;IACX,oBAAoB;IAEpB,iBAAiB;IACjB,wBAAwB;IACxB,eAAe;IACf,2BAA2B;IAC3B,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,eAAe;IACf,WAAW;IACX,aAAa;IACb,aAAa;IACb,YAAY;IACZ,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,YAAY;IACZ,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,wBAAwB;CAClB,CAAC"}
1
+ {"version":3,"file":"client-file-mime-types.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-mime-types.ts"],"names":[],"mappings":";;;AACa,QAAA,4BAA4B,GAAG;IACxC,YAAY;IACZ,WAAW;IACX,YAAY;CACN,CAAC;AAUE,QAAA,kCAAkC,GAAG;IAE9C,YAAY;IACZ,eAAe;IACf,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,iBAAiB;IACjB,WAAW;IACX,oBAAoB;IACpB,UAAU;IAEV,iBAAiB;IACjB,wBAAwB;IACxB,eAAe;IACf,2BAA2B;IAC3B,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,eAAe;IACf,WAAW;IACX,aAAa;IACb,aAAa;IACb,YAAY;IACZ,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,YAAY;IACZ,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,wBAAwB;CAClB,CAAC;AAOE,QAAA,iCAAiC,GAAG;IAC7C,oBAAoB;IACpB,yEAAyE;IACzE,0BAA0B;IAC1B,mEAAmE;IACnE,+BAA+B;IAC/B,2EAA2E;IAC3E,WAAW;CACL,CAAC;AAOE,QAAA,0BAA0B,GAAG;IACtC,iBAAiB;IACjB,GAAG,yCAAiC;IACpC,GAAG,0CAAkC;CAC/B,CAAC"}
@@ -9,3 +9,4 @@ export * from './client-file-delete-response.schema';
9
9
  export * from './client-file-attach-request.schema';
10
10
  export * from './client-file-attach-response.schema';
11
11
  export * from './client-file-mime-types';
12
+ export * from './processing-category.enum';
@@ -25,4 +25,5 @@ __exportStar(require("./client-file-delete-response.schema"), exports);
25
25
  __exportStar(require("./client-file-attach-request.schema"), exports);
26
26
  __exportStar(require("./client-file-attach-response.schema"), exports);
27
27
  __exportStar(require("./client-file-mime-types"), exports);
28
+ __exportStar(require("./processing-category.enum"), exports);
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,gEAA8C;AAC9C,mEAAiD;AACjD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AACnD,uEAAqD;AACrD,uEAAqD;AACrD,sEAAoD;AACpD,uEAAqD;AACrD,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,gEAA8C;AAC9C,mEAAiD;AACjD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AACnD,uEAAqD;AACrD,uEAAqD;AACrD,sEAAoD;AACpD,uEAAqD;AACrD,2DAAyC;AACzC,6DAA2C"}
@@ -0,0 +1,6 @@
1
+ export declare enum FileProcessingCategory {
2
+ TEXT_NATIVE = "text_native",
3
+ VISUAL_DOC = "visual_doc",
4
+ PDF = "pdf",
5
+ IMAGE = "image"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileProcessingCategory = void 0;
4
+ var FileProcessingCategory;
5
+ (function (FileProcessingCategory) {
6
+ FileProcessingCategory["TEXT_NATIVE"] = "text_native";
7
+ FileProcessingCategory["VISUAL_DOC"] = "visual_doc";
8
+ FileProcessingCategory["PDF"] = "pdf";
9
+ FileProcessingCategory["IMAGE"] = "image";
10
+ })(FileProcessingCategory || (exports.FileProcessingCategory = FileProcessingCategory = {}));
11
+ //# sourceMappingURL=processing-category.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processing-category.enum.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/processing-category.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,sBASX;AATD,WAAY,sBAAsB;IAE9B,qDAA2B,CAAA;IAE3B,mDAAyB,CAAA;IAEzB,qCAAW,CAAA;IAEX,yCAAe,CAAA;AACnB,CAAC,EATW,sBAAsB,sCAAtB,sBAAsB,QASjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veruna/api-contracts",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "API contracts for Veruna project - Zod schemas, types, and paths",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",