@ziggs-ai/contracts 0.13.0 → 0.14.0
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/chat.d.ts
CHANGED
|
@@ -175,6 +175,8 @@ export interface MessageSenderWire {
|
|
|
175
175
|
* results, agreement-lifecycle stamps). Stored content, passed through as-is.
|
|
176
176
|
*/
|
|
177
177
|
export interface MessageServicePayload {
|
|
178
|
+
/** Governing service agreement resolved by server admission. */
|
|
179
|
+
conversationAgreementId?: string;
|
|
178
180
|
task?: unknown;
|
|
179
181
|
id?: string;
|
|
180
182
|
name?: string;
|
|
@@ -19,8 +19,10 @@ export type AgreementTerms = {
|
|
|
19
19
|
description: string;
|
|
20
20
|
billing?: "total" | "per_task";
|
|
21
21
|
requiredConnections: Array<unknown>;
|
|
22
|
-
wakeCeiling?: number;
|
|
23
|
-
conversationAllowance?: number;
|
|
22
|
+
wakeCeiling?: number | null;
|
|
23
|
+
conversationAllowance?: number | null;
|
|
24
|
+
conversationAllowanceScope?: "direct" | "subtree";
|
|
25
|
+
interactionMode?: "messages" | "tasks" | "both";
|
|
24
26
|
};
|
|
25
27
|
export type AgreementHeld = {
|
|
26
28
|
amount: number;
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
* GENERATED from the backend OpenAPI spec — do not edit.
|
|
3
3
|
* Family: chatSend. Regenerate: backend 'pnpm docs:generate' then this script.
|
|
4
4
|
*/
|
|
5
|
-
export type DailyUsageView = {
|
|
6
|
-
messagesToday: number;
|
|
7
|
-
dailyLimit: number;
|
|
8
|
-
};
|
|
9
5
|
export type ConversationCoverage = {
|
|
10
6
|
agreementId: string;
|
|
11
7
|
messagesUsed: number;
|
|
12
|
-
messageLimit: number;
|
|
8
|
+
messageLimit: number | null;
|
|
13
9
|
message: string;
|
|
14
10
|
};
|
|
15
11
|
export type MessageDestination = {
|
|
@@ -27,6 +23,5 @@ export type SendChatMessageResult = {
|
|
|
27
23
|
messageId: string;
|
|
28
24
|
chatId: string;
|
|
29
25
|
delivery: MessageDelivery;
|
|
30
|
-
usage?: DailyUsageView;
|
|
31
26
|
coverage?: ConversationCoverage;
|
|
32
27
|
};
|
package/package.json
CHANGED