@automagik/omni 2.260714.1 → 2.260714.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 CHANGED
@@ -71395,7 +71395,16 @@ var init_schema2 = __esm(() => {
71395
71395
  accessModes = ["disabled", "blocklist", "allowlist"];
71396
71396
  settingValueTypes = ["string", "integer", "boolean", "json", "secret"];
71397
71397
  apiKeyStatuses = ["active", "revoked", "expired"];
71398
- apiKeyProfiles = ["cs", "personal", "scout", "coworker", "admin"];
71398
+ apiKeyProfiles = [
71399
+ "cs",
71400
+ "personal",
71401
+ "scout",
71402
+ "coworker",
71403
+ "admin",
71404
+ "console-viewer",
71405
+ "console-operator",
71406
+ "console-admin"
71407
+ ];
71399
71408
  eventTypes = CORE_EVENT_TYPES;
71400
71409
  contentTypes = [
71401
71410
  "text",
@@ -73419,8 +73428,80 @@ var init_api_keys = __esm(() => {
73419
73428
  });
73420
73429
 
73421
73430
  // ../api/src/constants/profiles.ts
73422
- var COWORKER_DEFAULT_DENYLIST_PRESET_KEY = "khal-os-core", PROFILES;
73431
+ var COWORKER_DEFAULT_DENYLIST_PRESET_KEY = "khal-os-core", CONSOLE_READ_SCOPES, CONSOLE_OPERATE_SCOPES, CONSOLE_ADMINISTRATION_SCOPES, CONSOLE_VIEWER_SCOPES, CONSOLE_OPERATOR_SCOPES, CONSOLE_ADMIN_SCOPES, PROFILES;
73423
73432
  var init_profiles = __esm(() => {
73433
+ CONSOLE_READ_SCOPES = [
73434
+ "access:read",
73435
+ "agent-state:read",
73436
+ "agent-tasks:read",
73437
+ "agents:read",
73438
+ "auth:validate",
73439
+ "automations:read",
73440
+ "batch-jobs:read",
73441
+ "chats:read",
73442
+ "context:read",
73443
+ "conversations:read",
73444
+ "dead-letters:read",
73445
+ "event-ops:read",
73446
+ "events:read",
73447
+ "follow-up:read",
73448
+ "handoffs:read",
73449
+ "instances:read",
73450
+ "journeys:read",
73451
+ "logs:read",
73452
+ "media:read",
73453
+ "messages:read",
73454
+ "metrics:read",
73455
+ "payloads:read",
73456
+ "persons:read",
73457
+ "providers:read",
73458
+ "routes:read",
73459
+ "settings:read",
73460
+ "trust:read",
73461
+ "voice:read",
73462
+ "webhooks:read"
73463
+ ];
73464
+ CONSOLE_OPERATE_SCOPES = [
73465
+ "agent-state:write",
73466
+ "agent-tasks:write",
73467
+ "automations:write",
73468
+ "batch-jobs:write",
73469
+ "chats:write",
73470
+ "context:write",
73471
+ "conversations:write",
73472
+ "dead-letters:write",
73473
+ "event-ops:write",
73474
+ "events:write",
73475
+ "follow-up:write",
73476
+ "instances:write",
73477
+ "media:write",
73478
+ "messages:send",
73479
+ "messages:write",
73480
+ "persons:write",
73481
+ "routes:write",
73482
+ "tts:synthesize",
73483
+ "turns:admin",
73484
+ "turns:close",
73485
+ "voice:write"
73486
+ ];
73487
+ CONSOLE_ADMINISTRATION_SCOPES = [
73488
+ "access:write",
73489
+ "agents:write",
73490
+ "keys:read",
73491
+ "keys:write",
73492
+ "payloads:write",
73493
+ "providers:write",
73494
+ "settings:write",
73495
+ "trust:write",
73496
+ "webhooks:write"
73497
+ ];
73498
+ CONSOLE_VIEWER_SCOPES = [...CONSOLE_READ_SCOPES];
73499
+ CONSOLE_OPERATOR_SCOPES = [...CONSOLE_READ_SCOPES, ...CONSOLE_OPERATE_SCOPES];
73500
+ CONSOLE_ADMIN_SCOPES = [
73501
+ ...CONSOLE_READ_SCOPES,
73502
+ ...CONSOLE_OPERATE_SCOPES,
73503
+ ...CONSOLE_ADMINISTRATION_SCOPES
73504
+ ];
73424
73505
  PROFILES = {
73425
73506
  cs: {
73426
73507
  buckets: ["outgoing", "read", "context", "turn"],
@@ -73451,6 +73532,27 @@ var init_profiles = __esm(() => {
73451
73532
  buckets: ["outgoing", "read", "context", "turn", "multimodal_in", "multimodal_out"],
73452
73533
  requiresLocks: [],
73453
73534
  adminOnlyFlag: true
73535
+ },
73536
+ "console-viewer": {
73537
+ buckets: [],
73538
+ requiresLocks: [],
73539
+ defaultOverrides: {
73540
+ extraScopes: CONSOLE_VIEWER_SCOPES
73541
+ }
73542
+ },
73543
+ "console-operator": {
73544
+ buckets: [],
73545
+ requiresLocks: [],
73546
+ defaultOverrides: {
73547
+ extraScopes: CONSOLE_OPERATOR_SCOPES
73548
+ }
73549
+ },
73550
+ "console-admin": {
73551
+ buckets: [],
73552
+ requiresLocks: [],
73553
+ defaultOverrides: {
73554
+ extraScopes: CONSOLE_ADMIN_SCOPES
73555
+ }
73454
73556
  }
73455
73557
  };
73456
73558
  });
@@ -125062,7 +125164,7 @@ import { fileURLToPath } from "url";
125062
125164
  // package.json
125063
125165
  var package_default = {
125064
125166
  name: "@automagik/omni",
125065
- version: "2.260714.1",
125167
+ version: "2.260714.3",
125066
125168
  description: "LLM-optimized CLI for Omni",
125067
125169
  type: "module",
125068
125170
  bin: {
@@ -55,7 +55,7 @@ export interface paths {
55
55
  patch: operations["updateAgent"];
56
56
  trace?: never;
57
57
  };
58
- "/api/v2/auth/validate": {
58
+ "/auth/validate": {
59
59
  parameters: {
60
60
  query?: never;
61
61
  header?: never;