samva 0.18.0 → 0.20.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 +2 -0
- package/dist/client/sdk.gen.d.ts +94 -36
- package/dist/client/sdk.gen.js +269 -55
- package/dist/client/types.gen.d.ts +497 -106
- package/dist/effect/campaigns.d.ts +35 -3
- package/dist/effect/contact-groups.d.ts +39 -3
- package/dist/effect/contacts.d.ts +240 -17
- package/dist/effect/contacts.js +3 -1
- package/dist/effect/conversations.d.ts +11 -11
- package/dist/effect/email.d.ts +22 -6
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +12 -12
- package/dist/effect/extensions.d.ts +3 -3
- package/dist/effect/generated/campaigns.d.ts +73 -4
- package/dist/effect/generated/campaigns.js +18 -1
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/effect/generated/contacts.d.ts +608 -55
- package/dist/effect/generated/contacts.js +55 -10
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/effect/generated/conversations.js +1 -1
- package/dist/effect/generated/email.d.ts +162 -1
- package/dist/effect/generated/email.js +31 -11
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/effect/generated/extension-installations.js +6 -0
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/effect/generated/extensions.js +2 -0
- package/dist/effect/generated/journeys.d.ts +13 -61
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/mailboxes.d.ts +584 -78
- package/dist/effect/generated/mailboxes.js +65 -24
- package/dist/effect/generated/messages.d.ts +35 -1
- package/dist/effect/generated/messages.js +9 -2
- package/dist/effect/generated/namespaces.d.ts +432 -2
- package/dist/effect/generated/namespaces.js +91 -4
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/effect/generated/organizations.js +7 -3
- package/dist/effect/generated/shared.d.ts +104 -49
- package/dist/effect/generated/shared.js +51 -28
- package/dist/effect/generated/templates.d.ts +44 -1
- package/dist/effect/generated/templates.js +9 -3
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/effect/generated/unsubscribe-groups.js +75 -58
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -0
- package/dist/effect/generated-metadata.d.ts +22 -6
- package/dist/effect/generated-metadata.js +334 -329
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/mailboxes.d.ts +144 -12
- package/dist/effect/messages.d.ts +8 -0
- package/dist/effect/namespaces.d.ts +29 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/organizations.d.ts +4 -4
- package/dist/effect/templates.d.ts +12 -1
- package/dist/effect/unsubscribe-groups.d.ts +29 -18
- package/dist/effect/unsubscribe-groups.js +5 -5
- package/dist/effect/webhooks.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/mailbox-events.js +39 -11
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +2 -12
- package/dist/promises/errors.gen.js +1 -26
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +24 -4
- package/dist/service-map.js +26 -2
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyName, JourneyNodeId, JsonObject, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, Cursor, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyName, JourneyNodeId, JsonObject, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
5
5
|
export type JourneyStatus = "draft" | "active" | "paused" | "archived";
|
|
6
6
|
export declare const JourneyStatus: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
7
7
|
export type JourneyId = string & EffectBrand.Brand<"JourneyId">;
|
|
@@ -943,8 +943,8 @@ export type JourneysCreate401 = UnauthorizedError;
|
|
|
943
943
|
export declare const JourneysCreate401: typeof UnauthorizedError;
|
|
944
944
|
export type JourneysCreate402 = PaymentRequiredError;
|
|
945
945
|
export declare const JourneysCreate402: typeof PaymentRequiredError;
|
|
946
|
-
export type JourneysCreate403 = ForbiddenError;
|
|
947
|
-
export declare const JourneysCreate403: typeof ForbiddenError
|
|
946
|
+
export type JourneysCreate403 = FlagDisabledError | ForbiddenError;
|
|
947
|
+
export declare const JourneysCreate403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
948
948
|
export type JourneysCreate404 = ResourceNotFoundError;
|
|
949
949
|
export declare const JourneysCreate404: typeof ResourceNotFoundError;
|
|
950
950
|
export type JourneysCreate409 = ConflictError;
|
|
@@ -1895,8 +1895,8 @@ export type JourneysReplaceDraft401 = UnauthorizedError;
|
|
|
1895
1895
|
export declare const JourneysReplaceDraft401: typeof UnauthorizedError;
|
|
1896
1896
|
export type JourneysReplaceDraft402 = PaymentRequiredError;
|
|
1897
1897
|
export declare const JourneysReplaceDraft402: typeof PaymentRequiredError;
|
|
1898
|
-
export type JourneysReplaceDraft403 = ForbiddenError;
|
|
1899
|
-
export declare const JourneysReplaceDraft403: typeof ForbiddenError
|
|
1898
|
+
export type JourneysReplaceDraft403 = FlagDisabledError | ForbiddenError;
|
|
1899
|
+
export declare const JourneysReplaceDraft403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
1900
1900
|
export type JourneysReplaceDraft404 = ResourceNotFoundError;
|
|
1901
1901
|
export declare const JourneysReplaceDraft404: typeof ResourceNotFoundError;
|
|
1902
1902
|
export type JourneysReplaceDraft409 = ConflictError;
|
|
@@ -2283,8 +2283,8 @@ export type JourneysPublish401 = UnauthorizedError;
|
|
|
2283
2283
|
export declare const JourneysPublish401: typeof UnauthorizedError;
|
|
2284
2284
|
export type JourneysPublish402 = PaymentRequiredError;
|
|
2285
2285
|
export declare const JourneysPublish402: typeof PaymentRequiredError;
|
|
2286
|
-
export type JourneysPublish403 = ForbiddenError;
|
|
2287
|
-
export declare const JourneysPublish403: typeof ForbiddenError
|
|
2286
|
+
export type JourneysPublish403 = FlagDisabledError | ForbiddenError;
|
|
2287
|
+
export declare const JourneysPublish403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
2288
2288
|
export type JourneysPublish404 = ResourceNotFoundError;
|
|
2289
2289
|
export declare const JourneysPublish404: typeof ResourceNotFoundError;
|
|
2290
2290
|
export type JourneysPublish409 = ConflictError;
|
|
@@ -2476,8 +2476,8 @@ export type JourneysResume401 = UnauthorizedError;
|
|
|
2476
2476
|
export declare const JourneysResume401: typeof UnauthorizedError;
|
|
2477
2477
|
export type JourneysResume402 = PaymentRequiredError;
|
|
2478
2478
|
export declare const JourneysResume402: typeof PaymentRequiredError;
|
|
2479
|
-
export type JourneysResume403 = ForbiddenError;
|
|
2480
|
-
export declare const JourneysResume403: typeof ForbiddenError
|
|
2479
|
+
export type JourneysResume403 = FlagDisabledError | ForbiddenError;
|
|
2480
|
+
export declare const JourneysResume403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
2481
2481
|
export type JourneysResume404 = ResourceNotFoundError;
|
|
2482
2482
|
export declare const JourneysResume404: typeof ResourceNotFoundError;
|
|
2483
2483
|
export type JourneysResume409 = ConflictError;
|
|
@@ -3409,7 +3409,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3409
3409
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3410
3410
|
readonly createdAt: Schema.String;
|
|
3411
3411
|
readonly updatedAt: Schema.String;
|
|
3412
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
3412
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
3413
3413
|
readonly _tag: "BillingProviderError";
|
|
3414
3414
|
readonly message: string;
|
|
3415
3415
|
}, readonly [Schema.Struct<{
|
|
@@ -3441,18 +3441,6 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3441
3441
|
readonly message: Schema.String;
|
|
3442
3442
|
readonly resource: Schema.String;
|
|
3443
3443
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3444
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
3445
|
-
readonly _tag: "ForbiddenError";
|
|
3446
|
-
readonly message: string;
|
|
3447
|
-
}, readonly [Schema.Struct<{
|
|
3448
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
3449
|
-
readonly message: Schema.String;
|
|
3450
|
-
}>], {
|
|
3451
|
-
readonly _tag: "ForbiddenError";
|
|
3452
|
-
readonly message: string;
|
|
3453
|
-
}>, Schema.Struct<{
|
|
3454
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
3455
|
-
readonly message: Schema.String;
|
|
3456
3444
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
3457
3445
|
readonly _tag: "GatewayTimeoutError";
|
|
3458
3446
|
readonly message: string;
|
|
@@ -4769,7 +4757,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4769
4757
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4770
4758
|
readonly createdAt: Schema.String;
|
|
4771
4759
|
readonly updatedAt: Schema.String;
|
|
4772
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
4760
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
4773
4761
|
readonly _tag: "BillingProviderError";
|
|
4774
4762
|
readonly message: string;
|
|
4775
4763
|
}, readonly [Schema.Struct<{
|
|
@@ -4801,18 +4789,6 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4801
4789
|
readonly message: Schema.String;
|
|
4802
4790
|
readonly resource: Schema.String;
|
|
4803
4791
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4804
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
4805
|
-
readonly _tag: "ForbiddenError";
|
|
4806
|
-
readonly message: string;
|
|
4807
|
-
}, readonly [Schema.Struct<{
|
|
4808
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
4809
|
-
readonly message: Schema.String;
|
|
4810
|
-
}>], {
|
|
4811
|
-
readonly _tag: "ForbiddenError";
|
|
4812
|
-
readonly message: string;
|
|
4813
|
-
}>, Schema.Struct<{
|
|
4814
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
4815
|
-
readonly message: Schema.String;
|
|
4816
4792
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
4817
4793
|
readonly _tag: "GatewayTimeoutError";
|
|
4818
4794
|
readonly message: string;
|
|
@@ -5339,7 +5315,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5339
5315
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5340
5316
|
readonly createdAt: Schema.String;
|
|
5341
5317
|
readonly updatedAt: Schema.String;
|
|
5342
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
5318
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
5343
5319
|
readonly _tag: "BillingProviderError";
|
|
5344
5320
|
readonly message: string;
|
|
5345
5321
|
}, readonly [Schema.Struct<{
|
|
@@ -5371,18 +5347,6 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5371
5347
|
readonly message: Schema.String;
|
|
5372
5348
|
readonly resource: Schema.String;
|
|
5373
5349
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5374
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5375
|
-
readonly _tag: "ForbiddenError";
|
|
5376
|
-
readonly message: string;
|
|
5377
|
-
}, readonly [Schema.Struct<{
|
|
5378
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5379
|
-
readonly message: Schema.String;
|
|
5380
|
-
}>], {
|
|
5381
|
-
readonly _tag: "ForbiddenError";
|
|
5382
|
-
readonly message: string;
|
|
5383
|
-
}>, Schema.Struct<{
|
|
5384
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5385
|
-
readonly message: Schema.String;
|
|
5386
5350
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
5387
5351
|
readonly _tag: "GatewayTimeoutError";
|
|
5388
5352
|
readonly message: string;
|
|
@@ -5644,7 +5608,7 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5644
5608
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5645
5609
|
readonly createdAt: Schema.String;
|
|
5646
5610
|
readonly updatedAt: Schema.String;
|
|
5647
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
5611
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
5648
5612
|
readonly _tag: "BillingProviderError";
|
|
5649
5613
|
readonly message: string;
|
|
5650
5614
|
}, readonly [Schema.Struct<{
|
|
@@ -5676,18 +5640,6 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5676
5640
|
readonly message: Schema.String;
|
|
5677
5641
|
readonly resource: Schema.String;
|
|
5678
5642
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5679
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5680
|
-
readonly _tag: "ForbiddenError";
|
|
5681
|
-
readonly message: string;
|
|
5682
|
-
}, readonly [Schema.Struct<{
|
|
5683
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5684
|
-
readonly message: Schema.String;
|
|
5685
|
-
}>], {
|
|
5686
|
-
readonly _tag: "ForbiddenError";
|
|
5687
|
-
readonly message: string;
|
|
5688
|
-
}>, Schema.Struct<{
|
|
5689
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5690
|
-
readonly message: Schema.String;
|
|
5691
5643
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
5692
5644
|
readonly _tag: "GatewayTimeoutError";
|
|
5693
5645
|
readonly message: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyName, JourneyNodeId, JsonObject, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, Cursor, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyName, JourneyNodeId, JsonObject, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
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/journeys.ts
|
|
@@ -150,7 +150,7 @@ const JourneysCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
150
150
|
const JourneysCreate201 = Journey;
|
|
151
151
|
const JourneysCreate401 = UnauthorizedError;
|
|
152
152
|
const JourneysCreate402 = PaymentRequiredError;
|
|
153
|
-
const JourneysCreate403 = ForbiddenError;
|
|
153
|
+
const JourneysCreate403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
|
|
154
154
|
const JourneysCreate404 = ResourceNotFoundError;
|
|
155
155
|
const JourneysCreate409 = ConflictError;
|
|
156
156
|
const JourneysCreate422 = ValidationError;
|
|
@@ -200,7 +200,7 @@ const JourneysReplaceDraftRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
200
200
|
const JourneysReplaceDraft200 = Journey;
|
|
201
201
|
const JourneysReplaceDraft401 = UnauthorizedError;
|
|
202
202
|
const JourneysReplaceDraft402 = PaymentRequiredError;
|
|
203
|
-
const JourneysReplaceDraft403 = ForbiddenError;
|
|
203
|
+
const JourneysReplaceDraft403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
|
|
204
204
|
const JourneysReplaceDraft404 = ResourceNotFoundError;
|
|
205
205
|
const JourneysReplaceDraft409 = ConflictError;
|
|
206
206
|
const JourneysReplaceDraft422 = ValidationError;
|
|
@@ -221,7 +221,7 @@ const JourneysPublishRequestJson = /* @__PURE__ */ Schema.Struct({ revision: Sch
|
|
|
221
221
|
const JourneysPublish200 = Journey;
|
|
222
222
|
const JourneysPublish401 = UnauthorizedError;
|
|
223
223
|
const JourneysPublish402 = PaymentRequiredError;
|
|
224
|
-
const JourneysPublish403 = ForbiddenError;
|
|
224
|
+
const JourneysPublish403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
|
|
225
225
|
const JourneysPublish404 = ResourceNotFoundError;
|
|
226
226
|
const JourneysPublish409 = ConflictError;
|
|
227
227
|
const JourneysPublish422 = ValidationError;
|
|
@@ -232,7 +232,7 @@ const JourneysResumePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId }
|
|
|
232
232
|
const JourneysResume200 = Journey;
|
|
233
233
|
const JourneysResume401 = UnauthorizedError;
|
|
234
234
|
const JourneysResume402 = PaymentRequiredError;
|
|
235
|
-
const JourneysResume403 = ForbiddenError;
|
|
235
|
+
const JourneysResume403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
|
|
236
236
|
const JourneysResume404 = ResourceNotFoundError;
|
|
237
237
|
const JourneysResume409 = ConflictError;
|
|
238
238
|
const JourneysResume422 = ValidationError;
|