@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
|
@@ -7,41 +7,41 @@ const OpenrouterListZdrEndpointsInput = zod.z.object({
|
|
|
7
7
|
}).describe("Request parameters for listing Zero Data Retention (ZDR) endpoints.");
|
|
8
8
|
const OpenrouterListZdrEndpoints_ZdrPricingSchema = zod.z.object({
|
|
9
9
|
image: zod.z.string().describe("Cost per image operation.").nullable().optional(),
|
|
10
|
-
prompt: zod.z.string().describe("Cost per prompt token."),
|
|
10
|
+
prompt: zod.z.string().describe("Cost per prompt token.").nullable(),
|
|
11
11
|
request: zod.z.string().describe("Cost per request.").nullable().optional(),
|
|
12
|
-
completion: zod.z.string().describe("Cost per completion token.")
|
|
13
|
-
}).describe("Pricing rates for different usage metrics.");
|
|
12
|
+
completion: zod.z.string().describe("Cost per completion token.").nullable()
|
|
13
|
+
}).passthrough().describe("Pricing rates for different usage metrics.");
|
|
14
14
|
const OpenrouterListZdrEndpoints_LatencyMetricsSchema = zod.z.object({
|
|
15
15
|
p50: zod.z.number().describe("50th percentile latency in seconds.").nullable().optional(),
|
|
16
16
|
p75: zod.z.number().describe("75th percentile latency in seconds.").nullable().optional(),
|
|
17
17
|
p90: zod.z.number().describe("90th percentile latency in seconds.").nullable().optional(),
|
|
18
18
|
p99: zod.z.number().describe("99th percentile latency in seconds.").nullable().optional()
|
|
19
|
-
}).describe("Latency percentile metrics over the last 30 minutes.");
|
|
19
|
+
}).passthrough().describe("Latency percentile metrics over the last 30 minutes.");
|
|
20
20
|
const OpenrouterListZdrEndpoints_ThroughputMetricsSchema = zod.z.object({
|
|
21
21
|
p50: zod.z.number().describe("50th percentile throughput (tokens per second).").nullable().optional(),
|
|
22
22
|
p75: zod.z.number().describe("75th percentile throughput (tokens per second).").nullable().optional(),
|
|
23
23
|
p90: zod.z.number().describe("90th percentile throughput (tokens per second).").nullable().optional(),
|
|
24
24
|
p99: zod.z.number().describe("99th percentile throughput (tokens per second).").nullable().optional()
|
|
25
|
-
}).describe("Throughput percentile metrics over the last 30 minutes.");
|
|
25
|
+
}).passthrough().describe("Throughput percentile metrics over the last 30 minutes.");
|
|
26
26
|
const OpenrouterListZdrEndpoints_ZdrEndpointSchema = zod.z.object({
|
|
27
|
-
tag: zod.z.string().describe("Tag identifying the model or provider category."),
|
|
28
|
-
name: zod.z.string().describe("Endpoint display name."),
|
|
27
|
+
tag: zod.z.string().describe("Tag identifying the model or provider category.").nullable(),
|
|
28
|
+
name: zod.z.string().describe("Endpoint display name.").nullable(),
|
|
29
29
|
status: zod.z.number().int().describe("Status code indicating endpoint availability.").nullable().optional(),
|
|
30
30
|
pricing: OpenrouterListZdrEndpoints_ZdrPricingSchema.nullable(),
|
|
31
|
-
model_id: zod.z.string().describe("Unique model identifier."),
|
|
32
|
-
model_name: zod.z.string().describe("Human-readable model name."),
|
|
31
|
+
model_id: zod.z.string().describe("Unique model identifier.").nullable(),
|
|
32
|
+
model_name: zod.z.string().describe("Human-readable model name.").nullable(),
|
|
33
33
|
quantization: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
|
|
34
|
-
provider_name: zod.z.string().describe("Name of the provider serving this endpoint."),
|
|
35
|
-
context_length: zod.z.number().describe("Maximum number of tokens in context window."),
|
|
34
|
+
provider_name: zod.z.string().describe("Name of the provider serving this endpoint.").nullable(),
|
|
35
|
+
context_length: zod.z.number().describe("Maximum number of tokens in context window.").nullable(),
|
|
36
36
|
uptime_last_30m: zod.z.number().describe("Uptime percentage over the last 30 minutes.").nullable().optional(),
|
|
37
37
|
latency_last_30m: OpenrouterListZdrEndpoints_LatencyMetricsSchema.nullable().optional(),
|
|
38
38
|
max_prompt_tokens: zod.z.number().describe("Maximum number of tokens allowed in prompt.").nullable().optional(),
|
|
39
39
|
throughput_last_30m: OpenrouterListZdrEndpoints_ThroughputMetricsSchema.nullable().optional(),
|
|
40
40
|
supported_parameters: zod.z.array(zod.z.string()).describe("List of supported parameter names for this endpoint."),
|
|
41
41
|
max_completion_tokens: zod.z.number().describe("Maximum number of tokens allowed in completion.").nullable().optional(),
|
|
42
|
-
supports_implicit_caching: zod.z.boolean().describe("Whether the endpoint supports implicit caching.")
|
|
43
|
-
}).describe("Information about a specific model endpoint under Zero Data Retention.");
|
|
44
|
-
const OpenrouterListZdrEndpointsOutput = zod.z.object({ data: zod.z.array(OpenrouterListZdrEndpoints_ZdrEndpointSchema).describe("List of model endpoints available under Zero Data Retention policy.") }).describe("Response schema for listing ZDR endpoints.");
|
|
42
|
+
supports_implicit_caching: zod.z.boolean().describe("Whether the endpoint supports implicit caching.").nullable()
|
|
43
|
+
}).passthrough().describe("Information about a specific model endpoint under Zero Data Retention.");
|
|
44
|
+
const OpenrouterListZdrEndpointsOutput = zod.z.object({ data: zod.z.array(OpenrouterListZdrEndpoints_ZdrEndpointSchema).describe("List of model endpoints available under Zero Data Retention policy.") }).passthrough().describe("Response schema for listing ZDR endpoints.");
|
|
45
45
|
const openrouterListZdrEndpoints = require_action.action("OPENROUTER_LIST_ZDR_ENDPOINTS", {
|
|
46
46
|
slug: "openrouter-list-zdr-endpoints",
|
|
47
47
|
name: "OpenRouter List ZDR Endpoints",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-zdr-endpoints.cjs","names":["z","action"],"sources":["../../src/actions/list-zdr-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListZdrEndpointsInput
|
|
1
|
+
{"version":3,"file":"list-zdr-endpoints.cjs","names":["z","action"],"sources":["../../src/actions/list-zdr-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListZdrEndpointsInput = 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}).describe(\"Request parameters for listing Zero Data Retention (ZDR) endpoints.\");\nconst OpenrouterListZdrEndpoints_ZdrPricingSchema = 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}).passthrough().describe(\"Pricing rates for different usage metrics.\");\nconst OpenrouterListZdrEndpoints_LatencyMetricsSchema = z.object({\n p50: z.number().describe(\"50th percentile latency in seconds.\").nullable().optional(),\n p75: z.number().describe(\"75th percentile latency in seconds.\").nullable().optional(),\n p90: z.number().describe(\"90th percentile latency in seconds.\").nullable().optional(),\n p99: z.number().describe(\"99th percentile latency in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Latency percentile metrics over the last 30 minutes.\");\nconst OpenrouterListZdrEndpoints_ThroughputMetricsSchema = z.object({\n p50: z.number().describe(\"50th percentile throughput (tokens per second).\").nullable().optional(),\n p75: z.number().describe(\"75th percentile throughput (tokens per second).\").nullable().optional(),\n p90: z.number().describe(\"90th percentile throughput (tokens per second).\").nullable().optional(),\n p99: z.number().describe(\"99th percentile throughput (tokens per second).\").nullable().optional(),\n}).passthrough().describe(\"Throughput percentile metrics over the last 30 minutes.\");\nconst OpenrouterListZdrEndpoints_ZdrEndpointSchema = z.object({\n tag: z.string().describe(\"Tag identifying the model or provider category.\").nullable(),\n name: z.string().describe(\"Endpoint display name.\").nullable(),\n status: z.number().int().describe(\"Status code indicating endpoint availability.\").nullable().optional(),\n pricing: OpenrouterListZdrEndpoints_ZdrPricingSchema.nullable(),\n model_id: z.string().describe(\"Unique model identifier.\").nullable(),\n model_name: z.string().describe(\"Human-readable model name.\").nullable(),\n quantization: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\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 window.\").nullable(),\n uptime_last_30m: z.number().describe(\"Uptime percentage over the last 30 minutes.\").nullable().optional(),\n latency_last_30m: OpenrouterListZdrEndpoints_LatencyMetricsSchema.nullable().optional(),\n max_prompt_tokens: z.number().describe(\"Maximum number of tokens allowed in prompt.\").nullable().optional(),\n throughput_last_30m: OpenrouterListZdrEndpoints_ThroughputMetricsSchema.nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"List of supported parameter names for this endpoint.\"),\n max_completion_tokens: z.number().describe(\"Maximum number of tokens allowed in completion.\").nullable().optional(),\n supports_implicit_caching: z.boolean().describe(\"Whether the endpoint supports implicit caching.\").nullable(),\n}).passthrough().describe(\"Information about a specific model endpoint under Zero Data Retention.\");\nexport const OpenrouterListZdrEndpointsOutput = z.object({\n data: z.array(OpenrouterListZdrEndpoints_ZdrEndpointSchema).describe(\"List of model endpoints available under Zero Data Retention policy.\"),\n}).passthrough().describe(\"Response schema for listing ZDR endpoints.\");\n\nexport const openrouterListZdrEndpoints = action(\"OPENROUTER_LIST_ZDR_ENDPOINTS\", {\n slug: \"openrouter-list-zdr-endpoints\",\n name: \"OpenRouter List ZDR Endpoints\",\n description: \"Tool to preview the impact of Zero Data Retention (ZDR) on the available endpoints. Use to see which model endpoints remain accessible when ZDR is enabled.\",\n input: OpenrouterListZdrEndpointsInput,\n output: OpenrouterListZdrEndpointsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,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,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IA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SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAClG,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,MAAMA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,qEAAqE,EAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,49 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-zdr-endpoints.d.ts
|
|
4
|
-
declare const OpenrouterListZdrEndpointsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpenrouterListZdrEndpointsInput: z.ZodObject<{
|
|
5
|
+
x_title: z.ZodOptional<z.ZodString>;
|
|
6
|
+
http_referer: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const OpenrouterListZdrEndpointsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
status: z.ZodOptional<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
|
+
}, z.core.$loose>>;
|
|
19
|
+
model_id: z.ZodNullable<z.ZodString>;
|
|
20
|
+
model_name: z.ZodNullable<z.ZodString>;
|
|
21
|
+
quantization: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
22
|
+
provider_name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
context_length: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
uptime_last_30m: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
latency_last_30m: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
p50: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
p75: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
p90: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
p99: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
|
+
max_prompt_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
throughput_last_30m: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
p50: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
p75: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
p90: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
p99: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
|
+
supported_parameters: z.ZodArray<z.ZodString>;
|
|
39
|
+
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
+
supports_implicit_caching: z.ZodNullable<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const openrouterListZdrEndpoints: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
x_title?: string | undefined;
|
|
45
|
+
http_referer?: string | undefined;
|
|
46
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
47
|
//#endregion
|
|
8
48
|
export { openrouterListZdrEndpoints };
|
|
9
49
|
//# sourceMappingURL=list-zdr-endpoints.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-zdr-endpoints.d.cts","names":[],"sources":["../../src/actions/list-zdr-endpoints.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"list-zdr-endpoints.d.cts","names":[],"sources":["../../src/actions/list-zdr-endpoints.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAwC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,49 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-zdr-endpoints.d.ts
|
|
4
|
-
declare const OpenrouterListZdrEndpointsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpenrouterListZdrEndpointsInput: z.ZodObject<{
|
|
5
|
+
x_title: z.ZodOptional<z.ZodString>;
|
|
6
|
+
http_referer: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const OpenrouterListZdrEndpointsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
status: z.ZodOptional<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
|
+
}, z.core.$loose>>;
|
|
19
|
+
model_id: z.ZodNullable<z.ZodString>;
|
|
20
|
+
model_name: z.ZodNullable<z.ZodString>;
|
|
21
|
+
quantization: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
22
|
+
provider_name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
context_length: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
uptime_last_30m: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
latency_last_30m: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
p50: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
p75: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
p90: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
p99: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
|
+
max_prompt_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
throughput_last_30m: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
p50: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
p75: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
p90: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
p99: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
|
+
supported_parameters: z.ZodArray<z.ZodString>;
|
|
39
|
+
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
+
supports_implicit_caching: z.ZodNullable<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const openrouterListZdrEndpoints: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
x_title?: string | undefined;
|
|
45
|
+
http_referer?: string | undefined;
|
|
46
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
47
|
//#endregion
|
|
8
48
|
export { openrouterListZdrEndpoints };
|
|
9
49
|
//# sourceMappingURL=list-zdr-endpoints.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-zdr-endpoints.d.mts","names":[],"sources":["../../src/actions/list-zdr-endpoints.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"list-zdr-endpoints.d.mts","names":[],"sources":["../../src/actions/list-zdr-endpoints.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAwC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -7,46 +7,46 @@ const OpenrouterListZdrEndpointsInput = z.object({
|
|
|
7
7
|
}).describe("Request parameters for listing Zero Data Retention (ZDR) endpoints.");
|
|
8
8
|
const OpenrouterListZdrEndpoints_ZdrPricingSchema = 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.")
|
|
13
|
-
}).describe("Pricing rates for different usage metrics.");
|
|
12
|
+
completion: z.string().describe("Cost per completion token.").nullable()
|
|
13
|
+
}).passthrough().describe("Pricing rates for different usage metrics.");
|
|
14
14
|
const OpenrouterListZdrEndpoints_LatencyMetricsSchema = z.object({
|
|
15
15
|
p50: z.number().describe("50th percentile latency in seconds.").nullable().optional(),
|
|
16
16
|
p75: z.number().describe("75th percentile latency in seconds.").nullable().optional(),
|
|
17
17
|
p90: z.number().describe("90th percentile latency in seconds.").nullable().optional(),
|
|
18
18
|
p99: z.number().describe("99th percentile latency in seconds.").nullable().optional()
|
|
19
|
-
}).describe("Latency percentile metrics over the last 30 minutes.");
|
|
19
|
+
}).passthrough().describe("Latency percentile metrics over the last 30 minutes.");
|
|
20
20
|
const OpenrouterListZdrEndpoints_ThroughputMetricsSchema = z.object({
|
|
21
21
|
p50: z.number().describe("50th percentile throughput (tokens per second).").nullable().optional(),
|
|
22
22
|
p75: z.number().describe("75th percentile throughput (tokens per second).").nullable().optional(),
|
|
23
23
|
p90: z.number().describe("90th percentile throughput (tokens per second).").nullable().optional(),
|
|
24
24
|
p99: z.number().describe("99th percentile throughput (tokens per second).").nullable().optional()
|
|
25
|
-
}).describe("Throughput percentile metrics over the last 30 minutes.");
|
|
25
|
+
}).passthrough().describe("Throughput percentile metrics over the last 30 minutes.");
|
|
26
26
|
const OpenrouterListZdrEndpoints_ZdrEndpointSchema = z.object({
|
|
27
|
-
tag: z.string().describe("Tag identifying the model or provider category."),
|
|
28
|
-
name: z.string().describe("Endpoint display name."),
|
|
27
|
+
tag: z.string().describe("Tag identifying the model or provider category.").nullable(),
|
|
28
|
+
name: z.string().describe("Endpoint display name.").nullable(),
|
|
29
29
|
status: z.number().int().describe("Status code indicating endpoint availability.").nullable().optional(),
|
|
30
30
|
pricing: OpenrouterListZdrEndpoints_ZdrPricingSchema.nullable(),
|
|
31
|
-
model_id: z.string().describe("Unique model identifier."),
|
|
32
|
-
model_name: z.string().describe("Human-readable model name."),
|
|
31
|
+
model_id: z.string().describe("Unique model identifier.").nullable(),
|
|
32
|
+
model_name: z.string().describe("Human-readable model name.").nullable(),
|
|
33
33
|
quantization: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
34
|
-
provider_name: z.string().describe("Name of the provider serving this endpoint."),
|
|
35
|
-
context_length: z.number().describe("Maximum number of tokens in context window."),
|
|
34
|
+
provider_name: z.string().describe("Name of the provider serving this endpoint.").nullable(),
|
|
35
|
+
context_length: z.number().describe("Maximum number of tokens in context window.").nullable(),
|
|
36
36
|
uptime_last_30m: z.number().describe("Uptime percentage over the last 30 minutes.").nullable().optional(),
|
|
37
37
|
latency_last_30m: OpenrouterListZdrEndpoints_LatencyMetricsSchema.nullable().optional(),
|
|
38
38
|
max_prompt_tokens: z.number().describe("Maximum number of tokens allowed in prompt.").nullable().optional(),
|
|
39
39
|
throughput_last_30m: OpenrouterListZdrEndpoints_ThroughputMetricsSchema.nullable().optional(),
|
|
40
40
|
supported_parameters: z.array(z.string()).describe("List of supported parameter names for this endpoint."),
|
|
41
41
|
max_completion_tokens: z.number().describe("Maximum number of tokens allowed in completion.").nullable().optional(),
|
|
42
|
-
supports_implicit_caching: z.boolean().describe("Whether the endpoint supports implicit caching.")
|
|
43
|
-
}).describe("Information about a specific model endpoint under Zero Data Retention.");
|
|
42
|
+
supports_implicit_caching: z.boolean().describe("Whether the endpoint supports implicit caching.").nullable()
|
|
43
|
+
}).passthrough().describe("Information about a specific model endpoint under Zero Data Retention.");
|
|
44
44
|
const openrouterListZdrEndpoints = action("OPENROUTER_LIST_ZDR_ENDPOINTS", {
|
|
45
45
|
slug: "openrouter-list-zdr-endpoints",
|
|
46
46
|
name: "OpenRouter List ZDR Endpoints",
|
|
47
47
|
description: "Tool to preview the impact of Zero Data Retention (ZDR) on the available endpoints. Use to see which model endpoints remain accessible when ZDR is enabled.",
|
|
48
48
|
input: OpenrouterListZdrEndpointsInput,
|
|
49
|
-
output: z.object({ data: z.array(OpenrouterListZdrEndpoints_ZdrEndpointSchema).describe("List of model endpoints available under Zero Data Retention policy.") }).describe("Response schema for listing ZDR endpoints.")
|
|
49
|
+
output: z.object({ data: z.array(OpenrouterListZdrEndpoints_ZdrEndpointSchema).describe("List of model endpoints available under Zero Data Retention policy.") }).passthrough().describe("Response schema for listing ZDR endpoints.")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { openrouterListZdrEndpoints };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-zdr-endpoints.mjs","names":[],"sources":["../../src/actions/list-zdr-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListZdrEndpointsInput
|
|
1
|
+
{"version":3,"file":"list-zdr-endpoints.mjs","names":[],"sources":["../../src/actions/list-zdr-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListZdrEndpointsInput = 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}).describe(\"Request parameters for listing Zero Data Retention (ZDR) endpoints.\");\nconst OpenrouterListZdrEndpoints_ZdrPricingSchema = 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}).passthrough().describe(\"Pricing rates for different usage metrics.\");\nconst OpenrouterListZdrEndpoints_LatencyMetricsSchema = z.object({\n p50: z.number().describe(\"50th percentile latency in seconds.\").nullable().optional(),\n p75: z.number().describe(\"75th percentile latency in seconds.\").nullable().optional(),\n p90: z.number().describe(\"90th percentile latency in seconds.\").nullable().optional(),\n p99: z.number().describe(\"99th percentile latency in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Latency percentile metrics over the last 30 minutes.\");\nconst OpenrouterListZdrEndpoints_ThroughputMetricsSchema = z.object({\n p50: z.number().describe(\"50th percentile throughput (tokens per second).\").nullable().optional(),\n p75: z.number().describe(\"75th percentile throughput (tokens per second).\").nullable().optional(),\n p90: z.number().describe(\"90th percentile throughput (tokens per second).\").nullable().optional(),\n p99: z.number().describe(\"99th percentile throughput (tokens per second).\").nullable().optional(),\n}).passthrough().describe(\"Throughput percentile metrics over the last 30 minutes.\");\nconst OpenrouterListZdrEndpoints_ZdrEndpointSchema = z.object({\n tag: z.string().describe(\"Tag identifying the model or provider category.\").nullable(),\n name: z.string().describe(\"Endpoint display name.\").nullable(),\n status: z.number().int().describe(\"Status code indicating endpoint availability.\").nullable().optional(),\n pricing: OpenrouterListZdrEndpoints_ZdrPricingSchema.nullable(),\n model_id: z.string().describe(\"Unique model identifier.\").nullable(),\n model_name: z.string().describe(\"Human-readable model name.\").nullable(),\n quantization: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\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 window.\").nullable(),\n uptime_last_30m: z.number().describe(\"Uptime percentage over the last 30 minutes.\").nullable().optional(),\n latency_last_30m: OpenrouterListZdrEndpoints_LatencyMetricsSchema.nullable().optional(),\n max_prompt_tokens: z.number().describe(\"Maximum number of tokens allowed in prompt.\").nullable().optional(),\n throughput_last_30m: OpenrouterListZdrEndpoints_ThroughputMetricsSchema.nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"List of supported parameter names for this endpoint.\"),\n max_completion_tokens: z.number().describe(\"Maximum number of tokens allowed in completion.\").nullable().optional(),\n supports_implicit_caching: z.boolean().describe(\"Whether the endpoint supports implicit caching.\").nullable(),\n}).passthrough().describe(\"Information about a specific model endpoint under Zero Data Retention.\");\nexport const OpenrouterListZdrEndpointsOutput = z.object({\n data: z.array(OpenrouterListZdrEndpoints_ZdrEndpointSchema).describe(\"List of model endpoints available under Zero Data Retention policy.\"),\n}).passthrough().describe(\"Response schema for listing ZDR endpoints.\");\n\nexport const openrouterListZdrEndpoints = action(\"OPENROUTER_LIST_ZDR_ENDPOINTS\", {\n slug: \"openrouter-list-zdr-endpoints\",\n name: \"OpenRouter List ZDR Endpoints\",\n description: \"Tool to preview the impact of Zero Data Retention (ZDR) on the available endpoints. Use to see which model endpoints remain accessible when ZDR is enabled.\",\n input: OpenrouterListZdrEndpointsInput,\n output: OpenrouterListZdrEndpointsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,8CAA8C,EAAE,OAAO;CAC3D,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,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAM,qDAAqD,EAA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CACxG,kBAAkB,gDAAgD,SAAS,CAAC,CAAC,SAAS;CACtF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,qBAAqB,mDAAmD,SAAS,CAAC,CAAC,SAAS;CAC5F,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD;CACzG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,2BAA2B,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAKlG,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,MAAM,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,qEAAqE,EAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const openrouterCatalog = {
|
|
|
7
7
|
"category": "Artificial Intelligence",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/openrouter",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "OpenRouter API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your OpenRouter API key used for authentication."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.openrouterCatalog = openrouterCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const openrouterCatalog = {\n \"slug\": \"openrouter\",\n \"name\": \"Openrouter\",\n \"description\": \"OpenRouter is a platform that provides a unified API for accessing various large language models (LLMs) from different providers, allowing developers to integrate multiple AI models seamlessly.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/openrouter\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const openrouterCatalog = {\n \"slug\": \"openrouter\",\n \"name\": \"Openrouter\",\n \"description\": \"OpenRouter is a platform that provides a unified API for accessing various large language models (LLMs) from different providers, allowing developers to integrate multiple AI models seamlessly.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/openrouter\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"OpenRouter API Key\",\n \"secret\": true,\n \"description\": \"Your OpenRouter API key used for authentication.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const openrouterCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/openrouter";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "OpenRouter API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your OpenRouter API key used for authentication.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { openrouterCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const openrouterCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/openrouter";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "OpenRouter API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your OpenRouter API key used for authentication.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { openrouterCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const openrouterCatalog = {
|
|
|
7
7
|
"category": "Artificial Intelligence",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/openrouter",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "OpenRouter API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your OpenRouter API key used for authentication."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { openrouterCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const openrouterCatalog = {\n \"slug\": \"openrouter\",\n \"name\": \"Openrouter\",\n \"description\": \"OpenRouter is a platform that provides a unified API for accessing various large language models (LLMs) from different providers, allowing developers to integrate multiple AI models seamlessly.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/openrouter\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const openrouterCatalog = {\n \"slug\": \"openrouter\",\n \"name\": \"Openrouter\",\n \"description\": \"OpenRouter is a platform that provides a unified API for accessing various large language models (LLMs) from different providers, allowing developers to integrate multiple AI models seamlessly.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/openrouter\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"OpenRouter API Key\",\n \"secret\": true,\n \"description\": \"Your OpenRouter API key used for authentication.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/openrouter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|