ChartnautDocs

The File object

A File is one source file of a script. You send files to Validate a script, Create a script, Save a script version and as inline source on Create a run, and Get a script returns them with include=source.

Fields

Field

Type

Description

path

string

1 to 200 characters ending in .ts or .js: letters, digits, _, ., / and -, starting with a letter, digit or _. No ..

code

string

The file's source, at most 512 KB

entry

boolean

true on the file the script starts from

When you send files, at most one can have entry: true. With none flagged, the entry is main.ts, or else the first file. An indicator is always one file; Chartnaut returns it as main.ts. A set of files is at most 50 files and 2 MB in all.