@alfe.ai/gateway 0.9.12 → 0.9.13
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/health.js +18 -3
- package/package.json +3 -3
package/dist/health.js
CHANGED
|
@@ -4267,6 +4267,11 @@ enumValues({
|
|
|
4267
4267
|
Public: "public",
|
|
4268
4268
|
Hidden: "hidden"
|
|
4269
4269
|
});
|
|
4270
|
+
enumValues({
|
|
4271
|
+
Connection: "connection",
|
|
4272
|
+
Channel: "channel",
|
|
4273
|
+
Integration: "integration"
|
|
4274
|
+
});
|
|
4270
4275
|
enumValues({
|
|
4271
4276
|
Active: "active",
|
|
4272
4277
|
Removed: "removed"
|
|
@@ -4383,7 +4388,7 @@ enumValues({
|
|
|
4383
4388
|
Live: "live"
|
|
4384
4389
|
});
|
|
4385
4390
|
function createClerkReverificationResponse(afterMinutes) {
|
|
4386
|
-
if (!Number.isInteger(afterMinutes) || afterMinutes <
|
|
4391
|
+
if (!Number.isInteger(afterMinutes) || afterMinutes < 1) throw new TypeError("afterMinutes must be a positive integer");
|
|
4387
4392
|
return { clerk_error: {
|
|
4388
4393
|
type: "forbidden",
|
|
4389
4394
|
reason: "reverification-error",
|
|
@@ -4400,7 +4405,7 @@ function isClerkReverificationResponse(value) {
|
|
|
4400
4405
|
if (!clerkError || typeof clerkError !== "object") return false;
|
|
4401
4406
|
const error = clerkError;
|
|
4402
4407
|
const reverification = error.metadata?.reverification;
|
|
4403
|
-
return error.type === "forbidden" && error.reason === "reverification-error" && reverification?.level === "second_factor" && Number.isInteger(reverification.afterMinutes) && reverification.afterMinutes >=
|
|
4408
|
+
return error.type === "forbidden" && error.reason === "reverification-error" && reverification?.level === "second_factor" && Number.isInteger(reverification.afterMinutes) && reverification.afterMinutes >= 1;
|
|
4404
4409
|
}
|
|
4405
4410
|
//#endregion
|
|
4406
4411
|
//#region ../../packages-internal/types/dist/models.js
|
|
@@ -4646,6 +4651,7 @@ const NotificationType = {
|
|
|
4646
4651
|
BrowserTakeoverRequested: "browser_takeover_requested",
|
|
4647
4652
|
InviteCreated: "onboarding.invite.created",
|
|
4648
4653
|
OrgClaimed: "onboarding.org.claimed",
|
|
4654
|
+
PartnerApplicationInvitation: "partner.application.invitation",
|
|
4649
4655
|
ElevatedSupportRequested: "partner.elevated_support.requested",
|
|
4650
4656
|
ElevatedSupportStarted: "partner.elevated_support.started",
|
|
4651
4657
|
TeamMemberAdded: "team.member.added",
|
|
@@ -4662,7 +4668,7 @@ const RecipientStrategy = {
|
|
|
4662
4668
|
TenantAdmins: "tenant_admins",
|
|
4663
4669
|
SpecificUser: "specific_user"
|
|
4664
4670
|
};
|
|
4665
|
-
NotificationType.PaymentSucceeded, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.PaymentFailed, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationChannel.Sms, NotificationType.TopUpCompleted, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.AutoRechargeCompleted, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationType.AutoRechargeFailed, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationChannel.Sms, NotificationType.SubscriptionCreated, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationType.SubscriptionCancelled, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.StartupGrantEnded, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.GrantEnded, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.EnterpriseGrantEnded, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.SubscriptionPastDue, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationChannel.Sms, NotificationType.BalanceThresholdWarning, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.PlatformTierPriceIncrease, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationType.AgentCreated, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.AgentProvisionFailed, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.AgentBillingSuspended, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.AgentDisconnectedExtended, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Push, NotificationType.BrowserTakeoverRequested, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.InviteCreated, NotificationCategory.System, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationType.OrgClaimed, NotificationCategory.System, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.ElevatedSupportRequested, NotificationCategory.System, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.ElevatedSupportStarted, NotificationCategory.System, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.TeamMemberAdded, NotificationCategory.Team, RecipientStrategy.SpecificUser, NotificationChannel.Email, NotificationChannel.Push, NotificationType.ProjectMemberAdded, NotificationCategory.Team, RecipientStrategy.SpecificUser, NotificationChannel.Email, NotificationChannel.Push, NotificationType.IntegrationInstalled, NotificationCategory.Integrations, RecipientStrategy.TenantAdmins, NotificationChannel.Push, NotificationType.IntegrationRemoved, NotificationCategory.Integrations, RecipientStrategy.TenantAdmins, NotificationChannel.Push;
|
|
4671
|
+
NotificationType.PaymentSucceeded, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.PaymentFailed, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationChannel.Sms, NotificationType.TopUpCompleted, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.AutoRechargeCompleted, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationType.AutoRechargeFailed, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationChannel.Sms, NotificationType.SubscriptionCreated, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationType.SubscriptionCancelled, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.StartupGrantEnded, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.GrantEnded, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.EnterpriseGrantEnded, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.SubscriptionPastDue, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationChannel.Sms, NotificationType.BalanceThresholdWarning, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.PlatformTierPriceIncrease, NotificationCategory.Billing, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationType.AgentCreated, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.AgentProvisionFailed, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.AgentBillingSuspended, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.AgentDisconnectedExtended, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Push, NotificationType.BrowserTakeoverRequested, NotificationCategory.Agents, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.InviteCreated, NotificationCategory.System, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationType.OrgClaimed, NotificationCategory.System, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.PartnerApplicationInvitation, NotificationCategory.System, RecipientStrategy.SpecificUser, NotificationChannel.Email, NotificationType.ElevatedSupportRequested, NotificationCategory.System, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.ElevatedSupportStarted, NotificationCategory.System, RecipientStrategy.TenantAdmins, NotificationChannel.Email, NotificationChannel.Push, NotificationType.TeamMemberAdded, NotificationCategory.Team, RecipientStrategy.SpecificUser, NotificationChannel.Email, NotificationChannel.Push, NotificationType.ProjectMemberAdded, NotificationCategory.Team, RecipientStrategy.SpecificUser, NotificationChannel.Email, NotificationChannel.Push, NotificationType.IntegrationInstalled, NotificationCategory.Integrations, RecipientStrategy.TenantAdmins, NotificationChannel.Push, NotificationType.IntegrationRemoved, NotificationCategory.Integrations, RecipientStrategy.TenantAdmins, NotificationChannel.Push;
|
|
4666
4672
|
//#endregion
|
|
4667
4673
|
//#region ../../packages-internal/api-client/dist/client.js
|
|
4668
4674
|
/**
|
|
@@ -5233,6 +5239,15 @@ var IntegrationsService = class {
|
|
|
5233
5239
|
const query = new URLSearchParams({ agentId });
|
|
5234
5240
|
return this.client.request(`/discord/guilds/${encodeURIComponent(guildId)}/channels?${query}`);
|
|
5235
5241
|
}
|
|
5242
|
+
getDiscordAppSetup(agentId) {
|
|
5243
|
+
return this.client.request(`/discord/agents/${encodeURIComponent(agentId)}/app`);
|
|
5244
|
+
}
|
|
5245
|
+
configureDiscordApp(agentId, input) {
|
|
5246
|
+
return this.client.request(`/discord/agents/${encodeURIComponent(agentId)}/app`, {
|
|
5247
|
+
method: "PUT",
|
|
5248
|
+
body: JSON.stringify(input)
|
|
5249
|
+
});
|
|
5250
|
+
}
|
|
5236
5251
|
searchMobileNumbers(country, query) {
|
|
5237
5252
|
const params = new URLSearchParams();
|
|
5238
5253
|
if (country !== void 0) params.set("country", country);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/gateway",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.13",
|
|
4
4
|
"description": "Alfe local gateway daemon — persistent control plane for agent integrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@alfe.ai/agent-api-client": "^0.17.0",
|
|
27
27
|
"@alfe.ai/ai-proxy-local": "^0.0.16",
|
|
28
28
|
"@alfe.ai/config": "^0.4.1",
|
|
29
|
-
"@alfe.ai/integration-manifest": "^0.
|
|
30
|
-
"@alfe.ai/integrations": "^0.6.
|
|
29
|
+
"@alfe.ai/integration-manifest": "^0.4.0",
|
|
30
|
+
"@alfe.ai/integrations": "^0.6.4",
|
|
31
31
|
"@alfe.ai/mcp-bundler": "^0.4.1"
|
|
32
32
|
},
|
|
33
33
|
"license": "UNLICENSED",
|