@c15t/backend 1.5.0 → 1.6.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 +63 -37
- package/CHANGELOG.md +4 -209
- package/README.md +86 -164
- package/dist/contracts/consent/index.d.ts +103 -615
- package/dist/contracts/consent/index.d.ts.map +1 -1
- package/dist/contracts/consent/post.contract.d.ts +42 -140
- package/dist/contracts/consent/post.contract.d.ts.map +1 -1
- package/dist/contracts/consent/show-banner.contract.d.ts +28 -376
- package/dist/contracts/consent/show-banner.contract.d.ts.map +1 -1
- package/dist/contracts/consent/verify.contract.d.ts +33 -99
- package/dist/contracts/consent/verify.contract.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +222 -1356
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/meta/index.d.ts +8 -63
- package/dist/contracts/meta/index.d.ts.map +1 -1
- package/dist/contracts/meta/status.contract.d.ts +8 -63
- package/dist/contracts/meta/status.contract.d.ts.map +1 -1
- package/dist/contracts/shared/jurisdiction.schema.d.ts +21 -9
- package/dist/contracts/shared/jurisdiction.schema.d.ts.map +1 -1
- package/dist/contracts.cjs +100 -106
- package/dist/contracts.js +100 -106
- package/dist/core.cjs +681 -681
- package/dist/core.d.ts +118 -678
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +634 -637
- package/dist/handlers/consent/index.d.ts +103 -615
- package/dist/handlers/consent/index.d.ts.map +1 -1
- package/dist/handlers/consent/post.handler.d.ts +42 -140
- package/dist/handlers/consent/post.handler.d.ts.map +1 -1
- package/dist/handlers/consent/show-banner/handler.d.ts +28 -376
- package/dist/handlers/consent/show-banner/handler.d.ts.map +1 -1
- package/dist/handlers/consent/show-banner/translations.d.ts.map +1 -1
- package/dist/handlers/consent/verify.handler.d.ts +33 -99
- package/dist/handlers/consent/verify.handler.d.ts.map +1 -1
- package/dist/handlers/meta/index.d.ts +8 -63
- package/dist/handlers/meta/index.d.ts.map +1 -1
- package/dist/handlers/meta/status.handler.d.ts +8 -63
- package/dist/handlers/meta/status.handler.d.ts.map +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/middleware/openapi/index.d.ts +2 -2
- package/dist/middleware/openapi/index.d.ts.map +1 -1
- package/dist/pkgs/data-model/fields/index.cjs +14 -26
- package/dist/pkgs/data-model/fields/index.d.ts +4 -4
- package/dist/pkgs/data-model/fields/index.d.ts.map +1 -1
- package/dist/pkgs/data-model/fields/index.js +14 -26
- package/dist/pkgs/data-model/fields/zod-fields.d.ts +195 -871
- package/dist/pkgs/data-model/fields/zod-fields.d.ts.map +1 -1
- package/dist/pkgs/data-model/hooks/index.d.ts +2 -2
- package/dist/pkgs/data-model/hooks/index.d.ts.map +1 -1
- package/dist/pkgs/data-model/index.cjs +346 -358
- package/dist/pkgs/data-model/index.d.ts +1 -1
- package/dist/pkgs/data-model/index.d.ts.map +1 -1
- package/dist/pkgs/data-model/index.js +345 -357
- package/dist/pkgs/data-model/schema/index.cjs +346 -358
- package/dist/pkgs/data-model/schema/index.d.ts +1 -1
- package/dist/pkgs/data-model/schema/index.d.ts.map +1 -1
- package/dist/pkgs/data-model/schema/index.js +345 -357
- package/dist/pkgs/data-model/schema/schemas.d.ts +2 -2
- package/dist/pkgs/data-model/schema/schemas.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/adapters/drizzle-adapter/drizzle-adapter.d.ts +3 -0
- package/dist/pkgs/db-adapters/adapters/drizzle-adapter/drizzle-adapter.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/adapters/drizzle-adapter/index.cjs +158 -170
- package/dist/pkgs/db-adapters/adapters/drizzle-adapter/index.js +157 -169
- package/dist/pkgs/db-adapters/adapters/index.d.ts +2 -2
- package/dist/pkgs/db-adapters/adapters/index.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/index.cjs +215 -227
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/index.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/index.js +213 -225
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/kysely-adapter.d.ts +2 -0
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/kysely-adapter.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/adapters/kysely-adapter/tests/test-utils.d.ts +1 -1
- 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 +158 -170
- package/dist/pkgs/db-adapters/adapters/memory-adapter/index.js +157 -169
- package/dist/pkgs/db-adapters/adapters/memory-adapter/memory-adapter.d.ts +3 -0
- package/dist/pkgs/db-adapters/adapters/memory-adapter/memory-adapter.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/adapters/prisma-adapter/index.cjs +243 -255
- package/dist/pkgs/db-adapters/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/pkgs/db-adapters/adapters/prisma-adapter/index.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/adapters/prisma-adapter/index.js +241 -253
- package/dist/pkgs/db-adapters/adapters/prisma-adapter/prisma-adapter.d.ts +3 -0
- package/dist/pkgs/db-adapters/adapters/prisma-adapter/prisma-adapter.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/index.cjs +714 -726
- package/dist/pkgs/db-adapters/index.d.ts +6 -6
- package/dist/pkgs/db-adapters/index.d.ts.map +1 -1
- package/dist/pkgs/db-adapters/index.js +708 -720
- package/dist/pkgs/migrations/get-migration.d.ts.map +1 -1
- package/dist/pkgs/migrations/get-schema/get-schema.d.ts.map +1 -1
- package/dist/pkgs/migrations/get-schema/process-tables.d.ts.map +1 -1
- package/dist/pkgs/migrations/index.cjs +236 -248
- package/dist/pkgs/migrations/index.d.ts +4 -4
- package/dist/pkgs/migrations/index.d.ts.map +1 -1
- package/dist/pkgs/migrations/index.js +235 -247
- package/dist/pkgs/results/index.cjs +67 -67
- package/dist/pkgs/results/index.d.ts +5 -5
- package/dist/pkgs/results/index.d.ts.map +1 -1
- package/dist/pkgs/results/index.js +67 -67
- package/dist/pkgs/results/orpc-error-handler.d.ts +1 -1
- package/dist/pkgs/results/orpc-error-handler.d.ts.map +1 -1
- package/dist/pkgs/types/index.d.ts +1 -2
- package/dist/pkgs/types/index.d.ts.map +1 -1
- package/dist/pkgs/types/options.d.ts +9 -2
- package/dist/pkgs/types/options.d.ts.map +1 -1
- package/dist/pkgs/utils/index.d.ts +1 -1
- package/dist/pkgs/utils/index.d.ts.map +1 -1
- package/dist/pkgs/utils/logger.d.ts +1 -1
- package/dist/pkgs/utils/logger.d.ts.map +1 -1
- package/dist/router.cjs +114 -117
- package/dist/router.d.ts +111 -678
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +114 -117
- package/dist/schema/audit-log/schema.d.ts +2 -24
- package/dist/schema/audit-log/schema.d.ts.map +1 -1
- package/dist/schema/audit-log/table.d.ts +2 -24
- package/dist/schema/audit-log/table.d.ts.map +1 -1
- package/dist/schema/consent/registry.d.ts +8 -8
- package/dist/schema/consent/schema.d.ts +9 -33
- package/dist/schema/consent/schema.d.ts.map +1 -1
- package/dist/schema/consent/table.d.ts +9 -33
- package/dist/schema/consent/table.d.ts.map +1 -1
- package/dist/schema/consent-policy/registry.d.ts +20 -20
- package/dist/schema/consent-policy/schema.d.ts +22 -30
- package/dist/schema/consent-policy/schema.d.ts.map +1 -1
- package/dist/schema/consent-policy/table.d.ts +13 -29
- package/dist/schema/consent-policy/table.d.ts.map +1 -1
- package/dist/schema/consent-purpose/registry.d.ts +6 -6
- package/dist/schema/consent-purpose/schema.d.ts +5 -27
- package/dist/schema/consent-purpose/schema.d.ts.map +1 -1
- package/dist/schema/consent-purpose/table.d.ts +5 -27
- package/dist/schema/consent-purpose/table.d.ts.map +1 -1
- package/dist/schema/consent-record/schema.d.ts +3 -19
- package/dist/schema/consent-record/schema.d.ts.map +1 -1
- package/dist/schema/consent-record/table.d.ts +3 -19
- package/dist/schema/consent-record/table.d.ts.map +1 -1
- package/dist/schema/create-registry.d.ts +58 -58
- package/dist/schema/definition.d.ts +42 -176
- package/dist/schema/definition.d.ts.map +1 -1
- package/dist/schema/domain/registry.d.ts +20 -20
- package/dist/schema/domain/schema.d.ts +6 -24
- package/dist/schema/domain/schema.d.ts.map +1 -1
- package/dist/schema/domain/table.d.ts +6 -24
- package/dist/schema/domain/table.d.ts.map +1 -1
- package/dist/schema/index.cjs +426 -438
- package/dist/schema/index.d.ts +12 -12
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +426 -438
- package/dist/schema/schemas.d.ts +42 -176
- package/dist/schema/schemas.d.ts.map +1 -1
- package/dist/schema/subject/registry.d.ts +4 -4
- package/dist/schema/subject/schema.d.ts +4 -20
- package/dist/schema/subject/schema.d.ts.map +1 -1
- package/dist/schema/subject/table.d.ts +4 -20
- package/dist/schema/subject/table.d.ts.map +1 -1
- package/dist/schema/types.d.ts +1 -1
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/testing/contract-testing.d.ts +3 -2
- package/dist/testing/contract-testing.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/options.d.ts +2 -2
- package/dist/types/options.d.ts.map +1 -1
- package/dist/v2/contracts/consent/index.d.ts +260 -0
- package/dist/v2/contracts/consent/index.d.ts.map +1 -0
- package/dist/v2/contracts/consent/index.test.d.ts +2 -0
- package/dist/v2/contracts/consent/index.test.d.ts.map +1 -0
- package/dist/v2/contracts/consent/post.contract.d.ts +114 -0
- package/dist/v2/contracts/consent/post.contract.d.ts.map +1 -0
- package/dist/v2/contracts/consent/post.contract.test.d.ts +2 -0
- package/dist/v2/contracts/consent/post.contract.test.d.ts.map +1 -0
- package/dist/v2/contracts/consent/show-banner.contract.d.ts +68 -0
- package/dist/v2/contracts/consent/show-banner.contract.d.ts.map +1 -0
- package/dist/v2/contracts/consent/show-banner.contract.test.d.ts +2 -0
- package/dist/v2/contracts/consent/show-banner.contract.test.d.ts.map +1 -0
- package/dist/v2/contracts/consent/verify.contract.d.ts +81 -0
- package/dist/v2/contracts/consent/verify.contract.d.ts.map +1 -0
- package/dist/v2/contracts/consent/verify.contract.test.d.ts +2 -0
- package/dist/v2/contracts/consent/verify.contract.test.d.ts.map +1 -0
- package/dist/v2/contracts/index.cjs +644 -0
- package/dist/v2/contracts/index.d.ts +563 -0
- package/dist/v2/contracts/index.d.ts.map +1 -0
- package/dist/v2/contracts/index.js +607 -0
- package/dist/v2/contracts/meta/index.d.ts +19 -0
- package/dist/v2/contracts/meta/index.d.ts.map +1 -0
- package/dist/v2/contracts/meta/index.test.d.ts +2 -0
- package/dist/v2/contracts/meta/index.test.d.ts.map +1 -0
- package/dist/v2/contracts/meta/status.contract.d.ts +18 -0
- package/dist/v2/contracts/meta/status.contract.d.ts.map +1 -0
- package/dist/v2/contracts/meta/status.contract.test.d.ts +2 -0
- package/dist/v2/contracts/meta/status.contract.test.d.ts.map +1 -0
- package/dist/v2/contracts/shared/jurisdiction.schema.d.ts +36 -0
- package/dist/v2/contracts/shared/jurisdiction.schema.d.ts.map +1 -0
- package/dist/v2/contracts/test.utils.d.ts +38 -0
- package/dist/v2/contracts/test.utils.d.ts.map +1 -0
- package/dist/v2/core.cjs +2181 -0
- package/dist/v2/core.d.ts +364 -0
- package/dist/v2/core.d.ts.map +1 -0
- package/dist/v2/core.js +2130 -0
- package/dist/v2/db/adapters/drizzle.cjs +36 -0
- package/dist/v2/db/adapters/drizzle.d.ts +2 -0
- package/dist/v2/db/adapters/drizzle.d.ts.map +1 -0
- package/dist/v2/db/adapters/drizzle.js +3 -0
- package/dist/v2/db/adapters/index.cjs +18 -0
- package/dist/v2/db/adapters/index.d.ts +2 -0
- package/dist/v2/db/adapters/index.d.ts.map +1 -0
- package/dist/v2/db/adapters/index.js +0 -0
- package/dist/v2/db/adapters/kysely.cjs +36 -0
- package/dist/v2/db/adapters/kysely.d.ts +2 -0
- package/dist/v2/db/adapters/kysely.d.ts.map +1 -0
- package/dist/v2/db/adapters/kysely.js +3 -0
- package/dist/v2/db/adapters/mongo.cjs +36 -0
- package/dist/v2/db/adapters/mongo.d.ts +2 -0
- package/dist/v2/db/adapters/mongo.d.ts.map +1 -0
- package/dist/v2/db/adapters/mongo.js +3 -0
- package/dist/v2/db/adapters/prisma.cjs +36 -0
- package/dist/v2/db/adapters/prisma.d.ts +2 -0
- package/dist/v2/db/adapters/prisma.d.ts.map +1 -0
- package/dist/v2/db/adapters/prisma.js +3 -0
- package/dist/v2/db/adapters/typeorm.cjs +36 -0
- package/dist/v2/db/adapters/typeorm.d.ts +2 -0
- package/dist/v2/db/adapters/typeorm.d.ts.map +1 -0
- package/dist/v2/db/adapters/typeorm.js +3 -0
- package/dist/v2/db/migrator/index.cjs +61 -0
- package/dist/v2/db/migrator/index.d.ts +29 -0
- package/dist/v2/db/migrator/index.d.ts.map +1 -0
- package/dist/v2/db/migrator/index.js +27 -0
- package/dist/v2/db/registry/audit-log.d.ts +21 -0
- package/dist/v2/db/registry/audit-log.d.ts.map +1 -0
- package/dist/v2/db/registry/audit-log.test.d.ts +2 -0
- package/dist/v2/db/registry/audit-log.test.d.ts.map +1 -0
- package/dist/v2/db/registry/consent-policy.d.ts +29 -0
- package/dist/v2/db/registry/consent-policy.d.ts.map +1 -0
- package/dist/v2/db/registry/consent-policy.test.d.ts +2 -0
- package/dist/v2/db/registry/consent-policy.test.d.ts.map +1 -0
- package/dist/v2/db/registry/consent-purpose.d.ts +16 -0
- package/dist/v2/db/registry/consent-purpose.d.ts.map +1 -0
- package/dist/v2/db/registry/consent-purpose.test.d.ts +2 -0
- package/dist/v2/db/registry/consent-purpose.test.d.ts.map +1 -0
- package/dist/v2/db/registry/consent.d.ts +20 -0
- package/dist/v2/db/registry/consent.d.ts.map +1 -0
- package/dist/v2/db/registry/consent.test.d.ts +2 -0
- package/dist/v2/db/registry/consent.test.d.ts.map +1 -0
- package/dist/v2/db/registry/domain.d.ts +24 -0
- package/dist/v2/db/registry/domain.d.ts.map +1 -0
- package/dist/v2/db/registry/domain.test.d.ts +2 -0
- package/dist/v2/db/registry/domain.test.d.ts.map +1 -0
- package/dist/v2/db/registry/index.d.ts +102 -0
- package/dist/v2/db/registry/index.d.ts.map +1 -0
- package/dist/v2/db/registry/subject.d.ts +18 -0
- package/dist/v2/db/registry/subject.d.ts.map +1 -0
- package/dist/v2/db/registry/subject.test.d.ts +2 -0
- package/dist/v2/db/registry/subject.test.d.ts.map +1 -0
- package/dist/v2/db/registry/types.d.ts +10 -0
- package/dist/v2/db/registry/types.d.ts.map +1 -0
- package/dist/v2/db/registry/utils/generate-id.d.ts +25 -0
- package/dist/v2/db/registry/utils/generate-id.d.ts.map +1 -0
- package/dist/v2/db/registry/utils/generate-id.test.d.ts +2 -0
- package/dist/v2/db/registry/utils/generate-id.test.d.ts.map +1 -0
- package/dist/v2/db/registry/utils.d.ts +25 -0
- package/dist/v2/db/registry/utils.d.ts.map +1 -0
- package/dist/v2/db/schema/1.0.0/audit-log.d.ts +29 -0
- package/dist/v2/db/schema/1.0.0/audit-log.d.ts.map +1 -0
- package/dist/v2/db/schema/1.0.0/consent-policy.d.ts +45 -0
- package/dist/v2/db/schema/1.0.0/consent-policy.d.ts.map +1 -0
- package/dist/v2/db/schema/1.0.0/consent-purpose.d.ts +27 -0
- package/dist/v2/db/schema/1.0.0/consent-purpose.d.ts.map +1 -0
- package/dist/v2/db/schema/1.0.0/consent-record.d.ts +19 -0
- package/dist/v2/db/schema/1.0.0/consent-record.d.ts.map +1 -0
- package/dist/v2/db/schema/1.0.0/consent.d.ts +42 -0
- package/dist/v2/db/schema/1.0.0/consent.d.ts.map +1 -0
- package/dist/v2/db/schema/1.0.0/domain.d.ts +23 -0
- package/dist/v2/db/schema/1.0.0/domain.d.ts.map +1 -0
- package/dist/v2/db/schema/1.0.0/index.d.ts +1513 -0
- package/dist/v2/db/schema/1.0.0/index.d.ts.map +1 -0
- package/dist/v2/db/schema/1.0.0/subject.d.ts +23 -0
- package/dist/v2/db/schema/1.0.0/subject.d.ts.map +1 -0
- package/dist/v2/db/schema/index.cjs +326 -0
- package/dist/v2/db/schema/index.d.ts +1507 -0
- package/dist/v2/db/schema/index.d.ts.map +1 -0
- package/dist/v2/db/schema/index.js +241 -0
- package/dist/v2/define-config.cjs +36 -0
- package/dist/v2/define-config.d.ts +5 -0
- package/dist/v2/define-config.d.ts.map +1 -0
- package/dist/v2/define-config.js +2 -0
- package/dist/v2/handlers/consent/index.d.ts +260 -0
- package/dist/v2/handlers/consent/index.d.ts.map +1 -0
- package/dist/v2/handlers/consent/post.handler.d.ts +136 -0
- package/dist/v2/handlers/consent/post.handler.d.ts.map +1 -0
- package/dist/v2/handlers/consent/show-banner/geo.d.ts +10 -0
- package/dist/v2/handlers/consent/show-banner/geo.d.ts.map +1 -0
- package/dist/v2/handlers/consent/show-banner/geo.test.d.ts +2 -0
- package/dist/v2/handlers/consent/show-banner/geo.test.d.ts.map +1 -0
- package/dist/v2/handlers/consent/show-banner/handler.d.ts +71 -0
- package/dist/v2/handlers/consent/show-banner/handler.d.ts.map +1 -0
- package/dist/v2/handlers/consent/show-banner/handler.test.d.ts +2 -0
- package/dist/v2/handlers/consent/show-banner/handler.test.d.ts.map +1 -0
- package/dist/v2/handlers/consent/show-banner/translations.d.ts +13 -0
- package/dist/v2/handlers/consent/show-banner/translations.d.ts.map +1 -0
- package/dist/v2/handlers/consent/show-banner/translations.test.d.ts +2 -0
- package/dist/v2/handlers/consent/show-banner/translations.test.d.ts.map +1 -0
- package/dist/v2/handlers/consent/verify.handler.d.ts +103 -0
- package/dist/v2/handlers/consent/verify.handler.d.ts.map +1 -0
- package/dist/v2/handlers/meta/index.d.ts +19 -0
- package/dist/v2/handlers/meta/index.d.ts.map +1 -0
- package/dist/v2/handlers/meta/status.handler.d.ts +17 -0
- package/dist/v2/handlers/meta/status.handler.d.ts.map +1 -0
- package/dist/v2/init.d.ts +3 -0
- package/dist/v2/init.d.ts.map +1 -0
- package/dist/v2/init.test.d.ts +2 -0
- package/dist/v2/init.test.d.ts.map +1 -0
- package/dist/v2/middleware/cors/cors.d.ts +37 -0
- package/dist/v2/middleware/cors/cors.d.ts.map +1 -0
- package/dist/v2/middleware/cors/cors.test.d.ts +2 -0
- package/dist/v2/middleware/cors/cors.test.d.ts.map +1 -0
- package/dist/v2/middleware/cors/index.d.ts +30 -0
- package/dist/v2/middleware/cors/index.d.ts.map +1 -0
- package/dist/v2/middleware/cors/is-origin-trusted.d.ts +49 -0
- package/dist/v2/middleware/cors/is-origin-trusted.d.ts.map +1 -0
- package/dist/v2/middleware/cors/is-origin-trusted.test.d.ts +2 -0
- package/dist/v2/middleware/cors/is-origin-trusted.test.d.ts.map +1 -0
- package/dist/v2/middleware/cors/process-cors.d.ts +31 -0
- package/dist/v2/middleware/cors/process-cors.d.ts.map +1 -0
- package/dist/v2/middleware/openapi/config.d.ts +28 -0
- package/dist/v2/middleware/openapi/config.d.ts.map +1 -0
- package/dist/v2/middleware/openapi/handlers.d.ts +29 -0
- package/dist/v2/middleware/openapi/handlers.d.ts.map +1 -0
- package/dist/v2/middleware/openapi/index.d.ts +11 -0
- package/dist/v2/middleware/openapi/index.d.ts.map +1 -0
- package/dist/v2/middleware/process-ip/index.d.ts +3 -0
- package/dist/v2/middleware/process-ip/index.d.ts.map +1 -0
- package/dist/v2/router.cjs +1275 -0
- package/dist/v2/router.d.ts +280 -0
- package/dist/v2/router.d.ts.map +1 -0
- package/dist/v2/router.js +1231 -0
- package/dist/v2/types/api.d.ts +27 -0
- package/dist/v2/types/api.d.ts.map +1 -0
- package/dist/v2/types/index.cjs +40 -0
- package/dist/v2/types/index.d.ts +104 -0
- package/dist/v2/types/index.d.ts.map +1 -0
- package/dist/v2/types/index.js +6 -0
- package/dist/v2/utils/create-telemetry-options.d.ts +28 -0
- package/dist/v2/utils/create-telemetry-options.d.ts.map +1 -0
- package/dist/v2/utils/env.d.ts +60 -0
- package/dist/v2/utils/env.d.ts.map +1 -0
- package/dist/v2/utils/index.d.ts +3 -0
- package/dist/v2/utils/index.d.ts.map +1 -0
- package/dist/v2/utils/logger.d.ts +16 -0
- package/dist/v2/utils/logger.d.ts.map +1 -0
- package/dist/version.d.ts +1 -1
- package/package.json +106 -15
- package/readme.json +30 -0
- package/rslib.config.ts +13 -14
- package/src/__tests__/server.test.ts +1 -1
- package/src/contracts/consent/post.contract.test.ts +3 -8
- package/src/contracts/consent/post.contract.ts +13 -13
- package/src/contracts/consent/show-banner.contract.test.ts +9 -0
- package/src/contracts/consent/show-banner.contract.ts +2 -0
- package/src/contracts/consent/verify.contract.ts +19 -23
- package/src/core.ts +7 -0
- package/src/handlers/consent/show-banner/handler.ts +12 -9
- package/src/handlers/consent/show-banner/translations.ts +2 -2
- package/src/init.ts +9 -6
- package/src/middleware/openapi/index.ts +2 -2
- package/src/pkgs/api-router/hooks/__tests__/processor.test.ts +1 -1
- package/src/pkgs/data-model/fields/index.ts +17 -22
- package/src/pkgs/data-model/fields/zod-fields.ts +14 -26
- package/src/pkgs/data-model/hooks/index.ts +3 -2
- package/src/pkgs/data-model/index.ts +2 -4
- package/src/pkgs/data-model/schema/index.ts +6 -7
- package/src/pkgs/data-model/schema/schemas.ts +3 -3
- package/src/pkgs/db-adapters/adapters/drizzle-adapter/drizzle-adapter.ts +4 -1
- package/src/pkgs/db-adapters/adapters/index.ts +2 -2
- package/src/pkgs/db-adapters/adapters/kysely-adapter/index.ts +4 -4
- package/src/pkgs/db-adapters/adapters/kysely-adapter/kysely-adapter.ts +4 -5
- package/src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts +2 -4
- package/src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts +2 -3
- package/src/pkgs/db-adapters/adapters/kysely-adapter/tests/test-utils.ts +1 -6
- package/src/pkgs/db-adapters/adapters/memory-adapter/memory-adapter.ts +4 -1
- package/src/pkgs/db-adapters/adapters/prisma-adapter/index.ts +1 -1
- package/src/pkgs/db-adapters/adapters/prisma-adapter/prisma-adapter.ts +5 -2
- package/src/pkgs/db-adapters/index.ts +12 -13
- package/src/pkgs/migrations/get-migration.ts +4 -2
- package/src/pkgs/migrations/get-schema/get-schema.ts +0 -1
- package/src/pkgs/migrations/get-schema/process-fields.ts +1 -1
- package/src/pkgs/migrations/get-schema/process-tables.ts +0 -2
- package/src/pkgs/migrations/index.ts +7 -8
- package/src/pkgs/results/__tests__/error-codes.test.ts +2 -2
- package/src/pkgs/results/index.ts +22 -27
- package/src/pkgs/results/orpc-error-handler.ts +1 -1
- package/src/pkgs/results/results/result-helpers.ts +1 -1
- package/src/pkgs/types/index.ts +4 -4
- package/src/pkgs/types/options.ts +10 -3
- package/src/pkgs/utils/index.ts +1 -1
- package/src/pkgs/utils/logger.ts +1 -1
- package/src/schema/audit-log/schema.ts +3 -3
- package/src/schema/consent/schema.ts +4 -4
- package/src/schema/consent-policy/schema.ts +3 -3
- package/src/schema/consent-purpose/schema.ts +4 -4
- package/src/schema/consent-record/schema.ts +3 -3
- package/src/schema/definition.ts +1 -1
- package/src/schema/domain/schema.ts +5 -5
- package/src/schema/index.ts +14 -17
- package/src/schema/subject/schema.ts +3 -3
- package/src/schema/types.ts +1 -1
- package/src/testing/contract-testing.ts +15 -52
- package/src/types/index.ts +8 -8
- package/src/types/options.ts +2 -3
- package/src/v2/contracts/consent/index.test.ts +5 -0
- package/src/v2/contracts/consent/index.ts +9 -0
- package/src/v2/contracts/consent/post.contract.test.ts +521 -0
- package/src/v2/contracts/consent/post.contract.ts +155 -0
- package/src/v2/contracts/consent/show-banner.contract.test.ts +252 -0
- package/src/v2/contracts/consent/show-banner.contract.ts +73 -0
- package/src/v2/contracts/consent/verify.contract.test.ts +185 -0
- package/src/v2/contracts/consent/verify.contract.ts +122 -0
- package/src/v2/contracts/index.ts +20 -0
- package/src/v2/contracts/meta/index.test.ts +5 -0
- package/src/v2/contracts/meta/index.ts +5 -0
- package/src/v2/contracts/meta/status.contract.test.ts +226 -0
- package/src/v2/contracts/meta/status.contract.ts +34 -0
- package/src/v2/contracts/shared/jurisdiction.schema.ts +30 -0
- package/src/v2/contracts/test.utils.ts +400 -0
- package/src/v2/core.ts +379 -0
- package/src/v2/db/adapters/drizzle.ts +1 -0
- package/src/v2/db/adapters/index.ts +1 -0
- package/src/v2/db/adapters/kysely.ts +1 -0
- package/src/v2/db/adapters/mongo.ts +1 -0
- package/src/v2/db/adapters/prisma.ts +1 -0
- package/src/v2/db/adapters/typeorm.ts +1 -0
- package/src/v2/db/migrator/index.ts +80 -0
- package/src/v2/db/registry/audit-log.test.ts +77 -0
- package/src/v2/db/registry/audit-log.ts +46 -0
- package/src/v2/db/registry/consent-policy.test.ts +778 -0
- package/src/v2/db/registry/consent-policy.ts +74 -0
- package/src/v2/db/registry/consent-purpose.test.ts +485 -0
- package/src/v2/db/registry/consent-purpose.ts +41 -0
- package/src/v2/db/registry/consent.test.ts +843 -0
- package/src/v2/db/registry/consent.ts +42 -0
- package/src/v2/db/registry/domain.test.ts +463 -0
- package/src/v2/db/registry/domain.ts +51 -0
- package/src/v2/db/registry/index.ts +18 -0
- package/src/v2/db/registry/subject.test.ts +497 -0
- package/src/v2/db/registry/subject.ts +101 -0
- package/src/v2/db/registry/types.ts +10 -0
- package/src/v2/db/registry/utils/generate-id.test.ts +217 -0
- package/src/v2/db/registry/utils/generate-id.ts +134 -0
- package/src/v2/db/registry/utils.ts +134 -0
- package/src/v2/db/schema/1.0.0/audit-log.ts +32 -0
- package/src/v2/db/schema/1.0.0/consent-policy.ts +41 -0
- package/src/v2/db/schema/1.0.0/consent-purpose.ts +30 -0
- package/src/v2/db/schema/1.0.0/consent-record.ts +22 -0
- package/src/v2/db/schema/1.0.0/consent.ts +38 -0
- package/src/v2/db/schema/1.0.0/domain.ts +26 -0
- package/src/v2/db/schema/1.0.0/index.ts +56 -0
- package/src/v2/db/schema/1.0.0/subject.ts +26 -0
- package/src/v2/db/schema/index.ts +9 -0
- package/src/v2/define-config.ts +5 -0
- package/src/v2/handlers/consent/index.ts +9 -0
- package/src/v2/handlers/consent/post.handler.ts +254 -0
- package/src/v2/handlers/consent/show-banner/geo.test.ts +281 -0
- package/src/v2/handlers/consent/show-banner/geo.ts +96 -0
- package/src/v2/handlers/consent/show-banner/handler.test.ts +374 -0
- package/src/v2/handlers/consent/show-banner/handler.ts +123 -0
- package/src/v2/handlers/consent/show-banner/translations.test.ts +121 -0
- package/src/v2/handlers/consent/show-banner/translations.ts +79 -0
- package/src/v2/handlers/consent/verify.handler.ts +288 -0
- package/src/v2/handlers/meta/index.ts +5 -0
- package/src/v2/handlers/meta/status.handler.ts +43 -0
- package/src/v2/init.test.ts +114 -0
- package/src/v2/init.ts +126 -0
- package/src/v2/middleware/cors/cors.test.ts +111 -0
- package/src/v2/middleware/cors/cors.ts +192 -0
- package/src/v2/middleware/cors/index.ts +30 -0
- package/src/v2/middleware/cors/is-origin-trusted.test.ts +104 -0
- package/src/v2/middleware/cors/is-origin-trusted.ts +126 -0
- package/src/v2/middleware/cors/process-cors.ts +91 -0
- package/src/v2/middleware/openapi/config.ts +27 -0
- package/src/v2/middleware/openapi/handlers.ts +132 -0
- package/src/v2/middleware/openapi/index.ts +11 -0
- package/src/v2/middleware/process-ip/index.ts +39 -0
- package/src/v2/router.ts +8 -0
- package/src/v2/types/api.ts +32 -0
- package/src/v2/types/index.ts +121 -0
- package/src/v2/utils/create-telemetry-options.ts +115 -0
- package/src/v2/utils/env.ts +84 -0
- package/src/v2/utils/index.ts +2 -0
- package/src/v2/utils/logger.ts +38 -0
- package/src/version.ts +1 -1
- package/vitest.config.ts +11 -2
|
@@ -1,236 +1,135 @@
|
|
|
1
1
|
export declare const consentHandlers: {
|
|
2
|
-
post: import("@orpc/server").ImplementedProcedure<Record<never, never>, Record<never, never>, import("zod").ZodDiscriminatedUnion<
|
|
2
|
+
post: import("@orpc/server").ImplementedProcedure<Record<never, never>, Record<never, never>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
3
3
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
4
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
5
|
domain: import("zod").ZodString;
|
|
6
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
7
6
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
8
|
-
}, {
|
|
9
7
|
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
10
8
|
preferences: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>;
|
|
11
|
-
}
|
|
12
|
-
type: "cookie_banner";
|
|
13
|
-
domain: string;
|
|
14
|
-
preferences: Record<string, boolean>;
|
|
15
|
-
subjectId?: string | undefined;
|
|
16
|
-
metadata?: Record<string, unknown> | undefined;
|
|
17
|
-
externalSubjectId?: string | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
type: "cookie_banner";
|
|
20
|
-
domain: string;
|
|
21
|
-
preferences: Record<string, boolean>;
|
|
22
|
-
subjectId?: string | undefined;
|
|
23
|
-
metadata?: Record<string, unknown> | undefined;
|
|
24
|
-
externalSubjectId?: string | undefined;
|
|
25
|
-
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
26
10
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
11
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
12
|
domain: import("zod").ZodString;
|
|
29
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
30
13
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
31
|
-
|
|
32
|
-
|
|
14
|
+
type: import("zod").ZodEnum<{
|
|
15
|
+
privacy_policy: "privacy_policy";
|
|
16
|
+
dpa: "dpa";
|
|
17
|
+
terms_and_conditions: "terms_and_conditions";
|
|
18
|
+
}>;
|
|
33
19
|
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
20
|
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
35
|
-
}
|
|
36
|
-
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
37
|
-
domain: string;
|
|
38
|
-
subjectId?: string | undefined;
|
|
39
|
-
metadata?: Record<string, unknown> | undefined;
|
|
40
|
-
policyId?: string | undefined;
|
|
41
|
-
externalSubjectId?: string | undefined;
|
|
42
|
-
preferences?: Record<string, boolean> | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
45
|
-
domain: string;
|
|
46
|
-
subjectId?: string | undefined;
|
|
47
|
-
metadata?: Record<string, unknown> | undefined;
|
|
48
|
-
policyId?: string | undefined;
|
|
49
|
-
externalSubjectId?: string | undefined;
|
|
50
|
-
preferences?: Record<string, boolean> | undefined;
|
|
51
|
-
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
21
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
52
22
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
23
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
24
|
domain: import("zod").ZodString;
|
|
55
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
56
25
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
57
|
-
|
|
58
|
-
|
|
26
|
+
type: import("zod").ZodEnum<{
|
|
27
|
+
marketing_communications: "marketing_communications";
|
|
28
|
+
age_verification: "age_verification";
|
|
29
|
+
other: "other";
|
|
30
|
+
}>;
|
|
59
31
|
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
60
|
-
}
|
|
61
|
-
type: "marketing_communications" | "age_verification" | "other";
|
|
62
|
-
domain: string;
|
|
63
|
-
subjectId?: string | undefined;
|
|
64
|
-
metadata?: Record<string, unknown> | undefined;
|
|
65
|
-
externalSubjectId?: string | undefined;
|
|
66
|
-
preferences?: Record<string, boolean> | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
type: "marketing_communications" | "age_verification" | "other";
|
|
69
|
-
domain: string;
|
|
70
|
-
subjectId?: string | undefined;
|
|
71
|
-
metadata?: Record<string, unknown> | undefined;
|
|
72
|
-
externalSubjectId?: string | undefined;
|
|
73
|
-
preferences?: Record<string, boolean> | undefined;
|
|
74
|
-
}>]>, import("zod").ZodObject<{
|
|
32
|
+
}, import("zod/v4/core").$strip>], "type">, import("zod").ZodObject<{
|
|
75
33
|
id: import("zod").ZodString;
|
|
76
34
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
77
35
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
36
|
domainId: import("zod").ZodString;
|
|
79
37
|
domain: import("zod").ZodString;
|
|
80
|
-
type: import("zod").ZodEnum<
|
|
38
|
+
type: import("zod").ZodEnum<{
|
|
39
|
+
cookie_banner: "cookie_banner";
|
|
40
|
+
privacy_policy: "privacy_policy";
|
|
41
|
+
dpa: "dpa";
|
|
42
|
+
terms_and_conditions: "terms_and_conditions";
|
|
43
|
+
marketing_communications: "marketing_communications";
|
|
44
|
+
age_verification: "age_verification";
|
|
45
|
+
other: "other";
|
|
46
|
+
}>;
|
|
81
47
|
status: import("zod").ZodString;
|
|
82
48
|
recordId: import("zod").ZodString;
|
|
83
49
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
84
50
|
givenAt: import("zod").ZodDate;
|
|
85
|
-
}, "strip
|
|
86
|
-
status: string;
|
|
87
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
88
|
-
id: string;
|
|
89
|
-
domain: string;
|
|
90
|
-
domainId: string;
|
|
91
|
-
givenAt: Date;
|
|
92
|
-
recordId: string;
|
|
93
|
-
subjectId?: string | undefined;
|
|
94
|
-
metadata?: Record<string, unknown> | undefined;
|
|
95
|
-
externalSubjectId?: string | undefined;
|
|
96
|
-
}, {
|
|
97
|
-
status: string;
|
|
98
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
99
|
-
id: string;
|
|
100
|
-
domain: string;
|
|
101
|
-
domainId: string;
|
|
102
|
-
givenAt: Date;
|
|
103
|
-
recordId: string;
|
|
104
|
-
subjectId?: string | undefined;
|
|
105
|
-
metadata?: Record<string, unknown> | undefined;
|
|
106
|
-
externalSubjectId?: string | undefined;
|
|
107
|
-
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
51
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
108
52
|
INPUT_VALIDATION_FAILED: {
|
|
109
53
|
status: number;
|
|
110
|
-
message: string;
|
|
111
54
|
data: import("zod").ZodObject<{
|
|
112
|
-
formErrors: import("zod").ZodArray<import("zod").ZodString
|
|
113
|
-
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
fieldErrors: Record<string, string[]>;
|
|
117
|
-
}, {
|
|
118
|
-
formErrors: string[];
|
|
119
|
-
fieldErrors: Record<string, string[]>;
|
|
120
|
-
}>;
|
|
55
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString>;
|
|
56
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>;
|
|
57
|
+
}, import("zod/v4/core").$strip>;
|
|
58
|
+
error: string;
|
|
121
59
|
};
|
|
122
60
|
SUBJECT_CREATION_FAILED: {
|
|
123
61
|
status: number;
|
|
124
|
-
message: string;
|
|
125
62
|
data: import("zod").ZodObject<{
|
|
126
63
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
127
64
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
externalSubjectId?: string | undefined;
|
|
131
|
-
}, {
|
|
132
|
-
subjectId?: string | undefined;
|
|
133
|
-
externalSubjectId?: string | undefined;
|
|
134
|
-
}>;
|
|
65
|
+
}, import("zod/v4/core").$strip>;
|
|
66
|
+
error: string;
|
|
135
67
|
};
|
|
136
68
|
DOMAIN_CREATION_FAILED: {
|
|
137
69
|
status: number;
|
|
138
|
-
message: string;
|
|
139
70
|
data: import("zod").ZodObject<{
|
|
140
71
|
domain: import("zod").ZodString;
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
}, {
|
|
144
|
-
domain: string;
|
|
145
|
-
}>;
|
|
72
|
+
}, import("zod/v4/core").$strip>;
|
|
73
|
+
error: string;
|
|
146
74
|
};
|
|
147
75
|
POLICY_NOT_FOUND: {
|
|
148
76
|
status: number;
|
|
149
|
-
message: string;
|
|
150
77
|
data: import("zod").ZodObject<{
|
|
151
78
|
policyId: import("zod").ZodString;
|
|
152
79
|
type: import("zod").ZodString;
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
policyId: string;
|
|
156
|
-
}, {
|
|
157
|
-
type: string;
|
|
158
|
-
policyId: string;
|
|
159
|
-
}>;
|
|
80
|
+
}, import("zod/v4/core").$strip>;
|
|
81
|
+
error: string;
|
|
160
82
|
};
|
|
161
83
|
POLICY_INACTIVE: {
|
|
162
84
|
status: number;
|
|
163
|
-
message: string;
|
|
164
85
|
data: import("zod").ZodObject<{
|
|
165
86
|
policyId: import("zod").ZodString;
|
|
166
87
|
type: import("zod").ZodString;
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
policyId: string;
|
|
170
|
-
}, {
|
|
171
|
-
type: string;
|
|
172
|
-
policyId: string;
|
|
173
|
-
}>;
|
|
88
|
+
}, import("zod/v4/core").$strip>;
|
|
89
|
+
error: string;
|
|
174
90
|
};
|
|
175
91
|
POLICY_CREATION_FAILED: {
|
|
176
92
|
status: number;
|
|
177
|
-
message: string;
|
|
178
93
|
data: import("zod").ZodObject<{
|
|
179
94
|
type: import("zod").ZodString;
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
}, {
|
|
183
|
-
type: string;
|
|
184
|
-
}>;
|
|
95
|
+
}, import("zod/v4/core").$strip>;
|
|
96
|
+
error: string;
|
|
185
97
|
};
|
|
186
98
|
PURPOSE_CREATION_FAILED: {
|
|
187
99
|
status: number;
|
|
188
|
-
message: string;
|
|
189
100
|
data: import("zod").ZodObject<{
|
|
190
101
|
purposeCode: import("zod").ZodString;
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
}, {
|
|
194
|
-
purposeCode: string;
|
|
195
|
-
}>;
|
|
102
|
+
}, import("zod/v4/core").$strip>;
|
|
103
|
+
error: string;
|
|
196
104
|
};
|
|
197
105
|
CONSENT_CREATION_FAILED: {
|
|
198
106
|
status: number;
|
|
199
|
-
message: string;
|
|
200
107
|
data: import("zod").ZodObject<{
|
|
201
108
|
subjectId: import("zod").ZodString;
|
|
202
109
|
domain: import("zod").ZodString;
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
domain: string;
|
|
206
|
-
}, {
|
|
207
|
-
subjectId: string;
|
|
208
|
-
domain: string;
|
|
209
|
-
}>;
|
|
110
|
+
}, import("zod/v4/core").$strip>;
|
|
111
|
+
error: string;
|
|
210
112
|
};
|
|
211
113
|
}>, Record<never, never>>;
|
|
212
114
|
showBanner: import("@orpc/server").ImplementedProcedure<Record<never, never>, Record<never, never>, import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
213
115
|
showConsentBanner: import("zod").ZodBoolean;
|
|
214
116
|
jurisdiction: import("zod").ZodObject<{
|
|
215
|
-
code: import("zod").ZodEnum<
|
|
117
|
+
code: import("zod").ZodEnum<{
|
|
118
|
+
GDPR: "GDPR";
|
|
119
|
+
CH: "CH";
|
|
120
|
+
BR: "BR";
|
|
121
|
+
PIPEDA: "PIPEDA";
|
|
122
|
+
AU: "AU";
|
|
123
|
+
APPI: "APPI";
|
|
124
|
+
PIPA: "PIPA";
|
|
125
|
+
NONE: "NONE";
|
|
126
|
+
}>;
|
|
216
127
|
message: import("zod").ZodString;
|
|
217
|
-
},
|
|
218
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
219
|
-
message: string;
|
|
220
|
-
}, {
|
|
221
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
222
|
-
message: string;
|
|
223
|
-
}>;
|
|
128
|
+
}, import("zod/v4/core").$strip>;
|
|
224
129
|
location: import("zod").ZodObject<{
|
|
225
130
|
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
226
131
|
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
227
|
-
},
|
|
228
|
-
countryCode: string | null;
|
|
229
|
-
regionCode: string | null;
|
|
230
|
-
}, {
|
|
231
|
-
countryCode: string | null;
|
|
232
|
-
regionCode: string | null;
|
|
233
|
-
}>;
|
|
132
|
+
}, import("zod/v4/core").$strip>;
|
|
234
133
|
translations: import("zod").ZodObject<{
|
|
235
134
|
language: import("zod").ZodString;
|
|
236
135
|
translations: import("zod").ZodObject<{
|
|
@@ -239,533 +138,122 @@ export declare const consentHandlers: {
|
|
|
239
138
|
rejectAll: import("zod").ZodString;
|
|
240
139
|
customize: import("zod").ZodString;
|
|
241
140
|
save: import("zod").ZodString;
|
|
242
|
-
},
|
|
243
|
-
acceptAll: string;
|
|
244
|
-
rejectAll: string;
|
|
245
|
-
customize: string;
|
|
246
|
-
save: string;
|
|
247
|
-
}, {
|
|
248
|
-
acceptAll: string;
|
|
249
|
-
rejectAll: string;
|
|
250
|
-
customize: string;
|
|
251
|
-
save: string;
|
|
252
|
-
}>;
|
|
141
|
+
}, import("zod/v4/core").$strip>;
|
|
253
142
|
cookieBanner: import("zod").ZodObject<{
|
|
254
143
|
title: import("zod").ZodString;
|
|
255
144
|
description: import("zod").ZodString;
|
|
256
|
-
},
|
|
257
|
-
description: string;
|
|
258
|
-
title: string;
|
|
259
|
-
}, {
|
|
260
|
-
description: string;
|
|
261
|
-
title: string;
|
|
262
|
-
}>;
|
|
145
|
+
}, import("zod/v4/core").$strip>;
|
|
263
146
|
consentManagerDialog: import("zod").ZodObject<{
|
|
264
147
|
title: import("zod").ZodString;
|
|
265
148
|
description: import("zod").ZodString;
|
|
266
|
-
},
|
|
267
|
-
description: string;
|
|
268
|
-
title: string;
|
|
269
|
-
}, {
|
|
270
|
-
description: string;
|
|
271
|
-
title: string;
|
|
272
|
-
}>;
|
|
149
|
+
}, import("zod/v4/core").$strip>;
|
|
273
150
|
consentTypes: import("zod").ZodObject<{
|
|
274
151
|
experience: import("zod").ZodObject<{
|
|
275
152
|
title: import("zod").ZodString;
|
|
276
153
|
description: import("zod").ZodString;
|
|
277
|
-
},
|
|
278
|
-
description: string;
|
|
279
|
-
title: string;
|
|
280
|
-
}, {
|
|
281
|
-
description: string;
|
|
282
|
-
title: string;
|
|
283
|
-
}>;
|
|
154
|
+
}, import("zod/v4/core").$strip>;
|
|
284
155
|
functionality: import("zod").ZodObject<{
|
|
285
156
|
title: import("zod").ZodString;
|
|
286
157
|
description: import("zod").ZodString;
|
|
287
|
-
},
|
|
288
|
-
description: string;
|
|
289
|
-
title: string;
|
|
290
|
-
}, {
|
|
291
|
-
description: string;
|
|
292
|
-
title: string;
|
|
293
|
-
}>;
|
|
158
|
+
}, import("zod/v4/core").$strip>;
|
|
294
159
|
marketing: import("zod").ZodObject<{
|
|
295
160
|
title: import("zod").ZodString;
|
|
296
161
|
description: import("zod").ZodString;
|
|
297
|
-
},
|
|
298
|
-
description: string;
|
|
299
|
-
title: string;
|
|
300
|
-
}, {
|
|
301
|
-
description: string;
|
|
302
|
-
title: string;
|
|
303
|
-
}>;
|
|
162
|
+
}, import("zod/v4/core").$strip>;
|
|
304
163
|
measurement: import("zod").ZodObject<{
|
|
305
164
|
title: import("zod").ZodString;
|
|
306
165
|
description: import("zod").ZodString;
|
|
307
|
-
},
|
|
308
|
-
description: string;
|
|
309
|
-
title: string;
|
|
310
|
-
}, {
|
|
311
|
-
description: string;
|
|
312
|
-
title: string;
|
|
313
|
-
}>;
|
|
166
|
+
}, import("zod/v4/core").$strip>;
|
|
314
167
|
necessary: import("zod").ZodObject<{
|
|
315
168
|
title: import("zod").ZodString;
|
|
316
169
|
description: import("zod").ZodString;
|
|
317
|
-
},
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
experience: {
|
|
326
|
-
description: string;
|
|
327
|
-
title: string;
|
|
328
|
-
};
|
|
329
|
-
functionality: {
|
|
330
|
-
description: string;
|
|
331
|
-
title: string;
|
|
332
|
-
};
|
|
333
|
-
marketing: {
|
|
334
|
-
description: string;
|
|
335
|
-
title: string;
|
|
336
|
-
};
|
|
337
|
-
measurement: {
|
|
338
|
-
description: string;
|
|
339
|
-
title: string;
|
|
340
|
-
};
|
|
341
|
-
necessary: {
|
|
342
|
-
description: string;
|
|
343
|
-
title: string;
|
|
344
|
-
};
|
|
345
|
-
}, {
|
|
346
|
-
experience: {
|
|
347
|
-
description: string;
|
|
348
|
-
title: string;
|
|
349
|
-
};
|
|
350
|
-
functionality: {
|
|
351
|
-
description: string;
|
|
352
|
-
title: string;
|
|
353
|
-
};
|
|
354
|
-
marketing: {
|
|
355
|
-
description: string;
|
|
356
|
-
title: string;
|
|
357
|
-
};
|
|
358
|
-
measurement: {
|
|
359
|
-
description: string;
|
|
360
|
-
title: string;
|
|
361
|
-
};
|
|
362
|
-
necessary: {
|
|
363
|
-
description: string;
|
|
364
|
-
title: string;
|
|
365
|
-
};
|
|
366
|
-
}>;
|
|
367
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
368
|
-
common: {
|
|
369
|
-
acceptAll: string;
|
|
370
|
-
rejectAll: string;
|
|
371
|
-
customize: string;
|
|
372
|
-
save: string;
|
|
373
|
-
};
|
|
374
|
-
cookieBanner: {
|
|
375
|
-
description: string;
|
|
376
|
-
title: string;
|
|
377
|
-
};
|
|
378
|
-
consentManagerDialog: {
|
|
379
|
-
description: string;
|
|
380
|
-
title: string;
|
|
381
|
-
};
|
|
382
|
-
consentTypes: {
|
|
383
|
-
experience: {
|
|
384
|
-
description: string;
|
|
385
|
-
title: string;
|
|
386
|
-
};
|
|
387
|
-
functionality: {
|
|
388
|
-
description: string;
|
|
389
|
-
title: string;
|
|
390
|
-
};
|
|
391
|
-
marketing: {
|
|
392
|
-
description: string;
|
|
393
|
-
title: string;
|
|
394
|
-
};
|
|
395
|
-
measurement: {
|
|
396
|
-
description: string;
|
|
397
|
-
title: string;
|
|
398
|
-
};
|
|
399
|
-
necessary: {
|
|
400
|
-
description: string;
|
|
401
|
-
title: string;
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
}, {
|
|
405
|
-
common: {
|
|
406
|
-
acceptAll: string;
|
|
407
|
-
rejectAll: string;
|
|
408
|
-
customize: string;
|
|
409
|
-
save: string;
|
|
410
|
-
};
|
|
411
|
-
cookieBanner: {
|
|
412
|
-
description: string;
|
|
413
|
-
title: string;
|
|
414
|
-
};
|
|
415
|
-
consentManagerDialog: {
|
|
416
|
-
description: string;
|
|
417
|
-
title: string;
|
|
418
|
-
};
|
|
419
|
-
consentTypes: {
|
|
420
|
-
experience: {
|
|
421
|
-
description: string;
|
|
422
|
-
title: string;
|
|
423
|
-
};
|
|
424
|
-
functionality: {
|
|
425
|
-
description: string;
|
|
426
|
-
title: string;
|
|
427
|
-
};
|
|
428
|
-
marketing: {
|
|
429
|
-
description: string;
|
|
430
|
-
title: string;
|
|
431
|
-
};
|
|
432
|
-
measurement: {
|
|
433
|
-
description: string;
|
|
434
|
-
title: string;
|
|
435
|
-
};
|
|
436
|
-
necessary: {
|
|
437
|
-
description: string;
|
|
438
|
-
title: string;
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
}>;
|
|
442
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
443
|
-
translations: {
|
|
444
|
-
common: {
|
|
445
|
-
acceptAll: string;
|
|
446
|
-
rejectAll: string;
|
|
447
|
-
customize: string;
|
|
448
|
-
save: string;
|
|
449
|
-
};
|
|
450
|
-
cookieBanner: {
|
|
451
|
-
description: string;
|
|
452
|
-
title: string;
|
|
453
|
-
};
|
|
454
|
-
consentManagerDialog: {
|
|
455
|
-
description: string;
|
|
456
|
-
title: string;
|
|
457
|
-
};
|
|
458
|
-
consentTypes: {
|
|
459
|
-
experience: {
|
|
460
|
-
description: string;
|
|
461
|
-
title: string;
|
|
462
|
-
};
|
|
463
|
-
functionality: {
|
|
464
|
-
description: string;
|
|
465
|
-
title: string;
|
|
466
|
-
};
|
|
467
|
-
marketing: {
|
|
468
|
-
description: string;
|
|
469
|
-
title: string;
|
|
470
|
-
};
|
|
471
|
-
measurement: {
|
|
472
|
-
description: string;
|
|
473
|
-
title: string;
|
|
474
|
-
};
|
|
475
|
-
necessary: {
|
|
476
|
-
description: string;
|
|
477
|
-
title: string;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
language: string;
|
|
482
|
-
}, {
|
|
483
|
-
translations: {
|
|
484
|
-
common: {
|
|
485
|
-
acceptAll: string;
|
|
486
|
-
rejectAll: string;
|
|
487
|
-
customize: string;
|
|
488
|
-
save: string;
|
|
489
|
-
};
|
|
490
|
-
cookieBanner: {
|
|
491
|
-
description: string;
|
|
492
|
-
title: string;
|
|
493
|
-
};
|
|
494
|
-
consentManagerDialog: {
|
|
495
|
-
description: string;
|
|
496
|
-
title: string;
|
|
497
|
-
};
|
|
498
|
-
consentTypes: {
|
|
499
|
-
experience: {
|
|
500
|
-
description: string;
|
|
501
|
-
title: string;
|
|
502
|
-
};
|
|
503
|
-
functionality: {
|
|
504
|
-
description: string;
|
|
505
|
-
title: string;
|
|
506
|
-
};
|
|
507
|
-
marketing: {
|
|
508
|
-
description: string;
|
|
509
|
-
title: string;
|
|
510
|
-
};
|
|
511
|
-
measurement: {
|
|
512
|
-
description: string;
|
|
513
|
-
title: string;
|
|
514
|
-
};
|
|
515
|
-
necessary: {
|
|
516
|
-
description: string;
|
|
517
|
-
title: string;
|
|
518
|
-
};
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
language: string;
|
|
170
|
+
}, import("zod/v4/core").$strip>;
|
|
171
|
+
}, import("zod/v4/core").$strip>;
|
|
172
|
+
}, import("zod/v4/core").$strip>;
|
|
173
|
+
}, import("zod/v4/core").$strip>;
|
|
174
|
+
branding: import("zod").ZodEnum<{
|
|
175
|
+
c15t: "c15t";
|
|
176
|
+
consent: "consent";
|
|
177
|
+
none: "none";
|
|
522
178
|
}>;
|
|
523
|
-
},
|
|
524
|
-
showConsentBanner: boolean;
|
|
525
|
-
jurisdiction: {
|
|
526
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
527
|
-
message: string;
|
|
528
|
-
};
|
|
529
|
-
location: {
|
|
530
|
-
countryCode: string | null;
|
|
531
|
-
regionCode: string | null;
|
|
532
|
-
};
|
|
533
|
-
translations: {
|
|
534
|
-
translations: {
|
|
535
|
-
common: {
|
|
536
|
-
acceptAll: string;
|
|
537
|
-
rejectAll: string;
|
|
538
|
-
customize: string;
|
|
539
|
-
save: string;
|
|
540
|
-
};
|
|
541
|
-
cookieBanner: {
|
|
542
|
-
description: string;
|
|
543
|
-
title: string;
|
|
544
|
-
};
|
|
545
|
-
consentManagerDialog: {
|
|
546
|
-
description: string;
|
|
547
|
-
title: string;
|
|
548
|
-
};
|
|
549
|
-
consentTypes: {
|
|
550
|
-
experience: {
|
|
551
|
-
description: string;
|
|
552
|
-
title: string;
|
|
553
|
-
};
|
|
554
|
-
functionality: {
|
|
555
|
-
description: string;
|
|
556
|
-
title: string;
|
|
557
|
-
};
|
|
558
|
-
marketing: {
|
|
559
|
-
description: string;
|
|
560
|
-
title: string;
|
|
561
|
-
};
|
|
562
|
-
measurement: {
|
|
563
|
-
description: string;
|
|
564
|
-
title: string;
|
|
565
|
-
};
|
|
566
|
-
necessary: {
|
|
567
|
-
description: string;
|
|
568
|
-
title: string;
|
|
569
|
-
};
|
|
570
|
-
};
|
|
571
|
-
};
|
|
572
|
-
language: string;
|
|
573
|
-
};
|
|
574
|
-
}, {
|
|
575
|
-
showConsentBanner: boolean;
|
|
576
|
-
jurisdiction: {
|
|
577
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
578
|
-
message: string;
|
|
579
|
-
};
|
|
580
|
-
location: {
|
|
581
|
-
countryCode: string | null;
|
|
582
|
-
regionCode: string | null;
|
|
583
|
-
};
|
|
584
|
-
translations: {
|
|
585
|
-
translations: {
|
|
586
|
-
common: {
|
|
587
|
-
acceptAll: string;
|
|
588
|
-
rejectAll: string;
|
|
589
|
-
customize: string;
|
|
590
|
-
save: string;
|
|
591
|
-
};
|
|
592
|
-
cookieBanner: {
|
|
593
|
-
description: string;
|
|
594
|
-
title: string;
|
|
595
|
-
};
|
|
596
|
-
consentManagerDialog: {
|
|
597
|
-
description: string;
|
|
598
|
-
title: string;
|
|
599
|
-
};
|
|
600
|
-
consentTypes: {
|
|
601
|
-
experience: {
|
|
602
|
-
description: string;
|
|
603
|
-
title: string;
|
|
604
|
-
};
|
|
605
|
-
functionality: {
|
|
606
|
-
description: string;
|
|
607
|
-
title: string;
|
|
608
|
-
};
|
|
609
|
-
marketing: {
|
|
610
|
-
description: string;
|
|
611
|
-
title: string;
|
|
612
|
-
};
|
|
613
|
-
measurement: {
|
|
614
|
-
description: string;
|
|
615
|
-
title: string;
|
|
616
|
-
};
|
|
617
|
-
necessary: {
|
|
618
|
-
description: string;
|
|
619
|
-
title: string;
|
|
620
|
-
};
|
|
621
|
-
};
|
|
622
|
-
};
|
|
623
|
-
language: string;
|
|
624
|
-
};
|
|
625
|
-
}>, Record<never, never>, Record<never, never>>;
|
|
179
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
626
180
|
verify: import("@orpc/server").ImplementedProcedure<Record<never, never>, Record<never, never>, import("zod").ZodObject<{
|
|
627
181
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
628
182
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
629
183
|
domain: import("zod").ZodString;
|
|
630
|
-
type: import("zod").ZodEnum<
|
|
184
|
+
type: import("zod").ZodEnum<{
|
|
185
|
+
cookie_banner: "cookie_banner";
|
|
186
|
+
privacy_policy: "privacy_policy";
|
|
187
|
+
dpa: "dpa";
|
|
188
|
+
terms_and_conditions: "terms_and_conditions";
|
|
189
|
+
marketing_communications: "marketing_communications";
|
|
190
|
+
age_verification: "age_verification";
|
|
191
|
+
other: "other";
|
|
192
|
+
}>;
|
|
631
193
|
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
632
|
-
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
633
|
-
}, "strict
|
|
634
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
635
|
-
domain: string;
|
|
636
|
-
subjectId?: string | undefined;
|
|
637
|
-
policyId?: string | undefined;
|
|
638
|
-
externalSubjectId?: string | undefined;
|
|
639
|
-
preferences?: string[] | undefined;
|
|
640
|
-
}, {
|
|
641
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
642
|
-
domain: string;
|
|
643
|
-
subjectId?: string | undefined;
|
|
644
|
-
policyId?: string | undefined;
|
|
645
|
-
externalSubjectId?: string | undefined;
|
|
646
|
-
preferences?: string[] | undefined;
|
|
647
|
-
}>, import("zod").ZodObject<{
|
|
194
|
+
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
195
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
648
196
|
isValid: import("zod").ZodBoolean;
|
|
649
|
-
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
197
|
+
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
650
198
|
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
651
199
|
id: import("zod").ZodString;
|
|
652
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString
|
|
653
|
-
},
|
|
654
|
-
|
|
655
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
656
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
657
|
-
id: import("zod").ZodString;
|
|
658
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
659
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
660
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
661
|
-
isValid: boolean;
|
|
662
|
-
consent?: import("zod").objectOutputType<{
|
|
663
|
-
id: import("zod").ZodString;
|
|
664
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
665
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
666
|
-
reasons?: string[] | undefined;
|
|
667
|
-
}, {
|
|
668
|
-
isValid: boolean;
|
|
669
|
-
consent?: import("zod").objectInputType<{
|
|
670
|
-
id: import("zod").ZodString;
|
|
671
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
672
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
673
|
-
reasons?: string[] | undefined;
|
|
674
|
-
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
200
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
201
|
+
}, import("zod/v4/core").$loose>>;
|
|
202
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
675
203
|
INPUT_VALIDATION_FAILED: {
|
|
676
204
|
status: number;
|
|
677
|
-
message: string;
|
|
678
205
|
data: import("zod").ZodObject<{
|
|
679
|
-
formErrors: import("zod").ZodArray<import("zod").ZodString
|
|
680
|
-
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
fieldErrors: Record<string, string[] | undefined>;
|
|
684
|
-
}, {
|
|
685
|
-
formErrors: string[];
|
|
686
|
-
fieldErrors: Record<string, string[] | undefined>;
|
|
687
|
-
}>;
|
|
206
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString>;
|
|
207
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
208
|
+
}, import("zod/v4/core").$strip>;
|
|
209
|
+
error: string;
|
|
688
210
|
};
|
|
689
211
|
SUBJECT_NOT_FOUND: {
|
|
690
212
|
status: number;
|
|
691
|
-
message: string;
|
|
692
213
|
data: import("zod").ZodObject<{
|
|
693
214
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
694
215
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
695
|
-
},
|
|
696
|
-
|
|
697
|
-
externalSubjectId?: string | undefined;
|
|
698
|
-
}, {
|
|
699
|
-
subjectId?: string | undefined;
|
|
700
|
-
externalSubjectId?: string | undefined;
|
|
701
|
-
}>;
|
|
216
|
+
}, import("zod/v4/core").$strip>;
|
|
217
|
+
error: string;
|
|
702
218
|
};
|
|
703
219
|
DOMAIN_NOT_FOUND: {
|
|
704
220
|
status: number;
|
|
705
|
-
message: string;
|
|
706
221
|
data: import("zod").ZodObject<{
|
|
707
222
|
domain: import("zod").ZodString;
|
|
708
|
-
},
|
|
709
|
-
|
|
710
|
-
}, {
|
|
711
|
-
domain: string;
|
|
712
|
-
}>;
|
|
223
|
+
}, import("zod/v4/core").$strip>;
|
|
224
|
+
error: string;
|
|
713
225
|
};
|
|
714
226
|
POLICY_NOT_FOUND: {
|
|
715
227
|
status: number;
|
|
716
|
-
message: string;
|
|
717
228
|
data: import("zod").ZodObject<{
|
|
718
229
|
policyId: import("zod").ZodString;
|
|
719
230
|
type: import("zod").ZodString;
|
|
720
|
-
},
|
|
721
|
-
|
|
722
|
-
policyId: string;
|
|
723
|
-
}, {
|
|
724
|
-
type: string;
|
|
725
|
-
policyId: string;
|
|
726
|
-
}>;
|
|
231
|
+
}, import("zod/v4/core").$strip>;
|
|
232
|
+
error: string;
|
|
727
233
|
};
|
|
728
234
|
PURPOSES_NOT_FOUND: {
|
|
729
235
|
status: number;
|
|
730
|
-
message: string;
|
|
731
236
|
data: import("zod").ZodObject<{
|
|
732
|
-
preferences: import("zod").ZodArray<import("zod").ZodString
|
|
733
|
-
foundPurposes: import("zod").ZodArray<import("zod").ZodString
|
|
734
|
-
},
|
|
735
|
-
|
|
736
|
-
foundPurposes: string[];
|
|
737
|
-
}, {
|
|
738
|
-
preferences: string[];
|
|
739
|
-
foundPurposes: string[];
|
|
740
|
-
}>;
|
|
237
|
+
preferences: import("zod").ZodArray<import("zod").ZodString>;
|
|
238
|
+
foundPurposes: import("zod").ZodArray<import("zod").ZodString>;
|
|
239
|
+
}, import("zod/v4/core").$strip>;
|
|
240
|
+
error: string;
|
|
741
241
|
};
|
|
742
242
|
COOKIE_BANNER_PREFERENCES_REQUIRED: {
|
|
743
243
|
status: number;
|
|
744
|
-
message: string;
|
|
745
244
|
data: import("zod").ZodObject<{
|
|
746
245
|
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
747
|
-
},
|
|
748
|
-
|
|
749
|
-
}, {
|
|
750
|
-
type: "cookie_banner";
|
|
751
|
-
}>;
|
|
246
|
+
}, import("zod/v4/core").$strip>;
|
|
247
|
+
error: string;
|
|
752
248
|
};
|
|
753
249
|
NO_CONSENT_FOUND: {
|
|
754
250
|
status: number;
|
|
755
|
-
message: string;
|
|
756
251
|
data: import("zod").ZodObject<{
|
|
757
252
|
policyId: import("zod").ZodString;
|
|
758
253
|
subjectId: import("zod").ZodString;
|
|
759
254
|
domainId: import("zod").ZodString;
|
|
760
|
-
},
|
|
761
|
-
|
|
762
|
-
domainId: string;
|
|
763
|
-
policyId: string;
|
|
764
|
-
}, {
|
|
765
|
-
subjectId: string;
|
|
766
|
-
domainId: string;
|
|
767
|
-
policyId: string;
|
|
768
|
-
}>;
|
|
255
|
+
}, import("zod/v4/core").$strip>;
|
|
256
|
+
error: string;
|
|
769
257
|
};
|
|
770
258
|
}>, Record<never, never>>;
|
|
771
259
|
};
|