@trigger.dev/core 2.3.17 → 3.0.0-beta.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/dist/index.d.ts CHANGED
@@ -1,133 +1,7 @@
1
+ import { E as EventFilter } from './eventFilterMatches-2kHImluE.js';
2
+ export { a as EventFilterSchema, c as EventRule, b as EventRuleSchema, e as eventFilterMatches, s as stringPatternMatchers } from './eventFilterMatches-2kHImluE.js';
1
3
  import { z } from 'zod';
2
4
 
3
- declare const stringPatternMatchers: readonly [z.ZodObject<{
4
- $endsWith: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- $endsWith: string;
7
- }, {
8
- $endsWith: string;
9
- }>, z.ZodObject<{
10
- $startsWith: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- $startsWith: string;
13
- }, {
14
- $startsWith: string;
15
- }>, z.ZodObject<{
16
- $ignoreCaseEquals: z.ZodString;
17
- }, "strip", z.ZodTypeAny, {
18
- $ignoreCaseEquals: string;
19
- }, {
20
- $ignoreCaseEquals: string;
21
- }>];
22
- declare const EventMatcherSchema: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodBoolean, "many">, z.ZodArray<z.ZodUnion<[z.ZodObject<{
23
- $endsWith: z.ZodString;
24
- }, "strip", z.ZodTypeAny, {
25
- $endsWith: string;
26
- }, {
27
- $endsWith: string;
28
- }>, z.ZodObject<{
29
- $startsWith: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
31
- $startsWith: string;
32
- }, {
33
- $startsWith: string;
34
- }>, z.ZodObject<{
35
- $ignoreCaseEquals: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- $ignoreCaseEquals: string;
38
- }, {
39
- $ignoreCaseEquals: string;
40
- }>, z.ZodObject<{
41
- $exists: z.ZodBoolean;
42
- }, "strip", z.ZodTypeAny, {
43
- $exists: boolean;
44
- }, {
45
- $exists: boolean;
46
- }>, z.ZodObject<{
47
- $isNull: z.ZodBoolean;
48
- }, "strip", z.ZodTypeAny, {
49
- $isNull: boolean;
50
- }, {
51
- $isNull: boolean;
52
- }>, z.ZodObject<{
53
- $anythingBut: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
54
- }, "strip", z.ZodTypeAny, {
55
- $anythingBut: string | number | boolean;
56
- }, {
57
- $anythingBut: string | number | boolean;
58
- }>, z.ZodObject<{
59
- $anythingBut: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodBoolean, "many">]>;
60
- }, "strip", z.ZodTypeAny, {
61
- $anythingBut: (string[] | number[] | boolean[]) & (string[] | number[] | boolean[] | undefined);
62
- }, {
63
- $anythingBut: (string[] | number[] | boolean[]) & (string[] | number[] | boolean[] | undefined);
64
- }>, z.ZodObject<{
65
- $gt: z.ZodNumber;
66
- }, "strip", z.ZodTypeAny, {
67
- $gt: number;
68
- }, {
69
- $gt: number;
70
- }>, z.ZodObject<{
71
- $lt: z.ZodNumber;
72
- }, "strip", z.ZodTypeAny, {
73
- $lt: number;
74
- }, {
75
- $lt: number;
76
- }>, z.ZodObject<{
77
- $gte: z.ZodNumber;
78
- }, "strip", z.ZodTypeAny, {
79
- $gte: number;
80
- }, {
81
- $gte: number;
82
- }>, z.ZodObject<{
83
- $lte: z.ZodNumber;
84
- }, "strip", z.ZodTypeAny, {
85
- $lte: number;
86
- }, {
87
- $lte: number;
88
- }>, z.ZodObject<{
89
- $between: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
90
- }, "strip", z.ZodTypeAny, {
91
- $between: [number, number];
92
- }, {
93
- $between: [number, number];
94
- }>, z.ZodObject<{
95
- $includes: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
96
- }, "strip", z.ZodTypeAny, {
97
- $includes: string | number | boolean;
98
- }, {
99
- $includes: string | number | boolean;
100
- }>, z.ZodObject<{
101
- $not: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
102
- }, "strip", z.ZodTypeAny, {
103
- $not: string | number | boolean;
104
- }, {
105
- $not: string | number | boolean;
106
- }>]>, "many">]>;
107
- type EventMatcher = z.infer<typeof EventMatcherSchema>;
108
- /** A filter for matching against data */
109
- type EventFilter = {
110
- [key: string]: EventMatcher | EventFilter;
111
- };
112
- declare const EventFilterSchema: z.ZodType<EventFilter>;
113
- declare const EventRuleSchema: z.ZodObject<{
114
- event: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
115
- source: z.ZodString;
116
- payload: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
117
- context: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
118
- }, "strip", z.ZodTypeAny, {
119
- event: (string | string[]) & (string | string[] | undefined);
120
- source: string;
121
- payload?: EventFilter | undefined;
122
- context?: EventFilter | undefined;
123
- }, {
124
- event: (string | string[]) & (string | string[] | undefined);
125
- source: string;
126
- payload?: EventFilter | undefined;
127
- context?: EventFilter | undefined;
128
- }>;
129
- type EventRule = z.infer<typeof EventRuleSchema>;
130
-
131
5
  declare const LiteralSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
