samva 0.28.0 → 0.29.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/AGENTS.md +8 -0
- package/README.md +2 -0
- package/dist/client/sdk.gen.d.ts +156 -1
- package/dist/client/sdk.gen.js +475 -1
- package/dist/client/types.gen.d.ts +1653 -183
- package/dist/effect/campaigns.d.ts +32 -0
- package/dist/effect/generated/agents.js +36 -36
- package/dist/effect/generated/analytics.js +24 -24
- package/dist/effect/generated/api-keys.js +29 -29
- package/dist/effect/generated/attachments.js +13 -13
- package/dist/effect/generated/brands.js +13 -13
- package/dist/effect/generated/campaigns.d.ts +178 -60
- package/dist/effect/generated/campaigns.js +92 -104
- package/dist/effect/generated/contact-events.js +5 -5
- package/dist/effect/generated/contact-groups.js +38 -38
- package/dist/effect/generated/contacts.js +93 -93
- package/dist/effect/generated/conversations.js +38 -38
- package/dist/effect/generated/custom-fields.js +15 -15
- package/dist/effect/generated/email.js +225 -225
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/extension-installations.js +35 -35
- package/dist/effect/generated/extensions.js +24 -24
- package/dist/effect/generated/feedback.js +6 -6
- package/dist/effect/generated/index.d.ts +5 -1
- package/dist/effect/generated/journeys.js +67 -67
- package/dist/effect/generated/mailboxes.js +286 -286
- package/dist/effect/generated/media.js +16 -16
- package/dist/effect/generated/messages.js +65 -65
- package/dist/effect/generated/namespaces.js +27 -27
- package/dist/effect/generated/operations.js +6 -6
- package/dist/effect/generated/organizations.js +19 -19
- package/dist/effect/generated/publication-domains.d.ts +548 -0
- package/dist/effect/generated/publication-domains.js +163 -0
- package/dist/effect/generated/scheduled-messages.js +25 -25
- package/dist/effect/generated/shared.d.ts +142 -30
- package/dist/effect/generated/shared.js +356 -328
- package/dist/effect/generated/subscriptions.js +10 -10
- package/dist/effect/generated/templates.d.ts +172 -15
- package/dist/effect/generated/templates.js +207 -162
- package/dist/effect/generated/topic-forms.js +21 -21
- package/dist/effect/generated/topic-issues.d.ts +2995 -0
- package/dist/effect/generated/topic-issues.js +985 -0
- package/dist/effect/generated/topics.d.ts +61 -1
- package/dist/effect/generated/topics.js +39 -31
- package/dist/effect/generated/webhooks.js +50 -50
- package/dist/effect/generated/whoami.js +10 -10
- package/dist/effect/generated-metadata.d.ts +70 -0
- package/dist/effect/generated-metadata.js +57 -13
- package/dist/effect/index.d.ts +2 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/journeys.d.ts +112 -112
- package/dist/effect/mailboxes.d.ts +78 -78
- package/dist/effect/publication-domains.d.ts +14 -0
- package/dist/effect/publication-domains.js +17 -0
- package/dist/effect/topic-issues.d.ts +57 -0
- package/dist/effect/topic-issues.js +33 -0
- package/dist/effect/topics.d.ts +6 -2
- package/dist/package.js +1 -1
- package/dist/promises/index.d.ts +5 -1
- package/dist/promises/index.js +5 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +74 -0
- package/dist/service-map.js +56 -0
- package/package.json +11 -3
|
@@ -2,11 +2,11 @@ import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, Forb
|
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/brands.ts
|
|
5
|
-
const BrandId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^brand_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
5
|
+
const BrandId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^brand_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
6
6
|
expected: "a string matching the RegExp ^brand_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
7
7
|
identifier: "BrandId"
|
|
8
|
-
})).pipe(Schema.brand("BrandId"));
|
|
9
|
-
const Brand = /* @__PURE__ */ Schema.Struct({
|
|
8
|
+
})).pipe(Schema.brand("BrandId")))();
|
|
9
|
+
const Brand = /* @__PURE__ */ (() => Schema.Struct({
|
|
10
10
|
id: BrandId,
|
|
11
11
|
slug: Schema.String.annotate({ description: "The brand's handle, unique in the organization; `samva:brand/<slug>` names it." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
|
|
12
12
|
name: Schema.String,
|
|
@@ -17,22 +17,22 @@ const Brand = /* @__PURE__ */ Schema.Struct({
|
|
|
17
17
|
digest: Schema.String.annotate({ description: "SHA-256 of the brand's css, assets and footer. A publication built against a different digest predates the brand's current content." }),
|
|
18
18
|
createdAt: Schema.String,
|
|
19
19
|
updatedAt: Schema.String
|
|
20
|
-
}).annotate({ identifier: "Brand" });
|
|
21
|
-
const BrandList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Brand) }).annotate({ identifier: "BrandList" });
|
|
20
|
+
}).annotate({ identifier: "Brand" }))();
|
|
21
|
+
const BrandList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(Brand) }).annotate({ identifier: "BrandList" }))();
|
|
22
22
|
const BrandsList200 = BrandList;
|
|
23
23
|
const BrandsList401 = UnauthorizedError;
|
|
24
24
|
const BrandsList403 = ForbiddenError;
|
|
25
25
|
const BrandsList422 = ValidationError;
|
|
26
26
|
const BrandsList500 = InternalError;
|
|
27
27
|
const BrandsList504 = GatewayTimeoutError;
|
|
28
|
-
const BrandsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
28
|
+
const BrandsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
29
29
|
slug: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
|
|
30
30
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })),
|
|
31
31
|
css: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(32768).annotate({ expected: "a string with at most 32768 code points" })).check(Schema.isMaxLength(32768).annotate({ expected: "a value with a length of at most 32768" })), Schema.Null])),
|
|
32
32
|
assets: Schema.optionalKey(Schema.Union([BrandAssets, Schema.Null])),
|
|
33
33
|
footer: Schema.optionalKey(Schema.Union([BrandFooter, Schema.Null])),
|
|
34
34
|
isDefault: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
35
|
-
});
|
|
35
|
+
}))();
|
|
36
36
|
const BrandsCreate201 = Brand;
|
|
37
37
|
const BrandsCreate401 = UnauthorizedError;
|
|
38
38
|
const BrandsCreate403 = ForbiddenError;
|
|
@@ -40,7 +40,7 @@ const BrandsCreate409 = ConflictError;
|
|
|
40
40
|
const BrandsCreate422 = ValidationError;
|
|
41
41
|
const BrandsCreate500 = InternalError;
|
|
42
42
|
const BrandsCreate504 = GatewayTimeoutError;
|
|
43
|
-
const BrandsGetPathParams = /* @__PURE__ */ Schema.Struct({ slug: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) });
|
|
43
|
+
const BrandsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ slug: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) }))();
|
|
44
44
|
const BrandsGet200 = Brand;
|
|
45
45
|
const BrandsGet401 = UnauthorizedError;
|
|
46
46
|
const BrandsGet403 = ForbiddenError;
|
|
@@ -48,7 +48,7 @@ const BrandsGet404 = ResourceNotFoundError;
|
|
|
48
48
|
const BrandsGet422 = ValidationError;
|
|
49
49
|
const BrandsGet500 = InternalError;
|
|
50
50
|
const BrandsGet504 = GatewayTimeoutError;
|
|
51
|
-
const BrandsRemovePathParams = /* @__PURE__ */ Schema.Struct({ slug: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) });
|
|
51
|
+
const BrandsRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ slug: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) }))();
|
|
52
52
|
const BrandsRemove200 = SuccessResponse;
|
|
53
53
|
const BrandsRemove401 = UnauthorizedError;
|
|
54
54
|
const BrandsRemove403 = ForbiddenError;
|
|
@@ -57,14 +57,14 @@ const BrandsRemove409 = ConflictError;
|
|
|
57
57
|
const BrandsRemove422 = ValidationError;
|
|
58
58
|
const BrandsRemove500 = InternalError;
|
|
59
59
|
const BrandsRemove504 = GatewayTimeoutError;
|
|
60
|
-
const BrandsUpdatePathParams = /* @__PURE__ */ Schema.Struct({ slug: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) });
|
|
61
|
-
const BrandsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
60
|
+
const BrandsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ slug: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) }))();
|
|
61
|
+
const BrandsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
62
62
|
newSlug: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Renames the brand. Projects importing `samva:brand/<old slug>` stop building until they import the new slug." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })), Schema.Null])),
|
|
63
63
|
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
64
64
|
css: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(32768).annotate({ expected: "a string with at most 32768 code points" })).check(Schema.isMaxLength(32768).annotate({ expected: "a value with a length of at most 32768" })), Schema.Null])),
|
|
65
65
|
assets: Schema.optionalKey(Schema.Union([BrandAssets, Schema.Null])),
|
|
66
66
|
footer: Schema.optionalKey(Schema.Union([BrandFooter, Schema.Null]))
|
|
67
|
-
});
|
|
67
|
+
}))();
|
|
68
68
|
const BrandsUpdate200 = Brand;
|
|
69
69
|
const BrandsUpdate401 = UnauthorizedError;
|
|
70
70
|
const BrandsUpdate403 = ForbiddenError;
|
|
@@ -73,7 +73,7 @@ const BrandsUpdate409 = ConflictError;
|
|
|
73
73
|
const BrandsUpdate422 = ValidationError;
|
|
74
74
|
const BrandsUpdate500 = InternalError;
|
|
75
75
|
const BrandsUpdate504 = GatewayTimeoutError;
|
|
76
|
-
const BrandsSetDefaultPathParams = /* @__PURE__ */ Schema.Struct({ slug: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) });
|
|
76
|
+
const BrandsSetDefaultPathParams = /* @__PURE__ */ (() => Schema.Struct({ slug: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) }))();
|
|
77
77
|
const BrandsSetDefault200 = Brand;
|
|
78
78
|
const BrandsSetDefault401 = UnauthorizedError;
|
|
79
79
|
const BrandsSetDefault403 = ForbiddenError;
|