@samva/webhooks 0.53.0 → 0.55.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/protocol.js CHANGED
@@ -1 +1 @@
1
- export { t as DEFAULT_TOLERANCE_SECONDS, l as InvalidWebhookHeadersError, u as InvalidWebhookSecretError, d as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, r as WEBHOOK_SIGNATURE_HEADER, i as WEBHOOK_TIMESTAMP_HEADER, f as WebhookCryptoError, p as WebhookSignatureError, m as WebhookTimestampError, h as WebhookVerificationError, a as generateWebhookSecret, g as isKnownEvent, o as readWebhookHeaders, s as signWebhook, c as verifyWebhookAt } from "./protocol-Q3-Vd3-K.js";
1
+ export { t as DEFAULT_TOLERANCE_SECONDS, l as InvalidWebhookHeadersError, u as InvalidWebhookSecretError, d as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, r as WEBHOOK_SIGNATURE_HEADER, i as WEBHOOK_TIMESTAMP_HEADER, f as WebhookCryptoError, p as WebhookSignatureError, m as WebhookTimestampError, h as WebhookVerificationError, a as generateWebhookSecret, g as isKnownEvent, o as readWebhookHeaders, s as signWebhook, c as verifyWebhookAt } from "./protocol-CwGXBskp.js";
@@ -8,6 +8,11 @@ export declare const MessageSentEventSchema: Schema.StructWithRest<Schema.Struct
8
8
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9
9
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
10
10
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
11
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
12
+ readonly amount: Schema.String;
13
+ readonly currency: Schema.String;
14
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
15
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
11
16
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
12
17
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
13
18
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -43,6 +48,11 @@ export declare const MessageDeliveredEventSchema: Schema.StructWithRest<Schema.S
43
48
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
44
49
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
45
50
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
51
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
52
+ readonly amount: Schema.String;
53
+ readonly currency: Schema.String;
54
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
55
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
46
56
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
47
57
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
48
58
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -78,6 +88,11 @@ export declare const MessageReadEventSchema: Schema.StructWithRest<Schema.Struct
78
88
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
79
89
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
80
90
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
91
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
92
+ readonly amount: Schema.String;
93
+ readonly currency: Schema.String;
94
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
95
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
81
96
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
82
97
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
83
98
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -113,6 +128,11 @@ export declare const MessageFailedEventSchema: Schema.StructWithRest<Schema.Stru
113
128
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
114
129
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
115
130
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
131
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
132
+ readonly amount: Schema.String;
133
+ readonly currency: Schema.String;
134
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
135
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
116
136
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
117
137
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
118
138
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -148,6 +168,11 @@ export declare const MessageBouncedEventSchema: Schema.StructWithRest<Schema.Str
148
168
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
149
169
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
150
170
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
171
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
172
+ readonly amount: Schema.String;
173
+ readonly currency: Schema.String;
174
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
175
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
151
176
  readonly recipient: Schema.String;
152
177
  readonly occurredAt: Schema.String;
153
178
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -183,6 +208,11 @@ export declare const MessageComplainedEventSchema: Schema.StructWithRest<Schema.
183
208
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
184
209
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
185
210
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
211
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
212
+ readonly amount: Schema.String;
213
+ readonly currency: Schema.String;
214
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
215
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
186
216
  readonly recipient: Schema.String;
187
217
  readonly occurredAt: Schema.String;
