@giveitsmaller/contracts 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/asyncapi/events.yaml +455 -41
- package/availability/availability.json +586 -91
- package/dist/asyncapi/OperationType.d.ts +5 -1
- package/dist/asyncapi/OperationType.js +4 -0
- package/dist/openapi/models/AudioWatermarkDecodeRequest.d.ts +1 -1
- package/dist/openapi/models/AudioWatermarkDecodeRequest.js +1 -1
- package/dist/openapi/models/AudioWatermarkDecodeResponse.d.ts +1 -1
- package/dist/openapi/models/AudioWatermarkDecodeResponse.js +1 -1
- package/dist/openapi/models/AuthErrorResponse.d.ts +20 -1
- package/dist/openapi/models/AuthErrorResponse.js +1 -1
- package/dist/openapi/models/AuthErrorType.d.ts +1 -1
- package/dist/openapi/models/AuthErrorType.js +1 -1
- package/dist/openapi/models/AvailabilityValue.d.ts +1 -1
- package/dist/openapi/models/AvailabilityValue.js +1 -1
- package/dist/openapi/models/BalanceExhaustedResponse.d.ts +20 -1
- package/dist/openapi/models/BalanceExhaustedResponse.js +1 -1
- package/dist/openapi/models/BalanceExhaustedResponseAllOfLinks.d.ts +1 -1
- package/dist/openapi/models/BalanceExhaustedResponseAllOfLinks.js +1 -1
- package/dist/openapi/models/CallbackEventType.d.ts +1 -1
- package/dist/openapi/models/CallbackEventType.js +1 -1
- package/dist/openapi/models/ConnectionSource.d.ts +1 -1
- package/dist/openapi/models/ConnectionSource.js +1 -1
- package/dist/openapi/models/ContactRequest.d.ts +1 -1
- package/dist/openapi/models/ContactRequest.js +1 -1
- package/dist/openapi/models/ContactSubject.d.ts +1 -1
- package/dist/openapi/models/ContactSubject.js +1 -1
- package/dist/openapi/models/ContactValidationErrorResponse.d.ts +1 -1
- package/dist/openapi/models/ContactValidationErrorResponse.js +1 -1
- package/dist/openapi/models/CreateExternalImport403Response.d.ts +1 -1
- package/dist/openapi/models/CreateExternalImport403Response.js +1 -1
- package/dist/openapi/models/CreateExternalImport422Response.d.ts +23 -0
- package/dist/openapi/models/CreateExternalImport422Response.js +51 -0
- package/dist/openapi/models/CreateWorkflow422Response.d.ts +4 -2
- package/dist/openapi/models/CreateWorkflow422Response.js +15 -1
- package/dist/openapi/models/CreditTransaction.d.ts +1 -1
- package/dist/openapi/models/CreditTransaction.js +1 -1
- package/dist/openapi/models/CreditTransactionSourceBucket.d.ts +1 -1
- package/dist/openapi/models/CreditTransactionSourceBucket.js +1 -1
- package/dist/openapi/models/CreditsBalanceResponse.d.ts +1 -1
- package/dist/openapi/models/CreditsBalanceResponse.js +1 -1
- package/dist/openapi/models/CreditsBalanceSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/CreditsBalanceSuccessEnvelope.js +1 -1
- package/dist/openapi/models/CreditsUsageResponse.d.ts +1 -1
- package/dist/openapi/models/CreditsUsageResponse.js +1 -1
- package/dist/openapi/models/CreditsUsageSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/CreditsUsageSuccessEnvelope.js +1 -1
- package/dist/openapi/models/Delivery.d.ts +1 -1
- package/dist/openapi/models/Delivery.js +1 -1
- package/dist/openapi/models/DeliveryOutputRef.d.ts +1 -1
- package/dist/openapi/models/DeliveryOutputRef.js +1 -1
- package/dist/openapi/models/DeliveryPlan.d.ts +1 -1
- package/dist/openapi/models/DeliveryPlan.js +1 -1
- package/dist/openapi/models/DeliveryPlanOutput.d.ts +1 -1
- package/dist/openapi/models/DeliveryPlanOutput.js +1 -1
- package/dist/openapi/models/DeliveryPlanReason.d.ts +1 -1
- package/dist/openapi/models/DeliveryPlanReason.js +1 -1
- package/dist/openapi/models/DeliverySelection.d.ts +1 -1
- package/dist/openapi/models/DeliverySelection.js +1 -1
- package/dist/openapi/models/ErrorEnvelope.d.ts +20 -1
- package/dist/openapi/models/ErrorEnvelope.js +1 -1
- package/dist/openapi/models/EstimateQuality.d.ts +1 -1
- package/dist/openapi/models/EstimateQuality.js +1 -1
- package/dist/openapi/models/EstimateRange.d.ts +1 -1
- package/dist/openapi/models/EstimateRange.js +1 -1
- package/dist/openapi/models/ExternalDestination.d.ts +1 -1
- package/dist/openapi/models/ExternalDestination.js +1 -1
- package/dist/openapi/models/ExternalImportCreatedResponse.d.ts +1 -1
- package/dist/openapi/models/ExternalImportCreatedResponse.js +1 -1
- package/dist/openapi/models/ExternalImportCreatedSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/ExternalImportCreatedSuccessEnvelope.js +1 -1
- package/dist/openapi/models/ExternalImportRequest.d.ts +1 -1
- package/dist/openapi/models/ExternalImportRequest.js +1 -1
- package/dist/openapi/models/ExternalImportToken.d.ts +1 -1
- package/dist/openapi/models/ExternalImportToken.js +1 -1
- package/dist/openapi/models/ExternalSource.d.ts +1 -1
- package/dist/openapi/models/ExternalSource.js +1 -1
- package/dist/openapi/models/FeatureNotAvailableResponse.d.ts +26 -3
- package/dist/openapi/models/FeatureNotAvailableResponse.js +1 -1
- package/dist/openapi/models/FeatureTierRestrictedResponse.d.ts +20 -1
- package/dist/openapi/models/FeatureTierRestrictedResponse.js +1 -1
- package/dist/openapi/models/FeatureViolation.d.ts +1 -1
- package/dist/openapi/models/FeatureViolation.js +1 -1
- package/dist/openapi/models/JobDefinition.d.ts +17 -6
- package/dist/openapi/models/JobDefinition.js +1 -1
- package/dist/openapi/models/JobDownload.d.ts +1 -1
- package/dist/openapi/models/JobDownload.js +1 -1
- package/dist/openapi/models/JobInputV2.d.ts +16 -1
- package/dist/openapi/models/JobInputV2.js +1 -1
- package/dist/openapi/models/JobOutputSource.d.ts +1 -1
- package/dist/openapi/models/JobOutputSource.js +1 -1
- package/dist/openapi/models/JobResponse.d.ts +1 -1
- package/dist/openapi/models/JobResponse.js +1 -1
- package/dist/openapi/models/JobStatus.d.ts +1 -1
- package/dist/openapi/models/JobStatus.js +1 -1
- package/dist/openapi/models/JobType.d.ts +1 -1
- package/dist/openapi/models/JobType.js +1 -1
- package/dist/openapi/models/LivenessResponse.d.ts +1 -1
- package/dist/openapi/models/LivenessResponse.js +1 -1
- package/dist/openapi/models/LoginUser200Response.d.ts +1 -1
- package/dist/openapi/models/LoginUser200Response.js +1 -1
- package/dist/openapi/models/LoginUser200ResponseData.d.ts +1 -1
- package/dist/openapi/models/LoginUser200ResponseData.js +1 -1
- package/dist/openapi/models/LoginUser200ResponseDataUser.d.ts +1 -1
- package/dist/openapi/models/LoginUser200ResponseDataUser.js +1 -1
- package/dist/openapi/models/LoginUserRequest.d.ts +1 -1
- package/dist/openapi/models/LoginUserRequest.js +1 -1
- package/dist/openapi/models/LogoutUser200Response.d.ts +1 -1
- package/dist/openapi/models/LogoutUser200Response.js +1 -1
- package/dist/openapi/models/MetadataResponse.d.ts +1 -1
- package/dist/openapi/models/MetadataResponse.js +1 -1
- package/dist/openapi/models/MetadataResponseDimensions.d.ts +1 -1
- package/dist/openapi/models/MetadataResponseDimensions.js +1 -1
- package/dist/openapi/models/MetadataResponseExif.d.ts +1 -1
- package/dist/openapi/models/MetadataResponseExif.js +1 -1
- package/dist/openapi/models/MetadataResponseExifGps.d.ts +1 -1
- package/dist/openapi/models/MetadataResponseExifGps.js +1 -1
- package/dist/openapi/models/MetadataSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/MetadataSuccessEnvelope.js +1 -1
- package/dist/openapi/models/MimeGroupSchema.d.ts +1 -1
- package/dist/openapi/models/MimeGroupSchema.js +1 -1
- package/dist/openapi/models/MultipartCompleteRequest.d.ts +1 -1
- package/dist/openapi/models/MultipartCompleteRequest.js +1 -1
- package/dist/openapi/models/MultipartCompleteRequestPartsInner.d.ts +1 -1
- package/dist/openapi/models/MultipartCompleteRequestPartsInner.js +1 -1
- package/dist/openapi/models/MultipartCompleteResponse.d.ts +1 -1
- package/dist/openapi/models/MultipartCompleteResponse.js +1 -1
- package/dist/openapi/models/MultipartCompleteSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/MultipartCompleteSuccessEnvelope.js +1 -1
- package/dist/openapi/models/MultipartInitiateRequestMetadataHint.d.ts +1 -1
- package/dist/openapi/models/MultipartInitiateRequestMetadataHint.js +1 -1
- package/dist/openapi/models/MultipartInitiateResponse.d.ts +20 -4
- package/dist/openapi/models/MultipartInitiateResponse.js +1 -1
- package/dist/openapi/models/MultipartInitiateSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/MultipartInitiateSuccessEnvelope.js +1 -1
- package/dist/openapi/models/MultipartKeepaliveResponse.d.ts +43 -0
- package/dist/openapi/models/MultipartKeepaliveResponse.js +47 -0
- package/dist/openapi/models/MultipartKeepaliveSuccessEnvelope.d.ts +46 -0
- package/dist/openapi/models/MultipartKeepaliveSuccessEnvelope.js +54 -0
- package/dist/openapi/models/MultipartPartListing.d.ts +59 -0
- package/dist/openapi/models/MultipartPartListing.js +55 -0
- package/dist/openapi/models/MultipartPresignRequest.d.ts +41 -0
- package/dist/openapi/models/MultipartPresignRequest.js +43 -0
- package/dist/openapi/models/MultipartPresignResponse.d.ts +46 -0
- package/dist/openapi/models/MultipartPresignResponse.js +48 -0
- package/dist/openapi/models/MultipartPresignSuccessEnvelope.d.ts +46 -0
- package/dist/openapi/models/MultipartPresignSuccessEnvelope.js +54 -0
- package/dist/openapi/models/MultipartStatusResponse.d.ts +103 -0
- package/dist/openapi/models/MultipartStatusResponse.js +76 -0
- package/dist/openapi/models/MultipartStatusSuccessEnvelope.d.ts +46 -0
- package/dist/openapi/models/MultipartStatusSuccessEnvelope.js +54 -0
- package/dist/openapi/models/OperationDefinition.d.ts +1 -1
- package/dist/openapi/models/OperationDefinition.js +1 -1
- package/dist/openapi/models/OperationDownload.d.ts +29 -1
- package/dist/openapi/models/OperationDownload.js +5 -1
- package/dist/openapi/models/OperationInputModel.d.ts +4 -3
- package/dist/openapi/models/OperationInputModel.js +4 -3
- package/dist/openapi/models/OperationResponse.d.ts +20 -1
- package/dist/openapi/models/OperationResponse.js +5 -1
- package/dist/openapi/models/OperationResult.d.ts +1 -1
- package/dist/openapi/models/OperationResult.js +1 -1
- package/dist/openapi/models/OperationResultMetrics.d.ts +1 -1
- package/dist/openapi/models/OperationResultMetrics.js +1 -1
- package/dist/openapi/models/OperationSchemaDefinition.d.ts +23 -2
- package/dist/openapi/models/OperationSchemaDefinition.js +4 -1
- package/dist/openapi/models/OperationStatus.d.ts +1 -1
- package/dist/openapi/models/OperationStatus.js +1 -1
- package/dist/openapi/models/OperationType.d.ts +10 -2
- package/dist/openapi/models/OperationType.js +11 -3
- package/dist/openapi/models/OperationsSchemaResponse.d.ts +1 -1
- package/dist/openapi/models/OperationsSchemaResponse.js +1 -1
- package/dist/openapi/models/OptionSchema.d.ts +1 -1
- package/dist/openapi/models/OptionSchema.js +1 -1
- package/dist/openapi/models/PerRoleCardinalityEntry.d.ts +47 -0
- package/dist/openapi/models/PerRoleCardinalityEntry.js +47 -0
- package/dist/openapi/models/PerValueAvailabilityEntry.d.ts +1 -1
- package/dist/openapi/models/PerValueAvailabilityEntry.js +1 -1
- package/dist/openapi/models/PresignedUrlPart.d.ts +1 -1
- package/dist/openapi/models/PresignedUrlPart.js +1 -1
- package/dist/openapi/models/ProbePendingResponse.d.ts +171 -0
- package/dist/openapi/models/ProbePendingResponse.js +75 -0
- package/dist/openapi/models/ProcessingClass.d.ts +1 -1
- package/dist/openapi/models/ProcessingClass.js +1 -1
- package/dist/openapi/models/ProcessingClassBandViolation.d.ts +149 -0
- package/dist/openapi/models/ProcessingClassBandViolation.js +81 -0
- package/dist/openapi/models/ProcessingClassExceedsBandResponse.d.ts +174 -0
- package/dist/openapi/models/ProcessingClassExceedsBandResponse.js +76 -0
- package/dist/openapi/models/ProcessingClassHint.d.ts +1 -1
- package/dist/openapi/models/ProcessingClassHint.js +1 -1
- package/dist/openapi/models/ProcessingClassReason.d.ts +1 -1
- package/dist/openapi/models/ProcessingClassReason.js +1 -1
- package/dist/openapi/models/ProcessingClassRejectReason.d.ts +53 -0
- package/dist/openapi/models/ProcessingClassRejectReason.js +71 -0
- package/dist/openapi/models/ProcessingPlan.d.ts +1 -1
- package/dist/openapi/models/ProcessingPlan.js +1 -1
- package/dist/openapi/models/ProcessingPlanJob.d.ts +1 -1
- package/dist/openapi/models/ProcessingPlanJob.js +1 -1
- package/dist/openapi/models/ReadinessResponse.d.ts +1 -1
- package/dist/openapi/models/ReadinessResponse.js +1 -1
- package/dist/openapi/models/ResponseEnvelope.d.ts +1 -1
- package/dist/openapi/models/ResponseEnvelope.js +1 -1
- package/dist/openapi/models/RetryResponse.d.ts +1 -1
- package/dist/openapi/models/RetryResponse.js +1 -1
- package/dist/openapi/models/RetrySuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/RetrySuccessEnvelope.js +1 -1
- package/dist/openapi/models/SseEventType.d.ts +1 -1
- package/dist/openapi/models/SseEventType.js +1 -1
- package/dist/openapi/models/SseJobCompletedData.d.ts +1 -1
- package/dist/openapi/models/SseJobCompletedData.js +1 -1
- package/dist/openapi/models/SseJobFailedData.d.ts +1 -1
- package/dist/openapi/models/SseJobFailedData.js +1 -1
- package/dist/openapi/models/SseMultiOutputCompletion.d.ts +60 -0
- package/dist/openapi/models/SseMultiOutputCompletion.js +51 -0
- package/dist/openapi/models/SseMultiOutputCompletionMetrics.d.ts +38 -0
- package/dist/openapi/models/SseMultiOutputCompletionMetrics.js +43 -0
- package/dist/openapi/models/SseMultiOutputCompletionWithKind.d.ts +75 -0
- package/dist/openapi/models/SseMultiOutputCompletionWithKind.js +61 -0
- package/dist/openapi/models/SseMultiOutputResultEntry.d.ts +74 -0
- package/dist/openapi/models/SseMultiOutputResultEntry.js +51 -0
- package/dist/openapi/models/SseOperationCompletedData.d.ts +4 -4
- package/dist/openapi/models/SseOperationCompletedData.js +4 -4
- package/dist/openapi/models/SseOperationCompletionResult.d.ts +60 -0
- package/dist/openapi/models/SseOperationCompletionResult.js +47 -0
- package/dist/openapi/models/SseOperationFailedData.d.ts +1 -1
- package/dist/openapi/models/SseOperationFailedData.js +1 -1
- package/dist/openapi/models/SseOperationProgressData.d.ts +1 -1
- package/dist/openapi/models/SseOperationProgressData.js +1 -1
- package/dist/openapi/models/SseSingleOutputCompletion.d.ts +72 -0
- package/dist/openapi/models/SseSingleOutputCompletion.js +62 -0
- package/dist/openapi/models/SseWorkflowTerminalData.d.ts +1 -1
- package/dist/openapi/models/SseWorkflowTerminalData.js +1 -1
- package/dist/openapi/models/TierRestrictionKind.d.ts +1 -1
- package/dist/openapi/models/TierRestrictionKind.js +1 -1
- package/dist/openapi/models/TierRestrictionResponse.d.ts +20 -1
- package/dist/openapi/models/TierRestrictionResponse.js +1 -1
- package/dist/openapi/models/UploadConstraintsApplied.d.ts +1 -1
- package/dist/openapi/models/UploadConstraintsApplied.js +1 -1
- package/dist/openapi/models/UploadDurationExceedsTierResponse.d.ts +20 -1
- package/dist/openapi/models/UploadDurationExceedsTierResponse.js +1 -1
- package/dist/openapi/models/UploadFile403Response.d.ts +1 -1
- package/dist/openapi/models/UploadFile403Response.js +1 -1
- package/dist/openapi/models/UploadFile422Response.d.ts +1 -1
- package/dist/openapi/models/UploadFile422Response.js +1 -1
- package/dist/openapi/models/UploadProbeMediaMetadata.d.ts +1 -1
- package/dist/openapi/models/UploadProbeMediaMetadata.js +1 -1
- package/dist/openapi/models/UploadProbeProcessingClass.d.ts +1 -1
- package/dist/openapi/models/UploadProbeProcessingClass.js +1 -1
- package/dist/openapi/models/UploadProbeResponse.d.ts +4 -2
- package/dist/openapi/models/UploadProbeResponse.js +1 -1
- package/dist/openapi/models/UploadProbeStatus.d.ts +1 -1
- package/dist/openapi/models/UploadProbeStatus.js +1 -1
- package/dist/openapi/models/UploadProbeSuccessEnvelope.d.ts +56 -0
- package/dist/openapi/models/UploadProbeSuccessEnvelope.js +54 -0
- package/dist/openapi/models/UploadResponse.d.ts +1 -1
- package/dist/openapi/models/UploadResponse.js +1 -1
- package/dist/openapi/models/UploadSizeExceedsTierResponse.d.ts +20 -1
- package/dist/openapi/models/UploadSizeExceedsTierResponse.js +1 -1
- package/dist/openapi/models/UploadSource.d.ts +1 -1
- package/dist/openapi/models/UploadSource.js +1 -1
- package/dist/openapi/models/UploadSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/UploadSuccessEnvelope.js +1 -1
- package/dist/openapi/models/UploadThresholds.d.ts +11 -4
- package/dist/openapi/models/UploadThresholds.js +2 -2
- package/dist/openapi/models/UserTier.d.ts +1 -1
- package/dist/openapi/models/UserTier.js +1 -1
- package/dist/openapi/models/ValidationErrorEnvelope.d.ts +1 -1
- package/dist/openapi/models/ValidationErrorEnvelope.js +1 -1
- package/dist/openapi/models/ValidationErrorEnvelopeDetailsInner.d.ts +1 -1
- package/dist/openapi/models/ValidationErrorEnvelopeDetailsInner.js +1 -1
- package/dist/openapi/models/WarningType.d.ts +1 -1
- package/dist/openapi/models/WarningType.js +1 -1
- package/dist/openapi/models/WebhookOperationContext.d.ts +1 -1
- package/dist/openapi/models/WebhookOperationContext.js +1 -1
- package/dist/openapi/models/WebhookPayload.d.ts +1 -1
- package/dist/openapi/models/WebhookPayload.js +1 -1
- package/dist/openapi/models/WorkflowCancelBillingEffect.d.ts +1 -1
- package/dist/openapi/models/WorkflowCancelBillingEffect.js +1 -1
- package/dist/openapi/models/WorkflowCancelResponse.d.ts +1 -1
- package/dist/openapi/models/WorkflowCancelResponse.js +1 -1
- package/dist/openapi/models/WorkflowCancelSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/WorkflowCancelSuccessEnvelope.js +1 -1
- package/dist/openapi/models/WorkflowCreateRequest.d.ts +1 -1
- package/dist/openapi/models/WorkflowCreateRequest.js +1 -1
- package/dist/openapi/models/WorkflowCreateResponse.d.ts +1 -1
- package/dist/openapi/models/WorkflowCreateResponse.js +1 -1
- package/dist/openapi/models/WorkflowCreateSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/WorkflowCreateSuccessEnvelope.js +1 -1
- package/dist/openapi/models/WorkflowDownloadResponse.d.ts +1 -1
- package/dist/openapi/models/WorkflowDownloadResponse.js +1 -1
- package/dist/openapi/models/WorkflowDownloadSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/WorkflowDownloadSuccessEnvelope.js +1 -1
- package/dist/openapi/models/WorkflowEdge.d.ts +1 -1
- package/dist/openapi/models/WorkflowEdge.js +1 -1
- package/dist/openapi/models/WorkflowExpiredResponse.d.ts +20 -1
- package/dist/openapi/models/WorkflowExpiredResponse.js +1 -1
- package/dist/openapi/models/WorkflowPauseRequiredAction.d.ts +1 -1
- package/dist/openapi/models/WorkflowPauseRequiredAction.js +1 -1
- package/dist/openapi/models/WorkflowPausedDetail.d.ts +1 -1
- package/dist/openapi/models/WorkflowPausedDetail.js +1 -1
- package/dist/openapi/models/WorkflowPausedDetailLinks.d.ts +1 -1
- package/dist/openapi/models/WorkflowPausedDetailLinks.js +1 -1
- package/dist/openapi/models/WorkflowProcessing.d.ts +1 -1
- package/dist/openapi/models/WorkflowProcessing.js +1 -1
- package/dist/openapi/models/WorkflowResumeResponse.d.ts +1 -1
- package/dist/openapi/models/WorkflowResumeResponse.js +1 -1
- package/dist/openapi/models/WorkflowResumeSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/WorkflowResumeSuccessEnvelope.js +1 -1
- package/dist/openapi/models/WorkflowSource.d.ts +1 -1
- package/dist/openapi/models/WorkflowSource.js +1 -1
- package/dist/openapi/models/WorkflowStatus.d.ts +1 -1
- package/dist/openapi/models/WorkflowStatus.js +1 -1
- package/dist/openapi/models/WorkflowStatusResponse.d.ts +1 -1
- package/dist/openapi/models/WorkflowStatusResponse.js +1 -1
- package/dist/openapi/models/WorkflowStatusSuccessEnvelope.d.ts +1 -1
- package/dist/openapi/models/WorkflowStatusSuccessEnvelope.js +1 -1
- package/dist/openapi/models/WorkflowWarning.d.ts +1 -1
- package/dist/openapi/models/WorkflowWarning.js +1 -1
- package/dist/openapi/models/WorkflowWarningSeverity.d.ts +1 -1
- package/dist/openapi/models/WorkflowWarningSeverity.js +1 -1
- package/dist/openapi/models/index.d.ts +21 -0
- package/dist/openapi/models/index.js +21 -0
- package/dist/openapi/runtime.d.ts +1 -1
- package/dist/openapi/runtime.js +1 -1
- package/dist/operations/audio_overlay.metadata.js +4 -4
- package/dist/operations/audio_to_video.d.ts +20 -0
- package/dist/operations/audio_to_video.js +17 -0
- package/dist/operations/audio_to_video.metadata.d.ts +2 -0
- package/dist/operations/audio_to_video.metadata.js +29 -0
- package/dist/operations/audio_watermark.metadata.js +4 -4
- package/dist/operations/compress.metadata.js +3 -3
- package/dist/operations/convert.metadata.js +2 -2
- package/dist/operations/custom_luma.metadata.js +2 -2
- package/dist/operations/image_watermark.d.ts +0 -18
- package/dist/operations/image_watermark.js +0 -12
- package/dist/operations/image_watermark.metadata.js +0 -41
- package/dist/operations/index.d.ts +8 -0
- package/dist/operations/index.js +8 -0
- package/dist/operations/merge.metadata.js +3 -3
- package/dist/operations/metadata-types.d.ts +17 -0
- package/dist/operations/split.d.ts +50 -0
- package/dist/operations/split.js +34 -0
- package/dist/operations/split.metadata.d.ts +2 -0
- package/dist/operations/split.metadata.js +103 -0
- package/dist/operations/thumbnail.metadata.js +1 -1
- package/dist/operations/video_text_watermark.d.ts +31 -0
- package/dist/operations/video_text_watermark.js +22 -0
- package/dist/operations/video_text_watermark.metadata.d.ts +2 -0
- package/dist/operations/video_text_watermark.metadata.js +65 -0
- package/dist/operations/video_watermark.d.ts +18 -0
- package/dist/operations/video_watermark.js +13 -0
- package/dist/operations/video_watermark.metadata.d.ts +2 -0
- package/dist/operations/video_watermark.metadata.js +52 -0
- package/openapi/api.yaml +1543 -121
- package/operations/schemas/audio_overlay.yaml +18 -6
- package/operations/schemas/audio_to_video.yaml +122 -0
- package/operations/schemas/audio_watermark.yaml +14 -6
- package/operations/schemas/compress.yaml +10 -4
- package/operations/schemas/convert.yaml +10 -3
- package/operations/schemas/custom_luma.yaml +10 -3
- package/operations/schemas/image_watermark.yaml +15 -96
- package/operations/schemas/merge.yaml +10 -4
- package/operations/schemas/split.yaml +309 -0
- package/operations/schemas/thumbnail.yaml +16 -3
- package/operations/schemas/video_text_watermark.yaml +174 -0
- package/operations/schemas/video_watermark.yaml +136 -0
- package/package.json +8 -3
- package/dist/asyncapi/AnonymousSchema_13.d.ts +0 -6
- package/dist/asyncapi/AnonymousSchema_13.js +0 -7
- package/dist/asyncapi/AnonymousSchema_152.d.ts +0 -5
- package/dist/asyncapi/AnonymousSchema_152.js +0 -6
- package/dist/openapi/models/ExportConfig.d.ts +0 -63
- package/dist/openapi/models/ExportConfig.js +0 -59
- package/dist/openapi/models/JobInput.d.ts +0 -53
- package/dist/openapi/models/JobInput.js +0 -47
- package/dist/openapi/models/JobSource.d.ts +0 -43
- package/dist/openapi/models/JobSource.js +0 -45
- package/dist/operations/watermark.d.ts +0 -28
- package/dist/operations/watermark.js +0 -19
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, image_watermark, text_watermark, merge, archive, convert, custom_luma, audio_overlay, audio_watermark) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (per-tier private caching with ETag/Last-Modified revalidation per ADR-0002 + I3), health probes return flat objects, and `POST /api/contact` returns 204 with no body. **Availability metadata.** This spec uses the `x-availability` vendor extension as **decorative documentation only**. Per [ADR-0001](../docs/decisions/0001-contract-first-availability.md) §1.5, the runtime endpoint `GET /api/operations/schema` (ticket I3) is the authoritative source; the sidecar `availability.json` (ticket I3b) is the authoritative companion (generated, never hand-edited; CI cross-checks runtime ⇄ sidecar). SDKs MUST NOT depend on `x-availability` reaching generated code — code-generators that surface vendor extensions may emit it as documentation, but consumers read availability from the runtime endpoint, not from the generated bindings. The 5-value vocabulary (`stable | beta | experimental | planned | deprecated`) is defined in the `AvailabilityValue` schema. See `schemas/FORMAT.md` §Availability Taxonomy for the operational rules (parser obligation: absent = stable; per-enum-value granularity is the `per_value_availability` primitive landed via ticket I17). **Localisation (per ticket [I26](https://trello.com/c/rcnqwgI4)).** Error responses + paused/blocked workflow statuses carry a localised human-readable `message` alongside a stable, never-localised `message_key`. Machine-readable fields (`error`, enum values, status codes) stay canonical English. - **Request:** `Accept-Language` header per RFC 9110 §12.5.4 (q-value negotiation supported). The server selects the best-match locale from its supported list; falls back to `en-GB` when no match. - **Response:** `Content-Language: <locale>` echo on every localised response; `Vary: Accept-Language` on every response (CDN/cache correctness — different `Accept-Language` requests produce different responses). - **Fallback locale:** `en-GB` (also the canonical locale for `message_key` translations and English `message` prose). - **SDK guidance:** switch on `error` (machine code) for typed error branches; surface `message_key` to client-side i18n catalogs (SDK companion work tracked at X19, cross-repo); display `message` for end-user UI; **never parse `message` for control flow** — it changes per locale. Carrier shape lives on `ErrorEnvelope` (envelope-level optional `message_key` + `message` + `locale` + `message_params`) and `ValidationErrorEnvelope` (also per-`details[]` entry). Existing 402 / 403 / 422 envelopes (`BalanceExhaustedResponse`, `FeatureNotAvailableResponse`, `FeatureTierRestrictedResponse`, `WorkflowPausedDetail`) inherit the convention. **Upload thresholds (per tickets [u0ar7Yye](https://trello.com/c/u0ar7Yye) + [58nBQLWQ](https://trello.com/c/58nBQLWQ)).** Canonical upload constants (single-shot cap, multipart chunk size, multipart concurrency default, multipart first-chunk size) live on the `UploadThresholds` schema with `const:`-pinned values. SDK generators emit these as typed binding constants so frontend / API / SDKs reference one source of truth instead of hardcoding magic numbers. A runtime `GET /api/uploads/limits` endpoint for dynamic discovery (per-tier / per-environment overrides) is a deferred follow-up.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.15.3
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 422 response on `POST /api/workflows` when the probe-pending
|
|
14
|
+
* gate (API `av1J0rEF`, shipped behind a default-OFF feature flag)
|
|
15
|
+
* is enabled and a job references an upload whose server-side
|
|
16
|
+
* probe has not yet completed at workflow-create time. Rather than
|
|
17
|
+
* silently routing the job as `short_form` (which hard-fails long
|
|
18
|
+
* video clips), the server rejects with this envelope so the
|
|
19
|
+
* client can recover deterministically.
|
|
20
|
+
*
|
|
21
|
+
* **Recovery contract.** Poll `POST /api/uploads/{id}/probe` for
|
|
22
|
+
* the pending upload until its `probe_status` is terminal
|
|
23
|
+
* (`ok` → re-`POST /api/workflows` the same request; `corrupt` /
|
|
24
|
+
* `unsupported_codec` → surface the probe error, do not retry).
|
|
25
|
+
* The `Retry-After` response header (when present) carries the
|
|
26
|
+
* suggested delay in seconds before the next poll/retry.
|
|
27
|
+
*
|
|
28
|
+
* Delivered alongside `ValidationErrorEnvelope`,
|
|
29
|
+
* `FeatureNotAvailableResponse`, and
|
|
30
|
+
* `ProcessingClassExceedsBandResponse` via the naked `oneOf` on
|
|
31
|
+
* the 422 response — duck-typed on required-field shape: this
|
|
32
|
+
* branch is the only one carrying `error_type: probe_pending`
|
|
33
|
+
* and it has neither `details` (ValidationErrorEnvelope) nor
|
|
34
|
+
* `violations` (the other two typed envelopes), so it matches
|
|
35
|
+
* exactly one branch.
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ProbePendingResponse
|
|
39
|
+
*/
|
|
40
|
+
export interface ProbePendingResponse {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {ProbePendingResponseSuccessEnum}
|
|
44
|
+
* @memberof ProbePendingResponse
|
|
45
|
+
*/
|
|
46
|
+
success: ProbePendingResponseSuccessEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Stable, machine-readable error code (e.g.
|
|
49
|
+
* `INVALID_OPTIONS`, `BALANCE_EXHAUSTED`,
|
|
50
|
+
* `REQUIRES_REENCODE`). Canonical English; never localised.
|
|
51
|
+
* SDKs duck-type on this field for typed error-branch
|
|
52
|
+
* helpers.
|
|
53
|
+
*
|
|
54
|
+
* Multipart-session resume codes (per ticket
|
|
55
|
+
* [`HxUmVr3Y`](https://trello.com/c/HxUmVr3Y), V2.10.0):
|
|
56
|
+
* - `MULTIPART_SESSION_NOT_FOUND` (404) — upload_id does
|
|
57
|
+
* not match an in-flight session (expired / never
|
|
58
|
+
* existed / wrong account namespace). Fired by /status,
|
|
59
|
+
* /presign, /keepalive.
|
|
60
|
+
* - `MULTIPART_SESSION_OWNERSHIP` (403) — authenticated
|
|
61
|
+
* caller is not the session owner. Fired by /status,
|
|
62
|
+
* /presign, /keepalive, /complete (when manifest.userId
|
|
63
|
+
* is non-null and differs).
|
|
64
|
+
* - `MULTIPART_SESSION_AUTH_REQUIRED` (403) — session was
|
|
65
|
+
* anonymously initiated; the three resume endpoints
|
|
66
|
+
* require authentication. The `8LABloaz` follow-up will
|
|
67
|
+
* flip `/initiate` to also require auth.
|
|
68
|
+
* - `FILE_TOO_LARGE_FOR_MULTIPART` (422) — assembled object
|
|
69
|
+
* would exceed the S3 multipart capacity cap. Pre-S3
|
|
70
|
+
* server-side capacity gate; distinct from tier-quota
|
|
71
|
+
* rejections (`upload_size_exceeds_tier`).
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ProbePendingResponse
|
|
75
|
+
*/
|
|
76
|
+
error: string;
|
|
77
|
+
/**
|
|
78
|
+
* Human-readable error message, localised per the
|
|
79
|
+
* request's `Accept-Language` header (fallback locale
|
|
80
|
+
* `en-GB`). The response carries `Content-Language:
|
|
81
|
+
* <locale>` + `Vary: Accept-Language` headers. **Never
|
|
82
|
+
* parse this field for control flow** — it changes per
|
|
83
|
+
* locale.
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof ProbePendingResponse
|
|
87
|
+
*/
|
|
88
|
+
message?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Stable canonical lookup key for the message (e.g.
|
|
91
|
+
* `error.balance_exhausted.add_credits`,
|
|
92
|
+
* `error.upload_size_exceeds_tier`). Never localised. SDK +
|
|
93
|
+
* frontend translation layers gate on this for client-side
|
|
94
|
+
* i18n catalogs (per ticket X19, cross-repo SDK companion
|
|
95
|
+
* work). Stable across server message-prose updates.
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ProbePendingResponse
|
|
99
|
+
*/
|
|
100
|
+
messageKey?: string;
|
|
101
|
+
/**
|
|
102
|
+
* BCP 47 locale tag echoing the resolved `Content-Language`
|
|
103
|
+
* response header value (e.g. `en-GB`, `pt-BR`, `ja-JP`).
|
|
104
|
+
* Lets the SDK confirm which locale the server selected
|
|
105
|
+
* when the request used q-value negotiation across multiple
|
|
106
|
+
* `Accept-Language` values.
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof ProbePendingResponse
|
|
110
|
+
*/
|
|
111
|
+
locale?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Optional interpolation values for the localised
|
|
114
|
+
* `message`. Keys are stable parameter names referenced by
|
|
115
|
+
* the translation table (e.g.
|
|
116
|
+
* `{ "filename": "photo.heic", "max_size_mb": 100 }`).
|
|
117
|
+
* **Excludes cost / monetary numbers** per plan v5 §F11
|
|
118
|
+
* round-13 narrowing — pricing-related localisation reads
|
|
119
|
+
* numeric state from `GET /api/v2/credits/balance`, not
|
|
120
|
+
* from this field. Values are JSON-native scalars
|
|
121
|
+
* (`string` / `integer` / `number` / `boolean` / `null`)
|
|
122
|
+
* — no nested objects, to keep translation-table
|
|
123
|
+
* integration simple.
|
|
124
|
+
*
|
|
125
|
+
* @type {{ [key: string]: any; }}
|
|
126
|
+
* @memberof ProbePendingResponse
|
|
127
|
+
*/
|
|
128
|
+
messageParams?: {
|
|
129
|
+
[key: string]: any;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Discriminator for the 422 oneOf. Always `probe_pending`.
|
|
133
|
+
* @type {ProbePendingResponseErrorTypeEnum}
|
|
134
|
+
* @memberof ProbePendingResponse
|
|
135
|
+
*/
|
|
136
|
+
errorType: ProbePendingResponseErrorTypeEnum;
|
|
137
|
+
/**
|
|
138
|
+
* Workflow-local identifier of the job whose upload-probe
|
|
139
|
+
* has not landed — `JobDefinition.id` if the caller
|
|
140
|
+
* supplied one, else the auto-generated `job_N` token.
|
|
141
|
+
* Mirrors `ProcessingClassBandViolation.job_ref`; NOT
|
|
142
|
+
* `format: uuid` because workflow-create rejects fire
|
|
143
|
+
* before server-side UUIDs are assigned.
|
|
144
|
+
*
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof ProbePendingResponse
|
|
147
|
+
*/
|
|
148
|
+
jobRef: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @export
|
|
152
|
+
*/
|
|
153
|
+
export declare const ProbePendingResponseSuccessEnum: {
|
|
154
|
+
readonly false: false;
|
|
155
|
+
};
|
|
156
|
+
export type ProbePendingResponseSuccessEnum = typeof ProbePendingResponseSuccessEnum[keyof typeof ProbePendingResponseSuccessEnum];
|
|
157
|
+
/**
|
|
158
|
+
* @export
|
|
159
|
+
*/
|
|
160
|
+
export declare const ProbePendingResponseErrorTypeEnum: {
|
|
161
|
+
readonly probe_pending: "probe_pending";
|
|
162
|
+
};
|
|
163
|
+
export type ProbePendingResponseErrorTypeEnum = typeof ProbePendingResponseErrorTypeEnum[keyof typeof ProbePendingResponseErrorTypeEnum];
|
|
164
|
+
/**
|
|
165
|
+
* Check if a given object implements the ProbePendingResponse interface.
|
|
166
|
+
*/
|
|
167
|
+
export declare function instanceOfProbePendingResponse(value: object): value is ProbePendingResponse;
|
|
168
|
+
export declare function ProbePendingResponseFromJSON(json: any): ProbePendingResponse;
|
|
169
|
+
export declare function ProbePendingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProbePendingResponse;
|
|
170
|
+
export declare function ProbePendingResponseToJSON(json: any): ProbePendingResponse;
|
|
171
|
+
export declare function ProbePendingResponseToJSONTyped(value?: ProbePendingResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GISL Compression API
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, image_watermark, text_watermark, merge, archive, convert, custom_luma, audio_overlay, audio_watermark) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (per-tier private caching with ETag/Last-Modified revalidation per ADR-0002 + I3), health probes return flat objects, and `POST /api/contact` returns 204 with no body. **Availability metadata.** This spec uses the `x-availability` vendor extension as **decorative documentation only**. Per [ADR-0001](../docs/decisions/0001-contract-first-availability.md) §1.5, the runtime endpoint `GET /api/operations/schema` (ticket I3) is the authoritative source; the sidecar `availability.json` (ticket I3b) is the authoritative companion (generated, never hand-edited; CI cross-checks runtime ⇄ sidecar). SDKs MUST NOT depend on `x-availability` reaching generated code — code-generators that surface vendor extensions may emit it as documentation, but consumers read availability from the runtime endpoint, not from the generated bindings. The 5-value vocabulary (`stable | beta | experimental | planned | deprecated`) is defined in the `AvailabilityValue` schema. See `schemas/FORMAT.md` §Availability Taxonomy for the operational rules (parser obligation: absent = stable; per-enum-value granularity is the `per_value_availability` primitive landed via ticket I17). **Localisation (per ticket [I26](https://trello.com/c/rcnqwgI4)).** Error responses + paused/blocked workflow statuses carry a localised human-readable `message` alongside a stable, never-localised `message_key`. Machine-readable fields (`error`, enum values, status codes) stay canonical English. - **Request:** `Accept-Language` header per RFC 9110 §12.5.4 (q-value negotiation supported). The server selects the best-match locale from its supported list; falls back to `en-GB` when no match. - **Response:** `Content-Language: <locale>` echo on every localised response; `Vary: Accept-Language` on every response (CDN/cache correctness — different `Accept-Language` requests produce different responses). - **Fallback locale:** `en-GB` (also the canonical locale for `message_key` translations and English `message` prose). - **SDK guidance:** switch on `error` (machine code) for typed error branches; surface `message_key` to client-side i18n catalogs (SDK companion work tracked at X19, cross-repo); display `message` for end-user UI; **never parse `message` for control flow** — it changes per locale. Carrier shape lives on `ErrorEnvelope` (envelope-level optional `message_key` + `message` + `locale` + `message_params`) and `ValidationErrorEnvelope` (also per-`details[]` entry). Existing 402 / 403 / 422 envelopes (`BalanceExhaustedResponse`, `FeatureNotAvailableResponse`, `FeatureTierRestrictedResponse`, `WorkflowPausedDetail`) inherit the convention. **Upload thresholds (per tickets [u0ar7Yye](https://trello.com/c/u0ar7Yye) + [58nBQLWQ](https://trello.com/c/58nBQLWQ)).** Canonical upload constants (single-shot cap, multipart chunk size, multipart concurrency default, multipart first-chunk size) live on the `UploadThresholds` schema with `const:`-pinned values. SDK generators emit these as typed binding constants so frontend / API / SDKs reference one source of truth instead of hardcoding magic numbers. A runtime `GET /api/uploads/limits` endpoint for dynamic discovery (per-tier / per-environment overrides) is a deferred follow-up.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.15.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ProbePendingResponseSuccessEnum = {
|
|
18
|
+
false: false
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const ProbePendingResponseErrorTypeEnum = {
|
|
24
|
+
probe_pending: 'probe_pending'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProbePendingResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfProbePendingResponse(value) {
|
|
30
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('errorType' in value) || value['errorType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('jobRef' in value) || value['jobRef'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function ProbePendingResponseFromJSON(json) {
|
|
41
|
+
return ProbePendingResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function ProbePendingResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'success': json['success'],
|
|
49
|
+
'error': json['error'],
|
|
50
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
51
|
+
'messageKey': json['message_key'] == null ? undefined : json['message_key'],
|
|
52
|
+
'locale': json['locale'] == null ? undefined : json['locale'],
|
|
53
|
+
'messageParams': json['message_params'] == null ? undefined : json['message_params'],
|
|
54
|
+
'errorType': json['error_type'],
|
|
55
|
+
'jobRef': json['job_ref'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function ProbePendingResponseToJSON(json) {
|
|
59
|
+
return ProbePendingResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function ProbePendingResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'success': value['success'],
|
|
67
|
+
'error': value['error'],
|
|
68
|
+
'message': value['message'],
|
|
69
|
+
'message_key': value['messageKey'],
|
|
70
|
+
'locale': value['locale'],
|
|
71
|
+
'message_params': value['messageParams'],
|
|
72
|
+
'error_type': value['errorType'],
|
|
73
|
+
'job_ref': value['jobRef'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GISL Compression API
|
|
3
3
|
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, image_watermark, text_watermark, merge, archive, convert, custom_luma, audio_overlay, audio_watermark) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (per-tier private caching with ETag/Last-Modified revalidation per ADR-0002 + I3), health probes return flat objects, and `POST /api/contact` returns 204 with no body. **Availability metadata.** This spec uses the `x-availability` vendor extension as **decorative documentation only**. Per [ADR-0001](../docs/decisions/0001-contract-first-availability.md) §1.5, the runtime endpoint `GET /api/operations/schema` (ticket I3) is the authoritative source; the sidecar `availability.json` (ticket I3b) is the authoritative companion (generated, never hand-edited; CI cross-checks runtime ⇄ sidecar). SDKs MUST NOT depend on `x-availability` reaching generated code — code-generators that surface vendor extensions may emit it as documentation, but consumers read availability from the runtime endpoint, not from the generated bindings. The 5-value vocabulary (`stable | beta | experimental | planned | deprecated`) is defined in the `AvailabilityValue` schema. See `schemas/FORMAT.md` §Availability Taxonomy for the operational rules (parser obligation: absent = stable; per-enum-value granularity is the `per_value_availability` primitive landed via ticket I17). **Localisation (per ticket [I26](https://trello.com/c/rcnqwgI4)).** Error responses + paused/blocked workflow statuses carry a localised human-readable `message` alongside a stable, never-localised `message_key`. Machine-readable fields (`error`, enum values, status codes) stay canonical English. - **Request:** `Accept-Language` header per RFC 9110 §12.5.4 (q-value negotiation supported). The server selects the best-match locale from its supported list; falls back to `en-GB` when no match. - **Response:** `Content-Language: <locale>` echo on every localised response; `Vary: Accept-Language` on every response (CDN/cache correctness — different `Accept-Language` requests produce different responses). - **Fallback locale:** `en-GB` (also the canonical locale for `message_key` translations and English `message` prose). - **SDK guidance:** switch on `error` (machine code) for typed error branches; surface `message_key` to client-side i18n catalogs (SDK companion work tracked at X19, cross-repo); display `message` for end-user UI; **never parse `message` for control flow** — it changes per locale. Carrier shape lives on `ErrorEnvelope` (envelope-level optional `message_key` + `message` + `locale` + `message_params`) and `ValidationErrorEnvelope` (also per-`details[]` entry). Existing 402 / 403 / 422 envelopes (`BalanceExhaustedResponse`, `FeatureNotAvailableResponse`, `FeatureTierRestrictedResponse`, `WorkflowPausedDetail`) inherit the convention. **Upload thresholds (per tickets [u0ar7Yye](https://trello.com/c/u0ar7Yye) + [58nBQLWQ](https://trello.com/c/58nBQLWQ)).** Canonical upload constants (single-shot cap, multipart chunk size, multipart concurrency default, multipart first-chunk size) live on the `UploadThresholds` schema with `const:`-pinned values. SDK generators emit these as typed binding constants so frontend / API / SDKs reference one source of truth instead of hardcoding magic numbers. A runtime `GET /api/uploads/limits` endpoint for dynamic discovery (per-tier / per-environment overrides) is a deferred follow-up.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.15.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GISL Compression API
|
|
5
5
|
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, image_watermark, text_watermark, merge, archive, convert, custom_luma, audio_overlay, audio_watermark) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (per-tier private caching with ETag/Last-Modified revalidation per ADR-0002 + I3), health probes return flat objects, and `POST /api/contact` returns 204 with no body. **Availability metadata.** This spec uses the `x-availability` vendor extension as **decorative documentation only**. Per [ADR-0001](../docs/decisions/0001-contract-first-availability.md) §1.5, the runtime endpoint `GET /api/operations/schema` (ticket I3) is the authoritative source; the sidecar `availability.json` (ticket I3b) is the authoritative companion (generated, never hand-edited; CI cross-checks runtime ⇄ sidecar). SDKs MUST NOT depend on `x-availability` reaching generated code — code-generators that surface vendor extensions may emit it as documentation, but consumers read availability from the runtime endpoint, not from the generated bindings. The 5-value vocabulary (`stable | beta | experimental | planned | deprecated`) is defined in the `AvailabilityValue` schema. See `schemas/FORMAT.md` §Availability Taxonomy for the operational rules (parser obligation: absent = stable; per-enum-value granularity is the `per_value_availability` primitive landed via ticket I17). **Localisation (per ticket [I26](https://trello.com/c/rcnqwgI4)).** Error responses + paused/blocked workflow statuses carry a localised human-readable `message` alongside a stable, never-localised `message_key`. Machine-readable fields (`error`, enum values, status codes) stay canonical English. - **Request:** `Accept-Language` header per RFC 9110 §12.5.4 (q-value negotiation supported). The server selects the best-match locale from its supported list; falls back to `en-GB` when no match. - **Response:** `Content-Language: <locale>` echo on every localised response; `Vary: Accept-Language` on every response (CDN/cache correctness — different `Accept-Language` requests produce different responses). - **Fallback locale:** `en-GB` (also the canonical locale for `message_key` translations and English `message` prose). - **SDK guidance:** switch on `error` (machine code) for typed error branches; surface `message_key` to client-side i18n catalogs (SDK companion work tracked at X19, cross-repo); display `message` for end-user UI; **never parse `message` for control flow** — it changes per locale. Carrier shape lives on `ErrorEnvelope` (envelope-level optional `message_key` + `message` + `locale` + `message_params`) and `ValidationErrorEnvelope` (also per-`details[]` entry). Existing 402 / 403 / 422 envelopes (`BalanceExhaustedResponse`, `FeatureNotAvailableResponse`, `FeatureTierRestrictedResponse`, `WorkflowPausedDetail`) inherit the convention. **Upload thresholds (per tickets [u0ar7Yye](https://trello.com/c/u0ar7Yye) + [58nBQLWQ](https://trello.com/c/58nBQLWQ)).** Canonical upload constants (single-shot cap, multipart chunk size, multipart concurrency default, multipart first-chunk size) live on the `UploadThresholds` schema with `const:`-pinned values. SDK generators emit these as typed binding constants so frontend / API / SDKs reference one source of truth instead of hardcoding magic numbers. A runtime `GET /api/uploads/limits` endpoint for dynamic discovery (per-tier / per-environment overrides) is a deferred follow-up.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.15.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, image_watermark, text_watermark, merge, archive, convert, custom_luma, audio_overlay, audio_watermark) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (per-tier private caching with ETag/Last-Modified revalidation per ADR-0002 + I3), health probes return flat objects, and `POST /api/contact` returns 204 with no body. **Availability metadata.** This spec uses the `x-availability` vendor extension as **decorative documentation only**. Per [ADR-0001](../docs/decisions/0001-contract-first-availability.md) §1.5, the runtime endpoint `GET /api/operations/schema` (ticket I3) is the authoritative source; the sidecar `availability.json` (ticket I3b) is the authoritative companion (generated, never hand-edited; CI cross-checks runtime ⇄ sidecar). SDKs MUST NOT depend on `x-availability` reaching generated code — code-generators that surface vendor extensions may emit it as documentation, but consumers read availability from the runtime endpoint, not from the generated bindings. The 5-value vocabulary (`stable | beta | experimental | planned | deprecated`) is defined in the `AvailabilityValue` schema. See `schemas/FORMAT.md` §Availability Taxonomy for the operational rules (parser obligation: absent = stable; per-enum-value granularity is the `per_value_availability` primitive landed via ticket I17). **Localisation (per ticket [I26](https://trello.com/c/rcnqwgI4)).** Error responses + paused/blocked workflow statuses carry a localised human-readable `message` alongside a stable, never-localised `message_key`. Machine-readable fields (`error`, enum values, status codes) stay canonical English. - **Request:** `Accept-Language` header per RFC 9110 §12.5.4 (q-value negotiation supported). The server selects the best-match locale from its supported list; falls back to `en-GB` when no match. - **Response:** `Content-Language: <locale>` echo on every localised response; `Vary: Accept-Language` on every response (CDN/cache correctness — different `Accept-Language` requests produce different responses). - **Fallback locale:** `en-GB` (also the canonical locale for `message_key` translations and English `message` prose). - **SDK guidance:** switch on `error` (machine code) for typed error branches; surface `message_key` to client-side i18n catalogs (SDK companion work tracked at X19, cross-repo); display `message` for end-user UI; **never parse `message` for control flow** — it changes per locale. Carrier shape lives on `ErrorEnvelope` (envelope-level optional `message_key` + `message` + `locale` + `message_params`) and `ValidationErrorEnvelope` (also per-`details[]` entry). Existing 402 / 403 / 422 envelopes (`BalanceExhaustedResponse`, `FeatureNotAvailableResponse`, `FeatureTierRestrictedResponse`, `WorkflowPausedDetail`) inherit the convention. **Upload thresholds (per tickets [u0ar7Yye](https://trello.com/c/u0ar7Yye) + [58nBQLWQ](https://trello.com/c/58nBQLWQ)).** Canonical upload constants (single-shot cap, multipart chunk size, multipart concurrency default, multipart first-chunk size) live on the `UploadThresholds` schema with `const:`-pinned values. SDK generators emit these as typed binding constants so frontend / API / SDKs reference one source of truth instead of hardcoding magic numbers. A runtime `GET /api/uploads/limits` endpoint for dynamic discovery (per-tier / per-environment overrides) is a deferred follow-up.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.15.3
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { UserTier } from './UserTier.js';
|
|
13
|
+
import type { ProcessingClass } from './ProcessingClass.js';
|
|
14
|
+
import type { OperationType } from './OperationType.js';
|
|
15
|
+
import type { ProcessingClassRejectReason } from './ProcessingClassRejectReason.js';
|
|
16
|
+
/**
|
|
17
|
+
* One band-ceiling overflow on a workflow-create reject. Carries
|
|
18
|
+
* the I26 localisation quad on the violation (mirrors
|
|
19
|
+
* `FeatureViolation`); envelope-level localisation rides via
|
|
20
|
+
* `allOf [ErrorEnvelope]` on `ProcessingClassExceedsBandResponse`.
|
|
21
|
+
*
|
|
22
|
+
* `job_ref`, `actual`, `ceiling`, `operation`, and
|
|
23
|
+
* `processing_class` are REQUIRED — the server always knows them
|
|
24
|
+
* at reject time and consumers rely on them to (a) correlate
|
|
25
|
+
* fail-all violations back to the offending job in multi-job
|
|
26
|
+
* workflows and (b) render "X exceeded by Y" without re-deriving
|
|
27
|
+
* caps from the per-tier overlay.
|
|
28
|
+
*
|
|
29
|
+
* @export
|
|
30
|
+
* @interface ProcessingClassBandViolation
|
|
31
|
+
*/
|
|
32
|
+
export interface ProcessingClassBandViolation {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {ProcessingClassRejectReason}
|
|
36
|
+
* @memberof ProcessingClassBandViolation
|
|
37
|
+
*/
|
|
38
|
+
reason: ProcessingClassRejectReason;
|
|
39
|
+
/**
|
|
40
|
+
* Workflow-local job identifier — `JobDefinition.id` if the
|
|
41
|
+
* caller supplied one, otherwise the auto-generated `job_N`
|
|
42
|
+
* positional token assigned by the server during request
|
|
43
|
+
* validation (e.g. `job_0`, `job_1`). Workflow-create rejects
|
|
44
|
+
* fire BEFORE persisted server UUIDs are assigned; `job_ref`
|
|
45
|
+
* is the request-local handle that survives across reject
|
|
46
|
+
* and (later) success paths. Per `JobDefinition.id` pattern
|
|
47
|
+
* + auto-generation rules.
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ProcessingClassBandViolation
|
|
51
|
+
*/
|
|
52
|
+
jobRef: string;
|
|
53
|
+
/**
|
|
54
|
+
* 0-based ordinal into `JobDefinition.inputs[]` identifying
|
|
55
|
+
* the specific input that violated the per-input ceiling.
|
|
56
|
+
* Set ONLY on `input_*_exceeds_long_form` reasons for
|
|
57
|
+
* multi-input operations; omitted on single-input
|
|
58
|
+
* operations (no positional ambiguity) and on
|
|
59
|
+
* `combined_*_exceeds_long_form` reasons (whole-job
|
|
60
|
+
* violation across all inputs).
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ProcessingClassBandViolation
|
|
64
|
+
*/
|
|
65
|
+
inputIndex?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Operation type that triggered the band-ceiling reject.
|
|
68
|
+
* @type {OperationType}
|
|
69
|
+
* @memberof ProcessingClassBandViolation
|
|
70
|
+
*/
|
|
71
|
+
operation: OperationType;
|
|
72
|
+
/**
|
|
73
|
+
* The class whose ceiling was exceeded — typically `long_form`
|
|
74
|
+
* or `long_form_re_encode`.
|
|
75
|
+
*
|
|
76
|
+
* @type {ProcessingClass}
|
|
77
|
+
* @memberof ProcessingClassBandViolation
|
|
78
|
+
*/
|
|
79
|
+
processingClass: ProcessingClass;
|
|
80
|
+
/**
|
|
81
|
+
* Observed value. Bytes for `*_size_exceeds_long_form`
|
|
82
|
+
* reasons; whole seconds for `*_duration_exceeds_long_form`
|
|
83
|
+
* reasons.
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof ProcessingClassBandViolation
|
|
87
|
+
*/
|
|
88
|
+
actual: number;
|
|
89
|
+
/**
|
|
90
|
+
* Effective per-tier ceiling for this caller (same units as
|
|
91
|
+
* `actual`). The binding cap after `per_tier_constraints`
|
|
92
|
+
* overlay; lets consumers render "X exceeded by Y" without
|
|
93
|
+
* re-deriving caps from the per-tier overlay.
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @memberof ProcessingClassBandViolation
|
|
97
|
+
*/
|
|
98
|
+
ceiling: number;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {UserTier}
|
|
102
|
+
* @memberof ProcessingClassBandViolation
|
|
103
|
+
*/
|
|
104
|
+
requiredTier?: UserTier | null;
|
|
105
|
+
/**
|
|
106
|
+
* Optional link to processing-class documentation.
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof ProcessingClassBandViolation
|
|
109
|
+
*/
|
|
110
|
+
documentationUrl?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Per I26. See `ErrorEnvelope.message_key`.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof ProcessingClassBandViolation
|
|
115
|
+
*/
|
|
116
|
+
messageKey?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Per I26. Human-readable, localised per `Accept-Language`.
|
|
119
|
+
* Never parse for control flow.
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof ProcessingClassBandViolation
|
|
123
|
+
*/
|
|
124
|
+
message?: string;
|
|
125
|
+
/**
|
|
126
|
+
* BCP 47 locale tag. See `ErrorEnvelope.locale`.
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof ProcessingClassBandViolation
|
|
129
|
+
*/
|
|
130
|
+
locale?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Per I26. Optional interpolation values for the localised
|
|
133
|
+
* `message`. Excludes cost numbers.
|
|
134
|
+
*
|
|
135
|
+
* @type {{ [key: string]: any; }}
|
|
136
|
+
* @memberof ProcessingClassBandViolation
|
|
137
|
+
*/
|
|
138
|
+
messageParams?: {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Check if a given object implements the ProcessingClassBandViolation interface.
|
|
144
|
+
*/
|
|
145
|
+
export declare function instanceOfProcessingClassBandViolation(value: object): value is ProcessingClassBandViolation;
|
|
146
|
+
export declare function ProcessingClassBandViolationFromJSON(json: any): ProcessingClassBandViolation;
|
|
147
|
+
export declare function ProcessingClassBandViolationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessingClassBandViolation;
|
|
148
|
+
export declare function ProcessingClassBandViolationToJSON(json: any): ProcessingClassBandViolation;
|
|
149
|
+
export declare function ProcessingClassBandViolationToJSONTyped(value?: ProcessingClassBandViolation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GISL Compression API
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, image_watermark, text_watermark, merge, archive, convert, custom_luma, audio_overlay, audio_watermark) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (per-tier private caching with ETag/Last-Modified revalidation per ADR-0002 + I3), health probes return flat objects, and `POST /api/contact` returns 204 with no body. **Availability metadata.** This spec uses the `x-availability` vendor extension as **decorative documentation only**. Per [ADR-0001](../docs/decisions/0001-contract-first-availability.md) §1.5, the runtime endpoint `GET /api/operations/schema` (ticket I3) is the authoritative source; the sidecar `availability.json` (ticket I3b) is the authoritative companion (generated, never hand-edited; CI cross-checks runtime ⇄ sidecar). SDKs MUST NOT depend on `x-availability` reaching generated code — code-generators that surface vendor extensions may emit it as documentation, but consumers read availability from the runtime endpoint, not from the generated bindings. The 5-value vocabulary (`stable | beta | experimental | planned | deprecated`) is defined in the `AvailabilityValue` schema. See `schemas/FORMAT.md` §Availability Taxonomy for the operational rules (parser obligation: absent = stable; per-enum-value granularity is the `per_value_availability` primitive landed via ticket I17). **Localisation (per ticket [I26](https://trello.com/c/rcnqwgI4)).** Error responses + paused/blocked workflow statuses carry a localised human-readable `message` alongside a stable, never-localised `message_key`. Machine-readable fields (`error`, enum values, status codes) stay canonical English. - **Request:** `Accept-Language` header per RFC 9110 §12.5.4 (q-value negotiation supported). The server selects the best-match locale from its supported list; falls back to `en-GB` when no match. - **Response:** `Content-Language: <locale>` echo on every localised response; `Vary: Accept-Language` on every response (CDN/cache correctness — different `Accept-Language` requests produce different responses). - **Fallback locale:** `en-GB` (also the canonical locale for `message_key` translations and English `message` prose). - **SDK guidance:** switch on `error` (machine code) for typed error branches; surface `message_key` to client-side i18n catalogs (SDK companion work tracked at X19, cross-repo); display `message` for end-user UI; **never parse `message` for control flow** — it changes per locale. Carrier shape lives on `ErrorEnvelope` (envelope-level optional `message_key` + `message` + `locale` + `message_params`) and `ValidationErrorEnvelope` (also per-`details[]` entry). Existing 402 / 403 / 422 envelopes (`BalanceExhaustedResponse`, `FeatureNotAvailableResponse`, `FeatureTierRestrictedResponse`, `WorkflowPausedDetail`) inherit the convention. **Upload thresholds (per tickets [u0ar7Yye](https://trello.com/c/u0ar7Yye) + [58nBQLWQ](https://trello.com/c/58nBQLWQ)).** Canonical upload constants (single-shot cap, multipart chunk size, multipart concurrency default, multipart first-chunk size) live on the `UploadThresholds` schema with `const:`-pinned values. SDK generators emit these as typed binding constants so frontend / API / SDKs reference one source of truth instead of hardcoding magic numbers. A runtime `GET /api/uploads/limits` endpoint for dynamic discovery (per-tier / per-environment overrides) is a deferred follow-up.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.15.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { UserTierFromJSON, UserTierToJSON, } from './UserTier.js';
|
|
15
|
+
import { ProcessingClassFromJSON, ProcessingClassToJSON, } from './ProcessingClass.js';
|
|
16
|
+
import { OperationTypeFromJSON, OperationTypeToJSON, } from './OperationType.js';
|
|
17
|
+
import { ProcessingClassRejectReasonFromJSON, ProcessingClassRejectReasonToJSON, } from './ProcessingClassRejectReason.js';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ProcessingClassBandViolation interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfProcessingClassBandViolation(value) {
|
|
22
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('jobRef' in value) || value['jobRef'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('operation' in value) || value['operation'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('processingClass' in value) || value['processingClass'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('actual' in value) || value['actual'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('ceiling' in value) || value['ceiling'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function ProcessingClassBandViolationFromJSON(json) {
|
|
37
|
+
return ProcessingClassBandViolationFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ProcessingClassBandViolationFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'reason': ProcessingClassRejectReasonFromJSON(json['reason']),
|
|
45
|
+
'jobRef': json['job_ref'],
|
|
46
|
+
'inputIndex': json['input_index'] == null ? undefined : json['input_index'],
|
|
47
|
+
'operation': OperationTypeFromJSON(json['operation']),
|
|
48
|
+
'processingClass': ProcessingClassFromJSON(json['processing_class']),
|
|
49
|
+
'actual': json['actual'],
|
|
50
|
+
'ceiling': json['ceiling'],
|
|
51
|
+
'requiredTier': json['required_tier'] == null ? undefined : UserTierFromJSON(json['required_tier']),
|
|
52
|
+
'documentationUrl': json['documentation_url'] == null ? undefined : json['documentation_url'],
|
|
53
|
+
'messageKey': json['message_key'] == null ? undefined : json['message_key'],
|
|
54
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
55
|
+
'locale': json['locale'] == null ? undefined : json['locale'],
|
|
56
|
+
'messageParams': json['message_params'] == null ? undefined : json['message_params'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function ProcessingClassBandViolationToJSON(json) {
|
|
60
|
+
return ProcessingClassBandViolationToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
export function ProcessingClassBandViolationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'reason': ProcessingClassRejectReasonToJSON(value['reason']),
|
|
68
|
+
'job_ref': value['jobRef'],
|
|
69
|
+
'input_index': value['inputIndex'],
|
|
70
|
+
'operation': OperationTypeToJSON(value['operation']),
|
|
71
|
+
'processing_class': ProcessingClassToJSON(value['processingClass']),
|
|
72
|
+
'actual': value['actual'],
|
|
73
|
+
'ceiling': value['ceiling'],
|
|
74
|
+
'required_tier': UserTierToJSON(value['requiredTier']),
|
|
75
|
+
'documentation_url': value['documentationUrl'],
|
|
76
|
+
'message_key': value['messageKey'],
|
|
77
|
+
'message': value['message'],
|
|
78
|
+
'locale': value['locale'],
|
|
79
|
+
'message_params': value['messageParams'],
|
|
80
|
+
};
|
|
81
|
+
}
|