@adaptic/lumic-utils 1.0.12 → 1.0.14

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 (91) hide show
  1. package/dist/apollo-client.client-Lu1K9ohp.js +3694 -0
  2. package/dist/apollo-client.client-Lu1K9ohp.js.map +1 -0
  3. package/dist/apollo-client.client-YFsBF7bL.js +3705 -0
  4. package/dist/apollo-client.client-YFsBF7bL.js.map +1 -0
  5. package/dist/apollo-client.server-CAtwy7W4.js +16320 -0
  6. package/dist/apollo-client.server-CAtwy7W4.js.map +1 -0
  7. package/dist/apollo-client.server-CWrxRFr9.js +16322 -0
  8. package/dist/apollo-client.server-CWrxRFr9.js.map +1 -0
  9. package/dist/index-Bc3hrZJm.js +12108 -0
  10. package/dist/index-Bc3hrZJm.js.map +1 -0
  11. package/dist/index-CZkVRs3j.js +75962 -0
  12. package/dist/index-CZkVRs3j.js.map +1 -0
  13. package/dist/{index-CcXQeJz8.js → index-Cstek604.js} +182 -22
  14. package/dist/index-Cstek604.js.map +1 -0
  15. package/dist/index-DT2sMbfH.js +76169 -0
  16. package/dist/index-DT2sMbfH.js.map +1 -0
  17. package/dist/index-DZUGtDjj.js +12271 -0
  18. package/dist/index-DZUGtDjj.js.map +1 -0
  19. package/dist/{index-CcgbRft2.js → index-DZZCd-1T.js} +182 -22
  20. package/dist/index-DZZCd-1T.js.map +1 -0
  21. package/dist/index.cjs +137 -11417
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.mjs +40 -11399
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/test.cjs +25 -7
  26. package/dist/test.cjs.map +1 -1
  27. package/dist/test.mjs +25 -7
  28. package/dist/test.mjs.map +1 -1
  29. package/dist/types/config/__tests__/secrets.test.d.ts +1 -0
  30. package/dist/types/config/secrets.d.ts +286 -0
  31. package/dist/types/errors/__tests__/errors.test.d.ts +1 -0
  32. package/dist/types/errors/index.d.ts +77 -0
  33. package/dist/types/functions/__tests__/aws-lambda.test.d.ts +1 -0
  34. package/dist/types/functions/__tests__/aws-s3-utils.test.d.ts +1 -0
  35. package/dist/types/functions/__tests__/json-llm-tools.test.d.ts +1 -0
  36. package/dist/types/functions/__tests__/json-tools.test.d.ts +1 -0
  37. package/dist/types/functions/__tests__/slack-utils.test.d.ts +1 -0
  38. package/dist/types/functions/aws-lambda.d.ts +1 -1
  39. package/dist/types/functions/aws-s3-utils.d.ts +2 -2
  40. package/dist/types/functions/google-sheets.d.ts +4 -4
  41. package/dist/types/functions/json-llm-tools.d.ts +25 -3
  42. package/dist/types/functions/llm-anthropic.d.ts +14 -0
  43. package/dist/types/functions/llm-call.d.ts +14 -3
  44. package/dist/types/functions/llm-config.d.ts +13 -8
  45. package/dist/types/functions/llm-deepseek.d.ts +1 -1
  46. package/dist/types/functions/llm-openai-compatible.d.ts +15 -0
  47. package/dist/types/functions/llm-openai.d.ts +3 -2
  48. package/dist/types/functions/llm-utils.d.ts +24 -1
  49. package/dist/types/functions/slack-utils.d.ts +3 -4
  50. package/dist/types/functions/utils.d.ts +2 -14
  51. package/dist/types/functions/zip-utils.d.ts +12 -10
  52. package/dist/types/index.d.ts +33 -0
  53. package/dist/types/schemas/aws-schemas.d.ts +210 -0
  54. package/dist/types/schemas/google-sheets-schemas.d.ts +32 -0
  55. package/dist/types/schemas/index.d.ts +17 -0
  56. package/dist/types/schemas/openai-schemas.d.ts +834 -0
  57. package/dist/types/schemas/perplexity-schemas.d.ts +338 -0
  58. package/dist/types/schemas/validation-helpers.d.ts +33 -0
  59. package/dist/types/types/aws-types.d.ts +1 -1
  60. package/dist/types/types/google-types.d.ts +5 -3
  61. package/dist/types/types/index.d.ts +1 -1
  62. package/dist/types/types/openai-types.d.ts +396 -6
  63. package/dist/types/utils/__tests__/circuit-breaker.test.d.ts +1 -0
  64. package/dist/types/utils/__tests__/correlation.test.d.ts +1 -0
  65. package/dist/types/utils/__tests__/input-validator.test.d.ts +1 -0
  66. package/dist/types/utils/__tests__/llm-cost-tracker.test.d.ts +1 -0
  67. package/dist/types/utils/__tests__/logger.test.d.ts +1 -0
  68. package/dist/types/utils/__tests__/metrics.test.d.ts +1 -0
  69. package/dist/types/utils/__tests__/retry.test.d.ts +1 -0
  70. package/dist/types/utils/__tests__/sanitizer.test.d.ts +1 -0
  71. package/dist/types/utils/__tests__/timeouts.test.d.ts +1 -0
  72. package/dist/types/utils/aws-initialise.d.ts +6 -1
  73. package/dist/types/utils/circuit-breaker.d.ts +99 -0
  74. package/dist/types/utils/config.d.ts +40 -2
  75. package/dist/types/utils/correlation.d.ts +43 -0
  76. package/dist/types/utils/health-check.d.ts +50 -0
  77. package/dist/types/utils/input-validator.d.ts +51 -0
  78. package/dist/types/utils/llm-cost-tracker.d.ts +174 -0
  79. package/dist/types/utils/logger.d.ts +8 -0
  80. package/dist/types/utils/metrics.d.ts +61 -0
  81. package/dist/types/utils/rate-limiter.d.ts +85 -0
  82. package/dist/types/utils/retry.d.ts +58 -0
  83. package/dist/types/utils/sanitizer.d.ts +30 -0
  84. package/dist/types/utils/timeouts.d.ts +44 -0
  85. package/package.json +2 -1
  86. package/dist/index-CcXQeJz8.js.map +0 -1
  87. package/dist/index-CcgbRft2.js.map +0 -1
  88. package/dist/types/aws-types.ts +0 -64
  89. package/dist/types/google-types.ts +0 -48
  90. package/dist/types/index.ts +0 -57
  91. package/dist/types/openai-types.ts +0 -92
