samva 0.48.0 → 0.49.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/client/sdk.gen.d.ts +224 -29
- package/dist/client/sdk.gen.js +541 -48
- package/dist/client/types.gen.d.ts +1291 -153
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/agents.d.ts +13 -13
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/api-keys.d.ts +11 -11
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/campaigns.d.ts +15 -15
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contacts.d.ts +25 -25
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
- package/dist/effect/descriptors/integrations-catalog.js +122 -0
- package/dist/effect/descriptors/mailboxes.d.ts +32 -12
- package/dist/effect/descriptors/mailboxes.js +32 -12
- package/dist/effect/email.d.ts +61 -61
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/generated/accounts.d.ts +1 -3
- package/dist/effect/generated/accounts.js +2 -7
- package/dist/effect/generated/api-keys.d.ts +15 -15
- package/dist/effect/generated/attachments.js +1 -1
- package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
- package/dist/effect/generated/integrations-catalog.js +578 -3
- package/dist/effect/generated/journeys.d.ts +9 -11
- package/dist/effect/generated/journeys.js +6 -12
- package/dist/effect/generated/mailboxes.d.ts +752 -463
- package/dist/effect/generated/mailboxes.js +163 -98
- package/dist/effect/generated/messages.d.ts +109 -4
- package/dist/effect/generated/messages.js +41 -8
- package/dist/effect/generated/shared.d.ts +203 -21
- package/dist/effect/generated/shared.js +58 -13
- package/dist/effect/generated/template-registrations.d.ts +35 -4
- package/dist/effect/generated/template-registrations.js +7 -4
- package/dist/effect/generated/templates.d.ts +1 -4
- package/dist/effect/generated/templates.js +2 -6
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -8
- package/dist/effect/generated/whoami.d.ts +4 -4
- package/dist/effect/generated-metadata.d.ts +114 -18
- package/dist/effect/generated-metadata.js +362 -340
- package/dist/effect/integrations-catalog.d.ts +228 -3
- package/dist/effect/integrations-catalog.js +29 -1
- package/dist/effect/integrations.d.ts +7 -7
- package/dist/effect/internal/client.d.ts +7 -3
- package/dist/effect/internal/operation.d.ts +10 -6
- package/dist/effect/internal/operation.js +3 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/mailboxes.d.ts +117 -91
- package/dist/effect/mailboxes.js +11 -7
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/namespaces.d.ts +11 -11
- package/dist/effect/newsletter-domains.d.ts +4 -4
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +5 -5
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/template-registrations.d.ts +9 -3
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topics.d.ts +9 -9
- package/dist/effect/webhooks.d.ts +15 -15
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-setup-links.d.ts +4 -4
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/inline-attachments.d.ts +0 -5
- package/dist/mailbox-events.d.ts +1 -5
- package/dist/mailbox-events.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -4
- package/dist/promises/client.js +8 -4
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +83 -9
- package/package.json +2 -2
|
@@ -1,9 +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, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
|
-
export type JourneyStatus = "draft" | "active" | "paused" | "archived";
|
|
6
|
-
export declare const JourneyStatus: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
7
5
|
export type JourneyRunStatus = "active" | "paused" | "exited" | "failed";
|
|
8
6
|
export declare const JourneyRunStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
|
|
9
7
|
export type JourneyRunId = string & EffectBrand.Brand<"JourneyRunId">;
|
|
@@ -34,6 +32,14 @@ export declare const JourneyRunTrigger: Schema.Struct<{
|
|
|
34
32
|
readonly eventName: Schema.String;
|
|
35
33
|
readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
36
34
|
}>;
|
|
35
|
+
export type DeleteJourneyResponse = {
|
|
36
|
+
readonly id: JourneyId;
|
|
37
|
+
readonly deleted: true;
|
|
38
|
+
};
|
|
39
|
+
export declare const DeleteJourneyResponse: Schema.Struct<{
|
|
40
|
+
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
41
|
+
readonly deleted: Schema.Literal<true>;
|
|
42
|
+
}>;
|
|
37
43
|
export type JourneyListItem = {
|
|
38
44
|
readonly id: JourneyId;
|
|
39
45
|
readonly name: string;
|
|
@@ -52,14 +58,6 @@ export declare const JourneyListItem: Schema.Struct<{
|
|
|
52
58
|
readonly createdAt: Schema.String;
|
|
53
59
|
readonly updatedAt: Schema.String;
|
|
54
60
|
}>;
|
|
55
|
-
export type DeleteJourneyResponse = {
|
|
56
|
-
readonly id: JourneyId;
|
|
57
|
-
readonly deleted: true;
|
|
58
|
-
};
|
|
59
|
-
export declare const DeleteJourneyResponse: Schema.Struct<{
|
|
60
|
-
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
61
|
-
readonly deleted: Schema.Literal<true>;
|
|
62
|
-
}>;
|
|
63
61
|
export type JourneyNodeStats = {
|
|
64
62
|
readonly nodeId: JourneyNodeId;
|
|
65
63
|
readonly current: number;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, 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
|
// src/effect/generated/journeys.ts
|
|
5
|
-
const JourneyStatus = /* @__PURE__ */ (() => Schema.Union([
|
|
6
|
-
Schema.Literal("draft"),
|
|
7
|
-
Schema.Literal("active"),
|
|
8
|
-
Schema.Literal("paused"),
|
|
9
|
-
Schema.Literal("archived")
|
|
10
|
-
]).annotate({ identifier: "JourneyStatus" }))();
|
|
11
5
|
const JourneyRunStatus = /* @__PURE__ */ (() => Schema.Union([
|
|
12
6
|
Schema.Literal("active"),
|
|
13
7
|
Schema.Literal("paused"),
|
|
@@ -44,6 +38,10 @@ const JourneyRunTrigger = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
44
38
|
eventName: Schema.String,
|
|
45
39
|
properties: JsonObject
|
|
46
40
|
}).annotate({ identifier: "JourneyRunTrigger" }))();
|
|
41
|
+
const DeleteJourneyResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
42
|
+
id: JourneyId,
|
|
43
|
+
deleted: Schema.Literal(true)
|
|
44
|
+
}).annotate({ identifier: "DeleteJourneyResponse" }))();
|
|
47
45
|
const JourneyListItem = /* @__PURE__ */ (() => Schema.Struct({
|
|
48
46
|
id: JourneyId,
|
|
49
47
|
name: Schema.String,
|
|
@@ -53,10 +51,6 @@ const JourneyListItem = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
53
51
|
createdAt: Schema.String,
|
|
54
52
|
updatedAt: Schema.String
|
|
55
53
|
}).annotate({ identifier: "JourneyListItem" }))();
|
|
56
|
-
const DeleteJourneyResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
57
|
-
id: JourneyId,
|
|
58
|
-
deleted: Schema.Literal(true)
|
|
59
|
-
}).annotate({ identifier: "DeleteJourneyResponse" }))();
|
|
60
54
|
const JourneyNodeStats = /* @__PURE__ */ (() => Schema.Struct({
|
|
61
55
|
nodeId: JourneyNodeId,
|
|
62
56
|
current: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).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" })),
|
|
@@ -488,6 +482,6 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
488
482
|
JourneysGetVersion504.pipe(HttpApiSchema.status(504))
|
|
489
483
|
]
|
|
490
484
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.getVersion").annotate(OpenApi.Summary, "Get a published journey version").annotate(OpenApi.Description, "Returns the immutable definition of one published version.")).annotate(OpenApi.Description, "Event-triggered, per-contact email flows defined as versioned node graphs") {};
|
|
491
|
-
export { DeleteJourneyResponse, Journey, JourneyListItem, JourneyNodeStats, JourneyPage, JourneyRun, JourneyRunCounts, JourneyRunDetail, JourneyRunExitReason, JourneyRunId, JourneyRunPage, JourneyRunStatus, JourneyRunStep, JourneyRunStepOutcome, JourneyRunTrigger, JourneyStats,
|
|
485
|
+
export { DeleteJourneyResponse, Journey, JourneyListItem, JourneyNodeStats, JourneyPage, JourneyRun, JourneyRunCounts, JourneyRunDetail, JourneyRunExitReason, JourneyRunId, JourneyRunPage, JourneyRunStatus, JourneyRunStep, JourneyRunStepOutcome, JourneyRunTrigger, JourneyStats, JourneyVersion, JourneysArchive200, JourneysArchive400, JourneysArchive401, JourneysArchive403, JourneysArchive404, JourneysArchive409, JourneysArchive422, JourneysArchive500, JourneysArchive504, JourneysArchivePathParams, JourneysCreate201, JourneysCreate400, JourneysCreate401, JourneysCreate402, JourneysCreate403, JourneysCreate404, JourneysCreate409, JourneysCreate422, JourneysCreate500, JourneysCreate502, JourneysCreate504, JourneysCreateRequestJson, JourneysGet200, JourneysGet400, JourneysGet401, JourneysGet403, JourneysGet404, JourneysGet422, JourneysGet500, JourneysGet504, JourneysGetPathParams, JourneysGetRun200, JourneysGetRun400, JourneysGetRun401, JourneysGetRun403, JourneysGetRun404, JourneysGetRun422, JourneysGetRun500, JourneysGetRun504, JourneysGetRunPathParams, JourneysGetVersion200, JourneysGetVersion400, JourneysGetVersion401, JourneysGetVersion403, JourneysGetVersion404, JourneysGetVersion422, JourneysGetVersion500, JourneysGetVersion504, JourneysGetVersionPathParams, JourneysGroup, JourneysList200, JourneysList400, JourneysList401, JourneysList403, JourneysList422, JourneysList500, JourneysList504, JourneysListQuery, JourneysListRuns200, JourneysListRuns400, JourneysListRuns401, JourneysListRuns403, JourneysListRuns404, JourneysListRuns422, JourneysListRuns500, JourneysListRuns504, JourneysListRunsPathParams, JourneysListRunsQuery, JourneysPause200, JourneysPause400, JourneysPause401, JourneysPause403, JourneysPause404, JourneysPause409, JourneysPause422, JourneysPause500, JourneysPause504, JourneysPausePathParams, JourneysPublish200, JourneysPublish400, JourneysPublish401, JourneysPublish402, JourneysPublish403, JourneysPublish404, JourneysPublish409, JourneysPublish422, JourneysPublish500, JourneysPublish502, JourneysPublish504, JourneysPublishPathParams, JourneysPublishRequestJson, JourneysRemove200, JourneysRemove400, JourneysRemove401, JourneysRemove403, JourneysRemove404, JourneysRemove409, JourneysRemove422, JourneysRemove500, JourneysRemove504, JourneysRemovePathParams, JourneysReplaceDraft200, JourneysReplaceDraft400, JourneysReplaceDraft401, JourneysReplaceDraft402, JourneysReplaceDraft403, JourneysReplaceDraft404, JourneysReplaceDraft409, JourneysReplaceDraft422, JourneysReplaceDraft500, JourneysReplaceDraft502, JourneysReplaceDraft504, JourneysReplaceDraftPathParams, JourneysReplaceDraftRequestJson, JourneysResume200, JourneysResume400, JourneysResume401, JourneysResume402, JourneysResume403, JourneysResume404, JourneysResume409, JourneysResume422, JourneysResume500, JourneysResume502, JourneysResume504, JourneysResumePathParams, JourneysStats200, JourneysStats400, JourneysStats401, JourneysStats403, JourneysStats404, JourneysStats422, JourneysStats500, JourneysStats504, JourneysStatsPathParams, JourneysStatsQuery, JourneysUpdate200, JourneysUpdate400, JourneysUpdate401, JourneysUpdate403, JourneysUpdate404, JourneysUpdate422, JourneysUpdate500, JourneysUpdate504, JourneysUpdatePathParams, JourneysUpdateRequestJson };
|
|
492
486
|
|
|
493
487
|
//# sourceMappingURL=journeys.js.map
|