@ziggs-ai/contracts 0.9.0 → 0.10.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.
|
@@ -20,6 +20,7 @@ export type AgreementTerms = {
|
|
|
20
20
|
billing?: "total" | "per_task";
|
|
21
21
|
requiredConnections: Array<unknown>;
|
|
22
22
|
wakeCeiling?: number;
|
|
23
|
+
conversationAllowance?: number;
|
|
23
24
|
};
|
|
24
25
|
export type AgreementHeld = {
|
|
25
26
|
amount: number;
|
|
@@ -35,7 +36,7 @@ export type AgreementAllocation = {
|
|
|
35
36
|
};
|
|
36
37
|
export type AgreementMoney = {
|
|
37
38
|
price: number | null;
|
|
38
|
-
paymentStatus: "none" | "held" | "allocated" | "paid" | "refunded" | "metered";
|
|
39
|
+
paymentStatus: "none" | "held" | "allocated" | "paid" | "refunded" | "metered" | "included";
|
|
39
40
|
transactionId: string | null;
|
|
40
41
|
allocations: Array<AgreementAllocation>;
|
|
41
42
|
held: AgreementHeld | null;
|
|
@@ -73,6 +74,9 @@ export type AgreementConnectionRequest = {
|
|
|
73
74
|
connectionReady: boolean;
|
|
74
75
|
};
|
|
75
76
|
export type AgreementRead = {
|
|
77
|
+
conversationUsage?: {
|
|
78
|
+
messages?: number;
|
|
79
|
+
};
|
|
76
80
|
agreementId: string;
|
|
77
81
|
rootAgreementId: string | null;
|
|
78
82
|
parentAgreementId: string | null;
|
|
@@ -6,6 +6,12 @@ export type DailyUsageView = {
|
|
|
6
6
|
messagesToday: number;
|
|
7
7
|
dailyLimit: number;
|
|
8
8
|
};
|
|
9
|
+
export type ConversationCoverage = {
|
|
10
|
+
agreementId: string;
|
|
11
|
+
messagesUsed: number;
|
|
12
|
+
messageLimit: number;
|
|
13
|
+
message: string;
|
|
14
|
+
};
|
|
9
15
|
export type MessageDestination = {
|
|
10
16
|
id: string;
|
|
11
17
|
type: string;
|
|
@@ -22,4 +28,5 @@ export type SendChatMessageResult = {
|
|
|
22
28
|
chatId: string;
|
|
23
29
|
delivery: MessageDelivery;
|
|
24
30
|
usage?: DailyUsageView;
|
|
31
|
+
coverage?: ConversationCoverage;
|
|
25
32
|
};
|
package/package.json
CHANGED