@alfe.ai/gateway 0.0.25 → 0.0.27

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.
Files changed (2) hide show
  1. package/dist/health.js +132 -5
  2. package/package.json +4 -4
package/dist/health.js CHANGED
@@ -74,6 +74,12 @@ 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",
81
+ memory: "mem",
82
+ knowledgeTriple: "kgt",
77
83
  run: "run",
78
84
  request: "req",
79
85
  connection: "conn",
@@ -360,6 +366,33 @@ var AuthService = class {
360
366
  body: JSON.stringify(input)
361
367
  });
362
368
  }
369
+ getSubscriptionStatus() {
370
+ return this.client.request(`${this.prefix}/subscription`);
371
+ }
372
+ applyForStartup(input) {
373
+ return this.client.request(`${this.prefix}/subscription/apply-startup`, {
374
+ method: "POST",
375
+ body: JSON.stringify(input)
376
+ });
377
+ }
378
+ createCheckoutSession(input) {
379
+ return this.client.request(`${this.prefix}/subscription/checkout`, {
380
+ method: "POST",
381
+ body: JSON.stringify(input)
382
+ });
383
+ }
384
+ updateSeats(seats) {
385
+ return this.client.request(`${this.prefix}/subscription/seats`, {
386
+ method: "POST",
387
+ body: JSON.stringify({ seats })
388
+ });
389
+ }
390
+ previewSeatChange(seats) {
391
+ return this.client.request(`${this.prefix}/subscription/seats/preview`, {
392
+ method: "POST",
393
+ body: JSON.stringify({ seats })
394
+ });
395
+ }
363
396
  };
364
397
  //#endregion
365
398
  //#region ../../packages-internal/api-client/dist/services/integrations.js
@@ -370,6 +403,39 @@ var IntegrationsService = class {
370
403
  this.client = client;
371
404
  this.voiceClient = voiceClient;
372
405
  }
406
+ listScopedInstalls(scope, scopeId) {
407
+ const params = new URLSearchParams({
408
+ scope,
409
+ scopeId
410
+ });
411
+ return this.client.request(`/integrations/scoped?${params}`);
412
+ }
413
+ installScoped(data) {
414
+ return this.client.request("/integrations/scoped", {
415
+ method: "POST",
416
+ body: JSON.stringify(data)
417
+ });
418
+ }
419
+ getScopedInstall(integrationId, scope, scopeId) {
420
+ const params = new URLSearchParams({
421
+ scope,
422
+ scopeId
423
+ });
424
+ return this.client.request(`/integrations/scoped/${encodeURIComponent(integrationId)}?${params}`);
425
+ }
426
+ updateScopedInstall(integrationId, data) {
427
+ return this.client.request(`/integrations/scoped/${encodeURIComponent(integrationId)}`, {
428
+ method: "PATCH",
429
+ body: JSON.stringify(data)
430
+ });
431
+ }
432
+ removeScopedInstall(integrationId, scope, scopeId) {
433
+ const params = new URLSearchParams({
434
+ scope,
435
+ scopeId
436
+ });
437
+ return this.client.request(`/integrations/scoped/${encodeURIComponent(integrationId)}?${params}`, { method: "DELETE" });
438
+ }
373
439
  listIntegrations(agentId) {
374
440
  return this.client.request(`/integrations/agents/${agentId}`);
375
441
  }
