@automagik/omni 2.260730.2 → 2.260730.3
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/index.js +49 -77
- package/dist/server/index.js +46 -74
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31479,6 +31479,49 @@ var init_agent = __esm(() => {
|
|
|
31479
31479
|
JOB_STATUSES = ["pending", "running", "completed", "failed", "cancelled"];
|
|
31480
31480
|
});
|
|
31481
31481
|
|
|
31482
|
+
// ../core/src/types/channel.ts
|
|
31483
|
+
var CHANNEL_TYPES, CONTENT_TYPES, DEBOUNCE_MODES, SPLIT_DELAY_MODES, RULE_TYPES;
|
|
31484
|
+
var init_channel = __esm(() => {
|
|
31485
|
+
CHANNEL_TYPES = [
|
|
31486
|
+
"whatsapp-baileys",
|
|
31487
|
+
"whatsapp-cloud",
|
|
31488
|
+
"discord",
|
|
31489
|
+
"slack",
|
|
31490
|
+
"telegram",
|
|
31491
|
+
"a2a",
|
|
31492
|
+
"gupshup",
|
|
31493
|
+
"hermes",
|
|
31494
|
+
"twilio-whatsapp",
|
|
31495
|
+
"internal"
|
|
31496
|
+
];
|
|
31497
|
+
CONTENT_TYPES = [
|
|
31498
|
+
"text",
|
|
31499
|
+
"audio",
|
|
31500
|
+
"image",
|
|
31501
|
+
"video",
|
|
31502
|
+
"document",
|
|
31503
|
+
"sticker",
|
|
31504
|
+
"contact",
|
|
31505
|
+
"location",
|
|
31506
|
+
"reaction",
|
|
31507
|
+
"poll",
|
|
31508
|
+
"poll_update",
|
|
31509
|
+
"event",
|
|
31510
|
+
"live_location",
|
|
31511
|
+
"product",
|
|
31512
|
+
"pix",
|
|
31513
|
+
"template",
|
|
31514
|
+
"location_request",
|
|
31515
|
+
"flow",
|
|
31516
|
+
"edit",
|
|
31517
|
+
"delete",
|
|
31518
|
+
"unknown"
|
|
31519
|
+
];
|
|
31520
|
+
DEBOUNCE_MODES = ["disabled", "fixed", "randomized"];
|
|
31521
|
+
SPLIT_DELAY_MODES = ["disabled", "fixed", "randomized"];
|
|
31522
|
+
RULE_TYPES = ["allow", "deny"];
|
|
31523
|
+
});
|
|
31524
|
+
|
|
31482
31525
|
// ../core/src/schemas/common.ts
|
|
31483
31526
|
var UuidSchema, TimestampSchema, IsoDateSchema, PhoneSchema, EmailSchema, UrlSchema, NonEmptyStringSchema, PaginationSchema, paginatedResponse = (itemSchema) => exports_external.object({
|
|
31484
31527
|
items: exports_external.array(itemSchema),
|
|
@@ -31491,6 +31534,7 @@ var init_common = __esm(() => {
|
|
|
31491
31534
|
init_zod();
|
|
31492
31535
|
init_types2();
|
|
31493
31536
|
init_agent();
|
|
31537
|
+
init_channel();
|
|
31494
31538
|
UuidSchema = exports_external.string().uuid();
|
|
31495
31539
|
TimestampSchema = exports_external.number().int().positive();
|
|
31496
31540
|
IsoDateSchema = exports_external.string().datetime();
|
|
@@ -31503,28 +31547,8 @@ var init_common = __esm(() => {
|
|
|
31503
31547
|
offset: exports_external.number().int().min(0).default(0)
|
|
31504
31548
|
});
|
|
31505
31549
|
MetadataSchema = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
31506
|
-
ChannelTypeSchema = exports_external.enum(
|
|
31507
|
-
|
|
31508
|
-
"whatsapp-cloud",
|
|
31509
|
-
"discord",
|
|
31510
|
-
"slack",
|
|
31511
|
-
"telegram",
|
|
31512
|
-
"a2a",
|
|
31513
|
-
"gupshup",
|
|
31514
|
-
"twilio-whatsapp",
|
|
31515
|
-
"internal"
|
|
31516
|
-
]);
|
|
31517
|
-
ContentTypeSchema = exports_external.enum([
|
|
31518
|
-
"text",
|
|
31519
|
-
"audio",
|
|
31520
|
-
"image",
|
|
31521
|
-
"video",
|
|
31522
|
-
"document",
|
|
31523
|
-
"sticker",
|
|
31524
|
-
"contact",
|
|
31525
|
-
"location",
|
|
31526
|
-
"reaction"
|
|
31527
|
-
]);
|
|
31550
|
+
ChannelTypeSchema = exports_external.enum(CHANNEL_TYPES);
|
|
31551
|
+
ContentTypeSchema = exports_external.enum(CONTENT_TYPES);
|
|
31528
31552
|
EventTypeSchema = exports_external.enum(CORE_EVENT_TYPES);
|
|
31529
31553
|
JobStatusSchema = exports_external.enum(["pending", "running", "completed", "failed", "cancelled"]);
|
|
31530
31554
|
ProviderSchemaEnum = exports_external.enum(PROVIDER_SCHEMAS);
|
|
@@ -32527,49 +32551,6 @@ var init_schemas = __esm(() => {
|
|
|
32527
32551
|
init_hermes();
|
|
32528
32552
|
});
|
|
32529
32553
|
|
|
32530
|
-
// ../core/src/types/channel.ts
|
|
32531
|
-
var CHANNEL_TYPES, CONTENT_TYPES, DEBOUNCE_MODES, SPLIT_DELAY_MODES, RULE_TYPES;
|
|
32532
|
-
var init_channel = __esm(() => {
|
|
32533
|
-
CHANNEL_TYPES = [
|
|
32534
|
-
"whatsapp-baileys",
|
|
32535
|
-
"whatsapp-cloud",
|
|
32536
|
-
"discord",
|
|
32537
|
-
"slack",
|
|
32538
|
-
"telegram",
|
|
32539
|
-
"a2a",
|
|
32540
|
-
"gupshup",
|
|
32541
|
-
"hermes",
|
|
32542
|
-
"twilio-whatsapp",
|
|
32543
|
-
"internal"
|
|
32544
|
-
];
|
|
32545
|
-
CONTENT_TYPES = [
|
|
32546
|
-
"text",
|
|
32547
|
-
"audio",
|
|
32548
|
-
"image",
|
|
32549
|
-
"video",
|
|
32550
|
-
"document",
|
|
32551
|
-
"sticker",
|
|
32552
|
-
"contact",
|
|
32553
|
-
"location",
|
|
32554
|
-
"reaction",
|
|
32555
|
-
"poll",
|
|
32556
|
-
"poll_update",
|
|
32557
|
-
"event",
|
|
32558
|
-
"live_location",
|
|
32559
|
-
"product",
|
|
32560
|
-
"pix",
|
|
32561
|
-
"template",
|
|
32562
|
-
"location_request",
|
|
32563
|
-
"flow",
|
|
32564
|
-
"edit",
|
|
32565
|
-
"delete",
|
|
32566
|
-
"unknown"
|
|
32567
|
-
];
|
|
32568
|
-
DEBOUNCE_MODES = ["disabled", "fixed", "randomized"];
|
|
32569
|
-
SPLIT_DELAY_MODES = ["disabled", "fixed", "randomized"];
|
|
32570
|
-
RULE_TYPES = ["allow", "deny"];
|
|
32571
|
-
});
|
|
32572
|
-
|
|
32573
32554
|
// ../core/src/types/whatsapp-cloud.ts
|
|
32574
32555
|
var META_TEMPLATE_CATEGORIES, META_TEMPLATE_STATUSES, META_TEMPLATE_QUALITY_SCORES;
|
|
32575
32556
|
var init_whatsapp_cloud2 = __esm(() => {
|
|
@@ -72785,6 +72766,7 @@ __export(exports_schema, {
|
|
|
72785
72766
|
var channelTypes, agentTypes, agentSystems, agentEntityTypes, debounceMode, splitDelayMode, supersedeMode, replyFilterMode, agentSessionStrategies, ruleTypes, accessModes, settingValueTypes, apiKeyStatuses, apiKeyProfiles, eventTypes, contentTypes, chatTypes, messageSources, messageTypes, messageStatuses, deliveryStatuses, jobStatuses, providerSchemas, agentProviders, agents, agentRoutes, agentSessions, apiKeys, apiKeyAuditLogs, apiKeysRelations, apiKeyAuditLogsRelations, instances, whatsappTemplates, persons, platformIdentities, conversations, chats, chatParticipants, omniGroups, messages2, omniEvents, handoffLogs, closeContactOutcomes, closeContactLogs, accessRules, globalSettings, settingChangeHistory, batchJobs, syncJobTypes, syncJobs, mediaContent, chatIdMappings, pluginStorage, agentProvidersRelations, agentsRelations, instancesRelations, syncJobsRelations, personsRelations, platformIdentitiesRelations, conversationsRelations, chatsRelations, chatParticipantsRelations, messagesRelations, omniEventsRelations, accessRulesRelations, globalSettingsRelations, settingChangeHistoryRelations, batchJobsRelations, mediaContentRelations, chatIdMappingsRelations, deadLetterStatuses, deadLetterEvents, payloadStorageConfig, payloadStages, eventPayloads, webhookSources, conditionOperators, actionTypes, automationDebounceModes, automations2, automationLogStatuses, automationLogs, consumerOffsets, automationsRelations, automationLogsRelations, triggerLogs, triggerLogsRelations, agentRoutesRelations, agentTaskStatuses, agentTasks, agentTasksRelations, turnStatuses, turnActions, turns, turnsRelations, followUpDisarmReasons, chatFollowUpState, chatFollowUpStateRelations, processedEvents, genieHosts, tenantStatuses, principalTypes, principalStatuses, tenantRoles, membershipStatuses, credentialClasses, authCredentialStatuses, platformApiKeyStatuses, tenants, principals, tenantMemberships, tenantRolePolicies, platformApiKeys, tenantKeyLineage, authCredentials, tenantAuditLogs, platformAuditLogs, platformProviderCatalog, tenantProviderConfig, platformSettings, tenantSettings, platformSettingChangeHistory, tenantSettingChangeHistory, platformPluginStorage, tenantPluginStorage, platformPayloadStorageConfig, tenantPayloadStorageOverrides, tenantMigrationLedger, tenantMigrationLedgerHistory;
|
|
72786
72767
|
var init_schema2 = __esm(() => {
|
|
72787
72768
|
init_events();
|
|
72769
|
+
init_types5();
|
|
72788
72770
|
init_drizzle_orm();
|
|
72789
72771
|
init_pg_core();
|
|
72790
72772
|
channelTypes = [
|
|
@@ -72822,17 +72804,7 @@ var init_schema2 = __esm(() => {
|
|
|
72822
72804
|
"console-admin"
|
|
72823
72805
|
];
|
|
72824
72806
|
eventTypes = CORE_EVENT_TYPES;
|
|
72825
|
-
contentTypes =
|
|
72826
|
-
"text",
|
|
72827
|
-
"audio",
|
|
72828
|
-
"image",
|
|
72829
|
-
"video",
|
|
72830
|
-
"document",
|
|
72831
|
-
"sticker",
|
|
72832
|
-
"contact",
|
|
72833
|
-
"location",
|
|
72834
|
-
"reaction"
|
|
72835
|
-
];
|
|
72807
|
+
contentTypes = CONTENT_TYPES;
|
|
72836
72808
|
chatTypes = [
|
|
72837
72809
|
"dm",
|
|
72838
72810
|
"group",
|
|
@@ -127682,7 +127654,7 @@ import { fileURLToPath } from "url";
|
|
|
127682
127654
|
// package.json
|
|
127683
127655
|
var package_default = {
|
|
127684
127656
|
name: "@automagik/omni",
|
|
127685
|
-
version: "2.260730.
|
|
127657
|
+
version: "2.260730.3",
|
|
127686
127658
|
description: "LLM-optimized CLI for Omni",
|
|
127687
127659
|
type: "module",
|
|
127688
127660
|
bin: {
|
package/dist/server/index.js
CHANGED
|
@@ -23415,12 +23415,53 @@ var init_agent = __esm(() => {
|
|
|
23415
23415
|
PROVIDER_SCHEMAS = ["agno", "webhook", "openclaw", "ag-ui", "claude-code", "a2a", "nats-genie"];
|
|
23416
23416
|
});
|
|
23417
23417
|
|
|
23418
|
+
// ../core/src/types/channel.ts
|
|
23419
|
+
var CHANNEL_TYPES, CONTENT_TYPES;
|
|
23420
|
+
var init_channel = __esm(() => {
|
|
23421
|
+
CHANNEL_TYPES = [
|
|
23422
|
+
"whatsapp-baileys",
|
|
23423
|
+
"whatsapp-cloud",
|
|
23424
|
+
"discord",
|
|
23425
|
+
"slack",
|
|
23426
|
+
"telegram",
|
|
23427
|
+
"a2a",
|
|
23428
|
+
"gupshup",
|
|
23429
|
+
"hermes",
|
|
23430
|
+
"twilio-whatsapp",
|
|
23431
|
+
"internal"
|
|
23432
|
+
];
|
|
23433
|
+
CONTENT_TYPES = [
|
|
23434
|
+
"text",
|
|
23435
|
+
"audio",
|
|
23436
|
+
"image",
|
|
23437
|
+
"video",
|
|
23438
|
+
"document",
|
|
23439
|
+
"sticker",
|
|
23440
|
+
"contact",
|
|
23441
|
+
"location",
|
|
23442
|
+
"reaction",
|
|
23443
|
+
"poll",
|
|
23444
|
+
"poll_update",
|
|
23445
|
+
"event",
|
|
23446
|
+
"live_location",
|
|
23447
|
+
"product",
|
|
23448
|
+
"pix",
|
|
23449
|
+
"template",
|
|
23450
|
+
"location_request",
|
|
23451
|
+
"flow",
|
|
23452
|
+
"edit",
|
|
23453
|
+
"delete",
|
|
23454
|
+
"unknown"
|
|
23455
|
+
];
|
|
23456
|
+
});
|
|
23457
|
+
|
|
23418
23458
|
// ../core/src/schemas/common.ts
|
|
23419
23459
|
var UuidSchema, TimestampSchema, IsoDateSchema, PhoneSchema, EmailSchema, UrlSchema, NonEmptyStringSchema, PaginationSchema, MetadataSchema, ChannelTypeSchema, ContentTypeSchema, EventTypeSchema, JobStatusSchema, ProviderSchemaEnum, RuleTypeSchema, AccessModeSchema, SettingValueTypeSchema;
|
|
23420
23460
|
var init_common = __esm(() => {
|
|
23421
23461
|
init_zod();
|
|
23422
23462
|
init_types2();
|
|
23423
23463
|
init_agent();
|
|
23464
|
+
init_channel();
|
|
23424
23465
|
UuidSchema = exports_external.string().uuid();
|
|
23425
23466
|
TimestampSchema = exports_external.number().int().positive();
|
|
23426
23467
|
IsoDateSchema = exports_external.string().datetime();
|
|
@@ -23433,28 +23474,8 @@ var init_common = __esm(() => {
|
|
|
23433
23474
|
offset: exports_external.number().int().min(0).default(0)
|
|
23434
23475
|
});
|
|
23435
23476
|
MetadataSchema = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
23436
|
-
ChannelTypeSchema = exports_external.enum(
|
|
23437
|
-
|
|
23438
|
-
"whatsapp-cloud",
|
|
23439
|
-
"discord",
|
|
23440
|
-
"slack",
|
|
23441
|
-
"telegram",
|
|
23442
|
-
"a2a",
|
|
23443
|
-
"gupshup",
|
|
23444
|
-
"twilio-whatsapp",
|
|
23445
|
-
"internal"
|
|
23446
|
-
]);
|
|
23447
|
-
ContentTypeSchema = exports_external.enum([
|
|
23448
|
-
"text",
|
|
23449
|
-
"audio",
|
|
23450
|
-
"image",
|
|
23451
|
-
"video",
|
|
23452
|
-
"document",
|
|
23453
|
-
"sticker",
|
|
23454
|
-
"contact",
|
|
23455
|
-
"location",
|
|
23456
|
-
"reaction"
|
|
23457
|
-
]);
|
|
23477
|
+
ChannelTypeSchema = exports_external.enum(CHANNEL_TYPES);
|
|
23478
|
+
ContentTypeSchema = exports_external.enum(CONTENT_TYPES);
|
|
23458
23479
|
EventTypeSchema = exports_external.enum(CORE_EVENT_TYPES);
|
|
23459
23480
|
JobStatusSchema = exports_external.enum(["pending", "running", "completed", "failed", "cancelled"]);
|
|
23460
23481
|
ProviderSchemaEnum = exports_external.enum(PROVIDER_SCHEMAS);
|
|
@@ -24457,46 +24478,6 @@ var init_schemas = __esm(() => {
|
|
|
24457
24478
|
init_hermes();
|
|
24458
24479
|
});
|
|
24459
24480
|
|
|
24460
|
-
// ../core/src/types/channel.ts
|
|
24461
|
-
var CHANNEL_TYPES, CONTENT_TYPES;
|
|
24462
|
-
var init_channel = __esm(() => {
|
|
24463
|
-
CHANNEL_TYPES = [
|
|
24464
|
-
"whatsapp-baileys",
|
|
24465
|
-
"whatsapp-cloud",
|
|
24466
|
-
"discord",
|
|
24467
|
-
"slack",
|
|
24468
|
-
"telegram",
|
|
24469
|
-
"a2a",
|
|
24470
|
-
"gupshup",
|
|
24471
|
-
"hermes",
|
|
24472
|
-
"twilio-whatsapp",
|
|
24473
|
-
"internal"
|
|
24474
|
-
];
|
|
24475
|
-
CONTENT_TYPES = [
|
|
24476
|
-
"text",
|
|
24477
|
-
"audio",
|
|
24478
|
-
"image",
|
|
24479
|
-
"video",
|
|
24480
|
-
"document",
|
|
24481
|
-
"sticker",
|
|
24482
|
-
"contact",
|
|
24483
|
-
"location",
|
|
24484
|
-
"reaction",
|
|
24485
|
-
"poll",
|
|
24486
|
-
"poll_update",
|
|
24487
|
-
"event",
|
|
24488
|
-
"live_location",
|
|
24489
|
-
"product",
|
|
24490
|
-
"pix",
|
|
24491
|
-
"template",
|
|
24492
|
-
"location_request",
|
|
24493
|
-
"flow",
|
|
24494
|
-
"edit",
|
|
24495
|
-
"delete",
|
|
24496
|
-
"unknown"
|
|
24497
|
-
];
|
|
24498
|
-
});
|
|
24499
|
-
|
|
24500
24481
|
// ../core/src/types/whatsapp-cloud.ts
|
|
24501
24482
|
var init_whatsapp_cloud2 = () => {};
|
|
24502
24483
|
|
|
@@ -162992,6 +162973,7 @@ __export(exports_schema, {
|
|
|
162992
162973
|
var channelTypes, agentTypes, agentSystems, agentEntityTypes, debounceMode, splitDelayMode, supersedeMode, replyFilterMode, agentSessionStrategies, ruleTypes, accessModes, settingValueTypes, apiKeyStatuses, apiKeyProfiles, eventTypes, contentTypes, chatTypes, messageSources, messageTypes, messageStatuses, deliveryStatuses, jobStatuses, providerSchemas, agentProviders, agents, agentRoutes, agentSessions, apiKeys, apiKeyAuditLogs, apiKeysRelations, apiKeyAuditLogsRelations, instances, whatsappTemplates, persons, platformIdentities, conversations, chats, chatParticipants, omniGroups, messages2, omniEvents, handoffLogs, closeContactOutcomes, closeContactLogs, accessRules, globalSettings, settingChangeHistory, batchJobs, syncJobTypes, syncJobs, mediaContent, chatIdMappings, pluginStorage, agentProvidersRelations, agentsRelations, instancesRelations, syncJobsRelations, personsRelations, platformIdentitiesRelations, conversationsRelations, chatsRelations, chatParticipantsRelations, messagesRelations, omniEventsRelations, accessRulesRelations, globalSettingsRelations, settingChangeHistoryRelations, batchJobsRelations, mediaContentRelations, chatIdMappingsRelations, deadLetterStatuses, deadLetterEvents, payloadStorageConfig, payloadStages, eventPayloads, webhookSources, conditionOperators, actionTypes, automationDebounceModes, automations2, automationLogStatuses, automationLogs, consumerOffsets, automationsRelations, automationLogsRelations, triggerLogs, triggerLogsRelations, agentRoutesRelations, agentTaskStatuses, agentTasks, agentTasksRelations, turnStatuses, turnActions, turns, turnsRelations, followUpDisarmReasons, chatFollowUpState, chatFollowUpStateRelations, processedEvents, genieHosts, tenantStatuses, principalTypes, principalStatuses, tenantRoles, membershipStatuses, credentialClasses, authCredentialStatuses, platformApiKeyStatuses, tenants, principals, tenantMemberships, tenantRolePolicies, platformApiKeys, tenantKeyLineage, authCredentials, tenantAuditLogs, platformAuditLogs, platformProviderCatalog, tenantProviderConfig, platformSettings, tenantSettings, platformSettingChangeHistory, tenantSettingChangeHistory, platformPluginStorage, tenantPluginStorage, platformPayloadStorageConfig, tenantPayloadStorageOverrides, tenantMigrationLedger, tenantMigrationLedgerHistory;
|
|
162993
162974
|
var init_schema2 = __esm(() => {
|
|
162994
162975
|
init_events();
|
|
162976
|
+
init_types5();
|
|
162995
162977
|
init_drizzle_orm();
|
|
162996
162978
|
init_pg_core();
|
|
162997
162979
|
channelTypes = [
|
|
@@ -163029,17 +163011,7 @@ var init_schema2 = __esm(() => {
|
|
|
163029
163011
|
"console-admin"
|
|
163030
163012
|
];
|
|
163031
163013
|
eventTypes = CORE_EVENT_TYPES;
|
|
163032
|
-
contentTypes =
|
|
163033
|
-
"text",
|
|
163034
|
-
"audio",
|
|
163035
|
-
"image",
|
|
163036
|
-
"video",
|
|
163037
|
-
"document",
|
|
163038
|
-
"sticker",
|
|
163039
|
-
"contact",
|
|
163040
|
-
"location",
|
|
163041
|
-
"reaction"
|
|
163042
|
-
];
|
|
163014
|
+
contentTypes = CONTENT_TYPES;
|
|
163043
163015
|
chatTypes = [
|
|
163044
163016
|
"dm",
|
|
163045
163017
|
"group",
|
|
@@ -241357,7 +241329,7 @@ var init_sentry_scrub = __esm(() => {
|
|
|
241357
241329
|
var require_package7 = __commonJS((exports, module) => {
|
|
241358
241330
|
module.exports = {
|
|
241359
241331
|
name: "@omni/api",
|
|
241360
|
-
version: "2.260730.
|
|
241332
|
+
version: "2.260730.3",
|
|
241361
241333
|
type: "module",
|
|
241362
241334
|
exports: {
|
|
241363
241335
|
".": {
|