@pellux/goodvibes-contracts 0.33.8 → 0.33.10

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.10"
7
7
  },
8
8
  "auth": {
9
9
  "modes": [
@@ -20157,7 +20157,7 @@
20157
20157
  {
20158
20158
  "id": "companion.chat.messages.create",
20159
20159
  "title": "Send Companion Chat Message",
20160
- "description": "Post a user message to a companion-chat session. Accepts either `body` or `content` in the payload; `body` wins when both are provided.",
20160
+ "description": "Post a user message to a companion-chat session. Accepts either `body` or `content` in the payload; `body` wins when both are provided. Attachments reference artifacts created through `artifacts.create`.",
20161
20161
  "category": "companion",
20162
20162
  "source": "builtin",
20163
20163
  "access": "authenticated",
@@ -20181,6 +20181,29 @@
20181
20181
  "content": {
20182
20182
  "type": "string"
20183
20183
  },
20184
+ "attachments": {
20185
+ "type": "array",
20186
+ "items": {
20187
+ "type": "object",
20188
+ "properties": {
20189
+ "artifactId": {
20190
+ "type": "string"
20191
+ },
20192
+ "label": {
20193
+ "type": "string"
20194
+ },
20195
+ "metadata": {
20196
+ "type": "object",
20197
+ "properties": {},
20198
+ "additionalProperties": false
20199
+ }
20200
+ },
20201
+ "required": [
20202
+ "artifactId"
20203
+ ],
20204
+ "additionalProperties": false
20205
+ }
20206
+ },
20184
20207
  "metadata": {
20185
20208
  "type": "object",
20186
20209
  "properties": {},
@@ -20260,6 +20283,91 @@
20260
20283
  "content": {
20261
20284
  "type": "string"
20262
20285
  },
20286
+ "attachments": {
20287
+ "type": "array",
20288
+ "items": {
20289
+ "type": "object",
20290
+ "properties": {
20291
+ "id": {
20292
+ "type": "string"
20293
+ },
20294
+ "artifactId": {
20295
+ "type": "string"
20296
+ },
20297
+ "kind": {
20298
+ "type": "string"
20299
+ },
20300
+ "mimeType": {
20301
+ "type": "string"
20302
+ },
20303
+ "filename": {
20304
+ "type": "string"
20305
+ },
20306
+ "sizeBytes": {
20307
+ "type": "number"
20308
+ },
20309
+ "sha256": {
20310
+ "type": "string"
20311
+ },
20312
+ "createdAt": {
20313
+ "type": "number"
20314
+ },
20315
+ "expiresAt": {
20316
+ "type": "number"
20317
+ },
20318
+ "sourceUri": {
20319
+ "type": "string"
20320
+ },
20321
+ "acquisitionMode": {
20322
+ "type": "string"
20323
+ },
20324
+ "fetchMode": {
20325
+ "type": "string"
20326
+ },
20327
+ "label": {
20328
+ "type": "string"
20329
+ },
20330
+ "metadata": {
20331
+ "type": "object",
20332
+ "additionalProperties": {
20333
+ "anyOf": [
20334
+ {
20335
+ "type": "string"
20336
+ },
20337
+ {
20338
+ "type": "number"
20339
+ },
20340
+ {
20341
+ "type": "boolean"
20342
+ },
20343
+ {
20344
+ "type": "null"
20345
+ },
20346
+ {
20347
+ "type": "object",
20348
+ "additionalProperties": {}
20349
+ },
20350
+ {
20351
+ "type": "array",
20352
+ "items": {}
20353
+ }
20354
+ ]
20355
+ }
20356
+ }
20357
+ },
20358
+ "required": [
20359
+ "id",
20360
+ "artifactId",
20361
+ "kind",
20362
+ "mimeType",
20363
+ "sizeBytes",
20364
+ "sha256",
20365
+ "createdAt",
20366
+ "metadata"
20367
+ ],
20368
+ "additionalProperties": true
20369
+ }
20370
+ },
20263
20371
  "createdAt": {
20264
20372
  "type": "number"
20265
20373
  }
@@ -20269,6 +20377,7 @@
20269
20377
  "sessionId",
20270
20378
  "role",
20271
20379
  "content",
20380
+ "attachments",
20272
20381
  "createdAt"
20273
20382
  ],
20274
20383
  "additionalProperties": false
@@ -20327,11 +20436,99 @@
20327
20436
  },
20328
20437
  "createdAt": {
20329
20438
  "type": "number"
20439
+ },
20440
+ "session": {
20441
+ "type": "object",
20442
+ "properties": {
20443
+ "id": {
20444
+ "type": "string"
20445
+ },
20446
+ "kind": {
20447
+ "type": "string",
20448
+ "enum": [
20449
+ "companion-chat"
20450
+ ]
20451
+ },
20452
+ "title": {
20453
+ "type": "string"
20454
+ },
20455
+ "model": {
20456
+ "anyOf": [
20457
+ {
20458
+ "type": "string"
20459
+ },
20460
+ {
20461
+ "type": "null"
20462
+ }
20463
+ ]
20464
+ },
20465
+ "provider": {
20466
+ "anyOf": [
20467
+ {
20468
+ "type": "string"
20469
+ },
20470
+ {
20471
+ "type": "null"
20472
+ }
20473
+ ]
20474
+ },
20475
+ "systemPrompt": {
20476
+ "anyOf": [
20477
+ {
20478
+ "type": "string"
20479
+ },
20480
+ {
20481
+ "type": "null"
20482
+ }
20483
+ ]
20484
+ },
20485
+ "status": {
20486
+ "type": "string",
20487
+ "enum": [
20488
+ "active",
20489
+ "closed"
20490
+ ]
20491
+ },
20492
+ "createdAt": {
20493
+ "type": "number"
20494
+ },
20495
+ "updatedAt": {
20496
+ "type": "number"
20497
+ },
20498
+ "closedAt": {
20499
+ "anyOf": [
20500
+ {
20501
+ "type": "number"
20502
+ },
20503
+ {
20504
+ "type": "null"
20505
+ }
20506
+ ]
20507
+ },
20508
+ "messageCount": {
20509
+ "type": "number"
20510
+ }
20511
+ },
20512
+ "required": [
20513
+ "id",
20514
+ "kind",
20515
+ "title",
20516
+ "model",
20517
+ "provider",
20518
+ "systemPrompt",
20519
+ "status",
20520
+ "createdAt",
20521
+ "updatedAt",
20522
+ "closedAt",
20523
+ "messageCount"
20524
+ ],
20525
+ "additionalProperties": false
20330
20526
  }
20331
20527
  },
20332
20528
  "required": [
20333
20529
  "sessionId",
20334
- "createdAt"
20530
+ "createdAt",
20531
+ "session"
20335
20532
  ],
20336
20533
  "additionalProperties": false
20337
20534
  },
