@keystrokehq/eodhd_apis 0.1.0 → 0.1.1

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 (93) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-eod-yahoo-style.cjs.map +1 -1
  4. package/dist/actions/get-eod-yahoo-style.d.cts +27 -3
  5. package/dist/actions/get-eod-yahoo-style.d.cts.map +1 -1
  6. package/dist/actions/get-eod-yahoo-style.d.mts +27 -3
  7. package/dist/actions/get-eod-yahoo-style.d.mts.map +1 -1
  8. package/dist/actions/get-eod-yahoo-style.mjs.map +1 -1
  9. package/dist/actions/get-id-mapping.cjs +13 -13
  10. package/dist/actions/get-id-mapping.cjs.map +1 -1
  11. package/dist/actions/get-id-mapping.d.cts +59 -3
  12. package/dist/actions/get-id-mapping.d.cts.map +1 -1
  13. package/dist/actions/get-id-mapping.d.mts +59 -3
  14. package/dist/actions/get-id-mapping.d.mts.map +1 -1
  15. package/dist/actions/get-id-mapping.mjs +13 -13
  16. package/dist/actions/get-id-mapping.mjs.map +1 -1
  17. package/dist/actions/get-macro-indicators.cjs.map +1 -1
  18. package/dist/actions/get-macro-indicators.d.cts +9 -3
  19. package/dist/actions/get-macro-indicators.d.cts.map +1 -1
  20. package/dist/actions/get-macro-indicators.d.mts +9 -3
  21. package/dist/actions/get-macro-indicators.d.mts.map +1 -1
  22. package/dist/actions/get-macro-indicators.mjs.map +1 -1
  23. package/dist/actions/get-mutual-funds-data.cjs +3 -3
  24. package/dist/actions/get-mutual-funds-data.cjs.map +1 -1
  25. package/dist/actions/get-mutual-funds-data.d.cts +17 -3
  26. package/dist/actions/get-mutual-funds-data.d.cts.map +1 -1
  27. package/dist/actions/get-mutual-funds-data.d.mts +17 -3
  28. package/dist/actions/get-mutual-funds-data.d.mts.map +1 -1
  29. package/dist/actions/get-mutual-funds-data.mjs +3 -3
  30. package/dist/actions/get-mutual-funds-data.mjs.map +1 -1
  31. package/dist/actions/get-real-time-quote.cjs +11 -11
  32. package/dist/actions/get-real-time-quote.cjs.map +1 -1
  33. package/dist/actions/get-real-time-quote.d.cts +66 -3
  34. package/dist/actions/get-real-time-quote.d.cts.map +1 -1
  35. package/dist/actions/get-real-time-quote.d.mts +66 -3
  36. package/dist/actions/get-real-time-quote.d.mts.map +1 -1
  37. package/dist/actions/get-real-time-quote.mjs +11 -11
  38. package/dist/actions/get-real-time-quote.mjs.map +1 -1
  39. package/dist/actions/get-real-time-websocket-forex.cjs +4 -4
  40. package/dist/actions/get-real-time-websocket-forex.cjs.map +1 -1
  41. package/dist/actions/get-real-time-websocket-forex.d.cts +21 -3
  42. package/dist/actions/get-real-time-websocket-forex.d.cts.map +1 -1
  43. package/dist/actions/get-real-time-websocket-forex.d.mts +21 -3
  44. package/dist/actions/get-real-time-websocket-forex.d.mts.map +1 -1
  45. package/dist/actions/get-real-time-websocket-forex.mjs +4 -4
  46. package/dist/actions/get-real-time-websocket-forex.mjs.map +1 -1
  47. package/dist/actions/get-real-time-websocket-us-trade.cjs +3 -3
  48. package/dist/actions/get-real-time-websocket-us-trade.cjs.map +1 -1
  49. package/dist/actions/get-real-time-websocket-us-trade.d.cts +27 -3
  50. package/dist/actions/get-real-time-websocket-us-trade.d.cts.map +1 -1
  51. package/dist/actions/get-real-time-websocket-us-trade.d.mts +27 -3
  52. package/dist/actions/get-real-time-websocket-us-trade.d.mts.map +1 -1
  53. package/dist/actions/get-real-time-websocket-us-trade.mjs +3 -3
  54. package/dist/actions/get-real-time-websocket-us-trade.mjs.map +1 -1
  55. package/dist/actions/get-user-info.cjs +7 -7
  56. package/dist/actions/get-user-info.cjs.map +1 -1
  57. package/dist/actions/get-user-info.d.cts +23 -3
  58. package/dist/actions/get-user-info.d.cts.map +1 -1
  59. package/dist/actions/get-user-info.d.mts +23 -3
  60. package/dist/actions/get-user-info.d.mts.map +1 -1
  61. package/dist/actions/get-user-info.mjs +7 -7
  62. package/dist/actions/get-user-info.mjs.map +1 -1
  63. package/dist/actions/get-ust-yield-rates.cjs +6 -6
  64. package/dist/actions/get-ust-yield-rates.cjs.map +1 -1
  65. package/dist/actions/get-ust-yield-rates.d.cts +33 -3
  66. package/dist/actions/get-ust-yield-rates.d.cts.map +1 -1
  67. package/dist/actions/get-ust-yield-rates.d.mts +33 -3
  68. package/dist/actions/get-ust-yield-rates.d.mts.map +1 -1
  69. package/dist/actions/get-ust-yield-rates.mjs +6 -6
  70. package/dist/actions/get-ust-yield-rates.mjs.map +1 -1
  71. package/dist/actions/list-exchanges.cjs +5 -5
  72. package/dist/actions/list-exchanges.cjs.map +1 -1
  73. package/dist/actions/list-exchanges.d.cts +26 -3
  74. package/dist/actions/list-exchanges.d.cts.map +1 -1
  75. package/dist/actions/list-exchanges.d.mts +26 -3
  76. package/dist/actions/list-exchanges.d.mts.map +1 -1
  77. package/dist/actions/list-exchanges.mjs +5 -5
  78. package/dist/actions/list-exchanges.mjs.map +1 -1
  79. package/dist/actions/search-instruments.cjs +10 -10
  80. package/dist/actions/search-instruments.cjs.map +1 -1
  81. package/dist/actions/search-instruments.d.cts +39 -3
  82. package/dist/actions/search-instruments.d.cts.map +1 -1
  83. package/dist/actions/search-instruments.d.mts +39 -3
  84. package/dist/actions/search-instruments.d.mts.map +1 -1
  85. package/dist/actions/search-instruments.mjs +10 -10
  86. package/dist/actions/search-instruments.mjs.map +1 -1
  87. package/dist/catalog.cjs +7 -1
  88. package/dist/catalog.cjs.map +1 -1
  89. package/dist/catalog.d.cts +8 -0
  90. package/dist/catalog.d.mts +8 -0
  91. package/dist/catalog.mjs +7 -1
  92. package/dist/catalog.mjs.map +1 -1
  93. package/package.json +2 -2
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-real-time-websocket-us-trade.d.ts
4
- declare const EodhdApisGetRealTimeWebsocketUsTradeInput: z.ZodTypeAny;
5
- declare const EodhdApisGetRealTimeWebsocketUsTradeOutput: z.ZodTypeAny;
6
- declare const eodhdApisGetRealTimeWebsocketUsTrade: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const EodhdApisGetRealTimeWebsocketUsTradeInput: z.ZodObject<{
5
+ action: z.ZodEnum<{
6
+ subscribe: "subscribe";
7
+ unsubscribe: "unsubscribe";
8
+ }>;
9
+ symbols: z.ZodArray<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ declare const EodhdApisGetRealTimeWebsocketUsTradeOutput: z.ZodObject<{
12
+ url: z.ZodNullable<z.ZodString>;
13
+ payload: z.ZodNullable<z.ZodObject<{
14
+ action: z.ZodNullable<z.ZodEnum<{
15
+ subscribe: "subscribe";
16
+ unsubscribe: "unsubscribe";
17
+ }>>;
18
+ symbols: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ }, z.core.$strip>;
21
+ declare const eodhdApisGetRealTimeWebsocketUsTrade: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ action: "subscribe" | "unsubscribe";
23
+ symbols: string[];
24
+ }, {
25
+ url: string | null;
26
+ payload: {
27
+ action: "subscribe" | "unsubscribe" | null;
28
+ symbols: string | null;
29
+ } | null;
30
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { eodhdApisGetRealTimeWebsocketUsTrade };
9
33
  //# sourceMappingURL=get-real-time-websocket-us-trade.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-websocket-us-trade.d.cts","names":[],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAG8C;AAAA,cAK3F,0CAAA,EAA4C,CAAA,CAAE,UAGwJ;AAAA,cAEtM,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-real-time-websocket-us-trade.d.cts","names":[],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;cAQzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;cAK1C,oCAAA,gCAAoC,wBAAA"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-real-time-websocket-us-trade.d.ts
4
- declare const EodhdApisGetRealTimeWebsocketUsTradeInput: z.ZodTypeAny;
5
- declare const EodhdApisGetRealTimeWebsocketUsTradeOutput: z.ZodTypeAny;
6
- declare const eodhdApisGetRealTimeWebsocketUsTrade: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const EodhdApisGetRealTimeWebsocketUsTradeInput: z.ZodObject<{
5
+ action: z.ZodEnum<{
6
+ subscribe: "subscribe";
7
+ unsubscribe: "unsubscribe";
8
+ }>;
9
+ symbols: z.ZodArray<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ declare const EodhdApisGetRealTimeWebsocketUsTradeOutput: z.ZodObject<{
12
+ url: z.ZodNullable<z.ZodString>;
13
+ payload: z.ZodNullable<z.ZodObject<{
14
+ action: z.ZodNullable<z.ZodEnum<{
15
+ subscribe: "subscribe";
16
+ unsubscribe: "unsubscribe";
17
+ }>>;
18
+ symbols: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ }, z.core.$strip>;
21
+ declare const eodhdApisGetRealTimeWebsocketUsTrade: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ action: "subscribe" | "unsubscribe";
23
+ symbols: string[];
24
+ }, {
25
+ url: string | null;
26
+ payload: {
27
+ action: "subscribe" | "unsubscribe" | null;
28
+ symbols: string | null;
29
+ } | null;
30
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { eodhdApisGetRealTimeWebsocketUsTrade };
9
33
  //# sourceMappingURL=get-real-time-websocket-us-trade.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-websocket-us-trade.d.mts","names":[],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAG8C;AAAA,cAK3F,0CAAA,EAA4C,CAAA,CAAE,UAGwJ;AAAA,cAEtM,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-real-time-websocket-us-trade.d.mts","names":[],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;cAQzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;cAK1C,oCAAA,gCAAoC,wBAAA"}
@@ -6,8 +6,8 @@ const EodhdApisGetRealTimeWebsocketUsTradeInput = z.object({
6
6
  symbols: z.array(z.string()).describe("List of US stock ticker symbols (e.g., ['AAPL', 'TSLA', 'MSFT']). Maximum 50 symbols per connection. Demo API keys support limited tickers: AAPL, TSLA, VTI, AMZN.")
7
7
  }).describe("Request parameters for subscribing or unsubscribing to the real-time US trades WebSocket.");
8
8
  const EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema = z.object({
9
- action: z.enum(["subscribe", "unsubscribe"]).describe("The action to perform: 'subscribe' or 'unsubscribe'."),
10
- symbols: z.string().describe("Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').")
9
+ action: z.enum(["subscribe", "unsubscribe"]).describe("The action to perform: 'subscribe' or 'unsubscribe'.").nullable(),
10
+ symbols: z.string().describe("Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').").nullable()
11
11
  }).describe("Payload structure to send over WebSocket for subscription management.");
12
12
  const eodhdApisGetRealTimeWebsocketUsTrade = action("EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE", {
13
13
  slug: "eodhd_apis-get-real-time-websocket-us-trade",
@@ -15,7 +15,7 @@ const eodhdApisGetRealTimeWebsocketUsTrade = action("EODHD_APIS_GET_REAL_TIME_WE
15
15
  description: "Tool to retrieve real-time trade data for the US market via WebSocket. Use when live updates for specific US symbols are required. Example: subscribe to ['AAPL', 'GOOG'].",
16
16
  input: EodhdApisGetRealTimeWebsocketUsTradeInput,
17
17
  output: z.object({
18
- url: z.string().describe("WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection."),
18
+ url: z.string().describe("WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection.").nullable(),
19
19
  payload: EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema.nullable()
20
20
  }).describe("Response containing WebSocket connection details and the payload to send for subscription management.\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.")
21
21
  });
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-websocket-us-trade.mjs","names":[],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketUsTradeInput: z.ZodTypeAny = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"Action to perform: 'subscribe' to start receiving real-time trade updates, or 'unsubscribe' to stop receiving updates for the specified symbols.\"),\n symbols: z.array(z.string()).describe(\"List of US stock ticker symbols (e.g., ['AAPL', 'TSLA', 'MSFT']). Maximum 50 symbols per connection. Demo API keys support limited tickers: AAPL, TSLA, VTI, AMZN.\"),\n}).describe(\"Request parameters for subscribing or unsubscribing to the real-time US trades WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema: z.ZodTypeAny = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"The action to perform: 'subscribe' or 'unsubscribe'.\"),\n symbols: z.string().describe(\"Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').\"),\n}).describe(\"Payload structure to send over WebSocket for subscription management.\");\nexport const EodhdApisGetRealTimeWebsocketUsTradeOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection.\"),\n payload: EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema.nullable(),\n}).describe(\"Response containing WebSocket connection details and the payload to send for subscription management.\\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.\");\n\nexport const eodhdApisGetRealTimeWebsocketUsTrade = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE\", {\n slug: \"eodhd_apis-get-real-time-websocket-us-trade\",\n name: \"Get Real-time WebSocket US Trades\",\n description: \"Tool to retrieve real-time trade data for the US market via WebSocket. Use when live updates for specific US symbols are required. Example: subscribe to ['AAPL', 'GOOG'].\",\n input: EodhdApisGetRealTimeWebsocketUsTradeInput,\n output: EodhdApisGetRealTimeWebsocketUsTradeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0D,EAAE,OAAO;CAC9E,QAAQ,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CACxM,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oKAAoK;AAC5M,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAM,8DAA4E,EAAE,OAAO;CACzF,QAAQ,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,sDAAsD;CAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AACnG,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAMnF,MAAa,uCAAuC,OAAO,+CAA+C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsE,EAAE,OAAO;EAC/E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;EAC1I,SAAS,4DAA4D,SAAS;CAChF,CAAC,CAAC,CAAC,SAAS,sMAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-real-time-websocket-us-trade.mjs","names":[],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketUsTradeInput = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"Action to perform: 'subscribe' to start receiving real-time trade updates, or 'unsubscribe' to stop receiving updates for the specified symbols.\"),\n symbols: z.array(z.string()).describe(\"List of US stock ticker symbols (e.g., ['AAPL', 'TSLA', 'MSFT']). Maximum 50 symbols per connection. Demo API keys support limited tickers: AAPL, TSLA, VTI, AMZN.\"),\n}).describe(\"Request parameters for subscribing or unsubscribing to the real-time US trades WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"The action to perform: 'subscribe' or 'unsubscribe'.\").nullable(),\n symbols: z.string().describe(\"Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').\").nullable(),\n}).describe(\"Payload structure to send over WebSocket for subscription management.\");\nexport const EodhdApisGetRealTimeWebsocketUsTradeOutput = z.object({\n url: z.string().describe(\"WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection.\").nullable(),\n payload: EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema.nullable(),\n}).describe(\"Response containing WebSocket connection details and the payload to send for subscription management.\\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.\");\n\nexport const eodhdApisGetRealTimeWebsocketUsTrade = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE\", {\n slug: \"eodhd_apis-get-real-time-websocket-us-trade\",\n name: \"Get Real-time WebSocket US Trades\",\n description: \"Tool to retrieve real-time trade data for the US market via WebSocket. Use when live updates for specific US symbols are required. Example: subscribe to ['AAPL', 'GOOG'].\",\n input: EodhdApisGetRealTimeWebsocketUsTradeInput,\n output: EodhdApisGetRealTimeWebsocketUsTradeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO;CAChE,QAAQ,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CACxM,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oKAAoK;AAC5M,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAM,8DAA8D,EAAE,OAAO;CAC3E,QAAQ,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAMnF,MAAa,uCAAuC,OAAO,+CAA+C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACrJ,SAAS,4DAA4D,SAAS;CAChF,CAAC,CAAC,CAAC,SAAS,sMAOF;AACV,CAAC"}
@@ -3,13 +3,13 @@ let zod = require("zod");
3
3
  //#region src/actions/get-user-info.ts
4
4
  const EodhdApisGetUserInfoInput = zod.z.object({ fmt: zod.z.string().default("json").describe("Output format. Use 'json' for JSON response.").optional() }).describe("Request parameters for user account information endpoint.");
5
5
  const EodhdApisGetUserInfoOutput = zod.z.object({
6
- name: zod.z.string().describe("Name of the account holder or organization.").nullable().optional(),
7
- email: zod.z.string().describe("Email address associated with the user account.").nullable().optional(),
8
- apiRequests: zod.z.number().int().describe("Number of API requests made today or in the current billing period.").nullable().optional(),
9
- paymentMethod: zod.z.string().describe("Payment method used for the subscription (e.g., credit card, PayPal).").nullable().optional(),
10
- dailyRateLimit: zod.z.number().int().describe("Maximum number of API requests allowed per day based on the subscription plan.").nullable().optional(),
11
- apiRequestsDate: zod.z.string().describe("Date or timestamp when the API requests counter was last updated or reset.").nullable().optional(),
12
- subscriptionType: zod.z.string().describe("Current subscription plan type or tier (e.g., Free, Professional, Corporate).").nullable().optional()
6
+ name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name of the account holder or organization.").optional()),
7
+ email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email address associated with the user account.").optional()),
8
+ apiRequests: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of API requests made today or in the current billing period.").optional()),
9
+ paymentMethod: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Payment method used for the subscription (e.g., credit card, PayPal).").optional()),
10
+ dailyRateLimit: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Maximum number of API requests allowed per day based on the subscription plan.").optional()),
11
+ apiRequestsDate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Date or timestamp when the API requests counter was last updated or reset.").optional()),
12
+ subscriptionType: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Current subscription plan type or tier (e.g., Free, Professional, Corporate).").optional())
13
13
  }).describe("Response model for user account information from EODHD API.\nContains account details, subscription plan, and API usage statistics.");
14
14
  const eodhdApisGetUserInfo = require_action.action("EODHD_APIS_GET_USER_INFO", {
15
15
  slug: "eodhd_apis-get-user-info",
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-info.cjs","names":["z","action"],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUserInfoInput: z.ZodTypeAny = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n}).describe(\"Request parameters for user account information endpoint.\");\nexport const EodhdApisGetUserInfoOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the account holder or organization.\").nullable().optional(),\n email: z.string().describe(\"Email address associated with the user account.\").nullable().optional(),\n apiRequests: z.number().int().describe(\"Number of API requests made today or in the current billing period.\").nullable().optional(),\n paymentMethod: z.string().describe(\"Payment method used for the subscription (e.g., credit card, PayPal).\").nullable().optional(),\n dailyRateLimit: z.number().int().describe(\"Maximum number of API requests allowed per day based on the subscription plan.\").nullable().optional(),\n apiRequestsDate: z.string().describe(\"Date or timestamp when the API requests counter was last updated or reset.\").nullable().optional(),\n subscriptionType: z.string().describe(\"Current subscription plan type or tier (e.g., Free, Professional, Corporate).\").nullable().optional(),\n}).describe(\"Response model for user account information from EODHD API.\\nContains account details, subscription plan, and API usage statistics.\");\n\nexport const eodhdApisGetUserInfo = action(\"EODHD_APIS_GET_USER_INFO\", {\n slug: \"eodhd_apis-get-user-info\",\n name: \"Get User Info\",\n description: \"Retrieve current user account information and API usage statistics from EODHD. Returns details including subscription type, daily rate limits, number of API requests made, email, name, and payment method. Use this to monitor API usage, check remaining quota, or verify account details.\",\n input: EodhdApisGetUserInfoInput,\n output: EodhdApisGetUserInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,qIAAqI;AAEjJ,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-info.cjs","names":["z","action"],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUserInfoInput = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n}).describe(\"Request parameters for user account information endpoint.\");\nexport const EodhdApisGetUserInfoOutput = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the account holder or organization.\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address associated with the user account.\").optional()),\n apiRequests: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of API requests made today or in the current billing period.\").optional()),\n paymentMethod: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment method used for the subscription (e.g., credit card, PayPal).\").optional()),\n dailyRateLimit: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Maximum number of API requests allowed per day based on the subscription plan.\").optional()),\n apiRequestsDate: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date or timestamp when the API requests counter was last updated or reset.\").optional()),\n subscriptionType: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Current subscription plan type or tier (e.g., Free, Professional, Corporate).\").optional()),\n}).describe(\"Response model for user account information from EODHD API.\\nContains account details, subscription plan, and API usage statistics.\");\n\nexport const eodhdApisGetUserInfo = action(\"EODHD_APIS_GET_USER_INFO\", {\n slug: \"eodhd_apis-get-user-info\",\n name: \"Get User Info\",\n description: \"Retrieve current user account information and API usage statistics from EODHD. Returns details including subscription type, daily rate limits, number of API requests made, email, name, and payment method. Use this to monitor API usage, check remaining quota, or verify account details.\",\n input: EodhdApisGetUserInfoInput,\n output: EodhdApisGetUserInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CACjJ,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CACtJ,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC;CACtL,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC;CACpL,gBAAgBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC;CACpM,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC;CAC3L,kBAAkBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC;AACjM,CAAC,CAAC,CAAC,SAAS,qIAAqI;AAEjJ,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-user-info.d.ts
4
- declare const EodhdApisGetUserInfoInput: z.ZodTypeAny;
5
- declare const EodhdApisGetUserInfoOutput: z.ZodTypeAny;
6
- declare const eodhdApisGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const EodhdApisGetUserInfoInput: z.ZodObject<{
5
+ fmt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
+ }, z.core.$strip>;
7
+ declare const EodhdApisGetUserInfoOutput: z.ZodObject<{
8
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ apiRequests: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
+ paymentMethod: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ dailyRateLimit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
13
+ apiRequestsDate: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ subscriptionType: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ }, z.core.$strip>;
16
+ declare const eodhdApisGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ fmt?: string | undefined;
18
+ }, {
19
+ name?: string | undefined;
20
+ email?: string | undefined;
21
+ apiRequests?: number | undefined;
22
+ paymentMethod?: string | undefined;
23
+ dailyRateLimit?: number | undefined;
24
+ apiRequestsDate?: string | undefined;
25
+ subscriptionType?: string | undefined;
26
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { eodhdApisGetUserInfo };
9
29
  //# sourceMappingURL=get-user-info.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-info.d.cts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAE8B;AAAA,cAC3D,0BAAA,EAA4B,CAAA,CAAE,UAQuG;AAAA,cAErI,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-user-info.d.cts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cAU1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-user-info.d.ts
4
- declare const EodhdApisGetUserInfoInput: z.ZodTypeAny;
5
- declare const EodhdApisGetUserInfoOutput: z.ZodTypeAny;
6
- declare const eodhdApisGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const EodhdApisGetUserInfoInput: z.ZodObject<{
5
+ fmt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
+ }, z.core.$strip>;
7
+ declare const EodhdApisGetUserInfoOutput: z.ZodObject<{
8
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ apiRequests: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
+ paymentMethod: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ dailyRateLimit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
13
+ apiRequestsDate: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ subscriptionType: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ }, z.core.$strip>;
16
+ declare const eodhdApisGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ fmt?: string | undefined;
18
+ }, {
19
+ name?: string | undefined;
20
+ email?: string | undefined;
21
+ apiRequests?: number | undefined;
22
+ paymentMethod?: string | undefined;
23
+ dailyRateLimit?: number | undefined;
24
+ apiRequestsDate?: string | undefined;
25
+ subscriptionType?: string | undefined;
26
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { eodhdApisGetUserInfo };
9
29
  //# sourceMappingURL=get-user-info.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-info.d.mts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAE8B;AAAA,cAC3D,0BAAA,EAA4B,CAAA,CAAE,UAQuG;AAAA,cAErI,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-user-info.d.mts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cAU1B,oBAAA,gCAAoB,wBAAA"}
@@ -6,13 +6,13 @@ const eodhdApisGetUserInfo = action("EODHD_APIS_GET_USER_INFO", {
6
6
  description: "Retrieve current user account information and API usage statistics from EODHD. Returns details including subscription type, daily rate limits, number of API requests made, email, name, and payment method. Use this to monitor API usage, check remaining quota, or verify account details.",
7
7
  input: z.object({ fmt: z.string().default("json").describe("Output format. Use 'json' for JSON response.").optional() }).describe("Request parameters for user account information endpoint."),
8
8
  output: z.object({
9
- name: z.string().describe("Name of the account holder or organization.").nullable().optional(),
10
- email: z.string().describe("Email address associated with the user account.").nullable().optional(),
11
- apiRequests: z.number().int().describe("Number of API requests made today or in the current billing period.").nullable().optional(),
12
- paymentMethod: z.string().describe("Payment method used for the subscription (e.g., credit card, PayPal).").nullable().optional(),
13
- dailyRateLimit: z.number().int().describe("Maximum number of API requests allowed per day based on the subscription plan.").nullable().optional(),
14
- apiRequestsDate: z.string().describe("Date or timestamp when the API requests counter was last updated or reset.").nullable().optional(),
15
- subscriptionType: z.string().describe("Current subscription plan type or tier (e.g., Free, Professional, Corporate).").nullable().optional()
9
+ name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the account holder or organization.").optional()),
10
+ email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Email address associated with the user account.").optional()),
11
+ apiRequests: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of API requests made today or in the current billing period.").optional()),
12
+ paymentMethod: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment method used for the subscription (e.g., credit card, PayPal).").optional()),
13
+ dailyRateLimit: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Maximum number of API requests allowed per day based on the subscription plan.").optional()),
14
+ apiRequestsDate: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date or timestamp when the API requests counter was last updated or reset.").optional()),
15
+ subscriptionType: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Current subscription plan type or tier (e.g., Free, Professional, Corporate).").optional())
16
16
  }).describe("Response model for user account information from EODHD API.\nContains account details, subscription plan, and API usage statistics.")
17
17
  });
18
18
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-info.mjs","names":[],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUserInfoInput: z.ZodTypeAny = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n}).describe(\"Request parameters for user account information endpoint.\");\nexport const EodhdApisGetUserInfoOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the account holder or organization.\").nullable().optional(),\n email: z.string().describe(\"Email address associated with the user account.\").nullable().optional(),\n apiRequests: z.number().int().describe(\"Number of API requests made today or in the current billing period.\").nullable().optional(),\n paymentMethod: z.string().describe(\"Payment method used for the subscription (e.g., credit card, PayPal).\").nullable().optional(),\n dailyRateLimit: z.number().int().describe(\"Maximum number of API requests allowed per day based on the subscription plan.\").nullable().optional(),\n apiRequestsDate: z.string().describe(\"Date or timestamp when the API requests counter was last updated or reset.\").nullable().optional(),\n subscriptionType: z.string().describe(\"Current subscription plan type or tier (e.g., Free, Professional, Corporate).\").nullable().optional(),\n}).describe(\"Response model for user account information from EODHD API.\\nContains account details, subscription plan, and API usage statistics.\");\n\nexport const eodhdApisGetUserInfo = action(\"EODHD_APIS_GET_USER_INFO\", {\n slug: \"eodhd_apis-get-user-info\",\n name: \"Get User Info\",\n description: \"Retrieve current user account information and API usage statistics from EODHD. Returns details including subscription type, daily rate limits, number of API requests made, email, name, and payment method. Use this to monitor API usage, check remaining quota, or verify account details.\",\n input: EodhdApisGetUserInfoInput,\n output: EodhdApisGetUserInfoOutput,\n});\n"],"mappings":";;AAiBA,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBqD,EAAE,OAAO,EAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,SAAS,2DAeH;CACP,QAfsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,qIAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-info.mjs","names":[],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUserInfoInput = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n}).describe(\"Request parameters for user account information endpoint.\");\nexport const EodhdApisGetUserInfoOutput = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the account holder or organization.\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address associated with the user account.\").optional()),\n apiRequests: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of API requests made today or in the current billing period.\").optional()),\n paymentMethod: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment method used for the subscription (e.g., credit card, PayPal).\").optional()),\n dailyRateLimit: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Maximum number of API requests allowed per day based on the subscription plan.\").optional()),\n apiRequestsDate: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date or timestamp when the API requests counter was last updated or reset.\").optional()),\n subscriptionType: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Current subscription plan type or tier (e.g., Free, Professional, Corporate).\").optional()),\n}).describe(\"Response model for user account information from EODHD API.\\nContains account details, subscription plan, and API usage statistics.\");\n\nexport const eodhdApisGetUserInfo = action(\"EODHD_APIS_GET_USER_INFO\", {\n slug: \"eodhd_apis-get-user-info\",\n name: \"Get User Info\",\n description: \"Retrieve current user account information and API usage statistics from EODHD. Returns details including subscription type, daily rate limits, number of API requests made, email, name, and payment method. Use this to monitor API usage, check remaining quota, or verify account details.\",\n input: EodhdApisGetUserInfoInput,\n output: EodhdApisGetUserInfoOutput,\n});\n"],"mappings":";;AAiBA,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBuC,EAAE,OAAO,EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,SAAS,2DAeH;CACP,QAfwC,EAAE,OAAO;EACjD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;EACjJ,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;EACtJ,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC;EACtL,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC;EACpL,gBAAgB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC;EACpM,iBAAiB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC;EAC3L,kBAAkB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC;CACjM,CAAC,CAAC,CAAC,SAAS,qIAOF;AACV,CAAC"}
@@ -9,14 +9,14 @@ const EodhdApisGetUstYieldRatesInput = zod.z.object({
9
9
  filter_year: zod.z.number().int().describe("Filter data by year (e.g., 2023, 2024). Valid range: 1900 to current year + 1. Defaults to current year if not specified.").optional()
10
10
  }).describe("Request parameters for US Treasury yield curve rates API.");
11
11
  const EodhdApisGetUstYieldRates_YieldRateRecordSchema = zod.z.object({
12
- date: zod.z.string().describe("Observation date in YYYY-MM-DD format.").nullable().optional(),
13
- rate: zod.z.number().describe("Par yield rate for the given tenor (percentage).").nullable().optional(),
14
- tenor: zod.z.string().describe("Tenor/maturity period (e.g., '1M' for 1 month, '6M' for 6 months, '1Y' for 1 year, '2Y', '5Y', '10Y', '30Y').").nullable().optional()
12
+ date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Observation date in YYYY-MM-DD format.").optional()),
13
+ rate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Par yield rate for the given tenor (percentage).").optional()),
14
+ tenor: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Tenor/maturity period (e.g., '1M' for 1 month, '6M' for 6 months, '1Y' for 1 year, '2Y', '5Y', '10Y', '30Y').").optional())
15
15
  }).describe("Schema for a single US Treasury yield curve rate record.");
16
- const EodhdApisGetUstYieldRates_MetaInfoSchema = zod.z.object({ total: zod.z.number().int().describe("Total number of yield rate records available.").nullable().optional() }).describe("Metadata information for the response.");
16
+ const EodhdApisGetUstYieldRates_MetaInfoSchema = zod.z.object({ total: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Total number of yield rate records available.").optional()) }).describe("Metadata information for the response.");
17
17
  const EodhdApisGetUstYieldRatesOutput = zod.z.object({
18
- data: zod.z.array(EodhdApisGetUstYieldRates_YieldRateRecordSchema).describe("List of yield rate records with par yields across various tenors/maturities.").nullable().optional(),
19
- meta: EodhdApisGetUstYieldRates_MetaInfoSchema.nullable().optional()
18
+ data: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(EodhdApisGetUstYieldRates_YieldRateRecordSchema).describe("List of yield rate records with par yields across various tenors/maturities.").optional()),
19
+ meta: zod.z.preprocess((value) => value === null ? void 0 : value, EodhdApisGetUstYieldRates_MetaInfoSchema.optional())
20
20
  }).describe("Response model for US Treasury yield curve rates API.\nReturns historical yield curve data across all maturities.");
21
21
  const eodhdApisGetUstYieldRates = require_action.action("EODHD_APIS_GET_UST_YIELD_RATES", {
22
22
  slug: "eodhd_apis-get-ust-yield-rates",
@@ -1 +1 @@
1
- {"version":3,"file":"get-ust-yield-rates.cjs","names":["z","action"],"sources":["../../src/actions/get-ust-yield-rates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUstYieldRatesInput: z.ZodTypeAny = z.object({\n to: z.string().describe(\"End date for filtering yield rates in YYYY-MM-DD format. Returns rates up to this date.\").optional(),\n from: z.string().describe(\"Start date for filtering yield rates in YYYY-MM-DD format. Returns rates from this date onwards.\").optional(),\n limit: z.number().int().describe(\"Maximum number of yield rate records to return. Use this to limit the response size when querying large date ranges.\").optional(),\n offset: z.number().int().describe(\"Number of records to skip before returning results. Use together with 'limit' for pagination through large result sets.\").optional(),\n filter_year: z.number().int().describe(\"Filter data by year (e.g., 2023, 2024). Valid range: 1900 to current year + 1. Defaults to current year if not specified.\").optional(),\n}).describe(\"Request parameters for US Treasury yield curve rates API.\");\nconst EodhdApisGetUstYieldRates_YieldRateRecordSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Observation date in YYYY-MM-DD format.\").nullable().optional(),\n rate: z.number().describe(\"Par yield rate for the given tenor (percentage).\").nullable().optional(),\n tenor: z.string().describe(\"Tenor/maturity period (e.g., '1M' for 1 month, '6M' for 6 months, '1Y' for 1 year, '2Y', '5Y', '10Y', '30Y').\").nullable().optional(),\n}).describe(\"Schema for a single US Treasury yield curve rate record.\");\nconst EodhdApisGetUstYieldRates_MetaInfoSchema: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total number of yield rate records available.\").nullable().optional(),\n}).describe(\"Metadata information for the response.\");\nexport const EodhdApisGetUstYieldRatesOutput: z.ZodTypeAny = z.object({\n data: z.array(EodhdApisGetUstYieldRates_YieldRateRecordSchema).describe(\"List of yield rate records with par yields across various tenors/maturities.\").nullable().optional(),\n meta: EodhdApisGetUstYieldRates_MetaInfoSchema.nullable().optional(),\n}).describe(\"Response model for US Treasury yield curve rates API.\\nReturns historical yield curve data across all maturities.\");\n\nexport const eodhdApisGetUstYieldRates = action(\"EODHD_APIS_GET_UST_YIELD_RATES\", {\n slug: \"eodhd_apis-get-ust-yield-rates\",\n name: \"Get US Treasury Yield Rates\",\n description: \"Retrieve US Treasury yield curve rates from EODHD API. Returns historical par yield data across all maturities (1 month, 6 months, 1 year, 2 years, 5 years, 10 years, 30 years, etc.). Use this when you need Treasury yield curve data for financial analysis, economic research, or investment decisions.\",\n input: EodhdApisGetUstYieldRatesInput,\n output: EodhdApisGetUstYieldRatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC5H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAClK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACtK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,2CAAyDA,IAAAA,EAAE,OAAO,EACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5K,MAAM,yCAAyC,SAAS,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAE/H,MAAa,4BAA4BC,eAAAA,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-ust-yield-rates.cjs","names":["z","action"],"sources":["../../src/actions/get-ust-yield-rates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUstYieldRatesInput = z.object({\n to: z.string().describe(\"End date for filtering yield rates in YYYY-MM-DD format. Returns rates up to this date.\").optional(),\n from: z.string().describe(\"Start date for filtering yield rates in YYYY-MM-DD format. Returns rates from this date onwards.\").optional(),\n limit: z.number().int().describe(\"Maximum number of yield rate records to return. Use this to limit the response size when querying large date ranges.\").optional(),\n offset: z.number().int().describe(\"Number of records to skip before returning results. Use together with 'limit' for pagination through large result sets.\").optional(),\n filter_year: z.number().int().describe(\"Filter data by year (e.g., 2023, 2024). Valid range: 1900 to current year + 1. Defaults to current year if not specified.\").optional(),\n}).describe(\"Request parameters for US Treasury yield curve rates API.\");\nconst EodhdApisGetUstYieldRates_YieldRateRecordSchema = z.object({\n date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Observation date in YYYY-MM-DD format.\").optional()),\n rate: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Par yield rate for the given tenor (percentage).\").optional()),\n tenor: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Tenor/maturity period (e.g., '1M' for 1 month, '6M' for 6 months, '1Y' for 1 year, '2Y', '5Y', '10Y', '30Y').\").optional()),\n}).describe(\"Schema for a single US Treasury yield curve rate record.\");\nconst EodhdApisGetUstYieldRates_MetaInfoSchema = z.object({\n total: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total number of yield rate records available.\").optional()),\n}).describe(\"Metadata information for the response.\");\nexport const EodhdApisGetUstYieldRatesOutput = z.object({\n data: z.preprocess((value) => (value === null ? undefined : value), z.array(EodhdApisGetUstYieldRates_YieldRateRecordSchema).describe(\"List of yield rate records with par yields across various tenors/maturities.\").optional()),\n meta: z.preprocess((value) => (value === null ? undefined : value), EodhdApisGetUstYieldRates_MetaInfoSchema.optional()),\n}).describe(\"Response model for US Treasury yield curve rates API.\\nReturns historical yield curve data across all maturities.\");\n\nexport const eodhdApisGetUstYieldRates = action(\"EODHD_APIS_GET_UST_YIELD_RATES\", {\n slug: \"eodhd_apis-get-ust-yield-rates\",\n name: \"Get US Treasury Yield Rates\",\n description: \"Retrieve US Treasury yield curve rates from EODHD API. Returns historical par yield data across all maturities (1 month, 6 months, 1 year, 2 years, 5 years, 10 years, 30 years, etc.). Use this when you need Treasury yield curve data for financial analysis, economic research, or investment decisions.\",\n input: EodhdApisGetUstYieldRatesInput,\n output: EodhdApisGetUstYieldRatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC5H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAClK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACtK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;CAC5I,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CACtJ,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC;AACtN,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,EACxD,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,EAC5J,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC;CAChO,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,yCAAyC,SAAS,CAAC;AACzH,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAE/H,MAAa,4BAA4BC,eAAAA,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-ust-yield-rates.d.ts
4
- declare const EodhdApisGetUstYieldRatesInput: z.ZodTypeAny;
5
- declare const EodhdApisGetUstYieldRatesOutput: z.ZodTypeAny;
6
- declare const eodhdApisGetUstYieldRates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const EodhdApisGetUstYieldRatesInput: z.ZodObject<{
5
+ to: z.ZodOptional<z.ZodString>;
6
+ from: z.ZodOptional<z.ZodString>;
7
+ limit: z.ZodOptional<z.ZodNumber>;
8
+ offset: z.ZodOptional<z.ZodNumber>;
9
+ filter_year: z.ZodOptional<z.ZodNumber>;
10
+ }, z.core.$strip>;
11
+ declare const EodhdApisGetUstYieldRatesOutput: z.ZodObject<{
12
+ data: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ rate: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
15
+ tenor: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ }, z.core.$strip>>>>;
17
+ meta: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
18
+ total: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
19
+ }, z.core.$strip>>>;
20
+ }, z.core.$strip>;
21
+ declare const eodhdApisGetUstYieldRates: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ to?: string | undefined;
23
+ from?: string | undefined;
24
+ limit?: number | undefined;
25
+ offset?: number | undefined;
26
+ filter_year?: number | undefined;
27
+ }, {
28
+ data?: {
29
+ date?: string | undefined;
30
+ rate?: number | undefined;
31
+ tenor?: string | undefined;
32
+ }[] | undefined;
33
+ meta?: {
34
+ total?: number | undefined;
35
+ } | undefined;
36
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { eodhdApisGetUstYieldRates };
9
39
  //# sourceMappingURL=get-ust-yield-rates.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-ust-yield-rates.d.cts","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAMyB;AAAA,cAS3D,+BAAA,EAAiC,CAAA,CAAE,UAGgF;AAAA,cAEnH,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-ust-yield-rates.d.cts","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-ust-yield-rates.d.ts
4
- declare const EodhdApisGetUstYieldRatesInput: z.ZodTypeAny;
5
- declare const EodhdApisGetUstYieldRatesOutput: z.ZodTypeAny;
6
- declare const eodhdApisGetUstYieldRates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const EodhdApisGetUstYieldRatesInput: z.ZodObject<{
5
+ to: z.ZodOptional<z.ZodString>;
6
+ from: z.ZodOptional<z.ZodString>;
7
+ limit: z.ZodOptional<z.ZodNumber>;
8
+ offset: z.ZodOptional<z.ZodNumber>;
9
+ filter_year: z.ZodOptional<z.ZodNumber>;
10
+ }, z.core.$strip>;
11
+ declare const EodhdApisGetUstYieldRatesOutput: z.ZodObject<{
12
+ data: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ rate: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
15
+ tenor: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ }, z.core.$strip>>>>;
17
+ meta: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
18
+ total: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
19
+ }, z.core.$strip>>>;
20
+ }, z.core.$strip>;
21
+ declare const eodhdApisGetUstYieldRates: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ to?: string | undefined;
23
+ from?: string | undefined;
24
+ limit?: number | undefined;
25
+ offset?: number | undefined;
26
+ filter_year?: number | undefined;
27
+ }, {
28
+ data?: {
29
+ date?: string | undefined;
30
+ rate?: number | undefined;
31
+ tenor?: string | undefined;
32
+ }[] | undefined;
33
+ meta?: {
34
+ total?: number | undefined;
35
+ } | undefined;
36
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { eodhdApisGetUstYieldRates };
9
39
  //# sourceMappingURL=get-ust-yield-rates.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-ust-yield-rates.d.mts","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAMyB;AAAA,cAS3D,+BAAA,EAAiC,CAAA,CAAE,UAGgF;AAAA,cAEnH,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-ust-yield-rates.d.mts","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
@@ -9,19 +9,19 @@ const EodhdApisGetUstYieldRatesInput = z.object({
9
9
  filter_year: z.number().int().describe("Filter data by year (e.g., 2023, 2024). Valid range: 1900 to current year + 1. Defaults to current year if not specified.").optional()
10
10
  }).describe("Request parameters for US Treasury yield curve rates API.");
11
11
  const EodhdApisGetUstYieldRates_YieldRateRecordSchema = z.object({
12
- date: z.string().describe("Observation date in YYYY-MM-DD format.").nullable().optional(),
13
- rate: z.number().describe("Par yield rate for the given tenor (percentage).").nullable().optional(),
14
- tenor: z.string().describe("Tenor/maturity period (e.g., '1M' for 1 month, '6M' for 6 months, '1Y' for 1 year, '2Y', '5Y', '10Y', '30Y').").nullable().optional()
12
+ date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Observation date in YYYY-MM-DD format.").optional()),
13
+ rate: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Par yield rate for the given tenor (percentage).").optional()),
14
+ tenor: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Tenor/maturity period (e.g., '1M' for 1 month, '6M' for 6 months, '1Y' for 1 year, '2Y', '5Y', '10Y', '30Y').").optional())
15
15
  }).describe("Schema for a single US Treasury yield curve rate record.");
16
- const EodhdApisGetUstYieldRates_MetaInfoSchema = z.object({ total: z.number().int().describe("Total number of yield rate records available.").nullable().optional() }).describe("Metadata information for the response.");
16
+ const EodhdApisGetUstYieldRates_MetaInfoSchema = z.object({ total: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Total number of yield rate records available.").optional()) }).describe("Metadata information for the response.");
17
17
  const eodhdApisGetUstYieldRates = action("EODHD_APIS_GET_UST_YIELD_RATES", {
18
18
  slug: "eodhd_apis-get-ust-yield-rates",
19
19
  name: "Get US Treasury Yield Rates",
20
20
  description: "Retrieve US Treasury yield curve rates from EODHD API. Returns historical par yield data across all maturities (1 month, 6 months, 1 year, 2 years, 5 years, 10 years, 30 years, etc.). Use this when you need Treasury yield curve data for financial analysis, economic research, or investment decisions.",
21
21
  input: EodhdApisGetUstYieldRatesInput,
22
22
  output: z.object({
23
- data: z.array(EodhdApisGetUstYieldRates_YieldRateRecordSchema).describe("List of yield rate records with par yields across various tenors/maturities.").nullable().optional(),
24
- meta: EodhdApisGetUstYieldRates_MetaInfoSchema.nullable().optional()
23
+ data: z.preprocess((value) => value === null ? void 0 : value, z.array(EodhdApisGetUstYieldRates_YieldRateRecordSchema).describe("List of yield rate records with par yields across various tenors/maturities.").optional()),
24
+ meta: z.preprocess((value) => value === null ? void 0 : value, EodhdApisGetUstYieldRates_MetaInfoSchema.optional())
25
25
  }).describe("Response model for US Treasury yield curve rates API.\nReturns historical yield curve data across all maturities.")
26
26
  });
27
27
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-ust-yield-rates.mjs","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUstYieldRatesInput: z.ZodTypeAny = z.object({\n to: z.string().describe(\"End date for filtering yield rates in YYYY-MM-DD format. Returns rates up to this date.\").optional(),\n from: z.string().describe(\"Start date for filtering yield rates in YYYY-MM-DD format. Returns rates from this date onwards.\").optional(),\n limit: z.number().int().describe(\"Maximum number of yield rate records to return. Use this to limit the response size when querying large date ranges.\").optional(),\n offset: z.number().int().describe(\"Number of records to skip before returning results. Use together with 'limit' for pagination through large result sets.\").optional(),\n filter_year: z.number().int().describe(\"Filter data by year (e.g., 2023, 2024). Valid range: 1900 to current year + 1. Defaults to current year if not specified.\").optional(),\n}).describe(\"Request parameters for US Treasury yield curve rates API.\");\nconst EodhdApisGetUstYieldRates_YieldRateRecordSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Observation date in YYYY-MM-DD format.\").nullable().optional(),\n rate: z.number().describe(\"Par yield rate for the given tenor (percentage).\").nullable().optional(),\n tenor: z.string().describe(\"Tenor/maturity period (e.g., '1M' for 1 month, '6M' for 6 months, '1Y' for 1 year, '2Y', '5Y', '10Y', '30Y').\").nullable().optional(),\n}).describe(\"Schema for a single US Treasury yield curve rate record.\");\nconst EodhdApisGetUstYieldRates_MetaInfoSchema: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total number of yield rate records available.\").nullable().optional(),\n}).describe(\"Metadata information for the response.\");\nexport const EodhdApisGetUstYieldRatesOutput: z.ZodTypeAny = z.object({\n data: z.array(EodhdApisGetUstYieldRates_YieldRateRecordSchema).describe(\"List of yield rate records with par yields across various tenors/maturities.\").nullable().optional(),\n meta: EodhdApisGetUstYieldRates_MetaInfoSchema.nullable().optional(),\n}).describe(\"Response model for US Treasury yield curve rates API.\\nReturns historical yield curve data across all maturities.\");\n\nexport const eodhdApisGetUstYieldRates = action(\"EODHD_APIS_GET_UST_YIELD_RATES\", {\n slug: \"eodhd_apis-get-ust-yield-rates\",\n name: \"Get US Treasury Yield Rates\",\n description: \"Retrieve US Treasury yield curve rates from EODHD API. Returns historical par yield data across all maturities (1 month, 6 months, 1 year, 2 years, 5 years, 10 years, 30 years, etc.). Use this when you need Treasury yield curve data for financial analysis, economic research, or investment decisions.\",\n input: EodhdApisGetUstYieldRatesInput,\n output: EodhdApisGetUstYieldRatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC5H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAClK,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACtK,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,2CAAyD,EAAE,OAAO,EACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAMpD,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2D,EAAE,OAAO;EACpE,MAAM,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5K,MAAM,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,SAAS,mHAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-ust-yield-rates.mjs","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUstYieldRatesInput = z.object({\n to: z.string().describe(\"End date for filtering yield rates in YYYY-MM-DD format. Returns rates up to this date.\").optional(),\n from: z.string().describe(\"Start date for filtering yield rates in YYYY-MM-DD format. Returns rates from this date onwards.\").optional(),\n limit: z.number().int().describe(\"Maximum number of yield rate records to return. Use this to limit the response size when querying large date ranges.\").optional(),\n offset: z.number().int().describe(\"Number of records to skip before returning results. Use together with 'limit' for pagination through large result sets.\").optional(),\n filter_year: z.number().int().describe(\"Filter data by year (e.g., 2023, 2024). Valid range: 1900 to current year + 1. Defaults to current year if not specified.\").optional(),\n}).describe(\"Request parameters for US Treasury yield curve rates API.\");\nconst EodhdApisGetUstYieldRates_YieldRateRecordSchema = z.object({\n date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Observation date in YYYY-MM-DD format.\").optional()),\n rate: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Par yield rate for the given tenor (percentage).\").optional()),\n tenor: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Tenor/maturity period (e.g., '1M' for 1 month, '6M' for 6 months, '1Y' for 1 year, '2Y', '5Y', '10Y', '30Y').\").optional()),\n}).describe(\"Schema for a single US Treasury yield curve rate record.\");\nconst EodhdApisGetUstYieldRates_MetaInfoSchema = z.object({\n total: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total number of yield rate records available.\").optional()),\n}).describe(\"Metadata information for the response.\");\nexport const EodhdApisGetUstYieldRatesOutput = z.object({\n data: z.preprocess((value) => (value === null ? undefined : value), z.array(EodhdApisGetUstYieldRates_YieldRateRecordSchema).describe(\"List of yield rate records with par yields across various tenors/maturities.\").optional()),\n meta: z.preprocess((value) => (value === null ? undefined : value), EodhdApisGetUstYieldRates_MetaInfoSchema.optional()),\n}).describe(\"Response model for US Treasury yield curve rates API.\\nReturns historical yield curve data across all maturities.\");\n\nexport const eodhdApisGetUstYieldRates = action(\"EODHD_APIS_GET_UST_YIELD_RATES\", {\n slug: \"eodhd_apis-get-ust-yield-rates\",\n name: \"Get US Treasury Yield Rates\",\n description: \"Retrieve US Treasury yield curve rates from EODHD API. Returns historical par yield data across all maturities (1 month, 6 months, 1 year, 2 years, 5 years, 10 years, 30 years, etc.). Use this when you need Treasury yield curve data for financial analysis, economic research, or investment decisions.\",\n input: EodhdApisGetUstYieldRatesInput,\n output: EodhdApisGetUstYieldRatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC5H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAClK,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACtK,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;CAC5I,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CACtJ,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC;AACtN,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,2CAA2C,EAAE,OAAO,EACxD,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,EAC5J,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAMpD,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC;EAChO,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,yCAAyC,SAAS,CAAC;CACzH,CAAC,CAAC,CAAC,SAAS,mHAOF;AACV,CAAC"}
@@ -3,11 +3,11 @@ let zod = require("zod");
3
3
  //#region src/actions/list-exchanges.ts
4
4
  const EodhdApisListExchangesInput = zod.z.object({ fmt: zod.z.enum(["json", "csv"]).describe("Output format for the exchanges list response.").optional() }).describe("Request parameters for listing all supported stock exchanges.");
5
5
  const EodhdApisListExchanges_ExchangeInfoSchema = zod.z.object({
6
- Code: zod.z.string().describe("Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V')."),
7
- Name: zod.z.string().describe("Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange')."),
8
- Country: zod.z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK', 'Canada')."),
9
- Currency: zod.z.string().describe("Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD')."),
10
- OperatingMIC: zod.z.string().describe("Operating Market Identifier Code (MIC) for the exchange.").nullable().optional()
6
+ Code: zod.z.string().describe("Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V').").nullable(),
7
+ Name: zod.z.string().describe("Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').").nullable(),
8
+ Country: zod.z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').").nullable(),
9
+ Currency: zod.z.string().describe("Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD').").nullable(),
10
+ OperatingMIC: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Operating Market Identifier Code (MIC) for the exchange.").optional())
11
11
  }).describe("Schema for a single stock exchange record.");
12
12
  const EodhdApisListExchangesOutput = zod.z.object({ exchanges: zod.z.array(EodhdApisListExchanges_ExchangeInfoSchema).describe("List of all supported stock exchanges with their details.") }).describe("Response model for listing all supported stock exchanges.\nReturns a list of 70+ exchanges worldwide with their codes, names, countries, and currencies.");
13
13
  const eodhdApisListExchanges = require_action.action("EODHD_APIS_LIST_EXCHANGES", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-exchanges.cjs","names":["z","action"],"sources":["../../src/actions/list-exchanges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisListExchangesInput: z.ZodTypeAny = z.object({\n fmt: z.enum([\"json\", \"csv\"]).describe(\"Output format for the exchanges list response.\").optional(),\n}).describe(\"Request parameters for listing all supported stock exchanges.\");\nconst EodhdApisListExchanges_ExchangeInfoSchema: z.ZodTypeAny = z.object({\n Code: z.string().describe(\"Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V').\"),\n Name: z.string().describe(\"Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').\"),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').\"),\n Currency: z.string().describe(\"Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD').\"),\n OperatingMIC: z.string().describe(\"Operating Market Identifier Code (MIC) for the exchange.\").nullable().optional(),\n}).describe(\"Schema for a single stock exchange record.\");\nexport const EodhdApisListExchangesOutput: z.ZodTypeAny = z.object({\n exchanges: z.array(EodhdApisListExchanges_ExchangeInfoSchema).describe(\"List of all supported stock exchanges with their details.\"),\n}).describe(\"Response model for listing all supported stock exchanges.\\nReturns a list of 70+ exchanges worldwide with their codes, names, countries, and currencies.\");\n\nexport const eodhdApisListExchanges = action(\"EODHD_APIS_LIST_EXCHANGES\", {\n slug: \"eodhd_apis-list-exchanges\",\n name: \"List Supported Exchanges\",\n description: \"Retrieve a list of all supported stock exchanges from EODHD API. Returns exchange codes, names, countries, and currencies for 70+ global exchanges. Use this when you need to discover available exchanges or verify exchange codes for ticker symbols.\",\n input: EodhdApisListExchangesInput,\n output: EodhdApisListExchangesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,KAAKA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC/F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,WAAWA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2DAA2D,EACpI,CAAC,CAAC,CAAC,SAAS,0JAA0J;AAEtK,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-exchanges.cjs","names":["z","action"],"sources":["../../src/actions/list-exchanges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisListExchangesInput = z.object({\n fmt: z.enum([\"json\", \"csv\"]).describe(\"Output format for the exchanges list response.\").optional(),\n}).describe(\"Request parameters for listing all supported stock exchanges.\");\nconst EodhdApisListExchanges_ExchangeInfoSchema = z.object({\n Code: z.string().describe(\"Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V').\").nullable(),\n Name: z.string().describe(\"Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').\").nullable(),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').\").nullable(),\n Currency: z.string().describe(\"Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD').\").nullable(),\n OperatingMIC: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Operating Market Identifier Code (MIC) for the exchange.\").optional()),\n}).describe(\"Schema for a single stock exchange record.\");\nexport const EodhdApisListExchangesOutput = z.object({\n exchanges: z.array(EodhdApisListExchanges_ExchangeInfoSchema).describe(\"List of all supported stock exchanges with their details.\"),\n}).describe(\"Response model for listing all supported stock exchanges.\\nReturns a list of 70+ exchanges worldwide with their codes, names, countries, and currencies.\");\n\nexport const eodhdApisListExchanges = action(\"EODHD_APIS_LIST_EXCHANGES\", {\n slug: \"eodhd_apis-list-exchanges\",\n name: \"List Supported Exchanges\",\n description: \"Retrieve a list of all supported stock exchanges from EODHD API. Returns exchange codes, names, countries, and currencies for 70+ global exchanges. Use this when you need to discover available exchanges or verify exchange codes for ticker symbols.\",\n input: EodhdApisListExchangesInput,\n output: EodhdApisListExchangesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,KAAKA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACvH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC;AACxK,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,WAAWA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2DAA2D,EACpI,CAAC,CAAC,CAAC,SAAS,0JAA0J;AAEtK,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-exchanges.d.ts
4
- declare const EodhdApisListExchangesInput: z.ZodTypeAny;
5
- declare const EodhdApisListExchangesOutput: z.ZodTypeAny;
6
- declare const eodhdApisListExchanges: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const EodhdApisListExchangesInput: z.ZodObject<{
5
+ fmt: z.ZodOptional<z.ZodEnum<{
6
+ json: "json";
7
+ csv: "csv";
8
+ }>>;
9
+ }, z.core.$strip>;
10
+ declare const EodhdApisListExchangesOutput: z.ZodObject<{
11
+ exchanges: z.ZodArray<z.ZodObject<{
12
+ Code: z.ZodNullable<z.ZodString>;
13
+ Name: z.ZodNullable<z.ZodString>;
14
+ Country: z.ZodNullable<z.ZodString>;
15
+ Currency: z.ZodNullable<z.ZodString>;
16
+ OperatingMIC: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>;
19
+ declare const eodhdApisListExchanges: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ fmt?: "json" | "csv" | undefined;
21
+ }, {
22
+ exchanges: {
23
+ Code: string | null;
24
+ Name: string | null;
25
+ Country: string | null;
26
+ Currency: string | null;
27
+ OperatingMIC?: string | undefined;
28
+ }[];
29
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { eodhdApisListExchanges };
9
32
  //# sourceMappingURL=list-exchanges.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-exchanges.d.cts","names":[],"sources":["../../src/actions/list-exchanges.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEgC;AAAA,cAQ/D,4BAAA,EAA8B,CAAA,CAAE,UAE0H;AAAA,cAE1J,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-exchanges.d.cts","names":[],"sources":["../../src/actions/list-exchanges.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}