@zimmerstack/connect 0.9.0 → 0.9.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.
@@ -1,5 +1,5 @@
1
1
  /** This package's version, sent as the user agent so ZimmerStack can tell which client a request came from. */
2
- export declare const SDK_VERSION = "0.9.0";
2
+ export declare const SDK_VERSION = "0.9.1";
3
3
  /** Where the API lives. The key is sent nowhere else. */
4
4
  export declare const API_ORIGIN = "https://api.zimmerstack.com";
5
5
  export declare const API_PREFIX = "/api/v1/connect-api/v1";
@@ -31,7 +31,7 @@ export declare const LIMITS: {
31
31
  readonly maxNightsPerBooking: 90;
32
32
  };
33
33
  /** Every stable error code (`error.code`). Messages are for people and may change; branch on these. */
34
- export declare const ERROR_CODES: readonly ["API_KEY_INVALID", "API_KEY_REVOKED", "API_KEY_EXPIRED", "CONNECT_API_NOT_CONFIGURED", "IP_NOT_ALLOWED", "SCOPE_MISSING", "PROPERTY_UNAVAILABLE", "CHANNEL_MANAGER_DISABLED", "PMS_NOT_AVAILABLE", "VALIDATION", "RANGE_INVALID", "HORIZON", "TOO_MANY_UPDATES", "TOO_MANY_CELLS", "UNKNOWN_ROOM_TYPE", "UNKNOWN_RATE_PLAN", "CURRENCY_MISMATCH", "RATE_LIMITED", "NOTHING_ACCEPTED", "BATCH_NOT_FOUND", "IDEMPOTENCY_KEY_INVALID", "IDEMPOTENCY_KEY_REUSED", "IDEMPOTENCY_IN_FLIGHT", "STAY_INVALID", "UNKNOWN_ROOM_TYPE_FOR_PLAN", "OCCUPANCY_EXCEEDED", "NO_AVAILABILITY", "EXTERNAL_REFERENCE_REUSED", "PAYMENT_NOT_ALLOWED", "PAYMENT_EXCEEDS_TOTAL", "TAXES_NOT_CONFIGURED", "TAXES_INSIDE_RATES", "BOOKING_NOT_FOUND", "BOOKING_NOT_CANCELLABLE", "MODULE_NOT_ENTITLED", "SANDBOX_ONLY", "ROOM_TYPE_NOT_FOUND", "RATE_PLAN_NOT_FOUND", "CATALOG_CONFLICT", "CATALOG_BUSY", "CHANNEL_MANAGER_ERROR", "WEBHOOK_ENDPOINT_NOT_FOUND", "WEBHOOK_DELIVERY_NOT_FOUND", "WEBHOOK_ENDPOINT_LIMIT", "WEBHOOK_ENDPOINT_NOT_ACTIVE", "WEBHOOK_ENDPOINT_SUSPENDED", "WEBHOOK_PAYLOAD_EXPIRED", "WEBHOOK_ACCESS_ENDED", "WEBHOOKS_UNAVAILABLE", "PROPERTY_REQUIRED", "PROPERTY_NOT_FOUND", "ARI_NOT_AUTHORITATIVE", "ROUTE_NOT_FOUND", "PAYLOAD_TOO_LARGE", "AUTH_BACKEND_UNAVAILABLE", "BOOKING_NOT_MODIFIABLE", "SANDBOX_NOT_FOUND", "SANDBOX_INCOMPLETE", "WRITES_FROZEN", "WRITES_SUSPENDED", "SHIELD_UNAVAILABLE", "CATALOG_LIMIT_REACHED", "TOO_MANY_NEW_ENTITIES", "RATE_OUT_OF_BAND", "CHANNEL_NOT_FOUND", "CHANNEL_SHARED", "MODIFIER_OUT_OF_BAND", "COMPANY_KEY_REQUIRED", "BILLING_SETUP_REQUIRED", "OWNER_HAS_ACCOUNT", "SANDBOX_LIMIT", "CONFIRMATION_MISMATCH", "PROPERTY_NOT_REMOVABLE", "PROPERTY_BUSY", "PRICE_UNAVAILABLE", "CONNECT_LINK_NOT_FOUND", "CONNECT_LINKS_UNAVAILABLE", "CHANNEL_NOT_AVAILABLE", "LIVE_KEY_REQUIRED", "NOT_READY", "KEY_NOT_FOUND", "KEY_LIMIT", "KEY_REVOKED", "KEY_ALREADY_ROTATING", "SCOPES_INVALID", "ALLOWED_CIDRS_INVALID", "REASON_REQUIRED", "SUPPORT_TICKET_NOT_FOUND", "SUPPORT_TICKET_CLOSED"];
34
+ export declare const ERROR_CODES: readonly ["API_KEY_INVALID", "API_KEY_REVOKED", "API_KEY_EXPIRED", "CONNECT_API_NOT_CONFIGURED", "IP_NOT_ALLOWED", "SCOPE_MISSING", "PROPERTY_UNAVAILABLE", "CHANNEL_MANAGER_DISABLED", "PMS_NOT_AVAILABLE", "VALIDATION", "RANGE_INVALID", "HORIZON", "TOO_MANY_UPDATES", "TOO_MANY_CELLS", "UNKNOWN_ROOM_TYPE", "UNKNOWN_RATE_PLAN", "CURRENCY_MISMATCH", "RATE_LIMITED", "NOTHING_ACCEPTED", "BATCH_NOT_FOUND", "IDEMPOTENCY_KEY_INVALID", "IDEMPOTENCY_KEY_REUSED", "IDEMPOTENCY_IN_FLIGHT", "STAY_INVALID", "UNKNOWN_ROOM_TYPE_FOR_PLAN", "OCCUPANCY_EXCEEDED", "NO_AVAILABILITY", "EXTERNAL_REFERENCE_REUSED", "PAYMENT_NOT_ALLOWED", "PAYMENT_EXCEEDS_TOTAL", "TAXES_NOT_CONFIGURED", "TAXES_INSIDE_RATES", "BOOKING_NOT_FOUND", "BOOKING_NOT_CANCELLABLE", "MODULE_NOT_ENTITLED", "SANDBOX_ONLY", "ROOM_TYPE_NOT_FOUND", "RATE_PLAN_NOT_FOUND", "CATALOG_CONFLICT", "CATALOG_BUSY", "CHANNEL_MANAGER_ERROR", "WEBHOOK_ENDPOINT_NOT_FOUND", "WEBHOOK_DELIVERY_NOT_FOUND", "WEBHOOK_ENDPOINT_LIMIT", "WEBHOOK_ENDPOINT_NOT_ACTIVE", "WEBHOOK_ENDPOINT_SUSPENDED", "WEBHOOK_PAYLOAD_EXPIRED", "WEBHOOK_ACCESS_ENDED", "WEBHOOKS_UNAVAILABLE", "PROPERTY_REQUIRED", "PROPERTY_NOT_FOUND", "ARI_NOT_AUTHORITATIVE", "ROUTE_NOT_FOUND", "PAYLOAD_TOO_LARGE", "AUTH_BACKEND_UNAVAILABLE", "BOOKING_NOT_MODIFIABLE", "SANDBOX_NOT_FOUND", "SANDBOX_INCOMPLETE", "WRITES_FROZEN", "WRITES_SUSPENDED", "SHIELD_UNAVAILABLE", "CATALOG_LIMIT_REACHED", "TOO_MANY_NEW_ENTITIES", "RATE_OUT_OF_BAND", "CHANNEL_NOT_FOUND", "CHANNEL_SHARED", "MODIFIER_OUT_OF_BAND", "COMPANY_KEY_REQUIRED", "BILLING_SETUP_REQUIRED", "OWNER_HAS_ACCOUNT", "SANDBOX_LIMIT", "CONFIRMATION_MISMATCH", "PROPERTY_NOT_REMOVABLE", "PROPERTY_NOT_CHANGEABLE", "PROPERTY_BUSY", "PRICE_UNAVAILABLE", "CONNECT_LINK_NOT_FOUND", "CONNECT_LINKS_UNAVAILABLE", "CHANNEL_NOT_AVAILABLE", "LIVE_KEY_REQUIRED", "NOT_READY", "KEY_NOT_FOUND", "KEY_LIMIT", "KEY_REVOKED", "KEY_ALREADY_ROTATING", "SCOPES_INVALID", "ALLOWED_CIDRS_INVALID", "REASON_REQUIRED", "SUPPORT_TICKET_NOT_FOUND", "SUPPORT_TICKET_CLOSED"];
35
35
  export type ErrorCode = (typeof ERROR_CODES)[number];
