@keystrokehq/eodhd_apis 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-id-mapping.cjs +16 -16
  4. package/dist/actions/get-id-mapping.cjs.map +1 -1
  5. package/dist/actions/get-id-mapping.d.cts +18 -35
  6. package/dist/actions/get-id-mapping.d.mts +18 -35
  7. package/dist/actions/get-id-mapping.mjs +16 -16
  8. package/dist/actions/get-id-mapping.mjs.map +1 -1
  9. package/dist/actions/get-mutual-funds-data.cjs +4 -4
  10. package/dist/actions/get-mutual-funds-data.cjs.map +1 -1
  11. package/dist/actions/get-mutual-funds-data.d.cts +5 -9
  12. package/dist/actions/get-mutual-funds-data.d.mts +5 -9
  13. package/dist/actions/get-mutual-funds-data.mjs +4 -4
  14. package/dist/actions/get-mutual-funds-data.mjs.map +1 -1
  15. package/dist/actions/get-real-time-quote.cjs +10 -10
  16. package/dist/actions/get-real-time-quote.cjs.map +1 -1
  17. package/dist/actions/get-real-time-quote.d.cts +20 -46
  18. package/dist/actions/get-real-time-quote.d.mts +20 -46
  19. package/dist/actions/get-real-time-quote.mjs +10 -10
  20. package/dist/actions/get-real-time-quote.mjs.map +1 -1
  21. package/dist/actions/get-real-time-websocket-forex.cjs +2 -2
  22. package/dist/actions/get-real-time-websocket-forex.cjs.map +1 -1
  23. package/dist/actions/get-real-time-websocket-forex.d.cts +3 -10
  24. package/dist/actions/get-real-time-websocket-forex.d.mts +3 -10
  25. package/dist/actions/get-real-time-websocket-forex.mjs +2 -2
  26. package/dist/actions/get-real-time-websocket-forex.mjs.map +1 -1
  27. package/dist/actions/get-real-time-websocket-us-trade.cjs +2 -2
  28. package/dist/actions/get-real-time-websocket-us-trade.cjs.map +1 -1
  29. package/dist/actions/get-real-time-websocket-us-trade.d.cts +3 -9
  30. package/dist/actions/get-real-time-websocket-us-trade.d.mts +3 -9
  31. package/dist/actions/get-real-time-websocket-us-trade.mjs +2 -2
  32. package/dist/actions/get-real-time-websocket-us-trade.mjs.map +1 -1
  33. package/dist/actions/get-user-info.cjs +8 -8
  34. package/dist/actions/get-user-info.cjs.map +1 -1
  35. package/dist/actions/get-user-info.d.cts +9 -17
  36. package/dist/actions/get-user-info.d.mts +9 -17
  37. package/dist/actions/get-user-info.mjs +8 -8
  38. package/dist/actions/get-user-info.mjs.map +1 -1
  39. package/dist/actions/get-ust-yield-rates.cjs +8 -8
  40. package/dist/actions/get-ust-yield-rates.cjs.map +1 -1
  41. package/dist/actions/get-ust-yield-rates.d.cts +10 -19
  42. package/dist/actions/get-ust-yield-rates.d.mts +10 -19
  43. package/dist/actions/get-ust-yield-rates.mjs +8 -8
  44. package/dist/actions/get-ust-yield-rates.mjs.map +1 -1
  45. package/dist/actions/list-exchanges.cjs +3 -3
  46. package/dist/actions/list-exchanges.cjs.map +1 -1
  47. package/dist/actions/list-exchanges.d.cts +4 -12
  48. package/dist/actions/list-exchanges.d.mts +4 -12
  49. package/dist/actions/list-exchanges.mjs +3 -3
  50. package/dist/actions/list-exchanges.mjs.map +1 -1
  51. package/dist/actions/search-instruments.cjs +6 -6
  52. package/dist/actions/search-instruments.cjs.map +1 -1
  53. package/dist/actions/search-instruments.d.cts +7 -20
  54. package/dist/actions/search-instruments.d.mts +7 -20
  55. package/dist/actions/search-instruments.mjs +6 -6
  56. package/dist/actions/search-instruments.mjs.map +1 -1
  57. package/package.json +1 -1
