@fortrip/agent-contract 6.5.0-rc.0 → 6.5.0

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2388,13 +2388,15 @@ var priceMatch = openObject({
2388
2388
  matchedOffer: matchedOffer.optional().describe("When matched or partial: the new offer."),
2389
2389
  otherTotal: money.optional().describe("When matched or partial: what the other site charges for the stay, with its taxes and fees."),
2390
2390
  ourFeesAtProperty: money.optional().describe(
2391
- "Fortrip's own fees for this stay paid at the hotel, known and counted in the comparison; absent when there are none or they are not known."
2391
+ "Fortrip's own fees for this stay paid at the hotel, known and counted in the comparison; absent when there are none or they can't all be counted (propertyFeeLeftOut says so on a matched or partial answer)."
2392
2392
  ),
2393
2393
  reason: openEnum(PRICE_MATCH_REASONS).optional().describe(
2394
2394
  "When declined: not_lower, the site was not lower. not_offered: the site does not sell this room for these dates. site_unreadable: this stay's price could not be seen on the site. site_not_credible: not a site price match covers. unsupported: an offer price match does not cover. daily_limit: no more checks for now. monthly_limit: price match is not available for now. unfinished: the check could not finish in time; the same request again starts a new check. unavailable: price match is not available now."
2395
2395
  ),
2396
2396
  note: z17.string().optional().describe("One sentence about the check."),
2397
- propertyFeeLeftOut: z17.boolean().nullable().optional().describe("True when a fee payable at the property is left out of the comparison; null or absent when not known.")
2397
+ propertyFeeLeftOut: z17.boolean().nullable().optional().describe(
2398
+ "When matched or partial: true when Fortrip's own fees paid at the hotel for this stay can't all be counted (one is not known, or is not in the offer's currency), so the comparison leaves them out; false when they are counted or there are none. Null or absent otherwise."
2399
+ )
2398
2400
  });
2399
2401
 
2400
2402
  // src/paths.ts
@@ -3436,7 +3438,7 @@ function ourFeesLine(r) {
3436
3438
  r.state === "matched" ? ours`${due}, so the new total can be below the other site's total by that amount.` : ours`${due}.`
3437
3439
  ];
3438
3440
  }
3439
- var feeLine = (r) => r.propertyFeeLeftOut === true ? [ours`A fee payable at the property is left out of this comparison.`] : [];
3441
+ var feeLine = (r) => r.propertyFeeLeftOut === true ? [ours`Fortrip's own fees paid at the hotel for this stay can't all be counted (one is not known, or is not in the offer's currency), so this comparison leaves them out.`] : [];
3440
3442
  function checkingLines(r, surface) {
3441
3443
  const wait = r.checkAgainAfterSeconds === void 0 ? ours`shortly` : ours`in ${plural(r.checkAgainAfterSeconds, "second")}`;
3442
3444
  const instead = r.progressUrl === void 0 ? ours`ask the user to ask again in a few minutes` : ours`give the user the progress page and ask them to ask again in a few minutes`;
@@ -4306,7 +4308,7 @@ var ME_SCOPES = { email: "email", name: "profile" };
4306
4308
  // package.json
4307
4309
  var package_default = {
4308
4310
  name: "@fortrip/agent-contract",
4309
- version: "6.5.0-rc.0",
4311
+ version: "6.5.0",
4310
4312
  license: "Apache-2.0",
4311
4313
  description: "The contract of Fortrip's agent API (https://api.fortrip.ai/v1) and its MCP server: limits, paths, request and response schemas, error codes and field rules.",
4312
4314
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fortrip/agent-contract",
3
- "version": "6.5.0-rc.0",
3
+ "version": "6.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The contract of Fortrip's agent API (https://api.fortrip.ai/v1) and its MCP server: limits, paths, request and response schemas, error codes and field rules.",
6
6
  "type": "module",