@@ -1,92 +0,0 @@
1
- // openai-types.ts
2
- import { ChatCompletionMessageParam, ChatCompletionTool, ChatCompletionMessageToolCall } from 'openai/resources/chat/completions';
3
- import { ImageGenerateParams, ImageModel } from 'openai/resources/images';
4
-
5
- /**
6
- * Represents OpenAI models
7
- */
8
-
9
- export type OpenAIModel = 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano'
10
- /**
11
- * Represents Deepseek models
12
- */
13
- export type DeepseekModel = 'deepseek-chat' | 'deepseek-reasoner';
14
-
15
- /**
16
- * Represents all supported LLM models
17
- */
18
- export type LLMModel = OpenAIModel | DeepseekModel;
19
-
20
- /**
21
- * Represents the usage of the LLM.
22
- */
23
- export interface LLMUsage {
24
- prompt_tokens: number;
25
- completion_tokens: number;
26
- reasoning_tokens?: number;
27
- provider: string;
28
- model: LLMModel;
29
- cache_hit_tokens?: number;
30
- cost: number;
31
- }
32
-
33
- /**
34
- * Represents the options for the LLM.
35
- */
36
- export interface LLMOptions {
37
- model?: OpenAIModel | DeepseekModel;
38
- temperature?: number;
39
- top_p?: number;
40
- frequency_penalty?: number;
41
- presence_penalty?: number;
42
- max_completion_tokens?: number;
43
- tools?: ChatCompletionTool[];
44
- developerPrompt?: string;
45
- context?: ChatCompletionMessageParam[];
46
- store?: boolean;
47
- reasoning_effort?: 'low' | 'medium' | 'high';
48
- metadata?: Record<string, string>;
49
- parallel_tool_calls?: boolean;
50
- service_tier?: 'auto' | 'default';
51
- apiKey?: string;
52
- }
53
-
54
- /**
55
- * Represents the response from the LLM.
56
- */
57
- export interface LLMResponse<T> {
58
- response: T;
59
- usage: LLMUsage;
60
- tool_calls?: ChatCompletionMessageToolCall[];
61
- }
62
-
63
- /**
64
- * Represents the format of the OpenAI response.
65
- */
66
- export type OpenAIResponseFormat = 'text' | 'json' | {
67
- type: 'json_schema';
68
- schema: {
69
- type: 'object';
70
- properties: Record<string, any>;
71
- required?: string[];
72
- }
73
- };
74
-
75
- /**
76
- * Represents the options for the OpenAI Images API.
77
- * Extends the official ImageGenerateParams but with more user-friendly option names.
78
- */
79
- export interface ImageGenerationOptions {
80
- size?: ImageGenerateParams['size'];
81
- outputFormat?: 'jpeg' | 'png' | 'webp';
82
- compression?: number;
83
- quality?: ImageGenerateParams['quality'];
84
- count?: number | null;
85
- apiKey?: string;
86
- background?: ImageGenerateParams['background'];
87
- moderation?: ImageGenerateParams['moderation'];
88
- }
89
-
90
- // Re-export OpenAI types for convenience
91
- export type { ImageModel, ImageGenerateParams } from 'openai/resources/images';
92
- export type { ImagesResponse, Image } from 'openai/resources/images';