@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.
Files changed (97) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/LICENCE.fr.txt +280 -0
  3. package/LICENSE.txt +262 -0
  4. package/README.md +1260 -2
  5. package/dist/admin/index.cjs +2895 -0
  6. package/dist/admin/index.cjs.map +1 -0
  7. package/dist/admin/index.d.cts +889 -0
  8. package/dist/admin/index.d.ts +889 -0
  9. package/dist/admin/index.js +204 -0
  10. package/dist/admin/index.js.map +1 -0
  11. package/dist/browser.cjs +5993 -0
  12. package/dist/browser.cjs.map +1 -0
  13. package/dist/browser.d.cts +70 -0
  14. package/dist/browser.d.ts +70 -0
  15. package/dist/browser.js +22 -0
  16. package/dist/browser.js.map +1 -0
  17. package/dist/chunk-CeEX7ayk.d.cts +75531 -0
  18. package/dist/chunk-CeEX7ayk.d.ts +75531 -0
  19. package/dist/chunk-Cg7Dtcb4.js +2987 -0
  20. package/dist/chunk-Cg7Dtcb4.js.map +1 -0
  21. package/dist/chunk-DJqUsgsy.d.ts +1463 -0
  22. package/dist/chunk-DNc8T5K1.js +241 -0
  23. package/dist/chunk-DNc8T5K1.js.map +1 -0
  24. package/dist/chunk-DTxzw3hu.d.cts +1463 -0
  25. package/dist/chunk-DmxQID5X.js +2289 -0
  26. package/dist/chunk-DmxQID5X.js.map +1 -0
  27. package/dist/chunk-DoZt_oIV.d.ts +3991 -0
  28. package/dist/chunk-DpJrqANO.js +11 -0
  29. package/dist/chunk-Dx8mPAdC.d.cts +3991 -0
  30. package/dist/chunk-X2ukY3ho.js +419 -0
  31. package/dist/chunk-X2ukY3ho.js.map +1 -0
  32. package/dist/events/index.cjs +1436 -0
  33. package/dist/events/index.cjs.map +1 -0
  34. package/dist/events/index.d.cts +772 -0
  35. package/dist/events/index.d.ts +772 -0
  36. package/dist/events/index.js +543 -0
  37. package/dist/events/index.js.map +1 -0
  38. package/dist/index.cjs +5992 -0
  39. package/dist/index.cjs.map +1 -0
  40. package/dist/index.d.cts +44 -0
  41. package/dist/index.d.ts +44 -0
  42. package/dist/index.js +21 -0
  43. package/dist/index.js.map +1 -0
  44. package/package.json +126 -4
  45. package/src/admin/index.ts +47 -0
  46. package/src/admin/rules/mountayaAdmin.ts +102 -0
  47. package/src/browser.ts +233 -0
  48. package/src/core/engines/sessionToken.ts +870 -0
  49. package/src/core/rules/auth.ts +1017 -0
  50. package/src/core/rules/clientHeader.ts +28 -0
  51. package/src/core/rules/dates.ts +200 -0
  52. package/src/core/rules/decode.ts +154 -0
  53. package/src/core/rules/envelope.ts +41 -0
  54. package/src/core/rules/errors.ts +1486 -0
  55. package/src/core/rules/graphql.ts +576 -0
  56. package/src/core/rules/headerValue.ts +42 -0
  57. package/src/core/rules/idempotencyKey.ts +64 -0
  58. package/src/core/rules/nullMask.ts +127 -0
  59. package/src/core/rules/nullMasks.gen.ts +428 -0
  60. package/src/core/rules/paginate.ts +316 -0
  61. package/src/core/rules/rateLimit.ts +507 -0
  62. package/src/core/rules/redaction.ts +219 -0
  63. package/src/core/rules/resourceRef.ts +110 -0
  64. package/src/core/rules/responseBody.ts +492 -0
  65. package/src/core/rules/retry.ts +386 -0
  66. package/src/core/rules/selection.ts +416 -0
  67. package/src/core/rules/sessionAnswer.ts +90 -0
  68. package/src/core/rules/sessionSchedule.ts +131 -0
  69. package/src/core/rules/sessionWait.ts +112 -0
  70. package/src/core/rules/transport.ts +2386 -0
  71. package/src/core/rules/version.gen.ts +16 -0
  72. package/src/core/rules/webAddress.ts +165 -0
  73. package/src/core/rules/webAddresses.gen.ts +30 -0
  74. package/src/data/operations.gen.ts +603 -0
  75. package/src/data/schema.gen.ts +8078 -0
  76. package/src/data/selection.gen.ts +472 -0
  77. package/src/events/index.ts +63 -0
  78. package/src/events/rules/agent.ts +439 -0
  79. package/src/events/rules/collab.ts +554 -0
  80. package/src/events/rules/collabNulls.gen.ts +17 -0
  81. package/src/events/rules/eventStream.ts +94 -0
  82. package/src/events/rules/openSseStream.ts +594 -0
  83. package/src/events/rules/sse.ts +349 -0
  84. package/src/index.ts +231 -0
  85. package/src/rest/adminOperations.gen.ts +70 -0
  86. package/src/rest/adminResources.gen.ts +138 -0
  87. package/src/rest/coreOperations.gen.ts +74 -0
  88. package/src/rest/coreResources.gen.ts +244 -0
  89. package/src/rest/dates.gen.ts +217 -0
  90. package/src/rest/operations.gen.ts +4341 -0
  91. package/src/rest/resources.gen.ts +371 -0
  92. package/src/rest/schema.gen.ts +57027 -0
  93. package/src/tiles/operations.gen.ts +206 -0
  94. package/src/tiles/schema.gen.ts +8406 -0
  95. package/src/webhooks/rules/constructWebhookEvent.ts +482 -0
  96. package/src/webhooks/rules/webhookEvent.ts +38 -0
  97. package/src/webhooks/rules/webhookEvents.gen.ts +732 -0