36
36
  /** What a key may do. The hotel's owner (or, for a vendor's key, the vendor) chose them when the key was made. */
37
37
  export declare const SCOPES: readonly ["ari:read", "ari:write", "catalog:write", "channel-modifiers:write", "channel-bookings:read", "direct-bookings:read", "direct-bookings:cancel", "bookings:read", "bookings:write", "bookings:payments", "properties:write", "webhooks:manage", "channels:connect", "keys:manage", "billing:read", "support:write"];
@@ -159,7 +159,7 @@ export interface Error {
159
159
  /** Human-readable, may change; branch on data.code */
160
160
  message: string;
161
161
  data: {
162
- code: "API_KEY_INVALID" | "API_KEY_REVOKED" | "API_KEY_EXPIRED" | "CONNECT_API_NOT_CONFIGURED" | "IP_NOT_ALLOWED" | "SCOPE_MISSING" | "PROPERTY_UNAVAILABLE" | "CHANNEL_MANAGER_DISABLED" | "PMS_NOT_AVAILABLE" | "VALIDATION" | "RANGE_INVALID" | "HORIZON" | "TOO_MANY_UPDATES" | "TOO_MANY_CELLS" | "UNKNOWN_ROOM_TYPE" | "UNKNOWN_RATE_PLAN" | "CURRENCY_MISMATCH" | "RATE_LIMITED" | "NOTHING_ACCEPTED" | "BATCH_NOT_FOUND" | "IDEMPOTENCY_KEY_INVALID" | "IDEMPOTENCY_KEY_REUSED" | "IDEMPOTENCY_IN_FLIGHT" | "STAY_INVALID" | "UNKNOWN_ROOM_TYPE_FOR_PLAN" | "OCCUPANCY_EXCEEDED" | "NO_AVAILABILITY" | "EXTERNAL_REFERENCE_REUSED" | "PAYMENT_NOT_ALLOWED" | "PAYMENT_EXCEEDS_TOTAL" | "TAXES_NOT_CONFIGURED" | "TAXES_INSIDE_RATES" | "BOOKING_NOT_FOUND" | "BOOKING_NOT_CANCELLABLE" | "MODULE_NOT_ENTITLED" | "SANDBOX_ONLY" | "ROOM_TYPE_NOT_FOUND" | "RATE_PLAN_NOT_FOUND" | "CATALOG_CONFLICT" | "CATALOG_BUSY" | "CHANNEL_MANAGER_ERROR" | "WEBHOOK_ENDPOINT_NOT_FOUND" | "WEBHOOK_DELIVERY_NOT_FOUND" | "WEBHOOK_ENDPOINT_LIMIT" | "WEBHOOK_ENDPOINT_NOT_ACTIVE" | "WEBHOOK_ENDPOINT_SUSPENDED" | "WEBHOOK_PAYLOAD_EXPIRED" | "WEBHOOK_ACCESS_ENDED" | "WEBHOOKS_UNAVAILABLE" | "PROPERTY_REQUIRED" | "PROPERTY_NOT_FOUND" | "ARI_NOT_AUTHORITATIVE" | "ROUTE_NOT_FOUND" | "PAYLOAD_TOO_LARGE" | "AUTH_BACKEND_UNAVAILABLE" | "BOOKING_NOT_MODIFIABLE" | "SANDBOX_NOT_FOUND" | "SANDBOX_INCOMPLETE" | "WRITES_FROZEN" | "WRITES_SUSPENDED" | "SHIELD_UNAVAILABLE" | "CATALOG_LIMIT_REACHED" | "TOO_MANY_NEW_ENTITIES" | "RATE_OUT_OF_BAND" | "CHANNEL_NOT_FOUND" | "CHANNEL_SHARED" | "MODIFIER_OUT_OF_BAND" | "COMPANY_KEY_REQUIRED" | "BILLING_SETUP_REQUIRED" | "OWNER_HAS_ACCOUNT" | "SANDBOX_LIMIT" | "CONFIRMATION_MISMATCH" | "PROPERTY_NOT_REMOVABLE" | "PROPERTY_BUSY" | "PRICE_UNAVAILABLE" | "CONNECT_LINK_NOT_FOUND" | "CONNECT_LINKS_UNAVAILABLE" | "CHANNEL_NOT_AVAILABLE" | "LIVE_KEY_REQUIRED" | "NOT_READY" | "KEY_NOT_FOUND" | "KEY_LIMIT" | "KEY_REVOKED" | "KEY_ALREADY_ROTATING" | "SCOPES_INVALID" | "ALLOWED_CIDRS_INVALID" | "REASON_REQUIRED" | "SUPPORT_TICKET_NOT_FOUND" | "SUPPORT_TICKET_CLOSED";
162
+ code: "API_KEY_INVALID" | "API_KEY_REVOKED" | "API_KEY_EXPIRED" | "CONNECT_API_NOT_CONFIGURED" | "IP_NOT_ALLOWED" | "SCOPE_MISSING" | "PROPERTY_UNAVAILABLE" | "CHANNEL_MANAGER_DISABLED" | "PMS_NOT_AVAILABLE" | "VALIDATION" | "RANGE_INVALID" | "HORIZON" | "TOO_MANY_UPDATES" | "TOO_MANY_CELLS" | "UNKNOWN_ROOM_TYPE" | "UNKNOWN_RATE_PLAN" | "CURRENCY_MISMATCH" | "RATE_LIMITED" | "NOTHING_ACCEPTED" | "BATCH_NOT_FOUND" | "IDEMPOTENCY_KEY_INVALID" | "IDEMPOTENCY_KEY_REUSED" | "IDEMPOTENCY_IN_FLIGHT" | "STAY_INVALID" | "UNKNOWN_ROOM_TYPE_FOR_PLAN" | "OCCUPANCY_EXCEEDED" | "NO_AVAILABILITY" | "EXTERNAL_REFERENCE_REUSED" | "PAYMENT_NOT_ALLOWED" | "PAYMENT_EXCEEDS_TOTAL" | "TAXES_NOT_CONFIGURED" | "TAXES_INSIDE_RATES" | "BOOKING_NOT_FOUND" | "BOOKING_NOT_CANCELLABLE" | "MODULE_NOT_ENTITLED" | "SANDBOX_ONLY" | "ROOM_TYPE_NOT_FOUND" | "RATE_PLAN_NOT_FOUND" | "CATALOG_CONFLICT" | "CATALOG_BUSY" | "CHANNEL_MANAGER_ERROR" | "WEBHOOK_ENDPOINT_NOT_FOUND" | "WEBHOOK_DELIVERY_NOT_FOUND" | "WEBHOOK_ENDPOINT_LIMIT" | "WEBHOOK_ENDPOINT_NOT_ACTIVE" | "WEBHOOK_ENDPOINT_SUSPENDED" | "WEBHOOK_PAYLOAD_EXPIRED" | "WEBHOOK_ACCESS_ENDED" | "WEBHOOKS_UNAVAILABLE" | "PROPERTY_REQUIRED" | "PROPERTY_NOT_FOUND" | "ARI_NOT_AUTHORITATIVE" | "ROUTE_NOT_FOUND" | "PAYLOAD_TOO_LARGE" | "AUTH_BACKEND_UNAVAILABLE" | "BOOKING_NOT_MODIFIABLE" | "SANDBOX_NOT_FOUND" | "SANDBOX_INCOMPLETE" | "WRITES_FROZEN" | "WRITES_SUSPENDED" | "SHIELD_UNAVAILABLE" | "CATALOG_LIMIT_REACHED" | "TOO_MANY_NEW_ENTITIES" | "RATE_OUT_OF_BAND" | "CHANNEL_NOT_FOUND" | "CHANNEL_SHARED" | "MODIFIER_OUT_OF_BAND" | "COMPANY_KEY_REQUIRED" | "BILLING_SETUP_REQUIRED" | "OWNER_HAS_ACCOUNT" | "SANDBOX_LIMIT" | "CONFIRMATION_MISMATCH" | "PROPERTY_NOT_REMOVABLE" | "PROPERTY_NOT_CHANGEABLE" | "PROPERTY_BUSY" | "PRICE_UNAVAILABLE" | "CONNECT_LINK_NOT_FOUND" | "CONNECT_LINKS_UNAVAILABLE" | "CHANNEL_NOT_AVAILABLE" | "LIVE_KEY_REQUIRED" | "NOT_READY" | "KEY_NOT_FOUND" | "KEY_LIMIT" | "KEY_REVOKED" | "KEY_ALREADY_ROTATING" | "SCOPES_INVALID" | "ALLOWED_CIDRS_INVALID" | "REASON_REQUIRED" | "SUPPORT_TICKET_NOT_FOUND" | "SUPPORT_TICKET_CLOSED";
163
163
  details?: unknown;
164
164
  };
165
165
  }
