samva 0.16.0 → 0.18.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 +9 -1
- package/README.md +57 -1
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +174 -3
- package/dist/{promises-KrA2nSLg.js → client/sdk.gen.js} +464 -2289
- package/dist/client/types.gen.d.ts +1126 -11
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +11 -9
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +13 -12
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +9 -7
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +12 -10
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +17 -15
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +4 -5
- package/dist/effect/contact-groups.d.ts +14 -14
- package/dist/effect/contact-groups.js +15 -13
- package/dist/effect/contacts.d.ts +77 -25
- package/dist/effect/contacts.js +27 -22
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +18 -16
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +9 -7
- package/dist/effect/email.d.ts +78 -77
- package/dist/effect/email.js +68 -65
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +17 -0
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +14 -12
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +10 -8
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +6 -5
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/analytics.js +188 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/api-keys.js +249 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/attachments.js +125 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/brands.js +155 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/campaigns.js +491 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contact-groups.js +419 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/contacts.js +709 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/conversations.js +461 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/custom-fields.js +162 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/email.js +2347 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/events.js +70 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extension-installations.js +382 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/extensions.js +203 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/feedback.js +43 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/journeys.js +464 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/mailboxes.js +2312 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/media.js +181 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/messages.js +671 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/namespaces.js +135 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/operations.js +80 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/organizations.js +231 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/scheduled-messages.js +190 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/shared.js +1053 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/subscriptions.js +61 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/templates.js +2214 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/unsubscribe-groups.js +267 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/webhooks.js +500 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated/whoami.js +54 -0
- package/dist/effect/generated-metadata.d.ts +1627 -0
- package/dist/effect/generated-metadata.js +919 -0
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +33 -31
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +39 -0
- package/dist/effect/mailboxes.d.ts +80 -80
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -8
- package/dist/effect/messages.d.ts +16 -16
- package/dist/effect/messages.js +15 -12
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +10 -8
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +8 -6
- package/dist/effect/organizations.d.ts +7 -7
- package/dist/effect/organizations.js +12 -10
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/effect/runtime.js +25 -0
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +10 -8
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +5 -4
- package/dist/effect/templates.d.ts +40 -40
- package/dist/effect/templates.js +39 -37
- package/dist/effect/unsubscribe-groups.d.ts +11 -11
- package/dist/effect/unsubscribe-groups.js +14 -12
- package/dist/effect/webhooks.d.ts +23 -23
- package/dist/effect/webhooks.js +16 -14
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +5 -4
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Cegg6tTF.js → inline-attachments.js} +13 -7
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +2 -2
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.d.ts +7 -3
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +85 -0
- package/dist/{operation-BTXjPrwf.js → service-map.js} +58 -219
- package/package.json +17 -3
- package/dist/categories-DV51kr2H.js +0 -187
- package/dist/client-BMUew5Wp.js +0 -13794
- package/dist/effect/generated.d.ts +0 -64004
- package/dist/mailboxes-Thp5z0oX.js +0 -161
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyName, JourneyNodeId, JsonObject, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
|
+
import * as Schema from "effect/Schema";
|
|
4
|
+
//#region 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
|
+
const JourneyId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
12
|
+
expected: "a string matching the RegExp ^jrny_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
13
|
+
identifier: "JourneyId"
|
|
14
|
+
})).pipe(Schema.brand("JourneyId"));
|
|
15
|
+
const JourneyRunStatus = /* @__PURE__ */ Schema.Union([
|
|
16
|
+
Schema.Literal("active"),
|
|
17
|
+
Schema.Literal("paused"),
|
|
18
|
+
Schema.Literal("exited"),
|
|
19
|
+
Schema.Literal("failed")
|
|
20
|
+
]).annotate({ identifier: "JourneyRunStatus" });
|
|
21
|
+
const JourneyRunId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^jrun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
22
|
+
expected: "a string matching the RegExp ^jrun_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
23
|
+
identifier: "JourneyRunId"
|
|
24
|
+
})).pipe(Schema.brand("JourneyRunId"));
|
|
25
|
+
const JourneyRunExitReason = /* @__PURE__ */ Schema.Union([
|
|
26
|
+
Schema.Literal("completed"),
|
|
27
|
+
Schema.Literal("goal"),
|
|
28
|
+
Schema.Literal("archived")
|
|
29
|
+
]).annotate({ identifier: "JourneyRunExitReason" });
|
|
30
|
+
const JourneyRunStepOutcome = /* @__PURE__ */ Schema.Union([
|
|
31
|
+
Schema.Literal("completed"),
|
|
32
|
+
Schema.Literal("matched"),
|
|
33
|
+
Schema.Literal("timed_out"),
|
|
34
|
+
Schema.Literal("goal"),
|
|
35
|
+
Schema.Literal("archived"),
|
|
36
|
+
Schema.Literal("failed")
|
|
37
|
+
]).annotate({ identifier: "JourneyRunStepOutcome" });
|
|
38
|
+
const JourneyRunCounts = /* @__PURE__ */ Schema.Struct({
|
|
39
|
+
active: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
40
|
+
paused: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
41
|
+
exited: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
42
|
+
failed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
43
|
+
}).annotate({ identifier: "JourneyRunCounts" });
|
|
44
|
+
const JourneyRunTrigger = /* @__PURE__ */ Schema.Struct({
|
|
45
|
+
eventId: Schema.String,
|
|
46
|
+
eventName: Schema.String,
|
|
47
|
+
properties: JsonObject
|
|
48
|
+
}).annotate({ identifier: "JourneyRunTrigger" });
|
|
49
|
+
const JourneyListItem = /* @__PURE__ */ Schema.Struct({
|
|
50
|
+
id: JourneyId,
|
|
51
|
+
name: Schema.String,
|
|
52
|
+
status: JourneyStatus,
|
|
53
|
+
publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })), Schema.Null]),
|
|
54
|
+
publishedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
55
|
+
createdAt: Schema.String,
|
|
56
|
+
updatedAt: Schema.String
|
|
57
|
+
}).annotate({ identifier: "JourneyListItem" });
|
|
58
|
+
const DeleteJourneyResponse = /* @__PURE__ */ Schema.Struct({
|
|
59
|
+
id: JourneyId,
|
|
60
|
+
deleted: Schema.Literal(true)
|
|
61
|
+
}).annotate({ identifier: "DeleteJourneyResponse" });
|
|
62
|
+
const JourneyNodeStats = /* @__PURE__ */ Schema.Struct({
|
|
63
|
+
nodeId: JourneyNodeId,
|
|
64
|
+
current: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
65
|
+
entered: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
66
|
+
}).annotate({ identifier: "JourneyNodeStats" });
|
|
67
|
+
const JourneyRunStep = /* @__PURE__ */ Schema.Struct({
|
|
68
|
+
nodeId: JourneyNodeId,
|
|
69
|
+
type: Schema.String,
|
|
70
|
+
enteredAt: Schema.String,
|
|
71
|
+
completedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
72
|
+
outcome: Schema.Union([JourneyRunStepOutcome, Schema.Null]),
|
|
73
|
+
nextNodeId: Schema.Union([JourneyNodeId, Schema.Null]),
|
|
74
|
+
messageId: Schema.Union([MessageId, Schema.Null]),
|
|
75
|
+
error: Schema.Union([Schema.String, Schema.Null])
|
|
76
|
+
}).annotate({ identifier: "JourneyRunStep" });
|
|
77
|
+
const JourneyRun = /* @__PURE__ */ Schema.Struct({
|
|
78
|
+
id: JourneyRunId,
|
|
79
|
+
journeyId: JourneyId,
|
|
80
|
+
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
81
|
+
contactId: ContactId,
|
|
82
|
+
status: JourneyRunStatus,
|
|
83
|
+
exitReason: Schema.Union([JourneyRunExitReason, Schema.Null]),
|
|
84
|
+
failureReason: Schema.Union([Schema.String, Schema.Null]),
|
|
85
|
+
currentNodeId: Schema.Union([JourneyNodeId, Schema.Null]),
|
|
86
|
+
trigger: JourneyRunTrigger,
|
|
87
|
+
enteredAt: Schema.String,
|
|
88
|
+
endedAt: Schema.Union([Schema.String, Schema.Null])
|
|
89
|
+
}).annotate({ identifier: "JourneyRun" });
|
|
90
|
+
const JourneyPage = /* @__PURE__ */ Schema.Struct({
|
|
91
|
+
items: Schema.Array(JourneyListItem),
|
|
92
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
93
|
+
}).annotate({ identifier: "JourneyPage" });
|
|
94
|
+
const JourneyStats = /* @__PURE__ */ Schema.Struct({
|
|
95
|
+
journeyId: JourneyId,
|
|
96
|
+
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
97
|
+
runs: JourneyRunCounts,
|
|
98
|
+
nodes: Schema.Array(JourneyNodeStats)
|
|
99
|
+
}).annotate({ identifier: "JourneyStats" });
|
|
100
|
+
const JourneyRunDetail = /* @__PURE__ */ Schema.Struct({
|
|
101
|
+
id: JourneyRunId,
|
|
102
|
+
journeyId: JourneyId,
|
|
103
|
+
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
104
|
+
contactId: ContactId,
|
|
105
|
+
status: JourneyRunStatus,
|
|
106
|
+
exitReason: Schema.Union([JourneyRunExitReason, Schema.Null]),
|
|
107
|
+
failureReason: Schema.Union([Schema.String, Schema.Null]),
|
|
108
|
+
currentNodeId: Schema.Union([JourneyNodeId, Schema.Null]),
|
|
109
|
+
trigger: JourneyRunTrigger,
|
|
110
|
+
enteredAt: Schema.String,
|
|
111
|
+
endedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
112
|
+
steps: Schema.Array(JourneyRunStep)
|
|
113
|
+
}).annotate({ identifier: "JourneyRunDetail" });
|
|
114
|
+
const JourneyRunPage = /* @__PURE__ */ Schema.Struct({
|
|
115
|
+
items: Schema.Array(JourneyRun),
|
|
116
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
117
|
+
}).annotate({ identifier: "JourneyRunPage" });
|
|
118
|
+
const Journey = /* @__PURE__ */ Schema.Struct({
|
|
119
|
+
id: JourneyId,
|
|
120
|
+
name: Schema.String,
|
|
121
|
+
status: JourneyStatus,
|
|
122
|
+
revision: Schema.String,
|
|
123
|
+
draft: JourneyDefinition,
|
|
124
|
+
publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })), Schema.Null]),
|
|
125
|
+
publishedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
126
|
+
createdAt: Schema.String,
|
|
127
|
+
updatedAt: Schema.String
|
|
128
|
+
}).annotate({ identifier: "Journey" });
|
|
129
|
+
const JourneyVersion = /* @__PURE__ */ Schema.Struct({
|
|
130
|
+
journeyId: JourneyId,
|
|
131
|
+
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
132
|
+
definition: JourneyDefinition,
|
|
133
|
+
publishedAt: Schema.String
|
|
134
|
+
}).annotate({ identifier: "JourneyVersion" });
|
|
135
|
+
const JourneysListQuery = /* @__PURE__ */ Schema.Struct({
|
|
136
|
+
status: Schema.optionalKey(Schema.Union([JourneyStatus, Schema.Null])),
|
|
137
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
138
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
139
|
+
});
|
|
140
|
+
const JourneysList200 = JourneyPage;
|
|
141
|
+
const JourneysList401 = UnauthorizedError;
|
|
142
|
+
const JourneysList403 = ForbiddenError;
|
|
143
|
+
const JourneysList422 = ValidationError;
|
|
144
|
+
const JourneysList500 = InternalError;
|
|
145
|
+
const JourneysList504 = GatewayTimeoutError;
|
|
146
|
+
const JourneysCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
147
|
+
name: JourneyName,
|
|
148
|
+
definition: JourneyDefinition
|
|
149
|
+
});
|
|
150
|
+
const JourneysCreate201 = Journey;
|
|
151
|
+
const JourneysCreate401 = UnauthorizedError;
|
|
152
|
+
const JourneysCreate402 = PaymentRequiredError;
|
|
153
|
+
const JourneysCreate403 = ForbiddenError;
|
|
154
|
+
const JourneysCreate404 = ResourceNotFoundError;
|
|
155
|
+
const JourneysCreate409 = ConflictError;
|
|
156
|
+
const JourneysCreate422 = ValidationError;
|
|
157
|
+
const JourneysCreate500 = InternalError;
|
|
158
|
+
const JourneysCreate502 = BillingProviderError;
|
|
159
|
+
const JourneysCreate504 = GatewayTimeoutError;
|
|
160
|
+
const JourneysGetPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
161
|
+
const JourneysGet200 = Journey;
|
|
162
|
+
const JourneysGet401 = UnauthorizedError;
|
|
163
|
+
const JourneysGet403 = ForbiddenError;
|
|
164
|
+
const JourneysGet404 = ResourceNotFoundError;
|
|
165
|
+
const JourneysGet422 = ValidationError;
|
|
166
|
+
const JourneysGet500 = InternalError;
|
|
167
|
+
const JourneysGet504 = GatewayTimeoutError;
|
|
168
|
+
const JourneysRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
169
|
+
const JourneysRemove200 = DeleteJourneyResponse;
|
|
170
|
+
const JourneysRemove401 = UnauthorizedError;
|
|
171
|
+
const JourneysRemove403 = ForbiddenError;
|
|
172
|
+
const JourneysRemove404 = ResourceNotFoundError;
|
|
173
|
+
const JourneysRemove409 = ConflictError;
|
|
174
|
+
const JourneysRemove422 = ValidationError;
|
|
175
|
+
const JourneysRemove500 = InternalError;
|
|
176
|
+
const JourneysRemove504 = GatewayTimeoutError;
|
|
177
|
+
const JourneysUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
178
|
+
const JourneysUpdateRequestJson = /* @__PURE__ */ Schema.Struct({ name: JourneyName });
|
|
179
|
+
const JourneysUpdate200 = Journey;
|
|
180
|
+
const JourneysUpdate401 = UnauthorizedError;
|
|
181
|
+
const JourneysUpdate403 = ForbiddenError;
|
|
182
|
+
const JourneysUpdate404 = ResourceNotFoundError;
|
|
183
|
+
const JourneysUpdate422 = ValidationError;
|
|
184
|
+
const JourneysUpdate500 = InternalError;
|
|
185
|
+
const JourneysUpdate504 = GatewayTimeoutError;
|
|
186
|
+
const JourneysArchivePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
187
|
+
const JourneysArchive200 = Journey;
|
|
188
|
+
const JourneysArchive401 = UnauthorizedError;
|
|
189
|
+
const JourneysArchive403 = ForbiddenError;
|
|
190
|
+
const JourneysArchive404 = ResourceNotFoundError;
|
|
191
|
+
const JourneysArchive409 = ConflictError;
|
|
192
|
+
const JourneysArchive422 = ValidationError;
|
|
193
|
+
const JourneysArchive500 = InternalError;
|
|
194
|
+
const JourneysArchive504 = GatewayTimeoutError;
|
|
195
|
+
const JourneysReplaceDraftPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
196
|
+
const JourneysReplaceDraftRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
197
|
+
revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
198
|
+
definition: JourneyDefinition
|
|
199
|
+
});
|
|
200
|
+
const JourneysReplaceDraft200 = Journey;
|
|
201
|
+
const JourneysReplaceDraft401 = UnauthorizedError;
|
|
202
|
+
const JourneysReplaceDraft402 = PaymentRequiredError;
|
|
203
|
+
const JourneysReplaceDraft403 = ForbiddenError;
|
|
204
|
+
const JourneysReplaceDraft404 = ResourceNotFoundError;
|
|
205
|
+
const JourneysReplaceDraft409 = ConflictError;
|
|
206
|
+
const JourneysReplaceDraft422 = ValidationError;
|
|
207
|
+
const JourneysReplaceDraft500 = InternalError;
|
|
208
|
+
const JourneysReplaceDraft502 = BillingProviderError;
|
|
209
|
+
const JourneysReplaceDraft504 = GatewayTimeoutError;
|
|
210
|
+
const JourneysPausePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
211
|
+
const JourneysPause200 = Journey;
|
|
212
|
+
const JourneysPause401 = UnauthorizedError;
|
|
213
|
+
const JourneysPause403 = ForbiddenError;
|
|
214
|
+
const JourneysPause404 = ResourceNotFoundError;
|
|
215
|
+
const JourneysPause409 = ConflictError;
|
|
216
|
+
const JourneysPause422 = ValidationError;
|
|
217
|
+
const JourneysPause500 = InternalError;
|
|
218
|
+
const JourneysPause504 = GatewayTimeoutError;
|
|
219
|
+
const JourneysPublishPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
220
|
+
const JourneysPublishRequestJson = /* @__PURE__ */ Schema.Struct({ revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) });
|
|
221
|
+
const JourneysPublish200 = Journey;
|
|
222
|
+
const JourneysPublish401 = UnauthorizedError;
|
|
223
|
+
const JourneysPublish402 = PaymentRequiredError;
|
|
224
|
+
const JourneysPublish403 = ForbiddenError;
|
|
225
|
+
const JourneysPublish404 = ResourceNotFoundError;
|
|
226
|
+
const JourneysPublish409 = ConflictError;
|
|
227
|
+
const JourneysPublish422 = ValidationError;
|
|
228
|
+
const JourneysPublish500 = InternalError;
|
|
229
|
+
const JourneysPublish502 = BillingProviderError;
|
|
230
|
+
const JourneysPublish504 = GatewayTimeoutError;
|
|
231
|
+
const JourneysResumePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
232
|
+
const JourneysResume200 = Journey;
|
|
233
|
+
const JourneysResume401 = UnauthorizedError;
|
|
234
|
+
const JourneysResume402 = PaymentRequiredError;
|
|
235
|
+
const JourneysResume403 = ForbiddenError;
|
|
236
|
+
const JourneysResume404 = ResourceNotFoundError;
|
|
237
|
+
const JourneysResume409 = ConflictError;
|
|
238
|
+
const JourneysResume422 = ValidationError;
|
|
239
|
+
const JourneysResume500 = InternalError;
|
|
240
|
+
const JourneysResume502 = BillingProviderError;
|
|
241
|
+
const JourneysResume504 = GatewayTimeoutError;
|
|
242
|
+
const JourneysListRunsPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
243
|
+
const JourneysListRunsQuery = /* @__PURE__ */ Schema.Struct({
|
|
244
|
+
status: Schema.optionalKey(Schema.Union([JourneyRunStatus, Schema.Null])),
|
|
245
|
+
contactId: Schema.optionalKey(Schema.Union([ContactId, Schema.Null])),
|
|
246
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
247
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
248
|
+
});
|
|
249
|
+
const JourneysListRuns200 = JourneyRunPage;
|
|
250
|
+
const JourneysListRuns401 = UnauthorizedError;
|
|
251
|
+
const JourneysListRuns403 = ForbiddenError;
|
|
252
|
+
const JourneysListRuns404 = ResourceNotFoundError;
|
|
253
|
+
const JourneysListRuns422 = ValidationError;
|
|
254
|
+
const JourneysListRuns500 = InternalError;
|
|
255
|
+
const JourneysListRuns504 = GatewayTimeoutError;
|
|
256
|
+
const JourneysGetRunPathParams = /* @__PURE__ */ Schema.Struct({
|
|
257
|
+
id: JourneyId,
|
|
258
|
+
runId: JourneyRunId
|
|
259
|
+
});
|
|
260
|
+
const JourneysGetRun200 = JourneyRunDetail;
|
|
261
|
+
const JourneysGetRun401 = UnauthorizedError;
|
|
262
|
+
const JourneysGetRun403 = ForbiddenError;
|
|
263
|
+
const JourneysGetRun404 = ResourceNotFoundError;
|
|
264
|
+
const JourneysGetRun422 = ValidationError;
|
|
265
|
+
const JourneysGetRun500 = InternalError;
|
|
266
|
+
const JourneysGetRun504 = GatewayTimeoutError;
|
|
267
|
+
const JourneysStatsPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
|
|
268
|
+
const JourneysStatsQuery = /* @__PURE__ */ Schema.Struct({ version: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])) });
|
|
269
|
+
const JourneysStats200 = JourneyStats;
|
|
270
|
+
const JourneysStats401 = UnauthorizedError;
|
|
271
|
+
const JourneysStats403 = ForbiddenError;
|
|
272
|
+
const JourneysStats404 = ResourceNotFoundError;
|
|
273
|
+
const JourneysStats422 = ValidationError;
|
|
274
|
+
const JourneysStats500 = InternalError;
|
|
275
|
+
const JourneysStats504 = GatewayTimeoutError;
|
|
276
|
+
const JourneysGetVersionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
277
|
+
id: JourneyId,
|
|
278
|
+
version: Schema.String
|
|
279
|
+
});
|
|
280
|
+
const JourneysGetVersion200 = JourneyVersion;
|
|
281
|
+
const JourneysGetVersion401 = UnauthorizedError;
|
|
282
|
+
const JourneysGetVersion403 = ForbiddenError;
|
|
283
|
+
const JourneysGetVersion404 = ResourceNotFoundError;
|
|
284
|
+
const JourneysGetVersion422 = ValidationError;
|
|
285
|
+
const JourneysGetVersion500 = InternalError;
|
|
286
|
+
const JourneysGetVersion504 = GatewayTimeoutError;
|
|
287
|
+
var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpoint.get("journeysList", "/v1/journeys", {
|
|
288
|
+
query: JourneysListQuery,
|
|
289
|
+
success: JourneysList200,
|
|
290
|
+
error: [
|
|
291
|
+
JourneysList401.pipe(HttpApiSchema.status(401)),
|
|
292
|
+
JourneysList403.pipe(HttpApiSchema.status(403)),
|
|
293
|
+
JourneysList422.pipe(HttpApiSchema.status(422)),
|
|
294
|
+
JourneysList500,
|
|
295
|
+
JourneysList504.pipe(HttpApiSchema.status(504))
|
|
296
|
+
]
|
|
297
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.list").annotate(OpenApi.Summary, "List journeys").annotate(OpenApi.Description, "Returns the organization's journeys, newest first, optionally filtered by status. Pass nextCursor back as cursor for the next page."), HttpApiEndpoint.post("journeysCreate", "/v1/journeys", {
|
|
298
|
+
payload: JourneysCreateRequestJson,
|
|
299
|
+
success: JourneysCreate201.pipe(HttpApiSchema.status(201)),
|
|
300
|
+
error: [
|
|
301
|
+
JourneysCreate401.pipe(HttpApiSchema.status(401)),
|
|
302
|
+
JourneysCreate402.pipe(HttpApiSchema.status(402)),
|
|
303
|
+
JourneysCreate403.pipe(HttpApiSchema.status(403)),
|
|
304
|
+
JourneysCreate404.pipe(HttpApiSchema.status(404)),
|
|
305
|
+
JourneysCreate409.pipe(HttpApiSchema.status(409)),
|
|
306
|
+
JourneysCreate422.pipe(HttpApiSchema.status(422)),
|
|
307
|
+
JourneysCreate500,
|
|
308
|
+
JourneysCreate502.pipe(HttpApiSchema.status(502)),
|
|
309
|
+
JourneysCreate504.pipe(HttpApiSchema.status(504))
|
|
310
|
+
]
|
|
311
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.create").annotate(OpenApi.Summary, "Create a journey").annotate(OpenApi.Description, "Creates a draft journey from a definition: a trigger, a root node, and a graph of at most 200 nodes that is acyclic and fully reachable. Templates, senders, and groups the definition names must belong to the organization. Requires a plan that includes journeys."), HttpApiEndpoint.get("journeysGet", "/v1/journeys/:id", {
|
|
312
|
+
params: JourneysGetPathParams,
|
|
313
|
+
success: JourneysGet200,
|
|
314
|
+
error: [
|
|
315
|
+
JourneysGet401.pipe(HttpApiSchema.status(401)),
|
|
316
|
+
JourneysGet403.pipe(HttpApiSchema.status(403)),
|
|
317
|
+
JourneysGet404.pipe(HttpApiSchema.status(404)),
|
|
318
|
+
JourneysGet422.pipe(HttpApiSchema.status(422)),
|
|
319
|
+
JourneysGet500,
|
|
320
|
+
JourneysGet504.pipe(HttpApiSchema.status(504))
|
|
321
|
+
]
|
|
322
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.get").annotate(OpenApi.Summary, "Get a journey").annotate(OpenApi.Description, "Returns a journey with its draft definition, its current revision, and its newest published version number."), HttpApiEndpoint.delete("journeysRemove", "/v1/journeys/:id", {
|
|
323
|
+
params: JourneysRemovePathParams,
|
|
324
|
+
success: JourneysRemove200,
|
|
325
|
+
error: [
|
|
326
|
+
JourneysRemove401.pipe(HttpApiSchema.status(401)),
|
|
327
|
+
JourneysRemove403.pipe(HttpApiSchema.status(403)),
|
|
328
|
+
JourneysRemove404.pipe(HttpApiSchema.status(404)),
|
|
329
|
+
JourneysRemove409.pipe(HttpApiSchema.status(409)),
|
|
330
|
+
JourneysRemove422.pipe(HttpApiSchema.status(422)),
|
|
331
|
+
JourneysRemove500,
|
|
332
|
+
JourneysRemove504.pipe(HttpApiSchema.status(504))
|
|
333
|
+
]
|
|
334
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.remove").annotate(OpenApi.Summary, "Delete a journey").annotate(OpenApi.Description, "Deletes a journey that was never published or is archived, with its versions and runs. An active or paused journey returns 409; archive it first."), HttpApiEndpoint.patch("journeysUpdate", "/v1/journeys/:id", {
|
|
335
|
+
params: JourneysUpdatePathParams,
|
|
336
|
+
payload: JourneysUpdateRequestJson,
|
|
337
|
+
success: JourneysUpdate200,
|
|
338
|
+
error: [
|
|
339
|
+
JourneysUpdate401.pipe(HttpApiSchema.status(401)),
|
|
340
|
+
JourneysUpdate403.pipe(HttpApiSchema.status(403)),
|
|
341
|
+
JourneysUpdate404.pipe(HttpApiSchema.status(404)),
|
|
342
|
+
JourneysUpdate422.pipe(HttpApiSchema.status(422)),
|
|
343
|
+
JourneysUpdate500,
|
|
344
|
+
JourneysUpdate504.pipe(HttpApiSchema.status(504))
|
|
345
|
+
]
|
|
346
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.update").annotate(OpenApi.Summary, "Rename a journey").annotate(OpenApi.Description, "Renames a journey."), HttpApiEndpoint.post("journeysArchive", "/v1/journeys/:id/archive", {
|
|
347
|
+
params: JourneysArchivePathParams,
|
|
348
|
+
success: JourneysArchive200,
|
|
349
|
+
error: [
|
|
350
|
+
JourneysArchive401.pipe(HttpApiSchema.status(401)),
|
|
351
|
+
JourneysArchive403.pipe(HttpApiSchema.status(403)),
|
|
352
|
+
JourneysArchive404.pipe(HttpApiSchema.status(404)),
|
|
353
|
+
JourneysArchive409.pipe(HttpApiSchema.status(409)),
|
|
354
|
+
JourneysArchive422.pipe(HttpApiSchema.status(422)),
|
|
355
|
+
JourneysArchive500,
|
|
356
|
+
JourneysArchive504.pipe(HttpApiSchema.status(504))
|
|
357
|
+
]
|
|
358
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.archive").annotate(OpenApi.Summary, "Archive a journey").annotate(OpenApi.Description, "Stops new enrollment for good and exits every live run with exit reason archived. An archived journey cannot be edited, published, or resumed."), HttpApiEndpoint.put("journeysReplaceDraft", "/v1/journeys/:id/draft", {
|
|
359
|
+
params: JourneysReplaceDraftPathParams,
|
|
360
|
+
payload: JourneysReplaceDraftRequestJson,
|
|
361
|
+
success: JourneysReplaceDraft200,
|
|
362
|
+
error: [
|
|
363
|
+
JourneysReplaceDraft401.pipe(HttpApiSchema.status(401)),
|
|
364
|
+
JourneysReplaceDraft402.pipe(HttpApiSchema.status(402)),
|
|
365
|
+
JourneysReplaceDraft403.pipe(HttpApiSchema.status(403)),
|
|
366
|
+
JourneysReplaceDraft404.pipe(HttpApiSchema.status(404)),
|
|
367
|
+
JourneysReplaceDraft409.pipe(HttpApiSchema.status(409)),
|
|
368
|
+
JourneysReplaceDraft422.pipe(HttpApiSchema.status(422)),
|
|
369
|
+
JourneysReplaceDraft500,
|
|
370
|
+
JourneysReplaceDraft502.pipe(HttpApiSchema.status(502)),
|
|
371
|
+
JourneysReplaceDraft504.pipe(HttpApiSchema.status(504))
|
|
372
|
+
]
|
|
373
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.replaceDraft").annotate(OpenApi.Summary, "Replace a journey draft").annotate(OpenApi.Description, "Replaces the draft definition and returns the journey with a new revision. The request names the revision it read; a stale revision returns 409. Published versions and the runs on them do not change."), HttpApiEndpoint.post("journeysPause", "/v1/journeys/:id/pause", {
|
|
374
|
+
params: JourneysPausePathParams,
|
|
375
|
+
success: JourneysPause200,
|
|
376
|
+
error: [
|
|
377
|
+
JourneysPause401.pipe(HttpApiSchema.status(401)),
|
|
378
|
+
JourneysPause403.pipe(HttpApiSchema.status(403)),
|
|
379
|
+
JourneysPause404.pipe(HttpApiSchema.status(404)),
|
|
380
|
+
JourneysPause409.pipe(HttpApiSchema.status(409)),
|
|
381
|
+
JourneysPause422.pipe(HttpApiSchema.status(422)),
|
|
382
|
+
JourneysPause500,
|
|
383
|
+
JourneysPause504.pipe(HttpApiSchema.status(504))
|
|
384
|
+
]
|
|
385
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.pause").annotate(OpenApi.Summary, "Pause a journey").annotate(OpenApi.Description, "Stops new enrollment and holds every live run before its next node, including a run whose wait ends while the journey is paused. Held runs report status paused."), HttpApiEndpoint.post("journeysPublish", "/v1/journeys/:id/publish", {
|
|
386
|
+
params: JourneysPublishPathParams,
|
|
387
|
+
payload: JourneysPublishRequestJson,
|
|
388
|
+
success: JourneysPublish200,
|
|
389
|
+
error: [
|
|
390
|
+
JourneysPublish401.pipe(HttpApiSchema.status(401)),
|
|
391
|
+
JourneysPublish402.pipe(HttpApiSchema.status(402)),
|
|
392
|
+
JourneysPublish403.pipe(HttpApiSchema.status(403)),
|
|
393
|
+
JourneysPublish404.pipe(HttpApiSchema.status(404)),
|
|
394
|
+
JourneysPublish409.pipe(HttpApiSchema.status(409)),
|
|
395
|
+
JourneysPublish422.pipe(HttpApiSchema.status(422)),
|
|
396
|
+
JourneysPublish500,
|
|
397
|
+
JourneysPublish502.pipe(HttpApiSchema.status(502)),
|
|
398
|
+
JourneysPublish504.pipe(HttpApiSchema.status(504))
|
|
399
|
+
]
|
|
400
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.publish").annotate(OpenApi.Summary, "Publish a journey").annotate(OpenApi.Description, "Publishes the draft as the next immutable version; new runs start on it and existing runs stay on the version they entered. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing. A draft journey becomes active; a paused journey stays paused. A published version sends and updates tags as its publisher, so a draft with a send_email node requires a key that can send email and one with an update_tags node requires contacts:update; without them the request returns 403."), HttpApiEndpoint.post("journeysResume", "/v1/journeys/:id/resume", {
|
|
401
|
+
params: JourneysResumePathParams,
|
|
402
|
+
success: JourneysResume200,
|
|
403
|
+
error: [
|
|
404
|
+
JourneysResume401.pipe(HttpApiSchema.status(401)),
|
|
405
|
+
JourneysResume402.pipe(HttpApiSchema.status(402)),
|
|
406
|
+
JourneysResume403.pipe(HttpApiSchema.status(403)),
|
|
407
|
+
JourneysResume404.pipe(HttpApiSchema.status(404)),
|
|
408
|
+
JourneysResume409.pipe(HttpApiSchema.status(409)),
|
|
409
|
+
JourneysResume422.pipe(HttpApiSchema.status(422)),
|
|
410
|
+
JourneysResume500,
|
|
411
|
+
JourneysResume502.pipe(HttpApiSchema.status(502)),
|
|
412
|
+
JourneysResume504.pipe(HttpApiSchema.status(504))
|
|
413
|
+
]
|
|
414
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.resume").annotate(OpenApi.Summary, "Resume a journey").annotate(OpenApi.Description, "Resumes enrollment and continues the runs the pause held. Requires a plan that includes journeys."), HttpApiEndpoint.get("journeysListRuns", "/v1/journeys/:id/runs", {
|
|
415
|
+
params: JourneysListRunsPathParams,
|
|
416
|
+
query: JourneysListRunsQuery,
|
|
417
|
+
success: JourneysListRuns200,
|
|
418
|
+
error: [
|
|
419
|
+
JourneysListRuns401.pipe(HttpApiSchema.status(401)),
|
|
420
|
+
JourneysListRuns403.pipe(HttpApiSchema.status(403)),
|
|
421
|
+
JourneysListRuns404.pipe(HttpApiSchema.status(404)),
|
|
422
|
+
JourneysListRuns422.pipe(HttpApiSchema.status(422)),
|
|
423
|
+
JourneysListRuns500,
|
|
424
|
+
JourneysListRuns504.pipe(HttpApiSchema.status(504))
|
|
425
|
+
]
|
|
426
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.listRuns").annotate(OpenApi.Summary, "List journey runs").annotate(OpenApi.Description, "Returns a journey's runs, newest first, optionally filtered by status or contact. Pass nextCursor back as cursor for the next page."), HttpApiEndpoint.get("journeysGetRun", "/v1/journeys/:id/runs/:runId", {
|
|
427
|
+
params: JourneysGetRunPathParams,
|
|
428
|
+
success: JourneysGetRun200,
|
|
429
|
+
error: [
|
|
430
|
+
JourneysGetRun401.pipe(HttpApiSchema.status(401)),
|
|
431
|
+
JourneysGetRun403.pipe(HttpApiSchema.status(403)),
|
|
432
|
+
JourneysGetRun404.pipe(HttpApiSchema.status(404)),
|
|
433
|
+
JourneysGetRun422.pipe(HttpApiSchema.status(422)),
|
|
434
|
+
JourneysGetRun500,
|
|
435
|
+
JourneysGetRun504.pipe(HttpApiSchema.status(504))
|
|
436
|
+
]
|
|
437
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.getRun").annotate(OpenApi.Summary, "Get a journey run").annotate(OpenApi.Description, "Returns one run with every node it entered, in order: when it entered and left, how it left, and the message a send node created."), HttpApiEndpoint.get("journeysStats", "/v1/journeys/:id/stats", {
|
|
438
|
+
params: JourneysStatsPathParams,
|
|
439
|
+
query: JourneysStatsQuery,
|
|
440
|
+
success: JourneysStats200,
|
|
441
|
+
error: [
|
|
442
|
+
JourneysStats401.pipe(HttpApiSchema.status(401)),
|
|
443
|
+
JourneysStats403.pipe(HttpApiSchema.status(403)),
|
|
444
|
+
JourneysStats404.pipe(HttpApiSchema.status(404)),
|
|
445
|
+
JourneysStats422.pipe(HttpApiSchema.status(422)),
|
|
446
|
+
JourneysStats500,
|
|
447
|
+
JourneysStats504.pipe(HttpApiSchema.status(504))
|
|
448
|
+
]
|
|
449
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.stats").annotate(OpenApi.Summary, "Get journey run counts").annotate(OpenApi.Description, "Counts one published version's runs by status, and per node the live runs there now and the runs that have entered it. Defaults to the newest published version."), HttpApiEndpoint.get("journeysGetVersion", "/v1/journeys/:id/versions/:version", {
|
|
450
|
+
params: JourneysGetVersionPathParams,
|
|
451
|
+
success: JourneysGetVersion200,
|
|
452
|
+
error: [
|
|
453
|
+
JourneysGetVersion401.pipe(HttpApiSchema.status(401)),
|
|
454
|
+
JourneysGetVersion403.pipe(HttpApiSchema.status(403)),
|
|
455
|
+
JourneysGetVersion404.pipe(HttpApiSchema.status(404)),
|
|
456
|
+
JourneysGetVersion422.pipe(HttpApiSchema.status(422)),
|
|
457
|
+
JourneysGetVersion500,
|
|
458
|
+
JourneysGetVersion504.pipe(HttpApiSchema.status(504))
|
|
459
|
+
]
|
|
460
|
+
}).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") {};
|
|
461
|
+
//#endregion
|
|
462
|
+
export { DeleteJourneyResponse, Journey, JourneyId, JourneyListItem, JourneyNodeStats, JourneyPage, JourneyRun, JourneyRunCounts, JourneyRunDetail, JourneyRunExitReason, JourneyRunId, JourneyRunPage, JourneyRunStatus, JourneyRunStep, JourneyRunStepOutcome, JourneyRunTrigger, JourneyStats, JourneyStatus, JourneyVersion, JourneysArchive200, JourneysArchive401, JourneysArchive403, JourneysArchive404, JourneysArchive409, JourneysArchive422, JourneysArchive500, JourneysArchive504, JourneysArchivePathParams, JourneysCreate201, JourneysCreate401, JourneysCreate402, JourneysCreate403, JourneysCreate404, JourneysCreate409, JourneysCreate422, JourneysCreate500, JourneysCreate502, JourneysCreate504, JourneysCreateRequestJson, JourneysGet200, JourneysGet401, JourneysGet403, JourneysGet404, JourneysGet422, JourneysGet500, JourneysGet504, JourneysGetPathParams, JourneysGetRun200, JourneysGetRun401, JourneysGetRun403, JourneysGetRun404, JourneysGetRun422, JourneysGetRun500, JourneysGetRun504, JourneysGetRunPathParams, JourneysGetVersion200, JourneysGetVersion401, JourneysGetVersion403, JourneysGetVersion404, JourneysGetVersion422, JourneysGetVersion500, JourneysGetVersion504, JourneysGetVersionPathParams, JourneysGroup, JourneysList200, JourneysList401, JourneysList403, JourneysList422, JourneysList500, JourneysList504, JourneysListQuery, JourneysListRuns200, JourneysListRuns401, JourneysListRuns403, JourneysListRuns404, JourneysListRuns422, JourneysListRuns500, JourneysListRuns504, JourneysListRunsPathParams, JourneysListRunsQuery, JourneysPause200, JourneysPause401, JourneysPause403, JourneysPause404, JourneysPause409, JourneysPause422, JourneysPause500, JourneysPause504, JourneysPausePathParams, JourneysPublish200, JourneysPublish401, JourneysPublish402, JourneysPublish403, JourneysPublish404, JourneysPublish409, JourneysPublish422, JourneysPublish500, JourneysPublish502, JourneysPublish504, JourneysPublishPathParams, JourneysPublishRequestJson, JourneysRemove200, JourneysRemove401, JourneysRemove403, JourneysRemove404, JourneysRemove409, JourneysRemove422, JourneysRemove500, JourneysRemove504, JourneysRemovePathParams, JourneysReplaceDraft200, JourneysReplaceDraft401, JourneysReplaceDraft402, JourneysReplaceDraft403, JourneysReplaceDraft404, JourneysReplaceDraft409, JourneysReplaceDraft422, JourneysReplaceDraft500, JourneysReplaceDraft502, JourneysReplaceDraft504, JourneysReplaceDraftPathParams, JourneysReplaceDraftRequestJson, JourneysResume200, JourneysResume401, JourneysResume402, JourneysResume403, JourneysResume404, JourneysResume409, JourneysResume422, JourneysResume500, JourneysResume502, JourneysResume504, JourneysResumePathParams, JourneysStats200, JourneysStats401, JourneysStats403, JourneysStats404, JourneysStats422, JourneysStats500, JourneysStats504, JourneysStatsPathParams, JourneysStatsQuery, JourneysUpdate200, JourneysUpdate401, JourneysUpdate403, JourneysUpdate404, JourneysUpdate422, JourneysUpdate500, JourneysUpdate504, JourneysUpdatePathParams, JourneysUpdateRequestJson };
|
|
463
|
+
|
|
464
|
+
//# sourceMappingURL=journeys.js.map
|