@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,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-user-models.d.ts
4
- declare const OpenrouterListUserModelsInput: z.ZodTypeAny;
5
- declare const OpenrouterListUserModelsOutput: z.ZodTypeAny;
6
- declare const openrouterListUserModels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenrouterListUserModelsInput: z.ZodObject<{
5
+ x_title: z.ZodOptional<z.ZodString>;
6
+ http_referer: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const OpenrouterListUserModelsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ created: z.ZodNullable<z.ZodNumber>;
13
+ pricing: z.ZodNullable<z.ZodObject<{
14
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ prompt: z.ZodNullable<z.ZodString>;
16
+ request: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ completion: z.ZodNullable<z.ZodString>;
18
+ web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$strip>>;
23
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ architecture: z.ZodNullable<z.ZodObject<{
25
+ modality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ tokenizer: z.ZodNullable<z.ZodString>;
27
+ instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ input_modalities: z.ZodArray<z.ZodString>;
29
+ output_modalities: z.ZodArray<z.ZodString>;
30
+ }, z.core.$strip>>;
31
+ top_provider: z.ZodNullable<z.ZodObject<{
32
+ is_moderated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33
+ context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ }, z.core.$strip>>;
36
+ canonical_slug: z.ZodNullable<z.ZodString>;
37
+ context_length: z.ZodNullable<z.ZodNumber>;
38
+ expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ default_parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
41
+ per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
42
+ supported_parameters: z.ZodArray<z.ZodString>;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>;
45
+ declare const openrouterListUserModels: import("@keystrokehq/action").WorkflowActionDefinition<{
46
+ x_title?: string | undefined;
47
+ http_referer?: string | undefined;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { openrouterListUserModels };
9
51
  //# sourceMappingURL=list-user-models.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-user-models.d.cts","names":[],"sources":["../../src/actions/list-user-models.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG5C;AAAA,cAuCW,8BAAA,EAAgC,CAAA,CAAE,UAE7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-user-models.d.cts","names":[],"sources":["../../src/actions/list-user-models.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cA0C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-user-models.d.ts
4
- declare const OpenrouterListUserModelsInput: z.ZodTypeAny;
5
- declare const OpenrouterListUserModelsOutput: z.ZodTypeAny;
6
- declare const openrouterListUserModels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenrouterListUserModelsInput: z.ZodObject<{
5
+ x_title: z.ZodOptional<z.ZodString>;
6
+ http_referer: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const OpenrouterListUserModelsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ created: z.ZodNullable<z.ZodNumber>;
13
+ pricing: z.ZodNullable<z.ZodObject<{
14
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ prompt: z.ZodNullable<z.ZodString>;
16
+ request: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ completion: z.ZodNullable<z.ZodString>;
18
+ web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$strip>>;
23
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ architecture: z.ZodNullable<z.ZodObject<{
25
+ modality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ tokenizer: z.ZodNullable<z.ZodString>;
27
+ instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ input_modalities: z.ZodArray<z.ZodString>;
29
+ output_modalities: z.ZodArray<z.ZodString>;
30
+ }, z.core.$strip>>;
31
+ top_provider: z.ZodNullable<z.ZodObject<{
32
+ is_moderated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33
+ context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ }, z.core.$strip>>;
36
+ canonical_slug: z.ZodNullable<z.ZodString>;
37
+ context_length: z.ZodNullable<z.ZodNumber>;
38
+ expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ default_parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
41
+ per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
42
+ supported_parameters: z.ZodArray<z.ZodString>;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>;
45
+ declare const openrouterListUserModels: import("@keystrokehq/action").WorkflowActionDefinition<{
46
+ x_title?: string | undefined;
47
+ http_referer?: string | undefined;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { openrouterListUserModels };
9
51
  //# sourceMappingURL=list-user-models.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-user-models.d.mts","names":[],"sources":["../../src/actions/list-user-models.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG5C;AAAA,cAuCW,8BAAA,EAAgC,CAAA,CAAE,UAE7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-user-models.d.mts","names":[],"sources":["../../src/actions/list-user-models.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cA0C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -7,9 +7,9 @@ const OpenrouterListUserModelsInput = z.object({
7
7
  });
8
8
  const OpenrouterListUserModels_PricingSchema = z.object({
9
9
  image: z.string().describe("Price per image.").nullable().optional(),
10
- prompt: z.string().describe("Price per prompt token."),
10
+ prompt: z.string().describe("Price per prompt token.").nullable(),
11
11
  request: z.string().describe("Price per request.").nullable().optional(),
12
- completion: z.string().describe("Price per completion token."),
12
+ completion: z.string().describe("Price per completion token.").nullable(),
13
13
  web_search: z.string().describe("Price per web search.").nullable().optional(),
14
14
  input_cache_read: z.string().describe("Price per input cache read.").nullable().optional(),
15
15
  input_cache_write: z.string().describe("Price per input cache write.").nullable().optional(),
@@ -17,7 +17,7 @@ const OpenrouterListUserModels_PricingSchema = z.object({
17
17
  });
18
18
  const OpenrouterListUserModels_ArchitectureSchema = z.object({
19
19
  modality: z.string().describe("Overall modality pattern (e.g., 'text->text').").nullable().optional(),
20
- tokenizer: z.string().describe("Tokenization method used."),
20
+ tokenizer: z.string().describe("Tokenization method used.").nullable(),
21
21
  instruct_type: z.string().describe("Instruction style/type (e.g., 'chatml').").nullable().optional(),
22
22
  input_modalities: z.array(z.string()).describe("Supported input types (e.g., 'text', 'image')."),
23
23
  output_modalities: z.array(z.string()).describe("Supported output types (e.g., 'text').")
@@ -28,15 +28,15 @@ const OpenrouterListUserModels_TopProviderSchema = z.object({
28
28
  max_completion_tokens: z.number().int().describe("Maximum completion tokens allowed by provider.").nullable().optional()
29
29
  });
30
30
  const OpenrouterListUserModels_ModelInfoSchema = z.object({
31
- id: z.string().describe("Unique model identifier."),
32
- name: z.string().describe("Human-readable display name for the model."),
33
- created: z.number().describe("Unix timestamp when the model was added."),
31
+ id: z.string().describe("Unique model identifier.").nullable(),
32
+ name: z.string().describe("Human-readable display name for the model.").nullable(),
33
+ created: z.number().describe("Unix timestamp when the model was added.").nullable(),
34
34
  pricing: OpenrouterListUserModels_PricingSchema.nullable(),
35
35
  description: z.string().describe("Detailed description of the model's capabilities.").nullable().optional(),
36
36
  architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),
37
37
  top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),
38
- canonical_slug: z.string().describe("Permanent slug for the model (immutable)."),
39
- context_length: z.number().int().describe("Maximum context window size in tokens."),
38
+ canonical_slug: z.string().describe("Permanent slug for the model (immutable).").nullable(),
39
+ context_length: z.number().int().describe("Maximum context window size in tokens.").nullable(),
40
40
  expiration_date: z.string().describe("Date when model will be deprecated, if applicable.").nullable().optional(),
41
41
  hugging_face_id: z.string().describe("Identifier for the model on Hugging Face.").nullable().optional(),
42
42
  default_parameters: z.object({}).describe("Default parameter values for this model, if any.").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"list-user-models.mjs","names":[],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput: 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 OpenrouterListUserModels_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 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 OpenrouterListUserModels_ArchitectureSchema: z.ZodTypeAny = z.object({\n modality: z.string().describe(\"Overall modality pattern (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\"),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n});\nconst OpenrouterListUserModels_TopProviderSchema: z.ZodTypeAny = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable().optional(),\n context_length: z.number().int().describe(\"Maximum context window size from provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum completion tokens allowed by provider.\").nullable().optional(),\n});\nconst OpenrouterListUserModels_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: OpenrouterListUserModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\"),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\"),\n expiration_date: z.string().describe(\"Date when model will be deprecated, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.object({}).describe(\"Default parameter values for this model, if any.\").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 OpenrouterListUserModelsOutput: z.ZodTypeAny = z.object({\n data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe(\"List of models filtered by user provider preferences, privacy settings, and guardrails.\"),\n});\n\nexport const openrouterListUserModels = action(\"OPENROUTER_LIST_USER_MODELS\", {\n slug: \"openrouter-list-user-models\",\n name: \"List User Models\",\n description: \"Tool to list models filtered by user provider preferences, privacy settings, and guardrails. Use after authenticating to get models tailored to the user's configuration.\",\n input: OpenrouterListUserModelsInput,\n output: OpenrouterListUserModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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;AACD,MAAM,yCAAuD,EAAE,OAAO;CACpE,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,CAAC,SAAS;CACzF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,oBAAoB,EAAE,OAAO,CAAC,CA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C/E,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAClF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAC/F,CAAC;AAKD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,MAAM,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,yFAAyF,EAC5J,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-user-models.mjs","names":[],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput = z.object({\n x_title: z.string().describe(\"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\").optional(),\n http_referer: z.string().describe(\"The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.\").optional(),\n});\nconst OpenrouterListUserModels_PricingSchema = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\").nullable(),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\").nullable(),\n web_search: z.string().describe(\"Price per web search.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Price per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Price per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Price per internal reasoning.\").nullable().optional(),\n});\nconst OpenrouterListUserModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Overall modality pattern (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n});\nconst OpenrouterListUserModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable().optional(),\n context_length: z.number().int().describe(\"Maximum context window size from provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum completion tokens allowed by provider.\").nullable().optional(),\n});\nconst OpenrouterListUserModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable display name for the model.\").nullable(),\n created: z.number().describe(\"Unix timestamp when the model was added.\").nullable(),\n pricing: OpenrouterListUserModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\").nullable(),\n expiration_date: z.string().describe(\"Date when model will be deprecated, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.object({}).describe(\"Default parameter values for this model, if any.\").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 OpenrouterListUserModelsOutput = z.object({\n data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe(\"List of models filtered by user provider preferences, privacy settings, and guardrails.\"),\n});\n\nexport const openrouterListUserModels = action(\"OPENROUTER_LIST_USER_MODELS\", {\n slug: \"openrouter-list-user-models\",\n name: \"List User Models\",\n description: \"Tool to list models filtered by user provider preferences, privacy settings, and guardrails. Use after authenticating to get models tailored to the user's configuration.\",\n input: OpenrouterListUserModelsInput,\n output: OpenrouterListUserModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACjM,CAAC;AACD,MAAM,yCAAyC,EAAE,OAAO;CACtD,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,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAA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CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAC/F,CAAC;AAKD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,MAAM,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,yFAAyF,EAC5J,CAOU;AACV,CAAC"}
@@ -7,9 +7,9 @@ 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.")
12
+ completion: zod.z.string().describe("Cost per completion token.").nullable()
13
13
  }).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(),
@@ -24,22 +24,22 @@ const OpenrouterListZdrEndpoints_ThroughputMetricsSchema = zod.z.object({
24
24
  p99: zod.z.number().describe("99th percentile throughput (tokens per second).").nullable().optional()
25
25
  }).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.")
42
+ supports_implicit_caching: zod.z.boolean().describe("Whether the endpoint supports implicit caching.").nullable()
43
43
  }).describe("Information about a specific model endpoint under Zero Data Retention.");
44
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.");
45
45
  const openrouterListZdrEndpoints = require_action.action("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: 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 parameters for listing Zero Data Retention (ZDR) endpoints.\");\nconst OpenrouterListZdrEndpoints_ZdrPricingSchema: z.ZodTypeAny = z.object({\n image: z.string().describe(\"Cost per image operation.\").nullable().optional(),\n prompt: z.string().describe(\"Cost per prompt token.\"),\n request: z.string().describe(\"Cost per request.\").nullable().optional(),\n completion: z.string().describe(\"Cost per completion token.\"),\n}).describe(\"Pricing rates for different usage metrics.\");\nconst OpenrouterListZdrEndpoints_LatencyMetricsSchema: z.ZodTypeAny = 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}).describe(\"Latency percentile metrics over the last 30 minutes.\");\nconst OpenrouterListZdrEndpoints_ThroughputMetricsSchema: z.ZodTypeAny = 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}).describe(\"Throughput percentile metrics over the last 30 minutes.\");\nconst OpenrouterListZdrEndpoints_ZdrEndpointSchema: z.ZodTypeAny = z.object({\n tag: z.string().describe(\"Tag identifying the model or provider category.\"),\n name: z.string().describe(\"Endpoint display name.\"),\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.\"),\n model_name: z.string().describe(\"Human-readable model name.\"),\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.\"),\n context_length: z.number().describe(\"Maximum number of tokens in context window.\"),\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.\"),\n}).describe(\"Information about a specific model endpoint under Zero Data Retention.\");\nexport const OpenrouterListZdrEndpointsOutput: z.ZodTypeAny = z.object({\n data: z.array(OpenrouterListZdrEndpoints_ZdrEndpointSchema).describe(\"List of model endpoints available under Zero Data Retention policy.\"),\n}).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,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,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,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AAC9D,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAChF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACjF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,kBAAkB,gDAAgD,SAAS,CAAC,CAAC,SAAS;CACtF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,qBAAqB,mDAAmD,SAAS,CAAC,CAAC,SAAS;CAC5F,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD;CACzG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,2BAA2BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;AACnG,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,MAAMA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,qEAAqE,EAC5I,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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}).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}).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}).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}).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}).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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AC,SAAS;CAClH,2BAA2BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,MAAMA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,qEAAqE,EAC5I,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,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.ZodTypeAny;
5
- declare const OpenrouterListZdrEndpointsOutput: z.ZodTypeAny;
6
- declare const openrouterListZdrEndpoints: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$strip>>;
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.$strip>>>;
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.$strip>>>;
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.$strip>>;
42
+ }, z.core.$strip>;
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,EAAiC,CAAA,CAAE,UAGkC;AAAA,cAqCrE,gCAAA,EAAkC,CAAA,CAAE,UAEQ;AAAA,cAE5C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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.ZodTypeAny;
5
- declare const OpenrouterListZdrEndpointsOutput: z.ZodTypeAny;
6
- declare const openrouterListZdrEndpoints: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$strip>>;
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.$strip>>>;
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.$strip>>>;
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.$strip>>;
42
+ }, z.core.$strip>;
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,EAAiC,CAAA,CAAE,UAGkC;AAAA,cAqCrE,gCAAA,EAAkC,CAAA,CAAE,UAEQ;AAAA,cAE5C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +7,9 @@ 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.")
12
+ completion: z.string().describe("Cost per completion token.").nullable()
13
13
  }).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(),
@@ -24,22 +24,22 @@ const OpenrouterListZdrEndpoints_ThroughputMetricsSchema = z.object({
24
24
  p99: z.number().describe("99th percentile throughput (tokens per second).").nullable().optional()
25
25
  }).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.")
42
+ supports_implicit_caching: z.boolean().describe("Whether the endpoint supports implicit caching.").nullable()
43
43
  }).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",
@@ -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: 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 parameters for listing Zero Data Retention (ZDR) endpoints.\");\nconst OpenrouterListZdrEndpoints_ZdrPricingSchema: z.ZodTypeAny = z.object({\n image: z.string().describe(\"Cost per image operation.\").nullable().optional(),\n prompt: z.string().describe(\"Cost per prompt token.\"),\n request: z.string().describe(\"Cost per request.\").nullable().optional(),\n completion: z.string().describe(\"Cost per completion token.\"),\n}).describe(\"Pricing rates for different usage metrics.\");\nconst OpenrouterListZdrEndpoints_LatencyMetricsSchema: z.ZodTypeAny = 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}).describe(\"Latency percentile metrics over the last 30 minutes.\");\nconst OpenrouterListZdrEndpoints_ThroughputMetricsSchema: z.ZodTypeAny = 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}).describe(\"Throughput percentile metrics over the last 30 minutes.\");\nconst OpenrouterListZdrEndpoints_ZdrEndpointSchema: z.ZodTypeAny = z.object({\n tag: z.string().describe(\"Tag identifying the model or provider category.\"),\n name: z.string().describe(\"Endpoint display name.\"),\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.\"),\n model_name: z.string().describe(\"Human-readable model name.\"),\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.\"),\n context_length: z.number().describe(\"Maximum number of tokens in context window.\"),\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.\"),\n}).describe(\"Information about a specific model endpoint under Zero Data Retention.\");\nexport const OpenrouterListZdrEndpointsOutput: z.ZodTypeAny = z.object({\n data: z.array(OpenrouterListZdrEndpoints_ZdrEndpointSchema).describe(\"List of model endpoints available under Zero Data Retention policy.\"),\n}).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,kCAAgD,EAAE,OAAO;CACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,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M;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,MAAM,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,qEAAqE,EAC5I,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
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}).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}).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}).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}).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}).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: OpenrouterListZdr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;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,SAAS,wEAAwE;AAKpF,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,SAAS,4CAOF;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;
@@ -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;AAClB"}
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"}
@@ -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 };
@@ -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 };
@@ -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;AAClB"}
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.0",
3
+ "version": "0.1.2",
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": "^0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {