@almadar/integrations 2.29.0 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseIntegration-C_5q54DM.d.ts → BaseIntegration-BYlbMFlf.d.ts} +7 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +124 -32
- package/dist/index.js.map +1 -1
- package/dist/integrations/github/index.d.ts +108 -4
- package/dist/integrations/github/index.js +82 -5
- package/dist/integrations/github/index.js.map +1 -1
- package/dist/mocks/index.d.ts +1 -1
- package/dist/mocks/index.js.map +1 -1
- package/dist/runtime/index.d.ts +2 -2
- package/dist/runtime/index.js +123 -31
- package/dist/runtime/index.js.map +1 -1
- package/dist/{store-eq1-GfDi.d.ts → store-BYRZDq9B.d.ts} +393 -2
- package/package.json +5 -5
|
@@ -112,6 +112,12 @@ interface ValidationError {
|
|
|
112
112
|
message: string;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
/** Thrown by an integration's dispatch default/miss arm — contract↔dispatch parity marker. */
|
|
116
|
+
declare class UnknownActionError extends Error {
|
|
117
|
+
integration: string;
|
|
118
|
+
action: string;
|
|
119
|
+
constructor(integration: string, action: string);
|
|
120
|
+
}
|
|
115
121
|
/**
|
|
116
122
|
* Validate action params against registry schema
|
|
117
123
|
*/
|
|
@@ -207,4 +213,4 @@ declare abstract class BaseIntegration {
|
|
|
207
213
|
protected executeWithRetry<T>(fn: () => Promise<T>): Promise<T>;
|
|
208
214
|
}
|
|
209
215
|
|
|
210
|
-
export { BaseIntegration as B, type IntegrationCallContext as I, type ValidationError as V, type IntegrationConfig as a, IntegrationError as b, type IntegrationErrorCode as c, IntegrationFactory as d, type IntegrationLogger as e, type IntegrationParamValue as f, type IntegrationParams as g, type IntegrationResult as h, type ValidationResult as i, getIntegrationFactory as j, resetIntegrationFactory as r, validateParams as v };
|
|
216
|
+
export { BaseIntegration as B, type IntegrationCallContext as I, UnknownActionError as U, type ValidationError as V, type IntegrationConfig as a, IntegrationError as b, type IntegrationErrorCode as c, IntegrationFactory as d, type IntegrationLogger as e, type IntegrationParamValue as f, type IntegrationParams as g, type IntegrationResult as h, type ValidationResult as i, getIntegrationFactory as j, resetIntegrationFactory as r, validateParams as v };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as IntegrationLogger, c as IntegrationErrorCode, a as IntegrationConfig, B as BaseIntegration, d as IntegrationFactory, g as IntegrationParams, h as IntegrationResult, I as IntegrationCallContext } from './BaseIntegration-
|
|
2
|
-
export { b as IntegrationError, f as IntegrationParamValue, V as ValidationError, i as ValidationResult, j as getIntegrationFactory, r as resetIntegrationFactory, v as validateParams } from './BaseIntegration-
|
|
3
|
-
import { e as CredentialStore, d as CredentialPersistence, H as HookDeclaration } from './store-
|
|
4
|
-
export { A as ArxivActions, C as CLIActions, a as CREDENTIAL_ENTITY_TYPE, b as CREDENTIAL_MASTER_KEY_ENV, c as CredentialEntry, D as DatabaseActions, f as DatabaseDriver, g as DatabaseQueryParamValue, h as DatabaseQueryParams, i as DatabaseQueryResult, j as DatabaseRow, k as DeepAgentActions, l as DockerActions, E as EmailActions, G as GitHubActions, I as IconifyActions, m as IntegrationActionName, n as IntegrationContracts, o as IntegrationName, L as LLMIntegrationActions, M as MLActions, O as OAuthActions, p as OtelActions, Q as QueueActions, R as RedisActions, S as StorageActions, q as StripeActions, T as TwilioActions, W as WebhookActions, r as WikimediaActions, Y as YouTubeActions, s as serviceHooks } from './store-
|
|
1
|
+
import { e as IntegrationLogger, c as IntegrationErrorCode, a as IntegrationConfig, B as BaseIntegration, d as IntegrationFactory, g as IntegrationParams, h as IntegrationResult, I as IntegrationCallContext } from './BaseIntegration-BYlbMFlf.js';
|
|
2
|
+
export { b as IntegrationError, f as IntegrationParamValue, U as UnknownActionError, V as ValidationError, i as ValidationResult, j as getIntegrationFactory, r as resetIntegrationFactory, v as validateParams } from './BaseIntegration-BYlbMFlf.js';
|
|
3
|
+
import { e as CredentialStore, d as CredentialPersistence, H as HookDeclaration } from './store-BYRZDq9B.js';
|
|
4
|
+
export { A as ArxivActions, C as CLIActions, a as CREDENTIAL_ENTITY_TYPE, b as CREDENTIAL_MASTER_KEY_ENV, c as CredentialEntry, D as DatabaseActions, f as DatabaseDriver, g as DatabaseQueryParamValue, h as DatabaseQueryParams, i as DatabaseQueryResult, j as DatabaseRow, k as DeepAgentActions, l as DockerActions, E as EmailActions, G as GitHubActions, I as IconifyActions, m as IntegrationActionName, n as IntegrationContracts, o as IntegrationName, L as LLMIntegrationActions, M as MLActions, O as OAuthActions, p as OtelActions, Q as QueueActions, R as RedisActions, S as StorageActions, q as StripeActions, T as TwilioActions, W as WebhookActions, r as WikimediaActions, Y as YouTubeActions, s as serviceHooks } from './store-BYRZDq9B.js';
|
|
5
5
|
import { LogMeta, EntityRow, EventPayload } from '@almadar/core';
|
|
6
6
|
export { GitHubIntegration } from './integrations/github/index.js';
|
|
7
7
|
|
package/dist/index.js
CHANGED
|
@@ -193,6 +193,14 @@ var ConsoleLogger = class {
|
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
var RESERVED_ENVELOPE_KEYS = /* @__PURE__ */ new Set(["emit", "onSuccess", "onError", "timeout"]);
|
|
196
|
+
var UnknownActionError = class extends Error {
|
|
197
|
+
constructor(integration, action) {
|
|
198
|
+
super(`Unknown ${integration} action: ${action}`);
|
|
199
|
+
this.name = "UnknownActionError";
|
|
200
|
+
this.integration = integration;
|
|
201
|
+
this.action = action;
|
|
202
|
+
}
|
|
203
|
+
};
|
|
196
204
|
function validateParams(integration, action, params) {
|
|
197
205
|
const typedRegistry = integratorsRegistry;
|
|
198
206
|
const registry = typedRegistry.integrators[integration];
|
|
@@ -995,7 +1003,7 @@ var StripeIntegration = class extends BaseIntegration {
|
|
|
995
1003
|
data = await this.executeWithRetry(() => this.refund(params));
|
|
996
1004
|
break;
|
|
997
1005
|
default:
|
|
998
|
-
throw new
|
|
1006
|
+
throw new UnknownActionError(this.config.name, action);
|
|
999
1007
|
}
|
|
1000
1008
|
return {
|
|
1001
1009
|
success: true,
|
|
@@ -1222,7 +1230,7 @@ var YouTubeIntegration = class extends BaseIntegration {
|
|
|
1222
1230
|
data = await this.executeWithRetry(() => this.getChannel(params));
|
|
1223
1231
|
break;
|
|
1224
1232
|
default:
|
|
1225
|
-
throw new
|
|
1233
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1226
1234
|
}
|
|
1227
1235
|
return {
|
|
1228
1236
|
success: true,
|
|
@@ -1324,7 +1332,7 @@ var TwilioIntegration = class extends BaseIntegration {
|
|
|
1324
1332
|
data = await this.executeWithRetry(() => this.sendWhatsApp(params));
|
|
1325
1333
|
break;
|
|
1326
1334
|
default:
|
|
1327
|
-
throw new
|
|
1335
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1328
1336
|
}
|
|
1329
1337
|
return {
|
|
1330
1338
|
success: true,
|
|
@@ -1406,7 +1414,7 @@ var EmailIntegration = class extends BaseIntegration {
|
|
|
1406
1414
|
data = await this.executeWithRetry(() => this.send(params));
|
|
1407
1415
|
break;
|
|
1408
1416
|
default:
|
|
1409
|
-
throw new
|
|
1417
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1410
1418
|
}
|
|
1411
1419
|
return {
|
|
1412
1420
|
success: true,
|
|
@@ -1506,7 +1514,7 @@ var WebhookIntegration = class extends BaseIntegration {
|
|
|
1506
1514
|
data = await this.executeWithRetry(() => this.send(params));
|
|
1507
1515
|
break;
|
|
1508
1516
|
default:
|
|
1509
|
-
throw new
|
|
1517
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1510
1518
|
}
|
|
1511
1519
|
return {
|
|
1512
1520
|
success: true,
|
|
@@ -1597,7 +1605,7 @@ var PushIntegration = class extends BaseIntegration {
|
|
|
1597
1605
|
data = await this.executeWithRetry(() => this.send(params));
|
|
1598
1606
|
break;
|
|
1599
1607
|
default:
|
|
1600
|
-
throw new
|
|
1608
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1601
1609
|
}
|
|
1602
1610
|
return {
|
|
1603
1611
|
success: true,
|
|
@@ -1747,7 +1755,7 @@ var CalendarIntegration = class extends BaseIntegration {
|
|
|
1747
1755
|
data = await this.executeWithRetry(() => this.stopWatch(params));
|
|
1748
1756
|
break;
|
|
1749
1757
|
default:
|
|
1750
|
-
throw new
|
|
1758
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1751
1759
|
}
|
|
1752
1760
|
return {
|
|
1753
1761
|
success: true,
|
|
@@ -2013,7 +2021,7 @@ var DriveIntegration = class extends BaseIntegration {
|
|
|
2013
2021
|
data = await this.executeWithRetry(() => this.shareFile(params));
|
|
2014
2022
|
break;
|
|
2015
2023
|
default:
|
|
2016
|
-
throw new
|
|
2024
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2017
2025
|
}
|
|
2018
2026
|
return {
|
|
2019
2027
|
success: true,
|
|
@@ -2151,7 +2159,7 @@ var MetaAdsIntegration = class extends BaseIntegration {
|
|
|
2151
2159
|
data = await this.executeWithRetry(() => this.listCampaigns(params));
|
|
2152
2160
|
break;
|
|
2153
2161
|
default:
|
|
2154
|
-
throw new
|
|
2162
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2155
2163
|
}
|
|
2156
2164
|
return {
|
|
2157
2165
|
success: true,
|
|
@@ -2250,7 +2258,7 @@ var AccountingIntegration = class extends BaseIntegration {
|
|
|
2250
2258
|
data = this.exportRows(params.entries, JOURNAL_COLUMNS, "journal");
|
|
2251
2259
|
break;
|
|
2252
2260
|
default:
|
|
2253
|
-
throw new
|
|
2261
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2254
2262
|
}
|
|
2255
2263
|
return {
|
|
2256
2264
|
success: true,
|
|
@@ -2332,7 +2340,7 @@ var BankingIntegration = class extends BaseIntegration {
|
|
|
2332
2340
|
data = await this.executeWithRetry(() => this.listTransactions(params));
|
|
2333
2341
|
break;
|
|
2334
2342
|
default:
|
|
2335
|
-
throw new
|
|
2343
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2336
2344
|
}
|
|
2337
2345
|
return {
|
|
2338
2346
|
success: true,
|
|
@@ -2456,7 +2464,7 @@ var EsignIntegration = class extends BaseIntegration {
|
|
|
2456
2464
|
data = await this.executeWithRetry(() => this.downloadDocument(params));
|
|
2457
2465
|
break;
|
|
2458
2466
|
default:
|
|
2459
|
-
throw new
|
|
2467
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2460
2468
|
}
|
|
2461
2469
|
return {
|
|
2462
2470
|
success: true,
|
|
@@ -2610,7 +2618,7 @@ var LLMIntegration = class extends BaseIntegration {
|
|
|
2610
2618
|
data = await this.executeWithRetry(() => this.embed(params));
|
|
2611
2619
|
break;
|
|
2612
2620
|
default:
|
|
2613
|
-
throw new
|
|
2621
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2614
2622
|
}
|
|
2615
2623
|
return {
|
|
2616
2624
|
success: true,
|
|
@@ -2776,7 +2784,7 @@ var MLIntegration = class extends BaseIntegration {
|
|
|
2776
2784
|
data = await this.executeWithRetry(() => this.infer(params));
|
|
2777
2785
|
break;
|
|
2778
2786
|
default:
|
|
2779
|
-
throw new
|
|
2787
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2780
2788
|
}
|
|
2781
2789
|
return {
|
|
2782
2790
|
success: true,
|
|
@@ -2913,7 +2921,7 @@ var DeepAgentIntegration = class extends BaseIntegration {
|
|
|
2913
2921
|
);
|
|
2914
2922
|
break;
|
|
2915
2923
|
default:
|
|
2916
|
-
throw new
|
|
2924
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2917
2925
|
}
|
|
2918
2926
|
return {
|
|
2919
2927
|
success: true,
|
|
@@ -3215,10 +3223,10 @@ async function getPRComments(params, config) {
|
|
|
3215
3223
|
return data;
|
|
3216
3224
|
}
|
|
3217
3225
|
async function listIssues(params, config) {
|
|
3218
|
-
const { state = "open", labels = [],
|
|
3226
|
+
const { state = "open", labels = [], per_page = 30 } = params;
|
|
3219
3227
|
const queryParams = new URLSearchParams({
|
|
3220
3228
|
state,
|
|
3221
|
-
per_page: Math.min(
|
|
3229
|
+
per_page: Math.min(per_page, 100).toString()
|
|
3222
3230
|
});
|
|
3223
3231
|
if (labels.length > 0) {
|
|
3224
3232
|
queryParams.append("labels", labels.join(","));
|
|
@@ -3235,6 +3243,52 @@ async function getIssue(params, config) {
|
|
|
3235
3243
|
const { data: comments } = await githubFetch(commentsEndpoint, config);
|
|
3236
3244
|
return { issue, comments };
|
|
3237
3245
|
}
|
|
3246
|
+
async function listCommits(config, options) {
|
|
3247
|
+
const params = new URLSearchParams();
|
|
3248
|
+
if (options?.path) params.set("path", options.path);
|
|
3249
|
+
if (options?.ref) params.set("sha", options.ref);
|
|
3250
|
+
if (options?.perPage) params.set("per_page", options.perPage.toString());
|
|
3251
|
+
if (options?.page) params.set("page", options.page.toString());
|
|
3252
|
+
const queryStr = params.toString();
|
|
3253
|
+
const endpoint = `/repos/${config.owner}/${config.repo}/commits${queryStr ? `?${queryStr}` : ""}`;
|
|
3254
|
+
const { data } = await githubFetch(endpoint, config);
|
|
3255
|
+
return data.map((item) => ({
|
|
3256
|
+
sha: item.sha,
|
|
3257
|
+
message: item.commit.message,
|
|
3258
|
+
author: item.commit.author,
|
|
3259
|
+
stats: item.stats
|
|
3260
|
+
}));
|
|
3261
|
+
}
|
|
3262
|
+
async function getFile(params, token) {
|
|
3263
|
+
const { owner, repo, path, ref } = params;
|
|
3264
|
+
const config = { token};
|
|
3265
|
+
const query = ref ? `?ref=${encodeURIComponent(ref)}` : "";
|
|
3266
|
+
const endpoint = `/repos/${owner}/${repo}/contents/${path}${query}`;
|
|
3267
|
+
const { data } = await githubFetch(endpoint, config);
|
|
3268
|
+
const content = data.encoding === "base64" ? Buffer.from(data.content, "base64").toString("utf-8") : data.content;
|
|
3269
|
+
return { path: data.path, content, sha: data.sha, size: data.size };
|
|
3270
|
+
}
|
|
3271
|
+
async function listCommitsSummary(params, token) {
|
|
3272
|
+
const { owner, repo, path, ref, per_page } = params;
|
|
3273
|
+
const config = { token, owner, repo };
|
|
3274
|
+
const commits = await listCommits(config, { path, ref, perPage: per_page });
|
|
3275
|
+
return commits.map((commit2) => ({
|
|
3276
|
+
sha: commit2.sha,
|
|
3277
|
+
message: commit2.message,
|
|
3278
|
+
author: commit2.author.name,
|
|
3279
|
+
date: commit2.author.date
|
|
3280
|
+
}));
|
|
3281
|
+
}
|
|
3282
|
+
async function createIssue(params, token) {
|
|
3283
|
+
const { owner, repo, title, body, labels } = params;
|
|
3284
|
+
const config = { token};
|
|
3285
|
+
const endpoint = `/repos/${owner}/${repo}/issues`;
|
|
3286
|
+
const { data } = await githubFetch(endpoint, config, {
|
|
3287
|
+
method: "POST",
|
|
3288
|
+
body: JSON.stringify({ title, body, labels })
|
|
3289
|
+
});
|
|
3290
|
+
return { number: data.number, title: data.title, url: data.url };
|
|
3291
|
+
}
|
|
3238
3292
|
function parseRepoUrl(repoUrl) {
|
|
3239
3293
|
try {
|
|
3240
3294
|
const url = new URL(repoUrl);
|
|
@@ -3332,8 +3386,23 @@ var GitHubIntegration = class extends BaseIntegration {
|
|
|
3332
3386
|
() => this.getIssue(params)
|
|
3333
3387
|
);
|
|
3334
3388
|
break;
|
|
3389
|
+
case "getFile":
|
|
3390
|
+
data = await this.executeWithRetry(
|
|
3391
|
+
() => this.getFile(params)
|
|
3392
|
+
);
|
|
3393
|
+
break;
|
|
3394
|
+
case "listCommits":
|
|
3395
|
+
data = await this.executeWithRetry(
|
|
3396
|
+
() => this.listCommits(params)
|
|
3397
|
+
);
|
|
3398
|
+
break;
|
|
3399
|
+
case "createIssue":
|
|
3400
|
+
data = await this.executeWithRetry(
|
|
3401
|
+
() => this.createIssue(params)
|
|
3402
|
+
);
|
|
3403
|
+
break;
|
|
3335
3404
|
default:
|
|
3336
|
-
throw new
|
|
3405
|
+
throw new UnknownActionError(this.config.name, action);
|
|
3337
3406
|
}
|
|
3338
3407
|
return {
|
|
3339
3408
|
success: true,
|
|
@@ -3412,7 +3481,7 @@ var GitHubIntegration = class extends BaseIntegration {
|
|
|
3412
3481
|
* List issues
|
|
3413
3482
|
*/
|
|
3414
3483
|
async listIssues(params) {
|
|
3415
|
-
this.logger.debug("Listing issues", { state: params.state, labels: params.labels?.join(", "),
|
|
3484
|
+
this.logger.debug("Listing issues", { state: params.state, labels: params.labels?.join(", "), per_page: params.per_page });
|
|
3416
3485
|
const apiConfig = this.getAPIConfig();
|
|
3417
3486
|
const issues = await listIssues(params, apiConfig);
|
|
3418
3487
|
return { issues };
|
|
@@ -3426,6 +3495,29 @@ var GitHubIntegration = class extends BaseIntegration {
|
|
|
3426
3495
|
const result = await getIssue(params, apiConfig);
|
|
3427
3496
|
return result;
|
|
3428
3497
|
}
|
|
3498
|
+
/**
|
|
3499
|
+
* Get a file's content plus metadata (owner/repo are per-call, not the
|
|
3500
|
+
* configured default repo)
|
|
3501
|
+
*/
|
|
3502
|
+
async getFile(params) {
|
|
3503
|
+
this.logger.debug("Getting file", { owner: params.owner, repo: params.repo, path: params.path });
|
|
3504
|
+
return getFile(params, this.token);
|
|
3505
|
+
}
|
|
3506
|
+
/**
|
|
3507
|
+
* List commits (owner/repo are per-call, not the configured default repo)
|
|
3508
|
+
*/
|
|
3509
|
+
async listCommits(params) {
|
|
3510
|
+
this.logger.debug("Listing commits", { owner: params.owner, repo: params.repo, path: params.path });
|
|
3511
|
+
const commits = await listCommitsSummary(params, this.token);
|
|
3512
|
+
return { commits };
|
|
3513
|
+
}
|
|
3514
|
+
/**
|
|
3515
|
+
* Create an issue (owner/repo are per-call, not the configured default repo)
|
|
3516
|
+
*/
|
|
3517
|
+
async createIssue(params) {
|
|
3518
|
+
this.logger.debug("Creating issue", { owner: params.owner, repo: params.repo, title: params.title });
|
|
3519
|
+
return createIssue(params, this.token);
|
|
3520
|
+
}
|
|
3429
3521
|
/**
|
|
3430
3522
|
* Get API config for GitHub API calls
|
|
3431
3523
|
*/
|
|
@@ -3457,7 +3549,7 @@ var CLIIntegration = class extends BaseIntegration {
|
|
|
3457
3549
|
data = await this.validate(params);
|
|
3458
3550
|
break;
|
|
3459
3551
|
default:
|
|
3460
|
-
throw new
|
|
3552
|
+
throw new UnknownActionError(this.config.name, action);
|
|
3461
3553
|
}
|
|
3462
3554
|
return {
|
|
3463
3555
|
success: true,
|
|
@@ -3585,7 +3677,7 @@ var RedisIntegration = class extends BaseIntegration {
|
|
|
3585
3677
|
);
|
|
3586
3678
|
break;
|
|
3587
3679
|
default:
|
|
3588
|
-
throw new
|
|
3680
|
+
throw new UnknownActionError(this.config.name, action);
|
|
3589
3681
|
}
|
|
3590
3682
|
return {
|
|
3591
3683
|
success: true,
|
|
@@ -3791,7 +3883,7 @@ var QueueIntegration = class extends BaseIntegration {
|
|
|
3791
3883
|
data = await this.executeWithRetry(() => this.size(params));
|
|
3792
3884
|
break;
|
|
3793
3885
|
default:
|
|
3794
|
-
throw new
|
|
3886
|
+
throw new UnknownActionError(this.config.name, action);
|
|
3795
3887
|
}
|
|
3796
3888
|
return {
|
|
3797
3889
|
success: true,
|
|
@@ -3998,7 +4090,7 @@ var OtelIntegration = class extends BaseIntegration {
|
|
|
3998
4090
|
data = await this.executeWithRetry(() => this.getAllMetrics());
|
|
3999
4091
|
break;
|
|
4000
4092
|
default:
|
|
4001
|
-
throw new
|
|
4093
|
+
throw new UnknownActionError(this.config.name, action);
|
|
4002
4094
|
}
|
|
4003
4095
|
return {
|
|
4004
4096
|
success: true,
|
|
@@ -4198,7 +4290,7 @@ var OAuthIntegration = class extends BaseIntegration {
|
|
|
4198
4290
|
data = await this.executeWithRetry(() => this.real ? this.oidcUserinfo(params) : this.userinfo(params));
|
|
4199
4291
|
break;
|
|
4200
4292
|
default:
|
|
4201
|
-
throw new
|
|
4293
|
+
throw new UnknownActionError(this.config.name, action);
|
|
4202
4294
|
}
|
|
4203
4295
|
return {
|
|
4204
4296
|
success: true,
|
|
@@ -4516,7 +4608,7 @@ var CredentialsIntegration = class extends BaseIntegration {
|
|
|
4516
4608
|
break;
|
|
4517
4609
|
}
|
|
4518
4610
|
default:
|
|
4519
|
-
throw new
|
|
4611
|
+
throw new UnknownActionError(this.config.name, action);
|
|
4520
4612
|
}
|
|
4521
4613
|
return {
|
|
4522
4614
|
success: true,
|
|
@@ -4726,7 +4818,7 @@ var StorageIntegration = class extends BaseIntegration {
|
|
|
4726
4818
|
data = await this.executeWithRetry(() => this.getSignedUrl(params));
|
|
4727
4819
|
break;
|
|
4728
4820
|
default:
|
|
4729
|
-
throw new
|
|
4821
|
+
throw new UnknownActionError(this.config.name, action);
|
|
4730
4822
|
}
|
|
4731
4823
|
return {
|
|
4732
4824
|
success: true,
|
|
@@ -5019,7 +5111,7 @@ var DockerIntegration = class extends BaseIntegration {
|
|
|
5019
5111
|
data = await this.executeWithRetry(() => this.list(params));
|
|
5020
5112
|
break;
|
|
5021
5113
|
default:
|
|
5022
|
-
throw new
|
|
5114
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5023
5115
|
}
|
|
5024
5116
|
return {
|
|
5025
5117
|
success: true,
|
|
@@ -5437,7 +5529,7 @@ var DatabaseIntegration = class extends BaseIntegration {
|
|
|
5437
5529
|
data = await this.executeWithRetry(() => this.runQuery(params));
|
|
5438
5530
|
break;
|
|
5439
5531
|
default:
|
|
5440
|
-
throw new
|
|
5532
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5441
5533
|
}
|
|
5442
5534
|
return {
|
|
5443
5535
|
success: true,
|
|
@@ -5516,7 +5608,7 @@ var WikimediaIntegration = class extends BaseIntegration {
|
|
|
5516
5608
|
data = await this.executeWithRetry(() => this.getPage(params));
|
|
5517
5609
|
break;
|
|
5518
5610
|
default:
|
|
5519
|
-
throw new
|
|
5611
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5520
5612
|
}
|
|
5521
5613
|
return { success: true, data, metadata: this.createMetadata(action, Date.now() - startTime) };
|
|
5522
5614
|
} catch (error) {
|
|
@@ -5591,7 +5683,7 @@ var IconifyIntegration = class extends BaseIntegration {
|
|
|
5591
5683
|
data = await this.executeWithRetry(() => this.getIconBody(params));
|
|
5592
5684
|
break;
|
|
5593
5685
|
default:
|
|
5594
|
-
throw new
|
|
5686
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5595
5687
|
}
|
|
5596
5688
|
return { success: true, data, metadata: this.createMetadata(action, Date.now() - startTime) };
|
|
5597
5689
|
} catch (error) {
|
|
@@ -5695,7 +5787,7 @@ var ArxivIntegration = class extends BaseIntegration {
|
|
|
5695
5787
|
data = await this.executeWithRetry(() => this.search(params));
|
|
5696
5788
|
break;
|
|
5697
5789
|
default:
|
|
5698
|
-
throw new
|
|
5790
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5699
5791
|
}
|
|
5700
5792
|
return { success: true, data, metadata: this.createMetadata(action, Date.now() - startTime) };
|
|
5701
5793
|
} catch (error) {
|
|
@@ -5721,6 +5813,6 @@ var ArxivIntegration = class extends BaseIntegration {
|
|
|
5721
5813
|
};
|
|
5722
5814
|
registerIntegration("arxiv", ArxivIntegration);
|
|
5723
5815
|
|
|
5724
|
-
export { AccountingIntegration, ArxivIntegration, BankingIntegration, BaseIntegration, CLIIntegration, CREDENTIALS_FILE_ENV, CREDENTIAL_ENTITY_TYPE, CREDENTIAL_MASTER_KEY_ENV, CalendarIntegration, ConsoleLogger, CredentialStore, CredentialsIntegration, DatabaseIntegration, DeepAgentIntegration, DockerIntegration, DriveIntegration, EmailIntegration, EsignIntegration, FileCredentialPersistence, GitHubIntegration, IconifyIntegration, InMemoryPendingGrantStore, IntegrationError, IntegrationFactory, LLMIntegration, MLIntegration, MetaAdsIntegration, OAuthIntegration, OtelIntegration, PushIntegration, QueueIntegration, RedisIntegration, StorageIntegration, StripeIntegration, TwilioIntegration, WebhookIntegration, WikimediaIntegration, YouTubeIntegration, allHookDeclarations, assertReadOnlySelect, getActiveFactory, getInstalledCredentialStore, getIntegration, getIntegrationFactory, getRegisteredIntegrations, googleCalendarHookProvider, installActiveFactory, installCredentialStore, installPendingGrantStore, isKnownIntegration, parseCalendarPushNotification, registerIntegration, registeredHookProviders, resetIntegrationFactory, resolveCredentialRef, serviceHooks, uninstallCredentialStore, validateParams, verifyAndParseStripeEvent, withRetry };
|
|
5816
|
+
export { AccountingIntegration, ArxivIntegration, BankingIntegration, BaseIntegration, CLIIntegration, CREDENTIALS_FILE_ENV, CREDENTIAL_ENTITY_TYPE, CREDENTIAL_MASTER_KEY_ENV, CalendarIntegration, ConsoleLogger, CredentialStore, CredentialsIntegration, DatabaseIntegration, DeepAgentIntegration, DockerIntegration, DriveIntegration, EmailIntegration, EsignIntegration, FileCredentialPersistence, GitHubIntegration, IconifyIntegration, InMemoryPendingGrantStore, IntegrationError, IntegrationFactory, LLMIntegration, MLIntegration, MetaAdsIntegration, OAuthIntegration, OtelIntegration, PushIntegration, QueueIntegration, RedisIntegration, StorageIntegration, StripeIntegration, TwilioIntegration, UnknownActionError, WebhookIntegration, WikimediaIntegration, YouTubeIntegration, allHookDeclarations, assertReadOnlySelect, getActiveFactory, getInstalledCredentialStore, getIntegration, getIntegrationFactory, getRegisteredIntegrations, googleCalendarHookProvider, installActiveFactory, installCredentialStore, installPendingGrantStore, isKnownIntegration, parseCalendarPushNotification, registerIntegration, registeredHookProviders, resetIntegrationFactory, resolveCredentialRef, serviceHooks, uninstallCredentialStore, validateParams, verifyAndParseStripeEvent, withRetry };
|
|
5725
5817
|
//# sourceMappingURL=index.js.map
|
|
5726
5818
|
//# sourceMappingURL=index.js.map
|