@pellux/goodvibes-contracts 0.33.7 → 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.
- package/artifacts/operator-contract.json +387 -207
- package/dist/generated/foundation-client-types.d.ts +101 -1
- package/dist/generated/foundation-client-types.d.ts.map +1 -1
- package/dist/generated/foundation-metadata.d.ts +2 -2
- package/dist/generated/foundation-metadata.js +2 -2
- package/dist/generated/operator-contract.d.ts.map +1 -1
- package/dist/generated/operator-contract.js +387 -207
- package/dist/generated/operator-method-ids.d.ts +1 -1
- package/dist/generated/operator-method-ids.d.ts.map +1 -1
- package/dist/generated/operator-method-ids.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,33 @@ export type SharedSessionConversationRouteOutput = {
|
|
|
9
9
|
routedTo: "conversation";
|
|
10
10
|
sessionId: string;
|
|
11
11
|
};
|
|
12
|
+
export type CompanionChatSessionStatus = "active" | "closed";
|
|
13
|
+
export type CompanionChatMessageRole = "assistant" | "user";
|
|
14
|
+
export type CompanionChatSession = {
|
|
15
|
+
id: string;
|
|
16
|
+
kind: "companion-chat";
|
|
17
|
+
title: string;
|
|
18
|
+
model: null | string;
|
|
19
|
+
provider: null | string;
|
|
20
|
+
systemPrompt: null | string;
|
|
21
|
+
status: CompanionChatSessionStatus;
|
|
22
|
+
createdAt: number;
|
|
23
|
+
updatedAt: number;
|
|
24
|
+
closedAt: null | number;
|
|
25
|
+
messageCount: number;
|
|
26
|
+
};
|
|
27
|
+
export type CompanionChatMessage = {
|
|
28
|
+
id: string;
|
|
29
|
+
sessionId: string;
|
|
30
|
+
role: CompanionChatMessageRole;
|
|
31
|
+
content: string;
|
|
32
|
+
createdAt: number;
|
|
33
|
+
};
|
|
34
|
+
export type CompanionChatSessionsListTotals = {
|
|
35
|
+
sessions: number;
|
|
36
|
+
active: number;
|
|
37
|
+
closed: number;
|
|
38
|
+
};
|
|
12
39
|
export interface OperatorMethodInputMap {
|
|
13
40
|
"accounts.snapshot": {};
|
|
14
41
|
"approvals.approve": {
|
|
@@ -464,6 +491,51 @@ export interface OperatorMethodInputMap {
|
|
|
464
491
|
"channels.tools.surface.list": {
|
|
465
492
|
surface: string;
|
|
466
493
|
};
|
|
494
|
+
"companion.chat.events.stream": {
|
|
495
|
+
sessionId: string;
|
|
496
|
+
};
|
|
497
|
+
"companion.chat.messages.create": ({
|
|
498
|
+
sessionId: string;
|
|
499
|
+
body?: string;
|
|
500
|
+
content?: string;
|
|
501
|
+
metadata?: ({} & {
|
|
502
|
+
readonly [key: string]: ({} & {
|
|
503
|
+
readonly [key: string]: JsonValue;
|
|
504
|
+
}) | boolean | null | number | readonly JsonValue[] | string;
|
|
505
|
+
});
|
|
506
|
+
} & {
|
|
507
|
+
readonly [key: string]: unknown;
|
|
508
|
+
});
|
|
509
|
+
"companion.chat.messages.list": {
|
|
510
|
+
sessionId: string;
|
|
511
|
+
};
|
|
512
|
+
"companion.chat.sessions.create": ({
|
|
513
|
+
title?: string;
|
|
514
|
+
provider?: string;
|
|
515
|
+
model?: string;
|
|
516
|
+
systemPrompt?: string;
|
|
517
|
+
} & {
|
|
518
|
+
readonly [key: string]: unknown;
|
|
519
|
+
});
|
|
520
|
+
"companion.chat.sessions.delete": {
|
|
521
|
+
sessionId: string;
|
|
522
|
+
};
|
|
523
|
+
"companion.chat.sessions.get": {
|
|
524
|
+
sessionId: string;
|
|
525
|
+
};
|
|
526
|
+
"companion.chat.sessions.list": {
|
|
527
|
+
includeClosed?: boolean;
|
|
528
|
+
limit?: number;
|
|
529
|
+
};
|
|
530
|
+
"companion.chat.sessions.update": ({
|
|
531
|
+
sessionId: string;
|
|
532
|
+
title?: string;
|
|
533
|
+
provider?: string;
|
|
534
|
+
model?: string;
|
|
535
|
+
systemPrompt?: null | string;
|
|
536
|
+
} & {
|
|
537
|
+
readonly [key: string]: unknown;
|
|
538
|
+
});
|
|
467
539
|
"config.get": {};
|
|
468
540
|
"config.set": ({
|
|
469
541
|
key: string;
|
|
@@ -4371,6 +4443,34 @@ export interface OperatorMethodOutputMap {
|
|
|
4371
4443
|
});
|
|
4372
4444
|
})[];
|
|
4373
4445
|
};
|
|
4446
|
+
"companion.chat.events.stream": {};
|
|
4447
|
+
"companion.chat.messages.create": {
|
|
4448
|
+
messageId: string;
|
|
4449
|
+
};
|
|
4450
|
+
"companion.chat.messages.list": {
|
|
4451
|
+
sessionId: string;
|
|
4452
|
+
messages: readonly CompanionChatMessage[];
|
|
4453
|
+
};
|
|
4454
|
+
"companion.chat.sessions.create": {
|
|
4455
|
+
sessionId: string;
|
|
4456
|
+
createdAt: number;
|
|
4457
|
+
session: CompanionChatSession;
|
|
4458
|
+
};
|
|
4459
|
+
"companion.chat.sessions.delete": {
|
|
4460
|
+
sessionId: string;
|
|
4461
|
+
status: CompanionChatSessionStatus;
|
|
4462
|
+
};
|
|
4463
|
+
"companion.chat.sessions.get": {
|
|
4464
|
+
session: CompanionChatSession;
|
|
4465
|
+
messages: readonly CompanionChatMessage[];
|
|
4466
|
+
};
|
|
4467
|
+
"companion.chat.sessions.list": {
|
|
4468
|
+
sessions: readonly CompanionChatSession[];
|
|
4469
|
+
totals: CompanionChatSessionsListTotals;
|
|
4470
|
+
};
|
|
4471
|
+
"companion.chat.sessions.update": {
|
|
4472
|
+
session: CompanionChatSession;
|
|
4473
|
+
};
|
|
4374
4474
|
"config.get": ({
|
|
4375
4475
|
danger?: ({} & {
|
|
4376
4476
|
readonly [key: string]: ({} & {
|
|
@@ -11260,7 +11360,7 @@ export type OperatorMethodInput<TMethodId extends OperatorTypedMethodId> = TMeth
|
|
|
11260
11360
|
export type OperatorMethodOutput<TMethodId extends OperatorTypedMethodId> = TMethodId extends keyof OperatorMethodOutputMap ? OperatorMethodOutputMap[TMethodId] : unknown;
|
|
11261
11361
|
export type OperatorTypedEventId = keyof OperatorEventPayloadMap & string;
|
|
11262
11362
|
export type OperatorEventPayload<TEventId extends OperatorTypedEventId> = OperatorEventPayloadMap[TEventId];
|
|
11263
|
-
export type OperatorStreamMethodId = Extract<OperatorTypedMethodId, 'control.events.stream' | 'telemetry.stream'>;
|
|
11363
|
+
export type OperatorStreamMethodId = Extract<OperatorTypedMethodId, 'companion.chat.events.stream' | 'control.events.stream' | 'telemetry.stream'>;
|
|
11264
11364
|
export type PeerTypedEndpointId = PeerEndpointId;
|
|
11265
11365
|
export type PeerEndpointInput<TEndpointId extends PeerTypedEndpointId> = TEndpointId extends keyof PeerEndpointInputMap ? PeerEndpointInputMap[TEndpointId] : {
|
|
11266
11366
|
readonly [key: string]: unknown;
|