samva 0.27.0 → 0.28.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 +7 -0
- package/README.md +14 -7
- package/dist/client/sdk.gen.d.ts +322 -143
- package/dist/client/sdk.gen.js +604 -95
- package/dist/client/types.gen.d.ts +1342 -479
- package/dist/effect/agents.d.ts +6 -8
- package/dist/effect/analytics.d.ts +1 -1
- package/dist/effect/api-keys.d.ts +6 -6
- package/dist/effect/attachments.d.ts +1 -1
- package/dist/effect/brands.d.ts +2 -0
- package/dist/effect/campaigns.d.ts +275 -25
- package/dist/effect/campaigns.js +7 -1
- package/dist/effect/contact-groups.d.ts +9 -9
- package/dist/effect/contacts.d.ts +74 -81
- package/dist/effect/contacts.js +7 -3
- package/dist/effect/conversations.d.ts +14 -6
- package/dist/effect/email.d.ts +34 -34
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +3 -3
- package/dist/effect/extensions.d.ts +6 -6
- package/dist/effect/generated/agents.d.ts +6 -28
- package/dist/effect/generated/agents.js +2 -3
- package/dist/effect/generated/analytics.d.ts +3 -3
- package/dist/effect/generated/analytics.js +1 -1
- package/dist/effect/generated/api-keys.d.ts +6 -6
- package/dist/effect/generated/api-keys.js +2 -2
- package/dist/effect/generated/attachments.d.ts +3 -3
- package/dist/effect/generated/attachments.js +1 -1
- package/dist/effect/generated/brands.d.ts +16 -0
- package/dist/effect/generated/campaigns.d.ts +1181 -302
- package/dist/effect/generated/campaigns.js +169 -36
- package/dist/effect/generated/contact-events.d.ts +3 -3
- package/dist/effect/generated/contact-events.js +1 -1
- package/dist/effect/generated/contact-groups.d.ts +9 -9
- package/dist/effect/generated/contact-groups.js +7 -7
- package/dist/effect/generated/contacts.d.ts +2063 -290
- package/dist/effect/generated/contacts.js +343 -75
- package/dist/effect/generated/conversations.d.ts +14 -6
- package/dist/effect/generated/conversations.js +6 -6
- package/dist/effect/generated/email.d.ts +40 -40
- package/dist/effect/generated/email.js +15 -15
- package/dist/effect/generated/extension-installations.d.ts +3 -3
- package/dist/effect/generated/extension-installations.js +1 -1
- package/dist/effect/generated/extensions.d.ts +6 -6
- package/dist/effect/generated/extensions.js +2 -2
- package/dist/effect/generated/index.d.ts +5 -3
- package/dist/effect/generated/journeys.d.ts +9 -9
- package/dist/effect/generated/journeys.js +3 -3
- package/dist/effect/generated/mailboxes.d.ts +172 -124
- package/dist/effect/generated/mailboxes.js +22 -14
- package/dist/effect/generated/messages.d.ts +53 -29
- package/dist/effect/generated/messages.js +9 -5
- package/dist/effect/generated/namespaces.d.ts +3 -3
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/operations.d.ts +3 -3
- package/dist/effect/generated/operations.js +1 -1
- package/dist/effect/generated/organizations.d.ts +0 -9
- package/dist/effect/generated/organizations.js +1 -4
- package/dist/effect/generated/scheduled-messages.d.ts +69 -20
- package/dist/effect/generated/scheduled-messages.js +22 -3
- package/dist/effect/generated/shared.d.ts +396 -107
- package/dist/effect/generated/shared.js +170 -89
- package/dist/effect/generated/subscriptions.d.ts +4 -7
- package/dist/effect/generated/subscriptions.js +3 -4
- package/dist/effect/generated/templates.d.ts +71 -407
- package/dist/effect/generated/templates.js +23 -23
- package/dist/effect/generated/topic-forms.d.ts +656 -0
- package/dist/effect/generated/topic-forms.js +145 -0
- package/dist/effect/generated/{unsubscribe-groups.d.ts → topics.d.ts} +640 -435
- package/dist/effect/generated/topics.js +267 -0
- package/dist/effect/generated/webhooks.d.ts +6 -6
- package/dist/effect/generated/webhooks.js +2 -2
- package/dist/effect/generated-metadata.d.ts +78 -24
- package/dist/effect/generated-metadata.js +61 -27
- package/dist/effect/index.d.ts +2 -1
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/operation.js +3 -3
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +7 -7
- package/dist/effect/mailboxes.d.ts +137 -121
- package/dist/effect/messages.d.ts +19 -11
- package/dist/effect/namespaces.d.ts +3 -3
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/scheduled-messages.d.ts +6 -6
- package/dist/effect/subscriptions.d.ts +1 -2
- package/dist/effect/templates.d.ts +13 -13
- package/dist/effect/topic-forms.d.ts +30 -0
- package/dist/effect/topic-forms.js +21 -0
- package/dist/effect/topics.d.ts +94 -0
- package/dist/effect/topics.js +29 -0
- package/dist/effect/webhooks.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +65 -8
- package/dist/promises/errors.gen.js +139 -7
- package/dist/promises/index.d.ts +5 -3
- package/dist/promises/index.js +7 -5
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +74 -25
- package/dist/service-map.js +43 -12
- package/package.json +12 -8
- package/dist/effect/generated/unsubscribe-groups.js +0 -284
- package/dist/effect/unsubscribe-groups.d.ts +0 -74
- package/dist/effect/unsubscribe-groups.js +0 -29
|
@@ -80,6 +80,10 @@ const SamvaErrorMetadata = {
|
|
|
80
80
|
categories: ["transient"],
|
|
81
81
|
retryable: true
|
|
82
82
|
},
|
|
83
|
+
TemplateSourceError: {
|
|
84
|
+
categories: ["validation"],
|
|
85
|
+
retryable: false
|
|
86
|
+
},
|
|
83
87
|
UnauthorizedError: {
|
|
84
88
|
categories: ["auth"],
|
|
85
89
|
retryable: false
|
|
@@ -570,41 +574,61 @@ const operationMetadata95 = {
|
|
|
570
574
|
paginated: false
|
|
571
575
|
};
|
|
572
576
|
const operationMetadata96 = {
|
|
573
|
-
group: "
|
|
577
|
+
group: "Topics",
|
|
574
578
|
method: "GET",
|
|
575
579
|
paginated: false
|
|
576
580
|
};
|
|
577
581
|
const operationMetadata97 = {
|
|
578
|
-
group: "
|
|
582
|
+
group: "Topics",
|
|
579
583
|
method: "POST",
|
|
580
584
|
paginated: false
|
|
581
585
|
};
|
|
582
586
|
const operationMetadata98 = {
|
|
583
|
-
group: "
|
|
587
|
+
group: "Topics",
|
|
584
588
|
method: "DELETE",
|
|
585
589
|
paginated: false
|
|
586
590
|
};
|
|
587
591
|
const operationMetadata99 = {
|
|
588
|
-
group: "
|
|
592
|
+
group: "Topics",
|
|
589
593
|
method: "PATCH",
|
|
590
594
|
paginated: false
|
|
591
595
|
};
|
|
592
596
|
const operationMetadata100 = {
|
|
593
|
-
group: "
|
|
597
|
+
group: "Topic forms",
|
|
594
598
|
method: "GET",
|
|
595
|
-
paginated:
|
|
599
|
+
paginated: false
|
|
596
600
|
};
|
|
597
601
|
const operationMetadata101 = {
|
|
602
|
+
group: "Topic forms",
|
|
603
|
+
method: "POST",
|
|
604
|
+
paginated: false
|
|
605
|
+
};
|
|
606
|
+
const operationMetadata102 = {
|
|
607
|
+
group: "Topic forms",
|
|
608
|
+
method: "DELETE",
|
|
609
|
+
paginated: false
|
|
610
|
+
};
|
|
611
|
+
const operationMetadata103 = {
|
|
612
|
+
group: "Topic forms",
|
|
613
|
+
method: "PATCH",
|
|
614
|
+
paginated: false
|
|
615
|
+
};
|
|
616
|
+
const operationMetadata104 = {
|
|
617
|
+
group: "Topics",
|
|
618
|
+
method: "GET",
|
|
619
|
+
paginated: true
|
|
620
|
+
};
|
|
621
|
+
const operationMetadata105 = {
|
|
598
622
|
group: "Webhooks",
|
|
599
623
|
method: "GET",
|
|
600
624
|
paginated: true
|
|
601
625
|
};
|
|
602
|
-
const
|
|
626
|
+
const operationMetadata106 = {
|
|
603
627
|
group: "Webhooks",
|
|
604
628
|
method: "POST",
|
|
605
629
|
paginated: false
|
|
606
630
|
};
|
|
607
|
-
const
|
|
631
|
+
const operationMetadata107 = {
|
|
608
632
|
group: "Webhooks",
|
|
609
633
|
method: "GET",
|
|
610
634
|
paginated: false
|
|
@@ -654,7 +678,10 @@ const SamvaOperations = {
|
|
|
654
678
|
campaignsCancelRun: operationMetadata19,
|
|
655
679
|
campaignsPauseRun: operationMetadata19,
|
|
656
680
|
campaignsListRecipients: operationMetadata18,
|
|
681
|
+
campaignsGetRunReport: operationMetadata20,
|
|
657
682
|
campaignsResumeRun: operationMetadata19,
|
|
683
|
+
campaignsPreview: operationMetadata19,
|
|
684
|
+
campaignsSendTest: operationMetadata19,
|
|
658
685
|
contactGroupsList: operationMetadata22,
|
|
659
686
|
contactGroupsCreate: operationMetadata23,
|
|
660
687
|
contactGroupsGetById: operationMetadata24,
|
|
@@ -680,12 +707,14 @@ const SamvaOperations = {
|
|
|
680
707
|
contactsAddTags: operationMetadata28,
|
|
681
708
|
contactsRemoveTags: operationMetadata30,
|
|
682
709
|
contactsBulkDelete: operationMetadata28,
|
|
683
|
-
contactsBulkImport: operationMetadata28,
|
|
684
710
|
contactsBulkUpdateStatus: operationMetadata28,
|
|
685
711
|
contactsBulkUpdateTags: operationMetadata28,
|
|
686
712
|
contactsExport: operationMetadata28,
|
|
687
713
|
contactsFind: operationMetadata28,
|
|
688
714
|
contactsFindOrCreate: operationMetadata28,
|
|
715
|
+
contactsStartImport: operationMetadata28,
|
|
716
|
+
contactsGetImportJob: operationMetadata29,
|
|
717
|
+
contactsPlanImport: operationMetadata28,
|
|
689
718
|
conversationsList: operationMetadata34,
|
|
690
719
|
conversationsCreate: operationMetadata35,
|
|
691
720
|
conversationsGetById: operationMetadata36,
|
|
@@ -930,18 +959,23 @@ const SamvaOperations = {
|
|
|
930
959
|
templatesCreateFamilyFromTemplate: operationMetadata91,
|
|
931
960
|
templatesCreateFromWebsite: operationMetadata91,
|
|
932
961
|
templatesAddEntry: operationMetadata91,
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
962
|
+
topicsList: operationMetadata96,
|
|
963
|
+
topicsCreate: operationMetadata97,
|
|
964
|
+
topicsGet: operationMetadata96,
|
|
965
|
+
topicsRemove: operationMetadata98,
|
|
966
|
+
topicsUpdate: operationMetadata99,
|
|
967
|
+
topicsSetDefault: operationMetadata97,
|
|
968
|
+
topicFormsList: operationMetadata100,
|
|
969
|
+
topicFormsCreate: operationMetadata101,
|
|
970
|
+
topicFormsGet: operationMetadata100,
|
|
971
|
+
topicFormsRemove: operationMetadata102,
|
|
972
|
+
topicFormsUpdate: operationMetadata103,
|
|
973
|
+
topicsListSubscriptions: operationMetadata104,
|
|
974
|
+
topicsSetSubscriptions: operationMetadata97,
|
|
975
|
+
topicsCheckSubscription: operationMetadata96,
|
|
976
|
+
webhooksList: operationMetadata105,
|
|
977
|
+
webhooksCreate: operationMetadata106,
|
|
978
|
+
webhooksGet: operationMetadata107,
|
|
945
979
|
webhooksRemove: {
|
|
946
980
|
group: "Webhooks",
|
|
947
981
|
method: "DELETE",
|
|
@@ -952,12 +986,12 @@ const SamvaOperations = {
|
|
|
952
986
|
method: "PATCH",
|
|
953
987
|
paginated: false
|
|
954
988
|
},
|
|
955
|
-
webhooksRetryDelivery:
|
|
956
|
-
webhooksGetLogs:
|
|
957
|
-
webhooksRegenerateSecret:
|
|
958
|
-
webhooksGetSecret:
|
|
959
|
-
webhooksGetStats:
|
|
960
|
-
webhooksTest:
|
|
989
|
+
webhooksRetryDelivery: operationMetadata106,
|
|
990
|
+
webhooksGetLogs: operationMetadata105,
|
|
991
|
+
webhooksRegenerateSecret: operationMetadata106,
|
|
992
|
+
webhooksGetSecret: operationMetadata107,
|
|
993
|
+
webhooksGetStats: operationMetadata107,
|
|
994
|
+
webhooksTest: operationMetadata106,
|
|
961
995
|
whoamiGet: {
|
|
962
996
|
group: "Whoami",
|
|
963
997
|
method: "GET",
|
package/dist/effect/index.d.ts
CHANGED
|
@@ -43,7 +43,8 @@ export * as Retry from "./retry";
|
|
|
43
43
|
export * as ScheduledMessages from "./scheduled-messages";
|
|
44
44
|
export * as Subscriptions from "./subscriptions";
|
|
45
45
|
export * as Templates from "./templates";
|
|
46
|
-
export * as
|
|
46
|
+
export * as Topics from "./topics";
|
|
47
|
+
export * as TopicForms from "./topic-forms";
|
|
47
48
|
export * as Webhooks from "./webhooks";
|
|
48
49
|
export * as Whoami from "./whoami";
|
|
49
50
|
export * from "./errors";
|
package/dist/effect/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaUploadError } from "../inline-attachments.js";
|
|
2
|
-
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./generated/shared.js";
|
|
2
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TemplateSourceError, UnauthorizedError, ValidationError } from "./generated/shared.js";
|
|
3
3
|
import { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError } from "./categories.js";
|
|
4
4
|
import { retry_exports } from "./retry.js";
|
|
5
5
|
import { agents_exports } from "./agents.js";
|
|
@@ -28,7 +28,8 @@ import { organizations_exports } from "./organizations.js";
|
|
|
28
28
|
import { scheduled_messages_exports } from "./scheduled-messages.js";
|
|
29
29
|
import { subscriptions_exports } from "./subscriptions.js";
|
|
30
30
|
import { templates_exports } from "./templates.js";
|
|
31
|
-
import {
|
|
31
|
+
import { topics_exports } from "./topics.js";
|
|
32
|
+
import { topic_forms_exports } from "./topic-forms.js";
|
|
32
33
|
import { webhooks_exports } from "./webhooks.js";
|
|
33
34
|
import { whoami_exports } from "./whoami.js";
|
|
34
|
-
export { agents_exports as Agents, analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, journeys_exports as Journeys, MailboxSendConflictError, MailboxSendRefusedError, mailboxes_exports as Mailboxes, media_exports as Media, MediaUploadError, messages_exports as Messages, namespaces_exports as Namespaces, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, subscriptions_exports as Subscriptions, templates_exports as Templates,
|
|
35
|
+
export { agents_exports as Agents, analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, journeys_exports as Journeys, MailboxSendConflictError, MailboxSendRefusedError, mailboxes_exports as Mailboxes, media_exports as Media, MediaUploadError, messages_exports as Messages, namespaces_exports as Namespaces, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, subscriptions_exports as Subscriptions, TemplateSourceError, templates_exports as Templates, topic_forms_exports as TopicForms, topics_exports as Topics, UnauthorizedError, ValidationError, webhooks_exports as Webhooks, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
@@ -28,7 +28,7 @@ const MODULE_NAMES = {
|
|
|
28
28
|
organizations: "Organizations",
|
|
29
29
|
scheduledMessages: "ScheduledMessages",
|
|
30
30
|
templates: "Templates",
|
|
31
|
-
|
|
31
|
+
topics: "Topics",
|
|
32
32
|
webhooks: "Webhooks",
|
|
33
33
|
whoami: "Whoami"
|
|
34
34
|
};
|
|
@@ -50,8 +50,8 @@ const adapt = (operationName, rawCall, input) => {
|
|
|
50
50
|
const descriptor = SDK_OPERATION_CALLS[operationName];
|
|
51
51
|
const call = READ_METHODS.has(SamvaOperations[operationName].method) ? (request) => withRetry(rawCall(request)) : rawCall;
|
|
52
52
|
if (descriptor.kind === "none") return call();
|
|
53
|
-
if (descriptor.kind === "params") return call({ query: stripUndefined(input) });
|
|
54
|
-
if (descriptor.kind === "payload") return call({ payload: stripUndefined(input) });
|
|
53
|
+
if (descriptor.kind === "params") return call({ query: stripUndefined(input === void 0 ? {} : input) });
|
|
54
|
+
if (descriptor.kind === "payload") return call({ payload: stripUndefined(input === void 0 ? {} : input) });
|
|
55
55
|
if (descriptor.kind === "idempotentPayload") {
|
|
56
56
|
const { idempotencyKey, ...payload } = input;
|
|
57
57
|
return call({
|
|
@@ -40,8 +40,8 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
40
40
|
readonly reviewExpectedAt: string | null;
|
|
41
41
|
readonly skippedRecipients: readonly {
|
|
42
42
|
readonly address: string;
|
|
43
|
-
readonly reason: "bounce" | "complaint" | "
|
|
44
|
-
readonly
|
|
43
|
+
readonly reason: "bounce" | "complaint" | "manual" | "topic-unsubscribe" | "unsubscribe";
|
|
44
|
+
readonly topicId?: (string & import("effect/Brand").Brand<"TopicId">) | null;
|
|
45
45
|
}[];
|
|
46
46
|
readonly createdAt: string;
|
|
47
47
|
}, UploadFailure, Service>;
|
|
@@ -52,8 +52,8 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
52
52
|
readonly reviewExpectedAt: string | null;
|
|
53
53
|
readonly skippedRecipients: readonly {
|
|
54
54
|
readonly address: string;
|
|
55
|
-
readonly reason: "bounce" | "complaint" | "
|
|
56
|
-
readonly
|
|
55
|
+
readonly reason: "bounce" | "complaint" | "manual" | "topic-unsubscribe" | "unsubscribe";
|
|
56
|
+
readonly topicId?: (string & import("effect/Brand").Brand<"TopicId">) | null;
|
|
57
57
|
}[];
|
|
58
58
|
readonly createdAt: string;
|
|
59
59
|
}, UploadFailure, Service>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly status?: "active" | "archived" | "draft" | "paused" | null | undefined;
|
|
3
|
-
readonly limit?:
|
|
3
|
+
readonly limit?: number | null | undefined;
|
|
4
4
|
readonly cursor?: string | null | undefined;
|
|
5
5
|
} | undefined) => import("./internal/operation").OperationResult<"journeysList">) & {
|
|
6
6
|
readonly pages: (input?: {
|
|
7
7
|
readonly status?: "active" | "archived" | "draft" | "paused" | null | undefined;
|
|
8
|
-
readonly limit?:
|
|
8
|
+
readonly limit?: number | null | undefined;
|
|
9
9
|
readonly cursor?: string | null | undefined;
|
|
10
10
|
} | undefined) => import("effect/Stream").Stream<{
|
|
11
11
|
readonly items: readonly {
|
|
@@ -21,7 +21,7 @@ export declare const list: ((input?: {
|
|
|
21
21
|
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
22
22
|
readonly items: (input?: {
|
|
23
23
|
readonly status?: "active" | "archived" | "draft" | "paused" | null | undefined;
|
|
24
|
-
readonly limit?:
|
|
24
|
+
readonly limit?: number | null | undefined;
|
|
25
25
|
readonly cursor?: string | null | undefined;
|
|
26
26
|
} | undefined) => import("effect/Stream").Stream<{
|
|
27
27
|
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
@@ -419,20 +419,20 @@ export declare const getVersion: (input: {
|
|
|
419
419
|
}) => import("./internal/operation").OperationResult<"journeysGetVersion">;
|
|
420
420
|
export declare const stats: (input: {
|
|
421
421
|
readonly id: string;
|
|
422
|
-
readonly version?:
|
|
422
|
+
readonly version?: number | null | undefined;
|
|
423
423
|
}) => import("./internal/operation").OperationResult<"journeysStats">;
|
|
424
424
|
export declare const listRuns: ((input: {
|
|
425
425
|
readonly id: string;
|
|
426
426
|
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
427
427
|
readonly contactId?: string | null | undefined;
|
|
428
|
-
readonly limit?:
|
|
428
|
+
readonly limit?: number | null | undefined;
|
|
429
429
|
readonly cursor?: string | null | undefined;
|
|
430
430
|
}) => import("./internal/operation").OperationResult<"journeysListRuns">) & {
|
|
431
431
|
readonly pages: (input: {
|
|
432
432
|
readonly id: string;
|
|
433
433
|
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
434
434
|
readonly contactId?: string | null | undefined;
|
|
435
|
-
readonly limit?:
|
|
435
|
+
readonly limit?: number | null | undefined;
|
|
436
436
|
readonly cursor?: string | null | undefined;
|
|
437
437
|
}) => import("effect/Stream").Stream<{
|
|
438
438
|
readonly items: readonly {
|
|
@@ -462,7 +462,7 @@ export declare const listRuns: ((input: {
|
|
|
462
462
|
readonly id: string;
|
|
463
463
|
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
464
464
|
readonly contactId?: string | null | undefined;
|
|
465
|
-
readonly limit?:
|
|
465
|
+
readonly limit?: number | null | undefined;
|
|
466
466
|
readonly cursor?: string | null | undefined;
|
|
467
467
|
}) => import("effect/Stream").Stream<{
|
|
468
468
|
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|