@almadar/integrations 2.30.0 → 2.32.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 +140 -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 +139 -44
- package/dist/runtime/index.js.map +1 -1
- package/dist/{store-eq1-GfDi.d.ts → store-C03XILaI.d.ts} +410 -3
- package/package.json +3 -3
|
@@ -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-C03XILaI.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 allCredentialEnvVars, t as declaredCredentialEnvVars, u as serviceHooks } from './store-C03XILaI.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
|
@@ -160,6 +160,22 @@ var serviceCredentials = {
|
|
|
160
160
|
{ envVar: "ARXIV_TIMEOUT_MS", required: false, description: "Per-request timeout (ms)" }
|
|
161
161
|
]
|
|
162
162
|
};
|
|
163
|
+
function allCredentialEnvVars() {
|
|
164
|
+
const vars = /* @__PURE__ */ new Set();
|
|
165
|
+
for (const decls of Object.values(serviceCredentials)) {
|
|
166
|
+
for (const { envVar } of decls) vars.add(envVar);
|
|
167
|
+
}
|
|
168
|
+
return vars;
|
|
169
|
+
}
|
|
170
|
+
var STORE_BOOTSTRAP_ENV_VARS = /* @__PURE__ */ new Set([
|
|
171
|
+
"ALMADAR_CREDENTIAL_MASTER_KEY",
|
|
172
|
+
"ALMADAR_CREDENTIAL_MASTER_KEY_PREVIOUS"
|
|
173
|
+
]);
|
|
174
|
+
function declaredCredentialEnvVars() {
|
|
175
|
+
const vars = allCredentialEnvVars();
|
|
176
|
+
for (const bootstrapVar of STORE_BOOTSTRAP_ENV_VARS) vars.delete(bootstrapVar);
|
|
177
|
+
return vars;
|
|
178
|
+
}
|
|
163
179
|
var serviceHooks = {
|
|
164
180
|
calendar: [
|
|
165
181
|
{
|
|
@@ -193,6 +209,14 @@ var ConsoleLogger = class {
|
|
|
193
209
|
}
|
|
194
210
|
};
|
|
195
211
|
var RESERVED_ENVELOPE_KEYS = /* @__PURE__ */ new Set(["emit", "onSuccess", "onError", "timeout"]);
|
|
212
|
+
var UnknownActionError = class extends Error {
|
|
213
|
+
constructor(integration, action) {
|
|
214
|
+
super(`Unknown ${integration} action: ${action}`);
|
|
215
|
+
this.name = "UnknownActionError";
|
|
216
|
+
this.integration = integration;
|
|
217
|
+
this.action = action;
|
|
218
|
+
}
|
|
219
|
+
};
|
|
196
220
|
function validateParams(integration, action, params) {
|
|
197
221
|
const typedRegistry = integratorsRegistry;
|
|
198
222
|
const registry = typedRegistry.integrators[integration];
|
|
@@ -995,7 +1019,7 @@ var StripeIntegration = class extends BaseIntegration {
|
|
|
995
1019
|
data = await this.executeWithRetry(() => this.refund(params));
|
|
996
1020
|
break;
|
|
997
1021
|
default:
|
|
998
|
-
throw new
|
|
1022
|
+
throw new UnknownActionError(this.config.name, action);
|
|
999
1023
|
}
|
|
1000
1024
|
return {
|
|
1001
1025
|
success: true,
|
|
@@ -1222,7 +1246,7 @@ var YouTubeIntegration = class extends BaseIntegration {
|
|
|
1222
1246
|
data = await this.executeWithRetry(() => this.getChannel(params));
|
|
1223
1247
|
break;
|
|
1224
1248
|
default:
|
|
1225
|
-
throw new
|
|
1249
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1226
1250
|
}
|
|
1227
1251
|
return {
|
|
1228
1252
|
success: true,
|
|
@@ -1324,7 +1348,7 @@ var TwilioIntegration = class extends BaseIntegration {
|
|
|
1324
1348
|
data = await this.executeWithRetry(() => this.sendWhatsApp(params));
|
|
1325
1349
|
break;
|
|
1326
1350
|
default:
|
|
1327
|
-
throw new
|
|
1351
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1328
1352
|
}
|
|
1329
1353
|
return {
|
|
1330
1354
|
success: true,
|
|
@@ -1406,7 +1430,7 @@ var EmailIntegration = class extends BaseIntegration {
|
|
|
1406
1430
|
data = await this.executeWithRetry(() => this.send(params));
|
|
1407
1431
|
break;
|
|
1408
1432
|
default:
|
|
1409
|
-
throw new
|
|
1433
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1410
1434
|
}
|
|
1411
1435
|
return {
|
|
1412
1436
|
success: true,
|
|
@@ -1506,7 +1530,7 @@ var WebhookIntegration = class extends BaseIntegration {
|
|
|
1506
1530
|
data = await this.executeWithRetry(() => this.send(params));
|
|
1507
1531
|
break;
|
|
1508
1532
|
default:
|
|
1509
|
-
throw new
|
|
1533
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1510
1534
|
}
|
|
1511
1535
|
return {
|
|
1512
1536
|
success: true,
|
|
@@ -1597,7 +1621,7 @@ var PushIntegration = class extends BaseIntegration {
|
|
|
1597
1621
|
data = await this.executeWithRetry(() => this.send(params));
|
|
1598
1622
|
break;
|
|
1599
1623
|
default:
|
|
1600
|
-
throw new
|
|
1624
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1601
1625
|
}
|
|
1602
1626
|
return {
|
|
1603
1627
|
success: true,
|
|
@@ -1747,7 +1771,7 @@ var CalendarIntegration = class extends BaseIntegration {
|
|
|
1747
1771
|
data = await this.executeWithRetry(() => this.stopWatch(params));
|
|
1748
1772
|
break;
|
|
1749
1773
|
default:
|
|
1750
|
-
throw new
|
|
1774
|
+
throw new UnknownActionError(this.config.name, action);
|
|
1751
1775
|
}
|
|
1752
1776
|
return {
|
|
1753
1777
|
success: true,
|
|
@@ -2013,7 +2037,7 @@ var DriveIntegration = class extends BaseIntegration {
|
|
|
2013
2037
|
data = await this.executeWithRetry(() => this.shareFile(params));
|
|
2014
2038
|
break;
|
|
2015
2039
|
default:
|
|
2016
|
-
throw new
|
|
2040
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2017
2041
|
}
|
|
2018
2042
|
return {
|
|
2019
2043
|
success: true,
|
|
@@ -2151,7 +2175,7 @@ var MetaAdsIntegration = class extends BaseIntegration {
|
|
|
2151
2175
|
data = await this.executeWithRetry(() => this.listCampaigns(params));
|
|
2152
2176
|
break;
|
|
2153
2177
|
default:
|
|
2154
|
-
throw new
|
|
2178
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2155
2179
|
}
|
|
2156
2180
|
return {
|
|
2157
2181
|
success: true,
|
|
@@ -2250,7 +2274,7 @@ var AccountingIntegration = class extends BaseIntegration {
|
|
|
2250
2274
|
data = this.exportRows(params.entries, JOURNAL_COLUMNS, "journal");
|
|
2251
2275
|
break;
|
|
2252
2276
|
default:
|
|
2253
|
-
throw new
|
|
2277
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2254
2278
|
}
|
|
2255
2279
|
return {
|
|
2256
2280
|
success: true,
|
|
@@ -2332,7 +2356,7 @@ var BankingIntegration = class extends BaseIntegration {
|
|
|
2332
2356
|
data = await this.executeWithRetry(() => this.listTransactions(params));
|
|
2333
2357
|
break;
|
|
2334
2358
|
default:
|
|
2335
|
-
throw new
|
|
2359
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2336
2360
|
}
|
|
2337
2361
|
return {
|
|
2338
2362
|
success: true,
|
|
@@ -2456,7 +2480,7 @@ var EsignIntegration = class extends BaseIntegration {
|
|
|
2456
2480
|
data = await this.executeWithRetry(() => this.downloadDocument(params));
|
|
2457
2481
|
break;
|
|
2458
2482
|
default:
|
|
2459
|
-
throw new
|
|
2483
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2460
2484
|
}
|
|
2461
2485
|
return {
|
|
2462
2486
|
success: true,
|
|
@@ -2610,7 +2634,7 @@ var LLMIntegration = class extends BaseIntegration {
|
|
|
2610
2634
|
data = await this.executeWithRetry(() => this.embed(params));
|
|
2611
2635
|
break;
|
|
2612
2636
|
default:
|
|
2613
|
-
throw new
|
|
2637
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2614
2638
|
}
|
|
2615
2639
|
return {
|
|
2616
2640
|
success: true,
|
|
@@ -2776,7 +2800,7 @@ var MLIntegration = class extends BaseIntegration {
|
|
|
2776
2800
|
data = await this.executeWithRetry(() => this.infer(params));
|
|
2777
2801
|
break;
|
|
2778
2802
|
default:
|
|
2779
|
-
throw new
|
|
2803
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2780
2804
|
}
|
|
2781
2805
|
return {
|
|
2782
2806
|
success: true,
|
|
@@ -2913,7 +2937,7 @@ var DeepAgentIntegration = class extends BaseIntegration {
|
|
|
2913
2937
|
);
|
|
2914
2938
|
break;
|
|
2915
2939
|
default:
|
|
2916
|
-
throw new
|
|
2940
|
+
throw new UnknownActionError(this.config.name, action);
|
|
2917
2941
|
}
|
|
2918
2942
|
return {
|
|
2919
2943
|
success: true,
|
|
@@ -3215,10 +3239,10 @@ async function getPRComments(params, config) {
|
|
|
3215
3239
|
return data;
|
|
3216
3240
|
}
|
|
3217
3241
|
async function listIssues(params, config) {
|
|
3218
|
-
const { state = "open", labels = [],
|
|
3242
|
+
const { state = "open", labels = [], per_page = 30 } = params;
|
|
3219
3243
|
const queryParams = new URLSearchParams({
|
|
3220
3244
|
state,
|
|
3221
|
-
per_page: Math.min(
|
|
3245
|
+
per_page: Math.min(per_page, 100).toString()
|
|
3222
3246
|
});
|
|
3223
3247
|
if (labels.length > 0) {
|
|
3224
3248
|
queryParams.append("labels", labels.join(","));
|
|
@@ -3235,6 +3259,52 @@ async function getIssue(params, config) {
|
|
|
3235
3259
|
const { data: comments } = await githubFetch(commentsEndpoint, config);
|
|
3236
3260
|
return { issue, comments };
|
|
3237
3261
|
}
|
|
3262
|
+
async function listCommits(config, options) {
|
|
3263
|
+
const params = new URLSearchParams();
|
|
3264
|
+
if (options?.path) params.set("path", options.path);
|
|
3265
|
+
if (options?.ref) params.set("sha", options.ref);
|
|
3266
|
+
if (options?.perPage) params.set("per_page", options.perPage.toString());
|
|
3267
|
+
if (options?.page) params.set("page", options.page.toString());
|
|
3268
|
+
const queryStr = params.toString();
|
|
3269
|
+
const endpoint = `/repos/${config.owner}/${config.repo}/commits${queryStr ? `?${queryStr}` : ""}`;
|
|
3270
|
+
const { data } = await githubFetch(endpoint, config);
|
|
3271
|
+
return data.map((item) => ({
|
|
3272
|
+
sha: item.sha,
|
|
3273
|
+
message: item.commit.message,
|
|
3274
|
+
author: item.commit.author,
|
|
3275
|
+
stats: item.stats
|
|
3276
|
+
}));
|
|
3277
|
+
}
|
|
3278
|
+
async function getFile(params, token) {
|
|
3279
|
+
const { owner, repo, path, ref } = params;
|
|
3280
|
+
const config = { token};
|
|
3281
|
+
const query = ref ? `?ref=${encodeURIComponent(ref)}` : "";
|
|
3282
|
+
const endpoint = `/repos/${owner}/${repo}/contents/${path}${query}`;
|
|
3283
|
+
const { data } = await githubFetch(endpoint, config);
|
|
3284
|
+
const content = data.encoding === "base64" ? Buffer.from(data.content, "base64").toString("utf-8") : data.content;
|
|
3285
|
+
return { path: data.path, content, sha: data.sha, size: data.size };
|
|
3286
|
+
}
|
|
3287
|
+
async function listCommitsSummary(params, token) {
|
|
3288
|
+
const { owner, repo, path, ref, per_page } = params;
|
|
3289
|
+
const config = { token, owner, repo };
|
|
3290
|
+
const commits = await listCommits(config, { path, ref, perPage: per_page });
|
|
3291
|
+
return commits.map((commit2) => ({
|
|
3292
|
+
sha: commit2.sha,
|
|
3293
|
+
message: commit2.message,
|
|
3294
|
+
author: commit2.author.name,
|
|
3295
|
+
date: commit2.author.date
|
|
3296
|
+
}));
|
|
3297
|
+
}
|
|
3298
|
+
async function createIssue(params, token) {
|
|
3299
|
+
const { owner, repo, title, body, labels } = params;
|
|
3300
|
+
const config = { token};
|
|
3301
|
+
const endpoint = `/repos/${owner}/${repo}/issues`;
|
|
3302
|
+
const { data } = await githubFetch(endpoint, config, {
|
|
3303
|
+
method: "POST",
|
|
3304
|
+
body: JSON.stringify({ title, body, labels })
|
|
3305
|
+
});
|
|
3306
|
+
return { number: data.number, title: data.title, url: data.url };
|
|
3307
|
+
}
|
|
3238
3308
|
function parseRepoUrl(repoUrl) {
|
|
3239
3309
|
try {
|
|
3240
3310
|
const url = new URL(repoUrl);
|
|
@@ -3332,8 +3402,23 @@ var GitHubIntegration = class extends BaseIntegration {
|
|
|
3332
3402
|
() => this.getIssue(params)
|
|
3333
3403
|
);
|
|
3334
3404
|
break;
|
|
3405
|
+
case "getFile":
|
|
3406
|
+
data = await this.executeWithRetry(
|
|
3407
|
+
() => this.getFile(params)
|
|
3408
|
+
);
|
|
3409
|
+
break;
|
|
3410
|
+
case "listCommits":
|
|
3411
|
+
data = await this.executeWithRetry(
|
|
3412
|
+
() => this.listCommits(params)
|
|
3413
|
+
);
|
|
3414
|
+
break;
|
|
3415
|
+
case "createIssue":
|
|
3416
|
+
data = await this.executeWithRetry(
|
|
3417
|
+
() => this.createIssue(params)
|
|
3418
|
+
);
|
|
3419
|
+
break;
|
|
3335
3420
|
default:
|
|
3336
|
-
throw new
|
|
3421
|
+
throw new UnknownActionError(this.config.name, action);
|
|
3337
3422
|
}
|
|
3338
3423
|
return {
|
|
3339
3424
|
success: true,
|
|
@@ -3412,7 +3497,7 @@ var GitHubIntegration = class extends BaseIntegration {
|
|
|
3412
3497
|
* List issues
|
|
3413
3498
|
*/
|
|
3414
3499
|
async listIssues(params) {
|
|
3415
|
-
this.logger.debug("Listing issues", { state: params.state, labels: params.labels?.join(", "),
|
|
3500
|
+
this.logger.debug("Listing issues", { state: params.state, labels: params.labels?.join(", "), per_page: params.per_page });
|
|
3416
3501
|
const apiConfig = this.getAPIConfig();
|
|
3417
3502
|
const issues = await listIssues(params, apiConfig);
|
|
3418
3503
|
return { issues };
|
|
@@ -3426,6 +3511,29 @@ var GitHubIntegration = class extends BaseIntegration {
|
|
|
3426
3511
|
const result = await getIssue(params, apiConfig);
|
|
3427
3512
|
return result;
|
|
3428
3513
|
}
|
|
3514
|
+
/**
|
|
3515
|
+
* Get a file's content plus metadata (owner/repo are per-call, not the
|
|
3516
|
+
* configured default repo)
|
|
3517
|
+
*/
|
|
3518
|
+
async getFile(params) {
|
|
3519
|
+
this.logger.debug("Getting file", { owner: params.owner, repo: params.repo, path: params.path });
|
|
3520
|
+
return getFile(params, this.token);
|
|
3521
|
+
}
|
|
3522
|
+
/**
|
|
3523
|
+
* List commits (owner/repo are per-call, not the configured default repo)
|
|
3524
|
+
*/
|
|
3525
|
+
async listCommits(params) {
|
|
3526
|
+
this.logger.debug("Listing commits", { owner: params.owner, repo: params.repo, path: params.path });
|
|
3527
|
+
const commits = await listCommitsSummary(params, this.token);
|
|
3528
|
+
return { commits };
|
|
3529
|
+
}
|
|
3530
|
+
/**
|
|
3531
|
+
* Create an issue (owner/repo are per-call, not the configured default repo)
|
|
3532
|
+
*/
|
|
3533
|
+
async createIssue(params) {
|
|
3534
|
+
this.logger.debug("Creating issue", { owner: params.owner, repo: params.repo, title: params.title });
|
|
3535
|
+
return createIssue(params, this.token);
|
|
3536
|
+
}
|
|
3429
3537
|
/**
|
|
3430
3538
|
* Get API config for GitHub API calls
|
|
3431
3539
|
*/
|
|
@@ -3457,7 +3565,7 @@ var CLIIntegration = class extends BaseIntegration {
|
|
|
3457
3565
|
data = await this.validate(params);
|
|
3458
3566
|
break;
|
|
3459
3567
|
default:
|
|
3460
|
-
throw new
|
|
3568
|
+
throw new UnknownActionError(this.config.name, action);
|
|
3461
3569
|
}
|
|
3462
3570
|
return {
|
|
3463
3571
|
success: true,
|
|
@@ -3585,7 +3693,7 @@ var RedisIntegration = class extends BaseIntegration {
|
|
|
3585
3693
|
);
|
|
3586
3694
|
break;
|
|
3587
3695
|
default:
|
|
3588
|
-
throw new
|
|
3696
|
+
throw new UnknownActionError(this.config.name, action);
|
|
3589
3697
|
}
|
|
3590
3698
|
return {
|
|
3591
3699
|
success: true,
|
|
@@ -3791,7 +3899,7 @@ var QueueIntegration = class extends BaseIntegration {
|
|
|
3791
3899
|
data = await this.executeWithRetry(() => this.size(params));
|
|
3792
3900
|
break;
|
|
3793
3901
|
default:
|
|
3794
|
-
throw new
|
|
3902
|
+
throw new UnknownActionError(this.config.name, action);
|
|
3795
3903
|
}
|
|
3796
3904
|
return {
|
|
3797
3905
|
success: true,
|
|
@@ -3998,7 +4106,7 @@ var OtelIntegration = class extends BaseIntegration {
|
|
|
3998
4106
|
data = await this.executeWithRetry(() => this.getAllMetrics());
|
|
3999
4107
|
break;
|
|
4000
4108
|
default:
|
|
4001
|
-
throw new
|
|
4109
|
+
throw new UnknownActionError(this.config.name, action);
|
|
4002
4110
|
}
|
|
4003
4111
|
return {
|
|
4004
4112
|
success: true,
|
|
@@ -4198,7 +4306,7 @@ var OAuthIntegration = class extends BaseIntegration {
|
|
|
4198
4306
|
data = await this.executeWithRetry(() => this.real ? this.oidcUserinfo(params) : this.userinfo(params));
|
|
4199
4307
|
break;
|
|
4200
4308
|
default:
|
|
4201
|
-
throw new
|
|
4309
|
+
throw new UnknownActionError(this.config.name, action);
|
|
4202
4310
|
}
|
|
4203
4311
|
return {
|
|
4204
4312
|
success: true,
|
|
@@ -4516,7 +4624,7 @@ var CredentialsIntegration = class extends BaseIntegration {
|
|
|
4516
4624
|
break;
|
|
4517
4625
|
}
|
|
4518
4626
|
default:
|
|
4519
|
-
throw new
|
|
4627
|
+
throw new UnknownActionError(this.config.name, action);
|
|
4520
4628
|
}
|
|
4521
4629
|
return {
|
|
4522
4630
|
success: true,
|
|
@@ -4726,7 +4834,7 @@ var StorageIntegration = class extends BaseIntegration {
|
|
|
4726
4834
|
data = await this.executeWithRetry(() => this.getSignedUrl(params));
|
|
4727
4835
|
break;
|
|
4728
4836
|
default:
|
|
4729
|
-
throw new
|
|
4837
|
+
throw new UnknownActionError(this.config.name, action);
|
|
4730
4838
|
}
|
|
4731
4839
|
return {
|
|
4732
4840
|
success: true,
|
|
@@ -5019,7 +5127,7 @@ var DockerIntegration = class extends BaseIntegration {
|
|
|
5019
5127
|
data = await this.executeWithRetry(() => this.list(params));
|
|
5020
5128
|
break;
|
|
5021
5129
|
default:
|
|
5022
|
-
throw new
|
|
5130
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5023
5131
|
}
|
|
5024
5132
|
return {
|
|
5025
5133
|
success: true,
|
|
@@ -5437,7 +5545,7 @@ var DatabaseIntegration = class extends BaseIntegration {
|
|
|
5437
5545
|
data = await this.executeWithRetry(() => this.runQuery(params));
|
|
5438
5546
|
break;
|
|
5439
5547
|
default:
|
|
5440
|
-
throw new
|
|
5548
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5441
5549
|
}
|
|
5442
5550
|
return {
|
|
5443
5551
|
success: true,
|
|
@@ -5516,7 +5624,7 @@ var WikimediaIntegration = class extends BaseIntegration {
|
|
|
5516
5624
|
data = await this.executeWithRetry(() => this.getPage(params));
|
|
5517
5625
|
break;
|
|
5518
5626
|
default:
|
|
5519
|
-
throw new
|
|
5627
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5520
5628
|
}
|
|
5521
5629
|
return { success: true, data, metadata: this.createMetadata(action, Date.now() - startTime) };
|
|
5522
5630
|
} catch (error) {
|
|
@@ -5591,7 +5699,7 @@ var IconifyIntegration = class extends BaseIntegration {
|
|
|
5591
5699
|
data = await this.executeWithRetry(() => this.getIconBody(params));
|
|
5592
5700
|
break;
|
|
5593
5701
|
default:
|
|
5594
|
-
throw new
|
|
5702
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5595
5703
|
}
|
|
5596
5704
|
return { success: true, data, metadata: this.createMetadata(action, Date.now() - startTime) };
|
|
5597
5705
|
} catch (error) {
|
|
@@ -5695,7 +5803,7 @@ var ArxivIntegration = class extends BaseIntegration {
|
|
|
5695
5803
|
data = await this.executeWithRetry(() => this.search(params));
|
|
5696
5804
|
break;
|
|
5697
5805
|
default:
|
|
5698
|
-
throw new
|
|
5806
|
+
throw new UnknownActionError(this.config.name, action);
|
|
5699
5807
|
}
|
|
5700
5808
|
return { success: true, data, metadata: this.createMetadata(action, Date.now() - startTime) };
|
|
5701
5809
|
} catch (error) {
|
|
@@ -5721,6 +5829,6 @@ var ArxivIntegration = class extends BaseIntegration {
|
|
|
5721
5829
|
};
|
|
5722
5830
|
registerIntegration("arxiv", ArxivIntegration);
|
|
5723
5831
|
|
|
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 };
|
|
5832
|
+
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, allCredentialEnvVars, allHookDeclarations, assertReadOnlySelect, declaredCredentialEnvVars, getActiveFactory, getInstalledCredentialStore, getIntegration, getIntegrationFactory, getRegisteredIntegrations, googleCalendarHookProvider, installActiveFactory, installCredentialStore, installPendingGrantStore, isKnownIntegration, parseCalendarPushNotification, registerIntegration, registeredHookProviders, resetIntegrationFactory, resolveCredentialRef, serviceHooks, uninstallCredentialStore, validateParams, verifyAndParseStripeEvent, withRetry };
|
|
5725
5833
|
//# sourceMappingURL=index.js.map
|
|
5726
5834
|
//# sourceMappingURL=index.js.map
|