/* tslint:disable */ /* eslint-disable */ /** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * @type ApiKeyScopeBoxes * * @export */ export type ApiKeyScopeBoxes = Array | string; export function ApiKeyScopeBoxesFromJSON(json: any): ApiKeyScopeBoxes { return ApiKeyScopeBoxesFromJSONTyped(json, false); } export function ApiKeyScopeBoxesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyScopeBoxes { if (json == null) { return json; } if (typeof json === 'string' && (json === '*')) { return json; } if (Array.isArray(json)) { if (json.every(item => typeof item === 'string')) { return json; } } return {} as any; } export function ApiKeyScopeBoxesToJSON(json: any): any { return ApiKeyScopeBoxesToJSONTyped(json, false); } export function ApiKeyScopeBoxesToJSONTyped(value?: ApiKeyScopeBoxes | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } if (typeof value === 'string' && (value === '*')) { return value; } if (Array.isArray(value)) { if (value.every(item => typeof item === 'string')) { return value; } } return {}; }