{"openapi":"3.1.0","info":{"title":"seeds.hues.flowers public API","version":"1.0.0","description":"Catalog of flower seed varieties and the US sellers who sell them. Reads are public. Envelope { data, page, meta, error }; page holds next_cursor + has_more, meta holds catalog_seq + generated_at. No prices are published. Every listing carries provenance; every variety and seller carries rating (\"not_yet_rated\" until real reviews exist). Unknown values are explicit (\"unknown\" or null). New endpoints (sync, reports) answer errors as application/problem+json. Breaking changes ship as /api/v2."},"servers":[{"url":"https://seeds.hues.flowers/api/v1"}],"jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","tags":[{"name":"crops"},{"name":"varieties"},{"name":"series"},{"name":"sellers"},{"name":"listings"},{"name":"categories"},{"name":"search"},{"name":"sync"},{"name":"reports"},{"name":"catalog"},{"name":"meta"}],"paths":{"/crops":{"get":{"operationId":"listCrops","summary":"All crops with coverage counts","tags":["crops"],"parameters":[{"name":"season","in":"query","schema":{"type":"string","enum":["cool","warm"]},"description":"Only crops whose crop is a Cool Season Hardy Annual (cool) or a Warm Season Tender Annual (warm). Unclassified crops never match; any other value returns 400."},{"name":"method","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["direct","trays"]}},"description":"Only crops whose crop can be direct sown (direct) or started indoors and transplanted (trays). Repeat the parameter or comma-separate values; a crop with any selected method matches (a crop with both matches either). Crops without sowing-method data never match; any other value returns 400."},{"name":"life_cycle","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["annual","biennial","perennial"]}},"description":"Only crops whose crop is grown as an annual (annual), a biennial (biennial) or a perennial (perennial), as derived from the crop's life_cycle: a \"grown as an annual\" qualifier puts a tender or short-lived perennial under annual only, and \"or\" wordings (e.g. \"Annual or biennial\") count for each habit named. Repeat the parameter or comma-separate values; a crop in any selected bucket matches. Crops without a life cycle never match; any other value returns 400."},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Opaque cursor from meta.nextCursor."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"description":"Out-of-range values are clamped; non-numeric values return 400."}],"responses":{"200":{"description":"Page of crops","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CropListItem"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/crops/{slug}":{"get":{"operationId":"getCrop","summary":"One crop with its series and a page of its varieties","tags":["crops"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Opaque cursor from meta.nextCursor."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"description":"Out-of-range values are clamped; non-numeric values return 400."}],"responses":{"200":{"description":"Crop","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"$ref":"#/components/schemas/CropDetail"},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/varieties":{"get":{"operationId":"listVarieties","summary":"Paged varieties","tags":["varieties"],"parameters":[{"name":"crop","in":"query","schema":{"type":"string"},"description":"Crop slug (comma-separated for several)"},{"name":"series","in":"query","schema":{"type":"string"},"description":"Series slug (comma-separated for several)"},{"name":"color_family","in":"query","schema":{"type":"string"},"description":"Hue: white | blush | pink | peach | orange | yellow | red | burgundy | purple | blue | green | chocolate | mix | unknown (comma-separated for several)"},{"name":"pollination","in":"query","schema":{"type":"string"},"description":"open_pollinated | f1_hybrid | unknown (comma-separated for several)"},{"name":"season","in":"query","schema":{"type":"string","enum":["cool","warm"]},"description":"Only varieties whose crop is a Cool Season Hardy Annual (cool) or a Warm Season Tender Annual (warm). Unclassified crops never match; any other value returns 400."},{"name":"method","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["direct","trays"]}},"description":"Only varieties whose crop can be direct sown (direct) or started indoors and transplanted (trays). Repeat the parameter or comma-separate values; a crop with any selected method matches (a crop with both matches either). Crops without sowing-method data never match; any other value returns 400."},{"name":"life_cycle","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["annual","biennial","perennial"]}},"description":"Only varieties whose crop is grown as an annual (annual), a biennial (biennial) or a perennial (perennial), as derived from the crop's life_cycle: a \"grown as an annual\" qualifier puts a tender or short-lived perennial under annual only, and \"or\" wordings (e.g. \"Annual or biennial\") count for each habit named. Repeat the parameter or comma-separate values; a crop in any selected bucket matches. Crops without a life cycle never match; any other value returns 400."},{"name":"has_listings","in":"query","schema":{"type":"boolean"}},{"name":"in_stock","in":"query","schema":{"type":"boolean"}},{"name":"small_farm","in":"query","description":"true = only varieties with at least one listing from a seller carrying the Small farm badge","schema":{"type":"boolean"}},{"name":"category","in":"query","schema":{"type":"string"},"description":"Category slug"},{"name":"subcategory","in":"query","schema":{"type":"string"},"description":"Subcategory slug"},{"name":"seller","in":"query","schema":{"type":"string"},"description":"Seller slug"},{"name":"tag","in":"query","schema":{"type":"string"},"description":"Tag"},{"name":"sort","in":"query","schema":{"type":"string","enum":["name","-name","recently_checked","-recently_checked","listing_count","-listing_count"],"default":"name"}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Opaque cursor from meta.nextCursor."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"description":"Out-of-range values are clamped; non-numeric values return 400."}],"responses":{"200":{"description":"Page of varieties","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VarietyListItem"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/varieties/{slug}":{"get":{"operationId":"getVariety","summary":"One variety: names, facts, rating, listings","tags":["varieties"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"Variety","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"$ref":"#/components/schemas/VarietyDetail"},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/varieties/{slug}/listings":{"get":{"operationId":"listVarietyListings","summary":"Published listings for a variety","tags":["varieties"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},{"name":"availability","in":"query","schema":{"type":"string"},"description":"in_stock | sold_out | preorder | shop_closed | unknown (comma-separated for several)"},{"name":"ships_to","in":"query","schema":{"type":"string"},"description":"Region code (comma-separated for several)"},{"name":"small_farm","in":"query","description":"true = only listings from sellers carrying the Small farm badge","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Published listings for a variety","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Listing"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/series/{slug}":{"get":{"operationId":"getSeries","summary":"A series with its member varieties","tags":["series"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"Series","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"$ref":"#/components/schemas/SeriesDetail"},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/sellers":{"get":{"operationId":"listSellers","summary":"Listed sellers","tags":["sellers"],"parameters":[{"name":"region","in":"query","schema":{"type":"string"},"description":"Region code, e.g. WA (comma-separated for several)"},{"name":"q","in":"query","schema":{"type":"string"},"description":"Name contains"},{"name":"small_farm","in":"query","description":"true = only sellers carrying the Small farm badge","schema":{"type":"boolean"}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Opaque cursor from meta.nextCursor."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"description":"Out-of-range values are clamped; non-numeric values return 400."}],"responses":{"200":{"description":"Page of sellers","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SellerListItem"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/sellers/{slug}":{"get":{"operationId":"getSeller","summary":"One seller with profile, rating and listings (410 once removed at its request)","tags":["sellers"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"Seller","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"$ref":"#/components/schemas/SellerDetail"},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/sellers/{slug}/listings":{"get":{"operationId":"listSellerListings","summary":"That seller's listings","tags":["sellers"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},{"name":"crop","in":"query","schema":{"type":"string"},"description":"Crop slug (comma-separated for several)"},{"name":"availability","in":"query","schema":{"type":"string"},"description":"Availability (comma-separated for several)"}],"responses":{"200":{"description":"That seller's listings","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Listing"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/categories":{"get":{"operationId":"listCategories","summary":"Categories with subcategories and variety counts","tags":["categories"],"parameters":[],"responses":{"200":{"description":"Categories","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Category"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/categories/{slug}":{"get":{"operationId":"getCategory","summary":"One category and a page of its varieties","tags":["categories"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Opaque cursor from meta.nextCursor."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"description":"Out-of-range values are clamped; non-numeric values return 400."}],"responses":{"200":{"description":"Category","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"$ref":"#/components/schemas/CategoryDetail"},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/search":{"get":{"operationId":"search","summary":"Mixed results: varieties, series, crops, sellers. Two characters search; synonyms match and are flagged (matchedAlias). 60/min/IP.","tags":["search"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"type","in":"query","schema":{"type":"string"},"description":"variety | series | crop | seller (comma-separated for several)"},{"name":"season","in":"query","schema":{"type":"string","enum":["cool","warm"]},"description":"Only crops, series and varieties (sellers are unaffected) whose crop is a Cool Season Hardy Annual (cool) or a Warm Season Tender Annual (warm). Unclassified crops never match; any other value returns 400."},{"name":"method","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["direct","trays"]}},"description":"Only crops, series and varieties (sellers are unaffected) whose crop can be direct sown (direct) or started indoors and transplanted (trays). Repeat the parameter or comma-separate values; a crop with any selected method matches (a crop with both matches either). Crops without sowing-method data never match; any other value returns 400."},{"name":"color_family","in":"query","schema":{"type":"string"},"description":"Only varieties of this hue, white | blush | pink | peach | orange | yellow | red | burgundy | purple | blue | green | chocolate | mix (crops, series and sellers are unaffected) (comma-separated for several)"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Search results","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"$ref":"#/components/schemas/SearchResponse"},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/coverage":{"get":{"operationId":"getCoverage","summary":"Per crop: varieties, varieties with sellers, last updated","tags":["crops"],"parameters":[],"responses":{"200":{"description":"Coverage","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CoverageItem"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/recent":{"get":{"operationId":"getRecent","summary":"Recently restocked and newly listed","tags":["listings"],"parameters":[{"name":"crop","in":"query","schema":{"type":"string"},"description":"Crop slug (comma-separated for several)"},{"name":"since","in":"query","schema":{"type":"string"},"description":"ISO date"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"description":"Out-of-range values are clamped; non-numeric values return 400."}],"responses":{"200":{"description":"Recent listing events","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RecentItem"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/sync/snapshot":{"get":{"operationId":"getSyncSnapshot","summary":"The full public catalog for on-device storage. ETag derives from catalog_seq.","tags":["sync"],"parameters":[],"responses":{"200":{"description":"Snapshot","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncSnapshot"}}}},"304":{"description":"Not modified"},"429":{"description":"Problem (429)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Problem (500)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/sync/changes":{"get":{"operationId":"getSyncChanges","summary":"Upserts and tombstones after a catalog_seq (400 if since is ahead; 410 resync_required if out of range)","tags":["sync"],"parameters":[{"name":"since","in":"query","required":true,"schema":{"type":"integer"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":1000,"default":500}}],"responses":{"200":{"description":"Changes","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"$ref":"#/components/schemas/SyncChanges"},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"400":{"description":"Problem (400)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"410":{"description":"Problem (410)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Problem (429)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Problem (500)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/reports":{"post":{"operationId":"createReport","summary":"A correction, claim or removal request (3/min/IP; Turnstile token when configured)","tags":["reports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type","target_type","target_ref","message","contact"],"properties":{"type":{"type":"string","enum":["correct","claim","remove"]},"target_type":{"type":"string","enum":["variety","seller"]},"target_ref":{"type":"string"},"message":{"type":"string","minLength":5,"maxLength":4000},"contact":{"type":"string","format":"email"},"turnstile_token":{"type":"string"}}}}}},"responses":{"201":{"description":"Report stored and queued for review"},"400":{"description":"Problem (400)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Problem (403)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Problem (404)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Problem (429)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Problem (500)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/catalog/version":{"get":{"operationId":"getCatalogVersion","summary":"Current published catalog version (never cached: Cache-Control no-store)","tags":["catalog"],"parameters":[],"responses":{"200":{"description":"Catalog version","headers":{"ETag":{"schema":{"type":"string"},"description":"Strong content hash; send as If-None-Match for 304."},"Cache-Control":{"schema":{"type":"string"}},"X-API-Version":{"schema":{"type":"string","const":"1"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","page","meta","error"],"properties":{"data":{"$ref":"#/components/schemas/CatalogVersion"},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/PageMeta"},"error":{"type":"null"}}}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/catalog/snapshot/{version}.sqlite":{"get":{"operationId":"getCatalogSnapshot","summary":"Download the published SQLite snapshot of the public catalog tables for a version","tags":["catalog"],"parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"SQLite database file","content":{"application/vnd.sqlite3":{"schema":{"type":"string","contentMediaType":"application/vnd.sqlite3"}}}},"304":{"description":"Not modified"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This OpenAPI 3.1 document","tags":["meta"],"parameters":[],"responses":{"200":{"description":"OpenAPI document","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"CategoryRef":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1}},"required":["slug","name"],"additionalProperties":false},"PlantRef":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"commonName":{"type":"string","minLength":1},"latinName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lifeCycle":{"type":["string","null"]},"season_class":{"anyOf":[{"$ref":"#/components/schemas/__shared#/$defs/SeasonClass"},{"type":"null"}]},"season_source_label":{"type":["string","null"]},"sowing_methods":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SowingMethod"}},"sowing_method_source_label":{"type":["string","null"]}},"required":["slug","commonName","latinName","lifeCycle","season_class","season_source_label","sowing_methods","sowing_method_source_label"],"additionalProperties":false,"description":"A crop (canonical name for what v2 calls a plant)."},"SeriesRef":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1}},"required":["slug","name"],"additionalProperties":false},"PacketSize":{"type":"object","properties":{"label":{"type":"string","minLength":1},"seedCount":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","seedCount"],"additionalProperties":false,"description":"Packet label and seed count. Prices are never exposed (R1)."},"Rating":{"type":"object","properties":{"state":{"type":"string","enum":["not_yet_rated","rated"]},"average":{"anyOf":[{"type":"number","minimum":1,"maximum":5},{"type":"null"}]},"review_count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["state","average","review_count"],"additionalProperties":false,"description":"\"Not yet rated\" is a stored state; the average is null until rated."},"ImportedRating":{"type":"object","properties":{"source":{"type":"string","enum":["Google"]},"placeName":{"type":"string","minLength":1},"placeId":{"type":"string","minLength":1},"rating":{"type":"number","minimum":0,"maximum":5},"reviewCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"fetchedDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["source","placeName","placeId","rating","reviewCount","fetchedDate"],"additionalProperties":false,"description":"Third-party aggregate (e.g. Google) shown separately from our rating; null when none was imported."},"Provenance":{"type":"object","properties":{"source_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"retrieved_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"method":{"type":"string","enum":["exact","synonym","model","human"]},"confidence":{"type":"number","minimum":0,"maximum":1}},"required":["source_url","retrieved_at","method","confidence"],"additionalProperties":false},"SellerRef":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"location":{"type":["string","null"]},"region":{"type":["string","null"]},"country":{"type":"string","minLength":2},"isSmallFarm":{"type":"boolean"}},"required":["slug","name","location","region","country","isSmallFarm"],"additionalProperties":false},"VarietyRef":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"varietyName":{"type":"string","minLength":1},"plant":{"$ref":"#/components/schemas/PlantRef"},"colorSwatch":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}]},"colorFamily":{"type":"string","minLength":1},"media":{"type":"array","items":{"$ref":"#/components/schemas/Media"}},"cropMedia":{"type":"array","items":{"$ref":"#/components/schemas/Media"}}},"required":["slug","varietyName","plant","colorSwatch","colorFamily","media","cropMedia"],"additionalProperties":false},"Listing":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"variety":{"$ref":"#/components/schemas/VarietyRef"},"seller":{"$ref":"#/components/schemas/SellerRef"},"availability":{"$ref":"#/components/schemas/__shared#/$defs/Availability"},"lastCheckedAt":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"firstSeenAt":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"goUrl":{"type":"string","format":"uri"},"productUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"notes":{"type":["string","null"]},"status":{"type":"string","const":"published"},"packetSizes":{"type":"array","items":{"$ref":"#/components/schemas/PacketSize"}},"provenance":{"$ref":"#/components/schemas/Provenance"},"sourceLabel":{"type":["string","null"]}},"required":["id","variety","seller","availability","lastCheckedAt","firstSeenAt","goUrl","productUrl","notes","status","packetSizes","provenance","sourceLabel"],"additionalProperties":false},"SellerSummary":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["wholesale","retail","specialty"]},"location":{"type":["string","null"]},"region":{"type":["string","null"]},"country":{"type":"string","minLength":2},"homepage":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"ratingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"ratingAverage":{"anyOf":[{"type":"number","minimum":1,"maximum":5},{"type":"null"}]},"rating":{"$ref":"#/components/schemas/Rating"},"importedRating":{"anyOf":[{"$ref":"#/components/schemas/ImportedRating"},{"type":"null"}]},"isSmallFarm":{"type":"boolean"}},"required":["slug","name","type","location","region","country","homepage","ratingCount","ratingAverage","rating","importedRating","isSmallFarm"],"additionalProperties":false},"VarietySummary":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"varietyName":{"type":"string","minLength":1},"plant":{"$ref":"#/components/schemas/PlantRef"},"category":{"$ref":"#/components/schemas/CategoryRef"},"subcategory":{"anyOf":[{"$ref":"#/components/schemas/CategoryRef"},{"type":"null"}]},"series":{"anyOf":[{"$ref":"#/components/schemas/SeriesRef"},{"type":"null"}]},"colorSwatch":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}]},"colorFamily":{"type":"string","minLength":1},"listingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"sellerCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"inStockCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastCheckedAt":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"indexable":{"type":"boolean"},"rating":{"$ref":"#/components/schemas/Rating"}},"required":["slug","varietyName","plant","category","subcategory","series","colorSwatch","colorFamily","listingCount","sellerCount","inStockCount","lastCheckedAt","indexable","rating"],"additionalProperties":false},"VarietyListItem":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"varietyName":{"type":"string","minLength":1},"plant":{"$ref":"#/components/schemas/PlantRef"},"category":{"$ref":"#/components/schemas/CategoryRef"},"subcategory":{"anyOf":[{"$ref":"#/components/schemas/CategoryRef"},{"type":"null"}]},"series":{"anyOf":[{"$ref":"#/components/schemas/SeriesRef"},{"type":"null"}]},"colorSwatch":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}]},"colorFamily":{"type":"string","minLength":1},"listingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"sellerCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"inStockCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastCheckedAt":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"indexable":{"type":"boolean"},"rating":{"$ref":"#/components/schemas/Rating"},"media":{"type":"array","items":{"$ref":"#/components/schemas/Media"}},"cropMedia":{"type":"array","items":{"$ref":"#/components/schemas/Media"}}},"required":["slug","varietyName","plant","category","subcategory","series","colorSwatch","colorFamily","listingCount","sellerCount","inStockCount","lastCheckedAt","indexable","rating","media","cropMedia"],"additionalProperties":false},"VarietyFacts":{"type":"object","properties":{"color_family":{"type":"string","minLength":1},"pollination":{"type":"string","enum":["open_pollinated","f1_hybrid","unknown"]},"height_cm":{"type":"object","properties":{"min":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"max":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["min","max"],"additionalProperties":false},"days_to_bloom":{"type":"object","properties":{"min":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"max":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["min","max"],"additionalProperties":false}},"required":["color_family","pollination","height_cm","days_to_bloom"],"additionalProperties":false,"description":"Unknown is explicit: \"unknown\" or null, never omitted."},"Media":{"type":"object","properties":{"url":{"type":"string","minLength":1},"licence":{"type":"string","minLength":1},"credit":{"type":"string","minLength":1},"thumbUrl":{"deprecated":true,"description":"Deprecated; no longer populated. Card sizes are transformations of `url`.","type":"string","minLength":1}},"required":["url","licence","credit"],"additionalProperties":false},"PlantGuidance":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"commonName":{"type":"string","minLength":1},"latinName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lifeCycle":{"type":["string","null"]},"season_class":{"anyOf":[{"$ref":"#/components/schemas/__shared#/$defs/SeasonClass"},{"type":"null"}]},"season_source_label":{"type":["string","null"]},"sowing_methods":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SowingMethod"}},"sowing_method_source_label":{"type":["string","null"]},"description":{"type":["string","null"]},"sowingNotes":{"type":["string","null"]}},"required":["slug","commonName","latinName","lifeCycle","season_class","season_source_label","sowing_methods","sowing_method_source_label","description","sowingNotes"],"additionalProperties":false},"VarietyDetail":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"varietyName":{"type":"string","minLength":1},"plant":{"$ref":"#/components/schemas/PlantGuidance"},"category":{"$ref":"#/components/schemas/CategoryRef"},"subcategory":{"anyOf":[{"$ref":"#/components/schemas/CategoryRef"},{"type":"null"}]},"series":{"anyOf":[{"$ref":"#/components/schemas/SeriesRef"},{"type":"null"}]},"colorSwatch":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}]},"colorFamily":{"type":"string","minLength":1},"listingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"sellerCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"inStockCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastCheckedAt":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"indexable":{"type":"boolean"},"rating":{"$ref":"#/components/schemas/Rating"},"description":{"type":["string","null"]},"templateDescription":{"type":"string","minLength":1},"answer":{"type":"string","minLength":1},"sowingNotes":{"type":["string","null"]},"heightCm":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"facts":{"$ref":"#/components/schemas/VarietyFacts"},"tags":{"type":"array","items":{"type":"string"}},"aliases":{"type":"array","items":{"type":"string"}},"protection":{"type":"string","enum":["pvp_us","utility_patent_us","pbr","none_stated","unknown"]},"protectionNote":{"type":["string","null"]},"contentLevel":{"type":"string","enum":["thin","factual"]},"updatedAt":{"type":"string"},"listings":{"type":"array","items":{"$ref":"#/components/schemas/Listing"}},"media":{"type":"array","items":{"$ref":"#/components/schemas/Media"}}},"required":["slug","varietyName","plant","category","subcategory","series","colorSwatch","colorFamily","listingCount","sellerCount","inStockCount","lastCheckedAt","indexable","rating","description","templateDescription","answer","sowingNotes","heightCm","facts","tags","aliases","protection","protectionNote","contentLevel","updatedAt","listings","media"],"additionalProperties":false},"SellerListItem":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["wholesale","retail","specialty"]},"location":{"type":["string","null"]},"region":{"type":["string","null"]},"country":{"type":"string","minLength":2},"homepage":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"ratingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"ratingAverage":{"anyOf":[{"type":"number","minimum":1,"maximum":5},{"type":"null"}]},"rating":{"$ref":"#/components/schemas/Rating"},"importedRating":{"anyOf":[{"$ref":"#/components/schemas/ImportedRating"},{"type":"null"}]},"isSmallFarm":{"type":"boolean"},"varietyCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["slug","name","type","location","region","country","homepage","ratingCount","ratingAverage","rating","importedRating","isSmallFarm","varietyCount"],"additionalProperties":false},"SellerDetail":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["wholesale","retail","specialty"]},"location":{"type":["string","null"]},"region":{"type":["string","null"]},"country":{"type":"string","minLength":2},"homepage":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"ratingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"ratingAverage":{"anyOf":[{"type":"number","minimum":1,"maximum":5},{"type":"null"}]},"rating":{"$ref":"#/components/schemas/Rating"},"importedRating":{"anyOf":[{"$ref":"#/components/schemas/ImportedRating"},{"type":"null"}]},"isSmallFarm":{"type":"boolean"},"description":{"type":["string","null"]},"orderingNotes":{"type":["string","null"]},"varietyCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"updatedAt":{"type":"string"},"claimStatus":{"type":"string","enum":["unclaimed","claimed"]},"shipsTo":{"type":"array","items":{"type":"string"}},"isSiteOwner":{"type":"boolean"},"listings":{"type":"array","items":{"$ref":"#/components/schemas/Listing"}},"customerServicePhone":{"type":["string","null"]},"customerServiceEmail":{"type":["string","null"]},"locations":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SellerLocation"}}},"required":["slug","name","type","location","region","country","homepage","ratingCount","ratingAverage","rating","importedRating","isSmallFarm","description","orderingNotes","varietyCount","updatedAt","claimStatus","shipsTo","isSiteOwner","listings","customerServicePhone","customerServiceEmail","locations"],"additionalProperties":false},"Subcategory":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"varietyCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["slug","name","varietyCount"],"additionalProperties":false},"Category":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"varietyCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"subcategories":{"type":"array","items":{"$ref":"#/components/schemas/Subcategory"}}},"required":["slug","name","varietyCount","subcategories"],"additionalProperties":false},"CategoryDetail":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"varietyCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"subcategories":{"type":"array","items":{"$ref":"#/components/schemas/Subcategory"}},"varieties":{"type":"array","items":{"$ref":"#/components/schemas/VarietyListItem"}}},"required":["slug","name","varietyCount","subcategories","varieties"],"additionalProperties":false},"CropListItem":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"commonName":{"type":"string","minLength":1},"latinName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lifeCycle":{"type":["string","null"]},"season_class":{"anyOf":[{"$ref":"#/components/schemas/__shared#/$defs/SeasonClass"},{"type":"null"}]},"season_source_label":{"type":["string","null"]},"sowing_methods":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SowingMethod"}},"sowing_method_source_label":{"type":["string","null"]},"category":{"$ref":"#/components/schemas/CategoryRef"},"varietyCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"varietiesWithSellers":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastUpdated":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"media":{"type":"array","items":{"$ref":"#/components/schemas/Media"}}},"required":["slug","commonName","latinName","lifeCycle","season_class","season_source_label","sowing_methods","sowing_method_source_label","category","varietyCount","varietiesWithSellers","lastUpdated","media"],"additionalProperties":false},"GrowerGuide":{"type":"object","properties":{"growing":{"anyOf":[{"type":"object","properties":{"sowing":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"germination":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"transplanting":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"days_to_bloom":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"spacing":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"growing":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"harvest_for_cutting":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"good_to_know":{"type":"array","items":{"type":"string","minLength":1}}},"required":["sowing","germination","transplanting","days_to_bloom","spacing","growing","harvest_for_cutting","good_to_know"],"additionalProperties":false},{"type":"null"}]},"seed_saving":{"anyOf":[{"type":"object","properties":{"difficulty":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"when_to_harvest":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"how_to_collect":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"cleaning":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"drying":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"storage":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"pollination_notes":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["difficulty","when_to_harvest","how_to_collect","cleaning","drying","storage","pollination_notes"],"additionalProperties":false},{"type":"null"}]}},"required":["growing","seed_saving"],"additionalProperties":false,"description":"Growing, harvest and seed-saving notes for a crop. null fields = not known."},"CropDetail":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"commonName":{"type":"string","minLength":1},"latinName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lifeCycle":{"type":["string","null"]},"season_class":{"anyOf":[{"$ref":"#/components/schemas/__shared#/$defs/SeasonClass"},{"type":"null"}]},"season_source_label":{"type":["string","null"]},"sowing_methods":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SowingMethod"}},"sowing_method_source_label":{"type":["string","null"]},"category":{"$ref":"#/components/schemas/CategoryRef"},"varietyCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"varietiesWithSellers":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastUpdated":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"media":{"type":"array","items":{"$ref":"#/components/schemas/Media"}},"description":{"type":["string","null"]},"sowingNotes":{"type":["string","null"]},"life_cycle":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"hardiness":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"grower_guide":{"anyOf":[{"$ref":"#/components/schemas/GrowerGuide"},{"type":"null"}]},"series":{"type":"array","items":{"$ref":"#/components/schemas/SeriesRef"}},"varieties":{"type":"array","items":{"$ref":"#/components/schemas/VarietyListItem"}}},"required":["slug","commonName","latinName","lifeCycle","season_class","season_source_label","sowing_methods","sowing_method_source_label","category","varietyCount","varietiesWithSellers","lastUpdated","media","description","sowingNotes","life_cycle","hardiness","grower_guide","series","varieties"],"additionalProperties":false},"SeriesDetail":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"crop":{"$ref":"#/components/schemas/PlantRef"},"varietyCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"varietiesWithSellers":{"type":"integer","minimum":0,"maximum":9007199254740991},"varieties":{"type":"array","items":{"$ref":"#/components/schemas/VarietyListItem"}}},"required":["slug","name","crop","varietyCount","varietiesWithSellers","varieties"],"additionalProperties":false},"CoverageItem":{"type":"object","properties":{"crop":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1}},"required":["slug","name"],"additionalProperties":false},"varieties":{"type":"integer","minimum":0,"maximum":9007199254740991},"varieties_with_sellers":{"type":"integer","minimum":0,"maximum":9007199254740991},"last_updated":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]}},"required":["crop","varieties","varieties_with_sellers","last_updated"],"additionalProperties":false},"RecentItem":{"type":"object","properties":{"event":{"type":"string","enum":["first_seen","restocked","sold_out","gone","restored"]},"at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},"listing":{"$ref":"#/components/schemas/Listing"}},"required":["event","at","listing"],"additionalProperties":false},"SearchResult":{"type":"object","properties":{"type":{"type":"string","enum":["variety","series","crop","seller"]},"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"title":{"type":"string","minLength":1},"subtitle":{"type":"string"},"href":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"matchedAlias":{"type":["string","null"]}},"required":["type","slug","title","subtitle","href","matchedAlias"],"additionalProperties":false},"SearchResponse":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}},"varieties":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}},"series":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}},"crops":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}},"sellers":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}}},"required":["query","results","varieties","series","crops","sellers"],"additionalProperties":false},"CatalogVersion":{"type":"object","properties":{"version":{"type":"integer","minimum":0,"maximum":9007199254740991},"publishedAt":{"type":["string","null"]},"snapshotUrl":{"type":["string","null"]}},"required":["version","publishedAt","snapshotUrl"],"additionalProperties":false},"SyncSnapshot":{"type":"object","properties":{"catalog_seq":{"type":"integer","minimum":0,"maximum":9007199254740991},"schema_version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"generated_at":{"type":"string"},"crops":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncCrop"}},"series":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncSeries"}},"varieties":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncVariety"}},"names":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncName"}},"sellers":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncSeller"}},"listings":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncListing"}}},"required":["catalog_seq","schema_version","generated_at","crops","series","varieties","names","sellers","listings"],"additionalProperties":false},"SyncChanges":{"type":"object","properties":{"upserts":{"type":"object","properties":{"crops":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncCrop"}},"series":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncSeries"}},"varieties":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncVariety"}},"names":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncName"}},"sellers":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncSeller"}},"listings":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncListing"}}},"required":["crops","series","varieties","names","sellers","listings"],"additionalProperties":false},"deletes":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SyncDelete"}},"next_seq":{"type":"integer","minimum":0,"maximum":9007199254740991},"has_more":{"type":"boolean"}},"required":["upserts","deletes","next_seq","has_more"],"additionalProperties":false},"Page":{"type":"object","properties":{"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"}},"required":["next_cursor","has_more"],"additionalProperties":false},"PageMeta":{"type":"object","properties":{"nextCursor":{"type":["string","null"]},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"catalog_seq":{"type":"integer","minimum":0,"maximum":9007199254740991},"generated_at":{"type":"string"}},"required":["catalog_seq","generated_at"],"additionalProperties":false},"ErrorResponse":{"type":"object","properties":{"data":{"type":"null"},"meta":{"type":"null"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found","gone","validation_error","rate_limited","method_not_allowed","unauthorized","internal"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["data","meta","error"],"additionalProperties":false},"Problem":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string"}},"required":["type","title","status","detail","code"],"additionalProperties":false,"description":"application/problem+json (RFC 9457) with a stable `code`."},"__shared":{"$defs":{"SeasonClass":{"type":"string","enum":["cool_season_hardy_annual","warm_season_tender_annual"],"description":"Crop season class (The Gardener's Workshop seed categories). null = not classified."},"SowingMethod":{"type":"string","enum":["direct_sow","transplant"],"description":"How a crop is sown (Floret Library sowing notes): direct_sow and/or transplant (start indoors)."},"Availability":{"type":"string","enum":["in_stock","sold_out","preorder","shop_closed","unknown"]},"SellerLocation":{"type":"object","properties":{"kind":{"type":"string","enum":["physical","warehouse","mailing"]},"street":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"city":{"type":"string","minLength":1},"state":{"type":"string","minLength":1},"zip":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"isPrimary":{"type":"boolean"}},"required":["kind","street","city","state","zip","isPrimary"],"additionalProperties":false},"SyncCrop":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"common_name":{"type":"string"},"latin_name":{"type":["string","null"]},"category":{"type":"string"},"season_class":{"anyOf":[{"$ref":"#/components/schemas/__shared#/$defs/SeasonClass"},{"type":"null"}]},"season_source_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sowing_methods":{"type":"array","items":{"$ref":"#/components/schemas/__shared#/$defs/SowingMethod"}},"sowing_method_source_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"updated_seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","common_name","latin_name","category","season_class","season_source_id","sowing_methods","sowing_method_source_id","updated_seq"],"additionalProperties":false},"SyncSeries":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string"},"crop_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated_seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","name","crop_id","updated_seq"],"additionalProperties":false},"SyncVariety":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string"},"crop_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"series_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"color_swatch":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}]},"color_family":{"type":"string"},"pollination":{"type":"string","enum":["open_pollinated","f1_hybrid","unknown"]},"height_cm":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"days_to_bloom":{"type":"object","properties":{"min":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"max":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["min","max"],"additionalProperties":false},"indexable":{"type":"boolean"},"rating":{"$ref":"#/components/schemas/Rating"},"updated_seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","name","crop_id","series_id","color_swatch","color_family","pollination","height_cm","days_to_bloom","indexable","rating","updated_seq"],"additionalProperties":false},"SyncName":{"type":"object","properties":{"variety_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"kind":{"type":"string"}},"required":["variety_id","name","kind"],"additionalProperties":false},"SyncSeller":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string"},"location":{"type":["string","null"]},"region":{"type":["string","null"]},"country":{"type":"string"},"homepage":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"ships_to":{"type":"array","items":{"type":"string"}},"claim_status":{"type":"string","enum":["unclaimed","claimed"]},"rating":{"$ref":"#/components/schemas/Rating"},"imported_rating":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["Google"]},"place_name":{"type":"string","minLength":1},"place_id":{"type":"string","minLength":1},"rating":{"type":"number","minimum":0,"maximum":5},"review_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"fetched_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["source","place_name","place_id","rating","review_count","fetched_date"],"additionalProperties":false},{"type":"null"}]},"is_small_farm":{"type":"boolean"},"updated_seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","name","location","region","country","homepage","ships_to","claim_status","rating","imported_rating","is_small_farm","updated_seq"],"additionalProperties":false},"SyncListing":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"variety_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seller_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"availability":{"$ref":"#/components/schemas/__shared#/$defs/Availability"},"last_checked_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"first_seen_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}"},{"type":"null"}]},"go_url":{"type":"string","format":"uri"},"product_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"provenance":{"$ref":"#/components/schemas/Provenance"},"updated_seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","variety_id","seller_id","availability","last_checked_at","first_seen_at","go_url","product_url","provenance","updated_seq"],"additionalProperties":false},"SyncDelete":{"type":"object","properties":{"type":{"type":"string","enum":["crop","series","variety","seller","listing"]},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"merged_into":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","id"],"additionalProperties":false}}}}}}