definy.get-run-options
- description
- (en) RunService/GetRunOptions: where the signed account (Authorization header, optional) can run programs. administrator is whether it is an administrator (DEFINY_ADMIN_ACCOUNT_IDS), serverRun is whether this server can run programs (docs/run-location.md)
- type
Fn(request: @definy.json, http_request: @http.request) -> @definy.service-io
- expression
fn(request$0, http_request$9000) => @definy.read-rpc-authorization( request: $9000, then: fn(authorization$1) => #read_host_settings<@definy.service-io>({ then: fn(settings$2) => match $1 { #anonymous(_) => @definy.run-options-response(administrator: false, server_run: $2.run_expressions), #invalid(message$3) => @definy.rpc-error(code: "unauthenticated", message: $3), #account(account_id$4) => @definy.is-admin-account( account_id: $4, then: fn(is_admin$5) => @definy.run-options-response(administrator: $5, server_run: $2.run_expressions) ) } }) )
- visibility
- public
definy.get-run-options (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: BovDaSRSY-QIF9ULT9nLwKPX97ys_JW91rWLX9nvjhs content hash: mZDY4MjWJGcgvfw8kB5euqEJ7Vtl9LnLmBUFociSTQM