@pellux/goodvibes-contracts 0.33.8 → 0.33.9

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.
@@ -3,7 +3,7 @@
3
3
  "product": {
4
4
  "id": "goodvibes",
5
5
  "surface": "operator",
6
- "version": "0.33.8"
6
+ "version": "0.33.9"
7
7
  },
8
8
  "auth": {
9
9
  "modes": [
@@ -20327,11 +20327,99 @@
20327
20327
  },
20328
20328
  "createdAt": {
20329
20329
  "type": "number"
20330
+ },
20331
+ "session": {
20332
+ "type": "object",
20333
+ "properties": {
20334
+ "id": {
20335
+ "type": "string"
20336
+ },
20337
+ "kind": {
20338
+ "type": "string",
20339
+ "enum": [
20340
+ "companion-chat"
20341
+ ]
20342
+ },
20343
+ "title": {
20344
+ "type": "string"
20345
+ },
20346
+ "model": {
20347
+ "anyOf": [
20348
+ {
20349
+ "type": "string"
20350
+ },
20351
+ {
20352
+ "type": "null"
20353
+ }
20354
+ ]
20355
+ },
20356
+ "provider": {
20357
+ "anyOf": [
20358
+ {
20359
+ "type": "string"
20360
+ },
20361
+ {
20362
+ "type": "null"
20363
+ }
20364
+ ]
20365
+ },
20366
+ "systemPrompt": {
20367
+ "anyOf": [
20368
+ {
20369
+ "type": "string"
20370
+ },
20371
+ {
20372
+ "type": "null"
20373
+ }
20374
+ ]
20375
+ },
20376
+ "status": {
20377
+ "type": "string",
20378
+ "enum": [
20379
+ "active",
20380
+ "closed"
20381
+ ]
20382
+ },
20383
+ "createdAt": {
20384
+ "type": "number"
20385
+ },
20386
+ "updatedAt": {
20387
+ "type": "number"
20388
+ },
20389
+ "closedAt": {
20390
+ "anyOf": [
20391
+ {
20392
+ "type": "number"
20393
+ },
20394
+ {
20395
+ "type": "null"
20396
+ }
20397
+ ]
20398
+ },
20399
+ "messageCount": {
20400
+ "type": "number"
20401
+ }
20402
+ },
20403
+ "required": [
20404
+ "id",
20405
+ "kind",
20406
+ "title",
20407
+ "model",
20408
+ "provider",
20409
+ "systemPrompt",
20410
+ "status",
20411
+ "createdAt",
20412
+ "updatedAt",
20413
+ "closedAt",
20414
+ "messageCount"
20415
+ ],
20416
+ "additionalProperties": false
20330
20417
  }
20331
20418
  },
20332
20419
  "required": [
20333
20420
  "sessionId",
20334
- "createdAt"
20421
+ "createdAt",
20422
+ "session"
20335
20423
  ],
20336
20424
  "additionalProperties": false
20337
20425
  },
@@ -20549,6 +20637,158 @@
20549
20637
  },
20550
20638
  "invokable": true
20551
20639
  },
