recker 1.0.2-0 → 1.0.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.
- package/LICENSE +0 -2
- package/README.md +121 -72
- package/dist/cache/memory-storage.d.ts.map +1 -1
- package/dist/cache/memory-storage.js +7 -1
- package/dist/constants/http-status.d.ts +74 -0
- package/dist/constants/http-status.d.ts.map +1 -0
- package/dist/constants/http-status.js +156 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +6 -6
- package/dist/cookies/memory-cookie-jar.d.ts +31 -0
- package/dist/cookies/memory-cookie-jar.d.ts.map +1 -0
- package/dist/cookies/memory-cookie-jar.js +210 -0
- package/dist/core/client.d.ts +9 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +252 -53
- package/dist/core/errors.d.ts +18 -2
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +66 -5
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +5 -0
- package/dist/core/request-promise.d.ts.map +1 -1
- package/dist/core/request-promise.js +8 -2
- package/dist/core/request.d.ts +7 -1
- package/dist/core/request.d.ts.map +1 -1
- package/dist/core/request.js +32 -0
- package/dist/core/response.d.ts +2 -0
- package/dist/core/response.d.ts.map +1 -1
- package/dist/core/response.js +44 -19
- package/dist/events/request-events.d.ts +48 -0
- package/dist/events/request-events.d.ts.map +1 -0
- package/dist/events/request-events.js +85 -0
- package/dist/index.d.ts +28 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -2
- package/dist/mcp/client.d.ts.map +1 -1
- package/dist/mcp/client.js +16 -5
- package/dist/mcp/contract.d.ts +77 -0
- package/dist/mcp/contract.d.ts.map +1 -0
- package/dist/mcp/contract.js +278 -0
- package/dist/mcp/types.d.ts +1 -0
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/plugins/auth.d.ts +45 -0
- package/dist/plugins/auth.d.ts.map +1 -0
- package/dist/plugins/auth.js +268 -0
- package/dist/plugins/cache.d.ts +7 -1
- package/dist/plugins/cache.d.ts.map +1 -1
- package/dist/plugins/cache.js +470 -49
- package/dist/plugins/circuit-breaker.js +1 -1
- package/dist/plugins/compression.d.ts.map +1 -1
- package/dist/plugins/compression.js +3 -3
- package/dist/plugins/dedup.d.ts.map +1 -1
- package/dist/plugins/dedup.js +2 -1
- package/dist/plugins/graphql.d.ts +4 -3
- package/dist/plugins/graphql.d.ts.map +1 -1
- package/dist/plugins/graphql.js +24 -5
- package/dist/plugins/grpc-web.d.ts +80 -0
- package/dist/plugins/grpc-web.d.ts.map +1 -0
- package/dist/plugins/grpc-web.js +261 -0
- package/dist/plugins/har-player.d.ts.map +1 -1
- package/dist/plugins/har-player.js +11 -2
- package/dist/plugins/hls.d.ts +33 -0
- package/dist/plugins/hls.d.ts.map +1 -0
- package/dist/plugins/hls.js +225 -0
- package/dist/plugins/http2-push.d.ts +64 -0
- package/dist/plugins/http2-push.d.ts.map +1 -0
- package/dist/plugins/http2-push.js +274 -0
- package/dist/plugins/http3.d.ts +76 -0
- package/dist/plugins/http3.d.ts.map +1 -0
- package/dist/plugins/http3.js +231 -0
- package/dist/plugins/interface-rotator.d.ts +10 -0
- package/dist/plugins/interface-rotator.d.ts.map +1 -0
- package/dist/plugins/interface-rotator.js +57 -0
- package/dist/plugins/jsonrpc.d.ts +76 -0
- package/dist/plugins/jsonrpc.d.ts.map +1 -0
- package/dist/plugins/jsonrpc.js +143 -0
- package/dist/plugins/logger.d.ts +8 -5
- package/dist/plugins/logger.d.ts.map +1 -1
- package/dist/plugins/logger.js +66 -30
- package/dist/plugins/odata.d.ts +182 -0
- package/dist/plugins/odata.d.ts.map +1 -0
- package/dist/plugins/odata.js +561 -0
- package/dist/plugins/retry.d.ts +1 -0
- package/dist/plugins/retry.d.ts.map +1 -1
- package/dist/plugins/retry.js +26 -2
- package/dist/plugins/scrape.d.ts +22 -0
- package/dist/plugins/scrape.d.ts.map +1 -0
- package/dist/plugins/scrape.js +87 -0
- package/dist/plugins/soap.d.ts +73 -0
- package/dist/plugins/soap.d.ts.map +1 -0
- package/dist/plugins/soap.js +347 -0
- package/dist/plugins/user-agent.d.ts +8 -0
- package/dist/plugins/user-agent.d.ts.map +1 -0
- package/dist/plugins/user-agent.js +46 -0
- package/dist/plugins/xml.d.ts +10 -0
- package/dist/plugins/xml.d.ts.map +1 -0
- package/dist/plugins/xml.js +194 -0
- package/dist/presets/anthropic.d.ts +7 -0
- package/dist/presets/anthropic.d.ts.map +1 -0
- package/dist/presets/anthropic.js +17 -0
- package/dist/presets/azure-openai.d.ts +9 -0
- package/dist/presets/azure-openai.d.ts.map +1 -0
- package/dist/presets/azure-openai.js +25 -0
- package/dist/presets/cloudflare.d.ts +13 -0
- package/dist/presets/cloudflare.d.ts.map +1 -0
- package/dist/presets/cloudflare.js +39 -0
- package/dist/presets/cohere.d.ts +6 -0
- package/dist/presets/cohere.d.ts.map +1 -0
- package/dist/presets/cohere.js +16 -0
- package/dist/presets/deepseek.d.ts +6 -0
- package/dist/presets/deepseek.d.ts.map +1 -0
- package/dist/presets/deepseek.js +16 -0
- package/dist/presets/digitalocean.d.ts +6 -0
- package/dist/presets/digitalocean.d.ts.map +1 -0
- package/dist/presets/digitalocean.js +16 -0
- package/dist/presets/discord.d.ts +7 -0
- package/dist/presets/discord.d.ts.map +1 -0
- package/dist/presets/discord.js +17 -0
- package/dist/presets/fireworks.d.ts +6 -0
- package/dist/presets/fireworks.d.ts.map +1 -0
- package/dist/presets/fireworks.js +16 -0
- package/dist/presets/gemini.d.ts +6 -0
- package/dist/presets/gemini.d.ts.map +1 -0
- package/dist/presets/gemini.js +16 -0
- package/dist/presets/github.d.ts +7 -0
- package/dist/presets/github.d.ts.map +1 -0
- package/dist/presets/github.js +17 -0
- package/dist/presets/gitlab.d.ts +7 -0
- package/dist/presets/gitlab.d.ts.map +1 -0
- package/dist/presets/gitlab.js +16 -0
- package/dist/presets/groq.d.ts +6 -0
- package/dist/presets/groq.d.ts.map +1 -0
- package/dist/presets/groq.js +16 -0
- package/dist/presets/huggingface.d.ts +6 -0
- package/dist/presets/huggingface.d.ts.map +1 -0
- package/dist/presets/huggingface.js +16 -0
- package/dist/presets/index.d.ts +28 -0
- package/dist/presets/index.d.ts.map +1 -0
- package/dist/presets/index.js +27 -0
- package/dist/presets/linear.d.ts +6 -0
- package/dist/presets/linear.d.ts.map +1 -0
- package/dist/presets/linear.js +16 -0
- package/dist/presets/mistral.d.ts +6 -0
- package/dist/presets/mistral.d.ts.map +1 -0
- package/dist/presets/mistral.js +16 -0
- package/dist/presets/notion.d.ts +7 -0
- package/dist/presets/notion.d.ts.map +1 -0
- package/dist/presets/notion.js +17 -0
- package/dist/presets/openai.d.ts +8 -0
- package/dist/presets/openai.d.ts.map +1 -0
- package/dist/presets/openai.js +23 -0
- package/dist/presets/perplexity.d.ts +6 -0
- package/dist/presets/perplexity.d.ts.map +1 -0
- package/dist/presets/perplexity.js +16 -0
- package/dist/presets/registry.d.ts +20 -0
- package/dist/presets/registry.d.ts.map +1 -0
- package/dist/presets/registry.js +311 -0
- package/dist/presets/replicate.d.ts +6 -0
- package/dist/presets/replicate.d.ts.map +1 -0
- package/dist/presets/replicate.js +16 -0
- package/dist/presets/slack.d.ts +6 -0
- package/dist/presets/slack.d.ts.map +1 -0
- package/dist/presets/slack.js +16 -0
- package/dist/presets/stripe.d.ts +8 -0
- package/dist/presets/stripe.d.ts.map +1 -0
- package/dist/presets/stripe.js +23 -0
- package/dist/presets/supabase.d.ts +7 -0
- package/dist/presets/supabase.d.ts.map +1 -0
- package/dist/presets/supabase.js +18 -0
- package/dist/presets/together.d.ts +6 -0
- package/dist/presets/together.d.ts.map +1 -0
- package/dist/presets/together.js +16 -0
- package/dist/presets/twilio.d.ts +7 -0
- package/dist/presets/twilio.d.ts.map +1 -0
- package/dist/presets/twilio.js +17 -0
- package/dist/presets/vercel.d.ts +7 -0
- package/dist/presets/vercel.d.ts.map +1 -0
- package/dist/presets/vercel.js +23 -0
- package/dist/presets/xai.d.ts +7 -0
- package/dist/presets/xai.d.ts.map +1 -0
- package/dist/presets/xai.js +17 -0
- package/dist/protocols/ftp.d.ts +63 -0
- package/dist/protocols/ftp.d.ts.map +1 -0
- package/dist/protocols/ftp.js +388 -0
- package/dist/protocols/index.d.ts +4 -0
- package/dist/protocols/index.d.ts.map +1 -0
- package/dist/protocols/index.js +3 -0
- package/dist/protocols/sftp.d.ts +65 -0
- package/dist/protocols/sftp.d.ts.map +1 -0
- package/dist/protocols/sftp.js +346 -0
- package/dist/protocols/telnet.d.ts +50 -0
- package/dist/protocols/telnet.d.ts.map +1 -0
- package/dist/protocols/telnet.js +139 -0
- package/dist/runner/request-runner.d.ts.map +1 -1
- package/dist/runner/request-runner.js +1 -0
- package/dist/scrape/document.d.ts +44 -0
- package/dist/scrape/document.d.ts.map +1 -0
- package/dist/scrape/document.js +198 -0
- package/dist/scrape/element.d.ts +50 -0
- package/dist/scrape/element.d.ts.map +1 -0
- package/dist/scrape/element.js +176 -0
- package/dist/scrape/extractors.d.ts +17 -0
- package/dist/scrape/extractors.d.ts.map +1 -0
- package/dist/scrape/extractors.js +356 -0
- package/dist/scrape/index.d.ts +5 -0
- package/dist/scrape/index.d.ts.map +1 -0
- package/dist/scrape/index.js +3 -0
- package/dist/scrape/types.d.ts +108 -0
- package/dist/scrape/types.d.ts.map +1 -0
- package/dist/scrape/types.js +1 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +1 -0
- package/dist/testing/mock.d.ts +58 -0
- package/dist/testing/mock.d.ts.map +1 -0
- package/dist/testing/mock.js +252 -0
- package/dist/transport/fetch.d.ts.map +1 -1
- package/dist/transport/fetch.js +12 -4
- package/dist/transport/undici.d.ts +17 -1
- package/dist/transport/undici.d.ts.map +1 -1
- package/dist/transport/undici.js +708 -47
- package/dist/types/index.d.ts +111 -10
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/logger.d.ts +17 -0
- package/dist/types/logger.d.ts.map +1 -0
- package/dist/types/logger.js +66 -0
- package/dist/utils/agent-manager.d.ts.map +1 -1
- package/dist/utils/agent-manager.js +20 -4
- package/dist/utils/body.d.ts.map +1 -1
- package/dist/utils/body.js +14 -2
- package/dist/utils/charset.d.ts +16 -0
- package/dist/utils/charset.d.ts.map +1 -0
- package/dist/utils/charset.js +169 -0
- package/dist/utils/client-pool.d.ts +21 -0
- package/dist/utils/client-pool.d.ts.map +1 -0
- package/dist/utils/client-pool.js +49 -0
- package/dist/utils/concurrency.d.ts.map +1 -1
- package/dist/utils/concurrency.js +8 -4
- package/dist/utils/dns-toolkit.d.ts +13 -0
- package/dist/utils/dns-toolkit.d.ts.map +1 -0
- package/dist/utils/dns-toolkit.js +48 -0
- package/dist/utils/doh.d.ts.map +1 -1
- package/dist/utils/doh.js +16 -3
- package/dist/utils/download.d.ts +15 -0
- package/dist/utils/download.d.ts.map +1 -0
- package/dist/utils/download.js +44 -0
- package/dist/utils/env-proxy.d.ts +13 -0
- package/dist/utils/env-proxy.d.ts.map +1 -0
- package/dist/utils/env-proxy.js +105 -0
- package/dist/utils/header-parser.d.ts +15 -1
- package/dist/utils/header-parser.d.ts.map +1 -1
- package/dist/utils/header-parser.js +161 -1
- package/dist/utils/link-header.d.ts +70 -0
- package/dist/utils/link-header.d.ts.map +1 -0
- package/dist/utils/link-header.js +190 -0
- package/dist/utils/progress.d.ts +7 -2
- package/dist/utils/progress.d.ts.map +1 -1
- package/dist/utils/progress.js +48 -15
- package/dist/utils/rdap.d.ts +17 -0
- package/dist/utils/rdap.d.ts.map +1 -0
- package/dist/utils/rdap.js +32 -0
- package/dist/utils/request-pool.d.ts.map +1 -1
- package/dist/utils/request-pool.js +4 -3
- package/dist/utils/sse.d.ts.map +1 -1
- package/dist/utils/sse.js +8 -2
- package/dist/utils/status-codes.d.ts +84 -0
- package/dist/utils/status-codes.d.ts.map +1 -0
- package/dist/utils/status-codes.js +204 -0
- package/dist/utils/streaming.d.ts.map +1 -1
- package/dist/utils/streaming.js +1 -0
- package/dist/utils/tls-inspector.d.ts +21 -0
- package/dist/utils/tls-inspector.d.ts.map +1 -0
- package/dist/utils/tls-inspector.js +39 -0
- package/dist/utils/try-fn.d.ts.map +1 -1
- package/dist/utils/try-fn.js +11 -5
- package/dist/utils/upload.d.ts +1 -0
- package/dist/utils/upload.d.ts.map +1 -1
- package/dist/utils/upload.js +20 -3
- package/dist/utils/user-agent.d.ts +9 -9
- package/dist/utils/user-agent.js +9 -9
- package/dist/utils/whois.d.ts.map +1 -1
- package/dist/utils/whois.js +11 -2
- package/dist/websocket/client.d.ts +29 -1
- package/dist/websocket/client.d.ts.map +1 -1
- package/dist/websocket/client.js +145 -13
- package/package.json +45 -8
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
export function parseXML(xml) {
|
|
2
|
+
const cleanXml = xml
|
|
3
|
+
.replace(/<\?xml[^?]*\?>/gi, '')
|
|
4
|
+
.replace(/<!--[\s\S]*?-->/g, '')
|
|
5
|
+
.trim();
|
|
6
|
+
return parseElement(cleanXml);
|
|
7
|
+
}
|
|
8
|
+
function parseElement(xml) {
|
|
9
|
+
const rootMatch = xml.match(/^<(\w+)([^>]*)>([\s\S]*)<\/\1>$/);
|
|
10
|
+
if (!rootMatch) {
|
|
11
|
+
const selfClosingMatch = xml.match(/^<(\w+)([^/>]*)\/>$/);
|
|
12
|
+
if (selfClosingMatch) {
|
|
13
|
+
const [, tagName, attrs] = selfClosingMatch;
|
|
14
|
+
const attributes = parseAttributes(attrs);
|
|
15
|
+
return Object.keys(attributes).length > 0 ? { [tagName]: attributes } : { [tagName]: null };
|
|
16
|
+
}
|
|
17
|
+
return decodeXMLEntities(xml.trim());
|
|
18
|
+
}
|
|
19
|
+
const [, tagName, attrs, content] = rootMatch;
|
|
20
|
+
const attributes = parseAttributes(attrs);
|
|
21
|
+
const children = parseChildren(content);
|
|
22
|
+
const result = {};
|
|
23
|
+
if (Object.keys(attributes).length > 0) {
|
|
24
|
+
result['@attributes'] = attributes;
|
|
25
|
+
}
|
|
26
|
+
if (typeof children === 'string') {
|
|
27
|
+
if (Object.keys(attributes).length > 0) {
|
|
28
|
+
result['#text'] = children;
|
|
29
|
+
return { [tagName]: result };
|
|
30
|
+
}
|
|
31
|
+
return { [tagName]: children };
|
|
32
|
+
}
|
|
33
|
+
if (Array.isArray(children)) {
|
|
34
|
+
for (const child of children) {
|
|
35
|
+
for (const [key, value] of Object.entries(child)) {
|
|
36
|
+
if (result[key] !== undefined) {
|
|
37
|
+
if (!Array.isArray(result[key])) {
|
|
38
|
+
result[key] = [result[key]];
|
|
39
|
+
}
|
|
40
|
+
result[key].push(value);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
result[key] = value;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return { [tagName]: Object.keys(result).length > 0 ? result : null };
|
|
49
|
+
}
|
|
50
|
+
function parseAttributes(attrs) {
|
|
51
|
+
const result = {};
|
|
52
|
+
const attrRegex = /(\w+)=["']([^"']*)["']/g;
|
|
53
|
+
let match;
|
|
54
|
+
while ((match = attrRegex.exec(attrs)) !== null) {
|
|
55
|
+
result[match[1]] = decodeXMLEntities(match[2]);
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
function parseChildren(content) {
|
|
60
|
+
const trimmed = content.trim();
|
|
61
|
+
if (!trimmed)
|
|
62
|
+
return '';
|
|
63
|
+
if (!trimmed.startsWith('<')) {
|
|
64
|
+
return decodeXMLEntities(trimmed);
|
|
65
|
+
}
|
|
66
|
+
const children = [];
|
|
67
|
+
let remaining = trimmed;
|
|
68
|
+
while (remaining.length > 0) {
|
|
69
|
+
remaining = remaining.trim();
|
|
70
|
+
if (!remaining)
|
|
71
|
+
break;
|
|
72
|
+
const tagMatch = remaining.match(/^<(\w+)([^>]*)>/);
|
|
73
|
+
if (!tagMatch) {
|
|
74
|
+
const textEnd = remaining.indexOf('<');
|
|
75
|
+
if (textEnd > 0) {
|
|
76
|
+
const text = remaining.substring(0, textEnd).trim();
|
|
77
|
+
if (text) {
|
|
78
|
+
children.push({ '#text': decodeXMLEntities(text) });
|
|
79
|
+
}
|
|
80
|
+
remaining = remaining.substring(textEnd);
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
const [fullMatch, tagName, attrs] = tagMatch;
|
|
86
|
+
if (attrs.endsWith('/') || remaining.substring(fullMatch.length - 1, fullMatch.length + 1) === '/>') {
|
|
87
|
+
const selfMatch = remaining.match(/^<(\w+)([^/>]*)\/?>/);
|
|
88
|
+
if (selfMatch) {
|
|
89
|
+
const selfAttrs = parseAttributes(selfMatch[2]);
|
|
90
|
+
children.push({ [tagName]: Object.keys(selfAttrs).length > 0 ? { '@attributes': selfAttrs } : null });
|
|
91
|
+
remaining = remaining.substring(selfMatch[0].length);
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
const closingTag = `</${tagName}>`;
|
|
96
|
+
let depth = 1;
|
|
97
|
+
let pos = fullMatch.length;
|
|
98
|
+
while (depth > 0 && pos < remaining.length) {
|
|
99
|
+
const nextOpen = remaining.indexOf(`<${tagName}`, pos);
|
|
100
|
+
const nextClose = remaining.indexOf(closingTag, pos);
|
|
101
|
+
if (nextClose === -1)
|
|
102
|
+
break;
|
|
103
|
+
if (nextOpen !== -1 && nextOpen < nextClose) {
|
|
104
|
+
const afterOpen = remaining.substring(nextOpen);
|
|
105
|
+
const selfCloseMatch = afterOpen.match(/^<\w+[^>]*\/>/);
|
|
106
|
+
if (!selfCloseMatch) {
|
|
107
|
+
depth++;
|
|
108
|
+
}
|
|
109
|
+
pos = nextOpen + 1;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
depth--;
|
|
113
|
+
if (depth === 0) {
|
|
114
|
+
const elementXml = remaining.substring(0, nextClose + closingTag.length);
|
|
115
|
+
children.push(parseElement(elementXml));
|
|
116
|
+
remaining = remaining.substring(nextClose + closingTag.length);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
pos = nextClose + 1;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
if (depth > 0) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return children;
|
|
128
|
+
}
|
|
129
|
+
function decodeXMLEntities(str) {
|
|
130
|
+
return str
|
|
131
|
+
.replace(/</g, '<')
|
|
132
|
+
.replace(/>/g, '>')
|
|
133
|
+
.replace(/&/g, '&')
|
|
134
|
+
.replace(/"/g, '"')
|
|
135
|
+
.replace(/'/g, "'")
|
|
136
|
+
.replace(/&#(\d+);/g, (_, code) => String.fromCharCode(parseInt(code, 10)))
|
|
137
|
+
.replace(/&#x([0-9a-fA-F]+);/g, (_, code) => String.fromCharCode(parseInt(code, 16)));
|
|
138
|
+
}
|
|
139
|
+
export function serializeXML(obj, rootName) {
|
|
140
|
+
if (obj === null || obj === undefined) {
|
|
141
|
+
return rootName ? `<${rootName}/>` : '';
|
|
142
|
+
}
|
|
143
|
+
if (typeof obj !== 'object') {
|
|
144
|
+
return rootName ? `<${rootName}>${encodeXMLEntities(String(obj))}</${rootName}>` : encodeXMLEntities(String(obj));
|
|
145
|
+
}
|
|
146
|
+
const keys = Object.keys(obj);
|
|
147
|
+
if (keys.length === 1 && !rootName) {
|
|
148
|
+
const key = keys[0];
|
|
149
|
+
return serializeXML(obj[key], key);
|
|
150
|
+
}
|
|
151
|
+
let xml = '';
|
|
152
|
+
let attributes = '';
|
|
153
|
+
let textContent = '';
|
|
154
|
+
for (const key of keys) {
|
|
155
|
+
const value = obj[key];
|
|
156
|
+
if (key === '@attributes') {
|
|
157
|
+
for (const [attrName, attrValue] of Object.entries(value)) {
|
|
158
|
+
attributes += ` ${attrName}="${encodeXMLEntities(String(attrValue))}"`;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
else if (key === '#text') {
|
|
162
|
+
textContent = encodeXMLEntities(String(value));
|
|
163
|
+
}
|
|
164
|
+
else if (Array.isArray(value)) {
|
|
165
|
+
for (const item of value) {
|
|
166
|
+
xml += serializeXML(item, key);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
xml += serializeXML(value, key);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
if (rootName) {
|
|
174
|
+
if (xml || textContent) {
|
|
175
|
+
return `<${rootName}${attributes}>${textContent}${xml}</${rootName}>`;
|
|
176
|
+
}
|
|
177
|
+
return `<${rootName}${attributes}/>`;
|
|
178
|
+
}
|
|
179
|
+
return xml;
|
|
180
|
+
}
|
|
181
|
+
function encodeXMLEntities(str) {
|
|
182
|
+
return str
|
|
183
|
+
.replace(/&/g, '&')
|
|
184
|
+
.replace(/</g, '<')
|
|
185
|
+
.replace(/>/g, '>')
|
|
186
|
+
.replace(/"/g, '"')
|
|
187
|
+
.replace(/'/g, ''');
|
|
188
|
+
}
|
|
189
|
+
export async function xmlResponse(promise, parser = parseXML) {
|
|
190
|
+
const response = await promise;
|
|
191
|
+
const text = await response.text();
|
|
192
|
+
return parser(text);
|
|
193
|
+
}
|
|
194
|
+
export { parseXML as parse, serializeXML as serialize };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../src/presets/anthropic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,sBAAsB,GAAG,aAAa,CAiBxE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function anthropic(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: 'https://api.anthropic.com/v1',
|
|
4
|
+
headers: {
|
|
5
|
+
'x-api-key': options.apiKey,
|
|
6
|
+
'anthropic-version': options.version || '2023-06-01',
|
|
7
|
+
'content-type': 'application/json'
|
|
8
|
+
},
|
|
9
|
+
timeout: 10 * 60 * 1000,
|
|
10
|
+
retry: {
|
|
11
|
+
maxAttempts: 5,
|
|
12
|
+
backoff: 'exponential',
|
|
13
|
+
delay: 1000,
|
|
14
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientOptions } from '../types/index.js';
|
|
2
|
+
export interface AzureOpenAIPresetOptions {
|
|
3
|
+
resourceName: string;
|
|
4
|
+
apiKey: string;
|
|
5
|
+
apiVersion?: string;
|
|
6
|
+
deploymentName?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function azureOpenai(options: AzureOpenAIPresetOptions): ClientOptions;
|
|
9
|
+
//# sourceMappingURL=azure-openai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azure-openai.d.ts","sourceRoot":"","sources":["../../src/presets/azure-openai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,wBAAwB;IAKvC,YAAY,EAAE,MAAM,CAAC;IAIrB,MAAM,EAAE,MAAM,CAAC;IAIf,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAMD,wBAAgB,WAAW,CAAC,OAAO,EAAE,wBAAwB,GAAG,aAAa,CAyB5E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function azureOpenai(options) {
|
|
2
|
+
const apiVersion = options.apiVersion || '2024-02-15-preview';
|
|
3
|
+
const baseUrl = options.deploymentName
|
|
4
|
+
? `https://${options.resourceName}.openai.azure.com/openai/deployments/${options.deploymentName}`
|
|
5
|
+
: `https://${options.resourceName}.openai.azure.com/openai`;
|
|
6
|
+
return {
|
|
7
|
+
baseUrl,
|
|
8
|
+
headers: {
|
|
9
|
+
'api-key': options.apiKey,
|
|
10
|
+
'Content-Type': 'application/json',
|
|
11
|
+
},
|
|
12
|
+
defaults: {
|
|
13
|
+
params: {
|
|
14
|
+
'api-version': apiVersion,
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
timeout: 10 * 60 * 1000,
|
|
18
|
+
retry: {
|
|
19
|
+
maxAttempts: 5,
|
|
20
|
+
backoff: 'exponential',
|
|
21
|
+
delay: 1000,
|
|
22
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ClientOptions } from '../types/index.js';
|
|
2
|
+
export interface CloudflarePresetOptions {
|
|
3
|
+
apiToken?: string;
|
|
4
|
+
apiKey?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function cloudflare(options: CloudflarePresetOptions): ClientOptions;
|
|
8
|
+
export interface CloudflareWorkersAIPresetOptions {
|
|
9
|
+
accountId: string;
|
|
10
|
+
apiToken: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function cloudflareWorkersAI(options: CloudflareWorkersAIPresetOptions): ClientOptions;
|
|
13
|
+
//# sourceMappingURL=cloudflare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudflare.d.ts","sourceRoot":"","sources":["../../src/presets/cloudflare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,uBAAuB;IAKtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD,wBAAgB,UAAU,CAAC,OAAO,EAAE,uBAAuB,GAAG,aAAa,CAuB1E;AAED,MAAM,WAAW,gCAAgC;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAMD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gCAAgC,GAAG,aAAa,CAe5F"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export function cloudflare(options) {
|
|
2
|
+
const headers = {
|
|
3
|
+
'Content-Type': 'application/json',
|
|
4
|
+
};
|
|
5
|
+
if (options.apiToken) {
|
|
6
|
+
headers['Authorization'] = `Bearer ${options.apiToken}`;
|
|
7
|
+
}
|
|
8
|
+
else if (options.apiKey && options.email) {
|
|
9
|
+
headers['X-Auth-Key'] = options.apiKey;
|
|
10
|
+
headers['X-Auth-Email'] = options.email;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
baseUrl: 'https://api.cloudflare.com/client/v4',
|
|
14
|
+
headers,
|
|
15
|
+
timeout: 30 * 1000,
|
|
16
|
+
retry: {
|
|
17
|
+
maxAttempts: 3,
|
|
18
|
+
backoff: 'exponential',
|
|
19
|
+
delay: 1000,
|
|
20
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function cloudflareWorkersAI(options) {
|
|
25
|
+
return {
|
|
26
|
+
baseUrl: `https://api.cloudflare.com/client/v4/accounts/${options.accountId}/ai`,
|
|
27
|
+
headers: {
|
|
28
|
+
'Authorization': `Bearer ${options.apiToken}`,
|
|
29
|
+
'Content-Type': 'application/json',
|
|
30
|
+
},
|
|
31
|
+
timeout: 5 * 60 * 1000,
|
|
32
|
+
retry: {
|
|
33
|
+
maxAttempts: 3,
|
|
34
|
+
backoff: 'exponential',
|
|
35
|
+
delay: 1000,
|
|
36
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cohere.d.ts","sourceRoot":"","sources":["../../src/presets/cohere.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;AAMD,wBAAgB,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,aAAa,CAelE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function cohere(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: 'https://api.cohere.ai/v1',
|
|
4
|
+
headers: {
|
|
5
|
+
'Authorization': `Bearer ${options.apiKey}`,
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
},
|
|
8
|
+
timeout: 5 * 60 * 1000,
|
|
9
|
+
retry: {
|
|
10
|
+
maxAttempts: 5,
|
|
11
|
+
backoff: 'exponential',
|
|
12
|
+
delay: 1000,
|
|
13
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepseek.d.ts","sourceRoot":"","sources":["../../src/presets/deepseek.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB;AAMD,wBAAgB,QAAQ,CAAC,OAAO,EAAE,qBAAqB,GAAG,aAAa,CAetE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function deepseek(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: 'https://api.deepseek.com/v1',
|
|
4
|
+
headers: {
|
|
5
|
+
'Authorization': `Bearer ${options.apiKey}`,
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
},
|
|
8
|
+
timeout: 10 * 60 * 1000,
|
|
9
|
+
retry: {
|
|
10
|
+
maxAttempts: 5,
|
|
11
|
+
backoff: 'exponential',
|
|
12
|
+
delay: 1000,
|
|
13
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digitalocean.d.ts","sourceRoot":"","sources":["../../src/presets/digitalocean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,yBAAyB;IAIxC,KAAK,EAAE,MAAM,CAAC;CACf;AAMD,wBAAgB,YAAY,CAAC,OAAO,EAAE,yBAAyB,GAAG,aAAa,CAe9E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function digitalocean(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: 'https://api.digitalocean.com/v2',
|
|
4
|
+
headers: {
|
|
5
|
+
'Authorization': `Bearer ${options.token}`,
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
},
|
|
8
|
+
timeout: 30 * 1000,
|
|
9
|
+
retry: {
|
|
10
|
+
maxAttempts: 3,
|
|
11
|
+
backoff: 'exponential',
|
|
12
|
+
delay: 1000,
|
|
13
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discord.d.ts","sourceRoot":"","sources":["../../src/presets/discord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,oBAAoB;IAInC,KAAK,EAAE,MAAM,CAAC;IAId,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC9B;AAMD,wBAAgB,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,aAAa,CAkBpE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function discord(options) {
|
|
2
|
+
const tokenType = options.tokenType || 'Bot';
|
|
3
|
+
return {
|
|
4
|
+
baseUrl: 'https://discord.com/api/v10',
|
|
5
|
+
headers: {
|
|
6
|
+
'Authorization': `${tokenType} ${options.token}`,
|
|
7
|
+
'Content-Type': 'application/json',
|
|
8
|
+
},
|
|
9
|
+
timeout: 30 * 1000,
|
|
10
|
+
retry: {
|
|
11
|
+
maxAttempts: 5,
|
|
12
|
+
backoff: 'exponential',
|
|
13
|
+
delay: 1000,
|
|
14
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fireworks.d.ts","sourceRoot":"","sources":["../../src/presets/fireworks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAMD,wBAAgB,SAAS,CAAC,OAAO,EAAE,sBAAsB,GAAG,aAAa,CAexE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function fireworks(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: 'https://api.fireworks.ai/inference/v1',
|
|
4
|
+
headers: {
|
|
5
|
+
'Authorization': `Bearer ${options.apiKey}`,
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
},
|
|
8
|
+
timeout: 5 * 60 * 1000,
|
|
9
|
+
retry: {
|
|
10
|
+
maxAttempts: 3,
|
|
11
|
+
backoff: 'exponential',
|
|
12
|
+
delay: 500,
|
|
13
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../src/presets/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;AAMD,wBAAgB,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,aAAa,CAelE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function gemini(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: 'https://generativelanguage.googleapis.com/v1beta',
|
|
4
|
+
headers: {
|
|
5
|
+
'Content-Type': 'application/json',
|
|
6
|
+
'x-goog-api-key': options.apiKey,
|
|
7
|
+
},
|
|
8
|
+
timeout: 10 * 60 * 1000,
|
|
9
|
+
retry: {
|
|
10
|
+
maxAttempts: 5,
|
|
11
|
+
backoff: 'exponential',
|
|
12
|
+
delay: 1000,
|
|
13
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/presets/github.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAIlC,KAAK,EAAE,MAAM,CAAC;IAId,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD,wBAAgB,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,aAAa,CAiBlE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function github(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: 'https://api.github.com',
|
|
4
|
+
headers: {
|
|
5
|
+
'Authorization': `Bearer ${options.token}`,
|
|
6
|
+
'Accept': 'application/vnd.github+json',
|
|
7
|
+
'X-GitHub-Api-Version': options.apiVersion || '2022-11-28',
|
|
8
|
+
},
|
|
9
|
+
timeout: 30 * 1000,
|
|
10
|
+
retry: {
|
|
11
|
+
maxAttempts: 3,
|
|
12
|
+
backoff: 'exponential',
|
|
13
|
+
delay: 1000,
|
|
14
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gitlab.d.ts","sourceRoot":"","sources":["../../src/presets/gitlab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAIlC,KAAK,EAAE,MAAM,CAAC;IAId,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAMD,wBAAgB,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,aAAa,CAelE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function gitlab(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: `${options.baseUrl || 'https://gitlab.com'}/api/v4`,
|
|
4
|
+
headers: {
|
|
5
|
+
'PRIVATE-TOKEN': options.token,
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
},
|
|
8
|
+
timeout: 30 * 1000,
|
|
9
|
+
retry: {
|
|
10
|
+
maxAttempts: 3,
|
|
11
|
+
backoff: 'exponential',
|
|
12
|
+
delay: 1000,
|
|
13
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groq.d.ts","sourceRoot":"","sources":["../../src/presets/groq.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB;AAMD,wBAAgB,IAAI,CAAC,OAAO,EAAE,iBAAiB,GAAG,aAAa,CAgB9D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function groq(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: 'https://api.groq.com/openai/v1',
|
|
4
|
+
headers: {
|
|
5
|
+
'Authorization': `Bearer ${options.apiKey}`,
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
},
|
|
8
|
+
timeout: 2 * 60 * 1000,
|
|
9
|
+
retry: {
|
|
10
|
+
maxAttempts: 3,
|
|
11
|
+
backoff: 'exponential',
|
|
12
|
+
delay: 500,
|
|
13
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"huggingface.d.ts","sourceRoot":"","sources":["../../src/presets/huggingface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB;AAMD,wBAAgB,WAAW,CAAC,OAAO,EAAE,wBAAwB,GAAG,aAAa,CAiB5E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function huggingface(options) {
|
|
2
|
+
return {
|
|
3
|
+
baseUrl: 'https://api-inference.huggingface.co',
|
|
4
|
+
headers: {
|
|
5
|
+
'Authorization': `Bearer ${options.apiKey}`,
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
},
|
|
8
|
+
timeout: 10 * 60 * 1000,
|
|
9
|
+
retry: {
|
|
10
|
+
maxAttempts: 5,
|
|
11
|
+
backoff: 'exponential',
|
|
12
|
+
delay: 1000,
|
|
13
|
+
statusCodes: [408, 429, 500, 502, 503, 504]
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './openai.js';
|
|
2
|
+
export * from './anthropic.js';
|
|
3
|
+
export * from './gemini.js';
|
|
4
|
+
export * from './cohere.js';
|
|
5
|
+
export * from './mistral.js';
|
|
6
|
+
export * from './groq.js';
|
|
7
|
+
export * from './together.js';
|
|
8
|
+
export * from './replicate.js';
|
|
9
|
+
export * from './huggingface.js';
|
|
10
|
+
export * from './perplexity.js';
|
|
11
|
+
export * from './deepseek.js';
|
|
12
|
+
export * from './fireworks.js';
|
|
13
|
+
export * from './xai.js';
|
|
14
|
+
export * from './azure-openai.js';
|
|
15
|
+
export * from './cloudflare.js';
|
|
16
|
+
export * from './github.js';
|
|
17
|
+
export * from './gitlab.js';
|
|
18
|
+
export * from './vercel.js';
|
|
19
|
+
export * from './supabase.js';
|
|
20
|
+
export * from './digitalocean.js';
|
|
21
|
+
export * from './stripe.js';
|
|
22
|
+
export * from './twilio.js';
|
|
23
|
+
export * from './linear.js';
|
|
24
|
+
export * from './notion.js';
|
|
25
|
+
export * from './slack.js';
|
|
26
|
+
export * from './discord.js';
|
|
27
|
+
export * from './registry.js';
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/presets/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAGlC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAGlC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAG7B,cAAc,eAAe,CAAC"}
|