Create a client
SPHYNX_API_KEY and throws if it is missing. Pass apiKey or baseUrl to override:
credential is { kind: "apiKey", name, start } for a key, where start is its first characters, never the secret.
Evals
Validators, preparation, profiles and mocks are written in an eval file. Import the suite and pass it in:
evals/smoke.eval.ts
suite records the file it was defined in, so start and startAndWait can compile it and ship its validators and mock servers, with everything they close over, to the sandbox.
The client can’t start a batch on the local sandbox. Use sphynx eval --local for that.
Errors and cleanup
DateTime.Utc values. Read epochMillis for a number.