@runlot/api 0.1.0-rc.104 → 0.1.0-rc.106
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 +202 -0
- package/dist/schema.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/schema.d.ts
CHANGED
|
@@ -2210,6 +2210,59 @@ export interface paths {
|
|
|
2210
2210
|
patch?: never;
|
|
2211
2211
|
trace?: never;
|
|
2212
2212
|
};
|
|
2213
|
+
"/v1/orgs/{orgSlug}/projects/{projectName}/ai/dev/run": {
|
|
2214
|
+
parameters: {
|
|
2215
|
+
query?: never;
|
|
2216
|
+
header?: never;
|
|
2217
|
+
path: {
|
|
2218
|
+
orgSlug: components["parameters"]["OrgSlug"];
|
|
2219
|
+
projectName: components["parameters"]["ProjectName"];
|
|
2220
|
+
};
|
|
2221
|
+
cookie?: never;
|
|
2222
|
+
};
|
|
2223
|
+
get?: never;
|
|
2224
|
+
put?: never;
|
|
2225
|
+
/**
|
|
2226
|
+
* One `env.ai.run` from `runlot dev` (the development lane)
|
|
2227
|
+
* @description The call a local `runlot dev` makes when your worker calls `env.ai.run`. It is forwarded to the
|
|
2228
|
+
* same lane Studio's local runtime uses: catalog models only, the free plan's caps on every plan
|
|
2229
|
+
* (4,096 output tokens, 30 calls a minute, two at a time), the org's balance checked before and
|
|
2230
|
+
* debited after, recorded in the ledger as `lane = dev`. No streaming — one JSON answer.
|
|
2231
|
+
*
|
|
2232
|
+
* This is not an API for calling models from outside a worker: it needs a member's login and a
|
|
2233
|
+
* project with AI turned on, and it answers `env.ai.run`'s own shape. Requires member or higher.
|
|
2234
|
+
*/
|
|
2235
|
+
post: operations["devAIRun"];
|
|
2236
|
+
delete?: never;
|
|
2237
|
+
options?: never;
|
|
2238
|
+
head?: never;
|
|
2239
|
+
patch?: never;
|
|
2240
|
+
trace?: never;
|
|
2241
|
+
};
|
|
2242
|
+
"/v1/orgs/{orgSlug}/projects/{projectName}/ai/dev/embed": {
|
|
2243
|
+
parameters: {
|
|
2244
|
+
query?: never;
|
|
2245
|
+
header?: never;
|
|
2246
|
+
path: {
|
|
2247
|
+
orgSlug: components["parameters"]["OrgSlug"];
|
|
2248
|
+
projectName: components["parameters"]["ProjectName"];
|
|
2249
|
+
};
|
|
2250
|
+
cookie?: never;
|
|
2251
|
+
};
|
|
2252
|
+
get?: never;
|
|
2253
|
+
put?: never;
|
|
2254
|
+
/**
|
|
2255
|
+
* One `env.ai.embed` from `runlot dev` (the development lane)
|
|
2256
|
+
* @description The embedding half of the development lane above — the same gate, caps and ledger row.
|
|
2257
|
+
* Requires member or higher.
|
|
2258
|
+
*/
|
|
2259
|
+
post: operations["devAIEmbed"];
|
|
2260
|
+
delete?: never;
|
|
2261
|
+
options?: never;
|
|
2262
|
+
head?: never;
|
|
2263
|
+
patch?: never;
|
|
2264
|
+
trace?: never;
|
|
2265
|
+
};
|
|
2213
2266
|
"/v1/orgs/{orgSlug}/projects/{projectName}/email": {
|
|
2214
2267
|
parameters: {
|
|
2215
2268
|
query?: never;
|
|
@@ -10730,6 +10783,155 @@ export interface operations {
|
|
|
10730
10783
|
};
|
|
10731
10784
|
};
|
|
10732
10785
|
};
|
|
10786
|
+
devAIRun: {
|
|
10787
|
+
parameters: {
|
|
10788
|
+
query?: never;
|
|
10789
|
+
header?: never;
|
|
10790
|
+
path: {
|
|
10791
|
+
orgSlug: components["parameters"]["OrgSlug"];
|
|
10792
|
+
projectName: components["parameters"]["ProjectName"];
|
|
10793
|
+
};
|
|
10794
|
+
cookie?: never;
|
|
10795
|
+
};
|
|
10796
|
+
requestBody: {
|
|
10797
|
+
content: {
|
|
10798
|
+
"application/json": {
|
|
10799
|
+
/** @description a catalog model id */
|
|
10800
|
+
model: string;
|
|
10801
|
+
system?: string;
|
|
10802
|
+
messages: {
|
|
10803
|
+
/** @enum {string} */
|
|
10804
|
+
role: "system" | "user" | "assistant";
|
|
10805
|
+
content: string;
|
|
10806
|
+
}[];
|
|
10807
|
+
/** @description capped at 4,096 by the lane */
|
|
10808
|
+
maxTokens?: number;
|
|
10809
|
+
temperature?: number;
|
|
10810
|
+
};
|
|
10811
|
+
};
|
|
10812
|
+
};
|
|
10813
|
+
responses: {
|
|
10814
|
+
/** @description `env.ai.run`'s answer */
|
|
10815
|
+
200: {
|
|
10816
|
+
headers: {
|
|
10817
|
+
[name: string]: unknown;
|
|
10818
|
+
};
|
|
10819
|
+
content: {
|
|
10820
|
+
"application/json": {
|
|
10821
|
+
text: string;
|
|
10822
|
+
model: string;
|
|
10823
|
+
usage: {
|
|
10824
|
+
/** Format: int64 */
|
|
10825
|
+
inputTokens?: number;
|
|
10826
|
+
/** Format: int64 */
|
|
10827
|
+
outputTokens?: number;
|
|
10828
|
+
/** Format: int64 */
|
|
10829
|
+
cachedInputTokens?: number;
|
|
10830
|
+
};
|
|
10831
|
+
};
|
|
10832
|
+
};
|
|
10833
|
+
};
|
|
10834
|
+
400: components["responses"]["BadRequest"];
|
|
10835
|
+
/** @description `no_credit` — the organization has no AI credit */
|
|
10836
|
+
402: {
|
|
10837
|
+
headers: {
|
|
10838
|
+
[name: string]: unknown;
|
|
10839
|
+
};
|
|
10840
|
+
content: {
|
|
10841
|
+
"application/json": components["schemas"]["Error"];
|
|
10842
|
+
};
|
|
10843
|
+
};
|
|
10844
|
+
/** @description `ai_not_granted` — AI is turned off for this project; or not a member */
|
|
10845
|
+
403: {
|
|
10846
|
+
headers: {
|
|
10847
|
+
[name: string]: unknown;
|
|
10848
|
+
};
|
|
10849
|
+
content: {
|
|
10850
|
+
"application/json": components["schemas"]["Error"];
|
|
10851
|
+
};
|
|
10852
|
+
};
|
|
10853
|
+
404: components["responses"]["NotFound"];
|
|
10854
|
+
/** @description `rate_limited` — over the development lane's caps; `details.retryAfterSeconds` */
|
|
10855
|
+
429: {
|
|
10856
|
+
headers: {
|
|
10857
|
+
[name: string]: unknown;
|
|
10858
|
+
};
|
|
10859
|
+
content: {
|
|
10860
|
+
"application/json": components["schemas"]["Error"];
|
|
10861
|
+
};
|
|
10862
|
+
};
|
|
10863
|
+
};
|
|
10864
|
+
};
|
|
10865
|
+
devAIEmbed: {
|
|
10866
|
+
parameters: {
|
|
10867
|
+
query?: never;
|
|
10868
|
+
header?: never;
|
|
10869
|
+
path: {
|
|
10870
|
+
orgSlug: components["parameters"]["OrgSlug"];
|
|
10871
|
+
projectName: components["parameters"]["ProjectName"];
|
|
10872
|
+
};
|
|
10873
|
+
cookie?: never;
|
|
10874
|
+
};
|
|
10875
|
+
requestBody: {
|
|
10876
|
+
content: {
|
|
10877
|
+
"application/json": {
|
|
10878
|
+
/** @description a catalog embedding model id */
|
|
10879
|
+
model: string;
|
|
10880
|
+
input: string[];
|
|
10881
|
+
/** @description one of the model's offered sizes; 0 = the model's default */
|
|
10882
|
+
dimensions?: number;
|
|
10883
|
+
};
|
|
10884
|
+
};
|
|
10885
|
+
};
|
|
10886
|
+
responses: {
|
|
10887
|
+
/** @description `env.ai.embed`'s answer */
|
|
10888
|
+
200: {
|
|
10889
|
+
headers: {
|
|
10890
|
+
[name: string]: unknown;
|
|
10891
|
+
};
|
|
10892
|
+
content: {
|
|
10893
|
+
"application/json": {
|
|
10894
|
+
vectors: number[][];
|
|
10895
|
+
dimensions: number;
|
|
10896
|
+
model: string;
|
|
10897
|
+
usage: {
|
|
10898
|
+
/** Format: int64 */
|
|
10899
|
+
inputTokens?: number;
|
|
10900
|
+
};
|
|
10901
|
+
};
|
|
10902
|
+
};
|
|
10903
|
+
};
|
|
10904
|
+
400: components["responses"]["BadRequest"];
|
|
10905
|
+
/** @description `no_credit` */
|
|
10906
|
+
402: {
|
|
10907
|
+
headers: {
|
|
10908
|
+
[name: string]: unknown;
|
|
10909
|
+
};
|
|
10910
|
+
content: {
|
|
10911
|
+
"application/json": components["schemas"]["Error"];
|
|
10912
|
+
};
|
|
10913
|
+
};
|
|
10914
|
+
/** @description `ai_not_granted`, or not a member */
|
|
10915
|
+
403: {
|
|
10916
|
+
headers: {
|
|
10917
|
+
[name: string]: unknown;
|
|
10918
|
+
};
|
|
10919
|
+
content: {
|
|
10920
|
+
"application/json": components["schemas"]["Error"];
|
|
10921
|
+
};
|
|
10922
|
+
};
|
|
10923
|
+
404: components["responses"]["NotFound"];
|
|
10924
|
+
/** @description `rate_limited` */
|
|
10925
|
+
429: {
|
|
10926
|
+
headers: {
|
|
10927
|
+
[name: string]: unknown;
|
|
10928
|
+
};
|
|
10929
|
+
content: {
|
|
10930
|
+
"application/json": components["schemas"]["Error"];
|
|
10931
|
+
};
|
|
10932
|
+
};
|
|
10933
|
+
};
|
|
10934
|
+
};
|
|
10733
10935
|
getEmail: {
|
|
10734
10936
|
parameters: {
|
|
10735
10937
|
query?: never;
|