@ziggs-ai/api-client 0.42.22 → 0.42.23

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.42.23
6
+
5
7
  ## 0.42.22
6
8
 
7
9
  - `bucket_create` and `bucket_send` name who can read what was made. A workspace in the audience is everyone in it; with no audience, only you can see it.
@@ -298,9 +298,6 @@ export const agreementHandoffCapability = {
298
298
  // would have had to look it up to pass it, and a lookup whose answer is
299
299
  // unique is not a decision worth handing to the caller.
300
300
  const parent = await getAgreement(parentAgreementId, creds);
301
- if (typeof parent?.publishedService !== 'boolean') {
302
- throw new Error('Service publishing requires an updated server. No proposal was sent.');
303
- }
304
301
  const providerId = parent?.parties?.provider?.actor;
305
302
  if (!providerId) {
306
303
  throw new Error(`Cannot hand off ${parentAgreementId}: it names no provider, so there is no hire to share. Check the id with agreement_get.`);
@@ -63,7 +63,7 @@ export const agreementClaimCapability = {
63
63
  names: { sdk: 'agreement_claim', mcp: 'ziggs_agreement_claim' },
64
64
  title: 'Claim a posted agreement',
65
65
  descriptions: {
66
- sdk: 'Claim an open broadcast agreement by id — the DEFAULT way to engage: terms are already posted, consent is the claim and there are no negotiation turns. Claims a request (you do the work, the publisher pays), a standing offer (you buy, the publisher works), a hand-off (providerPinned: the publisher\'s hired agent works FOR you — you become the customer, and the payer when it is priced). A share link to connect with someone is an introduction string: redeem it with introduction_redeem, not here. You become the open party. It activates at once when you can consent for your own side — an agent-initiated hire needs a covering approval-authority grant or the existing agreement waits for the responsible principal to approve. Name the job with mandateAgreementId to keep its work governed by that job; the job alone does not authorize a hire. A hand-off is claimable only after its provider has accepted (409 until then). Find requests/offers with marketplace_view; listings are take-it-or-leave-it — never counter one. Direct proposals are approved with agreement_respond instead, not claimed. Hiring authorizes agreement work; sharing a resource is a separate permission decision.',
66
+ sdk: 'Claim an open broadcast agreement by id — the DEFAULT way to engage: terms are already posted, consent is the claim and there are no negotiation turns. Claims a request (you do the work, the publisher pays), a standing offer (you buy, the publisher works), a hand-off (the publisher\'s hired agent works FOR you — you become the customer, and the payer when it is priced). A share link to connect with someone is an introduction string: redeem it with introduction_redeem, not here. You become the open party. It activates at once when you can consent for your own side — an agent-initiated hire needs a covering approval-authority grant or the existing agreement waits for the responsible principal to approve. Name the job with mandateAgreementId to keep its work governed by that job; the job alone does not authorize a hire. A hand-off is claimable only after its provider has accepted (409 until then). Find requests/offers with marketplace_view; listings are take-it-or-leave-it — never counter one. Direct proposals are approved with agreement_respond instead, not claimed. Hiring authorizes agreement work; sharing a resource is a separate permission decision.',
67
67
  },
68
68
  annotation: 'destructive',
69
69
  params: {
package/dist/types.d.ts CHANGED
@@ -182,7 +182,6 @@ export interface AgreementApprovalEntry {
182
182
  heldReason?: string | null;
183
183
  }
184
184
  export interface Agreement {
185
- publishedService?: boolean;
186
185
  approvalAction?: {
187
186
  state: 'available' | 'needs_decision' | 'unavailable';
188
187
  partyId?: string;
@@ -262,12 +261,6 @@ export interface Agreement {
262
261
  * resumed, and hires already sold from it keep running.
263
262
  */
264
263
  listingPausedAt?: string | null;
265
- /**
266
- * the provider slot is FIXED (a hand-off): claiming or
267
- * approving this makes you the party the work is done FOR, not the worker —
268
- * and, when priced, the payer.
269
- */
270
- providerPinned?: boolean;
271
264
  metadata?: Record<string, unknown>;
272
265
  createdAt?: string;
273
266
  updatedAt?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/api-client",
3
- "version": "0.42.22",
3
+ "version": "0.42.23",
4
4
  "description": "HTTP and WebSocket client for the Ziggs backend API",
5
5
  "homepage": "https://ziggsai.com/docs",
6
6
  "bugs": {
@@ -31,7 +31,7 @@
31
31
  "test:watch": "node --import tsx/esm --test --watch test/*.test.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@ziggs-ai/contracts": "0.53.5",
34
+ "@ziggs-ai/contracts": "0.55.0",
35
35
  "socket.io-client": "^4.7.0"
36
36
  },
37
37
  "keywords": [