188
218
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -218,6 +248,11 @@ export declare const MessageReceivedEventSchema: Schema.StructWithRest<Schema.St
218
248
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
219
249
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
220
250
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
251
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
252
+ readonly amount: Schema.String;
253
+ readonly currency: Schema.String;
254
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
255
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
221
256
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
222
257
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
223
258
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -1235,6 +1270,11 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
1235
1270
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1236
1271
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
1237
1272
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1273
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1274
+ readonly amount: Schema.String;
1275
+ readonly currency: Schema.String;
1276
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
1277
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
1238
1278
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1239
1279
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1240
1280
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -1269,6 +1309,11 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
1269
1309
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1270
1310
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
1271
1311
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1312
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1313
+ readonly amount: Schema.String;
1314
+ readonly currency: Schema.String;
1315
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
1316
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
1272
1317
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1273
1318
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1274
1319
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -1303,6 +1348,11 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
1303
1348
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1304
1349
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
1305
1350
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1351
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1352
+ readonly amount: Schema.String;
1353
+ readonly currency: Schema.String;
1354
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
1355
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
1306
1356
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1307
1357
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1308
1358
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -1337,6 +1387,11 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
1337
1387
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1338
1388
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
1339
1389
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1390
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1391
+ readonly amount: Schema.String;
1392
+ readonly currency: Schema.String;
1393
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
1394
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
1340
1395
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1341
1396
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1342
1397
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -1371,6 +1426,11 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
1371
1426
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1372
1427
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
1373
1428
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1429
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1430
+ readonly amount: Schema.String;
1431
+ readonly currency: Schema.String;
1432
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
1433
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
1374
1434
  readonly recipient: Schema.String;
1375
1435
  readonly occurredAt: Schema.String;
1376
1436
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -1405,6 +1465,11 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
1405
1465
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1406
1466
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
1407
1467
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1468
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1469
+ readonly amount: Schema.String;
1470
+ readonly currency: Schema.String;
1471
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
1472
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
1408
1473
  readonly recipient: Schema.String;
1409
1474
  readonly occurredAt: Schema.String;
1410
1475
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -1439,6 +1504,11 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
1439
1504
  readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1440
1505
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>>;
1441
1506
  readonly cost: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1507
+ readonly estimatedProviderCost: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1508
+ readonly amount: Schema.String;
1509
+ readonly currency: Schema.String;
1510
+ readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "service"]>;
1511
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
1442
1512
  readonly recipient: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1443
1513
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1444
1514
  readonly failureReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -12,7 +12,17 @@ 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, Schema.Null])),
15
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "The cost reported by the SMS provider, when available." }).check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
16
+ estimatedProviderCost: Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
17
+ amount: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d+\\.\\d+$", "u")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d+$" })),
18
+ currency: Schema.String,
19
+ category: Schema.Literals([
20
+ "marketing",
21
+ "utility",
22
+ "authentication",
23
+ "service"
24
+ ])
25
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
16
26
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17
27
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18
28
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -55,7 +65,17 @@ const MessageDeliveredEventSchema = Schema.StructWithRest(Schema.Struct({
55
65
  ]),
56
66
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
57
67
  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, Schema.Null])),
68
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "The cost reported by the SMS provider, when available." }).check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
69
+ estimatedProviderCost: Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
70
+ amount: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d+\\.\\d+$", "u")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d+$" })),
71
+ currency: Schema.String,
72
+ category: Schema.Literals([
73
+ "marketing",
74
+ "utility",
75
+ "authentication",
76
+ "service"
77
+ ])
78
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
59
79
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
60
80
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
61
81
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -98,7 +118,17 @@ const MessageReadEventSchema = Schema.StructWithRest(Schema.Struct({
98
118
  ]),
99
119
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
100
120
  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, Schema.Null])),
121
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "The cost reported by the SMS provider, when available." }).check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
122
+ estimatedProviderCost: Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
123
+ amount: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d+\\.\\d+$", "u")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d+$" })),
124
+ currency: Schema.String,
125
+ category: Schema.Literals([
126
+ "marketing",
127
+ "utility",
128
+ "authentication",
129
+ "service"
130
+ ])
131
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
102
132
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
103
133
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
104
134
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -141,7 +171,17 @@ const MessageFailedEventSchema = Schema.StructWithRest(Schema.Struct({
141
171
  ]),
142
172
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
143
173
  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, Schema.Null])),
174
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "The cost reported by the SMS provider, when available." }).check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
175
+ estimatedProviderCost: Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
176
+ amount: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d+\\.\\d+$", "u")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d+$" })),
177
+ currency: Schema.String,
178
+ category: Schema.Literals([
179
+ "marketing",
180
+ "utility",
181
+ "authentication",
182
+ "service"
183
+ ])
184
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
145
185
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
146
186
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
147
187
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -184,7 +224,17 @@ const MessageBouncedEventSchema = Schema.StructWithRest(Schema.Struct({
184
224
  ]),
185
225
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
186
226
  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, Schema.Null])),
