@samva/webhooks 0.22.0 → 0.23.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/effect.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as WebhookTimestampError, c as signWebhook, f as InvalidWebhookHeadersError, g as WebhookSignatureError, h as WebhookCryptoError, i as WEBHOOK_TIMESTAMP_HEADER, l as verifyWebhookAt, m as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, o as generateWebhookSecret, p as InvalidWebhookSecretError, r as WEBHOOK_SIGNATURE_HEADER, t as DEFAULT_TOLERANCE_SECONDS, v as WebhookVerificationError, y as isKnownEvent } from "./protocol-8ERuoP0F.js";
2
- import { t as WebhookEventJsonSchemas } from "./json-schemas.gen-CPzGmYvg.js";
1
+ import { _ as WebhookTimestampError, c as signWebhook, f as InvalidWebhookHeadersError, g as WebhookSignatureError, h as WebhookCryptoError, i as WEBHOOK_TIMESTAMP_HEADER, l as verifyWebhookAt, m as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, o as generateWebhookSecret, p as InvalidWebhookSecretError, r as WEBHOOK_SIGNATURE_HEADER, t as DEFAULT_TOLERANCE_SECONDS, v as WebhookVerificationError, y as isKnownEvent } from "./protocol-BshlNyvg.js";
2
+ import { t as WebhookEventJsonSchemas } from "./json-schemas.gen-CaL1pRff.js";
3
3
  import { ContactConsentChangedEventSchema, ContactCreatedEventSchema, ContactDeletedEventSchema, ContactResubscribedEventSchema, ContactSubscribedEventSchema, ContactUnsubscribedEventSchema, ContactUpdatedEventSchema, ConversationArchivedEventSchema, ConversationCreatedEventSchema, ConversationUpdatedEventSchema, DomainUpdatedEventSchema, DomainWarmingUpdatedEventSchema, FlowRegistrationUpdatedEventSchema, JourneyWebhookEventSchema, MailboxActionPendingApprovalEventSchema, MailboxActionResolvedEventSchema, MailboxMessageDiscardedEventSchema, MailboxMessageQuarantinedEventSchema, MailboxMessageReceivedEventSchema, MailboxMessageReleasedEventSchema, MailboxMessageSentEventSchema, MessageBouncedEventSchema, MessageClickedEventSchema, MessageComplainedEventSchema, MessageDeliveredEventSchema, MessageFailedEventSchema, MessageOpenedEventSchema, MessageReadEventSchema, MessageReceivedEventSchema, MessageSentEventSchema, SamvaWebhookEventSchema, TemplateRegistrationUpdatedEventSchema, WebhookCreatedEventSchema, WebhookDeletedEventSchema, WebhookTestEventSchema, WebhookUpdatedEventSchema, WhatsappNumberConnectedEventSchema } from "./schemas.gen.js";
4
4
  import { Clock, Effect } from "effect";
5
5
  //#region src/effect.ts
