@ziggs-ai/contracts 0.50.10 → 0.50.11
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/buckets.d.ts +31 -0
- package/package.json +1 -1
package/dist/buckets.d.ts
CHANGED
|
@@ -65,6 +65,37 @@ export interface BucketAddMembersResult {
|
|
|
65
65
|
items: BucketItemRef[];
|
|
66
66
|
} | null;
|
|
67
67
|
}
|
|
68
|
+
/** What to do when someone being added cannot read everything in a bucket. */
|
|
69
|
+
export type BucketMisfitChoice = 'share' | 'split';
|
|
70
|
+
/**
|
|
71
|
+
* The 409 body when someone would be in a bucket without reading everything
|
|
72
|
+
* in it (`code: BUCKET_MEMBERS_CANNOT_READ`). Nothing changed; the caller
|
|
73
|
+
* picks one of `choices`.
|
|
74
|
+
*/
|
|
75
|
+
export interface BucketMisfitRefusal {
|
|
76
|
+
code: 'BUCKET_MEMBERS_CANNOT_READ';
|
|
77
|
+
message: string;
|
|
78
|
+
choices: BucketMisfitChoice[];
|
|
79
|
+
impact: {
|
|
80
|
+
misfits: BucketMisfit[];
|
|
81
|
+
shared: BucketShare[];
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/** POST /buckets/:id/join — another bucket's people and items brought in. */
|
|
85
|
+
export interface BucketJoinResult {
|
|
86
|
+
bucket: BucketView;
|
|
87
|
+
added: string[];
|
|
88
|
+
joined: BucketItemRef[];
|
|
89
|
+
shared: BucketShare[];
|
|
90
|
+
/** With share: who is not in yet, waiting on owners (ZIG-2457). */
|
|
91
|
+
waiting?: string[];
|
|
92
|
+
}
|
|
93
|
+
/** GET /buckets/:id/my-shares — one of your items shared with someone here. */
|
|
94
|
+
export type MyShare = {
|
|
95
|
+
holderId: string;
|
|
96
|
+
item: BucketItemRef;
|
|
97
|
+
thread?: string;
|
|
98
|
+
};
|
|
68
99
|
export type BucketThread = {
|
|
69
100
|
rootMessageId: string;
|
|
70
101
|
title: string;
|
package/package.json
CHANGED