@zapier/zapier-sdk 0.112.5 → 0.112.6

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
@@ -1,5 +1,15 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.112.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 5a62cba: `listApps` no longer throws when a page of results contains an app with no
8
+ recorded age. Such an app failed validation and rejected the whole page rather
9
+ than the single record, so the same call succeeded or failed depending on which
10
+ apps landed on the page. `age_in_days` is now absent for those apps. An app
11
+ returned without a version no longer rejects its page either.
12
+
3
13
  ## 0.112.5
4
14
 
5
15
  ### Patch Changes
@@ -2818,7 +2818,7 @@ function logRouteOverride({
2818
2818
  }
2819
2819
 
2820
2820
  // src/sdk-version.ts
2821
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.5" : void 0) || "unknown";
2821
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.6" : void 0) || "unknown";
2822
2822
 
2823
2823
  // src/utils/open-url.ts
2824
2824
  var nodePrefix = "node:";
@@ -7533,7 +7533,21 @@ var RawImplementationMetaLookupSchema = implementations.ImplementationMetaSchema
7533
7533
  classification: zod.z.string().nullish(),
7534
7534
  api_docs_url: zod.z.string().nullish(),
7535
7535
  image: zod.z.string().nullish(),
7536
- visibility: zod.z.string().nullish()
7536
+ visibility: zod.z.string().nullish(),
7537
+ // The lookup route builds its response dict by hand and falls back to `""`
7538
+ // for anything it cannot fill, so `age_in_days` arrives as an empty string
7539
+ // for every implementation with no backing service. Read that sentinel as
7540
+ // "unknown" rather than coercing it: `Number("")` is `0`, which would claim
7541
+ // the app launched today.
7542
+ age_in_days: zod.z.preprocess(
7543
+ (value) => value === "" ? void 0 : value,
7544
+ zod.z.number().optional()
7545
+ ),
7546
+ // Same route, same reason as the nullish strings above: `version` is read
7547
+ // off the implementation with a `None` default. Fold it back to `undefined`
7548
+ // because `normalizeAppItem` passes it on as a plain optional string — and
7549
+ // then overwrites it with the version parsed out of `id`.
7550
+ version: zod.z.preprocess((value) => value ?? void 0, zod.z.string().optional())
7537
7551
  });
7538
7552
  var RawImplementationsMetaLookupResponseSchema = implementations.ImplementationsMetaResponseSchema.extend({
7539
7553
  results: zod.z.array(RawImplementationMetaLookupSchema)
@@ -2817,7 +2817,7 @@ function logRouteOverride({
2817
2817
  }
2818
2818
 
2819
2819
  // src/sdk-version.ts
2820
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.5" : void 0) || "unknown";
2820
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.6" : void 0) || "unknown";
2821
2821
 
2822
2822
  // src/utils/open-url.ts
2823
2823
  var nodePrefix = "node:";
@@ -7532,7 +7532,21 @@ var RawImplementationMetaLookupSchema = ImplementationMetaSchema.extend({
7532
7532
  classification: z.string().nullish(),
7533
7533
  api_docs_url: z.string().nullish(),
7534
7534
  image: z.string().nullish(),
7535
- visibility: z.string().nullish()
7535
+ visibility: z.string().nullish(),
7536
+ // The lookup route builds its response dict by hand and falls back to `""`
7537
+ // for anything it cannot fill, so `age_in_days` arrives as an empty string
7538
+ // for every implementation with no backing service. Read that sentinel as
7539
+ // "unknown" rather than coercing it: `Number("")` is `0`, which would claim
7540
+ // the app launched today.
7541
+ age_in_days: z.preprocess(
7542
+ (value) => value === "" ? void 0 : value,
7543
+ z.number().optional()
7544
+ ),
7545
+ // Same route, same reason as the nullish strings above: `version` is read
7546
+ // off the implementation with a `None` default. Fold it back to `undefined`
7547
+ // because `normalizeAppItem` passes it on as a plain optional string — and
7548
+ // then overwrites it with the version parsed out of `id`.
7549
+ version: z.preprocess((value) => value ?? void 0, z.string().optional())
7536
7550
  });
7537
7551
  var RawImplementationsMetaLookupResponseSchema = ImplementationsMetaResponseSchema.extend({
7538
7552
  results: z.array(RawImplementationMetaLookupSchema)