@mountaya/client 0.1.0 → 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 +45 -0
- package/README.md +2 -2
- package/dist/admin/index.cjs +2876 -3502
- package/dist/admin/index.cjs.map +1 -1
- package/dist/admin/index.d.cts +731 -912
- package/dist/admin/index.d.ts +731 -912
- package/dist/admin/index.js +188 -285
- package/dist/admin/index.js.map +1 -1
- package/dist/browser.cjs +5913 -7993
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +42 -78
- package/dist/browser.d.ts +42 -78
- package/dist/browser.js +18 -49
- package/dist/browser.js.map +1 -1
- 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 +1338 -1874
- package/dist/events/index.cjs.map +1 -1
- package/dist/events/index.d.cts +373 -382
- package/dist/events/index.d.ts +373 -382
- package/dist/events/index.js +523 -806
- package/dist/events/index.js.map +1 -1
- package/dist/index.cjs +5908 -7988
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -69
- package/dist/index.d.ts +37 -69
- package/dist/index.js +17 -48
- package/dist/index.js.map +1 -1
- package/package.json +7 -8
- package/src/browser.ts +1 -0
- package/src/core/rules/clientHeader.ts +1 -1
- package/src/core/rules/errors.ts +1 -1
- package/src/core/rules/nullMasks.gen.ts +14 -2
- package/src/core/rules/version.gen.ts +1 -1
- package/src/events/index.ts +1 -5
- package/src/rest/adminResources.gen.ts +2 -0
- package/src/rest/dates.gen.ts +1 -1
- package/src/rest/resources.gen.ts +2 -0
- package/src/rest/schema.gen.ts +247 -60
- package/src/tiles/schema.gen.ts +1 -3
- package/dist/chunk-BM526BHG.js +0 -342
- package/dist/chunk-BM526BHG.js.map +0 -1
- package/dist/chunk-D2YEVTG7.js +0 -327
- package/dist/chunk-D2YEVTG7.js.map +0 -1
- package/dist/chunk-OHKVUREN.js +0 -3500
- package/dist/chunk-OHKVUREN.js.map +0 -1
- package/dist/chunk-TDTK2L5H.js +0 -3842
- package/dist/chunk-TDTK2L5H.js.map +0 -1
- package/dist/coreOperations.gen-BMYPoBbz.d.ts +0 -1760
- package/dist/coreOperations.gen-BxX5xRxw.d.cts +0 -1760
- package/dist/errors-B-GqAtQv.d.cts +0 -75960
- package/dist/errors-B-GqAtQv.d.ts +0 -75960
- package/dist/operations.gen-CvTyzKNF.d.cts +0 -3993
- package/dist/operations.gen-DUD406TV.d.ts +0 -3993
package/dist/admin/index.d.ts
CHANGED
|
@@ -1,133 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { A as Address, b as AiCredentialField, d as AiProvider, e as AiProviderCatalog, f as AiProviderConfig, g as AiProviderConfigCreateParams, h as AiProviderConfigEventObject, i as AiProviderConfigUpdateParams, j as AssignableOrganizationRole, B as BillingInfo, k as BillingInfoEventObject, l as BillingInfoField, m as BillingInfoTaxIdParams, n as BillingInfoUpdateParams, o as BillingInterval, p as BillingPricing, q as BillingProduct, r as BillingUnitKind, C as Capability, s as CollectionEventObject, t as CollectionItineraryEventObject, u as CollectionShareLinkEventObject, v as CollectionZoneEventObject, I as Invoice, w as InvoiceEventObject, x as InvoiceStatus, y as ItineraryEventObject, z as ItineraryOrigin, D as ItinerarySegmentEventObject, E as ItinerarySegmentGroupEventObject, F as ItineraryShareLinkEventObject, G as ItineraryWaypointEventObject, H as Membership, J as MeterDimension, N as NotificationPreference, K as NotificationPreferenceUpdate, L as NotificationPreferences, O as NotificationPreferencesUpdateParams, P as NotificationType, Q as OrganizationBillingPaymentMethodParams, R as OrganizationBillingProvisionParams, S as OrganizationCreateParams, T as OrganizationEntitlementsEventObject, U as OrganizationEventObject, V as OrganizationInvitation, X as OrganizationInvitationCreateParams, Y as OrganizationInvitationEventObject, Z as OrganizationMember, _ as OrganizationMemberDeletionReason, $ as OrganizationMemberEventObject, a0 as OrganizationMemberUpdateParams, a1 as OrganizationSettingsEventObject, a2 as OrganizationSettingsPatchParams, a3 as OrganizationSubscription, a4 as OrganizationSubscriptionEventObject, a5 as OrganizationSubscriptionItem, a6 as OrganizationSubscriptionSummary, a7 as OrganizationUpdateParams, a8 as PaymentMethod, a9 as PaymentMethodCard, aa as PaymentMethodEventObject, ab as PaymentMethodSepaDebit, ac as Preferences, ad as PreferencesUpdateParams, ae as PromotionCodePreview, af as PublishableKey, ag as PublishableKeyCreateParams, ah as PublishableKeyEventObject, ai as PublishableKeyScope, aj as PublishableKeyUpdateParams, ak as ResponseMetadataPostOrganizationInvitation, al as SecretKeyEventObject, am as SessionCreateParams, an as SetupIntentSession, ao as SubscriptionCollectionMethod, ap as SubscriptionDiscount, aq as SubscriptionStatus, ar as TaxId, as as UsageDataPoint, at as UsageDataResourceType, au as UsageDataSurface, av as UsageMetric, aw as UsageStatusClass, ax as UsageTilePoint, ay as UsageTileResourceType, az as UsageTileSurface, aA as UserInvitation, aB as WebhookAttemptOutcome, aC as WebhookDelivery, aD as WebhookDeliveryAttempt, aE as WebhookDeliveryCreateParams, aF as WebhookDeliveryOutcome, aG as WebhookDeliveryRecipient, aH as WebhookDeliveryTestParams, aI as WebhookDeliveryTrigger, aJ as WebhookDeliveryTriggerKind, aK as WebhookDeliveryWithAttempts, aL as WebhookDestinationKind, aM as WebhookEndpoint, aN as WebhookEndpointCreateParams, aO as WebhookEndpointDisabledReason, aP as WebhookEndpointEventObject, aQ as WebhookEndpointStatus, aR as WebhookEndpointUpdateParams, aS as WebhookEndpointWithSecret, aT as WebhookEventActor, aU as WebhookEventActorType, aV as WebhookEventCatalogEntry, aW as WebhookEventData, aX as WebhookEventObject, aY as WebhookEventRelatedObject, aZ as WebhookEventRequest, a_ as WebhookEventWithDeliveries, a$ as WebhookFailureClass, b0 as WebhookFailureKind, b1 as WebhookHealth, b2 as WebhookHealthDestination, b3 as WebhookHealthFailure, b4 as WebhookHealthFigures, b5 as WebhookHealthGranularity, b6 as WebhookHealthPoint, b7 as WebhookHealthWindow, b8 as ZoneEventObject } from '../errors-B-GqAtQv.js';
|
|
6
|
-
import 'geojson';
|
|
7
|
-
|
|
8
|
-
declare const adminOperations_gen_deleteMyInvitation: typeof deleteMyInvitation;
|
|
9
|
-
declare const adminOperations_gen_deleteOrganizationAiProviderConfig: typeof deleteOrganizationAiProviderConfig;
|
|
10
|
-
declare const adminOperations_gen_deleteOrganizationBillingPaymentMethod: typeof deleteOrganizationBillingPaymentMethod;
|
|
11
|
-
declare const adminOperations_gen_deleteOrganizationBillingSubscription: typeof deleteOrganizationBillingSubscription;
|
|
12
|
-
declare const adminOperations_gen_deleteOrganizationInvitation: typeof deleteOrganizationInvitation;
|
|
13
|
-
declare const adminOperations_gen_deleteOrganizationMember: typeof deleteOrganizationMember;
|
|
14
|
-
declare const adminOperations_gen_deleteOrganizationPublishableKey: typeof deleteOrganizationPublishableKey;
|
|
15
|
-
declare const adminOperations_gen_deleteOrganizationWebhookEndpoint: typeof deleteOrganizationWebhookEndpoint;
|
|
16
|
-
declare const adminOperations_gen_getAiProviders: typeof getAiProviders;
|
|
17
|
-
declare const adminOperations_gen_getBillingProducts: typeof getBillingProducts;
|
|
18
|
-
declare const adminOperations_gen_getMyInvitations: typeof getMyInvitations;
|
|
19
|
-
declare const adminOperations_gen_getMyOrganizationNotificationPreferences: typeof getMyOrganizationNotificationPreferences;
|
|
20
|
-
declare const adminOperations_gen_getMyOrganizations: typeof getMyOrganizations;
|
|
21
|
-
declare const adminOperations_gen_getMyPreferences: typeof getMyPreferences;
|
|
22
|
-
declare const adminOperations_gen_getOrganization: typeof getOrganization;
|
|
23
|
-
declare const adminOperations_gen_getOrganizationAiProviderConfig: typeof getOrganizationAiProviderConfig;
|
|
24
|
-
declare const adminOperations_gen_getOrganizationBillingInfo: typeof getOrganizationBillingInfo;
|
|
25
|
-
declare const adminOperations_gen_getOrganizationBillingInvoices: typeof getOrganizationBillingInvoices;
|
|
26
|
-
declare const adminOperations_gen_getOrganizationBillingPaymentMethods: typeof getOrganizationBillingPaymentMethods;
|
|
27
|
-
declare const adminOperations_gen_getOrganizationBillingPromotionCode: typeof getOrganizationBillingPromotionCode;
|
|
28
|
-
declare const adminOperations_gen_getOrganizationBillingSubscription: typeof getOrganizationBillingSubscription;
|
|
29
|
-
declare const adminOperations_gen_getOrganizationInvitation: typeof getOrganizationInvitation;
|
|
30
|
-
declare const adminOperations_gen_getOrganizationInvitations: typeof getOrganizationInvitations;
|
|
31
|
-
declare const adminOperations_gen_getOrganizationMembers: typeof getOrganizationMembers;
|
|
32
|
-
declare const adminOperations_gen_getOrganizationPublishableKey: typeof getOrganizationPublishableKey;
|
|
33
|
-
declare const adminOperations_gen_getOrganizationPublishableKeys: typeof getOrganizationPublishableKeys;
|
|
34
|
-
declare const adminOperations_gen_getOrganizationSettings: typeof getOrganizationSettings;
|
|
35
|
-
declare const adminOperations_gen_getOrganizationUsageData: typeof getOrganizationUsageData;
|
|
36
|
-
declare const adminOperations_gen_getOrganizationUsageTiles: typeof getOrganizationUsageTiles;
|
|
37
|
-
declare const adminOperations_gen_getOrganizationWebhookDeliveries: typeof getOrganizationWebhookDeliveries;
|
|
38
|
-
declare const adminOperations_gen_getOrganizationWebhookDelivery: typeof getOrganizationWebhookDelivery;
|
|
39
|
-
declare const adminOperations_gen_getOrganizationWebhookEndpoint: typeof getOrganizationWebhookEndpoint;
|
|
40
|
-
declare const adminOperations_gen_getOrganizationWebhookEndpoints: typeof getOrganizationWebhookEndpoints;
|
|
41
|
-
declare const adminOperations_gen_getOrganizationWebhookEvent: typeof getOrganizationWebhookEvent;
|
|
42
|
-
declare const adminOperations_gen_getOrganizationWebhookEvents: typeof getOrganizationWebhookEvents;
|
|
43
|
-
declare const adminOperations_gen_getOrganizationWebhookHealth: typeof getOrganizationWebhookHealth;
|
|
44
|
-
declare const adminOperations_gen_getWebhookEventTypes: typeof getWebhookEventTypes;
|
|
45
|
-
declare const adminOperations_gen_patchMyOrganizationNotificationPreferences: typeof patchMyOrganizationNotificationPreferences;
|
|
46
|
-
declare const adminOperations_gen_patchMyPreferences: typeof patchMyPreferences;
|
|
47
|
-
declare const adminOperations_gen_patchOrganization: typeof patchOrganization;
|
|
48
|
-
declare const adminOperations_gen_patchOrganizationAiProviderConfig: typeof patchOrganizationAiProviderConfig;
|
|
49
|
-
declare const adminOperations_gen_patchOrganizationBillingInfo: typeof patchOrganizationBillingInfo;
|
|
50
|
-
declare const adminOperations_gen_patchOrganizationMember: typeof patchOrganizationMember;
|
|
51
|
-
declare const adminOperations_gen_patchOrganizationPublishableKey: typeof patchOrganizationPublishableKey;
|
|
52
|
-
declare const adminOperations_gen_patchOrganizationSettings: typeof patchOrganizationSettings;
|
|
53
|
-
declare const adminOperations_gen_patchOrganizationWebhookEndpoint: typeof patchOrganizationWebhookEndpoint;
|
|
54
|
-
declare const adminOperations_gen_postMyInvitationAccept: typeof postMyInvitationAccept;
|
|
55
|
-
declare const adminOperations_gen_postOrganization: typeof postOrganization;
|
|
56
|
-
declare const adminOperations_gen_postOrganizationAiProviderConfig: typeof postOrganizationAiProviderConfig;
|
|
57
|
-
declare const adminOperations_gen_postOrganizationBillingPaymentMethod: typeof postOrganizationBillingPaymentMethod;
|
|
58
|
-
declare const adminOperations_gen_postOrganizationBillingPaymentMethodSetDefault: typeof postOrganizationBillingPaymentMethodSetDefault;
|
|
59
|
-
declare const adminOperations_gen_postOrganizationBillingPaymentMethodSetup: typeof postOrganizationBillingPaymentMethodSetup;
|
|
60
|
-
declare const adminOperations_gen_postOrganizationBillingProvision: typeof postOrganizationBillingProvision;
|
|
61
|
-
declare const adminOperations_gen_postOrganizationBillingSubscription: typeof postOrganizationBillingSubscription;
|
|
62
|
-
declare const adminOperations_gen_postOrganizationInvitation: typeof postOrganizationInvitation;
|
|
63
|
-
declare const adminOperations_gen_postOrganizationPublishableKey: typeof postOrganizationPublishableKey;
|
|
64
|
-
declare const adminOperations_gen_postOrganizationWebhookDelivery: typeof postOrganizationWebhookDelivery;
|
|
65
|
-
declare const adminOperations_gen_postOrganizationWebhookEndpoint: typeof postOrganizationWebhookEndpoint;
|
|
66
|
-
declare const adminOperations_gen_postSession: typeof postSession;
|
|
67
|
-
declare namespace adminOperations_gen {
|
|
68
|
-
export {
|
|
69
|
-
adminOperations_gen_deleteMyInvitation as deleteMyInvitation,
|
|
70
|
-
adminOperations_gen_deleteOrganizationAiProviderConfig as deleteOrganizationAiProviderConfig,
|
|
71
|
-
adminOperations_gen_deleteOrganizationBillingPaymentMethod as deleteOrganizationBillingPaymentMethod,
|
|
72
|
-
adminOperations_gen_deleteOrganizationBillingSubscription as deleteOrganizationBillingSubscription,
|
|
73
|
-
adminOperations_gen_deleteOrganizationInvitation as deleteOrganizationInvitation,
|
|
74
|
-
adminOperations_gen_deleteOrganizationMember as deleteOrganizationMember,
|
|
75
|
-
adminOperations_gen_deleteOrganizationPublishableKey as deleteOrganizationPublishableKey,
|
|
76
|
-
adminOperations_gen_deleteOrganizationWebhookEndpoint as deleteOrganizationWebhookEndpoint,
|
|
77
|
-
adminOperations_gen_getAiProviders as getAiProviders,
|
|
78
|
-
adminOperations_gen_getBillingProducts as getBillingProducts,
|
|
79
|
-
adminOperations_gen_getMyInvitations as getMyInvitations,
|
|
80
|
-
adminOperations_gen_getMyOrganizationNotificationPreferences as getMyOrganizationNotificationPreferences,
|
|
81
|
-
adminOperations_gen_getMyOrganizations as getMyOrganizations,
|
|
82
|
-
adminOperations_gen_getMyPreferences as getMyPreferences,
|
|
83
|
-
adminOperations_gen_getOrganization as getOrganization,
|
|
84
|
-
adminOperations_gen_getOrganizationAiProviderConfig as getOrganizationAiProviderConfig,
|
|
85
|
-
adminOperations_gen_getOrganizationBillingInfo as getOrganizationBillingInfo,
|
|
86
|
-
adminOperations_gen_getOrganizationBillingInvoices as getOrganizationBillingInvoices,
|
|
87
|
-
adminOperations_gen_getOrganizationBillingPaymentMethods as getOrganizationBillingPaymentMethods,
|
|
88
|
-
adminOperations_gen_getOrganizationBillingPromotionCode as getOrganizationBillingPromotionCode,
|
|
89
|
-
adminOperations_gen_getOrganizationBillingSubscription as getOrganizationBillingSubscription,
|
|
90
|
-
adminOperations_gen_getOrganizationInvitation as getOrganizationInvitation,
|
|
91
|
-
adminOperations_gen_getOrganizationInvitations as getOrganizationInvitations,
|
|
92
|
-
adminOperations_gen_getOrganizationMembers as getOrganizationMembers,
|
|
93
|
-
adminOperations_gen_getOrganizationPublishableKey as getOrganizationPublishableKey,
|
|
94
|
-
adminOperations_gen_getOrganizationPublishableKeys as getOrganizationPublishableKeys,
|
|
95
|
-
adminOperations_gen_getOrganizationSettings as getOrganizationSettings,
|
|
96
|
-
adminOperations_gen_getOrganizationUsageData as getOrganizationUsageData,
|
|
97
|
-
adminOperations_gen_getOrganizationUsageTiles as getOrganizationUsageTiles,
|
|
98
|
-
adminOperations_gen_getOrganizationWebhookDeliveries as getOrganizationWebhookDeliveries,
|
|
99
|
-
adminOperations_gen_getOrganizationWebhookDelivery as getOrganizationWebhookDelivery,
|
|
100
|
-
adminOperations_gen_getOrganizationWebhookEndpoint as getOrganizationWebhookEndpoint,
|
|
101
|
-
adminOperations_gen_getOrganizationWebhookEndpoints as getOrganizationWebhookEndpoints,
|
|
102
|
-
adminOperations_gen_getOrganizationWebhookEvent as getOrganizationWebhookEvent,
|
|
103
|
-
adminOperations_gen_getOrganizationWebhookEvents as getOrganizationWebhookEvents,
|
|
104
|
-
adminOperations_gen_getOrganizationWebhookHealth as getOrganizationWebhookHealth,
|
|
105
|
-
adminOperations_gen_getWebhookEventTypes as getWebhookEventTypes,
|
|
106
|
-
adminOperations_gen_patchMyOrganizationNotificationPreferences as patchMyOrganizationNotificationPreferences,
|
|
107
|
-
adminOperations_gen_patchMyPreferences as patchMyPreferences,
|
|
108
|
-
adminOperations_gen_patchOrganization as patchOrganization,
|
|
109
|
-
adminOperations_gen_patchOrganizationAiProviderConfig as patchOrganizationAiProviderConfig,
|
|
110
|
-
adminOperations_gen_patchOrganizationBillingInfo as patchOrganizationBillingInfo,
|
|
111
|
-
adminOperations_gen_patchOrganizationMember as patchOrganizationMember,
|
|
112
|
-
adminOperations_gen_patchOrganizationPublishableKey as patchOrganizationPublishableKey,
|
|
113
|
-
adminOperations_gen_patchOrganizationSettings as patchOrganizationSettings,
|
|
114
|
-
adminOperations_gen_patchOrganizationWebhookEndpoint as patchOrganizationWebhookEndpoint,
|
|
115
|
-
adminOperations_gen_postMyInvitationAccept as postMyInvitationAccept,
|
|
116
|
-
adminOperations_gen_postOrganization as postOrganization,
|
|
117
|
-
adminOperations_gen_postOrganizationAiProviderConfig as postOrganizationAiProviderConfig,
|
|
118
|
-
adminOperations_gen_postOrganizationBillingPaymentMethod as postOrganizationBillingPaymentMethod,
|
|
119
|
-
adminOperations_gen_postOrganizationBillingPaymentMethodSetDefault as postOrganizationBillingPaymentMethodSetDefault,
|
|
120
|
-
adminOperations_gen_postOrganizationBillingPaymentMethodSetup as postOrganizationBillingPaymentMethodSetup,
|
|
121
|
-
adminOperations_gen_postOrganizationBillingProvision as postOrganizationBillingProvision,
|
|
122
|
-
adminOperations_gen_postOrganizationBillingSubscription as postOrganizationBillingSubscription,
|
|
123
|
-
adminOperations_gen_postOrganizationInvitation as postOrganizationInvitation,
|
|
124
|
-
adminOperations_gen_postOrganizationPublishableKey as postOrganizationPublishableKey,
|
|
125
|
-
adminOperations_gen_postOrganizationWebhookDelivery as postOrganizationWebhookDelivery,
|
|
126
|
-
adminOperations_gen_postOrganizationWebhookEndpoint as postOrganizationWebhookEndpoint,
|
|
127
|
-
adminOperations_gen_postSession as postSession,
|
|
128
|
-
};
|
|
1
|
+
import { $ as getOrganizationPublishableKey, $t as postMyInvitationAccept, B as getMyOrganizations, Ct as patchOrganization, Dt as patchOrganizationPublishableKey, Et as patchOrganizationMember, G as getOrganizationBillingInvoices, H as getOrganization, J as getOrganizationBillingSubscription, K as getOrganizationBillingPaymentMethods, Ot as patchOrganizationSettings, Q as getOrganizationMembers, R as getMyInvitations, St as patchMyPreferences, T as getBillingProducts, Tt as patchOrganizationBillingInfo, U as getOrganizationAiProviderConfig, V as getMyPreferences, W as getOrganizationBillingInfo, X as getOrganizationInvitation, Z as getOrganizationInvitations, _ as deleteOrganizationMember, an as postOrganizationBillingProvision, at as getOrganizationWebhookDelivery, ct as getOrganizationWebhookEvent, dn as postOrganizationWebhookEndpoint, dt as getWebhookEventTypes, en as postOrganization, et as getOrganizationPublishableKeys, f as deleteMyInvitation, fn as postSession, g as deleteOrganizationInvitation, h as deleteOrganizationBillingSubscription, in as postOrganizationBillingPaymentMethodSetup, it as getOrganizationWebhookDeliveries, kt as patchOrganizationWebhookEndpoint, ln as postOrganizationPublishableKey, lt as getOrganizationWebhookEvents, m as deleteOrganizationBillingPaymentMethod, nn as postOrganizationBillingPaymentMethod, nt as getOrganizationUsageData, on as postOrganizationBillingSubscription, ot as getOrganizationWebhookEndpoint, p as deleteOrganizationAiProviderConfig, q as getOrganizationBillingPromotionCode, rn as postOrganizationBillingPaymentMethodSetDefault, rt as getOrganizationUsageTiles, sn as postOrganizationInvitation, st as getOrganizationWebhookEndpoints, t as bind, tn as postOrganizationAiProviderConfig, tt as getOrganizationSettings, un as postOrganizationWebhookDelivery, ut as getOrganizationWebhookHealth, v as deleteOrganizationPublishableKey, w as getAiProviders, wt as patchOrganizationAiProviderConfig, xt as patchMyOrganizationNotificationPreferences, y as deleteOrganizationWebhookEndpoint, z as getMyOrganizationNotificationPreferences } from "../chunk-DoZt_oIV.js";
|
|
2
|
+
import { $a as SecretKeyEventObject, $i as OrganizationInvitationCreateParams, $o as UsageDataSurface, $s as WebhookHealthGranularity, An as BillingPricing, As as WebhookDestinationKind, Bi as NotificationPreference, Bs as WebhookEventCatalogEntry, Ca as PaymentMethodEventObject, Ci as ItinerarySegmentGroupEventObject, Cr as CollectionItineraryEventObject, Cs as WebhookDeliveryCreateParams, Da as PreferencesUpdateParams, Dn as BillingInfoTaxIdParams, Dr as CollectionZoneEventObject, Ds as WebhookDeliveryTrigger, Ea as Preferences, En as BillingInfoField, Es as WebhookDeliveryTestParams, Fa as PublishableKeyScope, Fs as WebhookEndpointStatus, Ft as Address, Gs as WebhookEventType, Hi as NotificationPreferences, Hs as WebhookEventObject, Ia as PublishableKeyUpdateParams, Is as WebhookEndpointUpdateParams, Ji as OrganizationBillingProvisionParams, Js as WebhookFailureKind, Ks as WebhookEventWithDeliveries, Li as Membership, Ls as WebhookEndpointWithSecret, Ma as PublishableKey, Mn as BillingUnitKind, Ms as WebhookEndpointCreateParams, Na as PublishableKeyCreateParams, Ns as WebhookEndpointDisabledReason, Oa as PromotionCodePreview, Oi as ItineraryWaypointEventObject, On as BillingInfoUpdateParams, Os as WebhookDeliveryTriggerKind, Pa as PublishableKeyEventObject, Pn as Capability, Ps as WebhookEndpointEventObject, Qi as OrganizationInvitation, Qo as UsageDataResourceType, Qs as WebhookHealthFigures, Ri as MeterDimension, Rs as WebhookEventActor, Sa as PaymentMethodCard, Sn as AssignableOrganizationRole, Ss as WebhookDeliveryAttempt, Tn as BillingInfoEventObject, Tr as CollectionShareLinkEventObject, Ts as WebhookDeliveryRecipient, Ui as NotificationPreferencesUpdateParams, Us as WebhookEventRelatedObject, Vi as NotificationPreferenceUpdate, Vs as WebhookEventData, Wi as NotificationType, Ws as WebhookEventRequest, Xi as OrganizationEntitlementsEventObject, Xo as UsageClientName, Xs as WebhookHealthDestination, Ya as ResponseMetadataPostOrganizationInvitation, Yi as OrganizationCreateParams, Ys as WebhookHealth, Zi as OrganizationEventObject, Zo as UsageDataPoint, Zs as WebhookHealthFailure, _i as ItineraryOrigin, _n as AiProviderCatalog, _o as SubscriptionCollectionMethod, aa as OrganizationMemberUpdateParams, ai as InvoiceEventObject, as as UserInvitation, bn as AiProviderConfigEventObject, bo as SubscriptionStatus, bs as WebhookAttemptOutcome, ca as OrganizationSettingsEventObject, da as OrganizationSubscriptionEventObject, do as SetupIntentSession, ea as OrganizationInvitationEventObject, ec as WebhookHealthPoint, es as UsageMetric, fa as OrganizationSubscriptionItem, fc as components, fi as ItineraryEventObject, gn as AiProvider, hn as AiCredentialField, ia as OrganizationMemberEventObject, ic as ZoneEventObject, ii as Invoice, is as UsageTileSurface, jn as BillingProduct, js as WebhookEndpoint, kn as BillingInterval, ks as WebhookDeliveryWithAttempts, la as OrganizationSettingsPatchParams, lo as SessionCreateParams, lt as MountayaTransport, m as MountayaError, ma as OrganizationUpdateParams, na as OrganizationMember, ns as UsageTilePoint, oi as InvoiceStatus, pa as OrganizationSubscriptionSummary, qi as OrganizationBillingPaymentMethodParams, qs as WebhookFailureClass, ra as OrganizationMemberDeletionReason, rs as UsageTileResourceType, tc as WebhookHealthWindow, ts as UsageStatusClass, ua as OrganizationSubscription, vn as AiProviderConfig, vo as SubscriptionDiscount, wa as PaymentMethodSepaDebit, wi as ItineraryShareLinkEventObject, wn as BillingInfo, wo as TaxId, ws as WebhookDeliveryOutcome, xa as PaymentMethod, xi as ItinerarySegmentEventObject, xn as AiProviderConfigUpdateParams, xr as CollectionEventObject, xs as WebhookDelivery, yn as AiProviderConfigCreateParams, yo as SubscriptionEndReason, zs as WebhookEventActorType } from "../chunk-CeEX7ayk.js";
|
|
3
|
+
declare namespace adminOperations_gen_d_exports {
|
|
4
|
+
export { deleteMyInvitation, deleteOrganizationAiProviderConfig, deleteOrganizationBillingPaymentMethod, deleteOrganizationBillingSubscription, deleteOrganizationInvitation, deleteOrganizationMember, deleteOrganizationPublishableKey, deleteOrganizationWebhookEndpoint, getAiProviders, getBillingProducts, getMyInvitations, getMyOrganizationNotificationPreferences, getMyOrganizations, getMyPreferences, getOrganization, getOrganizationAiProviderConfig, getOrganizationBillingInfo, getOrganizationBillingInvoices, getOrganizationBillingPaymentMethods, getOrganizationBillingPromotionCode, getOrganizationBillingSubscription, getOrganizationInvitation, getOrganizationInvitations, getOrganizationMembers, getOrganizationPublishableKey, getOrganizationPublishableKeys, getOrganizationSettings, getOrganizationUsageData, getOrganizationUsageTiles, getOrganizationWebhookDeliveries, getOrganizationWebhookDelivery, getOrganizationWebhookEndpoint, getOrganizationWebhookEndpoints, getOrganizationWebhookEvent, getOrganizationWebhookEvents, getOrganizationWebhookHealth, getWebhookEventTypes, patchMyOrganizationNotificationPreferences, patchMyPreferences, patchOrganization, patchOrganizationAiProviderConfig, patchOrganizationBillingInfo, patchOrganizationMember, patchOrganizationPublishableKey, patchOrganizationSettings, patchOrganizationWebhookEndpoint, postMyInvitationAccept, postOrganization, postOrganizationAiProviderConfig, postOrganizationBillingPaymentMethod, postOrganizationBillingPaymentMethodSetDefault, postOrganizationBillingPaymentMethodSetup, postOrganizationBillingProvision, postOrganizationBillingSubscription, postOrganizationInvitation, postOrganizationPublishableKey, postOrganizationWebhookDelivery, postOrganizationWebhookEndpoint, postSession };
|
|
129
5
|
}
|
|
130
|
-
|
|
131
6
|
/** The schemas the Map Studio contract declares, by the name the contract gives each. */
|
|
132
7
|
type Schemas = components["schemas"];
|
|
133
8
|
/** What every webhook event carries beside its `type` and its `data`. */
|
|
@@ -138,693 +13,682 @@ type Envelope = Omit<Schemas["WebhookEvent"], "data" | "type">;
|
|
|
138
13
|
* each field the change moved, which a type that names no such field never carries.
|
|
139
14
|
*/
|
|
140
15
|
interface WebhookEventsByType {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
};
|
|
509
|
-
};
|
|
510
|
-
/** A Data API subscription was paused. */
|
|
511
|
-
"organization.billing.subscription.paused": Envelope & {
|
|
512
|
-
type: "organization.billing.subscription.paused";
|
|
513
|
-
data: {
|
|
514
|
-
object: Schemas["OrganizationSubscriptionEventObject"];
|
|
515
|
-
previous_attributes?: undefined;
|
|
516
|
-
};
|
|
517
|
-
};
|
|
518
|
-
/** A Data API subscription was resumed. */
|
|
519
|
-
"organization.billing.subscription.resumed": Envelope & {
|
|
520
|
-
type: "organization.billing.subscription.resumed";
|
|
521
|
-
data: {
|
|
522
|
-
object: Schemas["OrganizationSubscriptionEventObject"];
|
|
523
|
-
previous_attributes?: undefined;
|
|
524
|
-
};
|
|
525
|
-
};
|
|
526
|
-
/** A Data API subscription changed. */
|
|
527
|
-
"organization.billing.subscription.updated": Envelope & {
|
|
528
|
-
type: "organization.billing.subscription.updated";
|
|
529
|
-
data: {
|
|
530
|
-
object: Schemas["OrganizationSubscriptionEventObject"];
|
|
531
|
-
previous_attributes?: {
|
|
532
|
-
status?: Schemas["OrganizationSubscriptionEventObject"]["status"] | undefined;
|
|
533
|
-
cancel_at_period_end?: Schemas["OrganizationSubscriptionEventObject"]["cancel_at_period_end"] | undefined;
|
|
534
|
-
current_period_end_at?: Schemas["OrganizationSubscriptionEventObject"]["current_period_end_at"] | undefined;
|
|
535
|
-
} | undefined;
|
|
536
|
-
};
|
|
537
|
-
};
|
|
538
|
-
/** An organization was created. */
|
|
539
|
-
"organization.created": Envelope & {
|
|
540
|
-
type: "organization.created";
|
|
541
|
-
data: {
|
|
542
|
-
object: Schemas["OrganizationEventObject"];
|
|
543
|
-
previous_attributes?: undefined;
|
|
544
|
-
};
|
|
545
|
-
};
|
|
546
|
-
/** What an organization holds changed. */
|
|
547
|
-
"organization.entitlements.updated": Envelope & {
|
|
548
|
-
type: "organization.entitlements.updated";
|
|
549
|
-
data: {
|
|
550
|
-
object: Schemas["OrganizationEntitlementsEventObject"];
|
|
551
|
-
previous_attributes?: {
|
|
552
|
-
capabilities?: Schemas["OrganizationEntitlementsEventObject"]["capabilities"] | undefined;
|
|
553
|
-
studio_entitlements?: Schemas["OrganizationEntitlementsEventObject"]["studio_entitlements"] | undefined;
|
|
554
|
-
} | undefined;
|
|
555
|
-
};
|
|
556
|
-
};
|
|
557
|
-
/** An invitation was accepted. */
|
|
558
|
-
"organization.invitation.accepted": Envelope & {
|
|
559
|
-
type: "organization.invitation.accepted";
|
|
560
|
-
data: {
|
|
561
|
-
object: Schemas["OrganizationInvitationEventObject"];
|
|
562
|
-
previous_attributes?: undefined;
|
|
563
|
-
};
|
|
564
|
-
};
|
|
565
|
-
/** Somebody was invited to an organization. */
|
|
566
|
-
"organization.invitation.created": Envelope & {
|
|
567
|
-
type: "organization.invitation.created";
|
|
568
|
-
data: {
|
|
569
|
-
object: Schemas["OrganizationInvitationEventObject"];
|
|
570
|
-
previous_attributes?: undefined;
|
|
571
|
-
};
|
|
572
|
-
};
|
|
573
|
-
/** An invitation was declined. */
|
|
574
|
-
"organization.invitation.declined": Envelope & {
|
|
575
|
-
type: "organization.invitation.declined";
|
|
576
|
-
data: {
|
|
577
|
-
object: Schemas["OrganizationInvitationEventObject"];
|
|
578
|
-
previous_attributes?: undefined;
|
|
579
|
-
};
|
|
580
|
-
};
|
|
581
|
-
/** An invitation was superseded. */
|
|
582
|
-
"organization.invitation.deleted": Envelope & {
|
|
583
|
-
type: "organization.invitation.deleted";
|
|
584
|
-
data: {
|
|
585
|
-
object: Schemas["OrganizationInvitationEventObject"];
|
|
586
|
-
previous_attributes?: undefined;
|
|
587
|
-
};
|
|
588
|
-
};
|
|
589
|
-
/** An invitation lapsed unanswered. */
|
|
590
|
-
"organization.invitation.expired": Envelope & {
|
|
591
|
-
type: "organization.invitation.expired";
|
|
592
|
-
data: {
|
|
593
|
-
object: Schemas["OrganizationInvitationEventObject"];
|
|
594
|
-
previous_attributes?: undefined;
|
|
595
|
-
};
|
|
596
|
-
};
|
|
597
|
-
/** An invitation was withdrawn. */
|
|
598
|
-
"organization.invitation.revoked": Envelope & {
|
|
599
|
-
type: "organization.invitation.revoked";
|
|
600
|
-
data: {
|
|
601
|
-
object: Schemas["OrganizationInvitationEventObject"];
|
|
602
|
-
previous_attributes?: undefined;
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
/** Somebody joined an organization. */
|
|
606
|
-
"organization.member.created": Envelope & {
|
|
607
|
-
type: "organization.member.created";
|
|
608
|
-
data: {
|
|
609
|
-
object: Schemas["OrganizationMemberEventObject"];
|
|
610
|
-
previous_attributes?: undefined;
|
|
611
|
-
};
|
|
612
|
-
};
|
|
613
|
-
/** A member left an organization or was removed from it. */
|
|
614
|
-
"organization.member.deleted": Envelope & {
|
|
615
|
-
type: "organization.member.deleted";
|
|
616
|
-
data: {
|
|
617
|
-
object: Schemas["OrganizationMemberEventObject"];
|
|
618
|
-
previous_attributes?: undefined;
|
|
619
|
-
};
|
|
620
|
-
};
|
|
621
|
-
/** A member's role changed. */
|
|
622
|
-
"organization.member.updated": Envelope & {
|
|
623
|
-
type: "organization.member.updated";
|
|
624
|
-
data: {
|
|
625
|
-
object: Schemas["OrganizationMemberEventObject"];
|
|
626
|
-
previous_attributes?: {
|
|
627
|
-
role?: Schemas["OrganizationMemberEventObject"]["role"] | undefined;
|
|
628
|
-
} | undefined;
|
|
629
|
-
};
|
|
630
|
-
};
|
|
631
|
-
/** A publishable key was created. */
|
|
632
|
-
"organization.publishable_key.created": Envelope & {
|
|
633
|
-
type: "organization.publishable_key.created";
|
|
634
|
-
data: {
|
|
635
|
-
object: Schemas["PublishableKeyEventObject"];
|
|
636
|
-
previous_attributes?: undefined;
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
/** A publishable key was revoked. */
|
|
640
|
-
"organization.publishable_key.revoked": Envelope & {
|
|
641
|
-
type: "organization.publishable_key.revoked";
|
|
642
|
-
data: {
|
|
643
|
-
object: Schemas["PublishableKeyEventObject"];
|
|
644
|
-
previous_attributes?: undefined;
|
|
645
|
-
};
|
|
646
|
-
};
|
|
647
|
-
/** A publishable key's name or scopes changed. */
|
|
648
|
-
"organization.publishable_key.updated": Envelope & {
|
|
649
|
-
type: "organization.publishable_key.updated";
|
|
650
|
-
data: {
|
|
651
|
-
object: Schemas["PublishableKeyEventObject"];
|
|
652
|
-
previous_attributes?: {
|
|
653
|
-
name?: Schemas["PublishableKeyEventObject"]["name"] | undefined;
|
|
654
|
-
scopes?: Schemas["PublishableKeyEventObject"]["scopes"] | undefined;
|
|
655
|
-
} | undefined;
|
|
656
|
-
};
|
|
657
|
-
};
|
|
658
|
-
/** A secret key was created. */
|
|
659
|
-
"organization.secret_key.created": Envelope & {
|
|
660
|
-
type: "organization.secret_key.created";
|
|
661
|
-
data: {
|
|
662
|
-
object: Schemas["SecretKeyEventObject"];
|
|
663
|
-
previous_attributes?: undefined;
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
/** A secret key was revoked. */
|
|
667
|
-
"organization.secret_key.revoked": Envelope & {
|
|
668
|
-
type: "organization.secret_key.revoked";
|
|
669
|
-
data: {
|
|
670
|
-
object: Schemas["SecretKeyEventObject"];
|
|
671
|
-
previous_attributes?: undefined;
|
|
672
|
-
};
|
|
673
|
-
};
|
|
674
|
-
/** A secret key was renamed. */
|
|
675
|
-
"organization.secret_key.updated": Envelope & {
|
|
676
|
-
type: "organization.secret_key.updated";
|
|
677
|
-
data: {
|
|
678
|
-
object: Schemas["SecretKeyEventObject"];
|
|
679
|
-
previous_attributes?: {
|
|
680
|
-
name?: Schemas["SecretKeyEventObject"]["name"] | undefined;
|
|
681
|
-
} | undefined;
|
|
682
|
-
};
|
|
683
|
-
};
|
|
684
|
-
/** An organization's Map Publishing settings changed. */
|
|
685
|
-
"organization.settings.updated": Envelope & {
|
|
686
|
-
type: "organization.settings.updated";
|
|
687
|
-
data: {
|
|
688
|
-
object: Schemas["OrganizationSettingsEventObject"];
|
|
689
|
-
previous_attributes?: undefined;
|
|
690
|
-
};
|
|
691
|
-
};
|
|
692
|
-
/** An organization's name changed. */
|
|
693
|
-
"organization.updated": Envelope & {
|
|
694
|
-
type: "organization.updated";
|
|
695
|
-
data: {
|
|
696
|
-
object: Schemas["OrganizationEventObject"];
|
|
697
|
-
previous_attributes?: {
|
|
698
|
-
name?: Schemas["OrganizationEventObject"]["name"] | undefined;
|
|
699
|
-
} | undefined;
|
|
700
|
-
};
|
|
701
|
-
};
|
|
702
|
-
/** A webhook endpoint was created. */
|
|
703
|
-
"organization.webhook_endpoint.created": Envelope & {
|
|
704
|
-
type: "organization.webhook_endpoint.created";
|
|
705
|
-
data: {
|
|
706
|
-
object: Schemas["WebhookEndpointEventObject"];
|
|
707
|
-
previous_attributes?: undefined;
|
|
708
|
-
};
|
|
709
|
-
};
|
|
710
|
-
/** A webhook endpoint was deleted. */
|
|
711
|
-
"organization.webhook_endpoint.deleted": Envelope & {
|
|
712
|
-
type: "organization.webhook_endpoint.deleted";
|
|
713
|
-
data: {
|
|
714
|
-
object: Schemas["WebhookEndpointEventObject"];
|
|
715
|
-
previous_attributes?: undefined;
|
|
716
|
-
};
|
|
717
|
-
};
|
|
718
|
-
/** A webhook endpoint was disabled. */
|
|
719
|
-
"organization.webhook_endpoint.disabled": Envelope & {
|
|
720
|
-
type: "organization.webhook_endpoint.disabled";
|
|
721
|
-
data: {
|
|
722
|
-
object: Schemas["WebhookEndpointEventObject"];
|
|
723
|
-
previous_attributes?: undefined;
|
|
724
|
-
};
|
|
725
|
-
};
|
|
726
|
-
/** A webhook endpoint was enabled. */
|
|
727
|
-
"organization.webhook_endpoint.enabled": Envelope & {
|
|
728
|
-
type: "organization.webhook_endpoint.enabled";
|
|
729
|
-
data: {
|
|
730
|
-
object: Schemas["WebhookEndpointEventObject"];
|
|
731
|
-
previous_attributes?: undefined;
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
/** A webhook endpoint has failed for 24 hours. */
|
|
735
|
-
"organization.webhook_endpoint.failing": Envelope & {
|
|
736
|
-
type: "organization.webhook_endpoint.failing";
|
|
737
|
-
data: {
|
|
738
|
-
object: Schemas["WebhookEndpointEventObject"];
|
|
739
|
-
previous_attributes?: undefined;
|
|
740
|
-
};
|
|
741
|
-
};
|
|
742
|
-
/** A webhook endpoint reported failing succeeded again. */
|
|
743
|
-
"organization.webhook_endpoint.recovered": Envelope & {
|
|
744
|
-
type: "organization.webhook_endpoint.recovered";
|
|
745
|
-
data: {
|
|
746
|
-
object: Schemas["WebhookEndpointEventObject"];
|
|
747
|
-
previous_attributes?: undefined;
|
|
748
|
-
};
|
|
749
|
-
};
|
|
750
|
-
/** A webhook endpoint's secret was rotated. */
|
|
751
|
-
"organization.webhook_endpoint.secret_rotated": Envelope & {
|
|
752
|
-
type: "organization.webhook_endpoint.secret_rotated";
|
|
753
|
-
data: {
|
|
754
|
-
object: Schemas["WebhookEndpointEventObject"];
|
|
755
|
-
previous_attributes?: undefined;
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
/** A webhook endpoint changed. */
|
|
759
|
-
"organization.webhook_endpoint.updated": Envelope & {
|
|
760
|
-
type: "organization.webhook_endpoint.updated";
|
|
761
|
-
data: {
|
|
762
|
-
object: Schemas["WebhookEndpointEventObject"];
|
|
763
|
-
previous_attributes?: {
|
|
764
|
-
host?: Schemas["WebhookEndpointEventObject"]["host"] | undefined;
|
|
765
|
-
} | undefined;
|
|
766
|
-
};
|
|
767
|
-
};
|
|
768
|
-
/** A zone was created. */
|
|
769
|
-
"zone.created": Envelope & {
|
|
770
|
-
type: "zone.created";
|
|
771
|
-
data: {
|
|
772
|
-
object: Schemas["ZoneEventObject"];
|
|
773
|
-
previous_attributes?: undefined;
|
|
774
|
-
};
|
|
775
|
-
};
|
|
776
|
-
/** A zone was deleted. */
|
|
777
|
-
"zone.deleted": Envelope & {
|
|
778
|
-
type: "zone.deleted";
|
|
779
|
-
data: {
|
|
780
|
-
object: Schemas["ZoneEventObject"];
|
|
781
|
-
previous_attributes?: undefined;
|
|
782
|
-
};
|
|
783
|
-
};
|
|
784
|
-
/** A zone was published. */
|
|
785
|
-
"zone.published": Envelope & {
|
|
786
|
-
type: "zone.published";
|
|
787
|
-
data: {
|
|
788
|
-
object: Schemas["ZoneEventObject"];
|
|
789
|
-
previous_attributes?: undefined;
|
|
790
|
-
};
|
|
791
|
-
};
|
|
792
|
-
/** A zone was taken down. */
|
|
793
|
-
"zone.unpublished": Envelope & {
|
|
794
|
-
type: "zone.unpublished";
|
|
795
|
-
data: {
|
|
796
|
-
object: Schemas["ZoneEventObject"];
|
|
797
|
-
previous_attributes?: undefined;
|
|
798
|
-
};
|
|
799
|
-
};
|
|
800
|
-
/** A zone changed. */
|
|
801
|
-
"zone.updated": Envelope & {
|
|
802
|
-
type: "zone.updated";
|
|
803
|
-
data: {
|
|
804
|
-
object: Schemas["ZoneEventObject"];
|
|
805
|
-
previous_attributes?: {
|
|
806
|
-
name?: Schemas["ZoneEventObject"]["name"] | undefined;
|
|
807
|
-
description?: Schemas["ZoneEventObject"]["description"] | undefined;
|
|
808
|
-
level?: Schemas["ZoneEventObject"]["level"] | undefined;
|
|
809
|
-
mode?: Schemas["ZoneEventObject"]["mode"] | undefined;
|
|
810
|
-
is_private?: Schemas["ZoneEventObject"]["is_private"] | undefined;
|
|
811
|
-
start_at?: Schemas["ZoneEventObject"]["start_at"] | undefined;
|
|
812
|
-
end_at?: Schemas["ZoneEventObject"]["end_at"] | undefined;
|
|
813
|
-
} | undefined;
|
|
814
|
-
};
|
|
16
|
+
/** A collection was created. */
|
|
17
|
+
"collection.created": Envelope & {
|
|
18
|
+
type: "collection.created";
|
|
19
|
+
data: {
|
|
20
|
+
object: Schemas["CollectionEventObject"];
|
|
21
|
+
previous_attributes?: undefined;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/** A collection was deleted. */
|
|
25
|
+
"collection.deleted": Envelope & {
|
|
26
|
+
type: "collection.deleted";
|
|
27
|
+
data: {
|
|
28
|
+
object: Schemas["CollectionEventObject"];
|
|
29
|
+
previous_attributes?: undefined;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/** An itinerary was added to a collection. */
|
|
33
|
+
"collection.itinerary.added": Envelope & {
|
|
34
|
+
type: "collection.itinerary.added";
|
|
35
|
+
data: {
|
|
36
|
+
object: Schemas["CollectionItineraryEventObject"];
|
|
37
|
+
previous_attributes?: undefined;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/** An itinerary moved within a collection. */
|
|
41
|
+
"collection.itinerary.moved": Envelope & {
|
|
42
|
+
type: "collection.itinerary.moved";
|
|
43
|
+
data: {
|
|
44
|
+
object: Schemas["CollectionItineraryEventObject"];
|
|
45
|
+
previous_attributes?: {
|
|
46
|
+
position?: Schemas["CollectionItineraryEventObject"]["position"] | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
/** An itinerary left a collection. */
|
|
51
|
+
"collection.itinerary.removed": Envelope & {
|
|
52
|
+
type: "collection.itinerary.removed";
|
|
53
|
+
data: {
|
|
54
|
+
object: Schemas["CollectionItineraryEventObject"];
|
|
55
|
+
previous_attributes?: undefined;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
/** A collection's share link was created. */
|
|
59
|
+
"collection.share_link.created": Envelope & {
|
|
60
|
+
type: "collection.share_link.created";
|
|
61
|
+
data: {
|
|
62
|
+
object: Schemas["CollectionShareLinkEventObject"];
|
|
63
|
+
previous_attributes?: undefined;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
/** A collection's share link was removed. */
|
|
67
|
+
"collection.share_link.deleted": Envelope & {
|
|
68
|
+
type: "collection.share_link.deleted";
|
|
69
|
+
data: {
|
|
70
|
+
object: Schemas["CollectionShareLinkEventObject"];
|
|
71
|
+
previous_attributes?: undefined;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
/** A collection's share link was rotated. */
|
|
75
|
+
"collection.share_link.rotated": Envelope & {
|
|
76
|
+
type: "collection.share_link.rotated";
|
|
77
|
+
data: {
|
|
78
|
+
object: Schemas["CollectionShareLinkEventObject"];
|
|
79
|
+
previous_attributes?: undefined;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
/** A collection's name, description or privacy changed. */
|
|
83
|
+
"collection.updated": Envelope & {
|
|
84
|
+
type: "collection.updated";
|
|
85
|
+
data: {
|
|
86
|
+
object: Schemas["CollectionEventObject"];
|
|
87
|
+
previous_attributes?: {
|
|
88
|
+
name?: Schemas["CollectionEventObject"]["name"] | undefined;
|
|
89
|
+
description?: Schemas["CollectionEventObject"]["description"] | undefined;
|
|
90
|
+
is_private?: Schemas["CollectionEventObject"]["is_private"] | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
/** A zone was added to a collection. */
|
|
95
|
+
"collection.zone.added": Envelope & {
|
|
96
|
+
type: "collection.zone.added";
|
|
97
|
+
data: {
|
|
98
|
+
object: Schemas["CollectionZoneEventObject"];
|
|
99
|
+
previous_attributes?: undefined;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
/** A zone left a collection. */
|
|
103
|
+
"collection.zone.removed": Envelope & {
|
|
104
|
+
type: "collection.zone.removed";
|
|
105
|
+
data: {
|
|
106
|
+
object: Schemas["CollectionZoneEventObject"];
|
|
107
|
+
previous_attributes?: undefined;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
/** An itinerary was created. */
|
|
111
|
+
"itinerary.created": Envelope & {
|
|
112
|
+
type: "itinerary.created";
|
|
113
|
+
data: {
|
|
114
|
+
object: Schemas["ItineraryEventObject"];
|
|
115
|
+
previous_attributes?: undefined;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
/** An itinerary was deleted. */
|
|
119
|
+
"itinerary.deleted": Envelope & {
|
|
120
|
+
type: "itinerary.deleted";
|
|
121
|
+
data: {
|
|
122
|
+
object: Schemas["ItineraryEventObject"];
|
|
123
|
+
previous_attributes?: undefined;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
/** An itinerary was published. */
|
|
127
|
+
"itinerary.published": Envelope & {
|
|
128
|
+
type: "itinerary.published";
|
|
129
|
+
data: {
|
|
130
|
+
object: Schemas["ItineraryEventObject"];
|
|
131
|
+
previous_attributes?: undefined;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
/** A segment's mode changed. */
|
|
135
|
+
"itinerary.segment.converted": Envelope & {
|
|
136
|
+
type: "itinerary.segment.converted";
|
|
137
|
+
data: {
|
|
138
|
+
object: Schemas["ItinerarySegmentEventObject"];
|
|
139
|
+
previous_attributes?: {
|
|
140
|
+
mode?: Schemas["ItinerarySegmentEventObject"]["mode"] | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
/** A segment was added to an itinerary. */
|
|
145
|
+
"itinerary.segment.created": Envelope & {
|
|
146
|
+
type: "itinerary.segment.created";
|
|
147
|
+
data: {
|
|
148
|
+
object: Schemas["ItinerarySegmentEventObject"];
|
|
149
|
+
previous_attributes?: undefined;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/** A segment was removed from an itinerary. */
|
|
153
|
+
"itinerary.segment.deleted": Envelope & {
|
|
154
|
+
type: "itinerary.segment.deleted";
|
|
155
|
+
data: {
|
|
156
|
+
object: Schemas["ItinerarySegmentEventObject"];
|
|
157
|
+
previous_attributes?: undefined;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
/** A segment absorbed the one after it. */
|
|
161
|
+
"itinerary.segment.merged": Envelope & {
|
|
162
|
+
type: "itinerary.segment.merged";
|
|
163
|
+
data: {
|
|
164
|
+
object: Schemas["ItinerarySegmentEventObject"];
|
|
165
|
+
previous_attributes?: undefined;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
/** A segment was cut in two. */
|
|
169
|
+
"itinerary.segment.split": Envelope & {
|
|
170
|
+
type: "itinerary.segment.split";
|
|
171
|
+
data: {
|
|
172
|
+
object: Schemas["ItinerarySegmentEventObject"];
|
|
173
|
+
previous_attributes?: undefined;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/** A segment changed. */
|
|
177
|
+
"itinerary.segment.updated": Envelope & {
|
|
178
|
+
type: "itinerary.segment.updated";
|
|
179
|
+
data: {
|
|
180
|
+
object: Schemas["ItinerarySegmentEventObject"];
|
|
181
|
+
previous_attributes?: {
|
|
182
|
+
name?: Schemas["ItinerarySegmentEventObject"]["name"] | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
/** A segment group was created. */
|
|
187
|
+
"itinerary.segment_group.created": Envelope & {
|
|
188
|
+
type: "itinerary.segment_group.created";
|
|
189
|
+
data: {
|
|
190
|
+
object: Schemas["ItinerarySegmentGroupEventObject"];
|
|
191
|
+
previous_attributes?: undefined;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
/** A segment group was dissolved. */
|
|
195
|
+
"itinerary.segment_group.deleted": Envelope & {
|
|
196
|
+
type: "itinerary.segment_group.deleted";
|
|
197
|
+
data: {
|
|
198
|
+
object: Schemas["ItinerarySegmentGroupEventObject"];
|
|
199
|
+
previous_attributes?: undefined;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
/** A segment group changed. */
|
|
203
|
+
"itinerary.segment_group.updated": Envelope & {
|
|
204
|
+
type: "itinerary.segment_group.updated";
|
|
205
|
+
data: {
|
|
206
|
+
object: Schemas["ItinerarySegmentGroupEventObject"];
|
|
207
|
+
previous_attributes?: {
|
|
208
|
+
name?: Schemas["ItinerarySegmentGroupEventObject"]["name"] | undefined;
|
|
209
|
+
color?: Schemas["ItinerarySegmentGroupEventObject"]["color"] | undefined;
|
|
210
|
+
} | undefined;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
/** An itinerary's share link was created. */
|
|
214
|
+
"itinerary.share_link.created": Envelope & {
|
|
215
|
+
type: "itinerary.share_link.created";
|
|
216
|
+
data: {
|
|
217
|
+
object: Schemas["ItineraryShareLinkEventObject"];
|
|
218
|
+
previous_attributes?: undefined;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
/** An itinerary's share link was removed. */
|
|
222
|
+
"itinerary.share_link.deleted": Envelope & {
|
|
223
|
+
type: "itinerary.share_link.deleted";
|
|
224
|
+
data: {
|
|
225
|
+
object: Schemas["ItineraryShareLinkEventObject"];
|
|
226
|
+
previous_attributes?: undefined;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
/** An itinerary's share link was rotated. */
|
|
230
|
+
"itinerary.share_link.rotated": Envelope & {
|
|
231
|
+
type: "itinerary.share_link.rotated";
|
|
232
|
+
data: {
|
|
233
|
+
object: Schemas["ItineraryShareLinkEventObject"];
|
|
234
|
+
previous_attributes?: undefined;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
/** An itinerary was taken down. */
|
|
238
|
+
"itinerary.unpublished": Envelope & {
|
|
239
|
+
type: "itinerary.unpublished";
|
|
240
|
+
data: {
|
|
241
|
+
object: Schemas["ItineraryEventObject"];
|
|
242
|
+
previous_attributes?: undefined;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
/** An itinerary's name, description or privacy changed. */
|
|
246
|
+
"itinerary.updated": Envelope & {
|
|
247
|
+
type: "itinerary.updated";
|
|
248
|
+
data: {
|
|
249
|
+
object: Schemas["ItineraryEventObject"];
|
|
250
|
+
previous_attributes?: {
|
|
251
|
+
name?: Schemas["ItineraryEventObject"]["name"] | undefined;
|
|
252
|
+
description?: Schemas["ItineraryEventObject"]["description"] | undefined;
|
|
253
|
+
is_private?: Schemas["ItineraryEventObject"]["is_private"] | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
/** A waypoint was added to an itinerary. */
|
|
258
|
+
"itinerary.waypoint.created": Envelope & {
|
|
259
|
+
type: "itinerary.waypoint.created";
|
|
260
|
+
data: {
|
|
261
|
+
object: Schemas["ItineraryWaypointEventObject"];
|
|
262
|
+
previous_attributes?: undefined;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
/** A waypoint was removed from an itinerary. */
|
|
266
|
+
"itinerary.waypoint.deleted": Envelope & {
|
|
267
|
+
type: "itinerary.waypoint.deleted";
|
|
268
|
+
data: {
|
|
269
|
+
object: Schemas["ItineraryWaypointEventObject"];
|
|
270
|
+
previous_attributes?: undefined;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
/** A waypoint changed. */
|
|
274
|
+
"itinerary.waypoint.updated": Envelope & {
|
|
275
|
+
type: "itinerary.waypoint.updated";
|
|
276
|
+
data: {
|
|
277
|
+
object: Schemas["ItineraryWaypointEventObject"];
|
|
278
|
+
previous_attributes?: {
|
|
279
|
+
name?: Schemas["ItineraryWaypointEventObject"]["name"] | undefined;
|
|
280
|
+
mode?: Schemas["ItineraryWaypointEventObject"]["mode"] | undefined;
|
|
281
|
+
} | undefined;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
/** An AI provider was configured. */
|
|
285
|
+
"organization.ai_provider_config.created": Envelope & {
|
|
286
|
+
type: "organization.ai_provider_config.created";
|
|
287
|
+
data: {
|
|
288
|
+
object: Schemas["AiProviderConfigEventObject"];
|
|
289
|
+
previous_attributes?: undefined;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
/** An AI provider configuration was deleted. */
|
|
293
|
+
"organization.ai_provider_config.deleted": Envelope & {
|
|
294
|
+
type: "organization.ai_provider_config.deleted";
|
|
295
|
+
data: {
|
|
296
|
+
object: Schemas["AiProviderConfigEventObject"];
|
|
297
|
+
previous_attributes?: undefined;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
/** An AI provider configuration changed. */
|
|
301
|
+
"organization.ai_provider_config.updated": Envelope & {
|
|
302
|
+
type: "organization.ai_provider_config.updated";
|
|
303
|
+
data: {
|
|
304
|
+
object: Schemas["AiProviderConfigEventObject"];
|
|
305
|
+
previous_attributes?: {
|
|
306
|
+
model?: Schemas["AiProviderConfigEventObject"]["model"] | undefined;
|
|
307
|
+
credential_hint?: Schemas["AiProviderConfigEventObject"]["credential_hint"] | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
/** An organization's billing information changed. */
|
|
312
|
+
"organization.billing.info.updated": Envelope & {
|
|
313
|
+
type: "organization.billing.info.updated";
|
|
314
|
+
data: {
|
|
315
|
+
object: Schemas["BillingInfoEventObject"];
|
|
316
|
+
previous_attributes?: undefined;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
/** An invoice was paid. */
|
|
320
|
+
"organization.billing.invoice.paid": Envelope & {
|
|
321
|
+
type: "organization.billing.invoice.paid";
|
|
322
|
+
data: {
|
|
323
|
+
object: Schemas["InvoiceEventObject"];
|
|
324
|
+
previous_attributes?: undefined;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
/** An invoice's payment needs the payer's action. */
|
|
328
|
+
"organization.billing.invoice.payment_action_required": Envelope & {
|
|
329
|
+
type: "organization.billing.invoice.payment_action_required";
|
|
330
|
+
data: {
|
|
331
|
+
object: Schemas["InvoiceEventObject"];
|
|
332
|
+
previous_attributes?: undefined;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
/** An invoice's payment failed. */
|
|
336
|
+
"organization.billing.invoice.payment_failed": Envelope & {
|
|
337
|
+
type: "organization.billing.invoice.payment_failed";
|
|
338
|
+
data: {
|
|
339
|
+
object: Schemas["InvoiceEventObject"];
|
|
340
|
+
previous_attributes?: undefined;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
/** A payment method was saved. */
|
|
344
|
+
"organization.billing.payment_method.attached": Envelope & {
|
|
345
|
+
type: "organization.billing.payment_method.attached";
|
|
346
|
+
data: {
|
|
347
|
+
object: Schemas["PaymentMethodEventObject"];
|
|
348
|
+
previous_attributes?: undefined;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
/** A payment method was removed. */
|
|
352
|
+
"organization.billing.payment_method.detached": Envelope & {
|
|
353
|
+
type: "organization.billing.payment_method.detached";
|
|
354
|
+
data: {
|
|
355
|
+
object: Schemas["PaymentMethodEventObject"];
|
|
356
|
+
previous_attributes?: undefined;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
/** A payment method became, or stopped being, the default. */
|
|
360
|
+
"organization.billing.payment_method.updated": Envelope & {
|
|
361
|
+
type: "organization.billing.payment_method.updated";
|
|
362
|
+
data: {
|
|
363
|
+
object: Schemas["PaymentMethodEventObject"];
|
|
364
|
+
previous_attributes?: {
|
|
365
|
+
is_default?: Schemas["PaymentMethodEventObject"]["is_default"] | undefined;
|
|
366
|
+
} | undefined;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
/** A Data API subscription ended. */
|
|
370
|
+
"organization.billing.subscription.canceled": Envelope & {
|
|
371
|
+
type: "organization.billing.subscription.canceled";
|
|
372
|
+
data: {
|
|
373
|
+
object: Schemas["OrganizationSubscriptionEventObject"];
|
|
374
|
+
previous_attributes?: undefined;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
/** A Data API subscription was opened. */
|
|
378
|
+
"organization.billing.subscription.created": Envelope & {
|
|
379
|
+
type: "organization.billing.subscription.created";
|
|
380
|
+
data: {
|
|
381
|
+
object: Schemas["OrganizationSubscriptionEventObject"];
|
|
382
|
+
previous_attributes?: undefined;
|
|
815
383
|
};
|
|
384
|
+
};
|
|
385
|
+
/** A Data API subscription was paused. */
|
|
386
|
+
"organization.billing.subscription.paused": Envelope & {
|
|
387
|
+
type: "organization.billing.subscription.paused";
|
|
388
|
+
data: {
|
|
389
|
+
object: Schemas["OrganizationSubscriptionEventObject"];
|
|
390
|
+
previous_attributes?: undefined;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
/** A Data API subscription was resumed. */
|
|
394
|
+
"organization.billing.subscription.resumed": Envelope & {
|
|
395
|
+
type: "organization.billing.subscription.resumed";
|
|
396
|
+
data: {
|
|
397
|
+
object: Schemas["OrganizationSubscriptionEventObject"];
|
|
398
|
+
previous_attributes?: undefined;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
/** A Data API subscription changed. */
|
|
402
|
+
"organization.billing.subscription.updated": Envelope & {
|
|
403
|
+
type: "organization.billing.subscription.updated";
|
|
404
|
+
data: {
|
|
405
|
+
object: Schemas["OrganizationSubscriptionEventObject"];
|
|
406
|
+
previous_attributes?: {
|
|
407
|
+
status?: Schemas["OrganizationSubscriptionEventObject"]["status"] | undefined;
|
|
408
|
+
cancel_at_period_end?: Schemas["OrganizationSubscriptionEventObject"]["cancel_at_period_end"] | undefined;
|
|
409
|
+
current_period_end_at?: Schemas["OrganizationSubscriptionEventObject"]["current_period_end_at"] | undefined;
|
|
410
|
+
} | undefined;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
/** An organization was created. */
|
|
414
|
+
"organization.created": Envelope & {
|
|
415
|
+
type: "organization.created";
|
|
416
|
+
data: {
|
|
417
|
+
object: Schemas["OrganizationEventObject"];
|
|
418
|
+
previous_attributes?: undefined;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
/** What an organization holds changed. */
|
|
422
|
+
"organization.entitlements.updated": Envelope & {
|
|
423
|
+
type: "organization.entitlements.updated";
|
|
424
|
+
data: {
|
|
425
|
+
object: Schemas["OrganizationEntitlementsEventObject"];
|
|
426
|
+
previous_attributes?: {
|
|
427
|
+
capabilities?: Schemas["OrganizationEntitlementsEventObject"]["capabilities"] | undefined;
|
|
428
|
+
studio_entitlements?: Schemas["OrganizationEntitlementsEventObject"]["studio_entitlements"] | undefined;
|
|
429
|
+
} | undefined;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
/** An invitation was accepted. */
|
|
433
|
+
"organization.invitation.accepted": Envelope & {
|
|
434
|
+
type: "organization.invitation.accepted";
|
|
435
|
+
data: {
|
|
436
|
+
object: Schemas["OrganizationInvitationEventObject"];
|
|
437
|
+
previous_attributes?: undefined;
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
/** Somebody was invited to an organization. */
|
|
441
|
+
"organization.invitation.created": Envelope & {
|
|
442
|
+
type: "organization.invitation.created";
|
|
443
|
+
data: {
|
|
444
|
+
object: Schemas["OrganizationInvitationEventObject"];
|
|
445
|
+
previous_attributes?: undefined;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
/** An invitation was declined. */
|
|
449
|
+
"organization.invitation.declined": Envelope & {
|
|
450
|
+
type: "organization.invitation.declined";
|
|
451
|
+
data: {
|
|
452
|
+
object: Schemas["OrganizationInvitationEventObject"];
|
|
453
|
+
previous_attributes?: undefined;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
/** An invitation was superseded. */
|
|
457
|
+
"organization.invitation.deleted": Envelope & {
|
|
458
|
+
type: "organization.invitation.deleted";
|
|
459
|
+
data: {
|
|
460
|
+
object: Schemas["OrganizationInvitationEventObject"];
|
|
461
|
+
previous_attributes?: undefined;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
/** An invitation lapsed unanswered. */
|
|
465
|
+
"organization.invitation.expired": Envelope & {
|
|
466
|
+
type: "organization.invitation.expired";
|
|
467
|
+
data: {
|
|
468
|
+
object: Schemas["OrganizationInvitationEventObject"];
|
|
469
|
+
previous_attributes?: undefined;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
/** An invitation was withdrawn. */
|
|
473
|
+
"organization.invitation.revoked": Envelope & {
|
|
474
|
+
type: "organization.invitation.revoked";
|
|
475
|
+
data: {
|
|
476
|
+
object: Schemas["OrganizationInvitationEventObject"];
|
|
477
|
+
previous_attributes?: undefined;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
/** Somebody joined an organization. */
|
|
481
|
+
"organization.member.created": Envelope & {
|
|
482
|
+
type: "organization.member.created";
|
|
483
|
+
data: {
|
|
484
|
+
object: Schemas["OrganizationMemberEventObject"];
|
|
485
|
+
previous_attributes?: undefined;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
/** A member left an organization or was removed from it. */
|
|
489
|
+
"organization.member.deleted": Envelope & {
|
|
490
|
+
type: "organization.member.deleted";
|
|
491
|
+
data: {
|
|
492
|
+
object: Schemas["OrganizationMemberEventObject"];
|
|
493
|
+
previous_attributes?: undefined;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
/** A member's role changed. */
|
|
497
|
+
"organization.member.updated": Envelope & {
|
|
498
|
+
type: "organization.member.updated";
|
|
499
|
+
data: {
|
|
500
|
+
object: Schemas["OrganizationMemberEventObject"];
|
|
501
|
+
previous_attributes?: {
|
|
502
|
+
role?: Schemas["OrganizationMemberEventObject"]["role"] | undefined;
|
|
503
|
+
} | undefined;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
/** A publishable key was created. */
|
|
507
|
+
"organization.publishable_key.created": Envelope & {
|
|
508
|
+
type: "organization.publishable_key.created";
|
|
509
|
+
data: {
|
|
510
|
+
object: Schemas["PublishableKeyEventObject"];
|
|
511
|
+
previous_attributes?: undefined;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
/** A publishable key was revoked. */
|
|
515
|
+
"organization.publishable_key.revoked": Envelope & {
|
|
516
|
+
type: "organization.publishable_key.revoked";
|
|
517
|
+
data: {
|
|
518
|
+
object: Schemas["PublishableKeyEventObject"];
|
|
519
|
+
previous_attributes?: undefined;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
/** A publishable key's name or scopes changed. */
|
|
523
|
+
"organization.publishable_key.updated": Envelope & {
|
|
524
|
+
type: "organization.publishable_key.updated";
|
|
525
|
+
data: {
|
|
526
|
+
object: Schemas["PublishableKeyEventObject"];
|
|
527
|
+
previous_attributes?: {
|
|
528
|
+
name?: Schemas["PublishableKeyEventObject"]["name"] | undefined;
|
|
529
|
+
scopes?: Schemas["PublishableKeyEventObject"]["scopes"] | undefined;
|
|
530
|
+
} | undefined;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
/** A secret key was created. */
|
|
534
|
+
"organization.secret_key.created": Envelope & {
|
|
535
|
+
type: "organization.secret_key.created";
|
|
536
|
+
data: {
|
|
537
|
+
object: Schemas["SecretKeyEventObject"];
|
|
538
|
+
previous_attributes?: undefined;
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
/** A secret key was revoked. */
|
|
542
|
+
"organization.secret_key.revoked": Envelope & {
|
|
543
|
+
type: "organization.secret_key.revoked";
|
|
544
|
+
data: {
|
|
545
|
+
object: Schemas["SecretKeyEventObject"];
|
|
546
|
+
previous_attributes?: undefined;
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
/** A secret key was renamed. */
|
|
550
|
+
"organization.secret_key.updated": Envelope & {
|
|
551
|
+
type: "organization.secret_key.updated";
|
|
552
|
+
data: {
|
|
553
|
+
object: Schemas["SecretKeyEventObject"];
|
|
554
|
+
previous_attributes?: {
|
|
555
|
+
name?: Schemas["SecretKeyEventObject"]["name"] | undefined;
|
|
556
|
+
} | undefined;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
/** An organization's Map Publishing settings changed. */
|
|
560
|
+
"organization.settings.updated": Envelope & {
|
|
561
|
+
type: "organization.settings.updated";
|
|
562
|
+
data: {
|
|
563
|
+
object: Schemas["OrganizationSettingsEventObject"];
|
|
564
|
+
previous_attributes?: undefined;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
/** An organization's name changed. */
|
|
568
|
+
"organization.updated": Envelope & {
|
|
569
|
+
type: "organization.updated";
|
|
570
|
+
data: {
|
|
571
|
+
object: Schemas["OrganizationEventObject"];
|
|
572
|
+
previous_attributes?: {
|
|
573
|
+
name?: Schemas["OrganizationEventObject"]["name"] | undefined;
|
|
574
|
+
} | undefined;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
/** A webhook endpoint was created. */
|
|
578
|
+
"organization.webhook_endpoint.created": Envelope & {
|
|
579
|
+
type: "organization.webhook_endpoint.created";
|
|
580
|
+
data: {
|
|
581
|
+
object: Schemas["WebhookEndpointEventObject"];
|
|
582
|
+
previous_attributes?: undefined;
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
/** A webhook endpoint was deleted. */
|
|
586
|
+
"organization.webhook_endpoint.deleted": Envelope & {
|
|
587
|
+
type: "organization.webhook_endpoint.deleted";
|
|
588
|
+
data: {
|
|
589
|
+
object: Schemas["WebhookEndpointEventObject"];
|
|
590
|
+
previous_attributes?: undefined;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
/** A webhook endpoint was disabled. */
|
|
594
|
+
"organization.webhook_endpoint.disabled": Envelope & {
|
|
595
|
+
type: "organization.webhook_endpoint.disabled";
|
|
596
|
+
data: {
|
|
597
|
+
object: Schemas["WebhookEndpointEventObject"];
|
|
598
|
+
previous_attributes?: undefined;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
/** A webhook endpoint was enabled. */
|
|
602
|
+
"organization.webhook_endpoint.enabled": Envelope & {
|
|
603
|
+
type: "organization.webhook_endpoint.enabled";
|
|
604
|
+
data: {
|
|
605
|
+
object: Schemas["WebhookEndpointEventObject"];
|
|
606
|
+
previous_attributes?: undefined;
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
/** A webhook endpoint has failed for 24 hours. */
|
|
610
|
+
"organization.webhook_endpoint.failing": Envelope & {
|
|
611
|
+
type: "organization.webhook_endpoint.failing";
|
|
612
|
+
data: {
|
|
613
|
+
object: Schemas["WebhookEndpointEventObject"];
|
|
614
|
+
previous_attributes?: undefined;
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
/** A webhook endpoint reported failing succeeded again. */
|
|
618
|
+
"organization.webhook_endpoint.recovered": Envelope & {
|
|
619
|
+
type: "organization.webhook_endpoint.recovered";
|
|
620
|
+
data: {
|
|
621
|
+
object: Schemas["WebhookEndpointEventObject"];
|
|
622
|
+
previous_attributes?: undefined;
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
/** A webhook endpoint's secret was rotated. */
|
|
626
|
+
"organization.webhook_endpoint.secret_rotated": Envelope & {
|
|
627
|
+
type: "organization.webhook_endpoint.secret_rotated";
|
|
628
|
+
data: {
|
|
629
|
+
object: Schemas["WebhookEndpointEventObject"];
|
|
630
|
+
previous_attributes?: undefined;
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
/** A webhook endpoint changed. */
|
|
634
|
+
"organization.webhook_endpoint.updated": Envelope & {
|
|
635
|
+
type: "organization.webhook_endpoint.updated";
|
|
636
|
+
data: {
|
|
637
|
+
object: Schemas["WebhookEndpointEventObject"];
|
|
638
|
+
previous_attributes?: {
|
|
639
|
+
host?: Schemas["WebhookEndpointEventObject"]["host"] | undefined;
|
|
640
|
+
} | undefined;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
/** A zone was created. */
|
|
644
|
+
"zone.created": Envelope & {
|
|
645
|
+
type: "zone.created";
|
|
646
|
+
data: {
|
|
647
|
+
object: Schemas["ZoneEventObject"];
|
|
648
|
+
previous_attributes?: undefined;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
/** A zone was deleted. */
|
|
652
|
+
"zone.deleted": Envelope & {
|
|
653
|
+
type: "zone.deleted";
|
|
654
|
+
data: {
|
|
655
|
+
object: Schemas["ZoneEventObject"];
|
|
656
|
+
previous_attributes?: undefined;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
/** A zone was published. */
|
|
660
|
+
"zone.published": Envelope & {
|
|
661
|
+
type: "zone.published";
|
|
662
|
+
data: {
|
|
663
|
+
object: Schemas["ZoneEventObject"];
|
|
664
|
+
previous_attributes?: undefined;
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
/** A zone was taken down. */
|
|
668
|
+
"zone.unpublished": Envelope & {
|
|
669
|
+
type: "zone.unpublished";
|
|
670
|
+
data: {
|
|
671
|
+
object: Schemas["ZoneEventObject"];
|
|
672
|
+
previous_attributes?: undefined;
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
/** A zone changed. */
|
|
676
|
+
"zone.updated": Envelope & {
|
|
677
|
+
type: "zone.updated";
|
|
678
|
+
data: {
|
|
679
|
+
object: Schemas["ZoneEventObject"];
|
|
680
|
+
previous_attributes?: {
|
|
681
|
+
name?: Schemas["ZoneEventObject"]["name"] | undefined;
|
|
682
|
+
description?: Schemas["ZoneEventObject"]["description"] | undefined;
|
|
683
|
+
level?: Schemas["ZoneEventObject"]["level"] | undefined;
|
|
684
|
+
mode?: Schemas["ZoneEventObject"]["mode"] | undefined;
|
|
685
|
+
is_private?: Schemas["ZoneEventObject"]["is_private"] | undefined;
|
|
686
|
+
start_at?: Schemas["ZoneEventObject"]["start_at"] | undefined;
|
|
687
|
+
end_at?: Schemas["ZoneEventObject"]["end_at"] | undefined;
|
|
688
|
+
} | undefined;
|
|
689
|
+
};
|
|
690
|
+
};
|
|
816
691
|
}
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* The webhook event a delivery carries, typed by its `type`.
|
|
820
|
-
*
|
|
821
|
-
* The contract describes the envelope once, as `WebhookEvent`, whose `type` is any public type and
|
|
822
|
-
* whose `data.object` is any kind of object. Which object a type carries, and which fields its
|
|
823
|
-
* previous attributes can hold, is stated per type in the contract's `webhooks`, and
|
|
824
|
-
* `webhookEvents.gen.ts` restates it as one member per type. The union below is those members, so
|
|
825
|
-
* comparing `type` with one type narrows `data` to what that type carries.
|
|
826
|
-
*/
|
|
827
|
-
|
|
828
692
|
/**
|
|
829
693
|
* WebhookEvent is a webhook event as Mountaya delivers it to an endpoint, typed by its `type`:
|
|
830
694
|
* comparing `type` with one of the public types narrows `data.object` to the object that type
|
|
@@ -849,33 +713,6 @@ interface WebhookEventsByType {
|
|
|
849
713
|
* ```
|
|
850
714
|
*/
|
|
851
715
|
type WebhookEvent<Type extends WebhookEventType = WebhookEventType> = WebhookEventsByType[Type];
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* Verifying a webhook delivery, and reading the event it carries.
|
|
855
|
-
*
|
|
856
|
-
* Mountaya signs every delivery with the endpoint's secret and sends the signature in the
|
|
857
|
-
* `Mountaya-Signature` header, `t=<unix seconds>,v1=<signature>`, with one `v1` for each secret in
|
|
858
|
-
* force: two while a rotated secret overlaps its successor. Each `v1` is the lowercase hexadecimal
|
|
859
|
-
* HMAC-SHA256 of `<t>.<body>`, keyed by the secret's UTF-8 bytes, `whsk_` included, where
|
|
860
|
-
* `<body>` is the request body exactly as it arrived. The rule is the contract's, and its cases are
|
|
861
|
-
* the signature vectors `mountaya/schemas` publishes beside its bundle, in
|
|
862
|
-
* openapi/api/webhooks/signature-vectors.json.
|
|
863
|
-
*
|
|
864
|
-
* The order is part of the rule: the header is read first, then the signature, then the time. `t`
|
|
865
|
-
* is inside what is signed, so it is compared with the clock only once a signature vouches for it,
|
|
866
|
-
* and a forged delivery is refused for its signature whatever time it claims.
|
|
867
|
-
*
|
|
868
|
-
* The clock is the receiver's: the machine's wall clock, read once the signature verifies, unless
|
|
869
|
-
* the caller states the instant as `now`. A rule whose answer moves with the wall clock is one no
|
|
870
|
-
* test can pin, so a receiver's tests and the conformance suite state the instant, and a receiver
|
|
871
|
-
* that keeps a clock of its own hands it.
|
|
872
|
-
*
|
|
873
|
-
* The MAC is computed with Web Crypto, which Node, the browsers, workers and edge runtimes provide,
|
|
874
|
-
* and which answers a promise. The comparison is this module's own and reads every character of
|
|
875
|
-
* every `v1` whatever the first difference, so the time it takes says nothing about how much of a
|
|
876
|
-
* forged signature was right.
|
|
877
|
-
*/
|
|
878
|
-
|
|
879
716
|
/**
|
|
880
717
|
* WebhookSignatureFailure is why {@link constructWebhookEvent} refused a delivery, as
|
|
881
718
|
* {@link MountayaWebhookSignatureError} carries it:
|
|
@@ -899,34 +736,34 @@ type WebhookSignatureFailure = "malformed-header" | "missing-header" | "signatur
|
|
|
899
736
|
* failed, so a refusal a wrong secret or a wrong clock caused costs an attempt and not the event:
|
|
900
737
|
* once the secret or the clock is right, the next attempt verifies.
|
|
901
738
|
*/
|
|
902
|
-
declare class MountayaWebhookSignatureError extends MountayaError {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
739
|
+
export declare class MountayaWebhookSignatureError extends MountayaError {
|
|
740
|
+
readonly name = "MountayaWebhookSignatureError";
|
|
741
|
+
/** Why the delivery was refused: see {@link WebhookSignatureFailure}. */
|
|
742
|
+
readonly reason: WebhookSignatureFailure;
|
|
743
|
+
/**
|
|
744
|
+
* @param message - what was refused, and what to do about it.
|
|
745
|
+
* @param reason - why the delivery was refused.
|
|
746
|
+
*/
|
|
747
|
+
constructor(message: string, reason: WebhookSignatureFailure);
|
|
911
748
|
}
|
|
912
749
|
/** ConstructWebhookEventOptions is how {@link constructWebhookEvent} judges a delivery's time. */
|
|
913
750
|
interface ConstructWebhookEventOptions {
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
751
|
+
/**
|
|
752
|
+
* The instant the receiver's clock reads, which a delivery's timestamp is judged against. Pass it
|
|
753
|
+
* where the receiver keeps a clock of its own, or where a test pins the time; left out, it is the
|
|
754
|
+
* machine's wall clock, read once the signature verifies.
|
|
755
|
+
*
|
|
756
|
+
* @default the machine's wall clock, as `Date.now()` reads it
|
|
757
|
+
*/
|
|
758
|
+
readonly now?: Date | undefined;
|
|
759
|
+
/**
|
|
760
|
+
* How far a delivery's timestamp may stand from the receiver's clock, in seconds, either way. A
|
|
761
|
+
* delivery signed longer ago is refused as a replay. Raise it for a receiver whose clock drifts,
|
|
762
|
+
* never to accept a delivery a queue held back: verify a delivery as it arrives, then queue it.
|
|
763
|
+
*
|
|
764
|
+
* @default 300
|
|
765
|
+
*/
|
|
766
|
+
readonly toleranceSeconds?: number | undefined;
|
|
930
767
|
}
|
|
931
768
|
/**
|
|
932
769
|
* constructWebhookEvent verifies a webhook delivery's signature and answers the event its body
|
|
@@ -993,23 +830,7 @@ interface ConstructWebhookEventOptions {
|
|
|
993
830
|
* };
|
|
994
831
|
* ```
|
|
995
832
|
*/
|
|
996
|
-
declare const constructWebhookEvent: (rawBody: string | Uint8Array, signatureHeader: string | null | undefined, secret: string, options?: ConstructWebhookEventOptions | undefined) => Promise<WebhookEvent>;
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* The admin unit's operations, bound to the transport of a client the core built.
|
|
1000
|
-
*
|
|
1001
|
-
* The contract ships the client as two units, the core and the admin unit, and an application that
|
|
1002
|
-
* draws a map, edits an itinerary or reads the Data API links the core alone. A language with
|
|
1003
|
-
* extension members declares the admin namespace on the core's client from inside the unit;
|
|
1004
|
-
* TypeScript has none, so the unit publishes {@link MountayaAdmin}, built over a client, and the
|
|
1005
|
-
* core's `Mountaya` holds no admin member of its own. What it reaches of the core is its
|
|
1006
|
-
* transport, the one object both entries' clients publish, so it serves a client of either.
|
|
1007
|
-
*
|
|
1008
|
-
* The table it holds is the `admin` half of the generated `bind`, built once per transport and
|
|
1009
|
-
* held while the transport lives: a server that writes `new MountayaAdmin(mountaya)` in every
|
|
1010
|
-
* handler builds the table once, and every instance over one transport holds the same namespaces.
|
|
1011
|
-
*/
|
|
1012
|
-
|
|
833
|
+
export declare const constructWebhookEvent: (rawBody: string | Uint8Array, signatureHeader: string | null | undefined, secret: string, options?: ConstructWebhookEventOptions | undefined) => Promise<WebhookEvent>;
|
|
1013
834
|
/** The admin half of the generated table: the organization's operations, by resource. */
|
|
1014
835
|
type AdminOperations = ReturnType<typeof bind>["admin"];
|
|
1015
836
|
/**
|
|
@@ -1038,33 +859,31 @@ type AdminOperations = ReturnType<typeof bind>["admin"];
|
|
|
1038
859
|
* });
|
|
1039
860
|
* ```
|
|
1040
861
|
*/
|
|
1041
|
-
declare class MountayaAdmin {
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
862
|
+
export declare class MountayaAdmin {
|
|
863
|
+
/** The organization's billing: its subscription, its payment methods, its details and invoices. */
|
|
864
|
+
readonly billing: AdminOperations["billing"];
|
|
865
|
+
/** The organization's invitations. */
|
|
866
|
+
readonly invitations: AdminOperations["invitations"];
|
|
867
|
+
/** The organization's publishable keys. */
|
|
868
|
+
readonly keys: AdminOperations["keys"];
|
|
869
|
+
/** The organization's members. */
|
|
870
|
+
readonly members: AdminOperations["members"];
|
|
871
|
+
/** The organizations themselves: their details, settings, usage and AI provider configuration. */
|
|
872
|
+
readonly organizations: AdminOperations["organizations"];
|
|
873
|
+
/** Minting a session token for a publishable key. */
|
|
874
|
+
readonly sessions: AdminOperations["sessions"];
|
|
875
|
+
/** The acting user's own memberships, invitations and preferences. */
|
|
876
|
+
readonly users: AdminOperations["users"];
|
|
877
|
+
/** The organization's webhook endpoints, the events it was sent and their deliveries. */
|
|
878
|
+
readonly webhooks: AdminOperations["webhooks"];
|
|
879
|
+
/**
|
|
880
|
+
* Binds the admin unit's operations to the transport of `mountaya`.
|
|
881
|
+
*
|
|
882
|
+
* @param mountaya The client whose transport the operations call through: a `Mountaya` of
|
|
883
|
+
* `@mountaya/client` or of `@mountaya/client/browser`.
|
|
884
|
+
*/
|
|
885
|
+
constructor(mountaya: {
|
|
886
|
+
readonly transport: MountayaTransport;
|
|
887
|
+
});
|
|
1067
888
|
}
|
|
1068
|
-
|
|
1069
|
-
export { MountayaAdmin, MountayaWebhookSignatureError, WebhookEventType, constructWebhookEvent, adminOperations_gen as rest };
|
|
1070
|
-
export type { ConstructWebhookEventOptions, WebhookEvent, WebhookSignatureFailure };
|
|
889
|
+
export { type Address, type AiCredentialField, type AiProvider, type AiProviderCatalog, type AiProviderConfig, type AiProviderConfigCreateParams, type AiProviderConfigEventObject, type AiProviderConfigUpdateParams, type AssignableOrganizationRole, type BillingInfo, type BillingInfoEventObject, type BillingInfoField, type BillingInfoTaxIdParams, type BillingInfoUpdateParams, type BillingInterval, type BillingPricing, type BillingProduct, type BillingUnitKind, type Capability, type CollectionEventObject, type CollectionItineraryEventObject, type CollectionShareLinkEventObject, type CollectionZoneEventObject, type ConstructWebhookEventOptions, type Invoice, type InvoiceEventObject, type InvoiceStatus, type ItineraryEventObject, type ItineraryOrigin, type ItinerarySegmentEventObject, type ItinerarySegmentGroupEventObject, type ItineraryShareLinkEventObject, type ItineraryWaypointEventObject, type Membership, type MeterDimension, type NotificationPreference, type NotificationPreferenceUpdate, type NotificationPreferences, type NotificationPreferencesUpdateParams, type NotificationType, type OrganizationBillingPaymentMethodParams, type OrganizationBillingProvisionParams, type OrganizationCreateParams, type OrganizationEntitlementsEventObject, type OrganizationEventObject, type OrganizationInvitation, type OrganizationInvitationCreateParams, type OrganizationInvitationEventObject, type OrganizationMember, type OrganizationMemberDeletionReason, type OrganizationMemberEventObject, type OrganizationMemberUpdateParams, type OrganizationSettingsEventObject, type OrganizationSettingsPatchParams, type OrganizationSubscription, type OrganizationSubscriptionEventObject, type OrganizationSubscriptionItem, type OrganizationSubscriptionSummary, type OrganizationUpdateParams, type PaymentMethod, type PaymentMethodCard, type PaymentMethodEventObject, type PaymentMethodSepaDebit, type Preferences, type PreferencesUpdateParams, type PromotionCodePreview, type PublishableKey, type PublishableKeyCreateParams, type PublishableKeyEventObject, type PublishableKeyScope, type PublishableKeyUpdateParams, type ResponseMetadataPostOrganizationInvitation, type SecretKeyEventObject, type SessionCreateParams, type SetupIntentSession, type SubscriptionCollectionMethod, type SubscriptionDiscount, type SubscriptionEndReason, type SubscriptionStatus, type TaxId, type UsageClientName, type UsageDataPoint, type UsageDataResourceType, type UsageDataSurface, type UsageMetric, type UsageStatusClass, type UsageTilePoint, type UsageTileResourceType, type UsageTileSurface, type UserInvitation, type WebhookAttemptOutcome, type WebhookDelivery, type WebhookDeliveryAttempt, type WebhookDeliveryCreateParams, type WebhookDeliveryOutcome, type WebhookDeliveryRecipient, type WebhookDeliveryTestParams, type WebhookDeliveryTrigger, type WebhookDeliveryTriggerKind, type WebhookDeliveryWithAttempts, type WebhookDestinationKind, type WebhookEndpoint, type WebhookEndpointCreateParams, type WebhookEndpointDisabledReason, type WebhookEndpointEventObject, type WebhookEndpointStatus, type WebhookEndpointUpdateParams, type WebhookEndpointWithSecret, type WebhookEvent, type WebhookEventActor, type WebhookEventActorType, type WebhookEventCatalogEntry, type WebhookEventData, type WebhookEventObject, type WebhookEventRelatedObject, type WebhookEventRequest, type WebhookEventType, type WebhookEventWithDeliveries, type WebhookFailureClass, type WebhookFailureKind, type WebhookHealth, type WebhookHealthDestination, type WebhookHealthFailure, type WebhookHealthFigures, type WebhookHealthGranularity, type WebhookHealthPoint, type WebhookHealthWindow, type WebhookSignatureFailure, type ZoneEventObject, adminOperations_gen_d_exports as rest };
|