@tileflow/static 0.1.0-alpha.21 → 0.1.0-alpha.22

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,8 +1,209 @@
1
1
  import { z } from 'zod';
2
- import { e as StaticSceneInput } from './scene-contract-DZMhLDnf.js';
2
+ import { i as StaticSceneInput } from './scene-contract-OMIOisSB.js';
3
3
 
4
- declare const staticRendererSchemaVersion = 1;
5
- declare const staticRenderManifestSchema: z.ZodObject<{
4
+ declare const staticRendererSchemaVersionV1 = 1;
5
+ declare const staticRendererSchemaVersion = 2;
6
+ declare const staticAttributionPlanSchemaVersion = 1;
7
+ declare const staticAttributionLimits: {
8
+ readonly maxBytes: number;
9
+ readonly maxEntries: 18;
10
+ readonly maxLinksPerEntry: 8;
11
+ readonly maxTextLength: 16384;
12
+ readonly maxUrlLength: 2048;
13
+ };
14
+ declare const staticResolvedAttributionPositionSchema: z.ZodEnum<{
15
+ "top-left": "top-left";
16
+ "top-right": "top-right";
17
+ "bottom-left": "bottom-left";
18
+ "bottom-right": "bottom-right";
19
+ }>;
20
+ declare const staticAttributionSegmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
21
+ kind: z.ZodLiteral<"text">;
22
+ text: z.ZodString;
23
+ }, z.core.$strict>, z.ZodObject<{
24
+ kind: z.ZodLiteral<"link">;
25
+ label: z.ZodString;
26
+ url: z.ZodString;
27
+ }, z.core.$strict>], "kind">;
28
+ declare const staticAttributionProvenanceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ authority: z.ZodLiteral<"platform-notice">;
30
+ noticeId: z.ZodString;
31
+ noticeSha256: z.ZodString;
32
+ resource: z.ZodEnum<{
33
+ terrain: "terrain";
34
+ world: "world";
35
+ }>;
36
+ sources: z.ZodArray<z.ZodObject<{
37
+ sourceId: z.ZodString;
38
+ sourceSelectionIdentity: z.ZodString;
39
+ }, z.core.$strict>>;
40
+ }, z.core.$strict>, z.ZodObject<{
41
+ authority: z.ZodLiteral<"team-declared">;
42
+ sources: z.ZodArray<z.ZodObject<{
43
+ sourceId: z.ZodString;
44
+ sourceSelectionIdentity: z.ZodString;
45
+ mapRevision: z.ZodString;
46
+ resourceId: z.ZodString;
47
+ }, z.core.$strict>>;
48
+ }, z.core.$strict>], "authority">;
49
+ declare const staticAttributionEntrySchema: z.ZodObject<{
50
+ authority: z.ZodEnum<{
51
+ "platform-notice": "platform-notice";
52
+ "team-declared": "team-declared";
53
+ }>;
54
+ provenance: z.ZodDiscriminatedUnion<[z.ZodObject<{
55
+ authority: z.ZodLiteral<"platform-notice">;
56
+ noticeId: z.ZodString;
57
+ noticeSha256: z.ZodString;
58
+ resource: z.ZodEnum<{
59
+ terrain: "terrain";
60
+ world: "world";
61
+ }>;
62
+ sources: z.ZodArray<z.ZodObject<{
63
+ sourceId: z.ZodString;
64
+ sourceSelectionIdentity: z.ZodString;
65
+ }, z.core.$strict>>;
66
+ }, z.core.$strict>, z.ZodObject<{
67
+ authority: z.ZodLiteral<"team-declared">;
68
+ sources: z.ZodArray<z.ZodObject<{
69
+ sourceId: z.ZodString;
70
+ sourceSelectionIdentity: z.ZodString;
71
+ mapRevision: z.ZodString;
72
+ resourceId: z.ZodString;
73
+ }, z.core.$strict>>;
74
+ }, z.core.$strict>], "authority">;
75
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
76
+ kind: z.ZodLiteral<"text">;
77
+ text: z.ZodString;
78
+ }, z.core.$strict>, z.ZodObject<{
79
+ kind: z.ZodLiteral<"link">;
80
+ label: z.ZodString;
81
+ url: z.ZodString;
82
+ }, z.core.$strict>], "kind">>;
83
+ }, z.core.$strict>;
84
+ declare const staticAttributionPlanSchemaV1: z.ZodObject<{
85
+ entries: z.ZodArray<z.ZodObject<{
86
+ authority: z.ZodEnum<{
87
+ "platform-notice": "platform-notice";
88
+ "team-declared": "team-declared";
89
+ }>;
90
+ provenance: z.ZodDiscriminatedUnion<[z.ZodObject<{
91
+ authority: z.ZodLiteral<"platform-notice">;
92
+ noticeId: z.ZodString;
93
+ noticeSha256: z.ZodString;
94
+ resource: z.ZodEnum<{
95
+ terrain: "terrain";
96
+ world: "world";
97
+ }>;
98
+ sources: z.ZodArray<z.ZodObject<{
99
+ sourceId: z.ZodString;
100
+ sourceSelectionIdentity: z.ZodString;
101
+ }, z.core.$strict>>;
102
+ }, z.core.$strict>, z.ZodObject<{
103
+ authority: z.ZodLiteral<"team-declared">;
104
+ sources: z.ZodArray<z.ZodObject<{
105
+ sourceId: z.ZodString;
106
+ sourceSelectionIdentity: z.ZodString;
107
+ mapRevision: z.ZodString;
108
+ resourceId: z.ZodString;
109
+ }, z.core.$strict>>;
110
+ }, z.core.$strict>], "authority">;
111
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
112
+ kind: z.ZodLiteral<"text">;
113
+ text: z.ZodString;
114
+ }, z.core.$strict>, z.ZodObject<{
115
+ kind: z.ZodLiteral<"link">;
116
+ label: z.ZodString;
117
+ url: z.ZodString;
118
+ }, z.core.$strict>], "kind">>;
119
+ }, z.core.$strict>>;
120
+ mode: z.ZodEnum<{
121
+ embedded: "embedded";
122
+ external: "external";
123
+ }>;
124
+ position: z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodEnum<{
125
+ "top-left": "top-left";
126
+ "top-right": "top-right";
127
+ "bottom-left": "bottom-left";
128
+ "bottom-right": "bottom-right";
129
+ }>, z.ZodNull]>;
130
+ schemaVersion: z.ZodLiteral<1>;
131
+ }, z.core.$strict>;
132
+ type StaticAttributionSegment = z.infer<typeof staticAttributionSegmentSchema>;
133
+ type StaticAttributionProvenance = z.infer<typeof staticAttributionProvenanceSchema>;
134
+ type StaticAttributionEntry = z.infer<typeof staticAttributionEntrySchema>;
135
+ type StaticAttributionPlanV1 = z.infer<typeof staticAttributionPlanSchemaV1>;
136
+ type StaticResolvedAttributionPosition = z.infer<typeof staticResolvedAttributionPositionSchema>;
137
+ declare const staticRenderManifestV1Schema: z.ZodObject<{
138
+ schemaVersion: z.ZodLiteral<1>;
139
+ scene: z.ZodObject<{
140
+ map: z.ZodString;
141
+ format: z.ZodOptional<z.ZodEnum<{
142
+ png: "png";
143
+ jpeg: "jpeg";
144
+ webp: "webp";
145
+ }>>;
146
+ size: z.ZodObject<{
147
+ dpr: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
148
+ height: z.ZodNumber;
149
+ width: z.ZodNumber;
150
+ }, z.core.$strip>;
151
+ theme: z.ZodString;
152
+ camera: z.ZodDiscriminatedUnion<[z.ZodObject<{
153
+ bearing: z.ZodOptional<z.ZodNumber>;
154
+ center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
155
+ type: z.ZodLiteral<"center">;
156
+ zoom: z.ZodNumber;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ bearing: z.ZodOptional<z.ZodNumber>;
159
+ bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
160
+ padding: z.ZodOptional<z.ZodNumber>;
161
+ type: z.ZodLiteral<"bounds">;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ bearing: z.ZodOptional<z.ZodNumber>;
164
+ maxZoom: z.ZodOptional<z.ZodNumber>;
165
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
166
+ bottom: z.ZodOptional<z.ZodNumber>;
167
+ left: z.ZodOptional<z.ZodNumber>;
168
+ right: z.ZodOptional<z.ZodNumber>;
169
+ top: z.ZodOptional<z.ZodNumber>;
170
+ }, z.core.$strict>]>>;
171
+ type: z.ZodLiteral<"auto">;
172
+ }, z.core.$strip>], "type">;
173
+ overlays: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
174
+ color: z.ZodDefault<z.ZodString>;
175
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
176
+ id: z.ZodOptional<z.ZodString>;
177
+ opacity: z.ZodDefault<z.ZodNumber>;
178
+ type: z.ZodLiteral<"line">;
179
+ width: z.ZodDefault<z.ZodNumber>;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ color: z.ZodDefault<z.ZodString>;
182
+ coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
183
+ id: z.ZodOptional<z.ZodString>;
184
+ opacity: z.ZodDefault<z.ZodNumber>;
185
+ radius: z.ZodDefault<z.ZodNumber>;
186
+ strokeColor: z.ZodOptional<z.ZodString>;
187
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
188
+ type: z.ZodLiteral<"circle">;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ color: z.ZodDefault<z.ZodString>;
191
+ coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
192
+ id: z.ZodOptional<z.ZodString>;
193
+ radius: z.ZodDefault<z.ZodNumber>;
194
+ strokeColor: z.ZodDefault<z.ZodString>;
195
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
196
+ type: z.ZodLiteral<"marker">;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
199
+ fill: z.ZodDefault<z.ZodString>;
200
+ id: z.ZodOptional<z.ZodString>;
201
+ opacity: z.ZodDefault<z.ZodNumber>;
202
+ stroke: z.ZodOptional<z.ZodString>;
203
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
204
+ type: z.ZodLiteral<"polygon">;
205
+ }, z.core.$strip>], "type">>>;
206
+ }, z.core.$strip>;
6
207
  autoFit: z.ZodOptional<z.ZodObject<{
7
208
  bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
8
209
  longitudeOffsets: z.ZodArray<z.ZodNumber>;
@@ -21,8 +222,177 @@ declare const staticRenderManifestSchema: z.ZodObject<{
21
222
  }, z.core.$strict>>;
22
223
  mapId: z.ZodString;
23
224
  rendererVersion: z.ZodString;
225
+ styleId: z.ZodOptional<z.ZodString>;
226
+ styleRevision: z.ZodString;
227
+ styleUrl: z.ZodString;
228
+ }, z.core.$strip>;
229
+ declare const staticRenderManifestV2Schema: z.ZodObject<{
230
+ attribution: z.ZodObject<{
231
+ entries: z.ZodArray<z.ZodObject<{
232
+ authority: z.ZodEnum<{
233
+ "platform-notice": "platform-notice";
234
+ "team-declared": "team-declared";
235
+ }>;
236
+ provenance: z.ZodDiscriminatedUnion<[z.ZodObject<{
237
+ authority: z.ZodLiteral<"platform-notice">;
238
+ noticeId: z.ZodString;
239
+ noticeSha256: z.ZodString;
240
+ resource: z.ZodEnum<{
241
+ terrain: "terrain";
242
+ world: "world";
243
+ }>;
244
+ sources: z.ZodArray<z.ZodObject<{
245
+ sourceId: z.ZodString;
246
+ sourceSelectionIdentity: z.ZodString;
247
+ }, z.core.$strict>>;
248
+ }, z.core.$strict>, z.ZodObject<{
249
+ authority: z.ZodLiteral<"team-declared">;
250
+ sources: z.ZodArray<z.ZodObject<{
251
+ sourceId: z.ZodString;
252
+ sourceSelectionIdentity: z.ZodString;
253
+ mapRevision: z.ZodString;
254
+ resourceId: z.ZodString;
255
+ }, z.core.$strict>>;
256
+ }, z.core.$strict>], "authority">;
257
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
258
+ kind: z.ZodLiteral<"text">;
259
+ text: z.ZodString;
260
+ }, z.core.$strict>, z.ZodObject<{
261
+ kind: z.ZodLiteral<"link">;
262
+ label: z.ZodString;
263
+ url: z.ZodString;
264
+ }, z.core.$strict>], "kind">>;
265
+ }, z.core.$strict>>;
266
+ mode: z.ZodEnum<{
267
+ embedded: "embedded";
268
+ external: "external";
269
+ }>;
270
+ position: z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodEnum<{
271
+ "top-left": "top-left";
272
+ "top-right": "top-right";
273
+ "bottom-left": "bottom-left";
274
+ "bottom-right": "bottom-right";
275
+ }>, z.ZodNull]>;
276
+ schemaVersion: z.ZodLiteral<1>;
277
+ }, z.core.$strict>;
278
+ schemaVersion: z.ZodLiteral<2>;
279
+ scene: z.ZodObject<{
280
+ attribution: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
281
+ mode: z.ZodOptional<z.ZodLiteral<"embedded">>;
282
+ position: z.ZodOptional<z.ZodEnum<{
283
+ auto: "auto";
284
+ "top-left": "top-left";
285
+ "top-right": "top-right";
286
+ "bottom-left": "bottom-left";
287
+ "bottom-right": "bottom-right";
288
+ }>>;
289
+ }, z.core.$strict>, z.ZodObject<{
290
+ mode: z.ZodLiteral<"external">;
291
+ }, z.core.$strict>]>>;
292
+ camera: z.ZodDiscriminatedUnion<[z.ZodObject<{
293
+ bearing: z.ZodOptional<z.ZodNumber>;
294
+ center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
295
+ type: z.ZodLiteral<"center">;
296
+ zoom: z.ZodNumber;
297
+ }, z.core.$strip>, z.ZodObject<{
298
+ bearing: z.ZodOptional<z.ZodNumber>;
299
+ bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
300
+ padding: z.ZodOptional<z.ZodNumber>;
301
+ type: z.ZodLiteral<"bounds">;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ bearing: z.ZodOptional<z.ZodNumber>;
304
+ maxZoom: z.ZodOptional<z.ZodNumber>;
305
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
306
+ bottom: z.ZodOptional<z.ZodNumber>;
307
+ left: z.ZodOptional<z.ZodNumber>;
308
+ right: z.ZodOptional<z.ZodNumber>;
309
+ top: z.ZodOptional<z.ZodNumber>;
310
+ }, z.core.$strict>]>>;
311
+ type: z.ZodLiteral<"auto">;
312
+ }, z.core.$strip>], "type">;
313
+ format: z.ZodOptional<z.ZodEnum<{
314
+ png: "png";
315
+ jpeg: "jpeg";
316
+ webp: "webp";
317
+ }>>;
318
+ map: z.ZodString;
319
+ overlays: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
320
+ color: z.ZodDefault<z.ZodString>;
321
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
322
+ id: z.ZodOptional<z.ZodString>;
323
+ opacity: z.ZodDefault<z.ZodNumber>;
324
+ type: z.ZodLiteral<"line">;
325
+ width: z.ZodDefault<z.ZodNumber>;
326
+ }, z.core.$strip>, z.ZodObject<{
327
+ color: z.ZodDefault<z.ZodString>;
328
+ coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
329
+ id: z.ZodOptional<z.ZodString>;
330
+ opacity: z.ZodDefault<z.ZodNumber>;
331
+ radius: z.ZodDefault<z.ZodNumber>;
332
+ strokeColor: z.ZodOptional<z.ZodString>;
333
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
334
+ type: z.ZodLiteral<"circle">;
335
+ }, z.core.$strip>, z.ZodObject<{
336
+ color: z.ZodDefault<z.ZodString>;
337
+ coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
338
+ id: z.ZodOptional<z.ZodString>;
339
+ radius: z.ZodDefault<z.ZodNumber>;
340
+ strokeColor: z.ZodDefault<z.ZodString>;
341
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
342
+ type: z.ZodLiteral<"marker">;
343
+ }, z.core.$strip>, z.ZodObject<{
344
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
345
+ fill: z.ZodDefault<z.ZodString>;
346
+ id: z.ZodOptional<z.ZodString>;
347
+ opacity: z.ZodDefault<z.ZodNumber>;
348
+ stroke: z.ZodOptional<z.ZodString>;
349
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
350
+ type: z.ZodLiteral<"polygon">;
351
+ }, z.core.$strip>], "type">>>;
352
+ size: z.ZodObject<{
353
+ dpr: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
354
+ height: z.ZodNumber;
355
+ width: z.ZodNumber;
356
+ }, z.core.$strip>;
357
+ theme: z.ZodString;
358
+ }, z.core.$strip>;
359
+ autoFit: z.ZodOptional<z.ZodObject<{
360
+ bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
361
+ longitudeOffsets: z.ZodArray<z.ZodNumber>;
362
+ nominalInsets: z.ZodObject<{
363
+ bottom: z.ZodNumber;
364
+ left: z.ZodNumber;
365
+ right: z.ZodNumber;
366
+ top: z.ZodNumber;
367
+ }, z.core.$strict>;
368
+ requiredInsets: z.ZodObject<{
369
+ bottom: z.ZodNumber;
370
+ left: z.ZodNumber;
371
+ right: z.ZodNumber;
372
+ top: z.ZodNumber;
373
+ }, z.core.$strict>;
374
+ }, z.core.$strict>>;
375
+ mapId: z.ZodString;
376
+ rendererVersion: z.ZodString;
377
+ styleId: z.ZodOptional<z.ZodString>;
378
+ styleRevision: z.ZodString;
379
+ styleUrl: z.ZodString;
380
+ }, z.core.$strict>;
381
+ declare const staticRenderManifestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
24
382
  schemaVersion: z.ZodLiteral<1>;
