samva 0.55.0 → 0.56.1
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 +2 -2
- package/README.md +9 -8
- package/dist/client/sdk.gen.d.ts +13 -4
- package/dist/client/sdk.gen.js +32 -1
- package/dist/client/types.gen.d.ts +66 -6
- package/dist/effect/accounts.js +9 -10
- package/dist/effect/agents.js +16 -17
- package/dist/effect/analytics.js +9 -10
- package/dist/effect/api-keys.js +11 -12
- package/dist/effect/approval-requests.js +7 -8
- package/dist/effect/attachments.js +7 -8
- package/dist/effect/brands.js +9 -10
- package/dist/effect/campaigns.js +18 -19
- package/dist/effect/contact-groups.js +13 -14
- package/dist/effect/contacts.js +29 -30
- package/dist/effect/conversations.js +16 -17
- package/dist/effect/custom-fields.js +7 -8
- package/dist/effect/descriptors/accounts.d.ts +50 -52
- package/dist/effect/descriptors/accounts.js +50 -52
- package/dist/effect/descriptors/agents.d.ts +113 -115
- package/dist/effect/descriptors/agents.js +120 -122
- package/dist/effect/descriptors/analytics.d.ts +47 -49
- package/dist/effect/descriptors/analytics.js +42 -44
- package/dist/effect/descriptors/api-keys.d.ts +69 -71
- package/dist/effect/descriptors/api-keys.js +73 -75
- package/dist/effect/descriptors/approval-requests.d.ts +34 -36
- package/dist/effect/descriptors/approval-requests.js +36 -38
- package/dist/effect/descriptors/attachments.d.ts +34 -36
- package/dist/effect/descriptors/attachments.js +36 -38
- package/dist/effect/descriptors/brands.d.ts +51 -53
- package/dist/effect/descriptors/brands.js +53 -55
- package/dist/effect/descriptors/campaigns.d.ts +130 -132
- package/dist/effect/descriptors/campaigns.js +137 -139
- package/dist/effect/descriptors/contact-groups.d.ts +86 -88
- package/dist/effect/descriptors/contact-groups.js +90 -92
- package/dist/effect/descriptors/contacts.d.ts +242 -244
- package/dist/effect/descriptors/contacts.js +227 -229
- package/dist/effect/descriptors/conversations.d.ts +114 -116
- package/dist/effect/descriptors/conversations.js +123 -125
- package/dist/effect/descriptors/custom-fields.d.ts +33 -35
- package/dist/effect/descriptors/custom-fields.js +33 -35
- package/dist/effect/descriptors/email.d.ts +623 -625
- package/dist/effect/descriptors/email.js +562 -578
- package/dist/effect/descriptors/events.d.ts +15 -17
- package/dist/effect/descriptors/events.js +14 -16
- package/dist/effect/descriptors/feedback.d.ts +7 -9
- package/dist/effect/descriptors/feedback.js +3 -3
- package/dist/effect/descriptors/integrations-catalog.d.ts +159 -161
- package/dist/effect/descriptors/integrations-catalog.js +142 -144
- package/dist/effect/descriptors/integrations.d.ts +60 -62
- package/dist/effect/descriptors/integrations.js +63 -65
- package/dist/effect/descriptors/journeys.d.ts +123 -125
- package/dist/effect/descriptors/journeys.js +133 -135
- package/dist/effect/descriptors/logs.d.ts +16 -18
- package/dist/effect/descriptors/logs.js +16 -18
- package/dist/effect/descriptors/mailboxes.d.ts +780 -782
- package/dist/effect/descriptors/mailboxes.js +795 -797
- package/dist/effect/descriptors/media.d.ts +43 -45
- package/dist/effect/descriptors/media.js +46 -48
- package/dist/effect/descriptors/messages.d.ts +86 -88
- package/dist/effect/descriptors/messages.js +83 -92
- package/dist/effect/descriptors/namespaces.d.ts +96 -98
- package/dist/effect/descriptors/namespaces.js +107 -109
- package/dist/effect/descriptors/newsletter-domains.d.ts +35 -37
- package/dist/effect/descriptors/newsletter-domains.js +39 -41
- package/dist/effect/descriptors/newsletter-issues.d.ts +98 -100
- package/dist/effect/descriptors/newsletter-issues.js +109 -111
- package/dist/effect/descriptors/newsletters.d.ts +43 -45
- package/dist/effect/descriptors/newsletters.js +46 -48
- package/dist/effect/descriptors/operations.d.ts +25 -27
- package/dist/effect/descriptors/operations.js +26 -28
- package/dist/effect/descriptors/organizations.d.ts +96 -98
- package/dist/effect/descriptors/organizations.js +86 -88
- package/dist/effect/descriptors/phone-numbers.d.ts +41 -43
- package/dist/effect/descriptors/phone-numbers.js +40 -42
- package/dist/effect/descriptors/policies.d.ts +26 -28
- package/dist/effect/descriptors/policies.js +29 -31
- package/dist/effect/descriptors/scheduled-messages.d.ts +42 -44
- package/dist/effect/descriptors/scheduled-messages.js +43 -45
- package/dist/effect/descriptors/subscriptions.d.ts +7 -9
- package/dist/effect/descriptors/subscriptions.js +3 -3
- package/dist/effect/descriptors/template-registrations.d.ts +26 -28
- package/dist/effect/descriptors/template-registrations.js +29 -31
- package/dist/effect/descriptors/template-share-links.d.ts +44 -46
- package/dist/effect/descriptors/template-share-links.js +49 -51
- package/dist/effect/descriptors/templates.d.ts +361 -363
- package/dist/effect/descriptors/templates.js +348 -350
- package/dist/effect/descriptors/topic-forms.d.ts +44 -46
- package/dist/effect/descriptors/topic-forms.js +49 -51
- package/dist/effect/descriptors/topics.d.ts +77 -79
- package/dist/effect/descriptors/topics.js +80 -82
- package/dist/effect/descriptors/webhooks.d.ts +96 -98
- package/dist/effect/descriptors/webhooks.js +103 -105
- package/dist/effect/descriptors/whats-app-flows.d.ts +86 -88
- package/dist/effect/descriptors/whats-app-flows.js +90 -92
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +33 -35
- package/dist/effect/descriptors/whats-app-setup-links.js +33 -35
- package/dist/effect/descriptors/whats-app.d.ts +111 -103
- package/dist/effect/descriptors/whats-app.js +111 -103
- package/dist/effect/descriptors/whoami.d.ts +7 -9
- package/dist/effect/descriptors/whoami.js +3 -3
- package/dist/effect/email.js +66 -67
- package/dist/effect/events.js +5 -6
- package/dist/effect/feedback.js +4 -4
- package/dist/effect/generated/accounts.d.ts +144 -142
- package/dist/effect/generated/accounts.js +14 -9
- package/dist/effect/generated/agents.d.ts +1502 -1493
- package/dist/effect/generated/agents.js +28 -16
- package/dist/effect/generated/analytics.d.ts +55 -53
- package/dist/effect/generated/analytics.js +14 -9
- package/dist/effect/generated/api-keys.d.ts +216 -212
- package/dist/effect/generated/api-keys.js +18 -11
- package/dist/effect/generated/approval-requests.d.ts +60 -60
- package/dist/effect/generated/approval-requests.js +10 -7
- package/dist/effect/generated/attachments.d.ts +32 -32
- package/dist/effect/generated/attachments.js +10 -7
- package/dist/effect/generated/brands.d.ts +179 -177
- package/dist/effect/generated/brands.js +14 -9
- package/dist/effect/generated/campaigns.d.ts +1083 -1072
- package/dist/effect/generated/campaigns.js +32 -18
- package/dist/effect/generated/contact-events.d.ts +3 -6
- package/dist/effect/generated/contact-events.js +4 -4
- package/dist/effect/generated/contact-groups.d.ts +186 -180
- package/dist/effect/generated/contact-groups.js +22 -13
- package/dist/effect/generated/contacts.d.ts +1565 -1545
- package/dist/effect/generated/contacts.js +50 -27
- package/dist/effect/generated/conversations.d.ts +340 -331
- package/dist/effect/generated/conversations.js +28 -16
- package/dist/effect/generated/custom-fields.d.ts +63 -63
- package/dist/effect/generated/custom-fields.js +10 -7
- package/dist/effect/generated/email.d.ts +2731 -2671
- package/dist/effect/generated/email.js +130 -67
- package/dist/effect/generated/events.d.ts +160 -162
- package/dist/effect/generated/events.js +6 -5
- package/dist/effect/generated/feedback.d.ts +3 -6
- package/dist/effect/generated/feedback.js +4 -4
- package/dist/effect/generated/index.d.ts +174 -45
- package/dist/effect/generated/integrations-catalog.d.ts +459 -446
- package/dist/effect/generated/integrations-catalog.js +36 -20
- package/dist/effect/generated/integrations.d.ts +155 -152
- package/dist/effect/generated/integrations.js +16 -10
- package/dist/effect/generated/journeys.d.ts +864 -854
- package/dist/effect/generated/journeys.js +30 -17
- package/dist/effect/generated/logs.d.ts +147 -149
- package/dist/effect/generated/logs.js +6 -5
- package/dist/effect/generated/mailboxes.d.ts +7271 -7196
- package/dist/effect/generated/mailboxes.js +160 -82
- package/dist/effect/generated/media.d.ts +77 -76
- package/dist/effect/generated/media.js +12 -8
- package/dist/effect/generated/messages.d.ts +1092 -1086
- package/dist/effect/generated/messages.js +22 -13
- package/dist/effect/generated/namespaces.d.ts +184 -177
- package/dist/effect/generated/namespaces.js +24 -14
- package/dist/effect/generated/newsletter-domains.d.ts +57 -57
- package/dist/effect/generated/newsletter-domains.js +10 -7
- package/dist/effect/generated/newsletter-issues.d.ts +225 -218
- package/dist/effect/generated/newsletter-issues.js +24 -14
- package/dist/effect/generated/newsletters.d.ts +46 -45
- package/dist/effect/generated/newsletters.js +12 -8
- package/dist/effect/generated/operations.d.ts +79 -80
- package/dist/effect/generated/operations.js +8 -6
- package/dist/effect/generated/organizations.d.ts +438 -430
- package/dist/effect/generated/organizations.js +26 -15
- package/dist/effect/generated/phone-numbers.d.ts +87 -86
- package/dist/effect/generated/phone-numbers.js +12 -8
- package/dist/effect/generated/policies.d.ts +64 -65
- package/dist/effect/generated/policies.js +8 -6
- package/dist/effect/generated/scheduled-messages.d.ts +66 -65
- package/dist/effect/generated/scheduled-messages.js +12 -8
- package/dist/effect/generated/shared.d.ts +37 -37
- package/dist/effect/generated/shared.js +63 -61
- package/dist/effect/generated/subscriptions.d.ts +3 -6
- package/dist/effect/generated/subscriptions.js +4 -4
- package/dist/effect/generated/template-registrations.d.ts +142 -134
- package/dist/effect/generated/template-registrations.js +9 -6
- package/dist/effect/generated/template-share-links.d.ts +25 -24
- package/dist/effect/generated/template-share-links.js +12 -8
- package/dist/effect/generated/templates.d.ts +2678 -2645
- package/dist/effect/generated/templates.js +76 -40
- package/dist/effect/generated/topic-forms.d.ts +47 -46
- package/dist/effect/generated/topic-forms.js +12 -8
- package/dist/effect/generated/topics.d.ts +204 -199
- package/dist/effect/generated/topics.js +20 -12
- package/dist/effect/generated/webhooks.d.ts +284 -277
- package/dist/effect/generated/webhooks.js +28 -14
- package/dist/effect/generated/whats-app-flows.d.ts +250 -244
- package/dist/effect/generated/whats-app-flows.js +22 -13
- package/dist/effect/generated/whats-app-setup-links.d.ts +107 -107
- package/dist/effect/generated/whats-app-setup-links.js +10 -7
- package/dist/effect/generated/whats-app.d.ts +482 -298
- package/dist/effect/generated/whats-app.js +58 -16
- package/dist/effect/generated/whoami.d.ts +3 -6
- package/dist/effect/generated/whoami.js +4 -4
- package/dist/effect/generated-metadata.d.ts +6 -0
- package/dist/effect/generated-metadata.js +1 -0
- package/dist/effect/integrations-catalog.js +20 -21
- package/dist/effect/integrations.js +10 -11
- package/dist/effect/internal/client.d.ts +2 -1
- package/dist/effect/internal/client.js +3 -3
- package/dist/effect/internal/email-sender.js +5 -4
- package/dist/effect/internal/operation.d.ts +11 -7
- package/dist/effect/internal/operation.js +17 -12
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/journeys.js +17 -18
- package/dist/effect/logs.js +5 -6
- package/dist/effect/mailboxes.js +82 -83
- package/dist/effect/media.js +8 -9
- package/dist/effect/messages.js +12 -13
- package/dist/effect/namespaces.js +14 -15
- package/dist/effect/newsletter-domains.js +7 -8
- package/dist/effect/newsletter-issues.js +14 -15
- package/dist/effect/newsletters.js +8 -9
- package/dist/effect/operations.js +6 -7
- package/dist/effect/organizations.js +15 -16
- package/dist/effect/phone-numbers.js +8 -9
- package/dist/effect/policies.js +6 -7
- package/dist/effect/runtime.js +3 -3
- package/dist/effect/scheduled-messages.js +8 -9
- package/dist/effect/subscriptions.js +4 -4
- package/dist/effect/template-registrations.js +6 -7
- package/dist/effect/template-share-links.js +8 -9
- package/dist/effect/templates.js +40 -41
- package/dist/effect/topic-forms.js +8 -9
- package/dist/effect/topics.js +12 -13
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/webhooks.js +14 -15
- package/dist/effect/whatsapp-flows.js +13 -14
- package/dist/effect/whatsapp-setup-links.js +7 -8
- package/dist/effect/whatsapp.d.ts +6 -0
- package/dist/effect/whatsapp.js +18 -17
- package/dist/effect/whoami.js +4 -4
- package/dist/package.json.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +5 -0
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpApiEndpoint,
|
|
1
|
+
import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, ContactReferenceSummary, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
// src/effect/generated/journeys.ts
|
|
@@ -302,7 +302,7 @@ const JourneysGetVersion404 = ResourceNotFoundError;
|
|
|
302
302
|
const JourneysGetVersion422 = ValidationError;
|
|
303
303
|
const JourneysGetVersion500 = InternalError;
|
|
304
304
|
const JourneysGetVersion504 = GatewayTimeoutError;
|
|
305
|
-
|
|
305
|
+
const JourneysListEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("journeysList", "/v1/journeys", {
|
|
306
306
|
query: JourneysListQuery,
|
|
307
307
|
success: JourneysList200,
|
|
308
308
|
error: [
|
|
@@ -313,7 +313,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
313
313
|
JourneysList500,
|
|
314
314
|
JourneysList504.pipe(HttpApiSchema.status(504))
|
|
315
315
|
]
|
|
316
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.list").annotate(OpenApi.Summary, "List journeys").annotate(OpenApi.Description, "Returns the journeys the caller can access, newest first. Filter by namespaceId or status. Pass nextCursor back as cursor for the next page.")
|
|
316
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.list").annotate(OpenApi.Summary, "List journeys").annotate(OpenApi.Description, "Returns the journeys the caller can access, newest first. Filter by namespaceId or status. Pass nextCursor back as cursor for the next page."))();
|
|
317
|
+
const JourneysCreateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("journeysCreate", "/v1/journeys", {
|
|
317
318
|
payload: JourneysCreateRequestJson,
|
|
318
319
|
success: JourneysCreate201.pipe(HttpApiSchema.status(201)),
|
|
319
320
|
error: [
|
|
@@ -328,7 +329,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
328
329
|
JourneysCreate502.pipe(HttpApiSchema.status(502)),
|
|
329
330
|
JourneysCreate504.pipe(HttpApiSchema.status(504))
|
|
330
331
|
]
|
|
331
|
-
}).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. A namespace key creates in its own namespace. An organization key can pass namespaceId to place the journey in a namespace. The journey can use resources available in its scope. Requires a plan that includes journeys.")
|
|
332
|
+
}).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. A namespace key creates in its own namespace. An organization key can pass namespaceId to place the journey in a namespace. The journey can use resources available in its scope. Requires a plan that includes journeys."))();
|
|
333
|
+
const JourneysGetEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("journeysGet", "/v1/journeys/:id", {
|
|
332
334
|
params: JourneysGetPathParams,
|
|
333
335
|
success: JourneysGet200,
|
|
334
336
|
error: [
|
|
@@ -340,7 +342,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
340
342
|
JourneysGet500,
|
|
341
343
|
JourneysGet504.pipe(HttpApiSchema.status(504))
|
|
342
344
|
]
|
|
343
|
-
}).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.")
|
|
345
|
+
}).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."))();
|
|
346
|
+
const JourneysRemoveEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("journeysRemove", "/v1/journeys/:id", {
|
|
344
347
|
params: JourneysRemovePathParams,
|
|
345
348
|
success: JourneysRemove200,
|
|
346
349
|
error: [
|
|
@@ -353,7 +356,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
353
356
|
JourneysRemove500,
|
|
354
357
|
JourneysRemove504.pipe(HttpApiSchema.status(504))
|
|
355
358
|
]
|
|
356
|
-
}).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.")
|
|
359
|
+
}).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."))();
|
|
360
|
+
const JourneysUpdateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("journeysUpdate", "/v1/journeys/:id", {
|
|
357
361
|
params: JourneysUpdatePathParams,
|
|
358
362
|
payload: JourneysUpdateRequestJson,
|
|
359
363
|
success: JourneysUpdate200,
|
|
@@ -366,7 +370,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
366
370
|
JourneysUpdate500,
|
|
367
371
|
JourneysUpdate504.pipe(HttpApiSchema.status(504))
|
|
368
372
|
]
|
|
369
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.update").annotate(OpenApi.Summary, "Rename a journey").annotate(OpenApi.Description, "Renames a journey.")
|
|
373
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.update").annotate(OpenApi.Summary, "Rename a journey").annotate(OpenApi.Description, "Renames a journey."))();
|
|
374
|
+
const JourneysArchiveEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("journeysArchive", "/v1/journeys/:id/archive", {
|
|
370
375
|
params: JourneysArchivePathParams,
|
|
371
376
|
success: JourneysArchive200,
|
|
372
377
|
error: [
|
|
@@ -379,7 +384,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
379
384
|
JourneysArchive500,
|
|
380
385
|
JourneysArchive504.pipe(HttpApiSchema.status(504))
|
|
381
386
|
]
|
|
382
|
-
}).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.")
|
|
387
|
+
}).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."))();
|
|
388
|
+
const JourneysReplaceDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.put("journeysReplaceDraft", "/v1/journeys/:id/draft", {
|
|
383
389
|
params: JourneysReplaceDraftPathParams,
|
|
384
390
|
payload: JourneysReplaceDraftRequestJson,
|
|
385
391
|
success: JourneysReplaceDraft200,
|
|
@@ -395,7 +401,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
395
401
|
JourneysReplaceDraft502.pipe(HttpApiSchema.status(502)),
|
|
396
402
|
JourneysReplaceDraft504.pipe(HttpApiSchema.status(504))
|
|
397
403
|
]
|
|
398
|
-
}).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.")
|
|
404
|
+
}).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."))();
|
|
405
|
+
const JourneysPauseEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("journeysPause", "/v1/journeys/:id/pause", {
|
|
399
406
|
params: JourneysPausePathParams,
|
|
400
407
|
success: JourneysPause200,
|
|
401
408
|
error: [
|
|
@@ -408,7 +415,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
408
415
|
JourneysPause500,
|
|
409
416
|
JourneysPause504.pipe(HttpApiSchema.status(504))
|
|
410
417
|
]
|
|
411
|
-
}).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.")
|
|
418
|
+
}).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."))();
|
|
419
|
+
const JourneysPublishEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("journeysPublish", "/v1/journeys/:id/publish", {
|
|
412
420
|
params: JourneysPublishPathParams,
|
|
413
421
|
payload: JourneysPublishRequestJson,
|
|
414
422
|
success: JourneysPublish200,
|
|
@@ -424,7 +432,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
424
432
|
JourneysPublish502.pipe(HttpApiSchema.status(502)),
|
|
425
433
|
JourneysPublish504.pipe(HttpApiSchema.status(504))
|
|
426
434
|
]
|
|
427
|
-
}).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.")
|
|
435
|
+
}).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."))();
|
|
436
|
+
const JourneysResumeEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("journeysResume", "/v1/journeys/:id/resume", {
|
|
428
437
|
params: JourneysResumePathParams,
|
|
429
438
|
success: JourneysResume200,
|
|
430
439
|
error: [
|
|
@@ -439,7 +448,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
439
448
|
JourneysResume502.pipe(HttpApiSchema.status(502)),
|
|
440
449
|
JourneysResume504.pipe(HttpApiSchema.status(504))
|
|
441
450
|
]
|
|
442
|
-
}).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.")
|
|
451
|
+
}).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."))();
|
|
452
|
+
const JourneysListRunsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("journeysListRuns", "/v1/journeys/:id/runs", {
|
|
443
453
|
params: JourneysListRunsPathParams,
|
|
444
454
|
query: JourneysListRunsQuery,
|
|
445
455
|
success: JourneysListRuns200,
|
|
@@ -452,7 +462,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
452
462
|
JourneysListRuns500,
|
|
453
463
|
JourneysListRuns504.pipe(HttpApiSchema.status(504))
|
|
454
464
|
]
|
|
455
|
-
}).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.")
|
|
465
|
+
}).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."))();
|
|
466
|
+
const JourneysGetRunEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("journeysGetRun", "/v1/journeys/:id/runs/:runId", {
|
|
456
467
|
params: JourneysGetRunPathParams,
|
|
457
468
|
success: JourneysGetRun200,
|
|
458
469
|
error: [
|
|
@@ -464,7 +475,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
464
475
|
JourneysGetRun500,
|
|
465
476
|
JourneysGetRun504.pipe(HttpApiSchema.status(504))
|
|
466
477
|
]
|
|
467
|
-
}).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.")
|
|
478
|
+
}).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."))();
|
|
479
|
+
const JourneysStatsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("journeysStats", "/v1/journeys/:id/stats", {
|
|
468
480
|
params: JourneysStatsPathParams,
|
|
469
481
|
query: JourneysStatsQuery,
|
|
470
482
|
success: JourneysStats200,
|
|
@@ -477,7 +489,8 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
477
489
|
JourneysStats500,
|
|
478
490
|
JourneysStats504.pipe(HttpApiSchema.status(504))
|
|
479
491
|
]
|
|
480
|
-
}).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.")
|
|
492
|
+
}).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."))();
|
|
493
|
+
const JourneysGetVersionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("journeysGetVersion", "/v1/journeys/:id/versions/:version", {
|
|
481
494
|
params: JourneysGetVersionPathParams,
|
|
482
495
|
success: JourneysGetVersion200,
|
|
483
496
|
error: [
|
|
@@ -489,7 +502,7 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
|
|
|
489
502
|
JourneysGetVersion500,
|
|
490
503
|
JourneysGetVersion504.pipe(HttpApiSchema.status(504))
|
|
491
504
|
]
|
|
492
|
-
}).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."))
|
|
493
|
-
export { DeleteJourneyResponse, Journey, JourneyListItem, JourneyNodeStats, JourneyPage, JourneyRun, JourneyRunCounts, JourneyRunDetail, JourneyRunExitReason, JourneyRunId, JourneyRunPage, JourneyRunStatus, JourneyRunStep, JourneyRunStepOutcome, JourneyRunTrigger, JourneyStats, JourneyVersion, JourneysArchive200, JourneysArchive400, JourneysArchive401, JourneysArchive403, JourneysArchive404, JourneysArchive409, JourneysArchive422, JourneysArchive500, JourneysArchive504, JourneysArchivePathParams, JourneysCreate201, JourneysCreate400, JourneysCreate401, JourneysCreate402, JourneysCreate403, JourneysCreate404, JourneysCreate409, JourneysCreate422, JourneysCreate500, JourneysCreate502, JourneysCreate504, JourneysCreateRequestJson, JourneysGet200, JourneysGet400, JourneysGet401, JourneysGet403, JourneysGet404, JourneysGet422, JourneysGet500, JourneysGet504, JourneysGetPathParams, JourneysGetRun200, JourneysGetRun400, JourneysGetRun401, JourneysGetRun403, JourneysGetRun404, JourneysGetRun422, JourneysGetRun500, JourneysGetRun504, JourneysGetRunPathParams, JourneysGetVersion200, JourneysGetVersion400, JourneysGetVersion401, JourneysGetVersion403, JourneysGetVersion404, JourneysGetVersion422, JourneysGetVersion500, JourneysGetVersion504,
|
|
505
|
+
}).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."))();
|
|
506
|
+
export { DeleteJourneyResponse, Journey, JourneyListItem, JourneyNodeStats, JourneyPage, JourneyRun, JourneyRunCounts, JourneyRunDetail, JourneyRunExitReason, JourneyRunId, JourneyRunPage, JourneyRunStatus, JourneyRunStep, JourneyRunStepOutcome, JourneyRunTrigger, JourneyStats, JourneyVersion, JourneysArchive200, JourneysArchive400, JourneysArchive401, JourneysArchive403, JourneysArchive404, JourneysArchive409, JourneysArchive422, JourneysArchive500, JourneysArchive504, JourneysArchiveEndpoint, JourneysArchivePathParams, JourneysCreate201, JourneysCreate400, JourneysCreate401, JourneysCreate402, JourneysCreate403, JourneysCreate404, JourneysCreate409, JourneysCreate422, JourneysCreate500, JourneysCreate502, JourneysCreate504, JourneysCreateEndpoint, JourneysCreateRequestJson, JourneysGet200, JourneysGet400, JourneysGet401, JourneysGet403, JourneysGet404, JourneysGet422, JourneysGet500, JourneysGet504, JourneysGetEndpoint, JourneysGetPathParams, JourneysGetRun200, JourneysGetRun400, JourneysGetRun401, JourneysGetRun403, JourneysGetRun404, JourneysGetRun422, JourneysGetRun500, JourneysGetRun504, JourneysGetRunEndpoint, JourneysGetRunPathParams, JourneysGetVersion200, JourneysGetVersion400, JourneysGetVersion401, JourneysGetVersion403, JourneysGetVersion404, JourneysGetVersion422, JourneysGetVersion500, JourneysGetVersion504, JourneysGetVersionEndpoint, JourneysGetVersionPathParams, JourneysList200, JourneysList400, JourneysList401, JourneysList403, JourneysList422, JourneysList500, JourneysList504, JourneysListEndpoint, JourneysListQuery, JourneysListRuns200, JourneysListRuns400, JourneysListRuns401, JourneysListRuns403, JourneysListRuns404, JourneysListRuns422, JourneysListRuns500, JourneysListRuns504, JourneysListRunsEndpoint, JourneysListRunsPathParams, JourneysListRunsQuery, JourneysPause200, JourneysPause400, JourneysPause401, JourneysPause403, JourneysPause404, JourneysPause409, JourneysPause422, JourneysPause500, JourneysPause504, JourneysPauseEndpoint, JourneysPausePathParams, JourneysPublish200, JourneysPublish400, JourneysPublish401, JourneysPublish402, JourneysPublish403, JourneysPublish404, JourneysPublish409, JourneysPublish422, JourneysPublish500, JourneysPublish502, JourneysPublish504, JourneysPublishEndpoint, JourneysPublishPathParams, JourneysPublishRequestJson, JourneysRemove200, JourneysRemove400, JourneysRemove401, JourneysRemove403, JourneysRemove404, JourneysRemove409, JourneysRemove422, JourneysRemove500, JourneysRemove504, JourneysRemoveEndpoint, JourneysRemovePathParams, JourneysReplaceDraft200, JourneysReplaceDraft400, JourneysReplaceDraft401, JourneysReplaceDraft402, JourneysReplaceDraft403, JourneysReplaceDraft404, JourneysReplaceDraft409, JourneysReplaceDraft422, JourneysReplaceDraft500, JourneysReplaceDraft502, JourneysReplaceDraft504, JourneysReplaceDraftEndpoint, JourneysReplaceDraftPathParams, JourneysReplaceDraftRequestJson, JourneysResume200, JourneysResume400, JourneysResume401, JourneysResume402, JourneysResume403, JourneysResume404, JourneysResume409, JourneysResume422, JourneysResume500, JourneysResume502, JourneysResume504, JourneysResumeEndpoint, JourneysResumePathParams, JourneysStats200, JourneysStats400, JourneysStats401, JourneysStats403, JourneysStats404, JourneysStats422, JourneysStats500, JourneysStats504, JourneysStatsEndpoint, JourneysStatsPathParams, JourneysStatsQuery, JourneysUpdate200, JourneysUpdate400, JourneysUpdate401, JourneysUpdate403, JourneysUpdate404, JourneysUpdate422, JourneysUpdate500, JourneysUpdate504, JourneysUpdateEndpoint, JourneysUpdatePathParams, JourneysUpdateRequestJson };
|
|
494
507
|
|
|
495
508
|
//# sourceMappingURL=journeys.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpApiEndpoint
|
|
1
|
+
import { HttpApiEndpoint } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { ApiKeyId, ApiKeySecurityMiddleware, DeliveryErrorDetails, ForbiddenError, GatewayTimeoutError, InternalError, MailboxId, MalformedRequestError, MessageContent, MessageId, ResourceNotFoundError, SubmissionClient, UnauthorizedError, UserId, ValidationError, __SamvaRuntimeAbsoluteInstant } from "./shared.js";
|
|
4
4
|
export type LogSender = {
|
|
@@ -1658,7 +1658,151 @@ export type LogsGet500 = InternalError;
|
|
|
1658
1658
|
export declare const LogsGet500: typeof InternalError;
|
|
1659
1659
|
export type LogsGet504 = GatewayTimeoutError;
|
|
1660
1660
|
export declare const LogsGet504: typeof GatewayTimeoutError;
|
|
1661
|
-
declare const
|
|
1661
|
+
export declare const LogsListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"logsList", "GET", "/v1/logs", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1662
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1663
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1664
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
1665
|
+
readonly orderBy: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"timestamp">, Schema.Literal<"recorded">]>>;
|
|
1666
|
+
readonly order: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
1667
|
+
readonly since: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
|
|
1668
|
+
readonly until: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
|
|
1669
|
+
readonly status: Schema.optionalKey<Schema.String>;
|
|
1670
|
+
readonly event: Schema.optionalKey<Schema.String>;
|
|
1671
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
|
|
1672
|
+
readonly direction: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>>;
|
|
1673
|
+
readonly origin: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"direct">, Schema.Literal<"campaign">, Schema.Literal<"scheduled">, Schema.Literal<"mailbox">, Schema.Literal<"forwarding">, Schema.Literal<"journey">, Schema.Literal<"businessApp">]>>;
|
|
1674
|
+
readonly credential: Schema.optionalKey<Schema.String>;
|
|
1675
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
1676
|
+
readonly messageId: Schema.optionalKey<Schema.brand<Schema.String, "MessageId">>;
|
|
1677
|
+
readonly mailboxId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxId">>;
|
|
1678
|
+
readonly requestId: Schema.optionalKey<Schema.String>;
|
|
1679
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1680
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1681
|
+
readonly id: Schema.String;
|
|
1682
|
+
readonly cursor: Schema.String;
|
|
1683
|
+
readonly timestamp: Schema.String;
|
|
1684
|
+
readonly event: Schema.Union<readonly [Schema.Literal<"accepted">, Schema.Literal<"waiting">, Schema.Literal<"received">, Schema.Literal<"rejected">, Schema.Literal<"created">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">, Schema.Literal<"replied">, Schema.Literal<"forwarded">, Schema.Literal<"deleted">, Schema.Literal<"archived">, Schema.Literal<"marked_spam">, Schema.Literal<"agent_processing_started">, Schema.Literal<"agent_processing_completed">, Schema.Literal<"agent_handoff">, Schema.Literal<"agent_escalation">, Schema.Literal<"opened">, Schema.Literal<"clicked">, Schema.Literal<"unsubscribed">, Schema.Literal<"whatsapp_read">, Schema.Literal<"whatsapp_deleted">, Schema.Literal<"retry_scheduled">, Schema.Literal<"retry_attempted">, Schema.Literal<"cost_calculated">]>;
|
|
1685
|
+
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
1686
|
+
readonly channel: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>;
|
|
1687
|
+
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
1688
|
+
readonly origin: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"direct">, Schema.Literal<"campaign">, Schema.Literal<"scheduled">, Schema.Literal<"mailbox">, Schema.Literal<"forwarding">, Schema.Literal<"journey">, Schema.Literal<"businessApp">]>, Schema.Null]>;
|
|
1689
|
+
readonly from: Schema.Union<readonly [Schema.Struct<{
|
|
1690
|
+
readonly address: Schema.String;
|
|
1691
|
+
readonly name: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1692
|
+
}>, Schema.Null]>;
|
|
1693
|
+
readonly recipient: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1694
|
+
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1695
|
+
readonly submission: Schema.Union<readonly [Schema.Struct<{
|
|
1696
|
+
readonly origin: Schema.Union<readonly [Schema.Literal<"direct">, Schema.Literal<"campaign">, Schema.Literal<"scheduled">, Schema.Literal<"mailbox">, Schema.Literal<"forwarding">, Schema.Literal<"journey">, Schema.Literal<"businessApp">]>;
|
|
1697
|
+
readonly transport: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"http">, Schema.Literal<"smtp">]>, Schema.Null]>;
|
|
1698
|
+
readonly credential: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1699
|
+
readonly kind: Schema.Literal<"api_key">;
|
|
1700
|
+
readonly apiKeyId: Schema.Union<readonly [Schema.brand<Schema.String, "ApiKeyId">, Schema.Null]>;
|
|
1701
|
+
readonly name: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1702
|
+
}>, Schema.Struct<{
|
|
1703
|
+
readonly kind: Schema.Literal<"oauth">;
|
|
1704
|
+
readonly clientId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1705
|
+
readonly name: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1706
|
+
}>, Schema.Struct<{
|
|
1707
|
+
readonly kind: Schema.Literal<"session">;
|
|
1708
|
+
}>]>, Schema.Null]>;
|
|
1709
|
+
readonly user: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1710
|
+
readonly id: Schema.brand<Schema.String, "UserId">;
|
|
1711
|
+
readonly email: Schema.String;
|
|
1712
|
+
readonly name: Schema.String;
|
|
1713
|
+
}>, Schema.Null]>>;
|
|
1714
|
+
readonly client: Schema.Union<readonly [Schema.Struct<{
|
|
1715
|
+
readonly surface: Schema.Union<readonly [Schema.Literal<"typescript-promise">, Schema.Literal<"typescript-effect">, Schema.Literal<"cli">, Schema.Literal<"mcp">]>;
|
|
1716
|
+
readonly version: Schema.String;
|
|
1717
|
+
}>, Schema.Null]>;
|
|
1718
|
+
}>, Schema.Null]>;
|
|
1719
|
+
readonly requestId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1720
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1721
|
+
readonly errorTag: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1722
|
+
}>>;
|
|
1723
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1724
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1725
|
+
readonly _tag: "ForbiddenError";
|
|
1726
|
+
readonly message: string;
|
|
1727
|
+
}, readonly [Schema.Struct<{
|
|
1728
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1729
|
+
readonly message: Schema.String;
|
|
1730
|
+
}>], {
|
|
1731
|
+
readonly _tag: "ForbiddenError";
|
|
1732
|
+
readonly message: string;
|
|
1733
|
+
}>, Schema.Struct<{
|
|
1734
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1735
|
+
readonly message: Schema.String;
|
|
1736
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1737
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1738
|
+
readonly message: string;
|
|
1739
|
+
readonly retryAfterSeconds: number;
|
|
1740
|
+
}, readonly [Schema.Struct<{
|
|
1741
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1742
|
+
readonly message: Schema.String;
|
|
1743
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1744
|
+
}>], {
|
|
1745
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1746
|
+
readonly message: string;
|
|
1747
|
+
readonly retryAfterSeconds: number;
|
|
1748
|
+
}>, Schema.Struct<{
|
|
1749
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1750
|
+
readonly message: Schema.String;
|
|
1751
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1752
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1753
|
+
readonly _tag: "MalformedRequestError";
|
|
1754
|
+
readonly message: string;
|
|
1755
|
+
readonly fields: {
|
|
1756
|
+
readonly [x: string]: readonly string[];
|
|
1757
|
+
};
|
|
1758
|
+
}, readonly [Schema.Struct<{
|
|
1759
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1760
|
+
readonly message: Schema.String;
|
|
1761
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1762
|
+
}>], {
|
|
1763
|
+
readonly _tag: "MalformedRequestError";
|
|
1764
|
+
readonly message: string;
|
|
1765
|
+
readonly fields: {
|
|
1766
|
+
readonly [x: string]: readonly string[];
|
|
1767
|
+
};
|
|
1768
|
+
}>, Schema.Struct<{
|
|
1769
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1770
|
+
readonly message: Schema.String;
|
|
1771
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1772
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1773
|
+
readonly _tag: "UnauthorizedError";
|
|
1774
|
+
readonly message: string;
|
|
1775
|
+
}, readonly [Schema.Struct<{
|
|
1776
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1777
|
+
readonly message: Schema.String;
|
|
1778
|
+
}>], {
|
|
1779
|
+
readonly _tag: "UnauthorizedError";
|
|
1780
|
+
readonly message: string;
|
|
1781
|
+
}>, Schema.Struct<{
|
|
1782
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1783
|
+
readonly message: Schema.String;
|
|
1784
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1785
|
+
readonly _tag: "ValidationError";
|
|
1786
|
+
readonly message: string;
|
|
1787
|
+
readonly fields?: {
|
|
1788
|
+
readonly [x: string]: readonly string[];
|
|
1789
|
+
} | null;
|
|
1790
|
+
}, readonly [Schema.Struct<{
|
|
1791
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1792
|
+
readonly message: Schema.String;
|
|
1793
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1794
|
+
}>], {
|
|
1795
|
+
readonly _tag: "ValidationError";
|
|
1796
|
+
readonly message: string;
|
|
1797
|
+
readonly fields?: {
|
|
1798
|
+
readonly [x: string]: readonly string[];
|
|
1799
|
+
} | null;
|
|
1800
|
+
}>, Schema.Struct<{
|
|
1801
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1802
|
+
readonly message: Schema.String;
|
|
1803
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1804
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1805
|
+
export declare const LogsGetEndpoint: HttpApiEndpoint.HttpApiEndpoint<"logsGet", "GET", "/v1/logs/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
1662
1806
|
readonly id: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.String, Schema.String]>;
|
|
1663
1807
|
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
1664
1808
|
readonly kind: Schema.Literal<"message">;
|
|
@@ -2174,150 +2318,4 @@ declare const LogsGroup_base: HttpApiGroup.HttpApiGroup<"Logs", HttpApiEndpoint.
|
|
|
2174
2318
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
2175
2319
|
readonly message: Schema.String;
|
|
2176
2320
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2177
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
2178
|
-
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
2179
|
-
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
2180
|
-
readonly after: Schema.optionalKey<Schema.String>;
|
|
2181
|
-
readonly orderBy: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"timestamp">, Schema.Literal<"recorded">]>>;
|
|
2182
|
-
readonly order: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
2183
|
-
readonly since: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
|
|
2184
|
-
readonly until: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
|
|
2185
|
-
readonly status: Schema.optionalKey<Schema.String>;
|
|
2186
|
-
readonly event: Schema.optionalKey<Schema.String>;
|
|
2187
|
-
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
|
|
2188
|
-
readonly direction: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>>;
|
|
2189
|
-
readonly origin: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"direct">, Schema.Literal<"campaign">, Schema.Literal<"scheduled">, Schema.Literal<"mailbox">, Schema.Literal<"forwarding">, Schema.Literal<"journey">, Schema.Literal<"businessApp">]>>;
|
|
2190
|
-
readonly credential: Schema.optionalKey<Schema.String>;
|
|
2191
|
-
readonly from: Schema.optionalKey<Schema.String>;
|
|
2192
|
-
readonly messageId: Schema.optionalKey<Schema.brand<Schema.String, "MessageId">>;
|
|
2193
|
-
readonly mailboxId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxId">>;
|
|
2194
|
-
readonly requestId: Schema.optionalKey<Schema.String>;
|
|
2195
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2196
|
-
readonly items: Schema.$Array<Schema.Struct<{
|
|
2197
|
-
readonly id: Schema.String;
|
|
2198
|
-
readonly cursor: Schema.String;
|
|
2199
|
-
readonly timestamp: Schema.String;
|
|
2200
|
-
readonly event: Schema.Union<readonly [Schema.Literal<"accepted">, Schema.Literal<"waiting">, Schema.Literal<"received">, Schema.Literal<"rejected">, Schema.Literal<"created">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">, Schema.Literal<"replied">, Schema.Literal<"forwarded">, Schema.Literal<"deleted">, Schema.Literal<"archived">, Schema.Literal<"marked_spam">, Schema.Literal<"agent_processing_started">, Schema.Literal<"agent_processing_completed">, Schema.Literal<"agent_handoff">, Schema.Literal<"agent_escalation">, Schema.Literal<"opened">, Schema.Literal<"clicked">, Schema.Literal<"unsubscribed">, Schema.Literal<"whatsapp_read">, Schema.Literal<"whatsapp_deleted">, Schema.Literal<"retry_scheduled">, Schema.Literal<"retry_attempted">, Schema.Literal<"cost_calculated">]>;
|
|
2201
|
-
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
2202
|
-
readonly channel: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>;
|
|
2203
|
-
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
2204
|
-
readonly origin: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"direct">, Schema.Literal<"campaign">, Schema.Literal<"scheduled">, Schema.Literal<"mailbox">, Schema.Literal<"forwarding">, Schema.Literal<"journey">, Schema.Literal<"businessApp">]>, Schema.Null]>;
|
|
2205
|
-
readonly from: Schema.Union<readonly [Schema.Struct<{
|
|
2206
|
-
readonly address: Schema.String;
|
|
2207
|
-
readonly name: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2208
|
-
}>, Schema.Null]>;
|
|
2209
|
-
readonly recipient: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2210
|
-
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2211
|
-
readonly submission: Schema.Union<readonly [Schema.Struct<{
|
|
2212
|
-
readonly origin: Schema.Union<readonly [Schema.Literal<"direct">, Schema.Literal<"campaign">, Schema.Literal<"scheduled">, Schema.Literal<"mailbox">, Schema.Literal<"forwarding">, Schema.Literal<"journey">, Schema.Literal<"businessApp">]>;
|
|
2213
|
-
readonly transport: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"http">, Schema.Literal<"smtp">]>, Schema.Null]>;
|
|
2214
|
-
readonly credential: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2215
|
-
readonly kind: Schema.Literal<"api_key">;
|
|
2216
|
-
readonly apiKeyId: Schema.Union<readonly [Schema.brand<Schema.String, "ApiKeyId">, Schema.Null]>;
|
|
2217
|
-
readonly name: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2218
|
-
}>, Schema.Struct<{
|
|
2219
|
-
readonly kind: Schema.Literal<"oauth">;
|
|
2220
|
-
readonly clientId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2221
|
-
readonly name: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2222
|
-
}>, Schema.Struct<{
|
|
2223
|
-
readonly kind: Schema.Literal<"session">;
|
|
2224
|
-
}>]>, Schema.Null]>;
|
|
2225
|
-
readonly user: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2226
|
-
readonly id: Schema.brand<Schema.String, "UserId">;
|
|
2227
|
-
readonly email: Schema.String;
|
|
2228
|
-
readonly name: Schema.String;
|
|
2229
|
-
}>, Schema.Null]>>;
|
|
2230
|
-
readonly client: Schema.Union<readonly [Schema.Struct<{
|
|
2231
|
-
readonly surface: Schema.Union<readonly [Schema.Literal<"typescript-promise">, Schema.Literal<"typescript-effect">, Schema.Literal<"cli">, Schema.Literal<"mcp">]>;
|
|
2232
|
-
readonly version: Schema.String;
|
|
2233
|
-
}>, Schema.Null]>;
|
|
2234
|
-
}>, Schema.Null]>;
|
|
2235
|
-
readonly requestId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2236
|
-
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2237
|
-
readonly errorTag: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2238
|
-
}>>;
|
|
2239
|
-
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2240
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
2241
|
-
readonly _tag: "ForbiddenError";
|
|
2242
|
-
readonly message: string;
|
|
2243
|
-
}, readonly [Schema.Struct<{
|
|
2244
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
2245
|
-
readonly message: Schema.String;
|
|
2246
|
-
}>], {
|
|
2247
|
-
readonly _tag: "ForbiddenError";
|
|
2248
|
-
readonly message: string;
|
|
2249
|
-
}>, Schema.Struct<{
|
|
2250
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
2251
|
-
readonly message: Schema.String;
|
|
2252
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
2253
|
-
readonly _tag: "GatewayTimeoutError";
|
|
2254
|
-
readonly message: string;
|
|
2255
|
-
readonly retryAfterSeconds: number;
|
|
2256
|
-
}, readonly [Schema.Struct<{
|
|
2257
|
-
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2258
|
-
readonly message: Schema.String;
|
|
2259
|
-
readonly retryAfterSeconds: Schema.Finite;
|
|
2260
|
-
}>], {
|
|
2261
|
-
readonly _tag: "GatewayTimeoutError";
|
|
2262
|
-
readonly message: string;
|
|
2263
|
-
readonly retryAfterSeconds: number;
|
|
2264
|
-
}>, Schema.Struct<{
|
|
2265
|
-
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2266
|
-
readonly message: Schema.String;
|
|
2267
|
-
readonly retryAfterSeconds: Schema.Finite;
|
|
2268
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
2269
|
-
readonly _tag: "MalformedRequestError";
|
|
2270
|
-
readonly message: string;
|
|
2271
|
-
readonly fields: {
|
|
2272
|
-
readonly [x: string]: readonly string[];
|
|
2273
|
-
};
|
|
2274
|
-
}, readonly [Schema.Struct<{
|
|
2275
|
-
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2276
|
-
readonly message: Schema.String;
|
|
2277
|
-
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2278
|
-
}>], {
|
|
2279
|
-
readonly _tag: "MalformedRequestError";
|
|
2280
|
-
readonly message: string;
|
|
2281
|
-
readonly fields: {
|
|
2282
|
-
readonly [x: string]: readonly string[];
|
|
2283
|
-
};
|
|
2284
|
-
}>, Schema.Struct<{
|
|
2285
|
-
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2286
|
-
readonly message: Schema.String;
|
|
2287
|
-
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2288
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
2289
|
-
readonly _tag: "UnauthorizedError";
|
|
2290
|
-
readonly message: string;
|
|
2291
|
-
}, readonly [Schema.Struct<{
|
|
2292
|
-
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
2293
|
-
readonly message: Schema.String;
|
|
2294
|
-
}>], {
|
|
2295
|
-
readonly _tag: "UnauthorizedError";
|
|
2296
|
-
readonly message: string;
|
|
2297
|
-
}>, Schema.Struct<{
|
|
2298
|
-
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
2299
|
-
readonly message: Schema.String;
|
|
2300
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
2301
|
-
readonly _tag: "ValidationError";
|
|
2302
|
-
readonly message: string;
|
|
2303
|
-
readonly fields?: {
|
|
2304
|
-
readonly [x: string]: readonly string[];
|
|
2305
|
-
} | null;
|
|
2306
|
-
}, readonly [Schema.Struct<{
|
|
2307
|
-
readonly _tag: Schema.tag<"ValidationError">;
|
|
2308
|
-
readonly message: Schema.String;
|
|
2309
|
-
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2310
|
-
}>], {
|
|
2311
|
-
readonly _tag: "ValidationError";
|
|
2312
|
-
readonly message: string;
|
|
2313
|
-
readonly fields?: {
|
|
2314
|
-
readonly [x: string]: readonly string[];
|
|
2315
|
-
} | null;
|
|
2316
|
-
}>, Schema.Struct<{
|
|
2317
|
-
readonly _tag: Schema.tag<"ValidationError">;
|
|
2318
|
-
readonly message: Schema.String;
|
|
2319
|
-
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2320
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>, false>;
|
|
2321
|
-
export declare class LogsGroup extends LogsGroup_base {
|
|
2322
|
-
}
|
|
2323
|
-
export {};
|
|
2321
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbsoluteInstant } from "../runtime.js";
|
|
2
|
-
import { HttpApiEndpoint,
|
|
2
|
+
import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
import { ApiKeyId, ApiKeySecurityMiddleware, DeliveryErrorDetails, ForbiddenError, GatewayTimeoutError, InternalError, MailboxId, MalformedRequestError, MessageContent, MessageId, ResourceNotFoundError, SubmissionClient, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
5
5
|
// src/effect/generated/logs.ts
|
|
@@ -283,7 +283,7 @@ const LogsGet404 = ResourceNotFoundError;
|
|
|
283
283
|
const LogsGet422 = ValidationError;
|
|
284
284
|
const LogsGet500 = InternalError;
|
|
285
285
|
const LogsGet504 = GatewayTimeoutError;
|
|
286
|
-
|
|
286
|
+
const LogsListEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("logsList", "/v1/logs", {
|
|
287
287
|
query: LogsListQuery,
|
|
288
288
|
success: LogsList200,
|
|
289
289
|
error: [
|
|
@@ -294,7 +294,8 @@ var LogsGroup = class extends HttpApiGroup.make("Logs").add(HttpApiEndpoint.get(
|
|
|
294
294
|
LogsList500,
|
|
295
295
|
LogsList504.pipe(HttpApiSchema.status(504))
|
|
296
296
|
]
|
|
297
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "logs.list").annotate(OpenApi.Summary, "List message log events").annotate(OpenApi.Description, "Lists the organization's message events in its plan's log window. The default sort is by event timestamp. Use orderBy=recorded and order=asc to poll events in ingestion order, including events with older timestamps. Pass the last event's cursor as after. Keep the same sort and direction when paging.")
|
|
297
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "logs.list").annotate(OpenApi.Summary, "List message log events").annotate(OpenApi.Description, "Lists the organization's message events in its plan's log window. The default sort is by event timestamp. Use orderBy=recorded and order=asc to poll events in ingestion order, including events with older timestamps. Pass the last event's cursor as after. Keep the same sort and direction when paging."))();
|
|
298
|
+
const LogsGetEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("logsGet", "/v1/logs/:id", {
|
|
298
299
|
params: LogsGetPathParams,
|
|
299
300
|
success: LogsGet200,
|
|
300
301
|
error: [
|
|
@@ -306,7 +307,7 @@ var LogsGroup = class extends HttpApiGroup.make("Logs").add(HttpApiEndpoint.get(
|
|
|
306
307
|
LogsGet500,
|
|
307
308
|
LogsGet504.pipe(HttpApiSchema.status(504))
|
|
308
309
|
]
|
|
309
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "logs.get").annotate(OpenApi.Summary, "Get message log detail").annotate(OpenApi.Description, "Returns the message and its event timeline, or a rejected submission, by message, rejection, or request ID."))
|
|
310
|
-
export { LogApiRequest, LogCampaign, LogCredential, LogDetail, LogLine, LogSender, LogStatusTimeline, LogSubmission, LogUser, LogsGet200, LogsGet400, LogsGet401, LogsGet403, LogsGet404, LogsGet422, LogsGet500, LogsGet504,
|
|
310
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "logs.get").annotate(OpenApi.Summary, "Get message log detail").annotate(OpenApi.Description, "Returns the message and its event timeline, or a rejected submission, by message, rejection, or request ID."))();
|
|
311
|
+
export { LogApiRequest, LogCampaign, LogCredential, LogDetail, LogLine, LogSender, LogStatusTimeline, LogSubmission, LogUser, LogsGet200, LogsGet400, LogsGet401, LogsGet403, LogsGet404, LogsGet422, LogsGet500, LogsGet504, LogsGetEndpoint, LogsGetPathParams, LogsList200, LogsList400, LogsList401, LogsList403, LogsList422, LogsList500, LogsList504, LogsListEndpoint, LogsListQuery, MessageLogDetail, MessageLogPage, RejectedLogDetail };
|
|
311
312
|
|
|
312
313
|
//# sourceMappingURL=logs.js.map
|