@ziggs-ai/contracts 0.29.1 → 0.30.1
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 +16 -0
- package/dist/generated/agreements.d.ts +1 -1
- package/dist/vocabulary.d.ts +6 -1
- package/dist/vocabulary.js +6 -1
- package/package.json +1 -1
package/dist/chat.d.ts
CHANGED
|
@@ -142,6 +142,22 @@ export interface ChatReadDto {
|
|
|
142
142
|
* Attached by the list read; absent on reads that do not resolve it.
|
|
143
143
|
*/
|
|
144
144
|
unreadCount?: number;
|
|
145
|
+
/**
|
|
146
|
+
* Shared files the files panel would list for this reader. Zero is a room
|
|
147
|
+
* with nothing shared. On the chat list only.
|
|
148
|
+
*/
|
|
149
|
+
sharedFileCount?: number;
|
|
150
|
+
/** Newest link among those files. Null when there are none. */
|
|
151
|
+
sharedFilesChangedAt?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Newest join or leave on this room. Null when nobody has held it.
|
|
154
|
+
* The agreement's own `updatedAt` is the work side of the same comparison.
|
|
155
|
+
*/
|
|
156
|
+
peopleChangedAt?: string | null;
|
|
157
|
+
/** When this reader last opened each header panel. Null until they do. */
|
|
158
|
+
filesOpenedAt?: string | null;
|
|
159
|
+
peopleOpenedAt?: string | null;
|
|
160
|
+
workOpenedAt?: string | null;
|
|
145
161
|
}
|
|
146
162
|
/**
|
|
147
163
|
* The sender of a message as the wire carries it.
|
|
@@ -92,7 +92,7 @@ export type AgreementRead = {
|
|
|
92
92
|
money: AgreementMoney;
|
|
93
93
|
proposal: AgreementProposal;
|
|
94
94
|
status: "draft" | "open" | "active" | "fulfilled" | "cancelled" | "refunded";
|
|
95
|
-
engagementKind: "hire" | "service" | "link";
|
|
95
|
+
engagementKind: "hire" | "service" | "link" | "membership";
|
|
96
96
|
formedBy: "principal" | "agent";
|
|
97
97
|
orgId: string | null;
|
|
98
98
|
userOutcomeSatisfaction: "positive" | "negative" | null;
|
package/dist/vocabulary.d.ts
CHANGED
|
@@ -88,11 +88,16 @@ export interface PartySideRef {
|
|
|
88
88
|
export declare function partySideIds(side: PartySideRef | null | undefined): string[];
|
|
89
89
|
/** The agents that acted on any side, deduped. */
|
|
90
90
|
export declare function partyActorIds(parties: Partial<Record<AgreementPartySideName, PartySideRef | null>> | null | undefined): string[];
|
|
91
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* What kind of agreement this paper is. A link is reach, not a hire. A
|
|
93
|
+
* membership is a workspace and one of its people: formed by accepting the
|
|
94
|
+
* invite, ended by leaving, free, and the paper teammates' tasks run under.
|
|
95
|
+
*/
|
|
92
96
|
export declare const AGREEMENT_ENGAGEMENT_KIND: {
|
|
93
97
|
readonly HIRE: "hire";
|
|
94
98
|
readonly SERVICE: "service";
|
|
95
99
|
readonly LINK: "link";
|
|
100
|
+
readonly MEMBERSHIP: "membership";
|
|
96
101
|
};
|
|
97
102
|
export type AgreementEngagementKind = (typeof AGREEMENT_ENGAGEMENT_KIND)[keyof typeof AGREEMENT_ENGAGEMENT_KIND];
|
|
98
103
|
/**
|
package/dist/vocabulary.js
CHANGED
|
@@ -96,11 +96,16 @@ function partyActorIds(parties) {
|
|
|
96
96
|
...new Set(exports.AGREEMENT_PARTY_SIDES.map((name) => p[name]?.actor).filter((id) => !!id)),
|
|
97
97
|
];
|
|
98
98
|
}
|
|
99
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* What kind of agreement this paper is. A link is reach, not a hire. A
|
|
101
|
+
* membership is a workspace and one of its people: formed by accepting the
|
|
102
|
+
* invite, ended by leaving, free, and the paper teammates' tasks run under.
|
|
103
|
+
*/
|
|
100
104
|
exports.AGREEMENT_ENGAGEMENT_KIND = {
|
|
101
105
|
HIRE: 'hire',
|
|
102
106
|
SERVICE: 'service',
|
|
103
107
|
LINK: 'link',
|
|
108
|
+
MEMBERSHIP: 'membership',
|
|
104
109
|
};
|
|
105
110
|
/**
|
|
106
111
|
* A seller's standing offer: the payer slot is a broadcast, and the paper
|
package/package.json
CHANGED