@tileflow/static 0.1.0-alpha.19 → 0.1.0-alpha.20

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/README.md CHANGED
@@ -55,7 +55,8 @@ generated by application build or deploy workflows.
55
55
  Create one idempotency key per intentional create/precache action and retain it across network
56
56
  retries. Reusing the key with the same normalized scene returns the stored result; reusing it with a
57
57
  different scene returns 409. A successful paid operation reports `unitCost: 15`, shared
58
- `remainingUnits`, its durable `operationId`, cache reuse, hash, and immutable image URL. A live
58
+ `remainingUnits`, its durable `operationId`, cache reuse, hash, and immutable image URL. An
59
+ unbounded Starter service reports `remainingUnits: null`. A live
59
60
  equal-hash render may return `202`; the helper polls with the same body/key within its bounded wait.
60
61
  `maxWaitMs` is the total client completion budget, including network, response parsing, and polling
61
62
  delays; `signal` cancels the same complete operation. The helper aborts in-flight work when either
@@ -16,7 +16,7 @@ var staticMapReadyResultSchema = z.object({
16
16
  hash: z.string().regex(/^[A-Za-z0-9_-]{43}$/),
17
17
  imageUrl: z.string().trim().url().max(2048).refine(isSafeHttpUrl, { message: "Expected an http(s) URL without credentials" }),
18
18
  operationId: z.string().min(20).max(68),
19
- remainingUnits: z.number().int().nonnegative(),
19
+ remainingUnits: z.number().int().nonnegative().nullable(),
20
20
  status: z.literal("ready"),
21
21
  unitCost: z.literal(15)
22
22
  }).strict();
package/dist/client.d.ts CHANGED
@@ -32,7 +32,7 @@ declare const staticMapReadyResultSchema: z.ZodObject<{
32
32
  hash: z.ZodString;
33
33
  imageUrl: z.ZodString;
34
34
  operationId: z.ZodString;
35
- remainingUnits: z.ZodNumber;
35
+ remainingUnits: z.ZodNullable<z.ZodNumber>;
36
36
  status: z.ZodLiteral<"ready">;
37
37
  unitCost: z.ZodLiteral<15>;
38
38
  }, z.core.$strict>;
package/dist/client.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  staticMapProcessingResultSchema,
8
8
  staticMapReadyResultSchema,
9
9
  validateStaticMapIdempotencyKey
10
- } from "./chunk-43QGLF6K.js";
10
+ } from "./chunk-QCR76BUO.js";
11
11
  import "./chunk-ROBEGDDY.js";
12
12
  import {
13
13
  stableStringify
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  staticMapProcessingResultSchema,
8
8
  staticMapReadyResultSchema,
9
9
  validateStaticMapIdempotencyKey
10
- } from "./chunk-43QGLF6K.js";
10
+ } from "./chunk-QCR76BUO.js";
11
11
  import {
12
12
  createRenderManifest,
13
13
  hashRenderManifest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tileflow/static",
3
- "version": "0.1.0-alpha.19",
3
+ "version": "0.1.0-alpha.20",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Static map request schemas and helpers for Tileflow.",
6
6
  "type": "module",