{"openapi":"3.0.0","paths":{"/v1/studio/assets":{"post":{"operationId":"createAsset","summary":"Create asset","description":"Upload a new asset. If the file exceeds the max chunk size, the asset must be uploaded in chunks.","parameters":[{"name":"Idempotency-Key","in":"header","description":"Optional UUID. Repeating a completed request with the same key replays the original response (201 with header `Idempotent-Replayed: true`); an in-flight duplicate returns 409.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CreateAssetRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetModel"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Assets"]}},"/v1/studio/assets/{assetId}/versions/{versionId}/chunks":{"post":{"operationId":"createAssetChunk","summary":"Create asset chunk","description":"Add a chunk to a partially uploaded asset.","parameters":[{"name":"assetId","required":true,"in":"path","schema":{"type":"string"}},{"name":"versionId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CreateAssetChunkRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetModel"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Assets"]}},"/v1/studio/assets/query":{"post":{"operationId":"ExternalAssetApiController_findMany","summary":"Query assets","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryAssetsRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryAssetsResponse"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Assets"]}},"/v1/studio/assets/{assetId}":{"delete":{"operationId":"deleteAsset","summary":"Delete asset","description":"Soft-delete an asset","parameters":[{"name":"assetId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Assets"]}},"/v1/studio/assets/{assetId}/lifecycle/purge":{"post":{"operationId":"purgeAsset","summary":"Purge asset","description":"Permanently delete soft-deleted asset (asset is non-recoverable). Asset must be soft-deleted first.","parameters":[{"name":"assetId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Assets"]}}},"info":{"title":"Aforza Studio API","description":"Manage your Studio assets","version":"v1","contact":{}},"tags":[],"servers":[{"url":"https://api.aforza.com"}],"components":{"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"scopes":{"studio.manage":"Manage Studio assets"},"tokenUrl":"https://login.stg.aforza.com/oauth2/default/v1/token"}},"name":"oAuth2ClientCredentials","description":"This API uses OAuth 2 with client credentials flow. A Client ID and Client Secret are required to obtain a token."}},"schemas":{"AssignedToWorkflowDetailsModel":{"type":"object","properties":{"workflowId":{"type":"string","readOnly":true,"format":"uuid"},"name":{"type":"string","readOnly":true}},"required":["workflowId","name"]},"ErrorCodeEnum":{"type":"string","enum":["ACTIVE_SPACE_PROTECTED","ARCHIVED_SPACE_PROTECTED","ASSIGNED_TO_WORKFLOW","DATABASE","DEFAULT_SPACE_PROTECTED","DEFAULT_USER_SPACE_PROTECTED","DUPLICATE_REQUEST","ENTITY_NAME_CONFLICT","ENTITY_NOT_FOUND","FOLDER_CIRCULAR_DEPENDENCY","GOOGLE_VISION_NOT_ENABLED","INTEGRATION_IN_USE","INVALID_IDEMPOTENCY_KEY","INVALID_SPACE_ID","MISSING_PERMISSION","MONTHLY_USAGE_EXCEEDED","NON_EMPTY_FOLDER","NON_EMPTY_SPACE","SPACE_CONTAINS_USER","SPACE_USER_NOT_FOUND","SPACES_LIMIT_REACHED","TENANT_DEFAULT_SPACE_CONFLICT","USER_DEFAULT_SPACE_CONFLICT","USER_NOT_IN_SPACE","VALIDATION","WATERMARKING_NOT_ENABLED","WORKFLOWS_LIMIT_REACHED","WORKFLOWS_NOT_ENABLED"]},"ErrorResponse":{"type":"object","properties":{"statusCode":{"type":"number","readOnly":true},"message":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"readOnly":true},"error":{"type":"string","readOnly":true},"errorCode":{"readOnly":true,"$ref":"#/components/schemas/ErrorCodeEnum"},"details":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/AssignedToWorkflowDetailsModel"}]},"readOnly":true}},"required":["statusCode","error"]},"CreateAssetRequest":{"type":"object","properties":{"file":{"type":"file","properties":{"file":{"type":"string","format":"binary"}}},"name":{"type":"string","minLength":1,"maxLength":256,"description":"Defaults to filename if not provided"},"description":{"type":"string","minLength":1,"maxLength":512},"publicTags":{"type":"string","description":"Comma separated string of tags to attach to the asset. New tags are created if they do not exist."},"folderId":{"type":"string","description":"The ID of the folder to store the asset in"},"attributes":{"type":"string","description":"JSON encoded AttributeEntry[]","example":"JSON.stringify([{ name: 'name', value: 'value', dataType: 'STRING' }])"}},"required":["file"]},"UserModel":{"type":"object","properties":{"userId":{"type":"string","readOnly":true},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"displayName":{"type":"string"},"salesforceId":{"type":"string"},"isActive":{"type":"boolean","readOnly":true},"avatarUrl":{"type":"string"}},"required":["userId","isActive"]},"ContentType":{"type":"string","enum":["DOCUMENT","PRESENTATION","SPREADSHEET","IMAGE","AR","AUDIO","VIDEO","NOTFOUND"]},"VersionStatus":{"type":"string","enum":["UPLOADING","UPLOADED","COMPOSING","COMPOSED","SCANNING","SCANNED","QUARANTINED","VALIDATING","VALIDATED","PUBLISHING","PUBLISHED","REJECTED"]},"ImageMetadataModel":{"type":"object","properties":{"height":{"type":"number","readOnly":true},"width":{"type":"number","readOnly":true}},"required":["height","width"]},"ObjectsModel":{"type":"object","properties":{"count":{"type":"number","readOnly":true},"countPercent":{"type":"number","readOnly":true},"countPercentDisplay":{"type":"number","readOnly":true},"countRatio":{"type":"number","readOnly":true}},"required":["count","countPercent","countPercentDisplay","countRatio"]},"ShareModel":{"type":"object","properties":{"count":{"type":"number","readOnly":true},"countPercent":{"type":"number","readOnly":true},"countPercentDisplay":{"type":"number","readOnly":true},"countRatio":{"type":"number","readOnly":true}},"required":["count","countPercent","countPercentDisplay","countRatio"]},"ProductModel":{"type":"object","properties":{"barcode":{"type":"string","readOnly":true},"brand":{"type":"string","readOnly":true},"customId":{"type":"string","readOnly":true},"name":{"type":"string","readOnly":true},"productUuid":{"type":"string","readOnly":true},"subtype":{"type":"string","readOnly":true},"vertices":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/VertexModel"}},"readOnly":true},"share":{"readOnly":true,"allOf":[{"$ref":"#/components/schemas/ShareModel"}]}},"required":["name","productUuid","share"]},"VertexModel":{"type":"object","properties":{"x":{"type":"number","readOnly":true},"y":{"type":"number","readOnly":true}},"required":["x","y"]},"DetectionModel":{"type":"object","properties":{"barcode":{"type":"string","readOnly":true},"brand":{"type":"string","readOnly":true},"customId":{"type":"string","readOnly":true},"name":{"type":"string","readOnly":true},"productUuid":{"type":"string","readOnly":true},"subtype":{"type":"string","readOnly":true},"vertices":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/VertexModel"}},"readOnly":true},"count":{"type":"number","readOnly":true}},"required":["name","productUuid","count"]},"UnknownDetectionModel":{"type":"object","properties":{"name":{"type":"string","readOnly":true},"vertices":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/VertexModel"}},"readOnly":true},"count":{"type":"number","readOnly":true}},"required":["name","count"]},"TotalsModel":{"type":"object","properties":{"allFacings":{"type":"number","readOnly":true},"brandFacings":{"type":"number","readOnly":true},"shareOfShelfPercent":{"type":"number","readOnly":true},"shareOfShelfPercentDisplay":{"type":"number","readOnly":true}},"required":["allFacings","brandFacings","shareOfShelfPercent","shareOfShelfPercentDisplay"]},"ShareOfShelfVendorEnum":{"type":"string","enum":["NEUROLABS","PARALLELDOTS"]},"ShareOfShelfDetailsModel":{"type":"object","properties":{"objects":{"readOnly":true,"allOf":[{"$ref":"#/components/schemas/ObjectsModel"}]},"products":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/ProductModel"}},"competitorProducts":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/ProductModel"}},"pointOfSaleMaterials":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/DetectionModel"}},"pointOfSaleMaterialsUnknown":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/UnknownDetectionModel"}},"totals":{"readOnly":true,"allOf":[{"$ref":"#/components/schemas/TotalsModel"}]},"vendor":{"readOnly":true,"$ref":"#/components/schemas/ShareOfShelfVendorEnum"},"vendorUrl":{"type":"string","readOnly":true}},"required":["objects","products","totals","vendor"]},"GoogleVisionAnnotationInfoModel":{"type":"object","properties":{"count":{"type":"number","readOnly":true},"description":{"type":"string","readOnly":true},"percent":{"type":"number","readOnly":true},"vertices":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/VertexModel"}},"readOnly":true}},"required":["count","description","percent","vertices"]},"TextDetectionDetailsModel":{"type":"object","properties":{"countLowest":{"type":"number","readOnly":true},"countHighest":{"type":"number","readOnly":true},"countTotal":{"type":"number","readOnly":true},"items":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/GoogleVisionAnnotationInfoModel"}},"fullText":{"type":"string","readOnly":true}},"required":["countLowest","countHighest","countTotal","items","fullText"]},"TextDetectionMatchInfoModel":{"type":"object","properties":{"phrase":{"type":"string","readOnly":true},"count":{"type":"number","readOnly":true},"matcherPercent":{"type":"number","readOnly":true},"totalPercent":{"type":"number","readOnly":true},"vertices":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/VertexModel"}},"readOnly":true}},"required":["phrase","count","matcherPercent","totalPercent","vertices"]},"TextDetectionMatcherResultModel":{"type":"object","properties":{"label":{"type":"string","readOnly":true},"color":{"type":"string","readOnly":true},"matches":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/TextDetectionMatchInfoModel"}}},"required":["label","color","matches"]},"TextDetectionTotalsMatcherModel":{"type":"object","properties":{"label":{"type":"string","readOnly":true},"percent":{"type":"number","readOnly":true},"percentDisplay":{"type":"number","readOnly":true},"total":{"type":"number","readOnly":true}},"required":["label","percent","percentDisplay","total"]},"TextDetectionTotalsModel":{"type":"object","properties":{"all":{"type":"number","readOnly":true},"matchers":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/TextDetectionTotalsMatcherModel"}}},"required":["all","matchers"]},"TextDetectionMatchModel":{"type":"object","properties":{"actionName":{"type":"string","readOnly":true},"matchers":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/TextDetectionMatcherResultModel"}},"renditionId":{"type":"string","readOnly":true},"totals":{"readOnly":true,"allOf":[{"$ref":"#/components/schemas/TextDetectionTotalsModel"}]}},"required":["actionName","matchers","renditionId","totals"]},"AdditionalDetailsModel":{"type":"object","properties":{"metadata":{"readOnly":true,"allOf":[{"$ref":"#/components/schemas/ImageMetadataModel"}]},"shareOfShelf":{"readOnly":true,"allOf":[{"$ref":"#/components/schemas/ShareOfShelfDetailsModel"}]},"textDetection":{"readOnly":true,"allOf":[{"$ref":"#/components/schemas/TextDetectionDetailsModel"}]},"textDetectionMatches":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/TextDetectionMatchModel"}}}},"ChunkModel":{"type":"object","properties":{"tenantId":{"type":"string"},"spaceId":{"type":"string"},"createdById":{"type":"string"},"createdBy":{"$ref":"#/components/schemas/UserModel"},"updatedById":{"type":"string"},"updatedBy":{"$ref":"#/components/schemas/UserModel"},"deletedById":{"type":"string"},"deletedBy":{"$ref":"#/components/schemas/UserModel"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"deletedAt":{"format":"date-time","type":"string"},"mimeType":{"type":"string"},"encoding":{"type":"string"},"extension":{"type":"string"},"originalName":{"type":"string"},"size":{"type":"number"},"md5":{"type":"string"},"crc32c":{"type":"string"},"chunkId":{"type":"string"},"versionId":{"type":"string"},"rangeStart":{"type":"number"},"rangeEnd":{"type":"number"}},"required":["tenantId","spaceId","mimeType","encoding","extension","originalName","size","chunkId","versionId","rangeStart","rangeEnd"]},"RenditionType":{"type":"string","enum":["ir_highlighted_products","ir_share_of_shelf","original","original_internal","resize","txt_detect_full_text","txt_detect_result","thumbnail"]},"RenditionModel":{"type":"object","properties":{"tenantId":{"type":"string"},"spaceId":{"type":"string"},"createdById":{"type":"string"},"createdBy":{"$ref":"#/components/schemas/UserModel"},"updatedById":{"type":"string"},"updatedBy":{"$ref":"#/components/schemas/UserModel"},"deletedById":{"type":"string"},"deletedBy":{"$ref":"#/components/schemas/UserModel"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"deletedAt":{"format":"date-time","type":"string"},"mimeType":{"type":"string"},"encoding":{"type":"string"},"extension":{"type":"string"},"originalName":{"type":"string"},"size":{"type":"number"},"md5":{"type":"string"},"crc32c":{"type":"string"},"versionId":{"type":"string"},"renditionId":{"type":"string"},"renditionType":{"$ref":"#/components/schemas/RenditionType"},"renditionDescription":{"type":"string"},"contentUrl":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["tenantId","spaceId","mimeType","encoding","extension","originalName","size","versionId","renditionId","renditionType"]},"ParentFolderModel":{"type":"object","properties":{"folderId":{"type":"string","readOnly":true},"name":{"type":"string","readOnly":true},"ascendentLevel":{"type":"number","readOnly":true}},"required":["folderId","name","ascendentLevel"]},"TagModel":{"type":"object","properties":{"tagId":{"type":"string"},"tagName":{"type":"string"},"assetCount":{"type":"number"},"workflowCount":{"type":"number"}}},"VersionModel":{"type":"object","properties":{"tenantId":{"type":"string"},"spaceId":{"type":"string"},"createdById":{"type":"string"},"createdBy":{"$ref":"#/components/schemas/UserModel"},"updatedById":{"type":"string"},"updatedBy":{"$ref":"#/components/schemas/UserModel"},"deletedById":{"type":"string"},"deletedBy":{"$ref":"#/components/schemas/UserModel"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"deletedAt":{"format":"date-time","type":"string"},"mimeType":{"type":"string"},"encoding":{"type":"string"},"extension":{"type":"string"},"originalName":{"type":"string"},"size":{"type":"number"},"md5":{"type":"string"},"crc32c":{"type":"string"},"assetId":{"type":"string"},"versionId":{"type":"string"},"contentType":{"$ref":"#/components/schemas/ContentType"},"versionStatus":{"$ref":"#/components/schemas/VersionStatus"},"additionalData":{"type":"boolean"},"additionalDetails":{"$ref":"#/components/schemas/AdditionalDetailsModel"},"hasChats":{"type":"boolean"},"watermarked":{"type":"boolean"},"versionNumber":{"type":"number"},"uploadUrl":{"type":"string"},"contentUrl":{"type":"string"},"downloadUrl":{"type":"string"},"imageRecognitionUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iconUrl":{"type":"string"},"chunks":{"type":"array","items":{"$ref":"#/components/schemas/ChunkModel"}},"renditions":{"type":"array","items":{"$ref":"#/components/schemas/RenditionModel"}}},"required":["tenantId","spaceId","mimeType","encoding","extension","originalName","size","assetId","versionId","contentType","versionStatus","additionalData","hasChats","watermarked","versionNumber"]},"SourceEnum":{"type":"string","enum":["SFDC","FIELD_MOBILE","STUDIO_WEB","STUDIO_MOBILE","AVA_WEB","AVA_MOBILE","API"]},"ExternalLinkModel":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"category":{"type":"string","readOnly":true},"label":{"type":"string","readOnly":true},"url":{"type":"string","readOnly":true},"mobileDeepLink":{"type":"string","readOnly":true}},"required":["id","category","label","url"]},"AttributeTypeEnum":{"type":"string","enum":["IMAGE_RECOGNITION","SYSTEM_METADATA","SYSTEM_SALESFORCE","TEXT_DETECT"]},"AttributeDataTypeEnum":{"type":"string","enum":["BOOLEAN","DATE","GEOPOINT","NUMBER","STRING"]},"AttributeValueModel":{"type":"object","properties":{"attributeValueId":{"type":"string","readOnly":true},"value":{"type":"string","readOnly":true},"externalId":{"type":"string","readOnly":true}},"required":["attributeValueId","value"]},"AssetAttributeModel":{"type":"object","properties":{"attributeId":{"type":"string","readOnly":true},"name":{"type":"string","readOnly":true},"displayName":{"type":"string","readOnly":true},"attributeType":{"readOnly":true,"$ref":"#/components/schemas/AttributeTypeEnum"},"dataType":{"readOnly":true,"$ref":"#/components/schemas/AttributeDataTypeEnum"},"values":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/AttributeValueModel"}}},"required":["attributeId","name","displayName","attributeType","dataType"]},"AssetModel":{"type":"object","properties":{"tenantId":{"type":"string"},"spaceId":{"type":"string"},"createdById":{"type":"string"},"createdBy":{"$ref":"#/components/schemas/UserModel"},"updatedById":{"type":"string"},"updatedBy":{"$ref":"#/components/schemas/UserModel"},"deletedById":{"type":"string"},"deletedBy":{"$ref":"#/components/schemas/UserModel"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"deletedAt":{"format":"date-time","type":"string"},"mimeType":{"type":"string"},"encoding":{"type":"string"},"extension":{"type":"string"},"originalName":{"type":"string"},"size":{"type":"number"},"md5":{"type":"string"},"crc32c":{"type":"string"},"assetId":{"type":"string"},"versionId":{"type":"string"},"contentType":{"$ref":"#/components/schemas/ContentType"},"versionStatus":{"$ref":"#/components/schemas/VersionStatus"},"additionalData":{"type":"boolean"},"additionalDetails":{"$ref":"#/components/schemas/AdditionalDetailsModel"},"hasChats":{"type":"boolean"},"watermarked":{"type":"boolean"},"versionNumber":{"type":"number"},"uploadUrl":{"type":"string"},"contentUrl":{"type":"string"},"downloadUrl":{"type":"string"},"imageRecognitionUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iconUrl":{"type":"string"},"chunks":{"type":"array","items":{"$ref":"#/components/schemas/ChunkModel"}},"renditions":{"type":"array","items":{"$ref":"#/components/schemas/RenditionModel"}},"name":{"type":"string"},"description":{"type":"string"},"isPublic":{"type":"boolean"},"folderId":{"type":"string"},"parentFolders":{"type":"array","items":{"$ref":"#/components/schemas/ParentFolderModel"}},"publicTags":{"type":"array","items":{"$ref":"#/components/schemas/TagModel"}},"systemTags":{"type":"array","items":{"$ref":"#/components/schemas/TagModel"}},"versions":{"type":"array","items":{"$ref":"#/components/schemas/VersionModel"}},"isFavourite":{"type":"boolean"},"meta":{"type":"array","items":{"type":"string"}},"source":{"$ref":"#/components/schemas/SourceEnum"},"studioWebUrl":{"type":"string"},"externalLinks":{"type":"array","items":{"$ref":"#/components/schemas/ExternalLinkModel"}},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/AssetAttributeModel"}}},"required":["tenantId","spaceId","mimeType","encoding","extension","originalName","size","assetId","versionId","contentType","versionStatus","additionalData","hasChats","watermarked","versionNumber","isPublic","parentFolders"]},"CreateAssetChunkRequest":{"type":"object","properties":{"file":{"type":"file","properties":{"file":{"type":"string","format":"binary"}}}},"required":["file"]},"OrderDirection":{"type":"string","enum":["ASCENDING","DESCENDING"]},"FindOrderBy":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/OrderDirection"},"description":{"$ref":"#/components/schemas/OrderDirection"},"contentType":{"$ref":"#/components/schemas/OrderDirection"},"size":{"$ref":"#/components/schemas/OrderDirection"},"createdAt":{"$ref":"#/components/schemas/OrderDirection"},"updatedAt":{"$ref":"#/components/schemas/OrderDirection"},"deletedAt":{"$ref":"#/components/schemas/OrderDirection"}}},"MatchEnum":{"type":"string","description":"Return assets that match ALL of the given tags or ANY of the given tags.","default":"ALL","enum":["ANY","ALL"]},"FindWhereTags":{"type":"object","properties":{"tagIds":{"type":"array","items":{"type":"string"}},"tagNames":{"type":"array","items":{"type":"string"}},"match":{"$ref":"#/components/schemas/MatchEnum"}}},"DateRange":{"type":"object","properties":{"from":{"format":"date-time","type":"string"},"to":{"format":"date-time","type":"string"}}},"NumberRange":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"}}},"QueryAssetsWhere":{"type":"object","properties":{"name":{"type":"string"},"publicTags":{"$ref":"#/components/schemas/FindWhereTags"},"createdById":{"type":"string","description":"Can be used with createdByIds. Created by user ids are combined into a single array of unique values."},"createdByIds":{"description":"Can be used with createdById. Created by user ids are combined into a single array of unique values.","type":"array","items":{"type":"string"}},"contentType":{"type":"array","items":{"$ref":"#/components/schemas/ContentType"}},"source":{"type":"array","items":{"$ref":"#/components/schemas/SourceEnum"}},"createdDate":{"$ref":"#/components/schemas/DateRange"},"updatedDate":{"$ref":"#/components/schemas/DateRange"},"size":{"$ref":"#/components/schemas/NumberRange"},"spaceIds":{"description":"Restricts the query to these spaces. The user must be a member of every space, otherwise a 400 is returned. Cannot be used together with queryAllUsersSpaces: true.","type":"array","items":{"type":"string"}},"queryAllUsersSpaces":{"type":"boolean","description":"When true, queries all spaces the user is an active member of. When omitted or false, the active space is used unless spaceIds is populated. Cannot be true together with spaceIds."}}},"QueryAssetsRequest":{"type":"object","properties":{"orderBy":{"default":{"createdAt":"DESC"},"allOf":[{"$ref":"#/components/schemas/FindOrderBy"}]},"skip":{"type":"number","default":0,"minimum":0},"limit":{"type":"number","default":50,"minimum":0,"maximum":250},"noCount":{"type":"boolean","default":false,"description":"When true, the total matching count is not computed; the response count is -1."},"where":{"$ref":"#/components/schemas/QueryAssetsWhere"}}},"AssetSummary":{"type":"object","properties":{"spaceId":{"type":"string"},"createdBy":{"$ref":"#/components/schemas/UserModel"},"updatedBy":{"$ref":"#/components/schemas/UserModel"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"mimeType":{"type":"string"},"extension":{"type":"string"},"originalName":{"type":"string"},"size":{"type":"number"},"assetId":{"type":"string"},"versionId":{"type":"string"},"contentType":{"$ref":"#/components/schemas/ContentType"},"contentUrl":{"type":"string"},"downloadUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"publicTags":{"type":"array","items":{"$ref":"#/components/schemas/TagModel"}},"source":{"$ref":"#/components/schemas/SourceEnum"},"studioWebUrl":{"type":"string"}},"required":["spaceId","mimeType","extension","originalName","size","assetId","versionId","contentType"]},"QueryAssetsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetSummary"}},"count":{"type":"number","description":"Total matching assets. -1 when the request set noCount to true (count was skipped)."}},"required":["data","count"]}}}}