@@ -20526,6 +20723,91 @@
20526
20723
  "content": {
20527
20724
  "type": "string"
20528
20725
  },
20726
+ "attachments": {
20727
+ "type": "array",
20728
+ "items": {
20729
+ "type": "object",
20730
+ "properties": {
20731
+ "id": {
20732
+ "type": "string"
20733
+ },
20734
+ "artifactId": {
20735
+ "type": "string"
20736
+ },
20737
+ "kind": {
20738
+ "type": "string"
20739
+ },
20740
+ "mimeType": {
20741
+ "type": "string"
20742
+ },
20743
+ "filename": {
20744
+ "type": "string"
20745
+ },
20746
+ "sizeBytes": {
20747
+ "type": "number"
20748
+ },
20749
+ "sha256": {
20750
+ "type": "string"
20751
+ },
20752
+ "createdAt": {
20753
+ "type": "number"
20754
+ },
20755
+ "expiresAt": {
20756
+ "type": "number"
20757
+ },
20758
+ "sourceUri": {
20759
+ "type": "string"
20760
+ },
20761
+ "acquisitionMode": {
20762
+ "type": "string"
20763
+ },
20764
+ "fetchMode": {
20765
+ "type": "string"
20766
+ },
20767
+ "label": {
20768
+ "type": "string"
20769
+ },
20770
+ "metadata": {
20771
+ "type": "object",
20772
+ "additionalProperties": {
20773
+ "anyOf": [
20774
+ {
20775
+ "type": "string"
20776
+ },
20777
+ {
20778
+ "type": "number"
20779
+ },
20780
+ {
20781
+ "type": "boolean"
20782
+ },
20783
+ {
20784
+ "type": "null"
20785
+ },
20786
+ {
20787
+ "type": "object",
20788
+ "additionalProperties": {}
20789
+ },
20790
+ {
20791
+ "type": "array",
20792
+ "items": {}
20793
+ }
20794
+ ]
20795
+ }
20796
+ }
20797
+ },
20798
+ "required": [
20799
+ "id",
20800
+ "artifactId",
20801
+ "kind",
20802
+ "mimeType",
20803
+ "sizeBytes",
20804
+ "sha256",
20805
+ "createdAt",
20806
+ "metadata"
20807
+ ],
20808
+ "additionalProperties": true
20809
+ }
20810
+ },
20529
20811
  "createdAt": {
20530
20812
  "type": "number"
20531
20813
  }
@@ -20535,6 +20817,7 @@
20535
20817
  "sessionId",
20536
20818
  "role",
20537
20819
  "content",
20820
+ "attachments",
20538
20821
  "createdAt"
20539
20822
  ],
20540
20823
  "additionalProperties": false