25
383
  scene: z.ZodObject<{
384
+ map: z.ZodString;
385
+ format: z.ZodOptional<z.ZodEnum<{
386
+ png: "png";
387
+ jpeg: "jpeg";
388
+ webp: "webp";
389
+ }>>;
390
+ size: z.ZodObject<{
391
+ dpr: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
392
+ height: z.ZodNumber;
393
+ width: z.ZodNumber;
394
+ }, z.core.$strip>;
395
+ theme: z.ZodString;
26
396
  camera: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
397
  bearing: z.ZodOptional<z.ZodNumber>;
28
398
  center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
@@ -44,6 +414,150 @@ declare const staticRenderManifestSchema: z.ZodObject<{
44
414
  }, z.core.$strict>]>>;
45
415
  type: z.ZodLiteral<"auto">;
46
416
  }, z.core.$strip>], "type">;
417
+ overlays: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
418
+ color: z.ZodDefault<z.ZodString>;
419
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
420
+ id: z.ZodOptional<z.ZodString>;
421
+ opacity: z.ZodDefault<z.ZodNumber>;
422
+ type: z.ZodLiteral<"line">;
423
+ width: z.ZodDefault<z.ZodNumber>;
424
+ }, z.core.$strip>, z.ZodObject<{
425
+ color: z.ZodDefault<z.ZodString>;
426
+ coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
427
+ id: z.ZodOptional<z.ZodString>;
428
+ opacity: z.ZodDefault<z.ZodNumber>;
429
+ radius: z.ZodDefault<z.ZodNumber>;
430
+ strokeColor: z.ZodOptional<z.ZodString>;
431
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
432
+ type: z.ZodLiteral<"circle">;
433
+ }, z.core.$strip>, z.ZodObject<{
434
+ color: z.ZodDefault<z.ZodString>;
435
+ coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
436
+ id: z.ZodOptional<z.ZodString>;
437
+ radius: z.ZodDefault<z.ZodNumber>;
438
+ strokeColor: z.ZodDefault<z.ZodString>;
439
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
440
+ type: z.ZodLiteral<"marker">;
441
+ }, z.core.$strip>, z.ZodObject<{
442
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
443
+ fill: z.ZodDefault<z.ZodString>;
444
+ id: z.ZodOptional<z.ZodString>;
445
+ opacity: z.ZodDefault<z.ZodNumber>;
446
+ stroke: z.ZodOptional<z.ZodString>;
447
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
448
+ type: z.ZodLiteral<"polygon">;
449
+ }, z.core.$strip>], "type">>>;
450
+ }, z.core.$strip>;
451
+ autoFit: z.ZodOptional<z.ZodObject<{
452
+ bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
453
+ longitudeOffsets: z.ZodArray<z.ZodNumber>;
454
+ nominalInsets: z.ZodObject<{
455
+ bottom: z.ZodNumber;
456
+ left: z.ZodNumber;
457
+ right: z.ZodNumber;
458
+ top: z.ZodNumber;
459
+ }, z.core.$strict>;
460
+ requiredInsets: z.ZodObject<{
461
+ bottom: z.ZodNumber;
462
+ left: z.ZodNumber;
463
+ right: z.ZodNumber;
464
+ top: z.ZodNumber;
465
+ }, z.core.$strict>;
466
+ }, z.core.$strict>>;
467
+ mapId: z.ZodString;
468
+ rendererVersion: z.ZodString;
469
+ styleId: z.ZodOptional<z.ZodString>;
470
+ styleRevision: z.ZodString;
471
+ styleUrl: z.ZodString;
472
+ }, z.core.$strip>, z.ZodObject<{
473
+ attribution: z.ZodObject<{
474
+ entries: z.ZodArray<z.ZodObject<{
475
+ authority: z.ZodEnum<{
476
+ "platform-notice": "platform-notice";
477
+ "team-declared": "team-declared";
478
+ }>;
479
+ provenance: z.ZodDiscriminatedUnion<[z.ZodObject<{
480
+ authority: z.ZodLiteral<"platform-notice">;
481
+ noticeId: z.ZodString;
482
+ noticeSha256: z.ZodString;
483
+ resource: z.ZodEnum<{
484
+ terrain: "terrain";
485
+ world: "world";
486
+ }>;
487
+ sources: z.ZodArray<z.ZodObject<{
488
+ sourceId: z.ZodString;
489
+ sourceSelectionIdentity: z.ZodString;
490
+ }, z.core.$strict>>;
491
+ }, z.core.$strict>, z.ZodObject<{
492
+ authority: z.ZodLiteral<"team-declared">;
493
+ sources: z.ZodArray<z.ZodObject<{
494
+ sourceId: z.ZodString;
495
+ sourceSelectionIdentity: z.ZodString;
496
+ mapRevision: z.ZodString;
497
+ resourceId: z.ZodString;
498
+ }, z.core.$strict>>;
499
+ }, z.core.$strict>], "authority">;
500
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
501
+ kind: z.ZodLiteral<"text">;
502
+ text: z.ZodString;
503
+ }, z.core.$strict>, z.ZodObject<{
504
+ kind: z.ZodLiteral<"link">;
505
+ label: z.ZodString;
506
+ url: z.ZodString;
507
+ }, z.core.$strict>], "kind">>;
508
+ }, z.core.$strict>>;
509
+ mode: z.ZodEnum<{
510
+ embedded: "embedded";
511
+ external: "external";
512
+ }>;
513
+ position: z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodEnum<{
514
+ "top-left": "top-left";
515
+ "top-right": "top-right";
516
+ "bottom-left": "bottom-left";
517
+ "bottom-right": "bottom-right";
518
+ }>, z.ZodNull]>;
519
+ schemaVersion: z.ZodLiteral<1>;
520
+ }, z.core.$strict>;
521
+ schemaVersion: z.ZodLiteral<2>;
522
+ scene: z.ZodObject<{
523
+ attribution: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
524
+ mode: z.ZodOptional<z.ZodLiteral<"embedded">>;
525
+ position: z.ZodOptional<z.ZodEnum<{
526
+ auto: "auto";
527
+ "top-left": "top-left";
528
+ "top-right": "top-right";
529
+ "bottom-left": "bottom-left";
530
+ "bottom-right": "bottom-right";
531
+ }>>;
532
+ }, z.core.$strict>, z.ZodObject<{
533
+ mode: z.ZodLiteral<"external">;
534
+ }, z.core.$strict>]>>;
535
+ camera: z.ZodDiscriminatedUnion<[z.ZodObject<{
536
+ bearing: z.ZodOptional<z.ZodNumber>;
537
+ center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
538
+ type: z.ZodLiteral<"center">;
539
+ zoom: z.ZodNumber;
540
+ }, z.core.$strip>, z.ZodObject<{
541
+ bearing: z.ZodOptional<z.ZodNumber>;
542
+ bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
543
+ padding: z.ZodOptional<z.ZodNumber>;
544
+ type: z.ZodLiteral<"bounds">;
545
+ }, z.core.$strip>, z.ZodObject<{
546
+ bearing: z.ZodOptional<z.ZodNumber>;
547
+ maxZoom: z.ZodOptional<z.ZodNumber>;
548
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
549
+ bottom: z.ZodOptional<z.ZodNumber>;
550
+ left: z.ZodOptional<z.ZodNumber>;
551
+ right: z.ZodOptional<z.ZodNumber>;
552
+ top: z.ZodOptional<z.ZodNumber>;
553
+ }, z.core.$strict>]>>;
554
+ type: z.ZodLiteral<"auto">;
555
+ }, z.core.$strip>], "type">;
556
+ format: z.ZodOptional<z.ZodEnum<{
557
+ png: "png";
558
+ jpeg: "jpeg";
559
+ webp: "webp";
560
+ }>>;
47
561
  map: z.ZodString;