@@ -338,7 +338,7 @@ export interface Catalog {
338
338
  /** The occupancy this plan is priced for; null = any */
339
339
  occupancy: number | null;
340
340
  currency: string;
341
- /** The plan's standing price in major units, as a decimal string with the currency's own decimals ("4500.50"): the same field PUT /catalog/rate-plans takes. null = it follows the room type's base rate */
341
+ /** The plan's standing price in major units, as a decimal string with the currency's own decimals ("4500.50"): the same field PUT /catalog/rate-plans takes, and the price every date of the plan opens for booking at. null = it follows the room type's base rate, which only a plan made on the hotel's own screens can do */
342
342
  defaultRate?: string | null;
343
343
  /** false = a non-refundable plan */
344
344
  refundable: boolean;
@@ -408,7 +408,7 @@ export interface PropertyCreated {
408
408
  name: string;
409
409
  timezone: string;
410
410
  currency: string;
411
- /** The property publishes to its channels. false for a new hotel until your first PUT /catalog/room-types puts it on the channel manager; always true for a sandbox */
411
+ /** The property publishes to its channels. A new hotel is put on the channel manager when its billing starts, usually before this answer; while it is false, PUT /catalog/room-types with the same refs tries again. Always true for a sandbox */
412
412
  channelManager: boolean;
413
413
  /** true when a test key made it: everything lands locally, nothing reaches a channel and nothing is billed */
414
414
  sandbox: boolean;
@@ -423,6 +423,41 @@ export interface PropertyCreated {
423
423
  /** true: an earlier request with this X-Idempotency-Key already added this hotel; nothing new was made */
424
424
  replay: boolean;
425
425
  }
426
+ export interface PropertyChange {
427
+ /** The hotel's new name, as its guests know it. A sandbox's name keeps its ending, (sandbox) */
428
+ name?: string;
429
+ /** Only the parts you send change. The country is not one of them: it never changes by this request */
430
+ address?: {
431
+ /** The first line of the address */
432
+ line1?: string;
433
+ city?: string;
434
+ /** An empty string clears it */
435
+ state?: string;
436
+ /** An empty string clears it */
437
+ postalCode?: string;
438
+ };
439
+ }
440
+ export interface PropertyChanged {
441
+ id: number;
442
+ /** As stored now. A sandbox's name ends in (sandbox) */
443
+ name: string;
444
+ timezone: string;
445
+ currency: string;
446
+ /** The property publishes to its channels. Not changed by this request */
447
+ channelManager: boolean;
448
+ sandbox: boolean;
449
+ /** The hotel's address as stored now. A part the record does not hold is null */
450
+ address: {
451
+ line1: string | null;
452
+ city: string | null;
453
+ state: string | null;
454
+ postalCode: string | null;
455
+ /** ISO 3166-1 alpha-2. Never changed by this request */
456
+ country: string | null;
457
+ };
458
+ /** The fields whose stored value this request changed, by the names you send (name, address.line1, address.city, address.state, address.postalCode). Empty when everything you sent was already stored */
459
+ changed: Array<string>;
460
+ }
426
461
  export interface PropertyRemoved {
427
462
  id: number;
428
463
  /** The hotel's name; null only for a sandbox removed before its name was recorded */
@@ -485,7 +520,7 @@ export interface RatePlansUpsert {
485
520
  occupancy?: number | null;
486
521
  /** false = a non-refundable plan; default true */
487
522
  refundable?: boolean;
488
- /** The plan's standing price in MAJOR units, a number or a decimal string (4500 or "4500.50"), like every rate here: what new dates open at, mirrored to the channel manager. Kept to the currency's own decimals (§2.10). Omit to leave it; null = follow the room type's base rate */
523
+ /** The plan's standing price in MAJOR units, a number or a decimal string (4500 or "4500.50"), like every rate here: what every date of the plan opens for booking at, mirrored to the channel manager. REQUIRED when the plan is new: a request that would create a plan without it is 400 VALIDATION and writes nothing. On a plan you already sent, omit it to leave the price as it is. null (follow the room type's base rate) is accepted only where the hotel has typed a base rate in ZimmerStack, and is 400 VALIDATION otherwise. Kept to the currency's own decimals (§2.10) */
489
524
  defaultRate?: number | string | null;
490
525
  /** Deprecated: the same standing price in hundredths of the major unit (450050 is 4500.50). Send defaultRate instead; never both */
491
526
  defaultRateMinor?: number | null;
@@ -592,7 +627,7 @@ export interface RatesWrite {
592
627
  /** Hotel-local calendar date, YYYY-MM-DD */
593
628
  dateTo: string;
594
629
  days?: Array<"mo" | "tu" | "we" | "th" | "fr" | "sa" | "su">;
595
- /** Nightly sell price in MAJOR units, a number or a decimal string (4500, 4500.5 or "4500.50"), 1 to 21474836. Kept exactly, to the currency's own decimals (GET /property decimals): two for rupees, euros and dollars, none for yen. A price with more decimals than the currency has, a number or a decimal string alike, is rounded to them and named in the answer's rounded list */
630
+ /** Nightly sell price in MAJOR units, a number or a decimal string (4500, 4500.5 or "4500.50"), 1 to 21474836. Kept exactly, to the currency's own decimals (GET /property decimals): two for rupees, euros and dollars, none for yen. A number with more decimals than the currency has is rounded to them and named in the answer's rounded list; so is a fraction in a currency that has none. A decimal string takes at most two decimals: one with more is refused (400 VALIDATION) */
596
631
  rate: number | string;
597
632
  /** ISO 4217; must equal the property's currency (GET /property) */
598
633
  currency: string;
@@ -1737,7 +1772,7 @@ export interface WebhookDeliveryDetail {
1737
1772
  payloadBytes: number;
1738
1773
  /** false once the stored body has been dropped (14 days); a redeliver rebuilds it from the event while that is kept (90 days) */
1739
1774
  payloadAvailable: boolean;
1740
- /** The event as it was sent (the webhook's envelope); null once the stored body has been dropped (payloadAvailable: false) */
1775
+ /** The event as it was sent (the webhook's envelope), with a guest's phone and email masked in this read; null once the stored body has been dropped (payloadAvailable: false) */
1741
1776
  payload: unknown;
1742
1777
  /** Every attempt, oldest first */
1743
1778
  attempts_log: Array<{
@@ -2698,7 +2733,7 @@ export interface ConnectLinkCreated {
2698
2733
  };
2699
2734
  /** The address to send to the hotel's own person. It opens ONCE and is in this answer only: we keep a hash of its token, never the token. null on a replay of the same request (X-Idempotent-Replay: true): we keep no copy to show again, so make a new link if the first answer was lost (it withdraws this one) */
2700
2735
  url: string | null;
2701
- /** What the hotel does at the booking site before it opens the link, naming our connectivity partner as that booking site lists it. For your own screen or message to the hotel; null where there is no such step */
2736
+ /** What the hotel does at the booking site before it opens the link (in its extranet or through its support), naming our connectivity partner as that booking site lists it. Send it to the hotel first, and the url once the hotel has done it; null where there is no such step (Airbnb) */
2702
2737
  hotelStep: string | null;
2703
2738
  /** Earlier links for this hotel and booking site that nobody had opened, withdrawn by this one */
2704
2739
  withdrawn: number;
@@ -3451,6 +3486,15 @@ export interface Operations {
3451
3486
  body: PropertyCreate;
3452
3487
  response: PropertyCreated;
3453
3488
  };
3489
+ /** Change a hotel */
3490
+ "PATCH /properties/{propertyId}": {
3491
+ path: {
3492
+ propertyId: string | number;
3493
+ };
3494
+ query: undefined;
3495
+ body: PropertyChange;
3496
+ response: PropertyChanged;
3497
+ };
3454
3498
  /** Remove a hotel you added (a software partner's company key) */
3455
3499
  "DELETE /properties/{propertyId}": {
3456
3500
  path: {
@@ -3814,7 +3858,7 @@ export interface Operations {
3814
3858
  body: undefined;
3815
3859
  response: WebhookDeliveryList;
3816
3860
  };
3817
- /** One delivery: the body as sent, and every attempt */
3861
+ /** One delivery: the body as sent, guest contact masked, and every attempt */
3818
3862
  "GET /webhook-endpoints/{endpointId}/deliveries/{deliveryId}": {
3819
3863
  path: {
3820
3864
  endpointId: string | number;
@@ -1,7 +1,7 @@
1
1
  // GENERATED by scripts/generate.mjs from the Connect API's public contract (ZimmerStack Connect API v1).
2
2
  // Do not edit: change the contract, then run `pnpm --dir apps/connect-sdk run generate`.
3
3
  /** This package's version, sent as the user agent so ZimmerStack can tell which client a request came from. */
4
- export const SDK_VERSION = "0.9.0";
4
+ export const SDK_VERSION = "0.9.1";
5
5
  /** Where the API lives. The key is sent nowhere else. */
6
6
  export const API_ORIGIN = "https://api.zimmerstack.com";
7
7
  export const API_PREFIX = "/api/v1/connect-api/v1";
@@ -107,6 +107,7 @@ export const ERROR_CODES = [
107
107
  "SANDBOX_LIMIT",
108
108
  "CONFIRMATION_MISMATCH",
109
109
  "PROPERTY_NOT_REMOVABLE",
110
+ "PROPERTY_NOT_CHANGEABLE",
110
111
  "PROPERTY_BUSY",
111
112
  "PRICE_UNAVAILABLE",
112
113
  "CONNECT_LINK_NOT_FOUND",
@@ -287,6 +288,7 @@ export const SUPPORT_SEVERITIES = [
287
288
  export const OPERATIONS = {
288
289
  "GET /properties": { idempotent: false, bodyRequired: false },
289
290
  "POST /properties": { idempotent: true, bodyRequired: true },
291
+ "PATCH /properties/{propertyId}": { idempotent: true, bodyRequired: true },
290
292
  "DELETE /properties/{propertyId}": { idempotent: false, bodyRequired: false },
291
293
  "GET /property": { idempotent: false, bodyRequired: false },
292
294
  "GET /limits": { idempotent: false, bodyRequired: false },
@@ -45,9 +45,14 @@ function serve() {
45
45
  process.stderr.write(`zimmerstack-connect mcp ${SDK_VERSION} ready (${state})\n`);
46
46
  let pending = 0;
47
47
  let ended = false;
48
+ let exiting = false;
49
+ // Exit only once stdout has handed every answer to the OS: on a pipe Node may still be writing a long answer
50
+ // (on macOS pipe writes are asynchronous), and exiting at once cut it short (seen in the smoke run, 24 Nov 2026).
48
51
  const done = () => {
49
- if (ended && pending === 0)
50
- process.exit(0);
52
+ if (!ended || pending !== 0 || exiting)
53
+ return;
54
+ exiting = true;
55
+ process.stdout.write("", () => process.exit(0));
51
56
  };
52
57
  const write = (answer) => {
53
58
  if (answer !== undefined)