@samva/webhooks 0.22.0 → 0.22.1

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 (2) hide show
  1. package/dist/schemas.gen.js +37 -37
  2. package/package.json +4 -4
@@ -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])),
@@ -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" }))])
@@ -1127,8 +1127,8 @@ const FlowRegistrationUpdatedEventSchema = Schema.StructWithRest(Schema.Struct({
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" }))]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samva/webhooks",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
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": {