48
562
  overlays: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
49
563
  color: z.ZodDefault<z.ZodString>;
@@ -79,16 +593,36 @@ declare const staticRenderManifestSchema: z.ZodObject<{
79
593
  type: z.ZodLiteral<"polygon">;
80
594
  }, z.core.$strip>], "type">>>;
81
595
  size: z.ZodObject<{
82
- dpr: z.ZodOptional<z.ZodLiteral<1>>;
596
+ dpr: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
83
597
  height: z.ZodNumber;
84
598
  width: z.ZodNumber;
85
599
  }, z.core.$strip>;
86
600
  theme: z.ZodString;
87
601
  }, z.core.$strip>;
602
+ autoFit: z.ZodOptional<z.ZodObject<{
603
+ bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
604
+ longitudeOffsets: z.ZodArray<z.ZodNumber>;
605
+ nominalInsets: z.ZodObject<{
606
+ bottom: z.ZodNumber;
607
+ left: z.ZodNumber;
608
+ right: z.ZodNumber;
609
+ top: z.ZodNumber;
610
+ }, z.core.$strict>;
611
+ requiredInsets: z.ZodObject<{
612
+ bottom: z.ZodNumber;
613
+ left: z.ZodNumber;
614
+ right: z.ZodNumber;
615
+ top: z.ZodNumber;
616
+ }, z.core.$strict>;
617
+ }, z.core.$strict>>;
618
+ mapId: z.ZodString;
619
+ rendererVersion: z.ZodString;
88
620
  styleId: z.ZodOptional<z.ZodString>;