@@ -2498,11 +2498,31 @@ const WebhookEventJsonSchemas = {
2498
2498
  type: "object",
2499
2499
  properties: {
2500
2500
  observed: { type: "boolean" },
2501
- total: { type: "integer" },
2502
- satisfied: { type: "integer" },
2503
- missing: { type: "integer" },
2504
- mismatch: { type: "integer" },
2505
- unknown: { type: "integer" }
2501
+ total: {
2502
+ type: "integer",
2503
+ minimum: -9007199254740991,
2504
+ maximum: 9007199254740991
2505
+ },
2506
+ satisfied: {
2507
+ type: "integer",
2508
+ minimum: -9007199254740991,
2509
+ maximum: 9007199254740991
2510
+ },
2511
+ missing: {
2512
+ type: "integer",
2513
+ minimum: -9007199254740991,
2514
+ maximum: 9007199254740991
2515
+ },
2516
+ mismatch: {
2517
+ type: "integer",
2518
+ minimum: -9007199254740991,
2519
+ maximum: 9007199254740991
2520
+ },
2521
+ unknown: {
2522
+ type: "integer",
2523
+ minimum: -9007199254740991,
2524
+ maximum: 9007199254740991
2525
+ }
2506
2526
  },
2507
2527
  required: [
2508
2528
  "observed",
@@ -2838,7 +2858,11 @@ const WebhookEventJsonSchemas = {
2838
2858
  type: "string",
2839
2859
  pattern: "^wafver_[0-9a-hjkmnp-tv-z]{16,24}$"
2840
2860
  },
2841
- versionNumber: { type: "integer" },
2861
+ versionNumber: {
2862
+ type: "integer",
2863
+ minimum: -9007199254740991,
2864
+ maximum: 9007199254740991
2865
+ },
2842
2866
  wabaId: { type: "string" },
2843
2867
  providerFlowId: { anyOf: [{ type: "string" }, { type: "null" }] },
2844
2868
  name: { type: "string" },
@@ -2860,8 +2884,16 @@ const WebhookEventJsonSchemas = {
2860
2884
  error: { type: "string" },
2861
2885
  message: { type: "string" },
2862
2886
  path: { type: "string" },
2863
- line: { type: "integer" },
2864
- column: { type: "integer" }
2887
+ line: {
2888
+ type: "integer",
2889
+ minimum: -9007199254740991,
2890
+ maximum: 9007199254740991
2891
+ },
2892
+ column: {
2893
+ type: "integer",
2894
+ minimum: -9007199254740991,
2895
+ maximum: 9007199254740991
2896
+ }
2865
2897
  },
2866
2898
  required: ["error", "message"],
2867
2899
  additionalProperties: true
@@ -4046,7 +4078,11 @@ const WebhookEventJsonSchemas = {
4046
4078
  type: "string",
4047
4079
  pattern: "^jrny_[0-9a-hjkmnp-tv-z]{16,24}$"
4048
4080
  },
4049
- journeyVersion: { type: "integer" },
4081
+ journeyVersion: {
4082
+ type: "integer",
4083
+ minimum: -9007199254740991,
4084
+ maximum: 9007199254740991
4085
+ },
4050
4086
  runId: {
4051
4087
  type: "string",
4052
4088
  pattern: "^jrun_[0-9a-hjkmnp-tv-z]{16,24}$"
@@ -4094,4 +4130,4 @@ const WebhookEventJsonSchemas = {
4094
4130
  //#endregion
4095
4131
  export { WebhookEventJsonSchemas as t };
4096
4132
 
4097
- //# sourceMappingURL=json-schemas.gen-CPzGmYvg.js.map
4133
+ //# sourceMappingURL=json-schemas.gen-CaL1pRff.js.map
package/dist/promise.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as WebhookTimestampError, c as signWebhook, f as InvalidWebhookHeadersError, g as WebhookSignatureError, h as WebhookCryptoError, i as WEBHOOK_TIMESTAMP_HEADER, l as verifyWebhookAt, m as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, o as generateWebhookSecret, p as InvalidWebhookSecretError, r as WEBHOOK_SIGNATURE_HEADER, s as readWebhookHeaders, t as DEFAULT_TOLERANCE_SECONDS, v as WebhookVerificationError, y as isKnownEvent } from "./protocol-8ERuoP0F.js";
2
- import { t as WebhookEventJsonSchemas } from "./json-schemas.gen-CPzGmYvg.js";
1
+ import { _ as WebhookTimestampError, c as signWebhook, f as InvalidWebhookHeadersError, g as WebhookSignatureError, h as WebhookCryptoError, i as WEBHOOK_TIMESTAMP_HEADER, l as verifyWebhookAt, m as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, o as generateWebhookSecret, p as InvalidWebhookSecretError, r as WEBHOOK_SIGNATURE_HEADER, s as readWebhookHeaders, t as DEFAULT_TOLERANCE_SECONDS, v as WebhookVerificationError, y as isKnownEvent } from "./protocol-BshlNyvg.js";
2
+ import { t as WebhookEventJsonSchemas } from "./json-schemas.gen-CaL1pRff.js";
3
3
  //#region src/promise.ts
4
4
  /**
5
5
  * Verifies a Samva webhook delivery from its body and header values, then returns its ID and
@@ -205,7 +205,7 @@ const validate1262 = (value) => isObject(value) && isObject(value) && Object.has
205
205
  const validate1263 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^dom_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
206
206
  const validate1266 = (value) => typeof value === "string" && (value === "dns-setup" || value === "provisioning" || value === "verifying" || value === "ready" || value === "degraded" || value === "failed");
207
207
  const validate1268 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "observed") && Object.hasOwn(value, "total") && Object.hasOwn(value, "satisfied") && Object.hasOwn(value, "missing") && Object.hasOwn(value, "mismatch") && Object.hasOwn(value, "unknown") && (!Object.hasOwn(value, "observed") || validate33(value["observed"])) && (!Object.hasOwn(value, "total") || validate1270(value["total"])) && (!Object.hasOwn(value, "satisfied") || validate1270(value["satisfied"])) && (!Object.hasOwn(value, "missing") || validate1270(value["missing"])) && (!Object.hasOwn(value, "mismatch") || validate1270(value["mismatch"])) && (!Object.hasOwn(value, "unknown") || validate1270(value["unknown"]));
208
- const validate1270 = (value) => typeof value === "number" && Number.isInteger(value);
208
+ const validate1270 = (value) => typeof value === "number" && Number.isInteger(value) && typeof value === "number" && value >= -9007199254740991 && typeof value === "number" && value <= 9007199254740991;
209
209
  const validate1275 = (value) => validate1276(value) || validate6(value);
210
210
  const validate1276 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "identity") && (!Object.hasOwn(value, "identity") || validate1277(value["identity"])) && (!Object.hasOwn(value, "dkim") || validate1278(value["dkim"])) && (!Object.hasOwn(value, "mailFrom") || validate1278(value["mailFrom"]));
211
211
  const validate1277 = (value) => typeof value === "string" && (value === "pending" || value === "verified" || value === "failed" || value === "unknown");
@@ -727,4 +727,4 @@ const readWebhookHeaders = (headers) => requireHeaders({
727
727
  //#endregion
728
728
  export { WebhookTimestampError as _, encodeWebhookSignature as a, signWebhook as c, webhookSignedContent as d, InvalidWebhookHeadersError as f, WebhookSignatureError as g, WebhookCryptoError as h, WEBHOOK_TIMESTAMP_HEADER as i, verifyWebhookAt as l, MalformedWebhookPayloadError as m, WEBHOOK_ID_HEADER as n, generateWebhookSecret as o, InvalidWebhookSecretError as p, WEBHOOK_SIGNATURE_HEADER as r, readWebhookHeaders as s, DEFAULT_TOLERANCE_SECONDS as t, verifyWebhookAtWithPublicKeys as u, WebhookVerificationError as v, isKnownEvent as y };
729
729
 
730
- //# sourceMappingURL=protocol-8ERuoP0F.js.map
730
+ //# sourceMappingURL=protocol-BshlNyvg.js.map
package/dist/protocol.js CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as WebhookTimestampError, a as encodeWebhookSignature, c as signWebhook, d as webhookSignedContent, f as InvalidWebhookHeadersError, g as WebhookSignatureError, h as WebhookCryptoError, i as WEBHOOK_TIMESTAMP_HEADER, l as verifyWebhookAt, m as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, o as generateWebhookSecret, p as InvalidWebhookSecretError, r as WEBHOOK_SIGNATURE_HEADER, s as readWebhookHeaders, t as DEFAULT_TOLERANCE_SECONDS, u as verifyWebhookAtWithPublicKeys, v as WebhookVerificationError, y as isKnownEvent } from "./protocol-8ERuoP0F.js";
1
+ import { _ as WebhookTimestampError, a as encodeWebhookSignature, c as signWebhook, d as webhookSignedContent, f as InvalidWebhookHeadersError, g as WebhookSignatureError, h as WebhookCryptoError, i as WEBHOOK_TIMESTAMP_HEADER, l as verifyWebhookAt, m as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, o as generateWebhookSecret, p as InvalidWebhookSecretError, r as WEBHOOK_SIGNATURE_HEADER, s as readWebhookHeaders, t as DEFAULT_TOLERANCE_SECONDS, u as verifyWebhookAtWithPublicKeys, v as WebhookVerificationError, y as isKnownEvent } from "./protocol-BshlNyvg.js";
2
2
  export { DEFAULT_TOLERANCE_SECONDS, InvalidWebhookHeadersError, InvalidWebhookSecretError, MalformedWebhookPayloadError, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, WebhookCryptoError, WebhookSignatureError, WebhookTimestampError, WebhookVerificationError, encodeWebhookSignature, generateWebhookSecret, isKnownEvent, readWebhookHeaders, signWebhook, verifyWebhookAt, verifyWebhookAtWithPublicKeys, webhookSignedContent };
@@ -12,7 +12,7 @@ const MessageSentEventSchema = Schema.StructWithRest(Schema.Struct({
12
12
  ]),
13
13
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14
14
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), Schema.Null])),
15
- cost: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
15
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
16
16
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17
17
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18
18
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -31,13 +31,13 @@ const MessageSentEventSchema = Schema.StructWithRest(Schema.Struct({
31
31
  waId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
32
32
  hasAttachments: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
33
33
  isAutoReply: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
34
- segments: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
34
+ segments: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
35
35
  to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36
36
  from: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
37
37
  body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38
38
  direction: Schema.optionalKey(Schema.Union([Schema.Literals(["inbound", "outbound"]), Schema.Null])),
39
39
  errorMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40
- parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
40
+ parts: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
41
41
  carrier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
42
42
  messageId: Schema.String,
43
43
  organizationId: Schema.String
@@ -55,7 +55,7 @@ const MessageDeliveredEventSchema = Schema.StructWithRest(Schema.Struct({
55
55
  ]),
56
56
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
57
57
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), Schema.Null])),
58
- cost: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
58
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
59
59
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
60
60
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
61
61
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -74,13 +74,13 @@ const MessageDeliveredEventSchema = Schema.StructWithRest(Schema.Struct({
74
74
  waId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
75
75
  hasAttachments: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
76
76
  isAutoReply: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
77
- segments: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
77
+ segments: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
78
78
  to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
79
79
  from: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
80
80
  body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
81
81
  direction: Schema.optionalKey(Schema.Union([Schema.Literals(["inbound", "outbound"]), Schema.Null])),
82
82
  errorMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
83
- parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
83
+ parts: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
84
84
  carrier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
85
85
  messageId: Schema.String,
86
86
  organizationId: Schema.String
@@ -98,7 +98,7 @@ const MessageReadEventSchema = Schema.StructWithRest(Schema.Struct({
98
98
  ]),
99
99
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
100
100
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), Schema.Null])),
101
- cost: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
101
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
102
102
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
103
103
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
104
104
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -117,13 +117,13 @@ const MessageReadEventSchema = Schema.StructWithRest(Schema.Struct({
117
117
  waId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
118
118
  hasAttachments: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
119
119
  isAutoReply: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
120
- segments: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
120
+ segments: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
121
121
  to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
122
122
  from: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
123
123
  body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
124
124
  direction: Schema.optionalKey(Schema.Union([Schema.Literals(["inbound", "outbound"]), Schema.Null])),
125
125
  errorMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
126
- parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
126
+ parts: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
127
127
  carrier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
128
128
  messageId: Schema.String,
129
129
  organizationId: Schema.String
@@ -141,7 +141,7 @@ const MessageFailedEventSchema = Schema.StructWithRest(Schema.Struct({
141
141
  ]),
142
142
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
143
143
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), Schema.Null])),
144
- cost: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
144
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
145
145
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
146
146
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
147
147
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -160,13 +160,13 @@ const MessageFailedEventSchema = Schema.StructWithRest(Schema.Struct({
160
160
  waId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
161
161
  hasAttachments: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
162
162
  isAutoReply: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
163
- segments: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
163
+ segments: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
164
164
  to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
165
165
  from: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
166
166
  body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
167
167
  direction: Schema.optionalKey(Schema.Union([Schema.Literals(["inbound", "outbound"]), Schema.Null])),
168
168
  errorMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
169
- parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
169
+ parts: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
170
170
  carrier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
171
171
  messageId: Schema.String,
172
172
  organizationId: Schema.String
@@ -184,7 +184,7 @@ const MessageBouncedEventSchema = Schema.StructWithRest(Schema.Struct({
184
184
  ]),
185
185
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
186
186
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), Schema.Null])),
187
- cost: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
187
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
188
188
  recipient: Schema.String,
189
189
  occurredAt: Schema.String,
190
190
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -203,13 +203,13 @@ const MessageBouncedEventSchema = Schema.StructWithRest(Schema.Struct({
203
203
  waId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
204
204
  hasAttachments: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
205
205
  isAutoReply: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
206
- segments: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
206
+ segments: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
207
207
  to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
208
208
  from: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
209
209
  body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
210
210
  direction: Schema.optionalKey(Schema.Union([Schema.Literals(["inbound", "outbound"]), Schema.Null])),
211
211
  errorMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
212
- parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
212
+ parts: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
213
213
  carrier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
214
214
  messageId: Schema.String,
215
215
  organizationId: Schema.String
@@ -227,7 +227,7 @@ const MessageComplainedEventSchema = Schema.StructWithRest(Schema.Struct({
227
227
  ]),
228
228
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
229
229
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), Schema.Null])),
230
- cost: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
230
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
231
231
  recipient: Schema.String,
232
232
  occurredAt: Schema.String,
233
233
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -246,13 +246,13 @@ const MessageComplainedEventSchema = Schema.StructWithRest(Schema.Struct({
246
246
  waId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
247
247
  hasAttachments: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
248
248
  isAutoReply: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
249
- segments: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
249
+ segments: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
250
250
  to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
251
251
  from: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
252
252
  body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
253
253
  direction: Schema.optionalKey(Schema.Union([Schema.Literals(["inbound", "outbound"]), Schema.Null])),
254
254
  errorMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
255
- parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
255
+ parts: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
256
256
  carrier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
257
257
  messageId: Schema.String,
258
258
  organizationId: Schema.String
@@ -270,7 +270,7 @@ const MessageReceivedEventSchema = Schema.StructWithRest(Schema.Struct({
270
270
  ]),
271
271
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
272
272
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), Schema.Null])),
273
- cost: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
273
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
274
274
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
275
275
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
276
276
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -289,13 +289,13 @@ const MessageReceivedEventSchema = Schema.StructWithRest(Schema.Struct({
289
289
  waId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
290
290
  hasAttachments: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
291
291
  isAutoReply: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
292
- segments: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
292
+ segments: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
293
293
  to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
294
294
  from: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
295
295
  body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
296
296
  direction: Schema.optionalKey(Schema.Union([Schema.Literals(["inbound", "outbound"]), Schema.Null])),
297
297
  errorMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
298
- parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
298
+ parts: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
299
299
  carrier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
300
300
  whatsapp: Schema.optionalKey(Schema.Union([Schema.StructWithRest(Schema.Struct({
301
301
  text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -331,7 +331,7 @@ const MessageReceivedEventSchema = Schema.StructWithRest(Schema.Struct({
331
331
  currency: Schema.optionalKey(Schema.Union([Schema.StructWithRest(Schema.Struct({
332
332
  fallback_value: Schema.String,
333
333
  code: Schema.String,
334
- amount_1000: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
334
+ amount_1000: Schema.Finite
335
335
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]), Schema.Null])),
336
336
  date_time: Schema.optionalKey(Schema.Union([Schema.StructWithRest(Schema.Struct({ fallback_value: Schema.String }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]), Schema.Null])),
337
337
  image: Schema.optionalKey(Schema.Union([Schema.StructWithRest(Schema.Struct({ link: Schema.String }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]), Schema.Null])),
@@ -501,8 +501,8 @@ const MessageReceivedEventSchema = Schema.StructWithRest(Schema.Struct({
501
501
  emoji: Schema.Union([Schema.String, Schema.Null])
502
502
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
503
503
  location: Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
504
- latitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
505
- longitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
504
+ latitude: Schema.Finite,
505
+ longitude: Schema.Finite,
506
506
  name: Schema.optionalKey(Schema.String),
507
507
  address: Schema.optionalKey(Schema.String),
508
508
  url: Schema.optionalKey(Schema.String)
@@ -592,9 +592,9 @@ const MessageOpenedEventSchema = Schema.StructWithRest(Schema.Struct({
592
592
  ]), Schema.Null]),
593
593
  country: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
594
594
  city: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
595
- asn: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
595
+ asn: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
596
596
  code: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
597
- linkIndex: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
597
+ linkIndex: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
598
598
  destinationUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
599
599
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), Schema.Null])),
600
600
  campaignId: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^camp_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^camp_[0-9a-hjkmnp-tv-z]{16,24}$" })), Schema.Null])),
@@ -626,9 +626,9 @@ const MessageClickedEventSchema = Schema.StructWithRest(Schema.Struct({
626
626
  ]), Schema.Null]),
627
627
  country: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
628
628
  city: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
629
- asn: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
629
+ asn: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
630
630
  code: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
631
- linkIndex: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
631
+ linkIndex: Schema.optionalKey(Schema.Union([Schema.Finite, Schema.Null])),
632
632
  destinationUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
633
633
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), Schema.Null])),
634
634
  campaignId: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^camp_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^camp_[0-9a-hjkmnp-tv-z]{16,24}$" })), Schema.Null])),
@@ -966,11 +966,11 @@ const DomainUpdatedEventSchema = Schema.StructWithRest(Schema.Struct({
966
966
  ]),
967
967
  dns: Schema.StructWithRest(Schema.Struct({
968
968
  observed: Schema.Boolean,
969
- total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
970
- satisfied: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
971
- missing: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
972
- mismatch: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
973
- unknown: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" }))
969
+ total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
970
+ satisfied: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
971
+ missing: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
972
+ mismatch: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
973
+ unknown: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
974
974
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]),
975
975
  provider: Schema.Union([Schema.StructWithRest(Schema.Struct({
976
976
  identity: Schema.Literals([
@@ -1029,12 +1029,12 @@ const DomainWarmingUpdatedEventSchema = Schema.StructWithRest(Schema.Struct({
1029
1029
  holdReason: Schema.Union([Schema.String, Schema.Null]),
1030
1030
  batch: Schema.Union([Schema.StructWithRest(Schema.Struct({
1031
1031
  id: Schema.String,
1032
- sequence: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
1032
+ sequence: Schema.Finite,
1033
1033
  startsAt: Schema.String,
1034
1034
  endsAt: Schema.String,
1035
- allowanceRecipients: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
1036
- dailyGrowthPercent: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
1037
- targetDailyRecipients: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
1035
+ allowanceRecipients: Schema.Finite,
1036
+ dailyGrowthPercent: Schema.Finite,
1037
+ targetDailyRecipients: Schema.Finite
1038
1038
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]), Schema.Null]),
1039
1039
  updatedAt: Schema.String
1040
1040
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])
@@ -1106,7 +1106,7 @@ const FlowRegistrationUpdatedEventSchema = Schema.StructWithRest(Schema.Struct({
1106
1106
  id: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^wafreg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^wafreg_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1107
1107
  flowId: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^waflow_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^waflow_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1108
1108
  versionId: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^wafver_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1109
- versionNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
1109
+ versionNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1110
1110
  wabaId: Schema.String,
1111
1111
  providerFlowId: Schema.Union([Schema.String, Schema.Null]),
1112
1112
  name: Schema.String,
@@ -1121,14 +1121,14 @@ const FlowRegistrationUpdatedEventSchema = Schema.StructWithRest(Schema.Struct({
1121
1121
  error: Schema.String,
1122
1122
  message: Schema.String,
1123
1123
  path: Schema.optionalKey(Schema.String),
1124
- line: Schema.optionalKey(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" }))),
1125
- column: Schema.optionalKey(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })))
1124
+ line: Schema.optionalKey(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))),
1125
+ column: Schema.optionalKey(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })))
1126
1126
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
1127
1127
  endpointAlerts: Schema.Array(Schema.StructWithRest(Schema.Struct({
1128
1128
  kind: Schema.String,
1129
1129
  message: Schema.String,
1130
- value: Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]),
1131
- threshold: Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]),
1130
+ value: Schema.Union([Schema.Finite, Schema.Null]),
1131
+ threshold: Schema.Union([Schema.Finite, Schema.Null]),
1132
1132
  activatedAt: Schema.String
1133
1133
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
1134
1134
  publishedAt: Schema.Union([Schema.String, Schema.Null]),
@@ -1196,7 +1196,7 @@ const MailboxMessageReceivedEventSchema = Schema.StructWithRest(Schema.Struct({
1196
1196
  id: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^att_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^att_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1197
1197
  filename: Schema.String,
1198
1198
  contentType: Schema.String,
1199
- size: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
1199
+ size: Schema.Finite
1200
1200
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
1201
1201
  occurredAt: Schema.String
1202
1202
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]),
@@ -1257,7 +1257,7 @@ const MailboxMessageSentEventSchema = Schema.StructWithRest(Schema.Struct({
1257
1257
  id: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^att_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^att_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1258
1258
  filename: Schema.String,
1259
1259
  contentType: Schema.String,
1260
- size: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
1260
+ size: Schema.Finite
1261
1261
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
1262
1262
  occurredAt: Schema.String
1263
1263
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])
@@ -1480,7 +1480,7 @@ const MailboxMessageReleasedEventSchema = Schema.StructWithRest(Schema.Struct({
1480
1480
  id: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^att_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^att_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1481
1481
  filename: Schema.String,
1482
1482
  contentType: Schema.String,
1483
- size: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
1483
+ size: Schema.Finite
1484
1484
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
1485
1485
  occurredAt: Schema.String
1486
1486
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]),
@@ -1544,7 +1544,7 @@ const JourneyWebhookEventSchema = Schema.StructWithRest(Schema.Struct({
1544
1544
  data: Schema.StructWithRest(Schema.Struct({
1545
1545
  organizationId: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^org_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^org_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1546
1546
  journeyId: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^jrny_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1547
- journeyVersion: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
1547
+ journeyVersion: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1548
1548
  runId: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^jrun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^jrun_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1549
1549
  nodeId: Schema.String,
1550
1550
  contact: Schema.StructWithRest(Schema.Struct({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samva/webhooks",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Runtime-neutral verification for Samva webhook deliveries",
5
5
  "keywords": [
6
6
  "samva",
@@ -65,16 +65,16 @@
65
65
  "test:bundle": "bun run build && bun run scripts/check-bundle.ts"
66
66
  },
67
67
  "devDependencies": {
68
- "@effect/vitest": "4.0.0",
68
+ "@effect/vitest": "4.0.4",
69
69
  "ajv": "^8.20.0",
70
70
  "ajv-formats": "^3.0.1",
71
- "effect": "4.0.0",
71
+ "effect": "4.0.4",
72
72
  "tsdown": "^0.22.13",
73
73
  "typescript": "^7.0.2",
74
74
  "vitest": "^5.0.3"
75
75
  },
76
76
  "peerDependencies": {
77
- "effect": "4.0.0"
77
+ "effect": "4.0.4"
78
78
  },
79
79
  "peerDependenciesMeta": {
80
80
  "effect": {