@@ -6,14 +6,14 @@ 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.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
- }).describe("Response model for user account information from EODHD API.\nContains account details, subscription plan, and API usage statistics.")
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()
16
+ }).passthrough().describe("Response model for user account information from EODHD API.\nContains account details, subscription plan, and API usage statistics.")
17
17
  });
18
18
  //#endregion
19
19
  export { eodhdApisGetUserInfo };
@@ -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.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"}
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.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}).passthrough().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,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,YAAY,CAAC,CAAC,SAAS,qIAOhB;AACV,CAAC"}
@@ -9,15 +9,15 @@ 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.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
- }).describe("Schema for a single US Treasury yield curve rate record.");
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.");
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()
15
+ }).passthrough().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() }).passthrough().describe("Metadata information for the response.");
17
17
  const EodhdApisGetUstYieldRatesOutput = zod.z.object({
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
- }).describe("Response model for US Treasury yield curve rates API.\nReturns historical yield curve data across all maturities.");
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()
20
+ }).passthrough().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",
23
23
  name: "Get US Treasury 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.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
+ {"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.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}).passthrough().describe(\"Schema for a single US Treasury yield curve rate record.\");\nconst EodhdApisGetUstYieldRates_MetaInfoSchema = z.object({\n total: z.number().int().describe(\"Total number of yield rate records available.\").nullable().optional(),\n}).passthrough().describe(\"Metadata information for the response.\");\nexport const EodhdApisGetUstYieldRatesOutput = 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}).passthrough().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,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,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,EACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,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,YAAY,CAAC,CAAC,SAAS,mHAAmH;AAE7I,MAAa,4BAA4BC,eAAAA,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,31 +9,22 @@ declare const EodhdApisGetUstYieldRatesInput: z.ZodObject<{
9
9
  filter_year: z.ZodOptional<z.ZodNumber>;
10
10
  }, z.core.$strip>;
11
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>;
12
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
13
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ tenor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$loose>>>>;
17
+ meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ }, z.core.$loose>>>;
20
+ }, z.core.$loose>;
21
21
  declare const eodhdApisGetUstYieldRates: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  to?: string | undefined;
23
23
  from?: string | undefined;
24
24
  limit?: number | undefined;
25
25
  offset?: number | undefined;
26
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]>;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
28
  //#endregion
38
29
  export { eodhdApisGetUstYieldRates };
39
30
  //# sourceMappingURL=get-ust-yield-rates.d.cts.map
@@ -9,31 +9,22 @@ declare const EodhdApisGetUstYieldRatesInput: z.ZodObject<{
9
9
  filter_year: z.ZodOptional<z.ZodNumber>;
10
10
  }, z.core.$strip>;
11
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>;
12
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
13
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ tenor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$loose>>>>;
17
+ meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ }, z.core.$loose>>>;
20
+ }, z.core.$loose>;
21
21
  declare const eodhdApisGetUstYieldRates: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  to?: string | undefined;
23
23
  from?: string | undefined;
24
24
  limit?: number | undefined;
25
25
  offset?: number | undefined;
26
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]>;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
28
  //#endregion
38
29
  export { eodhdApisGetUstYieldRates };
39
30
  //# sourceMappingURL=get-ust-yield-rates.d.mts.map
@@ -9,20 +9,20 @@ 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.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
- }).describe("Schema for a single US Treasury yield curve rate record.");
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.");
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()
15
+ }).passthrough().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() }).passthrough().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.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
- }).describe("Response model for US Treasury yield curve rates API.\nReturns historical yield curve data across all maturities.")
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()
25
+ }).passthrough().describe("Response model for US Treasury yield curve rates API.\nReturns historical yield curve data across all maturities.")
26
26
  });
27
27
  //#endregion
28
28
  export { eodhdApisGetUstYieldRates };
