@keystrokehq/openrouter 0.1.0 → 0.1.2

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.
Files changed (113) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-chat-completion.cjs +13 -13
  4. package/dist/actions/create-chat-completion.cjs.map +1 -1
  5. package/dist/actions/create-chat-completion.d.cts +90 -3
  6. package/dist/actions/create-chat-completion.d.cts.map +1 -1
  7. package/dist/actions/create-chat-completion.d.mts +90 -3
  8. package/dist/actions/create-chat-completion.d.mts.map +1 -1
  9. package/dist/actions/create-chat-completion.mjs +13 -13
  10. package/dist/actions/create-chat-completion.mjs.map +1 -1
  11. package/dist/actions/create-coinbase-charge.cjs +3 -3
  12. package/dist/actions/create-coinbase-charge.cjs.map +1 -1
  13. package/dist/actions/create-coinbase-charge.d.cts +24 -3
  14. package/dist/actions/create-coinbase-charge.d.cts.map +1 -1
  15. package/dist/actions/create-coinbase-charge.d.mts +24 -3
  16. package/dist/actions/create-coinbase-charge.d.mts.map +1 -1
  17. package/dist/actions/create-coinbase-charge.mjs +3 -3
  18. package/dist/actions/create-coinbase-charge.mjs.map +1 -1
  19. package/dist/actions/create-message.cjs +7 -7
  20. package/dist/actions/create-message.cjs.map +1 -1
  21. package/dist/actions/create-message.d.cts +144 -3
  22. package/dist/actions/create-message.d.cts.map +1 -1
  23. package/dist/actions/create-message.d.mts +144 -3
  24. package/dist/actions/create-message.d.mts.map +1 -1
  25. package/dist/actions/create-message.mjs +7 -7
  26. package/dist/actions/create-message.mjs.map +1 -1
  27. package/dist/actions/get-credits.cjs +2 -2
  28. package/dist/actions/get-credits.cjs.map +1 -1
  29. package/dist/actions/get-credits.d.cts +8 -3
  30. package/dist/actions/get-credits.d.cts.map +1 -1
  31. package/dist/actions/get-credits.d.mts +8 -3
  32. package/dist/actions/get-credits.d.mts.map +1 -1
  33. package/dist/actions/get-credits.mjs +2 -2
  34. package/dist/actions/get-credits.mjs.map +1 -1
  35. package/dist/actions/get-current-key.cjs +16 -16
  36. package/dist/actions/get-current-key.cjs.map +1 -1
  37. package/dist/actions/get-current-key.d.cts +34 -3
  38. package/dist/actions/get-current-key.d.cts.map +1 -1
  39. package/dist/actions/get-current-key.d.mts +34 -3
  40. package/dist/actions/get-current-key.d.mts.map +1 -1
  41. package/dist/actions/get-current-key.mjs +16 -16
  42. package/dist/actions/get-current-key.mjs.map +1 -1
  43. package/dist/actions/get-generation.cjs +19 -19
  44. package/dist/actions/get-generation.cjs.map +1 -1
  45. package/dist/actions/get-generation.d.cts +37 -3
  46. package/dist/actions/get-generation.d.cts.map +1 -1
  47. package/dist/actions/get-generation.d.mts +37 -3
  48. package/dist/actions/get-generation.d.mts.map +1 -1
  49. package/dist/actions/get-generation.mjs +19 -19
  50. package/dist/actions/get-generation.mjs.map +1 -1
  51. package/dist/actions/get-models-count.cjs +1 -1
  52. package/dist/actions/get-models-count.cjs.map +1 -1
  53. package/dist/actions/get-models-count.d.cts +13 -3
  54. package/dist/actions/get-models-count.d.cts.map +1 -1
  55. package/dist/actions/get-models-count.d.mts +13 -3
  56. package/dist/actions/get-models-count.d.mts.map +1 -1
  57. package/dist/actions/get-models-count.mjs +1 -1
  58. package/dist/actions/get-models-count.mjs.map +1 -1
  59. package/dist/actions/list-available-models.cjs +12 -12
  60. package/dist/actions/list-available-models.cjs.map +1 -1
  61. package/dist/actions/list-available-models.d.cts +68 -3
  62. package/dist/actions/list-available-models.d.cts.map +1 -1
  63. package/dist/actions/list-available-models.d.mts +68 -3
  64. package/dist/actions/list-available-models.d.mts.map +1 -1
  65. package/dist/actions/list-available-models.mjs +12 -12
  66. package/dist/actions/list-available-models.mjs.map +1 -1
  67. package/dist/actions/list-embedding-models.cjs +10 -10
  68. package/dist/actions/list-embedding-models.cjs.map +1 -1
  69. package/dist/actions/list-embedding-models.d.cts +41 -3
  70. package/dist/actions/list-embedding-models.d.cts.map +1 -1
  71. package/dist/actions/list-embedding-models.d.mts +41 -3
  72. package/dist/actions/list-embedding-models.d.mts.map +1 -1
  73. package/dist/actions/list-embedding-models.mjs +10 -10
  74. package/dist/actions/list-embedding-models.mjs.map +1 -1
  75. package/dist/actions/list-model-endpoints.cjs +9 -9
  76. package/dist/actions/list-model-endpoints.cjs.map +1 -1
  77. package/dist/actions/list-model-endpoints.d.cts +39 -3
  78. package/dist/actions/list-model-endpoints.d.cts.map +1 -1
  79. package/dist/actions/list-model-endpoints.d.mts +39 -3
  80. package/dist/actions/list-model-endpoints.d.mts.map +1 -1
  81. package/dist/actions/list-model-endpoints.mjs +9 -9
  82. package/dist/actions/list-model-endpoints.mjs.map +1 -1
  83. package/dist/actions/list-providers.cjs +1 -1
  84. package/dist/actions/list-providers.cjs.map +1 -1
  85. package/dist/actions/list-providers.d.cts +9 -3
  86. package/dist/actions/list-providers.d.cts.map +1 -1
  87. package/dist/actions/list-providers.d.mts +9 -3
  88. package/dist/actions/list-providers.d.mts.map +1 -1
  89. package/dist/actions/list-providers.mjs +1 -1
  90. package/dist/actions/list-providers.mjs.map +1 -1
  91. package/dist/actions/list-user-models.cjs +8 -8
  92. package/dist/actions/list-user-models.cjs.map +1 -1
  93. package/dist/actions/list-user-models.d.cts +45 -3
  94. package/dist/actions/list-user-models.d.cts.map +1 -1
  95. package/dist/actions/list-user-models.d.mts +45 -3
  96. package/dist/actions/list-user-models.d.mts.map +1 -1
  97. package/dist/actions/list-user-models.mjs +8 -8
  98. package/dist/actions/list-user-models.mjs.map +1 -1
  99. package/dist/actions/list-zdr-endpoints.cjs +9 -9
  100. package/dist/actions/list-zdr-endpoints.cjs.map +1 -1
  101. package/dist/actions/list-zdr-endpoints.d.cts +43 -3
  102. package/dist/actions/list-zdr-endpoints.d.cts.map +1 -1
  103. package/dist/actions/list-zdr-endpoints.d.mts +43 -3
  104. package/dist/actions/list-zdr-endpoints.d.mts.map +1 -1
  105. package/dist/actions/list-zdr-endpoints.mjs +9 -9
  106. package/dist/actions/list-zdr-endpoints.mjs.map +1 -1
  107. package/dist/catalog.cjs +7 -1
  108. package/dist/catalog.cjs.map +1 -1
  109. package/dist/catalog.d.cts +8 -0
  110. package/dist/catalog.d.mts +8 -0
  111. package/dist/catalog.mjs +7 -1
  112. package/dist/catalog.mjs.map +1 -1
  113. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-models-count.d.cts","names":[],"sources":["../../src/actions/get-models-count.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG+B;AAAA,cAIhE,8BAAA,EAAgC,CAAA,CAAE,UAE8B;AAAA,cAEhE,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-models-count.d.cts","names":[],"sources":["../../src/actions/get-models-count.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAO7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-models-count.d.ts