227
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "The cost reported by the SMS provider, when available." }).check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
228
+ estimatedProviderCost: Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
229
+ amount: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d+\\.\\d+$", "u")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d+$" })),
230
+ currency: Schema.String,
231
+ category: Schema.Literals([
232
+ "marketing",
233
+ "utility",
234
+ "authentication",
235
+ "service"
236
+ ])
237
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
188
238
  recipient: Schema.String,
189
239
  occurredAt: Schema.String,
190
240
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -227,7 +277,17 @@ const MessageComplainedEventSchema = Schema.StructWithRest(Schema.Struct({
227
277
  ]),
228
278
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
229
279
  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, Schema.Null])),
280
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "The cost reported by the SMS provider, when available." }).check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
281
+ estimatedProviderCost: Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
282
+ amount: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d+\\.\\d+$", "u")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d+$" })),
283
+ currency: Schema.String,
284
+ category: Schema.Literals([
285
+ "marketing",
286
+ "utility",
287
+ "authentication",
288
+ "service"
289
+ ])
290
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
231
291
  recipient: Schema.String,
232
292
  occurredAt: Schema.String,
233
293
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -270,7 +330,17 @@ const MessageReceivedEventSchema = Schema.StructWithRest(Schema.Struct({
270
330
  ]),
271
331
  status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
272
332
  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, Schema.Null])),
333
+ cost: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "The cost reported by the SMS provider, when available." }).check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])),
334
+ estimatedProviderCost: Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
335
+ amount: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d+\\.\\d+$", "u")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d+$" })),
336
+ currency: Schema.String,
337
+ category: Schema.Literals([
338
+ "marketing",
339
+ "utility",
340
+ "authentication",
341
+ "service"
342
+ ])
343
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
274
344
  recipient: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
