@mountaya/client 0.0.0-stage → 0.1.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 (96) hide show
  1. package/CHANGELOG.md +104 -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 +3521 -0
  6. package/dist/admin/index.cjs.map +1 -0
  7. package/dist/admin/index.d.cts +1070 -0
  8. package/dist/admin/index.d.ts +1070 -0
  9. package/dist/admin/index.js +301 -0
  10. package/dist/admin/index.js.map +1 -0
  11. package/dist/browser.cjs +8073 -0
  12. package/dist/browser.cjs.map +1 -0
  13. package/dist/browser.d.cts +106 -0
  14. package/dist/browser.d.ts +106 -0
  15. package/dist/browser.js +53 -0
  16. package/dist/browser.js.map +1 -0
  17. package/dist/chunk-BM526BHG.js +342 -0
  18. package/dist/chunk-BM526BHG.js.map +1 -0
  19. package/dist/chunk-D2YEVTG7.js +327 -0
  20. package/dist/chunk-D2YEVTG7.js.map +1 -0
  21. package/dist/chunk-OHKVUREN.js +3500 -0
  22. package/dist/chunk-OHKVUREN.js.map +1 -0
  23. package/dist/chunk-TDTK2L5H.js +3842 -0
  24. package/dist/chunk-TDTK2L5H.js.map +1 -0
  25. package/dist/coreOperations.gen-BMYPoBbz.d.ts +1760 -0
  26. package/dist/coreOperations.gen-BxX5xRxw.d.cts +1760 -0
  27. package/dist/errors-B-GqAtQv.d.cts +75960 -0
  28. package/dist/errors-B-GqAtQv.d.ts +75960 -0
  29. package/dist/events/index.cjs +1972 -0
  30. package/dist/events/index.cjs.map +1 -0
  31. package/dist/events/index.d.cts +781 -0
  32. package/dist/events/index.d.ts +781 -0
  33. package/dist/events/index.js +826 -0
  34. package/dist/events/index.js.map +1 -0
  35. package/dist/index.cjs +8072 -0
  36. package/dist/index.cjs.map +1 -0
  37. package/dist/index.d.cts +76 -0
  38. package/dist/index.d.ts +76 -0
  39. package/dist/index.js +52 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/operations.gen-CvTyzKNF.d.cts +3993 -0
  42. package/dist/operations.gen-DUD406TV.d.ts +3993 -0
  43. package/package.json +127 -4
  44. package/src/admin/index.ts +47 -0
  45. package/src/admin/rules/mountayaAdmin.ts +102 -0
  46. package/src/browser.ts +232 -0
  47. package/src/core/engines/sessionToken.ts +870 -0
  48. package/src/core/rules/auth.ts +1017 -0
  49. package/src/core/rules/clientHeader.ts +28 -0
  50. package/src/core/rules/dates.ts +200 -0
  51. package/src/core/rules/decode.ts +154 -0
  52. package/src/core/rules/envelope.ts +41 -0
  53. package/src/core/rules/errors.ts +1486 -0
  54. package/src/core/rules/graphql.ts +576 -0
  55. package/src/core/rules/headerValue.ts +42 -0
  56. package/src/core/rules/idempotencyKey.ts +64 -0
  57. package/src/core/rules/nullMask.ts +127 -0
  58. package/src/core/rules/nullMasks.gen.ts +416 -0
  59. package/src/core/rules/paginate.ts +316 -0
  60. package/src/core/rules/rateLimit.ts +507 -0
  61. package/src/core/rules/redaction.ts +219 -0
  62. package/src/core/rules/resourceRef.ts +110 -0
  63. package/src/core/rules/responseBody.ts +492 -0
  64. package/src/core/rules/retry.ts +386 -0
  65. package/src/core/rules/selection.ts +416 -0
  66. package/src/core/rules/sessionAnswer.ts +90 -0
  67. package/src/core/rules/sessionSchedule.ts +131 -0
  68. package/src/core/rules/sessionWait.ts +112 -0
  69. package/src/core/rules/transport.ts +2386 -0
  70. package/src/core/rules/version.gen.ts +16 -0
  71. package/src/core/rules/webAddress.ts +165 -0
  72. package/src/core/rules/webAddresses.gen.ts +30 -0
  73. package/src/data/operations.gen.ts +603 -0
  74. package/src/data/schema.gen.ts +8078 -0
  75. package/src/data/selection.gen.ts +472 -0
  76. package/src/events/index.ts +67 -0
  77. package/src/events/rules/agent.ts +439 -0
  78. package/src/events/rules/collab.ts +554 -0
  79. package/src/events/rules/collabNulls.gen.ts +17 -0
  80. package/src/events/rules/eventStream.ts +94 -0
  81. package/src/events/rules/openSseStream.ts +594 -0
  82. package/src/events/rules/sse.ts +349 -0
  83. package/src/index.ts +231 -0
  84. package/src/rest/adminOperations.gen.ts +70 -0
  85. package/src/rest/adminResources.gen.ts +136 -0
  86. package/src/rest/coreOperations.gen.ts +74 -0
  87. package/src/rest/coreResources.gen.ts +244 -0
  88. package/src/rest/dates.gen.ts +217 -0
  89. package/src/rest/operations.gen.ts +4341 -0
  90. package/src/rest/resources.gen.ts +369 -0
  91. package/src/rest/schema.gen.ts +56840 -0
  92. package/src/tiles/operations.gen.ts +206 -0
  93. package/src/tiles/schema.gen.ts +8408 -0
  94. package/src/webhooks/rules/constructWebhookEvent.ts +482 -0
  95. package/src/webhooks/rules/webhookEvent.ts +38 -0
  96. package/src/webhooks/rules/webhookEvents.gen.ts +732 -0
