@m5kdev/commons 0.8.6 → 0.8.8
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/src/modules/ai/ai.constants.cjs +329 -0
- package/dist/src/modules/ai/ai.constants.cjs.map +1 -0
- package/dist/src/modules/ai/ai.constants.d.cts +58 -0
- package/dist/src/modules/ai/ai.utils.cjs +9 -0
- package/dist/src/modules/ai/ai.utils.cjs.map +1 -0
- package/dist/src/modules/ai/ai.utils.d.cts +5 -0
- package/dist/src/modules/auth/auth.schema.cjs +25 -0
- package/dist/src/modules/auth/auth.schema.cjs.map +1 -0
- package/dist/src/modules/auth/auth.schema.d.cts +25 -0
- package/dist/src/modules/base/base.schema.cjs +18 -0
- package/dist/src/modules/base/base.schema.cjs.map +1 -0
- package/dist/src/modules/base/base.schema.d.cts +30 -0
- package/dist/src/modules/billing/billing.schema.cjs +27 -0
- package/dist/src/modules/billing/billing.schema.cjs.map +1 -0
- package/dist/src/modules/billing/billing.schema.d.cts +27 -0
- package/dist/src/modules/billing/billing.types.cjs +0 -0
- package/dist/src/modules/billing/billing.types.d.cts +21 -0
- package/dist/src/modules/billing/billing.utils.cjs +13 -0
- package/dist/src/modules/billing/billing.utils.cjs.map +1 -0
- package/dist/src/modules/billing/billing.utils.d.cts +10 -0
- package/dist/src/modules/file/file.constants.cjs +51 -0
- package/dist/src/modules/file/file.constants.cjs.map +1 -0
- package/dist/src/modules/file/file.constants.d.cts +8 -0
- package/dist/src/modules/recurrence/recurrence.schema.cjs +70 -0
- package/dist/src/modules/recurrence/recurrence.schema.cjs.map +1 -0
- package/dist/src/modules/recurrence/recurrence.schema.d.cts +103 -0
- package/dist/src/modules/schemas/query.schema.cjs +54 -0
- package/dist/src/modules/schemas/query.schema.cjs.map +1 -0
- package/dist/src/modules/schemas/query.schema.d.cts +116 -0
- package/dist/src/modules/schemas/query.schema.d.mts +1 -0
- package/dist/src/modules/schemas/query.schema.mjs +2 -1
- package/dist/src/modules/schemas/query.schema.mjs.map +1 -1
- package/dist/src/modules/table/filter.types.cjs +0 -0
- package/dist/src/modules/table/filter.types.d.cts +15 -0
- package/dist/src/modules/tag/tag.schema.cjs +65 -0
- package/dist/src/modules/tag/tag.schema.cjs.map +1 -0
- package/dist/src/modules/tag/tag.schema.d.cts +122 -0
- package/dist/src/modules/tag/tag.schema.d.mts +1 -0
- package/dist/src/modules/workflow/workflow.constants.cjs +12 -0
- package/dist/src/modules/workflow/workflow.constants.cjs.map +1 -0
- package/dist/src/modules/workflow/workflow.constants.d.cts +6 -0
- package/dist/src/modules/workflow/workflow.schema.cjs +40 -0
- package/dist/src/modules/workflow/workflow.schema.cjs.map +1 -0
- package/dist/src/modules/workflow/workflow.schema.d.cts +97 -0
- package/dist/src/utils/json.cjs +13 -0
- package/dist/src/utils/json.cjs.map +1 -0
- package/dist/src/utils/json.d.cts +6 -0
- package/dist/src/utils/timezones.cjs +5646 -0
- package/dist/src/utils/timezones.cjs.map +1 -0
- package/dist/src/utils/timezones.d.cts +18 -0
- package/dist/src/utils/trpc.cjs +11 -0
- package/dist/src/utils/trpc.cjs.map +1 -0
- package/dist/src/utils/trpc.d.cts +8 -0
- package/package.json +98 -26
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/modules/ai/ai.constants.ts
|
|
3
|
+
const GPT_5_CHAT = "openai/gpt-5-chat";
|
|
4
|
+
const GPT_5_1 = "openai/gpt-5.1";
|
|
5
|
+
const GPT_5_2 = "openai/gpt-5.2";
|
|
6
|
+
const GEMINI_3_1_PRO = "google/gemini-3.1-pro-preview";
|
|
7
|
+
const GEMINI_2_5_PRO = "google/gemini-2.5-pro";
|
|
8
|
+
const GEMINI_3_PRO = "google/gemini-3-pro-preview";
|
|
9
|
+
const GEMINI_3_FLASH = "google/gemini-3-flash-preview";
|
|
10
|
+
const GROK_4 = "x-ai/grok-4";
|
|
11
|
+
const CLAUDE_SONNET_4 = "anthropic/claude-sonnet-4";
|
|
12
|
+
const CLAUDE_SONNET_4_5 = "anthropic/claude-sonnet-4.5";
|
|
13
|
+
const CLAUDE_OPUS_4_5 = "anthropic/claude-opus-4.5";
|
|
14
|
+
const CLAUDE_SONNET_4_6 = "anthropic/claude-sonnet-4.6";
|
|
15
|
+
const CLAUDE_OPUS_4_6 = "anthropic/claude-opus-4.6";
|
|
16
|
+
const MINIMAX_M2 = "minimax/minimax-m2";
|
|
17
|
+
const QWEN3_MAX = "qwen/qwen3-max";
|
|
18
|
+
const O3 = "openai/o3";
|
|
19
|
+
const GPT_5_MINI = "openai/gpt-5-mini";
|
|
20
|
+
const GEMINI_2_5_FLASH = "google/gemini-2.5-flash";
|
|
21
|
+
const GROK_3_MINI = "x-ai/grok-3-mini";
|
|
22
|
+
const GROK_4_FAST = "x-ai/grok-4-fast";
|
|
23
|
+
const KIMI_K2_THINKING = "moonshotai/kimi-k2-thinking";
|
|
24
|
+
const KIMI_K2 = "moonshotai/kimi-k2-0905";
|
|
25
|
+
const KIMI_K2_5 = "moonshotai/kimi-k2.5";
|
|
26
|
+
const CLAUDE_SONNET_3_HAIKU = "anthropic/claude-3-haiku";
|
|
27
|
+
const GLM_4_5V = "z-ai/glm-4.5v";
|
|
28
|
+
const GLM_4_6 = "z-ai/glm-4.6";
|
|
29
|
+
const DEEPSEEK_V3_1 = "deepseek/deepseek-chat-v3.1";
|
|
30
|
+
const DEEPSEEK_R1 = "deepseek/deepseek-r1-0528";
|
|
31
|
+
const LLAMA_3_3_70B_INSTRUCT = "meta-llama/llama-3.3-70b-instruct";
|
|
32
|
+
const MISTRAL_3_1_MEDIUM = "mistralai/mistral-medium-3.1";
|
|
33
|
+
const QWEN3_30B_A3B = "qwen/qwen3-30b-a3b";
|
|
34
|
+
const GPT_5_NANO = "openai/gpt-5-nano";
|
|
35
|
+
const GEMINI_2_5_FLASH_LITE = "google/gemini-2.5-flash-lite";
|
|
36
|
+
const OPENAI_TEXT_EMBEDDING_3_SMALL = "openai/text-embedding-3-small";
|
|
37
|
+
const AI_EMBEDDING_MODELS = [OPENAI_TEXT_EMBEDDING_3_SMALL];
|
|
38
|
+
const SCORER_BEST = GEMINI_3_FLASH;
|
|
39
|
+
const SCORER_FAST = KIMI_K2_5;
|
|
40
|
+
const RESONING_BEST = GEMINI_3_1_PRO;
|
|
41
|
+
const RESONING_FAST = KIMI_K2_5;
|
|
42
|
+
const STRUCTURED_OUTPUT_BEST = CLAUDE_SONNET_4_5;
|
|
43
|
+
const STRUCTURED_OUTPUT_FAST = GPT_5_MINI;
|
|
44
|
+
const TOOL_CALL_BEST = CLAUDE_SONNET_4_5;
|
|
45
|
+
const TOOL_CALL_FAST = GPT_5_MINI;
|
|
46
|
+
const AI_MODELS = [
|
|
47
|
+
LLAMA_3_3_70B_INSTRUCT,
|
|
48
|
+
QWEN3_30B_A3B,
|
|
49
|
+
GEMINI_2_5_PRO,
|
|
50
|
+
GEMINI_3_PRO,
|
|
51
|
+
GEMINI_3_FLASH,
|
|
52
|
+
DEEPSEEK_R1,
|
|
53
|
+
O3,
|
|
54
|
+
GPT_5_1,
|
|
55
|
+
GPT_5_2,
|
|
56
|
+
GPT_5_CHAT,
|
|
57
|
+
GROK_4,
|
|
58
|
+
CLAUDE_SONNET_4,
|
|
59
|
+
CLAUDE_SONNET_4_5,
|
|
60
|
+
CLAUDE_OPUS_4_5,
|
|
61
|
+
GPT_5_MINI,
|
|
62
|
+
GLM_4_5V,
|
|
63
|
+
MISTRAL_3_1_MEDIUM,
|
|
64
|
+
GEMINI_2_5_FLASH,
|
|
65
|
+
GROK_3_MINI,
|
|
66
|
+
CLAUDE_SONNET_3_HAIKU,
|
|
67
|
+
GPT_5_NANO,
|
|
68
|
+
GEMINI_2_5_FLASH_LITE,
|
|
69
|
+
GROK_4_FAST,
|
|
70
|
+
MINIMAX_M2,
|
|
71
|
+
KIMI_K2,
|
|
72
|
+
KIMI_K2_THINKING,
|
|
73
|
+
DEEPSEEK_V3_1,
|
|
74
|
+
GLM_4_6,
|
|
75
|
+
QWEN3_MAX
|
|
76
|
+
];
|
|
77
|
+
const AI_MODELS_REGISTRY = {
|
|
78
|
+
[O3]: {
|
|
79
|
+
name: "O3",
|
|
80
|
+
provider: "openai",
|
|
81
|
+
icon: "ti-brand-openai",
|
|
82
|
+
tier: "pro",
|
|
83
|
+
order: 1
|
|
84
|
+
},
|
|
85
|
+
[MISTRAL_3_1_MEDIUM]: {
|
|
86
|
+
name: "Mistral 3.1 Medium",
|
|
87
|
+
provider: "mistralai",
|
|
88
|
+
icon: "ti-ai",
|
|
89
|
+
tier: "pro",
|
|
90
|
+
order: 1
|
|
91
|
+
},
|
|
92
|
+
[DEEPSEEK_R1]: {
|
|
93
|
+
name: "DeepSeek R1",
|
|
94
|
+
provider: "deepseek",
|
|
95
|
+
icon: "ti-ai",
|
|
96
|
+
tier: "pro",
|
|
97
|
+
order: 1
|
|
98
|
+
},
|
|
99
|
+
[QWEN3_30B_A3B]: {
|
|
100
|
+
name: "Qwen3 30B A3B",
|
|
101
|
+
provider: "qwen",
|
|
102
|
+
icon: "ti-ai",
|
|
103
|
+
tier: "pro",
|
|
104
|
+
order: 1
|
|
105
|
+
},
|
|
106
|
+
[LLAMA_3_3_70B_INSTRUCT]: {
|
|
107
|
+
name: "LLama 3.3 70B",
|
|
108
|
+
provider: "meta-llama",
|
|
109
|
+
icon: "ti-brand-meta",
|
|
110
|
+
tier: "pro",
|
|
111
|
+
order: 1
|
|
112
|
+
},
|
|
113
|
+
[GLM_4_5V]: {
|
|
114
|
+
name: "GLM 4.5V",
|
|
115
|
+
provider: "z-ai",
|
|
116
|
+
icon: "ti-ai",
|
|
117
|
+
tier: "pro",
|
|
118
|
+
order: 1
|
|
119
|
+
},
|
|
120
|
+
[GLM_4_6]: {
|
|
121
|
+
name: "GLM 4.6",
|
|
122
|
+
provider: "z-ai",
|
|
123
|
+
icon: "ti-ai",
|
|
124
|
+
tier: "pro",
|
|
125
|
+
order: 1
|
|
126
|
+
},
|
|
127
|
+
[QWEN3_MAX]: {
|
|
128
|
+
name: "Qwen3 Max",
|
|
129
|
+
provider: "qwen",
|
|
130
|
+
icon: "ti-ai",
|
|
131
|
+
tier: "pro",
|
|
132
|
+
order: 1
|
|
133
|
+
},
|
|
134
|
+
[DEEPSEEK_V3_1]: {
|
|
135
|
+
name: "DeepSeek V3.1",
|
|
136
|
+
provider: "deepseek",
|
|
137
|
+
icon: "ti-ai",
|
|
138
|
+
tier: "pro",
|
|
139
|
+
order: 1
|
|
140
|
+
},
|
|
141
|
+
[KIMI_K2]: {
|
|
142
|
+
name: "Kimi K2",
|
|
143
|
+
provider: "moonshotai",
|
|
144
|
+
icon: "ti-ai",
|
|
145
|
+
tier: "pro",
|
|
146
|
+
order: 1
|
|
147
|
+
},
|
|
148
|
+
[KIMI_K2_THINKING]: {
|
|
149
|
+
name: "Kimi K2 Thinking",
|
|
150
|
+
provider: "moonshotai",
|
|
151
|
+
icon: "ti-ai",
|
|
152
|
+
tier: "pro",
|
|
153
|
+
order: 1
|
|
154
|
+
},
|
|
155
|
+
[CLAUDE_SONNET_4_5]: {
|
|
156
|
+
name: "Claude Sonnet 4.5",
|
|
157
|
+
provider: "anthropic",
|
|
158
|
+
icon: "ti-ai",
|
|
159
|
+
tier: "pro",
|
|
160
|
+
order: 1
|
|
161
|
+
},
|
|
162
|
+
[GPT_5_1]: {
|
|
163
|
+
name: "GPT-5.1",
|
|
164
|
+
provider: "openai",
|
|
165
|
+
icon: "ti-brand-openai",
|
|
166
|
+
tier: "pro",
|
|
167
|
+
order: 1
|
|
168
|
+
},
|
|
169
|
+
[GPT_5_2]: {
|
|
170
|
+
name: "GPT-5.2",
|
|
171
|
+
provider: "openai",
|
|
172
|
+
icon: "ti-brand-openai",
|
|
173
|
+
tier: "pro",
|
|
174
|
+
order: 1
|
|
175
|
+
},
|
|
176
|
+
[MINIMAX_M2]: {
|
|
177
|
+
name: "MiniMax M2",
|
|
178
|
+
provider: "minimax",
|
|
179
|
+
icon: "ti-ai",
|
|
180
|
+
tier: "pro",
|
|
181
|
+
order: 1
|
|
182
|
+
},
|
|
183
|
+
[GEMINI_2_5_PRO]: {
|
|
184
|
+
name: "Gemini 2.5 Pro",
|
|
185
|
+
provider: "google",
|
|
186
|
+
icon: "ti-brand-google",
|
|
187
|
+
tier: "pro",
|
|
188
|
+
order: 1
|
|
189
|
+
},
|
|
190
|
+
[GEMINI_3_PRO]: {
|
|
191
|
+
name: "Gemini 3 Pro",
|
|
192
|
+
provider: "google",
|
|
193
|
+
icon: "ti-brand-google",
|
|
194
|
+
tier: "pro",
|
|
195
|
+
order: 1
|
|
196
|
+
},
|
|
197
|
+
[GEMINI_3_FLASH]: {
|
|
198
|
+
name: "Gemini 3 Flash",
|
|
199
|
+
provider: "google",
|
|
200
|
+
icon: "ti-brand-google",
|
|
201
|
+
tier: "pro",
|
|
202
|
+
order: 1
|
|
203
|
+
},
|
|
204
|
+
[GPT_5_CHAT]: {
|
|
205
|
+
name: "GPT-5",
|
|
206
|
+
provider: "openai",
|
|
207
|
+
icon: "ti-brand-openai",
|
|
208
|
+
tier: "pro",
|
|
209
|
+
order: 2
|
|
210
|
+
},
|
|
211
|
+
[GROK_4]: {
|
|
212
|
+
name: "Grok 4",
|
|
213
|
+
provider: "x-ai",
|
|
214
|
+
icon: "ti-brand-x",
|
|
215
|
+
tier: "pro",
|
|
216
|
+
order: 3
|
|
217
|
+
},
|
|
218
|
+
[GROK_4_FAST]: {
|
|
219
|
+
name: "Grok 4 Fast",
|
|
220
|
+
provider: "x-ai",
|
|
221
|
+
icon: "ti-brand-x",
|
|
222
|
+
tier: "pro",
|
|
223
|
+
order: 4
|
|
224
|
+
},
|
|
225
|
+
[CLAUDE_SONNET_4]: {
|
|
226
|
+
name: "Claude Sonnet 4",
|
|
227
|
+
provider: "anthropic",
|
|
228
|
+
icon: "ti-ai",
|
|
229
|
+
tier: "pro",
|
|
230
|
+
order: 4
|
|
231
|
+
},
|
|
232
|
+
[CLAUDE_OPUS_4_5]: {
|
|
233
|
+
name: "Claude Opus 4.5",
|
|
234
|
+
provider: "anthropic",
|
|
235
|
+
icon: "ti-ai",
|
|
236
|
+
tier: "pro",
|
|
237
|
+
order: 1
|
|
238
|
+
},
|
|
239
|
+
[GPT_5_MINI]: {
|
|
240
|
+
name: "GPT-5 Mini",
|
|
241
|
+
provider: "openai",
|
|
242
|
+
icon: "ti-brand-openai",
|
|
243
|
+
tier: "standard",
|
|
244
|
+
order: 5
|
|
245
|
+
},
|
|
246
|
+
[GEMINI_2_5_FLASH]: {
|
|
247
|
+
name: "Gemini 2.5 Flash",
|
|
248
|
+
provider: "google",
|
|
249
|
+
icon: "ti-brand-google",
|
|
250
|
+
tier: "standard",
|
|
251
|
+
order: 6
|
|
252
|
+
},
|
|
253
|
+
[GROK_3_MINI]: {
|
|
254
|
+
name: "Grok 3 Mini",
|
|
255
|
+
provider: "x-ai",
|
|
256
|
+
icon: "ti-brand-x",
|
|
257
|
+
tier: "standard",
|
|
258
|
+
order: 7
|
|
259
|
+
},
|
|
260
|
+
[CLAUDE_SONNET_3_HAIKU]: {
|
|
261
|
+
name: "Claude Sonnet 3 Haiku",
|
|
262
|
+
provider: "anthropic",
|
|
263
|
+
icon: "ti-brand-anthropic",
|
|
264
|
+
tier: "standard",
|
|
265
|
+
order: 8
|
|
266
|
+
},
|
|
267
|
+
[GPT_5_NANO]: {
|
|
268
|
+
name: "GPT-5 Nano",
|
|
269
|
+
provider: "openai",
|
|
270
|
+
icon: "ti-brand-openai",
|
|
271
|
+
tier: "fast",
|
|
272
|
+
order: 9
|
|
273
|
+
},
|
|
274
|
+
[GEMINI_2_5_FLASH_LITE]: {
|
|
275
|
+
name: "Gemini 2.5 Flash Lite",
|
|
276
|
+
provider: "google",
|
|
277
|
+
icon: "ti-brand-google",
|
|
278
|
+
tier: "fast",
|
|
279
|
+
order: 10
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
//#endregion
|
|
283
|
+
exports.AI_EMBEDDING_MODELS = AI_EMBEDDING_MODELS;
|
|
284
|
+
exports.AI_MODELS = AI_MODELS;
|
|
285
|
+
exports.AI_MODELS_REGISTRY = AI_MODELS_REGISTRY;
|
|
286
|
+
exports.CLAUDE_OPUS_4_5 = CLAUDE_OPUS_4_5;
|
|
287
|
+
exports.CLAUDE_OPUS_4_6 = CLAUDE_OPUS_4_6;
|
|
288
|
+
exports.CLAUDE_SONNET_3_HAIKU = CLAUDE_SONNET_3_HAIKU;
|
|
289
|
+
exports.CLAUDE_SONNET_4 = CLAUDE_SONNET_4;
|
|
290
|
+
exports.CLAUDE_SONNET_4_5 = CLAUDE_SONNET_4_5;
|
|
291
|
+
exports.CLAUDE_SONNET_4_6 = CLAUDE_SONNET_4_6;
|
|
292
|
+
exports.DEEPSEEK_R1 = DEEPSEEK_R1;
|
|
293
|
+
exports.DEEPSEEK_V3_1 = DEEPSEEK_V3_1;
|
|
294
|
+
exports.GEMINI_2_5_FLASH = GEMINI_2_5_FLASH;
|
|
295
|
+
exports.GEMINI_2_5_FLASH_LITE = GEMINI_2_5_FLASH_LITE;
|
|
296
|
+
exports.GEMINI_2_5_PRO = GEMINI_2_5_PRO;
|
|
297
|
+
exports.GEMINI_3_1_PRO = GEMINI_3_1_PRO;
|
|
298
|
+
exports.GEMINI_3_FLASH = GEMINI_3_FLASH;
|
|
299
|
+
exports.GEMINI_3_PRO = GEMINI_3_PRO;
|
|
300
|
+
exports.GLM_4_5V = GLM_4_5V;
|
|
301
|
+
exports.GLM_4_6 = GLM_4_6;
|
|
302
|
+
exports.GPT_5_1 = GPT_5_1;
|
|
303
|
+
exports.GPT_5_2 = GPT_5_2;
|
|
304
|
+
exports.GPT_5_CHAT = GPT_5_CHAT;
|
|
305
|
+
exports.GPT_5_MINI = GPT_5_MINI;
|
|
306
|
+
exports.GPT_5_NANO = GPT_5_NANO;
|
|
307
|
+
exports.GROK_3_MINI = GROK_3_MINI;
|
|
308
|
+
exports.GROK_4 = GROK_4;
|
|
309
|
+
exports.GROK_4_FAST = GROK_4_FAST;
|
|
310
|
+
exports.KIMI_K2 = KIMI_K2;
|
|
311
|
+
exports.KIMI_K2_5 = KIMI_K2_5;
|
|
312
|
+
exports.KIMI_K2_THINKING = KIMI_K2_THINKING;
|
|
313
|
+
exports.LLAMA_3_3_70B_INSTRUCT = LLAMA_3_3_70B_INSTRUCT;
|
|
314
|
+
exports.MINIMAX_M2 = MINIMAX_M2;
|
|
315
|
+
exports.MISTRAL_3_1_MEDIUM = MISTRAL_3_1_MEDIUM;
|
|
316
|
+
exports.O3 = O3;
|
|
317
|
+
exports.OPENAI_TEXT_EMBEDDING_3_SMALL = OPENAI_TEXT_EMBEDDING_3_SMALL;
|
|
318
|
+
exports.QWEN3_30B_A3B = QWEN3_30B_A3B;
|
|
319
|
+
exports.QWEN3_MAX = QWEN3_MAX;
|
|
320
|
+
exports.RESONING_BEST = RESONING_BEST;
|
|
321
|
+
exports.RESONING_FAST = RESONING_FAST;
|
|
322
|
+
exports.SCORER_BEST = SCORER_BEST;
|
|
323
|
+
exports.SCORER_FAST = SCORER_FAST;
|
|
324
|
+
exports.STRUCTURED_OUTPUT_BEST = STRUCTURED_OUTPUT_BEST;
|
|
325
|
+
exports.STRUCTURED_OUTPUT_FAST = STRUCTURED_OUTPUT_FAST;
|
|
326
|
+
exports.TOOL_CALL_BEST = TOOL_CALL_BEST;
|
|
327
|
+
exports.TOOL_CALL_FAST = TOOL_CALL_FAST;
|
|
328
|
+
|
|
329
|
+
//# sourceMappingURL=ai.constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.constants.cjs","names":[],"sources":["../../../../src/modules/ai/ai.constants.ts"],"sourcesContent":["// Models > $1/M tokens\r\nexport const GPT_5_CHAT = \"openai/gpt-5-chat\";\r\nexport const GPT_5_1 = \"openai/gpt-5.1\";\r\nexport const GPT_5_2 = \"openai/gpt-5.2\";\r\nexport const GEMINI_3_1_PRO = \"google/gemini-3.1-pro-preview\";\r\nexport const GEMINI_2_5_PRO = \"google/gemini-2.5-pro\";\r\nexport const GEMINI_3_PRO = \"google/gemini-3-pro-preview\";\r\nexport const GEMINI_3_FLASH = \"google/gemini-3-flash-preview\";\r\nexport const GROK_4 = \"x-ai/grok-4\";\r\nexport const CLAUDE_SONNET_4 = \"anthropic/claude-sonnet-4\";\r\nexport const CLAUDE_SONNET_4_5 = \"anthropic/claude-sonnet-4.5\";\r\nexport const CLAUDE_OPUS_4_5 = \"anthropic/claude-opus-4.5\";\r\nexport const CLAUDE_SONNET_4_6 = \"anthropic/claude-sonnet-4.6\";\r\nexport const CLAUDE_OPUS_4_6 = \"anthropic/claude-opus-4.6\";\r\nexport const MINIMAX_M2 = \"minimax/minimax-m2\";\r\nexport const QWEN3_MAX = \"qwen/qwen3-max\";\r\nexport const O3 = \"openai/o3\";\r\n\r\n// Models < $1/M tokens\r\nexport const GPT_5_MINI = \"openai/gpt-5-mini\";\r\nexport const GEMINI_2_5_FLASH = \"google/gemini-2.5-flash\";\r\nexport const GROK_3_MINI = \"x-ai/grok-3-mini\";\r\nexport const GROK_4_FAST = \"x-ai/grok-4-fast\";\r\nexport const KIMI_K2_THINKING = \"moonshotai/kimi-k2-thinking\";\r\nexport const KIMI_K2 = \"moonshotai/kimi-k2-0905\";\r\nexport const KIMI_K2_5 = \"moonshotai/kimi-k2.5\";\r\nexport const CLAUDE_SONNET_3_HAIKU = \"anthropic/claude-3-haiku\";\r\nexport const GLM_4_5V = \"z-ai/glm-4.5v\";\r\nexport const GLM_4_6 = \"z-ai/glm-4.6\";\r\nexport const DEEPSEEK_V3_1 = \"deepseek/deepseek-chat-v3.1\";\r\nexport const DEEPSEEK_R1 = \"deepseek/deepseek-r1-0528\";\r\nexport const LLAMA_3_3_70B_INSTRUCT = \"meta-llama/llama-3.3-70b-instruct\";\r\nexport const MISTRAL_3_1_MEDIUM = \"mistralai/mistral-medium-3.1\";\r\n\r\n// Models < $0.1/M tokens\r\nexport const QWEN3_30B_A3B = \"qwen/qwen3-30b-a3b\";\r\nexport const GPT_5_NANO = \"openai/gpt-5-nano\";\r\nexport const GEMINI_2_5_FLASH_LITE = \"google/gemini-2.5-flash-lite\";\r\n\r\n// Embedding Models\r\nexport const OPENAI_TEXT_EMBEDDING_3_SMALL = \"openai/text-embedding-3-small\";\r\n\r\nexport const AI_EMBEDDING_MODELS = [OPENAI_TEXT_EMBEDDING_3_SMALL] as const;\r\n\r\nexport type AiEmbeddingModel = (typeof AI_EMBEDDING_MODELS)[number];\r\n\r\n// Models by utility\r\nexport const SCORER_BEST = GEMINI_3_FLASH;\r\nexport const SCORER_FAST = KIMI_K2_5;\r\nexport const RESONING_BEST = GEMINI_3_1_PRO;\r\nexport const RESONING_FAST = KIMI_K2_5;\r\nexport const STRUCTURED_OUTPUT_BEST = CLAUDE_SONNET_4_5;\r\nexport const STRUCTURED_OUTPUT_FAST = GPT_5_MINI;\r\nexport const TOOL_CALL_BEST = CLAUDE_SONNET_4_5;\r\nexport const TOOL_CALL_FAST = GPT_5_MINI;\r\n\r\nexport const AI_MODELS = [\r\n LLAMA_3_3_70B_INSTRUCT,\r\n QWEN3_30B_A3B,\r\n GEMINI_2_5_PRO,\r\n GEMINI_3_PRO,\r\n GEMINI_3_FLASH,\r\n DEEPSEEK_R1,\r\n O3,\r\n GPT_5_1,\r\n GPT_5_2,\r\n GPT_5_CHAT,\r\n GROK_4,\r\n CLAUDE_SONNET_4,\r\n CLAUDE_SONNET_4_5,\r\n CLAUDE_OPUS_4_5,\r\n GPT_5_MINI,\r\n GLM_4_5V,\r\n MISTRAL_3_1_MEDIUM,\r\n GEMINI_2_5_FLASH,\r\n GROK_3_MINI,\r\n CLAUDE_SONNET_3_HAIKU,\r\n GPT_5_NANO,\r\n GEMINI_2_5_FLASH_LITE,\r\n GROK_4_FAST,\r\n MINIMAX_M2,\r\n KIMI_K2,\r\n KIMI_K2_THINKING,\r\n DEEPSEEK_V3_1,\r\n GLM_4_6,\r\n QWEN3_MAX,\r\n] as const;\r\n\r\nexport const AI_MODELS_REGISTRY: AiModelRegistry = {\r\n [O3]: {\r\n name: \"O3\",\r\n provider: \"openai\",\r\n icon: \"ti-brand-openai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [MISTRAL_3_1_MEDIUM]: {\r\n name: \"Mistral 3.1 Medium\",\r\n provider: \"mistralai\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [DEEPSEEK_R1]: {\r\n name: \"DeepSeek R1\",\r\n provider: \"deepseek\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [QWEN3_30B_A3B]: {\r\n name: \"Qwen3 30B A3B\",\r\n provider: \"qwen\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [LLAMA_3_3_70B_INSTRUCT]: {\r\n name: \"LLama 3.3 70B\",\r\n provider: \"meta-llama\",\r\n icon: \"ti-brand-meta\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [GLM_4_5V]: {\r\n name: \"GLM 4.5V\",\r\n provider: \"z-ai\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [GLM_4_6]: {\r\n name: \"GLM 4.6\",\r\n provider: \"z-ai\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [QWEN3_MAX]: {\r\n name: \"Qwen3 Max\",\r\n provider: \"qwen\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [DEEPSEEK_V3_1]: {\r\n name: \"DeepSeek V3.1\",\r\n provider: \"deepseek\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [KIMI_K2]: {\r\n name: \"Kimi K2\",\r\n provider: \"moonshotai\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [KIMI_K2_THINKING]: {\r\n name: \"Kimi K2 Thinking\",\r\n provider: \"moonshotai\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [CLAUDE_SONNET_4_5]: {\r\n name: \"Claude Sonnet 4.5\",\r\n provider: \"anthropic\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [GPT_5_1]: {\r\n name: \"GPT-5.1\",\r\n provider: \"openai\",\r\n icon: \"ti-brand-openai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [GPT_5_2]: {\r\n name: \"GPT-5.2\",\r\n provider: \"openai\",\r\n icon: \"ti-brand-openai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [MINIMAX_M2]: {\r\n name: \"MiniMax M2\",\r\n provider: \"minimax\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [GEMINI_2_5_PRO]: {\r\n name: \"Gemini 2.5 Pro\",\r\n provider: \"google\",\r\n icon: \"ti-brand-google\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [GEMINI_3_PRO]: {\r\n name: \"Gemini 3 Pro\",\r\n provider: \"google\",\r\n icon: \"ti-brand-google\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [GEMINI_3_FLASH]: {\r\n name: \"Gemini 3 Flash\",\r\n provider: \"google\",\r\n icon: \"ti-brand-google\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [GPT_5_CHAT]: {\r\n name: \"GPT-5\",\r\n provider: \"openai\",\r\n icon: \"ti-brand-openai\",\r\n tier: \"pro\",\r\n order: 2,\r\n },\r\n [GROK_4]: {\r\n name: \"Grok 4\",\r\n provider: \"x-ai\",\r\n icon: \"ti-brand-x\",\r\n tier: \"pro\",\r\n order: 3,\r\n },\r\n [GROK_4_FAST]: {\r\n name: \"Grok 4 Fast\",\r\n provider: \"x-ai\",\r\n icon: \"ti-brand-x\",\r\n tier: \"pro\",\r\n order: 4,\r\n },\r\n [CLAUDE_SONNET_4]: {\r\n name: \"Claude Sonnet 4\",\r\n provider: \"anthropic\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 4,\r\n },\r\n [CLAUDE_OPUS_4_5]: {\r\n name: \"Claude Opus 4.5\",\r\n provider: \"anthropic\",\r\n icon: \"ti-ai\",\r\n tier: \"pro\",\r\n order: 1,\r\n },\r\n [GPT_5_MINI]: {\r\n name: \"GPT-5 Mini\",\r\n provider: \"openai\",\r\n icon: \"ti-brand-openai\",\r\n tier: \"standard\",\r\n order: 5,\r\n },\r\n [GEMINI_2_5_FLASH]: {\r\n name: \"Gemini 2.5 Flash\",\r\n provider: \"google\",\r\n icon: \"ti-brand-google\",\r\n tier: \"standard\",\r\n order: 6,\r\n },\r\n [GROK_3_MINI]: {\r\n name: \"Grok 3 Mini\",\r\n provider: \"x-ai\",\r\n icon: \"ti-brand-x\",\r\n tier: \"standard\",\r\n order: 7,\r\n },\r\n [CLAUDE_SONNET_3_HAIKU]: {\r\n name: \"Claude Sonnet 3 Haiku\",\r\n provider: \"anthropic\",\r\n icon: \"ti-brand-anthropic\",\r\n tier: \"standard\",\r\n order: 8,\r\n },\r\n [GPT_5_NANO]: {\r\n name: \"GPT-5 Nano\",\r\n provider: \"openai\",\r\n icon: \"ti-brand-openai\",\r\n tier: \"fast\",\r\n order: 9,\r\n },\r\n [GEMINI_2_5_FLASH_LITE]: {\r\n name: \"Gemini 2.5 Flash Lite\",\r\n provider: \"google\",\r\n icon: \"ti-brand-google\",\r\n tier: \"fast\",\r\n order: 10,\r\n },\r\n};\r\n\r\nexport type AiModel = (typeof AI_MODELS)[number];\r\nexport type AiModelRegistry = Record<\r\n AiModel,\r\n {\r\n name: string;\r\n provider: string;\r\n icon: string;\r\n tier: string;\r\n order: number;\r\n }\r\n>;\r\n"],"mappings":";;AACA,MAAa,aAAa;AAC1B,MAAa,UAAU;AACvB,MAAa,UAAU;AACvB,MAAa,iBAAiB;AAC9B,MAAa,iBAAiB;AAC9B,MAAa,eAAe;AAC5B,MAAa,iBAAiB;AAC9B,MAAa,SAAS;AACtB,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;AACjC,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;AACjC,MAAa,kBAAkB;AAC/B,MAAa,aAAa;AAC1B,MAAa,YAAY;AACzB,MAAa,KAAK;AAGlB,MAAa,aAAa;AAC1B,MAAa,mBAAmB;AAChC,MAAa,cAAc;AAC3B,MAAa,cAAc;AAC3B,MAAa,mBAAmB;AAChC,MAAa,UAAU;AACvB,MAAa,YAAY;AACzB,MAAa,wBAAwB;AACrC,MAAa,WAAW;AACxB,MAAa,UAAU;AACvB,MAAa,gBAAgB;AAC7B,MAAa,cAAc;AAC3B,MAAa,yBAAyB;AACtC,MAAa,qBAAqB;AAGlC,MAAa,gBAAgB;AAC7B,MAAa,aAAa;AAC1B,MAAa,wBAAwB;AAGrC,MAAa,gCAAgC;AAE7C,MAAa,sBAAsB,CAAC,8BAA8B;AAKlE,MAAa,cAAc;AAC3B,MAAa,cAAc;AAC3B,MAAa,gBAAgB;AAC7B,MAAa,gBAAgB;AAC7B,MAAa,yBAAyB;AACtC,MAAa,yBAAyB;AACtC,MAAa,iBAAiB;AAC9B,MAAa,iBAAiB;AAE9B,MAAa,YAAY;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,qBAAsC;EAChD,KAAK;EACJ,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,qBAAqB;EACpB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,cAAc;EACb,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,gBAAgB;EACf,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,yBAAyB;EACxB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,WAAW;EACV,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,UAAU;EACT,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,YAAY;EACX,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,gBAAgB;EACf,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,UAAU;EACT,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,mBAAmB;EAClB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,oBAAoB;EACnB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,UAAU;EACT,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,UAAU;EACT,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,aAAa;EACZ,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,iBAAiB;EAChB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,eAAe;EACd,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,iBAAiB;EAChB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,aAAa;EACZ,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,SAAS;EACR,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,cAAc;EACb,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,kBAAkB;EACjB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,kBAAkB;EACjB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,aAAa;EACZ,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,mBAAmB;EAClB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,cAAc;EACb,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,wBAAwB;EACvB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,aAAa;EACZ,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;EACA,wBAAwB;EACvB,MAAM;EACN,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACR;CACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//#region src/modules/ai/ai.constants.d.ts
|
|
2
|
+
declare const GPT_5_CHAT = "openai/gpt-5-chat";
|
|
3
|
+
declare const GPT_5_1 = "openai/gpt-5.1";
|
|
4
|
+
declare const GPT_5_2 = "openai/gpt-5.2";
|
|
5
|
+
declare const GEMINI_3_1_PRO = "google/gemini-3.1-pro-preview";
|
|
6
|
+
declare const GEMINI_2_5_PRO = "google/gemini-2.5-pro";
|
|
7
|
+
declare const GEMINI_3_PRO = "google/gemini-3-pro-preview";
|
|
8
|
+
declare const GEMINI_3_FLASH = "google/gemini-3-flash-preview";
|
|
9
|
+
declare const GROK_4 = "x-ai/grok-4";
|
|
10
|
+
declare const CLAUDE_SONNET_4 = "anthropic/claude-sonnet-4";
|
|
11
|
+
declare const CLAUDE_SONNET_4_5 = "anthropic/claude-sonnet-4.5";
|
|
12
|
+
declare const CLAUDE_OPUS_4_5 = "anthropic/claude-opus-4.5";
|
|
13
|
+
declare const CLAUDE_SONNET_4_6 = "anthropic/claude-sonnet-4.6";
|
|
14
|
+
declare const CLAUDE_OPUS_4_6 = "anthropic/claude-opus-4.6";
|
|
15
|
+
declare const MINIMAX_M2 = "minimax/minimax-m2";
|
|
16
|
+
declare const QWEN3_MAX = "qwen/qwen3-max";
|
|
17
|
+
declare const O3 = "openai/o3";
|
|
18
|
+
declare const GPT_5_MINI = "openai/gpt-5-mini";
|
|
19
|
+
declare const GEMINI_2_5_FLASH = "google/gemini-2.5-flash";
|
|
20
|
+
declare const GROK_3_MINI = "x-ai/grok-3-mini";
|
|
21
|
+
declare const GROK_4_FAST = "x-ai/grok-4-fast";
|
|
22
|
+
declare const KIMI_K2_THINKING = "moonshotai/kimi-k2-thinking";
|
|
23
|
+
declare const KIMI_K2 = "moonshotai/kimi-k2-0905";
|
|
24
|
+
declare const KIMI_K2_5 = "moonshotai/kimi-k2.5";
|
|
25
|
+
declare const CLAUDE_SONNET_3_HAIKU = "anthropic/claude-3-haiku";
|
|
26
|
+
declare const GLM_4_5V = "z-ai/glm-4.5v";
|
|
27
|
+
declare const GLM_4_6 = "z-ai/glm-4.6";
|
|
28
|
+
declare const DEEPSEEK_V3_1 = "deepseek/deepseek-chat-v3.1";
|
|
29
|
+
declare const DEEPSEEK_R1 = "deepseek/deepseek-r1-0528";
|
|
30
|
+
declare const LLAMA_3_3_70B_INSTRUCT = "meta-llama/llama-3.3-70b-instruct";
|
|
31
|
+
declare const MISTRAL_3_1_MEDIUM = "mistralai/mistral-medium-3.1";
|
|
32
|
+
declare const QWEN3_30B_A3B = "qwen/qwen3-30b-a3b";
|
|
33
|
+
declare const GPT_5_NANO = "openai/gpt-5-nano";
|
|
34
|
+
declare const GEMINI_2_5_FLASH_LITE = "google/gemini-2.5-flash-lite";
|
|
35
|
+
declare const OPENAI_TEXT_EMBEDDING_3_SMALL = "openai/text-embedding-3-small";
|
|
36
|
+
declare const AI_EMBEDDING_MODELS: readonly ["openai/text-embedding-3-small"];
|
|
37
|
+
type AiEmbeddingModel = (typeof AI_EMBEDDING_MODELS)[number];
|
|
38
|
+
declare const SCORER_BEST = "google/gemini-3-flash-preview";
|
|
39
|
+
declare const SCORER_FAST = "moonshotai/kimi-k2.5";
|
|
40
|
+
declare const RESONING_BEST = "google/gemini-3.1-pro-preview";
|
|
41
|
+
declare const RESONING_FAST = "moonshotai/kimi-k2.5";
|
|
42
|
+
declare const STRUCTURED_OUTPUT_BEST = "anthropic/claude-sonnet-4.5";
|
|
43
|
+
declare const STRUCTURED_OUTPUT_FAST = "openai/gpt-5-mini";
|
|
44
|
+
declare const TOOL_CALL_BEST = "anthropic/claude-sonnet-4.5";
|
|
45
|
+
declare const TOOL_CALL_FAST = "openai/gpt-5-mini";
|
|
46
|
+
declare const AI_MODELS: readonly ["meta-llama/llama-3.3-70b-instruct", "qwen/qwen3-30b-a3b", "google/gemini-2.5-pro", "google/gemini-3-pro-preview", "google/gemini-3-flash-preview", "deepseek/deepseek-r1-0528", "openai/o3", "openai/gpt-5.1", "openai/gpt-5.2", "openai/gpt-5-chat", "x-ai/grok-4", "anthropic/claude-sonnet-4", "anthropic/claude-sonnet-4.5", "anthropic/claude-opus-4.5", "openai/gpt-5-mini", "z-ai/glm-4.5v", "mistralai/mistral-medium-3.1", "google/gemini-2.5-flash", "x-ai/grok-3-mini", "anthropic/claude-3-haiku", "openai/gpt-5-nano", "google/gemini-2.5-flash-lite", "x-ai/grok-4-fast", "minimax/minimax-m2", "moonshotai/kimi-k2-0905", "moonshotai/kimi-k2-thinking", "deepseek/deepseek-chat-v3.1", "z-ai/glm-4.6", "qwen/qwen3-max"];
|
|
47
|
+
declare const AI_MODELS_REGISTRY: AiModelRegistry;
|
|
48
|
+
type AiModel = (typeof AI_MODELS)[number];
|
|
49
|
+
type AiModelRegistry = Record<AiModel, {
|
|
50
|
+
name: string;
|
|
51
|
+
provider: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
tier: string;
|
|
54
|
+
order: number;
|
|
55
|
+
}>;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { AI_EMBEDDING_MODELS, AI_MODELS, AI_MODELS_REGISTRY, AiEmbeddingModel, AiModel, AiModelRegistry, CLAUDE_OPUS_4_5, CLAUDE_OPUS_4_6, CLAUDE_SONNET_3_HAIKU, CLAUDE_SONNET_4, CLAUDE_SONNET_4_5, CLAUDE_SONNET_4_6, DEEPSEEK_R1, DEEPSEEK_V3_1, GEMINI_2_5_FLASH, GEMINI_2_5_FLASH_LITE, GEMINI_2_5_PRO, GEMINI_3_1_PRO, GEMINI_3_FLASH, GEMINI_3_PRO, GLM_4_5V, GLM_4_6, GPT_5_1, GPT_5_2, GPT_5_CHAT, GPT_5_MINI, GPT_5_NANO, GROK_3_MINI, GROK_4, GROK_4_FAST, KIMI_K2, KIMI_K2_5, KIMI_K2_THINKING, LLAMA_3_3_70B_INSTRUCT, MINIMAX_M2, MISTRAL_3_1_MEDIUM, O3, OPENAI_TEXT_EMBEDDING_3_SMALL, QWEN3_30B_A3B, QWEN3_MAX, RESONING_BEST, RESONING_FAST, SCORER_BEST, SCORER_FAST, STRUCTURED_OUTPUT_BEST, STRUCTURED_OUTPUT_FAST, TOOL_CALL_BEST, TOOL_CALL_FAST };
|
|
58
|
+
//# sourceMappingURL=ai.constants.d.cts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/modules/ai/ai.utils.ts
|
|
3
|
+
function arrayToPseudoXML(array, keys, name = "item") {
|
|
4
|
+
return array.map((item) => `<${name}>${keys.map((key) => `<${String(key)}>${String(item[key])}</${String(key)}>`).join("\n")}</${name}>`).join("\n");
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
exports.arrayToPseudoXML = arrayToPseudoXML;
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=ai.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.utils.cjs","names":[],"sources":["../../../../src/modules/ai/ai.utils.ts"],"sourcesContent":["export function arrayToPseudoXML<T extends Record<string, unknown>>(\r\n array: readonly T[],\r\n keys: readonly (keyof T)[],\r\n name = \"item\"\r\n): string {\r\n return array\r\n .map(\r\n (item) =>\r\n `<${name}>${keys\r\n .map((key) => `<${String(key)}>${String(item[key])}</${String(key)}>`)\r\n .join(\"\\n\")}</${name}>`\r\n )\r\n .join(\"\\n\");\r\n}\r\n"],"mappings":";;AAAA,SAAgB,iBACd,OACA,MACA,OAAO,QACC;AACR,QAAO,MACJ,KACE,SACC,IAAI,KAAK,GAAG,KACT,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,GAAG,OAAO,KAAK,KAAK,CAAC,IAAI,OAAO,IAAI,CAAC,GAAG,CACrE,KAAK,KAAK,CAAC,IAAI,KAAK,GAC1B,CACA,KAAK,KAAK"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/modules/auth/auth.schema.ts
|
|
4
|
+
const userSchema = zod.z.object({
|
|
5
|
+
id: zod.z.string(),
|
|
6
|
+
name: zod.z.string(),
|
|
7
|
+
email: zod.z.string(),
|
|
8
|
+
emailVerified: zod.z.boolean(),
|
|
9
|
+
image: zod.z.string().nullable(),
|
|
10
|
+
createdAt: zod.z.date(),
|
|
11
|
+
updatedAt: zod.z.date(),
|
|
12
|
+
role: zod.z.string().nullable(),
|
|
13
|
+
banned: zod.z.boolean().nullable(),
|
|
14
|
+
banReason: zod.z.string().nullable(),
|
|
15
|
+
banExpires: zod.z.date().nullable(),
|
|
16
|
+
paymentCustomerId: zod.z.string().nullable(),
|
|
17
|
+
paymentPlanTier: zod.z.string().nullable(),
|
|
18
|
+
paymentPlanExpiresAt: zod.z.date().nullable(),
|
|
19
|
+
preferences: zod.z.string().nullable(),
|
|
20
|
+
onboarding: zod.z.boolean().nullable()
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.userSchema = userSchema;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=auth.schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.schema.cjs","names":["z"],"sources":["../../../../src/modules/auth/auth.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const userSchema = z.object({\r\n id: z.string(),\r\n name: z.string(),\r\n email: z.string(),\r\n emailVerified: z.boolean(),\r\n image: z.string().nullable(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n role: z.string().nullable(),\r\n banned: z.boolean().nullable(),\r\n banReason: z.string().nullable(),\r\n banExpires: z.date().nullable(),\r\n paymentCustomerId: z.string().nullable(),\r\n paymentPlanTier: z.string().nullable(),\r\n paymentPlanExpiresAt: z.date().nullable(),\r\n preferences: z.string().nullable(),\r\n onboarding: z.boolean().nullable(),\r\n});\r\n\r\nexport type UserSchema = z.infer<typeof userSchema>;\r\n"],"mappings":";;;AAEA,MAAa,aAAaA,IAAAA,EAAE,OAAO;CACjC,IAAIA,IAAAA,EAAE,QAAQ;CACd,MAAMA,IAAAA,EAAE,QAAQ;CAChB,OAAOA,IAAAA,EAAE,QAAQ;CACjB,eAAeA,IAAAA,EAAE,SAAS;CAC1B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC5B,WAAWA,IAAAA,EAAE,MAAM;CACnB,WAAWA,IAAAA,EAAE,MAAM;CACnB,MAAMA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC3B,QAAQA,IAAAA,EAAE,SAAS,CAAC,UAAU;CAC9B,WAAWA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAChC,YAAYA,IAAAA,EAAE,MAAM,CAAC,UAAU;CAC/B,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CACxC,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CACtC,sBAAsBA,IAAAA,EAAE,MAAM,CAAC,UAAU;CACzC,aAAaA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAYA,IAAAA,EAAE,SAAS,CAAC,UAAU;CACnC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/auth/auth.schema.d.ts
|
|
4
|
+
declare const userSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
emailVerified: z.ZodBoolean;
|
|
9
|
+
image: z.ZodNullable<z.ZodString>;
|
|
10
|
+
createdAt: z.ZodDate;
|
|
11
|
+
updatedAt: z.ZodDate;
|
|
12
|
+
role: z.ZodNullable<z.ZodString>;
|
|
13
|
+
banned: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
+
banReason: z.ZodNullable<z.ZodString>;
|
|
15
|
+
banExpires: z.ZodNullable<z.ZodDate>;
|
|
16
|
+
paymentCustomerId: z.ZodNullable<z.ZodString>;
|
|
17
|
+
paymentPlanTier: z.ZodNullable<z.ZodString>;
|
|
18
|
+
paymentPlanExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
19
|
+
preferences: z.ZodNullable<z.ZodString>;
|
|
20
|
+
onboarding: z.ZodNullable<z.ZodBoolean>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
type UserSchema = z.infer<typeof userSchema>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { UserSchema, userSchema };
|
|
25
|
+
//# sourceMappingURL=auth.schema.d.cts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/modules/base/base.schema.ts
|
|
4
|
+
const uuidSchema = zod.z.object({ id: zod.z.uuid() });
|
|
5
|
+
const uuidManySchema = zod.z.object({ ids: zod.z.array(zod.z.uuid()) });
|
|
6
|
+
const scheduleOutputSchema = zod.z.object({ jobId: zod.z.string() });
|
|
7
|
+
const scheduleManyOutputSchema = zod.z.object({ jobIds: zod.z.array(zod.z.string()) });
|
|
8
|
+
const deleteOutputSchema = uuidSchema;
|
|
9
|
+
const deleteManyOutputSchema = uuidManySchema;
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.deleteManyOutputSchema = deleteManyOutputSchema;
|
|
12
|
+
exports.deleteOutputSchema = deleteOutputSchema;
|
|
13
|
+
exports.scheduleManyOutputSchema = scheduleManyOutputSchema;
|
|
14
|
+
exports.scheduleOutputSchema = scheduleOutputSchema;
|
|
15
|
+
exports.uuidManySchema = uuidManySchema;
|
|
16
|
+
exports.uuidSchema = uuidSchema;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=base.schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.schema.cjs","names":["z"],"sources":["../../../../src/modules/base/base.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const uuidSchema = z.object({\r\n id: z.uuid(),\r\n});\r\n\r\nexport const uuidManySchema = z.object({\r\n ids: z.array(z.uuid()),\r\n});\r\n\r\nexport const scheduleOutputSchema = z.object({\r\n jobId: z.string(),\r\n});\r\n\r\nexport const scheduleManyOutputSchema = z.object({\r\n jobIds: z.array(z.string()),\r\n});\r\n\r\nexport const deleteOutputSchema = uuidSchema;\r\nexport const deleteManyOutputSchema = uuidManySchema;\r\n\r\nexport type UuidSchema = z.infer<typeof uuidSchema>;\r\nexport type UuidManySchema = z.infer<typeof uuidManySchema>;\r\nexport type ScheduleOutputSchema = z.infer<typeof scheduleOutputSchema>;\r\nexport type ScheduleManyOutputSchema = z.infer<typeof scheduleManyOutputSchema>;\r\nexport type DeleteOutputSchema = z.infer<typeof deleteOutputSchema>;\r\nexport type DeleteManyInputSchema = z.infer<typeof deleteManyOutputSchema>;\r\n"],"mappings":";;;AAEA,MAAa,aAAaA,IAAAA,EAAE,OAAO,EACjC,IAAIA,IAAAA,EAAE,MAAM,EACb,CAAC;AAEF,MAAa,iBAAiBA,IAAAA,EAAE,OAAO,EACrC,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAAC,EACvB,CAAC;AAEF,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,OAAOA,IAAAA,EAAE,QAAQ,EAClB,CAAC;AAEF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,EAC5B,CAAC;AAEF,MAAa,qBAAqB;AAClC,MAAa,yBAAyB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/base/base.schema.d.ts
|
|
4
|
+
declare const uuidSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodUUID;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const uuidManySchema: z.ZodObject<{
|
|
8
|
+
ids: z.ZodArray<z.ZodUUID>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const scheduleOutputSchema: z.ZodObject<{
|
|
11
|
+
jobId: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const scheduleManyOutputSchema: z.ZodObject<{
|
|
14
|
+
jobIds: z.ZodArray<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const deleteOutputSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodUUID;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const deleteManyOutputSchema: z.ZodObject<{
|
|
20
|
+
ids: z.ZodArray<z.ZodUUID>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
type UuidSchema = z.infer<typeof uuidSchema>;
|
|
23
|
+
type UuidManySchema = z.infer<typeof uuidManySchema>;
|
|
24
|
+
type ScheduleOutputSchema = z.infer<typeof scheduleOutputSchema>;
|
|
25
|
+
type ScheduleManyOutputSchema = z.infer<typeof scheduleManyOutputSchema>;
|
|
26
|
+
type DeleteOutputSchema = z.infer<typeof deleteOutputSchema>;
|
|
27
|
+
type DeleteManyInputSchema = z.infer<typeof deleteManyOutputSchema>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { DeleteManyInputSchema, DeleteOutputSchema, ScheduleManyOutputSchema, ScheduleOutputSchema, UuidManySchema, UuidSchema, deleteManyOutputSchema, deleteOutputSchema, scheduleManyOutputSchema, scheduleOutputSchema, uuidManySchema, uuidSchema };
|
|
30
|
+
//# sourceMappingURL=base.schema.d.cts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/modules/billing/billing.schema.ts
|
|
4
|
+
const billingSchema = zod.z.object({
|
|
5
|
+
id: zod.z.string(),
|
|
6
|
+
plan: zod.z.string(),
|
|
7
|
+
referenceId: zod.z.string(),
|
|
8
|
+
stripeCustomerId: zod.z.string().nullish(),
|
|
9
|
+
stripeSubscriptionId: zod.z.string().nullish(),
|
|
10
|
+
status: zod.z.string(),
|
|
11
|
+
periodStart: zod.z.date().nullish(),
|
|
12
|
+
periodEnd: zod.z.date().nullish(),
|
|
13
|
+
cancelAtPeriodEnd: zod.z.boolean().nullish(),
|
|
14
|
+
cancelAt: zod.z.date().nullish(),
|
|
15
|
+
canceledAt: zod.z.date().nullish(),
|
|
16
|
+
seats: zod.z.number().nullish(),
|
|
17
|
+
trialStart: zod.z.date().nullish(),
|
|
18
|
+
trialEnd: zod.z.date().nullish(),
|
|
19
|
+
priceId: zod.z.string().nullish(),
|
|
20
|
+
interval: zod.z.string().nullish(),
|
|
21
|
+
unitAmount: zod.z.number().nullish(),
|
|
22
|
+
discounts: zod.z.array(zod.z.string()).nullish()
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.billingSchema = billingSchema;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=billing.schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.schema.cjs","names":["z"],"sources":["../../../../src/modules/billing/billing.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const billingSchema = z.object({\r\n id: z.string(),\r\n plan: z.string(),\r\n referenceId: z.string(),\r\n stripeCustomerId: z.string().nullish(),\r\n stripeSubscriptionId: z.string().nullish(),\r\n status: z.string(),\r\n periodStart: z.date().nullish(),\r\n periodEnd: z.date().nullish(),\r\n cancelAtPeriodEnd: z.boolean().nullish(),\r\n cancelAt: z.date().nullish(),\r\n canceledAt: z.date().nullish(),\r\n seats: z.number().nullish(),\r\n trialStart: z.date().nullish(),\r\n trialEnd: z.date().nullish(),\r\n priceId: z.string().nullish(),\r\n interval: z.string().nullish(),\r\n unitAmount: z.number().nullish(),\r\n discounts: z.array(z.string()).nullish(),\r\n});\r\n\r\nexport type BillingSchema = z.infer<typeof billingSchema>;\r\n"],"mappings":";;;AAEA,MAAa,gBAAgBA,IAAAA,EAAE,OAAO;CACpC,IAAIA,IAAAA,EAAE,QAAQ;CACd,MAAMA,IAAAA,EAAE,QAAQ;CAChB,aAAaA,IAAAA,EAAE,QAAQ;CACvB,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CACtC,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CAC1C,QAAQA,IAAAA,EAAE,QAAQ;CAClB,aAAaA,IAAAA,EAAE,MAAM,CAAC,SAAS;CAC/B,WAAWA,IAAAA,EAAE,MAAM,CAAC,SAAS;CAC7B,mBAAmBA,IAAAA,EAAE,SAAS,CAAC,SAAS;CACxC,UAAUA,IAAAA,EAAE,MAAM,CAAC,SAAS;CAC5B,YAAYA,IAAAA,EAAE,MAAM,CAAC,SAAS;CAC9B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CAC3B,YAAYA,IAAAA,EAAE,MAAM,CAAC,SAAS;CAC9B,UAAUA,IAAAA,EAAE,MAAM,CAAC,SAAS;CAC5B,SAASA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CAC7B,UAAUA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CAC9B,YAAYA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CAChC,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CACzC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/billing/billing.schema.d.ts
|
|
4
|
+
declare const billingSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
plan: z.ZodString;
|
|
7
|
+
referenceId: z.ZodString;
|
|
8
|
+
stripeCustomerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
stripeSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
status: z.ZodString;
|
|
11
|
+
periodStart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
12
|
+
periodEnd: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
13
|
+
cancelAtPeriodEnd: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
|
+
cancelAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
15
|
+
canceledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
16
|
+
seats: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
trialStart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
18
|
+
trialEnd: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
19
|
+
priceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type BillingSchema = z.infer<typeof billingSchema>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { BillingSchema, billingSchema };
|
|
27
|
+
//# sourceMappingURL=billing.schema.d.cts.map
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/modules/billing/billing.types.d.ts
|
|
2
|
+
type StripePlan = {
|
|
3
|
+
name: string;
|
|
4
|
+
priceId: string;
|
|
5
|
+
priceUnitAmount?: number;
|
|
6
|
+
annualDiscountPriceId?: string;
|
|
7
|
+
annualPriceUnitAmount?: number;
|
|
8
|
+
freeTrial?: {
|
|
9
|
+
days: number;
|
|
10
|
+
};
|
|
11
|
+
limits?: Record<string, number>;
|
|
12
|
+
group?: string;
|
|
13
|
+
};
|
|
14
|
+
type StripePlansConfig = {
|
|
15
|
+
production: StripePlan[];
|
|
16
|
+
sandbox: StripePlan[];
|
|
17
|
+
trialPlanName?: string;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { StripePlan, StripePlansConfig };
|
|
21
|
+
//# sourceMappingURL=billing.types.d.cts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/modules/billing/billing.utils.ts
|
|
3
|
+
const getEnvironmentPlans = (plansConfig, environment = "sandbox") => {
|
|
4
|
+
const plans = environment === "production" ? plansConfig.production : plansConfig.sandbox;
|
|
5
|
+
return {
|
|
6
|
+
plans,
|
|
7
|
+
trial: plansConfig.trialPlanName ? plans.find((plan) => plan.name === plansConfig.trialPlanName) : void 0
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.getEnvironmentPlans = getEnvironmentPlans;
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=billing.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.utils.cjs","names":[],"sources":["../../../../src/modules/billing/billing.utils.ts"],"sourcesContent":["import type { StripePlan, StripePlansConfig } from \"./billing.types\";\r\n\r\nexport const getEnvironmentPlans = (\r\n plansConfig: StripePlansConfig,\r\n environment = \"sandbox\"\r\n): { plans: StripePlan[]; trial: StripePlan | undefined } => {\r\n const isProduction = environment === \"production\";\r\n const plans = isProduction ? plansConfig.production : plansConfig.sandbox;\r\n const trial = plansConfig.trialPlanName\r\n ? plans.find((plan) => plan.name === plansConfig.trialPlanName)\r\n : undefined;\r\n return { plans, trial };\r\n};\r\n"],"mappings":";;AAEA,MAAa,uBACX,aACA,cAAc,cAC6C;CAE3D,MAAM,QADe,gBAAgB,eACR,YAAY,aAAa,YAAY;AAIlE,QAAO;EAAE;EAAO,OAHF,YAAY,gBACtB,MAAM,MAAM,SAAS,KAAK,SAAS,YAAY,cAAc,GAC7D,KAAA;EACmB"}
|