@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
package/dist/core.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ export type Route = {
|
|
|
31
31
|
* // Handle an incoming request
|
|
32
32
|
* const response = await instance.handler(request);
|
|
33
33
|
* ```
|
|
34
|
+
*
|
|
35
|
+
* @deprecated Will be removed in the next major version. Update to `@c15t/backend/v2`, view migration guide for more details.
|
|
36
|
+
* @see https://c15t.com/docs/self-host/migrate-from-v1
|
|
34
37
|
*/
|
|
35
38
|
export interface C15TInstance<PluginTypes extends C15TPlugin[] = C15TPlugin[]> {
|
|
36
39
|
/**
|
|
@@ -79,6 +82,9 @@ export interface C15TInstance<PluginTypes extends C15TPlugin[] = C15TPlugin[]> {
|
|
|
79
82
|
* Creates a new c15t consent management instance.
|
|
80
83
|
*
|
|
81
84
|
* This version provides a unified handler that works with oRPC to handle requests.
|
|
85
|
+
*
|
|
86
|
+
* @deprecated Will be removed in the next major version. Update to `@c15t/backend/v2`, view migration guide for more details.
|
|
87
|
+
* @see https://c15t.com/docs/self-host/migrate-from-v1
|
|
82
88
|
*/
|
|
83
89
|
export declare const c15tInstance: <PluginTypes extends C15TPlugin[] = C15TPlugin[]>(options: C15TOptions<PluginTypes>) => {
|
|
84
90
|
getOpenAPISpec: () => Promise<Record<string, unknown>>;
|
|
@@ -94,238 +100,137 @@ export declare const c15tInstance: <PluginTypes extends C15TPlugin[] = C15TPlugi
|
|
|
94
100
|
$context: Promise<C15TContext>;
|
|
95
101
|
router: {
|
|
96
102
|
consent: {
|
|
97
|
-
post: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, import("zod").ZodDiscriminatedUnion<
|
|
103
|
+
post: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
98
104
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
99
105
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
106
|
domain: import("zod").ZodString;
|
|
101
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
102
107
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
103
|
-
}, {
|
|
104
108
|
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
105
109
|
preferences: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>;
|
|
106
|
-
}
|
|
107
|
-
type: "cookie_banner";
|
|
108
|
-
domain: string;
|
|
109
|
-
preferences: Record<string, boolean>;
|
|
110
|
-
subjectId?: string | undefined;
|
|
111
|
-
metadata?: Record<string, unknown> | undefined;
|
|
112
|
-
externalSubjectId?: string | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
type: "cookie_banner";
|
|
115
|
-
domain: string;
|
|
116
|
-
preferences: Record<string, boolean>;
|
|
117
|
-
subjectId?: string | undefined;
|
|
118
|
-
metadata?: Record<string, unknown> | undefined;
|
|
119
|
-
externalSubjectId?: string | undefined;
|
|
120
|
-
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
110
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
121
111
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
122
112
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
123
113
|
domain: import("zod").ZodString;
|
|
124
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
125
114
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
126
|
-
|
|
127
|
-
|
|
115
|
+
type: import("zod").ZodEnum<{
|
|
116
|
+
privacy_policy: "privacy_policy";
|
|
117
|
+
dpa: "dpa";
|
|
118
|
+
terms_and_conditions: "terms_and_conditions";
|
|
119
|
+
}>;
|
|
128
120
|
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
129
121
|
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
130
|
-
}
|
|
131
|
-
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
132
|
-
domain: string;
|
|
133
|
-
subjectId?: string | undefined;
|
|
134
|
-
metadata?: Record<string, unknown> | undefined;
|
|
135
|
-
policyId?: string | undefined;
|
|
136
|
-
externalSubjectId?: string | undefined;
|
|
137
|
-
preferences?: Record<string, boolean> | undefined;
|
|
138
|
-
}, {
|
|
139
|
-
type: "privacy_policy" | "dpa" | "terms_and_conditions";
|
|
140
|
-
domain: string;
|
|
141
|
-
subjectId?: string | undefined;
|
|
142
|
-
metadata?: Record<string, unknown> | undefined;
|
|
143
|
-
policyId?: string | undefined;
|
|
144
|
-
externalSubjectId?: string | undefined;
|
|
145
|
-
preferences?: Record<string, boolean> | undefined;
|
|
146
|
-
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
122
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
147
123
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
148
124
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
149
125
|
domain: import("zod").ZodString;
|
|
150
|
-
type: import("zod").ZodEnum<["cookie_banner", "privacy_policy", "dpa", "terms_and_conditions", "marketing_communications", "age_verification", "other"]>;
|
|
151
126
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
152
|
-
|
|
153
|
-
|
|
127
|
+
type: import("zod").ZodEnum<{
|
|
128
|
+
marketing_communications: "marketing_communications";
|
|
129
|
+
age_verification: "age_verification";
|
|
130
|
+
other: "other";
|
|
131
|
+
}>;
|
|
154
132
|
preferences: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
155
|
-
}
|
|
156
|
-
type: "marketing_communications" | "age_verification" | "other";
|
|
157
|
-
domain: string;
|
|
158
|
-
subjectId?: string | undefined;
|
|
159
|
-
metadata?: Record<string, unknown> | undefined;
|
|
160
|
-
externalSubjectId?: string | undefined;
|
|
161
|
-
preferences?: Record<string, boolean> | undefined;
|
|
162
|
-
}, {
|
|
163
|
-
type: "marketing_communications" | "age_verification" | "other";
|
|
164
|
-
domain: string;
|
|
165
|
-
subjectId?: string | undefined;
|
|
166
|
-
metadata?: Record<string, unknown> | undefined;
|
|
167
|
-
externalSubjectId?: string | undefined;
|
|
168
|
-
preferences?: Record<string, boolean> | undefined;
|
|
169
|
-
}>]>, import("zod").ZodObject<{
|
|
133
|
+
}, import("zod/v4/core").$strip>], "type">, import("zod").ZodObject<{
|
|
170
134
|
id: import("zod").ZodString;
|
|
171
135
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
172
136
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
137
|
domainId: import("zod").ZodString;
|
|
174
138
|
domain: import("zod").ZodString;
|
|
175
|
-
type: import("zod").ZodEnum<
|
|
139
|
+
type: import("zod").ZodEnum<{
|
|
140
|
+
cookie_banner: "cookie_banner";
|
|
141
|
+
privacy_policy: "privacy_policy";
|
|
142
|
+
dpa: "dpa";
|
|
143
|
+
terms_and_conditions: "terms_and_conditions";
|
|
144
|
+
marketing_communications: "marketing_communications";
|
|
145
|
+
age_verification: "age_verification";
|
|
146
|
+
other: "other";
|
|
147
|
+
}>;
|
|
176
148
|
status: import("zod").ZodString;
|
|
177
149
|
recordId: import("zod").ZodString;
|
|
178
150
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
179
151
|
givenAt: import("zod").ZodDate;
|
|
180
|
-
}, "strip", import("
|
|
181
|
-
status: string;
|
|
182
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
183
|
-
id: string;
|
|
184
|
-
domain: string;
|
|
185
|
-
domainId: string;
|
|
186
|
-
givenAt: Date;
|
|
187
|
-
recordId: string;
|
|
188
|
-
subjectId?: string | undefined;
|
|
189
|
-
metadata?: Record<string, unknown> | undefined;
|
|
190
|
-
externalSubjectId?: string | undefined;
|
|
191
|
-
}, {
|
|
192
|
-
status: string;
|
|
193
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
194
|
-
id: string;
|
|
195
|
-
domain: string;
|
|
196
|
-
domainId: string;
|
|
197
|
-
givenAt: Date;
|
|
198
|
-
recordId: string;
|
|
199
|
-
subjectId?: string | undefined;
|
|
200
|
-
metadata?: Record<string, unknown> | undefined;
|
|
201
|
-
externalSubjectId?: string | undefined;
|
|
202
|
-
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
152
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
203
153
|
INPUT_VALIDATION_FAILED: {
|
|
204
154
|
status: number;
|
|
205
|
-
message: string;
|
|
206
155
|
data: import("zod").ZodObject<{
|
|
207
|
-
formErrors: import("zod").ZodArray<import("zod").ZodString
|
|
208
|
-
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
fieldErrors: Record<string, string[]>;
|
|
212
|
-
}, {
|
|
213
|
-
formErrors: string[];
|
|
214
|
-
fieldErrors: Record<string, string[]>;
|
|
215
|
-
}>;
|
|
156
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString>;
|
|
157
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>;
|
|
158
|
+
}, import("zod/v4/core").$strip>;
|
|
159
|
+
error: string;
|
|
216
160
|
};
|
|
217
161
|
SUBJECT_CREATION_FAILED: {
|
|
218
162
|
status: number;
|
|
219
|
-
message: string;
|
|
220
163
|
data: import("zod").ZodObject<{
|
|
221
164
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
222
165
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
externalSubjectId?: string | undefined;
|
|
226
|
-
}, {
|
|
227
|
-
subjectId?: string | undefined;
|
|
228
|
-
externalSubjectId?: string | undefined;
|
|
229
|
-
}>;
|
|
166
|
+
}, import("zod/v4/core").$strip>;
|
|
167
|
+
error: string;
|
|
230
168
|
};
|
|
231
169
|
DOMAIN_CREATION_FAILED: {
|
|
232
170
|
status: number;
|
|
233
|
-
message: string;
|
|
234
171
|
data: import("zod").ZodObject<{
|
|
235
172
|
domain: import("zod").ZodString;
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
}, {
|
|
239
|
-
domain: string;
|
|
240
|
-
}>;
|
|
173
|
+
}, import("zod/v4/core").$strip>;
|
|
174
|
+
error: string;
|
|
241
175
|
};
|
|
242
176
|
POLICY_NOT_FOUND: {
|
|
243
177
|
status: number;
|
|
244
|
-
message: string;
|
|
245
178
|
data: import("zod").ZodObject<{
|
|
246
179
|
policyId: import("zod").ZodString;
|
|
247
180
|
type: import("zod").ZodString;
|
|
248
|
-
},
|
|
249
|
-
|
|
250
|
-
policyId: string;
|
|
251
|
-
}, {
|
|
252
|
-
type: string;
|
|
253
|
-
policyId: string;
|
|
254
|
-
}>;
|
|
181
|
+
}, import("zod/v4/core").$strip>;
|
|
182
|
+
error: string;
|
|
255
183
|
};
|
|
256
184
|
POLICY_INACTIVE: {
|
|
257
185
|
status: number;
|
|
258
|
-
message: string;
|
|
259
186
|
data: import("zod").ZodObject<{
|
|
260
187
|
policyId: import("zod").ZodString;
|
|
261
188
|
type: import("zod").ZodString;
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
policyId: string;
|
|
265
|
-
}, {
|
|
266
|
-
type: string;
|
|
267
|
-
policyId: string;
|
|
268
|
-
}>;
|
|
189
|
+
}, import("zod/v4/core").$strip>;
|
|
190
|
+
error: string;
|
|
269
191
|
};
|
|
270
192
|
POLICY_CREATION_FAILED: {
|
|
271
193
|
status: number;
|
|
272
|
-
message: string;
|
|
273
194
|
data: import("zod").ZodObject<{
|
|
274
195
|
type: import("zod").ZodString;
|
|
275
|
-
},
|
|
276
|
-
|
|
277
|
-
}, {
|
|
278
|
-
type: string;
|
|
279
|
-
}>;
|
|
196
|
+
}, import("zod/v4/core").$strip>;
|
|
197
|
+
error: string;
|
|
280
198
|
};
|
|
281
199
|
PURPOSE_CREATION_FAILED: {
|
|
282
200
|
status: number;
|
|
283
|
-
message: string;
|
|
284
201
|
data: import("zod").ZodObject<{
|
|
285
202
|
purposeCode: import("zod").ZodString;
|
|
286
|
-
},
|
|
287
|
-
|
|
288
|
-
}, {
|
|
289
|
-
purposeCode: string;
|
|
290
|
-
}>;
|
|
203
|
+
}, import("zod/v4/core").$strip>;
|
|
204
|
+
error: string;
|
|
291
205
|
};
|
|
292
206
|
CONSENT_CREATION_FAILED: {
|
|
293
207
|
status: number;
|
|
294
|
-
message: string;
|
|
295
208
|
data: import("zod").ZodObject<{
|
|
296
209
|
subjectId: import("zod").ZodString;
|
|
297
210
|
domain: import("zod").ZodString;
|
|
298
|
-
},
|
|
299
|
-
|
|
300
|
-
domain: string;
|
|
301
|
-
}, {
|
|
302
|
-
subjectId: string;
|
|
303
|
-
domain: string;
|
|
304
|
-
}>;
|
|
211
|
+
}, import("zod/v4/core").$strip>;
|
|
212
|
+
error: string;
|
|
305
213
|
};
|
|
306
214
|
}>>, Record<never, never>>;
|
|
307
215
|
showBanner: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
308
216
|
showConsentBanner: import("zod").ZodBoolean;
|
|
309
217
|
jurisdiction: import("zod").ZodObject<{
|
|
310
|
-
code: import("zod").ZodEnum<
|
|
218
|
+
code: import("zod").ZodEnum<{
|
|
219
|
+
GDPR: "GDPR";
|
|
220
|
+
CH: "CH";
|
|
221
|
+
BR: "BR";
|
|
222
|
+
PIPEDA: "PIPEDA";
|
|
223
|
+
AU: "AU";
|
|
224
|
+
APPI: "APPI";
|
|
225
|
+
PIPA: "PIPA";
|
|
226
|
+
NONE: "NONE";
|
|
227
|
+
}>;
|
|
311
228
|
message: import("zod").ZodString;
|
|
312
|
-
},
|
|
313
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
314
|
-
message: string;
|
|
315
|
-
}, {
|
|
316
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
317
|
-
message: string;
|
|
318
|
-
}>;
|
|
229
|
+
}, import("zod/v4/core").$strip>;
|
|
319
230
|
location: import("zod").ZodObject<{
|
|
320
231
|
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
321
232
|
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
322
|
-
},
|
|
323
|
-
countryCode: string | null;
|
|
324
|
-
regionCode: string | null;
|
|
325
|
-
}, {
|
|
326
|
-
countryCode: string | null;
|
|
327
|
-
regionCode: string | null;
|
|
328
|
-
}>;
|
|
233
|
+
}, import("zod/v4/core").$strip>;
|
|
329
234
|
translations: import("zod").ZodObject<{
|
|
330
235
|
language: import("zod").ZodString;
|
|
331
236
|
translations: import("zod").ZodObject<{
|
|
@@ -334,616 +239,151 @@ export declare const c15tInstance: <PluginTypes extends C15TPlugin[] = C15TPlugi
|
|
|
334
239
|
rejectAll: import("zod").ZodString;
|
|
335
240
|
customize: import("zod").ZodString;
|
|
336
241
|
save: import("zod").ZodString;
|
|
337
|
-
},
|
|
338
|
-
acceptAll: string;
|
|
339
|
-
rejectAll: string;
|
|
340
|
-
customize: string;
|
|
341
|
-
save: string;
|
|
342
|
-
}, {
|
|
343
|
-
acceptAll: string;
|
|
344
|
-
rejectAll: string;
|
|
345
|
-
customize: string;
|
|
346
|
-
save: string;
|
|
347
|
-
}>;
|
|
242
|
+
}, import("zod/v4/core").$strip>;
|
|
348
243
|
cookieBanner: import("zod").ZodObject<{
|
|
349
244
|
title: import("zod").ZodString;
|
|
350
245
|
description: import("zod").ZodString;
|
|
351
|
-
},
|
|
352
|
-
description: string;
|
|
353
|
-
title: string;
|
|
354
|
-
}, {
|
|
355
|
-
description: string;
|
|
356
|
-
title: string;
|
|
357
|
-
}>;
|
|
246
|
+
}, import("zod/v4/core").$strip>;
|
|
358
247
|
consentManagerDialog: import("zod").ZodObject<{
|
|
359
248
|
title: import("zod").ZodString;
|
|
360
249
|
description: import("zod").ZodString;
|
|
361
|
-
},
|
|
362
|
-
description: string;
|
|
363
|
-
title: string;
|
|
364
|
-
}, {
|
|
365
|
-
description: string;
|
|
366
|
-
title: string;
|
|
367
|
-
}>;
|
|
250
|
+
}, import("zod/v4/core").$strip>;
|
|
368
251
|
consentTypes: import("zod").ZodObject<{
|
|
369
252
|
experience: import("zod").ZodObject<{
|
|
370
253
|
title: import("zod").ZodString;
|
|
371
254
|
description: import("zod").ZodString;
|
|
372
|
-
},
|
|
373
|
-
description: string;
|
|
374
|
-
title: string;
|
|
375
|
-
}, {
|
|
376
|
-
description: string;
|
|
377
|
-
title: string;
|
|
378
|
-
}>;
|
|
255
|
+
}, import("zod/v4/core").$strip>;
|
|
379
256
|
functionality: import("zod").ZodObject<{
|
|
380
257
|
title: import("zod").ZodString;
|
|
381
258
|
description: import("zod").ZodString;
|
|
382
|
-
},
|
|
383
|
-
description: string;
|
|
384
|
-
title: string;
|
|
385
|
-
}, {
|
|
386
|
-
description: string;
|
|
387
|
-
title: string;
|
|
388
|
-
}>;
|
|
259
|
+
}, import("zod/v4/core").$strip>;
|
|
389
260
|
marketing: import("zod").ZodObject<{
|
|
390
261
|
title: import("zod").ZodString;
|
|
391
262
|
description: import("zod").ZodString;
|
|
392
|
-
},
|
|
393
|
-
description: string;
|
|
394
|
-
title: string;
|
|
395
|
-
}, {
|
|
396
|
-
description: string;
|
|
397
|
-
title: string;
|
|
398
|
-
}>;
|
|
263
|
+
}, import("zod/v4/core").$strip>;
|
|
399
264
|
measurement: import("zod").ZodObject<{
|
|
400
265
|
title: import("zod").ZodString;
|
|
401
266
|
description: import("zod").ZodString;
|
|
402
|
-
},
|
|
403
|
-
description: string;
|
|
404
|
-
title: string;
|
|
405
|
-
}, {
|
|
406
|
-
description: string;
|
|
407
|
-
title: string;
|
|
408
|
-
}>;
|
|
267
|
+
}, import("zod/v4/core").$strip>;
|
|
409
268
|
necessary: import("zod").ZodObject<{
|
|
410
269
|
title: import("zod").ZodString;
|
|
411
270
|
description: import("zod").ZodString;
|
|
412
|
-
},
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
experience: {
|
|
421
|
-
description: string;
|
|
422
|
-
title: string;
|
|
423
|
-
};
|
|
424
|
-
functionality: {
|
|
425
|
-
description: string;
|
|
426
|
-
title: string;
|
|
427
|
-
};
|
|
428
|
-
marketing: {
|
|
429
|
-
description: string;
|
|
430
|
-
title: string;
|
|
431
|
-
};
|
|
432
|
-
measurement: {
|
|
433
|
-
description: string;
|
|
434
|
-
title: string;
|
|
435
|
-
};
|
|
436
|
-
necessary: {
|
|
437
|
-
description: string;
|
|
438
|
-
title: string;
|
|
439
|
-
};
|
|
440
|
-
}, {
|
|
441
|
-
experience: {
|
|
442
|
-
description: string;
|
|
443
|
-
title: string;
|
|
444
|
-
};
|
|
445
|
-
functionality: {
|
|
446
|
-
description: string;
|
|
447
|
-
title: string;
|
|
448
|
-
};
|
|
449
|
-
marketing: {
|
|
450
|
-
description: string;
|
|
451
|
-
title: string;
|
|
452
|
-
};
|
|
453
|
-
measurement: {
|
|
454
|
-
description: string;
|
|
455
|
-
title: string;
|
|
456
|
-
};
|
|
457
|
-
necessary: {
|
|
458
|
-
description: string;
|
|
459
|
-
title: string;
|
|
460
|
-
};
|
|
461
|
-
}>;
|
|
462
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
463
|
-
common: {
|
|
464
|
-
acceptAll: string;
|
|
465
|
-
rejectAll: string;
|
|
466
|
-
customize: string;
|
|
467
|
-
save: string;
|
|
468
|
-
};
|
|
469
|
-
cookieBanner: {
|
|
470
|
-
description: string;
|
|
471
|
-
title: string;
|
|
472
|
-
};
|
|
473
|
-
consentManagerDialog: {
|
|
474
|
-
description: string;
|
|
475
|
-
title: string;
|
|
476
|
-
};
|
|
477
|
-
consentTypes: {
|
|
478
|
-
experience: {
|
|
479
|
-
description: string;
|
|
480
|
-
title: string;
|
|
481
|
-
};
|
|
482
|
-
functionality: {
|
|
483
|
-
description: string;
|
|
484
|
-
title: string;
|
|
485
|
-
};
|
|
486
|
-
marketing: {
|
|
487
|
-
description: string;
|
|
488
|
-
title: string;
|
|
489
|
-
};
|
|
490
|
-
measurement: {
|
|
491
|
-
description: string;
|
|
492
|
-
title: string;
|
|
493
|
-
};
|
|
494
|
-
necessary: {
|
|
495
|
-
description: string;
|
|
496
|
-
title: string;
|
|
497
|
-
};
|
|
498
|
-
};
|
|
499
|
-
}, {
|
|
500
|
-
common: {
|
|
501
|
-
acceptAll: string;
|
|
502
|
-
rejectAll: string;
|
|
503
|
-
customize: string;
|
|
504
|
-
save: string;
|
|
505
|
-
};
|
|
506
|
-
cookieBanner: {
|
|
507
|
-
description: string;
|
|
508
|
-
title: string;
|
|
509
|
-
};
|
|
510
|
-
consentManagerDialog: {
|
|
511
|
-
description: string;
|
|
512
|
-
title: string;
|
|
513
|
-
};
|
|
514
|
-
consentTypes: {
|
|
515
|
-
experience: {
|
|
516
|
-
description: string;
|
|
517
|
-
title: string;
|
|
518
|
-
};
|
|
519
|
-
functionality: {
|
|
520
|
-
description: string;
|
|
521
|
-
title: string;
|
|
522
|
-
};
|
|
523
|
-
marketing: {
|
|
524
|
-
description: string;
|
|
525
|
-
title: string;
|
|
526
|
-
};
|
|
527
|
-
measurement: {
|
|
528
|
-
description: string;
|
|
529
|
-
title: string;
|
|
530
|
-
};
|
|
531
|
-
necessary: {
|
|
532
|
-
description: string;
|
|
533
|
-
title: string;
|
|
534
|
-
};
|
|
535
|
-
};
|
|
536
|
-
}>;
|
|
537
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
538
|
-
translations: {
|
|
539
|
-
common: {
|
|
540
|
-
acceptAll: string;
|
|
541
|
-
rejectAll: string;
|
|
542
|
-
customize: string;
|
|
543
|
-
save: string;
|
|
544
|
-
};
|
|
545
|
-
cookieBanner: {
|
|
546
|
-
description: string;
|
|
547
|
-
title: string;
|
|
548
|
-
};
|
|
549
|
-
consentManagerDialog: {
|
|
550
|
-
description: string;
|
|
551
|
-
title: string;
|
|
552
|
-
};
|
|
553
|
-
consentTypes: {
|
|
554
|
-
experience: {
|
|
555
|
-
description: string;
|
|
556
|
-
title: string;
|
|
557
|
-
};
|
|
558
|
-
functionality: {
|
|
559
|
-
description: string;
|
|
560
|
-
title: string;
|
|
561
|
-
};
|
|
562
|
-
marketing: {
|
|
563
|
-
description: string;
|
|
564
|
-
title: string;
|
|
565
|
-
};
|
|
566
|
-
measurement: {
|
|
567
|
-
description: string;
|
|
568
|
-
title: string;
|
|
569
|
-
};
|
|
570
|
-
necessary: {
|
|
571
|
-
description: string;
|
|
572
|
-
title: string;
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
};
|
|
576
|
-
language: string;
|
|
577
|
-
}, {
|
|
578
|
-
translations: {
|
|
579
|
-
common: {
|
|
580
|
-
acceptAll: string;
|
|
581
|
-
rejectAll: string;
|
|
582
|
-
customize: string;
|
|
583
|
-
save: string;
|
|
584
|
-
};
|
|
585
|
-
cookieBanner: {
|
|
586
|
-
description: string;
|
|
587
|
-
title: string;
|
|
588
|
-
};
|
|
589
|
-
consentManagerDialog: {
|
|
590
|
-
description: string;
|
|
591
|
-
title: string;
|
|
592
|
-
};
|
|
593
|
-
consentTypes: {
|
|
594
|
-
experience: {
|
|
595
|
-
description: string;
|
|
596
|
-
title: string;
|
|
597
|
-
};
|
|
598
|
-
functionality: {
|
|
599
|
-
description: string;
|
|
600
|
-
title: string;
|
|
601
|
-
};
|
|
602
|
-
marketing: {
|
|
603
|
-
description: string;
|
|
604
|
-
title: string;
|
|
605
|
-
};
|
|
606
|
-
measurement: {
|
|
607
|
-
description: string;
|
|
608
|
-
title: string;
|
|
609
|
-
};
|
|
610
|
-
necessary: {
|
|
611
|
-
description: string;
|
|
612
|
-
title: string;
|
|
613
|
-
};
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
|
-
language: string;
|
|
271
|
+
}, import("zod/v4/core").$strip>;
|
|
272
|
+
}, import("zod/v4/core").$strip>;
|
|
273
|
+
}, import("zod/v4/core").$strip>;
|
|
274
|
+
}, import("zod/v4/core").$strip>;
|
|
275
|
+
branding: import("zod").ZodEnum<{
|
|
276
|
+
c15t: "c15t";
|
|
277
|
+
consent: "consent";
|
|
278
|
+
none: "none";
|
|
617
279
|
}>;
|
|
618
|
-
}, "strip
|
|
619
|
-
showConsentBanner: boolean;
|
|
620
|
-
jurisdiction: {
|
|
621
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
622
|
-
message: string;
|
|
623
|
-
};
|
|
624
|
-
location: {
|
|
625
|
-
countryCode: string | null;
|
|
626
|
-
regionCode: string | null;
|
|
627
|
-
};
|
|
628
|
-
translations: {
|
|
629
|
-
translations: {
|
|
630
|
-
common: {
|
|
631
|
-
acceptAll: string;
|
|
632
|
-
rejectAll: string;
|
|
633
|
-
customize: string;
|
|
634
|
-
save: string;
|
|
635
|
-
};
|
|
636
|
-
cookieBanner: {
|
|
637
|
-
description: string;
|
|
638
|
-
title: string;
|
|
639
|
-
};
|
|
640
|
-
consentManagerDialog: {
|
|
641
|
-
description: string;
|
|
642
|
-
title: string;
|
|
643
|
-
};
|
|
644
|
-
consentTypes: {
|
|
645
|
-
experience: {
|
|
646
|
-
description: string;
|
|
647
|
-
title: string;
|
|
648
|
-
};
|
|
649
|
-
functionality: {
|
|
650
|
-
description: string;
|
|
651
|
-
title: string;
|
|
652
|
-
};
|
|
653
|
-
marketing: {
|
|
654
|
-
description: string;
|
|
655
|
-
title: string;
|
|
656
|
-
};
|
|
657
|
-
measurement: {
|
|
658
|
-
description: string;
|
|
659
|
-
title: string;
|
|
660
|
-
};
|
|
661
|
-
necessary: {
|
|
662
|
-
description: string;
|
|
663
|
-
title: string;
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
};
|
|
667
|
-
language: string;
|
|
668
|
-
};
|
|
669
|
-
}, {
|
|
670
|
-
showConsentBanner: boolean;
|
|
671
|
-
jurisdiction: {
|
|
672
|
-
code: "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "NONE";
|
|
673
|
-
message: string;
|
|
674
|
-
};
|
|
675
|
-
location: {
|
|
676
|
-
countryCode: string | null;
|
|
677
|
-
regionCode: string | null;
|
|
678
|
-
};
|
|
679
|
-
translations: {
|
|
680
|
-
translations: {
|
|
681
|
-
common: {
|
|
682
|
-
acceptAll: string;
|
|
683
|
-
rejectAll: string;
|
|
684
|
-
customize: string;
|
|
685
|
-
save: string;
|
|
686
|
-
};
|
|
687
|
-
cookieBanner: {
|
|
688
|
-
description: string;
|
|
689
|
-
title: string;
|
|
690
|
-
};
|
|
691
|
-
consentManagerDialog: {
|
|
692
|
-
description: string;
|
|
693
|
-
title: string;
|
|
694
|
-
};
|
|
695
|
-
consentTypes: {
|
|
696
|
-
experience: {
|
|
697
|
-
description: string;
|
|
698
|
-
title: string;
|
|
699
|
-
};
|
|
700
|
-
functionality: {
|
|
701
|
-
description: string;
|
|
702
|
-
title: string;
|
|
703
|
-
};
|
|
704
|
-
marketing: {
|
|
705
|
-
description: string;
|
|
706
|
-
title: string;
|
|
707
|
-
};
|
|
708
|
-
measurement: {
|
|
709
|
-
description: string;
|
|
710
|
-
title: string;
|
|
711
|
-
};
|
|
712
|
-
necessary: {
|
|
713
|
-
description: string;
|
|
714
|
-
title: string;
|
|
715
|
-
};
|
|
716
|
-
};
|
|
717
|
-
};
|
|
718
|
-
language: string;
|
|
719
|
-
};
|
|
720
|
-
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
280
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
721
281
|
verify: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, import("zod").ZodObject<{
|
|
722
282
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
723
283
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
724
284
|
domain: import("zod").ZodString;
|
|
725
|
-
type: import("zod").ZodEnum<
|
|
285
|
+
type: import("zod").ZodEnum<{
|
|
286
|
+
cookie_banner: "cookie_banner";
|
|
287
|
+
privacy_policy: "privacy_policy";
|
|
288
|
+
dpa: "dpa";
|
|
289
|
+
terms_and_conditions: "terms_and_conditions";
|
|
290
|
+
marketing_communications: "marketing_communications";
|
|
291
|
+
age_verification: "age_verification";
|
|
292
|
+
other: "other";
|
|
293
|
+
}>;
|
|
726
294
|
policyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
727
|
-
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
728
|
-
}, "strict
|
|
729
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
730
|
-
domain: string;
|
|
731
|
-
subjectId?: string | undefined;
|
|
732
|
-
policyId?: string | undefined;
|
|
733
|
-
externalSubjectId?: string | undefined;
|
|
734
|
-
preferences?: string[] | undefined;
|
|
735
|
-
}, {
|
|
736
|
-
type: "cookie_banner" | "privacy_policy" | "dpa" | "terms_and_conditions" | "marketing_communications" | "age_verification" | "other";
|
|
737
|
-
domain: string;
|
|
738
|
-
subjectId?: string | undefined;
|
|
739
|
-
policyId?: string | undefined;
|
|
740
|
-
externalSubjectId?: string | undefined;
|
|
741
|
-
preferences?: string[] | undefined;
|
|
742
|
-
}>, import("zod").ZodObject<{
|
|
295
|
+
preferences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
296
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
743
297
|
isValid: import("zod").ZodBoolean;
|
|
744
|
-
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
298
|
+
reasons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
745
299
|
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
746
300
|
id: import("zod").ZodString;
|
|
747
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString
|
|
748
|
-
},
|
|
749
|
-
|
|
750
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
751
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
752
|
-
id: import("zod").ZodString;
|
|
753
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
754
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
755
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
756
|
-
isValid: boolean;
|
|
757
|
-
consent?: import("zod").objectOutputType<{
|
|
758
|
-
id: import("zod").ZodString;
|
|
759
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
760
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
761
|
-
reasons?: string[] | undefined;
|
|
762
|
-
}, {
|
|
763
|
-
isValid: boolean;
|
|
764
|
-
consent?: import("zod").objectInputType<{
|
|
765
|
-
id: import("zod").ZodString;
|
|
766
|
-
purposeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
767
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
768
|
-
reasons?: string[] | undefined;
|
|
769
|
-
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
301
|
+
purposeIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
302
|
+
}, import("zod/v4/core").$loose>>;
|
|
303
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
770
304
|
INPUT_VALIDATION_FAILED: {
|
|
771
305
|
status: number;
|
|
772
|
-
message: string;
|
|
773
306
|
data: import("zod").ZodObject<{
|
|
774
|
-
formErrors: import("zod").ZodArray<import("zod").ZodString
|
|
775
|
-
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString
|
|
776
|
-
},
|
|
777
|
-
|
|
778
|
-
fieldErrors: Record<string, string[] | undefined>;
|
|
779
|
-
}, {
|
|
780
|
-
formErrors: string[];
|
|
781
|
-
fieldErrors: Record<string, string[] | undefined>;
|
|
782
|
-
}>;
|
|
307
|
+
formErrors: import("zod").ZodArray<import("zod").ZodString>;
|
|
308
|
+
fieldErrors: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
309
|
+
}, import("zod/v4/core").$strip>;
|
|
310
|
+
error: string;
|
|
783
311
|
};
|
|
784
312
|
SUBJECT_NOT_FOUND: {
|
|
785
313
|
status: number;
|
|
786
|
-
message: string;
|
|
787
314
|
data: import("zod").ZodObject<{
|
|
788
315
|
subjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
789
316
|
externalSubjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
790
|
-
},
|
|
791
|
-
|
|
792
|
-
externalSubjectId?: string | undefined;
|
|
793
|
-
}, {
|
|
794
|
-
subjectId?: string | undefined;
|
|
795
|
-
externalSubjectId?: string | undefined;
|
|
796
|
-
}>;
|
|
317
|
+
}, import("zod/v4/core").$strip>;
|
|
318
|
+
error: string;
|
|
797
319
|
};
|
|
798
320
|
DOMAIN_NOT_FOUND: {
|
|
799
321
|
status: number;
|
|
800
|
-
message: string;
|
|
801
322
|
data: import("zod").ZodObject<{
|
|
802
323
|
domain: import("zod").ZodString;
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
}, {
|
|
806
|
-
domain: string;
|
|
807
|
-
}>;
|
|
324
|
+
}, import("zod/v4/core").$strip>;
|
|
325
|
+
error: string;
|
|
808
326
|
};
|
|
809
327
|
POLICY_NOT_FOUND: {
|
|
810
328
|
status: number;
|
|
811
|
-
message: string;
|
|
812
329
|
data: import("zod").ZodObject<{
|
|
813
330
|
policyId: import("zod").ZodString;
|
|
814
331
|
type: import("zod").ZodString;
|
|
815
|
-
},
|
|
816
|
-
|
|
817
|
-
policyId: string;
|
|
818
|
-
}, {
|
|
819
|
-
type: string;
|
|
820
|
-
policyId: string;
|
|
821
|
-
}>;
|
|
332
|
+
}, import("zod/v4/core").$strip>;
|
|
333
|
+
error: string;
|
|
822
334
|
};
|
|
823
335
|
PURPOSES_NOT_FOUND: {
|
|
824
336
|
status: number;
|
|
825
|
-
message: string;
|
|
826
337
|
data: import("zod").ZodObject<{
|
|
827
|
-
preferences: import("zod").ZodArray<import("zod").ZodString
|
|
828
|
-
foundPurposes: import("zod").ZodArray<import("zod").ZodString
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
foundPurposes: string[];
|
|
832
|
-
}, {
|
|
833
|
-
preferences: string[];
|
|
834
|
-
foundPurposes: string[];
|
|
835
|
-
}>;
|
|
338
|
+
preferences: import("zod").ZodArray<import("zod").ZodString>;
|
|
339
|
+
foundPurposes: import("zod").ZodArray<import("zod").ZodString>;
|
|
340
|
+
}, import("zod/v4/core").$strip>;
|
|
341
|
+
error: string;
|
|
836
342
|
};
|
|
837
343
|
COOKIE_BANNER_PREFERENCES_REQUIRED: {
|
|
838
344
|
status: number;
|
|
839
|
-
message: string;
|
|
840
345
|
data: import("zod").ZodObject<{
|
|
841
346
|
type: import("zod").ZodLiteral<"cookie_banner">;
|
|
842
|
-
},
|
|
843
|
-
|
|
844
|
-
}, {
|
|
845
|
-
type: "cookie_banner";
|
|
846
|
-
}>;
|
|
347
|
+
}, import("zod/v4/core").$strip>;
|
|
348
|
+
error: string;
|
|
847
349
|
};
|
|
848
350
|
NO_CONSENT_FOUND: {
|
|
849
351
|
status: number;
|
|
850
|
-
message: string;
|
|
851
352
|
data: import("zod").ZodObject<{
|
|
852
353
|
policyId: import("zod").ZodString;
|
|
853
354
|
subjectId: import("zod").ZodString;
|
|
854
355
|
domainId: import("zod").ZodString;
|
|
855
|
-
},
|
|
856
|
-
|
|
857
|
-
domainId: string;
|
|
858
|
-
policyId: string;
|
|
859
|
-
}, {
|
|
860
|
-
subjectId: string;
|
|
861
|
-
domainId: string;
|
|
862
|
-
policyId: string;
|
|
863
|
-
}>;
|
|
356
|
+
}, import("zod/v4/core").$strip>;
|
|
357
|
+
error: string;
|
|
864
358
|
};
|
|
865
359
|
}>>, Record<never, never>>;
|
|
866
360
|
};
|
|
867
361
|
meta: {
|
|
868
362
|
status: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
869
|
-
status: import("zod").ZodEnum<
|
|
363
|
+
status: import("zod").ZodEnum<{
|
|
364
|
+
error: "error";
|
|
365
|
+
ok: "ok";
|
|
366
|
+
}>;
|
|
870
367
|
version: import("zod").ZodString;
|
|
871
368
|
timestamp: import("zod").ZodDate;
|
|
872
369
|
storage: import("zod").ZodObject<{
|
|
873
370
|
type: import("zod").ZodString;
|
|
874
371
|
available: import("zod").ZodBoolean;
|
|
875
|
-
},
|
|
876
|
-
type: string;
|
|
877
|
-
available: boolean;
|
|
878
|
-
}, {
|
|
879
|
-
type: string;
|
|
880
|
-
available: boolean;
|
|
881
|
-
}>;
|
|
372
|
+
}, import("zod/v4/core").$strip>;
|
|
882
373
|
client: import("zod").ZodObject<{
|
|
883
374
|
ip: import("zod").ZodNullable<import("zod").ZodString>;
|
|
884
375
|
userAgent: import("zod").ZodNullable<import("zod").ZodString>;
|
|
885
376
|
region: import("zod").ZodObject<{
|
|
886
377
|
countryCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
887
378
|
regionCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
888
|
-
},
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
}, {
|
|
892
|
-
countryCode: string | null;
|
|
893
|
-
regionCode: string | null;
|
|
894
|
-
}>;
|
|
895
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
896
|
-
userAgent: string | null;
|
|
897
|
-
ip: string | null;
|
|
898
|
-
region: {
|
|
899
|
-
countryCode: string | null;
|
|
900
|
-
regionCode: string | null;
|
|
901
|
-
};
|
|
902
|
-
}, {
|
|
903
|
-
userAgent: string | null;
|
|
904
|
-
ip: string | null;
|
|
905
|
-
region: {
|
|
906
|
-
countryCode: string | null;
|
|
907
|
-
regionCode: string | null;
|
|
908
|
-
};
|
|
909
|
-
}>;
|
|
910
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
911
|
-
storage: {
|
|
912
|
-
type: string;
|
|
913
|
-
available: boolean;
|
|
914
|
-
};
|
|
915
|
-
status: "error" | "ok";
|
|
916
|
-
version: string;
|
|
917
|
-
timestamp: Date;
|
|
918
|
-
client: {
|
|
919
|
-
userAgent: string | null;
|
|
920
|
-
ip: string | null;
|
|
921
|
-
region: {
|
|
922
|
-
countryCode: string | null;
|
|
923
|
-
regionCode: string | null;
|
|
924
|
-
};
|
|
925
|
-
};
|
|
926
|
-
}, {
|
|
927
|
-
storage: {
|
|
928
|
-
type: string;
|
|
929
|
-
available: boolean;
|
|
930
|
-
};
|
|
931
|
-
status: "error" | "ok";
|
|
932
|
-
version: string;
|
|
933
|
-
timestamp: Date;
|
|
934
|
-
client: {
|
|
935
|
-
userAgent: string | null;
|
|
936
|
-
ip: string | null;
|
|
937
|
-
region: {
|
|
938
|
-
countryCode: string | null;
|
|
939
|
-
regionCode: string | null;
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
}>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
379
|
+
}, import("zod/v4/core").$strip>;
|
|
380
|
+
}, import("zod/v4/core").$strip>;
|
|
381
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
943
382
|
};
|
|
944
383
|
};
|
|
945
384
|
handler: (request: Request, ctxOverride?: DeepPartial<C15TContext>) => Promise<Response>;
|
|
946
385
|
};
|
|
947
386
|
export type { C15TPlugin, C15TOptions, C15TContext };
|
|
948
387
|
export type { ContractsInputs, ContractsOutputs } from './contracts';
|
|
388
|
+
export { version } from './version';
|
|
949
389
|
//# sourceMappingURL=core.d.ts.map
|