@@ -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.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"}
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.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}).passthrough().describe(\"Schema for a single US Treasury yield curve rate record.\");\nconst EodhdApisGetUstYieldRates_MetaInfoSchema = z.object({\n total: z.number().int().describe(\"Total number of yield rate records available.\").nullable().optional(),\n}).passthrough().describe(\"Metadata information for the response.\");\nexport const EodhdApisGetUstYieldRatesOutput = 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}).passthrough().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,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,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,2CAA2C,EAAE,OAAO,EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAMlE,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,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,YAAY,CAAC,CAAC,SAAS,mHAOhB;AACV,CAAC"}
@@ -7,9 +7,9 @@ const EodhdApisListExchanges_ExchangeInfoSchema = zod.z.object({
7
7
  Name: zod.z.string().describe("Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').").nullable(),
8
8
  Country: zod.z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').").nullable(),
9
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
- }).describe("Schema for a single stock exchange record.");
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.");
10
+ OperatingMIC: zod.z.string().describe("Operating Market Identifier Code (MIC) for the exchange.").nullable().optional()
11
+ }).passthrough().describe("Schema for a single stock exchange record.");
12
+ const EodhdApisListExchangesOutput = zod.z.object({ exchanges: zod.z.array(EodhdApisListExchanges_ExchangeInfoSchema).describe("List of all supported stock exchanges with their details.") }).passthrough().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", {
14
14
  slug: "eodhd_apis-list-exchanges",
15
15
  name: "List Supported 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.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
+ {"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.string().describe(\"Operating Market Identifier Code (MIC) for the exchange.\").nullable().optional(),\n}).passthrough().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}).passthrough().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,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,WAAWA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2DAA2D,EACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0JAA0J;AAEpL,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,20 +13,12 @@ declare const EodhdApisListExchangesOutput: z.ZodObject<{
13
13
  Name: z.ZodNullable<z.ZodString>;
14
14
  Country: z.ZodNullable<z.ZodString>;
15
15
  Currency: z.ZodNullable<z.ZodString>;
16
- OperatingMIC: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- }, z.core.$strip>>;
18
- }, z.core.$strip>;
16
+ OperatingMIC: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$loose>>;
18
+ }, z.core.$loose>;
19
19
  declare const eodhdApisListExchanges: import("@keystrokehq/action").WorkflowActionDefinition<{
20
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]>;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
22
  //#endregion
31
23
  export { eodhdApisListExchanges };
32
24
  //# sourceMappingURL=list-exchanges.d.cts.map
@@ -13,20 +13,12 @@ declare const EodhdApisListExchangesOutput: z.ZodObject<{
13
13
  Name: z.ZodNullable<z.ZodString>;
14
14
  Country: z.ZodNullable<z.ZodString>;
15
15
  Currency: z.ZodNullable<z.ZodString>;
16
- OperatingMIC: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- }, z.core.$strip>>;
18
- }, z.core.$strip>;
16
+ OperatingMIC: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$loose>>;
18
+ }, z.core.$loose>;
19
19
  declare const eodhdApisListExchanges: import("@keystrokehq/action").WorkflowActionDefinition<{
20
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]>;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
22
  //#endregion
31
23
  export { eodhdApisListExchanges };
32
24
  //# sourceMappingURL=list-exchanges.d.mts.map
