@illalabs/interfaces 0.3.0-canary.f3dad1f7 → 0.3.0

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 (52) hide show
  1. package/dist/schemas/chatContext.d.ts +3 -0
  2. package/dist/schemas/chatContext.d.ts.map +1 -1
  3. package/dist/schemas/chatRequestBody.d.ts +12 -0
  4. package/dist/schemas/chatRequestBody.d.ts.map +1 -1
  5. package/dist/schemas/messages.d.ts +473 -0
  6. package/dist/schemas/messages.d.ts.map +1 -1
  7. package/dist/schemas/messages.js +64 -0
  8. package/dist/schemas/messages.js.map +1 -1
  9. package/dist/schemas/modelContext.d.ts +3 -3
  10. package/dist/schemas/telemetryEvents.d.ts +1302 -44
  11. package/dist/schemas/telemetryEvents.d.ts.map +1 -1
  12. package/dist/schemas/telemetryEvents.js +4 -18
  13. package/dist/schemas/telemetryEvents.js.map +1 -1
  14. package/dist/schemas/userContext.d.ts +3 -0
  15. package/dist/schemas/userContext.d.ts.map +1 -1
  16. package/dist/schemas/userContext.js +4 -0
  17. package/dist/schemas/userContext.js.map +1 -1
  18. package/dist/tools/IllaToolError.d.ts +6 -2
  19. package/dist/tools/IllaToolError.d.ts.map +1 -1
  20. package/dist/tools/IllaToolError.js +6 -2
  21. package/dist/tools/IllaToolError.js.map +1 -1
  22. package/dist/tools/IllaToolOutcome.js +1 -1
  23. package/dist/tools/IllaToolOutcome.js.map +1 -1
  24. package/dist/types/actions/inputs.d.ts +6 -2
  25. package/dist/types/actions/inputs.d.ts.map +1 -1
  26. package/dist/types/actions/outputs.d.ts +19 -1
  27. package/dist/types/actions/outputs.d.ts.map +1 -1
  28. package/dist/types/actions/tools/getWalletBalanceAction.d.ts +3 -1
  29. package/dist/types/actions/tools/getWalletBalanceAction.d.ts.map +1 -1
  30. package/dist/types/actions/tools/index.d.ts +12 -0
  31. package/dist/types/actions/tools/index.d.ts.map +1 -1
  32. package/dist/types/actions/tools/polymarketPostOrderAction.d.ts +81 -0
  33. package/dist/types/actions/tools/polymarketPostOrderAction.d.ts.map +1 -0
  34. package/dist/types/actions/tools/polymarketPostOrderAction.js +2 -0
  35. package/dist/types/actions/tools/polymarketPostOrderAction.js.map +1 -0
  36. package/dist/types/actions/tools/predictionMarketsBetAction.d.ts +19 -0
  37. package/dist/types/actions/tools/predictionMarketsBetAction.d.ts.map +1 -0
  38. package/dist/types/actions/tools/predictionMarketsBetAction.js +2 -0
  39. package/dist/types/actions/tools/predictionMarketsBetAction.js.map +1 -0
  40. package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts +21 -0
  41. package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts.map +1 -0
  42. package/dist/types/actions/tools/predictionMarketsFetchAction.js +2 -0
  43. package/dist/types/actions/tools/predictionMarketsFetchAction.js.map +1 -0
  44. package/dist/types/actions/tools/predictionMarketsPositionsAction.d.ts +25 -0
  45. package/dist/types/actions/tools/predictionMarketsPositionsAction.d.ts.map +1 -0
  46. package/dist/types/actions/tools/predictionMarketsPositionsAction.js +2 -0
  47. package/dist/types/actions/tools/predictionMarketsPositionsAction.js.map +1 -0
  48. package/dist/utils/constants.d.ts +5 -3
  49. package/dist/utils/constants.d.ts.map +1 -1
  50. package/dist/utils/constants.js +11 -1
  51. package/dist/utils/constants.js.map +1 -1
  52. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  export const LENDING_PROVIDERS = Object.freeze(["aave"]);
2
2
  export const SWAP_BRIDGE_PROVIDERS = Object.freeze(["lifi"]);
3
3
  export const EXCHANGE_RATE_PROVIDERS = Object.freeze(["coinMarketCap"]);
4
+ export const PREDICTION_MARKET_PROVIDERS = Object.freeze(["polymarket"]);
4
5
  /**
5
6
  * Canonical definition of chains with id and name.
6
7
  * We use `as const` to preserve literal types at the type level.
@@ -31,8 +32,12 @@ export const SUPPORTED_ACTIONS = Object.freeze([
31
32
  "defiWithdraw",
32
33
  "swap",
33
34
  "bridge",
35
+ "predictionMarketsFetch",
36
+ "predictionMarketsBet",
37
+ "predictionMarketsPositions",
38
+ "polymarketPostOrder",
34
39
  ]);
35
- export const SUPPORTED_WALLET_BALANCE_PROVIDERS = Object.freeze(["moralis"]);
40
+ export const SUPPORTED_WALLET_BALANCE_PROVIDERS = Object.freeze(["moralis", "polymarket"]);
36
41
  export const CHECKABLE_ACTIONS = Object.freeze([
37
42
  "swap",
38
43
  "bridge",
@@ -52,6 +57,11 @@ export const SUPPORTED_OPENROUTER_MODELS = [
52
57
  "openai/gpt-5",
53
58
  "qwen/qwen3-vl-30b-a3b-thinking",
54
59
  "openai/gpt-5-mini",
60
+ "moonshotai/kimi-k2-thinking",
61
+ "google/gemini-3-flash-preview",
62
+ "z-ai/glm-4.7-flash",
63
+ "anthropic/claude-haiku-4.5",
64
+ "deepseek/deepseek-v3.2",
55
65
  ];
56
66
  /**
57
67
  * Supported OpenAI models
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAU,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAU,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,eAAe,CAAU,CAAC,CAAC;AAEjF;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE;IAC3B,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE;IAC5B,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;IAC5B,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1B,EAAE,EAAE,EAAE,KAAK,E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AAC;IAC3C,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,mBAAmB;IACnB,eAAe;IACf,YAAY;IACZ,cAAc;IACd,MAAM;IACN,QAAQ;IACR,wBAAwB;IACxB,sBAAsB;IACtB,4BAA4B;IAC5B,qBAAqB;CACf,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,YAAY,CAAU,CAAC,CAAC;AAUpG,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3C,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,cAAc;CACR,CAAC,CAAC;AAWZ;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAU,CAAC;AAO3E;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,6BAA6B;IAC7B,uBAAuB;IACvB,cAAc;IACd,gCAAgC;IAChC,mBAAmB;IACnB,6BAA6B;IAC7B,+BAA+B;IAC/B,oBAAoB;IACpB,4BAA4B;IAC5B,wBAAwB;CAClB,CAAC;AAOX;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,QAAQ;IACR,aAAa;IACb,OAAO;IACP,uBAAuB;CACjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@illalabs/interfaces",
3
- "version": "0.3.0-canary.f3dad1f7",
3
+ "version": "0.3.0",
4
4
  "description": "ILLA interfaces and types",
5
5
  "repository": {
6
6
  "type": "git",