@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.
- package/dist/apollo-client.client-Lu1K9ohp.js +3694 -0
- package/dist/apollo-client.client-Lu1K9ohp.js.map +1 -0
- package/dist/apollo-client.client-YFsBF7bL.js +3705 -0
- package/dist/apollo-client.client-YFsBF7bL.js.map +1 -0
- package/dist/apollo-client.server-CAtwy7W4.js +16320 -0
- package/dist/apollo-client.server-CAtwy7W4.js.map +1 -0
- package/dist/apollo-client.server-CWrxRFr9.js +16322 -0
- package/dist/apollo-client.server-CWrxRFr9.js.map +1 -0
- package/dist/index-Bc3hrZJm.js +12108 -0
- package/dist/index-Bc3hrZJm.js.map +1 -0
- package/dist/index-CZkVRs3j.js +75962 -0
- package/dist/index-CZkVRs3j.js.map +1 -0
- package/dist/{index-CcXQeJz8.js → index-Cstek604.js} +182 -22
- package/dist/index-Cstek604.js.map +1 -0
- package/dist/index-DT2sMbfH.js +76169 -0
- package/dist/index-DT2sMbfH.js.map +1 -0
- package/dist/index-DZUGtDjj.js +12271 -0
- package/dist/index-DZUGtDjj.js.map +1 -0
- package/dist/{index-CcgbRft2.js → index-DZZCd-1T.js} +182 -22
- package/dist/index-DZZCd-1T.js.map +1 -0
- package/dist/index.cjs +137 -11417
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +40 -11399
- package/dist/index.mjs.map +1 -1
- package/dist/test.cjs +25 -7
- package/dist/test.cjs.map +1 -1
- package/dist/test.mjs +25 -7
- package/dist/test.mjs.map +1 -1
- package/dist/types/config/__tests__/secrets.test.d.ts +1 -0
- package/dist/types/config/secrets.d.ts +286 -0
- package/dist/types/errors/__tests__/errors.test.d.ts +1 -0
- package/dist/types/errors/index.d.ts +77 -0
- package/dist/types/functions/__tests__/aws-lambda.test.d.ts +1 -0
- package/dist/types/functions/__tests__/aws-s3-utils.test.d.ts +1 -0
- package/dist/types/functions/__tests__/json-llm-tools.test.d.ts +1 -0
- package/dist/types/functions/__tests__/json-tools.test.d.ts +1 -0
- package/dist/types/functions/__tests__/slack-utils.test.d.ts +1 -0
- package/dist/types/functions/aws-lambda.d.ts +1 -1
- package/dist/types/functions/aws-s3-utils.d.ts +2 -2
- package/dist/types/functions/google-sheets.d.ts +4 -4
- package/dist/types/functions/json-llm-tools.d.ts +25 -3
- package/dist/types/functions/llm-anthropic.d.ts +14 -0
- package/dist/types/functions/llm-call.d.ts +14 -3
- package/dist/types/functions/llm-config.d.ts +13 -8
- package/dist/types/functions/llm-deepseek.d.ts +1 -1
- package/dist/types/functions/llm-openai-compatible.d.ts +15 -0
- package/dist/types/functions/llm-openai.d.ts +3 -2
- package/dist/types/functions/llm-utils.d.ts +24 -1
- package/dist/types/functions/slack-utils.d.ts +3 -4
- package/dist/types/functions/utils.d.ts +2 -14
- package/dist/types/functions/zip-utils.d.ts +12 -10
- package/dist/types/index.d.ts +33 -0
- package/dist/types/schemas/aws-schemas.d.ts +210 -0
- package/dist/types/schemas/google-sheets-schemas.d.ts +32 -0
- package/dist/types/schemas/index.d.ts +17 -0
- package/dist/types/schemas/openai-schemas.d.ts +834 -0
- package/dist/types/schemas/perplexity-schemas.d.ts +338 -0
- package/dist/types/schemas/validation-helpers.d.ts +33 -0
- package/dist/types/types/aws-types.d.ts +1 -1
- package/dist/types/types/google-types.d.ts +5 -3
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/openai-types.d.ts +396 -6
- package/dist/types/utils/__tests__/circuit-breaker.test.d.ts +1 -0
- package/dist/types/utils/__tests__/correlation.test.d.ts +1 -0
- package/dist/types/utils/__tests__/input-validator.test.d.ts +1 -0
- package/dist/types/utils/__tests__/llm-cost-tracker.test.d.ts +1 -0
- package/dist/types/utils/__tests__/logger.test.d.ts +1 -0
- package/dist/types/utils/__tests__/metrics.test.d.ts +1 -0
- package/dist/types/utils/__tests__/retry.test.d.ts +1 -0
- package/dist/types/utils/__tests__/sanitizer.test.d.ts +1 -0
- package/dist/types/utils/__tests__/timeouts.test.d.ts +1 -0
- package/dist/types/utils/aws-initialise.d.ts +6 -1
- package/dist/types/utils/circuit-breaker.d.ts +99 -0
- package/dist/types/utils/config.d.ts +40 -2
- package/dist/types/utils/correlation.d.ts +43 -0
- package/dist/types/utils/health-check.d.ts +50 -0
- package/dist/types/utils/input-validator.d.ts +51 -0
- package/dist/types/utils/llm-cost-tracker.d.ts +174 -0
- package/dist/types/utils/logger.d.ts +8 -0
- package/dist/types/utils/metrics.d.ts +61 -0
- package/dist/types/utils/rate-limiter.d.ts +85 -0
- package/dist/types/utils/retry.d.ts +58 -0
- package/dist/types/utils/sanitizer.d.ts +30 -0
- package/dist/types/utils/timeouts.d.ts +44 -0
- package/package.json +2 -1
- package/dist/index-CcXQeJz8.js.map +0 -1
- package/dist/index-CcgbRft2.js.map +0 -1
- package/dist/types/aws-types.ts +0 -64
- package/dist/types/google-types.ts +0 -48
- package/dist/types/index.ts +0 -57
- 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';
|