275
345
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
276
346
  failureReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -1042,11 +1112,11 @@ const DomainUpdatedEventSchema = Schema.StructWithRest(Schema.Struct({
1042
1112
  ]),
1043
1113
  dns: Schema.StructWithRest(Schema.Struct({
1044
1114
  observed: Schema.Boolean,
1045
- total: Schema.Int.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" })),
1046
- satisfied: Schema.Int.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" })),
1047
- missing: Schema.Int.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" })),
1048
- mismatch: Schema.Int.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" })),
1049
- unknown: Schema.Int.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" }))
1115
+ total: Schema.Int.check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1116
+ satisfied: Schema.Int.check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1117
+ missing: Schema.Int.check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1118
+ mismatch: Schema.Int.check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1119
+ unknown: Schema.Int.check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
1050
1120
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]),
1051
1121
  provider: Schema.Union([Schema.StructWithRest(Schema.Struct({
1052
1122
  identity: Schema.Literals([
@@ -1204,7 +1274,7 @@ const FlowRegistrationUpdatedEventSchema = Schema.StructWithRest(Schema.Struct({
1204
1274
  id: Schema.String.check(Schema.isPattern(new globalThis.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}$" })),
1205
1275
  flowId: Schema.String.check(Schema.isPattern(new globalThis.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}$" })),
1206
1276
  versionId: Schema.String.check(Schema.isPattern(new globalThis.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}$" })),
1207
- versionNumber: Schema.Int.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" })),
1277
+ versionNumber: Schema.Int.check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1208
1278
  wabaId: Schema.String,
1209
1279
  providerFlowId: Schema.Union([Schema.String, Schema.Null]),
1210
1280
  name: Schema.String,
@@ -1219,8 +1289,8 @@ const FlowRegistrationUpdatedEventSchema = Schema.StructWithRest(Schema.Struct({
1219
1289
  error: Schema.String,
1220
1290
  message: Schema.String,
1221
1291
  path: Schema.optionalKey(Schema.String),
1222
- line: Schema.optionalKey(Schema.Int.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" }))),
1223
- column: Schema.optionalKey(Schema.Int.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" })))
1292
+ line: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))),
1293
+ column: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })))
1224
1294
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))])),
1225
1295
  endpointAlerts: Schema.Array(Schema.StructWithRest(Schema.Struct({
1226
1296
  kind: Schema.String,
@@ -1392,11 +1462,11 @@ const MailboxActionPendingApprovalEventSchema = Schema.StructWithRest(Schema.Str
1392
1462
  "toolCall",
1393
1463
  "handoff"
1394
1464
  ]),
1395
- reviewRound: Schema.Int.check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
1465
+ reviewRound: Schema.Int.check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
1396
1466
  state: Schema.optionalKey(Schema.Literal("approvalRequired").annotate({ description: "Deliveries recorded before this field existed omit it." })),
1397
1467
  decision: Schema.StructWithRest(Schema.Struct({
1398
1468
  id: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^pdec_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^pdec_[0-9a-hjkmnp-tv-z]{16,24}$" })),
1399
- reviewRound: Schema.Int.check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
1469
+ reviewRound: Schema.Int.check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
1400
1470
  requirement: Schema.Literals([
1401
1471
  "run",
1402
1472
  "model",
@@ -1436,7 +1506,7 @@ const MailboxActionPendingApprovalEventSchema = Schema.StructWithRest(Schema.Str
1436
1506
  ]),
1437
1507
  id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
1438
1508
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]),
1439
- index: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
1509
+ index: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
1440
1510
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))]), Schema.Null])),
1441
1511
  guard: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
1442
1512
  guardReason: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
@@ -1517,7 +1587,7 @@ const MailboxActionResolvedEventSchema = Schema.StructWithRest(Schema.Struct({
1517
1587
  "toolCall",
1518
1588
  "handoff"
1519
1589
  ]),
1520
- reviewRound: Schema.Int.check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
1590
+ reviewRound: Schema.Int.check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
1521
1591
  threadId: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^thread_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({ expected: "a string matching the RegExp ^thread_[0-9a-hjkmnp-tv-z]{16,24}$" })), Schema.Null]),
1522
1592
  proposedBy: Schema.StructWithRest(Schema.Struct({
1523
1593
  kind: Schema.Literals([
@@ -1730,7 +1800,7 @@ const JourneyWebhookEventSchema = Schema.StructWithRest(Schema.Struct({
1730
1800
  data: Schema.StructWithRest(Schema.Struct({
1731
1801
  organizationId: Schema.String.check(Schema.isPattern(new globalThis.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}$" })),
1732
1802
  journeyId: Schema.String.check(Schema.isPattern(new globalThis.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}$" })),
1733
- journeyVersion: Schema.Int.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" })),
1803
+ journeyVersion: Schema.Int.check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
1734
1804
  runId: Schema.String.check(Schema.isPattern(new globalThis.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}$" })),
1735
1805
  nodeId: Schema.String,
1736
1806
  contact: Schema.StructWithRest(Schema.Struct({
@@ -12,6 +12,13 @@ export type MessageSentEvent = {
12
12
  readonly [x: string]: JsonValue;
13
13
  } | null;
14
14
  readonly cost?: number | null;
15
+ readonly estimatedProviderCost?: {
16
+ readonly amount: string;
17
+ readonly currency: string;
18
+ readonly category: "marketing" | "utility" | "authentication" | "service";
19
+ } & {
20
+ readonly [x: string]: JsonValue;
21
+ };
15
22
  readonly recipient?: string | null;
16
23
  readonly occurredAt?: string | null;
17
24
  readonly failureReason?: string | null;
@@ -54,6 +61,13 @@ export type MessageDeliveredEvent = {
54
61
  readonly [x: string]: JsonValue;
55
62
  } | null;
56
63
  readonly cost?: number | null;
64
+ readonly estimatedProviderCost?: {
65
+ readonly amount: string;
66
+ readonly currency: string;
67
+ readonly category: "marketing" | "utility" | "authentication" | "service";
68
+ } & {
69
+ readonly [x: string]: JsonValue;
70
+ };
57
71
  readonly recipient?: string | null;
58
72
  readonly occurredAt?: string | null;
59
73
  readonly failureReason?: string | null;
@@ -96,6 +110,13 @@ export type MessageReadEvent = {
96
110
  readonly [x: string]: JsonValue;
97
111
  } | null;
98
112
  readonly cost?: number | null;
113
+ readonly estimatedProviderCost?: {
114
+ readonly amount: string;
115
+ readonly currency: string;
116
+ readonly category: "marketing" | "utility" | "authentication" | "service";
117
+ } & {
118
+ readonly [x: string]: JsonValue;
119
+ };
99
120
  readonly recipient?: string | null;
100
121
  readonly occurredAt?: string | null;
101
122
  readonly failureReason?: string | null;
@@ -138,6 +159,13 @@ export type MessageFailedEvent = {
138
159
  readonly [x: string]: JsonValue;
139
160
  } | null;
140
161
  readonly cost?: number | null;
162
+ readonly estimatedProviderCost?: {
163
+ readonly amount: string;
164
+ readonly currency: string;
165
+ readonly category: "marketing" | "utility" | "authentication" | "service";
166
+ } & {
167
+ readonly [x: string]: JsonValue;
168
+ };
141
169
  readonly recipient?: string | null;
142
170
  readonly occurredAt?: string | null;
143
171
  readonly failureReason?: string | null;
@@ -180,6 +208,13 @@ export type MessageBouncedEvent = {
180
208
  readonly [x: string]: JsonValue;
181
209
  } | null;
182
210
  readonly cost?: number | null;
211
+ readonly estimatedProviderCost?: {
212
+ readonly amount: string;
213
+ readonly currency: string;
214
+ readonly category: "marketing" | "utility" | "authentication" | "service";
215
+ } & {
216
+ readonly [x: string]: JsonValue;
217
+ };
183
218
  readonly recipient: string;
184
219
  readonly occurredAt: string;
185
220
  readonly failureReason?: string | null;
@@ -222,6 +257,13 @@ export type MessageComplainedEvent = {
222
257
  readonly [x: string]: JsonValue;
223
258
  } | null;
224
259
  readonly cost?: number | null;
260
+ readonly estimatedProviderCost?: {
261
+ readonly amount: string;
262
+ readonly currency: string;
263
+ readonly category: "marketing" | "utility" | "authentication" | "service";
264
+ } & {
265
+ readonly [x: string]: JsonValue;
266
+ };
225
267
  readonly recipient: string;
226
268
  readonly occurredAt: string;
227
269
  readonly failureReason?: string | null;
@@ -264,6 +306,13 @@ export type MessageReceivedEvent = {
264
306
  readonly [x: string]: JsonValue;
265
307
  } | null;
266
308
  readonly cost?: number | null;
309
+ readonly estimatedProviderCost?: {
310
+ readonly amount: string;
311
+ readonly currency: string;
312
+ readonly category: "marketing" | "utility" | "authentication" | "service";
313
+ } & {
314
+ readonly [x: string]: JsonValue;
315
+ };
267
316
  readonly recipient?: string | null;
268
317
  readonly occurredAt?: string | null;
269
318
  readonly failureReason?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samva/webhooks",
3
- "version": "0.53.0",
3
+ "version": "0.55.0",
4
4
  "description": "Runtime-neutral verification for Samva webhook deliveries",
5
5
  "keywords": [
6
6
  "samva",
@@ -66,7 +66,7 @@
66
66
  "test:bundle": "slot --all 'bun run build && bun run scripts/check-bundle.ts \"$@\"'"
67
67
  },
68
68
  "devDependencies": {
69
- "@effect/tsgo": "0.69.0",
69
+ "@effect/tsgo": "0.74.1",
70
70
  "@effect/vitest": "^4.1.4",
71
71
  "@samva/openapi": "0.0.0",
72
72
  "ajv": "^8.20.0",
@@ -74,7 +74,7 @@
74
74
  "effect": "^4.1.4",
75
75
  "tsdown": "0.23.7",
76
76
  "typescript": "^7.0.2",
77
- "vitest": "5.1.1"
77
+ "vitest": "5.1.2"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "effect": "^4.0.4"