@mountaya/client 0.0.0-stage → 0.2.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.
- package/CHANGELOG.md +149 -0
- package/LICENCE.fr.txt +280 -0
- package/LICENSE.txt +262 -0
- package/README.md +1260 -2
- package/dist/admin/index.cjs +2895 -0
- package/dist/admin/index.cjs.map +1 -0
- package/dist/admin/index.d.cts +889 -0
- package/dist/admin/index.d.ts +889 -0
- package/dist/admin/index.js +204 -0
- package/dist/admin/index.js.map +1 -0
- package/dist/browser.cjs +5993 -0
- package/dist/browser.cjs.map +1 -0
- package/dist/browser.d.cts +70 -0
- package/dist/browser.d.ts +70 -0
- package/dist/browser.js +22 -0
- package/dist/browser.js.map +1 -0
- package/dist/chunk-CeEX7ayk.d.cts +75531 -0
- package/dist/chunk-CeEX7ayk.d.ts +75531 -0
- package/dist/chunk-Cg7Dtcb4.js +2987 -0
- package/dist/chunk-Cg7Dtcb4.js.map +1 -0
- package/dist/chunk-DJqUsgsy.d.ts +1463 -0
- package/dist/chunk-DNc8T5K1.js +241 -0
- package/dist/chunk-DNc8T5K1.js.map +1 -0
- package/dist/chunk-DTxzw3hu.d.cts +1463 -0
- package/dist/chunk-DmxQID5X.js +2289 -0
- package/dist/chunk-DmxQID5X.js.map +1 -0
- package/dist/chunk-DoZt_oIV.d.ts +3991 -0
- package/dist/chunk-DpJrqANO.js +11 -0
- package/dist/chunk-Dx8mPAdC.d.cts +3991 -0
- package/dist/chunk-X2ukY3ho.js +419 -0
- package/dist/chunk-X2ukY3ho.js.map +1 -0
- package/dist/events/index.cjs +1436 -0
- package/dist/events/index.cjs.map +1 -0
- package/dist/events/index.d.cts +772 -0
- package/dist/events/index.d.ts +772 -0
- package/dist/events/index.js +543 -0
- package/dist/events/index.js.map +1 -0
- package/dist/index.cjs +5992 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +44 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/package.json +126 -4
- package/src/admin/index.ts +47 -0
- package/src/admin/rules/mountayaAdmin.ts +102 -0
- package/src/browser.ts +233 -0
- package/src/core/engines/sessionToken.ts +870 -0
- package/src/core/rules/auth.ts +1017 -0
- package/src/core/rules/clientHeader.ts +28 -0
- package/src/core/rules/dates.ts +200 -0
- package/src/core/rules/decode.ts +154 -0
- package/src/core/rules/envelope.ts +41 -0
- package/src/core/rules/errors.ts +1486 -0
- package/src/core/rules/graphql.ts +576 -0
- package/src/core/rules/headerValue.ts +42 -0
- package/src/core/rules/idempotencyKey.ts +64 -0
- package/src/core/rules/nullMask.ts +127 -0
- package/src/core/rules/nullMasks.gen.ts +428 -0
- package/src/core/rules/paginate.ts +316 -0
- package/src/core/rules/rateLimit.ts +507 -0
- package/src/core/rules/redaction.ts +219 -0
- package/src/core/rules/resourceRef.ts +110 -0
- package/src/core/rules/responseBody.ts +492 -0
- package/src/core/rules/retry.ts +386 -0
- package/src/core/rules/selection.ts +416 -0
- package/src/core/rules/sessionAnswer.ts +90 -0
- package/src/core/rules/sessionSchedule.ts +131 -0
- package/src/core/rules/sessionWait.ts +112 -0
- package/src/core/rules/transport.ts +2386 -0
- package/src/core/rules/version.gen.ts +16 -0
- package/src/core/rules/webAddress.ts +165 -0
- package/src/core/rules/webAddresses.gen.ts +30 -0
- package/src/data/operations.gen.ts +603 -0
- package/src/data/schema.gen.ts +8078 -0
- package/src/data/selection.gen.ts +472 -0
- package/src/events/index.ts +63 -0
- package/src/events/rules/agent.ts +439 -0
- package/src/events/rules/collab.ts +554 -0
- package/src/events/rules/collabNulls.gen.ts +17 -0
- package/src/events/rules/eventStream.ts +94 -0
- package/src/events/rules/openSseStream.ts +594 -0
- package/src/events/rules/sse.ts +349 -0
- package/src/index.ts +231 -0
- package/src/rest/adminOperations.gen.ts +70 -0
- package/src/rest/adminResources.gen.ts +138 -0
- package/src/rest/coreOperations.gen.ts +74 -0
- package/src/rest/coreResources.gen.ts +244 -0
- package/src/rest/dates.gen.ts +217 -0
- package/src/rest/operations.gen.ts +4341 -0
- package/src/rest/resources.gen.ts +371 -0
- package/src/rest/schema.gen.ts +57027 -0
- package/src/tiles/operations.gen.ts +206 -0
- package/src/tiles/schema.gen.ts +8406 -0
- package/src/webhooks/rules/constructWebhookEvent.ts +482 -0
- package/src/webhooks/rules/webhookEvent.ts +38 -0
- package/src/webhooks/rules/webhookEvents.gen.ts +732 -0
|
@@ -0,0 +1,1463 @@
|
|
|
1
|
+
import { $ as TerrainGridInput, B as IsochronesResult, F as ExportItineraryInput, G as PoisInput, H as ItineraryResult, I as ExportItineraryResult, J as ReverseGeocodeResult, K as PoisResult, L as GeocodeInput, M as AnalyzeGeometryResult, N as DirectionsInput, O as components, P as DirectionsResult, Q as SuggestionsResult, R as GeocodeResult, U as MatrixInput, V as ItineraryInput, W as MatrixResult, X as SearchResult, Y as SearchInput, Z as SuggestionsInput, dt as RequestOptions, et as TerrainGridResult, fc as components$1, it as TerrainSamplesResult, j as AnalyzeGeometryInput, k as operations, lt as MountayaTransport, m as MountayaError, nt as TerrainProfileResult, pc as operations$1, q as ReverseGeocodeInput, rt as TerrainSamplesInput, tt as TerrainProfileInput, xo as SuccessExtensions, ya as PaginationMetadata, z as IsochronesInput } from "./chunk-CeEX7ayk.js";
|
|
2
|
+
import { A as getCollections, At as patchZone, Bt as postItineraryCollab, C as getAgentRunEvents, D as getCollectionItineraries, E as getCollection, F as getItineraryPace, Ft as postCollectionItineraries, Gt as postItinerarySegment, Ht as postItineraryImport, I as getItineraryShareLink, It as postCollectionShareLink, Jt as postItinerarySegmentMerge, Kt as postItinerarySegmentConvert, L as getLayers, Lt as postCollectionShareLinkRotate, M as getItinerary, Mt as postAgentRunFeedback, N as getItineraryEvents, Nt as postAgentRunInput, O as getCollectionShareLink, P as getItineraryExport, Pt as postCollection, Qt as postItineraryWaypoint, Rt as postCollectionZones, S as getActivities, Ut as postItineraryPreview, Vt as postItineraryDuplicate, Wt as postItineraryPublication, Xt as postItineraryShareLink, Y as getOrganizationEvents, Yt as postItinerarySegmentSplit, Zt as postItineraryShareLinkRotate, _t as patchItinerary, a as deleteCollectionZone, b as deleteZone, bt as patchItineraryWaypoint, c as deleteItinerarySegment, cn as postOrganizationLookup, d as deleteItineraryWaypoint, ft as getZone, gt as patchCollectionItinerary, hn as postZonePublication, ht as patchCollection, i as deleteCollectionShareLink, j as getItineraries, jt as postAgentRun, k as getCollectionZones, l as deleteItinerarySegmentGroup, mn as postZoneCollab, mt as getZones, n as deleteCollection, o as deleteItinerary, pn as postZone, pt as getZoneEvents, qt as postItinerarySegmentGroup, r as deleteCollectionItinerary, s as deleteItineraryPublication, u as deleteItineraryShareLink, vt as patchItinerarySegment, x as deleteZonePublication, yt as patchItinerarySegmentGroup, zt as postItinerary } from "./chunk-DoZt_oIV.js";
|
|
3
|
+
/**
|
|
4
|
+
* FieldTree is a generated selection tree: a leaf is `true`, a composite is a nested
|
|
5
|
+
* tree. Key order is the SDL's field order, and it is load-bearing: see buildDocument.
|
|
6
|
+
*/
|
|
7
|
+
interface FieldTree {
|
|
8
|
+
readonly [field: string]: true | FieldTree;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Selection is what a caller may pass as `select` for a given operation's tree.
|
|
12
|
+
*
|
|
13
|
+
* Every field is optional; a composite may be `true` to take its whole subtree, or a
|
|
14
|
+
* nested selection to go further. The check is `extends true` rather than
|
|
15
|
+
* `extends FieldTree` so it never depends on a nested `as const` literal being assignable
|
|
16
|
+
* to an index signature.
|
|
17
|
+
*/
|
|
18
|
+
type Selection<Tree> = { readonly [K in keyof Tree]?: Tree[K] extends true ? true : true | Selection<Tree[K]>; };
|
|
19
|
+
/**
|
|
20
|
+
* Selected narrows a result type to the fields a selection asked for, unwrapping and
|
|
21
|
+
* re-wrapping arrays and nulls at each level so `{ routes: { distance: true } }` against
|
|
22
|
+
* `{ routes: Route[] }` yields `{ routes: { distance: number }[] }`.
|
|
23
|
+
*
|
|
24
|
+
* The object branch remaps `keyof T` rather than intersecting the two key sets, because a
|
|
25
|
+
* remapped mapping over `keyof T` is homomorphic: it preserves `?` and `readonly` from the
|
|
26
|
+
* result type, which an intersection would silently drop.
|
|
27
|
+
*/
|
|
28
|
+
type Selected<T, S> = T extends null | undefined ? T : T extends readonly (infer E)[] ? T extends unknown[] ? Selected<E, S>[] : readonly Selected<E, S>[] : { [K in keyof T as K extends keyof S ? K : never]: Exclude<S[K & keyof S], undefined> extends true ? T[K] : Selected<T[K], S[K & keyof S]>; };
|
|
29
|
+
/**
|
|
30
|
+
* DataOptions is the second argument of every Data API method.
|
|
31
|
+
*
|
|
32
|
+
* `signal` rides in the bag rather than as a positional parameter, and so does everything
|
|
33
|
+
* after it: a surface that grows a positional argument every time an option arrives is one
|
|
34
|
+
* where the third caller has to remember the order of the first two.
|
|
35
|
+
*
|
|
36
|
+
* It extends the options every REST call takes, so `signal` and the per-call `retry` mean the
|
|
37
|
+
* same thing on all three surfaces, and a knob added there reaches this one too. `select` and
|
|
38
|
+
* the per-call `timeoutMs` are the Data API's own.
|
|
39
|
+
*/
|
|
40
|
+
interface DataOptions<S> extends RequestOptions {
|
|
41
|
+
/** The fields to return. Omit it to receive the full result. */
|
|
42
|
+
readonly select?: S | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* How long each attempt of this call waits for a response, in whole milliseconds from 1 to
|
|
45
|
+
* 2,147,483,647, in place of the client's `timeoutMs` and of the Data API's own budget: a slow
|
|
46
|
+
* matrix or isochrone call can wait longer, and a search box less, on one client. Refused
|
|
47
|
+
* before the first attempt when outside the range.
|
|
48
|
+
*
|
|
49
|
+
* @default the larger of the client's own `timeoutMs` and the 30 seconds the Data API spends on
|
|
50
|
+
* any operation before it answers a 504 itself, plus five seconds: 35 seconds on a client that
|
|
51
|
+
* keeps its default.
|
|
52
|
+
*/
|
|
53
|
+
readonly timeoutMs?: number | undefined;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* DataResult is a method's return type: the full result when nothing was selected, and
|
|
57
|
+
* the narrowed one when something was. The `[S] extends [undefined]` form is deliberate:
|
|
58
|
+
* a naked check would distribute over a union and answer for each member separately.
|
|
59
|
+
*/
|
|
60
|
+
type DataResult<T, S> = [S] extends [undefined] ? T : Selected<T, S>;
|
|
61
|
+
/**
|
|
62
|
+
* SelectionValue is the runtime shape of a selection, once the types are erased.
|
|
63
|
+
*
|
|
64
|
+
* Exported for the caller that builds a selection dynamically (from a config file, a
|
|
65
|
+
* query string, or a model's answer), where the per-operation `Selection` type has nothing
|
|
66
|
+
* to check against. Such a selection is validated when the document is printed rather than
|
|
67
|
+
* by the compiler, which is why the errors name the valid fields.
|
|
68
|
+
*/
|
|
69
|
+
type SelectionValue = {
|
|
70
|
+
readonly [field: string]: true | SelectionValue | undefined;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* MountayaSelectionError is a selection that names something the schema does not have.
|
|
74
|
+
*
|
|
75
|
+
* It is thrown before the request leaves, not after the server refuses, so the message can
|
|
76
|
+
* name the fields that do exist at that level, which is what turns a typo into a fix
|
|
77
|
+
* rather than a round trip and a GraphQL validation error.
|
|
78
|
+
*/
|
|
79
|
+
declare class MountayaSelectionError extends MountayaError {
|
|
80
|
+
readonly name = "MountayaSelectionError";
|
|
81
|
+
}
|
|
82
|
+
declare namespace selection_gen_d_exports {
|
|
83
|
+
export { AnalyzeGeometrySelection, DirectionsSelection, ExportItinerarySelection, GeocodeSelection, IsochronesSelection, ItinerarySelection, MatrixSelection, PoisSelection, ReverseGeocodeSelection, SearchSelection, SuggestionsSelection, TerrainGridSelection, TerrainProfileSelection, TerrainSamplesSelection, analyzeGeometryFields, directionsFields, exportItineraryFields, geocodeFields, isochronesFields, itineraryFields, matrixFields, poisFields, reverseGeocodeFields, searchFields, suggestionsFields, terrainGridFields, terrainProfileFields, terrainSamplesFields };
|
|
84
|
+
}
|
|
85
|
+
/** The selectable fields of `analyzeGeometry`. */
|
|
86
|
+
declare const analyzeGeometryFields: {
|
|
87
|
+
readonly analysis: {
|
|
88
|
+
readonly elevation: {
|
|
89
|
+
readonly altitude: {
|
|
90
|
+
readonly max: true;
|
|
91
|
+
readonly min: true;
|
|
92
|
+
};
|
|
93
|
+
readonly ascent: true;
|
|
94
|
+
readonly descent: true;
|
|
95
|
+
readonly gradient: {
|
|
96
|
+
readonly max: true;
|
|
97
|
+
readonly min: true;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly elevations: true;
|
|
101
|
+
readonly slopeInfo: {
|
|
102
|
+
readonly fromIndex: true;
|
|
103
|
+
readonly toIndex: true;
|
|
104
|
+
readonly value: true;
|
|
105
|
+
};
|
|
106
|
+
readonly speedInfo: {
|
|
107
|
+
readonly fromIndex: true;
|
|
108
|
+
readonly toIndex: true;
|
|
109
|
+
readonly value: true;
|
|
110
|
+
};
|
|
111
|
+
readonly surfaceInfo: {
|
|
112
|
+
readonly fromIndex: true;
|
|
113
|
+
readonly toIndex: true;
|
|
114
|
+
readonly value: true;
|
|
115
|
+
};
|
|
116
|
+
readonly trailDifficultyInfo: {
|
|
117
|
+
readonly fromIndex: true;
|
|
118
|
+
readonly toIndex: true;
|
|
119
|
+
readonly value: true;
|
|
120
|
+
};
|
|
121
|
+
readonly wayTypeInfo: {
|
|
122
|
+
readonly fromIndex: true;
|
|
123
|
+
readonly toIndex: true;
|
|
124
|
+
readonly value: true;
|
|
125
|
+
};
|
|
126
|
+
readonly advisories: {
|
|
127
|
+
readonly tollway: true;
|
|
128
|
+
readonly restrictedAccess: true;
|
|
129
|
+
readonly tollwayInfo: {
|
|
130
|
+
readonly fromIndex: true;
|
|
131
|
+
readonly toIndex: true;
|
|
132
|
+
readonly value: true;
|
|
133
|
+
};
|
|
134
|
+
readonly roadAccessInfo: {
|
|
135
|
+
readonly fromIndex: true;
|
|
136
|
+
readonly toIndex: true;
|
|
137
|
+
readonly values: true;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
readonly duration: true;
|
|
142
|
+
};
|
|
143
|
+
/** A `select` for `analyzeGeometry`. */
|
|
144
|
+
type AnalyzeGeometrySelection = Selection<typeof analyzeGeometryFields>;
|
|
145
|
+
/** The selectable fields of `directions`. */
|
|
146
|
+
declare const directionsFields: {
|
|
147
|
+
readonly routes: {
|
|
148
|
+
readonly distance: true;
|
|
149
|
+
readonly duration: true;
|
|
150
|
+
readonly elevation: {
|
|
151
|
+
readonly altitude: {
|
|
152
|
+
readonly max: true;
|
|
153
|
+
readonly min: true;
|
|
154
|
+
};
|
|
155
|
+
readonly ascent: true;
|
|
156
|
+
readonly descent: true;
|
|
157
|
+
readonly gradient: {
|
|
158
|
+
readonly max: true;
|
|
159
|
+
readonly min: true;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
readonly geometry: true;
|
|
163
|
+
readonly analysis: {
|
|
164
|
+
readonly elevation: {
|
|
165
|
+
readonly altitude: {
|
|
166
|
+
readonly max: true;
|
|
167
|
+
readonly min: true;
|
|
168
|
+
};
|
|
169
|
+
readonly ascent: true;
|
|
170
|
+
readonly descent: true;
|
|
171
|
+
readonly gradient: {
|
|
172
|
+
readonly max: true;
|
|
173
|
+
readonly min: true;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly elevations: true;
|
|
177
|
+
readonly slopeInfo: {
|
|
178
|
+
readonly fromIndex: true;
|
|
179
|
+
readonly toIndex: true;
|
|
180
|
+
readonly value: true;
|
|
181
|
+
};
|
|
182
|
+
readonly speedInfo: {
|
|
183
|
+
readonly fromIndex: true;
|
|
184
|
+
readonly toIndex: true;
|
|
185
|
+
readonly value: true;
|
|
186
|
+
};
|
|
187
|
+
readonly surfaceInfo: {
|
|
188
|
+
readonly fromIndex: true;
|
|
189
|
+
readonly toIndex: true;
|
|
190
|
+
readonly value: true;
|
|
191
|
+
};
|
|
192
|
+
readonly trailDifficultyInfo: {
|
|
193
|
+
readonly fromIndex: true;
|
|
194
|
+
readonly toIndex: true;
|
|
195
|
+
readonly value: true;
|
|
196
|
+
};
|
|
197
|
+
readonly wayTypeInfo: {
|
|
198
|
+
readonly fromIndex: true;
|
|
199
|
+
readonly toIndex: true;
|
|
200
|
+
readonly value: true;
|
|
201
|
+
};
|
|
202
|
+
readonly advisories: {
|
|
203
|
+
readonly tollway: true;
|
|
204
|
+
readonly restrictedAccess: true;
|
|
205
|
+
readonly tollwayInfo: {
|
|
206
|
+
readonly fromIndex: true;
|
|
207
|
+
readonly toIndex: true;
|
|
208
|
+
readonly value: true;
|
|
209
|
+
};
|
|
210
|
+
readonly roadAccessInfo: {
|
|
211
|
+
readonly fromIndex: true;
|
|
212
|
+
readonly toIndex: true;
|
|
213
|
+
readonly values: true;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
readonly avoidance: true;
|
|
218
|
+
readonly summary: true;
|
|
219
|
+
readonly steps: {
|
|
220
|
+
readonly fromIndex: true;
|
|
221
|
+
readonly toIndex: true;
|
|
222
|
+
readonly type: true;
|
|
223
|
+
readonly name: true;
|
|
224
|
+
readonly distance: true;
|
|
225
|
+
readonly duration: true;
|
|
226
|
+
readonly exitNumber: true;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
/** A `select` for `directions`. */
|
|
231
|
+
type DirectionsSelection = Selection<typeof directionsFields>;
|
|
232
|
+
/** The selectable fields of `exportItinerary`. */
|
|
233
|
+
declare const exportItineraryFields: {
|
|
234
|
+
readonly url: true;
|
|
235
|
+
readonly filename: true;
|
|
236
|
+
readonly format: true;
|
|
237
|
+
readonly expiresAt: true;
|
|
238
|
+
};
|
|
239
|
+
/** A `select` for `exportItinerary`. */
|
|
240
|
+
type ExportItinerarySelection = Selection<typeof exportItineraryFields>;
|
|
241
|
+
/** The selectable fields of `geocode`. */
|
|
242
|
+
declare const geocodeFields: {
|
|
243
|
+
readonly count: true;
|
|
244
|
+
readonly places: {
|
|
245
|
+
readonly osm: {
|
|
246
|
+
readonly id: true;
|
|
247
|
+
readonly type: true;
|
|
248
|
+
readonly key: true;
|
|
249
|
+
readonly value: true;
|
|
250
|
+
};
|
|
251
|
+
readonly name: true;
|
|
252
|
+
readonly label: true;
|
|
253
|
+
readonly layer: true;
|
|
254
|
+
readonly category: true;
|
|
255
|
+
readonly point: true;
|
|
256
|
+
readonly bounds: true;
|
|
257
|
+
readonly country: true;
|
|
258
|
+
readonly countryName: true;
|
|
259
|
+
readonly region: true;
|
|
260
|
+
readonly county: true;
|
|
261
|
+
readonly city: true;
|
|
262
|
+
readonly postcode: true;
|
|
263
|
+
readonly street: true;
|
|
264
|
+
readonly houseNumber: true;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
/** A `select` for `geocode`. */
|
|
268
|
+
type GeocodeSelection = Selection<typeof geocodeFields>;
|
|
269
|
+
/** The selectable fields of `isochrones`. */
|
|
270
|
+
declare const isochronesFields: {
|
|
271
|
+
readonly isochrones: {
|
|
272
|
+
readonly value: true;
|
|
273
|
+
readonly area: true;
|
|
274
|
+
readonly reachFactor: true;
|
|
275
|
+
readonly center: true;
|
|
276
|
+
readonly geometry: true;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
/** A `select` for `isochrones`. */
|
|
280
|
+
type IsochronesSelection = Selection<typeof isochronesFields>;
|
|
281
|
+
/** The selectable fields of `itinerary`. */
|
|
282
|
+
declare const itineraryFields: {
|
|
283
|
+
readonly id: true;
|
|
284
|
+
readonly name: true;
|
|
285
|
+
readonly description: true;
|
|
286
|
+
readonly activitySlug: true;
|
|
287
|
+
readonly distance: true;
|
|
288
|
+
readonly ascent: true;
|
|
289
|
+
readonly isPrivate: true;
|
|
290
|
+
readonly organizationId: true;
|
|
291
|
+
readonly segments: {
|
|
292
|
+
readonly id: true;
|
|
293
|
+
readonly name: true;
|
|
294
|
+
readonly description: true;
|
|
295
|
+
readonly position: true;
|
|
296
|
+
readonly groupId: true;
|
|
297
|
+
readonly distance: true;
|
|
298
|
+
readonly duration: true;
|
|
299
|
+
readonly ascent: true;
|
|
300
|
+
readonly descent: true;
|
|
301
|
+
readonly altitude: {
|
|
302
|
+
readonly max: true;
|
|
303
|
+
readonly min: true;
|
|
304
|
+
};
|
|
305
|
+
readonly gradient: {
|
|
306
|
+
readonly max: true;
|
|
307
|
+
readonly min: true;
|
|
308
|
+
};
|
|
309
|
+
readonly geometry: true;
|
|
310
|
+
};
|
|
311
|
+
readonly waypoints: {
|
|
312
|
+
readonly id: true;
|
|
313
|
+
readonly name: true;
|
|
314
|
+
readonly description: true;
|
|
315
|
+
readonly position: true;
|
|
316
|
+
readonly point: true;
|
|
317
|
+
readonly amenities: true;
|
|
318
|
+
readonly timing: {
|
|
319
|
+
readonly cutoffAt: true;
|
|
320
|
+
readonly stopDuration: true;
|
|
321
|
+
};
|
|
322
|
+
readonly contact: {
|
|
323
|
+
readonly website: true;
|
|
324
|
+
readonly phone: true;
|
|
325
|
+
readonly email: true;
|
|
326
|
+
readonly address: true;
|
|
327
|
+
readonly openingHours: true;
|
|
328
|
+
readonly bookingUrl: true;
|
|
329
|
+
};
|
|
330
|
+
readonly media: {
|
|
331
|
+
readonly photos: {
|
|
332
|
+
readonly url: true;
|
|
333
|
+
readonly caption: true;
|
|
334
|
+
};
|
|
335
|
+
readonly links: {
|
|
336
|
+
readonly label: true;
|
|
337
|
+
readonly url: true;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
readonly properties: {
|
|
341
|
+
readonly key: true;
|
|
342
|
+
readonly label: true;
|
|
343
|
+
readonly value: true;
|
|
344
|
+
readonly format: true;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
readonly groups: {
|
|
348
|
+
readonly id: true;
|
|
349
|
+
readonly name: true;
|
|
350
|
+
readonly color: true;
|
|
351
|
+
readonly speed: true;
|
|
352
|
+
};
|
|
353
|
+
readonly segmentCount: true;
|
|
354
|
+
readonly waypointCount: true;
|
|
355
|
+
readonly groupCount: true;
|
|
356
|
+
};
|
|
357
|
+
/** A `select` for `itinerary`. */
|
|
358
|
+
type ItinerarySelection = Selection<typeof itineraryFields>;
|
|
359
|
+
/** The selectable fields of `matrix`. */
|
|
360
|
+
declare const matrixFields: {
|
|
361
|
+
readonly durations: true;
|
|
362
|
+
readonly distances: true;
|
|
363
|
+
};
|
|
364
|
+
/** A `select` for `matrix`. */
|
|
365
|
+
type MatrixSelection = Selection<typeof matrixFields>;
|
|
366
|
+
/** The selectable fields of `pois`. */
|
|
367
|
+
declare const poisFields: {
|
|
368
|
+
readonly count: true;
|
|
369
|
+
readonly pois: {
|
|
370
|
+
readonly osm: {
|
|
371
|
+
readonly id: true;
|
|
372
|
+
readonly type: true;
|
|
373
|
+
readonly key: true;
|
|
374
|
+
readonly value: true;
|
|
375
|
+
};
|
|
376
|
+
readonly name: true;
|
|
377
|
+
readonly category: true;
|
|
378
|
+
readonly point: true;
|
|
379
|
+
readonly elevation: true;
|
|
380
|
+
readonly tags: {
|
|
381
|
+
readonly key: true;
|
|
382
|
+
readonly value: true;
|
|
383
|
+
};
|
|
384
|
+
readonly distanceMeters: true;
|
|
385
|
+
readonly country: true;
|
|
386
|
+
readonly countryName: true;
|
|
387
|
+
readonly region: true;
|
|
388
|
+
readonly city: true;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
/** A `select` for `pois`. */
|
|
392
|
+
type PoisSelection = Selection<typeof poisFields>;
|
|
393
|
+
/** The selectable fields of `reverseGeocode`. */
|
|
394
|
+
declare const reverseGeocodeFields: {
|
|
395
|
+
readonly point: true;
|
|
396
|
+
readonly places: {
|
|
397
|
+
readonly osm: {
|
|
398
|
+
readonly id: true;
|
|
399
|
+
readonly type: true;
|
|
400
|
+
readonly key: true;
|
|
401
|
+
readonly value: true;
|
|
402
|
+
};
|
|
403
|
+
readonly name: true;
|
|
404
|
+
readonly label: true;
|
|
405
|
+
readonly layer: true;
|
|
406
|
+
readonly category: true;
|
|
407
|
+
readonly point: true;
|
|
408
|
+
readonly bounds: true;
|
|
409
|
+
readonly country: true;
|
|
410
|
+
readonly countryName: true;
|
|
411
|
+
readonly region: true;
|
|
412
|
+
readonly county: true;
|
|
413
|
+
readonly city: true;
|
|
414
|
+
readonly postcode: true;
|
|
415
|
+
readonly street: true;
|
|
416
|
+
readonly houseNumber: true;
|
|
417
|
+
};
|
|
418
|
+
readonly count: true;
|
|
419
|
+
};
|
|
420
|
+
/** A `select` for `reverseGeocode`. */
|
|
421
|
+
type ReverseGeocodeSelection = Selection<typeof reverseGeocodeFields>;
|
|
422
|
+
/** The selectable fields of `search`. */
|
|
423
|
+
declare const searchFields: {
|
|
424
|
+
readonly query: true;
|
|
425
|
+
readonly language: true;
|
|
426
|
+
readonly targets: {
|
|
427
|
+
readonly places: true;
|
|
428
|
+
readonly pois: true;
|
|
429
|
+
readonly ways: true;
|
|
430
|
+
readonly itineraries: true;
|
|
431
|
+
readonly collections: true;
|
|
432
|
+
readonly zones: true;
|
|
433
|
+
};
|
|
434
|
+
readonly places: {
|
|
435
|
+
readonly count: true;
|
|
436
|
+
readonly places: {
|
|
437
|
+
readonly osm: {
|
|
438
|
+
readonly id: true;
|
|
439
|
+
readonly type: true;
|
|
440
|
+
readonly key: true;
|
|
441
|
+
readonly value: true;
|
|
442
|
+
};
|
|
443
|
+
readonly name: true;
|
|
444
|
+
readonly label: true;
|
|
445
|
+
readonly layer: true;
|
|
446
|
+
readonly category: true;
|
|
447
|
+
readonly point: true;
|
|
448
|
+
readonly bounds: true;
|
|
449
|
+
readonly country: true;
|
|
450
|
+
readonly countryName: true;
|
|
451
|
+
readonly region: true;
|
|
452
|
+
readonly county: true;
|
|
453
|
+
readonly city: true;
|
|
454
|
+
readonly postcode: true;
|
|
455
|
+
readonly street: true;
|
|
456
|
+
readonly houseNumber: true;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
readonly pois: {
|
|
460
|
+
readonly count: true;
|
|
461
|
+
readonly pois: {
|
|
462
|
+
readonly osm: {
|
|
463
|
+
readonly id: true;
|
|
464
|
+
readonly type: true;
|
|
465
|
+
readonly key: true;
|
|
466
|
+
readonly value: true;
|
|
467
|
+
};
|
|
468
|
+
readonly name: true;
|
|
469
|
+
readonly category: true;
|
|
470
|
+
readonly point: true;
|
|
471
|
+
readonly elevation: true;
|
|
472
|
+
readonly tags: {
|
|
473
|
+
readonly key: true;
|
|
474
|
+
readonly value: true;
|
|
475
|
+
};
|
|
476
|
+
readonly distanceMeters: true;
|
|
477
|
+
readonly country: true;
|
|
478
|
+
readonly countryName: true;
|
|
479
|
+
readonly region: true;
|
|
480
|
+
readonly city: true;
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
readonly ways: {
|
|
484
|
+
readonly count: true;
|
|
485
|
+
readonly ways: {
|
|
486
|
+
readonly osm: {
|
|
487
|
+
readonly id: true;
|
|
488
|
+
readonly type: true;
|
|
489
|
+
readonly key: true;
|
|
490
|
+
readonly value: true;
|
|
491
|
+
};
|
|
492
|
+
readonly name: true;
|
|
493
|
+
readonly highway: true;
|
|
494
|
+
readonly surface: true;
|
|
495
|
+
readonly sacScale: true;
|
|
496
|
+
readonly point: true;
|
|
497
|
+
readonly bounds: true;
|
|
498
|
+
readonly coordinates: true;
|
|
499
|
+
readonly activityCompatible: true;
|
|
500
|
+
readonly country: true;
|
|
501
|
+
readonly countryName: true;
|
|
502
|
+
readonly region: true;
|
|
503
|
+
readonly city: true;
|
|
504
|
+
};
|
|
505
|
+
readonly activityApplied: true;
|
|
506
|
+
};
|
|
507
|
+
readonly itineraries: {
|
|
508
|
+
readonly count: true;
|
|
509
|
+
readonly itineraries: {
|
|
510
|
+
readonly id: true;
|
|
511
|
+
readonly name: true;
|
|
512
|
+
readonly description: true;
|
|
513
|
+
readonly distance: true;
|
|
514
|
+
readonly ascent: true;
|
|
515
|
+
readonly activitySlug: true;
|
|
516
|
+
readonly start: true;
|
|
517
|
+
readonly bounds: true;
|
|
518
|
+
readonly isPrivate: true;
|
|
519
|
+
readonly organizationId: true;
|
|
520
|
+
readonly score: true;
|
|
521
|
+
readonly matchedField: true;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
readonly collections: {
|
|
525
|
+
readonly count: true;
|
|
526
|
+
readonly collections: {
|
|
527
|
+
readonly id: true;
|
|
528
|
+
readonly name: true;
|
|
529
|
+
readonly description: true;
|
|
530
|
+
readonly count: {
|
|
531
|
+
readonly itineraries: true;
|
|
532
|
+
readonly zones: true;
|
|
533
|
+
};
|
|
534
|
+
readonly bounds: true;
|
|
535
|
+
readonly isPrivate: true;
|
|
536
|
+
readonly organizationId: true;
|
|
537
|
+
readonly score: true;
|
|
538
|
+
readonly matchedField: true;
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
readonly zones: {
|
|
542
|
+
readonly count: true;
|
|
543
|
+
readonly zones: {
|
|
544
|
+
readonly id: true;
|
|
545
|
+
readonly name: true;
|
|
546
|
+
readonly description: true;
|
|
547
|
+
readonly level: true;
|
|
548
|
+
readonly mode: true;
|
|
549
|
+
readonly point: true;
|
|
550
|
+
readonly bounds: true;
|
|
551
|
+
readonly isPrivate: true;
|
|
552
|
+
readonly organizationId: true;
|
|
553
|
+
readonly score: true;
|
|
554
|
+
readonly matchedField: true;
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
readonly errors: {
|
|
558
|
+
readonly target: true;
|
|
559
|
+
readonly code: true;
|
|
560
|
+
readonly message: true;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
/** A `select` for `search`. */
|
|
564
|
+
type SearchSelection = Selection<typeof searchFields>;
|
|
565
|
+
/** The selectable fields of `suggestions`. */
|
|
566
|
+
declare const suggestionsFields: {
|
|
567
|
+
readonly routes: {
|
|
568
|
+
readonly distance: true;
|
|
569
|
+
readonly duration: true;
|
|
570
|
+
readonly elevation: {
|
|
571
|
+
readonly altitude: {
|
|
572
|
+
readonly max: true;
|
|
573
|
+
readonly min: true;
|
|
574
|
+
};
|
|
575
|
+
readonly ascent: true;
|
|
576
|
+
readonly descent: true;
|
|
577
|
+
readonly gradient: {
|
|
578
|
+
readonly max: true;
|
|
579
|
+
readonly min: true;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
readonly geometry: true;
|
|
583
|
+
readonly analysis: {
|
|
584
|
+
readonly elevation: {
|
|
585
|
+
readonly altitude: {
|
|
586
|
+
readonly max: true;
|
|
587
|
+
readonly min: true;
|
|
588
|
+
};
|
|
589
|
+
readonly ascent: true;
|
|
590
|
+
readonly descent: true;
|
|
591
|
+
readonly gradient: {
|
|
592
|
+
readonly max: true;
|
|
593
|
+
readonly min: true;
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
readonly elevations: true;
|
|
597
|
+
readonly slopeInfo: {
|
|
598
|
+
readonly fromIndex: true;
|
|
599
|
+
readonly toIndex: true;
|
|
600
|
+
readonly value: true;
|
|
601
|
+
};
|
|
602
|
+
readonly speedInfo: {
|
|
603
|
+
readonly fromIndex: true;
|
|
604
|
+
readonly toIndex: true;
|
|
605
|
+
readonly value: true;
|
|
606
|
+
};
|
|
607
|
+
readonly surfaceInfo: {
|
|
608
|
+
readonly fromIndex: true;
|
|
609
|
+
readonly toIndex: true;
|
|
610
|
+
readonly value: true;
|
|
611
|
+
};
|
|
612
|
+
readonly trailDifficultyInfo: {
|
|
613
|
+
readonly fromIndex: true;
|
|
614
|
+
readonly toIndex: true;
|
|
615
|
+
readonly value: true;
|
|
616
|
+
};
|
|
617
|
+
readonly wayTypeInfo: {
|
|
618
|
+
readonly fromIndex: true;
|
|
619
|
+
readonly toIndex: true;
|
|
620
|
+
readonly value: true;
|
|
621
|
+
};
|
|
622
|
+
readonly advisories: {
|
|
623
|
+
readonly tollway: true;
|
|
624
|
+
readonly restrictedAccess: true;
|
|
625
|
+
readonly tollwayInfo: {
|
|
626
|
+
readonly fromIndex: true;
|
|
627
|
+
readonly toIndex: true;
|
|
628
|
+
readonly value: true;
|
|
629
|
+
};
|
|
630
|
+
readonly roadAccessInfo: {
|
|
631
|
+
readonly fromIndex: true;
|
|
632
|
+
readonly toIndex: true;
|
|
633
|
+
readonly values: true;
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
readonly summary: true;
|
|
638
|
+
readonly steps: {
|
|
639
|
+
readonly fromIndex: true;
|
|
640
|
+
readonly toIndex: true;
|
|
641
|
+
readonly type: true;
|
|
642
|
+
readonly name: true;
|
|
643
|
+
readonly distance: true;
|
|
644
|
+
readonly duration: true;
|
|
645
|
+
readonly exitNumber: true;
|
|
646
|
+
};
|
|
647
|
+
readonly seed: true;
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
/** A `select` for `suggestions`. */
|
|
651
|
+
type SuggestionsSelection = Selection<typeof suggestionsFields>;
|
|
652
|
+
/** The selectable fields of `terrainGrid`. */
|
|
653
|
+
declare const terrainGridFields: {
|
|
654
|
+
readonly count: true;
|
|
655
|
+
readonly coveredCount: true;
|
|
656
|
+
readonly zoom: true;
|
|
657
|
+
readonly resolutionMeters: true;
|
|
658
|
+
readonly cols: true;
|
|
659
|
+
readonly rows: true;
|
|
660
|
+
readonly cells: {
|
|
661
|
+
readonly point: true;
|
|
662
|
+
readonly elevation: true;
|
|
663
|
+
readonly slope: true;
|
|
664
|
+
readonly aspect: true;
|
|
665
|
+
readonly aspectOctant: true;
|
|
666
|
+
readonly steepnessBand: true;
|
|
667
|
+
readonly distanceMeters: true;
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
/** A `select` for `terrainGrid`. */
|
|
671
|
+
type TerrainGridSelection = Selection<typeof terrainGridFields>;
|
|
672
|
+
/** The selectable fields of `terrainProfile`. */
|
|
673
|
+
declare const terrainProfileFields: {
|
|
674
|
+
readonly count: true;
|
|
675
|
+
readonly coveredCount: true;
|
|
676
|
+
readonly zoom: true;
|
|
677
|
+
readonly resolutionMeters: true;
|
|
678
|
+
readonly samples: {
|
|
679
|
+
readonly point: true;
|
|
680
|
+
readonly elevation: true;
|
|
681
|
+
readonly slope: true;
|
|
682
|
+
readonly aspect: true;
|
|
683
|
+
readonly aspectOctant: true;
|
|
684
|
+
readonly steepnessBand: true;
|
|
685
|
+
readonly distanceMeters: true;
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
/** A `select` for `terrainProfile`. */
|
|
689
|
+
type TerrainProfileSelection = Selection<typeof terrainProfileFields>;
|
|
690
|
+
/** The selectable fields of `terrainSamples`. */
|
|
691
|
+
declare const terrainSamplesFields: {
|
|
692
|
+
readonly count: true;
|
|
693
|
+
readonly coveredCount: true;
|
|
694
|
+
readonly zoom: true;
|
|
695
|
+
readonly resolutionMeters: true;
|
|
696
|
+
readonly samples: {
|
|
697
|
+
readonly point: true;
|
|
698
|
+
readonly elevation: true;
|
|
699
|
+
readonly slope: true;
|
|
700
|
+
readonly aspect: true;
|
|
701
|
+
readonly aspectOctant: true;
|
|
702
|
+
readonly steepnessBand: true;
|
|
703
|
+
readonly distanceMeters: true;
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
/** A `select` for `terrainSamples`. */
|
|
707
|
+
type TerrainSamplesSelection = Selection<typeof terrainSamplesFields>;
|
|
708
|
+
declare namespace operations_gen_d_exports$1 {
|
|
709
|
+
export { analyzeGeometry, bind$1 as bind, directions, exportItinerary, geocode, isochrones, itinerary, matrix, pois, reverseGeocode, search, suggestions, terrainGrid, terrainProfile, terrainSamples };
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Analyze surface and way type of an existing geometry.
|
|
713
|
+
* An analysis the routing engine failed on in part is answered as `analysis` states.
|
|
714
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
715
|
+
*/
|
|
716
|
+
declare const analyzeGeometry: <S extends Selection<typeof analyzeGeometryFields> | undefined = undefined>(transport: MountayaTransport, input: AnalyzeGeometryInput, options?: DataOptions<S>) => Promise<DataResult<AnalyzeGeometryResult, S>>;
|
|
717
|
+
/**
|
|
718
|
+
* Compute directions between waypoints for a given activity.
|
|
719
|
+
* Returns one or more routes with distance, duration, geometry, and analysis.
|
|
720
|
+
* A waypoint the routing engine cannot route is refused as `waypoints` states, and every other failure of the engine is INTERNAL_ERROR.
|
|
721
|
+
* BACKCOUNTRY_SKIING has no routing at all, and GRAVEL_BIKE and MOUNTAIN_BIKE are unavailable: all three are VALIDATION_FAILED at ["input", "activity"].
|
|
722
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
723
|
+
*/
|
|
724
|
+
declare const directions: <S extends Selection<typeof directionsFields> | undefined = undefined>(transport: MountayaTransport, input: DirectionsInput, options?: DataOptions<S>) => Promise<DataResult<DirectionsResult, S>>;
|
|
725
|
+
/**
|
|
726
|
+
* Prepare a download of an itinerary in a route file format.
|
|
727
|
+
* It returns a short-lived signed URL rather than the file itself.
|
|
728
|
+
* The bytes of a GPX or FIT are of no use to an assistant reading a response, and inlining them would spend the whole reply on a payload nobody reads; a URL can be handed straight to the user or fetched by a client that wants the file.
|
|
729
|
+
* What may be exported is what `itinerary` serves.
|
|
730
|
+
* An itinerary of your key's own organization, public or private, is exported as its current draft under a session token naming a member, provided the organization holds Map Publishing: the draft of an organization whose agreement does not include it is refused with PAYMENT_REQUIRED, and no URL is minted.
|
|
731
|
+
* Under a session token minted without `user_id`, such as the one an Embedded Studio's read-only viewer runs on, your own organization's itinerary, public or private, is exported as it was last published instead, never as its draft: one never published or taken down, or whose organization's agreement does not include Map Publishing, answers NOT_FOUND.
|
|
732
|
+
* The token Mountaya's MCP server holds for its own requests is the one exception, and exports the draft.
|
|
733
|
+
* Another organization's public itinerary is exported as it was last published, and one that organization has never published, or has taken down, answers NOT_FOUND, as does one whose organization's agreement does not include Map Publishing.
|
|
734
|
+
* An id no itinerary carries and an itinerary your key may not read both answer NOT_FOUND.
|
|
735
|
+
* The URL names one itinerary in one format and nothing else, and stops working ten minutes after it is minted.
|
|
736
|
+
* Every download checks again that the itinerary is still served to the organization the URL was minted for, so a link to another organization's itinerary stops working once that itinerary is made private or taken down, or its organization's agreement stops including Map Publishing.
|
|
737
|
+
* The URL also names the key that minted it, and every download checks again that this key is still active and still of that organization: revoking the key ends every URL it minted.
|
|
738
|
+
* A URL minted under a session token naming a member is downloaded as that member only while they remain one: once they are removed from the organization, the download is served what a URL minted under a session token minted without `user_id` is, the itinerary as it was last published, and 404 when it has no publication.
|
|
739
|
+
* Downloads beyond 60 a minute from one address, an IPv6 address counted by its /64 prefix, answer 429, and so do downloads beyond 6,000 a minute of the URLs one organization's keys minted, or beyond 3,000 a minute of the URLs one person signed in to Mountaya's web application minted, counted once a link is known to be genuine and before the file is rendered.
|
|
740
|
+
* An expired or altered link, or one whose key has been revoked, answers 404.
|
|
741
|
+
* The refusal a mint gives for the itinerary itself is given again by the download when it has come to apply since, as it is rather than as that 404: a plain 402 PAYMENT_REQUIRED for a draft whose organization does not hold Map Publishing.
|
|
742
|
+
* Nothing is stored: this creates no share and leaves no state behind.
|
|
743
|
+
* A personal itinerary, made from an individual account and owned by no organization, is never exported and no URL is minted: your key reads it as published, as it reads another organization's public itinerary, and a personal itinerary is never published, so it answers NOT_FOUND, public or private, like any other itinerary your key may not read.
|
|
744
|
+
* An itinerary of more than 500,000 positions, every position of its segments' geometry, the vias of its routed lines included, plus one per waypoint, is more than one answer carries: it is refused with PAYLOAD_TOO_LARGE at ["input"], naming none of its fields, and no URL is minted.
|
|
745
|
+
* The positions are counted over the whole itinerary, after every other refusal, NOT_FOUND included, and the download refuses it the same way, with a 413, once the itinerary has grown past that since the URL was minted.
|
|
746
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
747
|
+
*/
|
|
748
|
+
declare const exportItinerary: <S extends Selection<typeof exportItineraryFields> | undefined = undefined>(transport: MountayaTransport, input: ExportItineraryInput, options?: DataOptions<S>) => Promise<DataResult<ExportItineraryResult, S>>;
|
|
749
|
+
/**
|
|
750
|
+
* Forward geocode a free-text query into a list of named places.
|
|
751
|
+
* Returns cities, regions, natural features, and addresses ranked by relevance.
|
|
752
|
+
* Every parameter the geocoder is asked with is checked or built by this API, so a failure of the geocoder, its refusal of a request included, is INTERNAL_ERROR, never the caller's to fix.
|
|
753
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
754
|
+
*/
|
|
755
|
+
declare const geocode: <S extends Selection<typeof geocodeFields> | undefined = undefined>(transport: MountayaTransport, input: GeocodeInput, options?: DataOptions<S>) => Promise<DataResult<GeocodeResult, S>>;
|
|
756
|
+
/**
|
|
757
|
+
* Compute isochrones (reachability polygons) from one or more locations for a given activity.
|
|
758
|
+
* Returns polygons representing areas reachable within the specified range.
|
|
759
|
+
* The input's own bounds (one or two locations, one to six ranges, each range at most 7,200 seconds or 25,000 meters, and a speed that stretches no time range past 7,200 seconds) are checked first, each refusal at the field it names, and then each location is placed on the activity's network, as `locations` states.
|
|
760
|
+
* Any failure of the routing engine after that is INTERNAL_ERROR, a ceiling of its own set below these bounds included.
|
|
761
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
762
|
+
*/
|
|
763
|
+
declare const isochrones: <S extends Selection<typeof isochronesFields> | undefined = undefined>(transport: MountayaTransport, input: IsochronesInput, options?: DataOptions<S>) => Promise<DataResult<IsochronesResult, S>>;
|
|
764
|
+
/**
|
|
765
|
+
* Read a single itinerary by identifier, with its ordered segments and waypoints.
|
|
766
|
+
* What is served depends on who owns it.
|
|
767
|
+
* An itinerary of your key's own organization, public or private, is served as its current draft under a session token naming a member.
|
|
768
|
+
* Under a session token minted without `user_id`, such as the one an Embedded Studio's read-only viewer runs on, it is served as it was last published, exactly as a bare publishable key is served it on the Map Studio API, and one never published, taken down, or whose organization's agreement does not include Map Publishing answers NOT_FOUND; the token Mountaya's MCP server holds for its own requests is the one exception, and is served the draft.
|
|
769
|
+
* Another organization's public itinerary ('anyone with the link') is served as it was last published, and one that organization has never published answers NOT_FOUND, as does one whose organization's agreement does not include Map Publishing; another organization's private itinerary is never served.
|
|
770
|
+
* A personal itinerary, made from an individual account and owned by no organization, is readable only when it is public, and then exactly like another organization's public itinerary.
|
|
771
|
+
* An id no itinerary carries and an itinerary you may not read both answer NOT_FOUND, so the answer never confirms that an id exists.
|
|
772
|
+
* An itinerary of more than 500,000 positions, every position of its segments' geometry, the vias of its routed lines included, plus one per waypoint, is more than one answer carries: it is refused with PAYLOAD_TOO_LARGE at ["input"], naming none of its fields, as `exportItinerary` refuses it.
|
|
773
|
+
* The positions are counted over the whole itinerary before anything is loaded, whatever the selection asks for, and the refusal comes after every other, NOT_FOUND included.
|
|
774
|
+
* Within that ceiling, the geometry and the points are decoded only when the selection asks for them, which changes nothing in what is answered.
|
|
775
|
+
* This is the companion to the itineraries target of `search`, which returns references only.
|
|
776
|
+
* Pair it with `terrainProfile` or `analyzeGeometry` to answer questions about the ground a saved route actually covers, sending a segment's LineString positions reduced to [longitude, latitude], as `ItinerarySegment.
|
|
777
|
+
* geometry` describes.
|
|
778
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
779
|
+
*/
|
|
780
|
+
declare const itinerary: <S extends Selection<typeof itineraryFields> | undefined = undefined>(transport: MountayaTransport, input: ItineraryInput, options?: DataOptions<S>) => Promise<DataResult<ItineraryResult, S>>;
|
|
781
|
+
/**
|
|
782
|
+
* Compute a time-distance matrix between locations for a given activity.
|
|
783
|
+
* Returns duration and/or distance grids between all source-destination pairs.
|
|
784
|
+
* The costs are the routing engine's over its whole network: unlike `directions`, they do not leave out the ways an activity avoids, so a cost may cross a ferry, a ford or steps the activity's own route would not take.
|
|
785
|
+
* Use `directions` for a route exact to the activity.
|
|
786
|
+
* A matrix whose search the routing engine cannot hold at once, many locations over a dense network, is computed one source at a time and answered exactly as the whole matrix, recorded as one request, in a few seconds more (see `locations`).
|
|
787
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
788
|
+
*/
|
|
789
|
+
declare const matrix: <S extends Selection<typeof matrixFields> | undefined = undefined>(transport: MountayaTransport, input: MatrixInput, options?: DataOptions<S>) => Promise<DataResult<MatrixResult, S>>;
|
|
790
|
+
/**
|
|
791
|
+
* List points-of-interest matching one or more categories inside a bounding box or a buffered geometry.
|
|
792
|
+
* Returns POIs ranked by relevance and, when a buffered area is provided, annotated with their distance to the geometry.
|
|
793
|
+
* Neither area is required: with neither, the categories are looked up with no geographic filter.
|
|
794
|
+
* `limit` caps what the geocoder is asked for, and a POI outside the buffered area, or a feature that maps to no POI category, is dropped after that, so fewer than `limit` POIs can come back (see `buffered`).
|
|
795
|
+
* Every parameter the geocoder is asked with is checked or built by this API, so a failure of the geocoder, its refusal of a request included, is INTERNAL_ERROR, never the caller's to fix.
|
|
796
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
797
|
+
*/
|
|
798
|
+
declare const pois: <S extends Selection<typeof poisFields> | undefined = undefined>(transport: MountayaTransport, input: PoisInput, options?: DataOptions<S>) => Promise<DataResult<PoisResult, S>>;
|
|
799
|
+
/**
|
|
800
|
+
* Reverse geocode a [longitude, latitude] point into a list of named places.
|
|
801
|
+
* Returns the place closest to the point, optionally constrained by layer or radius.
|
|
802
|
+
* A failure of the geocoder, its refusal of a lookup included, is INTERNAL_ERROR, never the caller's to fix.
|
|
803
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
804
|
+
*/
|
|
805
|
+
declare const reverseGeocode: <S extends Selection<typeof reverseGeocodeFields> | undefined = undefined>(transport: MountayaTransport, input: ReverseGeocodeInput, options?: DataOptions<S>) => Promise<DataResult<ReverseGeocodeResult, S>>;
|
|
806
|
+
/**
|
|
807
|
+
* Unified full-text search across geocoded places, POIs, ways, and Mountaya entities (itineraries, collections, zones).
|
|
808
|
+
* Each enabled target runs on its own: a failed target leaves its section null and adds an entry to `errors`, and `SearchResult` says how a failure is answered and counted.
|
|
809
|
+
* A malformed `focus` or `bbox` fails the request.
|
|
810
|
+
* A feature found by more than one of places, pois and ways is returned once, in `ways` first, then `pois`.
|
|
811
|
+
* The entity targets list your key's own organization's entities only, never another organization's or a personal one.
|
|
812
|
+
* A session token naming a member lists them public and private, an itinerary or a zone as its draft.
|
|
813
|
+
* A session token minted without `user_id` lists what a bare publishable key lists: public itineraries and zones currently published, each as last published, and public collections.
|
|
814
|
+
* The token Mountaya's MCP server holds lists as a member's does.
|
|
815
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope through Mountaya's MCP server, and a session token.
|
|
816
|
+
*/
|
|
817
|
+
declare const search: <S extends Selection<typeof searchFields> | undefined = undefined>(transport: MountayaTransport, input: SearchInput, options?: DataOptions<S>) => Promise<DataResult<SearchResult, S>>;
|
|
818
|
+
/**
|
|
819
|
+
* Generate route suggestions matching distance constraints for a given activity.
|
|
820
|
+
* Returns multiple route candidates with elevation data, allowing the client to select based on elevation gain, distance, or shape preference.
|
|
821
|
+
* Suggested routes NEVER cross a tollway or an access-restricted way.
|
|
822
|
+
* There is no opt-out: proposing somewhere to go is a different act from a user deliberately routing across such a way, which `directions` still allows.
|
|
823
|
+
* Every candidate's `analysis.
|
|
824
|
+
* advisories` therefore reports no hazard.
|
|
825
|
+
* A request no candidate survives fails as `start` states, and `routes` says when fewer come back than were asked for.
|
|
826
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
827
|
+
*/
|
|
828
|
+
declare const suggestions: <S extends Selection<typeof suggestionsFields> | undefined = undefined>(transport: MountayaTransport, input: SuggestionsInput, options?: DataOptions<S>) => Promise<DataResult<SuggestionsResult, S>>;
|
|
829
|
+
/**
|
|
830
|
+
* Sample the surface over a rectangular grid inside a bounding box, for area reconnaissance: finding high ground, a steep band, or a slope facing a given direction before routing through it.
|
|
831
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
832
|
+
*/
|
|
833
|
+
declare const terrainGrid: <S extends Selection<typeof terrainGridFields> | undefined = undefined>(transport: MountayaTransport, input: TerrainGridInput, options?: DataOptions<S>) => Promise<DataResult<TerrainGridResult, S>>;
|
|
834
|
+
/**
|
|
835
|
+
* Sample the surface along a geometry at a fixed interval, producing an elevation profile as data.
|
|
836
|
+
* Use it to answer how steep a route is and where the hard sections sit.
|
|
837
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
838
|
+
*/
|
|
839
|
+
declare const terrainProfile: <S extends Selection<typeof terrainProfileFields> | undefined = undefined>(transport: MountayaTransport, input: TerrainProfileInput, options?: DataOptions<S>) => Promise<DataResult<TerrainProfileResult, S>>;
|
|
840
|
+
/**
|
|
841
|
+
* Sample elevation, slope, and aspect at standalone [longitude, latitude] points.
|
|
842
|
+
* Use it for readings at known coordinates; for an existing line use terrainProfile, and to search an area for features you have not located use terrainGrid.
|
|
843
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
844
|
+
*/
|
|
845
|
+
declare const terrainSamples: <S extends Selection<typeof terrainSamplesFields> | undefined = undefined>(transport: MountayaTransport, input: TerrainSamplesInput, options?: DataOptions<S>) => Promise<DataResult<TerrainSamplesResult, S>>;
|
|
846
|
+
/**
|
|
847
|
+
* bind returns every Data API operation with the transport applied.
|
|
848
|
+
*/
|
|
849
|
+
declare const bind$1: (transport: MountayaTransport) => {
|
|
850
|
+
/**
|
|
851
|
+
* Analyze surface and way type of an existing geometry.
|
|
852
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
853
|
+
* @see {@link analyzeGeometry}
|
|
854
|
+
*/
|
|
855
|
+
analyzeGeometry: <S extends Selection<typeof analyzeGeometryFields> | undefined = undefined>(input: AnalyzeGeometryInput, options?: DataOptions<S>) => Promise<DataResult<AnalyzeGeometryResult, S>>;
|
|
856
|
+
/**
|
|
857
|
+
* Compute directions between waypoints for a given activity.
|
|
858
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
859
|
+
* @see {@link directions}
|
|
860
|
+
*/
|
|
861
|
+
directions: <S extends Selection<typeof directionsFields> | undefined = undefined>(input: DirectionsInput, options?: DataOptions<S>) => Promise<DataResult<DirectionsResult, S>>;
|
|
862
|
+
/**
|
|
863
|
+
* Prepare a download of an itinerary in a route file format.
|
|
864
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
865
|
+
* @see {@link exportItinerary}
|
|
866
|
+
*/
|
|
867
|
+
exportItinerary: <S extends Selection<typeof exportItineraryFields> | undefined = undefined>(input: ExportItineraryInput, options?: DataOptions<S>) => Promise<DataResult<ExportItineraryResult, S>>;
|
|
868
|
+
/**
|
|
869
|
+
* Forward geocode a free-text query into a list of named places.
|
|
870
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
871
|
+
* @see {@link geocode}
|
|
872
|
+
*/
|
|
873
|
+
geocode: <S extends Selection<typeof geocodeFields> | undefined = undefined>(input: GeocodeInput, options?: DataOptions<S>) => Promise<DataResult<GeocodeResult, S>>;
|
|
874
|
+
/**
|
|
875
|
+
* Compute isochrones (reachability polygons) from one or more locations for a given activity.
|
|
876
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
877
|
+
* @see {@link isochrones}
|
|
878
|
+
*/
|
|
879
|
+
isochrones: <S extends Selection<typeof isochronesFields> | undefined = undefined>(input: IsochronesInput, options?: DataOptions<S>) => Promise<DataResult<IsochronesResult, S>>;
|
|
880
|
+
/**
|
|
881
|
+
* Read a single itinerary by identifier, with its ordered segments and waypoints.
|
|
882
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
883
|
+
* @see {@link itinerary}
|
|
884
|
+
*/
|
|
885
|
+
itinerary: <S extends Selection<typeof itineraryFields> | undefined = undefined>(input: ItineraryInput, options?: DataOptions<S>) => Promise<DataResult<ItineraryResult, S>>;
|
|
886
|
+
/**
|
|
887
|
+
* Compute a time-distance matrix between locations for a given activity.
|
|
888
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
889
|
+
* @see {@link matrix}
|
|
890
|
+
*/
|
|
891
|
+
matrix: <S extends Selection<typeof matrixFields> | undefined = undefined>(input: MatrixInput, options?: DataOptions<S>) => Promise<DataResult<MatrixResult, S>>;
|
|
892
|
+
/**
|
|
893
|
+
* List points-of-interest matching one or more categories inside a bounding box or a buffered geometry.
|
|
894
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
895
|
+
* @see {@link pois}
|
|
896
|
+
*/
|
|
897
|
+
pois: <S extends Selection<typeof poisFields> | undefined = undefined>(input: PoisInput, options?: DataOptions<S>) => Promise<DataResult<PoisResult, S>>;
|
|
898
|
+
/**
|
|
899
|
+
* Reverse geocode a [longitude, latitude] point into a list of named places.
|
|
900
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
901
|
+
* @see {@link reverseGeocode}
|
|
902
|
+
*/
|
|
903
|
+
reverseGeocode: <S extends Selection<typeof reverseGeocodeFields> | undefined = undefined>(input: ReverseGeocodeInput, options?: DataOptions<S>) => Promise<DataResult<ReverseGeocodeResult, S>>;
|
|
904
|
+
/**
|
|
905
|
+
* Unified full-text search across geocoded places, POIs, ways, and Mountaya entities (itineraries, collections, zones).
|
|
906
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope through Mountaya's MCP server, and a session token.
|
|
907
|
+
* @see {@link search}
|
|
908
|
+
*/
|
|
909
|
+
search: <S extends Selection<typeof searchFields> | undefined = undefined>(input: SearchInput, options?: DataOptions<S>) => Promise<DataResult<SearchResult, S>>;
|
|
910
|
+
/**
|
|
911
|
+
* Generate route suggestions matching distance constraints for a given activity.
|
|
912
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
913
|
+
* @see {@link suggestions}
|
|
914
|
+
*/
|
|
915
|
+
suggestions: <S extends Selection<typeof suggestionsFields> | undefined = undefined>(input: SuggestionsInput, options?: DataOptions<S>) => Promise<DataResult<SuggestionsResult, S>>;
|
|
916
|
+
/**
|
|
917
|
+
* Sample the surface over a rectangular grid inside a bounding box, for area reconnaissance: finding high ground, a steep band, or a slope facing a given direction before routing through it.
|
|
918
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
919
|
+
* @see {@link terrainGrid}
|
|
920
|
+
*/
|
|
921
|
+
terrainGrid: <S extends Selection<typeof terrainGridFields> | undefined = undefined>(input: TerrainGridInput, options?: DataOptions<S>) => Promise<DataResult<TerrainGridResult, S>>;
|
|
922
|
+
/**
|
|
923
|
+
* Sample the surface along a geometry at a fixed interval, producing an elevation profile as data.
|
|
924
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
925
|
+
* @see {@link terrainProfile}
|
|
926
|
+
*/
|
|
927
|
+
terrainProfile: <S extends Selection<typeof terrainProfileFields> | undefined = undefined>(input: TerrainProfileInput, options?: DataOptions<S>) => Promise<DataResult<TerrainProfileResult, S>>;
|
|
928
|
+
/**
|
|
929
|
+
* Sample elevation, slope, and aspect at standalone [longitude, latitude] points.
|
|
930
|
+
* Requires a publishable key with the DATA scope, or with the MCP scope when the call arrives through Mountaya's MCP server, and a session token.
|
|
931
|
+
* @see {@link terrainSamples}
|
|
932
|
+
*/
|
|
933
|
+
terrainSamples: <S extends Selection<typeof terrainSamplesFields> | undefined = undefined>(input: TerrainSamplesInput, options?: DataOptions<S>) => Promise<DataResult<TerrainSamplesResult, S>>;
|
|
934
|
+
};
|
|
935
|
+
declare namespace operations_gen_d_exports {
|
|
936
|
+
export { bind, getCollectionSpecification, getItinerariesSpecification, getItinerarySpecification, getOverlaySpecification, getTileLayers, getZonesSpecification };
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* SuccessBody extracts the JSON body of an operation's 2xx response: its 200, else its 201,
|
|
940
|
+
* else its 202.
|
|
941
|
+
*
|
|
942
|
+
* The platform wraps every success in an envelope whose `data` carries the payload, so
|
|
943
|
+
* this resolves to the envelope rather than to the bare resource: callers read
|
|
944
|
+
* `result.data`, which is what the wire actually sends, `null` on a write that removes
|
|
945
|
+
* something and has nothing left to answer. A 202 is read like the other two: an operation
|
|
946
|
+
* that starts work rather than finishing it names what it started at `data`, and that is
|
|
947
|
+
* typed only if this reaches it.
|
|
948
|
+
*/
|
|
949
|
+
type SuccessBody<O> = O extends {
|
|
950
|
+
responses: {
|
|
951
|
+
200: {
|
|
952
|
+
content: {
|
|
953
|
+
"application/json": infer B;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
} ? B : O extends {
|
|
958
|
+
responses: {
|
|
959
|
+
201: {
|
|
960
|
+
content: {
|
|
961
|
+
"application/json": infer C;
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
} ? C : O extends {
|
|
966
|
+
responses: {
|
|
967
|
+
202: {
|
|
968
|
+
content: {
|
|
969
|
+
"application/json": infer D;
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
} ? D : unknown;
|
|
974
|
+
/**
|
|
975
|
+
* Retrieve the tile specification for a collection.
|
|
976
|
+
* GET /v1/collections/{collection_id}/specification
|
|
977
|
+
* Requires a publishable key with the `tiles` scope.
|
|
978
|
+
*/
|
|
979
|
+
declare const getCollectionSpecification: (transport: MountayaTransport, args: {
|
|
980
|
+
readonly "collection_id": string;
|
|
981
|
+
readonly query?: NonNullable<operations["getCollectionSpecification"]["parameters"]["query"]> | undefined;
|
|
982
|
+
}, options?: RequestOptions) => Promise<SuccessBody<operations["getCollectionSpecification"]>>;
|
|
983
|
+
/**
|
|
984
|
+
* Retrieve the tile specification for the organization's itineraries.
|
|
985
|
+
* GET /v1/itineraries/specification
|
|
986
|
+
* Requires a publishable key with the `tiles` scope.
|
|
987
|
+
*/
|
|
988
|
+
declare const getItinerariesSpecification: (transport: MountayaTransport, options?: RequestOptions) => Promise<SuccessBody<operations["getItinerariesSpecification"]>>;
|
|
989
|
+
/**
|
|
990
|
+
* Retrieve the tile specification for a single itinerary.
|
|
991
|
+
* GET /v1/itineraries/{itinerary_id}/specification
|
|
992
|
+
* Requires a publishable key with the `tiles` scope.
|
|
993
|
+
*/
|
|
994
|
+
declare const getItinerarySpecification: (transport: MountayaTransport, args: {
|
|
995
|
+
readonly "itinerary_id": string;
|
|
996
|
+
}, options?: RequestOptions) => Promise<SuccessBody<operations["getItinerarySpecification"]>>;
|
|
997
|
+
/**
|
|
998
|
+
* Retrieve the tile specification for a map overlay.
|
|
999
|
+
* GET /v1/overlays/{overlay}/specification
|
|
1000
|
+
* Requires a publishable key with the `tiles` scope.
|
|
1001
|
+
*/
|
|
1002
|
+
declare const getOverlaySpecification: (transport: MountayaTransport, args: {
|
|
1003
|
+
readonly "overlay": string;
|
|
1004
|
+
readonly query?: NonNullable<operations["getOverlaySpecification"]["parameters"]["query"]> | undefined;
|
|
1005
|
+
}, options?: RequestOptions) => Promise<SuccessBody<operations["getOverlaySpecification"]>>;
|
|
1006
|
+
/**
|
|
1007
|
+
* List the terrains, overlays and layers this API draws.
|
|
1008
|
+
* GET /v1/tile-layers
|
|
1009
|
+
* Requires a publishable key with the `tiles` scope.
|
|
1010
|
+
*/
|
|
1011
|
+
declare const getTileLayers: (transport: MountayaTransport, args?: {
|
|
1012
|
+
readonly query?: NonNullable<operations["getTileLayers"]["parameters"]["query"]> | undefined;
|
|
1013
|
+
}, options?: RequestOptions) => Promise<SuccessBody<operations["getTileLayers"]>>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Retrieve the tile specification for the organization's zones.
|
|
1016
|
+
* GET /v1/zones/specification
|
|
1017
|
+
* Requires a publishable key with the `tiles` scope.
|
|
1018
|
+
*/
|
|
1019
|
+
declare const getZonesSpecification: (transport: MountayaTransport, options?: RequestOptions) => Promise<SuccessBody<operations["getZonesSpecification"]>>;
|
|
1020
|
+
/**
|
|
1021
|
+
* bind returns every 'tiles' operation with the transport applied.
|
|
1022
|
+
*/
|
|
1023
|
+
declare const bind: (transport: MountayaTransport) => {
|
|
1024
|
+
/**
|
|
1025
|
+
* Retrieve the tile specification for a collection.
|
|
1026
|
+
* GET /v1/collections/{collection_id}/specification
|
|
1027
|
+
* Requires a publishable key with the `tiles` scope.
|
|
1028
|
+
* @see {@link getCollectionSpecification}
|
|
1029
|
+
*/
|
|
1030
|
+
getCollectionSpecification: (args: Parameters<typeof getCollectionSpecification>[1], options?: RequestOptions) => Promise<{
|
|
1031
|
+
extensions?: ({
|
|
1032
|
+
metadata?: {
|
|
1033
|
+
[key: string]: unknown;
|
|
1034
|
+
} | undefined;
|
|
1035
|
+
} & {
|
|
1036
|
+
[key: string]: unknown;
|
|
1037
|
+
}) | undefined;
|
|
1038
|
+
} & {
|
|
1039
|
+
data: unknown;
|
|
1040
|
+
} & {
|
|
1041
|
+
data: components["schemas"]["TileSpecification"];
|
|
1042
|
+
}>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Retrieve the tile specification for the organization's itineraries.
|
|
1045
|
+
* GET /v1/itineraries/specification
|
|
1046
|
+
* Requires a publishable key with the `tiles` scope.
|
|
1047
|
+
* @see {@link getItinerariesSpecification}
|
|
1048
|
+
*/
|
|
1049
|
+
getItinerariesSpecification: (options?: RequestOptions) => Promise<{
|
|
1050
|
+
extensions?: ({
|
|
1051
|
+
metadata?: {
|
|
1052
|
+
[key: string]: unknown;
|
|
1053
|
+
} | undefined;
|
|
1054
|
+
} & {
|
|
1055
|
+
[key: string]: unknown;
|
|
1056
|
+
}) | undefined;
|
|
1057
|
+
} & {
|
|
1058
|
+
data: unknown;
|
|
1059
|
+
} & {
|
|
1060
|
+
data: components["schemas"]["TileSpecification"];
|
|
1061
|
+
}>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Retrieve the tile specification for a single itinerary.
|
|
1064
|
+
* GET /v1/itineraries/{itinerary_id}/specification
|
|
1065
|
+
* Requires a publishable key with the `tiles` scope.
|
|
1066
|
+
* @see {@link getItinerarySpecification}
|
|
1067
|
+
*/
|
|
1068
|
+
getItinerarySpecification: (args: Parameters<typeof getItinerarySpecification>[1], options?: RequestOptions) => Promise<{
|
|
1069
|
+
extensions?: ({
|
|
1070
|
+
metadata?: {
|
|
1071
|
+
[key: string]: unknown;
|
|
1072
|
+
} | undefined;
|
|
1073
|
+
} & {
|
|
1074
|
+
[key: string]: unknown;
|
|
1075
|
+
}) | undefined;
|
|
1076
|
+
} & {
|
|
1077
|
+
data: unknown;
|
|
1078
|
+
} & {
|
|
1079
|
+
data: components["schemas"]["TileSpecification"];
|
|
1080
|
+
}>;
|
|
1081
|
+
/**
|
|
1082
|
+
* Retrieve the tile specification for a map overlay.
|
|
1083
|
+
* GET /v1/overlays/{overlay}/specification
|
|
1084
|
+
* Requires a publishable key with the `tiles` scope.
|
|
1085
|
+
* @see {@link getOverlaySpecification}
|
|
1086
|
+
*/
|
|
1087
|
+
getOverlaySpecification: (args: Parameters<typeof getOverlaySpecification>[1], options?: RequestOptions) => Promise<{
|
|
1088
|
+
extensions?: ({
|
|
1089
|
+
metadata?: {
|
|
1090
|
+
[key: string]: unknown;
|
|
1091
|
+
} | undefined;
|
|
1092
|
+
} & {
|
|
1093
|
+
[key: string]: unknown;
|
|
1094
|
+
}) | undefined;
|
|
1095
|
+
} & {
|
|
1096
|
+
data: unknown;
|
|
1097
|
+
} & {
|
|
1098
|
+
data: components["schemas"]["TileSpecification"];
|
|
1099
|
+
}>;
|
|
1100
|
+
/**
|
|
1101
|
+
* List the terrains, overlays and layers this API draws.
|
|
1102
|
+
* GET /v1/tile-layers
|
|
1103
|
+
* Requires a publishable key with the `tiles` scope.
|
|
1104
|
+
* @see {@link getTileLayers}
|
|
1105
|
+
*/
|
|
1106
|
+
getTileLayers: (args?: Parameters<typeof getTileLayers>[1], options?: RequestOptions) => Promise<{
|
|
1107
|
+
extensions?: ({
|
|
1108
|
+
metadata?: {
|
|
1109
|
+
[key: string]: unknown;
|
|
1110
|
+
} | undefined;
|
|
1111
|
+
} & {
|
|
1112
|
+
[key: string]: unknown;
|
|
1113
|
+
}) | undefined;
|
|
1114
|
+
} & {
|
|
1115
|
+
data: unknown;
|
|
1116
|
+
} & {
|
|
1117
|
+
data: components["schemas"]["Layers"];
|
|
1118
|
+
}>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Retrieve the tile specification for the organization's zones.
|
|
1121
|
+
* GET /v1/zones/specification
|
|
1122
|
+
* Requires a publishable key with the `tiles` scope.
|
|
1123
|
+
* @see {@link getZonesSpecification}
|
|
1124
|
+
*/
|
|
1125
|
+
getZonesSpecification: (options?: RequestOptions) => Promise<{
|
|
1126
|
+
extensions?: ({
|
|
1127
|
+
metadata?: {
|
|
1128
|
+
[key: string]: unknown;
|
|
1129
|
+
} | undefined;
|
|
1130
|
+
} & {
|
|
1131
|
+
[key: string]: unknown;
|
|
1132
|
+
}) | undefined;
|
|
1133
|
+
} & {
|
|
1134
|
+
data: unknown;
|
|
1135
|
+
} & {
|
|
1136
|
+
data: components["schemas"]["TileSpecification"];
|
|
1137
|
+
}>;
|
|
1138
|
+
};
|
|
1139
|
+
/** The schemas the Map Studio contract declares, by the name the contract gives each. */
|
|
1140
|
+
type RestSchemas = components$1["schemas"];
|
|
1141
|
+
/**
|
|
1142
|
+
* decodeRestSchema answers `json` as the Map Studio schema `schema` names, with every instant that
|
|
1143
|
+
* schema declares decoded to a `Date`, and null at every member it types required and nullable
|
|
1144
|
+
* that `json` leaves out: the value a generated operation hands back, for JSON that reached the
|
|
1145
|
+
* caller some other way, such as a fixture baked into a bundle or a record read back from a cache.
|
|
1146
|
+
*
|
|
1147
|
+
* It decodes what a response decodes and nothing else. A string becomes a `Date` only in a field
|
|
1148
|
+
* the schema types as one, at any depth, and only where it is a full ISO 8601 timestamp carrying
|
|
1149
|
+
* a zone and naming a real instant, so a `name` that holds a timestamp stays the string it is. A
|
|
1150
|
+
* cast (`json as ItineraryWithDetails`) leaves every instant a string behind a type that says
|
|
1151
|
+
* `Date`, which throws at the first `.getTime()`, and a member left out `undefined` behind a type
|
|
1152
|
+
* that says null. A member the schema types optional is left out as it arrived.
|
|
1153
|
+
*
|
|
1154
|
+
* It decodes and never validates: the answer is typed by the schema whatever `json` holds, and a
|
|
1155
|
+
* value whose shape differs from the schema is left as it arrived, as is a string in a field the
|
|
1156
|
+
* schema declares an instant that names none, which fails the decode of a response. JSON from a
|
|
1157
|
+
* source the caller does not trust is the caller's to validate, before this call.
|
|
1158
|
+
*
|
|
1159
|
+
* `json` is never written to, so a frozen value and a JSON module several importers share are
|
|
1160
|
+
* safe to pass. Each object and list holding an instant that decodes, or leaving out a member that
|
|
1161
|
+
* reads null, is copied, and everything else (a geometry, a list of plain strings) is shared with
|
|
1162
|
+
* the answer. A value with nothing to decode comes back as itself: one decoded already, and any
|
|
1163
|
+
* value of a schema that declares no instant and no member that reads null.
|
|
1164
|
+
*
|
|
1165
|
+
* @param schema - A name under `RestSchema.components["schemas"]`, such as
|
|
1166
|
+
* `"ItineraryWithDetails"`.
|
|
1167
|
+
* @param json - The parsed JSON of one value of that schema. A list of them is decoded by
|
|
1168
|
+
* calling this once per member.
|
|
1169
|
+
* @returns `json` as the schema's type, its declared instants decoded.
|
|
1170
|
+
*
|
|
1171
|
+
* @example
|
|
1172
|
+
* ```ts
|
|
1173
|
+
* declare const baked: unknown; // A fixture baked into the bundle, as JSON.parse answers it.
|
|
1174
|
+
*
|
|
1175
|
+
* const itinerary = decodeRestSchema("ItineraryWithDetails", baked);
|
|
1176
|
+
*
|
|
1177
|
+
* itinerary.created_at.getTime(); // A Date, as `getItinerary` answers one.
|
|
1178
|
+
* ```
|
|
1179
|
+
*/
|
|
1180
|
+
declare const decodeRestSchema: <N extends keyof RestSchemas>(schema: N, json: unknown) => RestSchemas[N];
|
|
1181
|
+
/**
|
|
1182
|
+
* MountayaResponse is what a Map Studio API or Tile API method resolves to: the response envelope
|
|
1183
|
+
* whole, its payload at `data` and the response-scoped metadata the operation documents at
|
|
1184
|
+
* `extensions.metadata`.
|
|
1185
|
+
*
|
|
1186
|
+
* A resource the contract tags carries its tag as its own `etag` member inside `data`, exactly as
|
|
1187
|
+
* the API sent it, and that tag is what a conditional write sends back as `ifMatch`. A write whose
|
|
1188
|
+
* answer has no payload, a removal, answers `data` as `null`, and the envelope still comes back
|
|
1189
|
+
* whole.
|
|
1190
|
+
*
|
|
1191
|
+
* @typeParam T The payload's type.
|
|
1192
|
+
*
|
|
1193
|
+
* @example
|
|
1194
|
+
* ```ts
|
|
1195
|
+
* import type { MountayaResponse } from "@mountaya/client";
|
|
1196
|
+
*
|
|
1197
|
+
* function payloadOf<T>(response: MountayaResponse<T>): T {
|
|
1198
|
+
* return response.data;
|
|
1199
|
+
* }
|
|
1200
|
+
* ```
|
|
1201
|
+
*/
|
|
1202
|
+
interface MountayaResponse<T = unknown> extends SuccessExtensions {
|
|
1203
|
+
/** The operation's payload, `null` on a write whose answer has none. */
|
|
1204
|
+
readonly data: T;
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* PagedResponse is what a paged operation answers with: the rows of one page at `data`, and at
|
|
1208
|
+
* `extensions.metadata.pagination` the page size it was served under and the cursor of the page
|
|
1209
|
+
* after it.
|
|
1210
|
+
*
|
|
1211
|
+
* Every Map Studio operation that takes `cursor` and `limit` under `query` answers with this
|
|
1212
|
+
* shape, whatever else its metadata carries, so each is an operation {@link paginate} walks.
|
|
1213
|
+
*/
|
|
1214
|
+
interface PagedResponse<T> {
|
|
1215
|
+
/** The rows of this page, in the listing's order. */
|
|
1216
|
+
readonly data: readonly T[];
|
|
1217
|
+
/** The envelope's extensions, where the page names the next one. */
|
|
1218
|
+
readonly extensions: {
|
|
1219
|
+
/** The page's metadata, which carries more than the cursor on some operations. */
|
|
1220
|
+
readonly metadata: {
|
|
1221
|
+
/** The page size this page was served under, and the cursor of the next, null on the last. */
|
|
1222
|
+
readonly pagination: PaginationMetadata;
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* PaginateOptions are the options of one walk: a call's own `retry`, `signal` and `timeoutMs`,
|
|
1228
|
+
* which every request of the walk is made under, and the two that shape the walk itself.
|
|
1229
|
+
*
|
|
1230
|
+
* `pageSize` and `maxPages` are checked when {@link paginate} is called, and a value outside its
|
|
1231
|
+
* range throws a `MountayaConfigurationError` naming the option and the value, before any
|
|
1232
|
+
* request. `undefined` is an omitted member, never a value.
|
|
1233
|
+
*/
|
|
1234
|
+
interface PaginateOptions extends RequestOptions {
|
|
1235
|
+
/**
|
|
1236
|
+
* How many rows each request asks for, as a whole number from 1 to 100, the ceiling the API
|
|
1237
|
+
* sets on a page. A smaller page is a faster first row and more requests for the whole listing.
|
|
1238
|
+
*
|
|
1239
|
+
* @default 50
|
|
1240
|
+
*/
|
|
1241
|
+
readonly pageSize?: number | undefined;
|
|
1242
|
+
/**
|
|
1243
|
+
* The most requests one walk makes, as a whole number of 1 or more, for a caller who wants at
|
|
1244
|
+
* most that much of the listing. A walk that reaches it ends there with no error and the rest
|
|
1245
|
+
* of the listing unread. Left out, the walk reads to the listing's last page.
|
|
1246
|
+
*
|
|
1247
|
+
* @default none: the walk ends at the listing's last page.
|
|
1248
|
+
*/
|
|
1249
|
+
readonly maxPages?: number | undefined;
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* paginate walks a paged Map Studio listing and answers its rows one at a time, requesting each
|
|
1253
|
+
* page as the rows before it are read.
|
|
1254
|
+
*
|
|
1255
|
+
* Every request carries the caller's `args` with the walk's own page under `query`: `limit` is
|
|
1256
|
+
* `pageSize`, and `cursor` is where the walk has reached. On the first request that is the
|
|
1257
|
+
* caller's own `query.cursor`, where it wrote one, so a walk resumes where an earlier one stopped;
|
|
1258
|
+
* after it, the `next_cursor` the latest page named. A `limit` the caller wrote is replaced, and
|
|
1259
|
+
* every other member of `args`, the filters and the `sort` under `query` included, is sent as
|
|
1260
|
+
* given on every request: a cursor is bound to the filters and the order it was issued under, and
|
|
1261
|
+
* the API refuses one sent with others. A page may hold fewer rows than it was asked for, and is
|
|
1262
|
+
* followed by its cursor all the same, and so is a page that holds no row and names a cursor: the
|
|
1263
|
+
* API cuts a page before it leaves out what the caller may not see, so an empty page can come
|
|
1264
|
+
* before the rows that follow it, and only a null `next_cursor` ends a listing.
|
|
1265
|
+
*
|
|
1266
|
+
* The walk ends, with no further request, at the first of:
|
|
1267
|
+
*
|
|
1268
|
+
* - a page whose `next_cursor` is null;
|
|
1269
|
+
* - `maxPages` requests made, where the caller states it, which leaves the rest of the listing
|
|
1270
|
+
* unread;
|
|
1271
|
+
* - a `next_cursor` the walk has already sent, which it refuses to follow: the iteration rejects
|
|
1272
|
+
* with a `MountayaApiError`, since following it would read the listing again without end and
|
|
1273
|
+
* stopping there would answer part of a listing as if it were the whole.
|
|
1274
|
+
*
|
|
1275
|
+
* An operation's failure rejects the iteration with the error the operation threw, and the rows
|
|
1276
|
+
* already answered stay answered.
|
|
1277
|
+
*
|
|
1278
|
+
* `options.signal` is read before each request, and each request is made under it. Once it
|
|
1279
|
+
* aborts, the walk requests no further page: the rows of a page already answered are still
|
|
1280
|
+
* answered, and where the walk would have requested the next page it rejects with the signal's
|
|
1281
|
+
* own reason, as an aborted call does, so a listing the abort cut short never reads as one read
|
|
1282
|
+
* to its end. A walk with no page left to request ends as it would have, with no error.
|
|
1283
|
+
*
|
|
1284
|
+
* What it answers is iterable more than once, and each iteration walks the listing again from
|
|
1285
|
+
* where the caller's own cursor starts it. No request is made until it is iterated, and a reader
|
|
1286
|
+
* that stops early (a `break`) leaves the remaining pages unrequested. The API reads by keyset, so
|
|
1287
|
+
* a row whose sort key does not change is neither skipped nor read twice, though a row a write
|
|
1288
|
+
* moves across the cursor may be.
|
|
1289
|
+
*
|
|
1290
|
+
* `args` is typed by `operation`, so a member the operation does not declare (a `limit` beside a
|
|
1291
|
+
* path parameter, a filter it does not take) is a type error, as it is in a call to the operation
|
|
1292
|
+
* itself. `A` is read off the operation's parameter, and `NonNullable<A>` is an inference site of
|
|
1293
|
+
* lower priority, which also drops the `undefined` of a parameter declared optional. It decides
|
|
1294
|
+
* `A` only where `operation` declares nothing, which is a wrapper whose `args` parameter carries
|
|
1295
|
+
* no type: there the arguments type the wrapper, and a member the operation does not declare can
|
|
1296
|
+
* pass unrefused. Typing that parameter
|
|
1297
|
+
* (`args: Parameters<typeof rest.getZones>[1]`) restores the check.
|
|
1298
|
+
*
|
|
1299
|
+
* @param operation - A method of the client that takes `cursor` and `limit` under `query`, such
|
|
1300
|
+
* as `mountaya.studio.zones.getZones`, or one the admin unit binds, such as
|
|
1301
|
+
* `new MountayaAdmin(mountaya).members.getOrganizationMembers`. An operation that takes no
|
|
1302
|
+
* cursor answers
|
|
1303
|
+
* no {@link PagedResponse}, so it is a type error here. A free function takes its transport
|
|
1304
|
+
* first, so it is passed wrapped: `(args, options) => rest.getZones(transport, args, options)`.
|
|
1305
|
+
* @param args - The operation's own arguments: its path parameters, and any filter, `sort` or
|
|
1306
|
+
* starting `cursor` under `query`. `{}` for an operation that requires none.
|
|
1307
|
+
* @param options - The walk's `pageSize` and `maxPages`, and the `retry`, `signal` and
|
|
1308
|
+
* `timeoutMs` each request is made under.
|
|
1309
|
+
* @returns The listing's rows, in the listing's order, typed as the operation's own.
|
|
1310
|
+
* @throws `MountayaConfigurationError` when called, for an `operation` that is not a function,
|
|
1311
|
+
* for `args` or `options` that are not an object, or for a `pageSize` or a `maxPages` outside
|
|
1312
|
+
* its range; and while iterating, for an operation that answers no page, and a
|
|
1313
|
+
* `MountayaApiError` for a `next_cursor` the walk has already sent.
|
|
1314
|
+
*
|
|
1315
|
+
* @example
|
|
1316
|
+
* ```ts
|
|
1317
|
+
* const itineraries = [];
|
|
1318
|
+
* for await (const itinerary of paginate(mountaya.studio.itineraries.getItineraries, {
|
|
1319
|
+
* query: { organization_id, sort: "-updated_at" },
|
|
1320
|
+
* })) {
|
|
1321
|
+
* itineraries.push(itinerary);
|
|
1322
|
+
* }
|
|
1323
|
+
* ```
|
|
1324
|
+
*/
|
|
1325
|
+
declare const paginate: <A extends object | undefined, T>(operation: (args: A, options?: RequestOptions) => Promise<PagedResponse<T>>, args: NonNullable<A>, options?: PaginateOptions) => AsyncIterable<T>;
|
|
1326
|
+
/**
|
|
1327
|
+
* ListingFilters is what narrows one listing: the query parameters of its operation, less the
|
|
1328
|
+
* page it is cut into. The cursor and the page size choose a page of a listing, not which
|
|
1329
|
+
* listing it is, so a ref never carries them.
|
|
1330
|
+
*/
|
|
1331
|
+
type ListingFilters<Op extends "getCollections" | "getItineraries" | "getZones"> = Omit<NonNullable<operations$1[Op]["parameters"]["query"]>, "cursor" | "limit">;
|
|
1332
|
+
/**
|
|
1333
|
+
* CollectionSpecificationQuery is what a collection's specification is read with: the layers it
|
|
1334
|
+
* declares, each the organization's own default where it is left out.
|
|
1335
|
+
*/
|
|
1336
|
+
type CollectionSpecificationQuery = NonNullable<operations["getCollectionSpecification"]["parameters"]["query"]>;
|
|
1337
|
+
/**
|
|
1338
|
+
* ResourceRef names one resource a cache above the transport may hold.
|
|
1339
|
+
*
|
|
1340
|
+
* A member with an optional narrowing field means both things: supplied, it names one entry;
|
|
1341
|
+
* omitted, it names the family. A listing's `filters` narrow the same way, member by member:
|
|
1342
|
+
* `{ kind: "collections", filters: { itinerary_id } }` names every listing of the collections
|
|
1343
|
+
* that hold one itinerary, whatever else it was filtered or sorted by, and
|
|
1344
|
+
* `{ kind: "collections" }` names every collection listing, which is what a write that changes
|
|
1345
|
+
* a collection has to drop, since each listing serves the collection's own record.
|
|
1346
|
+
*/
|
|
1347
|
+
type ResourceRef =
|
|
1348
|
+
/** The activity catalog. One entry, no id: it is the same list for every reader. */
|
|
1349
|
+
{
|
|
1350
|
+
kind: "activities";
|
|
1351
|
+
} |
|
|
1352
|
+
/** One collection's own record. */
|
|
1353
|
+
{
|
|
1354
|
+
kind: "collection";
|
|
1355
|
+
id: string;
|
|
1356
|
+
} |
|
|
1357
|
+
/**
|
|
1358
|
+
* The itineraries one collection holds, as its contents listing (`getCollectionItineraries`)
|
|
1359
|
+
* reads them: every walk of it, whatever its order or page size. `id` omitted names every
|
|
1360
|
+
* collection's, which a write that does not know where an itinerary was filed has to drop.
|
|
1361
|
+
*/
|
|
1362
|
+
{
|
|
1363
|
+
kind: "collectionItineraries";
|
|
1364
|
+
id?: string | undefined;
|
|
1365
|
+
} |
|
|
1366
|
+
/**
|
|
1367
|
+
* One collection's contents, as the specification a viewer renders, read with the `query` it
|
|
1368
|
+
* names. `query` omitted names every read of the collection's specification, whatever layers it
|
|
1369
|
+
* asked for, and `id` omitted names every collection's: a write that changes a specification
|
|
1370
|
+
* without knowing which collections hold what it wrote drops the family. A zone's publication
|
|
1371
|
+
* is not such a write: the specification declares its zone layers by the toggles alone and its
|
|
1372
|
+
* `bbox` counts itineraries alone, so publishing or withdrawing a zone moves the collection's
|
|
1373
|
+
* tiles and leaves its specification as it was.
|
|
1374
|
+
*/
|
|
1375
|
+
{
|
|
1376
|
+
kind: "collectionSpecification";
|
|
1377
|
+
id?: string | undefined;
|
|
1378
|
+
query?: CollectionSpecificationQuery | undefined;
|
|
1379
|
+
} |
|
|
1380
|
+
/**
|
|
1381
|
+
* The zones one collection holds, as its contents listing (`getCollectionZones`) reads them:
|
|
1382
|
+
* every walk of it, whatever its order or page size. `id` omitted names every collection's.
|
|
1383
|
+
*/
|
|
1384
|
+
{
|
|
1385
|
+
kind: "collectionZones";
|
|
1386
|
+
id?: string | undefined;
|
|
1387
|
+
} |
|
|
1388
|
+
/**
|
|
1389
|
+
* The collection listing (`getCollections`), narrowed by the `filters` it was read with;
|
|
1390
|
+
* omitted, every collection listing.
|
|
1391
|
+
*/
|
|
1392
|
+
{
|
|
1393
|
+
kind: "collections";
|
|
1394
|
+
filters?: ListingFilters<"getCollections"> | undefined;
|
|
1395
|
+
} |
|
|
1396
|
+
/**
|
|
1397
|
+
* The itinerary listing (`getItineraries`), narrowed by the `filters` it was read with;
|
|
1398
|
+
* omitted, every itinerary listing, which a create or a delete has to drop because it does
|
|
1399
|
+
* not know which listing a reader currently has open.
|
|
1400
|
+
*/
|
|
1401
|
+
{
|
|
1402
|
+
kind: "itineraries";
|
|
1403
|
+
filters?: ListingFilters<"getItineraries"> | undefined;
|
|
1404
|
+
} |
|
|
1405
|
+
/**
|
|
1406
|
+
* One itinerary. `surface` selects the DRAFT the editor holds or the PUBLISHED record a
|
|
1407
|
+
* visitor reads; omitted means the draft, which is what a write always touches.
|
|
1408
|
+
*/
|
|
1409
|
+
{
|
|
1410
|
+
kind: "itinerary";
|
|
1411
|
+
id: string;
|
|
1412
|
+
surface?: "draft" | "published" | undefined;
|
|
1413
|
+
} |
|
|
1414
|
+
/** One itinerary's contents, as the specification a viewer renders. */
|
|
1415
|
+
{
|
|
1416
|
+
kind: "itinerarySpecification";
|
|
1417
|
+
id: string;
|
|
1418
|
+
} |
|
|
1419
|
+
/**
|
|
1420
|
+
* The layers manifest: the terrains, the overlays and the always-on slots a credential may
|
|
1421
|
+
* draw. No id: the manifest is narrowed to the credential that reads it, and a cache holds
|
|
1422
|
+
* the reads of one credential. `organizationId` names the studio scope it was read for, the
|
|
1423
|
+
* `organization_id` of `getLayers`; omitted, it is the read that names none, and the family
|
|
1424
|
+
* of every scope's read, which is what a change to the catalogue has to drop.
|
|
1425
|
+
*/
|
|
1426
|
+
{
|
|
1427
|
+
kind: "layers";
|
|
1428
|
+
organizationId?: string | undefined;
|
|
1429
|
+
} |
|
|
1430
|
+
/**
|
|
1431
|
+
* One zone. `surface` selects the DRAFT the editor holds or the PUBLISHED record a visitor
|
|
1432
|
+
* reads; omitted means the draft, which is what a write always touches.
|
|
1433
|
+
*/
|
|
1434
|
+
{
|
|
1435
|
+
kind: "zone";
|
|
1436
|
+
id: string;
|
|
1437
|
+
surface?: "draft" | "published" | undefined;
|
|
1438
|
+
} |
|
|
1439
|
+
/**
|
|
1440
|
+
* The zone listing (`getZones`), narrowed by the `filters` it was read with; omitted, every
|
|
1441
|
+
* zone listing.
|
|
1442
|
+
*/
|
|
1443
|
+
{
|
|
1444
|
+
kind: "zones";
|
|
1445
|
+
filters?: ListingFilters<"getZones"> | undefined;
|
|
1446
|
+
};
|
|
1447
|
+
/** ResourceKind is the `kind` discriminant {@link ResourceRef} carries, as a union of its own. */
|
|
1448
|
+
type ResourceKind = ResourceRef["kind"];
|
|
1449
|
+
/**
|
|
1450
|
+
* SCHEMA_VERSION is the `mountaya/schemas` tag this client was generated from.
|
|
1451
|
+
*
|
|
1452
|
+
* It answers "which contract is this client speaking" without inspecting the package
|
|
1453
|
+
* version, which moves for reasons of its own.
|
|
1454
|
+
*
|
|
1455
|
+
* It lives here rather than beside the client so that `browser.ts` can re-export it
|
|
1456
|
+
* without importing the package root: the root reaches the secret-key credential, and
|
|
1457
|
+
* the browser entry's guarantee is that nothing in its module graph does.
|
|
1458
|
+
*/
|
|
1459
|
+
declare const SCHEMA_VERSION = "v0.10.0";
|
|
1460
|
+
declare namespace coreOperations_gen_d_exports {
|
|
1461
|
+
export { deleteCollection, deleteCollectionItinerary, deleteCollectionShareLink, deleteCollectionZone, deleteItinerary, deleteItineraryPublication, deleteItinerarySegment, deleteItinerarySegmentGroup, deleteItineraryShareLink, deleteItineraryWaypoint, deleteZone, deleteZonePublication, getActivities, getAgentRunEvents, getCollection, getCollectionItineraries, getCollectionShareLink, getCollectionZones, getCollections, getItineraries, getItinerary, getItineraryEvents, getItineraryExport, getItineraryPace, getItineraryShareLink, getLayers, getOrganizationEvents, getZone, getZoneEvents, getZones, patchCollection, patchCollectionItinerary, patchItinerary, patchItinerarySegment, patchItinerarySegmentGroup, patchItineraryWaypoint, patchZone, postAgentRun, postAgentRunFeedback, postAgentRunInput, postCollection, postCollectionItineraries, postCollectionShareLink, postCollectionShareLinkRotate, postCollectionZones, postItinerary, postItineraryCollab, postItineraryDuplicate, postItineraryImport, postItineraryPreview, postItineraryPublication, postItinerarySegment, postItinerarySegmentConvert, postItinerarySegmentGroup, postItinerarySegmentMerge, postItinerarySegmentSplit, postItineraryShareLink, postItineraryShareLinkRotate, postItineraryWaypoint, postOrganizationLookup, postZone, postZoneCollab, postZonePublication };
|
|
1462
|
+
}
|
|
1463
|
+
export { FieldTree as _, PagedResponse as a, Selection as b, MountayaResponse as c, operations_gen_d_exports as d, bind$1 as f, DataResult as g, DataOptions as h, ResourceRef as i, decodeRestSchema as l, selection_gen_d_exports as m, SCHEMA_VERSION as n, PaginateOptions as o, operations_gen_d_exports$1 as p, ResourceKind as r, paginate as s, coreOperations_gen_d_exports as t, bind as u, MountayaSelectionError as v, SelectionValue as x, Selected as y };
|