@@ -7,14 +7,14 @@ const EodhdApisListExchanges_ExchangeInfoSchema = z.object({
7
7
  Name: z.string().describe("Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').").nullable(),
8
8
  Country: z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').").nullable(),
9
9
  Currency: z.string().describe("Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD').").nullable(),
10
- OperatingMIC: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Operating Market Identifier Code (MIC) for the exchange.").optional())
11
- }).describe("Schema for a single stock exchange record.");
10
+ OperatingMIC: z.string().describe("Operating Market Identifier Code (MIC) for the exchange.").nullable().optional()
11
+ }).passthrough().describe("Schema for a single stock exchange record.");
12
12
  const eodhdApisListExchanges = action("EODHD_APIS_LIST_EXCHANGES", {
13
13
  slug: "eodhd_apis-list-exchanges",
14
14
  name: "List Supported Exchanges",
15
15
  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.",
16
16
  input: EodhdApisListExchangesInput,
17
- output: z.object({ exchanges: 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.")
17
+ output: z.object({ exchanges: z.array(EodhdApisListExchanges_ExchangeInfoSchema).describe("List of all supported stock exchanges with their details.") }).passthrough().describe("Response model for listing all supported stock exchanges.\nReturns a list of 70+ exchanges worldwide with their codes, names, countries, and currencies.")
18
18
  });
19
19
  //#endregion
20
20
  export { eodhdApisListExchanges };
@@ -1 +1 @@
1
- {"version":3,"file":"list-exchanges.mjs","names":[],"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,8BAA8B,EAAE,OAAO,EAClD,KAAK,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC;AACxK,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAKxD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,WAAW,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2DAA2D,EACpI,CAAC,CAAC,CAAC,SAAS,0JAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-exchanges.mjs","names":[],"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.string().describe(\"Operating Market Identifier Code (MIC) for the exchange.\").nullable().optional(),\n}).passthrough().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}).passthrough().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,8BAA8B,EAAE,OAAO,EAClD,KAAK,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAKtE,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,WAAW,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2DAA2D,EACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0JAOhB;AACV,CAAC"}
@@ -9,17 +9,17 @@ const EodhdApisSearchInstrumentsInput = zod.z.object({
9
9
  }).describe("Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.");
10
10
  const EodhdApisSearchInstruments_InstrumentSearchResultSchema = zod.z.object({
11
11
  Code: zod.z.string().describe("Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').").nullable(),
12
- ISIN: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("International Securities Identification Number. May be null if not available.").optional()),
12
+ ISIN: zod.z.string().describe("International Securities Identification Number. May be null if not available.").nullable().optional(),
13
13
  Name: zod.z.string().describe("Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').").nullable(),
14
14
  Type: zod.z.string().describe("Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').").nullable(),
15
15
  Country: zod.z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK').").nullable(),
16
16
  Currency: zod.z.string().describe("Trading currency (e.g., 'USD', 'GBP', 'EUR').").nullable(),
17
17
  Exchange: zod.z.string().describe("Exchange code where the instrument is traded (e.g., 'US', 'LSE').").nullable(),
18
- isPrimary: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether this is the primary exchange listing for the instrument. May be null if not available.").optional()),
19
- previousClose: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Last closing price of the instrument. May be null if not available.").optional()),
20
- previousCloseDate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Date of the last closing price in YYYY-MM-DD format. May be null if not available.").optional())
21
- }).describe("Schema for a single instrument search result.");
22
- const EodhdApisSearchInstrumentsOutput = zod.z.object({ results: zod.z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe("List of instruments matching the search query.") }).describe("Response model for search instruments API returning a list of matching instruments.");
18
+ isPrimary: zod.z.boolean().describe("Whether this is the primary exchange listing for the instrument. May be null if not available.").nullable().optional(),
19
+ previousClose: zod.z.number().describe("Last closing price of the instrument. May be null if not available.").nullable().optional(),
20
+ previousCloseDate: zod.z.string().describe("Date of the last closing price in YYYY-MM-DD format. May be null if not available.").nullable().optional()
21
+ }).passthrough().describe("Schema for a single instrument search result.");
22
+ const EodhdApisSearchInstrumentsOutput = zod.z.object({ results: zod.z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe("List of instruments matching the search query.") }).passthrough().describe("Response model for search instruments API returning a list of matching instruments.");
23
23
  const eodhdApisSearchInstruments = require_action.action("EODHD_APIS_SEARCH_INSTRUMENTS", {
24
24
  slug: "eodhd_apis-search-instruments",
25
25
  name: "Search Instruments",
@@ -1 +1 @@
1
- {"version":3,"file":"search-instruments.cjs","names":["z","action"],"sources":["../../src/actions/search-instruments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisSearchInstrumentsInput = z.object({\n type: z.string().describe(\"Filter results by instrument type. Available types: 'stock', 'fund', 'etf', 'bond', 'index'. Leave empty to search all types.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. If not specified, API returns all matching results.\").optional(),\n query: z.string().describe(\"Search query to find instruments by ticker symbol, company name, or ISIN. Examples: 'AAPL' (Apple ticker), 'Apple Inc' (company name), 'US0378331005' (ISIN).\"),\n exchange: z.string().describe(\"Filter results by exchange code. Examples: 'US' (United States), 'LSE' (London Stock Exchange), 'TO' (Toronto). Leave empty to search all exchanges.\").optional(),\n}).describe(\"Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.\");\nconst EodhdApisSearchInstruments_InstrumentSearchResultSchema = z.object({\n Code: z.string().describe(\"Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').\").nullable(),\n ISIN: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"International Securities Identification Number. May be null if not available.\").optional()),\n Name: z.string().describe(\"Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').\").nullable(),\n Type: z.string().describe(\"Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').\").nullable(),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK').\").nullable(),\n Currency: z.string().describe(\"Trading currency (e.g., 'USD', 'GBP', 'EUR').\").nullable(),\n Exchange: z.string().describe(\"Exchange code where the instrument is traded (e.g., 'US', 'LSE').\").nullable(),\n isPrimary: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether this is the primary exchange listing for the instrument. May be null if not available.\").optional()),\n previousClose: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Last closing price of the instrument. May be null if not available.\").optional()),\n previousCloseDate: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date of the last closing price in YYYY-MM-DD format. May be null if not available.\").optional()),\n}).describe(\"Schema for a single instrument search result.\");\nexport const EodhdApisSearchInstrumentsOutput = z.object({\n results: z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe(\"List of instruments matching the search query.\"),\n}).describe(\"Response model for search instruments API returning a list of matching instruments.\");\n\nexport const eodhdApisSearchInstruments = action(\"EODHD_APIS_SEARCH_INSTRUMENTS\", {\n slug: \"eodhd_apis-search-instruments\",\n name: \"Search Instruments\",\n description: \"Search for stocks, ETFs, mutual funds, bonds, and indices by ticker symbol, company name, or ISIN. Use when you need to find instruments by name or identifier, discover available tickers, or look up securities across exchanges. The API searches among active tickers only.\",\n input: EodhdApisSearchInstrumentsInput,\n output: EodhdApisSearchInstrumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACpK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC1L,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC;CACnL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC;CAC1M,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC;CAClL,mBAAmBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC;AACvM,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,EACrI,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAEjG,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-instruments.cjs","names":["z","action"],"sources":["../../src/actions/search-instruments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisSearchInstrumentsInput = z.object({\n type: z.string().describe(\"Filter results by instrument type. Available types: 'stock', 'fund', 'etf', 'bond', 'index'. Leave empty to search all types.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. If not specified, API returns all matching results.\").optional(),\n query: z.string().describe(\"Search query to find instruments by ticker symbol, company name, or ISIN. Examples: 'AAPL' (Apple ticker), 'Apple Inc' (company name), 'US0378331005' (ISIN).\"),\n exchange: z.string().describe(\"Filter results by exchange code. Examples: 'US' (United States), 'LSE' (London Stock Exchange), 'TO' (Toronto). Leave empty to search all exchanges.\").optional(),\n}).describe(\"Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.\");\nconst EodhdApisSearchInstruments_InstrumentSearchResultSchema = z.object({\n Code: z.string().describe(\"Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').\").nullable(),\n ISIN: z.string().describe(\"International Securities Identification Number. May be null if not available.\").nullable().optional(),\n Name: z.string().describe(\"Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').\").nullable(),\n Type: z.string().describe(\"Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').\").nullable(),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK').\").nullable(),\n Currency: z.string().describe(\"Trading currency (e.g., 'USD', 'GBP', 'EUR').\").nullable(),\n Exchange: z.string().describe(\"Exchange code where the instrument is traded (e.g., 'US', 'LSE').\").nullable(),\n isPrimary: z.boolean().describe(\"Whether this is the primary exchange listing for the instrument. May be null if not available.\").nullable().optional(),\n previousClose: z.number().describe(\"Last closing price of the instrument. May be null if not available.\").nullable().optional(),\n previousCloseDate: z.string().describe(\"Date of the last closing price in YYYY-MM-DD format. May be null if not available.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single instrument search result.\");\nexport const EodhdApisSearchInstrumentsOutput = z.object({\n results: z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe(\"List of instruments matching the search query.\"),\n}).passthrough().describe(\"Response model for search instruments API returning a list of matching instruments.\");\n\nexport const eodhdApisSearchInstruments = action(\"EODHD_APIS_SEARCH_INSTRUMENTS\", {\n slug: \"eodhd_apis-search-instruments\",\n name: \"Search Instruments\",\n description: \"Search for stocks, ETFs, mutual funds, bonds, and indices by ticker symbol, company name, or ISIN. Use when you need to find instruments by name or identifier, discover available tickers, or look up securities across exchanges. The API searches among active tickers only.\",\n input: EodhdApisSearchInstrumentsInput,\n output: EodhdApisSearchInstrumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACpK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC1L,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,EACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAAqF;AAE/G,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,36 +10,23 @@ declare const EodhdApisSearchInstrumentsInput: z.ZodObject<{
10
10
  declare const EodhdApisSearchInstrumentsOutput: z.ZodObject<{
11
11
  results: z.ZodArray<z.ZodObject<{
12
12
  Code: z.ZodNullable<z.ZodString>;
13
- ISIN: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ ISIN: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  Name: z.ZodNullable<z.ZodString>;
15
15
  Type: z.ZodNullable<z.ZodString>;
16
16
  Country: z.ZodNullable<z.ZodString>;
17
17
  Currency: z.ZodNullable<z.ZodString>;
18
18
  Exchange: z.ZodNullable<z.ZodString>;
19
- isPrimary: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
20
- previousClose: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
21
- previousCloseDate: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
- }, z.core.$strip>>;
23
- }, z.core.$strip>;
19
+ isPrimary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20
+ previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ previousCloseDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>>;
23
+ }, z.core.$loose>;
24
24
  declare const eodhdApisSearchInstruments: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  query: string;
26
26
  type?: string | undefined;
27
27
  limit?: number | undefined;
28
28
  exchange?: string | undefined;
29
- }, {
30
- results: {
31
- Code: string | null;
32
- Name: string | null;
33
- Type: string | null;
34
- Country: string | null;
35
- Currency: string | null;
36
- Exchange: string | null;
37
- ISIN?: string | undefined;
38
- isPrimary?: boolean | undefined;
39
- previousClose?: number | undefined;
40
- previousCloseDate?: string | undefined;
41
- }[];
42
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
30
  //#endregion
44
31
  export { eodhdApisSearchInstruments };
45
32
  //# sourceMappingURL=search-instruments.d.cts.map
@@ -10,36 +10,23 @@ declare const EodhdApisSearchInstrumentsInput: z.ZodObject<{
10
10
  declare const EodhdApisSearchInstrumentsOutput: z.ZodObject<{
11
11
  results: z.ZodArray<z.ZodObject<{
12
12
  Code: z.ZodNullable<z.ZodString>;
13
- ISIN: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ ISIN: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  Name: z.ZodNullable<z.ZodString>;
15
15
  Type: z.ZodNullable<z.ZodString>;
16
16
  Country: z.ZodNullable<z.ZodString>;
17
17
  Currency: z.ZodNullable<z.ZodString>;
18
18
  Exchange: z.ZodNullable<z.ZodString>;
19
- isPrimary: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
20
- previousClose: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
21
- previousCloseDate: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
- }, z.core.$strip>>;
23
- }, z.core.$strip>;
19
+ isPrimary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20
+ previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ previousCloseDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>>;
23
+ }, z.core.$loose>;
24
24
  declare const eodhdApisSearchInstruments: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  query: string;
26
26
  type?: string | undefined;
27
27
  limit?: number | undefined;
28
28
  exchange?: string | undefined;
29
- }, {
30
- results: {
31
- Code: string | null;
32
- Name: string | null;
33
- Type: string | null;
34
- Country: string | null;
35
- Currency: string | null;
36
- Exchange: string | null;
37
- ISIN?: string | undefined;
38
- isPrimary?: boolean | undefined;
39
- previousClose?: number | undefined;
40
- previousCloseDate?: string | undefined;
41
- }[];
42
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
30
  //#endregion
44
31
  export { eodhdApisSearchInstruments };
45
32
  //# sourceMappingURL=search-instruments.d.mts.map
@@ -9,22 +9,22 @@ const EodhdApisSearchInstrumentsInput = z.object({
9
9
  }).describe("Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.");
10
10
  const EodhdApisSearchInstruments_InstrumentSearchResultSchema = z.object({
11
11
  Code: z.string().describe("Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').").nullable(),
12
- ISIN: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("International Securities Identification Number. May be null if not available.").optional()),
12
+ ISIN: z.string().describe("International Securities Identification Number. May be null if not available.").nullable().optional(),
13
13
  Name: z.string().describe("Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').").nullable(),
14
14
  Type: z.string().describe("Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').").nullable(),
15
15
  Country: z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK').").nullable(),
16
16
  Currency: z.string().describe("Trading currency (e.g., 'USD', 'GBP', 'EUR').").nullable(),
17
17
  Exchange: z.string().describe("Exchange code where the instrument is traded (e.g., 'US', 'LSE').").nullable(),
18
- isPrimary: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether this is the primary exchange listing for the instrument. May be null if not available.").optional()),
19
- previousClose: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Last closing price of the instrument. May be null if not available.").optional()),
20
- previousCloseDate: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date of the last closing price in YYYY-MM-DD format. May be null if not available.").optional())
21
- }).describe("Schema for a single instrument search result.");
18
+ isPrimary: z.boolean().describe("Whether this is the primary exchange listing for the instrument. May be null if not available.").nullable().optional(),
19
+ previousClose: z.number().describe("Last closing price of the instrument. May be null if not available.").nullable().optional(),
20
+ previousCloseDate: z.string().describe("Date of the last closing price in YYYY-MM-DD format. May be null if not available.").nullable().optional()
21
+ }).passthrough().describe("Schema for a single instrument search result.");
22
22
  const eodhdApisSearchInstruments = action("EODHD_APIS_SEARCH_INSTRUMENTS", {
23
23
  slug: "eodhd_apis-search-instruments",
24
24
  name: "Search Instruments",
25
25
  description: "Search for stocks, ETFs, mutual funds, bonds, and indices by ticker symbol, company name, or ISIN. Use when you need to find instruments by name or identifier, discover available tickers, or look up securities across exchanges. The API searches among active tickers only.",
26
26
  input: EodhdApisSearchInstrumentsInput,
27
- output: z.object({ results: z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe("List of instruments matching the search query.") }).describe("Response model for search instruments API returning a list of matching instruments.")
27
+ output: z.object({ results: z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe("List of instruments matching the search query.") }).passthrough().describe("Response model for search instruments API returning a list of matching instruments.")
28
28
  });
29
29
  //#endregion
30
30
  export { eodhdApisSearchInstruments };
@@ -1 +1 @@
1
- {"version":3,"file":"search-instruments.mjs","names":[],"sources":["../../src/actions/search-instruments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisSearchInstrumentsInput = z.object({\n type: z.string().describe(\"Filter results by instrument type. Available types: 'stock', 'fund', 'etf', 'bond', 'index'. Leave empty to search all types.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. If not specified, API returns all matching results.\").optional(),\n query: z.string().describe(\"Search query to find instruments by ticker symbol, company name, or ISIN. Examples: 'AAPL' (Apple ticker), 'Apple Inc' (company name), 'US0378331005' (ISIN).\"),\n exchange: z.string().describe(\"Filter results by exchange code. Examples: 'US' (United States), 'LSE' (London Stock Exchange), 'TO' (Toronto). Leave empty to search all exchanges.\").optional(),\n}).describe(\"Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.\");\nconst EodhdApisSearchInstruments_InstrumentSearchResultSchema = z.object({\n Code: z.string().describe(\"Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').\").nullable(),\n ISIN: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"International Securities Identification Number. May be null if not available.\").optional()),\n Name: z.string().describe(\"Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').\").nullable(),\n Type: z.string().describe(\"Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').\").nullable(),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK').\").nullable(),\n Currency: z.string().describe(\"Trading currency (e.g., 'USD', 'GBP', 'EUR').\").nullable(),\n Exchange: z.string().describe(\"Exchange code where the instrument is traded (e.g., 'US', 'LSE').\").nullable(),\n isPrimary: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether this is the primary exchange listing for the instrument. May be null if not available.\").optional()),\n previousClose: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Last closing price of the instrument. May be null if not available.\").optional()),\n previousCloseDate: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date of the last closing price in YYYY-MM-DD format. May be null if not available.\").optional()),\n}).describe(\"Schema for a single instrument search result.\");\nexport const EodhdApisSearchInstrumentsOutput = z.object({\n results: z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe(\"List of instruments matching the search query.\"),\n}).describe(\"Response model for search instruments API returning a list of matching instruments.\");\n\nexport const eodhdApisSearchInstruments = action(\"EODHD_APIS_SEARCH_INSTRUMENTS\", {\n slug: \"eodhd_apis-search-instruments\",\n name: \"Search Instruments\",\n description: \"Search for stocks, ETFs, mutual funds, bonds, and indices by ticker symbol, company name, or ISIN. Use when you need to find instruments by name or identifier, discover available tickers, or look up securities across exchanges. The API searches among active tickers only.\",\n input: EodhdApisSearchInstrumentsInput,\n output: EodhdApisSearchInstrumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACpK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACtI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC1L,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,0DAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC;CACnL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC;CAC1M,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC;CAClL,mBAAmB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC;AACvM,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAK3D,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,EACrI,CAAC,CAAC,CAAC,SAAS,qFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"search-instruments.mjs","names":[],"sources":["../../src/actions/search-instruments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisSearchInstrumentsInput = z.object({\n type: z.string().describe(\"Filter results by instrument type. Available types: 'stock', 'fund', 'etf', 'bond', 'index'. Leave empty to search all types.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. If not specified, API returns all matching results.\").optional(),\n query: z.string().describe(\"Search query to find instruments by ticker symbol, company name, or ISIN. Examples: 'AAPL' (Apple ticker), 'Apple Inc' (company name), 'US0378331005' (ISIN).\"),\n exchange: z.string().describe(\"Filter results by exchange code. Examples: 'US' (United States), 'LSE' (London Stock Exchange), 'TO' (Toronto). Leave empty to search all exchanges.\").optional(),\n}).describe(\"Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.\");\nconst EodhdApisSearchInstruments_InstrumentSearchResultSchema = z.object({\n Code: z.string().describe(\"Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').\").nullable(),\n ISIN: z.string().describe(\"International Securities Identification Number. May be null if not available.\").nullable().optional(),\n Name: z.string().describe(\"Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').\").nullable(),\n Type: z.string().describe(\"Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').\").nullable(),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK').\").nullable(),\n Currency: z.string().describe(\"Trading currency (e.g., 'USD', 'GBP', 'EUR').\").nullable(),\n Exchange: z.string().describe(\"Exchange code where the instrument is traded (e.g., 'US', 'LSE').\").nullable(),\n isPrimary: z.boolean().describe(\"Whether this is the primary exchange listing for the instrument. May be null if not available.\").nullable().optional(),\n previousClose: z.number().describe(\"Last closing price of the instrument. May be null if not available.\").nullable().optional(),\n previousCloseDate: z.string().describe(\"Date of the last closing price in YYYY-MM-DD format. May be null if not available.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a single instrument search result.\");\nexport const EodhdApisSearchInstrumentsOutput = z.object({\n results: z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe(\"List of instruments matching the search query.\"),\n}).passthrough().describe(\"Response model for search instruments API returning a list of matching instruments.\");\n\nexport const eodhdApisSearchInstruments = action(\"EODHD_APIS_SEARCH_INSTRUMENTS\", {\n slug: \"eodhd_apis-search-instruments\",\n name: \"Search Instruments\",\n description: \"Search for stocks, ETFs, mutual funds, bonds, and indices by ticker symbol, company name, or ISIN. Use when you need to find instruments by name or identifier, discover available tickers, or look up securities across exchanges. The API searches among active tickers only.\",\n input: EodhdApisSearchInstrumentsInput,\n output: EodhdApisSearchInstrumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACpK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACtI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC1L,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,0DAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAKzE,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,EACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAOhB;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/eodhd_apis",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"