@@ -0,0 +1,136 @@
1
+ // GENERATED FILE. DO NOT EDIT.
2
+ //
3
+ // Every named schema of the admin unit, re-exported from schema.gen.ts so that an entry point
4
+ // publishes the unit without a hand-maintained list. Printed from the mountaya/schemas
5
+ // contract (sdk/model.json, the `unit` of each of `rest.schemas`) by
6
+ // scripts/generate-units.mjs.
7
+ //
8
+ // Edit the contract in mountaya/schemas, not this file.
9
+
10
+ export type {
11
+ Address,
12
+ AiCredentialField,
13
+ AiProvider,
14
+ AiProviderCatalog,
15
+ AiProviderConfig,
16
+ AiProviderConfigCreateParams,
17
+ AiProviderConfigEventObject,
18
+ AiProviderConfigUpdateParams,
19
+ AssignableOrganizationRole,
20
+ BillingInfo,
21
+ BillingInfoEventObject,
22
+ BillingInfoField,
23
+ BillingInfoTaxIdParams,
24
+ BillingInfoUpdateParams,
25
+ BillingInterval,
26
+ BillingPricing,
27
+ BillingProduct,
28
+ BillingUnitKind,
29
+ Capability,
30
+ CollectionEventObject,
31
+ CollectionItineraryEventObject,
32
+ CollectionShareLinkEventObject,
33
+ CollectionZoneEventObject,
34
+ Invoice,
35
+ InvoiceEventObject,
36
+ InvoiceStatus,
37
+ ItineraryEventObject,
38
+ ItineraryOrigin,
39
+ ItinerarySegmentEventObject,
40
+ ItinerarySegmentGroupEventObject,
41
+ ItineraryShareLinkEventObject,
42
+ ItineraryWaypointEventObject,
43
+ Membership,
44
+ MeterDimension,
45
+ NotificationPreference,
46
+ NotificationPreferenceUpdate,
47
+ NotificationPreferences,
48
+ NotificationPreferencesUpdateParams,
49
+ NotificationType,
50
+ OrganizationBillingPaymentMethodParams,
51
+ OrganizationBillingProvisionParams,
52
+ OrganizationCreateParams,
53
+ OrganizationEntitlementsEventObject,
54
+ OrganizationEventObject,
55
+ OrganizationInvitation,
56
+ OrganizationInvitationCreateParams,
57
+ OrganizationInvitationEventObject,
58
+ OrganizationMember,
59
+ OrganizationMemberDeletionReason,
60
+ OrganizationMemberEventObject,
61
+ OrganizationMemberUpdateParams,
62
+ OrganizationSettingsEventObject,
63
+ OrganizationSettingsPatchParams,
64
+ OrganizationSubscription,
65
+ OrganizationSubscriptionEventObject,
66
+ OrganizationSubscriptionItem,
67
+ OrganizationSubscriptionSummary,
68
+ OrganizationUpdateParams,
69
+ PaymentMethod,
70
+ PaymentMethodCard,
71
+ PaymentMethodEventObject,
72
+ PaymentMethodSepaDebit,
73
+ Preferences,
74
+ PreferencesUpdateParams,
75
+ PromotionCodePreview,
76
+ PublishableKey,
77
+ PublishableKeyCreateParams,
78
+ PublishableKeyEventObject,
79
+ PublishableKeyScope,
80
+ PublishableKeyUpdateParams,
81
+ ResponseMetadataPostOrganizationInvitation,
82
+ SecretKeyEventObject,
83
+ SessionCreateParams,
84
+ SetupIntentSession,
85
+ SubscriptionCollectionMethod,
86
+ SubscriptionDiscount,
87
+ SubscriptionStatus,
88
+ TaxId,
89
+ UsageDataPoint,
90
+ UsageDataResourceType,
91
+ UsageDataSurface,
92
+ UsageMetric,
93
+ UsageStatusClass,
94
+ UsageTilePoint,
95
+ UsageTileResourceType,
96
+ UsageTileSurface,
97
+ UserInvitation,
98
+ WebhookAttemptOutcome,
99
+ WebhookDelivery,
100
+ WebhookDeliveryAttempt,
101
+ WebhookDeliveryCreateParams,
102
+ WebhookDeliveryOutcome,
103
+ WebhookDeliveryRecipient,
104
+ WebhookDeliveryTestParams,
105
+ WebhookDeliveryTrigger,
106
+ WebhookDeliveryTriggerKind,
107
+ WebhookDeliveryWithAttempts,
108
+ WebhookDestinationKind,
109
+ WebhookEndpoint,
110
+ WebhookEndpointCreateParams,
111
+ WebhookEndpointDisabledReason,
112
+ WebhookEndpointEventObject,
113
+ WebhookEndpointStatus,
114
+ WebhookEndpointUpdateParams,
115
+ WebhookEndpointWithSecret,
116
+ WebhookEvent,
117
+ WebhookEventActor,
118
+ WebhookEventActorType,
119
+ WebhookEventCatalogEntry,
120
+ WebhookEventData,
121
+ WebhookEventObject,
122
+ WebhookEventRelatedObject,
123
+ WebhookEventRequest,
124
+ WebhookEventType,
125
+ WebhookEventWithDeliveries,
126
+ WebhookFailureClass,
127
+ WebhookFailureKind,
128
+ WebhookHealth,
129
+ WebhookHealthDestination,
130
+ WebhookHealthFailure,
131
+ WebhookHealthFigures,
132
+ WebhookHealthGranularity,
133
+ WebhookHealthPoint,
134
+ WebhookHealthWindow,
135
+ ZoneEventObject,
136
+ } from "./schema.gen.js";
@@ -0,0 +1,74 @@
1
+ // GENERATED FILE. DO NOT EDIT.
2
+ //
3
+ // The operations of the core unit, re-exported from operations.gen.ts so that an entry point
4
+ // publishes the unit without a hand-maintained list. Printed from the mountaya/schemas
5
+ // contract (sdk/model.json, the `unit` of each of `rest.operations`) by
6
+ // scripts/generate-units.mjs.
7
+ //
8
+ // Edit the contract in mountaya/schemas, not this file.
9
+
10
+ export {
11
+ deleteCollection,
12
+ deleteCollectionItinerary,
13
+ deleteCollectionShareLink,
14
+ deleteCollectionZone,
15
+ deleteItinerary,
16
+ deleteItineraryPublication,
17
+ deleteItinerarySegment,
18
+ deleteItinerarySegmentGroup,
19
+ deleteItineraryShareLink,
20
+ deleteItineraryWaypoint,
21
+ deleteZone,
22
+ deleteZonePublication,
23
+ getActivities,
24
+ getAgentRunEvents,
25
+ getCollection,
26
+ getCollectionItineraries,
27
+ getCollectionShareLink,
28
+ getCollectionZones,
29
+ getCollections,
30
+ getItineraries,
31
+ getItinerary,
32
+ getItineraryEvents,
33
+ getItineraryExport,
34
+ getItineraryPace,
35
+ getItineraryShareLink,
36
+ getLayers,
37
+ getOrganizationEvents,
38
+ getZone,
39
+ getZoneEvents,
40
+ getZones,
41
+ patchCollection,
42
+ patchCollectionItinerary,
43
+ patchItinerary,
44
+ patchItinerarySegment,
45
+ patchItinerarySegmentGroup,
46
+ patchItineraryWaypoint,
47
+ patchZone,
48
+ postAgentRun,
49
+ postAgentRunFeedback,
50
+ postAgentRunInput,
51
+ postCollection,
52
+ postCollectionItineraries,
53
+ postCollectionShareLink,
54
+ postCollectionShareLinkRotate,
55
+ postCollectionZones,
56
+ postItinerary,
57
+ postItineraryCollab,
58
+ postItineraryDuplicate,
59
+ postItineraryImport,
60
+ postItineraryPreview,
61
+ postItineraryPublication,
62
+ postItinerarySegment,
63
+ postItinerarySegmentConvert,
64
+ postItinerarySegmentGroup,
65
+ postItinerarySegmentMerge,
66
+ postItinerarySegmentSplit,
67
+ postItineraryShareLink,
68
+ postItineraryShareLinkRotate,
69
+ postItineraryWaypoint,
70
+ postOrganizationLookup,
71
+ postZone,
72
+ postZoneCollab,
73
+ postZonePublication,
74
+ } from "./operations.gen.js";
@@ -0,0 +1,244 @@
1
+ // GENERATED FILE. DO NOT EDIT.
2
+ //
3
+ // Every named schema of the core unit, re-exported from schema.gen.ts so that an entry point
4
+ // publishes the unit without a hand-maintained list. Printed from the mountaya/schemas
5
+ // contract (sdk/model.json, the `unit` of each of `rest.schemas`) by
6
+ // scripts/generate-units.mjs.
7
+ //
8
+ // Edit the contract in mountaya/schemas, not this file.
9
+
10
+ export type {
11
+ AcceptedResponse,
12
+ Activity,
13
+ ActivityCapabilities,
14
+ ActivitySlug,
15
+ AgentAwaitingInputEvent,
16
+ AgentBudgetDimension,
17
+ AgentBudgetExhaustedEvent,
18
+ AgentChecksUnmetEvent,
19
+ AgentClientToolManifest,
20
+ AgentCloseInput,
21
+ AgentConfirmInput,
22
+ AgentConfirmRequiredEvent,
23
+ AgentDoneEvent,
24
+ AgentErrorCode,
25
+ AgentErrorEvent,
26
+ AgentManifestUpdateInput,
27
+ AgentMessageDeltaEvent,
28
+ AgentMessageEvent,
29
+ AgentReconnectEvent,
30
+ AgentRun,
31
+ AgentRunCreateParams,
32
+ AgentRunEvent,
33
+ AgentRunEventType,
34
+ AgentRunFeedbackParams,
35
+ AgentRunFeedbackRating,
36
+ AgentRunInputParams,
37
+ AgentRunInputType,
38
+ AgentRunProfile,
39
+ AgentRunReason,
40
+ AgentToolAbandonedEvent,
41
+ AgentToolAbandonedReason,
42
+ AgentToolCallEvent,
43
+ AgentToolCallTarget,
44
+ AgentToolErrorCode,
45
+ AgentToolResultEvent,
46
+ AgentToolResultInput,
47
+ AgentUserMessageInput,
48
+ BadRequestResponse,
49
+ Boundaries,
50
+ CategoryActivities,
51
+ CategoryOverlays,
52
+ CollabChangeAction,
53
+ CollabChangeKind,
54
+ CollabCollectionChangedEvent,
55
+ CollabCursorEvent,
56
+ CollabCursorSignal,
57
+ CollabDraftClearEvent,
58
+ CollabDraftClearSignal,
59
+ CollabDraftUpdateEvent,
60
+ CollabDraftUpdateSignal,
61
+ CollabEntity,
62
+ CollabEntityKind,
63
+ CollabItineraryChangedEvent,
64
+ CollabLock,
65
+ CollabLockAcquireSignal,
66
+ CollabLockAcquiredEvent,
67
+ CollabLockReleaseSignal,
68
+ CollabLockReleasedEvent,
69
+ CollabLockSnapshotEvent,
70
+ CollabMember,
71
+ CollabPosition,
72
+ CollabPresenceJoinEvent,
73
+ CollabPresenceLeaveEvent,
74
+ CollabPresenceSnapshotEvent,
75
+ CollabReconnectEvent,
76
+ CollabSegmentChangedEvent,
77
+ CollabSelectionEvent,
78
+ CollabSelectionKind,
79
+ CollabSelectionRef,
80
+ CollabSelectionSignal,
81
+ CollabSignalParams,
82
+ CollabSignalType,
83
+ CollabStreamEvent,
84
+ CollabStreamEventType,
85
+ CollabWaypointChangedEvent,
86
+ CollabZoneChangedEvent,
87
+ Collection,
88
+ CollectionCount,
89
+ CollectionCreateParams,
90
+ CollectionItinerariesAddParams,
91
+ CollectionItineraryUpdateParams,
92
+ CollectionUpdateParams,
93
+ CollectionZonesAddParams,
94
+ ConflictMetadata,
95
+ ConflictResponse,
96
+ CreatedResponse,
97
+ Elevation,
98
+ ElevationTileSize,
99
+ EmbeddedStudioDefaultProps,
100
+ EmbeddedStudioSafetyRules,
101
+ EmbeddedStudioTheme,
102
+ EmbeddedStudioThemeColors,
103
+ Errors,
104
+ ExportFormat,
105
+ ExportVariant,
106
+ ForbiddenResponse,
107
+ GatewayTimeoutResponse,
108
+ GeoJSONGeometry,
109
+ GeoJSONGeometryCollection,
110
+ GeoJSONLineString,
111
+ GeoJSONMultiLineString,
112
+ GeoJSONMultiPoint,
113
+ GeoJSONMultiPolygon,
114
+ GeoJSONPoint,
115
+ GeoJSONPolygon,
116
+ HTTPError,
117
+ IdempotentReplayed,
118
+ ImportGranularity,
119
+ ImportProvider,
120
+ ImportRecommendationReason,
121
+ ImportWarning,
122
+ InternalErrorResponse,
123
+ Itinerary,
124
+ ItineraryCount,
125
+ ItineraryCreateParams,
126
+ ItineraryDirectionsStep,
127
+ ItineraryDuplicateParams,
128
+ ItineraryImportConfirmParams,
129
+ ItineraryImportConfirmSegment,
130
+ ItineraryImportConfirmWaypoint,
131
+ ItineraryImportPreview,
132
+ ItineraryPace,
133
+ ItineraryPaceSegment,
134
+ ItinerarySegment,
135
+ ItinerarySegmentGroup,
136
+ ItineraryStatus,
137
+ ItineraryUpdateParams,
138
+ ItineraryWaypoint,
139
+ ItineraryWithDetails,
140
+ Language,
141
+ Layers,
142
+ LimitKey,
143
+ ListMetadata,
144
+ LocaleMap,
145
+ Locales,
146
+ ManeuverType,
147
+ NotFoundResponse,
148
+ OkResponse,
149
+ Organization,
150
+ OrganizationLookupParams,
151
+ OrganizationRole,
152
+ OrganizationSettings,
153
+ Overlay,
154
+ OverlayCapabilities,
155
+ OverlayContentType,
156
+ OverlaySupportedCapabilities,
157
+ PaginationMetadata,
158
+ PayloadTooLargeResponse,
159
+ PaymentRequiredResponse,
160
+ ProposedCandidate,
161
+ ProposedSegment,
162
+ ProposedWaypoint,
163
+ RangeType,
164
+ ReadSurface,
165
+ RelationToUser,
166
+ ResponseMetadataCreatedPart,
167
+ ResponseMetadataIdempotentAnswer,
168
+ ResponseMetadataLimitReached,
169
+ ResponseMetadataLockConflict,
170
+ ResponseMetadataPatchCollection,
171
+ ResponseMetadataPatchItinerary,
172
+ ResponseMetadataPatchZone,
173
+ ResponseMetadataPostCollection,
174
+ ResponseMetadataPostItinerary,
175
+ ResponseMetadataPostZone,
176
+ RoadAccessInfo,
177
+ RoadAccessRestrictionType,
178
+ SegmentConvertParams,
179
+ SegmentCreateParams,
180
+ SegmentGroupCreateParams,
181
+ SegmentGroupUpdateParams,
182
+ SegmentMode,
183
+ SegmentSplitParams,
184
+ SegmentUpdateParams,
185
+ ServiceUnavailableResponse,
186
+ Session,
187
+ SessionSurface,
188
+ ShareLink,
189
+ SlopeInfo,
190
+ SpeedInfo,
191
+ StreamReconnectReason,
192
+ StudioEntitlement,
193
+ SuccessExtensions,
194
+ SurfaceInfo,
195
+ SurfaceType,
196
+ Terrain,
197
+ TerrainTileSize,
198
+ TerrainVariant,
199
+ TerrainVariantAsStyle,
200
+ TerrainVariantAsTiles,
201
+ TerrainVariantConfig,
202
+ TerrainVariants,
203
+ Theme,
204
+ TileLayer,
205
+ TileLayerType,
206
+ TileLegend,
207
+ TileLegendKind,
208
+ TileLegendStep,
209
+ TileSource,
210
+ TileSourceSize,
211
+ TileSourceType,
212
+ TooManyRequestsResponse,
213
+ TrailDifficultyInfo,
214
+ TrailDifficultyType,
215
+ UnauthorizedResponse,
216
+ UnitLegend,
217
+ UnitLength,
218
+ UnitPace,
219
+ UnitSlope,
220
+ UnitTemperature,
221
+ WayType,
222
+ WayTypeInfo,
223
+ WaypointAmenity,
224
+ WaypointContact,
225
+ WaypointCreateParams,
226
+ WaypointIcon,
227
+ WaypointLink,
228
+ WaypointMedia,
229
+ WaypointMode,
230
+ WaypointPhoto,
231
+ WaypointProperty,
232
+ WaypointPropertyFormat,
233
+ WaypointTiming,
234
+ WaypointUpdateParams,
235
+ Zone,
236
+ ZoneCreateParams,
237
+ ZoneFeature,
238
+ ZoneLevel,
239
+ ZoneMode,
240
+ ZoneSource,
241
+ ZoneSourceKind,
242
+ ZoneStatus,
243
+ ZoneUpdateParams,
244
+ } from "./schema.gen.js";
@@ -0,0 +1,217 @@
1
+ // GENERATED FILE. DO NOT EDIT.
2
+ //
3
+ // The instants each schema on the public 'api' surface declares, generated from
4
+ // the mountaya/schemas contract (openapi/api.yaml): every property typed
5
+ // `format: date-time`, which the types beside this file declare as a Date. A response
6
+ // decodes a string to a Date only where one of these masks names it, so a field's type and
7
+ // its decoded value come from one declaration.
8
+ //
9
+ // Edit the spec in mountaya/schemas, not this file.
10
+
11
+ /** The instants in `AgentRun`. */
12
+ export const agentRunDates = { created_at: true } as const;
13
+
14
+ /** The instants in `CollabCollectionChangedEvent`. */
15
+ export const collabCollectionChangedEventDates = { occurred_at: true } as const;
16
+
17
+ /** The instants in `CollabItineraryChangedEvent`. */
18
+ export const collabItineraryChangedEventDates = { occurred_at: true } as const;
19
+
20
+ /** The instants in `CollabMember`. */
21
+ export const collabMemberDates = { connected_at: true } as const;
22
+
23
+ /** The instants in `CollabPresenceJoinEvent`. */
24
+ export const collabPresenceJoinEventDates = { connected_at: true } as const;
25
+
26
+ /** The instants in `CollabPresenceSnapshotEvent`. */
27
+ export const collabPresenceSnapshotEventDates = { members: [collabMemberDates] } as const;
28
+
29
+ /** The instants in `CollabSegmentChangedEvent`. */
30
+ export const collabSegmentChangedEventDates = { occurred_at: true } as const;
31
+
32
+ /** The instants in `CollabStreamEvent`. */
33
+ export const collabStreamEventDates = { connected_at: true, members: [collabMemberDates], occurred_at: true } as const;
34
+
35
+ /** The instants in `CollabWaypointChangedEvent`. */
36
+ export const collabWaypointChangedEventDates = { occurred_at: true } as const;
37
+
38
+ /** The instants in `CollabZoneChangedEvent`. */
39
+ export const collabZoneChangedEventDates = { occurred_at: true } as const;
40
+
41
+ /** The instants in `Collection`. */
42
+ export const collectionDates = { created_at: true, updated_at: true } as const;
43
+
44
+ /** The instants in `CollectionEventObject`. */
45
+ export const collectionEventObjectDates = { created_at: true, updated_at: true } as const;
46
+
47
+ /** The instants in `CollectionShareLinkEventObject`. */
48
+ export const collectionShareLinkEventObjectDates = { created_at: true } as const;
49
+
50
+ /** The instants in `Invoice`. */
51
+ export const invoiceDates = { created_at: true } as const;
52
+
53
+ /** The instants in `InvoiceEventObject`. */
54
+ export const invoiceEventObjectDates = { created_at: true } as const;
55
+
56
+ /** The instants in `Itinerary`. */
57
+ export const itineraryDates = { created_at: true, updated_at: true } as const;
58
+
59
+ /** The instants in `ItineraryEventObject`. */
60
+ export const itineraryEventObjectDates = { created_at: true, updated_at: true } as const;
61
+
62
+ /** The instants in `ItinerarySegment`. */
63
+ export const itinerarySegmentDates = { created_at: true, start_at: true } as const;
64
+
65
+ /** The instants in `ItinerarySegmentEventObject`. */
66
+ export const itinerarySegmentEventObjectDates = { created_at: true } as const;
67
+
68
+ /** The instants in `ItinerarySegmentGroup`. */
69
+ export const itinerarySegmentGroupDates = { created_at: true } as const;
70
+
71
+ /** The instants in `ItinerarySegmentGroupEventObject`. */
72
+ export const itinerarySegmentGroupEventObjectDates = { created_at: true } as const;
73
+
74
+ /** The instants in `ItineraryShareLinkEventObject`. */
75
+ export const itineraryShareLinkEventObjectDates = { created_at: true } as const;
76
+
77
+ /** The instants in `WaypointTiming`. */
78
+ export const waypointTimingDates = { cutoff_at: true } as const;
79
+
80
+ /** The instants in `ItineraryWaypoint`. */
81
+ export const itineraryWaypointDates = { created_at: true, timing: waypointTimingDates } as const;
82
+
83
+ /** The instants in `ItineraryWaypointEventObject`. */
84
+ export const itineraryWaypointEventObjectDates = { created_at: true } as const;
85
+
86
+ /** The instants in `ItineraryWithDetails`. */
87
+ export const itineraryWithDetailsDates = { created_at: true, groups: [itinerarySegmentGroupDates], published_at: true, segments: [itinerarySegmentDates], updated_at: true, waypoints: [itineraryWaypointDates] } as const;
88
+
89
+ /** The instants in `Membership`. */
90
+ export const membershipDates = { joined_at: true } as const;
91
+
92
+ /** The instants in `Organization`. */
93
+ export const organizationDates = { created_at: true, updated_at: true } as const;
94
+
95
+ /** The instants in `OrganizationEventObject`. */
96
+ export const organizationEventObjectDates = { created_at: true, updated_at: true } as const;
97
+
98
+ /** The instants in `OrganizationInvitation`. */
99
+ export const organizationInvitationDates = { created_at: true, expires_at: true } as const;
100
+
101
+ /** The instants in `OrganizationInvitationEventObject`. */
102
+ export const organizationInvitationEventObjectDates = { created_at: true, expires_at: true } as const;
103
+
104
+ /** The instants in `OrganizationMember`. */
105
+ export const organizationMemberDates = { joined_at: true } as const;
106
+
107
+ /** The instants in `OrganizationMemberEventObject`. */
108
+ export const organizationMemberEventObjectDates = { joined_at: true } as const;
109
+
110
+ /** The instants in `SubscriptionDiscount`. */
111
+ export const subscriptionDiscountDates = { ends_at: true } as const;
112
+
113
+ /** The instants in `OrganizationSubscription`. */
114
+ export const organizationSubscriptionDates = { current_period_end_at: true, discount: subscriptionDiscountDates } as const;
115
+
116
+ /** The instants in `OrganizationSubscriptionEventObject`. */
117
+ export const organizationSubscriptionEventObjectDates = { current_period_end_at: true } as const;
118
+
119
+ /** The instants in `OrganizationSubscriptionSummary`. */
120
+ export const organizationSubscriptionSummaryDates = { api: organizationSubscriptionDates } as const;
121
+
122
+ /** The instants in `PublishableKey`. */
123
+ export const publishableKeyDates = { created_at: true, last_used_at: true, revoked_at: true } as const;
124
+
125
+ /** The instants in `PublishableKeyEventObject`. */
126
+ export const publishableKeyEventObjectDates = { created_at: true, revoked_at: true } as const;
127
+
128
+ /** The instants in `SecretKeyEventObject`. */
129
+ export const secretKeyEventObjectDates = { created_at: true, revoked_at: true } as const;
130
+
131
+ /** The instants in `SegmentCreateParams`. */
132
+ export const segmentCreateParamsDates = { start_at: true } as const;
133
+
134
+ /** The instants in `SegmentUpdateParams`. */
135
+ export const segmentUpdateParamsDates = { start_at: true } as const;
136
+
137
+ /** The instants in `Session`. */
138
+ export const sessionDates = { expires_at: true } as const;
139
+
140
+ /** The instants in `ShareLink`. */
141
+ export const shareLinkDates = { created_at: true } as const;
142
+
143
+ /** The instants in `UserInvitation`. */
144
+ export const userInvitationDates = { created_at: true, expires_at: true } as const;
145
+
146
+ /** The instants in `WaypointCreateParams`. */
147
+ export const waypointCreateParamsDates = { timing: waypointTimingDates } as const;
148
+
149
+ /** The instants in `WaypointUpdateParams`. */
150
+ export const waypointUpdateParamsDates = { timing: waypointTimingDates } as const;
151
+
152
+ /** The instants in `WebhookDelivery`. */
153
+ export const webhookDeliveryDates = { created_at: true, last_attempt_at: true, next_attempt_at: true } as const;
154
+
155
+ /** The instants in `WebhookDeliveryAttempt`. */
156
+ export const webhookDeliveryAttemptDates = { attempted_at: true, scheduled_at: true } as const;
157
+
158
+ /** The instants in `WebhookDeliveryCreateParams`. */
159
+ export const webhookDeliveryCreateParamsDates = { since: true } as const;
160
+
161
+ /** The instants in `WebhookDeliveryTrigger`. */
162
+ export const webhookDeliveryTriggerDates = { created_at: true, since: true } as const;
163
+
164
+ /** The instants in `WebhookDeliveryWithAttempts`. */
165
+ export const webhookDeliveryWithAttemptsDates = { attempts: [webhookDeliveryAttemptDates], created_at: true, last_attempt_at: true, next_attempt_at: true } as const;
166
+
167
+ /** The instants in `WebhookEndpoint`. */
168
+ export const webhookEndpointDates = { created_at: true, disabled_at: true, failing_since: true, updated_at: true } as const;
169
+
170
+ /** The instants in `WebhookEndpointEventObject`. */
171
+ export const webhookEndpointEventObjectDates = { created_at: true, failing_since: true, updated_at: true } as const;
172
+
173
+ /** The instants in `WebhookEndpointWithSecret`. */
174
+ export const webhookEndpointWithSecretDates = webhookEndpointDates;
175
+
176
+ /** The instants in `WebhookEventObject`. */
177
+ export const webhookEventObjectDates = { created_at: true, current_period_end_at: true, end_at: true, expires_at: true, failing_since: true, joined_at: true, revoked_at: true, start_at: true, updated_at: true } as const;
178
+
179
+ /** The instants in `WebhookEventData`. */
180
+ export const webhookEventDataDates = { object: webhookEventObjectDates } as const;
181
+
182
+ /** The instants in `WebhookEvent`. */
183
+ export const webhookEventDates = { created_at: true, data: webhookEventDataDates } as const;
184
+
185
+ /** The instants in `WebhookEventWithDeliveries`. */
186
+ export const webhookEventWithDeliveriesDates = { created_at: true, data: webhookEventDataDates, deliveries: [webhookDeliveryDates] } as const;
187
+
188
+ /** The instants in `WebhookHealthDestination`. */
189
+ export const webhookHealthDestinationDates = { failing_since: true, last_success_at: true } as const;
190
+
191
+ /** The instants in `WebhookHealthPoint`. */
192
+ export const webhookHealthPointDates = { start_at: true } as const;
193
+
194
+ /** The instants in `WebhookHealth`. */
195
+ export const webhookHealthDates = { destinations: [webhookHealthDestinationDates], end_at: true, series: [webhookHealthPointDates], start_at: true } as const;
196
+
197
+ /** The instants in `Zone`. */
198
+ export const zoneDates = { created_at: true, end_at: true, published_at: true, start_at: true, updated_at: true } as const;
199
+
200
+ /** The instants in `ZoneCreateParams`. */
201
+ export const zoneCreateParamsDates = { end_at: true, start_at: true } as const;
202
+
203
+ /** The instants in `ZoneEventObject`. */
204
+ export const zoneEventObjectDates = { created_at: true, end_at: true, start_at: true, updated_at: true } as const;
205
+
206
+ /** The instants in `ZoneUpdateParams`. */
207
+ export const zoneUpdateParamsDates = { end_at: true, start_at: true } as const;
208
+
209
+ /** The instants in each `CollabStreamEvent` event, by the `type` that names it. */
210
+ export const collabStreamEventDatesByType = { "collection.changed": collabCollectionChangedEventDates, "itinerary.changed": collabItineraryChangedEventDates, "presence.join": collabPresenceJoinEventDates, "presence.snapshot": collabPresenceSnapshotEventDates, "segment.changed": collabSegmentChangedEventDates, "waypoint.changed": collabWaypointChangedEventDates, "zone.changed": collabZoneChangedEventDates } as const;
211
+
212
+ /**
213
+ * The instants in each schema that declares one, by the name the contract gives the schema.
214
+ * Each value is that schema's mask above, the same object and never a copy. A schema with no
215
+ * entry declares no instant, so nothing in its JSON decodes to a Date.
216
+ */
217
+ export const restSchemaDates = { AgentRun: agentRunDates, CollabCollectionChangedEvent: collabCollectionChangedEventDates, CollabItineraryChangedEvent: collabItineraryChangedEventDates, CollabMember: collabMemberDates, CollabPresenceJoinEvent: collabPresenceJoinEventDates, CollabPresenceSnapshotEvent: collabPresenceSnapshotEventDates, CollabSegmentChangedEvent: collabSegmentChangedEventDates, CollabStreamEvent: collabStreamEventDates, CollabWaypointChangedEvent: collabWaypointChangedEventDates, CollabZoneChangedEvent: collabZoneChangedEventDates, Collection: collectionDates, CollectionEventObject: collectionEventObjectDates, CollectionShareLinkEventObject: collectionShareLinkEventObjectDates, Invoice: invoiceDates, InvoiceEventObject: invoiceEventObjectDates, Itinerary: itineraryDates, ItineraryEventObject: itineraryEventObjectDates, ItinerarySegment: itinerarySegmentDates, ItinerarySegmentEventObject: itinerarySegmentEventObjectDates, ItinerarySegmentGroup: itinerarySegmentGroupDates, ItinerarySegmentGroupEventObject: itinerarySegmentGroupEventObjectDates, ItineraryShareLinkEventObject: itineraryShareLinkEventObjectDates, ItineraryWaypoint: itineraryWaypointDates, ItineraryWaypointEventObject: itineraryWaypointEventObjectDates, ItineraryWithDetails: itineraryWithDetailsDates, Membership: membershipDates, Organization: organizationDates, OrganizationEventObject: organizationEventObjectDates, OrganizationInvitation: organizationInvitationDates, OrganizationInvitationEventObject: organizationInvitationEventObjectDates, OrganizationMember: organizationMemberDates, OrganizationMemberEventObject: organizationMemberEventObjectDates, OrganizationSubscription: organizationSubscriptionDates, OrganizationSubscriptionEventObject: organizationSubscriptionEventObjectDates, OrganizationSubscriptionSummary: organizationSubscriptionSummaryDates, PublishableKey: publishableKeyDates, PublishableKeyEventObject: publishableKeyEventObjectDates, SecretKeyEventObject: secretKeyEventObjectDates, SegmentCreateParams: segmentCreateParamsDates, SegmentUpdateParams: segmentUpdateParamsDates, Session: sessionDates, ShareLink: shareLinkDates, SubscriptionDiscount: subscriptionDiscountDates, UserInvitation: userInvitationDates, WaypointCreateParams: waypointCreateParamsDates, WaypointTiming: waypointTimingDates, WaypointUpdateParams: waypointUpdateParamsDates, WebhookDelivery: webhookDeliveryDates, WebhookDeliveryAttempt: webhookDeliveryAttemptDates, WebhookDeliveryCreateParams: webhookDeliveryCreateParamsDates, WebhookDeliveryTrigger: webhookDeliveryTriggerDates, WebhookDeliveryWithAttempts: webhookDeliveryWithAttemptsDates, WebhookEndpoint: webhookEndpointDates, WebhookEndpointEventObject: webhookEndpointEventObjectDates, WebhookEndpointWithSecret: webhookEndpointWithSecretDates, WebhookEvent: webhookEventDates, WebhookEventData: webhookEventDataDates, WebhookEventObject: webhookEventObjectDates, WebhookEventWithDeliveries: webhookEventWithDeliveriesDates, WebhookHealth: webhookHealthDates, WebhookHealthDestination: webhookHealthDestinationDates, WebhookHealthPoint: webhookHealthPointDates, Zone: zoneDates, ZoneCreateParams: zoneCreateParamsDates, ZoneEventObject: zoneEventObjectDates, ZoneUpdateParams: zoneUpdateParamsDates } as const;