Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Added digital asset management to the Seller API

Damian Legawiec123881d3a4e0
diff --git a/docs/api-reference/admin.yaml b/docs/api-reference/admin.yaml
index 0ac6843691..266e381673 100644
--- a/docs/api-reference/admin.yaml
+++ b/docs/api-reference/admin.yaml
@@ -10209,7 +10209,7 @@ paths:
content:
application/json:
example:
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a9cd29e72a70654182038480207bd929343f6a07
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--aacde269a0019661ac951ab66e97e4338f76c0e3
filename: products.csv
content_type: text/csv
byte_size: 48213
@@ -10217,7 +10217,7 @@ paths:
expires_at: '2026-01-16T12:00:00.000Z'
upload:
method: PUT
- url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJxcmZsMnNod3YwYmR4cWF3ZWFocDZvYjhlYzh5IiwiY29udGVudF90eXBlIjoidGV4dC9jc3YiLCJjb250ZW50X2xlbmd0aCI6NDgyMTMsImNoZWNrc3VtIjoiaGdKTXJSNkRFQjJYTloxelVRVVJWZz09Iiwic2VydmljZV9uYW1lIjoidGVzdCJ9LCJleHAiOiIyMDI2LTAxLTE1VDEyOjA1OjAwLjAwMFoiLCJwdXIiOiJibG9iX3Rva2VuIn19--d4e8daa252ef4ddb8e82ab74394aab7d435572ec
+ url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJxcmZsMnNod3YwYmR4cWF3ZWFocDZvYjhlYzh5IiwiY29udGVudF90eXBlIjoidGV4dC9jc3YiLCJjb250ZW50X2xlbmd0aCI6NDgyMTMsImNoZWNrc3VtIjoiaGdKTXJSNkRFQjJYTloxelVRVVJWZz09Iiwic2VydmljZV9uYW1lIjoidGVzdCJ9LCJleHAiOiIyMDI2LTAxLTE1VDEyOjA1OjAwLjAwMFoiLCJwdXIiOiJibG9iX3Rva2VuIn19--c3b32cb7c8370747da83a558fab123e28b943128
headers:
Content-Type: text/csv
schema:
@@ -23966,14 +23966,14 @@ paths:
authorized_clicks:
authorized_days:
byte_size: 18090
- provider_settings: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
provider_type:
provider_name: File
- download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJ0Z252N2l0MG55YnkwbHhkczg5Y2hteTd6aXlvIiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cInRoaW5raW5nLWNhdC5qcGdcIjsgZmlsZW5hbWUqPVVURi04Jyd0aGlua2luZy1jYXQuanBnIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--5d2a25a4ad70f44888bbbd044a07502208e6c914/thinking-cat.jpg
+ download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJ0Z252N2l0MG55YnkwbHhkczg5Y2hteTd6aXlvIiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cInRoaW5raW5nLWNhdC5qcGdcIjsgZmlsZW5hbWUqPVVURi04Jyd0aGlua2luZy1jYXQuanBnIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--06a160c64f398ed4eb70327ef6932eaf662f98d7/thinking-cat.jpg
effective_authorized_clicks: 5
effective_authorized_days: 7
+ provider_settings: {}
meta:
page: 1
limit: 25
@@ -24057,14 +24057,14 @@ paths:
authorized_clicks: 5
authorized_days: 30
byte_size: 18090
- provider_settings: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
provider_type:
provider_name: File
- download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJhOXR0cGNpbmxxbThvbmtlNHM1NmI2Y3gxMWVzIiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cIm1hbnVhbC5wZGZcIjsgZmlsZW5hbWUqPVVURi04JydtYW51YWwucGRmIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--d2ff844668d772f5c118d6f435e5d6e2d651ff9a/manual.pdf
+ download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJhOXR0cGNpbmxxbThvbmtlNHM1NmI2Y3gxMWVzIiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cIm1hbnVhbC5wZGZcIjsgZmlsZW5hbWUqPVVURi04JydtYW51YWwucGRmIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--0df5c2167c42cdda6a5f6639d3ddc1b4473c5a81/manual.pdf
effective_authorized_clicks: 5
effective_authorized_days: 30
+ provider_settings: {}
schema:
"$ref": "#/components/schemas/DigitalAsset"
requestBody:
@@ -24146,14 +24146,14 @@ paths:
authorized_clicks: 10
authorized_days:
byte_size: 18090
- provider_settings: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
provider_type:
provider_name: File
- download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiIwZXp6d3IzMzE3ajRoem9kc3Awc2czN3EzMnhzIiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cInRoaW5raW5nLWNhdC5qcGdcIjsgZmlsZW5hbWUqPVVURi04Jyd0aGlua2luZy1jYXQuanBnIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--a93638ab3e9ff88b2fee8f3b0d650f8cad8787d7/thinking-cat.jpg
+ download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiIwZXp6d3IzMzE3ajRoem9kc3Awc2czN3EzMnhzIiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cInRoaW5raW5nLWNhdC5qcGdcIjsgZmlsZW5hbWUqPVVURi04Jyd0aGlua2luZy1jYXQuanBnIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--da799713969a4775b10b6055f685e92f410f5176/thinking-cat.jpg
effective_authorized_clicks: 10
effective_authorized_days: 7
+ provider_settings: {}
schema:
"$ref": "#/components/schemas/DigitalAsset"
requestBody:
@@ -46597,13 +46597,13 @@ paths:
video_embed_url:
video_url:
poster_url:
- original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg
- mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--4360105231729cff27f4227ea4304fac7e08a65e/thinking-cat.jpg
- small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--bba92085e6437e846cd0b9fca8d58f9c0b723eba/thinking-cat.jpg
- medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--242625616b48cff11334ec85f04b68042261f208/thinking-cat.jpg
- large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--0fa218972b6a0c500c744b36fcd9fee8a0b3e995/thinking-cat.jpg
- xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--4d30e1109a0549e5024fddaecdff7a8eb271730d/thinking-cat.jpg
- og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--24a2fdb966aceb15786df6c2f570db0d2624d262/thinking-cat.jpg
+ original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg
+ mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--3f903649ac66e0043c8adaf4863ea52cd1300ab6/thinking-cat.jpg
+ small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--f5bdfe7939f0f56c6c00267593e387bb24b3b3e5/thinking-cat.jpg
+ medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--52ada528efaa0103221a6e3001cf4a46a7889310/thinking-cat.jpg
+ large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--722217e606f0088e8714f1db5cc39930b087612a/thinking-cat.jpg
+ xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--6a35f609b2c6745523c0ae722d7c0dd6779a568a/thinking-cat.jpg
+ og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--0020ff44ca68bbdeb3bb2115e8c3563594f79f50/thinking-cat.jpg
external_references: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
@@ -46611,10 +46611,10 @@ paths:
filename: thinking-cat.jpg
content_type: image/jpeg
byte_size: 18090
- embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--67e4c38f8d0453b5c5c0d3d44862a9d1bd79c07c/thinking-cat.jpg
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a9cd29e72a70654182038480207bd929343f6a07
+ embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--6755f4503fb7441d5f39947f4cfd801b3ad8d627/thinking-cat.jpg
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--aacde269a0019661ac951ab66e97e4338f76c0e3
viewable_id: prod_UkLWZg9DAJ
- download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg?disposition=attachment
+ download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg?disposition=attachment
metadata: {}
viewable_type: product
meta:
@@ -46705,13 +46705,13 @@ paths:
video_embed_url:
video_url:
poster_url:
- original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/library-upload.jpg
- mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--4360105231729cff27f4227ea4304fac7e08a65e/library-upload.jpg
- small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--bba92085e6437e846cd0b9fca8d58f9c0b723eba/library-upload.jpg
- medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--242625616b48cff11334ec85f04b68042261f208/library-upload.jpg
- large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--0fa218972b6a0c500c744b36fcd9fee8a0b3e995/library-upload.jpg
- xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--4d30e1109a0549e5024fddaecdff7a8eb271730d/library-upload.jpg
- og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--24a2fdb966aceb15786df6c2f570db0d2624d262/library-upload.jpg
+ original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/library-upload.jpg
+ mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--3f903649ac66e0043c8adaf4863ea52cd1300ab6/library-upload.jpg
+ small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--f5bdfe7939f0f56c6c00267593e387bb24b3b3e5/library-upload.jpg
+ medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--52ada528efaa0103221a6e3001cf4a46a7889310/library-upload.jpg
+ large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--722217e606f0088e8714f1db5cc39930b087612a/library-upload.jpg
+ xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--6a35f609b2c6745523c0ae722d7c0dd6779a568a/library-upload.jpg
+ og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--0020ff44ca68bbdeb3bb2115e8c3563594f79f50/library-upload.jpg
external_references: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
@@ -46719,10 +46719,10 @@ paths:
filename: library-upload.jpg
content_type: image/jpeg
byte_size: 18090
- embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--67e4c38f8d0453b5c5c0d3d44862a9d1bd79c07c/library-upload.jpg
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MiwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--9d1feef473c267b5baf61ca104925f9833f26b25
+ embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--6755f4503fb7441d5f39947f4cfd801b3ad8d627/library-upload.jpg
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MiwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a5b15043f3d33016108bd19e25acb6a0e4656b64
viewable_id:
- download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/library-upload.jpg?disposition=attachment
+ download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/library-upload.jpg?disposition=attachment
metadata: {}
viewable_type:
schema:
@@ -46800,13 +46800,13 @@ paths:
video_embed_url:
video_url:
poster_url:
- original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg
- mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--4360105231729cff27f4227ea4304fac7e08a65e/thinking-cat.jpg
- small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--bba92085e6437e846cd0b9fca8d58f9c0b723eba/thinking-cat.jpg
- medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--242625616b48cff11334ec85f04b68042261f208/thinking-cat.jpg
- large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--0fa218972b6a0c500c744b36fcd9fee8a0b3e995/thinking-cat.jpg
- xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--4d30e1109a0549e5024fddaecdff7a8eb271730d/thinking-cat.jpg
- og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--24a2fdb966aceb15786df6c2f570db0d2624d262/thinking-cat.jpg
+ original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg
+ mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--3f903649ac66e0043c8adaf4863ea52cd1300ab6/thinking-cat.jpg
+ small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--f5bdfe7939f0f56c6c00267593e387bb24b3b3e5/thinking-cat.jpg
+ medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--52ada528efaa0103221a6e3001cf4a46a7889310/thinking-cat.jpg
+ large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--722217e606f0088e8714f1db5cc39930b087612a/thinking-cat.jpg
+ xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--6a35f609b2c6745523c0ae722d7c0dd6779a568a/thinking-cat.jpg
+ og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--0020ff44ca68bbdeb3bb2115e8c3563594f79f50/thinking-cat.jpg
external_references: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
@@ -46814,10 +46814,10 @@ paths:
filename: thinking-cat.jpg
content_type: image/jpeg
byte_size: 18090
- embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--67e4c38f8d0453b5c5c0d3d44862a9d1bd79c07c/thinking-cat.jpg
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a9cd29e72a70654182038480207bd929343f6a07
+ embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--6755f4503fb7441d5f39947f4cfd801b3ad8d627/thinking-cat.jpg
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--aacde269a0019661ac951ab66e97e4338f76c0e3
viewable_id: prod_UkLWZg9DAJ
- download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg?disposition=attachment
+ download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg?disposition=attachment
metadata: {}
viewable_type: product
schema:
@@ -47051,13 +47051,13 @@ paths:
video_embed_url:
video_url:
poster_url:
- original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg
- mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--4360105231729cff27f4227ea4304fac7e08a65e/thinking-cat.jpg
- small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--bba92085e6437e846cd0b9fca8d58f9c0b723eba/thinking-cat.jpg
- medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--242625616b48cff11334ec85f04b68042261f208/thinking-cat.jpg
- large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--0fa218972b6a0c500c744b36fcd9fee8a0b3e995/thinking-cat.jpg
- xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--4d30e1109a0549e5024fddaecdff7a8eb271730d/thinking-cat.jpg
- og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--24a2fdb966aceb15786df6c2f570db0d2624d262/thinking-cat.jpg
+ original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg
+ mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--3f903649ac66e0043c8adaf4863ea52cd1300ab6/thinking-cat.jpg
+ small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--f5bdfe7939f0f56c6c00267593e387bb24b3b3e5/thinking-cat.jpg
+ medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--52ada528efaa0103221a6e3001cf4a46a7889310/thinking-cat.jpg
+ large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--722217e606f0088e8714f1db5cc39930b087612a/thinking-cat.jpg
+ xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--6a35f609b2c6745523c0ae722d7c0dd6779a568a/thinking-cat.jpg
+ og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--0020ff44ca68bbdeb3bb2115e8c3563594f79f50/thinking-cat.jpg
external_references: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
@@ -47065,10 +47065,10 @@ paths:
filename: thinking-cat.jpg
content_type: image/jpeg
byte_size: 18090
- embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--67e4c38f8d0453b5c5c0d3d44862a9d1bd79c07c/thinking-cat.jpg
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a9cd29e72a70654182038480207bd929343f6a07
+ embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--6755f4503fb7441d5f39947f4cfd801b3ad8d627/thinking-cat.jpg
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--aacde269a0019661ac951ab66e97e4338f76c0e3
viewable_id: prod_UkLWZg9DAJ
- download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg?disposition=attachment
+ download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg?disposition=attachment
metadata: {}
viewable_type: product
meta:
@@ -47159,13 +47159,13 @@ paths:
video_embed_url:
video_url:
poster_url:
- original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg
- mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--4360105231729cff27f4227ea4304fac7e08a65e/thinking-cat.jpg
- small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--bba92085e6437e846cd0b9fca8d58f9c0b723eba/thinking-cat.jpg
- medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--242625616b48cff11334ec85f04b68042261f208/thinking-cat.jpg
- large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--0fa218972b6a0c500c744b36fcd9fee8a0b3e995/thinking-cat.jpg
- xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--4d30e1109a0549e5024fddaecdff7a8eb271730d/thinking-cat.jpg
- og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--24a2fdb966aceb15786df6c2f570db0d2624d262/thinking-cat.jpg
+ original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg
+ mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--3f903649ac66e0043c8adaf4863ea52cd1300ab6/thinking-cat.jpg
+ small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--f5bdfe7939f0f56c6c00267593e387bb24b3b3e5/thinking-cat.jpg
+ medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--52ada528efaa0103221a6e3001cf4a46a7889310/thinking-cat.jpg
+ large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--722217e606f0088e8714f1db5cc39930b087612a/thinking-cat.jpg
+ xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--6a35f609b2c6745523c0ae722d7c0dd6779a568a/thinking-cat.jpg
+ og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--0020ff44ca68bbdeb3bb2115e8c3563594f79f50/thinking-cat.jpg
external_references: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
@@ -47173,10 +47173,10 @@ paths:
filename: thinking-cat.jpg
content_type: image/jpeg
byte_size: 18090
- embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--67e4c38f8d0453b5c5c0d3d44862a9d1bd79c07c/thinking-cat.jpg
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a9cd29e72a70654182038480207bd929343f6a07
+ embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--6755f4503fb7441d5f39947f4cfd801b3ad8d627/thinking-cat.jpg
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--aacde269a0019661ac951ab66e97e4338f76c0e3
viewable_id: prod_gbHJdmfrXB
- download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg?disposition=attachment
+ download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg?disposition=attachment
metadata: {}
viewable_type: product
schema:
@@ -47266,13 +47266,13 @@ paths:
video_embed_url:
video_url:
poster_url:
- original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg
- mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--4360105231729cff27f4227ea4304fac7e08a65e/thinking-cat.jpg
- small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--bba92085e6437e846cd0b9fca8d58f9c0b723eba/thinking-cat.jpg
- medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--242625616b48cff11334ec85f04b68042261f208/thinking-cat.jpg
- large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--0fa218972b6a0c500c744b36fcd9fee8a0b3e995/thinking-cat.jpg
- xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--4d30e1109a0549e5024fddaecdff7a8eb271730d/thinking-cat.jpg
- og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--24a2fdb966aceb15786df6c2f570db0d2624d262/thinking-cat.jpg
+ original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg
+ mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--3f903649ac66e0043c8adaf4863ea52cd1300ab6/thinking-cat.jpg
+ small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--f5bdfe7939f0f56c6c00267593e387bb24b3b3e5/thinking-cat.jpg
+ medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--52ada528efaa0103221a6e3001cf4a46a7889310/thinking-cat.jpg
+ large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--722217e606f0088e8714f1db5cc39930b087612a/thinking-cat.jpg
+ xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--6a35f609b2c6745523c0ae722d7c0dd6779a568a/thinking-cat.jpg
+ og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--0020ff44ca68bbdeb3bb2115e8c3563594f79f50/thinking-cat.jpg
external_references: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
@@ -47280,10 +47280,10 @@ paths:
filename: thinking-cat.jpg
content_type: image/jpeg
byte_size: 18090
- embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--67e4c38f8d0453b5c5c0d3d44862a9d1bd79c07c/thinking-cat.jpg
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a9cd29e72a70654182038480207bd929343f6a07
+ embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--6755f4503fb7441d5f39947f4cfd801b3ad8d627/thinking-cat.jpg
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--aacde269a0019661ac951ab66e97e4338f76c0e3
viewable_id: prod_UkLWZg9DAJ
- download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--f34e09859ba330793d603f7c22466732a512f47b/thinking-cat.jpg?disposition=attachment
+ download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--d70605a927dcb85741046d8205814708ad86c814/thinking-cat.jpg?disposition=attachment
metadata: {}
viewable_type: product
schema:
@@ -47435,13 +47435,13 @@ paths:
video_embed_url:
video_url:
poster_url:
- original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/thinking-cat.jpg
- mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--4360105231729cff27f4227ea4304fac7e08a65e/thinking-cat.jpg
- small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--bba92085e6437e846cd0b9fca8d58f9c0b723eba/thinking-cat.jpg
- medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--242625616b48cff11334ec85f04b68042261f208/thinking-cat.jpg
- large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--0fa218972b6a0c500c744b36fcd9fee8a0b3e995/thinking-cat.jpg
- xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--4d30e1109a0549e5024fddaecdff7a8eb271730d/thinking-cat.jpg
- og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--24a2fdb966aceb15786df6c2f570db0d2624d262/thinking-cat.jpg
+ original_url: http://localhost:3000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/thinking-cat.jpg
+ mini_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjgsMTI4XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--3f903649ac66e0043c8adaf4863ea52cd1300ab6/thinking-cat.jpg
+ small_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyNTYsMjU2XSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--f5bdfe7939f0f56c6c00267593e387bb24b3b3e5/thinking-cat.jpg
+ medium_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls0MDAsNDAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--52ada528efaa0103221a6e3001cf4a46a7889310/thinking-cat.jpg
+ large_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOls3MjAsNzIwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--722217e606f0088e8714f1db5cc39930b087612a/thinking-cat.jpg
+ xlarge_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsyMDAwLDIwMDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZSwicXVhbGl0eSI6NzUsImxvc3NsZXNzIjpmYWxzZSwiYWxwaGFfcSI6ODUsInJlZHVjdGlvbl9lZmZvcnQiOjYsInNtYXJ0X3N1YnNhbXBsZSI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--6a35f609b2c6745523c0ae722d7c0dd6779a568a/thinking-cat.jpg
+ og_image_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2ZpbGwiOlsxMjAwLDYzMF0sInNhdmVyIjp7InN0cmlwIjp0cnVlLCJxdWFsaXR5Ijo3NSwibG9zc2xlc3MiOmZhbHNlLCJhbHBoYV9xIjo4NSwicmVkdWN0aW9uX2VmZm9ydCI6Niwic21hcnRfc3Vic2FtcGxlIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--0020ff44ca68bbdeb3bb2115e8c3563594f79f50/thinking-cat.jpg
external_references: {}
created_at: '2026-01-15T12:00:00.000Z'
updated_at: '2026-01-15T12:00:00.000Z'
@@ -47449,10 +47449,10 @@ paths:
filename: thinking-cat.jpg
content_type: image/jpeg
byte_size: 18090
- embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--67e4c38f8d0453b5c5c0d3d44862a9d1bd79c07c/thinking-cat.jpg
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MiwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--9d1feef473c267b5baf61ca104925f9833f26b25
+ embed_url: http://localhost:3000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJ3ZWJwIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsic3RyaXAiOnRydWUsInF1YWxpdHkiOjc1LCJsb3NzbGVzcyI6ZmFsc2UsImFscGhhX3EiOjg1LCJyZWR1Y3Rpb25fZWZmb3J0Ijo2LCJzbWFydF9zdWJzYW1wbGUiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--6755f4503fb7441d5f39947f4cfd801b3ad8d627/thinking-cat.jpg
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MiwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a5b15043f3d33016108bd19e25acb6a0e4656b64
viewable_id: variant_gbHJdmfrXB
- download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d46768bb9ae5b1c086c4952a77e29e46b5a9627b/thinking-cat.jpg?disposition=attachment
+ download_url: http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MiwicHVyIjoiYmxvYl9pZCJ9fQ==--d09b5425a813f091eba0215bef6560cfbfe00b36/thinking-cat.jpg?disposition=attachment
metadata: {}
viewable_type: variant
meta:
@@ -62182,8 +62182,6 @@ components:
byte_size:
type: number
nullable: true
- provider_settings:
- type: object
created_at:
type: string
updated_at:
@@ -62204,6 +62202,8 @@ components:
type: number
effective_authorized_days:
type: number
+ provider_settings:
+ type: object
required:
- id
- variant_id
@@ -62212,7 +62212,6 @@ components:
- authorized_clicks
- authorized_days
- byte_size
- - provider_settings
- created_at
- updated_at
- provider_type
@@ -62220,6 +62219,7 @@ components:
- download_url
- effective_authorized_clicks
- effective_authorized_days
+ - provider_settings
x-typelizer: true
DigitalLink:
type: object
@@ -79257,14 +79257,6 @@ components:
variant_id:
type: string
description: Defaults to the product's default variant when omitted.
- provider_type:
- type: string
- description: A provider shorthand from the providers endpoint. Omit for
- an uploaded file.
- provider_settings:
- type: object
- additionalProperties: true
- description: Values for the provider's settings schema, keyed by field name.
authorized_clicks:
type: integer
description: Null means the store's download settings apply.
@@ -79273,6 +79265,14 @@ components:
type: integer
description: Null means the store's download settings apply.
nullable: true
+ provider_type:
+ type: string
+ description: A provider shorthand from the providers endpoint. Omit for
+ an uploaded file.
+ provider_settings:
+ type: object
+ additionalProperties: true
+ description: Values for the provider's settings schema, keyed by field name.
DigitalAssetUpdateParams:
type: object
properties:
@@ -79284,14 +79284,6 @@ components:
variant_id:
type: string
description: Defaults to the product's default variant when omitted.
- provider_type:
- type: string
- description: A provider shorthand from the providers endpoint. Omit for
- an uploaded file.
- provider_settings:
- type: object
- additionalProperties: true
- description: Values for the provider's settings schema, keyed by field name.
authorized_clicks:
type: integer
description: Null means the store's download settings apply.
@@ -79300,6 +79292,14 @@ components:
type: integer
description: Null means the store's download settings apply.
nullable: true
+ provider_type:
+ type: string
+ description: A provider shorthand from the providers endpoint. Omit for
+ an uploaded file.
+ provider_settings:
+ type: object
+ additionalProperties: true
+ description: Values for the provider's settings schema, keyed by field name.
DiscountCodeApplyParams:
type: object
properties:
diff --git a/docs/api-reference/seller.yaml b/docs/api-reference/seller.yaml
index 83ae1f6bda..0e5dbed390 100644
--- a/docs/api-reference/seller.yaml
+++ b/docs/api-reference/seller.yaml
@@ -13972,6 +13972,365 @@ paths:
option_type_labels: []
schema:
"$ref": "#/components/schemas/ProductType"
+ "/api/v3/seller/products/{product_id}/digital_assets":
+ parameters:
+ - name: product_id
+ in: path
+ required: true
+ description: Product ID
+ schema:
+ type: string
+ get:
+ summary: List product digital assets
+ tags:
+ - Products
+ security:
+ - bearer_auth: []
+ description: Returns the downloadable files on one of this seller's own products,
+ oldest first.
+ x-codeSamples:
+ - lang: javascript
+ label: Spree Seller SDK
+ source: |-
+ import { createSellerClient } from '@spree/seller-sdk'
+
+ const client = createSellerClient({
+ baseUrl: 'https://your-store.com',
+ jwtToken: 'eyJhbGciOi...',
+ sellerId: 'sel_UkLWZg9DAJ',
+ })
+
+ const { data: digitalAssets } = await client.products.digitalAssets.list('prod_UkLWZg9DAJ')
+ parameters:
+ - name: X-Spree-Seller-Id
+ in: header
+ required: true
+ schema:
+ type: string
+ - name: page
+ in: query
+ required: false
+ description: Page number
+ schema:
+ type: integer
+ - name: limit
+ in: query
+ required: false
+ description: Records per page (max 100)
+ schema:
+ type: integer
+ - name: q
+ in: query
+ required: false
+ style: deepObject
+ explode: true
+ schema:
+ type: object
+ additionalProperties: true
+ description: Attribute filters, as `q[<attribute>_<predicate>]=value`. See
+ Filters above for the list.
+ x-mint:
+ content: |-
+ ## Filters
+
+ Filter with `q[<attribute>_<predicate>]=value`, for example `q[created_at_eq]=…`. Send a list as `q[<attribute>_in][]=a&q[<attribute>_in][]=b`. [How filters work](/api-reference/admin-api/querying#which-filters-an-endpoint-accepts).
+
+ | Attribute | Kind | Predicates |
+ |---|---|---|
+ | `created_at` | Date and time | `eq` `not_eq` `in` `not_in` `lt` `lteq` `gt` `gteq` `null` `not_null` |
+ | `id` | Prefixed ID | `eq` `not_eq` `in` `not_in` `null` `not_null` |
+ | `updated_at` | Date and time | `eq` `not_eq` `in` `not_in` `lt` `lteq` `gt` `gteq` `null` `not_null` |
+
+ **Sort by:** `created_at`, `id`, `updated_at`. Prefix a field with `-` to sort descending.
+ x-spree-filters:
+ table: DigitalAsset
+ sortable:
+ - created_at
+ - id
+ - updated_at
+ responses:
+ '200':
+ description: digital assets found
+ content:
+ application/json:
+ example:
+ data:
+ - id: dig_UkLWZg9DAJ
+ variant_id: variant_UkLWZg9DAJ
+ filename: thinking-cat.jpg
+ content_type: image/jpeg
+ authorized_clicks:
+ authorized_days:
+ byte_size: 18090
+ created_at: '2026-01-15T12:00:00.000Z'
+ updated_at: '2026-01-15T12:00:00.000Z'
+ provider_type:
+ provider_name: File
+ download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiI1Z28wOGZsYWtwNXYyeG4yMGlueHZvbWwyZmRzIiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cInRoaW5raW5nLWNhdC5qcGdcIjsgZmlsZW5hbWUqPVVURi04Jyd0aGlua2luZy1jYXQuanBnIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--1adbb0b4aeb518c0dbf52eabec0c5343fb37f6a7/thinking-cat.jpg
+ effective_authorized_clicks: 5
+ effective_authorized_days: 7
+ meta:
+ page: 1
+ limit: 25
+ count: 1
+ pages: 1
+ from: 1
+ to: 1
+ in: 1
+ previous:
+ next:
+ schema:
+ type: object
+ properties:
+ data:
+ type: array
+ items:
+ "$ref": "#/components/schemas/DigitalAsset"
+ meta:
+ "$ref": "#/components/schemas/PaginationMeta"
+ required:
+ - data
+ - meta
+ '404':
+ description: another seller's product
+ content:
+ application/json:
+ example:
+ error:
+ code: record_not_found
+ message: Product not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ post:
+ summary: Create a product digital asset
+ tags:
+ - Products
+ security:
+ - bearer_auth: []
+ description: |
+ Attaches a downloadable file to one of the product's variants (the
+ default variant when `variant_id` is omitted). Upload the file first
+ through `POST /api/v3/seller/files` with `visibility: 'private'`, then
+ send its `signed_id` here. Leave `authorized_clicks` and
+ `authorized_days` out to use the marketplace's download settings.
+ x-codeSamples:
+ - lang: javascript
+ label: Spree Seller SDK
+ source: |-
+ import { createSellerClient } from '@spree/seller-sdk'
+
+ const client = createSellerClient({
+ baseUrl: 'https://your-store.com',
+ jwtToken: 'eyJhbGciOi...',
+ sellerId: 'sel_UkLWZg9DAJ',
+ })
+
+ // `signed_id` comes from `files.upload()` with `visibility: 'private'`.
+ const digitalAsset = await client.products.digitalAssets.create('prod_UkLWZg9DAJ', {
+ signed_id: 'eyJfcmFpbHMiOnsiZGF0YSI6MTIzfX0=--abc123',
+ authorized_clicks: 5,
+ authorized_days: 30,
+ })
+ parameters:
+ - name: X-Spree-Seller-Id
+ in: header
+ required: true
+ schema:
+ type: string
+ responses:
+ '201':
+ description: digital asset created
+ content:
+ application/json:
+ example:
+ id: dig_gbHJdmfrXB
+ variant_id: variant_UkLWZg9DAJ
+ filename: manual.pdf
+ content_type: image/jpeg
+ authorized_clicks: 5
+ authorized_days: 30
+ byte_size: 18090
+ created_at: '2026-01-15T12:00:00.000Z'
+ updated_at: '2026-01-15T12:00:00.000Z'
+ provider_type:
+ provider_name: File
+ download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJmZ201b2ZidHBzbWhpYnB1cXY1YndjcHZvbXR4IiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cIm1hbnVhbC5wZGZcIjsgZmlsZW5hbWUqPVVURi04JydtYW51YWwucGRmIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--4a809efdc2e6ec19eb62b2a074d48b25dcf95f88/manual.pdf
+ effective_authorized_clicks: 5
+ effective_authorized_days: 30
+ schema:
+ "$ref": "#/components/schemas/DigitalAsset"
+ '422':
+ description: no file sent
+ content:
+ application/json:
+ example:
+ error:
+ code: validation_error
+ message: Attachment can't be blank
+ details:
+ attachment:
+ - can't be blank
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/DigitalAssetCreateParams"
+ required: true
+ "/api/v3/seller/products/{product_id}/digital_assets/{id}":
+ parameters:
+ - name: product_id
+ in: path
+ required: true
+ description: Product ID
+ schema:
+ type: string
+ - name: id
+ in: path
+ required: true
+ description: Digital asset ID
+ schema:
+ type: string
+ get:
+ summary: Get a product digital asset
+ tags:
+ - Products
+ security:
+ - bearer_auth: []
+ x-codeSamples:
+ - lang: javascript
+ label: Spree Seller SDK
+ source: |-
+ import { createSellerClient } from '@spree/seller-sdk'
+
+ const client = createSellerClient({
+ baseUrl: 'https://your-store.com',
+ jwtToken: 'eyJhbGciOi...',
+ sellerId: 'sel_UkLWZg9DAJ',
+ })
+
+ const digitalAsset = await client.products.digitalAssets.get('prod_UkLWZg9DAJ', 'dig_k5nR8xLqPz')
+ parameters:
+ - name: X-Spree-Seller-Id
+ in: header
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: digital asset found
+ content:
+ application/json:
+ example:
+ id: dig_UkLWZg9DAJ
+ variant_id: variant_UkLWZg9DAJ
+ filename: thinking-cat.jpg
+ content_type: image/jpeg
+ authorized_clicks:
+ authorized_days:
+ byte_size: 18090
+ created_at: '2026-01-15T12:00:00.000Z'
+ updated_at: '2026-01-15T12:00:00.000Z'
+ provider_type:
+ provider_name: File
+ download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiIydGZoM2pnZnBnMGwwemF4NjU2OW0xd3Jud2lhIiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cInRoaW5raW5nLWNhdC5qcGdcIjsgZmlsZW5hbWUqPVVURi04Jyd0aGlua2luZy1jYXQuanBnIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--f6c26021324728070070e91a164fcd2996107d5d/thinking-cat.jpg
+ effective_authorized_clicks: 5
+ effective_authorized_days: 7
+ schema:
+ "$ref": "#/components/schemas/DigitalAsset"
+ patch:
+ summary: Update a product digital asset
+ tags:
+ - Products
+ security:
+ - bearer_auth: []
+ description: |
+ Changes a file's download limits, or replaces it with a new private
+ `signed_id`. Links customers already received keep working and serve
+ the new file.
+ x-codeSamples:
+ - lang: javascript
+ label: Spree Seller SDK
+ source: |-
+ import { createSellerClient } from '@spree/seller-sdk'
+
+ const client = createSellerClient({
+ baseUrl: 'https://your-store.com',
+ jwtToken: 'eyJhbGciOi...',
+ sellerId: 'sel_UkLWZg9DAJ',
+ })
+
+ // `null` falls back to the marketplace's download settings.
+ const digitalAsset = await client.products.digitalAssets.update(
+ 'prod_UkLWZg9DAJ',
+ 'dig_k5nR8xLqPz',
+ { authorized_clicks: 10, authorized_days: null },
+ )
+ parameters:
+ - name: X-Spree-Seller-Id
+ in: header
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: digital asset updated
+ content:
+ application/json:
+ example:
+ id: dig_UkLWZg9DAJ
+ variant_id: variant_UkLWZg9DAJ
+ filename: thinking-cat.jpg
+ content_type: image/jpeg
+ authorized_clicks: 10
+ authorized_days:
+ byte_size: 18090
+ created_at: '2026-01-15T12:00:00.000Z'
+ updated_at: '2026-01-15T12:00:00.000Z'
+ provider_type:
+ provider_name: File
+ download_url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJmbHRwbWl6azhucWZlb2JjY2EyNzM2N2EzdDV1IiwiZGlzcG9zaXRpb24iOiJhdHRhY2htZW50OyBmaWxlbmFtZT1cInRoaW5raW5nLWNhdC5qcGdcIjsgZmlsZW5hbWUqPVVURi04Jyd0aGlua2luZy1jYXQuanBnIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl9rZXkifX0=--80e4a4219f2521a2e065aed66845d0d9bb4291a3/thinking-cat.jpg
+ effective_authorized_clicks: 10
+ effective_authorized_days: 7
+ schema:
+ "$ref": "#/components/schemas/DigitalAsset"
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/DigitalAssetUpdateParams"
+ required: true
+ delete:
+ summary: Delete a product digital asset
+ tags:
+ - Products
+ security:
+ - bearer_auth: []
+ description: Removes the file. Customers who already bought it can no longer
+ download it.
+ x-codeSamples:
+ - lang: javascript
+ label: Spree Seller SDK
+ source: |-
+ import { createSellerClient } from '@spree/seller-sdk'
+
+ const client = createSellerClient({
+ baseUrl: 'https://your-store.com',
+ jwtToken: 'eyJhbGciOi...',
+ sellerId: 'sel_UkLWZg9DAJ',
+ })
+
+ await client.products.digitalAssets.delete('prod_UkLWZg9DAJ', 'dig_k5nR8xLqPz')
+ parameters:
+ - name: X-Spree-Seller-Id
+ in: header
+ required: true
+ schema:
+ type: string
+ responses:
+ '204':
+ description: digital asset deleted
"/api/v3/seller/products":
get:
summary: List products
@@ -14178,8 +14537,8 @@ paths:
example:
data:
- id: prod_UkLWZg9DAJ
- name: Product 2843250
- slug: product-2843250
+ name: Product 2923250
+ slug: product-2923250
meta_title:
meta_description:
meta_keywords:
@@ -14392,8 +14751,8 @@ paths:
application/json:
example:
id: prod_UkLWZg9DAJ
- name: Product 2876710
- slug: product-2876710
+ name: Product 2956710
+ slug: product-2956710
meta_title:
meta_description:
meta_keywords:
@@ -14483,7 +14842,7 @@ paths:
example:
id: prod_UkLWZg9DAJ
name: Hand-thrown mug, large
- slug: product-2908212
+ slug: product-2988212
meta_title:
meta_description:
meta_keywords:
@@ -14606,8 +14965,8 @@ paths:
application/json:
example:
id: prod_gbHJdmfrXB
- name: Product 2937816
- slug: product-2937816
+ name: Product 3017816
+ slug: product-3017816
meta_title:
meta_description:
meta_keywords:
@@ -14717,8 +15076,8 @@ paths:
application/json:
example:
id: prod_UkLWZg9DAJ
- name: Product 295209
- slug: product-295209
+ name: Product 303209
+ slug: product-303209
meta_title:
meta_description:
meta_keywords:
@@ -14807,8 +15166,8 @@ paths:
application/json:
example:
id: prod_UkLWZg9DAJ
- name: Product 2969405
- slug: product-2969405
+ name: Product 3049405
+ slug: product-3049405
meta_title:
meta_description:
meta_keywords:
@@ -15026,8 +15385,8 @@ paths:
application/json:
example:
id: sel_UkLWZg9DAJ
- name: Seller 144
- slug: seller-144
+ name: Seller 152
+ slug: seller-152
about: ''
about_html: ''
logo_url:
@@ -15117,7 +15476,7 @@ paths:
example:
id: sel_UkLWZg9DAJ
name: Acme Supplies
- slug: seller-146
+ slug: seller-154
about: ''
about_html: ''
logo_url:
@@ -15996,7 +16355,7 @@ paths:
content:
application/json:
example:
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a9cd29e72a70654182038480207bd929343f6a07
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--aacde269a0019661ac951ab66e97e4338f76c0e3
filename: registration.pdf
content_type: application/pdf
byte_size: 51234
@@ -16004,7 +16363,7 @@ paths:
expires_at: '2026-01-16T12:00:00.000Z'
upload:
method: PUT
- url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiI4NDFrenlvbTQ5cnRhcDk0cmZxbGV6dnM1cGJsIiwiY29udGVudF90eXBlIjoiYXBwbGljYXRpb24vcGRmIiwiY29udGVudF9sZW5ndGgiOjUxMjM0LCJjaGVja3N1bSI6IlZqaHowNGxRdUVHdXY0bkR2aHNhTlE9PSIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl90b2tlbiJ9fQ==--abe303073ba7e7a0de1e5dc55e6c2a9a162c265e
+ url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiI4NDFrenlvbTQ5cnRhcDk0cmZxbGV6dnM1cGJsIiwiY29udGVudF90eXBlIjoiYXBwbGljYXRpb24vcGRmIiwiY29udGVudF9sZW5ndGgiOjUxMjM0LCJjaGVja3N1bSI6IlZqaHowNGxRdUVHdXY0bkR2aHNhTlE9PSIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl90b2tlbiJ9fQ==--25172b4f2478e89864b255331dbb4632f9fd158d
headers:
Content-Type: application/pdf
schema:
@@ -22716,7 +23075,7 @@ paths:
example:
error:
code: processing_error
- message: Only 1 of Product 3037120 can be returned
+ message: Only 1 of Product 3117120 can be returned
requestBody:
content:
application/json:
@@ -25607,6 +25966,65 @@ components:
- description
- delivery_profile_id
x-typelizer: true
+ DigitalAsset:
+ type: object
+ properties:
+ id:
+ type: string
+ variant_id:
+ type: string
+ nullable: true
+ filename:
+ type: string
+ nullable: true
+ content_type:
+ type: string
+ nullable: true
+ authorized_clicks:
+ type: number
+ nullable: true
+ authorized_days:
+ type: number
+ nullable: true
+ byte_size:
+ type: number
+ nullable: true
+ created_at:
+ type: string
+ updated_at:
+ type: string
+ provider_type:
+ type: string
+ nullable: true
+ description: 'Digital asset provider; null is an uploaded file. Built-in:
+ file. Extensions may register more.'
+ provider_name:
+ type: string
+ description: 'Digital asset provider name. Built-in: File. Extensions may
+ register more.'
+ download_url:
+ type: string
+ nullable: true
+ effective_authorized_clicks:
+ type: number
+ effective_authorized_days:
+ type: number
+ required:
+ - id
+ - variant_id
+ - filename
+ - content_type
+ - authorized_clicks
+ - authorized_days
+ - byte_size
+ - created_at
+ - updated_at
+ - provider_type
+ - provider_name
+ - download_url
+ - effective_authorized_clicks
+ - effective_authorized_days
+ x-typelizer: true
ExchangeLineItem:
type: object
properties:
@@ -31411,6 +31829,44 @@ components:
type: string
tracking_url:
type: string
+ DigitalAssetCreateParams:
+ type: object
+ properties:
+ signed_id:
+ type: string
+ description: 'A `signed_id` from `files.upload()` with `visibility: ''private''`.
+ Required for an uploaded file, omitted for a provider-backed asset. On
+ update it replaces the file for everyone who already bought it.'
+ variant_id:
+ type: string
+ description: Defaults to the product's default variant when omitted.
+ authorized_clicks:
+ type: integer
+ description: Null means the store's download settings apply.
+ nullable: true
+ authorized_days:
+ type: integer
+ description: Null means the store's download settings apply.
+ nullable: true
+ DigitalAssetUpdateParams:
+ type: object
+ properties:
+ signed_id:
+ type: string
+ description: 'A `signed_id` from `files.upload()` with `visibility: ''private''`.
+ Required for an uploaded file, omitted for a provider-backed asset. On
+ update it replaces the file for everyone who already bought it.'
+ variant_id:
+ type: string
+ description: Defaults to the product's default variant when omitted.
+ authorized_clicks:
+ type: integer
+ description: Null means the store's download settings apply.
+ nullable: true
+ authorized_days:
+ type: integer
+ description: Null means the store's download settings apply.
+ nullable: true
ExchangeCancelParams:
type: object
properties:
@@ -32798,6 +33254,13 @@ components:
updated_at: datetime
associations: {}
scopes: {}
+ DigitalAsset:
+ attributes:
+ created_at: datetime
+ id: id
+ updated_at: datetime
+ associations: {}
+ scopes: {}
Exchange:
attributes:
created_at: datetime
diff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yaml
index 5fb2ff67b9..603740c3da 100644
--- a/docs/api-reference/store.yaml
+++ b/docs/api-reference/store.yaml
@@ -1097,8 +1097,8 @@ paths:
example:
data:
- id: prod_UkLWZg9DAJ
- name: Product 3476979
- slug: product-3476979
+ name: Product 3556979
+ slug: product-3556979
meta_title:
meta_description:
meta_keywords:
@@ -1390,8 +1390,8 @@ paths:
example:
data:
- id: prod_UkLWZg9DAJ
- name: Product 3959085
- slug: product-3959085
+ name: Product 4039085
+ slug: product-4039085
meta_title:
meta_description:
meta_keywords:
@@ -1422,8 +1422,8 @@ paths:
original_price:
seller_id:
- id: prod_gbHJdmfrXB
- name: Product 3968209
- slug: product-3968209
+ name: Product 4048209
+ slug: product-4048209
meta_title:
meta_description:
meta_keywords:
@@ -1552,8 +1552,8 @@ paths:
application/json:
example:
id: prod_UkLWZg9DAJ
- name: Product 4236885
- slug: product-4236885
+ name: Product 4316885
+ slug: product-4316885
meta_title:
meta_description:
meta_keywords:
@@ -2190,7 +2190,7 @@ paths:
content:
application/json:
example:
- signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--a9cd29e72a70654182038480207bd929343f6a07
+ signed_id: eyJfcmFpbHMiOnsiZGF0YSI6MSwiZXhwIjoiMjAyNi0wMS0xNlQxMjowMDowMC4wMDBaIiwicHVyIjoiYmxvYl9pZCJ9fQ==--aacde269a0019661ac951ab66e97e4338f76c0e3
filename: purchase-order.pdf
content_type: application/pdf
byte_size: 48210
@@ -2198,7 +2198,7 @@ paths:
expires_at: '2026-01-16T12:00:00.000Z'
upload:
method: PUT
- url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiIwc3NuNW5kM3RneWtwcWJndXdybGprZjNwbjc4IiwiY29udGVudF90eXBlIjoiYXBwbGljYXRpb24vcGRmIiwiY29udGVudF9sZW5ndGgiOjQ4MjEwLCJjaGVja3N1bSI6IjVXMjhrY2ZxcDlLMGY1djRZN2VyUkE9PSIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl90b2tlbiJ9fQ==--d1ccdf3e94900f0c8f62feb07f43a3d33eb3b0df
+ url: http://www.example.com/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiIwc3NuNW5kM3RneWtwcWJndXdybGprZjNwbjc4IiwiY29udGVudF90eXBlIjoiYXBwbGljYXRpb24vcGRmIiwiY29udGVudF9sZW5ndGgiOjQ4MjEwLCJjaGVja3N1bSI6IjVXMjhrY2ZxcDlLMGY1djRZN2VyUkE9PSIsInNlcnZpY2VfbmFtZSI6InRlc3QifSwiZXhwIjoiMjAyNi0wMS0xNVQxMjowNTowMC4wMDBaIiwicHVyIjoiYmxvYl90b2tlbiJ9fQ==--ced4d1a9c43f0387228494e9c11aba005d86b325
headers:
Content-Type: application/pdf
schema:
@@ -2505,8 +2505,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 318715
- slug: product-318715
+ name: Product 326715
+ slug: product-326715
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -2626,8 +2626,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3192171
- slug: product-3192171
+ name: Product 3272171
+ slug: product-3272171
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -2915,7 +2915,7 @@ paths:
total_quantity: 0
warnings:
- code: line_item_removed
- message: Product 323307 was removed because it was sold out
+ message: Product 331307 was removed because it was sold out
line_item_id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
coupon_code:
@@ -3158,8 +3158,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3243263
- slug: product-3243263
+ name: Product 3323263
+ slug: product-3323263
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -3382,8 +3382,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3268992
- slug: product-3268992
+ name: Product 3348992
+ slug: product-3348992
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -3631,8 +3631,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3294794
- slug: product-3294794
+ name: Product 3374794
+ slug: product-3374794
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -3952,8 +3952,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3622614
- slug: product-3622614
+ name: Product 3702614
+ slug: product-3702614
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -4147,8 +4147,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3633461
- slug: product-3633461
+ name: Product 3713461
+ slug: product-3713461
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -4336,8 +4336,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3658182
- slug: product-3658182
+ name: Product 3738182
+ slug: product-3738182
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -4657,8 +4657,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3675702
- slug: product-3675702
+ name: Product 3755702
+ slug: product-3755702
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -4901,8 +4901,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3719569
- slug: product-3719569
+ name: Product 3799569
+ slug: product-3799569
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -5031,10 +5031,10 @@ paths:
total_quantity: 2
warnings:
- code: delivery_unavailable
- message: Product 37463 cannot be delivered to the selected address
+ message: Product 38263 cannot be delivered to the selected address
line_item_id: li_UkLWZg9DAJ
- code: delivery_unavailable
- message: Product 375298 cannot be delivered to the selected address
+ message: Product 383298 cannot be delivered to the selected address
line_item_id: li_gbHJdmfrXB
coupon_code:
item_total: '29.99'
@@ -5093,8 +5093,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 37463
- slug: product-37463
+ name: Product 38263
+ slug: product-38263
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -5124,8 +5124,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 375298
- slug: product-375298
+ name: Product 383298
+ slug: product-383298
options_text: ''
price: '19.99'
display_price: "$19.99"
@@ -5340,8 +5340,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3819165
- slug: product-3819165
+ name: Product 3899165
+ slug: product-3899165
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -6148,8 +6148,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 4469789
- slug: product-4469789
+ name: Product 4549789
+ slug: product-4549789
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -6333,8 +6333,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 448179
- slug: product-448179
+ name: Product 456179
+ slug: product-456179
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -6694,8 +6694,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 385496
- slug: product-385496
+ name: Product 393496
+ slug: product-393496
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -8074,8 +8074,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3495270
- slug: product-3495270
+ name: Product 3575270
+ slug: product-3575270
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -8403,8 +8403,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3515633
- slug: product-3515633
+ name: Product 3595633
+ slug: product-3595633
options_text: ''
price: '10.00'
display_price: "$10.00"
@@ -11238,7 +11238,7 @@ paths:
variant:
id: variant_gbHJdmfrXB
product_id: prod_gbHJdmfrXB
- sku: SKU-556
+ sku: SKU-564
options_text: ''
track_inventory: true
media_count: 0
@@ -11324,7 +11324,7 @@ paths:
variant:
id: variant_UkLWZg9DAJ
product_id: prod_UkLWZg9DAJ
- sku: SKU-557
+ sku: SKU-565
options_text: ''
track_inventory: true
media_count: 0
@@ -12854,8 +12854,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 3485649
- slug: product-3485649
+ name: Product 3565649
+ slug: product-3565649
options_text: ''
price: '10.00'
display_price: "$10.00"
diff --git a/packages/admin-sdk/src/types/generated/DigitalAsset.ts b/packages/admin-sdk/src/types/generated/DigitalAsset.ts
index 73f287ee5d..1d24303058 100644
--- a/packages/admin-sdk/src/types/generated/DigitalAsset.ts
+++ b/packages/admin-sdk/src/types/generated/DigitalAsset.ts
@@ -1,4 +1,4 @@
-// Typelizer digest 9c108de85f998137f92e24595a53595b
+// Typelizer digest c96770039688b456f8c02747c66fafff
//
// DO NOT MODIFY: This file was automatically generated by Typelizer.
@@ -10,7 +10,6 @@ interface DigitalAsset {
authorized_clicks: number | null;
authorized_days: number | null;
byte_size: number | null;
- provider_settings: Record<string, unknown>;
created_at: string;
updated_at: string;
/** Digital asset provider; null is an uploaded file. Built-in: file. Extensions may register more. */
@@ -20,6 +19,7 @@ interface DigitalAsset {
download_url: string | null;
effective_authorized_clicks: number;
effective_authorized_days: number;
+ provider_settings: Record<string, unknown>;
}
export default DigitalAsset;
diff --git a/packages/admin-sdk/src/types/params/DigitalAssetCreateParams.ts b/packages/admin-sdk/src/types/params/DigitalAssetCreateParams.ts
index c69cd92c28..567fdf1f6e 100644
--- a/packages/admin-sdk/src/types/params/DigitalAssetCreateParams.ts
+++ b/packages/admin-sdk/src/types/params/DigitalAssetCreateParams.ts
@@ -9,12 +9,12 @@ export type DigitalAssetCreateParams = {
signed_id?: string
/** Defaults to the product's default variant when omitted. */
variant_id?: string
- /** A provider shorthand from the providers endpoint. Omit for an uploaded file. */
- provider_type?: string
- /** Values for the provider's settings schema, keyed by field name. */
- provider_settings?: Record<string, unknown>
/** Null means the store's download settings apply. */
authorized_clicks?: number | null
/** Null means the store's download settings apply. */
authorized_days?: number | null
+ /** A provider shorthand from the providers endpoint. Omit for an uploaded file. */
+ provider_type?: string
+ /** Values for the provider's settings schema, keyed by field name. */
+ provider_settings?: Record<string, unknown>
}
diff --git a/packages/admin-sdk/src/types/params/DigitalAssetUpdateParams.ts b/packages/admin-sdk/src/types/params/DigitalAssetUpdateParams.ts
index f14d1b0e40..fbe81f7d36 100644
--- a/packages/admin-sdk/src/types/params/DigitalAssetUpdateParams.ts
+++ b/packages/admin-sdk/src/types/params/DigitalAssetUpdateParams.ts
@@ -9,12 +9,12 @@ export type DigitalAssetUpdateParams = {
signed_id?: string
/** Defaults to the product's default variant when omitted. */
variant_id?: string
- /** A provider shorthand from the providers endpoint. Omit for an uploaded file. */
- provider_type?: string
- /** Values for the provider's settings schema, keyed by field name. */
- provider_settings?: Record<string, unknown>
/** Null means the store's download settings apply. */
authorized_clicks?: number | null
/** Null means the store's download settings apply. */
authorized_days?: number | null
+ /** A provider shorthand from the providers endpoint. Omit for an uploaded file. */
+ provider_type?: string
+ /** Values for the provider's settings schema, keyed by field name. */
+ provider_settings?: Record<string, unknown>
}
diff --git a/packages/admin-sdk/src/zod/generated/DigitalAsset.ts b/packages/admin-sdk/src/zod/generated/DigitalAsset.ts
index e6c7d2dab4..f2d0557d65 100644
--- a/packages/admin-sdk/src/zod/generated/DigitalAsset.ts
+++ b/packages/admin-sdk/src/zod/generated/DigitalAsset.ts
@@ -9,7 +9,6 @@ export const DigitalAssetSchema = z.object({
authorized_clicks: z.number().nullable(),
authorized_days: z.number().nullable(),
byte_size: z.number().nullable(),
- provider_settings: z.record(z.string(), z.unknown()),
created_at: z.string(),
updated_at: z.string(),
provider_type: z.string().nullable(),
@@ -17,6 +16,7 @@ export const DigitalAssetSchema = z.object({
download_url: z.string().nullable(),
effective_authorized_clicks: z.number(),
effective_authorized_days: z.number(),
+ provider_settings: z.record(z.string(), z.unknown()),
});
export type DigitalAsset = z.infer<typeof DigitalAssetSchema>;
diff --git a/packages/seller-sdk/src/types/filters.generated.ts b/packages/seller-sdk/src/types/filters.generated.ts
index 3efeb54be7..33a29d66d3 100644
--- a/packages/seller-sdk/src/types/filters.generated.ts
+++ b/packages/seller-sdk/src/types/filters.generated.ts
@@ -31,6 +31,9 @@ export type DeliveryZoneFields = Filter.RangeFilters<'created_at' | 'updated_at'
& Filter.IdFilters<'delivery_profile_id' | 'id'>
& Filter.TextFilters<'name'>
+export type DigitalAssetFields = Filter.RangeFilters<'created_at' | 'updated_at'>
+ & Filter.IdFilters<'id'>
+
export type ExchangeFields = Filter.RangeFilters<'created_at' | 'updated_at'>
& Filter.IdFilters<'id'>
& Filter.TextFilters<'number'>
@@ -253,6 +256,26 @@ export type DeliveryZoneFilters = DeliveryZoneFields
export type DeliveryZoneSort = Filter.SortKey<'created_at' | 'delivery_profile_id' | 'id' | 'name' | 'updated_at' | (keyof DeliveryZoneSortExtensions & string)>
+/**
+ * Filters your app adds to DigitalAsset lists. Generate them with `spree filters types`,
+ * or declare them by hand in a file that has an `export`:
+ *
+ * export {}
+ * declare module '@spree/seller-sdk' {
+ * interface DigitalAssetFilterExtensions { erp_id_eq?: string }
+ * }
+ */
+export interface DigitalAssetFilterExtensions {}
+
+/** Sort fields your app adds to DigitalAsset lists, as keys: `{ erp_id: true }`. */
+export interface DigitalAssetSortExtensions {}
+
+export type DigitalAssetFilters = DigitalAssetFields
+ & Filter.OrFilters
+ & DigitalAssetFilterExtensions
+
+export type DigitalAssetSort = Filter.SortKey<'created_at' | 'id' | 'updated_at' | (keyof DigitalAssetSortExtensions & string)>
+
/**
* Filters your app adds to Exchange lists. Generate them with `spree filters types`,
* or declare them by hand in a file that has an `export`:
diff --git a/packages/seller-sdk/src/types/generated/DigitalAsset.ts b/packages/seller-sdk/src/types/generated/DigitalAsset.ts
new file mode 100644
index 0000000000..7d7ad3647f
--- /dev/null
+++ b/packages/seller-sdk/src/types/generated/DigitalAsset.ts
@@ -0,0 +1,24 @@
+// Typelizer digest af0ccafdc85ea96a9ecd89c3a2c530da
+//
+// DO NOT MODIFY: This file was automatically generated by Typelizer.
+
+type DigitalAsset = {
+ id: string;
+ variant_id: string | null;
+ filename: string | null;
+ content_type: string | null;
+ authorized_clicks: number | null;
+ authorized_days: number | null;
+ byte_size: number | null;
+ created_at: string;
+ updated_at: string;
+ /** Digital asset provider; null is an uploaded file. Built-in: file. Extensions may register more. */
+ provider_type: string | null;
+ /** Digital asset provider name. Built-in: File. Extensions may register more. */
+ provider_name: string;
+ download_url: string | null;
+ effective_authorized_clicks: number;
+ effective_authorized_days: number;
+}
+
+export default DigitalAsset;
diff --git a/packages/seller-sdk/src/types/generated/index.ts b/packages/seller-sdk/src/types/generated/index.ts
index a0b0605b4d..9fc529143a 100644
--- a/packages/seller-sdk/src/types/generated/index.ts
+++ b/packages/seller-sdk/src/types/generated/index.ts
@@ -1,4 +1,4 @@
-// Typelizer digest 93a5fe78d0d0284f819d939e2352d8b2
+// Typelizer digest 641d89230378c944e97f7ffd97f1f2dc
//
// DO NOT MODIFY: This file was automatically generated by Typelizer.
export type { ClaimResolution, ClaimStatus, CountryCode, CurrencyCode, DeliveryStatus, DimensionUnit, ExchangeStatus, FileUploadVisibility, FulfillmentStatus, ImportRowStatus, ImportStatus, InvitationStatus, MediaType, OptionTypeKind, OrderFulfillmentStatus, OrderPaymentStatus, OrderStatus, PackageTypeKind, PayoutScheduleInterval, ProductStatus, ProductSubmissionStatus, PurchaseUnit, ReturnStatus, SellerRequirementState, SellerRequirementSubmissionStatus, SellerStatus, ShippingLabelFormat, ShippingLabelOwnerType, ShippingLabelSource, ShippingLabelStatus, StockLocationKind, TaxIdentifierValidationStatus, TaxRemittance, WeightUnit } from './Enums'
@@ -18,6 +18,7 @@ export type { default as DeliveryProfile } from './DeliveryProfile'
export type { default as DeliveryRate } from './DeliveryRate'
export type { default as Delivery } from './Delivery'
export type { default as DeliveryZone } from './DeliveryZone'
+export type { default as DigitalAsset } from './DigitalAsset'
export type { default as ExchangeLineItem } from './ExchangeLineItem'
export type { default as Exchange } from './Exchange'
export type { default as Export } from './Export'
diff --git a/packages/seller-sdk/src/types/params/DigitalAssetCreateParams.ts b/packages/seller-sdk/src/types/params/DigitalAssetCreateParams.ts
new file mode 100644
index 0000000000..bf6c6f148b
--- /dev/null
+++ b/packages/seller-sdk/src/types/params/DigitalAssetCreateParams.ts
@@ -0,0 +1,16 @@
+// This file is auto-generated from the request schemas in docs/api-reference by `pnpm generate:params`. Do not edit directly.
+
+export type DigitalAssetCreateParams = {
+ /**
+ * A `signed_id` from `files.upload()` with `visibility: 'private'`. Required for an uploaded
+ * file, omitted for a provider-backed asset. On update it replaces the file for everyone who
+ * already bought it.
+ */
+ signed_id?: string
+ /** Defaults to the product's default variant when omitted. */
+ variant_id?: string
+ /** Null means the store's download settings apply. */
+ authorized_clicks?: number | null
+ /** Null means the store's download settings apply. */
+ authorized_days?: number | null
+}
diff --git a/packages/seller-sdk/src/types/params/DigitalAssetUpdateParams.ts b/packages/seller-sdk/src/types/params/DigitalAssetUpdateParams.ts
new file mode 100644
index 0000000000..46f2441a10
--- /dev/null
+++ b/packages/seller-sdk/src/types/params/DigitalAssetUpdateParams.ts
@@ -0,0 +1,16 @@
+// This file is auto-generated from the request schemas in docs/api-reference by `pnpm generate:params`. Do not edit directly.
+
+export type DigitalAssetUpdateParams = {
+ /**
+ * A `signed_id` from `files.upload()` with `visibility: 'private'`. Required for an uploaded
+ * file, omitted for a provider-backed asset. On update it replaces the file for everyone who
+ * already bought it.
+ */
+ signed_id?: string
+ /** Defaults to the product's default variant when omitted. */
+ variant_id?: string
+ /** Null means the store's download settings apply. */
+ authorized_clicks?: number | null
+ /** Null means the store's download settings apply. */
+ authorized_days?: number | null
+}
diff --git a/packages/seller-sdk/src/types/params/index.ts b/packages/seller-sdk/src/types/params/index.ts
index cae2166093..ec0cc15128 100644
--- a/packages/seller-sdk/src/types/params/index.ts
+++ b/packages/seller-sdk/src/types/params/index.ts
@@ -11,6 +11,8 @@ export type { DeliveryMethodCreateParams } from './DeliveryMethodCreateParams'
export type { DeliveryMethodRuleParams } from './DeliveryMethodRuleParams'
export type { DeliveryMethodUpdateParams } from './DeliveryMethodUpdateParams'
export type { DeliveryUpdateParams } from './DeliveryUpdateParams'
+export type { DigitalAssetCreateParams } from './DigitalAssetCreateParams'
+export type { DigitalAssetUpdateParams } from './DigitalAssetUpdateParams'
export type { ExchangeCancelParams } from './ExchangeCancelParams'
export type { ExchangeCreateParams } from './ExchangeCreateParams'
export type { ExchangeFulfillParams } from './ExchangeFulfillParams'
diff --git a/packages/seller-sdk/src/zod/generated/DigitalAsset.ts b/packages/seller-sdk/src/zod/generated/DigitalAsset.ts
new file mode 100644
index 0000000000..44db4a08df
--- /dev/null
+++ b/packages/seller-sdk/src/zod/generated/DigitalAsset.ts
@@ -0,0 +1,21 @@
+// This file is auto-generated. Do not edit directly.
+import { z } from 'zod';
+
+export const DigitalAssetSchema = z.object({
+ id: z.string(),
+ variant_id: z.string().nullable(),
+ filename: z.string().nullable(),
+ content_type: z.string().nullable(),
+ authorized_clicks: z.number().nullable(),
+ authorized_days: z.number().nullable(),
+ byte_size: z.number().nullable(),
+ created_at: z.string(),
+ updated_at: z.string(),
+ provider_type: z.string().nullable(),
+ provider_name: z.string(),
+ download_url: z.string().nullable(),
+ effective_authorized_clicks: z.number(),
+ effective_authorized_days: z.number(),
+});
+
+export type DigitalAsset = z.infer<typeof DigitalAssetSchema>;
diff --git a/packages/seller-sdk/src/zod/generated/index.ts b/packages/seller-sdk/src/zod/generated/index.ts
index 92ab47f41c..88cf1271e8 100644
--- a/packages/seller-sdk/src/zod/generated/index.ts
+++ b/packages/seller-sdk/src/zod/generated/index.ts
@@ -13,6 +13,7 @@ export { DeliveryMethodRuleSchema, type DeliveryMethodRule } from './DeliveryMet
export { DeliveryProfileSchema, type DeliveryProfile } from './DeliveryProfile';
export { DeliveryRateSchema, type DeliveryRate } from './DeliveryRate';
export { DeliveryZoneSchema, type DeliveryZone } from './DeliveryZone';
+export { DigitalAssetSchema, type DigitalAsset } from './DigitalAsset';
export { ExchangeSchema, type Exchange } from './Exchange';
export { ExchangeLineItemSchema, type ExchangeLineItem } from './ExchangeLineItem';
export { ExportSchema, type Export } from './Export';
diff --git a/spree/api/app/controllers/concerns/spree/api/v3/digital_asset_writes.rb b/spree/api/app/controllers/concerns/spree/api/v3/digital_asset_writes.rb
new file mode 100644
index 0000000000..ff0e48bd41
--- /dev/null
+++ b/spree/api/app/controllers/concerns/spree/api/v3/digital_asset_writes.rb
@@ -0,0 +1,105 @@
+module Spree
+ module Api
+ module V3
+ # The downloadable files on one product, shared by the operator's and a
+ # seller's branch. What differs is only how the including controller
+ # reaches the product (`set_parent`) and which serializer answers.
+ module DigitalAssetWrites
+ extend ActiveSupport::Concern
+
+ # PATCH .../products/:product_id/digital_assets/:id
+ #
+ # Replacing the file keeps every already-issued link working, since
+ # links resolve through the asset rather than the blob.
+ def update
+ return render_private_storage_error unless uploaded_blob_private?
+
+ # The asset already exists, so attaching a replacement blob writes
+ # to the database immediately, while the update below renders a 422
+ # without raising when it fails. Wrap both so a failed update rolls
+ # the new attachment back rather than leaving the file swapped but
+ # the record unchanged.
+ model_class.transaction do
+ @resource.variant = requested_variant if params[:variant_id].present?
+ attach_uploaded_file(@resource)
+
+ super
+
+ raise ActiveRecord::Rollback if @resource.errors.any?
+ end
+ end
+
+ # POST .../products/:product_id/digital_assets
+ def create
+ return render_private_storage_error unless uploaded_blob_private?
+
+ super
+ end
+
+ protected
+
+ def model_class
+ Spree::DigitalAsset
+ end
+
+ # The parent association reaches assets through `variants`, which
+ # carries an ORDER BY on the variants table. Combined with the
+ # collection's DISTINCT, PostgreSQL rejects the query outright
+ # (ordering columns must appear in the select list), so order by
+ # the assets' own table instead. SQLite accepts either form, so
+ # this only fails on a real deployment.
+ def scope
+ super.reorder(created_at: :asc)
+ end
+
+ def scope_includes
+ [:variant, { attachment_attachment: :blob }]
+ end
+
+ def permitted_params
+ params.permit(*declared_permitted_attributes)
+ end
+
+ private
+
+ # A product without explicit variants keeps its file on the default
+ # variant, mirroring how the rest of the panels treat such products.
+ def build_resource
+ digital_asset = super
+ digital_asset.variant = requested_variant || @parent.default_variant
+ attach_uploaded_file(digital_asset)
+ digital_asset
+ end
+
+ # Scoped to the parent, not merely to the store: an asset reached
+ # through a product's route has no business pointing at another
+ # product's variant. An id from anywhere else is a 404.
+ def requested_variant
+ return if params[:variant_id].blank?
+
+ @parent.variants.find_by_prefix_id!(params[:variant_id])
+ end
+
+ def attach_uploaded_file(digital_asset)
+ return if params[:signed_id].blank?
+
+ digital_asset.attachment.attach(params[:signed_id])
+ end
+
+ # Attaching never moves a blob between storage services, so a file
+ # uploaded to the public bucket would stay publicly readable while
+ # looking attached. Refuse it rather than storing it wrongly.
+ def uploaded_blob_private?
+ return true if params[:signed_id].blank?
+
+ blob = ActiveStorage::Blob.find_signed(params[:signed_id])
+ blob.present? && blob.service_name.to_s == Spree.private_storage_service_name.to_s
+ end
+
+ def render_private_storage_error
+ render_validation_error(I18n.t('spree.digital_assets_attachment_must_be_private'))
+ end
+ end
+ end
+ end
+end
diff --git a/spree/api/app/controllers/spree/api/v3/admin/products/digital_assets_controller.rb b/spree/api/app/controllers/spree/api/v3/admin/products/digital_assets_controller.rb
index 2cfd39e643..dc6d3141bd 100644
--- a/spree/api/app/controllers/spree/api/v3/admin/products/digital_assets_controller.rb
+++ b/spree/api/app/controllers/spree/api/v3/admin/products/digital_assets_controller.rb
@@ -4,19 +4,12 @@ module Spree
module Admin
module Products
class DigitalAssetsController < ResourceController
+ include Spree::Api::V3::DigitalAssetWrites
+
scoped_resource :products
request_params :digital_asset do |body|
- # Names a blob rather than a column, so it is attached
- # separately (+attach_uploaded_file+).
- body.attribute :signed_id, :string,
- permit: false,
- description: "A `signed_id` from `files.upload()` with `visibility: 'private'`. Required for an uploaded file, omitted for a provider-backed asset. On update it replaces the file for everyone who already bought it."
- # Resolved through the parent rather than assigned, so an asset
- # can't be pointed at a variant of another product or store.
- body.attribute :variant_id, :id,
- permit: false,
- description: "Defaults to the product's default variant when omitted."
+ body.include_attributes Spree::Api::V3::DigitalAssetRequestSchema
# The model validates it names a registered provider.
body.attribute :provider_type, :string,
description: 'A provider shorthand from the providers endpoint. Omit for an uploaded file.'
@@ -24,41 +17,6 @@ module Spree
# under one key in the asset's metadata.
body.attribute :provider_settings, :hash,
description: "Values for the provider's settings schema, keyed by field name."
- body.attribute :authorized_clicks, :integer,
- nullable: true,
- description: "Null means the store's download settings apply."
- body.attribute :authorized_days, :integer,
- nullable: true,
- description: "Null means the store's download settings apply."
- end
-
- # PATCH /api/v3/admin/products/:product_id/digital_assets/:id
- #
- # Replacing the file keeps every already-issued link working, since
- # links resolve through the asset rather than the blob.
- def update
- return render_private_storage_error unless uploaded_blob_private?
-
- # The asset already exists, so attaching a replacement blob writes
- # to the database immediately, while the update below renders a 422
- # without raising when it fails. Wrap both so a failed update rolls
- # the new attachment back rather than leaving the file swapped but
- # the record unchanged.
- model_class.transaction do
- @resource.variant = requested_variant if params[:variant_id].present?
- attach_uploaded_file(@resource)
-
- super
-
- raise ActiveRecord::Rollback if @resource.errors.any?
- end
- end
-
- # POST /api/v3/admin/products/:product_id/digital_assets
- def create
- return render_private_storage_error unless uploaded_blob_private?
-
- super
end
# GET /api/v3/admin/products/:product_id/digital_assets/providers
@@ -83,10 +41,6 @@ module Spree
protected
- def model_class
- Spree::DigitalAsset
- end
-
def serializer_class
Spree.api.admin_digital_asset_serializer
end
@@ -95,64 +49,6 @@ module Spree
@parent = current_store.products.find_by_prefix_id!(params[:product_id])
authorize!(:show, @parent)
end
-
- # The parent association reaches assets through `variants`, which
- # carries an ORDER BY on the variants table. Combined with the
- # collection's DISTINCT, PostgreSQL rejects the query outright
- # (ordering columns must appear in the select list), so order by
- # the assets' own table instead. SQLite accepts either form, so
- # this only fails on a real deployment.
- def scope
- super.reorder(created_at: :asc)
- end
-
- def scope_includes
- [:variant, { attachment_attachment: :blob }]
- end
-
- def permitted_params
- params.permit(*declared_permitted_attributes)
- end
-
- private
-
- # A product without explicit variants keeps its file on the default
- # variant, mirroring how the rest of the admin treats such products.
- def build_resource
- digital_asset = super
- digital_asset.variant = requested_variant || @parent.default_variant
- attach_uploaded_file(digital_asset)
- digital_asset
- end
-
- # Scoped to the parent, not merely to the store: an asset reached
- # through a product's route has no business pointing at another
- # product's variant. An id from anywhere else is a 404.
- def requested_variant
- return if params[:variant_id].blank?
-
- @parent.variants.find_by_prefix_id!(params[:variant_id])
- end
-
- def attach_uploaded_file(digital_asset)
- return if params[:signed_id].blank?
-
- digital_asset.attachment.attach(params[:signed_id])
- end
-
- # Attaching never moves a blob between storage services, so a file
- # uploaded to the public bucket would stay publicly readable while
- # looking attached. Refuse it rather than storing it wrongly.
- def uploaded_blob_private?
- return true if params[:signed_id].blank?
-
- blob = ActiveStorage::Blob.find_signed(params[:signed_id])
- blob.present? && blob.service_name.to_s == Spree.private_storage_service_name.to_s
- end
-
- def render_private_storage_error
- render_validation_error(I18n.t('spree.digital_assets_attachment_must_be_private'))
- end
end
end
end
diff --git a/spree/api/app/controllers/spree/api/v3/seller/products/digital_assets_controller.rb b/spree/api/app/controllers/spree/api/v3/seller/products/digital_assets_controller.rb
new file mode 100644
index 0000000000..2491d918d3
--- /dev/null
+++ b/spree/api/app/controllers/spree/api/v3/seller/products/digital_assets_controller.rb
@@ -0,0 +1,40 @@
+module Spree
+ module Api
+ module V3
+ module Seller
+ module Products
+ # The downloadable files on one of this seller's own products.
+ #
+ # Uploaded files only: a provider is the operator's own code
+ # reaching into their internal systems, so a seller can neither pick
+ # one nor read its settings. An asset the operator set up with one
+ # is still listed, since it is part of what the seller's product
+ # delivers.
+ class DigitalAssetsController < Seller::ResourceController
+ include Spree::Api::V3::DigitalAssetWrites
+
+ scoped_resource :products
+
+ request_params :digital_asset do |body|
+ body.include_attributes Spree::Api::V3::DigitalAssetRequestSchema
+ end
+
+ protected
+
+ def serializer_class
+ Spree.api.seller_digital_asset_serializer
+ end
+
+ # Rooted in the seller's own catalog, so another seller's product
+ # is a 404. Changing a product's files is a change to the product,
+ # so writes need `:update` on it, not just `:show`.
+ def set_parent
+ @parent = current_seller.products.find_by_prefix_id!(params[:product_id])
+ authorize_parent!(@parent)
+ end
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/spree/api/app/request_schemas/spree/api/v3/digital_asset_request_schema.rb b/spree/api/app/request_schemas/spree/api/v3/digital_asset_request_schema.rb
new file mode 100644
index 0000000000..a97e68b770
--- /dev/null
+++ b/spree/api/app/request_schemas/spree/api/v3/digital_asset_request_schema.rb
@@ -0,0 +1,25 @@
+module Spree
+ module Api
+ module V3
+ # What a downloadable file on a product carries, whichever panel writes
+ # it. The operator's endpoint adds the provider fields on top.
+ class DigitalAssetRequestSchema < Spree::Api::V3::RequestSchema
+ # Names a blob rather than a column, so it is attached separately.
+ attribute :signed_id, :string,
+ permit: false,
+ description: "A `signed_id` from `files.upload()` with `visibility: 'private'`. Required for an uploaded file, omitted for a provider-backed asset. On update it replaces the file for everyone who already bought it."
+ # Resolved through the parent rather than assigned, so an asset can't
+ # be pointed at a variant of another product or store.
+ attribute :variant_id, :id,
+ permit: false,
+ description: "Defaults to the product's default variant when omitted."
+ attribute :authorized_clicks, :integer,
+ nullable: true,
+ description: "Null means the store's download settings apply."
+ attribute :authorized_days, :integer,
+ nullable: true,
+ description: "Null means the store's download settings apply."
+ end
+ end
+ end
+end
diff --git a/spree/api/app/serializers/concerns/spree/api/v3/digital_asset_details.rb b/spree/api/app/serializers/concerns/spree/api/v3/digital_asset_details.rb
new file mode 100644
index 0000000000..8813ae6e4a
--- /dev/null
+++ b/spree/api/app/serializers/concerns/spree/api/v3/digital_asset_details.rb
@@ -0,0 +1,64 @@
+module Spree
+ module Api
+ module V3
+ # What a panel shows about a downloadable file: its size, the limits
+ # that apply to it, and a short-lived link to check what was uploaded.
+ # Shared by the operator's and a seller's serializer, so both panels
+ # read the same fields.
+ module DigitalAssetDetails
+ extend ActiveSupport::Concern
+
+ included do
+ typelize byte_size: [:number, nullable: true],
+ authorized_clicks: [:number, nullable: true],
+ authorized_days: [:number, nullable: true],
+ effective_authorized_clicks: :number,
+ effective_authorized_days: :number,
+ provider_type: [:string, nullable: true, comment: 'Digital asset provider; null is an uploaded file. Built-in: file. Extensions may register more.'],
+ provider_name: [:string, comment: 'Digital asset provider name. Built-in: File. Extensions may register more.'],
+ download_url: [:string, nullable: true]
+
+ attributes :authorized_clicks, :authorized_days, :byte_size
+ attributes created_at: :iso8601, updated_at: :iso8601
+
+ api_type_attributes :provider_type
+
+ # Human-readable source for the listing. Blank provider_type is the
+ # uploaded-file default, so this reads "File" there.
+ attribute :provider_name do |digital_asset|
+ digital_asset.provider_class.provider_name
+ end
+
+ # Lets a merchant check what they actually uploaded. Short-lived and
+ # panel-only: this is the file itself, not a customer's download
+ # grant, so it carries no counter and spends nobody's allowance.
+ # Nil for a provider-backed asset (no file to preview) and outside a
+ # request (the Disk service needs a host only a controller supplies).
+ attribute :download_url do |digital_asset, params|
+ next nil unless digital_asset.downloadable?
+
+ store = params&.dig(:store) || Spree::Current.store || digital_asset.store
+ begin
+ digital_asset.download_url(expires_in: store.preferred_digital_asset_link_expire_time.seconds)
+ rescue ArgumentError
+ nil
+ end
+ end
+
+ # The limits actually applied, after the store-settings fallback. The
+ # request's store answers it; the asset's own store covers
+ # serialization outside a request.
+ attribute :effective_authorized_clicks do |digital_asset, params|
+ store = params&.dig(:store) || Spree::Current.store || digital_asset.store
+ digital_asset.effective_authorized_clicks(store)
+ end
+
+ attribute :effective_authorized_days do |digital_asset, params|
+ store = params&.dig(:store) || Spree::Current.store || digital_asset.store
+ digital_asset.effective_authorized_days(store)
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/spree/api/app/serializers/spree/api/v3/admin/digital_asset_serializer.rb b/spree/api/app/serializers/spree/api/v3/admin/digital_asset_serializer.rb
index dd335716cd..b7ae975608 100644
--- a/spree/api/app/serializers/spree/api/v3/admin/digital_asset_serializer.rb
+++ b/spree/api/app/serializers/spree/api/v3/admin/digital_asset_serializer.rb
@@ -5,55 +5,11 @@ module Spree
module V3
module Admin
class DigitalAssetSerializer < V3::DigitalAssetSerializer
- typelize byte_size: [:number, nullable: true],
- authorized_clicks: [:number, nullable: true],
- authorized_days: [:number, nullable: true],
- effective_authorized_clicks: :number,
- effective_authorized_days: :number,
- provider_type: [:string, nullable: true, comment: 'Digital asset provider; null is an uploaded file. Built-in: file. Extensions may register more.'],
- provider_name: [:string, comment: 'Digital asset provider name. Built-in: File. Extensions may register more.'],
- provider_settings: 'Record<string, unknown>',
- download_url: [:string, nullable: true]
+ include Spree::Api::V3::DigitalAssetDetails
- attributes :authorized_clicks, :authorized_days, :byte_size, :provider_settings
- attributes created_at: :iso8601, updated_at: :iso8601
+ typelize provider_settings: 'Record<string, unknown>'
- api_type_attributes :provider_type
-
- # Human-readable source for the admin listing. Blank provider_type is
- # the uploaded-file default, so this reads "File" there.
- attribute :provider_name do |digital_asset|
- digital_asset.provider_class.provider_name
- end
-
- # Lets a merchant check what they actually uploaded. Short-lived and
- # admin-only: this is the file itself, not a customer's download
- # grant, so it carries no counter and spends nobody's allowance.
- # Nil for a provider-backed asset (no file to preview) and outside a
- # request (the Disk service needs a host only a controller supplies).
- attribute :download_url do |digital_asset, params|
- next nil unless digital_asset.downloadable?
-
- store = params&.dig(:store) || Spree::Current.store || digital_asset.store
- begin
- digital_asset.download_url(expires_in: store.preferred_digital_asset_link_expire_time.seconds)
- rescue ArgumentError
- nil
- end
- end
-
- # The limits actually applied, after the store-settings fallback. The
- # request's store answers it — an admin request always carries one;
- # the asset's own store covers serialization outside a request.
- attribute :effective_authorized_clicks do |digital_asset, params|
- store = params&.dig(:store) || Spree::Current.store || digital_asset.store
- digital_asset.effective_authorized_clicks(store)
- end
-
- attribute :effective_authorized_days do |digital_asset, params|
- store = params&.dig(:store) || Spree::Current.store || digital_asset.store
- digital_asset.effective_authorized_days(store)
- end
+ attributes :provider_settings
end
end
end
diff --git a/spree/api/app/serializers/spree/api/v3/seller/digital_asset_serializer.rb b/spree/api/app/serializers/spree/api/v3/seller/digital_asset_serializer.rb
new file mode 100644
index 0000000000..76a839ca43
--- /dev/null
+++ b/spree/api/app/serializers/spree/api/v3/seller/digital_asset_serializer.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+module Spree
+ module Api
+ module V3
+ module Seller
+ # A downloadable file on a seller's own product. Leaves out the
+ # provider's settings: they configure the operator's own systems, not
+ # the seller's listing.
+ class DigitalAssetSerializer < V3::DigitalAssetSerializer
+ include Spree::Api::V3::DigitalAssetDetails
+ end
+ end
+ end
+ end
+end
diff --git a/spree/api/config/routes.rb b/spree/api/config/routes.rb
index 48eab9b4cb..416a4e8a8f 100644
--- a/spree/api/config/routes.rb
+++ b/spree/api/config/routes.rb
@@ -910,6 +910,9 @@ Spree::Core::Engine.add_routes do
post :bulk_status_update
delete :bulk_destroy
end
+
+ resources :digital_assets, controller: 'products/digital_assets',
+ only: [:index, :create, :show, :update, :destroy]
end
diff --git a/spree/api/lib/spree/api/dependencies.rb b/spree/api/lib/spree/api/dependencies.rb
index d7da6edea6..9ceb8e3b3a 100644
--- a/spree/api/lib/spree/api/dependencies.rb
+++ b/spree/api/lib/spree/api/dependencies.rb
@@ -51,7 +51,7 @@ module Spree
order_line_item fulfillment fulfillment_item delivery delivery_rate shipping_label return
return_line_item exchange exchange_line_item claim claim_line_item reason package_type stock_location
requirement_custom_field tax_identifier requirement_status import import_row import_mapping
- requirement_submission export transfer payout balance payment_split price price_history file_upload
+ requirement_submission export transfer payout balance payment_split price price_history file_upload digital_asset
file_upload_target].freeze
INJECTION_POINTS_WITH_DEFAULTS = {
diff --git a/spree/api/spec/controllers/spree/api/v3/seller/products/digital_assets_controller_spec.rb b/spree/api/spec/controllers/spree/api/v3/seller/products/digital_assets_controller_spec.rb
new file mode 100644
index 0000000000..c5361beda0
--- /dev/null
+++ b/spree/api/spec/controllers/spree/api/v3/seller/products/digital_assets_controller_spec.rb
@@ -0,0 +1,173 @@
+require 'spec_helper'
+
+# The writes themselves are shared with the operator's endpoint
+# (Spree::Api::V3::DigitalAssetWrites, covered by the admin controller spec);
+# this covers what the seller branch adds: tenancy, the seller's role, and
+# that providers stay the operator's.
+RSpec.describe Spree::Api::V3::Seller::Products::DigitalAssetsController, type: :controller do
+ render_views
+
+ include_context 'API v3 Seller authenticated'
+
+ let!(:product) { create(:product, seller: seller, store: store) }
+ let(:variant) { product.default_variant }
+ let(:other_seller) { create(:seller, :approved, store: store) }
+
+ let(:blob) do
+ ActiveStorage::Blob.create_and_upload!(
+ io: File.open(Spree::Core::Engine.root.join('spec', 'fixtures', 'thinking-cat.jpg')),
+ filename: 'amp-model.nam',
+ content_type: 'application/octet-stream',
+ service_name: Spree.private_storage_service_name
+ )
+ end
+
+ before { request.headers.merge!(headers) }
+
+ describe 'GET #index' do
+ let!(:digital_asset) { create(:digital_asset, variant: variant, authorized_clicks: 5) }
+
+ it "lists the files on the seller's own product" do
+ get :index, params: { product_id: product.prefixed_id }, as: :json
+
+ expect(response).to have_http_status(:ok)
+ expect(json_response['data'].pluck('id')).to eq([digital_asset.prefixed_id])
+ expect(json_response['data'].first).to include('authorized_clicks' => 5, 'effective_authorized_clicks' => 5)
+ expect(json_response['data'].first['download_url']).to be_present
+ end
+
+ it "keeps the operator's provider settings to the operator" do
+ digital_asset.update!(metadata: { 'provider' => { 'pool_name' => 'internal' } })
+
+ get :index, params: { product_id: product.prefixed_id }, as: :json
+
+ expect(json_response['data'].first).not_to have_key('provider_settings')
+ end
+
+ it "404s on another seller's product" do
+ theirs = create(:product, seller: other_seller, store: store)
+ create(:digital_asset, variant: theirs.default_variant)
+
+ get :index, params: { product_id: theirs.prefixed_id }, as: :json
+
+ expect(response).to have_http_status(:not_found)
+ end
+
+ it "404s on the marketplace's own product" do
+ get :index, params: { product_id: create(:product, store: store).prefixed_id }, as: :json
+
+ expect(response).to have_http_status(:not_found)
+ end
+ end
+
+ describe 'POST #create' do
+ it 'attaches an uploaded file with its own download limits' do
+ post :create, params: {
+ product_id: product.prefixed_id,
+ signed_id: blob.signed_id,
+ authorized_clicks: 3,
+ authorized_days: 30
+ }, as: :json
+
+ expect(response).to have_http_status(:created)
+ expect(json_response).to include('filename' => 'amp-model.nam', 'variant_id' => variant.prefixed_id,
+ 'authorized_clicks' => 3, 'authorized_days' => 30)
+ end
+
+ it "refuses a variant of another seller's product" do
+ theirs = create(:product, seller: other_seller, store: store)
+
+ post :create, params: {
+ product_id: product.prefixed_id,
+ signed_id: blob.signed_id,
+ variant_id: theirs.default_variant.prefixed_id
+ }, as: :json
+
+ expect(response).to have_http_status(:not_found)
+ expect(Spree::DigitalAsset.count).to eq(0)
+ end
+
+ context 'with a provider registered by the operator' do
+ let(:stub_provider) do
+ Class.new(Spree::DigitalAssetProvider::Base) do
+ def self.requires_attachment? = false
+ def deliver(_link, expires_in:) = Spree::DigitalDelivery.new(inline_value: 'X')
+ end
+ end
+
+ before do
+ stub_const('Spree::DigitalAssetProvider::Stub', stub_provider)
+ Spree.digital_asset_providers << stub_provider
+ end
+
+ after { Spree.digital_asset_providers.delete(stub_provider) }
+
+ it 'cannot route a sale through it' do
+ post :create, params: { product_id: product.prefixed_id, provider_type: 'stub' }, as: :json
+
+ expect(response).to have_http_status(:unprocessable_content)
+ expect(Spree::DigitalAsset.count).to eq(0)
+ end
+ end
+ end
+
+ describe 'PATCH #update' do
+ let!(:digital_asset) { create(:digital_asset, variant: variant, authorized_days: 7) }
+
+ it 'replaces the file and clears a limit back to the store default' do
+ patch :update, params: {
+ product_id: product.prefixed_id,
+ id: digital_asset.prefixed_id,
+ signed_id: blob.signed_id,
+ authorized_days: nil
+ }, as: :json
+
+ expect(response).to have_http_status(:ok)
+ expect(json_response['filename']).to eq('amp-model.nam')
+ expect(json_response['authorized_days']).to be_nil
+ end
+ end
+
+ describe 'DELETE #destroy' do
+ let!(:digital_asset) { create(:digital_asset, variant: variant) }
+
+ it 'removes the file' do
+ delete :destroy, params: { product_id: product.prefixed_id, id: digital_asset.prefixed_id }, as: :json
+
+ expect(response).to have_http_status(:no_content)
+ expect(Spree::DigitalAsset.where(id: digital_asset.id)).to be_empty
+ end
+ end
+
+ context 'with a read-only role' do
+ let(:seller_role) { create(:role, name: 'Viewer', resource: seller, permissions: %w[read_products]) }
+ let!(:digital_asset) { create(:digital_asset, variant: variant) }
+
+ it 'lists the files' do
+ get :index, params: { product_id: product.prefixed_id }, as: :json
+
+ expect(response).to have_http_status(:ok)
+ end
+
+ it 'cannot add one' do
+ post :create, params: { product_id: product.prefixed_id, signed_id: blob.signed_id }, as: :json
+
+ expect(response).to have_http_status(:forbidden)
+ expect(Spree::DigitalAsset.count).to eq(1)
+ end
+
+ it 'cannot change one' do
+ patch :update, params: { product_id: product.prefixed_id, id: digital_asset.prefixed_id, authorized_clicks: 1 }, as: :json
+
+ expect(response).to have_http_status(:forbidden)
+ expect(digital_asset.reload.authorized_clicks).to be_nil
+ end
+
+ it 'cannot remove one' do
+ delete :destroy, params: { product_id: product.prefixed_id, id: digital_asset.prefixed_id }, as: :json
+
+ expect(response).to have_http_status(:forbidden)
+ expect(Spree::DigitalAsset.where(id: digital_asset.id)).to exist
+ end
+ end
+end
diff --git a/spree/api/spec/integration/spree/api/v3/seller/products/digital_assets_spec.rb b/spree/api/spec/integration/spree/api/v3/seller/products/digital_assets_spec.rb
new file mode 100644
index 0000000000..400365beeb
--- /dev/null
+++ b/spree/api/spec/integration/spree/api/v3/seller/products/digital_assets_spec.rb
@@ -0,0 +1,164 @@
+# frozen_string_literal: true
+
+require 'swagger_helper'
+
+RSpec.describe 'Seller Product Digital Assets API', type: :request, swagger_doc: 'api-reference/seller.yaml' do
+ include_context 'API v3 Seller'
+
+ let!(:product) { create(:product, seller: seller, store: store) }
+ let!(:digital_asset) { create(:digital_asset, variant: product.default_variant) }
+ let(:Authorization) { "Bearer #{seller_jwt_token}" }
+ let(:'X-Spree-Seller-Id') { seller.prefixed_id }
+ let(:product_id) { product.prefixed_id }
+
+ path '/api/v3/seller/products/{product_id}/digital_assets' do
+ parameter name: :product_id, in: :path, type: :string, required: true, description: 'Product ID'
+
+ get 'List product digital assets' do
+ tags 'Products'
+ produces 'application/json'
+ security [bearer_auth: []]
+ description "Returns the downloadable files on one of this seller's own products, oldest first."
+
+ seller_sdk_example 'products/digital-assets/list'
+
+ parameter name: 'X-Spree-Seller-Id', in: :header, type: :string, required: true
+ parameter name: :page, in: :query, type: :integer, required: false, description: 'Page number'
+ parameter name: :limit, in: :query, type: :integer, required: false, description: 'Records per page (max 100)'
+ filter_parameters_for
+
+ response '200', 'digital assets found' do
+ schema SwaggerSchemaHelpers.paginated('DigitalAsset')
+
+ run_test! do |response|
+ ids = JSON.parse(response.body)['data'].pluck('id')
+ expect(ids).to eq([digital_asset.prefixed_id])
+ end
+ end
+
+ response '404', "another seller's product" do
+ let(:product_id) { create(:product, seller: create(:seller, :approved, store: store), store: store).prefixed_id }
+
+ schema '$ref' => '#/components/schemas/ErrorResponse'
+
+ run_test!
+ end
+ end
+
+ post 'Create a product digital asset' do
+ tags 'Products'
+ consumes 'application/json'
+ produces 'application/json'
+ security [bearer_auth: []]
+ description <<~DESC
+ Attaches a downloadable file to one of the product's variants (the
+ default variant when `variant_id` is omitted). Upload the file first
+ through `POST /api/v3/seller/files` with `visibility: 'private'`, then
+ send its `signed_id` here. Leave `authorized_clicks` and
+ `authorized_days` out to use the marketplace's download settings.
+ DESC
+
+ seller_sdk_example 'products/digital-assets/create'
+
+ parameter name: 'X-Spree-Seller-Id', in: :header, type: :string, required: true
+ request_body_for
+
+ response '201', 'digital asset created' do
+ let(:blob) do
+ ActiveStorage::Blob.create_and_upload!(
+ io: File.open(Spree::Core::Engine.root.join('spec', 'fixtures', 'thinking-cat.jpg')),
+ filename: 'manual.pdf',
+ content_type: 'application/pdf',
+ service_name: Spree.private_storage_service_name
+ )
+ end
+ let(:body) { { signed_id: blob.signed_id, authorized_clicks: 5, authorized_days: 30 } }
+
+ schema '$ref' => '#/components/schemas/DigitalAsset'
+
+ run_test! do |response|
+ data = JSON.parse(response.body)
+ expect(data).to include('filename' => 'manual.pdf', 'authorized_clicks' => 5, 'authorized_days' => 30)
+ end
+ end
+
+ response '422', 'no file sent' do
+ let(:body) { { authorized_clicks: 5 } }
+
+ schema '$ref' => '#/components/schemas/ErrorResponse'
+
+ run_test!
+ end
+ end
+ end
+
+ path '/api/v3/seller/products/{product_id}/digital_assets/{id}' do
+ parameter name: :product_id, in: :path, type: :string, required: true, description: 'Product ID'
+ parameter name: :id, in: :path, type: :string, required: true, description: 'Digital asset ID'
+
+ let(:id) { digital_asset.prefixed_id }
+
+ get 'Get a product digital asset' do
+ tags 'Products'
+ produces 'application/json'
+ security [bearer_auth: []]
+
+ seller_sdk_example 'products/digital-assets/get'
+
+ parameter name: 'X-Spree-Seller-Id', in: :header, type: :string, required: true
+
+ response '200', 'digital asset found' do
+ schema '$ref' => '#/components/schemas/DigitalAsset'
+
+ run_test! do |response|
+ expect(JSON.parse(response.body)['id']).to eq(digital_asset.prefixed_id)
+ end
+ end
+ end
+
+ patch 'Update a product digital asset' do
+ tags 'Products'
+ consumes 'application/json'
+ produces 'application/json'
+ security [bearer_auth: []]
+ description <<~DESC
+ Changes a file's download limits, or replaces it with a new private
+ `signed_id`. Links customers already received keep working and serve
+ the new file.
+ DESC
+
+ seller_sdk_example 'products/digital-assets/update'
+
+ parameter name: 'X-Spree-Seller-Id', in: :header, type: :string, required: true
+ request_body_for
+
+ response '200', 'digital asset updated' do
+ let(:body) { { authorized_clicks: 10, authorized_days: nil } }
+
+ schema '$ref' => '#/components/schemas/DigitalAsset'
+
+ run_test! do |response|
+ data = JSON.parse(response.body)
+ expect(data['authorized_clicks']).to eq(10)
+ expect(data['authorized_days']).to be_nil
+ end
+ end
+ end
+
+ delete 'Delete a product digital asset' do
+ tags 'Products'
+ security [bearer_auth: []]
+ description 'Removes the file. Customers who already bought it can no longer download it.'
+
+ seller_sdk_example 'products/digital-assets/delete'
+
+ parameter name: 'X-Spree-Seller-Id', in: :header, type: :string, required: true
+
+ response '204', 'digital asset deleted' do
+ run_test! do
+ expect(Spree::DigitalAsset.where(id: digital_asset.id)).to be_empty
+ end
+ end
+ end
+ end
+end