132
6
  type Literal = z.infer<typeof LiteralSchema>;
133
7
  type DeserializedJson = Literal | {
@@ -16766,8 +16640,6 @@ declare const replacements: ExampleReplacement[];
16766
16640
 
16767
16641
  declare function urlWithSearchParams(url: string, params: Record<string, string | number | boolean> | undefined): string;
16768
16642
 
16769
- declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
16770
-
16771
16643
  declare function requestFilterMatches(request: Request, filter: RequestFilter): Promise<boolean>;
16772
16644
  type ResponseFilterMatchResult = {
16773
16645
  match: boolean;
@@ -16775,61 +16647,6 @@ type ResponseFilterMatchResult = {
16775
16647
  };
16776
16648
  declare function responseFilterMatches(response: Response, filter: ResponseFilter): Promise<ResponseFilterMatchResult>;
16777
16649
 
16778
- declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
16779
- url: z.ZodString;
16780
- authorizationCode: z.ZodString;
16781
- }, "strip", z.ZodTypeAny, {
16782
- url: string;
16783
- authorizationCode: string;
16784
- }, {
16785
- url: string;
16786
- authorizationCode: string;
16787
- }>;
16788
- type CreateAuthorizationCodeResponse = z.infer<typeof CreateAuthorizationCodeResponseSchema>;
16789
- declare const GetPersonalAccessTokenRequestSchema: z.ZodObject<{
16790
- authorizationCode: z.ZodString;
16791
- }, "strip", z.ZodTypeAny, {
16792
- authorizationCode: string;
16793
- }, {
16794
- authorizationCode: string;
16795
- }>;
16796
- type GetPersonalAccessTokenRequest = z.infer<typeof GetPersonalAccessTokenRequestSchema>;
16797
- declare const GetPersonalAccessTokenResponseSchema: z.ZodObject<{
16798
- token: z.ZodNullable<z.ZodObject<{
16799
- token: z.ZodString;
16800
- obfuscatedToken: z.ZodString;
16801
- }, "strip", z.ZodTypeAny, {
16802
- token: string;
16803
- obfuscatedToken: string;
16804
- }, {
16805
- token: string;
16806
- obfuscatedToken: string;
16807
- }>>;
16808
- }, "strip", z.ZodTypeAny, {
16809
- token: {
16810
- token: string;
16811
- obfuscatedToken: string;
16812
- } | null;
16813
- }, {
16814
- token: {
16815
- token: string;
16816
- obfuscatedToken: string;
16817
- } | null;
16818
- }>;
16819
- type GetPersonalAccessTokenResponse = z.infer<typeof GetPersonalAccessTokenResponseSchema>;
16820
-
16821
- declare const WhoAmIResponseSchema: z.ZodObject<{
16822
- userId: z.ZodString;
16823
- email: z.ZodString;
16824
- }, "strip", z.ZodTypeAny, {
16825
- userId: string;
16826
- email: string;
16827
- }, {
16828
- userId: string;
16829
- email: string;
16830
- }>;
16831
- type WhoAmIResponse = z.infer<typeof WhoAmIResponseSchema>;
16832
-
16833
16650
  declare const API_VERSIONS: {
16834
16651
  readonly LAZY_LOADED_CACHED_TASKS: "2023-09-29";
16835
16652
  readonly SERIALIZED_TASK_OUTPUT: "2023-11-01";
@@ -16840,4 +16657,4 @@ declare const PLATFORM_FEATURES: {
16840
16657
  };
16841
16658
  declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
16842
16659
 
16843
- export { API_VERSIONS, type ApiEventLog, ApiEventLogSchema, type AsyncMap, type AutoYieldConfig, AutoYieldConfigSchema, type AutoYieldMetadata, AutoYieldMetadataSchema, type CachedTask, CachedTaskSchema, type CancelRunsForEvent, CancelRunsForEventSchema, type CancelRunsForJob, CancelRunsForJobSchema, type ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, type CompleteTaskBodyInput, CompleteTaskBodyInputSchema, type CompleteTaskBodyOutput, type CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, type ConnectionAuth, ConnectionAuthSchema, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, type CreateExternalConnectionBody, CreateExternalConnectionBodySchema, type CreateRunResponseBody, CreateRunResponseBodySchema, type CronMetadata, CronMetadataSchema, type CronOptions, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, type DeliverEventResponse, DeliverEventResponseSchema, type DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, type DisplayProperty, DisplayPropertySchema, type DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, type EndpointIndexError, EndpointIndexErrorSchema, type EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, type EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, type ErrorWithStack, ErrorWithStackSchema, type EventExample, EventExampleSchema, type EventFilter, EventFilterSchema, type EventRule, EventRuleSchema, EventSpecificationSchema, type ExampleReplacement, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, type FailTaskBodyInput, FailTaskBodyInputSchema, type FailedRunNotification, type FetchOperation, FetchOperationSchema, type FetchPollOperation, FetchPollOperationSchema, type FetchRequestInit, FetchRequestInitSchema, type FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, type FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, type FetchRetryOptions, FetchRetryOptionsSchema, type FetchRetryStrategy, FetchRetryStrategySchema, type FetchTimeoutOptions, FetchTimeoutOptionsSchema, type GetEndpointIndexResponse, GetEndpointIndexResponseSchema, type GetEvent, GetEventSchema, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, type GetRun, type GetRunOptions, type GetRunOptionsWithTaskDetails, GetRunSchema, type GetRunStatuses, GetRunStatusesSchema, type GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, type HandleTriggerSource, HandleTriggerSourceSchema, type HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, type HttpMethod, type HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, type HttpSourceResponseMetadata, HttpSourceResponseSchema, type IndexEndpointResponse, IndexEndpointResponseSchema, type IndexEndpointStats, type InitialStatusUpdate, InitializeCronScheduleBodySchema, type InitializeTriggerBody, InitializeTriggerBodySchema, type IntegrationConfig, IntegrationConfigSchema, type IntegrationMetadata, IntegrationMetadataSchema, type IntervalMetadata, IntervalMetadataSchema, type IntervalOptions, IntervalOptionsSchema, type InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, type InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, type JobMetadata, JobMetadataSchema, type JobRunStatusRecord, JobRunStatusRecordSchema, type KeyValueStoreResponseBody, KeyValueStoreResponseBodySchema, type LogMessage, LogMessageSchema, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, type MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, type MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, type NormalizedRequest, NormalizedRequestSchema, type NormalizedResponse, NormalizedResponseSchema, type OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, type PongResponse, PongResponseSchema, PongSuccessResponseSchema, type PreprocessRunBody, PreprocessRunBodySchema, type PreprocessRunResponse, PreprocessRunResponseSchema, type Prettify, type QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, type RawEvent, RawEventSchema, RedactSchema, type RedactString, RedactStringSchema, type RegisterCronScheduleBody, type RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, type RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, type RegisterScheduleBody, RegisterScheduleBodySchema, type RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, type RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, type RegisterSourceEventV1, type RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, type RegisterTriggerBodyV1, type RegisterTriggerBodyV2, type RegisterTriggerSource, RegisterTriggerSourceSchema, type RegisterWebhookPayload, RegisterWebhookPayloadSchema, type RegisterWebhookSource, RegisterWebhookSourceSchema, type RegisteredOptionsDiff, type RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, type ResponseFilter, type ResponseFilterMatchResult, ResponseFilterSchema, type RetryOptions, RetryOptionsSchema, type RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, type RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, type RunJobBody, RunJobBodySchema, type RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, type RunJobError, type RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, type RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, type RunJobResponse, RunJobResponseSchema, type RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, type RunJobResumeWithTask, RunJobResumeWithTaskSchema, type RunJobRetryWithTask, RunJobRetryWithTaskSchema, type RunJobSuccess, RunJobSuccessSchema, type RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, type RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, type RunNotification, type RunNotificationAccountMetadata, type RunNotificationEnvMetadata, type RunNotificationInvocationMetadata, type RunNotificationJobMetadata, type RunNotificationOrgMetadata, type RunNotificationProjectMetadata, type RunNotificationRunMetadata, type RunSourceContext, RunSourceContextSchema, RunStatusSchema, type RunTaskBodyInput, RunTaskBodyInputSchema, type RunTaskBodyOutput, RunTaskBodyOutputSchema, type RunTaskOptions, RunTaskOptionsSchema, type RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, type RunTaskWithSubtasks, type RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, type ScheduleMetadata, ScheduleMetadataSchema, type ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, type SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, type SendEvent, type SendEventBody, SendEventBodySchema, type SendEventOptions, SendEventOptionsSchema, type SerializableJson, SerializableJsonSchema, type ServerTask, ServerTaskSchema, type SourceEventOption, type SourceMetadataV1, type SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, type StatusHistory, StatusHistorySchema, type StatusUpdate, type StatusUpdateData, StatusUpdateSchema, type StatusUpdateState, StatusUpdateStateSchema, type StringMatch, type Style, type StyleName, StyleSchema, type SuccessfulRunNotification, TaskSchema, type TaskStatus, TaskStatusSchema, TriggerHelpSchema, type TriggerMetadata, TriggerMetadataSchema, type TriggerSource, TriggerSourceSchema, type UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, type UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, type UpdateWebhookBody, UpdateWebhookBodySchema, ValidateErrorResponseSchema, type ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, type WebhookContextMetadata, WebhookContextMetadataSchema, type WebhookDeliveryResponse, WebhookDeliveryResponseSchema, type WebhookMetadata, WebhookMetadataSchema, type WebhookSourceRequestHeaders, WebhookSourceRequestHeadersSchema, type WhoAmIResponse, WhoAmIResponseSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, stringPatternMatchers, supportsFeature, urlWithSearchParams };
16660
+ export { API_VERSIONS, type ApiEventLog, ApiEventLogSchema, type AsyncMap, type AutoYieldConfig, AutoYieldConfigSchema, type AutoYieldMetadata, AutoYieldMetadataSchema, type CachedTask, CachedTaskSchema, type CancelRunsForEvent, CancelRunsForEventSchema, type CancelRunsForJob, CancelRunsForJobSchema, type ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, type CompleteTaskBodyInput, CompleteTaskBodyInputSchema, type CompleteTaskBodyOutput, type CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, type ConnectionAuth, ConnectionAuthSchema, type CreateExternalConnectionBody, CreateExternalConnectionBodySchema, type CreateRunResponseBody, CreateRunResponseBodySchema, type CronMetadata, CronMetadataSchema, type CronOptions, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, type DeliverEventResponse, DeliverEventResponseSchema, type DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, type DisplayProperty, DisplayPropertySchema, type DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, type EndpointIndexError, EndpointIndexErrorSchema, type EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, type EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, type ErrorWithStack, ErrorWithStackSchema, type EventExample, EventExampleSchema, EventFilter, EventSpecificationSchema, type ExampleReplacement, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, type FailTaskBodyInput, FailTaskBodyInputSchema, type FailedRunNotification, type FetchOperation, FetchOperationSchema, type FetchPollOperation, FetchPollOperationSchema, type FetchRequestInit, FetchRequestInitSchema, type FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, type FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, type FetchRetryOptions, FetchRetryOptionsSchema, type FetchRetryStrategy, FetchRetryStrategySchema, type FetchTimeoutOptions, FetchTimeoutOptionsSchema, type GetEndpointIndexResponse, GetEndpointIndexResponseSchema, type GetEvent, GetEventSchema, type GetRun, type GetRunOptions, type GetRunOptionsWithTaskDetails, GetRunSchema, type GetRunStatuses, GetRunStatusesSchema, type GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, type HandleTriggerSource, HandleTriggerSourceSchema, type HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, type HttpMethod, type HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, type HttpSourceResponseMetadata, HttpSourceResponseSchema, type IndexEndpointResponse, IndexEndpointResponseSchema, type IndexEndpointStats, type InitialStatusUpdate, InitializeCronScheduleBodySchema, type InitializeTriggerBody, InitializeTriggerBodySchema, type IntegrationConfig, IntegrationConfigSchema, type IntegrationMetadata, IntegrationMetadataSchema, type IntervalMetadata, IntervalMetadataSchema, type IntervalOptions, IntervalOptionsSchema, type InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, type InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, type JobMetadata, JobMetadataSchema, type JobRunStatusRecord, JobRunStatusRecordSchema, type KeyValueStoreResponseBody, KeyValueStoreResponseBodySchema, type LogMessage, LogMessageSchema, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, type MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, type MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, type NormalizedRequest, NormalizedRequestSchema, type NormalizedResponse, NormalizedResponseSchema, type OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, type PongResponse, PongResponseSchema, PongSuccessResponseSchema, type PreprocessRunBody, PreprocessRunBodySchema, type PreprocessRunResponse, PreprocessRunResponseSchema, type Prettify, type QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, type RawEvent, RawEventSchema, RedactSchema, type RedactString, RedactStringSchema, type RegisterCronScheduleBody, type RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, type RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, type RegisterScheduleBody, RegisterScheduleBodySchema, type RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, type RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, type RegisterSourceEventV1, type RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, type RegisterTriggerBodyV1, type RegisterTriggerBodyV2, type RegisterTriggerSource, RegisterTriggerSourceSchema, type RegisterWebhookPayload, RegisterWebhookPayloadSchema, type RegisterWebhookSource, RegisterWebhookSourceSchema, type RegisteredOptionsDiff, type RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, type ResponseFilter, type ResponseFilterMatchResult, ResponseFilterSchema, type RetryOptions, RetryOptionsSchema, type RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, type RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, type RunJobBody, RunJobBodySchema, type RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, type RunJobError, type RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, type RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, type RunJobResponse, RunJobResponseSchema, type RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, type RunJobResumeWithTask, RunJobResumeWithTaskSchema, type RunJobRetryWithTask, RunJobRetryWithTaskSchema, type RunJobSuccess, RunJobSuccessSchema, type RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, type RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, type RunNotification, type RunNotificationAccountMetadata, type RunNotificationEnvMetadata, type RunNotificationInvocationMetadata, type RunNotificationJobMetadata, type RunNotificationOrgMetadata, type RunNotificationProjectMetadata, type RunNotificationRunMetadata, type RunSourceContext, RunSourceContextSchema, RunStatusSchema, type RunTaskBodyInput, RunTaskBodyInputSchema, type RunTaskBodyOutput, RunTaskBodyOutputSchema, type RunTaskOptions, RunTaskOptionsSchema, type RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, type RunTaskWithSubtasks, type RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, type ScheduleMetadata, ScheduleMetadataSchema, type ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, type SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, type SendEvent, type SendEventBody, SendEventBodySchema, type SendEventOptions, SendEventOptionsSchema, type SerializableJson, SerializableJsonSchema, type ServerTask, ServerTaskSchema, type SourceEventOption, type SourceMetadataV1, type SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, type StatusHistory, StatusHistorySchema, type StatusUpdate, type StatusUpdateData, StatusUpdateSchema, type StatusUpdateState, StatusUpdateStateSchema, type StringMatch, type Style, type StyleName, StyleSchema, type SuccessfulRunNotification, TaskSchema, type TaskStatus, TaskStatusSchema, TriggerHelpSchema, type TriggerMetadata, TriggerMetadataSchema, type TriggerSource, TriggerSourceSchema, type UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, type UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, type UpdateWebhookBody, UpdateWebhookBodySchema, ValidateErrorResponseSchema, type ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, type WebhookContextMetadata, WebhookContextMetadataSchema, type WebhookDeliveryResponse, WebhookDeliveryResponseSchema, type WebhookMetadata, WebhookMetadataSchema, type WebhookSourceRequestHeaders, WebhookSourceRequestHeadersSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, supportsFeature, urlWithSearchParams };
package/dist/index.js CHANGED
@@ -1837,23 +1837,6 @@ function requestMethodMatches(method, filter) {
1837
1837
  return filter.includes(method);
1838
1838
  }
1839
1839
  __name(requestMethodMatches, "requestMethodMatches");
1840
- var CreateAuthorizationCodeResponseSchema = zod.z.object({
1841
- url: zod.z.string().url(),
1842
- authorizationCode: zod.z.string()
1843
- });
1844
- var GetPersonalAccessTokenRequestSchema = zod.z.object({
1845
- authorizationCode: zod.z.string()
1846
- });
1847
- var GetPersonalAccessTokenResponseSchema = zod.z.object({
1848
- token: zod.z.object({
1849
- token: zod.z.string(),
1850
- obfuscatedToken: zod.z.string()
1851
- }).nullable()
1852
- });
1853
- var WhoAmIResponseSchema = zod.z.object({
1854
- userId: zod.z.string(),
1855
- email: zod.z.string().email()
1856
- });
1857
1840
 
1858
1841
  // src/index.ts
1859
1842
  var API_VERSIONS = {
@@ -1889,7 +1872,6 @@ exports.CompleteTaskBodyInputSchema = CompleteTaskBodyInputSchema;
1889
1872
  exports.CompleteTaskBodyV2InputSchema = CompleteTaskBodyV2InputSchema;
1890
1873
  exports.ConcurrencyLimitOptionsSchema = ConcurrencyLimitOptionsSchema;
1891
1874
  exports.ConnectionAuthSchema = ConnectionAuthSchema;
1892
- exports.CreateAuthorizationCodeResponseSchema = CreateAuthorizationCodeResponseSchema;
1893
1875
  exports.CreateExternalConnectionBodySchema = CreateExternalConnectionBodySchema;
1894
1876
  exports.CreateRunResponseBodySchema = CreateRunResponseBodySchema;
1895
1877
  exports.CronMetadataSchema = CronMetadataSchema;
@@ -1923,8 +1905,6 @@ exports.FetchRetryStrategySchema = FetchRetryStrategySchema;
1923
1905
  exports.FetchTimeoutOptionsSchema = FetchTimeoutOptionsSchema;
1924
1906
  exports.GetEndpointIndexResponseSchema = GetEndpointIndexResponseSchema;
1925
1907
  exports.GetEventSchema = GetEventSchema;
1926
- exports.GetPersonalAccessTokenRequestSchema = GetPersonalAccessTokenRequestSchema;
1927
- exports.GetPersonalAccessTokenResponseSchema = GetPersonalAccessTokenResponseSchema;
1928
1908
  exports.GetRunSchema = GetRunSchema;
1929
1909
  exports.GetRunStatusesSchema = GetRunStatusesSchema;
1930
1910
  exports.GetRunsSchema = GetRunsSchema;
@@ -2043,7 +2023,6 @@ exports.WebhookContextMetadataSchema = WebhookContextMetadataSchema;
2043
2023
  exports.WebhookDeliveryResponseSchema = WebhookDeliveryResponseSchema;
2044
2024
  exports.WebhookMetadataSchema = WebhookMetadataSchema;
2045
2025
  exports.WebhookSourceRequestHeadersSchema = WebhookSourceRequestHeadersSchema;
2046
- exports.WhoAmIResponseSchema = WhoAmIResponseSchema;
2047
2026
  exports.addMissingVersionField = addMissingVersionField;
2048
2027
  exports.assertExhaustive = assertExhaustive;
2049
2028
  exports.calculateResetAt = calculateResetAt;