@@ -413,12 +479,13 @@ var IntegrationsService = class {
413
479
  listMobileNumbers() {
414
480
  return this.client.request("/mobile/numbers");
415
481
  }
416
- assignMobileNumber(agentId, phoneNumber) {
482
+ assignMobileNumber(agentId, phoneNumber, phoneSid) {
417
483
  return this.client.request("/mobile/numbers/assign", {
418
484
  method: "POST",
419
485
  body: JSON.stringify({
420
486
  agentId,
421
- phoneNumber
487
+ phoneNumber,
488
+ phoneSid
422
489
  })
423
490
  });
424
491
  }
@@ -3141,13 +3208,29 @@ enumValues({
3141
3208
  enumValues({
3142
3209
  Anthropic: "anthropic",
3143
3210
  OpenAI: "openai",
3144
- ElevenLabs: "elevenlabs"
3211
+ ElevenLabs: "elevenlabs",
3212
+ Twilio: "twilio"
3145
3213
  });
3146
3214
  enumValues({
3147
3215
  Month: "month",
3148
3216
  Year: "year"
3149
3217
  });
3150
3218
  object({ gracePeriodDays: number().int().positive().optional() });
3219
+ enumValues({
3220
+ Free: "free",
3221
+ Tier1: "tier_1",
3222
+ Tier2: "tier_2"
3223
+ });
3224
+ enumValues({
3225
+ Pending: "pending",
3226
+ Approved: "approved",
3227
+ Denied: "denied"
3228
+ });
3229
+ enumValues({
3230
+ PreSeed: "pre-seed",
3231
+ Seed: "seed",
3232
+ SeriesA: "series-a"
3233
+ });
3151
3234
  enumValues({
3152
3235
  Active: "active",
3153
3236
  Pending: "pending",
@@ -3170,6 +3253,12 @@ enumValues({
3170
3253
  OpenClaw: "openclaw",
3171
3254
  NanoClaw: "nanoclaw"
3172
3255
  });
3256
+ enumValues({
3257
+ Org: "org",
3258
+ Team: "team",
3259
+ Project: "project",
3260
+ Agent: "agent"
3261
+ });
3173
3262
  enumValues({
3174
3263
  Active: "active",
3175
3264
  Removed: "removed"
@@ -3206,7 +3295,14 @@ enumValues({
3206
3295
  Hour: "hour",
3207
3296
  Day: "day",
3208
3297
  Week: "week",
3209
- Month: "month"
3298
+ Month: "month",
3299
+ Year: "year"
3300
+ });
3301
+ enumValues({
3302
+ Tenant: "tenant",
3303
+ Agent: "agent",
3304
+ Team: "team",
3305
+ Project: "project"
3210
3306
  });
3211
3307
  enumValues({
3212
3308
  Active: "active",
@@ -3222,7 +3318,8 @@ enumValues({
3222
3318
  enumValues({
3223
3319
  BalanceCredit: "balance_credit",
3224
3320
  SubscriptionDiscount: "subscription_discount",
3225
- FreeTrial: "free_trial"
3321
+ FreeTrial: "free_trial",
3322
+ UsageDiscount: "usage_discount"
3226
3323
  });
3227
3324
  enumValues({
3228
3325
  Active: "active",
@@ -3239,6 +3336,10 @@ enumValues({
3239
3336
  Consumed: "consumed",
3240
3337
  Expired: "expired"
3241
3338
  });
3339
+ enumValues({
3340
+ Admin: "admin",
3341
+ Promo: "promo"
3342
+ });
3242
3343
  enumValues({
3243
3344
  Synced: "synced",
3244
3345
  Stale: "stale",
@@ -3313,6 +3414,32 @@ enumValues({
3313
3414
  Dashboard: "dashboard",
3314
3415
  Agent: "agent"
3315
3416
  });
3417
+ enumValues({
3418
+ Agent: "agent",
3419
+ Human: "human"
3420
+ });
3421
+ enumValues({
3422
+ Admin: "admin",
3423
+ Member: "member"
3424
+ });
3425
+ enumValues({
3426
+ Active: "active",
3427
+ Completed: "completed",
3428
+ Archived: "archived"
3429
+ });
3430
+ enumValues({
3431
+ Todo: "todo",
3432
+ InProgress: "in-progress",
3433
+ Done: "done"
3434
+ });
3435
+ enumValues({ Flex: "flex" });
3436
+ enumValues({
3437
+ Provisioning: "provisioning",
3438
+ Active: "active",
3439
+ Suspended: "suspended",
3440
+ Deleting: "deleting",
3441
+ Error: "error"
3442
+ });
3316
3443
  //#endregion
3317
3444
  //#region src/config.ts
3318
3445
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/gateway",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
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/integration-manifest": "^0.0.6",
28
- "@alfe.ai/integrations": "^0.0.16"
26
+ "@alfe.ai/config": "^0.0.5",
27
+ "@alfe.ai/integration-manifest": "^0.0.8",
28
+ "@alfe.ai/integrations": "^0.0.18"
29
29
  },
30
30
  "license": "UNLICENSED",
31
31
  "scripts": {