@alfe.ai/gateway 0.0.25 → 0.0.26
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 +118 -5
- package/package.json +4 -4
package/dist/health.js
CHANGED
|
@@ -74,6 +74,10 @@ const ID_PREFIXES = {
|
|
|
74
74
|
onboardingSession: "obs",
|
|
75
75
|
inviteToken: "inv",
|
|
76
76
|
claimToken: "clm",
|
|
77
|
+
usageLimit: "lim",
|
|
78
|
+
team: "team",
|
|
79
|
+
project: "proj",
|
|
80
|
+
goal: "goal",
|
|
77
81
|
run: "run",
|
|
78
82
|
request: "req",
|
|
79
83
|
connection: "conn",
|
|
@@ -360,6 +364,21 @@ var AuthService = class {
|
|
|
360
364
|
body: JSON.stringify(input)
|
|
361
365
|
});
|
|
362
366
|
}
|
|
367
|
+
getSubscriptionStatus() {
|
|
368
|
+
return this.client.request(`${this.prefix}/subscription`);
|
|
369
|
+
}
|
|
370
|
+
applyForStartup(input) {
|
|
371
|
+
return this.client.request(`${this.prefix}/subscription/apply-startup`, {
|
|
372
|
+
method: "POST",
|
|
373
|
+
body: JSON.stringify(input)
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
createCheckoutSession(input) {
|
|
377
|
+
return this.client.request(`${this.prefix}/subscription/checkout`, {
|
|
378
|
+
method: "POST",
|
|
379
|
+
body: JSON.stringify(input)
|
|
380
|
+
});
|
|
381
|
+
}
|
|
363
382
|
};
|
|
364
383
|
//#endregion
|
|
365
384
|
//#region ../../packages-internal/api-client/dist/services/integrations.js
|
|
@@ -370,6 +389,39 @@ var IntegrationsService = class {
|
|
|
370
389
|
this.client = client;
|
|
371
390
|
this.voiceClient = voiceClient;
|
|
372
391
|
}
|
|
392
|
+
listScopedInstalls(scope, scopeId) {
|
|
393
|
+
const params = new URLSearchParams({
|
|
394
|
+
scope,
|
|
395
|
+
scopeId
|
|
396
|
+
});
|
|
397
|
+
return this.client.request(`/integrations/scoped?${params}`);
|
|
398
|
+
}
|
|
399
|
+
installScoped(data) {
|
|
400
|
+
return this.client.request("/integrations/scoped", {
|
|
401
|
+
method: "POST",
|
|
402
|
+
body: JSON.stringify(data)
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
getScopedInstall(integrationId, scope, scopeId) {
|
|
406
|
+
const params = new URLSearchParams({
|
|
407
|
+
scope,
|
|
408
|
+
scopeId
|
|
409
|
+
});
|
|
410
|
+
return this.client.request(`/integrations/scoped/${encodeURIComponent(integrationId)}?${params}`);
|
|
411
|
+
}
|
|
412
|
+
updateScopedInstall(integrationId, data) {
|
|
413
|
+
return this.client.request(`/integrations/scoped/${encodeURIComponent(integrationId)}`, {
|
|
414
|
+
method: "PATCH",
|
|
415
|
+
body: JSON.stringify(data)
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
removeScopedInstall(integrationId, scope, scopeId) {
|
|
419
|
+
const params = new URLSearchParams({
|
|
420
|
+
scope,
|
|
421
|
+
scopeId
|
|
422
|
+
});
|
|
423
|
+
return this.client.request(`/integrations/scoped/${encodeURIComponent(integrationId)}?${params}`, { method: "DELETE" });
|
|
424
|
+
}
|
|
373
425
|
listIntegrations(agentId) {
|
|
374
426
|
return this.client.request(`/integrations/agents/${agentId}`);
|
|
375
427
|
}
|
|
@@ -413,12 +465,13 @@ var IntegrationsService = class {
|
|
|
413
465
|
listMobileNumbers() {
|
|
414
466
|
return this.client.request("/mobile/numbers");
|
|
415
467
|
}
|
|
416
|
-
assignMobileNumber(agentId, phoneNumber) {
|
|
468
|
+
assignMobileNumber(agentId, phoneNumber, phoneSid) {
|
|
417
469
|
return this.client.request("/mobile/numbers/assign", {
|
|
418
470
|
method: "POST",
|
|
419
471
|
body: JSON.stringify({
|
|
420
472
|
agentId,
|
|
421
|
-
phoneNumber
|
|
473
|
+
phoneNumber,
|
|
474
|
+
phoneSid
|
|
422
475
|
})
|
|
423
476
|
});
|
|
424
477
|
}
|
|
@@ -3141,13 +3194,29 @@ enumValues({
|
|
|
3141
3194
|
enumValues({
|
|
3142
3195
|
Anthropic: "anthropic",
|
|
3143
3196
|
OpenAI: "openai",
|
|
3144
|
-
ElevenLabs: "elevenlabs"
|
|
3197
|
+
ElevenLabs: "elevenlabs",
|
|
3198
|
+
Twilio: "twilio"
|
|
3145
3199
|
});
|
|
3146
3200
|
enumValues({
|
|
3147
3201
|
Month: "month",
|
|
3148
3202
|
Year: "year"
|
|
3149
3203
|
});
|
|
3150
3204
|
object({ gracePeriodDays: number().int().positive().optional() });
|
|
3205
|
+
enumValues({
|
|
3206
|
+
Free: "free",
|
|
3207
|
+
Tier1: "tier_1",
|
|
3208
|
+
Tier2: "tier_2"
|
|
3209
|
+
});
|
|
3210
|
+
enumValues({
|
|
3211
|
+
Pending: "pending",
|
|
3212
|
+
Approved: "approved",
|
|
3213
|
+
Denied: "denied"
|
|
3214
|
+
});
|
|
3215
|
+
enumValues({
|
|
3216
|
+
PreSeed: "pre-seed",
|
|
3217
|
+
Seed: "seed",
|
|
3218
|
+
SeriesA: "series-a"
|
|
3219
|
+
});
|
|
3151
3220
|
enumValues({
|
|
3152
3221
|
Active: "active",
|
|
3153
3222
|
Pending: "pending",
|
|
@@ -3170,6 +3239,12 @@ enumValues({
|
|
|
3170
3239
|
OpenClaw: "openclaw",
|
|
3171
3240
|
NanoClaw: "nanoclaw"
|
|
3172
3241
|
});
|
|
3242
|
+
enumValues({
|
|
3243
|
+
Org: "org",
|
|
3244
|
+
Team: "team",
|
|
3245
|
+
Project: "project",
|
|
3246
|
+
Agent: "agent"
|
|
3247
|
+
});
|
|
3173
3248
|
enumValues({
|
|
3174
3249
|
Active: "active",
|
|
3175
3250
|
Removed: "removed"
|
|
@@ -3206,7 +3281,14 @@ enumValues({
|
|
|
3206
3281
|
Hour: "hour",
|
|
3207
3282
|
Day: "day",
|
|
3208
3283
|
Week: "week",
|
|
3209
|
-
Month: "month"
|
|
3284
|
+
Month: "month",
|
|
3285
|
+
Year: "year"
|
|
3286
|
+
});
|
|
3287
|
+
enumValues({
|
|
3288
|
+
Tenant: "tenant",
|
|
3289
|
+
Agent: "agent",
|
|
3290
|
+
Team: "team",
|
|
3291
|
+
Project: "project"
|
|
3210
3292
|
});
|
|
3211
3293
|
enumValues({
|
|
3212
3294
|
Active: "active",
|
|
@@ -3222,7 +3304,8 @@ enumValues({
|
|
|
3222
3304
|
enumValues({
|
|
3223
3305
|
BalanceCredit: "balance_credit",
|
|
3224
3306
|
SubscriptionDiscount: "subscription_discount",
|
|
3225
|
-
FreeTrial: "free_trial"
|
|
3307
|
+
FreeTrial: "free_trial",
|
|
3308
|
+
UsageDiscount: "usage_discount"
|
|
3226
3309
|
});
|
|
3227
3310
|
enumValues({
|
|
3228
3311
|
Active: "active",
|
|
@@ -3239,6 +3322,10 @@ enumValues({
|
|
|
3239
3322
|
Consumed: "consumed",
|
|
3240
3323
|
Expired: "expired"
|
|
3241
3324
|
});
|
|
3325
|
+
enumValues({
|
|
3326
|
+
Admin: "admin",
|
|
3327
|
+
Promo: "promo"
|
|
3328
|
+
});
|
|
3242
3329
|
enumValues({
|
|
3243
3330
|
Synced: "synced",
|
|
3244
3331
|
Stale: "stale",
|
|
@@ -3313,6 +3400,32 @@ enumValues({
|
|
|
3313
3400
|
Dashboard: "dashboard",
|
|
3314
3401
|
Agent: "agent"
|
|
3315
3402
|
});
|
|
3403
|
+
enumValues({
|
|
3404
|
+
Agent: "agent",
|
|
3405
|
+
Human: "human"
|
|
3406
|
+
});
|
|
3407
|
+
enumValues({
|
|
3408
|
+
Admin: "admin",
|
|
3409
|
+
Member: "member"
|
|
3410
|
+
});
|
|
3411
|
+
enumValues({
|
|
3412
|
+
Active: "active",
|
|
3413
|
+
Completed: "completed",
|
|
3414
|
+
Archived: "archived"
|
|
3415
|
+
});
|
|
3416
|
+
enumValues({
|
|
3417
|
+
Todo: "todo",
|
|
3418
|
+
InProgress: "in-progress",
|
|
3419
|
+
Done: "done"
|
|
3420
|
+
});
|
|
3421
|
+
enumValues({ Flex: "flex" });
|
|
3422
|
+
enumValues({
|
|
3423
|
+
Provisioning: "provisioning",
|
|
3424
|
+
Active: "active",
|
|
3425
|
+
Suspended: "suspended",
|
|
3426
|
+
Deleting: "deleting",
|
|
3427
|
+
Error: "error"
|
|
3428
|
+
});
|
|
3316
3429
|
//#endregion
|
|
3317
3430
|
//#region src/config.ts
|
|
3318
3431
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/gateway",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"description": "Alfe local gateway daemon — persistent control plane for agent integrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"pino-roll": "^1.2.0",
|
|
23
23
|
"smol-toml": ">=1.6.1",
|
|
24
24
|
"ws": "^8.18.0",
|
|
25
|
-
"@alfe.ai/config": "^0.0.5",
|
|
26
25
|
"@alfe.ai/ai-proxy-local": "^0.0.5",
|
|
27
|
-
"@alfe.ai/
|
|
28
|
-
"@alfe.ai/
|
|
26
|
+
"@alfe.ai/config": "^0.0.5",
|
|
27
|
+
"@alfe.ai/integration-manifest": "^0.0.7",
|
|
28
|
+
"@alfe.ai/integrations": "^0.0.17"
|
|
29
29
|
},
|
|
30
30
|
"license": "UNLICENSED",
|
|
31
31
|
"scripts": {
|