@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,238 +1,137 @@
|
|
|
1
1
|
import type { InferContractRouterInputs, InferContractRouterOutputs } from '@orpc/contract';
|
|
2
2
|
declare const config: {
|
|
3
3
|
consent: {
|
|
4
|
-
post: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<
|
|
4
|
+
post: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
5
5
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
6
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
7
|
domain: import("zod").ZodString;
|
|
8
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
9
8
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
10
|
-
}, {
|
|
11
9
|
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
12
10
|
preferences: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>;
|
|
13
|
-
}
|
|
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<{
|
|
11
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
28
12
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
13
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
14
|
domain: import("zod").ZodString;
|
|
31
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
32
15
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
type: import("zod").ZodEnum<{
|
|
17
|
+
privacy_policy: "privacy_policy";
|
|
18
|
+
dpa: "dpa";
|
|
19
|
+
terms_and_conditions: "terms_and_conditions";
|
|
20
|
+
}>;
|
|
35
21
|
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
22
|
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
37
|
-
}
|
|
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<{
|
|
23
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
54
24
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
25
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
26
|
domain: import("zod").ZodString;
|
|
57
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
58
27
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
59
|
-
|
|
60
|
-
|
|
28
|
+
type: import("zod").ZodEnum<{
|
|
29
|
+
marketing_communications: "marketing_communications";
|
|
30
|
+
age_verification: "age_verification";
|
|
31
|
+
other: "other";
|
|
32
|
+
}>;
|
|
61
33
|
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
62
|
-
}
|
|
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<{
|
|
34
|
+
}, import("zod/v4/core").$strip>], "type">, import("zod").ZodObject<{
|
|
77
35
|
id: import("zod").ZodString;
|
|
78
36
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
37
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
38
|
domainId: import("zod").ZodString;
|
|
81
39
|
domain: import("zod").ZodString;
|
|
82
|
-
type: import("zod").ZodEnum<
|
|
40
|
+
type: import("zod").ZodEnum<{
|
|
41
|
+
cookie_banner: "cookie_banner";
|
|
42
|
+
privacy_policy: "privacy_policy";
|
|
43
|
+
dpa: "dpa";
|
|
44
|
+
terms_and_conditions: "terms_and_conditions";
|
|
45
|
+
marketing_communications: "marketing_communications";
|
|
46
|
+
age_verification: "age_verification";
|
|
47
|
+
other: "other";
|
|
48
|
+
}>;
|
|
83
49
|
status: import("zod").ZodString;
|
|
84
50
|
recordId: import("zod").ZodString;
|
|
85
51
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
86
52
|
givenAt: import("zod").ZodDate;
|
|
87
|
-
}, "strip
|
|
88
|
-
status: string;
|
|
89
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
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
|
-
status: string;
|
|
100
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
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>, {
|
|
53
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
110
54
|
INPUT_VALIDATION_FAILED: {
|
|
111
55
|
status: number;
|
|
112
|
-
message: string;
|
|
113
56
|
data: import("zod").ZodObject<{
|
|
114
|
-
formErrors: import("zod").ZodArray<import("zod").ZodString
|
|
115
|
-
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
fieldErrors: Record<string, string[]>;
|
|
119
|
-
}, {
|
|
120
|
-
formErrors: string[];
|
|
121
|
-
fieldErrors: Record<string, string[]>;
|
|
122
|
-
}>;
|
|
57
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString>;
|
|
58
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>;
|
|
59
|
+
}, import("zod/v4/core").$strip>;
|
|
60
|
+
error: string;
|
|
123
61
|
};
|
|
124
62
|
SUBJECT_CREATION_FAILED: {
|
|
125
63
|
status: number;
|
|
126
|
-
message: string;
|
|
127
64
|
data: import("zod").ZodObject<{
|
|
128
65
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
129
66
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
externalSubjectId?: string | undefined;
|
|
133
|
-
}, {
|
|
134
|
-
subjectId?: string | undefined;
|
|
135
|
-
externalSubjectId?: string | undefined;
|
|
136
|
-
}>;
|
|
67
|
+
}, import("zod/v4/core").$strip>;
|
|
68
|
+
error: string;
|
|
137
69
|
};
|
|
138
70
|
DOMAIN_CREATION_FAILED: {
|
|
139
71
|
status: number;
|
|
140
|
-
message: string;
|
|
141
72
|
data: import("zod").ZodObject<{
|
|
142
73
|
domain: import("zod").ZodString;
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
}, {
|
|
146
|
-
domain: string;
|
|
147
|
-
}>;
|
|
74
|
+
}, import("zod/v4/core").$strip>;
|
|
75
|
+
error: string;
|
|
148
76
|
};
|
|
149
77
|
POLICY_NOT_FOUND: {
|
|
150
78
|
status: number;
|
|
151
|
-
message: string;
|
|
152
79
|
data: import("zod").ZodObject<{
|
|
153
80
|
policyId: import("zod").ZodString;
|
|
154
81
|
type: import("zod").ZodString;
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
policyId: string;
|
|
158
|
-
}, {
|
|
159
|
-
type: string;
|
|
160
|
-
policyId: string;
|
|
161
|
-
}>;
|
|
82
|
+
}, import("zod/v4/core").$strip>;
|
|
83
|
+
error: string;
|
|
162
84
|
};
|
|
163
85
|
POLICY_INACTIVE: {
|
|
164
86
|
status: number;
|
|
165
|
-
message: string;
|
|
166
87
|
data: import("zod").ZodObject<{
|
|
167
88
|
policyId: import("zod").ZodString;
|
|
168
89
|
type: import("zod").ZodString;
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
policyId: string;
|
|
172
|
-
}, {
|
|
173
|
-
type: string;
|
|
174
|
-
policyId: string;
|
|
175
|
-
}>;
|
|
90
|
+
}, import("zod/v4/core").$strip>;
|
|
91
|
+
error: string;
|
|
176
92
|
};
|
|
177
93
|
POLICY_CREATION_FAILED: {
|
|
178
94
|
status: number;
|
|
179
|
-
message: string;
|
|
180
95
|
data: import("zod").ZodObject<{
|
|
181
96
|
type: import("zod").ZodString;
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
}, {
|
|
185
|
-
type: string;
|
|
186
|
-
}>;
|
|
97
|
+
}, import("zod/v4/core").$strip>;
|
|
98
|
+
error: string;
|
|
187
99
|
};
|
|
188
100
|
PURPOSE_CREATION_FAILED: {
|
|
189
101
|
status: number;
|
|
190
|
-
message: string;
|
|
191
102
|
data: import("zod").ZodObject<{
|
|
192
103
|
purposeCode: import("zod").ZodString;
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
}, {
|
|
196
|
-
purposeCode: string;
|
|
197
|
-
}>;
|
|
104
|
+
}, import("zod/v4/core").$strip>;
|
|
105
|
+
error: string;
|
|
198
106
|
};
|
|
199
107
|
CONSENT_CREATION_FAILED: {
|
|
200
108
|
status: number;
|
|
201
|
-
message: string;
|
|
202
109
|
data: import("zod").ZodObject<{
|
|
203
110
|
subjectId: import("zod").ZodString;
|
|
204
111
|
domain: import("zod").ZodString;
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
domain: string;
|
|
208
|
-
}, {
|
|
209
|
-
subjectId: string;
|
|
210
|
-
domain: string;
|
|
211
|
-
}>;
|
|
112
|
+
}, import("zod/v4/core").$strip>;
|
|
113
|
+
error: string;
|
|
212
114
|
};
|
|
213
115
|
}>, Record<never, never>>;
|
|
214
116
|
showBanner: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
215
117
|
showConsentBanner: import("zod").ZodBoolean;
|
|
216
118
|
jurisdiction: import("zod").ZodObject<{
|
|
217
|
-
code: import("zod").ZodEnum<
|
|
119
|
+
code: import("zod").ZodEnum<{
|
|
120
|
+
GDPR: "GDPR";
|
|
121
|
+
CH: "CH";
|
|
122
|
+
BR: "BR";
|
|
123
|
+
PIPEDA: "PIPEDA";
|
|
124
|
+
AU: "AU";
|
|
125
|
+
APPI: "APPI";
|
|
126
|
+
PIPA: "PIPA";
|
|
127
|
+
NONE: "NONE";
|
|
128
|
+
}>;
|
|
218
129
|
message: import("zod").ZodString;
|
|
219
|
-
},
|
|
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
|
-
}>;
|
|
130
|
+
}, import("zod/v4/core").$strip>;
|
|
226
131
|
location: import("zod").ZodObject<{
|
|
227
132
|
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
228
133
|
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
229
|
-
},
|
|
230
|
-
countryCode: string | null;
|
|
231
|
-
regionCode: string | null;
|
|
232
|
-
}, {
|
|
233
|
-
countryCode: string | null;
|
|
234
|
-
regionCode: string | null;
|
|
235
|
-
}>;
|
|
134
|
+
}, import("zod/v4/core").$strip>;
|
|
236
135
|
translations: import("zod").ZodObject<{
|
|
237
136
|
language: import("zod").ZodString;
|
|
238
137
|
translations: import("zod").ZodObject<{
|
|
@@ -241,849 +140,282 @@ declare const config: {
|
|
|
241
140
|
rejectAll: import("zod").ZodString;
|
|
242
141
|
customize: import("zod").ZodString;
|
|
243
142
|
save: import("zod").ZodString;
|
|
244
|
-
},
|
|
245
|
-
acceptAll: string;
|
|
246
|
-
rejectAll: string;
|
|
247
|
-
customize: string;
|
|
248
|
-
save: string;
|
|
249
|
-
}, {
|
|
250
|
-
acceptAll: string;
|
|
251
|
-
rejectAll: string;
|
|
252
|
-
customize: string;
|
|
253
|
-
save: string;
|
|
254
|
-
}>;
|
|
143
|
+
}, import("zod/v4/core").$strip>;
|
|
255
144
|
cookieBanner: import("zod").ZodObject<{
|
|
256
145
|
title: import("zod").ZodString;
|
|
257
146
|
description: import("zod").ZodString;
|
|
258
|
-
},
|
|
259
|
-
description: string;
|
|
260
|
-
title: string;
|
|
261
|
-
}, {
|
|
262
|
-
description: string;
|
|
263
|
-
title: string;
|
|
264
|
-
}>;
|
|
147
|
+
}, import("zod/v4/core").$strip>;
|
|
265
148
|
consentManagerDialog: import("zod").ZodObject<{
|
|
266
149
|
title: import("zod").ZodString;
|
|
267
150
|
description: import("zod").ZodString;
|
|
268
|
-
},
|
|
269
|
-
description: string;
|
|
270
|
-
title: string;
|
|
271
|
-
}, {
|
|
272
|
-
description: string;
|
|
273
|
-
title: string;
|
|
274
|
-
}>;
|
|
151
|
+
}, import("zod/v4/core").$strip>;
|
|
275
152
|
consentTypes: import("zod").ZodObject<{
|
|
276
153
|
experience: import("zod").ZodObject<{
|
|
277
154
|
title: import("zod").ZodString;
|
|
278
155
|
description: import("zod").ZodString;
|
|
279
|
-
},
|
|
280
|
-
description: string;
|
|
281
|
-
title: string;
|
|
282
|
-
}, {
|
|
283
|
-
description: string;
|
|
284
|
-
title: string;
|
|
285
|
-
}>;
|
|
156
|
+
}, import("zod/v4/core").$strip>;
|
|
286
157
|
functionality: import("zod").ZodObject<{
|
|
287
158
|
title: import("zod").ZodString;
|
|
288
159
|
description: import("zod").ZodString;
|
|
289
|
-
},
|
|
290
|
-
description: string;
|
|
291
|
-
title: string;
|
|
292
|
-
}, {
|
|
293
|
-
description: string;
|
|
294
|
-
title: string;
|
|
295
|
-
}>;
|
|
160
|
+
}, import("zod/v4/core").$strip>;
|
|
296
161
|
marketing: import("zod").ZodObject<{
|
|
297
162
|
title: import("zod").ZodString;
|
|
298
163
|
description: import("zod").ZodString;
|
|
299
|
-
},
|
|
300
|
-
description: string;
|
|
301
|
-
title: string;
|
|
302
|
-
}, {
|
|
303
|
-
description: string;
|
|
304
|
-
title: string;
|
|
305
|
-
}>;
|
|
164
|
+
}, import("zod/v4/core").$strip>;
|
|
306
165
|
measurement: import("zod").ZodObject<{
|
|
307
166
|
title: import("zod").ZodString;
|
|
308
167
|
description: import("zod").ZodString;
|
|
309
|
-
},
|
|
310
|
-
description: string;
|
|
311
|
-
title: string;
|
|
312
|
-
}, {
|
|
313
|
-
description: string;
|
|
314
|
-
title: string;
|
|
315
|
-
}>;
|
|
168
|
+
}, import("zod/v4/core").$strip>;
|
|
316
169
|
necessary: import("zod").ZodObject<{
|
|
317
170
|
title: import("zod").ZodString;
|
|
318
171
|
description: import("zod").ZodString;
|
|
319
|
-
},
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
experience: {
|
|
328
|
-
description: string;
|
|
329
|
-
title: string;
|
|
330
|
-
};
|
|
331
|
-
functionality: {
|
|
332
|
-
description: string;
|
|
333
|
-
title: string;
|
|
334
|
-
};
|
|
335
|
-
marketing: {
|
|
336
|
-
description: string;
|
|
337
|
-
title: string;
|
|
338
|
-
};
|
|
339
|
-
measurement: {
|
|
340
|
-
description: string;
|
|
341
|
-
title: string;
|
|
342
|
-
};
|
|
343
|
-
necessary: {
|
|
344
|
-
description: string;
|
|
345
|
-
title: string;
|
|
346
|
-
};
|
|
347
|
-
}, {
|
|
348
|
-
experience: {
|
|
349
|
-
description: string;
|
|
350
|
-
title: string;
|
|
351
|
-
};
|
|
352
|
-
functionality: {
|
|
353
|
-
description: string;
|
|
354
|
-
title: string;
|
|
355
|
-
};
|
|
356
|
-
marketing: {
|
|
357
|
-
description: string;
|
|
358
|
-
title: string;
|
|
359
|
-
};
|
|
360
|
-
measurement: {
|
|
361
|
-
description: string;
|
|
362
|
-
title: string;
|
|
363
|
-
};
|
|
364
|
-
necessary: {
|
|
365
|
-
description: string;
|
|
366
|
-
title: string;
|
|
367
|
-
};
|
|
368
|
-
}>;
|
|
369
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
370
|
-
common: {
|
|
371
|
-
acceptAll: string;
|
|
372
|
-
rejectAll: string;
|
|
373
|
-
customize: string;
|
|
374
|
-
save: string;
|
|
375
|
-
};
|
|
376
|
-
cookieBanner: {
|
|
377
|
-
description: string;
|
|
378
|
-
title: string;
|
|
379
|
-
};
|
|
380
|
-
consentManagerDialog: {
|
|
381
|
-
description: string;
|
|
382
|
-
title: string;
|
|
383
|
-
};
|
|
384
|
-
consentTypes: {
|
|
385
|
-
experience: {
|
|
386
|
-
description: string;
|
|
387
|
-
title: string;
|
|
388
|
-
};
|
|
389
|
-
functionality: {
|
|
390
|
-
description: string;
|
|
391
|
-
title: string;
|
|
392
|
-
};
|
|
393
|
-
marketing: {
|
|
394
|
-
description: string;
|
|
395
|
-
title: string;
|
|
396
|
-
};
|
|
397
|
-
measurement: {
|
|
398
|
-
description: string;
|
|
399
|
-
title: string;
|
|
400
|
-
};
|
|
401
|
-
necessary: {
|
|
402
|
-
description: string;
|
|
403
|
-
title: string;
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
}, {
|
|
407
|
-
common: {
|
|
408
|
-
acceptAll: string;
|
|
409
|
-
rejectAll: string;
|
|
410
|
-
customize: string;
|
|
411
|
-
save: string;
|
|
412
|
-
};
|
|
413
|
-
cookieBanner: {
|
|
414
|
-
description: string;
|
|
415
|
-
title: string;
|
|
416
|
-
};
|
|
417
|
-
consentManagerDialog: {
|
|
418
|
-
description: string;
|
|
419
|
-
title: string;
|
|
420
|
-
};
|
|
421
|
-
consentTypes: {
|
|
422
|
-
experience: {
|
|
423
|
-
description: string;
|
|
424
|
-
title: string;
|
|
425
|
-
};
|
|
426
|
-
functionality: {
|
|
427
|
-
description: string;
|
|
428
|
-
title: string;
|
|
429
|
-
};
|
|
430
|
-
marketing: {
|
|
431
|
-
description: string;
|
|
432
|
-
title: string;
|
|
433
|
-
};
|
|
434
|
-
measurement: {
|
|
435
|
-
description: string;
|
|
436
|
-
title: string;
|
|
437
|
-
};
|
|
438
|
-
necessary: {
|
|
439
|
-
description: string;
|
|
440
|
-
title: string;
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
}>;
|
|
444
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
445
|
-
translations: {
|
|
446
|
-
common: {
|
|
447
|
-
acceptAll: string;
|
|
448
|
-
rejectAll: string;
|
|
449
|
-
customize: string;
|
|
450
|
-
save: string;
|
|
451
|
-
};
|
|
452
|
-
cookieBanner: {
|
|
453
|
-
description: string;
|
|
454
|
-
title: string;
|
|
455
|
-
};
|
|
456
|
-
consentManagerDialog: {
|
|
457
|
-
description: string;
|
|
458
|
-
title: string;
|
|
459
|
-
};
|
|
460
|
-
consentTypes: {
|
|
461
|
-
experience: {
|
|
462
|
-
description: string;
|
|
463
|
-
title: string;
|
|
464
|
-
};
|
|
465
|
-
functionality: {
|
|
466
|
-
description: string;
|
|
467
|
-
title: string;
|
|
468
|
-
};
|
|
469
|
-
marketing: {
|
|
470
|
-
description: string;
|
|
471
|
-
title: string;
|
|
472
|
-
};
|
|
473
|
-
measurement: {
|
|
474
|
-
description: string;
|
|
475
|
-
title: string;
|
|
476
|
-
};
|
|
477
|
-
necessary: {
|
|
478
|
-
description: string;
|
|
479
|
-
title: string;
|
|
480
|
-
};
|
|
481
|
-
};
|
|
482
|
-
};
|
|
483
|
-
language: string;
|
|
484
|
-
}, {
|
|
485
|
-
translations: {
|
|
486
|
-
common: {
|
|
487
|
-
acceptAll: string;
|
|
488
|
-
rejectAll: string;
|
|
489
|
-
customize: string;
|
|
490
|
-
save: string;
|
|
491
|
-
};
|
|
492
|
-
cookieBanner: {
|
|
493
|
-
description: string;
|
|
494
|
-
title: string;
|
|
495
|
-
};
|
|
496
|
-
consentManagerDialog: {
|
|
497
|
-
description: string;
|
|
498
|
-
title: string;
|
|
499
|
-
};
|
|
500
|
-
consentTypes: {
|
|
501
|
-
experience: {
|
|
502
|
-
description: string;
|
|
503
|
-
title: string;
|
|
504
|
-
};
|
|
505
|
-
functionality: {
|
|
506
|
-
description: string;
|
|
507
|
-
title: string;
|
|
508
|
-
};
|
|
509
|
-
marketing: {
|
|
510
|
-
description: string;
|
|
511
|
-
title: string;
|
|
512
|
-
};
|
|
513
|
-
measurement: {
|
|
514
|
-
description: string;
|
|
515
|
-
title: string;
|
|
516
|
-
};
|
|
517
|
-
necessary: {
|
|
518
|
-
description: string;
|
|
519
|
-
title: string;
|
|
520
|
-
};
|
|
521
|
-
};
|
|
522
|
-
};
|
|
523
|
-
language: string;
|
|
172
|
+
}, import("zod/v4/core").$strip>;
|
|
173
|
+
}, import("zod/v4/core").$strip>;
|
|
174
|
+
}, import("zod/v4/core").$strip>;
|
|
175
|
+
}, import("zod/v4/core").$strip>;
|
|
176
|
+
branding: import("zod").ZodEnum<{
|
|
177
|
+
c15t: "c15t";
|
|
178
|
+
consent: "consent";
|
|
179
|
+
none: "none";
|
|
524
180
|
}>;
|
|
525
|
-
},
|
|
526
|
-
showConsentBanner: boolean;
|
|
527
|
-
jurisdiction: {
|
|
528
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
529
|
-
message: string;
|
|
530
|
-
};
|
|
531
|
-
location: {
|
|
532
|
-
countryCode: string | null;
|
|
533
|
-
regionCode: string | null;
|
|
534
|
-
};
|
|
535
|
-
translations: {
|
|
536
|
-
translations: {
|
|
537
|
-
common: {
|
|
538
|
-
acceptAll: string;
|
|
539
|
-
rejectAll: string;
|
|
540
|
-
customize: string;
|
|
541
|
-
save: string;
|
|
542
|
-
};
|
|
543
|
-
cookieBanner: {
|
|
544
|
-
description: string;
|
|
545
|
-
title: string;
|
|
546
|
-
};
|
|
547
|
-
consentManagerDialog: {
|
|
548
|
-
description: string;
|
|
549
|
-
title: string;
|
|
550
|
-
};
|
|
551
|
-
consentTypes: {
|
|
552
|
-
experience: {
|
|
553
|
-
description: string;
|
|
554
|
-
title: string;
|
|
555
|
-
};
|
|
556
|
-
functionality: {
|
|
557
|
-
description: string;
|
|
558
|
-
title: string;
|
|
559
|
-
};
|
|
560
|
-
marketing: {
|
|
561
|
-
description: string;
|
|
562
|
-
title: string;
|
|
563
|
-
};
|
|
564
|
-
measurement: {
|
|
565
|
-
description: string;
|
|
566
|
-
title: string;
|
|
567
|
-
};
|
|
568
|
-
necessary: {
|
|
569
|
-
description: string;
|
|
570
|
-
title: string;
|
|
571
|
-
};
|
|
572
|
-
};
|
|
573
|
-
};
|
|
574
|
-
language: string;
|
|
575
|
-
};
|
|
576
|
-
}, {
|
|
577
|
-
showConsentBanner: boolean;
|
|
578
|
-
jurisdiction: {
|
|
579
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
580
|
-
message: string;
|
|
581
|
-
};
|
|
582
|
-
location: {
|
|
583
|
-
countryCode: string | null;
|
|
584
|
-
regionCode: string | null;
|
|
585
|
-
};
|
|
586
|
-
translations: {
|
|
587
|
-
translations: {
|
|
588
|
-
common: {
|
|
589
|
-
acceptAll: string;
|
|
590
|
-
rejectAll: string;
|
|
591
|
-
customize: string;
|
|
592
|
-
save: string;
|
|
593
|
-
};
|
|
594
|
-
cookieBanner: {
|
|
595
|
-
description: string;
|
|
596
|
-
title: string;
|
|
597
|
-
};
|
|
598
|
-
consentManagerDialog: {
|
|
599
|
-
description: string;
|
|
600
|
-
title: string;
|
|
601
|
-
};
|
|
602
|
-
consentTypes: {
|
|
603
|
-
experience: {
|
|
604
|
-
description: string;
|
|
605
|
-
title: string;
|
|
606
|
-
};
|
|
607
|
-
functionality: {
|
|
608
|
-
description: string;
|
|
609
|
-
title: string;
|
|
610
|
-
};
|
|
611
|
-
marketing: {
|
|
612
|
-
description: string;
|
|
613
|
-
title: string;
|
|
614
|
-
};
|
|
615
|
-
measurement: {
|
|
616
|
-
description: string;
|
|
617
|
-
title: string;
|
|
618
|
-
};
|
|
619
|
-
necessary: {
|
|
620
|
-
description: string;
|
|
621
|
-
title: string;
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
language: string;
|
|
626
|
-
};
|
|
627
|
-
}>, Record<never, never>, Record<never, never>>;
|
|
181
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
628
182
|
verify: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
629
183
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
630
184
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
631
185
|
domain: import("zod").ZodString;
|
|
632
|
-
type: import("zod").ZodEnum<
|
|
186
|
+
type: import("zod").ZodEnum<{
|
|
187
|
+
cookie_banner: "cookie_banner";
|
|
188
|
+
privacy_policy: "privacy_policy";
|
|
189
|
+
dpa: "dpa";
|
|
190
|
+
terms_and_conditions: "terms_and_conditions";
|
|
191
|
+
marketing_communications: "marketing_communications";
|
|
192
|
+
age_verification: "age_verification";
|
|
193
|
+
other: "other";
|
|
194
|
+
}>;
|
|
633
195
|
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
634
|
-
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
635
|
-
}, "strict
|
|
636
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
637
|
-
domain: string;
|
|
638
|
-
subjectId?: string | undefined;
|
|
639
|
-
policyId?: string | undefined;
|
|
640
|
-
externalSubjectId?: string | undefined;
|
|
641
|
-
preferences?: string[] | undefined;
|
|
642
|
-
}, {
|
|
643
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
644
|
-
domain: string;
|
|
645
|
-
subjectId?: string | undefined;
|
|
646
|
-
policyId?: string | undefined;
|
|
647
|
-
externalSubjectId?: string | undefined;
|
|
648
|
-
preferences?: string[] | undefined;
|
|
649
|
-
}>, import("zod").ZodObject<{
|
|
196
|
+
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
197
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
650
198
|
isValid: import("zod").ZodBoolean;
|
|
651
|
-
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
199
|
+
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
652
200
|
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
653
201
|
id: import("zod").ZodString;
|
|
654
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString
|
|
655
|
-
},
|
|
656
|
-
|
|
657
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
658
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
659
|
-
id: import("zod").ZodString;
|
|
660
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
661
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
662
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
663
|
-
isValid: boolean;
|
|
664
|
-
consent?: import("zod").objectOutputType<{
|
|
665
|
-
id: import("zod").ZodString;
|
|
666
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
667
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
668
|
-
reasons?: string[] | undefined;
|
|
669
|
-
}, {
|
|
670
|
-
isValid: boolean;
|
|
671
|
-
consent?: import("zod").objectInputType<{
|
|
672
|
-
id: import("zod").ZodString;
|
|
673
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
674
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
675
|
-
reasons?: string[] | undefined;
|
|
676
|
-
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
202
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
203
|
+
}, import("zod/v4/core").$loose>>;
|
|
204
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
677
205
|
INPUT_VALIDATION_FAILED: {
|
|
678
206
|
status: number;
|
|
679
|
-
message: string;
|
|
680
207
|
data: import("zod").ZodObject<{
|
|
681
|
-
formErrors: import("zod").ZodArray<import("zod").ZodString
|
|
682
|
-
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
683
|
-
},
|
|
684
|
-
|
|
685
|
-
fieldErrors: Record<string, string[] | undefined>;
|
|
686
|
-
}, {
|
|
687
|
-
formErrors: string[];
|
|
688
|
-
fieldErrors: Record<string, string[] | undefined>;
|
|
689
|
-
}>;
|
|
208
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString>;
|
|
209
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
210
|
+
}, import("zod/v4/core").$strip>;
|
|
211
|
+
error: string;
|
|
690
212
|
};
|
|
691
213
|
SUBJECT_NOT_FOUND: {
|
|
692
214
|
status: number;
|
|
693
|
-
message: string;
|
|
694
215
|
data: import("zod").ZodObject<{
|
|
695
216
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
696
217
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
697
|
-
},
|
|
698
|
-
|
|
699
|
-
externalSubjectId?: string | undefined;
|
|
700
|
-
}, {
|
|
701
|
-
subjectId?: string | undefined;
|
|
702
|
-
externalSubjectId?: string | undefined;
|
|
703
|
-
}>;
|
|
218
|
+
}, import("zod/v4/core").$strip>;
|
|
219
|
+
error: string;
|
|
704
220
|
};
|
|
705
221
|
DOMAIN_NOT_FOUND: {
|
|
706
222
|
status: number;
|
|
707
|
-
message: string;
|
|
708
223
|
data: import("zod").ZodObject<{
|
|
709
224
|
domain: import("zod").ZodString;
|
|
710
|
-
},
|
|
711
|
-
|
|
712
|
-
}, {
|
|
713
|
-
domain: string;
|
|
714
|
-
}>;
|
|
225
|
+
}, import("zod/v4/core").$strip>;
|
|
226
|
+
error: string;
|
|
715
227
|
};
|
|
716
228
|
POLICY_NOT_FOUND: {
|
|
717
229
|
status: number;
|
|
718
|
-
message: string;
|
|
719
230
|
data: import("zod").ZodObject<{
|
|
720
231
|
policyId: import("zod").ZodString;
|
|
721
232
|
type: import("zod").ZodString;
|
|
722
|
-
},
|
|
723
|
-
|
|
724
|
-
policyId: string;
|
|
725
|
-
}, {
|
|
726
|
-
type: string;
|
|
727
|
-
policyId: string;
|
|
728
|
-
}>;
|
|
233
|
+
}, import("zod/v4/core").$strip>;
|
|
234
|
+
error: string;
|
|
729
235
|
};
|
|
730
236
|
PURPOSES_NOT_FOUND: {
|
|
731
237
|
status: number;
|
|
732
|
-
message: string;
|
|
733
238
|
data: import("zod").ZodObject<{
|
|
734
|
-
preferences: import("zod").ZodArray<import("zod").ZodString
|
|
735
|
-
foundPurposes: import("zod").ZodArray<import("zod").ZodString
|
|
736
|
-
},
|
|
737
|
-
|
|
738
|
-
foundPurposes: string[];
|
|
739
|
-
}, {
|
|
740
|
-
preferences: string[];
|
|
741
|
-
foundPurposes: string[];
|
|
742
|
-
}>;
|
|
239
|
+
preferences: import("zod").ZodArray<import("zod").ZodString>;
|
|
240
|
+
foundPurposes: import("zod").ZodArray<import("zod").ZodString>;
|
|
241
|
+
}, import("zod/v4/core").$strip>;
|
|
242
|
+
error: string;
|
|
743
243
|
};
|
|
744
244
|
COOKIE_BANNER_PREFERENCES_REQUIRED: {
|
|
745
245
|
status: number;
|
|
746
|
-
message: string;
|
|
747
246
|
data: import("zod").ZodObject<{
|
|
748
247
|
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
749
|
-
},
|
|
750
|
-
|
|
751
|
-
}, {
|
|
752
|
-
type: "cookie_banner";
|
|
753
|
-
}>;
|
|
248
|
+
}, import("zod/v4/core").$strip>;
|
|
249
|
+
error: string;
|
|
754
250
|
};
|
|
755
251
|
NO_CONSENT_FOUND: {
|
|
756
252
|
status: number;
|
|
757
|
-
message: string;
|
|
758
253
|
data: import("zod").ZodObject<{
|
|
759
254
|
policyId: import("zod").ZodString;
|
|
760
255
|
subjectId: import("zod").ZodString;
|
|
761
256
|
domainId: import("zod").ZodString;
|
|
762
|
-
},
|
|
763
|
-
|
|
764
|
-
domainId: string;
|
|
765
|
-
policyId: string;
|
|
766
|
-
}, {
|
|
767
|
-
subjectId: string;
|
|
768
|
-
domainId: string;
|
|
769
|
-
policyId: string;
|
|
770
|
-
}>;
|
|
257
|
+
}, import("zod/v4/core").$strip>;
|
|
258
|
+
error: string;
|
|
771
259
|
};
|
|
772
260
|
}>, Record<never, never>>;
|
|
773
261
|
};
|
|
774
262
|
meta: {
|
|
775
263
|
status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
776
|
-
status: import("zod").ZodEnum<
|
|
264
|
+
status: import("zod").ZodEnum<{
|
|
265
|
+
error: "error";
|
|
266
|
+
ok: "ok";
|
|
267
|
+
}>;
|
|
777
268
|
version: import("zod").ZodString;
|
|
778
269
|
timestamp: import("zod").ZodDate;
|
|
779
270
|
storage: import("zod").ZodObject<{
|
|
780
271
|
type: import("zod").ZodString;
|
|
781
272
|
available: import("zod").ZodBoolean;
|
|
782
|
-
},
|
|
783
|
-
type: string;
|
|
784
|
-
available: boolean;
|
|
785
|
-
}, {
|
|
786
|
-
type: string;
|
|
787
|
-
available: boolean;
|
|
788
|
-
}>;
|
|
273
|
+
}, import("zod/v4/core").$strip>;
|
|
789
274
|
client: import("zod").ZodObject<{
|
|
790
275
|
ip: import("zod").ZodNullable<import("zod").ZodString>;
|
|
791
276
|
userAgent: import("zod").ZodNullable<import("zod").ZodString>;
|
|
792
277
|
region: import("zod").ZodObject<{
|
|
793
278
|
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
794
279
|
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
795
|
-
},
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
}, {
|
|
799
|
-
countryCode: string | null;
|
|
800
|
-
regionCode: string | null;
|
|
801
|
-
}>;
|
|
802
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
803
|
-
userAgent: string | null;
|
|
804
|
-
ip: string | null;
|
|
805
|
-
region: {
|
|
806
|
-
countryCode: string | null;
|
|
807
|
-
regionCode: string | null;
|
|
808
|
-
};
|
|
809
|
-
}, {
|
|
810
|
-
userAgent: string | null;
|
|
811
|
-
ip: string | null;
|
|
812
|
-
region: {
|
|
813
|
-
countryCode: string | null;
|
|
814
|
-
regionCode: string | null;
|
|
815
|
-
};
|
|
816
|
-
}>;
|
|
817
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
818
|
-
storage: {
|
|
819
|
-
type: string;
|
|
820
|
-
available: boolean;
|
|
821
|
-
};
|
|
822
|
-
status: "error" | "ok";
|
|
823
|
-
version: string;
|
|
824
|
-
timestamp: Date;
|
|
825
|
-
client: {
|
|
826
|
-
userAgent: string | null;
|
|
827
|
-
ip: string | null;
|
|
828
|
-
region: {
|
|
829
|
-
countryCode: string | null;
|
|
830
|
-
regionCode: string | null;
|
|
831
|
-
};
|
|
832
|
-
};
|
|
833
|
-
}, {
|
|
834
|
-
storage: {
|
|
835
|
-
type: string;
|
|
836
|
-
available: boolean;
|
|
837
|
-
};
|
|
838
|
-
status: "error" | "ok";
|
|
839
|
-
version: string;
|
|
840
|
-
timestamp: Date;
|
|
841
|
-
client: {
|
|
842
|
-
userAgent: string | null;
|
|
843
|
-
ip: string | null;
|
|
844
|
-
region: {
|
|
845
|
-
countryCode: string | null;
|
|
846
|
-
regionCode: string | null;
|
|
847
|
-
};
|
|
848
|
-
};
|
|
849
|
-
}>, Record<never, never>, Record<never, never>>;
|
|
280
|
+
}, import("zod/v4/core").$strip>;
|
|
281
|
+
}, import("zod/v4/core").$strip>;
|
|
282
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
850
283
|
};
|
|
851
284
|
};
|
|
852
285
|
export { config as contracts };
|
|
853
286
|
export declare const os: import("@orpc/server").Implementer<{
|
|
854
287
|
consent: {
|
|
855
|
-
post: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<
|
|
288
|
+
post: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
856
289
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
857
290
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
858
291
|
domain: import("zod").ZodString;
|
|
859
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
860
292
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
861
|
-
}, {
|
|
862
293
|
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
863
294
|
preferences: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>;
|
|
864
|
-
}
|
|
865
|
-
type: "cookie_banner";
|
|
866
|
-
domain: string;
|
|
867
|
-
preferences: Record<string, boolean>;
|
|
868
|
-
subjectId?: string | undefined;
|
|
869
|
-
metadata?: Record<string, unknown> | undefined;
|
|
870
|
-
externalSubjectId?: string | undefined;
|
|
871
|
-
}, {
|
|
872
|
-
type: "cookie_banner";
|
|
873
|
-
domain: string;
|
|
874
|
-
preferences: Record<string, boolean>;
|
|
875
|
-
subjectId?: string | undefined;
|
|
876
|
-
metadata?: Record<string, unknown> | undefined;
|
|
877
|
-
externalSubjectId?: string | undefined;
|
|
878
|
-
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
295
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
879
296
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
880
297
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
881
298
|
domain: import("zod").ZodString;
|
|
882
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
883
299
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
884
|
-
|
|
885
|
-
|
|
300
|
+
type: import("zod").ZodEnum<{
|
|
301
|
+
privacy_policy: "privacy_policy";
|
|
302
|
+
dpa: "dpa";
|
|
303
|
+
terms_and_conditions: "terms_and_conditions";
|
|
304
|
+
}>;
|
|
886
305
|
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
887
306
|
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
888
|
-
}
|
|
889
|
-
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
890
|
-
domain: string;
|
|
891
|
-
subjectId?: string | undefined;
|
|
892
|
-
metadata?: Record<string, unknown> | undefined;
|
|
893
|
-
policyId?: string | undefined;
|
|
894
|
-
externalSubjectId?: string | undefined;
|
|
895
|
-
preferences?: Record<string, boolean> | undefined;
|
|
896
|
-
}, {
|
|
897
|
-
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
898
|
-
domain: string;
|
|
899
|
-
subjectId?: string | undefined;
|
|
900
|
-
metadata?: Record<string, unknown> | undefined;
|
|
901
|
-
policyId?: string | undefined;
|
|
902
|
-
externalSubjectId?: string | undefined;
|
|
903
|
-
preferences?: Record<string, boolean> | undefined;
|
|
904
|
-
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
307
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
905
308
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
906
309
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
907
310
|
domain: import("zod").ZodString;
|
|
908
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
909
311
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
910
|
-
|
|
911
|
-
|
|
312
|
+
type: import("zod").ZodEnum<{
|
|
313
|
+
marketing_communications: "marketing_communications";
|
|
314
|
+
age_verification: "age_verification";
|
|
315
|
+
other: "other";
|
|
316
|
+
}>;
|
|
912
317
|
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
913
|
-
}
|
|
914
|
-
type: "marketing_communications" | "age_verification" | "other";
|
|
915
|
-
domain: string;
|
|
916
|
-
subjectId?: string | undefined;
|
|
917
|
-
metadata?: Record<string, unknown> | undefined;
|
|
918
|
-
externalSubjectId?: string | undefined;
|
|
919
|
-
preferences?: Record<string, boolean> | undefined;
|
|
920
|
-
}, {
|
|
921
|
-
type: "marketing_communications" | "age_verification" | "other";
|
|
922
|
-
domain: string;
|
|
923
|
-
subjectId?: string | undefined;
|
|
924
|
-
metadata?: Record<string, unknown> | undefined;
|
|
925
|
-
externalSubjectId?: string | undefined;
|
|
926
|
-
preferences?: Record<string, boolean> | undefined;
|
|
927
|
-
}>]>, import("zod").ZodObject<{
|
|
318
|
+
}, import("zod/v4/core").$strip>], "type">, import("zod").ZodObject<{
|
|
928
319
|
id: import("zod").ZodString;
|
|
929
320
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
930
321
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
931
322
|
domainId: import("zod").ZodString;
|
|
932
323
|
domain: import("zod").ZodString;
|
|
933
|
-
type: import("zod").ZodEnum<
|
|
324
|
+
type: import("zod").ZodEnum<{
|
|
325
|
+
cookie_banner: "cookie_banner";
|
|
326
|
+
privacy_policy: "privacy_policy";
|
|
327
|
+
dpa: "dpa";
|
|
328
|
+
terms_and_conditions: "terms_and_conditions";
|
|
329
|
+
marketing_communications: "marketing_communications";
|
|
330
|
+
age_verification: "age_verification";
|
|
331
|
+
other: "other";
|
|
332
|
+
}>;
|
|
934
333
|
status: import("zod").ZodString;
|
|
935
334
|
recordId: import("zod").ZodString;
|
|
936
335
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
937
336
|
givenAt: import("zod").ZodDate;
|
|
938
|
-
}, "strip
|
|
939
|
-
status: string;
|
|
940
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
941
|
-
id: string;
|
|
942
|
-
domain: string;
|
|
943
|
-
domainId: string;
|
|
944
|
-
givenAt: Date;
|
|
945
|
-
recordId: string;
|
|
946
|
-
subjectId?: string | undefined;
|
|
947
|
-
metadata?: Record<string, unknown> | undefined;
|
|
948
|
-
externalSubjectId?: string | undefined;
|
|
949
|
-
}, {
|
|
950
|
-
status: string;
|
|
951
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
952
|
-
id: string;
|
|
953
|
-
domain: string;
|
|
954
|
-
domainId: string;
|
|
955
|
-
givenAt: Date;
|
|
956
|
-
recordId: string;
|
|
957
|
-
subjectId?: string | undefined;
|
|
958
|
-
metadata?: Record<string, unknown> | undefined;
|
|
959
|
-
externalSubjectId?: string | undefined;
|
|
960
|
-
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
337
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
961
338
|
INPUT_VALIDATION_FAILED: {
|
|
962
339
|
status: number;
|
|
963
|
-
message: string;
|
|
964
340
|
data: import("zod").ZodObject<{
|
|
965
|
-
formErrors: import("zod").ZodArray<import("zod").ZodString
|
|
966
|
-
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString
|
|
967
|
-
},
|
|
968
|
-
|
|
969
|
-
fieldErrors: Record<string, string[]>;
|
|
970
|
-
}, {
|
|
971
|
-
formErrors: string[];
|
|
972
|
-
fieldErrors: Record<string, string[]>;
|
|
973
|
-
}>;
|
|
341
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString>;
|
|
342
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>;
|
|
343
|
+
}, import("zod/v4/core").$strip>;
|
|
344
|
+
error: string;
|
|
974
345
|
};
|
|
975
346
|
SUBJECT_CREATION_FAILED: {
|
|
976
347
|
status: number;
|
|
977
|
-
message: string;
|
|
978
348
|
data: import("zod").ZodObject<{
|
|
979
349
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
980
350
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
981
|
-
},
|
|
982
|
-
|
|
983
|
-
externalSubjectId?: string | undefined;
|
|
984
|
-
}, {
|
|
985
|
-
subjectId?: string | undefined;
|
|
986
|
-
externalSubjectId?: string | undefined;
|
|
987
|
-
}>;
|
|
351
|
+
}, import("zod/v4/core").$strip>;
|
|
352
|
+
error: string;
|
|
988
353
|
};
|
|
989
354
|
DOMAIN_CREATION_FAILED: {
|
|
990
355
|
status: number;
|
|
991
|
-
message: string;
|
|
992
356
|
data: import("zod").ZodObject<{
|
|
993
357
|
domain: import("zod").ZodString;
|
|
994
|
-
},
|
|
995
|
-
|
|
996
|
-
}, {
|
|
997
|
-
domain: string;
|
|
998
|
-
}>;
|
|
358
|
+
}, import("zod/v4/core").$strip>;
|
|
359
|
+
error: string;
|
|
999
360
|
};
|
|
1000
361
|
POLICY_NOT_FOUND: {
|
|
1001
362
|
status: number;
|
|
1002
|
-
message: string;
|
|
1003
363
|
data: import("zod").ZodObject<{
|
|
1004
364
|
policyId: import("zod").ZodString;
|
|
1005
365
|
type: import("zod").ZodString;
|
|
1006
|
-
},
|
|
1007
|
-
|
|
1008
|
-
policyId: string;
|
|
1009
|
-
}, {
|
|
1010
|
-
type: string;
|
|
1011
|
-
policyId: string;
|
|
1012
|
-
}>;
|
|
366
|
+
}, import("zod/v4/core").$strip>;
|
|
367
|
+
error: string;
|
|
1013
368
|
};
|
|
1014
369
|
POLICY_INACTIVE: {
|
|
1015
370
|
status: number;
|
|
1016
|
-
message: string;
|
|
1017
371
|
data: import("zod").ZodObject<{
|
|
1018
372
|
policyId: import("zod").ZodString;
|
|
1019
373
|
type: import("zod").ZodString;
|
|
1020
|
-
},
|
|
1021
|
-
|
|
1022
|
-
policyId: string;
|
|
1023
|
-
}, {
|
|
1024
|
-
type: string;
|
|
1025
|
-
policyId: string;
|
|
1026
|
-
}>;
|
|
374
|
+
}, import("zod/v4/core").$strip>;
|
|
375
|
+
error: string;
|
|
1027
376
|
};
|
|
1028
377
|
POLICY_CREATION_FAILED: {
|
|
1029
378
|
status: number;
|
|
1030
|
-
message: string;
|
|
1031
379
|
data: import("zod").ZodObject<{
|
|
1032
380
|
type: import("zod").ZodString;
|
|
1033
|
-
},
|
|
1034
|
-
|
|
1035
|
-
}, {
|
|
1036
|
-
type: string;
|
|
1037
|
-
}>;
|
|
381
|
+
}, import("zod/v4/core").$strip>;
|
|
382
|
+
error: string;
|
|
1038
383
|
};
|
|
1039
384
|
PURPOSE_CREATION_FAILED: {
|
|
1040
385
|
status: number;
|
|
1041
|
-
message: string;
|
|
1042
386
|
data: import("zod").ZodObject<{
|
|
1043
387
|
purposeCode: import("zod").ZodString;
|
|
1044
|
-
},
|
|
1045
|
-
|
|
1046
|
-
}, {
|
|
1047
|
-
purposeCode: string;
|
|
1048
|
-
}>;
|
|
388
|
+
}, import("zod/v4/core").$strip>;
|
|
389
|
+
error: string;
|
|
1049
390
|
};
|
|
1050
391
|
CONSENT_CREATION_FAILED: {
|
|
1051
392
|
status: number;
|
|
1052
|
-
message: string;
|
|
1053
393
|
data: import("zod").ZodObject<{
|
|
1054
394
|
subjectId: import("zod").ZodString;
|
|
1055
395
|
domain: import("zod").ZodString;
|
|
1056
|
-
},
|
|
1057
|
-
|
|
1058
|
-
domain: string;
|
|
1059
|
-
}, {
|
|
1060
|
-
subjectId: string;
|
|
1061
|
-
domain: string;
|
|
1062
|
-
}>;
|
|
396
|
+
}, import("zod/v4/core").$strip>;
|
|
397
|
+
error: string;
|
|
1063
398
|
};
|
|
1064
399
|
}>, Record<never, never>>;
|
|
1065
400
|
showBanner: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
1066
401
|
showConsentBanner: import("zod").ZodBoolean;
|
|
1067
402
|
jurisdiction: import("zod").ZodObject<{
|
|
1068
|
-
code: import("zod").ZodEnum<
|
|
403
|
+
code: import("zod").ZodEnum<{
|
|
404
|
+
GDPR: "GDPR";
|
|
405
|
+
CH: "CH";
|
|
406
|
+
BR: "BR";
|
|
407
|
+
PIPEDA: "PIPEDA";
|
|
408
|
+
AU: "AU";
|
|
409
|
+
APPI: "APPI";
|
|
410
|
+
PIPA: "PIPA";
|
|
411
|
+
NONE: "NONE";
|
|
412
|
+
}>;
|
|
1069
413
|
message: import("zod").ZodString;
|
|
1070
|
-
},
|
|
1071
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
1072
|
-
message: string;
|
|
1073
|
-
}, {
|
|
1074
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
1075
|
-
message: string;
|
|
1076
|
-
}>;
|
|
414
|
+
}, import("zod/v4/core").$strip>;
|
|
1077
415
|
location: import("zod").ZodObject<{
|
|
1078
416
|
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1079
417
|
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1080
|
-
},
|
|
1081
|
-
countryCode: string | null;
|
|
1082
|
-
regionCode: string | null;
|
|
1083
|
-
}, {
|
|
1084
|
-
countryCode: string | null;
|
|
1085
|
-
regionCode: string | null;
|
|
1086
|
-
}>;
|
|
418
|
+
}, import("zod/v4/core").$strip>;
|
|
1087
419
|
translations: import("zod").ZodObject<{
|
|
1088
420
|
language: import("zod").ZodString;
|
|
1089
421
|
translations: import("zod").ZodObject<{
|
|
@@ -1092,612 +424,146 @@ export declare const os: import("@orpc/server").Implementer<{
|
|
|
1092
424
|
rejectAll: import("zod").ZodString;
|
|
1093
425
|
customize: import("zod").ZodString;
|
|
1094
426
|
save: import("zod").ZodString;
|
|
1095
|
-
},
|
|
1096
|
-
acceptAll: string;
|
|
1097
|
-
rejectAll: string;
|
|
1098
|
-
customize: string;
|
|
1099
|
-
save: string;
|
|
1100
|
-
}, {
|
|
1101
|
-
acceptAll: string;
|
|
1102
|
-
rejectAll: string;
|
|
1103
|
-
customize: string;
|
|
1104
|
-
save: string;
|
|
1105
|
-
}>;
|
|
427
|
+
}, import("zod/v4/core").$strip>;
|
|
1106
428
|
cookieBanner: import("zod").ZodObject<{
|
|
1107
429
|
title: import("zod").ZodString;
|
|
1108
430
|
description: import("zod").ZodString;
|
|
1109
|
-
},
|
|
1110
|
-
description: string;
|
|
1111
|
-
title: string;
|
|
1112
|
-
}, {
|
|
1113
|
-
description: string;
|
|
1114
|
-
title: string;
|
|
1115
|
-
}>;
|
|
431
|
+
}, import("zod/v4/core").$strip>;
|
|
1116
432
|
consentManagerDialog: import("zod").ZodObject<{
|
|
1117
433
|
title: import("zod").ZodString;
|
|
1118
434
|
description: import("zod").ZodString;
|
|
1119
|
-
},
|
|
1120
|
-
description: string;
|
|
1121
|
-
title: string;
|
|
1122
|
-
}, {
|
|
1123
|
-
description: string;
|
|
1124
|
-
title: string;
|
|
1125
|
-
}>;
|
|
435
|
+
}, import("zod/v4/core").$strip>;
|
|
1126
436
|
consentTypes: import("zod").ZodObject<{
|
|
1127
437
|
experience: import("zod").ZodObject<{
|
|
1128
438
|
title: import("zod").ZodString;
|
|
1129
439
|
description: import("zod").ZodString;
|
|
1130
|
-
},
|
|
1131
|
-
description: string;
|
|
1132
|
-
title: string;
|
|
1133
|
-
}, {
|
|
1134
|
-
description: string;
|
|
1135
|
-
title: string;
|
|
1136
|
-
}>;
|
|
440
|
+
}, import("zod/v4/core").$strip>;
|
|
1137
441
|
functionality: import("zod").ZodObject<{
|
|
1138
442
|
title: import("zod").ZodString;
|
|
1139
443
|
description: import("zod").ZodString;
|
|
1140
|
-
},
|
|
1141
|
-
description: string;
|
|
1142
|
-
title: string;
|
|
1143
|
-
}, {
|
|
1144
|
-
description: string;
|
|
1145
|
-
title: string;
|
|
1146
|
-
}>;
|
|
444
|
+
}, import("zod/v4/core").$strip>;
|
|
1147
445
|
marketing: import("zod").ZodObject<{
|
|
1148
446
|
title: import("zod").ZodString;
|
|
1149
447
|
description: import("zod").ZodString;
|
|
1150
|
-
},
|
|
1151
|
-
description: string;
|
|
1152
|
-
title: string;
|
|
1153
|
-
}, {
|
|
1154
|
-
description: string;
|
|
1155
|
-
title: string;
|
|
1156
|
-
}>;
|
|
448
|
+
}, import("zod/v4/core").$strip>;
|
|
1157
449
|
measurement: import("zod").ZodObject<{
|
|
1158
450
|
title: import("zod").ZodString;
|
|
1159
451
|
description: import("zod").ZodString;
|
|
1160
|
-
},
|
|
1161
|
-
description: string;
|
|
1162
|
-
title: string;
|
|
1163
|
-
}, {
|
|
1164
|
-
description: string;
|
|
1165
|
-
title: string;
|
|
1166
|
-
}>;
|
|
452
|
+
}, import("zod/v4/core").$strip>;
|
|
1167
453
|
necessary: import("zod").ZodObject<{
|
|
1168
454
|
title: import("zod").ZodString;
|
|
1169
455
|
description: import("zod").ZodString;
|
|
1170
|
-
},
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
experience: {
|
|
1179
|
-
description: string;
|
|
1180
|
-
title: string;
|
|
1181
|
-
};
|
|
1182
|
-
functionality: {
|
|
1183
|
-
description: string;
|
|
1184
|
-
title: string;
|
|
1185
|
-
};
|
|
1186
|
-
marketing: {
|
|
1187
|
-
description: string;
|
|
1188
|
-
title: string;
|
|
1189
|
-
};
|
|
1190
|
-
measurement: {
|
|
1191
|
-
description: string;
|
|
1192
|
-
title: string;
|
|
1193
|
-
};
|
|
1194
|
-
necessary: {
|
|
1195
|
-
description: string;
|
|
1196
|
-
title: string;
|
|
1197
|
-
};
|
|
1198
|
-
}, {
|
|
1199
|
-
experience: {
|
|
1200
|
-
description: string;
|
|
1201
|
-
title: string;
|
|
1202
|
-
};
|
|
1203
|
-
functionality: {
|
|
1204
|
-
description: string;
|
|
1205
|
-
title: string;
|
|
1206
|
-
};
|
|
1207
|
-
marketing: {
|
|
1208
|
-
description: string;
|
|
1209
|
-
title: string;
|
|
1210
|
-
};
|
|
1211
|
-
measurement: {
|
|
1212
|
-
description: string;
|
|
1213
|
-
title: string;
|
|
1214
|
-
};
|
|
1215
|
-
necessary: {
|
|
1216
|
-
description: string;
|
|
1217
|
-
title: string;
|
|
1218
|
-
};
|
|
1219
|
-
}>;
|
|
1220
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1221
|
-
common: {
|
|
1222
|
-
acceptAll: string;
|
|
1223
|
-
rejectAll: string;
|
|
1224
|
-
customize: string;
|
|
1225
|
-
save: string;
|
|
1226
|
-
};
|
|
1227
|
-
cookieBanner: {
|
|
1228
|
-
description: string;
|
|
1229
|
-
title: string;
|
|
1230
|
-
};
|
|
1231
|
-
consentManagerDialog: {
|
|
1232
|
-
description: string;
|
|
1233
|
-
title: string;
|
|
1234
|
-
};
|
|
1235
|
-
consentTypes: {
|
|
1236
|
-
experience: {
|
|
1237
|
-
description: string;
|
|
1238
|
-
title: string;
|
|
1239
|
-
};
|
|
1240
|
-
functionality: {
|
|
1241
|
-
description: string;
|
|
1242
|
-
title: string;
|
|
1243
|
-
};
|
|
1244
|
-
marketing: {
|
|
1245
|
-
description: string;
|
|
1246
|
-
title: string;
|
|
1247
|
-
};
|
|
1248
|
-
measurement: {
|
|
1249
|
-
description: string;
|
|
1250
|
-
title: string;
|
|
1251
|
-
};
|
|
1252
|
-
necessary: {
|
|
1253
|
-
description: string;
|
|
1254
|
-
title: string;
|
|
1255
|
-
};
|
|
1256
|
-
};
|
|
1257
|
-
}, {
|
|
1258
|
-
common: {
|
|
1259
|
-
acceptAll: string;
|
|
1260
|
-
rejectAll: string;
|
|
1261
|
-
customize: string;
|
|
1262
|
-
save: string;
|
|
1263
|
-
};
|
|
1264
|
-
cookieBanner: {
|
|
1265
|
-
description: string;
|
|
1266
|
-
title: string;
|
|
1267
|
-
};
|
|
1268
|
-
consentManagerDialog: {
|
|
1269
|
-
description: string;
|
|
1270
|
-
title: string;
|
|
1271
|
-
};
|
|
1272
|
-
consentTypes: {
|
|
1273
|
-
experience: {
|
|
1274
|
-
description: string;
|
|
1275
|
-
title: string;
|
|
1276
|
-
};
|
|
1277
|
-
functionality: {
|
|
1278
|
-
description: string;
|
|
1279
|
-
title: string;
|
|
1280
|
-
};
|
|
1281
|
-
marketing: {
|
|
1282
|
-
description: string;
|
|
1283
|
-
title: string;
|
|
1284
|
-
};
|
|
1285
|
-
measurement: {
|
|
1286
|
-
description: string;
|
|
1287
|
-
title: string;
|
|
1288
|
-
};
|
|
1289
|
-
necessary: {
|
|
1290
|
-
description: string;
|
|
1291
|
-
title: string;
|
|
1292
|
-
};
|
|
1293
|
-
};
|
|
1294
|
-
}>;
|
|
1295
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1296
|
-
translations: {
|
|
1297
|
-
common: {
|
|
1298
|
-
acceptAll: string;
|
|
1299
|
-
rejectAll: string;
|
|
1300
|
-
customize: string;
|
|
1301
|
-
save: string;
|
|
1302
|
-
};
|
|
1303
|
-
cookieBanner: {
|
|
1304
|
-
description: string;
|
|
1305
|
-
title: string;
|
|
1306
|
-
};
|
|
1307
|
-
consentManagerDialog: {
|
|
1308
|
-
description: string;
|
|
1309
|
-
title: string;
|
|
1310
|
-
};
|
|
1311
|
-
consentTypes: {
|
|
1312
|
-
experience: {
|
|
1313
|
-
description: string;
|
|
1314
|
-
title: string;
|
|
1315
|
-
};
|
|
1316
|
-
functionality: {
|
|
1317
|
-
description: string;
|
|
1318
|
-
title: string;
|
|
1319
|
-
};
|
|
1320
|
-
marketing: {
|
|
1321
|
-
description: string;
|
|
1322
|
-
title: string;
|
|
1323
|
-
};
|
|
1324
|
-
measurement: {
|
|
1325
|
-
description: string;
|
|
1326
|
-
title: string;
|
|
1327
|
-
};
|
|
1328
|
-
necessary: {
|
|
1329
|
-
description: string;
|
|
1330
|
-
title: string;
|
|
1331
|
-
};
|
|
1332
|
-
};
|
|
1333
|
-
};
|
|
1334
|
-
language: string;
|
|
1335
|
-
}, {
|
|
1336
|
-
translations: {
|
|
1337
|
-
common: {
|
|
1338
|
-
acceptAll: string;
|
|
1339
|
-
rejectAll: string;
|
|
1340
|
-
customize: string;
|
|
1341
|
-
save: string;
|
|
1342
|
-
};
|
|
1343
|
-
cookieBanner: {
|
|
1344
|
-
description: string;
|
|
1345
|
-
title: string;
|
|
1346
|
-
};
|
|
1347
|
-
consentManagerDialog: {
|
|
1348
|
-
description: string;
|
|
1349
|
-
title: string;
|
|
1350
|
-
};
|
|
1351
|
-
consentTypes: {
|
|
1352
|
-
experience: {
|
|
1353
|
-
description: string;
|
|
1354
|
-
title: string;
|
|
1355
|
-
};
|
|
1356
|
-
functionality: {
|
|
1357
|
-
description: string;
|
|
1358
|
-
title: string;
|
|
1359
|
-
};
|
|
1360
|
-
marketing: {
|
|
1361
|
-
description: string;
|
|
1362
|
-
title: string;
|
|
1363
|
-
};
|
|
1364
|
-
measurement: {
|
|
1365
|
-
description: string;
|
|
1366
|
-
title: string;
|
|
1367
|
-
};
|
|
1368
|
-
necessary: {
|
|
1369
|
-
description: string;
|
|
1370
|
-
title: string;
|
|
1371
|
-
};
|
|
1372
|
-
};
|
|
1373
|
-
};
|
|
1374
|
-
language: string;
|
|
456
|
+
}, import("zod/v4/core").$strip>;
|
|
457
|
+
}, import("zod/v4/core").$strip>;
|
|
458
|
+
}, import("zod/v4/core").$strip>;
|
|
459
|
+
}, import("zod/v4/core").$strip>;
|
|
460
|
+
branding: import("zod").ZodEnum<{
|
|
461
|
+
c15t: "c15t";
|
|
462
|
+
consent: "consent";
|
|
463
|
+
none: "none";
|
|
1375
464
|
}>;
|
|
1376
|
-
},
|
|
1377
|
-
showConsentBanner: boolean;
|
|
1378
|
-
jurisdiction: {
|
|
1379
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
1380
|
-
message: string;
|
|
1381
|
-
};
|
|
1382
|
-
location: {
|
|
1383
|
-
countryCode: string | null;
|
|
1384
|
-
regionCode: string | null;
|
|
1385
|
-
};
|
|
1386
|
-
translations: {
|
|
1387
|
-
translations: {
|
|
1388
|
-
common: {
|
|
1389
|
-
acceptAll: string;
|
|
1390
|
-
rejectAll: string;
|
|
1391
|
-
customize: string;
|
|
1392
|
-
save: string;
|
|
1393
|
-
};
|
|
1394
|
-
cookieBanner: {
|
|
1395
|
-
description: string;
|
|
1396
|
-
title: string;
|
|
1397
|
-
};
|
|
1398
|
-
consentManagerDialog: {
|
|
1399
|
-
description: string;
|
|
1400
|
-
title: string;
|
|
1401
|
-
};
|
|
1402
|
-
consentTypes: {
|
|
1403
|
-
experience: {
|
|
1404
|
-
description: string;
|
|
1405
|
-
title: string;
|
|
1406
|
-
};
|
|
1407
|
-
functionality: {
|
|
1408
|
-
description: string;
|
|
1409
|
-
title: string;
|
|
1410
|
-
};
|
|
1411
|
-
marketing: {
|
|
1412
|
-
description: string;
|
|
1413
|
-
title: string;
|
|
1414
|
-
};
|
|
1415
|
-
measurement: {
|
|
1416
|
-
description: string;
|
|
1417
|
-
title: string;
|
|
1418
|
-
};
|
|
1419
|
-
necessary: {
|
|
1420
|
-
description: string;
|
|
1421
|
-
title: string;
|
|
1422
|
-
};
|
|
1423
|
-
};
|
|
1424
|
-
};
|
|
1425
|
-
language: string;
|
|
1426
|
-
};
|
|
1427
|
-
}, {
|
|
1428
|
-
showConsentBanner: boolean;
|
|
1429
|
-
jurisdiction: {
|
|
1430
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
1431
|
-
message: string;
|
|
1432
|
-
};
|
|
1433
|
-
location: {
|
|
1434
|
-
countryCode: string | null;
|
|
1435
|
-
regionCode: string | null;
|
|
1436
|
-
};
|
|
1437
|
-
translations: {
|
|
1438
|
-
translations: {
|
|
1439
|
-
common: {
|
|
1440
|
-
acceptAll: string;
|
|
1441
|
-
rejectAll: string;
|
|
1442
|
-
customize: string;
|
|
1443
|
-
save: string;
|
|
1444
|
-
};
|
|
1445
|
-
cookieBanner: {
|
|
1446
|
-
description: string;
|
|
1447
|
-
title: string;
|
|
1448
|
-
};
|
|
1449
|
-
consentManagerDialog: {
|
|
1450
|
-
description: string;
|
|
1451
|
-
title: string;
|
|
1452
|
-
};
|
|
1453
|
-
consentTypes: {
|
|
1454
|
-
experience: {
|
|
1455
|
-
description: string;
|
|
1456
|
-
title: string;
|
|
1457
|
-
};
|
|
1458
|
-
functionality: {
|
|
1459
|
-
description: string;
|
|
1460
|
-
title: string;
|
|
1461
|
-
};
|
|
1462
|
-
marketing: {
|
|
1463
|
-
description: string;
|
|
1464
|
-
title: string;
|
|
1465
|
-
};
|
|
1466
|
-
measurement: {
|
|
1467
|
-
description: string;
|
|
1468
|
-
title: string;
|
|
1469
|
-
};
|
|
1470
|
-
necessary: {
|
|
1471
|
-
description: string;
|
|
1472
|
-
title: string;
|
|
1473
|
-
};
|
|
1474
|
-
};
|
|
1475
|
-
};
|
|
1476
|
-
language: string;
|
|
1477
|
-
};
|
|
1478
|
-
}>, Record<never, never>, Record<never, never>>;
|
|
465
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1479
466
|
verify: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1480
467
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1481
468
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1482
469
|
domain: import("zod").ZodString;
|
|
1483
|
-
type: import("zod").ZodEnum<
|
|
470
|
+
type: import("zod").ZodEnum<{
|
|
471
|
+
cookie_banner: "cookie_banner";
|
|
472
|
+
privacy_policy: "privacy_policy";
|
|
473
|
+
dpa: "dpa";
|
|
474
|
+
terms_and_conditions: "terms_and_conditions";
|
|
475
|
+
marketing_communications: "marketing_communications";
|
|
476
|
+
age_verification: "age_verification";
|
|
477
|
+
other: "other";
|
|
478
|
+
}>;
|
|
1484
479
|
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1485
|
-
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
1486
|
-
}, "strict
|
|
1487
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
1488
|
-
domain: string;
|
|
1489
|
-
subjectId?: string | undefined;
|
|
1490
|
-
policyId?: string | undefined;
|
|
1491
|
-
externalSubjectId?: string | undefined;
|
|
1492
|
-
preferences?: string[] | undefined;
|
|
1493
|
-
}, {
|
|
1494
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
1495
|
-
domain: string;
|
|
1496
|
-
subjectId?: string | undefined;
|
|
1497
|
-
policyId?: string | undefined;
|
|
1498
|
-
externalSubjectId?: string | undefined;
|
|
1499
|
-
preferences?: string[] | undefined;
|
|
1500
|
-
}>, import("zod").ZodObject<{
|
|
480
|
+
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
481
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1501
482
|
isValid: import("zod").ZodBoolean;
|
|
1502
|
-
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
483
|
+
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1503
484
|
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1504
485
|
id: import("zod").ZodString;
|
|
1505
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString
|
|
1506
|
-
},
|
|
1507
|
-
|
|
1508
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1509
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1510
|
-
id: import("zod").ZodString;
|
|
1511
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1512
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
1513
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1514
|
-
isValid: boolean;
|
|
1515
|
-
consent?: import("zod").objectOutputType<{
|
|
1516
|
-
id: import("zod").ZodString;
|
|
1517
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1518
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
1519
|
-
reasons?: string[] | undefined;
|
|
1520
|
-
}, {
|
|
1521
|
-
isValid: boolean;
|
|
1522
|
-
consent?: import("zod").objectInputType<{
|
|
1523
|
-
id: import("zod").ZodString;
|
|
1524
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1525
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
1526
|
-
reasons?: string[] | undefined;
|
|
1527
|
-
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
486
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
487
|
+
}, import("zod/v4/core").$loose>>;
|
|
488
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1528
489
|
INPUT_VALIDATION_FAILED: {
|
|
1529
490
|
status: number;
|
|
1530
|
-
message: string;
|
|
1531
491
|
data: import("zod").ZodObject<{
|
|
1532
|
-
formErrors: import("zod").ZodArray<import("zod").ZodString
|
|
1533
|
-
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
1534
|
-
},
|
|
1535
|
-
|
|
1536
|
-
fieldErrors: Record<string, string[] | undefined>;
|
|
1537
|
-
}, {
|
|
1538
|
-
formErrors: string[];
|
|
1539
|
-
fieldErrors: Record<string, string[] | undefined>;
|
|
1540
|
-
}>;
|
|
492
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString>;
|
|
493
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
494
|
+
}, import("zod/v4/core").$strip>;
|
|
495
|
+
error: string;
|
|
1541
496
|
};
|
|
1542
497
|
SUBJECT_NOT_FOUND: {
|
|
1543
498
|
status: number;
|
|
1544
|
-
message: string;
|
|
1545
499
|
data: import("zod").ZodObject<{
|
|
1546
500
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1547
501
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1548
|
-
},
|
|
1549
|
-
|
|
1550
|
-
externalSubjectId?: string | undefined;
|
|
1551
|
-
}, {
|
|
1552
|
-
subjectId?: string | undefined;
|
|
1553
|
-
externalSubjectId?: string | undefined;
|
|
1554
|
-
}>;
|
|
502
|
+
}, import("zod/v4/core").$strip>;
|
|
503
|
+
error: string;
|
|
1555
504
|
};
|
|
1556
505
|
DOMAIN_NOT_FOUND: {
|
|
1557
506
|
status: number;
|
|
1558
|
-
message: string;
|
|
1559
507
|
data: import("zod").ZodObject<{
|
|
1560
508
|
domain: import("zod").ZodString;
|
|
1561
|
-
},
|
|
1562
|
-
|
|
1563
|
-
}, {
|
|
1564
|
-
domain: string;
|
|
1565
|
-
}>;
|
|
509
|
+
}, import("zod/v4/core").$strip>;
|
|
510
|
+
error: string;
|
|
1566
511
|
};
|
|
1567
512
|
POLICY_NOT_FOUND: {
|
|
1568
513
|
status: number;
|
|
1569
|
-
message: string;
|
|
1570
514
|
data: import("zod").ZodObject<{
|
|
1571
515
|
policyId: import("zod").ZodString;
|
|
1572
516
|
type: import("zod").ZodString;
|
|
1573
|
-
},
|
|
1574
|
-
|
|
1575
|
-
policyId: string;
|
|
1576
|
-
}, {
|
|
1577
|
-
type: string;
|
|
1578
|
-
policyId: string;
|
|
1579
|
-
}>;
|
|
517
|
+
}, import("zod/v4/core").$strip>;
|
|
518
|
+
error: string;
|
|
1580
519
|
};
|
|
1581
520
|
PURPOSES_NOT_FOUND: {
|
|
1582
521
|
status: number;
|
|
1583
|
-
message: string;
|
|
1584
522
|
data: import("zod").ZodObject<{
|
|
1585
|
-
preferences: import("zod").ZodArray<import("zod").ZodString
|
|
1586
|
-
foundPurposes: import("zod").ZodArray<import("zod").ZodString
|
|
1587
|
-
},
|
|
1588
|
-
|
|
1589
|
-
foundPurposes: string[];
|
|
1590
|
-
}, {
|
|
1591
|
-
preferences: string[];
|
|
1592
|
-
foundPurposes: string[];
|
|
1593
|
-
}>;
|
|
523
|
+
preferences: import("zod").ZodArray<import("zod").ZodString>;
|
|
524
|
+
foundPurposes: import("zod").ZodArray<import("zod").ZodString>;
|
|
525
|
+
}, import("zod/v4/core").$strip>;
|
|
526
|
+
error: string;
|
|
1594
527
|
};
|
|
1595
528
|
COOKIE_BANNER_PREFERENCES_REQUIRED: {
|
|
1596
529
|
status: number;
|
|
1597
|
-
message: string;
|
|
1598
530
|
data: import("zod").ZodObject<{
|
|
1599
531
|
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
1600
|
-
},
|
|
1601
|
-
|
|
1602
|
-
}, {
|
|
1603
|
-
type: "cookie_banner";
|
|
1604
|
-
}>;
|
|
532
|
+
}, import("zod/v4/core").$strip>;
|
|
533
|
+
error: string;
|
|
1605
534
|
};
|
|
1606
535
|
NO_CONSENT_FOUND: {
|
|
1607
536
|
status: number;
|
|
1608
|
-
message: string;
|
|
1609
537
|
data: import("zod").ZodObject<{
|
|
1610
538
|
policyId: import("zod").ZodString;
|
|
1611
539
|
subjectId: import("zod").ZodString;
|
|
1612
540
|
domainId: import("zod").ZodString;
|
|
1613
|
-
},
|
|
1614
|
-
|
|
1615
|
-
domainId: string;
|
|
1616
|
-
policyId: string;
|
|
1617
|
-
}, {
|
|
1618
|
-
subjectId: string;
|
|
1619
|
-
domainId: string;
|
|
1620
|
-
policyId: string;
|
|
1621
|
-
}>;
|
|
541
|
+
}, import("zod/v4/core").$strip>;
|
|
542
|
+
error: string;
|
|
1622
543
|
};
|
|
1623
544
|
}>, Record<never, never>>;
|
|
1624
545
|
};
|
|
1625
546
|
meta: {
|
|
1626
547
|
status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
1627
|
-
status: import("zod").ZodEnum<
|
|
548
|
+
status: import("zod").ZodEnum<{
|
|
549
|
+
error: "error";
|
|
550
|
+
ok: "ok";
|
|
551
|
+
}>;
|
|
1628
552
|
version: import("zod").ZodString;
|
|
1629
553
|
timestamp: import("zod").ZodDate;
|
|
1630
554
|
storage: import("zod").ZodObject<{
|
|
1631
555
|
type: import("zod").ZodString;
|
|
1632
556
|
available: import("zod").ZodBoolean;
|
|
1633
|
-
},
|
|
1634
|
-
type: string;
|
|
1635
|
-
available: boolean;
|
|
1636
|
-
}, {
|
|
1637
|
-
type: string;
|
|
1638
|
-
available: boolean;
|
|
1639
|
-
}>;
|
|
557
|
+
}, import("zod/v4/core").$strip>;
|
|
1640
558
|
client: import("zod").ZodObject<{
|
|
1641
559
|
ip: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1642
560
|
userAgent: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1643
561
|
region: import("zod").ZodObject<{
|
|
1644
562
|
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1645
563
|
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1646
|
-
},
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
}, {
|
|
1650
|
-
countryCode: string | null;
|
|
1651
|
-
regionCode: string | null;
|
|
1652
|
-
}>;
|
|
1653
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1654
|
-
userAgent: string | null;
|
|
1655
|
-
ip: string | null;
|
|
1656
|
-
region: {
|
|
1657
|
-
countryCode: string | null;
|
|
1658
|
-
regionCode: string | null;
|
|
1659
|
-
};
|
|
1660
|
-
}, {
|
|
1661
|
-
userAgent: string | null;
|
|
1662
|
-
ip: string | null;
|
|
1663
|
-
region: {
|
|
1664
|
-
countryCode: string | null;
|
|
1665
|
-
regionCode: string | null;
|
|
1666
|
-
};
|
|
1667
|
-
}>;
|
|
1668
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1669
|
-
storage: {
|
|
1670
|
-
type: string;
|
|
1671
|
-
available: boolean;
|
|
1672
|
-
};
|
|
1673
|
-
status: "error" | "ok";
|
|
1674
|
-
version: string;
|
|
1675
|
-
timestamp: Date;
|
|
1676
|
-
client: {
|
|
1677
|
-
userAgent: string | null;
|
|
1678
|
-
ip: string | null;
|
|
1679
|
-
region: {
|
|
1680
|
-
countryCode: string | null;
|
|
1681
|
-
regionCode: string | null;
|
|
1682
|
-
};
|
|
1683
|
-
};
|
|
1684
|
-
}, {
|
|
1685
|
-
storage: {
|
|
1686
|
-
type: string;
|
|
1687
|
-
available: boolean;
|
|
1688
|
-
};
|
|
1689
|
-
status: "error" | "ok";
|
|
1690
|
-
version: string;
|
|
1691
|
-
timestamp: Date;
|
|
1692
|
-
client: {
|
|
1693
|
-
userAgent: string | null;
|
|
1694
|
-
ip: string | null;
|
|
1695
|
-
region: {
|
|
1696
|
-
countryCode: string | null;
|
|
1697
|
-
regionCode: string | null;
|
|
1698
|
-
};
|
|
1699
|
-
};
|
|
1700
|
-
}>, Record<never, never>, Record<never, never>>;
|
|
564
|
+
}, import("zod/v4/core").$strip>;
|
|
565
|
+
}, import("zod/v4/core").$strip>;
|
|
566
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1701
567
|
};
|
|
1702
568
|
}, Record<never, never>, Record<never, never>>;
|
|
1703
569
|
export type ContractsOutputs = InferContractRouterOutputs<typeof config>;
|