4
- declare const OpenrouterGetModelsCountInput: z.ZodTypeAny;
5
- declare const OpenrouterGetModelsCountOutput: z.ZodTypeAny;
6
- declare const openrouterGetModelsCount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenrouterGetModelsCountInput: z.ZodObject<{
5
+ x_title: z.ZodOptional<z.ZodString>;
6
+ http_referer: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const OpenrouterGetModelsCountOutput: z.ZodObject<{
9
+ data: z.ZodNullable<z.ZodObject<{
10
+ count: z.ZodNullable<z.ZodNumber>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const openrouterGetModelsCount: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ x_title?: string | undefined;
15
+ http_referer?: string | undefined;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { openrouterGetModelsCount };
9
19
  //# sourceMappingURL=get-models-count.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-models-count.d.mts","names":[],"sources":["../../src/actions/get-models-count.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG+B;AAAA,cAIhE,8BAAA,EAAgC,CAAA,CAAE,UAE8B;AAAA,cAEhE,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-models-count.d.mts","names":[],"sources":["../../src/actions/get-models-count.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAO7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -5,7 +5,7 @@ const OpenrouterGetModelsCountInput = z.object({
5
5
  x_title: z.string().describe("The app display name allows you to customize how your app appears in OpenRouter's dashboard.").optional(),
6
6
  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()
7
7
  }).describe("Request model for getting the total count of available models.");
8
- const OpenrouterGetModelsCount_ModelsCountDataSchema = z.object({ count: z.number().int().describe("Total number of available models") }).describe("Container for the model count.");
8
+ const OpenrouterGetModelsCount_ModelsCountDataSchema = z.object({ count: z.number().int().describe("Total number of available models").nullable() }).describe("Container for the model count.");
9
9
  const openrouterGetModelsCount = action("OPENROUTER_GET_MODELS_COUNT", {
10
10
  slug: "openrouter-get-models-count",
11
11
  name: "Get Models Count",
@@ -1 +1 @@
1
- {"version":3,"file":"get-models-count.mjs","names":[],"sources":["../../src/actions/get-models-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterGetModelsCountInput: z.ZodTypeAny = 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 model for getting the total count of available models.\");\nconst OpenrouterGetModelsCount_ModelsCountDataSchema: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Total number of available models\"),\n}).describe(\"Container for the model count.\");\nexport const OpenrouterGetModelsCountOutput: z.ZodTypeAny = z.object({\n data: OpenrouterGetModelsCount_ModelsCountDataSchema.nullable(),\n}).describe(\"Response model containing the total count of available models.\");\n\nexport const openrouterGetModelsCount = action(\"OPENROUTER_GET_MODELS_COUNT\", {\n slug: \"openrouter-get-models-count\",\n name: \"Get Models Count\",\n description: \"Tool to get the total count of available models on OpenRouter. Use when you need to know how many models are available without fetching the full list.\",\n input: OpenrouterGetModelsCountInput,\n output: OpenrouterGetModelsCountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,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,gEAAgE;AAC5E,MAAM,iDAA+D,EAAE,OAAO,EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,EACrE,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAK5C,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-models-count.mjs","names":[],"sources":["../../src/actions/get-models-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterGetModelsCountInput = 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 model for getting the total count of available models.\");\nconst OpenrouterGetModelsCount_ModelsCountDataSchema = z.object({\n count: z.number().int().describe(\"Total number of available models\").nullable(),\n}).describe(\"Container for the model count.\");\nexport const OpenrouterGetModelsCountOutput = z.object({\n data: OpenrouterGetModelsCount_ModelsCountDataSchema.nullable(),\n}).describe(\"Response model containing the total count of available models.\");\n\nexport const openrouterGetModelsCount = action(\"OPENROUTER_GET_MODELS_COUNT\", {\n slug: \"openrouter-get-models-count\",\n name: \"Get Models Count\",\n description: \"Tool to get the total count of available models on OpenRouter. Use when you need to know how many models are available without fetching the full list.\",\n input: OpenrouterGetModelsCountInput,\n output: OpenrouterGetModelsCountOutput,\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,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,iDAAiD,EAAE,OAAO,EAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAK5C,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
@@ -22,9 +22,9 @@ const OpenrouterListAvailableModelsInput = zod.z.object({
22
22
  const OpenrouterListAvailableModels_PricingSchema = zod.z.object({
23
23
  audio: zod.z.string().describe("Price per audio unit.").nullable().optional(),
24
24
  image: zod.z.string().describe("Price per image.").nullable().optional(),
25
- prompt: zod.z.string().describe("Price per prompt token."),
25
+ prompt: zod.z.string().describe("Price per prompt token.").nullable(),
26
26
  request: zod.z.string().describe("Price per request.").nullable().optional(),
27
- completion: zod.z.string().describe("Price per completion token."),
27
+ completion: zod.z.string().describe("Price per completion token.").nullable(),
28
28
  web_search: zod.z.string().describe("Price per web search.").nullable().optional(),
29
29
  input_cache_read: zod.z.string().describe("Price per input cache read.").nullable().optional(),
30
30
  input_cache_write: zod.z.string().describe("Price per input cache write.").nullable().optional(),
@@ -32,13 +32,13 @@ const OpenrouterListAvailableModels_PricingSchema = zod.z.object({
32
32
  });
33
33
  const OpenrouterListAvailableModels_ArchitectureSchema = zod.z.object({
34
34
  modality: zod.z.string().describe("Combined modality string (e.g., 'text+image->text').").nullable().optional(),
35
- tokenizer: zod.z.string().describe("Tokenization method used."),
35
+ tokenizer: zod.z.string().describe("Tokenization method used.").nullable(),
36
36
  instruct_type: zod.z.string().describe("Instruction tuning type for the model.").nullable().optional(),
37
37
  input_modalities: zod.z.array(zod.z.string()).describe("Supported input types (e.g., 'text', 'image')."),
38
38
  output_modalities: zod.z.array(zod.z.string()).describe("Supported output types (e.g., 'text').")
39
39
  });
40
40
  const OpenrouterListAvailableModels_TopProviderSchema = zod.z.object({
41
- is_moderated: zod.z.boolean().describe("Indicates if the content is moderated."),
41
+ is_moderated: zod.z.boolean().describe("Indicates if the content is moderated.").nullable(),
42
42
  context_length: zod.z.number().int().describe("Context window size provided by this provider.").nullable().optional(),
43
43
  max_completion_tokens: zod.z.number().int().describe("Maximum tokens that can be generated in the completion.").nullable().optional()
44
44
  });
@@ -48,19 +48,19 @@ const OpenrouterListAvailableModels_DefaultParametersSchema = zod.z.object({
48
48
  frequency_penalty: zod.z.number().describe("Default frequency penalty setting.").nullable().optional()
49
49
  }).describe("Default parameter values for the model.");
50
50
  const OpenrouterListAvailableModels_PerRequestLimitsSchema = zod.z.object({
51
- prompt_tokens: zod.z.number().describe("Maximum prompt tokens allowed per request."),
52
- completion_tokens: zod.z.number().describe("Maximum completion tokens allowed per request.")
51
+ prompt_tokens: zod.z.number().describe("Maximum prompt tokens allowed per request.").nullable(),
52
+ completion_tokens: zod.z.number().describe("Maximum completion tokens allowed per request.").nullable()
53
53
  }).describe("Rate limiting information for the model.");
54
54
  const OpenrouterListAvailableModels_ModelInfoSchema = zod.z.object({
55
- id: zod.z.string().describe("Unique model identifier."),
56
- name: zod.z.string().describe("Human-readable display name for the model."),
57
- created: zod.z.number().describe("Unix timestamp when the model was added."),
55
+ id: zod.z.string().describe("Unique model identifier.").nullable(),
56
+ name: zod.z.string().describe("Human-readable display name for the model.").nullable(),
57
+ created: zod.z.number().describe("Unix timestamp when the model was added.").nullable(),
58
58
  pricing: OpenrouterListAvailableModels_PricingSchema.nullable(),
59
- description: zod.z.string().describe("Detailed description of the model's capabilities."),
59
+ description: zod.z.string().describe("Detailed description of the model's capabilities.").nullable(),
60
60
  architecture: OpenrouterListAvailableModels_ArchitectureSchema.nullable(),
61
61
  top_provider: OpenrouterListAvailableModels_TopProviderSchema.nullable(),
62
- canonical_slug: zod.z.string().describe("Permanent slug for the model (immutable)."),
63
- context_length: zod.z.number().int().describe("Maximum context window size in tokens."),
62
+ canonical_slug: zod.z.string().describe("Permanent slug for the model (immutable).").nullable(),
63
+ context_length: zod.z.number().int().describe("Maximum context window size in tokens.").nullable(),
64
64
  expiration_date: zod.z.string().describe("ISO 8601 date when the model will be deprecated.").nullable().optional(),
65
65
  hugging_face_id: zod.z.string().describe("Identifier for the model on Hugging Face.").nullable().optional(),
66
66
  default_parameters: OpenrouterListAvailableModels_DefaultParametersSchema.nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"list-available-models.cjs","names":["z","action"],"sources":["../../src/actions/list-available-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListAvailableModelsInput: z.ZodTypeAny = z.object({\n use_rss: z.boolean().default(false).describe(\"Return RSS XML feed instead of JSON (BETA).\").optional(),\n category: z.enum([\"programming\", \"roleplay\", \"marketing\", \"marketing/seo\", \"technology\", \"science\", \"translation\", \"legal\", \"finance\", \"health\", \"trivia\", \"academia\"]).describe(\"Valid categories for filtering models.\").optional(),\n use_rss_chat_links: z.boolean().default(false).describe(\"Use chat URLs instead of model page URLs in RSS items (only applies when use_rss=true) (BETA).\").optional(),\n});\nconst OpenrouterListAvailableModels_PricingSchema: z.ZodTypeAny = z.object({\n audio: z.string().describe(\"Price per audio unit.\").nullable().optional(),\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\"),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\"),\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});\nconst OpenrouterListAvailableModels_ArchitectureSchema: z.ZodTypeAny = z.object({\n modality: z.string().describe(\"Combined modality string (e.g., 'text+image->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\"),\n instruct_type: z.string().describe(\"Instruction tuning type for the model.\").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});\nconst OpenrouterListAvailableModels_TopProviderSchema: z.ZodTypeAny = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\"),\n context_length: z.number().int().describe(\"Context window size provided by this provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum tokens that can be generated in the completion.\").nullable().optional(),\n});\nconst OpenrouterListAvailableModels_DefaultParametersSchema: z.ZodTypeAny = z.object({\n top_p: z.number().describe(\"Default top_p setting.\").nullable().optional(),\n temperature: z.number().describe(\"Default temperature setting.\").nullable().optional(),\n frequency_penalty: z.number().describe(\"Default frequency penalty setting.\").nullable().optional(),\n}).describe(\"Default parameter values for the model.\");\nconst OpenrouterListAvailableModels_PerRequestLimitsSchema: z.ZodTypeAny = z.object({\n prompt_tokens: z.number().describe(\"Maximum prompt tokens allowed per request.\"),\n completion_tokens: z.number().describe(\"Maximum completion tokens allowed per request.\"),\n}).describe(\"Rate limiting information for the model.\");\nconst OpenrouterListAvailableModels_ModelInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique model identifier.\"),\n name: z.string().describe(\"Human-readable display name for the model.\"),\n created: z.number().describe(\"Unix timestamp when the model was added.\"),\n pricing: OpenrouterListAvailableModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\"),\n architecture: OpenrouterListAvailableModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListAvailableModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\"),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\"),\n expiration_date: z.string().describe(\"ISO 8601 date when the model will be deprecated.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: OpenrouterListAvailableModels_DefaultParametersSchema.nullable(),\n per_request_limits: OpenrouterListAvailableModels_PerRequestLimitsSchema.nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"Supported API parameters for this model.\"),\n});\nexport const OpenrouterListAvailableModelsOutput: z.ZodTypeAny = z.object({\n data: z.array(OpenrouterListAvailableModels_ModelInfoSchema).describe(\"List of available models.\"),\n});\n\nexport const openrouterListAvailableModels = action(\"OPENROUTER_LIST_AVAILABLE_MODELS\", {\n slug: \"openrouter-list-available-models\",\n name: \"List Available Models\",\n description: \"Tool to list available models via OpenRouter API. Use after confirming authentication to fetch the model catalog. Use exact model IDs returned here in OPENROUTER_CREATE_CHAT_COMPLETION or OPENROUTER_CREATE_COMPLETION calls — hard-coded IDs may break when the catalog changes. Use exact author and slug values from this response as inputs to OPENROUTER_LIST_MODEL_ENDPOINTS. Models have varying capabilities (e.g., tools, reasoning); verify individual model capabilities before downstream use. Pricing and latency metadata may be null or approximate — handle missing values in routing logic.\",\n input: OpenrouterListAvailableModelsInput,\n output: OpenrouterListAvailableModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrG,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAY;EAAa;EAAiB;EAAc;EAAW;EAAe;EAAS;EAAW;EAAU;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpO,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACrK,CAAC;AACD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC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,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoB,sDAAsD,SAAS;CACnF,oBAAoB,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAC7F,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAC/F,CAAC;AACD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,MAAMA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,2BAA2B,EACnG,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-available-models.cjs","names":["z","action"],"sources":["../../src/actions/list-available-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListAvailableModelsInput = z.object({\n use_rss: z.boolean().default(false).describe(\"Return RSS XML feed instead of JSON (BETA).\").optional(),\n category: z.enum([\"programming\", \"roleplay\", \"marketing\", \"marketing/seo\", \"technology\", \"science\", \"translation\", \"legal\", \"finance\", \"health\", \"trivia\", \"academia\"]).describe(\"Valid categories for filtering models.\").optional(),\n use_rss_chat_links: z.boolean().default(false).describe(\"Use chat URLs instead of model page URLs in RSS items (only applies when use_rss=true) (BETA).\").optional(),\n});\nconst OpenrouterListAvailableModels_PricingSchema = z.object({\n audio: z.string().describe(\"Price per audio unit.\").nullable().optional(),\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});\nconst OpenrouterListAvailableModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Combined modality string (e.g., 'text+image->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction tuning type for the model.\").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});\nconst OpenrouterListAvailableModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable(),\n context_length: z.number().int().describe(\"Context window size provided by this provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum tokens that can be generated in the completion.\").nullable().optional(),\n});\nconst OpenrouterListAvailableModels_DefaultParametersSchema = z.object({\n top_p: z.number().describe(\"Default top_p setting.\").nullable().optional(),\n temperature: z.number().describe(\"Default temperature setting.\").nullable().optional(),\n frequency_penalty: z.number().describe(\"Default frequency penalty setting.\").nullable().optional(),\n}).describe(\"Default parameter values for the model.\");\nconst OpenrouterListAvailableModels_PerRequestLimitsSchema = z.object({\n prompt_tokens: z.number().describe(\"Maximum prompt tokens allowed per request.\").nullable(),\n completion_tokens: z.number().describe(\"Maximum completion tokens allowed per request.\").nullable(),\n}).describe(\"Rate limiting information for the model.\");\nconst OpenrouterListAvailableModels_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: OpenrouterListAvailableModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable(),\n architecture: OpenrouterListAvailableModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListAvailableModels_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(\"ISO 8601 date when the model will be deprecated.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: OpenrouterListAvailableModels_DefaultParametersSchema.nullable(),\n per_request_limits: OpenrouterListAvailableModels_PerRequestLimitsSchema.nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"Supported API parameters for this model.\"),\n});\nexport const OpenrouterListAvailableModelsOutput = z.object({\n data: z.array(OpenrouterListAvailableModels_ModelInfoSchema).describe(\"List of available models.\"),\n});\n\nexport const openrouterListAvailableModels = action(\"OPENROUTER_LIST_AVAILABLE_MODELS\", {\n slug: \"openrouter-list-available-models\",\n name: \"List Available Models\",\n description: \"Tool to list available models via OpenRouter API. Use after confirming authentication to fetch the model catalog. Use exact model IDs returned here in OPENROUTER_CREATE_CHAT_COMPLETION or OPENROUTER_CREATE_COMPLETION calls — hard-coded IDs may break when the catalog changes. Use exact author and slug values from this response as inputs to OPENROUTER_LIST_MODEL_ENDPOINTS. Models have varying capabilities (e.g., tools, reasoning); verify individual model capabilities before downstream use. Pricing and latency metadata may be null or approximate — handle missing values in routing logic.\",\n input: OpenrouterListAvailableModelsInput,\n output: OpenrouterListAvailableModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrG,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAY;EAAa;EAAiB;EAAc;EAAW;EAAe;EAAS;EAAW;EAAU;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpO,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAA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declare const OpenrouterListAvailableModelsOutput: z.ZodTypeAny;
6
- declare const openrouterListAvailableModels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenrouterListAvailableModelsInput: z.ZodObject<{
5
+ use_rss: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ category: z.ZodOptional<z.ZodEnum<{
7
+ programming: "programming";
8
+ roleplay: "roleplay";
9
+ marketing: "marketing";
10
+ "marketing/seo": "marketing/seo";
11
+ technology: "technology";
12
+ science: "science";
13
+ translation: "translation";
14
+ legal: "legal";
15
+ finance: "finance";
16
+ health: "health";
17
+ trivia: "trivia";
18
+ academia: "academia";
19
+ }>>;
20
+ use_rss_chat_links: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
21
+ }, z.core.$strip>;
22
+ declare const OpenrouterListAvailableModelsOutput: z.ZodObject<{
23
+ data: z.ZodArray<z.ZodObject<{
24
+ id: z.ZodNullable<z.ZodString>;
25
+ name: z.ZodNullable<z.ZodString>;
26
+ created: z.ZodNullable<z.ZodNumber>;
27
+ pricing: z.ZodNullable<z.ZodObject<{
28
+ audio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ prompt: z.ZodNullable<z.ZodString>;
31
+ request: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ completion: z.ZodNullable<z.ZodString>;
33
+ web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, z.core.$strip>>;
38
+ description: z.ZodNullable<z.ZodString>;
39
+ architecture: z.ZodNullable<z.ZodObject<{
40
+ modality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ tokenizer: z.ZodNullable<z.ZodString>;
42
+ instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ input_modalities: z.ZodArray<z.ZodString>;
44
+ output_modalities: z.ZodArray<z.ZodString>;
45
+ }, z.core.$strip>>;
46
+ top_provider: z.ZodNullable<z.ZodObject<{
47
+ is_moderated: z.ZodNullable<z.ZodBoolean>;
48
+ context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
+ }, z.core.$strip>>;
51
+ canonical_slug: z.ZodNullable<z.ZodString>;
52
+ context_length: z.ZodNullable<z.ZodNumber>;
53
+ expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ default_parameters: z.ZodNullable<z.ZodObject<{
56
+ top_p: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
57
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
+ frequency_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ }, z.core.$strip>>;
60
+ per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
61
+ prompt_tokens: z.ZodNullable<z.ZodNumber>;
62
+ completion_tokens: z.ZodNullable<z.ZodNumber>;
63
+ }, z.core.$strip>>>;
64
+ supported_parameters: z.ZodArray<z.ZodString>;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$strip>;
67
+ declare const openrouterListAvailableModels: import("@keystrokehq/action").WorkflowActionDefinition<{
68
+ use_rss?: boolean | undefined;
69
+ category?: "programming" | "roleplay" | "marketing" | "marketing/seo" | "technology" | "science" | "translation" | "legal" | "finance" | "health" | "trivia" | "academia" | undefined;
70
+ use_rss_chat_links?: boolean | undefined;
71
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
72
  //#endregion
8
73
  export { openrouterListAvailableModels };
9
74
  //# sourceMappingURL=list-available-models.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-available-models.d.cts","names":[],"sources":["../../src/actions/list-available-models.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIjD;AAAA,cAiDW,mCAAA,EAAqC,CAAA,CAAE,UAElD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-available-models.d.cts","names":[],"sources":["../../src/actions/list-available-models.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAqDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
@@ -1,9 +1,74 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-available-models.d.ts
4
- declare const OpenrouterListAvailableModelsInput: z.ZodTypeAny;
5
- declare const OpenrouterListAvailableModelsOutput: z.ZodTypeAny;
6
- declare const openrouterListAvailableModels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenrouterListAvailableModelsInput: z.ZodObject<{
5
+ use_rss: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ category: z.ZodOptional<z.ZodEnum<{
7
+ programming: "programming";
8
+ roleplay: "roleplay";
9
+ marketing: "marketing";
10
+ "marketing/seo": "marketing/seo";
11
+ technology: "technology";
12
+ science: "science";
13
+ translation: "translation";
14
+ legal: "legal";
15
+ finance: "finance";
16
+ health: "health";
17
+ trivia: "trivia";
18
+ academia: "academia";
19
+ }>>;
20
+ use_rss_chat_links: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
21
+ }, z.core.$strip>;
22
+ declare const OpenrouterListAvailableModelsOutput: z.ZodObject<{
23
+ data: z.ZodArray<z.ZodObject<{
24
+ id: z.ZodNullable<z.ZodString>;
25
+ name: z.ZodNullable<z.ZodString>;
26
+ created: z.ZodNullable<z.ZodNumber>;
27
+ pricing: z.ZodNullable<z.ZodObject<{
28
+ audio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ prompt: z.ZodNullable<z.ZodString>;
31
+ request: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ completion: z.ZodNullable<z.ZodString>;
33
+ web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, z.core.$strip>>;
38
+ description: z.ZodNullable<z.ZodString>;
39
+ architecture: z.ZodNullable<z.ZodObject<{
40
+ modality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ tokenizer: z.ZodNullable<z.ZodString>;
42
+ instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ input_modalities: z.ZodArray<z.ZodString>;
44
+ output_modalities: z.ZodArray<z.ZodString>;
45
+ }, z.core.$strip>>;
46
+ top_provider: z.ZodNullable<z.ZodObject<{
47
+ is_moderated: z.ZodNullable<z.ZodBoolean>;
48
+ context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
+ }, z.core.$strip>>;
51
+ canonical_slug: z.ZodNullable<z.ZodString>;
52
+ context_length: z.ZodNullable<z.ZodNumber>;
53
+ expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ default_parameters: z.ZodNullable<z.ZodObject<{
56
+ top_p: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
57
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
+ frequency_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ }, z.core.$strip>>;
60
+ per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
61
+ prompt_tokens: z.ZodNullable<z.ZodNumber>;
62
+ completion_tokens: z.ZodNullable<z.ZodNumber>;
63
+ }, z.core.$strip>>>;
64
+ supported_parameters: z.ZodArray<z.ZodString>;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$strip>;
67
+ declare const openrouterListAvailableModels: import("@keystrokehq/action").WorkflowActionDefinition<{
68
+ use_rss?: boolean | undefined;
69
+ category?: "programming" | "roleplay" | "marketing" | "marketing/seo" | "technology" | "science" | "translation" | "legal" | "finance" | "health" | "trivia" | "academia" | undefined;
70
+ use_rss_chat_links?: boolean | undefined;
71
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
72
  //#endregion
8
73
  export { openrouterListAvailableModels };
9
74
  //# sourceMappingURL=list-available-models.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-available-models.d.mts","names":[],"sources":["../../src/actions/list-available-models.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIjD;AAAA,cAiDW,mCAAA,EAAqC,CAAA,CAAE,UAElD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-available-models.d.mts","names":[],"sources":["../../src/actions/list-available-models.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAqDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
@@ -22,9 +22,9 @@ const OpenrouterListAvailableModelsInput = z.object({
22
22
  const OpenrouterListAvailableModels_PricingSchema = z.object({
23
23
  audio: z.string().describe("Price per audio unit.").nullable().optional(),
24
24
  image: z.string().describe("Price per image.").nullable().optional(),
25
- prompt: z.string().describe("Price per prompt token."),
25
+ prompt: z.string().describe("Price per prompt token.").nullable(),
26
26
  request: z.string().describe("Price per request.").nullable().optional(),
27
- completion: z.string().describe("Price per completion token."),
27
+ completion: z.string().describe("Price per completion token.").nullable(),
28
28
  web_search: z.string().describe("Price per web search.").nullable().optional(),
29
29
  input_cache_read: z.string().describe("Price per input cache read.").nullable().optional(),
30
30
  input_cache_write: z.string().describe("Price per input cache write.").nullable().optional(),
@@ -32,13 +32,13 @@ const OpenrouterListAvailableModels_PricingSchema = z.object({
32
32
  });
33
33
  const OpenrouterListAvailableModels_ArchitectureSchema = z.object({
34
34
  modality: z.string().describe("Combined modality string (e.g., 'text+image->text').").nullable().optional(),
35
- tokenizer: z.string().describe("Tokenization method used."),
35
+ tokenizer: z.string().describe("Tokenization method used.").nullable(),
36
36
  instruct_type: z.string().describe("Instruction tuning type for the model.").nullable().optional(),
37
37
  input_modalities: z.array(z.string()).describe("Supported input types (e.g., 'text', 'image')."),
38
38
  output_modalities: z.array(z.string()).describe("Supported output types (e.g., 'text').")
39
39
  });
40
40
  const OpenrouterListAvailableModels_TopProviderSchema = z.object({
41
- is_moderated: z.boolean().describe("Indicates if the content is moderated."),
41
+ is_moderated: z.boolean().describe("Indicates if the content is moderated.").nullable(),
42
42
  context_length: z.number().int().describe("Context window size provided by this provider.").nullable().optional(),
43
43
  max_completion_tokens: z.number().int().describe("Maximum tokens that can be generated in the completion.").nullable().optional()
44
44
  });
@@ -48,19 +48,19 @@ const OpenrouterListAvailableModels_DefaultParametersSchema = z.object({
48
48
  frequency_penalty: z.number().describe("Default frequency penalty setting.").nullable().optional()
49
49
  }).describe("Default parameter values for the model.");
50
50
  const OpenrouterListAvailableModels_PerRequestLimitsSchema = z.object({
51
- prompt_tokens: z.number().describe("Maximum prompt tokens allowed per request."),
52
- completion_tokens: z.number().describe("Maximum completion tokens allowed per request.")
51
+ prompt_tokens: z.number().describe("Maximum prompt tokens allowed per request.").nullable(),
52
+ completion_tokens: z.number().describe("Maximum completion tokens allowed per request.").nullable()
53
53
  }).describe("Rate limiting information for the model.");
54
54
  const OpenrouterListAvailableModels_ModelInfoSchema = z.object({
55
- id: z.string().describe("Unique model identifier."),
56
- name: z.string().describe("Human-readable display name for the model."),
57
- created: z.number().describe("Unix timestamp when the model was added."),
55
+ id: z.string().describe("Unique model identifier.").nullable(),
56
+ name: z.string().describe("Human-readable display name for the model.").nullable(),
57
+ created: z.number().describe("Unix timestamp when the model was added.").nullable(),
58
58
  pricing: OpenrouterListAvailableModels_PricingSchema.nullable(),
59
- description: z.string().describe("Detailed description of the model's capabilities."),
59
+ description: z.string().describe("Detailed description of the model's capabilities.").nullable(),
60
60
  architecture: OpenrouterListAvailableModels_ArchitectureSchema.nullable(),
61
61
  top_provider: OpenrouterListAvailableModels_TopProviderSchema.nullable(),
62
- canonical_slug: z.string().describe("Permanent slug for the model (immutable)."),
63
- context_length: z.number().int().describe("Maximum context window size in tokens."),
62
+ canonical_slug: z.string().describe("Permanent slug for the model (immutable).").nullable(),
63
+ context_length: z.number().int().describe("Maximum context window size in tokens.").nullable(),
64
64
  expiration_date: z.string().describe("ISO 8601 date when the model will be deprecated.").nullable().optional(),
65
65
  hugging_face_id: z.string().describe("Identifier for the model on Hugging Face.").nullable().optional(),
66
66
  default_parameters: OpenrouterListAvailableModels_DefaultParametersSchema.nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"list-available-models.mjs","names":[],"sources":["../../src/actions/list-available-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListAvailableModelsInput: z.ZodTypeAny = z.object({\n use_rss: z.boolean().default(false).describe(\"Return RSS XML feed instead of JSON (BETA).\").optional(),\n category: z.enum([\"programming\", \"roleplay\", \"marketing\", \"marketing/seo\", \"technology\", \"science\", \"translation\", \"legal\", \"finance\", \"health\", \"trivia\", \"academia\"]).describe(\"Valid categories for filtering models.\").optional(),\n use_rss_chat_links: z.boolean().default(false).describe(\"Use chat URLs instead of model page URLs in RSS items (only applies when use_rss=true) (BETA).\").optional(),\n});\nconst OpenrouterListAvailableModels_PricingSchema: z.ZodTypeAny = z.object({\n audio: z.string().describe(\"Price per audio unit.\").nullable().optional(),\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\"),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\"),\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});\nconst OpenrouterListAvailableModels_ArchitectureSchema: z.ZodTypeAny = z.object({\n modality: z.string().describe(\"Combined modality string (e.g., 'text+image->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\"),\n instruct_type: z.string().describe(\"Instruction tuning type for the model.\").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});\nconst OpenrouterListAvailableModels_TopProviderSchema: z.ZodTypeAny = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\"),\n context_length: z.number().int().describe(\"Context window size provided by this provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum tokens that can be generated in the completion.\").nullable().optional(),\n});\nconst OpenrouterListAvailableModels_DefaultParametersSchema: z.ZodTypeAny = z.object({\n top_p: z.number().describe(\"Default top_p setting.\").nullable().optional(),\n temperature: z.number().describe(\"Default temperature setting.\").nullable().optional(),\n frequency_penalty: z.number().describe(\"Default frequency penalty setting.\").nullable().optional(),\n}).describe(\"Default parameter values for the model.\");\nconst OpenrouterListAvailableModels_PerRequestLimitsSchema: z.ZodTypeAny = z.object({\n prompt_tokens: z.number().describe(\"Maximum prompt tokens allowed per request.\"),\n completion_tokens: z.number().describe(\"Maximum completion tokens allowed per request.\"),\n}).describe(\"Rate limiting information for the model.\");\nconst OpenrouterListAvailableModels_ModelInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique model identifier.\"),\n name: z.string().describe(\"Human-readable display name for the model.\"),\n created: z.number().describe(\"Unix timestamp when the model was added.\"),\n pricing: OpenrouterListAvailableModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\"),\n architecture: OpenrouterListAvailableModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListAvailableModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\"),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\"),\n expiration_date: z.string().describe(\"ISO 8601 date when the model will be deprecated.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: OpenrouterListAvailableModels_DefaultParametersSchema.nullable(),\n per_request_limits: OpenrouterListAvailableModels_PerRequestLimitsSchema.nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"Supported API parameters for this model.\"),\n});\nexport const OpenrouterListAvailableModelsOutput: z.ZodTypeAny = z.object({\n data: z.array(OpenrouterListAvailableModels_ModelInfoSchema).describe(\"List of available models.\"),\n});\n\nexport const openrouterListAvailableModels = action(\"OPENROUTER_LIST_AVAILABLE_MODELS\", {\n slug: \"openrouter-list-available-models\",\n name: \"List Available Models\",\n description: \"Tool to list available models via OpenRouter API. Use after confirming authentication to fetch the model catalog. Use exact model IDs returned here in OPENROUTER_CREATE_CHAT_COMPLETION or OPENROUTER_CREATE_COMPLETION calls — hard-coded IDs may break when the catalog changes. Use exact author and slug values from this response as inputs to OPENROUTER_LIST_MODEL_ENDPOINTS. Models have varying capabilities (e.g., tools, reasoning); verify individual model capabilities before downstream use. Pricing and latency metadata may be null or approximate — handle missing values in routing logic.\",\n input: OpenrouterListAvailableModelsInput,\n output: OpenrouterListAvailableModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,KAAK;EAAC;EAAe;EAAY;EAAa;EAAiB;EAAc;EAAW;EAAe;EAAS;EAAW;EAAU;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpO,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACrK,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC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.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListAvailableModelsInput = z.object({\n use_rss: z.boolean().default(false).describe(\"Return RSS XML feed instead of JSON (BETA).\").optional(),\n category: z.enum([\"programming\", \"roleplay\", \"marketing\", \"marketing/seo\", \"technology\", \"science\", \"translation\", \"legal\", \"finance\", \"health\", \"trivia\", \"academia\"]).describe(\"Valid categories for filtering models.\").optional(),\n use_rss_chat_links: z.boolean().default(false).describe(\"Use chat URLs instead of model page URLs in RSS items (only applies when use_rss=true) (BETA).\").optional(),\n});\nconst OpenrouterListAvailableModels_PricingSchema = z.object({\n audio: z.string().describe(\"Price per audio unit.\").nullable().optional(),\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});\nconst OpenrouterListAvailableModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Combined modality string (e.g., 'text+image->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction tuning type for the model.\").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});\nconst OpenrouterListAvailableModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable(),\n context_length: z.number().int().describe(\"Context window size provided by this provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum tokens that can be generated in the completion.\").nullable().optional(),\n});\nconst OpenrouterListAvailableModels_DefaultParametersSchema = z.object({\n top_p: z.number().describe(\"Default top_p setting.\").nullable().optional(),\n temperature: z.number().describe(\"Default temperature setting.\").nullable().optional(),\n frequency_penalty: z.number().describe(\"Default frequency penalty setting.\").nullable().optional(),\n}).describe(\"Default parameter values for the model.\");\nconst OpenrouterListAvailableModels_PerRequestLimitsSchema = z.object({\n prompt_tokens: z.number().describe(\"Maximum prompt tokens allowed per request.\").nullable(),\n completion_tokens: z.number().describe(\"Maximum completion tokens allowed per request.\").nullable(),\n}).describe(\"Rate limiting information for the model.\");\nconst OpenrouterListAvailableModels_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: OpenrouterListAvailableModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable(),\n architecture: OpenrouterListAvailableModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListAvailableModels_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(\"ISO 8601 date when the model will be deprecated.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: OpenrouterListAvailableModels_DefaultParametersSchema.nullable(),\n per_request_limits: OpenrouterListAvailableModels_PerRequestLimitsSchema.nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"Supported API parameters for this model.\"),\n});\nexport const OpenrouterListAvailableModelsOutput = z.object({\n data: z.array(OpenrouterListAvailableModels_ModelInfoSchema).describe(\"List of available models.\"),\n});\n\nexport const openrouterListAvailableModels = action(\"OPENROUTER_LIST_AVAILABLE_MODELS\", {\n slug: \"openrouter-list-available-models\",\n name: \"List Available Models\",\n description: \"Tool to list available models via OpenRouter API. Use after confirming authentication to fetch the model catalog. Use exact model IDs returned here in OPENROUTER_CREATE_CHAT_COMPLETION or OPENROUTER_CREATE_COMPLETION calls — hard-coded IDs may break when the catalog changes. Use exact author and slug values from this response as inputs to OPENROUTER_LIST_MODEL_ENDPOINTS. Models have varying capabilities (e.g., tools, reasoning); verify individual model capabilities before downstream use. Pricing and latency metadata may be null or approximate — handle missing values in routing logic.\",\n input: OpenrouterListAvailableModelsInput,\n output: OpenrouterListAvailableModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,KAAK;EAAC;EAAe;EAAY;EAAa;EAAiB;EAAc;EAAW;EAAe;EAAS;EAAW;EAAU;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpO,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACrK,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,kBAAkB,EAAE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,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,MAAM,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,2BAA2B,EACnG,CAOU;AACV,CAAC"}
@@ -7,32 +7,32 @@ const OpenrouterListEmbeddingModelsInput = zod.z.object({
7
7
  });
8
8
  const OpenrouterListEmbeddingModels_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
  });
14
14
  const OpenrouterListEmbeddingModels_ArchitectureSchema = zod.z.object({
15
15
  modality: zod.z.string().describe("Model modality (e.g., 'text->text').").nullable().optional(),
16
- tokenizer: zod.z.string().describe("Tokenization method used."),
16
+ tokenizer: zod.z.string().describe("Tokenization method used.").nullable(),
17
17
  instruct_type: zod.z.string().describe("Instruction format type (e.g., 'chatml').").nullable().optional(),
18
18
  input_modalities: zod.z.array(zod.z.string()).describe("Supported input types (e.g., 'text', 'image')."),
19
19
  output_modalities: zod.z.array(zod.z.string()).describe("Supported output types (e.g., 'text').")
20
20
  });
21
21
  const OpenrouterListEmbeddingModels_TopProviderSchema = zod.z.object({
22
- is_moderated: zod.z.boolean().describe("Indicates if the content is moderated."),
23
- context_length: zod.z.number().int().describe("Maximum context window size in tokens for the top provider."),
22
+ is_moderated: zod.z.boolean().describe("Indicates if the content is moderated.").nullable(),
23
+ context_length: zod.z.number().int().describe("Maximum context window size in tokens for the top provider.").nullable(),
24
24
  max_completion_tokens: zod.z.number().int().describe("Maximum number of completion tokens.").nullable().optional()
25
25
  });
26
26
  const OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema = zod.z.object({
27
- id: zod.z.string().describe("Unique model identifier."),
28
- name: zod.z.string().describe("Human-readable display name for the model."),
29
- created: zod.z.number().describe("Unix timestamp when the model was added."),
27
+ id: zod.z.string().describe("Unique model identifier.").nullable(),
28
+ name: zod.z.string().describe("Human-readable display name for the model.").nullable(),
29
+ created: zod.z.number().describe("Unix timestamp when the model was added.").nullable(),
30
30
  pricing: OpenrouterListEmbeddingModels_PricingSchema.nullable(),
31
31
  description: zod.z.string().describe("Detailed description of the model's capabilities.").nullable().optional(),
32
32
  architecture: OpenrouterListEmbeddingModels_ArchitectureSchema.nullable(),
33
33
  top_provider: OpenrouterListEmbeddingModels_TopProviderSchema.nullable(),
34
- canonical_slug: zod.z.string().describe("Permanent slug for the model (immutable)."),
35
- context_length: zod.z.number().int().describe("Maximum context window size in tokens."),
34
+ canonical_slug: zod.z.string().describe("Permanent slug for the model (immutable).").nullable(),
35
+ context_length: zod.z.number().int().describe("Maximum context window size in tokens.").nullable(),
36
36
  expiration_date: zod.z.string().describe("Expiration date of the model, if applicable.").nullable().optional(),
37
37
  hugging_face_id: zod.z.string().describe("Identifier for the model on Hugging Face.").nullable().optional(),
38
38
  default_parameters: zod.z.object({}).describe("Default parameters for the model, or null if none.").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"list-embedding-models.cjs","names":["z","action"],"sources":["../../src/actions/list-embedding-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListEmbeddingModelsInput: z.ZodTypeAny = 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 OpenrouterListEmbeddingModels_PricingSchema: z.ZodTypeAny = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\"),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\"),\n});\nconst OpenrouterListEmbeddingModels_ArchitectureSchema: z.ZodTypeAny = z.object({\n modality: z.string().describe(\"Model modality (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\"),\n instruct_type: z.string().describe(\"Instruction format 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});\nconst OpenrouterListEmbeddingModels_TopProviderSchema: z.ZodTypeAny = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\"),\n context_length: z.number().int().describe(\"Maximum context window size in tokens for the top provider.\"),\n max_completion_tokens: z.number().int().describe(\"Maximum number of completion tokens.\").nullable().optional(),\n});\nconst OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique model identifier.\"),\n name: z.string().describe(\"Human-readable display name for the model.\"),\n created: z.number().describe(\"Unix timestamp when the model was added.\"),\n pricing: OpenrouterListEmbeddingModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListEmbeddingModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListEmbeddingModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\"),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\"),\n expiration_date: z.string().describe(\"Expiration date of the model, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.object({}).describe(\"Default parameters for the model, or null if none.\").nullable().optional(),\n per_request_limits: z.object({}).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});\nexport const OpenrouterListEmbeddingModelsOutput: z.ZodTypeAny = z.object({\n data: z.array(OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema).describe(\"List of available embedding models.\"),\n});\n\nexport const openrouterListEmbeddingModels = action(\"OPENROUTER_LIST_EMBEDDING_MODELS\", {\n slug: \"openrouter-list-embedding-models\",\n name: \"List Embedding Models\",\n description: \"Tool to list all available embeddings models via OpenRouter API. Returns a list of embeddings models with their properties including architecture, pricing, and capabilities.\",\n input: OpenrouterListEmbeddingModelsInput,\n output: OpenrouterListEmbeddingModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACxI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACnM,CAAC;AACD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC/D,CAAC;AACD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC1D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,kBAAkBA,IAAAA,EAAE,MAAM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AAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAC/F,CAAC;AACD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,MAAMA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,qCAAqC,EACtH,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-embedding-models.cjs","names":["z","action"],"sources":["../../src/actions/list-embedding-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListEmbeddingModelsInput = 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 OpenrouterListEmbeddingModels_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});\nconst OpenrouterListEmbeddingModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Model modality (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction format 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});\nconst OpenrouterListEmbeddingModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens for the top provider.\").nullable(),\n max_completion_tokens: z.number().int().describe(\"Maximum number of completion tokens.\").nullable().optional(),\n});\nconst OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema = 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: OpenrouterListEmbeddingModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListEmbeddingModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListEmbeddingModels_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(\"Expiration date of the model, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.object({}).describe(\"Default parameters for the model, or null if none.\").nullable().optional(),\n per_request_limits: z.object({}).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});\nexport const OpenrouterListEmbeddingModelsOutput = z.object({\n data: z.array(OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema).describe(\"List of available embedding models.\"),\n});\n\nexport const openrouterListEmbeddingModels = action(\"OPENROUTER_LIST_EMBEDDING_MODELS\", {\n slug: \"openrouter-list-embedding-models\",\n name: \"List Embedding Models\",\n description: \"Tool to list all available embeddings models via OpenRouter API. Returns a list of embeddings models with their properties including architecture, pricing, and capabilities.\",\n input: OpenrouterListEmbeddingModelsInput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,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAC/F,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,MAAMA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,qCAAqC,EACtH,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-embedding-models.d.ts
4
- declare const OpenrouterListEmbeddingModelsInput: z.ZodTypeAny;
5
- declare const OpenrouterListEmbeddingModelsOutput: z.ZodTypeAny;
6
- declare const openrouterListEmbeddingModels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenrouterListEmbeddingModelsInput: z.ZodObject<{
5
+ "X-Title": z.ZodOptional<z.ZodString>;
6
+ "HTTP-Referer": z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const OpenrouterListEmbeddingModelsOutput: 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
+ }, z.core.$strip>>;
19
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ architecture: z.ZodNullable<z.ZodObject<{
21
+ modality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ tokenizer: z.ZodNullable<z.ZodString>;
23
+ instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ input_modalities: z.ZodArray<z.ZodString>;
25
+ output_modalities: z.ZodArray<z.ZodString>;
26
+ }, z.core.$strip>>;
27
+ top_provider: z.ZodNullable<z.ZodObject<{
28
+ is_moderated: z.ZodNullable<z.ZodBoolean>;
29
+ context_length: z.ZodNullable<z.ZodNumber>;
30
+ max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ }, z.core.$strip>>;
32
+ canonical_slug: z.ZodNullable<z.ZodString>;
33
+ context_length: z.ZodNullable<z.ZodNumber>;
34
+ expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ default_parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
37
+ per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
38
+ supported_parameters: z.ZodArray<z.ZodString>;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ declare const openrouterListEmbeddingModels: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ "X-Title"?: string | undefined;
43
+ "HTTP-Referer"?: string | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { openrouterListEmbeddingModels };
9
47
  //# sourceMappingURL=list-embedding-models.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-embedding-models.d.cts","names":[],"sources":["../../src/actions/list-embedding-models.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAGjD;AAAA,cAmCW,mCAAA,EAAqC,CAAA,CAAE,UAElD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-embedding-models.d.cts","names":[],"sources":["../../src/actions/list-embedding-models.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAsClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}