samva 0.34.0 → 0.35.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/client/sdk.gen.d.ts +224 -250
- package/dist/client/sdk.gen.js +84 -210
- package/dist/client/types.gen.d.ts +2894 -401
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +45 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1442 -140
- package/dist/effect/generated/campaigns.js +82 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +398 -106
- package/dist/effect/generated/conversations.js +96 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +296 -38
- package/dist/effect/generated/webhooks.js +58 -16
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -8
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId,
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, EmailSenderId, ForbiddenError, GatewayTimeoutError, InternalError, MailboxId, MalformedRequestError, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TemplateId, TopicContactRef, TopicId, 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/topics.ts
|
|
5
|
-
const TopicSubscriptionCounts = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const TopicSubscriptionCounts = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
|
+
sms: Schema.Struct({
|
|
7
|
+
subscribed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
8
|
+
unsubscribed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
9
|
+
}),
|
|
10
|
+
whatsapp: Schema.Struct({
|
|
11
|
+
subscribed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
12
|
+
unsubscribed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
13
|
+
}),
|
|
14
|
+
email: Schema.Struct({
|
|
15
|
+
subscribed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
16
|
+
unsubscribed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
17
|
+
})
|
|
18
|
+
}).annotate({ identifier: "TopicSubscriptionCounts" }))();
|
|
9
19
|
const TopicSetSubscriptionsResult = /* @__PURE__ */ (() => Schema.Struct({ updated: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })) }).annotate({ identifier: "TopicSetSubscriptionsResult" }))();
|
|
10
20
|
const TopicSubscription = /* @__PURE__ */ (() => Schema.Struct({
|
|
11
21
|
contactId: ContactId,
|
|
12
|
-
channel: Schema.
|
|
22
|
+
channel: Schema.Union([
|
|
23
|
+
Schema.Literal("sms"),
|
|
24
|
+
Schema.Literal("whatsapp"),
|
|
25
|
+
Schema.Literal("email")
|
|
26
|
+
]),
|
|
13
27
|
status: Schema.Union([Schema.Literal("subscribed"), Schema.Literal("unsubscribed")]),
|
|
14
28
|
source: Schema.String,
|
|
15
29
|
subscribedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -19,7 +33,11 @@ const TopicSubscription = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
19
33
|
}).annotate({ identifier: "TopicSubscription" }))();
|
|
20
34
|
const TopicSubscriptionCheck = /* @__PURE__ */ (() => Schema.Struct({
|
|
21
35
|
contactId: Schema.Union([ContactId, Schema.Null]),
|
|
22
|
-
channel: Schema.
|
|
36
|
+
channel: Schema.Union([
|
|
37
|
+
Schema.Literal("sms"),
|
|
38
|
+
Schema.Literal("whatsapp"),
|
|
39
|
+
Schema.Literal("email")
|
|
40
|
+
]),
|
|
23
41
|
topics: Schema.Array(Schema.Struct({
|
|
24
42
|
topicId: TopicId,
|
|
25
43
|
topicName: Schema.String,
|
|
@@ -45,8 +63,9 @@ const TopicSubscriptionPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
45
63
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
46
64
|
}).annotate({ identifier: "TopicSubscriptionPage" }))();
|
|
47
65
|
const TopicList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(Topic).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })) }).annotate({ identifier: "TopicList" }))();
|
|
48
|
-
const TopicsListQuery = /* @__PURE__ */ (() => Schema.Struct({ namespaceId: Schema.optionalKey(
|
|
66
|
+
const TopicsListQuery = /* @__PURE__ */ (() => Schema.Struct({ namespaceId: Schema.optionalKey(NamespaceId) }))();
|
|
49
67
|
const TopicsList200 = TopicList;
|
|
68
|
+
const TopicsList400 = MalformedRequestError;
|
|
50
69
|
const TopicsList401 = UnauthorizedError;
|
|
51
70
|
const TopicsList403 = ForbiddenError;
|
|
52
71
|
const TopicsList422 = ValidationError;
|
|
@@ -62,6 +81,7 @@ const TopicsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
62
81
|
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null]))
|
|
63
82
|
}))();
|
|
64
83
|
const TopicsCreate201 = Topic;
|
|
84
|
+
const TopicsCreate400 = MalformedRequestError;
|
|
65
85
|
const TopicsCreate401 = UnauthorizedError;
|
|
66
86
|
const TopicsCreate403 = ForbiddenError;
|
|
67
87
|
const TopicsCreate404 = ResourceNotFoundError;
|
|
@@ -71,6 +91,7 @@ const TopicsCreate500 = InternalError;
|
|
|
71
91
|
const TopicsCreate504 = GatewayTimeoutError;
|
|
72
92
|
const TopicsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TopicId }))();
|
|
73
93
|
const TopicsGet200 = Topic;
|
|
94
|
+
const TopicsGet400 = MalformedRequestError;
|
|
74
95
|
const TopicsGet401 = UnauthorizedError;
|
|
75
96
|
const TopicsGet403 = ForbiddenError;
|
|
76
97
|
const TopicsGet404 = ResourceNotFoundError;
|
|
@@ -79,6 +100,7 @@ const TopicsGet500 = InternalError;
|
|
|
79
100
|
const TopicsGet504 = GatewayTimeoutError;
|
|
80
101
|
const TopicsRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TopicId }))();
|
|
81
102
|
const TopicsRemove200 = /* @__PURE__ */ (() => Schema.Struct({ success: Schema.Boolean }))();
|
|
103
|
+
const TopicsRemove400 = MalformedRequestError;
|
|
82
104
|
const TopicsRemove401 = UnauthorizedError;
|
|
83
105
|
const TopicsRemove403 = ForbiddenError;
|
|
84
106
|
const TopicsRemove404 = ResourceNotFoundError;
|
|
@@ -96,6 +118,7 @@ const TopicsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
96
118
|
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null]))
|
|
97
119
|
}))();
|
|
98
120
|
const TopicsUpdate200 = Topic;
|
|
121
|
+
const TopicsUpdate400 = MalformedRequestError;
|
|
99
122
|
const TopicsUpdate401 = UnauthorizedError;
|
|
100
123
|
const TopicsUpdate403 = ForbiddenError;
|
|
101
124
|
const TopicsUpdate404 = ResourceNotFoundError;
|
|
@@ -105,6 +128,7 @@ const TopicsUpdate500 = InternalError;
|
|
|
105
128
|
const TopicsUpdate504 = GatewayTimeoutError;
|
|
106
129
|
const TopicsSetDefaultPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TopicId }))();
|
|
107
130
|
const TopicsSetDefault200 = Topic;
|
|
131
|
+
const TopicsSetDefault400 = MalformedRequestError;
|
|
108
132
|
const TopicsSetDefault401 = UnauthorizedError;
|
|
109
133
|
const TopicsSetDefault403 = ForbiddenError;
|
|
110
134
|
const TopicsSetDefault404 = ResourceNotFoundError;
|
|
@@ -114,11 +138,16 @@ const TopicsSetDefault504 = GatewayTimeoutError;
|
|
|
114
138
|
const TopicsListSubscriptionsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TopicId }))();
|
|
115
139
|
const TopicsListSubscriptionsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
116
140
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
117
|
-
cursor: Schema.optionalKey(Schema.
|
|
118
|
-
channel: Schema.optionalKey(Schema.Union([
|
|
119
|
-
|
|
141
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
142
|
+
channel: Schema.optionalKey(Schema.Union([
|
|
143
|
+
Schema.Literal("sms"),
|
|
144
|
+
Schema.Literal("whatsapp"),
|
|
145
|
+
Schema.Literal("email")
|
|
146
|
+
])),
|
|
147
|
+
status: Schema.optionalKey(Schema.Union([Schema.Literal("subscribed"), Schema.Literal("unsubscribed")]))
|
|
120
148
|
}))();
|
|
121
149
|
const TopicsListSubscriptions200 = TopicSubscriptionPage;
|
|
150
|
+
const TopicsListSubscriptions400 = MalformedRequestError;
|
|
122
151
|
const TopicsListSubscriptions401 = UnauthorizedError;
|
|
123
152
|
const TopicsListSubscriptions403 = ForbiddenError;
|
|
124
153
|
const TopicsListSubscriptions404 = ResourceNotFoundError;
|
|
@@ -128,11 +157,16 @@ const TopicsListSubscriptions504 = GatewayTimeoutError;
|
|
|
128
157
|
const TopicsSetSubscriptionsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TopicId }))();
|
|
129
158
|
const TopicsSetSubscriptionsRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
130
159
|
contacts: Schema.Array(TopicContactRef).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(1e3).annotate({ expected: "a value with a length of at most 1000" })),
|
|
131
|
-
channel: Schema.
|
|
160
|
+
channel: Schema.Union([
|
|
161
|
+
Schema.Literal("sms"),
|
|
162
|
+
Schema.Literal("whatsapp"),
|
|
163
|
+
Schema.Literal("email")
|
|
164
|
+
]),
|
|
132
165
|
status: Schema.Union([Schema.Literal("subscribed"), Schema.Literal("unsubscribed")]),
|
|
133
166
|
source: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema.Null]))
|
|
134
167
|
}))();
|
|
135
168
|
const TopicsSetSubscriptions200 = TopicSetSubscriptionsResult;
|
|
169
|
+
const TopicsSetSubscriptions400 = MalformedRequestError;
|
|
136
170
|
const TopicsSetSubscriptions401 = UnauthorizedError;
|
|
137
171
|
const TopicsSetSubscriptions402 = PaymentRequiredError;
|
|
138
172
|
const TopicsSetSubscriptions403 = ForbiddenError;
|
|
@@ -142,14 +176,19 @@ const TopicsSetSubscriptions500 = InternalError;
|
|
|
142
176
|
const TopicsSetSubscriptions502 = BillingProviderError;
|
|
143
177
|
const TopicsSetSubscriptions504 = GatewayTimeoutError;
|
|
144
178
|
const TopicsCheckSubscriptionQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
145
|
-
contactId: Schema.optionalKey(
|
|
146
|
-
email: Schema.optionalKey(Schema.
|
|
147
|
-
phone: Schema.optionalKey(Schema.
|
|
148
|
-
namespaceId: Schema.optionalKey(
|
|
149
|
-
channel: Schema.
|
|
150
|
-
|
|
179
|
+
contactId: Schema.optionalKey(ContactId),
|
|
180
|
+
email: Schema.optionalKey(Schema.String),
|
|
181
|
+
phone: Schema.optionalKey(Schema.String),
|
|
182
|
+
namespaceId: Schema.optionalKey(NamespaceId),
|
|
183
|
+
channel: Schema.Union([
|
|
184
|
+
Schema.Literal("sms"),
|
|
185
|
+
Schema.Literal("whatsapp"),
|
|
186
|
+
Schema.Literal("email")
|
|
187
|
+
]),
|
|
188
|
+
topicIds: Schema.optionalKey(Schema.String)
|
|
151
189
|
}))();
|
|
152
190
|
const TopicsCheckSubscription200 = TopicSubscriptionCheck;
|
|
191
|
+
const TopicsCheckSubscription400 = MalformedRequestError;
|
|
153
192
|
const TopicsCheckSubscription401 = UnauthorizedError;
|
|
154
193
|
const TopicsCheckSubscription403 = ForbiddenError;
|
|
155
194
|
const TopicsCheckSubscription404 = ResourceNotFoundError;
|
|
@@ -160,6 +199,7 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
160
199
|
query: TopicsListQuery,
|
|
161
200
|
success: TopicsList200,
|
|
162
201
|
error: [
|
|
202
|
+
TopicsList400.pipe(HttpApiSchema.status(400)),
|
|
163
203
|
TopicsList401.pipe(HttpApiSchema.status(401)),
|
|
164
204
|
TopicsList403.pipe(HttpApiSchema.status(403)),
|
|
165
205
|
TopicsList422.pipe(HttpApiSchema.status(422)),
|
|
@@ -170,6 +210,7 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
170
210
|
payload: TopicsCreateRequestJson,
|
|
171
211
|
success: TopicsCreate201.pipe(HttpApiSchema.status(201)),
|
|
172
212
|
error: [
|
|
213
|
+
TopicsCreate400.pipe(HttpApiSchema.status(400)),
|
|
173
214
|
TopicsCreate401.pipe(HttpApiSchema.status(401)),
|
|
174
215
|
TopicsCreate403.pipe(HttpApiSchema.status(403)),
|
|
175
216
|
TopicsCreate404.pipe(HttpApiSchema.status(404)),
|
|
@@ -182,6 +223,7 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
182
223
|
params: TopicsGetPathParams,
|
|
183
224
|
success: TopicsGet200,
|
|
184
225
|
error: [
|
|
226
|
+
TopicsGet400.pipe(HttpApiSchema.status(400)),
|
|
185
227
|
TopicsGet401.pipe(HttpApiSchema.status(401)),
|
|
186
228
|
TopicsGet403.pipe(HttpApiSchema.status(403)),
|
|
187
229
|
TopicsGet404.pipe(HttpApiSchema.status(404)),
|
|
@@ -193,6 +235,7 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
193
235
|
params: TopicsRemovePathParams,
|
|
194
236
|
success: TopicsRemove200,
|
|
195
237
|
error: [
|
|
238
|
+
TopicsRemove400.pipe(HttpApiSchema.status(400)),
|
|
196
239
|
TopicsRemove401.pipe(HttpApiSchema.status(401)),
|
|
197
240
|
TopicsRemove403.pipe(HttpApiSchema.status(403)),
|
|
198
241
|
TopicsRemove404.pipe(HttpApiSchema.status(404)),
|
|
@@ -206,6 +249,7 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
206
249
|
payload: TopicsUpdateRequestJson,
|
|
207
250
|
success: TopicsUpdate200,
|
|
208
251
|
error: [
|
|
252
|
+
TopicsUpdate400.pipe(HttpApiSchema.status(400)),
|
|
209
253
|
TopicsUpdate401.pipe(HttpApiSchema.status(401)),
|
|
210
254
|
TopicsUpdate403.pipe(HttpApiSchema.status(403)),
|
|
211
255
|
TopicsUpdate404.pipe(HttpApiSchema.status(404)),
|
|
@@ -218,6 +262,7 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
218
262
|
params: TopicsSetDefaultPathParams,
|
|
219
263
|
success: TopicsSetDefault200,
|
|
220
264
|
error: [
|
|
265
|
+
TopicsSetDefault400.pipe(HttpApiSchema.status(400)),
|
|
221
266
|
TopicsSetDefault401.pipe(HttpApiSchema.status(401)),
|
|
222
267
|
TopicsSetDefault403.pipe(HttpApiSchema.status(403)),
|
|
223
268
|
TopicsSetDefault404.pipe(HttpApiSchema.status(404)),
|
|
@@ -230,6 +275,7 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
230
275
|
query: TopicsListSubscriptionsQuery,
|
|
231
276
|
success: TopicsListSubscriptions200,
|
|
232
277
|
error: [
|
|
278
|
+
TopicsListSubscriptions400.pipe(HttpApiSchema.status(400)),
|
|
233
279
|
TopicsListSubscriptions401.pipe(HttpApiSchema.status(401)),
|
|
234
280
|
TopicsListSubscriptions403.pipe(HttpApiSchema.status(403)),
|
|
235
281
|
TopicsListSubscriptions404.pipe(HttpApiSchema.status(404)),
|
|
@@ -242,6 +288,7 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
242
288
|
payload: TopicsSetSubscriptionsRequestJson,
|
|
243
289
|
success: TopicsSetSubscriptions200,
|
|
244
290
|
error: [
|
|
291
|
+
TopicsSetSubscriptions400.pipe(HttpApiSchema.status(400)),
|
|
245
292
|
TopicsSetSubscriptions401.pipe(HttpApiSchema.status(401)),
|
|
246
293
|
TopicsSetSubscriptions402.pipe(HttpApiSchema.status(402)),
|
|
247
294
|
TopicsSetSubscriptions403.pipe(HttpApiSchema.status(403)),
|
|
@@ -255,6 +302,7 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
255
302
|
query: TopicsCheckSubscriptionQuery,
|
|
256
303
|
success: TopicsCheckSubscription200,
|
|
257
304
|
error: [
|
|
305
|
+
TopicsCheckSubscription400.pipe(HttpApiSchema.status(400)),
|
|
258
306
|
TopicsCheckSubscription401.pipe(HttpApiSchema.status(401)),
|
|
259
307
|
TopicsCheckSubscription403.pipe(HttpApiSchema.status(403)),
|
|
260
308
|
TopicsCheckSubscription404.pipe(HttpApiSchema.status(404)),
|
|
@@ -263,6 +311,6 @@ var TopicsGroup = class extends HttpApiGroup.make("Topics").add(HttpApiEndpoint.
|
|
|
263
311
|
TopicsCheckSubscription504.pipe(HttpApiSchema.status(504))
|
|
264
312
|
]
|
|
265
313
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "topics.checkSubscription").annotate(OpenApi.Summary, "Check topic subscriptions").annotate(OpenApi.Description, "Name exactly one contactId, email, or phone and a channel. Returns effective status, using the topic default when no explicit subscription exists. topicIds is an optional comma-separated list. Addresses resolve within the requested namespace; an unknown address returns contactId null and the effective defaults.")).annotate(OpenApi.Description, "Topics and per-channel contact subscriptions") {};
|
|
266
|
-
export { Topic, TopicList, TopicSetSubscriptionsResult, TopicSubscription, TopicSubscriptionCheck, TopicSubscriptionCounts, TopicSubscriptionPage, TopicsCheckSubscription200, TopicsCheckSubscription401, TopicsCheckSubscription403, TopicsCheckSubscription404, TopicsCheckSubscription422, TopicsCheckSubscription500, TopicsCheckSubscription504, TopicsCheckSubscriptionQuery, TopicsCreate201, TopicsCreate401, TopicsCreate403, TopicsCreate404, TopicsCreate409, TopicsCreate422, TopicsCreate500, TopicsCreate504, TopicsCreateRequestJson, TopicsGet200, TopicsGet401, TopicsGet403, TopicsGet404, TopicsGet422, TopicsGet500, TopicsGet504, TopicsGetPathParams, TopicsGroup, TopicsList200, TopicsList401, TopicsList403, TopicsList422, TopicsList500, TopicsList504, TopicsListQuery, TopicsListSubscriptions200, TopicsListSubscriptions401, TopicsListSubscriptions403, TopicsListSubscriptions404, TopicsListSubscriptions422, TopicsListSubscriptions500, TopicsListSubscriptions504, TopicsListSubscriptionsPathParams, TopicsListSubscriptionsQuery, TopicsRemove200, TopicsRemove401, TopicsRemove403, TopicsRemove404, TopicsRemove409, TopicsRemove422, TopicsRemove500, TopicsRemove504, TopicsRemovePathParams, TopicsSetDefault200, TopicsSetDefault401, TopicsSetDefault403, TopicsSetDefault404, TopicsSetDefault422, TopicsSetDefault500, TopicsSetDefault504, TopicsSetDefaultPathParams, TopicsSetSubscriptions200, TopicsSetSubscriptions401, TopicsSetSubscriptions402, TopicsSetSubscriptions403, TopicsSetSubscriptions404, TopicsSetSubscriptions422, TopicsSetSubscriptions500, TopicsSetSubscriptions502, TopicsSetSubscriptions504, TopicsSetSubscriptionsPathParams, TopicsSetSubscriptionsRequestJson, TopicsUpdate200, TopicsUpdate401, TopicsUpdate403, TopicsUpdate404, TopicsUpdate409, TopicsUpdate422, TopicsUpdate500, TopicsUpdate504, TopicsUpdatePathParams, TopicsUpdateRequestJson };
|
|
314
|
+
export { Topic, TopicList, TopicSetSubscriptionsResult, TopicSubscription, TopicSubscriptionCheck, TopicSubscriptionCounts, TopicSubscriptionPage, TopicsCheckSubscription200, TopicsCheckSubscription400, TopicsCheckSubscription401, TopicsCheckSubscription403, TopicsCheckSubscription404, TopicsCheckSubscription422, TopicsCheckSubscription500, TopicsCheckSubscription504, TopicsCheckSubscriptionQuery, TopicsCreate201, TopicsCreate400, TopicsCreate401, TopicsCreate403, TopicsCreate404, TopicsCreate409, TopicsCreate422, TopicsCreate500, TopicsCreate504, TopicsCreateRequestJson, TopicsGet200, TopicsGet400, TopicsGet401, TopicsGet403, TopicsGet404, TopicsGet422, TopicsGet500, TopicsGet504, TopicsGetPathParams, TopicsGroup, TopicsList200, TopicsList400, TopicsList401, TopicsList403, TopicsList422, TopicsList500, TopicsList504, TopicsListQuery, TopicsListSubscriptions200, TopicsListSubscriptions400, TopicsListSubscriptions401, TopicsListSubscriptions403, TopicsListSubscriptions404, TopicsListSubscriptions422, TopicsListSubscriptions500, TopicsListSubscriptions504, TopicsListSubscriptionsPathParams, TopicsListSubscriptionsQuery, TopicsRemove200, TopicsRemove400, TopicsRemove401, TopicsRemove403, TopicsRemove404, TopicsRemove409, TopicsRemove422, TopicsRemove500, TopicsRemove504, TopicsRemovePathParams, TopicsSetDefault200, TopicsSetDefault400, TopicsSetDefault401, TopicsSetDefault403, TopicsSetDefault404, TopicsSetDefault422, TopicsSetDefault500, TopicsSetDefault504, TopicsSetDefaultPathParams, TopicsSetSubscriptions200, TopicsSetSubscriptions400, TopicsSetSubscriptions401, TopicsSetSubscriptions402, TopicsSetSubscriptions403, TopicsSetSubscriptions404, TopicsSetSubscriptions422, TopicsSetSubscriptions500, TopicsSetSubscriptions502, TopicsSetSubscriptions504, TopicsSetSubscriptionsPathParams, TopicsSetSubscriptionsRequestJson, TopicsUpdate200, TopicsUpdate400, TopicsUpdate401, TopicsUpdate403, TopicsUpdate404, TopicsUpdate409, TopicsUpdate422, TopicsUpdate500, TopicsUpdate504, TopicsUpdatePathParams, TopicsUpdateRequestJson };
|
|
267
315
|
|
|
268
316
|
//# sourceMappingURL=topics.js.map
|