@keystrokehq/openrouter 0.1.0 → 0.1.3
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +24 -24
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +92 -3
- package/dist/actions/create-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-chat-completion.d.mts +92 -3
- package/dist/actions/create-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-chat-completion.mjs +24 -24
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-coinbase-charge.cjs +6 -6
- package/dist/actions/create-coinbase-charge.cjs.map +1 -1
- package/dist/actions/create-coinbase-charge.d.cts +24 -3
- package/dist/actions/create-coinbase-charge.d.cts.map +1 -1
- package/dist/actions/create-coinbase-charge.d.mts +24 -3
- package/dist/actions/create-coinbase-charge.d.mts.map +1 -1
- package/dist/actions/create-coinbase-charge.mjs +6 -6
- package/dist/actions/create-coinbase-charge.mjs.map +1 -1
- package/dist/actions/create-message.cjs +14 -14
- package/dist/actions/create-message.cjs.map +1 -1
- package/dist/actions/create-message.d.cts +148 -3
- package/dist/actions/create-message.d.cts.map +1 -1
- package/dist/actions/create-message.d.mts +148 -3
- package/dist/actions/create-message.d.mts.map +1 -1
- package/dist/actions/create-message.mjs +14 -14
- package/dist/actions/create-message.mjs.map +1 -1
- package/dist/actions/get-credits.cjs +4 -4
- package/dist/actions/get-credits.cjs.map +1 -1
- package/dist/actions/get-credits.d.cts +8 -3
- package/dist/actions/get-credits.d.cts.map +1 -1
- package/dist/actions/get-credits.d.mts +8 -3
- package/dist/actions/get-credits.d.mts.map +1 -1
- package/dist/actions/get-credits.mjs +4 -4
- package/dist/actions/get-credits.mjs.map +1 -1
- package/dist/actions/get-current-key.cjs +19 -19
- package/dist/actions/get-current-key.cjs.map +1 -1
- package/dist/actions/get-current-key.d.cts +34 -3
- package/dist/actions/get-current-key.d.cts.map +1 -1
- package/dist/actions/get-current-key.d.mts +34 -3
- package/dist/actions/get-current-key.d.mts.map +1 -1
- package/dist/actions/get-current-key.mjs +19 -19
- package/dist/actions/get-current-key.mjs.map +1 -1
- package/dist/actions/get-generation.cjs +21 -21
- package/dist/actions/get-generation.cjs.map +1 -1
- package/dist/actions/get-generation.d.cts +37 -3
- package/dist/actions/get-generation.d.cts.map +1 -1
- package/dist/actions/get-generation.d.mts +37 -3
- package/dist/actions/get-generation.d.mts.map +1 -1
- package/dist/actions/get-generation.mjs +21 -21
- package/dist/actions/get-generation.mjs.map +1 -1
- package/dist/actions/get-models-count.cjs +2 -2
- package/dist/actions/get-models-count.cjs.map +1 -1
- package/dist/actions/get-models-count.d.cts +13 -3
- package/dist/actions/get-models-count.d.cts.map +1 -1
- package/dist/actions/get-models-count.d.mts +13 -3
- package/dist/actions/get-models-count.d.mts.map +1 -1
- package/dist/actions/get-models-count.mjs +2 -2
- package/dist/actions/get-models-count.mjs.map +1 -1
- package/dist/actions/list-available-models.cjs +19 -19
- package/dist/actions/list-available-models.cjs.map +1 -1
- package/dist/actions/list-available-models.d.cts +68 -3
- package/dist/actions/list-available-models.d.cts.map +1 -1
- package/dist/actions/list-available-models.d.mts +68 -3
- package/dist/actions/list-available-models.d.mts.map +1 -1
- package/dist/actions/list-available-models.mjs +19 -19
- package/dist/actions/list-available-models.mjs.map +1 -1
- package/dist/actions/list-embedding-models.cjs +17 -17
- package/dist/actions/list-embedding-models.cjs.map +1 -1
- package/dist/actions/list-embedding-models.d.cts +41 -3
- package/dist/actions/list-embedding-models.d.cts.map +1 -1
- package/dist/actions/list-embedding-models.d.mts +41 -3
- package/dist/actions/list-embedding-models.d.mts.map +1 -1
- package/dist/actions/list-embedding-models.mjs +17 -17
- package/dist/actions/list-embedding-models.mjs.map +1 -1
- package/dist/actions/list-model-endpoints.cjs +14 -14
- package/dist/actions/list-model-endpoints.cjs.map +1 -1
- package/dist/actions/list-model-endpoints.d.cts +39 -3
- package/dist/actions/list-model-endpoints.d.cts.map +1 -1
- package/dist/actions/list-model-endpoints.d.mts +39 -3
- package/dist/actions/list-model-endpoints.d.mts.map +1 -1
- package/dist/actions/list-model-endpoints.mjs +14 -14
- package/dist/actions/list-model-endpoints.mjs.map +1 -1
- package/dist/actions/list-providers.cjs +2 -2
- package/dist/actions/list-providers.cjs.map +1 -1
- package/dist/actions/list-providers.d.cts +9 -3
- package/dist/actions/list-providers.d.cts.map +1 -1
- package/dist/actions/list-providers.d.mts +9 -3
- package/dist/actions/list-providers.d.mts.map +1 -1
- package/dist/actions/list-providers.mjs +2 -2
- package/dist/actions/list-providers.mjs.map +1 -1
- package/dist/actions/list-user-models.cjs +15 -15
- package/dist/actions/list-user-models.cjs.map +1 -1
- package/dist/actions/list-user-models.d.cts +45 -3
- package/dist/actions/list-user-models.d.cts.map +1 -1
- package/dist/actions/list-user-models.d.mts +45 -3
- package/dist/actions/list-user-models.d.mts.map +1 -1
- package/dist/actions/list-user-models.mjs +15 -15
- package/dist/actions/list-user-models.mjs.map +1 -1
- package/dist/actions/list-zdr-endpoints.cjs +14 -14
- package/dist/actions/list-zdr-endpoints.cjs.map +1 -1
- package/dist/actions/list-zdr-endpoints.d.cts +43 -3
- package/dist/actions/list-zdr-endpoints.d.cts.map +1 -1
- package/dist/actions/list-zdr-endpoints.d.mts +43 -3
- package/dist/actions/list-zdr-endpoints.d.mts.map +1 -1
- package/dist/actions/list-zdr-endpoints.mjs +14 -14
- package/dist/actions/list-zdr-endpoints.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-model-endpoints.d.ts
|
|
4
|
-
declare const OpenrouterListModelEndpointsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpenrouterListModelEndpointsInput: z.ZodObject<{
|
|
5
|
+
slug: z.ZodString;
|
|
6
|
+
author: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const OpenrouterListModelEndpointsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
created: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
14
|
+
name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
pricing: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
18
|
+
request: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
20
|
+
web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
image_output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
provider_name: z.ZodNullable<z.ZodString>;
|
|
27
|
+
context_length: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
supported_parameters: z.ZodArray<z.ZodString>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
architecture: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
tokenizer: z.ZodNullable<z.ZodString>;
|
|
33
|
+
instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
input_modalities: z.ZodArray<z.ZodString>;
|
|
35
|
+
output_modalities: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const openrouterListModelEndpoints: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
slug: string;
|
|
41
|
+
author: string;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { openrouterListModelEndpoints };
|
|
9
45
|
//# sourceMappingURL=list-model-endpoints.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-model-endpoints.d.mts","names":[],"sources":["../../src/actions/list-model-endpoints.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"list-model-endpoints.d.mts","names":[],"sources":["../../src/actions/list-model-endpoints.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAoCjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -7,42 +7,42 @@ const OpenrouterListModelEndpointsInput = z.object({
|
|
|
7
7
|
}).describe("Request parameters for listing endpoints of a specific model.");
|
|
8
8
|
const OpenrouterListModelEndpoints_PricingSchema = z.object({
|
|
9
9
|
image: z.string().describe("Cost per image operation.").nullable().optional(),
|
|
10
|
-
prompt: z.string().describe("Cost per prompt token."),
|
|
10
|
+
prompt: z.string().describe("Cost per prompt token.").nullable(),
|
|
11
11
|
request: z.string().describe("Cost per request.").nullable().optional(),
|
|
12
|
-
completion: z.string().describe("Cost per completion token."),
|
|
12
|
+
completion: z.string().describe("Cost per completion token.").nullable(),
|
|
13
13
|
web_search: z.string().describe("Cost per web search.").nullable().optional(),
|
|
14
14
|
image_output: z.string().describe("Cost per output image.").nullable().optional(),
|
|
15
15
|
input_cache_read: z.string().describe("Cost per input cache read.").nullable().optional(),
|
|
16
16
|
input_cache_write: z.string().describe("Cost per input cache write.").nullable().optional(),
|
|
17
17
|
internal_reasoning: z.string().describe("Cost per internal reasoning.").nullable().optional()
|
|
18
|
-
}).describe("Pricing rates for different usage metrics.");
|
|
18
|
+
}).passthrough().describe("Pricing rates for different usage metrics.");
|
|
19
19
|
const OpenrouterListModelEndpoints_EndpointInfoSchema = z.object({
|
|
20
|
-
name: z.string().describe("Endpoint identifier."),
|
|
20
|
+
name: z.string().describe("Endpoint identifier.").nullable(),
|
|
21
21
|
pricing: OpenrouterListModelEndpoints_PricingSchema.nullable(),
|
|
22
|
-
provider_name: z.string().describe("Name of the provider serving this endpoint."),
|
|
23
|
-
context_length: z.number().describe("Maximum number of tokens in context."),
|
|
22
|
+
provider_name: z.string().describe("Name of the provider serving this endpoint.").nullable(),
|
|
23
|
+
context_length: z.number().describe("Maximum number of tokens in context.").nullable(),
|
|
24
24
|
supported_parameters: z.array(z.string()).describe("List of supported parameter names for this endpoint.")
|
|
25
|
-
}).describe("Details for a single model endpoint.");
|
|
25
|
+
}).passthrough().describe("Details for a single model endpoint.");
|
|
26
26
|
const OpenrouterListModelEndpoints_ArchitectureSchema = z.object({
|
|
27
|
-
tokenizer: z.string().describe("Tokenizer name used by the model."),
|
|
27
|
+
tokenizer: z.string().describe("Tokenizer name used by the model.").nullable(),
|
|
28
28
|
instruct_type: z.string().describe("Instruction style/type (e.g., 'instruct').").nullable().optional(),
|
|
29
29
|
input_modalities: z.array(z.string()).describe("List of modalities accepted as input (e.g., ['text', 'image'])."),
|
|
30
30
|
output_modalities: z.array(z.string()).describe("List of modalities produced as output (e.g., ['text']).")
|
|
31
|
-
}).describe("Model architecture details.");
|
|
31
|
+
}).passthrough().describe("Model architecture details.");
|
|
32
32
|
const OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = z.object({
|
|
33
|
-
id: z.string().describe("Unique model identifier."),
|
|
34
|
-
name: z.string().describe("Human-readable model name."),
|
|
35
|
-
created: z.number().describe("UNIX timestamp when model was created."),
|
|
33
|
+
id: z.string().describe("Unique model identifier.").nullable(),
|
|
34
|
+
name: z.string().describe("Human-readable model name.").nullable(),
|
|
35
|
+
created: z.number().describe("UNIX timestamp when model was created.").nullable(),
|
|
36
36
|
endpoints: z.array(OpenrouterListModelEndpoints_EndpointInfoSchema),
|
|
37
37
|
description: z.string().describe("Model description.").nullable().optional(),
|
|
38
38
|
architecture: OpenrouterListModelEndpoints_ArchitectureSchema.nullable()
|
|
39
|
-
});
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const openrouterListModelEndpoints = action("OPENROUTER_LIST_MODEL_ENDPOINTS", {
|
|
41
41
|
slug: "openrouter-list-model-endpoints",
|
|
42
42
|
name: "OpenRouter List Model Endpoints",
|
|
43
43
|
description: "Tool to list endpoints for a specific model. Use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters. Some metadata fields (e.g., latency, pricing) may be null or approximate; handle missing values in routing logic.",
|
|
44
44
|
input: OpenrouterListModelEndpointsInput,
|
|
45
|
-
output: z.object({ data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable() }).describe("Response schema for listing model endpoints.")
|
|
45
|
+
output: z.object({ data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable() }).passthrough().describe("Response schema for listing model endpoints.")
|
|
46
46
|
});
|
|
47
47
|
//#endregion
|
|
48
48
|
export { openrouterListModelEndpoints };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-model-endpoints.mjs","names":[],"sources":["../../src/actions/list-model-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListModelEndpointsInput
|
|
1
|
+
{"version":3,"file":"list-model-endpoints.mjs","names":[],"sources":["../../src/actions/list-model-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListModelEndpointsInput = z.object({\n slug: z.string().describe(\"Model's unique slug under the author namespace (e.g., 'gpt4').\"),\n author: z.string().describe(\"Model author's username as it appears in the model URL (e.g., 'anon'). Use exact value from OPENROUTER_LIST_AVAILABLE_MODELS — approximate or incorrect values return empty results.\"),\n}).describe(\"Request parameters for listing endpoints of a specific model.\");\nconst OpenrouterListModelEndpoints_PricingSchema = z.object({\n image: z.string().describe(\"Cost per image operation.\").nullable().optional(),\n prompt: z.string().describe(\"Cost per prompt token.\").nullable(),\n request: z.string().describe(\"Cost per request.\").nullable().optional(),\n completion: z.string().describe(\"Cost per completion token.\").nullable(),\n web_search: z.string().describe(\"Cost per web search.\").nullable().optional(),\n image_output: z.string().describe(\"Cost per output image.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Cost per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Cost per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Cost per internal reasoning.\").nullable().optional(),\n}).passthrough().describe(\"Pricing rates for different usage metrics.\");\nconst OpenrouterListModelEndpoints_EndpointInfoSchema = z.object({\n name: z.string().describe(\"Endpoint identifier.\").nullable(),\n pricing: OpenrouterListModelEndpoints_PricingSchema.nullable(),\n provider_name: z.string().describe(\"Name of the provider serving this endpoint.\").nullable(),\n context_length: z.number().describe(\"Maximum number of tokens in context.\").nullable(),\n supported_parameters: z.array(z.string()).describe(\"List of supported parameter names for this endpoint.\"),\n}).passthrough().describe(\"Details for a single model endpoint.\");\nconst OpenrouterListModelEndpoints_ArchitectureSchema = z.object({\n tokenizer: z.string().describe(\"Tokenizer name used by the model.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'instruct').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"List of modalities accepted as input (e.g., ['text', 'image']).\"),\n output_modalities: z.array(z.string()).describe(\"List of modalities produced as output (e.g., ['text']).\"),\n}).passthrough().describe(\"Model architecture details.\");\nconst OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable model name.\").nullable(),\n created: z.number().describe(\"UNIX timestamp when model was created.\").nullable(),\n endpoints: z.array(OpenrouterListModelEndpoints_EndpointInfoSchema),\n description: z.string().describe(\"Model description.\").nullable().optional(),\n architecture: OpenrouterListModelEndpoints_ArchitectureSchema.nullable(),\n}).passthrough();\nexport const OpenrouterListModelEndpointsOutput = z.object({\n data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing model endpoints.\");\n\nexport const openrouterListModelEndpoints = action(\"OPENROUTER_LIST_MODEL_ENDPOINTS\", {\n slug: \"openrouter-list-model-endpoints\",\n name: \"OpenRouter List Model Endpoints\",\n description: \"Tool to list endpoints for a specific model. Use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters. Some metadata fields (e.g., latency, pricing) may be null or approximate; handle missing values in routing logic.\",\n input: OpenrouterListModelEndpointsInput,\n output: OpenrouterListModelEndpointsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACpN,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6C,EAAE,OAAO;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,S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AM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iEAAiE;CAChH,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,sEAAsE,EAAE,OAAO;CACnF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,MAAM,+CAA+C;CAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAc,gDAAgD,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,MAAM,oEAAoE,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -4,10 +4,10 @@ let zod = require("zod");
|
|
|
4
4
|
const OpenrouterListProvidersInput = zod.z.object({}).describe("Empty request model for listing providers.");
|
|
5
5
|
const OpenrouterListProviders_ProviderSchema = zod.z.object({
|
|
6
6
|
name: zod.z.string().describe("Human-readable name of the provider").nullable().optional(),
|
|
7
|
-
slug: zod.z.string().describe("Unique identifier (slug) of the provider"),
|
|
7
|
+
slug: zod.z.string().describe("Unique identifier (slug) of the provider").nullable(),
|
|
8
8
|
description: zod.z.string().describe("Description of the provider, if available").nullable().optional()
|
|
9
9
|
}).passthrough().describe("Schema for a provider entry returned by the OpenRouter API.");
|
|
10
|
-
const OpenrouterListProvidersOutput = zod.z.object({ data: zod.z.array(OpenrouterListProviders_ProviderSchema).describe("List of available AI model providers") }).describe("Response model for provider listing.");
|
|
10
|
+
const OpenrouterListProvidersOutput = zod.z.object({ data: zod.z.array(OpenrouterListProviders_ProviderSchema).describe("List of available AI model providers") }).passthrough().describe("Response model for provider listing.");
|
|
11
11
|
const openrouterListProviders = require_action.action("OPENROUTER_LIST_PROVIDERS", {
|
|
12
12
|
slug: "openrouter-list-providers",
|
|
13
13
|
name: "OpenRouter List Providers",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-providers.cjs","names":["z","action"],"sources":["../../src/actions/list-providers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListProvidersInput
|
|
1
|
+
{"version":3,"file":"list-providers.cjs","names":["z","action"],"sources":["../../src/actions/list-providers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListProvidersInput = z.object({}).describe(\"Empty request model for listing providers.\");\nconst OpenrouterListProviders_ProviderSchema = z.object({\n name: z.string().describe(\"Human-readable name of the provider\").nullable().optional(),\n slug: z.string().describe(\"Unique identifier (slug) of the provider\").nullable(),\n description: z.string().describe(\"Description of the provider, if available\").nullable().optional(),\n}).passthrough().describe(\"Schema for a provider entry returned by the OpenRouter API.\");\nexport const OpenrouterListProvidersOutput = z.object({\n data: z.array(OpenrouterListProviders_ProviderSchema).describe(\"List of available AI model providers\"),\n}).passthrough().describe(\"Response model for provider listing.\");\n\nexport const openrouterListProviders = action(\"OPENROUTER_LIST_PROVIDERS\", {\n slug: \"openrouter-list-providers\",\n name: \"OpenRouter List Providers\",\n description: \"Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration. Providers differ in latency, context window sizes, and rate limits — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.\",\n input: OpenrouterListProvidersInput,\n output: OpenrouterListProvidersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAC9G,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sCAAsC,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-providers.d.ts
|
|
4
|
-
declare const OpenrouterListProvidersInput: z.
|
|
5
|
-
declare const OpenrouterListProvidersOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const OpenrouterListProvidersInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const OpenrouterListProvidersOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
9
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const openrouterListProviders: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { openrouterListProviders };
|
|
9
15
|
//# sourceMappingURL=list-providers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-providers.d.cts","names":[],"sources":["../../src/actions/list-providers.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"list-providers.d.cts","names":[],"sources":["../../src/actions/list-providers.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-providers.d.ts
|
|
4
|
-
declare const OpenrouterListProvidersInput: z.
|
|
5
|
-
declare const OpenrouterListProvidersOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const OpenrouterListProvidersInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const OpenrouterListProvidersOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
9
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const openrouterListProviders: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { openrouterListProviders };
|
|
9
15
|
//# sourceMappingURL=list-providers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-providers.d.mts","names":[],"sources":["../../src/actions/list-providers.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"list-providers.d.mts","names":[],"sources":["../../src/actions/list-providers.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
const OpenrouterListProvidersInput = z.object({}).describe("Empty request model for listing providers.");
|
|
5
5
|
const OpenrouterListProviders_ProviderSchema = z.object({
|
|
6
6
|
name: z.string().describe("Human-readable name of the provider").nullable().optional(),
|
|
7
|
-
slug: z.string().describe("Unique identifier (slug) of the provider"),
|
|
7
|
+
slug: z.string().describe("Unique identifier (slug) of the provider").nullable(),
|
|
8
8
|
description: z.string().describe("Description of the provider, if available").nullable().optional()
|
|
9
9
|
}).passthrough().describe("Schema for a provider entry returned by the OpenRouter API.");
|
|
10
10
|
const openrouterListProviders = action("OPENROUTER_LIST_PROVIDERS", {
|
|
@@ -12,7 +12,7 @@ const openrouterListProviders = action("OPENROUTER_LIST_PROVIDERS", {
|
|
|
12
12
|
name: "OpenRouter List Providers",
|
|
13
13
|
description: "Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration. Providers differ in latency, context window sizes, and rate limits — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.",
|
|
14
14
|
input: OpenrouterListProvidersInput,
|
|
15
|
-
output: z.object({ data: z.array(OpenrouterListProviders_ProviderSchema).describe("List of available AI model providers") }).describe("Response model for provider listing.")
|
|
15
|
+
output: z.object({ data: z.array(OpenrouterListProviders_ProviderSchema).describe("List of available AI model providers") }).passthrough().describe("Response model for provider listing.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { openrouterListProviders };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-providers.mjs","names":[],"sources":["../../src/actions/list-providers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListProvidersInput
|
|
1
|
+
{"version":3,"file":"list-providers.mjs","names":[],"sources":["../../src/actions/list-providers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListProvidersInput = z.object({}).describe(\"Empty request model for listing providers.\");\nconst OpenrouterListProviders_ProviderSchema = z.object({\n name: z.string().describe(\"Human-readable name of the provider\").nullable().optional(),\n slug: z.string().describe(\"Unique identifier (slug) of the provider\").nullable(),\n description: z.string().describe(\"Description of the provider, if available\").nullable().optional(),\n}).passthrough().describe(\"Schema for a provider entry returned by the OpenRouter API.\");\nexport const OpenrouterListProvidersOutput = z.object({\n data: z.array(OpenrouterListProviders_ProviderSchema).describe(\"List of available AI model providers\"),\n}).passthrough().describe(\"Response model for provider listing.\");\n\nexport const openrouterListProviders = action(\"OPENROUTER_LIST_PROVIDERS\", {\n slug: \"openrouter-list-providers\",\n name: \"OpenRouter List Providers\",\n description: \"Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration. Providers differ in latency, context window sizes, and rate limits — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.\",\n input: OpenrouterListProvidersInput,\n output: OpenrouterListProvidersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAC9G,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAKvF,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sCAAsC,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
|
|
@@ -7,43 +7,43 @@ const OpenrouterListUserModelsInput = zod.z.object({
|
|
|
7
7
|
});
|
|
8
8
|
const OpenrouterListUserModels_PricingSchema = zod.z.object({
|
|
9
9
|
image: zod.z.string().describe("Price per image.").nullable().optional(),
|
|
10
|
-
prompt: zod.z.string().describe("Price per prompt token."),
|
|
10
|
+
prompt: zod.z.string().describe("Price per prompt token.").nullable(),
|
|
11
11
|
request: zod.z.string().describe("Price per request.").nullable().optional(),
|
|
12
|
-
completion: zod.z.string().describe("Price per completion token."),
|
|
12
|
+
completion: zod.z.string().describe("Price per completion token.").nullable(),
|
|
13
13
|
web_search: zod.z.string().describe("Price per web search.").nullable().optional(),
|
|
14
14
|
input_cache_read: zod.z.string().describe("Price per input cache read.").nullable().optional(),
|
|
15
15
|
input_cache_write: zod.z.string().describe("Price per input cache write.").nullable().optional(),
|
|
16
16
|
internal_reasoning: zod.z.string().describe("Price per internal reasoning.").nullable().optional()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const OpenrouterListUserModels_ArchitectureSchema = zod.z.object({
|
|
19
19
|
modality: zod.z.string().describe("Overall modality pattern (e.g., 'text->text').").nullable().optional(),
|
|
20
|
-
tokenizer: zod.z.string().describe("Tokenization method used."),
|
|
20
|
+
tokenizer: zod.z.string().describe("Tokenization method used.").nullable(),
|
|
21
21
|
instruct_type: zod.z.string().describe("Instruction style/type (e.g., 'chatml').").nullable().optional(),
|
|
22
22
|
input_modalities: zod.z.array(zod.z.string()).describe("Supported input types (e.g., 'text', 'image')."),
|
|
23
23
|
output_modalities: zod.z.array(zod.z.string()).describe("Supported output types (e.g., 'text').")
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const OpenrouterListUserModels_TopProviderSchema = zod.z.object({
|
|
26
26
|
is_moderated: zod.z.boolean().describe("Indicates if the content is moderated.").nullable().optional(),
|
|
27
27
|
context_length: zod.z.number().int().describe("Maximum context window size from provider.").nullable().optional(),
|
|
28
28
|
max_completion_tokens: zod.z.number().int().describe("Maximum completion tokens allowed by provider.").nullable().optional()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const OpenrouterListUserModels_ModelInfoSchema = zod.z.object({
|
|
31
|
-
id: zod.z.string().describe("Unique model identifier."),
|
|
32
|
-
name: zod.z.string().describe("Human-readable display name for the model."),
|
|
33
|
-
created: zod.z.number().describe("Unix timestamp when the model was added."),
|
|
31
|
+
id: zod.z.string().describe("Unique model identifier.").nullable(),
|
|
32
|
+
name: zod.z.string().describe("Human-readable display name for the model.").nullable(),
|
|
33
|
+
created: zod.z.number().describe("Unix timestamp when the model was added.").nullable(),
|
|
34
34
|
pricing: OpenrouterListUserModels_PricingSchema.nullable(),
|
|
35
35
|
description: zod.z.string().describe("Detailed description of the model's capabilities.").nullable().optional(),
|
|
36
36
|
architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),
|
|
37
37
|
top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),
|
|
38
|
-
canonical_slug: zod.z.string().describe("Permanent slug for the model (immutable)."),
|
|
39
|
-
context_length: zod.z.number().int().describe("Maximum context window size in tokens."),
|
|
38
|
+
canonical_slug: zod.z.string().describe("Permanent slug for the model (immutable).").nullable(),
|
|
39
|
+
context_length: zod.z.number().int().describe("Maximum context window size in tokens.").nullable(),
|
|
40
40
|
expiration_date: zod.z.string().describe("Date when model will be deprecated, if applicable.").nullable().optional(),
|
|
41
41
|
hugging_face_id: zod.z.string().describe("Identifier for the model on Hugging Face.").nullable().optional(),
|
|
42
|
-
default_parameters: zod.z.
|
|
43
|
-
per_request_limits: zod.z.
|
|
42
|
+
default_parameters: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Default parameter values for this model, if any.").nullable().optional(),
|
|
43
|
+
per_request_limits: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Rate limiting information as a mapping of limit names to values, or null if no limits.").nullable().optional(),
|
|
44
44
|
supported_parameters: zod.z.array(zod.z.string()).describe("Supported API parameters for this model.")
|
|
45
|
-
});
|
|
46
|
-
const OpenrouterListUserModelsOutput = zod.z.object({ data: zod.z.array(OpenrouterListUserModels_ModelInfoSchema).describe("List of models filtered by user provider preferences, privacy settings, and guardrails.") });
|
|
45
|
+
}).passthrough();
|
|
46
|
+
const OpenrouterListUserModelsOutput = zod.z.object({ data: zod.z.array(OpenrouterListUserModels_ModelInfoSchema).describe("List of models filtered by user provider preferences, privacy settings, and guardrails.") }).passthrough();
|
|
47
47
|
const openrouterListUserModels = require_action.action("OPENROUTER_LIST_USER_MODELS", {
|
|
48
48
|
slug: "openrouter-list-user-models",
|
|
49
49
|
name: "List User Models",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-models.cjs","names":["z","action"],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput
|
|
1
|
+
{"version":3,"file":"list-user-models.cjs","names":["z","action"],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput = z.object({\n x_title: z.string().describe(\"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\").optional(),\n http_referer: z.string().describe(\"The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.\").optional(),\n});\nconst OpenrouterListUserModels_PricingSchema = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\").nullable(),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\").nullable(),\n web_search: z.string().describe(\"Price per web search.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Price per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Price per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Price per internal reasoning.\").nullable().optional(),\n}).passthrough();\nconst OpenrouterListUserModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Overall modality pattern (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n}).passthrough();\nconst OpenrouterListUserModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable().optional(),\n context_length: z.number().int().describe(\"Maximum context window size from provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum completion tokens allowed by provider.\").nullable().optional(),\n}).passthrough();\nconst OpenrouterListUserModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable display name for the model.\").nullable(),\n created: z.number().describe(\"Unix timestamp when the model was added.\").nullable(),\n pricing: OpenrouterListUserModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\").nullable(),\n expiration_date: z.string().describe(\"Date when model will be deprecated, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.record(z.string(), z.unknown()).describe(\"Default parameter values for this model, if any.\").nullable().optional(),\n per_request_limits: z.record(z.string(), z.unknown()).describe(\"Rate limiting information as a mapping of limit names to values, or null if no limits.\").nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"Supported API parameters for this model.\"),\n}).passthrough();\nexport const OpenrouterListUserModelsOutput = z.object({\n data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe(\"List of models filtered by user provider preferences, privacy settings, and guardrails.\"),\n}).passthrough();\n\nexport const openrouterListUserModels = action(\"OPENROUTER_LIST_USER_MODELS\", {\n slug: \"openrouter-list-user-models\",\n name: \"List User Models\",\n description: \"Tool to list models filtered by user provider preferences, privacy settings, and guardrails. Use after authenticating to get models tailored to the user's configuration.\",\n input: OpenrouterListUserModelsInput,\n output: OpenrouterListUserModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACjM,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,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AAC,SAAS,CAAC,CAAC,SAAS;CACvI,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7K,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAC/F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,yFAAyF,EAC5J,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,51 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-user-models.d.ts
|
|
4
|
-
declare const OpenrouterListUserModelsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpenrouterListUserModelsInput: z.ZodObject<{
|
|
5
|
+
x_title: z.ZodOptional<z.ZodString>;
|
|
6
|
+
http_referer: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const OpenrouterListUserModelsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
created: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
pricing: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
16
|
+
request: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
18
|
+
web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
architecture: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
modality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
tokenizer: z.ZodNullable<z.ZodString>;
|
|
27
|
+
instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
input_modalities: z.ZodArray<z.ZodString>;
|
|
29
|
+
output_modalities: z.ZodArray<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
top_provider: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
is_moderated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
+
context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
|
+
canonical_slug: z.ZodNullable<z.ZodString>;
|
|
37
|
+
context_length: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
default_parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
41
|
+
per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
|
+
supported_parameters: z.ZodArray<z.ZodString>;
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
declare const openrouterListUserModels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
|
+
x_title?: string | undefined;
|
|
47
|
+
http_referer?: string | undefined;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
49
|
//#endregion
|
|
8
50
|
export { openrouterListUserModels };
|
|
9
51
|
//# sourceMappingURL=list-user-models.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-models.d.cts","names":[],"sources":["../../src/actions/list-user-models.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"list-user-models.d.cts","names":[],"sources":["../../src/actions/list-user-models.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cA0C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,51 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-user-models.d.ts
|
|
4
|
-
declare const OpenrouterListUserModelsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpenrouterListUserModelsInput: z.ZodObject<{
|
|
5
|
+
x_title: z.ZodOptional<z.ZodString>;
|
|
6
|
+
http_referer: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const OpenrouterListUserModelsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
created: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
pricing: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
16
|
+
request: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
18
|
+
web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
architecture: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
modality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
tokenizer: z.ZodNullable<z.ZodString>;
|
|
27
|
+
instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
input_modalities: z.ZodArray<z.ZodString>;
|
|
29
|
+
output_modalities: z.ZodArray<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
top_provider: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
is_moderated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
+
context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
|
+
canonical_slug: z.ZodNullable<z.ZodString>;
|
|
37
|
+
context_length: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
default_parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
41
|
+
per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
|
+
supported_parameters: z.ZodArray<z.ZodString>;
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
declare const openrouterListUserModels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
|
+
x_title?: string | undefined;
|
|
47
|
+
http_referer?: string | undefined;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
49
|
//#endregion
|
|
8
50
|
export { openrouterListUserModels };
|
|
9
51
|
//# sourceMappingURL=list-user-models.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-models.d.mts","names":[],"sources":["../../src/actions/list-user-models.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"list-user-models.d.mts","names":[],"sources":["../../src/actions/list-user-models.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cA0C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -7,48 +7,48 @@ const OpenrouterListUserModelsInput = z.object({
|
|
|
7
7
|
});
|
|
8
8
|
const OpenrouterListUserModels_PricingSchema = z.object({
|
|
9
9
|
image: z.string().describe("Price per image.").nullable().optional(),
|
|
10
|
-
prompt: z.string().describe("Price per prompt token."),
|
|
10
|
+
prompt: z.string().describe("Price per prompt token.").nullable(),
|
|
11
11
|
request: z.string().describe("Price per request.").nullable().optional(),
|
|
12
|
-
completion: z.string().describe("Price per completion token."),
|
|
12
|
+
completion: z.string().describe("Price per completion token.").nullable(),
|
|
13
13
|
web_search: z.string().describe("Price per web search.").nullable().optional(),
|
|
14
14
|
input_cache_read: z.string().describe("Price per input cache read.").nullable().optional(),
|
|
15
15
|
input_cache_write: z.string().describe("Price per input cache write.").nullable().optional(),
|
|
16
16
|
internal_reasoning: z.string().describe("Price per internal reasoning.").nullable().optional()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const OpenrouterListUserModels_ArchitectureSchema = z.object({
|
|
19
19
|
modality: z.string().describe("Overall modality pattern (e.g., 'text->text').").nullable().optional(),
|
|
20
|
-
tokenizer: z.string().describe("Tokenization method used."),
|
|
20
|
+
tokenizer: z.string().describe("Tokenization method used.").nullable(),
|
|
21
21
|
instruct_type: z.string().describe("Instruction style/type (e.g., 'chatml').").nullable().optional(),
|
|
22
22
|
input_modalities: z.array(z.string()).describe("Supported input types (e.g., 'text', 'image')."),
|
|
23
23
|
output_modalities: z.array(z.string()).describe("Supported output types (e.g., 'text').")
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const OpenrouterListUserModels_TopProviderSchema = z.object({
|
|
26
26
|
is_moderated: z.boolean().describe("Indicates if the content is moderated.").nullable().optional(),
|
|
27
27
|
context_length: z.number().int().describe("Maximum context window size from provider.").nullable().optional(),
|
|
28
28
|
max_completion_tokens: z.number().int().describe("Maximum completion tokens allowed by provider.").nullable().optional()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const OpenrouterListUserModels_ModelInfoSchema = z.object({
|
|
31
|
-
id: z.string().describe("Unique model identifier."),
|
|
32
|
-
name: z.string().describe("Human-readable display name for the model."),
|
|
33
|
-
created: z.number().describe("Unix timestamp when the model was added."),
|
|
31
|
+
id: z.string().describe("Unique model identifier.").nullable(),
|
|
32
|
+
name: z.string().describe("Human-readable display name for the model.").nullable(),
|
|
33
|
+
created: z.number().describe("Unix timestamp when the model was added.").nullable(),
|
|
34
34
|
pricing: OpenrouterListUserModels_PricingSchema.nullable(),
|
|
35
35
|
description: z.string().describe("Detailed description of the model's capabilities.").nullable().optional(),
|
|
36
36
|
architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),
|
|
37
37
|
top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),
|
|
38
|
-
canonical_slug: z.string().describe("Permanent slug for the model (immutable)."),
|
|
39
|
-
context_length: z.number().int().describe("Maximum context window size in tokens."),
|
|
38
|
+
canonical_slug: z.string().describe("Permanent slug for the model (immutable).").nullable(),
|
|
39
|
+
context_length: z.number().int().describe("Maximum context window size in tokens.").nullable(),
|
|
40
40
|
expiration_date: z.string().describe("Date when model will be deprecated, if applicable.").nullable().optional(),
|
|
41
41
|
hugging_face_id: z.string().describe("Identifier for the model on Hugging Face.").nullable().optional(),
|
|
42
|
-
default_parameters: z.
|
|
43
|
-
per_request_limits: z.
|
|
42
|
+
default_parameters: z.record(z.string(), z.unknown()).describe("Default parameter values for this model, if any.").nullable().optional(),
|
|
43
|
+
per_request_limits: z.record(z.string(), z.unknown()).describe("Rate limiting information as a mapping of limit names to values, or null if no limits.").nullable().optional(),
|
|
44
44
|
supported_parameters: z.array(z.string()).describe("Supported API parameters for this model.")
|
|
45
|
-
});
|
|
45
|
+
}).passthrough();
|
|
46
46
|
const openrouterListUserModels = action("OPENROUTER_LIST_USER_MODELS", {
|
|
47
47
|
slug: "openrouter-list-user-models",
|
|
48
48
|
name: "List User Models",
|
|
49
49
|
description: "Tool to list models filtered by user provider preferences, privacy settings, and guardrails. Use after authenticating to get models tailored to the user's configuration.",
|
|
50
50
|
input: OpenrouterListUserModelsInput,
|
|
51
|
-
output: z.object({ data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe("List of models filtered by user provider preferences, privacy settings, and guardrails.") })
|
|
51
|
+
output: z.object({ data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe("List of models filtered by user provider preferences, privacy settings, and guardrails.") }).passthrough()
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { openrouterListUserModels };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-models.mjs","names":[],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput
|
|
1
|
+
{"version":3,"file":"list-user-models.mjs","names":[],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput = z.object({\n x_title: z.string().describe(\"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\").optional(),\n http_referer: z.string().describe(\"The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.\").optional(),\n});\nconst OpenrouterListUserModels_PricingSchema = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\").nullable(),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\").nullable(),\n web_search: z.string().describe(\"Price per web search.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Price per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Price per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Price per internal reasoning.\").nullable().optional(),\n}).passthrough();\nconst OpenrouterListUserModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Overall modality pattern (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n}).passthrough();\nconst OpenrouterListUserModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable().optional(),\n context_length: z.number().int().describe(\"Maximum context window size from provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum completion tokens allowed by provider.\").nullable().optional(),\n}).passthrough();\nconst OpenrouterListUserModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable display name for the model.\").nullable(),\n created: z.number().describe(\"Unix timestamp when the model was added.\").nullable(),\n pricing: OpenrouterListUserModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\").nullable(),\n expiration_date: z.string().describe(\"Date when model will be deprecated, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.record(z.string(), z.unknown()).describe(\"Default parameter values for this model, if any.\").nullable().optional(),\n per_request_limits: z.record(z.string(), z.unknown()).describe(\"Rate limiting information as a mapping of limit names to values, or null if no limits.\").nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"Supported API parameters for this model.\"),\n}).passthrough();\nexport const OpenrouterListUserModelsOutput = z.object({\n data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe(\"List of models filtered by user provider preferences, privacy settings, and guardrails.\"),\n}).passthrough();\n\nexport const openrouterListUserModels = action(\"OPENROUTER_LIST_USER_MODELS\", {\n slug: \"openrouter-list-user-models\",\n name: \"List User Models\",\n description: \"Tool to list models filtered by user provider preferences, privacy settings, and guardrails. Use after authenticating to get models tailored to the user's configuration.\",\n input: OpenrouterListUserModelsInput,\n output: OpenrouterListUserModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,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