/** * @example * { * bounty_id: "bnty_xxxxxxxxxxxxxx" * } */ export interface CreateBountySubmissionsRequest { /** Affiliate code crediting the referrer, when the worker arrived through one. */ affiliate_code?: string | null; /** The bounty to submit to (`bnty_` tag). */ bounty_id: string; /** The submitted work. Combine `urls`, `file_ids`, and `caption` freely; at least one link or file is required. */ deliverable?: CreateBountySubmissionsRequest.Deliverable | null; /** Optional capture metadata describing where and how the footage was recorded. Persisted on the submission. On a `data_capture` bounty every field except `fov` is required whenever metadata is provided. */ metadata?: CreateBountySubmissionsRequest.Metadata | null; } export declare namespace CreateBountySubmissionsRequest { /** * The submitted work. Combine `urls`, `file_ids`, and `caption` freely; at least one link or file is required. */ interface Deliverable { /** Written context shown to reviewers alongside the work. */ caption?: (string | null) | undefined; /** IDs of uploaded files attached as work, up to 10, each prefixed `file_`. Combinable with `urls` and `caption`. */ file_ids?: string[] | undefined; /** Legacy shape selector; no longer selects anything. When present it must name an inline shape (`content_url` or `media`). */ type?: (Deliverable.Type | null) | undefined; /** Links to the posted work, up to 10. Combinable with `file_ids` and `caption`. */ urls?: string[] | undefined; } namespace Deliverable { /** Legacy shape selector; no longer selects anything. When present it must name an inline shape (`content_url` or `media`). */ const Type: { readonly ContentUrl: "content_url"; readonly Media: "media"; }; type Type = (typeof Type)[keyof typeof Type]; } /** * Optional capture metadata describing where and how the footage was recorded. Persisted on the submission. On a `data_capture` bounty every field except `fov` is required whenever metadata is provided. */ interface Metadata { /** City the footage was recorded in. */ city?: (string | null) | undefined; /** Country the footage was recorded in. */ country?: (string | null) | undefined; /** Device the footage was recorded on. */ device?: (string | null) | undefined; /** Horizontal field of view in degrees. */ fov?: (number | null) | undefined; /** Identifier of the person who recorded the footage. */ operator?: (string | null) | undefined; /** Site or venue the footage was recorded at. */ site?: (string | null) | undefined; /** Station or position within the site. */ station?: (string | null) | undefined; } }