@runlot/api 0.1.0-rc.174 → 0.1.0-rc.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schema.d.ts CHANGED
@@ -3590,6 +3590,31 @@ export interface paths {
3590
3590
  patch?: never;
3591
3591
  trace?: never;
3592
3592
  };
3593
+ "/v1/orgs/{orgSlug}/projects/{projectName}/ai/dev/judge": {
3594
+ parameters: {
3595
+ query?: never;
3596
+ header?: never;
3597
+ path: {
3598
+ orgSlug: components["parameters"]["OrgSlug"];
3599
+ projectName: components["parameters"]["ProjectName"];
3600
+ };
3601
+ cookie?: never;
3602
+ };
3603
+ get?: never;
3604
+ put?: never;
3605
+ /**
3606
+ * One `env.ai.judge` from `runlot dev` (the development lane)
3607
+ * @description The decision-model half of the development lane above — the same gate, caps and ledger row.
3608
+ * The body is the System One contract: a `state` every question refers to, and `questions`
3609
+ * keyed by name, each `noul`, `choice` or `score`. Requires member or higher.
3610
+ */
3611
+ post: operations["devAIJudge"];
3612
+ delete?: never;
3613
+ options?: never;
3614
+ head?: never;
3615
+ patch?: never;
3616
+ trace?: never;
3617
+ };
3593
3618
  "/v1/orgs/{orgSlug}/projects/{projectName}/email": {
3594
3619
  parameters: {
3595
3620
  query?: never;
@@ -12424,9 +12449,14 @@ export interface components {
12424
12449
  * @description What the model does. `chat` is `env.ai.run` — tokens in, tokens out.
12425
12450
  * `embedding` is `env.ai.embed` — text in, a vector out: `maxOutputTokens` and `outPerMTok` are 0,
12426
12451
  * and `dimensions` says how wide the vector is.
12452
+ * `decision` is `env.ai.judge` — a state and named noul/choice/score questions in, one
12453
+ * calibrated answer per question out: `maxOutputTokens` and `outPerMTok` are 0, and
12454
+ * `maxQuestions` bounds one call.
12427
12455
  * @enum {string}
12428
12456
  */
12429
- kind: "chat" | "embedding";
12457
+ kind: "chat" | "embedding" | "decision";
12458
+ /** @description Decision models only: how many questions one `env.ai.judge(model, state, questions)` call may carry. */
12459
+ maxQuestions?: number;
12430
12460
  /** @description Embedding models only: the width of the vector the model answers by default. */
12431
12461
  dimensions?: number;
12432
12462
  /** @description Embedding models only: every width `env.ai.embed(model, input, { dimensions })` may ask for. Absent when only the default is answered. */
@@ -12508,6 +12538,13 @@ export interface components {
12508
12538
  * nothing is charged.
12509
12539
  */
12510
12540
  byosCreditFallback?: boolean;
12541
+ /**
12542
+ * @description How many members of the project's organization have a Studio desktop lending to
12543
+ * apps right now. Present only on the answer to a PATCH that leaves `byos` on, and
12544
+ * only when Studio could be asked. With `byos` on, `byosCreditFallback` off and 0
12545
+ * here, every lendable call is refused.
12546
+ */
12547
+ byosLenders?: number;
12511
12548
  /** Format: int64 */
12512
12549
  calls24h?: number;
12513
12550
  /** Format: int64 */
@@ -20145,6 +20182,88 @@ export interface operations {
20145
20182
  };
20146
20183
  };
20147
20184
  };
20185
+ devAIJudge: {
20186
+ parameters: {
20187
+ query?: never;
20188
+ header?: never;
20189
+ path: {
20190
+ orgSlug: components["parameters"]["OrgSlug"];
20191
+ projectName: components["parameters"]["ProjectName"];
20192
+ };
20193
+ cookie?: never;
20194
+ };
20195
+ requestBody: {
20196
+ content: {
20197
+ "application/json": {
20198
+ /** @description a catalog decision model id */
20199
+ model: string;
20200
+ /** @description a string, an object or an array — what every question refers to */
20201
+ state: unknown;
20202
+ /** @description name → { type: noul | choice | score, instructions?, criteria? } */
20203
+ questions: {
20204
+ [key: string]: {
20205
+ /** @enum {string} */
20206
+ type: "noul" | "choice" | "score";
20207
+ /** @description a string, an object or an array */
20208
+ instructions?: unknown;
20209
+ /** @description noul: { true, false }; choice: option name → description; score: levels, lowest first */
20210
+ criteria?: unknown;
20211
+ };
20212
+ };
20213
+ };
20214
+ };
20215
+ };
20216
+ responses: {
20217
+ /** @description `env.ai.judge`'s answer */
20218
+ 200: {
20219
+ headers: {
20220
+ [name: string]: unknown;
20221
+ };
20222
+ content: {
20223
+ "application/json": {
20224
+ /** @description keyed by question name: { type, noul } | { type, choice, confidence, probabilities } | { type, score, confidence, legend, probabilities } */
20225
+ answers: {
20226
+ [key: string]: Record<string, never>;
20227
+ };
20228
+ model: string;
20229
+ usage: {
20230
+ /** Format: int64 */
20231
+ inputTokens?: number;
20232
+ };
20233
+ };
20234
+ };
20235
+ };
20236
+ 400: components["responses"]["BadRequest"];
20237
+ /** @description `no_credit` */
20238
+ 402: {
20239
+ headers: {
20240
+ [name: string]: unknown;
20241
+ };
20242
+ content: {
20243
+ "application/json": components["schemas"]["Error"];
20244
+ };
20245
+ };
20246
+ /** @description `ai_not_granted`, or not a member */
20247
+ 403: {
20248
+ headers: {
20249
+ [name: string]: unknown;
20250
+ };
20251
+ content: {
20252
+ "application/json": components["schemas"]["Error"];
20253
+ };
20254
+ };
20255
+ 404: components["responses"]["NotFound"];
20256
+ /** @description `rate_limited` */
20257
+ 429: {
20258
+ headers: {
20259
+ [name: string]: unknown;
20260
+ };
20261
+ content: {
20262
+ "application/json": components["schemas"]["Error"];
20263
+ };
20264
+ };
20265
+ };
20266
+ };
20148
20267
  getEmail: {
20149
20268
  parameters: {
20150
20269
  query?: never;