@veruna/api-contracts 20.6.0-vd205.0 → 21.3.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/build/locales/en.d.ts +1 -0
- package/build/locales/en.js +1 -0
- package/build/locales/en.js.map +1 -1
- package/build/locales/index.d.ts +2 -0
- package/build/locales/ru.d.ts +1 -0
- package/build/locales/ru.js +1 -0
- package/build/locales/ru.js.map +1 -1
- package/build/locales/validation.d.ts +0 -26
- package/build/locales/validation.js +0 -22
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +5 -17
- package/build/rest-api.js +5 -17
- package/build/rest-api.js.map +1 -1
- package/build/routes/s2s.routes.d.ts +5 -17
- package/build/routes/s2s.routes.js +6 -18
- package/build/routes/s2s.routes.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/tool-id.enum.d.ts +0 -1
- package/build/v1/ai/tool-id.enum.js +0 -1
- package/build/v1/ai/tool-id.enum.js.map +1 -1
- package/build/v1/ai-call/ai-accounting-provider.enum.d.ts +12 -0
- package/build/v1/ai-call/ai-accounting-provider.enum.js +17 -0
- package/build/v1/ai-call/ai-accounting-provider.enum.js.map +1 -0
- package/build/v1/ai-call/ai-call-request-params.schema.d.ts +9 -0
- package/build/v1/ai-call/ai-call-request-params.schema.js +15 -1
- package/build/v1/ai-call/ai-call-request-params.schema.js.map +1 -1
- package/build/v1/ai-call/ai-cost-source.enum.d.ts +18 -24
- package/build/v1/ai-call/ai-cost-source.enum.js +20 -15
- package/build/v1/ai-call/ai-cost-source.enum.js.map +1 -1
- package/build/v1/ai-call/ai-route-switch-kind.enum.d.ts +9 -0
- package/build/v1/ai-call/ai-route-switch-kind.enum.js +14 -0
- package/build/v1/ai-call/ai-route-switch-kind.enum.js.map +1 -0
- package/build/v1/ai-call/index.d.ts +2 -1
- package/build/v1/ai-call/index.js +2 -1
- package/build/v1/ai-call/index.js.map +1 -1
- package/build/v1/ai-model/schemas/api-provider.enum.d.ts +2 -1
- package/build/v1/ai-model/schemas/api-provider.enum.js +1 -0
- package/build/v1/ai-model/schemas/api-provider.enum.js.map +1 -1
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +4 -23
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +4 -23
- package/build/v1/chat/commands/update-chat-title.command.d.ts +4 -23
- package/build/v1/chat/commands/update-chat.command.d.ts +4 -23
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +4 -23
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +4 -23
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +4 -23
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +4 -23
- package/build/v1/client-file/client-document.constants.d.ts +10 -0
- package/build/v1/client-file/client-document.constants.js +14 -0
- package/build/v1/client-file/client-document.constants.js.map +1 -0
- package/build/v1/client-file/client-file-content-kind.d.ts +2 -2
- package/build/v1/client-file/client-file-content-kind.js +10 -10
- package/build/v1/client-file/client-file-content-kind.js.map +1 -1
- package/build/v1/client-file/commands/client-document.s2s.d.ts +42 -0
- package/build/v1/client-file/commands/client-document.s2s.js +26 -0
- package/build/v1/client-file/commands/client-document.s2s.js.map +1 -0
- package/build/v1/client-file/commands/client-file-attach.command.d.ts +2 -7
- package/build/v1/client-file/commands/client-file-upload.command.d.ts +3 -14
- package/build/v1/client-file/commands/index.d.ts +1 -4
- package/build/v1/client-file/commands/index.js +1 -4
- package/build/v1/client-file/commands/index.js.map +1 -1
- package/build/v1/client-file/index.d.ts +1 -2
- package/build/v1/client-file/index.js +1 -2
- package/build/v1/client-file/index.js.map +1 -1
- package/build/v1/client-file/queries/client-document.s2s.d.ts +71 -0
- package/build/v1/client-file/queries/client-document.s2s.js +35 -0
- package/build/v1/client-file/queries/client-document.s2s.js.map +1 -0
- package/build/v1/client-file/queries/client-file-list.query.d.ts +3 -14
- package/build/v1/client-file/queries/client-file-reading.s2s.d.ts +0 -260
- package/build/v1/client-file/queries/client-file-reading.s2s.js +1 -73
- package/build/v1/client-file/queries/client-file-reading.s2s.js.map +1 -1
- package/build/v1/client-file/queries/index.d.ts +1 -3
- package/build/v1/client-file/queries/index.js +1 -3
- package/build/v1/client-file/queries/index.js.map +1 -1
- package/build/v1/client-file/queries/user-files-list.query.d.ts +6 -31
- package/build/v1/client-file/schemas/client-document-page-unavailable.enum.d.ts +5 -0
- package/build/v1/client-file/schemas/client-document-page-unavailable.enum.js +10 -0
- package/build/v1/client-file/schemas/client-document-page-unavailable.enum.js.map +1 -0
- package/build/v1/client-file/schemas/client-document.schema.d.ts +60 -0
- package/build/v1/client-file/schemas/client-document.schema.js +77 -0
- package/build/v1/client-file/schemas/client-document.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-attach-response.schema.d.ts +6 -14
- package/build/v1/client-file/schemas/client-file-attach-response.schema.js +5 -1
- package/build/v1/client-file/schemas/client-file-attach-response.schema.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-content-kind.enum.d.ts +9 -0
- package/build/v1/client-file/schemas/client-file-content-kind.enum.js +14 -0
- package/build/v1/client-file/schemas/client-file-content-kind.enum.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-internal-import.schema.d.ts +15 -0
- package/build/v1/client-file/schemas/client-file-internal-import.schema.js +34 -0
- package/build/v1/client-file/schemas/client-file-internal-import.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-item-response.schema.d.ts +6 -14
- package/build/v1/client-file/schemas/client-file-item-response.schema.js +5 -1
- package/build/v1/client-file/schemas/client-file-item-response.schema.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-list-response.schema.d.ts +3 -14
- package/build/v1/client-file/schemas/client-file-mark.enum.d.ts +7 -1
- package/build/v1/client-file/schemas/client-file-mark.enum.js +9 -4
- package/build/v1/client-file/schemas/client-file-mark.enum.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-reading.schema.d.ts +10 -0
- package/build/v1/client-file/schemas/client-file-reading.schema.js +11 -0
- package/build/v1/client-file/schemas/client-file-reading.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-status.enum.d.ts +20 -1
- package/build/v1/client-file/schemas/client-file-status.enum.js +22 -4
- package/build/v1/client-file/schemas/client-file-status.enum.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-type.enum.d.ts +4 -1
- package/build/v1/client-file/schemas/client-file-type.enum.js +6 -4
- package/build/v1/client-file/schemas/client-file-type.enum.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-upload-query.schema.d.ts +2 -5
- package/build/v1/client-file/schemas/client-file-upload-response.schema.d.ts +3 -14
- package/build/v1/client-file/schemas/index.d.ts +5 -6
- package/build/v1/client-file/schemas/index.js +5 -6
- package/build/v1/client-file/schemas/index.js.map +1 -1
- package/build/v1/client-file/schemas/magic-verdict.enum.d.ts +8 -0
- package/build/v1/client-file/schemas/magic-verdict.enum.js +13 -0
- package/build/v1/client-file/schemas/magic-verdict.enum.js.map +1 -0
- package/build/v1/client-file/schemas/processing-category.enum.d.ts +10 -1
- package/build/v1/client-file/schemas/processing-category.enum.js +12 -4
- package/build/v1/client-file/schemas/processing-category.enum.js.map +1 -1
- package/build/v1/client-file/schemas/upload-magic-type.enum.d.ts +16 -0
- package/build/v1/client-file/schemas/upload-magic-type.enum.js +21 -0
- package/build/v1/client-file/schemas/upload-magic-type.enum.js.map +1 -0
- package/build/v1/client-file/schemas/user-file-item-response.schema.d.ts +8 -20
- package/build/v1/client-file/schemas/user-files-list-request.schema.d.ts +4 -11
- package/build/v1/client-file/schemas/user-files-list-response.schema.d.ts +4 -20
- package/build/v1/client-file/upload-magic-bytes.d.ts +4 -4
- package/build/v1/client-file/upload-magic-bytes.js +47 -49
- package/build/v1/client-file/upload-magic-bytes.js.map +1 -1
- package/build/v1/message/commands/create-message.command.d.ts +2 -12
- package/build/v1/message/queries/get-message-stream-reg.query.d.ts +2 -12
- package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +2 -12
- package/build/v1/message/schemas/index.d.ts +1 -0
- package/build/v1/message/schemas/index.js +5 -3
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/message-attachment-response.schema.d.ts +3 -6
- package/build/v1/message/schemas/message-response.schema.d.ts +4 -23
- package/build/v1/message/schemas/message-step-response.schema.d.ts +9 -60
- package/build/v1/message/schemas/message-stream-frame.schema.d.ts +1 -6
- package/build/v1/message/schemas/preparation-phase.enum.d.ts +4 -0
- package/build/v1/message/schemas/preparation-phase.enum.js +9 -0
- package/build/v1/message/schemas/preparation-phase.enum.js.map +1 -0
- package/build/v1/message/schemas/send-file-step-content.schema.js +4 -1
- package/build/v1/message/schemas/send-file-step-content.schema.js.map +1 -1
- package/build/v1/message/schemas/stream-events.schema.d.ts +4 -13
- package/build/v1/message/schemas/stream-events.schema.js +3 -4
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build/v1/message/schemas/view-file-delivery.enum.d.ts +6 -0
- package/build/v1/message/schemas/view-file-delivery.enum.js +11 -0
- package/build/v1/message/schemas/view-file-delivery.enum.js.map +1 -0
- package/build/v1/message/schemas/view-file-mode.enum.d.ts +7 -0
- package/build/v1/message/schemas/view-file-mode.enum.js +12 -0
- package/build/v1/message/schemas/view-file-mode.enum.js.map +1 -0
- package/build/v1/message/schemas/view-file-read-state.enum.d.ts +7 -0
- package/build/v1/message/schemas/view-file-read-state.enum.js +12 -0
- package/build/v1/message/schemas/view-file-read-state.enum.js.map +1 -0
- package/build/v1/message/schemas/view-file-step-content.schema.d.ts +11 -48
- package/build/v1/message/schemas/view-file-step-content.schema.js +13 -6
- package/build/v1/message/schemas/view-file-step-content.schema.js.map +1 -1
- package/build/v1/model-route/schemas/provider-generation-config.schema.js +1 -1
- package/build/v1/model-route/schemas/provider-generation-config.schema.js.map +1 -1
- package/build/v1/model-route/schemas/reseller-transport.enum.d.ts +2 -2
- package/build/v1/model-route/schemas/reseller-transport.enum.js +2 -2
- package/build/v1/plans/queries/list-plans.query.d.ts +1 -0
- package/build/v1/plans/schemas/plan.schema.d.ts +3 -0
- package/build/v1/plans/schemas/plan.schema.js +11 -0
- package/build/v1/plans/schemas/plan.schema.js.map +1 -1
- package/build/v1/s2s/queries/list-client-files.query.d.ts +3 -14
- package/build/v1/subscription/subscription.errors.d.ts +7 -1
- package/build/v1/subscription/subscription.errors.js +10 -0
- package/build/v1/subscription/subscription.errors.js.map +1 -1
- package/build-esm/.tsbuildinfo +1 -1
- package/build-esm/locales/en.js +1 -0
- package/build-esm/locales/en.js.map +1 -1
- package/build-esm/locales/ru.js +1 -0
- package/build-esm/locales/ru.js.map +1 -1
- package/build-esm/locales/validation.js +0 -22
- package/build-esm/locales/validation.js.map +1 -1
- package/build-esm/rest-api.js +5 -17
- package/build-esm/rest-api.js.map +1 -1
- package/build-esm/routes/s2s.routes.js +6 -18
- package/build-esm/routes/s2s.routes.js.map +1 -1
- package/build-esm/v1/ai/tool-id.enum.js +0 -1
- package/build-esm/v1/ai/tool-id.enum.js.map +1 -1
- package/build-esm/v1/ai-call/ai-accounting-provider.enum.js +14 -0
- package/build-esm/v1/ai-call/ai-accounting-provider.enum.js.map +1 -0
- package/build-esm/v1/ai-call/ai-call-request-params.schema.js +14 -0
- package/build-esm/v1/ai-call/ai-call-request-params.schema.js.map +1 -1
- package/build-esm/v1/ai-call/ai-cost-source.enum.js +19 -14
- package/build-esm/v1/ai-call/ai-cost-source.enum.js.map +1 -1
- package/build-esm/v1/ai-call/ai-route-switch-kind.enum.js +11 -0
- package/build-esm/v1/ai-call/ai-route-switch-kind.enum.js.map +1 -0
- package/build-esm/v1/ai-call/index.js +2 -1
- package/build-esm/v1/ai-call/index.js.map +1 -1
- package/build-esm/v1/ai-model/schemas/api-provider.enum.js +1 -0
- package/build-esm/v1/ai-model/schemas/api-provider.enum.js.map +1 -1
- package/build-esm/v1/client-file/client-document.constants.js +11 -0
- package/build-esm/v1/client-file/client-document.constants.js.map +1 -0
- package/build-esm/v1/client-file/client-file-content-kind.js +2 -2
- package/build-esm/v1/client-file/client-file-content-kind.js.map +1 -1
- package/build-esm/v1/client-file/commands/client-document.s2s.js +23 -0
- package/build-esm/v1/client-file/commands/client-document.s2s.js.map +1 -0
- package/build-esm/v1/client-file/commands/index.js +1 -4
- package/build-esm/v1/client-file/commands/index.js.map +1 -1
- package/build-esm/v1/client-file/index.js +1 -2
- package/build-esm/v1/client-file/index.js.map +1 -1
- package/build-esm/v1/client-file/queries/client-document.s2s.js +32 -0
- package/build-esm/v1/client-file/queries/client-document.s2s.js.map +1 -0
- package/build-esm/v1/client-file/queries/client-file-reading.s2s.js +0 -72
- package/build-esm/v1/client-file/queries/client-file-reading.s2s.js.map +1 -1
- package/build-esm/v1/client-file/queries/index.js +1 -3
- package/build-esm/v1/client-file/queries/index.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-document-page-unavailable.enum.js +7 -0
- package/build-esm/v1/client-file/schemas/client-document-page-unavailable.enum.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-document.schema.js +74 -0
- package/build-esm/v1/client-file/schemas/client-document.schema.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-file-attach-response.schema.js +5 -1
- package/build-esm/v1/client-file/schemas/client-file-attach-response.schema.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-file-content-kind.enum.js +11 -0
- package/build-esm/v1/client-file/schemas/client-file-content-kind.enum.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-file-internal-import.schema.js +31 -0
- package/build-esm/v1/client-file/schemas/client-file-internal-import.schema.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-file-item-response.schema.js +5 -1
- package/build-esm/v1/client-file/schemas/client-file-item-response.schema.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-file-mark.enum.js +8 -1
- package/build-esm/v1/client-file/schemas/client-file-mark.enum.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-file-reading.schema.js +8 -0
- package/build-esm/v1/client-file/schemas/client-file-reading.schema.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-file-status.enum.js +21 -1
- package/build-esm/v1/client-file/schemas/client-file-status.enum.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-file-type.enum.js +5 -1
- package/build-esm/v1/client-file/schemas/client-file-type.enum.js.map +1 -1
- package/build-esm/v1/client-file/schemas/index.js +5 -6
- package/build-esm/v1/client-file/schemas/index.js.map +1 -1
- package/build-esm/v1/client-file/schemas/magic-verdict.enum.js +10 -0
- package/build-esm/v1/client-file/schemas/magic-verdict.enum.js.map +1 -0
- package/build-esm/v1/client-file/schemas/processing-category.enum.js +11 -1
- package/build-esm/v1/client-file/schemas/processing-category.enum.js.map +1 -1
- package/build-esm/v1/client-file/schemas/upload-magic-type.enum.js +18 -0
- package/build-esm/v1/client-file/schemas/upload-magic-type.enum.js.map +1 -0
- package/build-esm/v1/client-file/upload-magic-bytes.js +4 -4
- package/build-esm/v1/client-file/upload-magic-bytes.js.map +1 -1
- package/build-esm/v1/message/schemas/index.js +1 -0
- package/build-esm/v1/message/schemas/index.js.map +1 -1
- package/build-esm/v1/message/schemas/preparation-phase.enum.js +6 -0
- package/build-esm/v1/message/schemas/preparation-phase.enum.js.map +1 -0
- package/build-esm/v1/message/schemas/send-file-step-content.schema.js +4 -1
- package/build-esm/v1/message/schemas/send-file-step-content.schema.js.map +1 -1
- package/build-esm/v1/message/schemas/stream-events.schema.js +3 -4
- package/build-esm/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build-esm/v1/message/schemas/view-file-delivery.enum.js +8 -0
- package/build-esm/v1/message/schemas/view-file-delivery.enum.js.map +1 -0
- package/build-esm/v1/message/schemas/view-file-mode.enum.js +9 -0
- package/build-esm/v1/message/schemas/view-file-mode.enum.js.map +1 -0
- package/build-esm/v1/message/schemas/view-file-read-state.enum.js +9 -0
- package/build-esm/v1/message/schemas/view-file-read-state.enum.js.map +1 -0
- package/build-esm/v1/message/schemas/view-file-step-content.schema.js +9 -5
- package/build-esm/v1/message/schemas/view-file-step-content.schema.js.map +1 -1
- package/build-esm/v1/model-route/schemas/provider-generation-config.schema.js +1 -1
- package/build-esm/v1/model-route/schemas/provider-generation-config.schema.js.map +1 -1
- package/build-esm/v1/model-route/schemas/reseller-transport.enum.js +2 -2
- package/build-esm/v1/plans/schemas/plan.schema.js +11 -0
- package/build-esm/v1/plans/schemas/plan.schema.js.map +1 -1
- package/build-esm/v1/subscription/subscription.errors.js +10 -0
- package/build-esm/v1/subscription/subscription.errors.js.map +1 -1
- package/package.json +15 -15
- package/build/v1/ai-call/ai-native-usage.schema.d.ts +0 -43
- package/build/v1/ai-call/ai-native-usage.schema.js +0 -27
- package/build/v1/ai-call/ai-native-usage.schema.js.map +0 -1
- package/build/v1/client-file/commands/client-file-ocr-artifact.s2s.d.ts +0 -68
- package/build/v1/client-file/commands/client-file-ocr-artifact.s2s.js +0 -25
- package/build/v1/client-file/commands/client-file-ocr-artifact.s2s.js.map +0 -1
- package/build/v1/client-file/commands/client-file-preparation.s2s.d.ts +0 -93
- package/build/v1/client-file/commands/client-file-preparation.s2s.js +0 -29
- package/build/v1/client-file/commands/client-file-preparation.s2s.js.map +0 -1
- package/build/v1/client-file/commands/document-page-read.s2s.d.ts +0 -258
- package/build/v1/client-file/commands/document-page-read.s2s.js +0 -29
- package/build/v1/client-file/commands/document-page-read.s2s.js.map +0 -1
- package/build/v1/client-file/commands/document-snapshot-pages.s2s.d.ts +0 -56
- package/build/v1/client-file/commands/document-snapshot-pages.s2s.js +0 -15
- package/build/v1/client-file/commands/document-snapshot-pages.s2s.js.map +0 -1
- package/build/v1/client-file/document-page-read.constants.d.ts +0 -9
- package/build/v1/client-file/document-page-read.constants.js +0 -13
- package/build/v1/client-file/document-page-read.constants.js.map +0 -1
- package/build/v1/client-file/file-preparation.constants.d.ts +0 -1
- package/build/v1/client-file/file-preparation.constants.js +0 -5
- package/build/v1/client-file/file-preparation.constants.js.map +0 -1
- package/build/v1/client-file/queries/client-file-ocr-artifact.s2s.d.ts +0 -33
- package/build/v1/client-file/queries/client-file-ocr-artifact.s2s.js +0 -17
- package/build/v1/client-file/queries/client-file-ocr-artifact.s2s.js.map +0 -1
- package/build/v1/client-file/queries/client-file-preparation.s2s.d.ts +0 -72
- package/build/v1/client-file/queries/client-file-preparation.s2s.js +0 -17
- package/build/v1/client-file/queries/client-file-preparation.s2s.js.map +0 -1
- package/build/v1/client-file/queries/document-page-read.s2s.d.ts +0 -74
- package/build/v1/client-file/queries/document-page-read.s2s.js +0 -15
- package/build/v1/client-file/queries/document-page-read.s2s.js.map +0 -1
- package/build/v1/client-file/schemas/client-file-mark.schema.d.ts +0 -9
- package/build/v1/client-file/schemas/client-file-mark.schema.js +0 -10
- package/build/v1/client-file/schemas/client-file-mark.schema.js.map +0 -1
- package/build/v1/client-file/schemas/client-file-ocr-artifact.schema.d.ts +0 -61
- package/build/v1/client-file/schemas/client-file-ocr-artifact.schema.js +0 -30
- package/build/v1/client-file/schemas/client-file-ocr-artifact.schema.js.map +0 -1
- package/build/v1/client-file/schemas/client-file-pages.schema.d.ts +0 -283
- package/build/v1/client-file/schemas/client-file-pages.schema.js +0 -183
- package/build/v1/client-file/schemas/client-file-pages.schema.js.map +0 -1
- package/build/v1/client-file/schemas/client-file-preparation.schema.d.ts +0 -165
- package/build/v1/client-file/schemas/client-file-preparation.schema.js +0 -72
- package/build/v1/client-file/schemas/client-file-preparation.schema.js.map +0 -1
- package/build/v1/client-file/schemas/client-file-search.schema.d.ts +0 -75
- package/build/v1/client-file/schemas/client-file-search.schema.js +0 -74
- package/build/v1/client-file/schemas/client-file-search.schema.js.map +0 -1
- package/build/v1/client-file/schemas/client-file-status.schema.d.ts +0 -17
- package/build/v1/client-file/schemas/client-file-status.schema.js +0 -14
- package/build/v1/client-file/schemas/client-file-status.schema.js.map +0 -1
- package/build/v1/client-file/schemas/client-file-type.schema.d.ts +0 -11
- package/build/v1/client-file/schemas/client-file-type.schema.js +0 -11
- package/build/v1/client-file/schemas/client-file-type.schema.js.map +0 -1
- package/build/v1/client-file/schemas/document-page-read.schema.d.ts +0 -210
- package/build/v1/client-file/schemas/document-page-read.schema.js +0 -76
- package/build/v1/client-file/schemas/document-page-read.schema.js.map +0 -1
- package/build/v1/client-file/schemas/document-snapshot-pages.schema.d.ts +0 -48
- package/build/v1/client-file/schemas/document-snapshot-pages.schema.js +0 -38
- package/build/v1/client-file/schemas/document-snapshot-pages.schema.js.map +0 -1
- package/build/v1/client-file/schemas/magic-verdict.schema.d.ts +0 -13
- package/build/v1/client-file/schemas/magic-verdict.schema.js +0 -12
- package/build/v1/client-file/schemas/magic-verdict.schema.js.map +0 -1
- package/build/v1/client-file/schemas/processing-category.schema.d.ts +0 -15
- package/build/v1/client-file/schemas/processing-category.schema.js +0 -13
- package/build/v1/client-file/schemas/processing-category.schema.js.map +0 -1
- package/build/v1/client-file/schemas/upload-magic-type.schema.d.ts +0 -27
- package/build/v1/client-file/schemas/upload-magic-type.schema.js +0 -19
- package/build/v1/client-file/schemas/upload-magic-type.schema.js.map +0 -1
- package/build-esm/v1/ai-call/ai-native-usage.schema.js +0 -24
- package/build-esm/v1/ai-call/ai-native-usage.schema.js.map +0 -1
- package/build-esm/v1/client-file/commands/client-file-ocr-artifact.s2s.js +0 -22
- package/build-esm/v1/client-file/commands/client-file-ocr-artifact.s2s.js.map +0 -1
- package/build-esm/v1/client-file/commands/client-file-preparation.s2s.js +0 -26
- package/build-esm/v1/client-file/commands/client-file-preparation.s2s.js.map +0 -1
- package/build-esm/v1/client-file/commands/document-page-read.s2s.js +0 -26
- package/build-esm/v1/client-file/commands/document-page-read.s2s.js.map +0 -1
- package/build-esm/v1/client-file/commands/document-snapshot-pages.s2s.js +0 -12
- package/build-esm/v1/client-file/commands/document-snapshot-pages.s2s.js.map +0 -1
- package/build-esm/v1/client-file/document-page-read.constants.js +0 -10
- package/build-esm/v1/client-file/document-page-read.constants.js.map +0 -1
- package/build-esm/v1/client-file/file-preparation.constants.js +0 -2
- package/build-esm/v1/client-file/file-preparation.constants.js.map +0 -1
- package/build-esm/v1/client-file/queries/client-file-ocr-artifact.s2s.js +0 -14
- package/build-esm/v1/client-file/queries/client-file-ocr-artifact.s2s.js.map +0 -1
- package/build-esm/v1/client-file/queries/client-file-preparation.s2s.js +0 -14
- package/build-esm/v1/client-file/queries/client-file-preparation.s2s.js.map +0 -1
- package/build-esm/v1/client-file/queries/document-page-read.s2s.js +0 -12
- package/build-esm/v1/client-file/queries/document-page-read.s2s.js.map +0 -1
- package/build-esm/v1/client-file/schemas/client-file-mark.schema.js +0 -7
- package/build-esm/v1/client-file/schemas/client-file-mark.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/client-file-ocr-artifact.schema.js +0 -27
- package/build-esm/v1/client-file/schemas/client-file-ocr-artifact.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/client-file-pages.schema.js +0 -180
- package/build-esm/v1/client-file/schemas/client-file-pages.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/client-file-preparation.schema.js +0 -69
- package/build-esm/v1/client-file/schemas/client-file-preparation.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/client-file-search.schema.js +0 -71
- package/build-esm/v1/client-file/schemas/client-file-search.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/client-file-status.schema.js +0 -11
- package/build-esm/v1/client-file/schemas/client-file-status.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/client-file-type.schema.js +0 -8
- package/build-esm/v1/client-file/schemas/client-file-type.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/document-page-read.schema.js +0 -73
- package/build-esm/v1/client-file/schemas/document-page-read.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/document-snapshot-pages.schema.js +0 -35
- package/build-esm/v1/client-file/schemas/document-snapshot-pages.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/magic-verdict.schema.js +0 -9
- package/build-esm/v1/client-file/schemas/magic-verdict.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/processing-category.schema.js +0 -10
- package/build-esm/v1/client-file/schemas/processing-category.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/upload-magic-type.schema.js +0 -16
- package/build-esm/v1/client-file/schemas/upload-magic-type.schema.js.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadMagicType = void 0;
|
|
4
|
+
var UploadMagicType;
|
|
5
|
+
(function (UploadMagicType) {
|
|
6
|
+
UploadMagicType["PNG"] = "PNG";
|
|
7
|
+
UploadMagicType["JPEG"] = "JPEG";
|
|
8
|
+
UploadMagicType["GIF"] = "GIF";
|
|
9
|
+
UploadMagicType["WEBP"] = "WEBP";
|
|
10
|
+
UploadMagicType["PDF"] = "PDF";
|
|
11
|
+
/** ZIP container. Every OOXML document (docx/xlsx/pptx) is one. */
|
|
12
|
+
UploadMagicType["ZIP"] = "ZIP";
|
|
13
|
+
/** OLE2 compound file — legacy .doc/.xls/.ppt. */
|
|
14
|
+
UploadMagicType["OLE2"] = "OLE2";
|
|
15
|
+
UploadMagicType["RTF"] = "RTF";
|
|
16
|
+
/** Windows PE, ELF, Mach-O, or a shebang script. Never uploadable. */
|
|
17
|
+
UploadMagicType["EXECUTABLE"] = "EXECUTABLE";
|
|
18
|
+
/** No signature matched. Plain text has none, so this is not by itself a verdict. */
|
|
19
|
+
UploadMagicType["UNKNOWN"] = "UNKNOWN";
|
|
20
|
+
})(UploadMagicType || (exports.UploadMagicType = UploadMagicType = {}));
|
|
21
|
+
//# sourceMappingURL=upload-magic-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-magic-type.enum.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/upload-magic-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAeX;AAfD,WAAY,eAAe;IACvB,8BAAW,CAAA;IACX,gCAAa,CAAA;IACb,8BAAW,CAAA;IACX,gCAAa,CAAA;IACb,8BAAW,CAAA;IACX,mEAAmE;IACnE,8BAAW,CAAA;IACX,kDAAkD;IAClD,gCAAa,CAAA;IACb,8BAAW,CAAA;IACX,sEAAsE;IACtE,4CAAyB,CAAA;IACzB,qFAAqF;IACrF,sCAAmB,CAAA;AACvB,CAAC,EAfW,eAAe,+BAAf,eAAe,QAe1B"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ClientFileType } from './client-file-type.enum';
|
|
3
|
+
import { ClientFileStatus } from './client-file-status.enum';
|
|
4
|
+
import { ClientFileMark } from './client-file-mark.enum';
|
|
5
|
+
import { FileProcessingCategory } from './processing-category.enum';
|
|
2
6
|
/**
|
|
3
7
|
* Single row in the cross-chat user file listing.
|
|
4
8
|
*
|
|
@@ -9,17 +13,8 @@ import { z } from 'zod';
|
|
|
9
13
|
*/
|
|
10
14
|
export declare const UserFileItemResponseSchema: z.ZodObject<{
|
|
11
15
|
uuid: z.ZodString;
|
|
12
|
-
type: z.ZodEnum<
|
|
13
|
-
|
|
14
|
-
DOC: "DOC";
|
|
15
|
-
}>;
|
|
16
|
-
status: z.ZodEnum<{
|
|
17
|
-
DELETED: "DELETED";
|
|
18
|
-
PENDING: "PENDING";
|
|
19
|
-
UPLOADING: "UPLOADING";
|
|
20
|
-
ATTACHED: "ATTACHED";
|
|
21
|
-
AI_GENERATED: "AI_GENERATED";
|
|
22
|
-
}>;
|
|
16
|
+
type: z.ZodEnum<typeof ClientFileType>;
|
|
17
|
+
status: z.ZodEnum<typeof ClientFileStatus>;
|
|
23
18
|
s3Url: z.ZodString;
|
|
24
19
|
contentType: z.ZodString;
|
|
25
20
|
size: z.ZodNumber;
|
|
@@ -32,15 +27,8 @@ export declare const UserFileItemResponseSchema: z.ZodObject<{
|
|
|
32
27
|
messageRef: z.ZodNullable<z.ZodObject<{
|
|
33
28
|
id: z.ZodString;
|
|
34
29
|
}, z.core.$strip>>;
|
|
35
|
-
processingCategory: z.ZodNullable<z.ZodEnum<
|
|
36
|
-
|
|
37
|
-
PDF: "PDF";
|
|
38
|
-
TEXT_NATIVE: "TEXT_NATIVE";
|
|
39
|
-
VISUAL_DOC: "VISUAL_DOC";
|
|
40
|
-
}>>;
|
|
41
|
-
marks: z.ZodArray<z.ZodEnum<{
|
|
42
|
-
PASTED: "PASTED";
|
|
43
|
-
}>>;
|
|
30
|
+
processingCategory: z.ZodNullable<z.ZodEnum<typeof FileProcessingCategory>>;
|
|
31
|
+
marks: z.ZodArray<z.ZodEnum<typeof ClientFileMark>>;
|
|
44
32
|
createdAt: z.ZodString;
|
|
45
33
|
updatedAt: z.ZodString;
|
|
46
34
|
}, z.core.$strip>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ClientFileStatus } from './client-file-status.enum';
|
|
3
|
+
import { ClientFileType } from './client-file-type.enum';
|
|
2
4
|
/**
|
|
3
5
|
* Query string for `GET /file-api/v1/client/files`.
|
|
4
6
|
*
|
|
@@ -13,16 +15,7 @@ import { z } from 'zod';
|
|
|
13
15
|
export declare const UserFilesListRequestSchema: z.ZodObject<{
|
|
14
16
|
cursor: z.ZodOptional<z.ZodString>;
|
|
15
17
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
16
|
-
status: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
17
|
-
|
|
18
|
-
PENDING: "PENDING";
|
|
19
|
-
UPLOADING: "UPLOADING";
|
|
20
|
-
ATTACHED: "ATTACHED";
|
|
21
|
-
AI_GENERATED: "AI_GENERATED";
|
|
22
|
-
}>>>;
|
|
23
|
-
type: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
24
|
-
IMAGE: "IMAGE";
|
|
25
|
-
DOC: "DOC";
|
|
26
|
-
}>>>;
|
|
18
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof ClientFileStatus>>>;
|
|
19
|
+
type: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof ClientFileType>>>;
|
|
27
20
|
}, z.core.$strip>;
|
|
28
21
|
export type UserFilesListRequestDto = z.infer<typeof UserFilesListRequestSchema>;
|
|
@@ -9,17 +9,8 @@ import { z } from 'zod';
|
|
|
9
9
|
export declare const UserFilesListResponseSchema: z.ZodObject<{
|
|
10
10
|
items: z.ZodArray<z.ZodObject<{
|
|
11
11
|
uuid: z.ZodString;
|
|
12
|
-
type: z.ZodEnum<
|
|
13
|
-
|
|
14
|
-
DOC: "DOC";
|
|
15
|
-
}>;
|
|
16
|
-
status: z.ZodEnum<{
|
|
17
|
-
DELETED: "DELETED";
|
|
18
|
-
PENDING: "PENDING";
|
|
19
|
-
UPLOADING: "UPLOADING";
|
|
20
|
-
ATTACHED: "ATTACHED";
|
|
21
|
-
AI_GENERATED: "AI_GENERATED";
|
|
22
|
-
}>;
|
|
12
|
+
type: z.ZodEnum<typeof import("./client-file-type.enum").ClientFileType>;
|
|
13
|
+
status: z.ZodEnum<typeof import("./client-file-status.enum").ClientFileStatus>;
|
|
23
14
|
s3Url: z.ZodString;
|
|
24
15
|
contentType: z.ZodString;
|
|
25
16
|
size: z.ZodNumber;
|
|
@@ -32,15 +23,8 @@ export declare const UserFilesListResponseSchema: z.ZodObject<{
|
|
|
32
23
|
messageRef: z.ZodNullable<z.ZodObject<{
|
|
33
24
|
id: z.ZodString;
|
|
34
25
|
}, z.core.$strip>>;
|
|
35
|
-
processingCategory: z.ZodNullable<z.ZodEnum<
|
|
36
|
-
|
|
37
|
-
PDF: "PDF";
|
|
38
|
-
TEXT_NATIVE: "TEXT_NATIVE";
|
|
39
|
-
VISUAL_DOC: "VISUAL_DOC";
|
|
40
|
-
}>>;
|
|
41
|
-
marks: z.ZodArray<z.ZodEnum<{
|
|
42
|
-
PASTED: "PASTED";
|
|
43
|
-
}>>;
|
|
26
|
+
processingCategory: z.ZodNullable<z.ZodEnum<typeof import("./processing-category.enum").FileProcessingCategory>>;
|
|
27
|
+
marks: z.ZodArray<z.ZodEnum<typeof import("./client-file-mark.enum").ClientFileMark>>;
|
|
44
28
|
createdAt: z.ZodString;
|
|
45
29
|
updatedAt: z.ZodString;
|
|
46
30
|
}, z.core.$strip>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UploadMagicType } from './schemas/upload-magic-type.
|
|
2
|
-
import { MagicVerdict } from './schemas/magic-verdict.
|
|
1
|
+
import { UploadMagicType } from './schemas/upload-magic-type.enum';
|
|
2
|
+
import { MagicVerdict } from './schemas/magic-verdict.enum';
|
|
3
3
|
/**
|
|
4
4
|
* Content sniffing for uploads: what the BYTES say a file is, as opposed to
|
|
5
5
|
* what its sender claimed.
|
|
@@ -16,7 +16,7 @@ import { MagicVerdict } from './schemas/magic-verdict.schema';
|
|
|
16
16
|
* a sniffer that tries to be clever starts accepting things on a guess, which
|
|
17
17
|
* is the failure it exists to prevent.
|
|
18
18
|
*/
|
|
19
|
-
export { UploadMagicType
|
|
19
|
+
export { UploadMagicType } from './schemas/upload-magic-type.enum';
|
|
20
20
|
/** Bytes the classifier needs. OLE2 needs 8; read at least this many. */
|
|
21
21
|
export declare const UPLOAD_MAGIC_PROBE_BYTES = 16;
|
|
22
22
|
/**
|
|
@@ -62,7 +62,7 @@ export declare const EXPECTED_MAGIC_BY_CONTENT_TYPE: Readonly<Record<string, rea
|
|
|
62
62
|
* declaration untouched.
|
|
63
63
|
*/
|
|
64
64
|
export declare function reconcileImageContentType(declaredContentType: string, bytes: Uint8Array): string;
|
|
65
|
-
export { MagicVerdict
|
|
65
|
+
export { MagicVerdict } from './schemas/magic-verdict.enum';
|
|
66
66
|
/**
|
|
67
67
|
* Does the content agree with what the uploader claimed it is.
|
|
68
68
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MagicVerdict = exports.EXPECTED_MAGIC_BY_CONTENT_TYPE = exports.UPLOAD_MAGIC_PROBE_BYTES = exports.UploadMagicType = void 0;
|
|
4
4
|
exports.detectUploadMagicType = detectUploadMagicType;
|
|
5
5
|
exports.reconcileImageContentType = reconcileImageContentType;
|
|
6
6
|
exports.verifyDeclaredContentType = verifyDeclaredContentType;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const upload_magic_type_enum_1 = require("./schemas/upload-magic-type.enum");
|
|
8
|
+
const magic_verdict_enum_1 = require("./schemas/magic-verdict.enum");
|
|
9
9
|
/**
|
|
10
10
|
* Content sniffing for uploads: what the BYTES say a file is, as opposed to
|
|
11
11
|
* what its sender claimed.
|
|
@@ -22,9 +22,8 @@ const magic_verdict_schema_1 = require("./schemas/magic-verdict.schema");
|
|
|
22
22
|
* a sniffer that tries to be clever starts accepting things on a guess, which
|
|
23
23
|
* is the failure it exists to prevent.
|
|
24
24
|
*/
|
|
25
|
-
var
|
|
26
|
-
Object.defineProperty(exports, "UploadMagicType", { enumerable: true, get: function () { return
|
|
27
|
-
Object.defineProperty(exports, "UploadMagicTypeSchema", { enumerable: true, get: function () { return upload_magic_type_schema_2.UploadMagicTypeSchema; } });
|
|
25
|
+
var upload_magic_type_enum_2 = require("./schemas/upload-magic-type.enum");
|
|
26
|
+
Object.defineProperty(exports, "UploadMagicType", { enumerable: true, get: function () { return upload_magic_type_enum_2.UploadMagicType; } });
|
|
28
27
|
/** Bytes the classifier needs. OLE2 needs 8; read at least this many. */
|
|
29
28
|
exports.UPLOAD_MAGIC_PROBE_BYTES = 16;
|
|
30
29
|
function startsWith(bytes, signature) {
|
|
@@ -34,14 +33,14 @@ function startsWith(bytes, signature) {
|
|
|
34
33
|
return signature.every((byte, index) => bytes[index] === byte);
|
|
35
34
|
}
|
|
36
35
|
const SIGNATURES = [
|
|
37
|
-
{ type:
|
|
38
|
-
{ type:
|
|
39
|
-
{ type:
|
|
40
|
-
{ type:
|
|
41
|
-
{ type:
|
|
42
|
-
{ type:
|
|
43
|
-
{ type:
|
|
44
|
-
{ type:
|
|
36
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.PNG, bytes: [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a] },
|
|
37
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.JPEG, bytes: [0xff, 0xd8, 0xff] },
|
|
38
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.GIF, bytes: [0x47, 0x49, 0x46, 0x38] },
|
|
39
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.PDF, bytes: [0x25, 0x50, 0x44, 0x46, 0x2d] },
|
|
40
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.ZIP, bytes: [0x50, 0x4b, 0x03, 0x04] },
|
|
41
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.ZIP, bytes: [0x50, 0x4b, 0x05, 0x06] },
|
|
42
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.OLE2, bytes: [0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1] },
|
|
43
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.RTF, bytes: [0x7b, 0x5c, 0x72, 0x74, 0x66] },
|
|
45
44
|
// Compiled executables, checked like any other signature and rejected by
|
|
46
45
|
// the caller. The point is not that we would run them — we never do — but
|
|
47
46
|
// that converted uploads land in a public-read bucket, and a service that
|
|
@@ -52,13 +51,13 @@ const SIGNATURES = [
|
|
|
52
51
|
// the accepted list by name — rejecting them made the whitelist promise
|
|
53
52
|
// something the sniffer took back, while stopping nothing: the same script
|
|
54
53
|
// uploads fine with the line removed.
|
|
55
|
-
{ type:
|
|
56
|
-
{ type:
|
|
57
|
-
{ type:
|
|
58
|
-
{ type:
|
|
59
|
-
{ type:
|
|
60
|
-
{ type:
|
|
61
|
-
{ type:
|
|
54
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.EXECUTABLE, bytes: [0x4d, 0x5a] }, // MZ — PE
|
|
55
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.EXECUTABLE, bytes: [0x7f, 0x45, 0x4c, 0x46] }, // ELF
|
|
56
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.EXECUTABLE, bytes: [0xcf, 0xfa, 0xed, 0xfe] }, // Mach-O 64
|
|
57
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.EXECUTABLE, bytes: [0xfe, 0xed, 0xfa, 0xcf] }, // Mach-O big-endian
|
|
58
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.EXECUTABLE, bytes: [0xce, 0xfa, 0xed, 0xfe] }, // Mach-O 32
|
|
59
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.EXECUTABLE, bytes: [0xca, 0xfe, 0xba, 0xbe] }, // fat binary / class
|
|
60
|
+
{ type: upload_magic_type_enum_1.UploadMagicType.EXECUTABLE, bytes: [0x00, 0x61, 0x73, 0x6d] }, // wasm
|
|
62
61
|
];
|
|
63
62
|
/** RIFF….WEBP — the tag sits at offset 8, so it needs its own check. */
|
|
64
63
|
function isWebp(bytes) {
|
|
@@ -75,14 +74,14 @@ function isWebp(bytes) {
|
|
|
75
74
|
*/
|
|
76
75
|
function detectUploadMagicType(bytes) {
|
|
77
76
|
if (isWebp(bytes)) {
|
|
78
|
-
return
|
|
77
|
+
return upload_magic_type_enum_1.UploadMagicType.WEBP;
|
|
79
78
|
}
|
|
80
79
|
for (const { type, bytes: signature } of SIGNATURES) {
|
|
81
80
|
if (startsWith(bytes, signature)) {
|
|
82
81
|
return type;
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
|
-
return
|
|
84
|
+
return upload_magic_type_enum_1.UploadMagicType.UNKNOWN;
|
|
86
85
|
}
|
|
87
86
|
/**
|
|
88
87
|
* Signatures a declared content type is allowed to carry.
|
|
@@ -95,25 +94,25 @@ function detectUploadMagicType(bytes) {
|
|
|
95
94
|
*/
|
|
96
95
|
exports.EXPECTED_MAGIC_BY_CONTENT_TYPE = {
|
|
97
96
|
// Generated ZIP downloads are opaque; only their container signature is checked.
|
|
98
|
-
'application/zip': [
|
|
99
|
-
'image/png': [
|
|
100
|
-
'image/jpeg': [
|
|
101
|
-
'image/webp': [
|
|
102
|
-
'application/pdf': [
|
|
103
|
-
'application/msword': [
|
|
104
|
-
'application/rtf': [
|
|
105
|
-
'text/rtf': [
|
|
106
|
-
'application/vnd.ms-excel': [
|
|
107
|
-
'application/vnd.ms-powerpoint': [
|
|
97
|
+
'application/zip': [upload_magic_type_enum_1.UploadMagicType.ZIP],
|
|
98
|
+
'image/png': [upload_magic_type_enum_1.UploadMagicType.PNG],
|
|
99
|
+
'image/jpeg': [upload_magic_type_enum_1.UploadMagicType.JPEG],
|
|
100
|
+
'image/webp': [upload_magic_type_enum_1.UploadMagicType.WEBP],
|
|
101
|
+
'application/pdf': [upload_magic_type_enum_1.UploadMagicType.PDF],
|
|
102
|
+
'application/msword': [upload_magic_type_enum_1.UploadMagicType.OLE2],
|
|
103
|
+
'application/rtf': [upload_magic_type_enum_1.UploadMagicType.RTF],
|
|
104
|
+
'text/rtf': [upload_magic_type_enum_1.UploadMagicType.RTF],
|
|
105
|
+
'application/vnd.ms-excel': [upload_magic_type_enum_1.UploadMagicType.OLE2],
|
|
106
|
+
'application/vnd.ms-powerpoint': [upload_magic_type_enum_1.UploadMagicType.OLE2],
|
|
108
107
|
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': [
|
|
109
|
-
|
|
108
|
+
upload_magic_type_enum_1.UploadMagicType.ZIP,
|
|
110
109
|
],
|
|
111
|
-
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': [
|
|
112
|
-
'application/vnd.oasis.opendocument.text': [
|
|
113
|
-
'application/vnd.oasis.opendocument.presentation': [
|
|
114
|
-
'application/vnd.oasis.opendocument.spreadsheet': [
|
|
110
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': [upload_magic_type_enum_1.UploadMagicType.ZIP],
|
|
111
|
+
'application/vnd.oasis.opendocument.text': [upload_magic_type_enum_1.UploadMagicType.ZIP],
|
|
112
|
+
'application/vnd.oasis.opendocument.presentation': [upload_magic_type_enum_1.UploadMagicType.ZIP],
|
|
113
|
+
'application/vnd.oasis.opendocument.spreadsheet': [upload_magic_type_enum_1.UploadMagicType.ZIP],
|
|
115
114
|
'application/vnd.openxmlformats-officedocument.presentationml.presentation': [
|
|
116
|
-
|
|
115
|
+
upload_magic_type_enum_1.UploadMagicType.ZIP,
|
|
117
116
|
],
|
|
118
117
|
};
|
|
119
118
|
/**
|
|
@@ -124,9 +123,9 @@ exports.EXPECTED_MAGIC_BY_CONTENT_TYPE = {
|
|
|
124
123
|
* reject it, not a step towards letting it in.
|
|
125
124
|
*/
|
|
126
125
|
const CONTENT_TYPE_BY_IMAGE_MAGIC = {
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
126
|
+
[upload_magic_type_enum_1.UploadMagicType.PNG]: 'image/png',
|
|
127
|
+
[upload_magic_type_enum_1.UploadMagicType.JPEG]: 'image/jpeg',
|
|
128
|
+
[upload_magic_type_enum_1.UploadMagicType.WEBP]: 'image/webp',
|
|
130
129
|
};
|
|
131
130
|
/**
|
|
132
131
|
* Let the BYTES name the type — but only inside the image family, and only
|
|
@@ -164,9 +163,8 @@ function reconcileImageContentType(declaredContentType, bytes) {
|
|
|
164
163
|
const detected = CONTENT_TYPE_BY_IMAGE_MAGIC[detectUploadMagicType(bytes)];
|
|
165
164
|
return detected === undefined ? declaredContentType : detected;
|
|
166
165
|
}
|
|
167
|
-
var
|
|
168
|
-
Object.defineProperty(exports, "MagicVerdict", { enumerable: true, get: function () { return
|
|
169
|
-
Object.defineProperty(exports, "MagicVerdictSchema", { enumerable: true, get: function () { return magic_verdict_schema_2.MagicVerdictSchema; } });
|
|
166
|
+
var magic_verdict_enum_2 = require("./schemas/magic-verdict.enum");
|
|
167
|
+
Object.defineProperty(exports, "MagicVerdict", { enumerable: true, get: function () { return magic_verdict_enum_2.MagicVerdict; } });
|
|
170
168
|
/**
|
|
171
169
|
* Does the content agree with what the uploader claimed it is.
|
|
172
170
|
*
|
|
@@ -177,8 +175,8 @@ Object.defineProperty(exports, "MagicVerdictSchema", { enumerable: true, get: fu
|
|
|
177
175
|
*/
|
|
178
176
|
function verifyDeclaredContentType(declaredContentType, bytes) {
|
|
179
177
|
const detected = detectUploadMagicType(bytes);
|
|
180
|
-
if (detected ===
|
|
181
|
-
return
|
|
178
|
+
if (detected === upload_magic_type_enum_1.UploadMagicType.EXECUTABLE) {
|
|
179
|
+
return magic_verdict_enum_1.MagicVerdict.EXECUTABLE;
|
|
182
180
|
}
|
|
183
181
|
// `Object.hasOwn` rather than a bare lookup: the declared type is a string
|
|
184
182
|
// off the wire, and `__proto__` or `constructor` would otherwise resolve to
|
|
@@ -191,8 +189,8 @@ function verifyDeclaredContentType(declaredContentType, bytes) {
|
|
|
191
189
|
if (expected === undefined) {
|
|
192
190
|
// Signature-less family (text, csv, json, code). Unsigned is the norm;
|
|
193
191
|
// a recognised signature means the declaration is false.
|
|
194
|
-
return detected ===
|
|
192
|
+
return detected === upload_magic_type_enum_1.UploadMagicType.UNKNOWN ? magic_verdict_enum_1.MagicVerdict.OK : magic_verdict_enum_1.MagicVerdict.MISMATCH;
|
|
195
193
|
}
|
|
196
|
-
return expected.includes(detected) ?
|
|
194
|
+
return expected.includes(detected) ? magic_verdict_enum_1.MagicVerdict.OK : magic_verdict_enum_1.MagicVerdict.MISMATCH;
|
|
197
195
|
}
|
|
198
196
|
//# sourceMappingURL=upload-magic-bytes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-magic-bytes.js","sourceRoot":"","sources":["../../../v1/client-file/upload-magic-bytes.ts"],"names":[],"mappings":";;;AA0EA,sDAYC;AA4ED,8DAWC;AAYD,8DA0BC;AAnND,
|
|
1
|
+
{"version":3,"file":"upload-magic-bytes.js","sourceRoot":"","sources":["../../../v1/client-file/upload-magic-bytes.ts"],"names":[],"mappings":";;;AA0EA,sDAYC;AA4ED,8DAWC;AAYD,8DA0BC;AAnND,6EAAmE;AACnE,qEAA4D;AAC5D;;;;;;;;;;;;;;;GAeG;AACH,2EAAmE;AAA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AnD,kHAAA,YAAY,OAAA;AAErB;;;;;;;GAOG;AACH,SAAgB,yBAAyB,CACrC,mBAA2B,EAC3B,KAAiB;IAEjB,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAE9C,IAAI,QAAQ,KAAK,wCAAe,CAAC,UAAU,EAAE,CAAC;QAC1C,OAAO,iCAAY,CAAC,UAAU,CAAC;IACnC,CAAC;IAED,2EAA2E;IAC3E,4EAA4E;IAC5E,0EAA0E;IAC1E,6BAA6B;IAC7B,MAAM,GAAG,GAAG,mBAAmB,CAAC,WAAW,EAAE,CAAC;IAC9C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,sCAA8B,EAAE,GAAG,CAAC;QAC/D,CAAC,CAAC,sCAA8B,CAAC,GAAG,CAAC;QACrC,CAAC,CAAC,SAAS,CAAC;IAEhB,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QACzB,uEAAuE;QACvE,yDAAyD;QACzD,OAAO,QAAQ,KAAK,wCAAe,CAAC,OAAO,CAAC,CAAC,CAAC,iCAAY,CAAC,EAAE,CAAC,CAAC,CAAC,iCAAY,CAAC,QAAQ,CAAC;IAC1F,CAAC;IAED,OAAO,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,iCAAY,CAAC,EAAE,CAAC,CAAC,CAAC,iCAAY,CAAC,QAAQ,CAAC;AACjF,CAAC"}
|
|
@@ -71,12 +71,7 @@ export declare namespace CreateMessageCommand {
|
|
|
71
71
|
messageId: z.ZodString;
|
|
72
72
|
type: z.ZodLiteral<import("../schemas").StreamEventType.PREPARATION_STATUS>;
|
|
73
73
|
status: z.ZodEnum<typeof import("../schemas").PreparationStatus>;
|
|
74
|
-
phase: z.ZodOptional<z.ZodEnum<
|
|
75
|
-
FILES: "FILES";
|
|
76
|
-
OCR: "OCR";
|
|
77
|
-
}>>;
|
|
78
|
-
processedPages: z.ZodOptional<z.ZodNumber>;
|
|
79
|
-
plannedPages: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
phase: z.ZodOptional<z.ZodEnum<typeof import("../schemas").PreparationPhase>>;
|
|
80
75
|
}, z.core.$strip>, z.ZodObject<{
|
|
81
76
|
id: z.ZodNumber;
|
|
82
77
|
chatId: z.ZodString;
|
|
@@ -284,12 +279,7 @@ export declare namespace CreateMessageCommand {
|
|
|
284
279
|
messageId: z.ZodString;
|
|
285
280
|
type: z.ZodLiteral<import("../schemas").StreamEventType.PREPARATION_STATUS>;
|
|
286
281
|
status: z.ZodEnum<typeof import("../schemas").PreparationStatus>;
|
|
287
|
-
phase: z.ZodOptional<z.ZodEnum<
|
|
288
|
-
FILES: "FILES";
|
|
289
|
-
OCR: "OCR";
|
|
290
|
-
}>>;
|
|
291
|
-
processedPages: z.ZodOptional<z.ZodNumber>;
|
|
292
|
-
plannedPages: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
phase: z.ZodOptional<z.ZodEnum<typeof import("../schemas").PreparationPhase>>;
|
|
293
283
|
}, z.core.$strip>, z.ZodObject<{
|
|
294
284
|
id: z.ZodNumber;
|
|
295
285
|
chatId: z.ZodString;
|
|
@@ -12,12 +12,7 @@ export declare namespace GetMessageStreamRegQuery {
|
|
|
12
12
|
messageId: z.ZodString;
|
|
13
13
|
type: z.ZodLiteral<import("../schemas").StreamEventType.PREPARATION_STATUS>;
|
|
14
14
|
status: z.ZodEnum<typeof import("../schemas").PreparationStatus>;
|
|
15
|
-
phase: z.ZodOptional<z.ZodEnum<
|
|
16
|
-
FILES: "FILES";
|
|
17
|
-
OCR: "OCR";
|
|
18
|
-
}>>;
|
|
19
|
-
processedPages: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
plannedPages: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
phase: z.ZodOptional<z.ZodEnum<typeof import("../schemas").PreparationPhase>>;
|
|
21
16
|
}, z.core.$strip>, z.ZodObject<{
|
|
22
17
|
id: z.ZodNumber;
|
|
23
18
|
chatId: z.ZodString;
|
|
@@ -224,12 +219,7 @@ export declare namespace GetMessageStreamRegQuery {
|
|
|
224
219
|
messageId: z.ZodString;
|
|
225
220
|
type: z.ZodLiteral<import("../schemas").StreamEventType.PREPARATION_STATUS>;
|
|
226
221
|
status: z.ZodEnum<typeof import("../schemas").PreparationStatus>;
|
|
227
|
-
phase: z.ZodOptional<z.ZodEnum<
|
|
228
|
-
FILES: "FILES";
|
|
229
|
-
OCR: "OCR";
|
|
230
|
-
}>>;
|
|
231
|
-
processedPages: z.ZodOptional<z.ZodNumber>;
|
|
232
|
-
plannedPages: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
phase: z.ZodOptional<z.ZodEnum<typeof import("../schemas").PreparationPhase>>;
|
|
233
223
|
}, z.core.$strip>, z.ZodObject<{
|
|
234
224
|
id: z.ZodNumber;
|
|
235
225
|
chatId: z.ZodString;
|
|
@@ -12,12 +12,7 @@ export declare namespace GetMessageStreamUnregQuery {
|
|
|
12
12
|
messageId: z.ZodString;
|
|
13
13
|
type: z.ZodLiteral<import("../schemas").StreamEventType.PREPARATION_STATUS>;
|
|
14
14
|
status: z.ZodEnum<typeof import("../schemas").PreparationStatus>;
|
|
15
|
-
phase: z.ZodOptional<z.ZodEnum<
|
|
16
|
-
FILES: "FILES";
|
|
17
|
-
OCR: "OCR";
|
|
18
|
-
}>>;
|
|
19
|
-
processedPages: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
plannedPages: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
phase: z.ZodOptional<z.ZodEnum<typeof import("../schemas").PreparationPhase>>;
|
|
21
16
|
}, z.core.$strip>, z.ZodObject<{
|
|
22
17
|
id: z.ZodNumber;
|
|
23
18
|
chatId: z.ZodString;
|
|
@@ -224,12 +219,7 @@ export declare namespace GetMessageStreamUnregQuery {
|
|
|
224
219
|
messageId: z.ZodString;
|
|
225
220
|
type: z.ZodLiteral<import("../schemas").StreamEventType.PREPARATION_STATUS>;
|
|
226
221
|
status: z.ZodEnum<typeof import("../schemas").PreparationStatus>;
|
|
227
|
-
phase: z.ZodOptional<z.ZodEnum<
|
|
228
|
-
FILES: "FILES";
|
|
229
|
-
OCR: "OCR";
|
|
230
|
-
}>>;
|
|
231
|
-
processedPages: z.ZodOptional<z.ZodNumber>;
|
|
232
|
-
plannedPages: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
phase: z.ZodOptional<z.ZodEnum<typeof import("../schemas").PreparationPhase>>;
|
|
233
223
|
}, z.core.$strip>, z.ZodObject<{
|
|
234
224
|
id: z.ZodNumber;
|
|
235
225
|
chatId: z.ZodString;
|
|
@@ -14,9 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.ErrorMetaSchema = exports.GenerationStatus = exports.MessageErrorAction = exports.MessageErrorCategory = exports.CancelStreamResponseSchema = void 0;
|
|
17
|
+
exports.CitationSchema = exports.CitationStatus = exports.StreamCancellationReason = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamBillingEstimateEventSchema = exports.StreamStepBilledEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamPreparationStatusEventSchema = exports.StreamGenerationStatusEventSchema = exports.StreamEventSchema = exports.CompatibleTransportHeartbeatSchema = exports.TransportHeartbeatSchema = exports.MessageStreamFrameSchema = exports.PreparationStatus = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.ConnectorToolStepContentSchema = exports.VideoAnalysisStepContentSchema = exports.ConversationSearchStepContentSchema = exports.ConversationSearchResultItemSchema = exports.MemoryStepContentSchema = exports.CodeExecutionStepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = exports.StepContentResponseSchema = exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = exports.PreparationPhase = void 0;
|
|
18
|
+
exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.GenerationStepSchema = exports.FollowupSuggestionsStepContentSchema = exports.FOLLOWUP_SUGGESTION_MAX_CHARS = exports.FOLLOWUP_SUGGESTIONS_MAX_COUNT = exports.FileTruncatedStepContentSchema = exports.TruncationUnit = exports.CapabilityLockedStepContentSchema = exports.LockedCapability = exports.BudgetPromoBudgetCutoffSchema = exports.BudgetPromoDiscountAppliedSchema = exports.BudgetPromoStepContentSchema = exports.BudgetPromoKind = exports.CardMessageKey = exports.CardCta = exports.MessageStepStatus = exports.isModelAttributedStepType = exports.MODEL_ATTRIBUTED_STEP_TYPES = exports.GenerationStepType = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.ViewChunkMetadataSchema = exports.StrReplaceChunkMetadataSchema = exports.CreateFileChunkMetadataSchema = exports.BashChunkMetadataSchema = exports.DescribeChunkMetadataSchema = exports.ArgsChunkMetadataSchema = exports.StepChunkMetadataSchema = exports.STEP_CHUNK_LINES_MAX_ITEMS = exports.STEP_CHUNK_LINE_MAX_LENGTH = exports.BashChunkStream = exports.StepChunkKind = exports.StepDoneMetadataByType = exports.StepStartMetadataByType = exports.UploadStepDoneMetadataSchema = exports.ConnectorToolStepStartMetadataSchema = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.ConversationSearchStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = exports.StepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.SendFileStepStartMetadataSchema = void 0;
|
|
19
|
+
exports.ErrorMetaSchema = exports.GenerationStatus = exports.MessageErrorAction = exports.MessageErrorCategory = exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = void 0;
|
|
20
|
+
var preparation_phase_enum_1 = require("./preparation-phase.enum");
|
|
21
|
+
Object.defineProperty(exports, "PreparationPhase", { enumerable: true, get: function () { return preparation_phase_enum_1.PreparationPhase; } });
|
|
20
22
|
__exportStar(require("./find-in-chat-step-content.schema"), exports);
|
|
21
23
|
__exportStar(require("./view-file-step-content.schema"), exports);
|
|
22
24
|
__exportStar(require("./send-file-step-content.schema"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,kEAAgD;AAChD,kEAAgD;AAChD,oEAAkD;AAClD,yDAAkD;AAAzC,gHAAA,WAAW,OAAA;AACpB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,+EAewC;AAdpC,yIAAA,yBAAyB,OAAA;AACzB,0IAAA,0BAA0B,OAAA;AAC1B,yIAAA,yBAAyB,OAAA;AACzB,qIAAA,qBAAqB,OAAA;AACrB,uIAAA,uBAAuB,OAAA;AACvB,0IAAA,0BAA0B,OAAA;AAC1B,yIA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AAA,6BAA6B,OAAA;AAGjC,iGAGiD;AAF7C,yIAAA,gBAAgB,OAAA;AAChB,0JAAA,iCAAiC,OAAA;AAGrC,2FAG8C;AAF1C,oIAAA,cAAc,OAAA;AACd,oJAAA,8BAA8B,OAAA;AAGlC,uGAIoD;AAHhD,0JAAA,8BAA8B,OAAA;AAC9B,yJAAA,6BAA6B,OAAA;AAC7B,gKAAA,oCAAoC,OAAA;AAGxC,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAE7B,6DAI+B;AAH3B,+HAAA,wBAAwB,OAAA;AACxB,gIAAA,yBAAyB,OAAA;AACzB,8HAAA,uBAAuB,OAAA;AAO3B,iEAAiG;AAAxF,kIAAA,yBAAyB,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAE/D,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AAGnC,6EAAqE;AAA5D,mIAAA,oBAAoB,OAAA;AAE7B,yEAAiE;AAAxD,+HAAA,kBAAkB,OAAA;AAE3B,mEAA4D;AAAnD,0HAAA,gBAAgB,OAAA;AACzB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { AttachmentSource } from './attachment-source.enum';
|
|
3
3
|
import { AttachmentType } from './attachment-type.enum';
|
|
4
|
+
import { ClientFileMark } from '../../client-file/schemas/client-file-mark.enum';
|
|
4
5
|
/**
|
|
5
6
|
* Attachment metadata (dimensions for images)
|
|
6
7
|
*/
|
|
@@ -25,9 +26,7 @@ export declare const MessageAttachmentResponseSchema: z.ZodObject<{
|
|
|
25
26
|
width: z.ZodOptional<z.ZodNumber>;
|
|
26
27
|
height: z.ZodOptional<z.ZodNumber>;
|
|
27
28
|
}, z.core.$strip>>;
|
|
28
|
-
marks: z.ZodArray<z.ZodEnum<
|
|
29
|
-
PASTED: "PASTED";
|
|
30
|
-
}>>;
|
|
29
|
+
marks: z.ZodArray<z.ZodEnum<typeof ClientFileMark>>;
|
|
31
30
|
}, z.core.$strip>;
|
|
32
31
|
export type MessageAttachmentResponse = z.infer<typeof MessageAttachmentResponseSchema>;
|
|
33
32
|
/**
|
|
@@ -45,8 +44,6 @@ export declare const MessageAttachmentsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
45
44
|
width: z.ZodOptional<z.ZodNumber>;
|
|
46
45
|
height: z.ZodOptional<z.ZodNumber>;
|
|
47
46
|
}, z.core.$strip>>;
|
|
48
|
-
marks: z.ZodArray<z.ZodEnum<
|
|
49
|
-
PASTED: "PASTED";
|
|
50
|
-
}>>;
|
|
47
|
+
marks: z.ZodArray<z.ZodEnum<typeof ClientFileMark>>;
|
|
51
48
|
}, z.core.$strip>>;
|
|
52
49
|
export type MessageAttachmentsResponse = z.infer<typeof MessageAttachmentsResponseSchema>;
|
|
@@ -22,12 +22,7 @@ export declare const MessageResponseSchema: z.ZodObject<{
|
|
|
22
22
|
sourceSha256: z.ZodOptional<z.ZodString>;
|
|
23
23
|
filename: z.ZodString;
|
|
24
24
|
mimeType: z.ZodNullable<z.ZodString>;
|
|
25
|
-
delivery: z.ZodEnum<
|
|
26
|
-
TEXT: "TEXT";
|
|
27
|
-
IMAGE: "IMAGE";
|
|
28
|
-
PDF: "PDF";
|
|
29
|
-
BINARY: "BINARY";
|
|
30
|
-
}>;
|
|
25
|
+
delivery: z.ZodEnum<typeof import("./view-file-delivery.enum").ViewFileDelivery>;
|
|
31
26
|
pages: z.ZodOptional<z.ZodObject<{
|
|
32
27
|
from: z.ZodNumber;
|
|
33
28
|
to: z.ZodNumber;
|
|
@@ -41,22 +36,10 @@ export declare const MessageResponseSchema: z.ZodObject<{
|
|
|
41
36
|
from: z.ZodNumber;
|
|
42
37
|
to: z.ZodNumber;
|
|
43
38
|
}, z.core.$strip>>;
|
|
44
|
-
mode: z.ZodOptional<z.ZodEnum<
|
|
45
|
-
text: "text";
|
|
46
|
-
image: "image";
|
|
47
|
-
both: "both";
|
|
48
|
-
info: "info";
|
|
49
|
-
ocr: "ocr";
|
|
50
|
-
}>>;
|
|
39
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("./view-file-mode.enum").ViewFileMode>>;
|
|
51
40
|
coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
52
41
|
page: z.ZodNumber;
|
|
53
|
-
state: z.ZodEnum<
|
|
54
|
-
UNREAD: "UNREAD";
|
|
55
|
-
READ: "READ";
|
|
56
|
-
UNKNOWN: "UNKNOWN";
|
|
57
|
-
HIT: "HIT";
|
|
58
|
-
BUSY: "BUSY";
|
|
59
|
-
}>;
|
|
42
|
+
state: z.ZodEnum<typeof import("./view-file-read-state.enum").ViewFileReadState>;
|
|
60
43
|
}, z.core.$strip>>>;
|
|
61
44
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
62
45
|
nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -253,9 +236,7 @@ export declare const MessageResponseSchema: z.ZodObject<{
|
|
|
253
236
|
width: z.ZodOptional<z.ZodNumber>;
|
|
254
237
|
height: z.ZodOptional<z.ZodNumber>;
|
|
255
238
|
}, z.core.$strip>>;
|
|
256
|
-
marks: z.ZodArray<z.ZodEnum<
|
|
257
|
-
PASTED: "PASTED";
|
|
258
|
-
}>>;
|
|
239
|
+
marks: z.ZodArray<z.ZodEnum<typeof import("../..").ClientFileMark>>;
|
|
259
240
|
}, z.core.$strip>>;
|
|
260
241
|
citations: z.ZodArray<z.ZodObject<{
|
|
261
242
|
uuid: z.ZodString;
|