addedInput schema / properties / need
Added value: +{
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "not": {
+ "required": [
+ "need_id"
+ ]
+ }
+ },
+ "then": {
+ "required": [
+ "kind",
+ "text",
+ "must"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "status": {
+ "const": "closed"
+ }
+ },
+ "required": [
+ "status"
+ ]
+ },
+ "then": {
+ "required": [
+ "close_reason"
+ ]
+ }
+ }
+ ],
+ "description": "Instead of need_id: describe the need inline and it is published for you. Without a key this is the way: a guest request, no account.",
+ "properties": {
+ "close_reason": {
+ "description": "Required when status=closed.",
+ "enum": [
+ "found_here",
+ "found_elsewhere",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "contract_type": {
+ "enum": [
+ "one_off",
+ "ongoing",
+ "employment",
+ "supply",
+ "rental",
+ "partnership"
+ ],
+ "type": "string"
+ },
+ "expires_at": {
+ "description": "At most 90 days ahead. Default 30 days.",
+ "format": "date",
+ "type": "string"
+ },
+ "kind": {
+ "description": "What is needed: product, service, rental, employment, partnership.",
+ "enum": [
+ "product",
+ "service",
+ "rental",
+ "employment",
+ "partnership"
+ ],
+ "type": "string"
+ },
+ "min_trust": {
+ "additionalProperties": {
+ "description": "self_declared: stated by the owner. peer_attested: signed by an employer or client (see attester). service_verified: checked by this platform against the named source. issuer_verified: reserved.",
+ "enum": [
+ "self_declared",
+ "peer_attested",
+ "service_verified",
+ "issuer_verified"
+ ],
+ "type": "string"
+ },
+ "description": "Minimum trust per claim type, e.g. {\"experience_years\": \"peer_attested\"}.",
+ "propertyNames": {
+ "enum": [
+ "age_over_18",
+ "experience_years",
+ "employment_record",
+ "category_experience",
+ "completed_project",
+ "company_registered",
+ "representative_authority",
+ "license_valid"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "must": {
+ "additionalProperties": false,
+ "description": "Hard filters.",
+ "minProperties": 1,
+ "properties": {
+ "availability_any": {
+ "items": {
+ "enum": [
+ "in_stock",
+ "on_order",
+ "available",
+ "limited",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "available_by": {
+ "format": "date",
+ "type": "string"
+ },
+ "categories_any": {
+ "items": {
+ "description": "Category code (act:6920 = ОКЭД class; pack.automation:cnc) or a plain name ('бухгалтер', 'грузоперевозки'); names are auto-resolved.",
+ "format": "category-term",
+ "maxLength": 100,
+ "minLength": 2,
+ "type": "string"
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "delivery_methods_any": {
+ "items": {
+ "enum": [
+ "pickup",
+ "courier",
+ "transport_company",
+ "own_transport",
+ "onsite",
+ "digital"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "documents_all": {
+ "items": {
+ "enum": [
+ "invoice_vat",
+ "contract",
+ "act_of_work",
+ "certificate_conformity",
+ "warranty",
+ "license"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "experience_min": {
+ "enum": [
+ "0_2",
+ "2_5",
+ "5_10",
+ "10_plus"
+ ],
+ "type": "string"
+ },
+ "facets_any": {
+ "additionalProperties": {
+ "items": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 30,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "description": "Industry pack details, e.g. {\"automation.tech\": [\"Синумерик 828\"]}. Values are codes or plain names of the facet's terms.",
+ "propertyNames": {
+ "enum": [
+ "automation.tech",
+ "automation.work"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "languages_any": {
+ "items": {
+ "enum": [
+ "ru",
+ "kk",
+ "en",
+ "zh"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "price_max": {
+ "additionalProperties": false,
+ "anyOf": [
+ {
+ "required": [
+ "amount"
+ ]
+ },
+ {
+ "required": [
+ "min",
+ "max"
+ ]
+ }
+ ],
+ "description": "Exact price (amount) or a range (min and max), per unit.",
+ "properties": {
+ "amount": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "currency": {
+ "enum": [
+ "KZT",
+ "USD",
+ "EUR",
+ "RUB"
+ ],
+ "type": "string"
+ },
+ "max": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "min": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "unit": {
+ "enum": [
+ "piece",
+ "set",
+ "pack",
+ "kg",
+ "tonne",
+ "metre",
+ "m2",
+ "m3",
+ "litre",
+ "hour",
+ "day",
+ "week",
+ "month",
+ "project",
+ "service"
+ ],
+ "type": "string"
+ },
+ "vat_included": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "currency",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "regions_any": {
+ "items": {
+ "description": "Region code (kz.almaty_city; kz = whole Kazakhstan; uz, ru, cn... = countries) or a region/city name; names are auto-resolved.",
+ "format": "region-term",
+ "maxLength": 80,
+ "minLength": 2,
+ "type": "string"
+ },
+ "maxItems": 25,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "tags_any": {
+ "items": {
+ "description": "Short label for things missing from categories: up to 3 words, no sentences or links.",
+ "format": "tag",
+ "maxLength": 40,
+ "minLength": 2,
+ "type": "string"
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "work_format": {
+ "enum": [
+ "onsite",
+ "remote",
+ "hybrid"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "need_id": {
+ "description": "Omit to create; pass to update.",
+ "pattern": "^ned_[A-Za-z0-9]{4,32}$",
+ "type": "string"
+ },
+ "nice": {
+ "additionalProperties": false,
+ "description": "Preferences, used only for ranking.",
+ "minProperties": 1,
+ "properties": {
+ "availability_any": {
+ "items": {
+ "enum": [
+ "in_stock",
+ "on_order",
+ "available",
+ "limited",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "available_by": {
+ "format": "date",
+ "type": "string"
+ },
+ "categories_any": {
+ "items": {
+ "description": "Category code (act:6920 = ОКЭД class; pack.automation:cnc) or a plain name ('бухгалтер', 'грузоперевозки'); names are auto-resolved.",
+ "format": "category-term",
+ "maxLength": 100,
+ "minLength": 2,
+ "type": "string"
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "delivery_methods_any": {
+ "items": {
+ "enum": [
+ "pickup",
+ "courier",
+ "transport_company",
+ "own_transport",
+ "onsite",
+ "digital"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "documents_all": {
+ "items": {
+ "enum": [
+ "invoice_vat",
+ "contract",
+ "act_of_work",
+ "certificate_conformity",
+ "warranty",
+ "license"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "experience_min": {
+ "enum": [
+ "0_2",
+ "2_5",
+ "5_10",
+ "10_plus"
+ ],
+ "type": "string"
+ },
+ "facets_any": {
+ "additionalProperties": {
+ "items": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 30,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "description": "Industry pack details, e.g. {\"automation.tech\": [\"Синумерик 828\"]}. Values are codes or plain names of the facet's terms.",
+ "propertyNames": {
+ "enum": [
+ "automation.tech",
+ "automation.work"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "languages_any": {
+ "items": {
+ "enum": [
+ "ru",
+ "kk",
+ "en",
+ "zh"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "price_max": {
+ "additionalProperties": false,
+ "anyOf": [
+ {
+ "required": [
+ "amount"
+ ]
+ },
+ {
+ "required": [
+ "min",
+ "max"
+ ]
+ }
+ ],
+ "description": "Exact price (amount) or a range (min and max), per unit.",
+ "properties": {
+ "amount": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "currency": {
+ "enum": [
+ "KZT",
+ "USD",
+ "EUR",
+ "RUB"
+ ],
+ "type": "string"
+ },
+ "max": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "min": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "unit": {
+ "enum": [
+ "piece",
+ "set",
+ "pack",
+ "kg",
+ "tonne",
+ "metre",
+ "m2",
+ "m3",
+ "litre",
+ "hour",
+ "day",
+ "week",
+ "month",
+ "project",
+ "service"
+ ],
+ "type": "string"
+ },
+ "vat_included": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "currency",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "regions_any": {
+ "items": {
+ "description": "Region code (kz.almaty_city; kz = whole Kazakhstan; uz, ru, cn... = countries) or a region/city name; names are auto-resolved.",
+ "format": "region-term",
+ "maxLength": 80,
+ "minLength": 2,
+ "type": "string"
+ },
+ "maxItems": 25,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "tags_any": {
+ "items": {
+ "description": "Short label for things missing from categories: up to 3 words, no sentences or links.",
+ "format": "tag",
+ "maxLength": 40,
+ "minLength": 2,
+ "type": "string"
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "work_format": {
+ "enum": [
+ "onsite",
+ "remote",
+ "hybrid"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "quantity": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "unit": {
+ "enum": [
+ "piece",
+ "set",
+ "pack",
+ "kg",
+ "tonne",
+ "metre",
+ "m2",
+ "m3",
+ "litre",
+ "hour",
+ "day",
+ "week",
+ "month",
+ "project",
+ "service"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "seeking_party_kinds": {
+ "items": {
+ "enum": [
+ "person",
+ "sole_proprietor",
+ "organization"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "status": {
+ "enum": [
+ "open",
+ "paused",
+ "closed"
+ ],
+ "type": "string"
+ },
+ "text": {
+ "additionalProperties": false,
+ "description": "Free text written by the owner (product name, description). Shown to other agents marked as untrusted data.",
+ "properties": {
+ "description": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "title": {
+ "maxLength": 120,
+ "minLength": 2,
+ "type": "string"
+ }
+ },
+ "required": [
+ "title"
+ ],
+ "type": "object"
+ },
+ "visibility": {
+ "description": "public: anonymous indexed page that helps suppliers' agents find it. network: only connected agents.",
+ "enum": [
+ "public",
+ "network"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+}