@neta-art/cohub 11.1.0 → 11.3.0
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/board/editor/context.d.ts +1 -0
- package/dist/board/editor/context.js +1 -0
- package/dist/board/editor/editor.d.ts +1 -0
- package/dist/board/editor/editor.js +7 -0
- package/dist/board/editor/interaction.d.ts +4 -0
- package/dist/board/editor/interaction.js +16 -7
- package/dist/board/editor/selection-transform.d.ts +1 -1
- package/dist/board/editor/selection-transform.js +13 -2
- package/dist/board/export/index.d.ts +2 -0
- package/dist/board/export/index.js +1 -0
- package/dist/board/export/scene.d.ts +2 -0
- package/dist/board/export/scene.js +4 -0
- package/dist/board/model/file-preview.d.ts +0 -1
- package/dist/board/model/file-preview.js +10 -1
- package/dist/board/model/index.d.ts +2 -1
- package/dist/board/model/index.js +2 -1
- package/dist/board/model/script-api.d.ts +69 -0
- package/dist/board/model/script-api.js +77 -0
- package/dist/board/render/audio-waveform.d.ts +1 -1
- package/dist/board/render/audio-waveform.js +8 -5
- package/dist/board/render/card-tag.d.ts +24 -0
- package/dist/board/render/card-tag.js +205 -0
- package/dist/board/render/index.d.ts +7 -4
- package/dist/board/render/index.js +7 -4
- package/dist/board/render/media-interaction.d.ts +2 -1
- package/dist/board/render/media-interaction.js +14 -6
- package/dist/board/render/palette.js +2 -2
- package/dist/board/render/renderers/arrow-card-renderer.js +20 -16
- package/dist/board/render/renderers/audio-card-renderer.d.ts +8 -1
- package/dist/board/render/renderers/audio-card-renderer.js +64 -60
- package/dist/board/render/renderers/base-card-renderer.d.ts +1 -26
- package/dist/board/render/renderers/base-card-renderer.js +6 -92
- package/dist/board/render/renderers/board-renderer-registry.d.ts +8 -0
- package/dist/board/render/renderers/board-renderer-registry.js +3 -3
- package/dist/board/render/renderers/custom-card-renderer.js +4 -7
- package/dist/board/render/renderers/effect-card-renderer.js +0 -5
- package/dist/board/render/renderers/file-card-renderer.d.ts +1 -11
- package/dist/board/render/renderers/file-card-renderer.js +43 -105
- package/dist/board/render/renderers/frame-card-renderer.js +14 -15
- package/dist/board/render/renderers/image-card-renderer.js +62 -67
- package/dist/board/render/renderers/media-key.d.ts +6 -0
- package/dist/board/render/renderers/media-key.js +39 -0
- package/dist/board/render/renderers/shape-card-renderer.js +6 -12
- package/dist/board/render/renderers/task-card-renderer.d.ts +1 -9
- package/dist/board/render/renderers/task-card-renderer.js +82 -56
- package/dist/board/render/renderers/unknown-card-renderer.js +17 -16
- package/dist/board/render/renderers/video-card-renderer.js +73 -80
- package/dist/board/render/stroke.d.ts +1 -1
- package/dist/board/render/stroke.js +5 -4
- package/dist/board/render/style.d.ts +29 -0
- package/dist/board/render/style.js +54 -0
- package/dist/board/render/surface.d.ts +34 -0
- package/dist/board/render/surface.js +132 -0
- package/dist/board/render/text-fit.d.ts +8 -0
- package/dist/board/render/text-fit.js +60 -0
- package/dist/board/render/text-resolution.d.ts +2 -1
- package/dist/board/render/text-resolution.js +4 -1
- package/dist/board/stage/index.d.ts +3 -2
- package/dist/board/stage/index.js +2 -1
- package/dist/board/stage/overlay.d.ts +41 -0
- package/dist/board/stage/overlay.js +182 -0
- package/dist/board/stage/scene.d.ts +2 -43
- package/dist/board/stage/scene.js +23 -131
- package/dist/board/stage/stage.d.ts +2 -0
- package/dist/board/stage/stage.js +99 -32
- package/dist/chunks/app-realtime.js +1697 -0
- package/dist/chunks/environment.d.ts +997 -3
- package/dist/chunks/http.d.ts +393 -3
- package/dist/chunks/http.js +40 -1
- package/dist/chunks/websocket.d.ts +4 -0
- package/dist/chunks/websocket.js +11 -2
- package/dist/http.d.ts +2 -2
- package/dist/index.d.ts +4 -323
- package/dist/index.js +58 -1660
- package/dist/protocol/dist/board-model.js +51 -51
- package/dist/protocol/dist/board-schema.d.ts +1 -2
- package/dist/protocol/dist/board-schema.js +7 -22
- package/package.json +2 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./host-bridge.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import "zod/v4";
|
|
3
4
|
//#region ../protocol/dist/provenance.d.ts
|
|
4
5
|
/** Request provenance via X-Cohub-Source-* headers. Never used for authorization. */
|
|
5
6
|
declare const COHUB_SOURCE_HEADER: {
|
|
@@ -4002,10 +4003,993 @@ type RealtimeServerEvent = SystemReadyEvent | SystemAuthOkEvent | SystemRequestE
|
|
|
4002
4003
|
//#region ../protocol/dist/search/text-match.d.ts
|
|
4003
4004
|
type SearchTextRange = [start: number, end: number];
|
|
4004
4005
|
//#endregion
|
|
4005
|
-
//#region ../../node_modules/.pnpm/@
|
|
4006
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/types/unrecognized.d.ts
|
|
4007
|
+
declare const __brand: unique symbol;
|
|
4008
|
+
type Unrecognized<T> = T & {
|
|
4009
|
+
[__brand]: "unrecognized";
|
|
4010
|
+
};
|
|
4011
|
+
//#endregion
|
|
4012
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/types/enums.d.ts
|
|
4013
|
+
type OpenEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T] | Unrecognized<T[keyof T] extends number ? number : string>;
|
|
4014
|
+
//#endregion
|
|
4015
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/providername.d.ts
|
|
4016
|
+
declare const ProviderName: {
|
|
4017
|
+
readonly Modal: "Modal";
|
|
4018
|
+
readonly AkashML: "AkashML";
|
|
4019
|
+
readonly Ai21: "AI21";
|
|
4020
|
+
readonly AionLabs: "AionLabs";
|
|
4021
|
+
readonly Alibaba: "Alibaba";
|
|
4022
|
+
readonly Ambient: "Ambient";
|
|
4023
|
+
readonly Baidu: "Baidu";
|
|
4024
|
+
readonly AmazonBedrock: "Amazon Bedrock";
|
|
4025
|
+
readonly AmazonNova: "Amazon Nova";
|
|
4026
|
+
readonly Anthropic: "Anthropic";
|
|
4027
|
+
readonly ArceeAI: "Arcee AI";
|
|
4028
|
+
readonly AssemblyAI: "AssemblyAI";
|
|
4029
|
+
readonly AtlasCloud: "AtlasCloud";
|
|
4030
|
+
readonly Avian: "Avian";
|
|
4031
|
+
readonly Azure: "Azure";
|
|
4032
|
+
readonly BaseTen: "BaseTen";
|
|
4033
|
+
readonly BytePlus: "BytePlus";
|
|
4034
|
+
readonly BlackForestLabs: "Black Forest Labs";
|
|
4035
|
+
readonly Cerebras: "Cerebras";
|
|
4036
|
+
readonly Chutes: "Chutes";
|
|
4037
|
+
readonly Cirrascale: "Cirrascale";
|
|
4038
|
+
readonly ClaudePlatformOnAWS: "Claude Platform on AWS";
|
|
4039
|
+
readonly Clarifai: "Clarifai";
|
|
4040
|
+
readonly Cloudflare: "Cloudflare";
|
|
4041
|
+
readonly Cohere: "Cohere";
|
|
4042
|
+
readonly CoreWeave: "CoreWeave";
|
|
4043
|
+
readonly Cosine: "Cosine";
|
|
4044
|
+
readonly Crucible: "Crucible";
|
|
4045
|
+
readonly Crusoe: "Crusoe";
|
|
4046
|
+
readonly Darkbloom: "Darkbloom";
|
|
4047
|
+
readonly Databricks: "Databricks";
|
|
4048
|
+
readonly Decart: "Decart";
|
|
4049
|
+
readonly Deepgram: "Deepgram";
|
|
4050
|
+
readonly DeepInfra: "DeepInfra";
|
|
4051
|
+
readonly DeepSeek: "DeepSeek";
|
|
4052
|
+
readonly DekaLLM: "DekaLLM";
|
|
4053
|
+
readonly DigitalOcean: "DigitalOcean";
|
|
4054
|
+
readonly ElevenLabs: "ElevenLabs";
|
|
4055
|
+
readonly Featherless: "Featherless";
|
|
4056
|
+
readonly Fireworks: "Fireworks";
|
|
4057
|
+
readonly FishAudio: "Fish Audio";
|
|
4058
|
+
readonly Friendli: "Friendli";
|
|
4059
|
+
readonly GMICloud: "GMICloud";
|
|
4060
|
+
readonly Google: "Google";
|
|
4061
|
+
readonly GoogleAIStudio: "Google AI Studio";
|
|
4062
|
+
readonly Groq: "Groq";
|
|
4063
|
+
readonly HeyGen: "HeyGen";
|
|
4064
|
+
readonly Inception: "Inception";
|
|
4065
|
+
readonly Inceptron: "Inceptron";
|
|
4066
|
+
readonly InferenceNet: "InferenceNet";
|
|
4067
|
+
readonly Ionstream: "Ionstream";
|
|
4068
|
+
readonly Infermatic: "Infermatic";
|
|
4069
|
+
readonly IoNet: "Io Net";
|
|
4070
|
+
readonly InferactVLLM: "Inferact vLLM";
|
|
4071
|
+
readonly Inflection: "Inflection";
|
|
4072
|
+
readonly Liquid: "Liquid";
|
|
4073
|
+
readonly Makora: "Makora";
|
|
4074
|
+
readonly Mara: "Mara";
|
|
4075
|
+
readonly Mancer2: "Mancer 2";
|
|
4076
|
+
readonly Meta: "Meta";
|
|
4077
|
+
readonly Minimax: "Minimax";
|
|
4078
|
+
readonly ModelRun: "ModelRun";
|
|
4079
|
+
readonly Mistral: "Mistral";
|
|
4080
|
+
readonly Modular: "Modular";
|
|
4081
|
+
readonly MoonshotAI: "Moonshot AI";
|
|
4082
|
+
readonly Morph: "Morph";
|
|
4083
|
+
readonly VoyageAIByMongoDB: "VoyageAI by MongoDB";
|
|
4084
|
+
readonly TypeSafe: "TypeSafe";
|
|
4085
|
+
readonly NearAI: "Near AI";
|
|
4086
|
+
readonly Nebius: "Nebius";
|
|
4087
|
+
readonly NexAGI: "Nex AGI";
|
|
4088
|
+
readonly NextBit: "NextBit";
|
|
4089
|
+
readonly Novita: "Novita";
|
|
4090
|
+
readonly Nvidia: "Nvidia";
|
|
4091
|
+
readonly Ollama: "Ollama";
|
|
4092
|
+
readonly OpenAI: "OpenAI";
|
|
4093
|
+
readonly OpenInference: "OpenInference";
|
|
4094
|
+
readonly Parasail: "Parasail";
|
|
4095
|
+
readonly Poolside: "Poolside";
|
|
4096
|
+
readonly PrimeIntellect: "PrimeIntellect";
|
|
4097
|
+
readonly Perceptron: "Perceptron";
|
|
4098
|
+
readonly Perplexity: "Perplexity";
|
|
4099
|
+
readonly Phala: "Phala";
|
|
4100
|
+
readonly Recraft: "Recraft";
|
|
4101
|
+
readonly Reka: "Reka";
|
|
4102
|
+
readonly Relace: "Relace";
|
|
4103
|
+
readonly Respan: "Respan";
|
|
4104
|
+
readonly SailResearch: "Sail Research";
|
|
4105
|
+
readonly SakanaAI: "Sakana AI";
|
|
4106
|
+
readonly SambaNova: "SambaNova";
|
|
4107
|
+
readonly ScaleDown: "ScaleDown";
|
|
4108
|
+
readonly Seed: "Seed";
|
|
4109
|
+
readonly SiliconFlow: "SiliconFlow";
|
|
4110
|
+
readonly Sourceful: "Sourceful";
|
|
4111
|
+
readonly StepFun: "StepFun";
|
|
4112
|
+
readonly Stealth: "Stealth";
|
|
4113
|
+
readonly StreamLake: "StreamLake";
|
|
4114
|
+
readonly Switchpoint: "Switchpoint";
|
|
4115
|
+
readonly Tencent: "Tencent";
|
|
4116
|
+
readonly Tenstorrent: "Tenstorrent";
|
|
4117
|
+
readonly ThinkingMachines: "Thinking Machines";
|
|
4118
|
+
readonly Together: "Together";
|
|
4119
|
+
readonly Unbiased: "Unbiased";
|
|
4120
|
+
readonly Upstage: "Upstage";
|
|
4121
|
+
readonly Venice: "Venice";
|
|
4122
|
+
readonly Wafer: "Wafer";
|
|
4123
|
+
readonly WandB: "WandB";
|
|
4124
|
+
readonly Quiver: "Quiver";
|
|
4125
|
+
readonly Krea: "Krea";
|
|
4126
|
+
readonly Runway: "Runway";
|
|
4127
|
+
readonly Xiaomi: "Xiaomi";
|
|
4128
|
+
readonly XAI: "xAI";
|
|
4129
|
+
readonly ZAi: "Z.AI";
|
|
4130
|
+
readonly FakeProvider: "FakeProvider";
|
|
4131
|
+
};
|
|
4132
|
+
type ProviderName = OpenEnum<typeof ProviderName>;
|
|
4133
|
+
//#endregion
|
|
4134
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/percentilelatencycutoffs.d.ts
|
|
4135
|
+
/**
|
|
4136
|
+
* Percentile-based latency cutoffs. All specified cutoffs must be met for an endpoint to be preferred.
|
|
4137
|
+
*/
|
|
4138
|
+
type PercentileLatencyCutoffs = {
|
|
4139
|
+
/**
|
|
4140
|
+
* Maximum p50 latency (seconds)
|
|
4141
|
+
*/
|
|
4142
|
+
p50?: number | null | undefined;
|
|
4143
|
+
/**
|
|
4144
|
+
* Maximum p75 latency (seconds)
|
|
4145
|
+
*/
|
|
4146
|
+
p75?: number | null | undefined;
|
|
4147
|
+
/**
|
|
4148
|
+
* Maximum p90 latency (seconds)
|
|
4149
|
+
*/
|
|
4150
|
+
p90?: number | null | undefined;
|
|
4151
|
+
/**
|
|
4152
|
+
* Maximum p99 latency (seconds)
|
|
4153
|
+
*/
|
|
4154
|
+
p99?: number | null | undefined;
|
|
4155
|
+
};
|
|
4156
|
+
//#endregion
|
|
4157
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/preferredmaxlatency.d.ts
|
|
4158
|
+
/**
|
|
4159
|
+
* Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
4160
|
+
*/
|
|
4161
|
+
type PreferredMaxLatency = number | PercentileLatencyCutoffs;
|
|
4162
|
+
//#endregion
|
|
4163
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/percentilethroughputcutoffs.d.ts
|
|
4164
|
+
/**
|
|
4165
|
+
* Percentile-based throughput cutoffs. All specified cutoffs must be met for an endpoint to be preferred.
|
|
4166
|
+
*/
|
|
4167
|
+
type PercentileThroughputCutoffs = {
|
|
4168
|
+
/**
|
|
4169
|
+
* Minimum p50 throughput (tokens/sec)
|
|
4170
|
+
*/
|
|
4171
|
+
p50?: number | null | undefined;
|
|
4172
|
+
/**
|
|
4173
|
+
* Minimum p75 throughput (tokens/sec)
|
|
4174
|
+
*/
|
|
4175
|
+
p75?: number | null | undefined;
|
|
4176
|
+
/**
|
|
4177
|
+
* Minimum p90 throughput (tokens/sec)
|
|
4178
|
+
*/
|
|
4179
|
+
p90?: number | null | undefined;
|
|
4180
|
+
/**
|
|
4181
|
+
* Minimum p99 throughput (tokens/sec)
|
|
4182
|
+
*/
|
|
4183
|
+
p99?: number | null | undefined;
|
|
4184
|
+
};
|
|
4185
|
+
//#endregion
|
|
4186
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/preferredminthroughput.d.ts
|
|
4187
|
+
/**
|
|
4188
|
+
* Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
4189
|
+
*/
|
|
4190
|
+
type PreferredMinThroughput = number | PercentileThroughputCutoffs;
|
|
4191
|
+
//#endregion
|
|
4192
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/provideroptions.d.ts
|
|
4193
|
+
/**
|
|
4194
|
+
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
4195
|
+
*/
|
|
4196
|
+
type ProviderOptions = {
|
|
4197
|
+
oneai?: {
|
|
4198
|
+
[k: string]: any;
|
|
4199
|
+
} | undefined;
|
|
4200
|
+
ai21?: {
|
|
4201
|
+
[k: string]: any;
|
|
4202
|
+
} | undefined;
|
|
4203
|
+
aionLabs?: {
|
|
4204
|
+
[k: string]: any;
|
|
4205
|
+
} | undefined;
|
|
4206
|
+
akashml?: {
|
|
4207
|
+
[k: string]: any;
|
|
4208
|
+
} | undefined;
|
|
4209
|
+
alibaba?: {
|
|
4210
|
+
[k: string]: any;
|
|
4211
|
+
} | undefined;
|
|
4212
|
+
amazonBedrock?: {
|
|
4213
|
+
[k: string]: any;
|
|
4214
|
+
} | undefined;
|
|
4215
|
+
amazonBedrockClaudeOnAws?: {
|
|
4216
|
+
[k: string]: any;
|
|
4217
|
+
} | undefined;
|
|
4218
|
+
amazonNova?: {
|
|
4219
|
+
[k: string]: any;
|
|
4220
|
+
} | undefined;
|
|
4221
|
+
ambient?: {
|
|
4222
|
+
[k: string]: any;
|
|
4223
|
+
} | undefined;
|
|
4224
|
+
anthropic?: {
|
|
4225
|
+
[k: string]: any;
|
|
4226
|
+
} | undefined;
|
|
4227
|
+
anthropic2?: {
|
|
4228
|
+
[k: string]: any;
|
|
4229
|
+
} | undefined;
|
|
4230
|
+
anyscale?: {
|
|
4231
|
+
[k: string]: any;
|
|
4232
|
+
} | undefined;
|
|
4233
|
+
arceeAi?: {
|
|
4234
|
+
[k: string]: any;
|
|
4235
|
+
} | undefined;
|
|
4236
|
+
assemblyai?: {
|
|
4237
|
+
[k: string]: any;
|
|
4238
|
+
} | undefined;
|
|
4239
|
+
atlasCloud?: {
|
|
4240
|
+
[k: string]: any;
|
|
4241
|
+
} | undefined;
|
|
4242
|
+
atoma?: {
|
|
4243
|
+
[k: string]: any;
|
|
4244
|
+
} | undefined;
|
|
4245
|
+
avian?: {
|
|
4246
|
+
[k: string]: any;
|
|
4247
|
+
} | undefined;
|
|
4248
|
+
azure?: {
|
|
4249
|
+
[k: string]: any;
|
|
4250
|
+
} | undefined;
|
|
4251
|
+
baidu?: {
|
|
4252
|
+
[k: string]: any;
|
|
4253
|
+
} | undefined;
|
|
4254
|
+
baseten?: {
|
|
4255
|
+
[k: string]: any;
|
|
4256
|
+
} | undefined;
|
|
4257
|
+
blackForestLabs?: {
|
|
4258
|
+
[k: string]: any;
|
|
4259
|
+
} | undefined;
|
|
4260
|
+
byteplus?: {
|
|
4261
|
+
[k: string]: any;
|
|
4262
|
+
} | undefined;
|
|
4263
|
+
centml?: {
|
|
4264
|
+
[k: string]: any;
|
|
4265
|
+
} | undefined;
|
|
4266
|
+
cerebras?: {
|
|
4267
|
+
[k: string]: any;
|
|
4268
|
+
} | undefined;
|
|
4269
|
+
chutes?: {
|
|
4270
|
+
[k: string]: any;
|
|
4271
|
+
} | undefined;
|
|
4272
|
+
cirrascale?: {
|
|
4273
|
+
[k: string]: any;
|
|
4274
|
+
} | undefined;
|
|
4275
|
+
clarifai?: {
|
|
4276
|
+
[k: string]: any;
|
|
4277
|
+
} | undefined;
|
|
4278
|
+
claudeOnAws?: {
|
|
4279
|
+
[k: string]: any;
|
|
4280
|
+
} | undefined;
|
|
4281
|
+
cloudflare?: {
|
|
4282
|
+
[k: string]: any;
|
|
4283
|
+
} | undefined;
|
|
4284
|
+
cohere?: {
|
|
4285
|
+
[k: string]: any;
|
|
4286
|
+
} | undefined;
|
|
4287
|
+
coreweave?: {
|
|
4288
|
+
[k: string]: any;
|
|
4289
|
+
} | undefined;
|
|
4290
|
+
cosine?: {
|
|
4291
|
+
[k: string]: any;
|
|
4292
|
+
} | undefined;
|
|
4293
|
+
crofai?: {
|
|
4294
|
+
[k: string]: any;
|
|
4295
|
+
} | undefined;
|
|
4296
|
+
crucible?: {
|
|
4297
|
+
[k: string]: any;
|
|
4298
|
+
} | undefined;
|
|
4299
|
+
crusoe?: {
|
|
4300
|
+
[k: string]: any;
|
|
4301
|
+
} | undefined;
|
|
4302
|
+
darkbloom?: {
|
|
4303
|
+
[k: string]: any;
|
|
4304
|
+
} | undefined;
|
|
4305
|
+
databricks?: {
|
|
4306
|
+
[k: string]: any;
|
|
4307
|
+
} | undefined;
|
|
4308
|
+
decart?: {
|
|
4309
|
+
[k: string]: any;
|
|
4310
|
+
} | undefined;
|
|
4311
|
+
deepgram?: {
|
|
4312
|
+
[k: string]: any;
|
|
4313
|
+
} | undefined;
|
|
4314
|
+
deepinfra?: {
|
|
4315
|
+
[k: string]: any;
|
|
4316
|
+
} | undefined;
|
|
4317
|
+
deepseek?: {
|
|
4318
|
+
[k: string]: any;
|
|
4319
|
+
} | undefined;
|
|
4320
|
+
dekallm?: {
|
|
4321
|
+
[k: string]: any;
|
|
4322
|
+
} | undefined;
|
|
4323
|
+
digitalocean?: {
|
|
4324
|
+
[k: string]: any;
|
|
4325
|
+
} | undefined;
|
|
4326
|
+
elevenlabs?: {
|
|
4327
|
+
[k: string]: any;
|
|
4328
|
+
} | undefined;
|
|
4329
|
+
enfer?: {
|
|
4330
|
+
[k: string]: any;
|
|
4331
|
+
} | undefined;
|
|
4332
|
+
fakeProvider?: {
|
|
4333
|
+
[k: string]: any;
|
|
4334
|
+
} | undefined;
|
|
4335
|
+
featherless?: {
|
|
4336
|
+
[k: string]: any;
|
|
4337
|
+
} | undefined;
|
|
4338
|
+
fireworks?: {
|
|
4339
|
+
[k: string]: any;
|
|
4340
|
+
} | undefined;
|
|
4341
|
+
fishAudio?: {
|
|
4342
|
+
[k: string]: any;
|
|
4343
|
+
} | undefined;
|
|
4344
|
+
friendli?: {
|
|
4345
|
+
[k: string]: any;
|
|
4346
|
+
} | undefined;
|
|
4347
|
+
gmicloud?: {
|
|
4348
|
+
[k: string]: any;
|
|
4349
|
+
} | undefined;
|
|
4350
|
+
googleAiStudio?: {
|
|
4351
|
+
[k: string]: any;
|
|
4352
|
+
} | undefined;
|
|
4353
|
+
googleVertex?: {
|
|
4354
|
+
[k: string]: any;
|
|
4355
|
+
} | undefined;
|
|
4356
|
+
gopomelo?: {
|
|
4357
|
+
[k: string]: any;
|
|
4358
|
+
} | undefined;
|
|
4359
|
+
groq?: {
|
|
4360
|
+
[k: string]: any;
|
|
4361
|
+
} | undefined;
|
|
4362
|
+
heygen?: {
|
|
4363
|
+
[k: string]: any;
|
|
4364
|
+
} | undefined;
|
|
4365
|
+
huggingface?: {
|
|
4366
|
+
[k: string]: any;
|
|
4367
|
+
} | undefined;
|
|
4368
|
+
hyperbolic?: {
|
|
4369
|
+
[k: string]: any;
|
|
4370
|
+
} | undefined;
|
|
4371
|
+
hyperbolicQuantized?: {
|
|
4372
|
+
[k: string]: any;
|
|
4373
|
+
} | undefined;
|
|
4374
|
+
inception?: {
|
|
4375
|
+
[k: string]: any;
|
|
4376
|
+
} | undefined;
|
|
4377
|
+
inceptron?: {
|
|
4378
|
+
[k: string]: any;
|
|
4379
|
+
} | undefined;
|
|
4380
|
+
inferactVllm?: {
|
|
4381
|
+
[k: string]: any;
|
|
4382
|
+
} | undefined;
|
|
4383
|
+
inferenceNet?: {
|
|
4384
|
+
[k: string]: any;
|
|
4385
|
+
} | undefined;
|
|
4386
|
+
infermatic?: {
|
|
4387
|
+
[k: string]: any;
|
|
4388
|
+
} | undefined;
|
|
4389
|
+
inflection?: {
|
|
4390
|
+
[k: string]: any;
|
|
4391
|
+
} | undefined;
|
|
4392
|
+
inocloud?: {
|
|
4393
|
+
[k: string]: any;
|
|
4394
|
+
} | undefined;
|
|
4395
|
+
ioNet?: {
|
|
4396
|
+
[k: string]: any;
|
|
4397
|
+
} | undefined;
|
|
4398
|
+
ionstream?: {
|
|
4399
|
+
[k: string]: any;
|
|
4400
|
+
} | undefined;
|
|
4401
|
+
klusterai?: {
|
|
4402
|
+
[k: string]: any;
|
|
4403
|
+
} | undefined;
|
|
4404
|
+
krea?: {
|
|
4405
|
+
[k: string]: any;
|
|
4406
|
+
} | undefined;
|
|
4407
|
+
lambda?: {
|
|
4408
|
+
[k: string]: any;
|
|
4409
|
+
} | undefined;
|
|
4410
|
+
lepton?: {
|
|
4411
|
+
[k: string]: any;
|
|
4412
|
+
} | undefined;
|
|
4413
|
+
liquid?: {
|
|
4414
|
+
[k: string]: any;
|
|
4415
|
+
} | undefined;
|
|
4416
|
+
lynn?: {
|
|
4417
|
+
[k: string]: any;
|
|
4418
|
+
} | undefined;
|
|
4419
|
+
lynnPrivate?: {
|
|
4420
|
+
[k: string]: any;
|
|
4421
|
+
} | undefined;
|
|
4422
|
+
makora?: {
|
|
4423
|
+
[k: string]: any;
|
|
4424
|
+
} | undefined;
|
|
4425
|
+
mancer?: {
|
|
4426
|
+
[k: string]: any;
|
|
4427
|
+
} | undefined;
|
|
4428
|
+
mancerOld?: {
|
|
4429
|
+
[k: string]: any;
|
|
4430
|
+
} | undefined;
|
|
4431
|
+
mara?: {
|
|
4432
|
+
[k: string]: any;
|
|
4433
|
+
} | undefined;
|
|
4434
|
+
meta?: {
|
|
4435
|
+
[k: string]: any;
|
|
4436
|
+
} | undefined;
|
|
4437
|
+
minimax?: {
|
|
4438
|
+
[k: string]: any;
|
|
4439
|
+
} | undefined;
|
|
4440
|
+
mistral?: {
|
|
4441
|
+
[k: string]: any;
|
|
4442
|
+
} | undefined;
|
|
4443
|
+
modal?: {
|
|
4444
|
+
[k: string]: any;
|
|
4445
|
+
} | undefined;
|
|
4446
|
+
modelrun?: {
|
|
4447
|
+
[k: string]: any;
|
|
4448
|
+
} | undefined;
|
|
4449
|
+
modular?: {
|
|
4450
|
+
[k: string]: any;
|
|
4451
|
+
} | undefined;
|
|
4452
|
+
moonshotai?: {
|
|
4453
|
+
[k: string]: any;
|
|
4454
|
+
} | undefined;
|
|
4455
|
+
morph?: {
|
|
4456
|
+
[k: string]: any;
|
|
4457
|
+
} | undefined;
|
|
4458
|
+
ncompass?: {
|
|
4459
|
+
[k: string]: any;
|
|
4460
|
+
} | undefined;
|
|
4461
|
+
nearAi?: {
|
|
4462
|
+
[k: string]: any;
|
|
4463
|
+
} | undefined;
|
|
4464
|
+
nebius?: {
|
|
4465
|
+
[k: string]: any;
|
|
4466
|
+
} | undefined;
|
|
4467
|
+
nexAgi?: {
|
|
4468
|
+
[k: string]: any;
|
|
4469
|
+
} | undefined;
|
|
4470
|
+
nextbit?: {
|
|
4471
|
+
[k: string]: any;
|
|
4472
|
+
} | undefined;
|
|
4473
|
+
nineteen?: {
|
|
4474
|
+
[k: string]: any;
|
|
4475
|
+
} | undefined;
|
|
4476
|
+
novita?: {
|
|
4477
|
+
[k: string]: any;
|
|
4478
|
+
} | undefined;
|
|
4479
|
+
nvidia?: {
|
|
4480
|
+
[k: string]: any;
|
|
4481
|
+
} | undefined;
|
|
4482
|
+
octoai?: {
|
|
4483
|
+
[k: string]: any;
|
|
4484
|
+
} | undefined;
|
|
4485
|
+
ollama?: {
|
|
4486
|
+
[k: string]: any;
|
|
4487
|
+
} | undefined;
|
|
4488
|
+
openInference?: {
|
|
4489
|
+
[k: string]: any;
|
|
4490
|
+
} | undefined;
|
|
4491
|
+
openai?: {
|
|
4492
|
+
[k: string]: any;
|
|
4493
|
+
} | undefined;
|
|
4494
|
+
parasail?: {
|
|
4495
|
+
[k: string]: any;
|
|
4496
|
+
} | undefined;
|
|
4497
|
+
perceptron?: {
|
|
4498
|
+
[k: string]: any;
|
|
4499
|
+
} | undefined;
|
|
4500
|
+
perplexity?: {
|
|
4501
|
+
[k: string]: any;
|
|
4502
|
+
} | undefined;
|
|
4503
|
+
phala?: {
|
|
4504
|
+
[k: string]: any;
|
|
4505
|
+
} | undefined;
|
|
4506
|
+
poolside?: {
|
|
4507
|
+
[k: string]: any;
|
|
4508
|
+
} | undefined;
|
|
4509
|
+
primeintellect?: {
|
|
4510
|
+
[k: string]: any;
|
|
4511
|
+
} | undefined;
|
|
4512
|
+
quiver?: {
|
|
4513
|
+
[k: string]: any;
|
|
4514
|
+
} | undefined;
|
|
4515
|
+
recraft?: {
|
|
4516
|
+
[k: string]: any;
|
|
4517
|
+
} | undefined;
|
|
4518
|
+
recursal?: {
|
|
4519
|
+
[k: string]: any;
|
|
4520
|
+
} | undefined;
|
|
4521
|
+
reflection?: {
|
|
4522
|
+
[k: string]: any;
|
|
4523
|
+
} | undefined;
|
|
4524
|
+
reka?: {
|
|
4525
|
+
[k: string]: any;
|
|
4526
|
+
} | undefined;
|
|
4527
|
+
relace?: {
|
|
4528
|
+
[k: string]: any;
|
|
4529
|
+
} | undefined;
|
|
4530
|
+
replicate?: {
|
|
4531
|
+
[k: string]: any;
|
|
4532
|
+
} | undefined;
|
|
4533
|
+
respan?: {
|
|
4534
|
+
[k: string]: any;
|
|
4535
|
+
} | undefined;
|
|
4536
|
+
runway?: {
|
|
4537
|
+
[k: string]: any;
|
|
4538
|
+
} | undefined;
|
|
4539
|
+
sailResearch?: {
|
|
4540
|
+
[k: string]: any;
|
|
4541
|
+
} | undefined;
|
|
4542
|
+
sakana?: {
|
|
4543
|
+
[k: string]: any;
|
|
4544
|
+
} | undefined;
|
|
4545
|
+
sakanaAi?: {
|
|
4546
|
+
[k: string]: any;
|
|
4547
|
+
} | undefined;
|
|
4548
|
+
sambanova?: {
|
|
4549
|
+
[k: string]: any;
|
|
4550
|
+
} | undefined;
|
|
4551
|
+
sambanovaCloaked?: {
|
|
4552
|
+
[k: string]: any;
|
|
4553
|
+
} | undefined;
|
|
4554
|
+
scaledown?: {
|
|
4555
|
+
[k: string]: any;
|
|
4556
|
+
} | undefined;
|
|
4557
|
+
seed?: {
|
|
4558
|
+
[k: string]: any;
|
|
4559
|
+
} | undefined;
|
|
4560
|
+
sfCompute?: {
|
|
4561
|
+
[k: string]: any;
|
|
4562
|
+
} | undefined;
|
|
4563
|
+
siliconflow?: {
|
|
4564
|
+
[k: string]: any;
|
|
4565
|
+
} | undefined;
|
|
4566
|
+
sourceful?: {
|
|
4567
|
+
[k: string]: any;
|
|
4568
|
+
} | undefined;
|
|
4569
|
+
stealth?: {
|
|
4570
|
+
[k: string]: any;
|
|
4571
|
+
} | undefined;
|
|
4572
|
+
stepfun?: {
|
|
4573
|
+
[k: string]: any;
|
|
4574
|
+
} | undefined;
|
|
4575
|
+
streamlake?: {
|
|
4576
|
+
[k: string]: any;
|
|
4577
|
+
} | undefined;
|
|
4578
|
+
switchpoint?: {
|
|
4579
|
+
[k: string]: any;
|
|
4580
|
+
} | undefined;
|
|
4581
|
+
targon?: {
|
|
4582
|
+
[k: string]: any;
|
|
4583
|
+
} | undefined;
|
|
4584
|
+
tencent?: {
|
|
4585
|
+
[k: string]: any;
|
|
4586
|
+
} | undefined;
|
|
4587
|
+
tenstorrent?: {
|
|
4588
|
+
[k: string]: any;
|
|
4589
|
+
} | undefined;
|
|
4590
|
+
thinkingmachines?: {
|
|
4591
|
+
[k: string]: any;
|
|
4592
|
+
} | undefined;
|
|
4593
|
+
together?: {
|
|
4594
|
+
[k: string]: any;
|
|
4595
|
+
} | undefined;
|
|
4596
|
+
togetherLite?: {
|
|
4597
|
+
[k: string]: any;
|
|
4598
|
+
} | undefined;
|
|
4599
|
+
typesafe?: {
|
|
4600
|
+
[k: string]: any;
|
|
4601
|
+
} | undefined;
|
|
4602
|
+
ubicloud?: {
|
|
4603
|
+
[k: string]: any;
|
|
4604
|
+
} | undefined;
|
|
4605
|
+
unbiased?: {
|
|
4606
|
+
[k: string]: any;
|
|
4607
|
+
} | undefined;
|
|
4608
|
+
upstage?: {
|
|
4609
|
+
[k: string]: any;
|
|
4610
|
+
} | undefined;
|
|
4611
|
+
venice?: {
|
|
4612
|
+
[k: string]: any;
|
|
4613
|
+
} | undefined;
|
|
4614
|
+
voyageai?: {
|
|
4615
|
+
[k: string]: any;
|
|
4616
|
+
} | undefined;
|
|
4617
|
+
wafer?: {
|
|
4618
|
+
[k: string]: any;
|
|
4619
|
+
} | undefined;
|
|
4620
|
+
wandb?: {
|
|
4621
|
+
[k: string]: any;
|
|
4622
|
+
} | undefined;
|
|
4623
|
+
wandbLegacy?: {
|
|
4624
|
+
[k: string]: any;
|
|
4625
|
+
} | undefined;
|
|
4626
|
+
xai?: {
|
|
4627
|
+
[k: string]: any;
|
|
4628
|
+
} | undefined;
|
|
4629
|
+
xiaomi?: {
|
|
4630
|
+
[k: string]: any;
|
|
4631
|
+
} | undefined;
|
|
4632
|
+
zAi?: {
|
|
4633
|
+
[k: string]: any;
|
|
4634
|
+
} | undefined;
|
|
4635
|
+
};
|
|
4636
|
+
//#endregion
|
|
4637
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/providersort.d.ts
|
|
4638
|
+
/**
|
|
4639
|
+
* The provider sorting strategy (price, throughput, latency)
|
|
4640
|
+
*/
|
|
4641
|
+
declare const ProviderSort: {
|
|
4642
|
+
readonly Price: "price";
|
|
4643
|
+
readonly Throughput: "throughput";
|
|
4644
|
+
readonly Latency: "latency";
|
|
4645
|
+
readonly Exacto: "exacto";
|
|
4646
|
+
};
|
|
4647
|
+
/**
|
|
4648
|
+
* The provider sorting strategy (price, throughput, latency)
|
|
4649
|
+
*/
|
|
4650
|
+
type ProviderSort = OpenEnum<typeof ProviderSort>;
|
|
4651
|
+
//#endregion
|
|
4652
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/providersortconfig.d.ts
|
|
4653
|
+
/**
|
|
4654
|
+
* The provider sorting strategy (price, throughput, latency)
|
|
4655
|
+
*/
|
|
4656
|
+
declare const By: {
|
|
4657
|
+
readonly Price: "price";
|
|
4658
|
+
readonly Throughput: "throughput";
|
|
4659
|
+
readonly Latency: "latency";
|
|
4660
|
+
readonly Exacto: "exacto";
|
|
4661
|
+
};
|
|
4662
|
+
/**
|
|
4663
|
+
* The provider sorting strategy (price, throughput, latency)
|
|
4664
|
+
*/
|
|
4665
|
+
type By = OpenEnum<typeof By>;
|
|
4666
|
+
/**
|
|
4667
|
+
* Partitioning strategy for sorting: "model" (default) groups endpoints by model before sorting (fallback models remain fallbacks), "none" sorts all endpoints together regardless of model.
|
|
4668
|
+
*/
|
|
4669
|
+
declare const Partition: {
|
|
4670
|
+
readonly Model: "model";
|
|
4671
|
+
readonly None: "none";
|
|
4672
|
+
};
|
|
4673
|
+
/**
|
|
4674
|
+
* Partitioning strategy for sorting: "model" (default) groups endpoints by model before sorting (fallback models remain fallbacks), "none" sorts all endpoints together regardless of model.
|
|
4675
|
+
*/
|
|
4676
|
+
type Partition = OpenEnum<typeof Partition>;
|
|
4677
|
+
/**
|
|
4678
|
+
* The provider sorting strategy (price, throughput, latency)
|
|
4679
|
+
*/
|
|
4680
|
+
type ProviderSortConfig = {
|
|
4681
|
+
/**
|
|
4682
|
+
* The provider sorting strategy (price, throughput, latency)
|
|
4683
|
+
*/
|
|
4684
|
+
by?: By | null | undefined;
|
|
4685
|
+
/**
|
|
4686
|
+
* Partitioning strategy for sorting: "model" (default) groups endpoints by model before sorting (fallback models remain fallbacks), "none" sorts all endpoints together regardless of model.
|
|
4687
|
+
*/
|
|
4688
|
+
partition?: Partition | null | undefined;
|
|
4689
|
+
};
|
|
4690
|
+
//#endregion
|
|
4691
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/quantization.d.ts
|
|
4692
|
+
declare const Quantization: {
|
|
4693
|
+
readonly Int4: "int4";
|
|
4694
|
+
readonly Int8: "int8";
|
|
4695
|
+
readonly Fp4: "fp4";
|
|
4696
|
+
readonly Mxfp4: "mxfp4";
|
|
4697
|
+
readonly Nvfp4: "nvfp4";
|
|
4698
|
+
readonly Fp6: "fp6";
|
|
4699
|
+
readonly Fp8: "fp8";
|
|
4700
|
+
readonly Mxfp8: "mxfp8";
|
|
4701
|
+
readonly Fp16: "fp16";
|
|
4702
|
+
readonly Bf16: "bf16";
|
|
4703
|
+
readonly Fp32: "fp32";
|
|
4704
|
+
readonly Unknown: "unknown";
|
|
4705
|
+
};
|
|
4706
|
+
type Quantization = OpenEnum<typeof Quantization>;
|
|
4707
|
+
//#endregion
|
|
4708
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/providerpreferences.d.ts
|
|
4709
|
+
/**
|
|
4710
|
+
* Data collection setting. If no available model provider meets the requirement, your request will return an error.
|
|
4711
|
+
*
|
|
4712
|
+
* @remarks
|
|
4713
|
+
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
4714
|
+
*
|
|
4715
|
+
* - deny: use only providers which do not collect user data.
|
|
4716
|
+
*/
|
|
4717
|
+
declare const DataCollection: {
|
|
4718
|
+
readonly Deny: "deny";
|
|
4719
|
+
readonly Allow: "allow";
|
|
4720
|
+
};
|
|
4721
|
+
/**
|
|
4722
|
+
* Data collection setting. If no available model provider meets the requirement, your request will return an error.
|
|
4723
|
+
*
|
|
4724
|
+
* @remarks
|
|
4725
|
+
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
4726
|
+
*
|
|
4727
|
+
* - deny: use only providers which do not collect user data.
|
|
4728
|
+
*/
|
|
4729
|
+
type DataCollection = OpenEnum<typeof DataCollection>;
|
|
4730
|
+
/**
|
|
4731
|
+
* The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
|
|
4732
|
+
*/
|
|
4733
|
+
type MaxPrice = {
|
|
4734
|
+
/**
|
|
4735
|
+
* Maximum price in USD per audio unit
|
|
4736
|
+
*/
|
|
4737
|
+
audio?: string | undefined;
|
|
4738
|
+
/**
|
|
4739
|
+
* Maximum price in USD per million completion tokens
|
|
4740
|
+
*/
|
|
4741
|
+
completion?: string | undefined;
|
|
4742
|
+
/**
|
|
4743
|
+
* Maximum price in USD per image
|
|
4744
|
+
*/
|
|
4745
|
+
image?: string | undefined;
|
|
4746
|
+
/**
|
|
4747
|
+
* Maximum price in USD per million prompt tokens
|
|
4748
|
+
*/
|
|
4749
|
+
prompt?: string | undefined;
|
|
4750
|
+
/**
|
|
4751
|
+
* Maximum price in USD per request
|
|
4752
|
+
*/
|
|
4753
|
+
request?: string | undefined;
|
|
4754
|
+
};
|
|
4755
|
+
/**
|
|
4756
|
+
* Provider routing preferences for the request.
|
|
4757
|
+
*/
|
|
4758
|
+
type ProviderPreferences = {
|
|
4759
|
+
/**
|
|
4760
|
+
* Whether to allow backup providers to serve requests
|
|
4761
|
+
*
|
|
4762
|
+
* @remarks
|
|
4763
|
+
* - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
|
|
4764
|
+
* - false: use only the primary/custom provider, and return the upstream error if it's unavailable.
|
|
4765
|
+
*/
|
|
4766
|
+
allowFallbacks?: boolean | null | undefined;
|
|
4767
|
+
/**
|
|
4768
|
+
* Data collection setting. If no available model provider meets the requirement, your request will return an error.
|
|
4769
|
+
*
|
|
4770
|
+
* @remarks
|
|
4771
|
+
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
4772
|
+
*
|
|
4773
|
+
* - deny: use only providers which do not collect user data.
|
|
4774
|
+
*/
|
|
4775
|
+
dataCollection?: DataCollection | null | undefined;
|
|
4776
|
+
/**
|
|
4777
|
+
* Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.
|
|
4778
|
+
*/
|
|
4779
|
+
enforceDistillableText?: boolean | null | undefined;
|
|
4780
|
+
/**
|
|
4781
|
+
* List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
|
|
4782
|
+
*/
|
|
4783
|
+
ignore?: Array<ProviderName | string> | null | undefined;
|
|
4784
|
+
/**
|
|
4785
|
+
* The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
|
|
4786
|
+
*/
|
|
4787
|
+
maxPrice?: MaxPrice | undefined;
|
|
4788
|
+
/**
|
|
4789
|
+
* List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.
|
|
4790
|
+
*/
|
|
4791
|
+
only?: Array<ProviderName | string> | null | undefined;
|
|
4792
|
+
/**
|
|
4793
|
+
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
4794
|
+
*/
|
|
4795
|
+
options?: ProviderOptions | undefined;
|
|
4796
|
+
/**
|
|
4797
|
+
* An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
|
|
4798
|
+
*/
|
|
4799
|
+
order?: Array<ProviderName | string> | null | undefined;
|
|
4800
|
+
/**
|
|
4801
|
+
* Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
4802
|
+
*/
|
|
4803
|
+
preferredMaxLatency?: PreferredMaxLatency | null | undefined;
|
|
4804
|
+
/**
|
|
4805
|
+
* Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
4806
|
+
*/
|
|
4807
|
+
preferredMinThroughput?: PreferredMinThroughput | null | undefined;
|
|
4808
|
+
/**
|
|
4809
|
+
* A list of quantization levels to filter the provider by.
|
|
4810
|
+
*/
|
|
4811
|
+
quantizations?: Array<Quantization> | null | undefined;
|
|
4812
|
+
/**
|
|
4813
|
+
* Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.
|
|
4814
|
+
*/
|
|
4815
|
+
requireParameters?: boolean | null | undefined;
|
|
4816
|
+
/**
|
|
4817
|
+
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
4818
|
+
*/
|
|
4819
|
+
sort?: ProviderSort | ProviderSortConfig | null | undefined;
|
|
4820
|
+
/**
|
|
4821
|
+
* Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
|
|
4822
|
+
*/
|
|
4823
|
+
zdr?: boolean | null | undefined;
|
|
4824
|
+
};
|
|
4825
|
+
//#endregion
|
|
4826
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/traceconfig.d.ts
|
|
4827
|
+
/**
|
|
4828
|
+
* Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
|
|
4829
|
+
*/
|
|
4830
|
+
type TraceConfig = {
|
|
4831
|
+
generationName?: string | undefined;
|
|
4832
|
+
parentSpanId?: string | undefined;
|
|
4833
|
+
spanName?: string | undefined;
|
|
4834
|
+
traceId?: string | undefined;
|
|
4835
|
+
traceName?: string | undefined;
|
|
4836
|
+
additionalProperties?: {
|
|
4837
|
+
[k: string]: any;
|
|
4838
|
+
} | undefined;
|
|
4839
|
+
};
|
|
4840
|
+
//#endregion
|
|
4841
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/decisionschoicequestion.d.ts
|
|
4842
|
+
type DecisionsChoiceQuestion = {
|
|
4843
|
+
criteria: {
|
|
4844
|
+
[k: string]: string | {
|
|
4845
|
+
[k: string]: any;
|
|
4846
|
+
} | Array<any> | null;
|
|
4847
|
+
};
|
|
4848
|
+
/**
|
|
4849
|
+
* A plain string, or a JSON object or array of structured guidance.
|
|
4850
|
+
*/
|
|
4851
|
+
instructions: string | {
|
|
4852
|
+
[k: string]: any;
|
|
4853
|
+
} | Array<any>;
|
|
4854
|
+
type: "choice";
|
|
4855
|
+
};
|
|
4856
|
+
//#endregion
|
|
4857
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/decisionsnoulquestion.d.ts
|
|
4858
|
+
type DecisionsNoulQuestionCriteria = {
|
|
4859
|
+
/**
|
|
4860
|
+
* A plain string, or a JSON object or array of structured guidance.
|
|
4861
|
+
*/
|
|
4862
|
+
false: string | {
|
|
4863
|
+
[k: string]: any;
|
|
4864
|
+
} | Array<any>;
|
|
4865
|
+
/**
|
|
4866
|
+
* A plain string, or a JSON object or array of structured guidance.
|
|
4867
|
+
*/
|
|
4868
|
+
true: string | {
|
|
4869
|
+
[k: string]: any;
|
|
4870
|
+
} | Array<any>;
|
|
4871
|
+
};
|
|
4872
|
+
type DecisionsNoulQuestion = {
|
|
4873
|
+
criteria?: DecisionsNoulQuestionCriteria | undefined;
|
|
4874
|
+
/**
|
|
4875
|
+
* A plain string, or a JSON object or array of structured guidance.
|
|
4876
|
+
*/
|
|
4877
|
+
instructions: string | {
|
|
4878
|
+
[k: string]: any;
|
|
4879
|
+
} | Array<any>;
|
|
4880
|
+
type: "noul";
|
|
4881
|
+
};
|
|
4882
|
+
//#endregion
|
|
4883
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/decisionsscorequestion.d.ts
|
|
4884
|
+
type DecisionsScoreQuestion = {
|
|
4885
|
+
criteria: Array<string | {
|
|
4886
|
+
[k: string]: any;
|
|
4887
|
+
} | Array<any>>;
|
|
4888
|
+
/**
|
|
4889
|
+
* A plain string, or a JSON object or array of structured guidance.
|
|
4890
|
+
*/
|
|
4891
|
+
instructions: string | {
|
|
4892
|
+
[k: string]: any;
|
|
4893
|
+
} | Array<any>;
|
|
4894
|
+
type: "score";
|
|
4895
|
+
};
|
|
4896
|
+
//#endregion
|
|
4897
|
+
//#region ../../node_modules/.pnpm/@openrouter+sdk@1.4.25/node_modules/@openrouter/sdk/esm/models/decisionsrequest.d.ts
|
|
4898
|
+
type DecisionsRequest = {
|
|
4899
|
+
model: string;
|
|
4900
|
+
provider?: ProviderPreferences | null | undefined;
|
|
4901
|
+
questions: {
|
|
4902
|
+
[k: string]: DecisionsChoiceQuestion | DecisionsNoulQuestion | DecisionsScoreQuestion;
|
|
4903
|
+
};
|
|
4904
|
+
/**
|
|
4905
|
+
* A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
|
|
4906
|
+
*/
|
|
4907
|
+
sessionId?: string | undefined;
|
|
4908
|
+
/**
|
|
4909
|
+
* The content to evaluate: a plain string, or a JSON object or array of related context.
|
|
4910
|
+
*/
|
|
4911
|
+
state: string | {
|
|
4912
|
+
[k: string]: any;
|
|
4913
|
+
} | Array<any>;
|
|
4914
|
+
/**
|
|
4915
|
+
* Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
|
|
4916
|
+
*/
|
|
4917
|
+
trace?: TraceConfig | undefined;
|
|
4918
|
+
user?: string | undefined;
|
|
4919
|
+
};
|
|
4920
|
+
//#endregion
|
|
4921
|
+
//#region ../../node_modules/.pnpm/@typesafe-ai+sdk@0.6.0/node_modules/@typesafe-ai/sdk/dist/index.d.mts
|
|
4922
|
+
//#endregion
|
|
4923
|
+
//#region src/types.d.ts
|
|
4924
|
+
/** A JSON-compatible value. */
|
|
4925
|
+
type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | {
|
|
4926
|
+
[key: string]: JsonValue$1;
|
|
4927
|
+
};
|
|
4928
|
+
/** Text, a JSON object or array, or `null` for state, instructions, and criteria. */
|
|
4929
|
+
type EntryType = string | {
|
|
4930
|
+
[key: string]: JsonValue$1;
|
|
4931
|
+
} | JsonValue$1[] | null;
|
|
4932
|
+
/** A criterion description; `null` leaves the label undescribed. */
|
|
4933
|
+
type Description = EntryType;
|
|
4934
|
+
/** A yes/no question with optional descriptions for either outcome. */
|
|
4935
|
+
interface NoulQuestion {
|
|
4936
|
+
type: "noul";
|
|
4937
|
+
/** The question as text, a JSON object, or an array; optional or `null`. */
|
|
4938
|
+
instructions?: EntryType;
|
|
4939
|
+
/** Optional descriptions of the yes and no outcomes. */
|
|
4940
|
+
criteria?: {
|
|
4941
|
+
/** Description of the yes outcome. */
|
|
4942
|
+
true?: EntryType;
|
|
4943
|
+
/** Description of the no outcome. */
|
|
4944
|
+
false?: EntryType;
|
|
4945
|
+
} | null;
|
|
4946
|
+
}
|
|
4947
|
+
/** Labels mapped to descriptions, or `null` for undescribed labels. */
|
|
4948
|
+
type ChoiceCriteria = {
|
|
4949
|
+
[label: string]: Description;
|
|
4950
|
+
};
|
|
4951
|
+
/** A question that selects between named alternatives. */
|
|
4952
|
+
interface ChoiceQuestion<T extends ChoiceCriteria = ChoiceCriteria> {
|
|
4953
|
+
type: "choice";
|
|
4954
|
+
/** The question as text, a JSON object, or an array; optional or `null`. */
|
|
4955
|
+
instructions?: EntryType;
|
|
4956
|
+
/** Descriptions of the available outcomes. */
|
|
4957
|
+
criteria: T;
|
|
4958
|
+
}
|
|
4959
|
+
/** At least two descriptions indexed by score from zero; `null` leaves a score undescribed. */
|
|
4960
|
+
type ScoreCriteria = readonly [EntryType, EntryType, ...EntryType[]];
|
|
4961
|
+
/** A question that assigns a score using an ordered rubric. */
|
|
4962
|
+
interface ScoreQuestion<T extends ScoreCriteria = ScoreCriteria> {
|
|
4963
|
+
type: "score";
|
|
4964
|
+
/** The question as text, a JSON object, or an array; optional or `null`. */
|
|
4965
|
+
instructions?: EntryType;
|
|
4966
|
+
/** Descriptions of the available outcomes. */
|
|
4967
|
+
criteria: T;
|
|
4968
|
+
}
|
|
4969
|
+
/** A question identified by its `type` field. */
|
|
4970
|
+
type Question = NoulQuestion | ScoreQuestion | ChoiceQuestion;
|
|
4971
|
+
/** Questions keyed by the names used to identify their answers. */
|
|
4972
|
+
interface Questions {
|
|
4973
|
+
[name: string]: Question;
|
|
4974
|
+
}
|
|
4975
|
+
/**
|
|
4976
|
+
* State and named questions for `systemOne`.
|
|
4977
|
+
*
|
|
4978
|
+
* Additional properties on a request variable are forwarded, including `null` values.
|
|
4979
|
+
*/
|
|
4980
|
+
interface SystemOneRequest<Q extends Questions = Questions> {
|
|
4981
|
+
/** Text, a JSON object or array, or `null` to evaluate. */
|
|
4982
|
+
state: EntryType;
|
|
4983
|
+
/** Nonempty questions keyed by the names used to identify their answers. */
|
|
4984
|
+
questions: Q;
|
|
4985
|
+
/** Model override; omitted values inherit `defaultModel`. */
|
|
4986
|
+
model?: string;
|
|
4987
|
+
}
|
|
4988
|
+
//#endregion
|
|
4989
|
+
//#region ../../node_modules/.pnpm/@neta-art+generation@0.1.35/node_modules/@neta-art/generation/dist/builtins-BOpYwe7W.d.ts
|
|
4006
4990
|
//#region src/types.d.ts
|
|
4007
4991
|
declare const MODEL_SCHEMA: "neta.generation.model.v1";
|
|
4008
|
-
declare const GENERATION_MODEL_CATEGORIES: readonly ["image", "video", "audio"];
|
|
4992
|
+
declare const GENERATION_MODEL_CATEGORIES: readonly ["image", "video", "audio", "decision"];
|
|
4009
4993
|
type GenerationModelCategory = (typeof GENERATION_MODEL_CATEGORIES)[number];
|
|
4010
4994
|
declare const GENERATION_PRICING_UNITS: readonly ["image", "second", "request", "1m_tokens"];
|
|
4011
4995
|
type GenerationPricingUnit = (typeof GENERATION_PRICING_UNITS)[number];
|
|
@@ -4147,6 +5131,16 @@ type GenerationModelDeclaration = {
|
|
|
4147
5131
|
title?: string;
|
|
4148
5132
|
request: GenerateRequest;
|
|
4149
5133
|
}>;
|
|
5134
|
+
/** Examples passed directly to systemOne(), using the official TypeSafe request type. */
|
|
5135
|
+
systemOneExamples?: Array<{
|
|
5136
|
+
title?: string;
|
|
5137
|
+
request: SystemOneRequest;
|
|
5138
|
+
}>;
|
|
5139
|
+
/** Examples passed as decisionsRequest to decisions(), using the official OpenRouter request type. */
|
|
5140
|
+
decisionsExamples?: Array<{
|
|
5141
|
+
title?: string;
|
|
5142
|
+
request: DecisionsRequest;
|
|
5143
|
+
}>;
|
|
4150
5144
|
};
|
|
4151
5145
|
type GenerateRequest = {
|
|
4152
5146
|
model: string;
|
|
@@ -6074,7 +7068,7 @@ type BillingBalanceActivityList = {
|
|
|
6074
7068
|
type UserRulesResponse = {
|
|
6075
7069
|
content: string;
|
|
6076
7070
|
updatedAt: string | null;
|
|
6077
|
-
source: "
|
|
7071
|
+
source: "home-space";
|
|
6078
7072
|
path: string;
|
|
6079
7073
|
};
|
|
6080
7074
|
type SpaceFsEntry = {
|