@epistola.app/epistola-client 2.0.0-beta.3 → 2.0.0-rc.1
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/CHANGELOG.md +35 -20
- package/README.md +18 -9
- package/dist/collect/resultCollector.d.ts.map +1 -1
- package/dist/collect/resultCollector.js +3 -1
- package/dist/collect/resultCollector.js.map +1 -1
- package/dist/error/problemDetailException.d.ts +24 -3
- package/dist/error/problemDetailException.d.ts.map +1 -1
- package/dist/error/problemDetailException.js +29 -2
- package/dist/error/problemDetailException.js.map +1 -1
- package/dist/generated/api/apis/AttributesApi.d.ts +2 -2
- package/dist/generated/api/apis/AttributesApi.js +2 -2
- package/dist/generated/api/apis/CatalogsApi.d.ts +14 -6
- package/dist/generated/api/apis/CatalogsApi.d.ts.map +1 -1
- package/dist/generated/api/apis/CatalogsApi.js +13 -7
- package/dist/generated/api/apis/CatalogsApi.js.map +1 -1
- package/dist/generated/api/apis/CodeListsApi.d.ts +2 -2
- package/dist/generated/api/apis/CodeListsApi.js +2 -2
- package/dist/generated/api/apis/ConsumersApi.d.ts +4 -4
- package/dist/generated/api/apis/ConsumersApi.js +4 -4
- package/dist/generated/api/apis/EnvironmentsApi.d.ts +2 -2
- package/dist/generated/api/apis/EnvironmentsApi.js +2 -2
- package/dist/generated/api/apis/FontsApi.d.ts +2 -2
- package/dist/generated/api/apis/FontsApi.js +2 -2
- package/dist/generated/api/apis/GenerationApi.d.ts +6 -6
- package/dist/generated/api/apis/GenerationApi.js +7 -7
- package/dist/generated/api/apis/GenerationApi.js.map +1 -1
- package/dist/generated/api/apis/ImagesApi.d.ts +2 -2
- package/dist/generated/api/apis/ImagesApi.js +2 -2
- package/dist/generated/api/apis/QualityProfilesApi.d.ts +2 -2
- package/dist/generated/api/apis/QualityProfilesApi.js +2 -2
- package/dist/generated/api/apis/SearchApi.d.ts +2 -2
- package/dist/generated/api/apis/SearchApi.js +2 -2
- package/dist/generated/api/apis/StencilsApi.d.ts +2 -2
- package/dist/generated/api/apis/StencilsApi.js +2 -2
- package/dist/generated/api/apis/SystemApi.d.ts +2 -2
- package/dist/generated/api/apis/SystemApi.js +2 -2
- package/dist/generated/api/apis/TemplatesApi.d.ts +2 -2
- package/dist/generated/api/apis/TemplatesApi.js +2 -2
- package/dist/generated/api/apis/TenantsApi.d.ts +2 -2
- package/dist/generated/api/apis/TenantsApi.js +2 -2
- package/dist/generated/api/apis/ThemesApi.d.ts +2 -2
- package/dist/generated/api/apis/ThemesApi.js +2 -2
- package/dist/generated/api/apis/VariantsApi.d.ts +2 -2
- package/dist/generated/api/apis/VariantsApi.js +2 -2
- package/dist/generated/api/models/AmbiguousVariantProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/AmbiguousVariantProblemDetail.js +2 -2
- package/dist/generated/api/models/ApproveConsumerRequest.d.ts +2 -2
- package/dist/generated/api/models/ApproveConsumerRequest.js +2 -2
- package/dist/generated/api/models/AttributeDto.d.ts +2 -2
- package/dist/generated/api/models/AttributeDto.js +2 -2
- package/dist/generated/api/models/AttributeListResponse.d.ts +2 -2
- package/dist/generated/api/models/AttributeListResponse.js +2 -2
- package/dist/generated/api/models/AvailableCatalogReleases.d.ts +11 -5
- package/dist/generated/api/models/AvailableCatalogReleases.d.ts.map +1 -1
- package/dist/generated/api/models/AvailableCatalogReleases.js +7 -2
- package/dist/generated/api/models/AvailableCatalogReleases.js.map +1 -1
- package/dist/generated/api/models/AvailableReleaseDependencyDto.d.ts +2 -2
- package/dist/generated/api/models/AvailableReleaseDependencyDto.js +2 -2
- package/dist/generated/api/models/AvailableReleaseDto.d.ts +2 -2
- package/dist/generated/api/models/AvailableReleaseDto.js +2 -2
- package/dist/generated/api/models/BatchGenerationItem.d.ts +2 -2
- package/dist/generated/api/models/BatchGenerationItem.js +2 -2
- package/dist/generated/api/models/BehindReleaseDto.d.ts +2 -2
- package/dist/generated/api/models/BehindReleaseDto.js +2 -2
- package/dist/generated/api/models/BlockStylePreset.d.ts +2 -2
- package/dist/generated/api/models/BlockStylePreset.js +2 -2
- package/dist/generated/api/models/CatalogChangesDto.d.ts +2 -2
- package/dist/generated/api/models/CatalogChangesDto.js +2 -2
- package/dist/generated/api/models/CatalogDependencyDto.d.ts +2 -2
- package/dist/generated/api/models/CatalogDependencyDto.js +2 -2
- package/dist/generated/api/models/CatalogDependencyListResponse.d.ts +2 -2
- package/dist/generated/api/models/CatalogDependencyListResponse.js +2 -2
- package/dist/generated/api/models/CatalogDependencyRequirement.d.ts +2 -2
- package/dist/generated/api/models/CatalogDependencyRequirement.js +2 -2
- package/dist/generated/api/models/CatalogDraftInUseProblemDetail.d.ts +70 -0
- package/dist/generated/api/models/CatalogDraftInUseProblemDetail.d.ts.map +1 -0
- package/dist/generated/api/models/CatalogDraftInUseProblemDetail.js +64 -0
- package/dist/generated/api/models/CatalogDraftInUseProblemDetail.js.map +1 -0
- package/dist/generated/api/models/CatalogDraftMergePreview.d.ts +2 -2
- package/dist/generated/api/models/CatalogDraftMergePreview.js +2 -2
- package/dist/generated/api/models/CatalogDraftMergeResource.d.ts +2 -2
- package/dist/generated/api/models/CatalogDraftMergeResource.js +2 -2
- package/dist/generated/api/models/CatalogDraftMergeSides.d.ts +2 -2
- package/dist/generated/api/models/CatalogDraftMergeSides.js +2 -2
- package/dist/generated/api/models/CatalogDraftRefDto.d.ts +51 -0
- package/dist/generated/api/models/CatalogDraftRefDto.d.ts.map +1 -0
- package/dist/generated/api/models/CatalogDraftRefDto.js +61 -0
- package/dist/generated/api/models/CatalogDraftRefDto.js.map +1 -0
- package/dist/generated/api/models/CatalogDraftReleasePreview.d.ts +2 -2
- package/dist/generated/api/models/CatalogDraftReleasePreview.js +2 -2
- package/dist/generated/api/models/CatalogDto.d.ts +2 -2
- package/dist/generated/api/models/CatalogDto.js +2 -2
- package/dist/generated/api/models/CatalogLevelChangeDto.d.ts +2 -2
- package/dist/generated/api/models/CatalogLevelChangeDto.js +2 -2
- package/dist/generated/api/models/CatalogListResponse.d.ts +2 -2
- package/dist/generated/api/models/CatalogListResponse.js +2 -2
- package/dist/generated/api/models/CatalogMergeBaseRef.d.ts +2 -2
- package/dist/generated/api/models/CatalogMergeBaseRef.js +2 -2
- package/dist/generated/api/models/CatalogMergeOutcome.d.ts +2 -2
- package/dist/generated/api/models/CatalogMergeOutcome.js +2 -2
- package/dist/generated/api/models/CatalogMergeSide.d.ts +2 -2
- package/dist/generated/api/models/CatalogMergeSide.js +2 -2
- package/dist/generated/api/models/CatalogPresetDto.d.ts +2 -2
- package/dist/generated/api/models/CatalogPresetDto.js +2 -2
- package/dist/generated/api/models/CatalogReadOnlyProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/CatalogReadOnlyProblemDetail.js +2 -2
- package/dist/generated/api/models/CatalogReadOnlyReason.d.ts +2 -2
- package/dist/generated/api/models/CatalogReadOnlyReason.js +2 -2
- package/dist/generated/api/models/CatalogReleaseDto.d.ts +2 -2
- package/dist/generated/api/models/CatalogReleaseDto.js +2 -2
- package/dist/generated/api/models/CatalogReleaseListResponse.d.ts +2 -2
- package/dist/generated/api/models/CatalogReleaseListResponse.js +2 -2
- package/dist/generated/api/models/CatalogReleaseRefDto.d.ts +2 -2
- package/dist/generated/api/models/CatalogReleaseRefDto.js +2 -2
- package/dist/generated/api/models/CatalogReleaseStatus.d.ts +2 -2
- package/dist/generated/api/models/CatalogReleaseStatus.js +2 -2
- package/dist/generated/api/models/CatalogRenderingDefaultsTooNewProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/CatalogRenderingDefaultsTooNewProblemDetail.js +2 -2
- package/dist/generated/api/models/CatalogThemeReference.d.ts +2 -2
- package/dist/generated/api/models/CatalogThemeReference.js +2 -2
- package/dist/generated/api/models/CatalogVersionBehindProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/CatalogVersionBehindProblemDetail.js +2 -2
- package/dist/generated/api/models/CodeListAuthType.d.ts +2 -2
- package/dist/generated/api/models/CodeListAuthType.js +2 -2
- package/dist/generated/api/models/CodeListBindingRef.d.ts +2 -2
- package/dist/generated/api/models/CodeListBindingRef.js +2 -2
- package/dist/generated/api/models/CodeListDto.d.ts +2 -2
- package/dist/generated/api/models/CodeListDto.js +2 -2
- package/dist/generated/api/models/CodeListEntriesResponse.d.ts +2 -2
- package/dist/generated/api/models/CodeListEntriesResponse.js +2 -2
- package/dist/generated/api/models/CodeListEntryDto.d.ts +2 -2
- package/dist/generated/api/models/CodeListEntryDto.js +2 -2
- package/dist/generated/api/models/CodeListListResponse.d.ts +2 -2
- package/dist/generated/api/models/CodeListListResponse.js +2 -2
- package/dist/generated/api/models/CodeListSourceType.d.ts +2 -2
- package/dist/generated/api/models/CodeListSourceType.js +2 -2
- package/dist/generated/api/models/CollectMeta.d.ts +2 -2
- package/dist/generated/api/models/CollectMeta.js +2 -2
- package/dist/generated/api/models/CollectRequest.d.ts +2 -2
- package/dist/generated/api/models/CollectRequest.js +2 -2
- package/dist/generated/api/models/ConsumerDto.d.ts +2 -2
- package/dist/generated/api/models/ConsumerDto.js +2 -2
- package/dist/generated/api/models/ConsumerListResponse.d.ts +2 -2
- package/dist/generated/api/models/ConsumerListResponse.js +2 -2
- package/dist/generated/api/models/ConsumerNodeDto.d.ts +2 -2
- package/dist/generated/api/models/ConsumerNodeDto.js +2 -2
- package/dist/generated/api/models/ConsumerPermissions.d.ts +8 -3
- package/dist/generated/api/models/ConsumerPermissions.d.ts.map +1 -1
- package/dist/generated/api/models/ConsumerPermissions.js +2 -2
- package/dist/generated/api/models/ConsumerPermissions.js.map +1 -1
- package/dist/generated/api/models/CreateAttributeRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateAttributeRequest.js +2 -2
- package/dist/generated/api/models/CreateCatalogReleaseRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateCatalogReleaseRequest.js +2 -2
- package/dist/generated/api/models/CreateCodeListRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateCodeListRequest.js +2 -2
- package/dist/generated/api/models/CreateEnvironmentRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateEnvironmentRequest.js +2 -2
- package/dist/generated/api/models/CreateQualityProfileRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateQualityProfileRequest.js +2 -2
- package/dist/generated/api/models/CreateStencilRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateStencilRequest.js +2 -2
- package/dist/generated/api/models/CreateTemplateRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateTemplateRequest.js +2 -2
- package/dist/generated/api/models/CreateTenantRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateTenantRequest.js +2 -2
- package/dist/generated/api/models/CreateThemeRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateThemeRequest.js +2 -2
- package/dist/generated/api/models/CreateVariantRequest.d.ts +2 -2
- package/dist/generated/api/models/CreateVariantRequest.js +2 -2
- package/dist/generated/api/models/DataExampleDto.d.ts +2 -2
- package/dist/generated/api/models/DataExampleDto.js +2 -2
- package/dist/generated/api/models/DataModelValidationError.d.ts +2 -2
- package/dist/generated/api/models/DataModelValidationError.js +2 -2
- package/dist/generated/api/models/DataModelValidationProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/DataModelValidationProblemDetail.js +2 -2
- package/dist/generated/api/models/DeploymentDto.d.ts +2 -2
- package/dist/generated/api/models/DeploymentDto.js +2 -2
- package/dist/generated/api/models/DeploymentEventDto.d.ts +2 -2
- package/dist/generated/api/models/DeploymentEventDto.js +2 -2
- package/dist/generated/api/models/DeploymentHistoryResponse.d.ts +2 -2
- package/dist/generated/api/models/DeploymentHistoryResponse.js +2 -2
- package/dist/generated/api/models/DeploymentListResponse.d.ts +2 -2
- package/dist/generated/api/models/DeploymentListResponse.js +2 -2
- package/dist/generated/api/models/DocumentDto.d.ts +2 -2
- package/dist/generated/api/models/DocumentDto.js +2 -2
- package/dist/generated/api/models/DocumentGenerationItemDto.d.ts +2 -2
- package/dist/generated/api/models/DocumentGenerationItemDto.js +2 -2
- package/dist/generated/api/models/DocumentGenerationJobDto.d.ts +2 -2
- package/dist/generated/api/models/DocumentGenerationJobDto.js +2 -2
- package/dist/generated/api/models/DocumentListResponse.d.ts +2 -2
- package/dist/generated/api/models/DocumentListResponse.js +2 -2
- package/dist/generated/api/models/EnvironmentDto.d.ts +2 -2
- package/dist/generated/api/models/EnvironmentDto.js +2 -2
- package/dist/generated/api/models/EnvironmentListResponse.d.ts +2 -2
- package/dist/generated/api/models/EnvironmentListResponse.js +2 -2
- package/dist/generated/api/models/FontDto.d.ts +2 -2
- package/dist/generated/api/models/FontDto.js +2 -2
- package/dist/generated/api/models/FontListResponse.d.ts +2 -2
- package/dist/generated/api/models/FontListResponse.js +2 -2
- package/dist/generated/api/models/FontVariantDto.d.ts +2 -2
- package/dist/generated/api/models/FontVariantDto.js +2 -2
- package/dist/generated/api/models/ForbiddenProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/ForbiddenProblemDetail.js +2 -2
- package/dist/generated/api/models/GenerateBatchRequest.d.ts +2 -2
- package/dist/generated/api/models/GenerateBatchRequest.js +2 -2
- package/dist/generated/api/models/GenerateDocumentRequest.d.ts +2 -2
- package/dist/generated/api/models/GenerateDocumentRequest.js +2 -2
- package/dist/generated/api/models/GenerationItemStatus.d.ts +2 -2
- package/dist/generated/api/models/GenerationItemStatus.js +2 -2
- package/dist/generated/api/models/GenerationJobItemListResponse.d.ts +2 -2
- package/dist/generated/api/models/GenerationJobItemListResponse.js +2 -2
- package/dist/generated/api/models/GenerationJobListResponse.d.ts +2 -2
- package/dist/generated/api/models/GenerationJobListResponse.js +2 -2
- package/dist/generated/api/models/GenerationJobResponse.d.ts +2 -2
- package/dist/generated/api/models/GenerationJobResponse.js +2 -2
- package/dist/generated/api/models/GenerationJobStatus.d.ts +2 -2
- package/dist/generated/api/models/GenerationJobStatus.js +2 -2
- package/dist/generated/api/models/GenerationJobType.d.ts +2 -2
- package/dist/generated/api/models/GenerationJobType.js +2 -2
- package/dist/generated/api/models/GenerationResult.d.ts +2 -2
- package/dist/generated/api/models/GenerationResult.js +2 -2
- package/dist/generated/api/models/ImageDto.d.ts +2 -2
- package/dist/generated/api/models/ImageDto.js +2 -2
- package/dist/generated/api/models/ImageListResponse.d.ts +2 -2
- package/dist/generated/api/models/ImageListResponse.js +2 -2
- package/dist/generated/api/models/ImportCatalogResponse.d.ts +2 -2
- package/dist/generated/api/models/ImportCatalogResponse.js +2 -2
- package/dist/generated/api/models/InstallCatalogReleaseResponse.d.ts +2 -2
- package/dist/generated/api/models/InstallCatalogReleaseResponse.js +2 -2
- package/dist/generated/api/models/InvalidDataField.d.ts +2 -2
- package/dist/generated/api/models/InvalidDataField.js +2 -2
- package/dist/generated/api/models/Margins.d.ts +2 -2
- package/dist/generated/api/models/Margins.js +2 -2
- package/dist/generated/api/models/MarkStencilReadyResponse.d.ts +2 -2
- package/dist/generated/api/models/MarkStencilReadyResponse.js +2 -2
- package/dist/generated/api/models/MergeBaseMissingProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/MergeBaseMissingProblemDetail.js +2 -2
- package/dist/generated/api/models/MergeConflictsUnresolvedProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/MergeConflictsUnresolvedProblemDetail.js +2 -2
- package/dist/generated/api/models/MergeIntoCatalogDraftRequest.d.ts +2 -2
- package/dist/generated/api/models/MergeIntoCatalogDraftRequest.js +2 -2
- package/dist/generated/api/models/MergeIntoCatalogDraftResponse.d.ts +2 -2
- package/dist/generated/api/models/MergeIntoCatalogDraftResponse.js +2 -2
- package/dist/generated/api/models/MissingDataField.d.ts +2 -2
- package/dist/generated/api/models/MissingDataField.js +2 -2
- package/dist/generated/api/models/MissingReleaseDependency.d.ts +2 -2
- package/dist/generated/api/models/MissingReleaseDependency.js +2 -2
- package/dist/generated/api/models/MissingReleaseDependencyReason.d.ts +2 -2
- package/dist/generated/api/models/MissingReleaseDependencyReason.js +2 -2
- package/dist/generated/api/models/Node.d.ts +2 -2
- package/dist/generated/api/models/Node.js +2 -2
- package/dist/generated/api/models/Orientation.d.ts +2 -2
- package/dist/generated/api/models/Orientation.js +2 -2
- package/dist/generated/api/models/PageFormat.d.ts +2 -2
- package/dist/generated/api/models/PageFormat.js +2 -2
- package/dist/generated/api/models/PageMeta.d.ts +2 -2
- package/dist/generated/api/models/PageMeta.js +2 -2
- package/dist/generated/api/models/PageSettings.d.ts +2 -2
- package/dist/generated/api/models/PageSettings.js +2 -2
- package/dist/generated/api/models/PartitionAssignment.d.ts +7 -3
- package/dist/generated/api/models/PartitionAssignment.d.ts.map +1 -1
- package/dist/generated/api/models/PartitionAssignment.js +2 -2
- package/dist/generated/api/models/PartitionAssignment.js.map +1 -1
- package/dist/generated/api/models/PingRequest.d.ts +2 -2
- package/dist/generated/api/models/PingRequest.js +2 -2
- package/dist/generated/api/models/PongDetailsDto.d.ts +2 -2
- package/dist/generated/api/models/PongDetailsDto.js +2 -2
- package/dist/generated/api/models/PongResponse.d.ts +2 -2
- package/dist/generated/api/models/PongResponse.js +2 -2
- package/dist/generated/api/models/PreviewDocumentRequest.d.ts +9 -7
- package/dist/generated/api/models/PreviewDocumentRequest.d.ts.map +1 -1
- package/dist/generated/api/models/PreviewDocumentRequest.js +4 -4
- package/dist/generated/api/models/PreviewDocumentRequest.js.map +1 -1
- package/dist/generated/api/models/ProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/ProblemDetail.js +2 -2
- package/dist/generated/api/models/PublishReleaseToRegistryRequest.d.ts +2 -2
- package/dist/generated/api/models/PublishReleaseToRegistryRequest.js +2 -2
- package/dist/generated/api/models/QualityBinding.d.ts +2 -2
- package/dist/generated/api/models/QualityBinding.js +2 -2
- package/dist/generated/api/models/QualityProfileDto.d.ts +2 -2
- package/dist/generated/api/models/QualityProfileDto.js +2 -2
- package/dist/generated/api/models/QualityProfileListResponse.d.ts +2 -2
- package/dist/generated/api/models/QualityProfileListResponse.js +2 -2
- package/dist/generated/api/models/QualityProfileRef.d.ts +2 -2
- package/dist/generated/api/models/QualityProfileRef.js +2 -2
- package/dist/generated/api/models/QualityRule.d.ts +2 -2
- package/dist/generated/api/models/QualityRule.js +2 -2
- package/dist/generated/api/models/QualityRuleExamples.d.ts +2 -2
- package/dist/generated/api/models/QualityRuleExamples.js +2 -2
- package/dist/generated/api/models/QualityRuleOverride.d.ts +2 -2
- package/dist/generated/api/models/QualityRuleOverride.js +2 -2
- package/dist/generated/api/models/QualityRuleScope.d.ts +2 -2
- package/dist/generated/api/models/QualityRuleScope.js +2 -2
- package/dist/generated/api/models/QualitySeverity.d.ts +2 -2
- package/dist/generated/api/models/QualitySeverity.js +2 -2
- package/dist/generated/api/models/RegisterConsumerRequest.d.ts +2 -2
- package/dist/generated/api/models/RegisterConsumerRequest.js +2 -2
- package/dist/generated/api/models/RegistryReleaseDto.d.ts +2 -2
- package/dist/generated/api/models/RegistryReleaseDto.js +2 -2
- package/dist/generated/api/models/RegistryReleaseListResponse.d.ts +2 -2
- package/dist/generated/api/models/RegistryReleaseListResponse.js +2 -2
- package/dist/generated/api/models/RejectConsumerRequest.d.ts +2 -2
- package/dist/generated/api/models/RejectConsumerRequest.js +2 -2
- package/dist/generated/api/models/ReleaseCatalogDraftRequest.d.ts +2 -2
- package/dist/generated/api/models/ReleaseCatalogDraftRequest.js +2 -2
- package/dist/generated/api/models/ReleaseCatalogDraftResponse.d.ts +7 -6
- package/dist/generated/api/models/ReleaseCatalogDraftResponse.d.ts.map +1 -1
- package/dist/generated/api/models/ReleaseCatalogDraftResponse.js +5 -4
- package/dist/generated/api/models/ReleaseCatalogDraftResponse.js.map +1 -1
- package/dist/generated/api/models/ReleaseDependenciesMissingProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/ReleaseDependenciesMissingProblemDetail.js +2 -2
- package/dist/generated/api/models/ReleaseDependenciesUnreleasedProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/ReleaseDependenciesUnreleasedProblemDetail.js +2 -2
- package/dist/generated/api/models/ReleaseDependencyDto.d.ts +2 -2
- package/dist/generated/api/models/ReleaseDependencyDto.js +2 -2
- package/dist/generated/api/models/ReleaseInUseProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/ReleaseInUseProblemDetail.js +2 -2
- package/dist/generated/api/models/ReleasePublicationDto.d.ts +2 -2
- package/dist/generated/api/models/ReleasePublicationDto.js +2 -2
- package/dist/generated/api/models/ReleasePublicationStatus.d.ts +2 -2
- package/dist/generated/api/models/ReleasePublicationStatus.js +2 -2
- package/dist/generated/api/models/ReleaseRegistryDto.d.ts +2 -2
- package/dist/generated/api/models/ReleaseRegistryDto.js +2 -2
- package/dist/generated/api/models/ReleaseRegistryKind.d.ts +2 -2
- package/dist/generated/api/models/ReleaseRegistryKind.js +2 -2
- package/dist/generated/api/models/ReleaseRegistryListResponse.d.ts +2 -2
- package/dist/generated/api/models/ReleaseRegistryListResponse.js +2 -2
- package/dist/generated/api/models/ReleasedChangeDto.d.ts +2 -2
- package/dist/generated/api/models/ReleasedChangeDto.js +2 -2
- package/dist/generated/api/models/ReleasedDependencyDto.d.ts +2 -2
- package/dist/generated/api/models/ReleasedDependencyDto.js +2 -2
- package/dist/generated/api/models/ResourceChangeDto.d.ts +2 -2
- package/dist/generated/api/models/ResourceChangeDto.js +2 -2
- package/dist/generated/api/models/ResourceStatus.d.ts +2 -2
- package/dist/generated/api/models/ResourceStatus.js +2 -2
- package/dist/generated/api/models/RotatePublicKeyRequest.d.ts +2 -2
- package/dist/generated/api/models/RotatePublicKeyRequest.js +2 -2
- package/dist/generated/api/models/SearchHit.d.ts +2 -2
- package/dist/generated/api/models/SearchHit.js +2 -2
- package/dist/generated/api/models/SearchHitCatalog.d.ts +2 -2
- package/dist/generated/api/models/SearchHitCatalog.js +2 -2
- package/dist/generated/api/models/SearchHitVariant.d.ts +2 -2
- package/dist/generated/api/models/SearchHitVariant.js +2 -2
- package/dist/generated/api/models/SearchKindCount.d.ts +2 -2
- package/dist/generated/api/models/SearchKindCount.js +2 -2
- package/dist/generated/api/models/SearchResults.d.ts +2 -2
- package/dist/generated/api/models/SearchResults.js +2 -2
- package/dist/generated/api/models/Slot.d.ts +2 -2
- package/dist/generated/api/models/Slot.js +2 -2
- package/dist/generated/api/models/StencilContentDto.d.ts +2 -2
- package/dist/generated/api/models/StencilContentDto.js +2 -2
- package/dist/generated/api/models/StencilDto.d.ts +2 -2
- package/dist/generated/api/models/StencilDto.js +2 -2
- package/dist/generated/api/models/StencilListResponse.d.ts +2 -2
- package/dist/generated/api/models/StencilListResponse.js +2 -2
- package/dist/generated/api/models/StencilSummaryDto.d.ts +2 -2
- package/dist/generated/api/models/StencilSummaryDto.js +2 -2
- package/dist/generated/api/models/StencilUsageDto.d.ts +2 -2
- package/dist/generated/api/models/StencilUsageDto.js +2 -2
- package/dist/generated/api/models/StencilUsageListResponse.d.ts +2 -2
- package/dist/generated/api/models/StencilUsageListResponse.js +2 -2
- package/dist/generated/api/models/TemplateDataValidationError.d.ts +2 -2
- package/dist/generated/api/models/TemplateDataValidationError.js +2 -2
- package/dist/generated/api/models/TemplateDataValidationProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/TemplateDataValidationProblemDetail.js +2 -2
- package/dist/generated/api/models/TemplateDataValidationResult.d.ts +2 -2
- package/dist/generated/api/models/TemplateDataValidationResult.js +2 -2
- package/dist/generated/api/models/TemplateDocument.d.ts +2 -2
- package/dist/generated/api/models/TemplateDocument.js +2 -2
- package/dist/generated/api/models/TemplateDto.d.ts +2 -2
- package/dist/generated/api/models/TemplateDto.js +2 -2
- package/dist/generated/api/models/TemplateListResponse.d.ts +2 -2
- package/dist/generated/api/models/TemplateListResponse.js +2 -2
- package/dist/generated/api/models/TemplateSummaryDto.d.ts +2 -2
- package/dist/generated/api/models/TemplateSummaryDto.js +2 -2
- package/dist/generated/api/models/TenantDto.d.ts +2 -2
- package/dist/generated/api/models/TenantDto.js +2 -2
- package/dist/generated/api/models/TenantListResponse.d.ts +2 -2
- package/dist/generated/api/models/TenantListResponse.js +2 -2
- package/dist/generated/api/models/ThemeDto.d.ts +2 -2
- package/dist/generated/api/models/ThemeDto.js +2 -2
- package/dist/generated/api/models/ThemeListResponse.d.ts +2 -2
- package/dist/generated/api/models/ThemeListResponse.js +2 -2
- package/dist/generated/api/models/ThemeRef.d.ts +2 -2
- package/dist/generated/api/models/ThemeRef.js +2 -2
- package/dist/generated/api/models/UnreleasedCatalogDependency.d.ts +2 -2
- package/dist/generated/api/models/UnreleasedCatalogDependency.js +2 -2
- package/dist/generated/api/models/UpdateAttributeRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateAttributeRequest.js +2 -2
- package/dist/generated/api/models/UpdateCatalogDependenciesRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateCatalogDependenciesRequest.js +2 -2
- package/dist/generated/api/models/UpdateCatalogReleaseRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateCatalogReleaseRequest.js +2 -2
- package/dist/generated/api/models/UpdateCodeListEntryHiddenRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateCodeListEntryHiddenRequest.js +2 -2
- package/dist/generated/api/models/UpdateCodeListRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateCodeListRequest.js +2 -2
- package/dist/generated/api/models/UpdateConsumerRequest.d.ts +4 -2
- package/dist/generated/api/models/UpdateConsumerRequest.d.ts.map +1 -1
- package/dist/generated/api/models/UpdateConsumerRequest.js +2 -2
- package/dist/generated/api/models/UpdateConsumerRequest.js.map +1 -1
- package/dist/generated/api/models/UpdateEnvironmentRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateEnvironmentRequest.js +2 -2
- package/dist/generated/api/models/UpdateQualityProfileRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateQualityProfileRequest.js +2 -2
- package/dist/generated/api/models/UpdateStencilContentRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateStencilContentRequest.js +2 -2
- package/dist/generated/api/models/UpdateStencilRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateStencilRequest.js +2 -2
- package/dist/generated/api/models/UpdateTemplateRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateTemplateRequest.js +2 -2
- package/dist/generated/api/models/UpdateTenantRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateTenantRequest.js +2 -2
- package/dist/generated/api/models/UpdateThemeRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateThemeRequest.js +2 -2
- package/dist/generated/api/models/UpdateVariantContentRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateVariantContentRequest.js +2 -2
- package/dist/generated/api/models/UpdateVariantRequest.d.ts +2 -2
- package/dist/generated/api/models/UpdateVariantRequest.js +2 -2
- package/dist/generated/api/models/ValidateTemplateDataRequest.d.ts +2 -2
- package/dist/generated/api/models/ValidateTemplateDataRequest.js +2 -2
- package/dist/generated/api/models/ValidationError.d.ts +2 -2
- package/dist/generated/api/models/ValidationError.js +2 -2
- package/dist/generated/api/models/ValidationProblemDetail.d.ts +2 -2
- package/dist/generated/api/models/ValidationProblemDetail.js +2 -2
- package/dist/generated/api/models/VariantContentDto.d.ts +2 -2
- package/dist/generated/api/models/VariantContentDto.js +2 -2
- package/dist/generated/api/models/VariantDto.d.ts +2 -2
- package/dist/generated/api/models/VariantDto.js +2 -2
- package/dist/generated/api/models/VariantListResponse.d.ts +2 -2
- package/dist/generated/api/models/VariantListResponse.js +2 -2
- package/dist/generated/api/models/VariantSelectionAttribute.d.ts +2 -2
- package/dist/generated/api/models/VariantSelectionAttribute.js +2 -2
- package/dist/generated/api/models/VariantSummaryDto.d.ts +2 -2
- package/dist/generated/api/models/VariantSummaryDto.js +2 -2
- package/dist/generated/api/models/index.d.ts +2 -0
- package/dist/generated/api/models/index.d.ts.map +1 -1
- package/dist/generated/api/models/index.js +2 -0
- package/dist/generated/api/models/index.js.map +1 -1
- package/dist/generated/api/runtime.d.ts +2 -2
- package/dist/generated/api/runtime.js +2 -2
- package/dist/generated/contractOperations.js +1 -1
- package/dist/generated/contractOperations.js.map +1 -1
- package/dist/generated/contractVersion.d.ts +1 -1
- package/dist/generated/contractVersion.d.ts.map +1 -1
- package/dist/generated/contractVersion.js +1 -1
- package/dist/generated/contractVersion.js.map +1 -1
- package/dist/generated/knownProblemSlugs.d.ts +7 -1
- package/dist/generated/knownProblemSlugs.d.ts.map +1 -1
- package/dist/generated/knownProblemSlugs.js +7 -1
- package/dist/generated/knownProblemSlugs.js.map +1 -1
- package/dist/generated/knownValidationCodes.d.ts +3 -3
- package/dist/generated/knownValidationCodes.d.ts.map +1 -1
- package/dist/generated/knownValidationCodes.js +3 -3
- package/dist/generated/knownValidationCodes.js.map +1 -1
- package/dist/generated/modelValidation.d.ts +4 -2
- package/dist/generated/modelValidation.d.ts.map +1 -1
- package/dist/generated/modelValidation.js +13 -1
- package/dist/generated/modelValidation.js.map +1 -1
- package/dist/http/operations.d.ts +4 -2
- package/dist/http/operations.d.ts.map +1 -1
- package/dist/http/operations.js +23 -5
- package/dist/http/operations.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,8 +9,21 @@ records contract changes; this file records changes to the hand-written library
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- `ResultCollector.partitionFor`, `isMyPartition` and `routingKeyToMe` answer as before the
|
|
15
|
+
assignment is known when it names a `hash` other than `murmur3`, instead of routing with murmur3
|
|
16
|
+
regardless and sending results to other nodes.
|
|
17
|
+
|
|
12
18
|
### Added
|
|
13
19
|
|
|
20
|
+
- `ProblemDetailException.dependents`, `heldResources` and `isCatalogDraftInUseProblem` surface a
|
|
21
|
+
`catalog-draft-in-use` problem (409 from `deleteCatalogRelease`, which refuses to discard a draft
|
|
22
|
+
something outside it relies on): the drafts of other catalogs whose dependency declarations name
|
|
23
|
+
it, each a `CatalogDraftRef` (the generated `CatalogDraftRefDto`; an entry missing a member is
|
|
24
|
+
dropped), and the resources only it holds that something outside it still uses, as
|
|
25
|
+
`resourceType/resourceKey`. `environments`, `pinnedBy` and `isReleaseInUseProblem` stay, for
|
|
26
|
+
`release-in-use`, which no operation answers yet.
|
|
14
27
|
- `KnownValidationCodes` (and the `KnownValidationCode` type), generated from the contract's
|
|
15
28
|
`x-validation-codes` registry: one constant per code that says why a field of a
|
|
16
29
|
`validation-error` failed. Compare a field error's `code` (`undefined` when the server sent none)
|
|
@@ -57,31 +70,33 @@ records contract changes; this file records changes to the hand-written library
|
|
|
57
70
|
|
|
58
71
|
### Changed
|
|
59
72
|
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
`(
|
|
64
|
-
`
|
|
65
|
-
|
|
66
|
-
and
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
- `findOperation` breaks a tie between two path templates with as many literal segments by the
|
|
74
|
+
first segment where they differ, a literal winning over a parameter, rather than by comparing the
|
|
75
|
+
templates as strings. `GET /documents/jobs/content` matched both `getGenerationJobStatus` and the
|
|
76
|
+
moved `downloadDocument` (`/documents/{documentId}/content`), and resolved to the latter, so the
|
|
77
|
+
request asked for a PDF. Neither id can be `jobs` or `content` in practice, both being UUIDs.
|
|
78
|
+
- **BREAKING:** contract 2.0 addresses a resource by its `key` (#84), a catalog by registry,
|
|
79
|
+
namespace and key, and renders a release rather than a template version. Against 1.4, the
|
|
80
|
+
hand-written API changes as follows:
|
|
81
|
+
- `TemplateDataValidator.validate`, `TemplateSchemaValidator.validate` and
|
|
82
|
+
`ServerTemplateDataValidator.validate` take `(tenantKey, registry, namespace, catalogKey,
|
|
83
|
+
templateKey, data)` in place of `(tenantId, catalogId, templateId, data)`, the registry in its
|
|
84
|
+
path-segment form (`~` for the server's default registry, or named in full, such as
|
|
85
|
+
`acme.com`). `SchemaCache.getOrLoad` / `evict` are keyed the same way. `ValidatingGenerationApi`
|
|
86
|
+
hands a pre-flighting validator the request's `registry`, or `~` when the request leaves it out
|
|
87
|
+
or null.
|
|
88
|
+
- `ServerValidationTarget` takes `variantKey` and `environmentKey` in place of `variantId` and
|
|
89
|
+
`environmentId`, and a `versionRange` (`1.4.0`, `^1.4.0`, sent as the request's
|
|
90
|
+
`versionRange`) in place of `versionId`. Without a range or an environment, the catalog's
|
|
91
|
+
highest release is checked.
|
|
92
|
+
- `ResultCollector.builder().tenantId(…)` is now `.tenantKey(…)`.
|
|
93
|
+
- The generated request parameters and models carry the same renames (`tenantKey`,
|
|
94
|
+
`templateKey`, …, and `key` in place of `slug` and of a create request's `id`).
|
|
79
95
|
- Results handed to a `ResultCollector` handler carry the template's catalog as `registry`,
|
|
80
96
|
`namespace` and `catalogKey`, always set, next to `version`, which is null for a result
|
|
81
97
|
rendered from a draft.
|
|
82
98
|
- The README no longer mentions the `X-API-Key` header: the contract dropped it, and the client
|
|
83
99
|
only ever sent `Authorization: ApiKey <key>`.
|
|
84
|
-
|
|
85
100
|
- **Template data is validated by the server, not by a bundled schema compiler.**
|
|
86
101
|
`TemplateSchemaValidator` and `ValidatingGenerationApi` now call `validateTemplateData` through a
|
|
87
102
|
pluggable `TemplateDataValidator`, whose only shipped implementation is
|
package/README.md
CHANGED
|
@@ -123,6 +123,12 @@ member it does not know is ignored, and an enum value it does not know is kept a
|
|
|
123
123
|
received, though the generated type does not list it. Keep a `default` branch when switching on an
|
|
124
124
|
enum.
|
|
125
125
|
|
|
126
|
+
What a client ignores it cannot send back. A request built from a response carries only the members
|
|
127
|
+
this client knows. That matters where a write replaces what was read: a template document read with
|
|
128
|
+
`getVariantContent` and written back with `updateVariantContent` loses every member a newer catalog wire version added.
|
|
129
|
+
Edit template documents with a client at least as new as the server, and change a consumer's
|
|
130
|
+
permissions by sending only the resources you change, never the object you read.
|
|
131
|
+
|
|
126
132
|
## Error handling
|
|
127
133
|
|
|
128
134
|
Catch `ProblemDetailException` and switch on `typeSlug` against `KnownProblemSlugs`. The slug list is
|
|
@@ -140,8 +146,6 @@ try {
|
|
|
140
146
|
case KnownProblemSlugs.NOT_FOUND:
|
|
141
147
|
log.warn(`tenant not found: ${e.detail}`)
|
|
142
148
|
break
|
|
143
|
-
case KnownProblemSlugs.FORBIDDEN:
|
|
144
|
-
throw new PermissionError(e.detail)
|
|
145
149
|
case KnownProblemSlugs.VALIDATION_ERROR:
|
|
146
150
|
for (const err of e.errors) log.warn(`${err.field}: ${err.message}`) // field-level ValidationProblemDetail
|
|
147
151
|
break
|
|
@@ -177,9 +181,10 @@ try {
|
|
|
177
181
|
case KnownProblemSlugs.CATALOG_VERSION_BEHIND:
|
|
178
182
|
log.warn(`the draft is behind ${e.behind.join(', ')}`) // releaseCatalogDraft: name them in acknowledgedBehind
|
|
179
183
|
break
|
|
180
|
-
case KnownProblemSlugs.
|
|
181
|
-
// deleteCatalogRelease:
|
|
182
|
-
|
|
184
|
+
case KnownProblemSlugs.CATALOG_DRAFT_IN_USE:
|
|
185
|
+
// deleteCatalogRelease: drafts of other catalogs name the draft, or it alone holds resources
|
|
186
|
+
// something outside it uses (resourceType/resourceKey); change those first
|
|
187
|
+
log.warn(`named by ${e.dependents.map((d) => `${d.catalogKey}: ${d.releaseName}`).join(', ')}; holds ${e.heldResources.join(', ')}`)
|
|
183
188
|
break
|
|
184
189
|
case KnownProblemSlugs.AMBIGUOUS_VARIANT:
|
|
185
190
|
log.warn(`several variants match: ${e.tiedVariants.join(', ')}`) // generateDocument, previewDocument: name one by variantKey
|
|
@@ -227,7 +232,8 @@ ResponseError` sites keep working. It exposes `type`, `typeSlug`, `title`, `prob
|
|
|
227
232
|
`missingDependencies`, `unreleasedDependencies`, `readOnlyReason`, `unresolvedConflicts`,
|
|
228
233
|
`isMergeConflictsUnresolvedProblem`, `missingBaseVersion`, `missingBaseFingerprint`,
|
|
229
234
|
`isMergeBaseMissingProblem`, `behind`, `isCatalogVersionBehindProblem`, `environments`,
|
|
230
|
-
`pinnedBy`, `isReleaseInUseProblem`, `
|
|
235
|
+
`pinnedBy`, `isReleaseInUseProblem`, `dependents`, `heldResources`, `isCatalogDraftInUseProblem`,
|
|
236
|
+
`tiedVariants`, `isAmbiguousVariantProblem`,
|
|
231
237
|
`requiredPermission`, `refusedTenantKey`, `requiredPlatformRole`, `refusalReason`,
|
|
232
238
|
`isForbiddenProblem`, `extensions` (every member
|
|
233
239
|
outside the base members, RFC 9457's five and `help`), `statusCode`, `rawBody`, `isValidationProblem`,
|
|
@@ -240,6 +246,12 @@ releases. `unreleasedDependencies` lists each such draft (`registry`, `namespace
|
|
|
240
246
|
`releaseId`, `releaseName`); release them first, or send `releaseDependencies: true` to release them
|
|
241
247
|
along with the draft.
|
|
242
248
|
|
|
249
|
+
A `catalog-draft-in-use` problem (409) means `deleteCatalogRelease` was refused because something
|
|
250
|
+
outside the draft still relies on it. `dependents` lists the drafts of other catalogs whose
|
|
251
|
+
dependency declarations name it (`registry`, `namespace`, `catalogKey`, `releaseId`, `releaseName`),
|
|
252
|
+
and `heldResources` the resources only it holds that something outside it still uses, as
|
|
253
|
+
`resourceType/resourceKey` (`theme/house-style`); change those first.
|
|
254
|
+
|
|
243
255
|
A `release-dependencies-missing` problem (409) means `deployCatalogRelease` was refused because releases
|
|
244
256
|
of other catalogs the release pins cannot be had: the tenant does not have them and they could not
|
|
245
257
|
be fetched or verified. `missingDependencies` lists each, with a `reason` kept as the string the
|
|
@@ -303,9 +315,6 @@ validateCreateTenantRequest({ key: 'Acme Corp', name: 'Acme' }) // throws Model
|
|
|
303
315
|
Each failure carries a **JSON Pointer** into the data (`/customer/email`), the JSON Schema `keyword`
|
|
304
316
|
that failed, and a human-readable `message` — so a form can mark the field that is wrong.
|
|
305
317
|
|
|
306
|
-
`validateTemplateData` arrived with contract **1.4.0**; against an older server the call fails like
|
|
307
|
-
any other unknown operation rather than reporting unvalidated data as acceptable.
|
|
308
|
-
|
|
309
318
|
### Validating in-process instead
|
|
310
319
|
|
|
311
320
|
To avoid a request per check — pre-flighting a large batch, say — implement `TemplateDataValidator`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resultCollector.d.ts","sourceRoot":"","sources":["../../src/collect/resultCollector.ts"],"names":[],"mappings":"AAKA,OAAO,EAA4B,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAE5H,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,0CAA0C;AAC1C,MAAM,WAAW,aAAa;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,oGAAoG;IACpG,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B;AAED,0GAA0G;AAC1G,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAE9E,+EAA+E;AAC/E,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;AAE1D,mCAAmC;AACnC,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IAClF,oDAAoD;IACpD,iBAAiB,CAAC,CAAC,QAAQ,EAAE,mBAAmB,GAAG,SAAS,EAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAA;CAClG;AAED,UAAU,iBAAiB;IACzB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAA;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;IAC7B,QAAQ,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,wDAAwD;IACxD,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAGpC;IAED,+FAA+F;IAC/F,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAG/C;IAED,mDAAmD;IACnD,eAAe,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,CAG/C;IAED;;;;;OAKG;IACH,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAG5C;IAED,0CAA0C;IAC1C,KAAK,IAAI,eAAe,CAqBvB;CACF"}
|
|
@@ -234,7 +234,9 @@ export class ResultCollector {
|
|
|
234
234
|
return;
|
|
235
235
|
}
|
|
236
236
|
this.assignment = current;
|
|
237
|
-
this
|
|
237
|
+
// A hash this client does not implement gets no routing: the wrong algorithm would send results
|
|
238
|
+
// to other nodes, while no routing only loses node affinity.
|
|
239
|
+
this.routing = current.hash === 'murmur3' ? PartitionRouting.of(current.total, current.mine) : undefined;
|
|
238
240
|
this.settings.metricsListener?.onPartitionChange?.(previous, current);
|
|
239
241
|
}
|
|
240
242
|
sleep(durationMs) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resultCollector.js","sourceRoot":"","sources":["../../src/collect/resultCollector.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,oCAAoC;AAEpC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC7E,OAAO,EAAE,wBAAwB,EAAmD,MAAM,kCAAkC,CAAA;AAC5H,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAEvE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAoCxD;;;;;;;;;;;;;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atalogReleaseRefDto, DataModelValidationError, InvalidDataField, MissingDataField, MissingReleaseDependency, MissingReleaseDependencyReason, ProblemDetail, UnreleasedCatalogDependency, ValidationError } from '../generated/api/models/index.js';
|
|
1
|
+
import type { CatalogDraftRefDto, CatalogReadOnlyReason, CatalogReleaseRefDto, DataModelValidationError, InvalidDataField, MissingDataField, MissingReleaseDependency, MissingReleaseDependencyReason, ProblemDetail, UnreleasedCatalogDependency, ValidationError } from '../generated/api/models/index.js';
|
|
2
2
|
import { ResponseError } from '../generated/api/runtime.js';
|
|
3
3
|
/**
|
|
4
4
|
* A {@link ResponseError} carrying a parsed [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457)
|
|
@@ -170,8 +170,9 @@ export declare class ProblemDetailException extends ResponseError {
|
|
|
170
170
|
/** True when this problem said the draft is behind releases the request did not acknowledge. */
|
|
171
171
|
get isCatalogVersionBehindProblem(): boolean;
|
|
172
172
|
/**
|
|
173
|
-
* The environments a `release-in-use` problem (409
|
|
174
|
-
*
|
|
173
|
+
* The environments a `release-in-use` problem (409) says deploy the release; empty for any other
|
|
174
|
+
* problem, and when none does. No operation deletes a released release yet; discarding a draft is
|
|
175
|
+
* refused with `catalog-draft-in-use` ({@link dependents}, {@link heldResources}).
|
|
175
176
|
*/
|
|
176
177
|
get environments(): readonly string[];
|
|
177
178
|
/**
|
|
@@ -181,6 +182,21 @@ export declare class ProblemDetailException extends ResponseError {
|
|
|
181
182
|
get pinnedBy(): readonly CatalogReleaseRef[];
|
|
182
183
|
/** True when this problem said the release cannot be deleted while something uses it. */
|
|
183
184
|
get isReleaseInUseProblem(): boolean;
|
|
185
|
+
/**
|
|
186
|
+
* The drafts of other catalogs a `catalog-draft-in-use` problem (409, from `deleteCatalogRelease`)
|
|
187
|
+
* says name the draft in their dependency declarations, in the order the server listed them;
|
|
188
|
+
* empty for any other problem, and when none does. Change their declarations, or discard them,
|
|
189
|
+
* first. An entry that does not carry all five members as strings is dropped rather than guessed at.
|
|
190
|
+
*/
|
|
191
|
+
get dependents(): readonly CatalogDraftRef[];
|
|
192
|
+
/**
|
|
193
|
+
* The resources a `catalog-draft-in-use` problem says only the draft holds while something outside
|
|
194
|
+
* it still uses them, each as `resourceType/resourceKey` (`theme/house-style`); empty for any
|
|
195
|
+
* other problem, and when none.
|
|
196
|
+
*/
|
|
197
|
+
get heldResources(): readonly string[];
|
|
198
|
+
/** True when this problem said the draft cannot be discarded while something relies on it. */
|
|
199
|
+
get isCatalogDraftInUseProblem(): boolean;
|
|
184
200
|
/**
|
|
185
201
|
* The keys of the variants an `ambiguous-variant` problem (409, from generating or previewing a
|
|
186
202
|
* document) says match the request's attributes equally well: name one by `variantKey`, or send
|
|
@@ -235,4 +251,9 @@ export type UnreleasedDependency = Readonly<UnreleasedCatalogDependency>;
|
|
|
235
251
|
* `pinnedBy` member: the generated `CatalogReleaseRefDto`.
|
|
236
252
|
*/
|
|
237
253
|
export type CatalogReleaseRef = Readonly<CatalogReleaseRefDto>;
|
|
254
|
+
/**
|
|
255
|
+
* One draft a problem names in full, such as each entry of a `catalog-draft-in-use` problem's
|
|
256
|
+
* `dependents` member: the generated `CatalogDraftRefDto`.
|
|
257
|
+
*/
|
|
258
|
+
export type CatalogDraftRef = Readonly<CatalogDraftRefDto>;
|
|
238
259
|
//# sourceMappingURL=problemDetailException.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"problemDetailException.d.ts","sourceRoot":"","sources":["../../src/error/problemDetailException.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,aAAa,EACb,2BAA2B,EAC3B,eAAe,EAChB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAI3D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,sBAAuB,SAAQ,a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AM,GAAG,SAAS,CAE7B;IAED,oEAAoE;IACpE,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAED,iFAAiF;IACjF,IAAI,4BAA4B,IAAI,OAAO,CAE1C;IAED;;;;;;;;;;OAUG;IACH,IAAI,aAAa,IAAI,SAAS,gBAAgB,EAAE,CAE/C;IAED,0FAA0F;IAC1F,IAAI,aAAa,IAAI,SAAS,gBAAgB,EAAE,CAE/C;IAED,qEAAqE;IACrE,IAAI,qBAAqB,IAAI,OAAO,CAEnC;IAED;;;;;;;;;OASG;IACH,IAAI,mBAAmB,IAAI,SAAS,iBAAiB,EAAE,CAEtD;IAED,sEAAsE;IACtE,IAAI,mCAAmC,IAAI,OAAO,CAEjD;IAED;;;;;;;OAOG;IACH,IAAI,sBAAsB,IAAI,SAAS,oBAAoB,EAAE,CAE5D;IAED,2FAA2F;IAC3F,IAAI,sCAAsC,IAAI,OAAO,CAEpD;IAED;;;;;;OAMG;IACH,IAAI,cAAc,IAAI,qBAAqB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,CAGtE;IAED,0EAA0E;IAC1E,IAAI,wBAAwB,IAAI,OAAO,CAEtC;IAED;;;;OAIG;IACH,IAAI,mBAAmB,IAAI,SAAS,MAAM,EAAE,CAG3C;IAED,4EAA4E;IAC5E,IAAI,iCAAiC,IAAI,OAAO,CAE/C;IAED;;;;;OAKG;IACH,IAAI,kBAAkB,IAAI,MAAM,GAAG,SAAS,CAE3C;IAED;;;OAGG;IACH,IAAI,sBAAsB,IAAI,MAAM,GAAG,SAAS,CAE/C;IAED,iFAAiF;IACjF,IAAI,yBAAyB,IAAI,OAAO,CAEvC;IAED;;;;OAIG;IACH,IAAI,MAAM,IAAI,SAAS,MAAM,EAAE,CAE9B;IAED,gGAAgG;IAChG,IAAI,6BAA6B,IAAI,OAAO,CAE3C;IAED
|
|
1
|
+
{"version":3,"file":"problemDetailException.d.ts","sourceRoot":"","sources":["../../src/error/problemDetailException.ts"],"names":[],"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M,GAAG,EAAE,CAAC,CAAA;CAChE;AASD;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,2BAA2B,CAAC,CAAA;AASxE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAA;AAS9D;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAA"}
|
|
@@ -221,8 +221,9 @@ export class ProblemDetailException extends ResponseError {
|
|
|
221
221
|
return this.typeSlug === KnownProblemSlugs.CATALOG_VERSION_BEHIND;
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
|
-
* The environments a `release-in-use` problem (409
|
|
225
|
-
*
|
|
224
|
+
* The environments a `release-in-use` problem (409) says deploy the release; empty for any other
|
|
225
|
+
* problem, and when none does. No operation deletes a released release yet; discarding a draft is
|
|
226
|
+
* refused with `catalog-draft-in-use` ({@link dependents}, {@link heldResources}).
|
|
226
227
|
*/
|
|
227
228
|
get environments() {
|
|
228
229
|
return stringsAt(this.extensions, ProblemExtensionMembers.ENVIRONMENTS);
|
|
@@ -238,6 +239,27 @@ export class ProblemDetailException extends ResponseError {
|
|
|
238
239
|
get isReleaseInUseProblem() {
|
|
239
240
|
return this.typeSlug === KnownProblemSlugs.RELEASE_IN_USE;
|
|
240
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* The drafts of other catalogs a `catalog-draft-in-use` problem (409, from `deleteCatalogRelease`)
|
|
244
|
+
* says name the draft in their dependency declarations, in the order the server listed them;
|
|
245
|
+
* empty for any other problem, and when none does. Change their declarations, or discard them,
|
|
246
|
+
* first. An entry that does not carry all five members as strings is dropped rather than guessed at.
|
|
247
|
+
*/
|
|
248
|
+
get dependents() {
|
|
249
|
+
return objectsAt(this.extensions, ProblemExtensionMembers.DEPENDENTS).filter(isCatalogDraftRef);
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* The resources a `catalog-draft-in-use` problem says only the draft holds while something outside
|
|
253
|
+
* it still uses them, each as `resourceType/resourceKey` (`theme/house-style`); empty for any
|
|
254
|
+
* other problem, and when none.
|
|
255
|
+
*/
|
|
256
|
+
get heldResources() {
|
|
257
|
+
return stringsAt(this.extensions, ProblemExtensionMembers.HELD_RESOURCES);
|
|
258
|
+
}
|
|
259
|
+
/** True when this problem said the draft cannot be discarded while something relies on it. */
|
|
260
|
+
get isCatalogDraftInUseProblem() {
|
|
261
|
+
return this.typeSlug === KnownProblemSlugs.CATALOG_DRAFT_IN_USE;
|
|
262
|
+
}
|
|
241
263
|
/**
|
|
242
264
|
* The keys of the variants an `ambiguous-variant` problem (409, from generating or previewing a
|
|
243
265
|
* document) says match the request's attributes equally well: name one by `variantKey`, or send
|
|
@@ -312,6 +334,11 @@ function isCatalogReleaseRef(entry) {
|
|
|
312
334
|
const record = entry;
|
|
313
335
|
return CATALOG_RELEASE_REF_MEMBERS.every((member) => typeof record[member] === 'string');
|
|
314
336
|
}
|
|
337
|
+
const CATALOG_DRAFT_REF_MEMBERS = ['registry', 'namespace', 'catalogKey', 'releaseId', 'releaseName'];
|
|
338
|
+
function isCatalogDraftRef(entry) {
|
|
339
|
+
const record = entry;
|
|
340
|
+
return CATALOG_DRAFT_REF_MEMBERS.every((member) => typeof record[member] === 'string');
|
|
341
|
+
}
|
|
315
342
|
/** One extension member's array of strings, or empty when absent; entries that are not strings are dropped. */
|
|
316
343
|
function stringsAt(extensions, member) {
|
|
317
344
|
const value = extensions[member];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"problemDetailException.js","sourceRoot":"","sources":["../../src/error/problemDetailException.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,oCAAoC;
|
|
1
|
+
{"version":3,"file":"problemDetailException.js","sourceRoot":"","sources":["../../src/error/problemDetailException.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,oCAAoC;AAepC,OAAO,EAAE,aAAa,EAAE,MAAM,6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KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;AACxG,CAAC;AAED;;;;GAIG;AACH,SAAS,SAAS,CAAC,UAA6C,EAAE,MAAc;IAC9E,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAChC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAA;IACX,CAAC;IACD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAA;AACvH,CAAC;AAED,SAAS,YAAY,CAAC,MAAc,EAAE,OAAsB;IAC1D,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,CAAA;IAC7C,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,EAAE,CAAA;AACxF,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Epistola API
|
|
3
|
-
* Epistola generates documents, PDFs, from templates. Authors design the templates; applications send data and get documents back. This API manages templates and the catalogs that hold them, and generates documents from them, asynchronously and at volume. ## Glossary - **Tenant**: an organisation, isolated from every other. Everything else lives in one, under `/tenants/{tenantKey}`. - **Catalog**: a set of templates and everything they use, released as a whole. A catalog is named by three parts together: a **registry**, the DNS name of where it is published (`exchange.epistola.app`, or a domain that publishes its own, `acme.com`); a **namespace**, its publisher within that registry (`acme-corp`); and its key (`letters`). In a path, `~` stands for the server\'s default registry. The registry `local` names catalogs that never leave the organisation: valid within its own installations, refused by an Exchange. - **Release**: the catalog as a whole at one point, in one of two statuses. A **draft release**, or **draft**, is editable and has no version; a **released** release is immutable and has a version. \"Release `1.4.0`\" means the released one. - **Version**: the number of a released release, its `version` (`1.4.0`), a SemVer core version, or a patch release number (`1.3.1-gemeente-x.1`, see \"Versions and version ranges\"). A **version range**, `versionRange` (`^1.4.0`), selects the highest release that satisfies it, for a request that renders; it never matches a draft. - **Content hash**: what identifies a released release, its `contentHash` (`v6:…`), a hash of its content alone, not of its name or number: two releases with one content hash are the same release, whatever they are called. Names and numbers point at content hashes. - **Releasing**: turning a draft into a released release, as a version. A release keeps its id, its `releaseId`, assigned by the server, and its name when it is released, so a draft released as `1.4.1` is the same release, addressed by its `releaseId` or by `1.4.1`. - **Publishing**: making a catalog available in a registry, for other tenants and installations to install from. Only released releases are ever published; releasing is not publishing. - **Base**: the release a draft started from; its changes are measured against it. A draft is **behind** a release whose changes it may lack (see \"Releases\"). A changed resource is **ready** once someone marks it reviewed; a draft is released only when it changed something and all its changes are (`getCatalogChanges`). - **Editable** catalogs: every catalog has releases and drafts, wherever its releases come from (its **source**: an exchange, a registry, a file, or the server itself). Whether a catalog can be changed depends on the installation, which may only receive and run releases, and on whether the server supplies the catalog itself (`CatalogDto.editable`, `readOnlyReason`). - **Environment**: where documents are generated for a purpose, such as `staging` or `production`. A **deployment** makes an environment serve a release of a catalog; a request through the environment renders what it serves. - **Template**: one kind of document, with its data contract (the JSON Schema its data must meet) and data examples. A **variant** is one rendering of a template, for a language or a brand, chosen by its key or by **attributes** (such as `locale`); an attribute\'s values may come from a **code list** of `{code, label}` entries. A **stencil** is reusable template content, a **theme** a reusable set of styles, and a **preset** a named block style a catalog declares and its themes style. - **Consumer** (experimental): an application registered in a tenant, with its own permissions. ## Getting started 1. **Get an API key** from a tenant manager. A key belongs to one tenant and carries the roles it was issued with: `CONTENT_VIEWER` to find templates and read jobs and documents, and `DOCUMENT_GENERATOR` to generate. 2. **Send these headers** on every request (the client libraries set all but the key): ``` Authorization: ApiKey <key> Accept: application/vnd.epistola.v2+json Content-Type: application/vnd.epistola.v2+json (with a request body) User-Agent: epistola-contract/2.0.0 your-app/1.0 X-EP-Node-Id: <this host or pod> ``` 3. **Find your template.** `GET /tenants/{tenantKey}/catalogs` lists the catalogs, each with its `registry`, `namespace`, `catalogKey` and `highestVersion`. `GET /tenants/{tenantKey}/catalogs/{registry}/{namespace}/{catalogKey}/releases/{release}/templates`, with that version as `{release}`, lists that release\'s templates, and `getTemplate` shows a template\'s data contract. 4. **Generate.** `POST /tenants/{tenantKey}/documents/generate` with the template and its data: ```json {\"namespace\": \"acme-corp\", \"catalogKey\": \"letters\", \"templateKey\": \"invoice\", \"variantKey\": \"english\", \"data\": {\"customer\": {\"name\": \"Jane Smith\"}}} ``` It answers `202` with a `requestId` and, in `Location`, the job\'s address. Without a `versionRange` or an `environmentKey`, the catalog\'s highest release renders. 5. **Poll the job**, `GET /tenants/{tenantKey}/documents/jobs/{requestId}`, until `request.status` is `completed` (or `failed` or `cancelled`). Each item names its `documentId`. 6. **Download** the PDF: `GET /tenants/{tenantKey}/documents/{documentId}`. `validateTemplateData` checks data against a template\'s contract before you submit it, and `previewDocument` renders one document synchronously, for previews only. For high volume, poll no jobs: collect finished results as a stream instead (`collectGenerationResults`), each delivered to the node that asked for it and acknowledged when handled. That is the advanced path; the client libraries\' result collectors implement it. ## Template model A variant\'s content (`getVariantContent`, `updateVariantContent`) and a stencil\'s are a template document: a flat graph of nodes and slots, linked by id. A node is one block, of a component type such as `text`, `table` or `conditional`; a slot is a named place in a node that holds child nodes, such as a table\'s `cell-0-1` or a conditional\'s `body` and `else`. The catalog contract\'s [component registry](https://github.com/epistola-app/epistola-contract/blob/main/contracts/catalog/registry/component-registry.json) and [style registry](https://github.com/epistola-app/epistola-contract/blob/main/contracts/catalog/registry/style-registry.json) define every component and style, with examples, and the [template model guide](https://github.com/epistola-app/epistola-contract/blob/main/contracts/api/docs/template-model.md) walks through a complete letter: the example `updateVariantContent` shows. ## Media types The media type carries the API\'s major version. Contract 2.x uses `application/vnd.epistola.v2+json`, and `application/vnd.epistola.v2+ndjson` for the result stream, in `Accept` and in `Content-Type`. Problems are `application/problem+json`. ## Client identity Every request identifies the client with two headers: - **`User-Agent`** (required): [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#name-user-agent) product tokens, the first of which **must** be `epistola-contract/{version}`, the contract version the client was built against. Further tokens describe the rest of the stack: `epistola-contract/x.y.z valtimo-epistola-plugin/1.2.0 gzac/5.0.0`. - **`X-EP-Node-Id`** (required): the client node, such as its Kubernetes pod name, container id or hostname. The client libraries set both, the contract version and the hostname; an application can append its own product tokens and override the node id. ## Releases A catalog consists of releases, addressed as `/catalogs/{registry}/{namespace}/{catalogKey}/releases/{release}`, with the catalog\'s resources below each. A draft is addressed by its `releaseId`; a released release by its `releaseId` or its version, which address the same release. Every write to a released release is refused with 409. - A catalog that can be changed has **any number of drafts**, each named, each started from a released release (its base) or from another draft (`createCatalogRelease`). The base never moves. `listCatalogReleases` lists a catalog\'s releases, drafts included, each with its `status` (`?status=draft` for the drafts only) and, once released, its `contentHash` (`?contentHash=` for the releases with that content); a catalog (`CatalogDto`) does not list them. - **Any draft can be released.** Its version follows from the kind of change against its base: fixes raise the patch, additions the minor, anything that breaks callers the major (`previewCatalogDraftRelease`). The author may choose a higher version, never a lower one or one another release has. A fix to an older line is a draft from a release of that line: from `1.4.0`, while `1.5.0` and `2.0.0` exist, it is released as `1.4.1`. - **Drafts are independent copies**: releasing one changes no other. A draft is **behind** each release whose version is between its base and the version it would get, and each release released after it was started whose version is below that one; it lacks their changes unless an author applied them by hand. `getCatalogRelease` lists them, and releasing a draft that is behind must acknowledge them. - **Merging a release into a draft** (alpha, `x-experimental`): `previewCatalogDraftMerge` shows, per resource, per catalog setting (default theme and presets, entries of type `catalog`) and per catalog used (entries of type `catalogDependency`), each with the entries it goes with (`needs`), against the merge base (the closest release both descend from), what only the draft changed (`ours`), what only the release changed (`theirs`) and what both changed differently (`conflict`); `mergeIntoCatalogDraft` takes theirs and applies a resolution, `ours` or `theirs`, per conflict. The draft then contains the release and is no longer behind it; its base does not move. The preview\'s `token`, sent back as `expectedToken`, makes the merge apply what the preview showed or nothing (`merge-preview-outdated`). A conflict can also be resolved to content combined from its sides (`getCatalogDraftMergeSides`, then `mergedContent`), reviewed before the draft is released. The merge needs the merge base installed; the preview names one that is not (`missingBase`), and the merge is refused with `merge-base-missing`. - **Release registries** (alpha, `x-experimental`, ADR 0008) move releases between installations: an Epistola Exchange the installation is connected to, or a container registry it is configured with (`listReleaseRegistries`). A released release is published to one (`publishReleaseToRegistry`), and another installation lists the releases of a catalog there (`listRegistryReleases`) and installs one (`installRegistryRelease`) as an import does. A release registry is named by the installation; it is not the `{registry}` of a catalog\'s name. - **Quality profiles** (alpha, `x-experimental`, contract ADR 0010) record how an organisation writes: rules with a plain-language intent, a severity and extras per kind of checking system (`listQualityProfiles` and the rest of the group). A release binds the profiles every template in it is checked against, and a template adds its own (`quality` on `CatalogReleaseDto` and `TemplateDto`). Documents are rendered from releases, and a version range never matches a draft. A draft renders only in a preview that names its `releaseId`, and in an environment it is deployed to. Importing a catalog archive (`importCatalog`) installs the release the archive carries, at its version, beside the releases the tenant already has; it never creates or changes a draft. A catalog with a source (`CatalogDto.source`) installs releases from it the same way (`installCatalogRelease`), and `listAvailableCatalogReleases` lists those the tenant does not have yet, older lines included. Nothing is updated in place or removed: deploying decides what an environment serves. A release keeps its id and number wherever it moves, so it is the same release in every installation. There are no catalog types: receiving releases works whether or not the catalog can be changed, and every write to one that cannot is refused with 409 `catalog-read-only`. ## Deploying An environment serves releases of catalogs (`deployCatalogRelease`): released ones, several of one catalog if need be, and at most one draft per catalog, rendered live. A request through the environment (`environmentKey`) renders: - with **no `versionRange`**: the catalog\'s deployed draft if there is one, else the highest release the environment serves; - with a **range or an exact version**: the highest served release that satisfies it. A draft never matches: it has no version. Rollback is undeploying the newer release. Deploying a draft replaces the draft the environment served for that catalog, and an environment marked **production** (`EnvironmentDto.production`) serves no draft. A document rendered from a draft carries the draft\'s `releaseId` and its name at render time (`releaseName`), with a null `version`, and its PDF a preview watermark. Releasing a deployed draft keeps its `releaseId`, so the environment then serves it as released; discarding the draft ends the deployment. ## Versions and version ranges A version (`ReleaseVersion`) is a SemVer core version, `MAJOR.MINOR.PATCH` without leading zeros, as the holder of the catalog\'s namespace issues it, or a **patch release** number, `MAJOR.MINOR.PATCH-<namespace>.<N>`, at most 128 characters. Wherever the contract names one exact version it has that form, and is called `version`; every member called `version` is one. A patch release is how someone who does not hold a catalog\'s namespace fixes a release of it (a municipality fixing a supplier\'s catalog): it is labelled with a namespace they hold, and numbered from 1, `1.3.1-gemeente-x.1`. As a SemVer pre-release it sorts below its core and above every release below that, `1.3.0` < `1.3.1-gemeente-x.1` < `1.3.1`, so the holder\'s next release supersedes it, and the two never collide: the holder never uses a label, the patcher never issues a plain number (contract ADR 0003). Which namespaces a tenant holds is the installation\'s to know; the contract checks the shape. \"Highest\" always means by this order, a patch release included. A request that selects a release to render or check (generation, preview, validation) takes a version range, `versionRange`, in the npm SemVer range grammar: an exact version (`1.4.0`), a caret (`^1.4.0`), a tilde (`~1.4.0`), comparators (`>=1.0.0 <2.0.0`), a hyphen range (`1.0.0 - 2.0.0`), or a `||` union of these. The highest release that satisfies it renders, and responses name the exact release used. A range is at most 256 characters, so an exact release number (at most 128) always fits, and a comparator pair of patch release numbers usually does. A range matches a patch release as npm matches a pre-release: only when one of its comparators names a pre-release of the same `MAJOR.MINOR.PATCH`, such as the exact number (`1.3.1-gemeente-x.1`) or `>=1.3.1-gemeente-x.1 <1.4.0`; `^1.3.0` never selects one. ## Catalog dependencies A catalog that uses another catalog\'s resources declares that catalog once, with the exact release of it that it renders with (`version`), never a range. References into the other catalog name the catalog but no version, so a release renders with exactly the releases its declarations pin. In a draft, a declaration may name a draft of the other catalog instead (`releaseId`), to build on work that is not released yet. A released release pins only released releases: releasing such a draft is refused (`release-dependencies-unreleased`) unless the request releases those drafts along with it (`releaseDependencies`), in one transaction. ## Catalog identity A catalog\'s key alone is not unique: two publishers can each publish `letters`. The registry and the namespace complete its name, and the same namespace in two registries is two namespaces. Which registry is a server\'s default is configuration; in a path, `/catalogs/~/acme-corp/letters/…` and `/catalogs/exchange.epistola.app/acme-corp/letters/…` address the same catalog when `exchange.epistola.app` is the default, and `~` may be sent percent-encoded as `%7E`. In a body, a catalog is named by separate `registry`, `namespace` and `catalogKey` members, and a reference into another catalog by an alias: 1. **A request that names a catalog** (a generation or preview target, a dependency declaration) may omit `registry`, or send null, for the default registry. (An import\'s `registry` defaults to the one the archive names.) 2. **A reference from one catalog\'s release to a resource of another** names that catalog by the **alias** the release\'s dependency declarations give it (`CatalogAlias`, in the member `catalogKey`), never by registry or namespace: a template model\'s `themeRef`, its stencil and image nodes, a `fontFamily` (catalog content, portable catalog wire v8, contract ADR 0003), and the references this API reads and writes beside it, a release\'s default theme (`CatalogThemeReference`), an attribute\'s code-list binding and an attribute criterion in variant selection (`VariantSelectionAttribute`, resolved through the release that renders). Omitted or null, or the catalog\'s own key, is the catalog itself. A declaration (`CatalogDependencyDto`, `listCatalogDependencies`) maps each alias to the catalog\'s full name and the release it pins; that is where a client finds the name. Because content names the alias, it means the same in every installation and under any name, and pinning another release changes no content. An alias is by default the catalog\'s key (`CatalogDependencyRequirement.alias`). Responses write every registry in full, by its name, never `~`, so a value read from one installation means the same catalog on another. Content documents are returned as stored. ## Concurrency Updates can be made conditional. Templates, variants, themes, stencils, code lists, attributes, releases, environments, tenants and consumers carry a revision, which reading or updating one returns as a strong `ETag` header: a quoted decimal integer such as `\"7\"`. Send it back as `If-Match` on an update: if the resource changed since you read it, the update is refused with 412 `resource-modified` and nothing changes; read it again, reapply your change and retry. Without `If-Match` an update applies unconditionally, and the last write wins. What a revision covers: - a template: its own properties, data contract and data examples; - a variant: its title, description, attributes and template model, so `getVariant` and `getVariantContent` return the same `ETag`, and `updateVariant` and `updateVariantContent` take either; - a release: its name, default theme, presets and dependency declarations, so `getCatalogRelease` and `listCatalogDependencies` return the same `ETag`, and `updateCatalogRelease` and `updateCatalogDependencies` take either; - a code list: its properties and entries, whether each is hidden included, so `updateCodeListEntryHidden` takes the code list\'s `ETag`; - an environment: its name and production mark, not what it serves. ## Authentication Credentials go in the `Authorization` header: - **API key**, `Authorization: ApiKey <key>`: the supported method. A tenant manager issues each key for one tenant, with a set of tenant roles. The scheme name is case-insensitive. - **Bearer JWT** (**experimental**), `Authorization: Bearer <jwt>`: issued by an OAuth 2.0 identity provider, or self-signed with a key pair registered through the Consumers API. The [authentication guide](https://github.com/epistola-app/epistola-contract/blob/main/contracts/api/docs/auth.md) has the details. ## Authorization Each operation names the permissions it requires (`x-required-permissions`), such as `TEMPLATE_VIEW`, `TEMPLATE_EDIT`, `DOCUMENT_GENERATE` and `CATALOG_MANAGE`. A caller has them through its tenant roles (`CONTENT_VIEWER`, `CONTENT_AUTHOR`, `DOCUMENT_GENERATOR`, `CONTENT_PUBLISHER`, `TENANT_ADMINISTRATOR`), the roles stored on its API key. Managing tenants needs the platform role `TENANT_MANAGER`. A request member that needs a permission beyond its operation\'s says so in its description: changing a quality binding (`quality`, alpha) needs `QUALITY_EDIT` as well. ## Errors Errors are [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem details, with `Content-Type: application/problem+json`: - `type` (URI): what went wrong, the stable value to switch on. It is `https://epistola.app/errors/{slug}`, which documents the problem type; - `title`: a short summary; - `status`: the HTTP status code; - `detail` (optional): what happened this time; - `instance` (optional): this occurrence; - `help` (optional): the type\'s page with this request\'s context, such as the `operation` that answered, for hints that fit it. It names this contract\'s terms only, never a value. A problem may add members of its own, such as the field-level `errors` of a `validation-error`; ignore members you do not recognize. The problem types are listed, machine-readably, in this document\'s `x-problem-types` extension, and in the [error type registry](https://github.com/epistola-app/epistola-contract/blob/main/contracts/api/docs/error-types.md). A server answers only with the types registered there. A type names a problem a caller can act on differently; anything else is the generic type of its status, so a missing resource is `not-found` whichever resource it is, and a refused authorization `forbidden`. New types may be added in a minor version: handle a type you do not recognize by its `status`, as the generic type of that status, and keep a fallback when switching on them. Six statuses are not listed on each operation, because any operation may answer them: 405 `method-not-allowed`, 406 `not-acceptable`, 413 `content-too-large` and 415 `unsupported-media-type` (the last two where it takes a body), 500 `internal-error`, and 501 `operation-not-implemented`. `x-problem-types` marks them `anyOperation: true`. ## Compatibility within 2.x A minor version adds and never takes away, so a client built against an earlier 2.x keeps working against a later 2.x server. A minor version may add: - operations, and optional request members and query parameters; - **response members**: ignore a member you do not recognize; - **enum values in responses**: a status, kind or reason may gain a value. Treat one you do not recognize as unknown rather than failing, and keep a default branch when switching on an enum. The client libraries read it without failing: the Kotlin, Jakarta and .NET enums as their `unknown_default_open_api` member (`UNKNOWN_DEFAULT_OPEN_API` in Jakarta, `UnknownDefaultOpenApi` in .NET), the Python client as an unknown member that keeps the value, and the Node.js client as the string received; - problem types and validation codes (see \"Errors\"). It never removes or renames a member or an enum value, makes an optional request member required, or narrows what a request may send. A server refuses a request enum value it does not know with 400, so never send `unknown_default_open_api`. Operations and members marked `x-experimental` are outside these rules. ## Experimental parts and server support Operations and members marked `x-experimental: true`, the consumer model (Bearer JWT and the Consumers API) among them, may still change. Epistola Suite, the server that implements this contract, may not implement them yet, nor every part of the rest: installing missing dependency releases when deploying, recording who requested a document, an attribute\'s `description`, listing a stencil\'s usage in a released release, and a dependency alias other than the catalog\'s key among them. An operation a server does not implement yet answers 501 `operation-not-implemented`.
|
|
3
|
+
* Epistola generates documents, PDFs, from templates. Authors design the templates; applications send data and get documents back. This API manages templates and the catalogs that hold them, and generates documents from them, asynchronously and at volume. ## Glossary - **Tenant**: an organisation, isolated from every other. Everything else lives in one, under `/tenants/{tenantKey}`. - **Catalog**: a set of templates and everything they use, released as a whole. A catalog is named by three parts together: a **registry**, the DNS name of where it is published (`exchange.epistola.app`, or a domain that publishes its own, `acme.com`); a **namespace**, its publisher within that registry (`acme-corp`); and its key (`letters`). In a path, `~` stands for the server\'s default registry. The registry `local` names catalogs that never leave the organisation: valid within its own installations, refused by an Exchange. - **Release**: the catalog as a whole at one point, in one of two statuses. A **draft release**, or **draft**, is editable and has no version; a **released** release is immutable and has a version. \"Release `1.4.0`\" means the released one. - **Version**: the number of a released release, its `version` (`1.4.0`), a SemVer core version, or a patch release number (`1.3.1-gemeente-x.1`, see \"Versions and version ranges\"). A **version range**, `versionRange` (`^1.4.0`), selects the highest release that satisfies it, for a request that renders; it never matches a draft. - **Content hash**: what identifies a released release, its `contentHash` (`v6:…`), a hash of its content alone, not of its name or number: two releases with one content hash are the same release, whatever they are called. Names and numbers point at content hashes. - **Releasing**: turning a draft into a released release, as a version. A release keeps its id, its `releaseId`, assigned by the server, and its name when it is released, so a draft released as `1.4.1` is the same release, addressed by its `releaseId` or by `1.4.1`. - **Publishing**: making a catalog available in a registry, for other tenants and installations to install from. Only released releases are ever published; releasing is not publishing. - **Base**: the release a draft started from; its changes are measured against it. A draft is **behind** a release whose changes it may lack (see \"Releases\"). A changed resource is **ready** once someone marks it reviewed; a draft is released only when it changed something and all its changes are (`getCatalogChanges`). - **Editable** catalogs: every catalog has releases and drafts, wherever its releases come from (its **source**: an exchange, a registry, a file, or the server itself). Whether a catalog can be changed depends on the installation, which may only receive and run releases, and on whether the server supplies the catalog itself (`CatalogDto.editable`, `readOnlyReason`). - **Environment**: where documents are generated for a purpose, such as `staging` or `production`. A **deployment** makes an environment serve a release of a catalog; a request through the environment renders what it serves. - **Template**: one kind of document, with its data contract (the JSON Schema its data must meet) and data examples. A **variant** is one rendering of a template, for a language or a brand, chosen by its key or by **attributes** (such as `locale`); an attribute\'s values may come from a **code list** of `{code, label}` entries. A **stencil** is reusable template content, a **theme** a reusable set of styles, and a **preset** a named block style a catalog declares and its themes style. - **Consumer** (experimental): an application registered in a tenant, with its own permissions. ## Getting started 1. **Get an API key** from a tenant manager. A key belongs to one tenant and carries the roles it was issued with: `CONTENT_VIEWER` to find templates, and `DOCUMENT_GENERATOR` to generate and to read jobs and documents (`DOCUMENT_READER` reads them without generating). 2. **Send these headers** on every request (the client libraries set all but the key): ``` Authorization: ApiKey <key> Accept: application/vnd.epistola.v2+json Content-Type: application/vnd.epistola.v2+json (with a request body) User-Agent: epistola-contract/2.0.0 your-app/1.0 X-EP-Node-Id: <this host or pod> ``` 3. **Find your template.** `GET /tenants/{tenantKey}/catalogs` lists the catalogs, each with its `registry`, `namespace`, `catalogKey` and `highestVersion`. `GET /tenants/{tenantKey}/catalogs/{registry}/{namespace}/{catalogKey}/releases/{release}/templates`, with that version as `{release}`, lists that release\'s templates, and `getTemplate` shows a template\'s data contract. 4. **Generate.** `POST /tenants/{tenantKey}/documents/generate` with the template and its data: ```json {\"namespace\": \"acme-corp\", \"catalogKey\": \"letters\", \"templateKey\": \"invoice\", \"variantKey\": \"english\", \"data\": {\"customer\": {\"name\": \"Jane Smith\"}}} ``` It answers `202` with a `requestId` and, in `Location`, the job\'s address. Without a `versionRange` or an `environmentKey`, the catalog\'s highest release renders. 5. **Poll the job**, `GET /tenants/{tenantKey}/documents/jobs/{requestId}`, until its `status` is `completed` (or `failed` or `cancelled`). Its items, `GET /tenants/{tenantKey}/documents/jobs/{requestId}/items`, each name their `documentId`. 6. **Download** the PDF: `GET /tenants/{tenantKey}/documents/{documentId}/content`. `validateTemplateData` checks data against a template\'s contract before you submit it, and `previewDocument` renders one document synchronously, for previews only. For high volume, poll no jobs: collect finished results as a stream instead (`collectGenerationResults`), each delivered to the node that asked for it and acknowledged when handled. That is the advanced path; the client libraries\' result collectors implement it. ## Template model A variant\'s content (`getVariantContent`, `updateVariantContent`) and a stencil\'s are a template document: a flat graph of nodes and slots, linked by id. A node is one block, of a component type such as `text`, `table` or `conditional`; a slot is a named place in a node that holds child nodes, such as a table\'s `cell-0-1` or a conditional\'s `body` and `else`. The catalog contract\'s [component registry](https://github.com/epistola-app/epistola-contract/blob/main/contracts/catalog/registry/component-registry.json) and [style registry](https://github.com/epistola-app/epistola-contract/blob/main/contracts/catalog/registry/style-registry.json) define every component and style, with examples, and the [template model guide](https://github.com/epistola-app/epistola-contract/blob/main/contracts/api/docs/template-model.md) walks through a complete letter: the example `updateVariantContent` shows. ## Media types The media type carries the API\'s major version. Contract 2.x uses `application/vnd.epistola.v2+json`, and `application/vnd.epistola.v2+ndjson` for the result stream, in `Accept` and in `Content-Type`. Problems are `application/problem+json`. ## Client identity Every request identifies the client with two headers: - **`User-Agent`** (required): [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#name-user-agent) product tokens, the first of which **must** be `epistola-contract/{version}`, the contract version the client was built against. Further tokens describe the rest of the stack: `epistola-contract/x.y.z valtimo-epistola-plugin/1.2.0 gzac/5.0.0`. - **`X-EP-Node-Id`** (required): the client node, such as its Kubernetes pod name, container id or hostname. The client libraries set both, the contract version and the hostname; an application can append its own product tokens and override the node id. ## Releases A catalog consists of releases, addressed as `/catalogs/{registry}/{namespace}/{catalogKey}/releases/{release}`, with the catalog\'s resources below each. A draft is addressed by its `releaseId`; a released release by its `releaseId` or its version, which address the same release. Every write to a released release is refused with 409. - A catalog that can be changed has **any number of drafts**, each named, each started from a released release (its base) or from another draft (`createCatalogRelease`). The base never moves. `listCatalogReleases` lists a catalog\'s releases, drafts included, each with its `status` (`?status=draft` for the drafts only) and, once released, its `contentHash` (`?contentHash=` for the releases with that content); a catalog (`CatalogDto`) does not list them. - **Any draft can be released.** Its version follows from the kind of change against its base: fixes raise the patch, additions the minor, anything that breaks callers the major (`previewCatalogDraftRelease`). The author may choose a higher version, never a lower one or one another release has. A fix to an older line is a draft from a release of that line: from `1.4.0`, while `1.5.0` and `2.0.0` exist, it is released as `1.4.1`. - **Drafts are independent copies**: releasing one changes no other. A draft is **behind** each release whose version is between its base and the version it would get, and each release released after it was started whose version is below that one; it lacks their changes unless an author applied them by hand. `getCatalogRelease` lists them, and releasing a draft that is behind must acknowledge them. - **Merging a release into a draft** (alpha, `x-experimental`): `previewCatalogDraftMerge` shows, per resource, per catalog setting (default theme and presets, entries of type `catalog`) and per catalog used (entries of type `catalogDependency`), each with the entries it goes with (`needs`), against the merge base (the closest release both descend from), what only the draft changed (`ours`), what only the release changed (`theirs`) and what both changed differently (`conflict`); `mergeIntoCatalogDraft` takes theirs and applies a resolution, `ours` or `theirs`, per conflict. The draft then contains the release and is no longer behind it; its base does not move. The preview\'s `token`, sent back as `expectedToken`, makes the merge apply what the preview showed or nothing (`merge-preview-outdated`). A conflict can also be resolved to content combined from its sides (`getCatalogDraftMergeSides`, then `mergedContent`), reviewed before the draft is released. The merge needs the merge base installed; the preview names one that is not (`missingBase`), and the merge is refused with `merge-base-missing`. - **Release registries** (alpha, `x-experimental`, ADR 0008) move releases between installations: an Epistola Exchange the installation is connected to, or a container registry it is configured with (`listReleaseRegistries`). A released release is published to one (`publishReleaseToRegistry`), and another installation lists the releases of a catalog there (`listRegistryReleases`) and installs one (`installRegistryRelease`) as an import does. A release registry is named by the installation; it is not the `{registry}` of a catalog\'s name. - **Quality profiles** (alpha, `x-experimental`, contract ADR 0010) record how an organisation writes: rules with a plain-language intent, a severity and extras per kind of checking system (`listQualityProfiles` and the rest of the group). A release binds the profiles every template in it is checked against, and a template adds its own (`quality` on `CatalogReleaseDto` and `TemplateDto`). Documents are rendered from releases, and a version range never matches a draft. A draft renders only in a preview that names its `releaseId`, and in an environment it is deployed to. Importing a catalog archive (`importCatalog`) installs the release the archive carries, at its version, beside the releases the tenant already has; it never creates or changes a draft. A catalog with a source (`CatalogDto.source`) installs releases from it the same way (`installCatalogRelease`), and `listAvailableCatalogReleases` lists those the tenant does not have yet, older lines included. Nothing is updated in place or removed: deploying decides what an environment serves. A release keeps its id and number wherever it moves, so it is the same release in every installation. There are no catalog types: receiving releases works whether or not the catalog can be changed, and every write to one that cannot is refused with 409 `catalog-read-only`. ## Deploying An environment serves releases of catalogs (`deployCatalogRelease`): released ones, several of one catalog if need be, and at most one draft per catalog, rendered live. A request through the environment (`environmentKey`) renders: - with **no `versionRange`**: the catalog\'s deployed draft if there is one, else the highest release the environment serves; - with a **range or an exact version**: the highest served release that satisfies it. A draft never matches: it has no version. Rollback is undeploying the newer release. Deploying a draft replaces the draft the environment served for that catalog, and an environment marked **production** (`EnvironmentDto.production`) serves no draft. A document rendered from a draft carries the draft\'s `releaseId` and its name at render time (`releaseName`), with a null `version`, and its PDF a preview watermark. Releasing a deployed draft keeps its `releaseId`, so the environment then serves it as released; discarding the draft ends the deployment. ## Versions and version ranges A version (`ReleaseVersion`) is a SemVer core version, `MAJOR.MINOR.PATCH` without leading zeros, as the holder of the catalog\'s namespace issues it, or a **patch release** number, `MAJOR.MINOR.PATCH-<namespace>.<N>`, at most 128 characters. Wherever the contract names one exact version it has that form, and is called `version`; every member called `version` is one. A patch release is how someone who does not hold a catalog\'s namespace fixes a release of it (a municipality fixing a supplier\'s catalog): it is labelled with a namespace they hold, and numbered from 1, `1.3.1-gemeente-x.1`. As a SemVer pre-release it sorts below its core and above every release below that, `1.3.0` < `1.3.1-gemeente-x.1` < `1.3.1`, so the holder\'s next release supersedes it, and the two never collide: the holder never uses a label, the patcher never issues a plain number (contract ADR 0003). Which namespaces a tenant holds is the installation\'s to know; the contract checks the shape. \"Highest\" always means by this order, a patch release included. A request that selects a release to render or check (generation, preview, validation) takes a version range, `versionRange`, in the npm SemVer range grammar: an exact version (`1.4.0`), a caret (`^1.4.0`), a tilde (`~1.4.0`), comparators (`>=1.0.0 <2.0.0`), a hyphen range (`1.0.0 - 2.0.0`), or a `||` union of these. The highest release that satisfies it renders, and responses name the exact release used. A range is at most 256 characters, so an exact release number (at most 128) always fits, and a comparator pair of patch release numbers usually does. A range matches a patch release as npm matches a pre-release: only when one of its comparators names a pre-release of the same `MAJOR.MINOR.PATCH`, such as the exact number (`1.3.1-gemeente-x.1`) or `>=1.3.1-gemeente-x.1 <1.4.0`; `^1.3.0` never selects one. ## Catalog dependencies A catalog that uses another catalog\'s resources declares that catalog once, with the exact release of it that it renders with (`version`), never a range. References into the other catalog name the catalog but no version, so a release renders with exactly the releases its declarations pin. In a draft, a declaration may name a draft of the other catalog instead (`releaseId`), to build on work that is not released yet. A released release pins only released releases: releasing such a draft is refused (`release-dependencies-unreleased`) unless the request releases those drafts along with it (`releaseDependencies`), in one transaction. ## Catalog identity A catalog\'s key alone is not unique: two publishers can each publish `letters`. The registry and the namespace complete its name, and the same namespace in two registries is two namespaces. Which registry is a server\'s default is configuration; in a path, `/catalogs/~/acme-corp/letters/…` and `/catalogs/exchange.epistola.app/acme-corp/letters/…` address the same catalog when `exchange.epistola.app` is the default, and `~` may be sent percent-encoded as `%7E`. In a body, a catalog is named by separate `registry`, `namespace` and `catalogKey` members, and a reference into another catalog by an alias: 1. **A request that names a catalog** (a generation or preview target, a dependency declaration) may omit `registry`, or send null, for the default registry. (An import\'s `registry` defaults to the one the archive names.) 2. **A reference from one catalog\'s release to a resource of another** names that catalog by the **alias** the release\'s dependency declarations give it (`CatalogAlias`, in the member `catalogKey`), never by registry or namespace: a template model\'s `themeRef`, its stencil and image nodes, a `fontFamily` (catalog content, portable catalog wire v8, contract ADR 0003), and the references this API reads and writes beside it, a release\'s default theme (`CatalogThemeReference`), an attribute\'s code-list binding and an attribute criterion in variant selection (`VariantSelectionAttribute`, resolved through the release that renders). Omitted or null, or the catalog\'s own key, is the catalog itself. A declaration (`CatalogDependencyDto`, `listCatalogDependencies`) maps each alias to the catalog\'s full name and the release it pins; that is where a client finds the name. Because content names the alias, it means the same in every installation and under any name, and pinning another release changes no content. An alias is by default the catalog\'s key (`CatalogDependencyRequirement.alias`). Responses write every registry in full, by its name, never `~`, so a value read from one installation means the same catalog on another. Content documents are returned as stored. ## Concurrency Updates can be made conditional. Templates, variants, themes, stencils, code lists, attributes, releases, environments, tenants and consumers carry a revision, which reading or updating one returns as a strong `ETag` header: a quoted decimal integer such as `\"7\"`. Send it back as `If-Match` on an update: if the resource changed since you read it, the update is refused with 412 `resource-modified` and nothing changes; read it again, reapply your change and retry. Without `If-Match` an update applies unconditionally, and the last write wins. What a revision covers: - a template: its own properties, data contract and data examples; - a variant: its name, description, attributes and template model, so `getVariant` and `getVariantContent` return the same `ETag`, and `updateVariant` and `updateVariantContent` take either; - a release: its name, default theme, presets and dependency declarations, so `getCatalogRelease` and `listCatalogDependencies` return the same `ETag`, and `updateCatalogRelease` and `updateCatalogDependencies` take either; - a code list: its properties and entries, whether each is hidden included, so `updateCodeListEntryHidden` takes the code list\'s `ETag`; - an environment: its name and production mark, not what it serves. ## Authentication Credentials go in the `Authorization` header: - **API key**, `Authorization: ApiKey <key>`: the supported method. A tenant manager issues each key for one tenant, with a set of tenant roles. The scheme name is case-insensitive. - **Bearer JWT** (**experimental**), `Authorization: Bearer <jwt>`: issued by an OAuth 2.0 identity provider, or self-signed with a key pair registered through the Consumers API. The [authentication guide](https://github.com/epistola-app/epistola-contract/blob/main/contracts/api/docs/auth.md) has the details. ## Authorization Each operation names the permissions it requires (`x-required-permissions`), such as `TEMPLATE_VIEW`, `TEMPLATE_EDIT`, `DOCUMENT_GENERATE` and `CATALOG_MANAGE`. A caller has them through its tenant roles (`CONTENT_VIEWER`, `CONTENT_AUTHOR`, `DOCUMENT_GENERATOR`, `DOCUMENT_READER`, `CONTENT_PUBLISHER`, `TENANT_ADMINISTRATOR`), the roles stored on its API key. Managing tenants needs the platform role `TENANT_MANAGER`. A request member that needs a permission beyond its operation\'s says so in its description: changing a quality binding (`quality`, alpha) needs `QUALITY_EDIT` as well. ## Errors Errors are [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem details, with `Content-Type: application/problem+json`: - `type` (URI): what went wrong, the stable value to switch on. It is `https://epistola.app/errors/{slug}`, which documents the problem type; - `title`: a short summary; - `status`: the HTTP status code; - `detail` (optional): what happened this time; - `instance` (optional): this occurrence; - `help` (optional): the type\'s page with this request\'s context, such as the `operation` that answered, for hints that fit it. It names this contract\'s terms only, never a value. A problem may add members of its own, such as the field-level `errors` of a `validation-error`; ignore members you do not recognize. The problem types are listed, machine-readably, in this document\'s `x-problem-types` extension, and in the [error type registry](https://github.com/epistola-app/epistola-contract/blob/main/contracts/api/docs/error-types.md). A server answers only with the types registered there. A type names a problem a caller can act on differently; anything else is the generic type of its status, so a missing resource is `not-found` whichever resource it is, and a refused authorization `forbidden`. New types may be added in a minor version: handle a type you do not recognize by its `status`, as the generic type of that status, and keep a fallback when switching on them. Six statuses are not listed on each operation, because any operation may answer them: 405 `method-not-allowed`, 406 `not-acceptable`, 413 `content-too-large` and 415 `unsupported-media-type` (the last two where it takes a body), 500 `internal-error`, and 501 `operation-not-implemented`. `x-problem-types` marks them `anyOperation: true`. ## Compatibility within 2.x A minor version adds and never takes away, so a client built against an earlier 2.x keeps working against a later 2.x server. A minor version may add: - operations, and optional request members and query parameters; - **response members**: ignore a member you do not recognize; - **enum values in responses**: a status, kind or reason may gain a value. Treat one you do not recognize as unknown rather than failing, and keep a default branch when switching on an enum. The client libraries read it without failing: the Kotlin, Jakarta and .NET enums as their `unknown_default_open_api` member (`UNKNOWN_DEFAULT_OPEN_API` in Jakarta, `UnknownDefaultOpenApi` in .NET), the Python client as an unknown member that keeps the value, and the Node.js client as the string received; - problem types and validation codes (see \"Errors\"); - roles and permissions (`x-authorization`), and resources and levels of a consumer\'s permissions (`ConsumerPermissions`). An operation keeps requiring what it required: when a minor version moves an operation to a new permission, every role that granted the old one grants the new one; - a catalog wire version (`x-epistola-catalog-contract`). Every new component type and every new member of a template document (`TemplateDocument`, `Node`, `Slot`) raises it. An installation refuses an archive of a newer wire version as a whole (`CATALOG_SCHEMA_TOO_NEW`), rather than reading part of it. It never removes or renames a member or an enum value, makes an optional request member required, or narrows what a request may send. A server refuses a request enum value it does not know with 400, so never send `unknown_default_open_api`. Operations and members marked `x-experimental` are outside these rules. A minor version adds members and parameters only after the existing ones, so the positional arguments of the generated clients keep their meaning; a major version may reorder them. A new optional parameter or member still changes the generated method and constructor signatures: rebuild against the client library you ship with, which may then ask for code changes, rather than replace its binary. A client that reads a template document and writes it back (`getVariantContent` and `updateVariantContent`, and the same for stencils) sends only the members it knows, and the write replaces the document. Edit template documents with a client at least as new as the server\'s catalog wire version, or the members it does not know are lost. ## Experimental parts and server support Operations and members marked `x-experimental: true`, the consumer model (Bearer JWT and the Consumers API) among them, may still change. Epistola Suite, the server that implements this contract, may not implement them yet, nor every part of the rest: installing missing dependency releases when deploying, recording who requested a document, listing a stencil\'s usage in a released release, and a dependency alias other than the catalog\'s key among them. An operation a server does not implement yet answers 501 `operation-not-implemented`.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.0-
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0-rc.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|