@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
@@ -0,0 +1,732 @@
1
+ // GENERATED FILE. DO NOT EDIT.
2
+ //
3
+ // The event each public webhook event type is delivered as, generated from the
4
+ // mountaya/schemas contract (sdk/model.json, `rest.webhooks`) by
5
+ // scripts/generate-webhook-events.mjs.
6
+ //
7
+ // Edit the contract in mountaya/schemas, not this file.
8
+
9
+ import type { components } from "../../rest/schema.gen.js";
10
+
11
+ /** The schemas the Map Studio contract declares, by the name the contract gives each. */
12
+ type Schemas = components["schemas"];
13
+
14
+ /** What every webhook event carries beside its `type` and its `data`. */
15
+ type Envelope = Omit<Schemas["WebhookEvent"], "data" | "type">;
16
+
17
+ /**
18
+ * WebhookEventsByType is the event each public webhook event type is delivered as: its `type`,
19
+ * the object it carries at `data.object`, and at `data.previous_attributes` the former value of
20
+ * each field the change moved, which a type that names no such field never carries.
21
+ */
22
+ export interface WebhookEventsByType {
23
+ /** A collection was created. */
24
+ "collection.created": Envelope & {
25
+ type: "collection.created";
26
+ data: {
27
+ object: Schemas["CollectionEventObject"];
28
+ previous_attributes?: undefined;
29
+ };
30
+ };
31
+ /** A collection was deleted. */
32
+ "collection.deleted": Envelope & {
33
+ type: "collection.deleted";
34
+ data: {
35
+ object: Schemas["CollectionEventObject"];
36
+ previous_attributes?: undefined;
37
+ };
38
+ };
39
+ /** An itinerary was added to a collection. */
40
+ "collection.itinerary.added": Envelope & {
41
+ type: "collection.itinerary.added";
42
+ data: {
43
+ object: Schemas["CollectionItineraryEventObject"];
44
+ previous_attributes?: undefined;
45
+ };
46
+ };
47
+ /** An itinerary moved within a collection. */
48
+ "collection.itinerary.moved": Envelope & {
49
+ type: "collection.itinerary.moved";
50
+ data: {
51
+ object: Schemas["CollectionItineraryEventObject"];
52
+ previous_attributes?:
53
+ | {
54
+ position?: Schemas["CollectionItineraryEventObject"]["position"] | undefined;
55
+ }
56
+ | undefined;
57
+ };
58
+ };
59
+ /** An itinerary left a collection. */
60
+ "collection.itinerary.removed": Envelope & {
61
+ type: "collection.itinerary.removed";
62
+ data: {
63
+ object: Schemas["CollectionItineraryEventObject"];
64
+ previous_attributes?: undefined;
65
+ };
66
+ };
67
+ /** A collection's share link was created. */
68
+ "collection.share_link.created": Envelope & {
69
+ type: "collection.share_link.created";
70
+ data: {
71
+ object: Schemas["CollectionShareLinkEventObject"];
72
+ previous_attributes?: undefined;
73
+ };
74
+ };
75
+ /** A collection's share link was removed. */
76
+ "collection.share_link.deleted": Envelope & {
77
+ type: "collection.share_link.deleted";
78
+ data: {
79
+ object: Schemas["CollectionShareLinkEventObject"];
80
+ previous_attributes?: undefined;
81
+ };
82
+ };
83
+ /** A collection's share link was rotated. */
84
+ "collection.share_link.rotated": Envelope & {
85
+ type: "collection.share_link.rotated";
86
+ data: {
87
+ object: Schemas["CollectionShareLinkEventObject"];
88
+ previous_attributes?: undefined;
89
+ };
90
+ };
91
+ /** A collection's name, description or privacy changed. */
92
+ "collection.updated": Envelope & {
93
+ type: "collection.updated";
94
+ data: {
95
+ object: Schemas["CollectionEventObject"];
96
+ previous_attributes?:
97
+ | {
98
+ name?: Schemas["CollectionEventObject"]["name"] | undefined;
99
+ description?: Schemas["CollectionEventObject"]["description"] | undefined;
100
+ is_private?: Schemas["CollectionEventObject"]["is_private"] | undefined;
101
+ }
102
+ | undefined;
103
+ };
104
+ };
105
+ /** A zone was added to a collection. */
106
+ "collection.zone.added": Envelope & {
107
+ type: "collection.zone.added";
108
+ data: {
109
+ object: Schemas["CollectionZoneEventObject"];
110
+ previous_attributes?: undefined;
111
+ };
112
+ };
113
+ /** A zone left a collection. */
114
+ "collection.zone.removed": Envelope & {
115
+ type: "collection.zone.removed";
116
+ data: {
117
+ object: Schemas["CollectionZoneEventObject"];
118
+ previous_attributes?: undefined;
119
+ };
120
+ };
121
+ /** An itinerary was created. */
122
+ "itinerary.created": Envelope & {
123
+ type: "itinerary.created";
124
+ data: {
125
+ object: Schemas["ItineraryEventObject"];
126
+ previous_attributes?: undefined;
127
+ };
128
+ };
129
+ /** An itinerary was deleted. */
130
+ "itinerary.deleted": Envelope & {
131
+ type: "itinerary.deleted";
132
+ data: {
133
+ object: Schemas["ItineraryEventObject"];
134
+ previous_attributes?: undefined;
135
+ };
136
+ };
137
+ /** An itinerary was published. */
138
+ "itinerary.published": Envelope & {
139
+ type: "itinerary.published";
140
+ data: {
141
+ object: Schemas["ItineraryEventObject"];
142
+ previous_attributes?: undefined;
143
+ };
144
+ };
145
+ /** A segment's mode changed. */
146
+ "itinerary.segment.converted": Envelope & {
147
+ type: "itinerary.segment.converted";
148
+ data: {
149
+ object: Schemas["ItinerarySegmentEventObject"];
150
+ previous_attributes?:
151
+ | {
152
+ mode?: Schemas["ItinerarySegmentEventObject"]["mode"] | undefined;
153
+ }
154
+ | undefined;
155
+ };
156
+ };
157
+ /** A segment was added to an itinerary. */
158
+ "itinerary.segment.created": Envelope & {
159
+ type: "itinerary.segment.created";
160
+ data: {
161
+ object: Schemas["ItinerarySegmentEventObject"];
162
+ previous_attributes?: undefined;
163
+ };
164
+ };
165
+ /** A segment was removed from an itinerary. */
166
+ "itinerary.segment.deleted": Envelope & {
167
+ type: "itinerary.segment.deleted";
168
+ data: {
169
+ object: Schemas["ItinerarySegmentEventObject"];
170
+ previous_attributes?: undefined;
171
+ };
172
+ };
173
+ /** A segment absorbed the one after it. */
174
+ "itinerary.segment.merged": Envelope & {
175
+ type: "itinerary.segment.merged";
176
+ data: {
177
+ object: Schemas["ItinerarySegmentEventObject"];
178
+ previous_attributes?: undefined;
179
+ };
180
+ };
181
+ /** A segment was cut in two. */
182
+ "itinerary.segment.split": Envelope & {
183
+ type: "itinerary.segment.split";
184
+ data: {
185
+ object: Schemas["ItinerarySegmentEventObject"];
186
+ previous_attributes?: undefined;
187
+ };
188
+ };
189
+ /** A segment changed. */
190
+ "itinerary.segment.updated": Envelope & {
191
+ type: "itinerary.segment.updated";
192
+ data: {
193
+ object: Schemas["ItinerarySegmentEventObject"];
194
+ previous_attributes?:
195
+ | {
196
+ name?: Schemas["ItinerarySegmentEventObject"]["name"] | undefined;
197
+ }
198
+ | undefined;
199
+ };
200
+ };
201
+ /** A segment group was created. */
202
+ "itinerary.segment_group.created": Envelope & {
203
+ type: "itinerary.segment_group.created";
204
+ data: {
205
+ object: Schemas["ItinerarySegmentGroupEventObject"];
206
+ previous_attributes?: undefined;
207
+ };
208
+ };
209
+ /** A segment group was dissolved. */
210
+ "itinerary.segment_group.deleted": Envelope & {
211
+ type: "itinerary.segment_group.deleted";
212
+ data: {
213
+ object: Schemas["ItinerarySegmentGroupEventObject"];
214
+ previous_attributes?: undefined;
215
+ };
216
+ };
217
+ /** A segment group changed. */
218
+ "itinerary.segment_group.updated": Envelope & {
219
+ type: "itinerary.segment_group.updated";
220
+ data: {
221
+ object: Schemas["ItinerarySegmentGroupEventObject"];
222
+ previous_attributes?:
223
+ | {
224
+ name?: Schemas["ItinerarySegmentGroupEventObject"]["name"] | undefined;
225
+ color?: Schemas["ItinerarySegmentGroupEventObject"]["color"] | undefined;
226
+ }
227
+ | undefined;
228
+ };
229
+ };
230
+ /** An itinerary's share link was created. */
231
+ "itinerary.share_link.created": Envelope & {
232
+ type: "itinerary.share_link.created";
233
+ data: {
234
+ object: Schemas["ItineraryShareLinkEventObject"];
235
+ previous_attributes?: undefined;
236
+ };
237
+ };
238
+ /** An itinerary's share link was removed. */
239
+ "itinerary.share_link.deleted": Envelope & {
240
+ type: "itinerary.share_link.deleted";
241
+ data: {
242
+ object: Schemas["ItineraryShareLinkEventObject"];
243
+ previous_attributes?: undefined;
244
+ };
245
+ };
246
+ /** An itinerary's share link was rotated. */
247
+ "itinerary.share_link.rotated": Envelope & {
248
+ type: "itinerary.share_link.rotated";
249
+ data: {
250
+ object: Schemas["ItineraryShareLinkEventObject"];
251
+ previous_attributes?: undefined;
252
+ };
253
+ };
254
+ /** An itinerary was taken down. */
255
+ "itinerary.unpublished": Envelope & {
256
+ type: "itinerary.unpublished";
257
+ data: {
258
+ object: Schemas["ItineraryEventObject"];
259
+ previous_attributes?: undefined;
260
+ };
261
+ };
262
+ /** An itinerary's name, description or privacy changed. */
263
+ "itinerary.updated": Envelope & {
264
+ type: "itinerary.updated";
265
+ data: {
266
+ object: Schemas["ItineraryEventObject"];
267
+ previous_attributes?:
268
+ | {
269
+ name?: Schemas["ItineraryEventObject"]["name"] | undefined;
270
+ description?: Schemas["ItineraryEventObject"]["description"] | undefined;
271
+ is_private?: Schemas["ItineraryEventObject"]["is_private"] | undefined;
272
+ }
273
+ | undefined;
274
+ };
275
+ };
276
+ /** A waypoint was added to an itinerary. */
277
+ "itinerary.waypoint.created": Envelope & {
278
+ type: "itinerary.waypoint.created";
279
+ data: {
280
+ object: Schemas["ItineraryWaypointEventObject"];
281
+ previous_attributes?: undefined;
282
+ };
283
+ };
284
+ /** A waypoint was removed from an itinerary. */
285
+ "itinerary.waypoint.deleted": Envelope & {
286
+ type: "itinerary.waypoint.deleted";
287
+ data: {
288
+ object: Schemas["ItineraryWaypointEventObject"];
289
+ previous_attributes?: undefined;
290
+ };
291
+ };
292
+ /** A waypoint changed. */
293
+ "itinerary.waypoint.updated": Envelope & {
294
+ type: "itinerary.waypoint.updated";
295
+ data: {
296
+ object: Schemas["ItineraryWaypointEventObject"];
297
+ previous_attributes?:
298
+ | {
299
+ name?: Schemas["ItineraryWaypointEventObject"]["name"] | undefined;
300
+ mode?: Schemas["ItineraryWaypointEventObject"]["mode"] | undefined;
301
+ }
302
+ | undefined;
303
+ };
304
+ };
305
+ /** An AI provider was configured. */
306
+ "organization.ai_provider_config.created": Envelope & {
307
+ type: "organization.ai_provider_config.created";
308
+ data: {
309
+ object: Schemas["AiProviderConfigEventObject"];
310
+ previous_attributes?: undefined;
311
+ };
312
+ };
313
+ /** An AI provider configuration was deleted. */
314
+ "organization.ai_provider_config.deleted": Envelope & {
315
+ type: "organization.ai_provider_config.deleted";
316
+ data: {
317
+ object: Schemas["AiProviderConfigEventObject"];
318
+ previous_attributes?: undefined;
319
+ };
320
+ };
321
+ /** An AI provider configuration changed. */
322
+ "organization.ai_provider_config.updated": Envelope & {
323
+ type: "organization.ai_provider_config.updated";
324
+ data: {
325
+ object: Schemas["AiProviderConfigEventObject"];
326
+ previous_attributes?:
327
+ | {
328
+ model?: Schemas["AiProviderConfigEventObject"]["model"] | undefined;
329
+ credential_hint?: Schemas["AiProviderConfigEventObject"]["credential_hint"] | undefined;
330
+ }
331
+ | undefined;
332
+ };
333
+ };
334
+ /** An organization's billing information changed. */
335
+ "organization.billing.info.updated": Envelope & {
336
+ type: "organization.billing.info.updated";
337
+ data: {
338
+ object: Schemas["BillingInfoEventObject"];
339
+ previous_attributes?: undefined;
340
+ };
341
+ };
342
+ /** An invoice was paid. */
343
+ "organization.billing.invoice.paid": Envelope & {
344
+ type: "organization.billing.invoice.paid";
345
+ data: {
346
+ object: Schemas["InvoiceEventObject"];
347
+ previous_attributes?: undefined;
348
+ };
349
+ };
350
+ /** An invoice's payment needs the payer's action. */
351
+ "organization.billing.invoice.payment_action_required": Envelope & {
352
+ type: "organization.billing.invoice.payment_action_required";
353
+ data: {
354
+ object: Schemas["InvoiceEventObject"];
355
+ previous_attributes?: undefined;
356
+ };
357
+ };
358
+ /** An invoice's payment failed. */
359
+ "organization.billing.invoice.payment_failed": Envelope & {
360
+ type: "organization.billing.invoice.payment_failed";
361
+ data: {
362
+ object: Schemas["InvoiceEventObject"];
363
+ previous_attributes?: undefined;
364
+ };
365
+ };
366
+ /** A payment method was saved. */
367
+ "organization.billing.payment_method.attached": Envelope & {
368
+ type: "organization.billing.payment_method.attached";
369
+ data: {
370
+ object: Schemas["PaymentMethodEventObject"];
371
+ previous_attributes?: undefined;
372
+ };
373
+ };
374
+ /** A payment method was removed. */
375
+ "organization.billing.payment_method.detached": Envelope & {
376
+ type: "organization.billing.payment_method.detached";
377
+ data: {
378
+ object: Schemas["PaymentMethodEventObject"];
379
+ previous_attributes?: undefined;
380
+ };
381
+ };
382
+ /** A payment method became, or stopped being, the default. */
383
+ "organization.billing.payment_method.updated": Envelope & {
384
+ type: "organization.billing.payment_method.updated";
385
+ data: {
386
+ object: Schemas["PaymentMethodEventObject"];
387
+ previous_attributes?:
388
+ | {
389
+ is_default?: Schemas["PaymentMethodEventObject"]["is_default"] | undefined;
390
+ }
391
+ | undefined;
392
+ };
393
+ };
394
+ /** A Data API subscription ended. */
395
+ "organization.billing.subscription.canceled": Envelope & {
396
+ type: "organization.billing.subscription.canceled";
397
+ data: {
398
+ object: Schemas["OrganizationSubscriptionEventObject"];
399
+ previous_attributes?: undefined;
400
+ };
401
+ };
402
+ /** A Data API subscription was opened. */
403
+ "organization.billing.subscription.created": Envelope & {
404
+ type: "organization.billing.subscription.created";
405
+ data: {
406
+ object: Schemas["OrganizationSubscriptionEventObject"];
407
+ previous_attributes?: undefined;
408
+ };
409
+ };
410
+ /** A Data API subscription was paused. */
411
+ "organization.billing.subscription.paused": Envelope & {
412
+ type: "organization.billing.subscription.paused";
413
+ data: {
414
+ object: Schemas["OrganizationSubscriptionEventObject"];
415
+ previous_attributes?: undefined;
416
+ };
417
+ };
418
+ /** A Data API subscription was resumed. */
419
+ "organization.billing.subscription.resumed": Envelope & {
420
+ type: "organization.billing.subscription.resumed";
421
+ data: {
422
+ object: Schemas["OrganizationSubscriptionEventObject"];
423
+ previous_attributes?: undefined;
424
+ };
425
+ };
426
+ /** A Data API subscription changed. */
427
+ "organization.billing.subscription.updated": Envelope & {
428
+ type: "organization.billing.subscription.updated";
429
+ data: {
430
+ object: Schemas["OrganizationSubscriptionEventObject"];
431
+ previous_attributes?:
432
+ | {
433
+ status?: Schemas["OrganizationSubscriptionEventObject"]["status"] | undefined;
434
+ cancel_at_period_end?: Schemas["OrganizationSubscriptionEventObject"]["cancel_at_period_end"] | undefined;
435
+ current_period_end_at?: Schemas["OrganizationSubscriptionEventObject"]["current_period_end_at"] | undefined;
436
+ }
437
+ | undefined;
438
+ };
439
+ };
440
+ /** An organization was created. */
441
+ "organization.created": Envelope & {
442
+ type: "organization.created";
443
+ data: {
444
+ object: Schemas["OrganizationEventObject"];
445
+ previous_attributes?: undefined;
446
+ };
447
+ };
448
+ /** What an organization holds changed. */
449
+ "organization.entitlements.updated": Envelope & {
450
+ type: "organization.entitlements.updated";
451
+ data: {
452
+ object: Schemas["OrganizationEntitlementsEventObject"];
453
+ previous_attributes?:
454
+ | {
455
+ capabilities?: Schemas["OrganizationEntitlementsEventObject"]["capabilities"] | undefined;
456
+ studio_entitlements?: Schemas["OrganizationEntitlementsEventObject"]["studio_entitlements"] | undefined;
457
+ }
458
+ | undefined;
459
+ };
460
+ };
461
+ /** An invitation was accepted. */
462
+ "organization.invitation.accepted": Envelope & {
463
+ type: "organization.invitation.accepted";
464
+ data: {
465
+ object: Schemas["OrganizationInvitationEventObject"];
466
+ previous_attributes?: undefined;
467
+ };
468
+ };
469
+ /** Somebody was invited to an organization. */
470
+ "organization.invitation.created": Envelope & {
471
+ type: "organization.invitation.created";
472
+ data: {
473
+ object: Schemas["OrganizationInvitationEventObject"];
474
+ previous_attributes?: undefined;
475
+ };
476
+ };
477
+ /** An invitation was declined. */
478
+ "organization.invitation.declined": Envelope & {
479
+ type: "organization.invitation.declined";
480
+ data: {
481
+ object: Schemas["OrganizationInvitationEventObject"];
482
+ previous_attributes?: undefined;
483
+ };
484
+ };
485
+ /** An invitation was superseded. */
486
+ "organization.invitation.deleted": Envelope & {
487
+ type: "organization.invitation.deleted";
488
+ data: {
489
+ object: Schemas["OrganizationInvitationEventObject"];
490
+ previous_attributes?: undefined;
491
+ };
492
+ };
493
+ /** An invitation lapsed unanswered. */
494
+ "organization.invitation.expired": Envelope & {
495
+ type: "organization.invitation.expired";
496
+ data: {
497
+ object: Schemas["OrganizationInvitationEventObject"];
498
+ previous_attributes?: undefined;
499
+ };
500
+ };
501
+ /** An invitation was withdrawn. */
502
+ "organization.invitation.revoked": Envelope & {
503
+ type: "organization.invitation.revoked";
504
+ data: {
505
+ object: Schemas["OrganizationInvitationEventObject"];
506
+ previous_attributes?: undefined;
507
+ };
508
+ };
509
+ /** Somebody joined an organization. */
510
+ "organization.member.created": Envelope & {
511
+ type: "organization.member.created";
512
+ data: {
513
+ object: Schemas["OrganizationMemberEventObject"];
514
+ previous_attributes?: undefined;
515
+ };
516
+ };
517
+ /** A member left an organization or was removed from it. */
518
+ "organization.member.deleted": Envelope & {
519
+ type: "organization.member.deleted";
520
+ data: {
521
+ object: Schemas["OrganizationMemberEventObject"];
522
+ previous_attributes?: undefined;
523
+ };
524
+ };
525
+ /** A member's role changed. */
526
+ "organization.member.updated": Envelope & {
527
+ type: "organization.member.updated";
528
+ data: {
529
+ object: Schemas["OrganizationMemberEventObject"];
530
+ previous_attributes?:
531
+ | {
532
+ role?: Schemas["OrganizationMemberEventObject"]["role"] | undefined;
533
+ }
534
+ | undefined;
535
+ };
536
+ };
537
+ /** A publishable key was created. */
538
+ "organization.publishable_key.created": Envelope & {
539
+ type: "organization.publishable_key.created";
540
+ data: {
541
+ object: Schemas["PublishableKeyEventObject"];
542
+ previous_attributes?: undefined;
543
+ };
544
+ };
545
+ /** A publishable key was revoked. */
546
+ "organization.publishable_key.revoked": Envelope & {
547
+ type: "organization.publishable_key.revoked";
548
+ data: {
549
+ object: Schemas["PublishableKeyEventObject"];
550
+ previous_attributes?: undefined;
551
+ };
552
+ };
553
+ /** A publishable key's name or scopes changed. */
554
+ "organization.publishable_key.updated": Envelope & {
555
+ type: "organization.publishable_key.updated";
556
+ data: {
557
+ object: Schemas["PublishableKeyEventObject"];
558
+ previous_attributes?:
559
+ | {
560
+ name?: Schemas["PublishableKeyEventObject"]["name"] | undefined;
561
+ scopes?: Schemas["PublishableKeyEventObject"]["scopes"] | undefined;
562
+ }
563
+ | undefined;
564
+ };
565
+ };
566
+ /** A secret key was created. */
567
+ "organization.secret_key.created": Envelope & {
568
+ type: "organization.secret_key.created";
569
+ data: {
570
+ object: Schemas["SecretKeyEventObject"];
571
+ previous_attributes?: undefined;
572
+ };
573
+ };
574
+ /** A secret key was revoked. */
575
+ "organization.secret_key.revoked": Envelope & {
576
+ type: "organization.secret_key.revoked";
577
+ data: {
578
+ object: Schemas["SecretKeyEventObject"];
579
+ previous_attributes?: undefined;
580
+ };
581
+ };
582
+ /** A secret key was renamed. */
583
+ "organization.secret_key.updated": Envelope & {
584
+ type: "organization.secret_key.updated";
585
+ data: {
586
+ object: Schemas["SecretKeyEventObject"];
587
+ previous_attributes?:
588
+ | {
589
+ name?: Schemas["SecretKeyEventObject"]["name"] | undefined;
590
+ }
591
+ | undefined;
592
+ };
593
+ };
594
+ /** An organization's Map Publishing settings changed. */
595
+ "organization.settings.updated": Envelope & {
596
+ type: "organization.settings.updated";
597
+ data: {
598
+ object: Schemas["OrganizationSettingsEventObject"];
599
+ previous_attributes?: undefined;
600
+ };
601
+ };
602
+ /** An organization's name changed. */
603
+ "organization.updated": Envelope & {
604
+ type: "organization.updated";
605
+ data: {
606
+ object: Schemas["OrganizationEventObject"];
607
+ previous_attributes?:
608
+ | {
609
+ name?: Schemas["OrganizationEventObject"]["name"] | undefined;
610
+ }
611
+ | undefined;
612
+ };
613
+ };
614
+ /** A webhook endpoint was created. */
615
+ "organization.webhook_endpoint.created": Envelope & {
616
+ type: "organization.webhook_endpoint.created";
617
+ data: {
618
+ object: Schemas["WebhookEndpointEventObject"];
619
+ previous_attributes?: undefined;
620
+ };
621
+ };
622
+ /** A webhook endpoint was deleted. */
623
+ "organization.webhook_endpoint.deleted": Envelope & {
624
+ type: "organization.webhook_endpoint.deleted";
625
+ data: {
626
+ object: Schemas["WebhookEndpointEventObject"];
627
+ previous_attributes?: undefined;
628
+ };
629
+ };
630
+ /** A webhook endpoint was disabled. */
631
+ "organization.webhook_endpoint.disabled": Envelope & {
632
+ type: "organization.webhook_endpoint.disabled";
633
+ data: {
634
+ object: Schemas["WebhookEndpointEventObject"];
635
+ previous_attributes?: undefined;
636
+ };
637
+ };
638
+ /** A webhook endpoint was enabled. */
639
+ "organization.webhook_endpoint.enabled": Envelope & {
640
+ type: "organization.webhook_endpoint.enabled";
641
+ data: {
642
+ object: Schemas["WebhookEndpointEventObject"];
643
+ previous_attributes?: undefined;
644
+ };
645
+ };
646
+ /** A webhook endpoint has failed for 24 hours. */
647
+ "organization.webhook_endpoint.failing": Envelope & {
648
+ type: "organization.webhook_endpoint.failing";
649
+ data: {
650
+ object: Schemas["WebhookEndpointEventObject"];
651
+ previous_attributes?: undefined;
652
+ };
653
+ };
654
+ /** A webhook endpoint reported failing succeeded again. */
655
+ "organization.webhook_endpoint.recovered": Envelope & {
656
+ type: "organization.webhook_endpoint.recovered";
657
+ data: {
658
+ object: Schemas["WebhookEndpointEventObject"];
659
+ previous_attributes?: undefined;
660
+ };
661
+ };
662
+ /** A webhook endpoint's secret was rotated. */
663
+ "organization.webhook_endpoint.secret_rotated": Envelope & {
664
+ type: "organization.webhook_endpoint.secret_rotated";
665
+ data: {
666
+ object: Schemas["WebhookEndpointEventObject"];
667
+ previous_attributes?: undefined;
668
+ };
669
+ };
670
+ /** A webhook endpoint changed. */
671
+ "organization.webhook_endpoint.updated": Envelope & {
672
+ type: "organization.webhook_endpoint.updated";
673
+ data: {
674
+ object: Schemas["WebhookEndpointEventObject"];
675
+ previous_attributes?:
676
+ | {
677
+ host?: Schemas["WebhookEndpointEventObject"]["host"] | undefined;
678
+ }
679
+ | undefined;
680
+ };
681
+ };
682
+ /** A zone was created. */
683
+ "zone.created": Envelope & {
684
+ type: "zone.created";
685
+ data: {
686
+ object: Schemas["ZoneEventObject"];
687
+ previous_attributes?: undefined;
688
+ };
689
+ };
690
+ /** A zone was deleted. */
691
+ "zone.deleted": Envelope & {
692
+ type: "zone.deleted";
693
+ data: {
694
+ object: Schemas["ZoneEventObject"];
695
+ previous_attributes?: undefined;
696
+ };
697
+ };
698
+ /** A zone was published. */
699
+ "zone.published": Envelope & {
700
+ type: "zone.published";
701
+ data: {
702
+ object: Schemas["ZoneEventObject"];
703
+ previous_attributes?: undefined;
704
+ };
705
+ };
706
+ /** A zone was taken down. */
707
+ "zone.unpublished": Envelope & {
708
+ type: "zone.unpublished";
709
+ data: {
710
+ object: Schemas["ZoneEventObject"];
711
+ previous_attributes?: undefined;
712
+ };
713
+ };
714
+ /** A zone changed. */
715
+ "zone.updated": Envelope & {
716
+ type: "zone.updated";
717
+ data: {
718
+ object: Schemas["ZoneEventObject"];
719
+ previous_attributes?:
720
+ | {
721
+ name?: Schemas["ZoneEventObject"]["name"] | undefined;
722
+ description?: Schemas["ZoneEventObject"]["description"] | undefined;
723
+ level?: Schemas["ZoneEventObject"]["level"] | undefined;
724
+ mode?: Schemas["ZoneEventObject"]["mode"] | undefined;
725
+ is_private?: Schemas["ZoneEventObject"]["is_private"] | undefined;
726
+ start_at?: Schemas["ZoneEventObject"]["start_at"] | undefined;
727
+ end_at?: Schemas["ZoneEventObject"]["end_at"] | undefined;
728
+ }
729
+ | undefined;
730
+ };
731
+ };
732
+ }