89
621
  styleRevision: z.ZodString;
90
622
  styleUrl: z.ZodString;
91
- }, z.core.$strip>;
623
+ }, z.core.$strict>], "schemaVersion">;
624
+ type StaticRenderManifestV1 = z.infer<typeof staticRenderManifestV1Schema>;
625
+ type StaticRenderManifestV2 = z.infer<typeof staticRenderManifestV2Schema>;
92
626
  type StaticRenderManifest = z.infer<typeof staticRenderManifestSchema>;
93
627
  declare function validateStaticRenderManifest(input: unknown): {
94
628
  manifest: StaticRenderManifest;
@@ -97,15 +631,26 @@ declare function validateStaticRenderManifest(input: unknown): {
97
631
  error: string;
98
632
  ok: false;
99
633
  };
100
- declare function createRenderManifest(input: {
634
+ declare function createRenderManifestV1(input: {
635
+ mapId: string;
636
+ rendererVersion: string;
637
+ scene: StaticSceneInput;
638
+ styleId?: string;
639
+ styleRevision: string;
640
+ styleUrl: string;
641
+ }): StaticRenderManifestV1;
642
+ /** Compatibility creation path for historical manifest v1 fixtures and readers. */
643
+ declare const createRenderManifest: typeof createRenderManifestV1;
644
+ declare function createRenderManifestV2(input: {
645
+ attribution: StaticAttributionPlanV1;
101
646
  mapId: string;
102
647
  rendererVersion: string;
103
648
  scene: StaticSceneInput;
104
649
  styleId?: string;
105
650
  styleRevision: string;
106
651
  styleUrl: string;
107
- }): StaticRenderManifest;
652
+ }): StaticRenderManifestV2;
108
653
  declare function hashRenderManifest(manifest: StaticRenderManifest): Promise<string>;
109
654
  declare function hashStaticSceneRequest(scene: StaticSceneInput): Promise<string>;
110
655
 
111
- export { type StaticRenderManifest, createRenderManifest, hashRenderManifest, hashStaticSceneRequest, staticRenderManifestSchema, staticRendererSchemaVersion, validateStaticRenderManifest };
656
+ export { type StaticAttributionEntry, type StaticAttributionPlanV1, type StaticAttributionProvenance, type StaticAttributionSegment, type StaticRenderManifest, type StaticRenderManifestV1, type StaticRenderManifestV2, type StaticResolvedAttributionPosition, createRenderManifest, createRenderManifestV1, createRenderManifestV2, hashRenderManifest, hashStaticSceneRequest, staticAttributionEntrySchema, staticAttributionLimits, staticAttributionPlanSchemaV1, staticAttributionPlanSchemaVersion, staticAttributionProvenanceSchema, staticAttributionSegmentSchema, staticRenderManifestSchema, staticRenderManifestV1Schema, staticRenderManifestV2Schema, staticRendererSchemaVersion, staticRendererSchemaVersionV1, validateStaticRenderManifest };
package/dist/manifest.js CHANGED
@@ -1,18 +1,40 @@
1
1
  import {
2
2
  createRenderManifest,
3
+ createRenderManifestV1,
4
+ createRenderManifestV2,
3
5
  hashRenderManifest,
4
6
  hashStaticSceneRequest,
7
+ staticAttributionEntrySchema,
8
+ staticAttributionLimits,
9
+ staticAttributionPlanSchemaV1,
10
+ staticAttributionPlanSchemaVersion,
11
+ staticAttributionProvenanceSchema,
12
+ staticAttributionSegmentSchema,
5
13
  staticRenderManifestSchema,
14
+ staticRenderManifestV1Schema,
15
+ staticRenderManifestV2Schema,
6
16
  staticRendererSchemaVersion,
17
+ staticRendererSchemaVersionV1,
7
18
  validateStaticRenderManifest
8
- } from "./chunk-S3WXE5P4.js";
9
- import "./chunk-NHQK5UZ2.js";
10
- import "./chunk-MGQCHCU3.js";
19
+ } from "./chunk-TQMKOTBE.js";
20
+ import "./chunk-EMCKSFZV.js";
21
+ import "./chunk-NM2JSFUF.js";
11
22
  export {
12
23
  createRenderManifest,
24
+ createRenderManifestV1,
25
+ createRenderManifestV2,
13
26
  hashRenderManifest,
14
27
  hashStaticSceneRequest,
28
+ staticAttributionEntrySchema,
29
+ staticAttributionLimits,
30
+ staticAttributionPlanSchemaV1,
31
+ staticAttributionPlanSchemaVersion,
32
+ staticAttributionProvenanceSchema,
33
+ staticAttributionSegmentSchema,
15
34
  staticRenderManifestSchema,
35
+ staticRenderManifestV1Schema,
36
+ staticRenderManifestV2Schema,
16
37
  staticRendererSchemaVersion,
38
+ staticRendererSchemaVersionV1,
17
39
  validateStaticRenderManifest
18
40
  };
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { i as circleOverlaySchema, a as StaticOverlay, l as lineOverlaySchema, m as markerOverlaySchema, p as polygonOverlaySchema } from './scene-contract-DZMhLDnf.js';
3
- export { b as StaticOverlayInput, s as staticOverlaySchema } from './scene-contract-DZMhLDnf.js';
2
+ import { o as circleOverlaySchema, e as StaticOverlay, p as lineOverlaySchema, q as markerOverlaySchema, r as polygonOverlaySchema } from './scene-contract-OMIOisSB.js';
3
+ export { f as StaticOverlayInput, k as staticOverlaySchema } from './scene-contract-OMIOisSB.js';
4
4
 
5
5
  declare function line(input: Omit<z.input<typeof lineOverlaySchema>, 'type'>): StaticOverlay;
6
6
  declare function circle(input: Omit<z.input<typeof circleOverlaySchema>, 'type'>): StaticOverlay;
package/dist/overlays.js CHANGED
@@ -4,10 +4,10 @@ import {
4
4
  line,
5
5
  marker,
6
6
  polygon
7
- } from "./chunk-KPT7PASB.js";
7
+ } from "./chunk-EPOYQNNT.js";
8
8
  import {
9
9
  staticOverlaySchema
10
- } from "./chunk-MGQCHCU3.js";
10
+ } from "./chunk-NM2JSFUF.js";
11
11
  export {
12
12
  circle,
13
13
  compileStaticOverlays,