20640
+ {
20641
+ "id": "companion.chat.sessions.list",
20642
+ "title": "List Companion Chat Sessions",
20643
+ "description": "List active companion-chat sessions. Pass `includeClosed` to include recently closed sessions.",
20644
+ "category": "companion",
20645
+ "source": "builtin",
20646
+ "access": "authenticated",
20647
+ "transport": [
20648
+ "http",
20649
+ "ws"
20650
+ ],
20651
+ "scopes": [
20652
+ "read:sessions"
20653
+ ],
20654
+ "http": {
20655
+ "method": "GET",
20656
+ "path": "/api/companion/chat/sessions"
20657
+ },
20658
+ "inputSchema": {
20659
+ "type": "object",
20660
+ "properties": {
20661
+ "includeClosed": {
20662
+ "type": "boolean"
20663
+ },
20664
+ "limit": {
20665
+ "type": "number"
20666
+ }
20667
+ },
20668
+ "additionalProperties": false
20669
+ },
20670
+ "outputSchema": {
20671
+ "type": "object",
20672
+ "properties": {
20673
+ "sessions": {
20674
+ "type": "array",
20675
+ "items": {
20676
+ "type": "object",
20677
+ "properties": {
20678
+ "id": {
20679
+ "type": "string"
20680
+ },
20681
+ "kind": {
20682
+ "type": "string",
20683
+ "enum": [
20684
+ "companion-chat"
20685
+ ]
20686
+ },
20687
+ "title": {
20688
+ "type": "string"
20689
+ },
20690
+ "model": {
20691
+ "anyOf": [
20692
+ {
20693
+ "type": "string"
20694
+ },
20695
+ {
20696
+ "type": "null"
20697
+ }
20698
+ ]
20699
+ },
20700
+ "provider": {
20701
+ "anyOf": [
20702
+ {
20703
+ "type": "string"
20704
+ },
20705
+ {
20706
+ "type": "null"
20707
+ }
20708
+ ]
20709
+ },
20710
+ "systemPrompt": {
20711
+ "anyOf": [
20712
+ {
20713
+ "type": "string"
20714
+ },
20715
+ {
20716
+ "type": "null"
20717
+ }
20718
+ ]
20719
+ },
20720
+ "status": {
20721
+ "type": "string",
20722
+ "enum": [
20723
+ "active",
20724
+ "closed"
20725
+ ]
20726
+ },
20727
+ "createdAt": {
20728
+ "type": "number"
20729
+ },
20730
+ "updatedAt": {
20731
+ "type": "number"
20732
+ },
20733
+ "closedAt": {
20734
+ "anyOf": [
20735
+ {
20736
+ "type": "number"
20737
+ },
20738
+ {
20739
+ "type": "null"
20740
+ }
20741
+ ]
20742
+ },
20743
+ "messageCount": {
20744
+ "type": "number"
20745
+ }
20746
+ },
20747
+ "required": [
20748
+ "id",
20749
+ "kind",
20750
+ "title",
20751
+ "model",
20752
+ "provider",
20753
+ "systemPrompt",
20754
+ "status",
20755
+ "createdAt",
20756
+ "updatedAt",
20757
+ "closedAt",
20758
+ "messageCount"
20759
+ ],
20760
+ "additionalProperties": false
20761
+ }
20762
+ },
20763
+ "totals": {
20764
+ "type": "object",
20765
+ "properties": {
20766
+ "sessions": {
20767
+ "type": "number"
20768
+ },
20769
+ "active": {
20770
+ "type": "number"
20771
+ },
20772
+ "closed": {
20773
+ "type": "number"
20774
+ }
20775
+ },
20776
+ "required": [
20777
+ "sessions",
20778
+ "active",
20779
+ "closed"
20780
+ ],
20781
+ "additionalProperties": false
20782
+ }
20783
+ },
20784
+ "required": [
20785
+ "sessions",
20786
+ "totals"
20787
+ ],
20788
+ "additionalProperties": false
20789
+ },
20790
+ "invokable": true
20791
+ },
20552
20792
  {
20553
20793
  "id": "companion.chat.sessions.update",
20554
20794
  "title": "Update Companion Chat Session",
@@ -68753,10 +68993,10 @@
68753
68993
  }
68754
68994
  ],
68755
68995
  "schemaCoverage": {
68756
- "methods": 263,
68757
- "typedInputs": 263,
68996
+ "methods": 264,
68997
+ "typedInputs": 264,
68758
68998
  "genericInputs": 0,
68759
- "typedOutputs": 263,
68999
+ "typedOutputs": 264,
68760
69000
  "genericOutputs": 0
68761
69001
  },
68762
69002
  "eventCoverage": {
@@ -31,6 +31,11 @@ export type CompanionChatMessage = {
31
31
  content: string;
32
32
  createdAt: number;
33
33
  };
34
+ export type CompanionChatSessionsListTotals = {
35
+ sessions: number;
36
+ active: number;
37
+ closed: number;
38
+ };
34
39
  export interface OperatorMethodInputMap {
35
40
  "accounts.snapshot": {};
36
41
  "approvals.approve": {
@@ -518,6 +523,10 @@ export interface OperatorMethodInputMap {
518
523
  "companion.chat.sessions.get": {
519
524
  sessionId: string;
520
525
  };
526
+ "companion.chat.sessions.list": {
527
+ includeClosed?: boolean;
528
+ limit?: number;
529
+ };
521
530
  "companion.chat.sessions.update": ({
522
531
  sessionId: string;
523
532
  title?: string;
@@ -4439,11 +4448,13 @@ export interface OperatorMethodOutputMap {
4439
4448
  messageId: string;
4440
4449
  };
4441
4450
  "companion.chat.messages.list": {
4451
+ sessionId: string;
4442
4452
  messages: readonly CompanionChatMessage[];
4443
4453
  };
4444
4454
  "companion.chat.sessions.create": {
4445
4455
  sessionId: string;
4446
4456
  createdAt: number;
4457
+ session: CompanionChatSession;
4447
4458
  };
4448
4459
  "companion.chat.sessions.delete": {
4449
4460
  sessionId: string;
@@ -4453,6 +4464,10 @@ export interface OperatorMethodOutputMap {
4453
4464
  session: CompanionChatSession;
4454
4465
  messages: readonly CompanionChatMessage[];
4455
4466
  };
4467
+ "companion.chat.sessions.list": {
4468
+ sessions: readonly CompanionChatSession[];
4469
+ totals: CompanionChatSessionsListTotals;
4470
+ };
4456
4471
  "companion.chat.sessions.update": {
4457
4472
  session: CompanionChatSession;
4458
4473
  };