@@ -20549,6 +20832,158 @@
20549
20832
  },
20550
20833
  "invokable": true
20551
20834
  },
20835
+ {
20836
+ "id": "companion.chat.sessions.list",
20837
+ "title": "List Companion Chat Sessions",
20838
+ "description": "List active companion-chat sessions. Pass `includeClosed` to include recently closed sessions.",
20839
+ "category": "companion",
20840
+ "source": "builtin",
20841
+ "access": "authenticated",
20842
+ "transport": [
20843
+ "http",
20844
+ "ws"
20845
+ ],
20846
+ "scopes": [
20847
+ "read:sessions"
20848
+ ],
20849
+ "http": {
20850
+ "method": "GET",
20851
+ "path": "/api/companion/chat/sessions"
20852
+ },
20853
+ "inputSchema": {
20854
+ "type": "object",
20855
+ "properties": {
20856
+ "includeClosed": {
20857
+ "type": "boolean"
20858
+ },
20859
+ "limit": {
20860
+ "type": "number"
20861
+ }
20862
+ },
20863
+ "additionalProperties": false
20864
+ },
20865
+ "outputSchema": {
20866
+ "type": "object",
20867
+ "properties": {
20868
+ "sessions": {
20869
+ "type": "array",
20870
+ "items": {
20871
+ "type": "object",
20872
+ "properties": {
20873
+ "id": {
20874
+ "type": "string"
20875
+ },
20876
+ "kind": {
20877
+ "type": "string",
20878
+ "enum": [
20879
+ "companion-chat"
20880
+ ]
20881
+ },
20882
+ "title": {
20883
+ "type": "string"
20884
+ },
20885
+ "model": {
20886
+ "anyOf": [
20887
+ {
20888
+ "type": "string"
20889
+ },
20890
+ {
20891
+ "type": "null"
20892
+ }
20893
+ ]
20894
+ },
20895
+ "provider": {
20896
+ "anyOf": [
20897
+ {
20898
+ "type": "string"
20899
+ },
20900
+ {
20901
+ "type": "null"
20902
+ }
20903
+ ]
20904
+ },
20905
+ "systemPrompt": {
20906
+ "anyOf": [
20907
+ {
20908
+ "type": "string"
20909
+ },
20910
+ {
20911
+ "type": "null"
20912
+ }
20913
+ ]
20914
+ },
20915
+ "status": {
20916
+ "type": "string",
20917
+ "enum": [
20918
+ "active",
20919
+ "closed"
20920
+ ]
20921
+ },
20922
+ "createdAt": {
20923
+ "type": "number"
20924
+ },
20925
+ "updatedAt": {
20926
+ "type": "number"
20927
+ },
20928
+ "closedAt": {
20929
+ "anyOf": [
20930
+ {
20931
+ "type": "number"
20932
+ },
20933
+ {
20934
+ "type": "null"
20935
+ }
20936
+ ]
20937
+ },
20938
+ "messageCount": {
20939
+ "type": "number"
20940
+ }
20941
+ },
20942
+ "required": [
20943
+ "id",
20944
+ "kind",
20945
+ "title",
20946
+ "model",
20947
+ "provider",
20948
+ "systemPrompt",
20949
+ "status",
20950
+ "createdAt",
20951
+ "updatedAt",
20952
+ "closedAt",
20953
+ "messageCount"
20954
+ ],
20955
+ "additionalProperties": false
20956
+ }
20957
+ },
20958
+ "totals": {
20959
+ "type": "object",
20960
+ "properties": {
20961
+ "sessions": {
20962
+ "type": "number"
20963
+ },
20964
+ "active": {
20965
+ "type": "number"
20966
+ },
20967
+ "closed": {
20968
+ "type": "number"
20969
+ }
20970
+ },
20971
+ "required": [
20972
+ "sessions",
20973
+ "active",
20974
+ "closed"
20975
+ ],
20976
+ "additionalProperties": false
20977
+ }
20978
+ },
20979
+ "required": [
20980
+ "sessions",
20981
+ "totals"
20982
+ ],
20983
+ "additionalProperties": false
20984
+ },
20985
+ "invokable": true
20986
+ },
20552
20987
  {
20553
20988
  "id": "companion.chat.sessions.update",
20554
20989
  "title": "Update Companion Chat Session",
@@ -68753,10 +69188,10 @@
68753
69188
  }
68754
69189
  ],
68755
69190
  "schemaCoverage": {
68756
- "methods": 263,
68757
- "typedInputs": 263,
69191
+ "methods": 264,
69192
+ "typedInputs": 264,
68758
69193
  "genericInputs": 0,
68759
- "typedOutputs": 263,
69194
+ "typedOutputs": 264,
68760
69195
  "genericOutputs": 0
68761
69196
  },
68762
69197
  "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
  };