package/LICENSE.txt ADDED
@@ -0,0 +1,262 @@
1
+ MOUNTAYA SDK LICENSE
2
+ Version 1.0 · 11 November 2026
3
+
4
+ Copyright (c) 2026 Mountaya SAS. All rights reserved.
5
+
6
+ This English version is the authoritative text of this License. The French
7
+ version (LICENCE.fr.txt) is provided for convenience; in the event of any
8
+ discrepancy, this English version prevails, save that where an Agreement is in
9
+ force between you and Mountaya, that Agreement and its French text prevail over
10
+ both. This License governs the version of the Software with which it is
11
+ distributed and is not applied retroactively to releases already distributed.
12
+
13
+ This software is SOURCE-AVAILABLE, NOT OPEN SOURCE. You may read it, bundle it
14
+ and ship it inside your own application, but only while you have an agreement
15
+ with Mountaya (a signed agreement, or the general terms accepted when opening a
16
+ self-serve account) and only in conjunction with the Mountaya Services. Displaying
17
+ third-party layers alongside Mountaya data is allowed (see section 2). Please
18
+ read this License before installing.
19
+
20
+
21
+ 1. DEFINITIONS
22
+
23
+ "Software" means the Mountaya SDK this License is distributed with: for
24
+ TypeScript, the packages @mountaya/client, @mountaya/client-react,
25
+ @mountaya/elements, @mountaya/elements-react, @mountaya/studio and
26
+ @mountaya/studio-react; for Swift and Kotlin, the libraries of the Mountaya SDK
27
+ for that language. It includes their source code, build artifacts and
28
+ accompanying documentation, but excludes Third-Party Components.
29
+
30
+ "Mountaya Services" means the hosted services and programming interfaces
31
+ operated by Mountaya SAS, including Map Studio, Map Publishing, the Embedded
32
+ Studio, the Data API, the MCP Server and the Tile API.
33
+
34
+ "Agreement" means either (i) the signed services agreement (convention de
35
+ services) in force between you and Mountaya SAS, together with its order forms
36
+ and the Mountaya general terms of service it incorporates, or (ii) the Mountaya
37
+ general terms of service you accepted online when opening a self-serve account
38
+ for the Data API and the MCP Server, for as long as that account is open. An
39
+ Agreement in force is what makes this License effective. Using the Embedded
40
+ Studio further requires that your Agreement grant it.
41
+
42
+ "Your Application" means the application, website or product you develop and
43
+ operate, as identified in the Agreement or, for a self-serve account, declared
44
+ in your organization.
45
+
46
+ "Third-Party Components" means the components listed in THIRD-PARTY-NOTICES.txt,
47
+ which are licensed under their own terms.
48
+
49
+
50
+ 2. LICENSE GRANT
51
+
52
+ Subject to your compliance with this License and to an Agreement being in
53
+ force, Mountaya grants you a non-exclusive, non-transferable, non-sublicensable and
54
+ revocable license, within the territory set out in your Agreement, to install, copy, bundle and
55
+ distribute the Software, solely as incorporated into Your Application, and in
56
+ conjunction with the Mountaya Services.
57
+
58
+ You may run, debug and test the Software in your own development, testing and
59
+ continuous integration environments.
60
+
61
+ THIRD-PARTY LAYERS ARE ALLOWED. The Software is designed to display data,
62
+ layers, basemaps, overlays and points of interest coming from sources other
63
+ than the Mountaya Services: public sources, your own data, your partners'
64
+ data or your end users' data. You may do so, and doing so is not a breach of
65
+ this License. You are responsible for the rights, licenses, terms of use and
66
+ attribution notices attached to any third-party data you display, and for its
67
+ lawfulness. Mountaya gives no warranty and accepts no liability in respect of
68
+ that data.
69
+
70
+ No other right is granted. Any right not expressly granted is reserved.
71
+
72
+
73
+ 3. RESTRICTIONS
74
+
75
+ You may not:
76
+
77
+ (a) use the Software otherwise than in conjunction with the Mountaya
78
+ Services, or configure it so as to substitute for the Mountaya Services
79
+ a competing outdoor data, terrain routing or outdoor map tile service;
80
+
81
+ (b) modify, disable, circumvent, spoof or otherwise interfere with any
82
+ portion of the Software identified as relating to attribution, or with
83
+ the version and client identification carried in the headers of requests
84
+ to the Mountaya Services;
85
+
86
+ (c) remove, obscure, shrink beyond legibility or alter any copyright,
87
+ trademark, attribution or license notice, including those of
88
+ Third-Party Components and those rendered for Mountaya data; adding
89
+ your own attributions for third-party layers is expected and does not
90
+ authorise reducing Mountaya's;
91
+
92
+ (d) modify the Software, except for the technical packaging operations
93
+ strictly necessary to integrate it (bundling, minification,
94
+ tree-shaking, source map generation, transpilation), which must not
95
+ alter its behaviour;
96
+
97
+ (e) distribute, publish or otherwise make the Software available other than
98
+ as incorporated into Your Application, or publish or maintain a fork, a
99
+ modified version or a derivative work of it;
100
+
101
+ (f) reimplement the expression of the Software in other software. This
102
+ restriction does not extend to the ideas and principles underlying the
103
+ Software, nor to an independent implementation of the functional
104
+ specifications of the exchange protocol between the Software and the
105
+ Mountaya Services, which remains lawful, and applies without prejudice to Articles 5 and 6 of
106
+ Directive 2009/24/EC and to Article L. 122-6-1 of the French Intellectual
107
+ Property Code, any stipulation to the contrary being void;
108
+
109
+ (g) use the Software to build or operate a product or service that competes
110
+ with the Mountaya Services. Building your own map experience, route
111
+ editor or outdoor application with the Software, for Your Application, is
112
+ the very purpose of this License and is not a competing product under
113
+ this paragraph, including where it offers features comparable to Map
114
+ Studio. What is prohibited is marketing to third parties a component
115
+ library, a software development kit, a packaged integration service or an
116
+ API substituting for the Software or the Mountaya Services;
117
+
118
+ (h) sublicense, rent, lease, sell, assign or otherwise transfer the
119
+ Software.
120
+
121
+ These restrictions apply to you, to your affiliates and to anyone acting on
122
+ your behalf, and you are responsible for their compliance.
123
+
124
+
125
+ 4. NO CLIENT-SIDE TELEMETRY
126
+
127
+ The Software contains no telemetry, analytics, tracking or personal-data
128
+ collection running on your end users' devices. Usage is measured server-side
129
+ only, on the calls actually received by the Mountaya Data API and Tile API.
130
+ The only information the Software sends beyond the functional parameters of a
131
+ request is its version and a client identifier, carried in the request
132
+ headers, for the purpose of section 5.
133
+
134
+ Only successful calls are counted. Calls that are rate-limited, rejected for a
135
+ client-side error, failed on our side, or refused under section 5 are neither
136
+ counted nor billed. Third-party layers you display under section 2 are neither
137
+ measured nor billed.
138
+
139
+
140
+ 5. UPDATES AND MINIMUM SUPPORTED VERSION
141
+
142
+ Requests issued by the Software to the Mountaya Services carry its version in
143
+ their headers.
144
+
145
+ Where a version of the Software contains a known security vulnerability or is
146
+ technically incompatible, Mountaya may set a minimum supported version below
147
+ which the Mountaya Services stop responding. Mountaya will give notice before
148
+ doing so, will not enforce it before expiry of the security-release periods set
149
+ out in your Agreement plus fifteen (15) days, and will not use this mechanism
150
+ as a commercial lever. You must
151
+ install security releases within the periods set out in your Agreement.
152
+
153
+ From version 1.0 of a given SDK, Mountaya removes an operation only after it
154
+ has been marked as deprecated for at least one hundred and eighty (180) days
155
+ and across at least two minor versions. Versions before 1.0, and SDKs released
156
+ in early access, carry no such commitment.
157
+
158
+
159
+ 6. THIRD-PARTY COMPONENTS
160
+
161
+ Third-Party Components are licensed under their own terms, which prevail over
162
+ this License for those components. Their notices are reproduced in
163
+ THIRD-PARTY-NOTICES.txt and must be preserved in every distribution of Your
164
+ Application.
165
+
166
+
167
+ 7. TERM AND TERMINATION
168
+
169
+ This License is effective for as long as an Agreement is in force between you
170
+ and Mountaya. It terminates automatically, without notice and without formality,
171
+ when the Agreement ends. A breach of this License is a breach of the Agreement,
172
+ and Mountaya may terminate on that ground only under the conditions the
173
+ Agreement sets for termination for breach, including the formal notice and the
174
+ period to remedy the breach that it provides.
175
+
176
+ On termination you must, within thirty (30) days: (i) stop using the Software
177
+ in your development and production environments; (ii) stop publishing,
178
+ distributing or otherwise making available any new version of Your Application
179
+ incorporating the Software; and (iii) remove the Software from every version of
180
+ Your Application that you control. Mountaya may revoke your API keys.
181
+
182
+ Copies of the Software already installed by your end users before termination
183
+ may remain in place. You are granted a non-exclusive, non-transferable licence
184
+ to allow those copies to subsist, without update, redistribution or new
185
+ installation, until they are replaced or uninstalled. That licence confers no
186
+ right to call the Mountaya Services, which cease to respond once your API keys
187
+ are revoked.
188
+
189
+ The fact that the source code is readable, or that it remains present on your
190
+ systems, gives you no right to continue using it, to derive a work from it or
191
+ to reimplement it.
192
+
193
+ Sections 3(b) to 3(f) and 3(h), 4, 6, 8, 9 and 10 survive termination.
194
+ Sections 3(a) and 3(g) apply for the duration of this License only. Where an
195
+ Agreement is in force, that Agreement may provide for a limited post-termination
196
+ restriction; this License does not.
197
+
198
+
199
+ 8. NO WARRANTY
200
+
201
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
202
+ IMPLIED, INCLUDING WITHOUT LIMITATION THE WARRANTIES OF MERCHANTABILITY,
203
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
204
+
205
+ Route, terrain, surface, snow and weather data rendered through the Software
206
+ is INDICATIVE ONLY. It may be inaccurate, incomplete or out of date, and may
207
+ not reflect actual ground conditions. It must never be relied upon as a sole
208
+ or determining source of information for personal safety, nor used for
209
+ avalanche risk assessment, autonomous navigation or rescue operations. Your
210
+ Agreement sets out the full terms, including your own reconnaissance
211
+ obligations.
212
+
213
+
214
+ 9. LIMITATION OF LIABILITY
215
+
216
+ To the fullest extent permitted by law, Mountaya's liability arising out of or
217
+ in connection with this License is limited as set out in your Agreement.
218
+
219
+ In the absence of an Agreement, Mountaya's liability is excluded to the fullest
220
+ extent permitted by law.
221
+
222
+ Nothing in this License excludes or limits liability for wilful misconduct or
223
+ gross negligence, for death or personal injury, or under any mandatory rule of
224
+ applicable law, including the rules transposing Directive (EU) 2024/2853 on
225
+ liability for defective products.
226
+
227
+
228
+ 10. GOVERNING LAW
229
+
230
+ This License is governed by French law. Where an Agreement is in force between
231
+ you and Mountaya, that Agreement prevails over this License in the event of
232
+ conflict, including as to governing law and jurisdiction.
233
+
234
+
235
+ 11. CONTRIBUTIONS
236
+
237
+ If you submit to Mountaya a contribution (code, patch, pull request,
238
+ documentation, translation or other material), you grant Mountaya SAS, in
239
+ respect of that contribution and at the time of its submission, a
240
+ non-exclusive, worldwide, royalty-free, sublicensable and irrevocable licence,
241
+ for the whole legal term of protection, to reproduce, adapt, translate,
242
+ distribute and make that contribution available, on all media, as part of the
243
+ Software and of any derivative or successor of it, and to license it under any
244
+ terms. Each submission constitutes a separate grant in respect of the
245
+ contribution then submitted; no right is granted in respect of works not yet
246
+ created. The grant is made free of charge, which you expressly accept. You
247
+ retain your moral rights; Mountaya maintains an AUTHORS file naming
248
+ contributors on request. You represent that you are the author of the
249
+ contribution or otherwise entitled to submit it, that it is free of any
250
+ third-party right, and that it contains no code subject to a licence that would
251
+ impose obligations on the Software. Mountaya is under no obligation to use a
252
+ contribution.
253
+
254
+ This section is accepted separately at the time of each contribution (via a
255
+ Developer Certificate of Origin sign-off or a contributor licence agreement
256
+ bot); installing the Software does not by itself constitute a submission.
257
+
258
+
259
+ 12. CONTACT
260
+
261
+ Mountaya SAS, 8 allée le Bouchon, 74940 Annecy, France
262
+ legal@mountaya.com