samva 0.34.0 → 0.36.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.
Files changed (129) hide show
  1. package/AGENTS.md +17 -0
  2. package/README.md +2 -1
  3. package/dist/client/sdk.gen.d.ts +325 -331
  4. package/dist/client/sdk.gen.js +406 -454
  5. package/dist/client/types.gen.d.ts +3465 -750
  6. package/dist/effect/agents.d.ts +222 -17
  7. package/dist/effect/agents.js +7 -1
  8. package/dist/effect/analytics.d.ts +21 -15
  9. package/dist/effect/api-keys.d.ts +30 -24
  10. package/dist/effect/campaigns.d.ts +695 -39
  11. package/dist/effect/categories.d.ts +3 -3
  12. package/dist/effect/contact-groups.d.ts +15 -15
  13. package/dist/effect/contacts.d.ts +56 -52
  14. package/dist/effect/conversations.d.ts +51 -45
  15. package/dist/effect/email.d.ts +82 -82
  16. package/dist/effect/errors.d.ts +1 -1
  17. package/dist/effect/errors.js +2 -2
  18. package/dist/effect/extension-installations.d.ts +64 -12
  19. package/dist/effect/extensions.d.ts +16 -16
  20. package/dist/effect/generated/agents.d.ts +2902 -150
  21. package/dist/effect/generated/agents.js +219 -31
  22. package/dist/effect/generated/analytics.d.ts +127 -136
  23. package/dist/effect/generated/analytics.js +72 -37
  24. package/dist/effect/generated/api-keys.d.ts +243 -47
  25. package/dist/effect/generated/api-keys.js +27 -12
  26. package/dist/effect/generated/attachments.d.ts +89 -1
  27. package/dist/effect/generated/attachments.js +10 -2
  28. package/dist/effect/generated/brands.d.ts +133 -1
  29. package/dist/effect/generated/brands.js +22 -10
  30. package/dist/effect/generated/campaigns.d.ts +1467 -143
  31. package/dist/effect/generated/campaigns.js +84 -20
  32. package/dist/effect/generated/contact-events.d.ts +26 -4
  33. package/dist/effect/generated/contact-events.js +5 -3
  34. package/dist/effect/generated/contact-groups.d.ts +233 -13
  35. package/dist/effect/generated/contact-groups.js +33 -17
  36. package/dist/effect/generated/contacts.d.ts +634 -96
  37. package/dist/effect/generated/contacts.js +82 -20
  38. package/dist/effect/generated/conversations.d.ts +501 -108
  39. package/dist/effect/generated/conversations.js +106 -22
  40. package/dist/effect/generated/custom-fields.d.ts +89 -1
  41. package/dist/effect/generated/custom-fields.js +11 -3
  42. package/dist/effect/generated/email.d.ts +1447 -83
  43. package/dist/effect/generated/email.js +167 -43
  44. package/dist/effect/generated/events.d.ts +51 -7
  45. package/dist/effect/generated/events.js +9 -5
  46. package/dist/effect/generated/extension-installations.d.ts +1052 -77
  47. package/dist/effect/generated/extension-installations.js +45 -31
  48. package/dist/effect/generated/extensions.d.ts +123 -13
  49. package/dist/effect/generated/extensions.js +20 -10
  50. package/dist/effect/generated/feedback.d.ts +23 -1
  51. package/dist/effect/generated/feedback.js +6 -4
  52. package/dist/effect/generated/index.d.ts +3 -1
  53. package/dist/effect/generated/journeys.d.ts +684 -16
  54. package/dist/effect/generated/journeys.js +37 -9
  55. package/dist/effect/generated/mailboxes.d.ts +6169 -1734
  56. package/dist/effect/generated/mailboxes.js +549 -344
  57. package/dist/effect/generated/media.d.ts +125 -15
  58. package/dist/effect/generated/media.js +15 -2
  59. package/dist/effect/generated/messages.d.ts +2036 -117
  60. package/dist/effect/generated/messages.js +286 -54
  61. package/dist/effect/generated/namespaces.d.ts +215 -55
  62. package/dist/effect/generated/namespaces.js +30 -12
  63. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  64. package/dist/effect/generated/newsletter-domains.js +20 -13
  65. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  66. package/dist/effect/generated/newsletter-issues.js +162 -98
  67. package/dist/effect/generated/newsletters.d.ts +123 -13
  68. package/dist/effect/generated/newsletters.js +19 -9
  69. package/dist/effect/generated/operations.d.ts +76 -10
  70. package/dist/effect/generated/operations.js +12 -6
  71. package/dist/effect/generated/organizations.d.ts +287 -7
  72. package/dist/effect/generated/organizations.js +33 -5
  73. package/dist/effect/generated/policies.d.ts +953 -0
  74. package/dist/effect/generated/policies.js +116 -0
  75. package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
  76. package/dist/effect/generated/scheduled-messages.js +77 -13
  77. package/dist/effect/generated/shared.d.ts +3213 -521
  78. package/dist/effect/generated/shared.js +713 -128
  79. package/dist/effect/generated/subscriptions.d.ts +23 -1
  80. package/dist/effect/generated/subscriptions.js +6 -4
  81. package/dist/effect/generated/templates.d.ts +2081 -693
  82. package/dist/effect/generated/templates.js +482 -267
  83. package/dist/effect/generated/topic-forms.d.ts +111 -1
  84. package/dist/effect/generated/topic-forms.js +23 -13
  85. package/dist/effect/generated/topics.d.ts +353 -43
  86. package/dist/effect/generated/topics.js +67 -19
  87. package/dist/effect/generated/webhooks.d.ts +318 -57
  88. package/dist/effect/generated/webhooks.js +68 -17
  89. package/dist/effect/generated/whoami.d.ts +35 -5
  90. package/dist/effect/generated/whoami.js +4 -2
  91. package/dist/effect/generated-metadata.d.ts +56 -32
  92. package/dist/effect/generated-metadata.js +137 -105
  93. package/dist/effect/index.d.ts +1 -0
  94. package/dist/effect/index.js +3 -2
  95. package/dist/effect/internal/client.js +1 -1
  96. package/dist/effect/internal/email-sender.d.ts +1 -1
  97. package/dist/effect/internal/operation.js +5 -32
  98. package/dist/effect/internal/send.d.ts +1 -1
  99. package/dist/effect/journeys.d.ts +169 -83
  100. package/dist/effect/mailboxes.d.ts +978 -301
  101. package/dist/effect/mailboxes.js +1 -11
  102. package/dist/effect/media.d.ts +1 -1
  103. package/dist/effect/messages.d.ts +40 -40
  104. package/dist/effect/namespaces.d.ts +15 -15
  105. package/dist/effect/newsletter-domains.d.ts +5 -5
  106. package/dist/effect/newsletters.d.ts +1 -1
  107. package/dist/effect/operations.d.ts +11 -11
  108. package/dist/effect/organizations.d.ts +2 -2
  109. package/dist/effect/policies.d.ts +65 -0
  110. package/dist/effect/policies.js +16 -0
  111. package/dist/effect/scheduled-messages.d.ts +869 -8
  112. package/dist/effect/templates.d.ts +43 -45
  113. package/dist/effect/templates.js +5 -3
  114. package/dist/effect/topics.d.ts +23 -23
  115. package/dist/effect/webhooks.d.ts +29 -26
  116. package/dist/index.js +2 -2
  117. package/dist/mailbox/test.js +11 -4
  118. package/dist/mailbox/types.d.ts +39 -3
  119. package/dist/normalize.js +13 -1
  120. package/dist/package.js +1 -1
  121. package/dist/promises/client.d.ts +4 -2
  122. package/dist/promises/client.js +5 -3
  123. package/dist/promises/errors.gen.d.ts +38 -2
  124. package/dist/promises/errors.gen.js +394 -34
  125. package/dist/promises/index.js +2 -2
  126. package/dist/promises/types.gen.d.ts +1 -1
  127. package/dist/service-map.d.ts +39 -28
  128. package/dist/service-map.js +220 -782
  129. package/package.json +13 -8
@@ -1,15 +1,29 @@
1
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, Cursor, EmailSenderId, ForbiddenError, GatewayTimeoutError, InternalError, MailboxId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TemplateId, TopicContactRef, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
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({ email: Schema.Struct({
6
- 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" })),
7
- 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" }))
8
- }) }).annotate({ identifier: "TopicSubscriptionCounts" }))();
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.Literal("email"),
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.Literal("email"),
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(Schema.Union([NamespaceId, Schema.Null])) }))();
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.Union([Cursor, Schema.Null])),
118
- channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
119
- status: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("subscribed"), Schema.Literal("unsubscribed")]), Schema.Null]))
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.Literal("email"),
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(Schema.Union([ContactId, Schema.Null])),
146
- email: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
147
- phone: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
148
- namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
149
- channel: Schema.Literal("email"),
150
- topicIds: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
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