samva 0.39.0 → 0.40.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/README.md +1 -1
- package/dist/effect/generated/shared.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.js +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -452,7 +452,7 @@ const campaign = await samva.campaigns.create({
|
|
|
452
452
|
email: { subject: "What's new", html: "<h1>Updates</h1>" },
|
|
453
453
|
},
|
|
454
454
|
audience: {
|
|
455
|
-
topicId: "
|
|
455
|
+
topicId: "tpc_1234567890abcdef",
|
|
456
456
|
includeTags: ["subscribers"],
|
|
457
457
|
excludeTags: ["bounced"],
|
|
458
458
|
},
|
|
@@ -211,8 +211,8 @@ const RenderTimeZone = /* @__PURE__ */ (() => Schema.String.check(Schema.isMaxCo
|
|
|
211
211
|
identifier: "RenderTimeZone"
|
|
212
212
|
})).check(Schema.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })))();
|
|
213
213
|
const StoredReplyToAddresses = /* @__PURE__ */ (() => Schema.Union([Schema.Array(Schema.String), Schema.Null]).annotate({ identifier: "StoredReplyToAddresses" }))();
|
|
214
|
-
const TopicId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
215
|
-
expected: "a string matching the RegExp ^
|
|
214
|
+
const TopicId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tpc_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
215
|
+
expected: "a string matching the RegExp ^tpc_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
216
216
|
identifier: "TopicId"
|
|
217
217
|
})).pipe(Schema.brand("TopicId")))();
|
|
218
218
|
const EmailTrackingOverrideV1 = /* @__PURE__ */ (() => Schema.Struct({
|
package/dist/package.js
CHANGED
|
@@ -557,7 +557,7 @@ const payloadSchemas = {
|
|
|
557
557
|
},
|
|
558
558
|
topicId: { anyOf: [{
|
|
559
559
|
type: "string",
|
|
560
|
-
pattern: "^
|
|
560
|
+
pattern: "^tpc_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
561
561
|
"x-samva-brand": "TopicId"
|
|
562
562
|
}, { type: "null" }] }
|
|
563
563
|
},
|
|
@@ -1024,7 +1024,7 @@ const payloadSchemas = {
|
|
|
1024
1024
|
},
|
|
1025
1025
|
topicId: { anyOf: [{
|
|
1026
1026
|
type: "string",
|
|
1027
|
-
pattern: "^
|
|
1027
|
+
pattern: "^tpc_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
1028
1028
|
"x-samva-brand": "TopicId"
|
|
1029
1029
|
}, { type: "null" }] }
|
|
1030
1030
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samva",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "TypeScript SDK for the Samva email and WhatsApp API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
@@ -237,17 +237,17 @@
|
|
|
237
237
|
"typecheck": "effect-tsgo tsrs --noEmit && effect-tsgo tsrs --noEmit -p codegen/tsconfig.json && effect-tsgo tsrs --noEmit -p tests/tsconfig.json && effect-tsgo tsrs --noEmit --project tests/parity/tsconfig.json"
|
|
238
238
|
},
|
|
239
239
|
"dependencies": {
|
|
240
|
-
"@samva/webhooks": "0.
|
|
240
|
+
"@samva/webhooks": "0.40.0"
|
|
241
241
|
},
|
|
242
242
|
"devDependencies": {
|
|
243
243
|
"@effect/openapi-generator": "^4.1.2",
|
|
244
244
|
"@effect/platform-node": "^4.1.2",
|
|
245
|
-
"@effect/tsgo": "0.
|
|
245
|
+
"@effect/tsgo": "0.67.5",
|
|
246
246
|
"@effect/vitest": "^4.1.2",
|
|
247
247
|
"@samva/openapi": "0.0.0",
|
|
248
|
-
"@types/node": "^26.6.
|
|
248
|
+
"@types/node": "^26.6.6",
|
|
249
249
|
"effect": "^4.1.2",
|
|
250
|
-
"tsdown": "0.23.
|
|
250
|
+
"tsdown": "0.23.7",
|
|
251
251
|
"typescript": "^7.0.2",
|
|
252
252
|
"vitest": "5.0.3"
|
|
253
253
|
},
|