@ziggs-ai/api-client 0.3.0 → 0.3.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.
@@ -128,6 +128,13 @@ export interface GetMyAgreementsFilters {
128
128
  engagementKind?: EngagementKind;
129
129
  proposalStatus?: string;
130
130
  hasTask?: boolean;
131
+ /**
132
+ * ZIG-942: `scope=mine` alone returns every agreement the caller's grant can
133
+ * read in the active org — including ones the caller is not a party to
134
+ * (`isYou` all-false). Pass `partyOnly: true` for a true "mine": only
135
+ * agreements where the caller (key owner or impersonated agent) is a party.
136
+ */
137
+ partyOnly?: boolean;
131
138
  }
132
139
  export declare function getMyAgreements(filters: GetMyAgreementsFilters | undefined, creds: Creds): Promise<Agreement[]>;
133
140
  export declare function getAgreement(agreementId: string, creds: Creds): Promise<Agreement | null>;
@@ -284,6 +284,8 @@ export async function getMyAgreements(filters = {}, creds) {
284
284
  url.searchParams.set('proposalStatus', filters.proposalStatus);
285
285
  if (filters.hasTask != null)
286
286
  url.searchParams.set('hasTask', String(filters.hasTask));
287
+ if (filters.partyOnly)
288
+ url.searchParams.set('partyOnly', 'true');
287
289
  let res;
288
290
  try {
289
291
  res = await fetch(url.toString(), { method: 'GET', headers: buildHeaders(creds) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/api-client",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "HTTP and WebSocket client for the Ziggs backend API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",