@c15t/backend 1.0.5 → 1.2.0-canary.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/.turbo/turbo-build.log +33 -39
- package/.turbo/turbo-fmt.log +3 -3
- package/.turbo/turbo-test.log +531 -0
- package/coverage/coverage-final.json +84 -0
- package/coverage/coverage-summary.json +85 -0
- package/coverage/html/backend/index.html +116 -0
- package/coverage/html/backend/rslib.config.ts.html +415 -0
- package/coverage/html/backend/src/contracts/consent/index.html +161 -0
- package/coverage/html/backend/src/contracts/consent/index.ts.html +112 -0
- package/coverage/html/backend/src/contracts/consent/post.contract.ts.html +559 -0
- package/coverage/html/backend/src/contracts/consent/show-banner.contract.ts.html +220 -0
- package/coverage/html/backend/src/contracts/consent/verify.contract.ts.html +463 -0
- package/coverage/html/backend/src/contracts/index.html +116 -0
- package/coverage/html/backend/src/contracts/index.ts.html +139 -0
- package/coverage/html/backend/src/contracts/meta/index.html +131 -0
- package/coverage/html/backend/src/contracts/meta/index.ts.html +100 -0
- package/coverage/html/backend/src/contracts/meta/status.contract.ts.html +196 -0
- package/coverage/html/backend/src/contracts/shared/index.html +116 -0
- package/coverage/html/backend/src/contracts/shared/jurisdiction.schema.ts.html +175 -0
- package/coverage/html/backend/src/core.ts.html +1624 -0
- package/coverage/html/backend/src/handlers/consent/index.html +161 -0
- package/coverage/html/backend/src/handlers/consent/index.ts.html +112 -0
- package/coverage/html/backend/src/handlers/consent/post.handler.ts.html +889 -0
- package/coverage/html/backend/src/handlers/consent/show-banner.handler.ts.html +535 -0
- package/coverage/html/backend/src/handlers/consent/verify.handler.ts.html +1000 -0
- package/coverage/html/backend/src/handlers/meta/index.html +131 -0
- package/coverage/html/backend/src/handlers/meta/index.ts.html +100 -0
- package/coverage/html/backend/src/handlers/meta/status.handler.ts.html +226 -0
- package/coverage/html/backend/src/index.html +161 -0
- package/coverage/html/backend/src/init.ts.html +1018 -0
- package/coverage/html/backend/src/pkgs/api-router/hooks/index.html +116 -0
- package/coverage/html/backend/src/pkgs/api-router/hooks/processor.ts.html +544 -0
- package/coverage/html/backend/src/pkgs/api-router/index.html +116 -0
- package/coverage/html/backend/src/pkgs/api-router/telemetry.ts.html +334 -0
- package/coverage/html/backend/src/pkgs/api-router/utils/cors.ts.html +304 -0
- package/coverage/html/backend/src/pkgs/api-router/utils/index.html +131 -0
- package/coverage/html/backend/src/pkgs/api-router/utils/ip.ts.html +361 -0
- package/coverage/html/backend/src/pkgs/data-model/fields/field-factory.ts.html +709 -0
- package/coverage/html/backend/src/pkgs/data-model/fields/id-generator.ts.html +256 -0
- package/coverage/html/backend/src/pkgs/data-model/fields/index.html +161 -0
- package/coverage/html/backend/src/pkgs/data-model/fields/superjson-utils.ts.html +136 -0
- package/coverage/html/backend/src/pkgs/data-model/fields/zod-fields.ts.html +496 -0
- package/coverage/html/backend/src/pkgs/data-model/hooks/create-hooks.ts.html +349 -0
- package/coverage/html/backend/src/pkgs/data-model/hooks/index.html +176 -0
- package/coverage/html/backend/src/pkgs/data-model/hooks/update-hooks.ts.html +358 -0
- package/coverage/html/backend/src/pkgs/data-model/hooks/update-many-hooks.ts.html +613 -0
- package/coverage/html/backend/src/pkgs/data-model/hooks/utils.ts.html +538 -0
- package/coverage/html/backend/src/pkgs/data-model/hooks/with-hooks-factory.ts.html +289 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapter-factory.ts.html +289 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/drizzle-adapter/drizzle-adapter.ts.html +2203 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/drizzle-adapter/index.html +116 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/index.html +116 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/dialect.ts.html +670 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/index.html +131 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/kysely-adapter.ts.html +3634 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/tests/index.html +116 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/tests/test-utils.ts.html +1417 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/memory-adapter/index.html +116 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/memory-adapter/memory-adapter.ts.html +2071 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/prisma-adapter/index.html +116 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/prisma-adapter/prisma-adapter.ts.html +1834 -0
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/test.ts.html +316 -0
- package/coverage/html/backend/src/pkgs/db-adapters/index.html +131 -0
- package/coverage/html/backend/src/pkgs/db-adapters/utils.ts.html +238 -0
- package/coverage/html/backend/src/pkgs/migrations/get-migration.ts.html +343 -0
- package/coverage/html/backend/src/pkgs/migrations/get-schema/get-schema.ts.html +217 -0
- package/coverage/html/backend/src/pkgs/migrations/get-schema/index.html +146 -0
- package/coverage/html/backend/src/pkgs/migrations/get-schema/process-fields.ts.html +280 -0
- package/coverage/html/backend/src/pkgs/migrations/get-schema/process-tables.ts.html +289 -0
- package/coverage/html/backend/src/pkgs/migrations/index.html +176 -0
- package/coverage/html/backend/src/pkgs/migrations/migration-builders.ts.html +595 -0
- package/coverage/html/backend/src/pkgs/migrations/migration-execution.ts.html +301 -0
- package/coverage/html/backend/src/pkgs/migrations/schema-comparison.ts.html +694 -0
- package/coverage/html/backend/src/pkgs/migrations/type-mapping.ts.html +817 -0
- package/coverage/html/backend/src/pkgs/results/core/error-class.ts.html +976 -0
- package/coverage/html/backend/src/pkgs/results/core/error-codes.ts.html +703 -0
- package/coverage/html/backend/src/pkgs/results/core/index.html +146 -0
- package/coverage/html/backend/src/pkgs/results/core/tracing.ts.html +280 -0
- package/coverage/html/backend/src/pkgs/results/create-telemetry-options.ts.html +271 -0
- package/coverage/html/backend/src/pkgs/results/index.html +131 -0
- package/coverage/html/backend/src/pkgs/results/orpc-error-handler.ts.html +496 -0
- package/coverage/html/backend/src/pkgs/results/results/index.html +131 -0
- package/coverage/html/backend/src/pkgs/results/results/recovery-utils.ts.html +628 -0
- package/coverage/html/backend/src/pkgs/results/results/result-helpers.ts.html +1234 -0
- package/coverage/html/backend/src/pkgs/utils/env.ts.html +337 -0
- package/coverage/html/backend/src/pkgs/utils/index.html +146 -0
- package/coverage/html/backend/src/pkgs/utils/logger.ts.html +199 -0
- package/coverage/html/backend/src/pkgs/utils/url.ts.html +400 -0
- package/coverage/html/backend/src/router.ts.html +109 -0
- package/coverage/html/backend/src/schema/audit-log/index.html +146 -0
- package/coverage/html/backend/src/schema/audit-log/registry.ts.html +436 -0
- package/coverage/html/backend/src/schema/audit-log/schema.ts.html +223 -0
- package/coverage/html/backend/src/schema/audit-log/table.ts.html +640 -0
- package/coverage/html/backend/src/schema/consent/index.html +146 -0
- package/coverage/html/backend/src/schema/consent/registry.ts.html +616 -0
- package/coverage/html/backend/src/schema/consent/schema.ts.html +238 -0
- package/coverage/html/backend/src/schema/consent/table.ts.html +748 -0
- package/coverage/html/backend/src/schema/consent-policy/index.html +146 -0
- package/coverage/html/backend/src/schema/consent-policy/registry.ts.html +1063 -0
- package/coverage/html/backend/src/schema/consent-policy/schema.ts.html +265 -0
- package/coverage/html/backend/src/schema/consent-policy/table.ts.html +535 -0
- package/coverage/html/backend/src/schema/consent-purpose/index.html +146 -0
- package/coverage/html/backend/src/schema/consent-purpose/registry.ts.html +589 -0
- package/coverage/html/backend/src/schema/consent-purpose/schema.ts.html +259 -0
- package/coverage/html/backend/src/schema/consent-purpose/table.ts.html +547 -0
- package/coverage/html/backend/src/schema/consent-record/index.html +131 -0
- package/coverage/html/backend/src/schema/consent-record/schema.ts.html +211 -0
- package/coverage/html/backend/src/schema/consent-record/table.ts.html +457 -0
- package/coverage/html/backend/src/schema/create-registry.ts.html +148 -0
- package/coverage/html/backend/src/schema/definition.ts.html +685 -0
- package/coverage/html/backend/src/schema/domain/index.html +146 -0
- package/coverage/html/backend/src/schema/domain/registry.ts.html +973 -0
- package/coverage/html/backend/src/schema/domain/schema.ts.html +214 -0
- package/coverage/html/backend/src/schema/domain/table.ts.html +496 -0
- package/coverage/html/backend/src/schema/index.html +146 -0
- package/coverage/html/backend/src/schema/schemas.ts.html +166 -0
- package/coverage/html/backend/src/schema/subject/index.html +146 -0
- package/coverage/html/backend/src/schema/subject/registry.ts.html +973 -0
- package/coverage/html/backend/src/schema/subject/schema.ts.html +208 -0
- package/coverage/html/backend/src/schema/subject/table.ts.html +499 -0
- package/coverage/html/backend/src/server.ts.html +475 -0
- package/coverage/html/backend/src/testing/contract-testing.ts.html +1348 -0
- package/coverage/html/backend/src/testing/index.html +116 -0
- package/coverage/html/base.css +224 -0
- package/coverage/html/block-navigation.js +87 -0
- package/coverage/html/favicon.png +0 -0
- package/coverage/html/index.html +626 -0
- package/coverage/html/prettify.css +1 -0
- package/coverage/html/prettify.js +2 -0
- package/coverage/html/sort-arrow-sprite.png +0 -0
- package/coverage/html/sorter.js +196 -0
- package/dist/contracts/consent/index.d.ts +401 -0
- package/dist/contracts/consent/index.d.ts.map +1 -0
- package/dist/contracts/consent/index.test.d.ts +2 -0
- package/dist/contracts/consent/index.test.d.ts.map +1 -0
- package/dist/contracts/consent/post.contract.d.ts +212 -0
- package/dist/contracts/consent/post.contract.d.ts.map +1 -0
- package/dist/contracts/consent/post.contract.test.d.ts +2 -0
- package/dist/contracts/consent/post.contract.test.d.ts.map +1 -0
- package/dist/contracts/consent/show-banner.contract.d.ts +45 -0
- package/dist/contracts/consent/show-banner.contract.d.ts.map +1 -0
- package/dist/contracts/consent/show-banner.contract.test.d.ts +2 -0
- package/dist/contracts/consent/show-banner.contract.test.d.ts.map +1 -0
- package/dist/contracts/consent/verify.contract.d.ts +147 -0
- package/dist/contracts/consent/verify.contract.d.ts.map +1 -0
- package/dist/contracts/consent/verify.contract.test.d.ts +2 -0
- package/dist/contracts/consent/verify.contract.test.d.ts.map +1 -0
- package/dist/contracts/index.d.ts +963 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/meta/index.d.ts +78 -0
- package/dist/contracts/meta/index.d.ts.map +1 -0
- package/dist/contracts/meta/index.test.d.ts +2 -0
- package/dist/contracts/meta/index.test.d.ts.map +1 -0
- package/dist/contracts/meta/status.contract.d.ts +77 -0
- package/dist/contracts/meta/status.contract.d.ts.map +1 -0
- package/dist/contracts/meta/status.contract.test.d.ts +2 -0
- package/dist/contracts/meta/status.contract.test.d.ts.map +1 -0
- package/dist/contracts/shared/jurisdiction.schema.d.ts +24 -0
- package/dist/contracts/shared/jurisdiction.schema.d.ts.map +1 -0
- package/dist/core.cjs +3584 -0
- package/dist/core.d.ts +533 -76
- package/dist/core.d.ts.map +1 -1
- package/dist/{index.js → core.js} +1163 -1286
- package/dist/handlers/consent/index.d.ts +401 -0
- package/dist/handlers/consent/index.d.ts.map +1 -0
- package/dist/handlers/consent/post.handler.d.ts +234 -0
- package/dist/handlers/consent/post.handler.d.ts.map +1 -0
- package/dist/handlers/consent/show-banner.handler.d.ts +57 -0
- package/dist/handlers/consent/show-banner.handler.d.ts.map +1 -0
- package/dist/handlers/consent/show-banner.handler.test.d.ts +2 -0
- package/dist/handlers/consent/show-banner.handler.test.d.ts.map +1 -0
- package/dist/handlers/consent/verify.handler.d.ts +169 -0
- package/dist/handlers/consent/verify.handler.d.ts.map +1 -0
- package/dist/handlers/meta/index.d.ts +78 -0
- package/dist/handlers/meta/index.d.ts.map +1 -0
- package/dist/handlers/meta/status.handler.d.ts +76 -0
- package/dist/handlers/meta/status.handler.d.ts.map +1 -0
- package/dist/init.d.ts.map +1 -1
- package/dist/pkgs/api-router/hooks/processor.d.ts.map +1 -1
- package/dist/pkgs/api-router/types/router-props.d.ts +1 -1
- package/dist/pkgs/api-router/types/router-props.d.ts.map +1 -1
- package/dist/pkgs/api-router/utils/cors.d.ts +1 -1
- package/dist/pkgs/api-router/utils/cors.d.ts.map +1 -1
- package/dist/pkgs/data-model/fields/field-types.d.ts +1 -1
- package/dist/pkgs/data-model/fields/zod-fields.d.ts +32 -32
- package/dist/pkgs/data-model/index.cjs +1433 -1799
- package/dist/pkgs/data-model/index.js +20 -385
- package/dist/pkgs/data-model/schema/index.cjs +1402 -1768
- package/dist/pkgs/data-model/schema/index.js +20 -385
- package/dist/pkgs/db-adapters/adapter-factory.d.ts +2 -2
- package/dist/pkgs/db-adapters/adapter-factory.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/adapters/drizzle-adapter/drizzle-adapter.d.ts +4 -4
- package/dist/pkgs/db-adapters/adapters/drizzle-adapter/index.cjs +19 -151
- package/dist/pkgs/db-adapters/adapters/drizzle-adapter/index.js +19 -151
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/dialect.d.ts +1 -1
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/index.cjs +17 -149
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/index.js +17 -149
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/tests/test-utils.d.ts +2 -2
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/tests/test-utils.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/adapters/memory-adapter/index.cjs +17 -149
- package/dist/pkgs/db-adapters/adapters/memory-adapter/index.js +17 -149
- package/dist/pkgs/db-adapters/adapters/prisma-adapter/index.cjs +19 -151
- package/dist/pkgs/db-adapters/adapters/prisma-adapter/index.js +19 -151
- package/dist/pkgs/db-adapters/index.cjs +31 -153
- package/dist/pkgs/db-adapters/index.js +31 -153
- package/dist/pkgs/migrations/get-schema/get-schema.d.ts +2 -2
- package/dist/pkgs/migrations/get-schema/index.d.ts +1 -1
- package/dist/pkgs/migrations/index.cjs +30 -153
- package/dist/pkgs/migrations/index.js +30 -153
- package/dist/pkgs/migrations/schema-comparison.d.ts.map +1 -1
- package/dist/pkgs/results/core/error-class.d.ts +23 -21
- package/dist/pkgs/results/core/error-class.d.ts.map +1 -1
- package/dist/pkgs/results/index.cjs +17 -150
- package/dist/pkgs/results/index.d.ts +0 -3
- package/dist/pkgs/results/index.d.ts.map +1 -1
- package/dist/pkgs/results/index.js +17 -138
- package/dist/pkgs/results/orpc-error-handler.d.ts +65 -0
- package/dist/pkgs/results/orpc-error-handler.d.ts.map +1 -0
- package/dist/pkgs/results/types.d.ts +7 -7
- package/dist/pkgs/results/types.d.ts.map +1 -1
- package/dist/pkgs/types/context.d.ts +15 -4
- package/dist/pkgs/types/context.d.ts.map +1 -1
- package/dist/pkgs/types/endpoints.d.ts +3 -4
- package/dist/pkgs/types/endpoints.d.ts.map +1 -1
- package/dist/pkgs/types/options.d.ts +2 -3
- package/dist/pkgs/types/options.d.ts.map +1 -1
- package/dist/pkgs/types/plugins.d.ts +2 -3
- package/dist/pkgs/types/plugins.d.ts.map +1 -1
- package/dist/pkgs/utils/index.d.ts +1 -0
- package/dist/pkgs/utils/index.d.ts.map +1 -1
- package/dist/pkgs/utils/logger.d.ts +16 -0
- package/dist/pkgs/utils/logger.d.ts.map +1 -0
- package/dist/router.cjs +1213 -0
- package/dist/router.d.ts +480 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.js +1169 -0
- package/dist/schema/audit-log/table.d.ts +1 -1
- package/dist/schema/consent/table.d.ts +1 -1
- package/dist/schema/consent-policy/registry.d.ts +12 -12
- package/dist/schema/consent-policy/schema.d.ts +6 -6
- package/dist/schema/consent-policy/table.d.ts +7 -7
- package/dist/schema/consent-purpose/registry.d.ts +6 -6
- package/dist/schema/consent-purpose/schema.d.ts +6 -6
- package/dist/schema/consent-purpose/table.d.ts +7 -7
- package/dist/schema/consent-record/table.d.ts +1 -1
- package/dist/schema/create-registry.d.ts +32 -32
- package/dist/schema/definition.d.ts +19 -19
- package/dist/schema/domain/registry.d.ts +10 -10
- package/dist/schema/domain/schema.d.ts +5 -5
- package/dist/schema/domain/table.d.ts +6 -6
- package/dist/schema/index.cjs +1409 -1775
- package/dist/schema/index.js +20 -385
- package/dist/schema/schemas.d.ts +19 -19
- package/dist/schema/subject/registry.d.ts +4 -4
- package/dist/schema/subject/schema.d.ts +2 -2
- package/dist/schema/subject/table.d.ts +3 -3
- package/dist/server.d.ts +2 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/testing/contract-testing.d.ts +37 -0
- package/dist/testing/contract-testing.d.ts.map +1 -0
- package/dist/types/context.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/options.d.ts +33 -2
- package/dist/types/options.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +3 -4
- package/dist/types/plugins.d.ts.map +1 -1
- package/package.json +22 -30
- package/rslib.config.ts +2 -5
- package/src/contracts/consent/index.test.ts +5 -0
- package/src/contracts/consent/index.ts +9 -0
- package/src/contracts/consent/post.contract.test.ts +526 -0
- package/src/contracts/consent/post.contract.ts +160 -0
- package/src/contracts/consent/show-banner.contract.test.ts +214 -0
- package/src/contracts/consent/show-banner.contract.ts +45 -0
- package/src/contracts/consent/verify.contract.test.ts +185 -0
- package/src/contracts/consent/verify.contract.ts +126 -0
- package/src/contracts/index.ts +18 -0
- package/src/contracts/meta/index.test.ts +5 -0
- package/src/contracts/meta/index.ts +5 -0
- package/src/contracts/meta/status.contract.test.ts +338 -0
- package/src/contracts/meta/status.contract.ts +37 -0
- package/src/contracts/shared/jurisdiction.schema.ts +30 -0
- package/src/core.ts +451 -159
- package/src/handlers/consent/index.ts +9 -0
- package/src/handlers/consent/post.handler.ts +273 -0
- package/src/handlers/consent/show-banner.handler.test.ts +148 -0
- package/src/handlers/consent/show-banner.handler.ts +150 -0
- package/src/handlers/consent/verify.handler.ts +305 -0
- package/src/handlers/meta/index.ts +5 -0
- package/src/handlers/meta/status.handler.ts +47 -0
- package/src/init.ts +8 -5
- package/src/pkgs/api-router/hooks/__tests__/processor.test.ts +6 -0
- package/src/pkgs/api-router/hooks/processor.ts +2 -0
- package/src/pkgs/api-router/types/router-props.ts +1 -1
- package/src/pkgs/api-router/utils/cors.ts +1 -1
- package/src/pkgs/data-model/fields/field-types.ts +1 -1
- package/src/pkgs/data-model/fields/id-generator.ts +1 -1
- package/src/pkgs/db-adapters/README.md +3 -3
- package/src/pkgs/db-adapters/adapter-factory.ts +8 -4
- package/src/pkgs/db-adapters/adapters/drizzle-adapter/drizzle-adapter.ts +13 -13
- package/src/pkgs/db-adapters/adapters/kysely-adapter/dialect.ts +1 -1
- package/src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts +1 -1
- package/src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts +1 -1
- package/src/pkgs/db-adapters/adapters/kysely-adapter/tests/test-utils.ts +2 -2
- package/src/pkgs/migrations/get-migration.ts +3 -3
- package/src/pkgs/migrations/get-schema/get-schema.ts +2 -2
- package/src/pkgs/migrations/get-schema/index.ts +1 -1
- package/src/pkgs/migrations/migration-builders.ts +2 -2
- package/src/pkgs/migrations/migration-execution.ts +2 -2
- package/src/pkgs/migrations/schema-comparison.ts +5 -4
- package/src/pkgs/results/__tests__/error-class.test.ts +8 -7
- package/src/pkgs/results/core/error-class.ts +31 -43
- package/src/pkgs/results/index.ts +0 -10
- package/src/pkgs/results/orpc-error-handler.ts +137 -0
- package/src/pkgs/results/types.ts +8 -7
- package/src/pkgs/types/context.ts +18 -4
- package/src/pkgs/types/endpoints.ts +3 -5
- package/src/pkgs/types/options.ts +2 -3
- package/src/pkgs/types/plugins.ts +2 -3
- package/src/pkgs/utils/index.ts +1 -0
- package/src/pkgs/utils/logger.ts +38 -0
- package/src/router.ts +8 -0
- package/src/schema/audit-log/table.ts +1 -1
- package/src/schema/consent/table.ts +1 -1
- package/src/schema/consent-policy/table.ts +1 -1
- package/src/schema/consent-purpose/table.ts +1 -1
- package/src/schema/consent-record/table.ts +1 -1
- package/src/schema/definition.ts +2 -2
- package/src/schema/domain/table.ts +1 -1
- package/src/schema/subject/table.ts +1 -1
- package/src/server.ts +130 -0
- package/src/testing/contract-testing.ts +437 -0
- package/src/types/context.ts +1 -1
- package/src/types/index.ts +2 -2
- package/src/types/options.ts +38 -2
- package/src/types/plugins.ts +3 -4
- package/dist/index.cjs +0 -3701
- package/dist/index.d.ts +0 -11
- package/dist/index.d.ts.map +0 -1
- package/dist/init.test.d.ts +0 -2
- package/dist/init.test.d.ts.map +0 -1
- package/dist/integrations/cloudflare.cjs +0 -312
- package/dist/integrations/cloudflare.d.ts +0 -32
- package/dist/integrations/cloudflare.d.ts.map +0 -1
- package/dist/integrations/cloudflare.js +0 -278
- package/dist/integrations/next.cjs +0 -276
- package/dist/integrations/next.d.ts +0 -68
- package/dist/integrations/next.d.ts.map +0 -1
- package/dist/integrations/next.js +0 -239
- package/dist/integrations/node.cjs +0 -257
- package/dist/integrations/node.d.ts +0 -29
- package/dist/integrations/node.d.ts.map +0 -1
- package/dist/integrations/node.js +0 -223
- package/dist/pkgs/api-router/index.d.ts +0 -9
- package/dist/pkgs/api-router/index.d.ts.map +0 -1
- package/dist/pkgs/api-router/utils/define-route.d.ts +0 -87
- package/dist/pkgs/api-router/utils/define-route.d.ts.map +0 -1
- package/dist/pkgs/logger/__tests__/console-formatter.test.d.ts +0 -2
- package/dist/pkgs/logger/__tests__/console-formatter.test.d.ts.map +0 -1
- package/dist/pkgs/logger/__tests__/integration.test.d.ts +0 -2
- package/dist/pkgs/logger/__tests__/integration.test.d.ts.map +0 -1
- package/dist/pkgs/logger/__tests__/log-levels.test.d.ts +0 -2
- package/dist/pkgs/logger/__tests__/log-levels.test.d.ts.map +0 -1
- package/dist/pkgs/logger/__tests__/logger-factory.test.d.ts +0 -2
- package/dist/pkgs/logger/__tests__/logger-factory.test.d.ts.map +0 -1
- package/dist/pkgs/logger/__tests__/result-logging.test.d.ts +0 -2
- package/dist/pkgs/logger/__tests__/result-logging.test.d.ts.map +0 -1
- package/dist/pkgs/logger/__tests__/types.test.d.ts +0 -2
- package/dist/pkgs/logger/__tests__/types.test.d.ts.map +0 -1
- package/dist/pkgs/logger/console-formatter.d.ts +0 -56
- package/dist/pkgs/logger/console-formatter.d.ts.map +0 -1
- package/dist/pkgs/logger/index.cjs +0 -240
- package/dist/pkgs/logger/index.d.ts +0 -35
- package/dist/pkgs/logger/index.d.ts.map +0 -1
- package/dist/pkgs/logger/index.js +0 -185
- package/dist/pkgs/logger/log-levels.d.ts +0 -29
- package/dist/pkgs/logger/log-levels.d.ts.map +0 -1
- package/dist/pkgs/logger/logger-factory.d.ts +0 -42
- package/dist/pkgs/logger/logger-factory.d.ts.map +0 -1
- package/dist/pkgs/logger/result-logging.d.ts +0 -71
- package/dist/pkgs/logger/result-logging.d.ts.map +0 -1
- package/dist/pkgs/logger/telemetry.d.ts +0 -14
- package/dist/pkgs/logger/telemetry.d.ts.map +0 -1
- package/dist/pkgs/logger/types.d.ts +0 -121
- package/dist/pkgs/logger/types.d.ts.map +0 -1
- package/dist/pkgs/results/__tests__/retrieval-pipeline.test.d.ts +0 -2
- package/dist/pkgs/results/__tests__/retrieval-pipeline.test.d.ts.map +0 -1
- package/dist/pkgs/results/__tests__/validation-pipeline.test.d.ts +0 -2
- package/dist/pkgs/results/__tests__/validation-pipeline.test.d.ts.map +0 -1
- package/dist/pkgs/results/h3-integration.d.ts +0 -52
- package/dist/pkgs/results/h3-integration.d.ts.map +0 -1
- package/dist/pkgs/results/pipeline/retrieval-pipeline.d.ts +0 -101
- package/dist/pkgs/results/pipeline/retrieval-pipeline.d.ts.map +0 -1
- package/dist/pkgs/results/pipeline/validation-pipeline.d.ts +0 -89
- package/dist/pkgs/results/pipeline/validation-pipeline.d.ts.map +0 -1
- package/dist/response-types.d.ts +0 -19
- package/dist/response-types.d.ts.map +0 -1
- package/dist/routes/__test__/index.test.d.ts +0 -17
- package/dist/routes/__test__/index.test.d.ts.map +0 -1
- package/dist/routes/__test__/set-consent.test.d.ts +0 -2
- package/dist/routes/__test__/set-consent.test.d.ts.map +0 -1
- package/dist/routes/__test__/show-consent-banner.test.d.ts +0 -2
- package/dist/routes/__test__/show-consent-banner.test.d.ts.map +0 -1
- package/dist/routes/__test__/status.test.d.ts +0 -2
- package/dist/routes/__test__/status.test.d.ts.map +0 -1
- package/dist/routes/__test__/verify-consent.test.d.ts +0 -2
- package/dist/routes/__test__/verify-consent.test.d.ts.map +0 -1
- package/dist/routes/index.d.ts +0 -3
- package/dist/routes/index.d.ts.map +0 -1
- package/dist/routes/set-consent.d.ts +0 -89
- package/dist/routes/set-consent.d.ts.map +0 -1
- package/dist/routes/show-consent-banner.d.ts +0 -15
- package/dist/routes/show-consent-banner.d.ts.map +0 -1
- package/dist/routes/status.d.ts +0 -44
- package/dist/routes/status.d.ts.map +0 -1
- package/dist/routes/types.d.ts +0 -7
- package/dist/routes/types.d.ts.map +0 -1
- package/dist/routes/verify-consent.d.ts +0 -38
- package/dist/routes/verify-consent.d.ts.map +0 -1
- package/src/docs/ADVANCED_JSON_HANDLING.md +0 -99
- package/src/docs/neverthrow.md +0 -171
- package/src/index.ts +0 -34
- package/src/init.test.ts +0 -219
- package/src/integrations/cloudflare.ts +0 -269
- package/src/integrations/next.ts +0 -204
- package/src/integrations/node.ts +0 -141
- package/src/pkgs/api-router/index.ts +0 -148
- package/src/pkgs/api-router/types/h3.d.ts +0 -42
- package/src/pkgs/api-router/utils/define-route.ts +0 -410
- package/src/pkgs/logger/README.md +0 -213
- package/src/pkgs/logger/__tests__/console-formatter.test.ts +0 -67
- package/src/pkgs/logger/__tests__/integration.test.ts +0 -184
- package/src/pkgs/logger/__tests__/log-levels.test.ts +0 -77
- package/src/pkgs/logger/__tests__/logger-factory.test.ts +0 -156
- package/src/pkgs/logger/__tests__/result-logging.test.ts +0 -209
- package/src/pkgs/logger/__tests__/types.test.ts +0 -94
- package/src/pkgs/logger/console-formatter.ts +0 -75
- package/src/pkgs/logger/doc.md +0 -569
- package/src/pkgs/logger/index.ts +0 -59
- package/src/pkgs/logger/log-levels.ts +0 -46
- package/src/pkgs/logger/logger-factory.ts +0 -121
- package/src/pkgs/logger/result-logging.ts +0 -134
- package/src/pkgs/logger/telemetry.ts +0 -96
- package/src/pkgs/logger/types.ts +0 -138
- package/src/pkgs/results/__tests__/retrieval-pipeline.test.ts +0 -157
- package/src/pkgs/results/__tests__/validation-pipeline.test.ts +0 -151
- package/src/pkgs/results/h3-integration.ts +0 -142
- package/src/pkgs/results/pipeline/retrieval-pipeline.ts +0 -188
- package/src/pkgs/results/pipeline/validation-pipeline.ts +0 -164
- package/src/plugins/.keep +0 -0
- package/src/response-types.ts +0 -29
- package/src/routes/__test__/index.test.ts +0 -112
- package/src/routes/__test__/set-consent.test.ts +0 -242
- package/src/routes/__test__/show-consent-banner.test.ts +0 -98
- package/src/routes/__test__/status.test.ts +0 -64
- package/src/routes/__test__/verify-consent.test.ts +0 -266
- package/src/routes/index.ts +0 -12
- package/src/routes/set-consent.ts +0 -249
- package/src/routes/show-consent-banner.ts +0 -131
- package/src/routes/status.ts +0 -61
- package/src/routes/types.ts +0 -7
- package/src/routes/verify-consent.ts +0 -206
|
@@ -0,0 +1,963 @@
|
|
|
1
|
+
import type { InferContractRouterInputs, InferContractRouterOutputs } from '@orpc/contract';
|
|
2
|
+
declare const config: {
|
|
3
|
+
consent: {
|
|
4
|
+
post: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
5
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
domain: import("zod").ZodString;
|
|
8
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
9
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
10
|
+
}, {
|
|
11
|
+
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
12
|
+
preferences: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>;
|
|
13
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
14
|
+
type: "cookie_banner";
|
|
15
|
+
domain: string;
|
|
16
|
+
preferences: Record<string, boolean>;
|
|
17
|
+
subjectId?: string | undefined;
|
|
18
|
+
metadata?: Record<string, unknown> | undefined;
|
|
19
|
+
externalSubjectId?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
type: "cookie_banner";
|
|
22
|
+
domain: string;
|
|
23
|
+
preferences: Record<string, boolean>;
|
|
24
|
+
subjectId?: string | undefined;
|
|
25
|
+
metadata?: Record<string, unknown> | undefined;
|
|
26
|
+
externalSubjectId?: string | undefined;
|
|
27
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
28
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
domain: import("zod").ZodString;
|
|
31
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
32
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
33
|
+
}, {
|
|
34
|
+
type: import("zod").ZodEnum<["privacy_policy", "dpa", "terms_and_conditions"]>;
|
|
35
|
+
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
37
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
38
|
+
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
39
|
+
domain: string;
|
|
40
|
+
subjectId?: string | undefined;
|
|
41
|
+
metadata?: Record<string, unknown> | undefined;
|
|
42
|
+
policyId?: string | undefined;
|
|
43
|
+
externalSubjectId?: string | undefined;
|
|
44
|
+
preferences?: Record<string, boolean> | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
47
|
+
domain: string;
|
|
48
|
+
subjectId?: string | undefined;
|
|
49
|
+
metadata?: Record<string, unknown> | undefined;
|
|
50
|
+
policyId?: string | undefined;
|
|
51
|
+
externalSubjectId?: string | undefined;
|
|
52
|
+
preferences?: Record<string, boolean> | undefined;
|
|
53
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
54
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
domain: import("zod").ZodString;
|
|
57
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
58
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
59
|
+
}, {
|
|
60
|
+
type: import("zod").ZodEnum<["marketing_communications", "age_verification", "other"]>;
|
|
61
|
+
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
62
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
63
|
+
type: "marketing_communications" | "age_verification" | "other";
|
|
64
|
+
domain: string;
|
|
65
|
+
subjectId?: string | undefined;
|
|
66
|
+
metadata?: Record<string, unknown> | undefined;
|
|
67
|
+
externalSubjectId?: string | undefined;
|
|
68
|
+
preferences?: Record<string, boolean> | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
type: "marketing_communications" | "age_verification" | "other";
|
|
71
|
+
domain: string;
|
|
72
|
+
subjectId?: string | undefined;
|
|
73
|
+
metadata?: Record<string, unknown> | undefined;
|
|
74
|
+
externalSubjectId?: string | undefined;
|
|
75
|
+
preferences?: Record<string, boolean> | undefined;
|
|
76
|
+
}>]>, import("zod").ZodObject<{
|
|
77
|
+
id: import("zod").ZodString;
|
|
78
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
domainId: import("zod").ZodString;
|
|
81
|
+
domain: import("zod").ZodString;
|
|
82
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
83
|
+
status: import("zod").ZodString;
|
|
84
|
+
recordId: import("zod").ZodString;
|
|
85
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
86
|
+
givenAt: import("zod").ZodDate;
|
|
87
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
88
|
+
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
89
|
+
status: string;
|
|
90
|
+
id: string;
|
|
91
|
+
domain: string;
|
|
92
|
+
domainId: string;
|
|
93
|
+
givenAt: Date;
|
|
94
|
+
recordId: string;
|
|
95
|
+
subjectId?: string | undefined;
|
|
96
|
+
metadata?: Record<string, unknown> | undefined;
|
|
97
|
+
externalSubjectId?: string | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
100
|
+
status: string;
|
|
101
|
+
id: string;
|
|
102
|
+
domain: string;
|
|
103
|
+
domainId: string;
|
|
104
|
+
givenAt: Date;
|
|
105
|
+
recordId: string;
|
|
106
|
+
subjectId?: string | undefined;
|
|
107
|
+
metadata?: Record<string, unknown> | undefined;
|
|
108
|
+
externalSubjectId?: string | undefined;
|
|
109
|
+
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
110
|
+
INPUT_VALIDATION_FAILED: {
|
|
111
|
+
status: number;
|
|
112
|
+
message: string;
|
|
113
|
+
data: import("zod").ZodObject<{
|
|
114
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
115
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
116
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
117
|
+
formErrors: string[];
|
|
118
|
+
fieldErrors: Record<string, string[]>;
|
|
119
|
+
}, {
|
|
120
|
+
formErrors: string[];
|
|
121
|
+
fieldErrors: Record<string, string[]>;
|
|
122
|
+
}>;
|
|
123
|
+
};
|
|
124
|
+
SUBJECT_CREATION_FAILED: {
|
|
125
|
+
status: number;
|
|
126
|
+
message: string;
|
|
127
|
+
data: import("zod").ZodObject<{
|
|
128
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
129
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
130
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
131
|
+
subjectId?: string | undefined;
|
|
132
|
+
externalSubjectId?: string | undefined;
|
|
133
|
+
}, {
|
|
134
|
+
subjectId?: string | undefined;
|
|
135
|
+
externalSubjectId?: string | undefined;
|
|
136
|
+
}>;
|
|
137
|
+
};
|
|
138
|
+
DOMAIN_CREATION_FAILED: {
|
|
139
|
+
status: number;
|
|
140
|
+
message: string;
|
|
141
|
+
data: import("zod").ZodObject<{
|
|
142
|
+
domain: import("zod").ZodString;
|
|
143
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
144
|
+
domain: string;
|
|
145
|
+
}, {
|
|
146
|
+
domain: string;
|
|
147
|
+
}>;
|
|
148
|
+
};
|
|
149
|
+
POLICY_NOT_FOUND: {
|
|
150
|
+
status: number;
|
|
151
|
+
message: string;
|
|
152
|
+
data: import("zod").ZodObject<{
|
|
153
|
+
policyId: import("zod").ZodString;
|
|
154
|
+
type: import("zod").ZodString;
|
|
155
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
156
|
+
type: string;
|
|
157
|
+
policyId: string;
|
|
158
|
+
}, {
|
|
159
|
+
type: string;
|
|
160
|
+
policyId: string;
|
|
161
|
+
}>;
|
|
162
|
+
};
|
|
163
|
+
POLICY_INACTIVE: {
|
|
164
|
+
status: number;
|
|
165
|
+
message: string;
|
|
166
|
+
data: import("zod").ZodObject<{
|
|
167
|
+
policyId: import("zod").ZodString;
|
|
168
|
+
type: import("zod").ZodString;
|
|
169
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
170
|
+
type: string;
|
|
171
|
+
policyId: string;
|
|
172
|
+
}, {
|
|
173
|
+
type: string;
|
|
174
|
+
policyId: string;
|
|
175
|
+
}>;
|
|
176
|
+
};
|
|
177
|
+
POLICY_CREATION_FAILED: {
|
|
178
|
+
status: number;
|
|
179
|
+
message: string;
|
|
180
|
+
data: import("zod").ZodObject<{
|
|
181
|
+
type: import("zod").ZodString;
|
|
182
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
183
|
+
type: string;
|
|
184
|
+
}, {
|
|
185
|
+
type: string;
|
|
186
|
+
}>;
|
|
187
|
+
};
|
|
188
|
+
PURPOSE_CREATION_FAILED: {
|
|
189
|
+
status: number;
|
|
190
|
+
message: string;
|
|
191
|
+
data: import("zod").ZodObject<{
|
|
192
|
+
purposeCode: import("zod").ZodString;
|
|
193
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
194
|
+
purposeCode: string;
|
|
195
|
+
}, {
|
|
196
|
+
purposeCode: string;
|
|
197
|
+
}>;
|
|
198
|
+
};
|
|
199
|
+
CONSENT_CREATION_FAILED: {
|
|
200
|
+
status: number;
|
|
201
|
+
message: string;
|
|
202
|
+
data: import("zod").ZodObject<{
|
|
203
|
+
subjectId: import("zod").ZodString;
|
|
204
|
+
domain: import("zod").ZodString;
|
|
205
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
206
|
+
subjectId: string;
|
|
207
|
+
domain: string;
|
|
208
|
+
}, {
|
|
209
|
+
subjectId: string;
|
|
210
|
+
domain: string;
|
|
211
|
+
}>;
|
|
212
|
+
};
|
|
213
|
+
}>, Record<never, never>>;
|
|
214
|
+
showBanner: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
215
|
+
showConsentBanner: import("zod").ZodBoolean;
|
|
216
|
+
jurisdiction: import("zod").ZodObject<{
|
|
217
|
+
code: import("zod").ZodEnum<["GDPR", "CH", "BR", "PIPEDA", "AU", "APPI", "PIPA", "NONE"]>;
|
|
218
|
+
message: import("zod").ZodString;
|
|
219
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
220
|
+
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
221
|
+
message: string;
|
|
222
|
+
}, {
|
|
223
|
+
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
224
|
+
message: string;
|
|
225
|
+
}>;
|
|
226
|
+
location: import("zod").ZodObject<{
|
|
227
|
+
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
228
|
+
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
229
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
230
|
+
countryCode: string | null;
|
|
231
|
+
regionCode: string | null;
|
|
232
|
+
}, {
|
|
233
|
+
countryCode: string | null;
|
|
234
|
+
regionCode: string | null;
|
|
235
|
+
}>;
|
|
236
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
237
|
+
showConsentBanner: boolean;
|
|
238
|
+
jurisdiction: {
|
|
239
|
+
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
240
|
+
message: string;
|
|
241
|
+
};
|
|
242
|
+
location: {
|
|
243
|
+
countryCode: string | null;
|
|
244
|
+
regionCode: string | null;
|
|
245
|
+
};
|
|
246
|
+
}, {
|
|
247
|
+
showConsentBanner: boolean;
|
|
248
|
+
jurisdiction: {
|
|
249
|
+
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
250
|
+
message: string;
|
|
251
|
+
};
|
|
252
|
+
location: {
|
|
253
|
+
countryCode: string | null;
|
|
254
|
+
regionCode: string | null;
|
|
255
|
+
};
|
|
256
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
257
|
+
verify: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
258
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
259
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
260
|
+
domain: import("zod").ZodString;
|
|
261
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
262
|
+
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
263
|
+
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
264
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
265
|
+
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
266
|
+
domain: string;
|
|
267
|
+
subjectId?: string | undefined;
|
|
268
|
+
policyId?: string | undefined;
|
|
269
|
+
externalSubjectId?: string | undefined;
|
|
270
|
+
preferences?: string[] | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
273
|
+
domain: string;
|
|
274
|
+
subjectId?: string | undefined;
|
|
275
|
+
policyId?: string | undefined;
|
|
276
|
+
externalSubjectId?: string | undefined;
|
|
277
|
+
preferences?: string[] | undefined;
|
|
278
|
+
}>, import("zod").ZodObject<{
|
|
279
|
+
isValid: import("zod").ZodBoolean;
|
|
280
|
+
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
281
|
+
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
282
|
+
id: import("zod").ZodString;
|
|
283
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
284
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
285
|
+
id: import("zod").ZodString;
|
|
286
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
287
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
288
|
+
id: import("zod").ZodString;
|
|
289
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
290
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
291
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
292
|
+
isValid: boolean;
|
|
293
|
+
consent?: import("zod").objectOutputType<{
|
|
294
|
+
id: import("zod").ZodString;
|
|
295
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
296
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
297
|
+
reasons?: string[] | undefined;
|
|
298
|
+
}, {
|
|
299
|
+
isValid: boolean;
|
|
300
|
+
consent?: import("zod").objectInputType<{
|
|
301
|
+
id: import("zod").ZodString;
|
|
302
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
303
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
304
|
+
reasons?: string[] | undefined;
|
|
305
|
+
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
306
|
+
INPUT_VALIDATION_FAILED: {
|
|
307
|
+
status: number;
|
|
308
|
+
message: string;
|
|
309
|
+
data: import("zod").ZodObject<{
|
|
310
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
311
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
312
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
313
|
+
formErrors: string[];
|
|
314
|
+
fieldErrors: Record<string, string[] | undefined>;
|
|
315
|
+
}, {
|
|
316
|
+
formErrors: string[];
|
|
317
|
+
fieldErrors: Record<string, string[] | undefined>;
|
|
318
|
+
}>;
|
|
319
|
+
};
|
|
320
|
+
SUBJECT_NOT_FOUND: {
|
|
321
|
+
status: number;
|
|
322
|
+
message: string;
|
|
323
|
+
data: import("zod").ZodObject<{
|
|
324
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
325
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
326
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
327
|
+
subjectId?: string | undefined;
|
|
328
|
+
externalSubjectId?: string | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
subjectId?: string | undefined;
|
|
331
|
+
externalSubjectId?: string | undefined;
|
|
332
|
+
}>;
|
|
333
|
+
};
|
|
334
|
+
DOMAIN_NOT_FOUND: {
|
|
335
|
+
status: number;
|
|
336
|
+
message: string;
|
|
337
|
+
data: import("zod").ZodObject<{
|
|
338
|
+
domain: import("zod").ZodString;
|
|
339
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
340
|
+
domain: string;
|
|
341
|
+
}, {
|
|
342
|
+
domain: string;
|
|
343
|
+
}>;
|
|
344
|
+
};
|
|
345
|
+
POLICY_NOT_FOUND: {
|
|
346
|
+
status: number;
|
|
347
|
+
message: string;
|
|
348
|
+
data: import("zod").ZodObject<{
|
|
349
|
+
policyId: import("zod").ZodString;
|
|
350
|
+
type: import("zod").ZodString;
|
|
351
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
352
|
+
type: string;
|
|
353
|
+
policyId: string;
|
|
354
|
+
}, {
|
|
355
|
+
type: string;
|
|
356
|
+
policyId: string;
|
|
357
|
+
}>;
|
|
358
|
+
};
|
|
359
|
+
PURPOSES_NOT_FOUND: {
|
|
360
|
+
status: number;
|
|
361
|
+
message: string;
|
|
362
|
+
data: import("zod").ZodObject<{
|
|
363
|
+
preferences: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
364
|
+
foundPurposes: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
365
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
366
|
+
preferences: string[];
|
|
367
|
+
foundPurposes: string[];
|
|
368
|
+
}, {
|
|
369
|
+
preferences: string[];
|
|
370
|
+
foundPurposes: string[];
|
|
371
|
+
}>;
|
|
372
|
+
};
|
|
373
|
+
COOKIE_BANNER_PREFERENCES_REQUIRED: {
|
|
374
|
+
status: number;
|
|
375
|
+
message: string;
|
|
376
|
+
data: import("zod").ZodObject<{
|
|
377
|
+
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
378
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
379
|
+
type: "cookie_banner";
|
|
380
|
+
}, {
|
|
381
|
+
type: "cookie_banner";
|
|
382
|
+
}>;
|
|
383
|
+
};
|
|
384
|
+
NO_CONSENT_FOUND: {
|
|
385
|
+
status: number;
|
|
386
|
+
message: string;
|
|
387
|
+
data: import("zod").ZodObject<{
|
|
388
|
+
policyId: import("zod").ZodString;
|
|
389
|
+
subjectId: import("zod").ZodString;
|
|
390
|
+
domainId: import("zod").ZodString;
|
|
391
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
392
|
+
subjectId: string;
|
|
393
|
+
domainId: string;
|
|
394
|
+
policyId: string;
|
|
395
|
+
}, {
|
|
396
|
+
subjectId: string;
|
|
397
|
+
domainId: string;
|
|
398
|
+
policyId: string;
|
|
399
|
+
}>;
|
|
400
|
+
};
|
|
401
|
+
}>, Record<never, never>>;
|
|
402
|
+
};
|
|
403
|
+
meta: {
|
|
404
|
+
status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
405
|
+
status: import("zod").ZodEnum<["ok", "error"]>;
|
|
406
|
+
version: import("zod").ZodString;
|
|
407
|
+
timestamp: import("zod").ZodDate;
|
|
408
|
+
storage: import("zod").ZodObject<{
|
|
409
|
+
type: import("zod").ZodString;
|
|
410
|
+
available: import("zod").ZodBoolean;
|
|
411
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
412
|
+
type: string;
|
|
413
|
+
available: boolean;
|
|
414
|
+
}, {
|
|
415
|
+
type: string;
|
|
416
|
+
available: boolean;
|
|
417
|
+
}>;
|
|
418
|
+
client: import("zod").ZodObject<{
|
|
419
|
+
ip: import("zod").ZodNullable<import("zod").ZodString>;
|
|
420
|
+
userAgent: import("zod").ZodNullable<import("zod").ZodString>;
|
|
421
|
+
region: import("zod").ZodObject<{
|
|
422
|
+
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
423
|
+
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
424
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
425
|
+
countryCode: string | null;
|
|
426
|
+
regionCode: string | null;
|
|
427
|
+
}, {
|
|
428
|
+
countryCode: string | null;
|
|
429
|
+
regionCode: string | null;
|
|
430
|
+
}>;
|
|
431
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
432
|
+
userAgent: string | null;
|
|
433
|
+
ip: string | null;
|
|
434
|
+
region: {
|
|
435
|
+
countryCode: string | null;
|
|
436
|
+
regionCode: string | null;
|
|
437
|
+
};
|
|
438
|
+
}, {
|
|
439
|
+
userAgent: string | null;
|
|
440
|
+
ip: string | null;
|
|
441
|
+
region: {
|
|
442
|
+
countryCode: string | null;
|
|
443
|
+
regionCode: string | null;
|
|
444
|
+
};
|
|
445
|
+
}>;
|
|
446
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
447
|
+
storage: {
|
|
448
|
+
type: string;
|
|
449
|
+
available: boolean;
|
|
450
|
+
};
|
|
451
|
+
status: "error" | "ok";
|
|
452
|
+
version: string;
|
|
453
|
+
timestamp: Date;
|
|
454
|
+
client: {
|
|
455
|
+
userAgent: string | null;
|
|
456
|
+
ip: string | null;
|
|
457
|
+
region: {
|
|
458
|
+
countryCode: string | null;
|
|
459
|
+
regionCode: string | null;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
}, {
|
|
463
|
+
storage: {
|
|
464
|
+
type: string;
|
|
465
|
+
available: boolean;
|
|
466
|
+
};
|
|
467
|
+
status: "error" | "ok";
|
|
468
|
+
version: string;
|
|
469
|
+
timestamp: Date;
|
|
470
|
+
client: {
|
|
471
|
+
userAgent: string | null;
|
|
472
|
+
ip: string | null;
|
|
473
|
+
region: {
|
|
474
|
+
countryCode: string | null;
|
|
475
|
+
regionCode: string | null;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
export declare const os: import("@orpc/server").Implementer<{
|
|
482
|
+
consent: {
|
|
483
|
+
post: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
484
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
485
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
486
|
+
domain: import("zod").ZodString;
|
|
487
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
488
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
489
|
+
}, {
|
|
490
|
+
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
491
|
+
preferences: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>;
|
|
492
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
493
|
+
type: "cookie_banner";
|
|
494
|
+
domain: string;
|
|
495
|
+
preferences: Record<string, boolean>;
|
|
496
|
+
subjectId?: string | undefined;
|
|
497
|
+
metadata?: Record<string, unknown> | undefined;
|
|
498
|
+
externalSubjectId?: string | undefined;
|
|
499
|
+
}, {
|
|
500
|
+
type: "cookie_banner";
|
|
501
|
+
domain: string;
|
|
502
|
+
preferences: Record<string, boolean>;
|
|
503
|
+
subjectId?: string | undefined;
|
|
504
|
+
metadata?: Record<string, unknown> | undefined;
|
|
505
|
+
externalSubjectId?: string | undefined;
|
|
506
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
507
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
508
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
509
|
+
domain: import("zod").ZodString;
|
|
510
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
511
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
512
|
+
}, {
|
|
513
|
+
type: import("zod").ZodEnum<["privacy_policy", "dpa", "terms_and_conditions"]>;
|
|
514
|
+
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
515
|
+
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
516
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
517
|
+
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
518
|
+
domain: string;
|
|
519
|
+
subjectId?: string | undefined;
|
|
520
|
+
metadata?: Record<string, unknown> | undefined;
|
|
521
|
+
policyId?: string | undefined;
|
|
522
|
+
externalSubjectId?: string | undefined;
|
|
523
|
+
preferences?: Record<string, boolean> | undefined;
|
|
524
|
+
}, {
|
|
525
|
+
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
526
|
+
domain: string;
|
|
527
|
+
subjectId?: string | undefined;
|
|
528
|
+
metadata?: Record<string, unknown> | undefined;
|
|
529
|
+
policyId?: string | undefined;
|
|
530
|
+
externalSubjectId?: string | undefined;
|
|
531
|
+
preferences?: Record<string, boolean> | undefined;
|
|
532
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
533
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
534
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
535
|
+
domain: import("zod").ZodString;
|
|
536
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
537
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
538
|
+
}, {
|
|
539
|
+
type: import("zod").ZodEnum<["marketing_communications", "age_verification", "other"]>;
|
|
540
|
+
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
541
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
542
|
+
type: "marketing_communications" | "age_verification" | "other";
|
|
543
|
+
domain: string;
|
|
544
|
+
subjectId?: string | undefined;
|
|
545
|
+
metadata?: Record<string, unknown> | undefined;
|
|
546
|
+
externalSubjectId?: string | undefined;
|
|
547
|
+
preferences?: Record<string, boolean> | undefined;
|
|
548
|
+
}, {
|
|
549
|
+
type: "marketing_communications" | "age_verification" | "other";
|
|
550
|
+
domain: string;
|
|
551
|
+
subjectId?: string | undefined;
|
|
552
|
+
metadata?: Record<string, unknown> | undefined;
|
|
553
|
+
externalSubjectId?: string | undefined;
|
|
554
|
+
preferences?: Record<string, boolean> | undefined;
|
|
555
|
+
}>]>, import("zod").ZodObject<{
|
|
556
|
+
id: import("zod").ZodString;
|
|
557
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
558
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
559
|
+
domainId: import("zod").ZodString;
|
|
560
|
+
domain: import("zod").ZodString;
|
|
561
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
562
|
+
status: import("zod").ZodString;
|
|
563
|
+
recordId: import("zod").ZodString;
|
|
564
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
565
|
+
givenAt: import("zod").ZodDate;
|
|
566
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
567
|
+
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
568
|
+
status: string;
|
|
569
|
+
id: string;
|
|
570
|
+
domain: string;
|
|
571
|
+
domainId: string;
|
|
572
|
+
givenAt: Date;
|
|
573
|
+
recordId: string;
|
|
574
|
+
subjectId?: string | undefined;
|
|
575
|
+
metadata?: Record<string, unknown> | undefined;
|
|
576
|
+
externalSubjectId?: string | undefined;
|
|
577
|
+
}, {
|
|
578
|
+
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
579
|
+
status: string;
|
|
580
|
+
id: string;
|
|
581
|
+
domain: string;
|
|
582
|
+
domainId: string;
|
|
583
|
+
givenAt: Date;
|
|
584
|
+
recordId: string;
|
|
585
|
+
subjectId?: string | undefined;
|
|
586
|
+
metadata?: Record<string, unknown> | undefined;
|
|
587
|
+
externalSubjectId?: string | undefined;
|
|
588
|
+
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
589
|
+
INPUT_VALIDATION_FAILED: {
|
|
590
|
+
status: number;
|
|
591
|
+
message: string;
|
|
592
|
+
data: import("zod").ZodObject<{
|
|
593
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
594
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
595
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
596
|
+
formErrors: string[];
|
|
597
|
+
fieldErrors: Record<string, string[]>;
|
|
598
|
+
}, {
|
|
599
|
+
formErrors: string[];
|
|
600
|
+
fieldErrors: Record<string, string[]>;
|
|
601
|
+
}>;
|
|
602
|
+
};
|
|
603
|
+
SUBJECT_CREATION_FAILED: {
|
|
604
|
+
status: number;
|
|
605
|
+
message: string;
|
|
606
|
+
data: import("zod").ZodObject<{
|
|
607
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
608
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
609
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
610
|
+
subjectId?: string | undefined;
|
|
611
|
+
externalSubjectId?: string | undefined;
|
|
612
|
+
}, {
|
|
613
|
+
subjectId?: string | undefined;
|
|
614
|
+
externalSubjectId?: string | undefined;
|
|
615
|
+
}>;
|
|
616
|
+
};
|
|
617
|
+
DOMAIN_CREATION_FAILED: {
|
|
618
|
+
status: number;
|
|
619
|
+
message: string;
|
|
620
|
+
data: import("zod").ZodObject<{
|
|
621
|
+
domain: import("zod").ZodString;
|
|
622
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
623
|
+
domain: string;
|
|
624
|
+
}, {
|
|
625
|
+
domain: string;
|
|
626
|
+
}>;
|
|
627
|
+
};
|
|
628
|
+
POLICY_NOT_FOUND: {
|
|
629
|
+
status: number;
|
|
630
|
+
message: string;
|
|
631
|
+
data: import("zod").ZodObject<{
|
|
632
|
+
policyId: import("zod").ZodString;
|
|
633
|
+
type: import("zod").ZodString;
|
|
634
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
635
|
+
type: string;
|
|
636
|
+
policyId: string;
|
|
637
|
+
}, {
|
|
638
|
+
type: string;
|
|
639
|
+
policyId: string;
|
|
640
|
+
}>;
|
|
641
|
+
};
|
|
642
|
+
POLICY_INACTIVE: {
|
|
643
|
+
status: number;
|
|
644
|
+
message: string;
|
|
645
|
+
data: import("zod").ZodObject<{
|
|
646
|
+
policyId: import("zod").ZodString;
|
|
647
|
+
type: import("zod").ZodString;
|
|
648
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
649
|
+
type: string;
|
|
650
|
+
policyId: string;
|
|
651
|
+
}, {
|
|
652
|
+
type: string;
|
|
653
|
+
policyId: string;
|
|
654
|
+
}>;
|
|
655
|
+
};
|
|
656
|
+
POLICY_CREATION_FAILED: {
|
|
657
|
+
status: number;
|
|
658
|
+
message: string;
|
|
659
|
+
data: import("zod").ZodObject<{
|
|
660
|
+
type: import("zod").ZodString;
|
|
661
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
662
|
+
type: string;
|
|
663
|
+
}, {
|
|
664
|
+
type: string;
|
|
665
|
+
}>;
|
|
666
|
+
};
|
|
667
|
+
PURPOSE_CREATION_FAILED: {
|
|
668
|
+
status: number;
|
|
669
|
+
message: string;
|
|
670
|
+
data: import("zod").ZodObject<{
|
|
671
|
+
purposeCode: import("zod").ZodString;
|
|
672
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
673
|
+
purposeCode: string;
|
|
674
|
+
}, {
|
|
675
|
+
purposeCode: string;
|
|
676
|
+
}>;
|
|
677
|
+
};
|
|
678
|
+
CONSENT_CREATION_FAILED: {
|
|
679
|
+
status: number;
|
|
680
|
+
message: string;
|
|
681
|
+
data: import("zod").ZodObject<{
|
|
682
|
+
subjectId: import("zod").ZodString;
|
|
683
|
+
domain: import("zod").ZodString;
|
|
684
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
685
|
+
subjectId: string;
|
|
686
|
+
domain: string;
|
|
687
|
+
}, {
|
|
688
|
+
subjectId: string;
|
|
689
|
+
domain: string;
|
|
690
|
+
}>;
|
|
691
|
+
};
|
|
692
|
+
}>, Record<never, never>>;
|
|
693
|
+
showBanner: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
694
|
+
showConsentBanner: import("zod").ZodBoolean;
|
|
695
|
+
jurisdiction: import("zod").ZodObject<{
|
|
696
|
+
code: import("zod").ZodEnum<["GDPR", "CH", "BR", "PIPEDA", "AU", "APPI", "PIPA", "NONE"]>;
|
|
697
|
+
message: import("zod").ZodString;
|
|
698
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
699
|
+
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
700
|
+
message: string;
|
|
701
|
+
}, {
|
|
702
|
+
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
703
|
+
message: string;
|
|
704
|
+
}>;
|
|
705
|
+
location: import("zod").ZodObject<{
|
|
706
|
+
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
707
|
+
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
708
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
709
|
+
countryCode: string | null;
|
|
710
|
+
regionCode: string | null;
|
|
711
|
+
}, {
|
|
712
|
+
countryCode: string | null;
|
|
713
|
+
regionCode: string | null;
|
|
714
|
+
}>;
|
|
715
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
716
|
+
showConsentBanner: boolean;
|
|
717
|
+
jurisdiction: {
|
|
718
|
+
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
719
|
+
message: string;
|
|
720
|
+
};
|
|
721
|
+
location: {
|
|
722
|
+
countryCode: string | null;
|
|
723
|
+
regionCode: string | null;
|
|
724
|
+
};
|
|
725
|
+
}, {
|
|
726
|
+
showConsentBanner: boolean;
|
|
727
|
+
jurisdiction: {
|
|
728
|
+
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
729
|
+
message: string;
|
|
730
|
+
};
|
|
731
|
+
location: {
|
|
732
|
+
countryCode: string | null;
|
|
733
|
+
regionCode: string | null;
|
|
734
|
+
};
|
|
735
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
736
|
+
verify: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
737
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
738
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
739
|
+
domain: import("zod").ZodString;
|
|
740
|
+
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
741
|
+
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
742
|
+
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
743
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
744
|
+
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
745
|
+
domain: string;
|
|
746
|
+
subjectId?: string | undefined;
|
|
747
|
+
policyId?: string | undefined;
|
|
748
|
+
externalSubjectId?: string | undefined;
|
|
749
|
+
preferences?: string[] | undefined;
|
|
750
|
+
}, {
|
|
751
|
+
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
752
|
+
domain: string;
|
|
753
|
+
subjectId?: string | undefined;
|
|
754
|
+
policyId?: string | undefined;
|
|
755
|
+
externalSubjectId?: string | undefined;
|
|
756
|
+
preferences?: string[] | undefined;
|
|
757
|
+
}>, import("zod").ZodObject<{
|
|
758
|
+
isValid: import("zod").ZodBoolean;
|
|
759
|
+
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
760
|
+
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
761
|
+
id: import("zod").ZodString;
|
|
762
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
763
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
764
|
+
id: import("zod").ZodString;
|
|
765
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
766
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
767
|
+
id: import("zod").ZodString;
|
|
768
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
769
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
770
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
771
|
+
isValid: boolean;
|
|
772
|
+
consent?: import("zod").objectOutputType<{
|
|
773
|
+
id: import("zod").ZodString;
|
|
774
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
775
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
776
|
+
reasons?: string[] | undefined;
|
|
777
|
+
}, {
|
|
778
|
+
isValid: boolean;
|
|
779
|
+
consent?: import("zod").objectInputType<{
|
|
780
|
+
id: import("zod").ZodString;
|
|
781
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
782
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
783
|
+
reasons?: string[] | undefined;
|
|
784
|
+
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
785
|
+
INPUT_VALIDATION_FAILED: {
|
|
786
|
+
status: number;
|
|
787
|
+
message: string;
|
|
788
|
+
data: import("zod").ZodObject<{
|
|
789
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
790
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
791
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
792
|
+
formErrors: string[];
|
|
793
|
+
fieldErrors: Record<string, string[] | undefined>;
|
|
794
|
+
}, {
|
|
795
|
+
formErrors: string[];
|
|
796
|
+
fieldErrors: Record<string, string[] | undefined>;
|
|
797
|
+
}>;
|
|
798
|
+
};
|
|
799
|
+
SUBJECT_NOT_FOUND: {
|
|
800
|
+
status: number;
|
|
801
|
+
message: string;
|
|
802
|
+
data: import("zod").ZodObject<{
|
|
803
|
+
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
804
|
+
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
805
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
806
|
+
subjectId?: string | undefined;
|
|
807
|
+
externalSubjectId?: string | undefined;
|
|
808
|
+
}, {
|
|
809
|
+
subjectId?: string | undefined;
|
|
810
|
+
externalSubjectId?: string | undefined;
|
|
811
|
+
}>;
|
|
812
|
+
};
|
|
813
|
+
DOMAIN_NOT_FOUND: {
|
|
814
|
+
status: number;
|
|
815
|
+
message: string;
|
|
816
|
+
data: import("zod").ZodObject<{
|
|
817
|
+
domain: import("zod").ZodString;
|
|
818
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
819
|
+
domain: string;
|
|
820
|
+
}, {
|
|
821
|
+
domain: string;
|
|
822
|
+
}>;
|
|
823
|
+
};
|
|
824
|
+
POLICY_NOT_FOUND: {
|
|
825
|
+
status: number;
|
|
826
|
+
message: string;
|
|
827
|
+
data: import("zod").ZodObject<{
|
|
828
|
+
policyId: import("zod").ZodString;
|
|
829
|
+
type: import("zod").ZodString;
|
|
830
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
831
|
+
type: string;
|
|
832
|
+
policyId: string;
|
|
833
|
+
}, {
|
|
834
|
+
type: string;
|
|
835
|
+
policyId: string;
|
|
836
|
+
}>;
|
|
837
|
+
};
|
|
838
|
+
PURPOSES_NOT_FOUND: {
|
|
839
|
+
status: number;
|
|
840
|
+
message: string;
|
|
841
|
+
data: import("zod").ZodObject<{
|
|
842
|
+
preferences: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
843
|
+
foundPurposes: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
844
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
845
|
+
preferences: string[];
|
|
846
|
+
foundPurposes: string[];
|
|
847
|
+
}, {
|
|
848
|
+
preferences: string[];
|
|
849
|
+
foundPurposes: string[];
|
|
850
|
+
}>;
|
|
851
|
+
};
|
|
852
|
+
COOKIE_BANNER_PREFERENCES_REQUIRED: {
|
|
853
|
+
status: number;
|
|
854
|
+
message: string;
|
|
855
|
+
data: import("zod").ZodObject<{
|
|
856
|
+
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
857
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
858
|
+
type: "cookie_banner";
|
|
859
|
+
}, {
|
|
860
|
+
type: "cookie_banner";
|
|
861
|
+
}>;
|
|
862
|
+
};
|
|
863
|
+
NO_CONSENT_FOUND: {
|
|
864
|
+
status: number;
|
|
865
|
+
message: string;
|
|
866
|
+
data: import("zod").ZodObject<{
|
|
867
|
+
policyId: import("zod").ZodString;
|
|
868
|
+
subjectId: import("zod").ZodString;
|
|
869
|
+
domainId: import("zod").ZodString;
|
|
870
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
871
|
+
subjectId: string;
|
|
872
|
+
domainId: string;
|
|
873
|
+
policyId: string;
|
|
874
|
+
}, {
|
|
875
|
+
subjectId: string;
|
|
876
|
+
domainId: string;
|
|
877
|
+
policyId: string;
|
|
878
|
+
}>;
|
|
879
|
+
};
|
|
880
|
+
}>, Record<never, never>>;
|
|
881
|
+
};
|
|
882
|
+
meta: {
|
|
883
|
+
status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
884
|
+
status: import("zod").ZodEnum<["ok", "error"]>;
|
|
885
|
+
version: import("zod").ZodString;
|
|
886
|
+
timestamp: import("zod").ZodDate;
|
|
887
|
+
storage: import("zod").ZodObject<{
|
|
888
|
+
type: import("zod").ZodString;
|
|
889
|
+
available: import("zod").ZodBoolean;
|
|
890
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
891
|
+
type: string;
|
|
892
|
+
available: boolean;
|
|
893
|
+
}, {
|
|
894
|
+
type: string;
|
|
895
|
+
available: boolean;
|
|
896
|
+
}>;
|
|
897
|
+
client: import("zod").ZodObject<{
|
|
898
|
+
ip: import("zod").ZodNullable<import("zod").ZodString>;
|
|
899
|
+
userAgent: import("zod").ZodNullable<import("zod").ZodString>;
|
|
900
|
+
region: import("zod").ZodObject<{
|
|
901
|
+
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
902
|
+
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
903
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
904
|
+
countryCode: string | null;
|
|
905
|
+
regionCode: string | null;
|
|
906
|
+
}, {
|
|
907
|
+
countryCode: string | null;
|
|
908
|
+
regionCode: string | null;
|
|
909
|
+
}>;
|
|
910
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
911
|
+
userAgent: string | null;
|
|
912
|
+
ip: string | null;
|
|
913
|
+
region: {
|
|
914
|
+
countryCode: string | null;
|
|
915
|
+
regionCode: string | null;
|
|
916
|
+
};
|
|
917
|
+
}, {
|
|
918
|
+
userAgent: string | null;
|
|
919
|
+
ip: string | null;
|
|
920
|
+
region: {
|
|
921
|
+
countryCode: string | null;
|
|
922
|
+
regionCode: string | null;
|
|
923
|
+
};
|
|
924
|
+
}>;
|
|
925
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
926
|
+
storage: {
|
|
927
|
+
type: string;
|
|
928
|
+
available: boolean;
|
|
929
|
+
};
|
|
930
|
+
status: "error" | "ok";
|
|
931
|
+
version: string;
|
|
932
|
+
timestamp: Date;
|
|
933
|
+
client: {
|
|
934
|
+
userAgent: string | null;
|
|
935
|
+
ip: string | null;
|
|
936
|
+
region: {
|
|
937
|
+
countryCode: string | null;
|
|
938
|
+
regionCode: string | null;
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
}, {
|
|
942
|
+
storage: {
|
|
943
|
+
type: string;
|
|
944
|
+
available: boolean;
|
|
945
|
+
};
|
|
946
|
+
status: "error" | "ok";
|
|
947
|
+
version: string;
|
|
948
|
+
timestamp: Date;
|
|
949
|
+
client: {
|
|
950
|
+
userAgent: string | null;
|
|
951
|
+
ip: string | null;
|
|
952
|
+
region: {
|
|
953
|
+
countryCode: string | null;
|
|
954
|
+
regionCode: string | null;
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
958
|
+
};
|
|
959
|
+
}, Record<never, never>, Record<never, never>>;
|
|
960
|
+
export type ContractsOutputs = InferContractRouterOutputs<typeof config>;
|
|
961
|
+
export type ContractsInputs = InferContractRouterInputs<typeof config>;
|
|
962
|
+
export {};
|
|
963
|
+
//# sourceMappingURL=index.d.ts.map
|