coss 0.5.0 → 0.6.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.
@@ -9,7 +9,7 @@ const API_VERSION = "2026-10-10";
9
9
  //#endregion
10
10
  //#region src/version.ts
11
11
  /** SDK version, sent in the User-Agent. A test keeps it equal to package.json's `version`. */
12
- const VERSION = "0.5.0";
12
+ const VERSION = "0.6.0";
13
13
  //#endregion
14
14
  //#region src/core/errors.ts
15
15
  const API_ERROR_TYPES = /* @__PURE__ */ new Set([
@@ -669,6 +669,517 @@ function failure(code, message, param) {
669
669
  };
670
670
  }
671
671
  //#endregion
672
+ //#region src/resources/broadcasts.ts
673
+ const path$1 = (id) => encodeURIComponent(id);
674
+ /**
675
+ * `coss.email.broadcasts`: one marketing email to an audience or a segment, sent to each
676
+ * subscribed contact at the plan's marketing rate, with per-broadcast stats.
677
+ */
678
+ var BroadcastsResource = class {
679
+ #http;
680
+ /** @internal Use `new Coss().email.broadcasts`. */
681
+ constructor(http) {
682
+ this.#http = http;
683
+ }
684
+ /** Newest first, with their stats. */
685
+ list(params = {}, options) {
686
+ return this.#http.request({
687
+ method: "GET",
688
+ path: "/v1/broadcasts",
689
+ query: { ...params },
690
+ signal: options?.signal
691
+ });
692
+ }
693
+ /**
694
+ * Creates a draft, or with `send` / `scheduled_at` a broadcast that starts sending. Retries
695
+ * reuse one `Idempotency-Key`, so a retried create never makes two.
696
+ */
697
+ create(params, options) {
698
+ return this.#http.request({
699
+ method: "POST",
700
+ path: "/v1/broadcasts",
701
+ body: params,
702
+ idempotencyKey: options?.idempotencyKey,
703
+ signal: options?.signal
704
+ });
705
+ }
706
+ get(id, options) {
707
+ return this.#http.request({
708
+ method: "GET",
709
+ path: `/v1/broadcasts/${path$1(id)}`,
710
+ signal: options?.signal
711
+ });
712
+ }
713
+ /** Changes a draft. */
714
+ update(id, params, options) {
715
+ return this.#http.request({
716
+ method: "PATCH",
717
+ path: `/v1/broadcasts/${path$1(id)}`,
718
+ body: params,
719
+ signal: options?.signal
720
+ });
721
+ }
722
+ /** Deletes a draft (or a broadcast canceled before it sent anything). */
723
+ remove(id, options) {
724
+ return this.#http.request({
725
+ method: "DELETE",
726
+ path: `/v1/broadcasts/${path$1(id)}`,
727
+ signal: options?.signal
728
+ });
729
+ }
730
+ /** Starts sending a draft, now or at `scheduled_at`. */
731
+ send(id, params = {}, options) {
732
+ return this.#http.request({
733
+ method: "POST",
734
+ path: `/v1/broadcasts/${path$1(id)}/send`,
735
+ body: params,
736
+ signal: options?.signal
737
+ });
738
+ }
739
+ /** Stops it for good; emails not yet handed to the provider are dropped. */
740
+ cancel(id, options) {
741
+ return this.#action(id, "cancel", options);
742
+ }
743
+ pause(id, options) {
744
+ return this.#action(id, "pause", options);
745
+ }
746
+ /** Resumes a paused broadcast where it stopped. */
747
+ resume(id, options) {
748
+ return this.#action(id, "resume", options);
749
+ }
750
+ /**
751
+ * Sends its content to up to 5 addresses (subject prefixed `[Test]`). Not retried
752
+ * automatically: test emails are not deduplicated.
753
+ */
754
+ test(id, params, options) {
755
+ return this.#http.request({
756
+ method: "POST",
757
+ path: `/v1/broadcasts/${path$1(id)}/test`,
758
+ body: params,
759
+ retry: false,
760
+ signal: options?.signal
761
+ });
762
+ }
763
+ /** The emails made so far, one per contact, newest first. */
764
+ listEmails(id, params = {}, options) {
765
+ return this.#http.request({
766
+ method: "GET",
767
+ path: `/v1/broadcasts/${path$1(id)}/emails`,
768
+ query: { ...params },
769
+ signal: options?.signal
770
+ });
771
+ }
772
+ #action(id, action, options) {
773
+ return this.#http.request({
774
+ method: "POST",
775
+ path: `/v1/broadcasts/${path$1(id)}/${action}`,
776
+ signal: options?.signal
777
+ });
778
+ }
779
+ };
780
+ //#endregion
781
+ //#region src/resources/contacts.ts
782
+ /** The API's per-request maximum for imports. */
783
+ const IMPORT_BATCH_SIZE$1 = 1e3;
784
+ const path = (...parts) => parts.map(encodeURIComponent).join("/");
785
+ /** `coss.email.contacts.properties`: the environment's custom contact properties. */
786
+ var ContactPropertiesResource = class {
787
+ #http;
788
+ /** @internal Use `new Coss().email.contacts.properties`. */
789
+ constructor(http) {
790
+ this.#http = http;
791
+ }
792
+ /** Every property (at most 50), by key. */
793
+ list(options) {
794
+ return this.#http.request({
795
+ method: "GET",
796
+ path: "/v1/contact_properties",
797
+ signal: options?.signal
798
+ });
799
+ }
800
+ /** Defines a property contacts can have; its key and type can't change. */
801
+ create(params, options) {
802
+ return this.#http.request({
803
+ method: "POST",
804
+ path: "/v1/contact_properties",
805
+ retry: false,
806
+ body: params,
807
+ signal: options?.signal
808
+ });
809
+ }
810
+ get(id, options) {
811
+ return this.#http.request({
812
+ method: "GET",
813
+ path: `/v1/contact_properties/${path(id)}`,
814
+ signal: options?.signal
815
+ });
816
+ }
817
+ /** Changes the fallback templates use for contacts without a value. */
818
+ update(id, params, options) {
819
+ return this.#http.request({
820
+ method: "PATCH",
821
+ path: `/v1/contact_properties/${path(id)}`,
822
+ body: params,
823
+ signal: options?.signal
824
+ });
825
+ }
826
+ /** Deletes the property and its values; refused while a segment filters on it. */
827
+ remove(id, options) {
828
+ return this.#http.request({
829
+ method: "DELETE",
830
+ path: `/v1/contact_properties/${path(id)}`,
831
+ signal: options?.signal
832
+ });
833
+ }
834
+ };
835
+ /**
836
+ * `coss.email.contacts`: the people marketing email goes to, in the API key's environment, with
837
+ * custom properties and consent (overall, and per topic). Methods taking an id also take the
838
+ * contact's address.
839
+ */
840
+ var ContactsResource = class {
841
+ #http;
842
+ /** Custom contact properties. */
843
+ properties;
844
+ /** @internal Use `new Coss().email.contacts`. */
845
+ constructor(http) {
846
+ this.#http = http;
847
+ this.properties = new ContactPropertiesResource(http);
848
+ }
849
+ /**
850
+ * Creates the contact with this address, or updates the existing one (names replaced,
851
+ * properties merged, audiences added, topic choices recorded; `status` only when passed).
852
+ * Safe to retry.
853
+ */
854
+ upsert(params, options) {
855
+ return this.#http.request({
856
+ method: "POST",
857
+ path: "/v1/contacts",
858
+ body: params,
859
+ signal: options?.signal
860
+ });
861
+ }
862
+ /** Lists contacts, newest first. Pass the last `id` as `after` while `has_more` is true. */
863
+ list(params = {}, options) {
864
+ return this.#http.request({
865
+ method: "GET",
866
+ path: "/v1/contacts",
867
+ query: { ...params },
868
+ signal: options?.signal
869
+ });
870
+ }
871
+ get(idOrEmail, options) {
872
+ return this.#http.request({
873
+ method: "GET",
874
+ path: `/v1/contacts/${path(idOrEmail)}`,
875
+ signal: options?.signal
876
+ });
877
+ }
878
+ update(idOrEmail, params, options) {
879
+ return this.#http.request({
880
+ method: "PATCH",
881
+ path: `/v1/contacts/${path(idOrEmail)}`,
882
+ body: params,
883
+ signal: options?.signal
884
+ });
885
+ }
886
+ /** Deletes the contact (its suppressions stay: they are about the address). */
887
+ remove(idOrEmail, options) {
888
+ return this.#http.request({
889
+ method: "DELETE",
890
+ path: `/v1/contacts/${path(idOrEmail)}`,
891
+ signal: options?.signal
892
+ });
893
+ }
894
+ /**
895
+ * Creates or updates many contacts, 1,000 per request. Invalid entries are skipped and reported
896
+ * in `invalid`; an import never re-subscribes an unsubscribed contact. If a request fails, the
897
+ * earlier batches stay imported: importing everything again is safe.
898
+ */
899
+ async import(params, options) {
900
+ const total = {
901
+ object: "contact_import",
902
+ created: 0,
903
+ updated: 0,
904
+ kept_unsubscribed: 0,
905
+ invalid: []
906
+ };
907
+ for (let start = 0; start === 0 || start < params.contacts.length;) {
908
+ const result = await this.#http.request({
909
+ method: "POST",
910
+ path: "/v1/contacts/import",
911
+ body: {
912
+ contacts: params.contacts.slice(start, start + IMPORT_BATCH_SIZE$1),
913
+ ...params.audience_id === void 0 ? {} : { audience_id: params.audience_id }
914
+ },
915
+ signal: options?.signal
916
+ });
917
+ if (result.error) return result;
918
+ total.created += result.data.created;
919
+ total.updated += result.data.updated;
920
+ total.kept_unsubscribed += result.data.kept_unsubscribed;
921
+ for (const entry of result.data.invalid) total.invalid.push({
922
+ ...entry,
923
+ index: entry.index + start
924
+ });
925
+ start += IMPORT_BATCH_SIZE$1;
926
+ }
927
+ return {
928
+ data: total,
929
+ error: null
930
+ };
931
+ }
932
+ /** The contacts as CSV (one column per custom property), which `import` accepts again. */
933
+ export(params = {}, options) {
934
+ return this.#http.request({
935
+ method: "GET",
936
+ path: "/v1/contacts/export",
937
+ query: { ...params },
938
+ responseType: "text",
939
+ signal: options?.signal
940
+ });
941
+ }
942
+ /** Every topic with the contact's choice and whether its emails reach them. */
943
+ getTopics(idOrEmail, options) {
944
+ return this.#http.request({
945
+ method: "GET",
946
+ path: `/v1/contacts/${path(idOrEmail)}/topics`,
947
+ signal: options?.signal
948
+ });
949
+ }
950
+ /**
951
+ * Sends a pending contact (double opt-in) its confirmation email again: at most once a day and
952
+ * three times before it confirms (`status` says what happened).
953
+ */
954
+ resendConfirmation(idOrEmail, options) {
955
+ return this.#http.request({
956
+ method: "POST",
957
+ path: `/v1/contacts/${path(idOrEmail)}/confirmation`,
958
+ signal: options?.signal
959
+ });
960
+ }
961
+ /** The contact's preference center and unsubscribe links, for emails you build yourself. */
962
+ createPreferenceLinks(idOrEmail, params = {}, options) {
963
+ return this.#http.request({
964
+ method: "POST",
965
+ path: `/v1/contacts/${path(idOrEmail)}/preference_links`,
966
+ body: params,
967
+ signal: options?.signal
968
+ });
969
+ }
970
+ /** Records the contact's choices for some topics. */
971
+ updateTopics(idOrEmail, params, options) {
972
+ return this.#http.request({
973
+ method: "PATCH",
974
+ path: `/v1/contacts/${path(idOrEmail)}/topics`,
975
+ body: params,
976
+ signal: options?.signal
977
+ });
978
+ }
979
+ };
980
+ /** `coss.email.audiences`: static lists of contacts. */
981
+ var AudiencesResource = class {
982
+ #http;
983
+ /** @internal Use `new Coss().email.audiences`. */
984
+ constructor(http) {
985
+ this.#http = http;
986
+ }
987
+ list(params = {}, options) {
988
+ return this.#http.request({
989
+ method: "GET",
990
+ path: "/v1/audiences",
991
+ query: { ...params },
992
+ signal: options?.signal
993
+ });
994
+ }
995
+ create(params, options) {
996
+ return this.#http.request({
997
+ method: "POST",
998
+ path: "/v1/audiences",
999
+ retry: false,
1000
+ body: params,
1001
+ signal: options?.signal
1002
+ });
1003
+ }
1004
+ get(id, options) {
1005
+ return this.#http.request({
1006
+ method: "GET",
1007
+ path: `/v1/audiences/${path(id)}`,
1008
+ signal: options?.signal
1009
+ });
1010
+ }
1011
+ /** Renames the audience. */
1012
+ update(id, params, options) {
1013
+ return this.#http.request({
1014
+ method: "PATCH",
1015
+ path: `/v1/audiences/${path(id)}`,
1016
+ body: params,
1017
+ signal: options?.signal
1018
+ });
1019
+ }
1020
+ /** Deletes the audience (its contacts stay); refused while a segment filters on it. */
1021
+ remove(id, options) {
1022
+ return this.#http.request({
1023
+ method: "DELETE",
1024
+ path: `/v1/audiences/${path(id)}`,
1025
+ signal: options?.signal
1026
+ });
1027
+ }
1028
+ /** The audience's members, newest first. */
1029
+ listContacts(id, params = {}, options) {
1030
+ return this.#http.request({
1031
+ method: "GET",
1032
+ path: `/v1/audiences/${path(id)}/contacts`,
1033
+ query: { ...params },
1034
+ signal: options?.signal
1035
+ });
1036
+ }
1037
+ /** Adds existing contacts, by id or address (up to 1,000 per call). */
1038
+ addContacts(id, params, options) {
1039
+ return this.#http.request({
1040
+ method: "POST",
1041
+ path: `/v1/audiences/${path(id)}/contacts`,
1042
+ body: params,
1043
+ signal: options?.signal
1044
+ });
1045
+ }
1046
+ removeContact(id, contactIdOrEmail, options) {
1047
+ return this.#http.request({
1048
+ method: "DELETE",
1049
+ path: `/v1/audiences/${path(id)}/contacts/${path(contactIdOrEmail)}`,
1050
+ signal: options?.signal
1051
+ });
1052
+ }
1053
+ };
1054
+ /** `coss.email.segments`: filters over the environment's contacts, always current. */
1055
+ var SegmentsResource = class {
1056
+ #http;
1057
+ /** @internal Use `new Coss().email.segments`. */
1058
+ constructor(http) {
1059
+ this.#http = http;
1060
+ }
1061
+ list(params = {}, options) {
1062
+ return this.#http.request({
1063
+ method: "GET",
1064
+ path: "/v1/segments",
1065
+ query: { ...params },
1066
+ signal: options?.signal
1067
+ });
1068
+ }
1069
+ create(params, options) {
1070
+ return this.#http.request({
1071
+ method: "POST",
1072
+ path: "/v1/segments",
1073
+ retry: false,
1074
+ body: params,
1075
+ signal: options?.signal
1076
+ });
1077
+ }
1078
+ get(id, options) {
1079
+ return this.#http.request({
1080
+ method: "GET",
1081
+ path: `/v1/segments/${path(id)}`,
1082
+ signal: options?.signal
1083
+ });
1084
+ }
1085
+ update(id, params, options) {
1086
+ return this.#http.request({
1087
+ method: "PATCH",
1088
+ path: `/v1/segments/${path(id)}`,
1089
+ body: params,
1090
+ signal: options?.signal
1091
+ });
1092
+ }
1093
+ remove(id, options) {
1094
+ return this.#http.request({
1095
+ method: "DELETE",
1096
+ path: `/v1/segments/${path(id)}`,
1097
+ signal: options?.signal
1098
+ });
1099
+ }
1100
+ /** The contacts the filter matches now, whatever their status, newest first. */
1101
+ listContacts(id, params = {}, options) {
1102
+ return this.#http.request({
1103
+ method: "GET",
1104
+ path: `/v1/segments/${path(id)}/contacts`,
1105
+ query: { ...params },
1106
+ signal: options?.signal
1107
+ });
1108
+ }
1109
+ };
1110
+ /** `coss.email.topics`: what contacts subscribe to (a topic's key is a send's `category`). */
1111
+ var TopicsResource = class {
1112
+ #http;
1113
+ /** @internal Use `new Coss().email.topics`. */
1114
+ constructor(http) {
1115
+ this.#http = http;
1116
+ }
1117
+ list(params = {}, options) {
1118
+ return this.#http.request({
1119
+ method: "GET",
1120
+ path: "/v1/topics",
1121
+ query: { ...params },
1122
+ signal: options?.signal
1123
+ });
1124
+ }
1125
+ create(params, options) {
1126
+ return this.#http.request({
1127
+ method: "POST",
1128
+ path: "/v1/topics",
1129
+ retry: false,
1130
+ body: params,
1131
+ signal: options?.signal
1132
+ });
1133
+ }
1134
+ get(id, options) {
1135
+ return this.#http.request({
1136
+ method: "GET",
1137
+ path: `/v1/topics/${path(id)}`,
1138
+ signal: options?.signal
1139
+ });
1140
+ }
1141
+ update(id, params, options) {
1142
+ return this.#http.request({
1143
+ method: "PATCH",
1144
+ path: `/v1/topics/${path(id)}`,
1145
+ body: params,
1146
+ signal: options?.signal
1147
+ });
1148
+ }
1149
+ /** Deletes the topic and every contact's choice for it. */
1150
+ remove(id, options) {
1151
+ return this.#http.request({
1152
+ method: "DELETE",
1153
+ path: `/v1/topics/${path(id)}`,
1154
+ signal: options?.signal
1155
+ });
1156
+ }
1157
+ };
1158
+ /** `coss.email.marketingSettings`: the sender name and postal address of marketing email. */
1159
+ var MarketingSettingsResource = class {
1160
+ #http;
1161
+ /** @internal Use `new Coss().email.marketingSettings`. */
1162
+ constructor(http) {
1163
+ this.#http = http;
1164
+ }
1165
+ get(options) {
1166
+ return this.#http.request({
1167
+ method: "GET",
1168
+ path: "/v1/marketing_settings",
1169
+ signal: options?.signal
1170
+ });
1171
+ }
1172
+ /** Changes the fields given (`null` clears one). */
1173
+ update(params, options) {
1174
+ return this.#http.request({
1175
+ method: "PATCH",
1176
+ path: "/v1/marketing_settings",
1177
+ body: params,
1178
+ signal: options?.signal
1179
+ });
1180
+ }
1181
+ };
1182
+ //#endregion
672
1183
  //#region src/resources/dedicated-ips.ts
673
1184
  /**
674
1185
  * `coss.email.dedicatedIps`: the organization's own sending IPs (the Dedicated IPs add-on),
@@ -1084,6 +1595,18 @@ var EmailResource = class {
1084
1595
  templates;
1085
1596
  /** The organization's dedicated IPs. */
1086
1597
  dedicatedIps;
1598
+ /** The environment's contacts, with custom properties and consent. */
1599
+ contacts;
1600
+ /** Static lists of contacts. */
1601
+ audiences;
1602
+ /** Filters over the contacts. */
1603
+ segments;
1604
+ /** What contacts subscribe to. */
1605
+ topics;
1606
+ /** The sender name and postal address of marketing email. */
1607
+ marketingSettings;
1608
+ /** Marketing emails to an audience or a segment. */
1609
+ broadcasts;
1087
1610
  /** @internal Use `new Coss().email`. */
1088
1611
  constructor(http) {
1089
1612
  this.#http = http;
@@ -1092,6 +1615,12 @@ var EmailResource = class {
1092
1615
  this.received = new ReceivedEmailsResource(http);
1093
1616
  this.templates = new EmailTemplatesResource(http);
1094
1617
  this.dedicatedIps = new DedicatedIpsResource(http);
1618
+ this.contacts = new ContactsResource(http);
1619
+ this.audiences = new AudiencesResource(http);
1620
+ this.segments = new SegmentsResource(http);
1621
+ this.topics = new TopicsResource(http);
1622
+ this.marketingSettings = new MarketingSettingsResource(http);
1623
+ this.broadcasts = new BroadcastsResource(http);
1095
1624
  }
1096
1625
  /**
1097
1626
  * Sends an email, with its own subject and body or from a published template (`template_id`
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { $ as RiskUsersResource, $i as ListSuppressionsParams, $n as EnvironmentResource, $r as MailFromStatus, $t as LogsResource, A as BillingEventType, Aa as CossError, Ai as EmailFailure, An as HookApplication, Ar as DmarcNextStepKind, At as RiskLimit, B as ReceivedEmailEventType, Bi as ReactEmailElement, Bn as HookMessage, Br as ListDmarcReportsParams, Bt as RiskReasonCode, C as WebhookEndpointDisabledReason, Ca as ListAuditEventsParams, Ci as Email, Cn as HooksResource, Cr as TrackingDomainsResource, Ct as RiskEmailCheck, D as AccountEventType, Da as NamedResource, Di as EmailEvent, Dn as CreateHookPortalSessionParams, Dr as DmarcCheck, Dt as RiskIpCheck, E as WebhookEventType, Ea as Environment, Ei as EmailBatch, En as CreateHookEventTypeParams, Er as DmarcResource, Et as RiskFeedbackParams, F as EmailWebhookEvent, Fa as API_VERSIONS, Fi as EmailSummary, Fn as HookEndpointDisabledReason, Fr as DmarcReportRecord, Ft as RiskListEntryType, G as RiskWebhookEventData, Gi as SendEmailTemplateParams, Gn as ListHookMessagesParams, Gr as CreateTrackingDomainParams, Gt as UpdateRiskLimitBucketParams, H as ReceivedEmailWebhookEventData, Hi as SendEmailBaseParams, Hn as ListHookApplicationsParams, Hr as BimiStatus, Ht as RiskRuleCondition, I as EmailWebhookEventData, Ia as ApiVersion, Ii as EmailTag, In as HookEndpointRecovery, Ir as DmarcReportSummary, It as RiskListEntryValue, J as RiskLimitBucketsResource, Ji as CreateSuppressionParams, Jn as SendHookMessageParams, Jr as DomainBimi, Jt as ReputationResource, K as WebhookEvent, Ki as TrackingOptions, Kn as RecoverHookEndpointParams, Kr as DeletedDomain, Kt as UpdateRiskRuleParams, L as HookEndpointWebhookEvent, Li as EmailTracking, Ln as HookEndpointSecret, Lr as DmarcSource, Lt as RiskLoginSignals, M as DomainEventType, Ma as CossErrorType, Mi as EmailRecipient, Mn as HookDelivery, Mr as DmarcPolicyPublished, Mt as RiskLimitFailureMode, N as DomainWebhookEvent, Na as CossResult, Ni as EmailRecipientStatus, Nn as HookDeliveryStatus, Nr as DmarcPublishedRecord, Nt as RiskList, O as AccountWebhookEvent, Oa as FetchLike, Oi as EmailEventData, On as DeletedHookApplication, Or as DmarcCheckId, Ot as RiskIpPrivacy, P as DomainWebhookEventData, Pa as API_VERSION, Pi as EmailStatus, Pn as HookEndpoint, Pr as DmarcReport, Pt as RiskListEntry, Q as RiskSettingsResource, Qi as ImportSuppressionsParams, Qn as UpdateHookEventTypeParams, Qr as DomainStatus, Qt as ReputationStatus, R as HookEndpointWebhookEventData, Ri as List, Rn as HookEndpointWithSecret, Rr as DmarcStage, Rt as RiskOutcome, S as WebhookEndpoint, Sa as AuditEvent, Si as AuditEventsResource, Sn as HookPortalResource, Sr as DomainsResource, St as RiskDeviceSignals, T as WebhookEndpointWithSecret, Ta as DeletedApiKey, Ti as EmailAttachmentParams, Tn as CreateHookEndpointParams, Tr as DmarcReportsResource, Tt as RiskEvent, U as RiskEventType, Ui as SendEmailContentParams, Un as ListHookDeliveriesParams, Ur as CreateDomainParams, Ut as RiskRuleField, V as ReceivedEmailWebhookEvent, Vi as RescheduleEmailParams, Vn as HookPortalSession, Vr as BimiIssueCode, Vt as RiskRule, W as RiskWebhookEvent, Wi as SendEmailParams, Wn as ListHookEventTypesParams, Wr as CreateReceivingDomainParams, Wt as RiskSettings, X as RiskResource, Xi as ExportSuppressionsParams, Xn as UpdateHookApplicationParams, Xr as DomainRecordPurpose, Xt as ReputationCheck, Y as RiskListsResource, Yi as DeletedSuppression, Yn as SendHookTestParams, Yr as DomainRecord, Yt as Reputation, Z as RiskRulesResource, Zi as ImportSuppressionEntry, Zn as UpdateHookEndpointParams, Zr as DomainRecordStatus, Zt as ReputationCheckSeverity, _ as RollWebhookEndpointSecretParams, _a as TemplateVariableParams, _i as ListInvoicesParams, _n as HookApplicationsResource, _r as EmailTemplateVersionsResource, _t as RiskContentCategory, a as DeletedWebhookListener, aa as DeletedEmailTemplate, ai as BillingCreditsResource, an as LogDrain, ar as UpdateTrackingRuleParams, at as DeletedRiskLimitBucket, b as WebhookDelivery, ba as UpdateEmailTemplateParams, bi as PlanKey, bn as HookEventTypesResource, br as DedicatedIpPool, bt as RiskDecision, c as WebhookListenerAck, ca as EmailTemplateVersion, ci as Billing, cn as LogDrainBatchStatus, cr as DeletedReceivedEmail, ct as ForgottenRiskUser, d as WebhookEndpointsResource, da as PublishEmailTemplateParams, di as Invoice, dn as LogDrainWithSecret, dr as ReceivedEmail, dt as RiskAssessment, ea as Suppression, ei as ReceivingDomain, en as LogDrainBatchesResource, er as EmailResource, et as AssessRiskParams, f as WebhookDeliveriesResource, fa as TemplateContent, fi as InvoiceLine, fn as UpdateLogDrainParams, fr as ReceivedEmailAttachment, ft as RiskCalibration, g as RecoverWebhookEndpointParams, ga as TemplateVariable, gi as ListCreditsParams, gn as LogSource, gr as VerdictStatus, gt as RiskCheckoutSignals, h as ListWebhookDeliveriesParams, ha as TemplateScalarType, hi as InvoiceSummary, hn as LogLevel, hr as ReceivedEmailVerdicts, ht as RiskCardFunding, i as CreateWebhookListenerParams, ia as CreateEmailTemplateParams, ii as TrackingDomainStatus, in as ListLogDrainBatchesParams, ir as TrackingSettings, it as CreateRiskRuleParams, j as BillingWebhookEvent, ja as CossErrorIssue, ji as EmailLink, jn as HookAttempt, jr as DmarcPolicy, jt as RiskLimitBucket, k as AccountWebhookEventData, ka as RequestOptions, ki as EmailEventType, kn as DeletedHookEndpoint, kr as DmarcNextStep, kt as RiskIpSignals, l as WebhookListenerDelivery, la as ListEmailTemplateVersionsParams, li as BillingHoldReason, ln as LogDrainLine, lr as InboundAddress, lt as ListRiskAssessmentsParams, m as DeletedWebhookEndpoint, ma as TemplateProblem, mi as InvoiceStatus, mn as Log, mr as ReceivedEmailSummary, mt as RiskCaptchaSignals, n as CossOptions, na as SuppressionImport, ni as TrackingDomain, nn as CreateLogDrainParams, nr as DeletedTrackingRule, nt as CreateRiskLimitBucketParams, o as PollWebhookListenerParams, oa as EmailTemplate, oi as BillingInvoicesResource, on as LogDrainAttempt, or as SuppressionResource, ot as DeletedRiskListEntry, p as CreateWebhookEndpointParams, pa as TemplateContentParams, pi as InvoiceLineKind, pn as ListLogsParams, pr as ReceivedEmailStatus, pt as RiskCaptchaProvider, q as RiskAssessmentsResource, qi as CheckSuppressionParams, qn as RollHookEndpointSecretParams, qr as Domain, qt as UpdateRiskSettingsParams, r as WebhookListenersResource, ra as SuppressionReason, ri as TrackingDomainRecord, rn as DeletedLogDrain, rr as TrackingRule, rt as CreateRiskListEntryParams, s as WebhookListener, sa as EmailTemplateReference, si as BillingResource, sn as LogDrainBatch, sr as ReceivedEmailsResource, st as DeletedRiskRule, t as Coss, ta as SuppressionCheck, ti as ReceivingDomainRecord, tn as LogDrainsResource, tr as TrackingResource, tt as CheckRiskLimitParams, u as WebhookListenerPoll, ua as ListEmailTemplatesParams, ui as Credit, un as LogDrainSource, ur as ListReceivedEmailsParams, ut as ListRiskListEntriesParams, v as UpdateWebhookEndpointParams, va as TemplateVariableType, vi as ListUsageParams, vn as HookDeliveriesResource, vr as EmailTemplatesResource, vt as RiskContentClassification, w as WebhookEndpointRecovery, wa as ApiKeyResource, wi as EmailAttachment, wn as CreateHookApplicationParams, wr as ReceivingDomainsResource, wt as RiskEmailSignals, x as WebhookDeliveryStatus, xa as AuditActorType, xi as Usage, xn as HookMessagesResource, xr as DedicatedIpPoolStatus, xt as RiskDegradedSignal, y as WebhookAttempt, ya as UpdateEmailTemplateDraftParams, yi as Meter, yn as HookEndpointsResource, yr as DedicatedIpsResource, yt as RiskContentScores, z as HookOperationalEventType, zi as ListEmailsParams, zn as HookEventType, zr as DomainDmarc, zt as RiskReason } from "./client-avnHVMry.js";
1
+ import { $ as RiskAssessmentsResource, $a as EmailStream, $i as DmarcReportRecord, $n as ListHookMessagesParams, $o as API_VERSION, $r as CreateSegmentParams, $t as UpdateRiskSettingsParams, A as BillingEventType, Aa as InvoiceLine, Ai as BroadcastStats, An as HookPortalResource, Ao as PublishEmailTemplateParams, Ar as AudiencesResource, At as RiskEmailSignals, B as DomainWebhookEventData, Ba as AuditEventsResource, Bi as DomainsResource, Bn as HookDelivery, Bo as AuditActorType, Br as Contact, Bt as RiskListEntry, C as WebhookEndpointDisabledReason, Ca as BillingCreditsResource, Ci as UpdateMarketingSettingsParams, Cn as LogLevel, Co as CreateEmailTemplateParams, Cr as ReceivedEmailVerdicts, Ct as RiskContentCategory, D as AccountEventType, Da as BillingHoldReason, Di as BroadcastsResource, Dn as HookEndpointsResource, Do as EmailTemplateVersion, Dr as DedicatedIpsResource, Dt as RiskDegradedSignal, E as WebhookEventType, Ea as Billing, Ei as UpsertContactParams, En as HookDeliveriesResource, Eo as EmailTemplateReference, Er as EmailTemplatesResource, Et as RiskDecision, F as ContactEventType, Fa as ListInvoicesParams, Fi as ListBroadcastEmailsParams, Fn as CreateHookPortalSessionParams, Fo as TemplateVariable, Fr as TopicsResource, Ft as RiskIpSignals, G as HookOperationalEventType, Ga as EmailEvent, Gi as DmarcCheck, Gn as HookEndpointSecret, Go as Environment, Gr as ContactPropertyValue, Gt as RiskReason, H as EmailWebhookEventData, Ha as EmailAttachment, Hi as ReceivingDomainsResource, Hn as HookEndpoint, Ho as ListAuditEventsParams, Hr as ContactImport, Ht as RiskListEntryValue, I as ContactWebhookEvent, Ia as ListUsageParams, Ii as ListBroadcastsParams, In as DeletedHookApplication, Io as TemplateVariableParams, Ir as AddAudienceContactsParams, It as RiskLimit, J as ReceivedEmailWebhookEventData, Ja as EmailFailure, Ji as DmarcNextStepKind, Jn as HookMessage, Jo as RequestOptions, Jr as ContactTopicChoice, Jt as RiskRuleCondition, K as ReceivedEmailEventType, Ka as EmailEventData, Ki as DmarcCheckId, Kn as HookEndpointWithSecret, Ko as NamedResource, Kr as ContactSource, Kt as RiskReasonCode, L as ContactWebhookEventData, La as Meter, Li as SendBroadcastParams, Ln as DeletedHookEndpoint, Lo as TemplateVariableType, Lr as Audience, Lt as RiskLimitBucket, M as BroadcastEventType, Ma as InvoiceStatus, Mi as BroadcastTest, Mn as CreateHookApplicationParams, Mo as TemplateContentParams, Mr as ContactsResource, Mt as RiskFeedbackParams, N as BroadcastWebhookEvent, Na as InvoiceSummary, Ni as CreateBroadcastParams, Nn as CreateHookEndpointParams, No as TemplateProblem, Nr as MarketingSettingsResource, Nt as RiskIpCheck, O as AccountWebhookEvent, Oa as Credit, Oi as Broadcast, On as HookEventTypesResource, Oo as ListEmailTemplateVersionsParams, Or as DedicatedIpPool, Ot as RiskDeviceSignals, P as BroadcastWebhookEventData, Pa as ListCreditsParams, Pi as DeletedBroadcast, Pn as CreateHookEventTypeParams, Po as TemplateScalarType, Pr as SegmentsResource, Pt as RiskIpPrivacy, Q as WebhookEvent, Qa as EmailStatus, Qi as DmarcReport, Qn as ListHookEventTypesParams, Qo as CossResult, Qr as CreatePreferenceLinksParams, Qt as UpdateRiskRuleParams, R as DomainEventType, Ra as PlanKey, Ri as TestBroadcastParams, Rn as HookApplication, Ro as UpdateEmailTemplateDraftParams, Rr as AudienceContactsAdded, Rt as RiskLimitFailureMode, S as WebhookEndpoint, Sa as TrackingDomainStatus, Si as UpdateContactTopicsParams, Sn as Log, So as SuppressionReason, Sr as ReceivedEmailSummary, St as RiskCheckoutSignals, T as WebhookEndpointWithSecret, Ta as BillingResource, Ti as UpdateTopicParams, Tn as HookApplicationsResource, To as EmailTemplate, Tr as EmailTemplateVersionsResource, Tt as RiskContentScores, U as HookEndpointWebhookEvent, Ua as EmailAttachmentParams, Ui as DmarcReportsResource, Un as HookEndpointDisabledReason, Uo as ApiKeyResource, Ur as ContactProperty, Ut as RiskLoginSignals, V as EmailWebhookEvent, Va as Email, Vi as TrackingDomainsResource, Vn as HookDeliveryStatus, Vo as AuditEvent, Vr as ContactConfirmation, Vt as RiskListEntryType, W as HookEndpointWebhookEventData, Wa as EmailBatch, Wi as DmarcResource, Wn as HookEndpointRecovery, Wo as DeletedApiKey, Wr as ContactPropertyType, Wt as RiskOutcome, X as RiskWebhookEvent, Xa as EmailRecipient, Xi as DmarcPolicyPublished, Xn as ListHookApplicationsParams, Xo as CossErrorIssue, Xr as ContactTopics, Xt as RiskSettings, Y as RiskEventType, Ya as EmailLink, Yi as DmarcPolicy, Yn as HookPortalSession, Yo as CossError, Yr as ContactTopicStatus, Yt as RiskRuleField, Z as RiskWebhookEventData, Za as EmailRecipientStatus, Zi as DmarcPublishedRecord, Zn as ListHookDeliveriesParams, Zo as CossErrorType, Zr as CreateContactPropertyParams, Zt as UpdateRiskLimitBucketParams, _ as RollWebhookEndpointSecretParams, _a as MailFromStatus, _i as SegmentFilter, _n as LogDrainLine, _o as ImportSuppressionsParams, _r as InboundAddress, _t as RiskAssessment, a as DeletedWebhookListener, aa as BimiIssueCode, ai as DeletedTopic, an as ReputationCheckSeverity, ao as ReactEmailElement, ar as UpdateHookEndpointParams, at as RiskUsersResource, b as WebhookDelivery, ba as TrackingDomain, bi as UpdateContactParams, bn as UpdateLogDrainParams, bo as SuppressionCheck, br as ReceivedEmailAttachment, bt as RiskCaptchaSignals, c as WebhookListenerAck, ca as CreateReceivingDomainParams, ci as ImportContactsParams, cn as LogDrainBatchesResource, co as SendEmailContentParams, cr as EmailResource, ct as CreateRiskLimitBucketParams, d as WebhookEndpointsResource, da as Domain, di as MarketingSettings, dn as DeletedLogDrain, do as TrackingOptions, dr as TrackingRule, dt as DeletedRiskLimitBucket, ea as DmarcReportSummary, ei as CreateTopicParams, en as ReputationResource, eo as EmailSummary, er as RecoverHookEndpointParams, es as API_VERSIONS, et as RiskLimitBucketsResource, f as WebhookDeliveriesResource, fa as DomainBimi, fi as PreferenceLinks, fn as ListLogDrainBatchesParams, fo as CheckSuppressionParams, fr as TrackingSettings, ft as DeletedRiskListEntry, g as RecoverWebhookEndpointParams, ga as DomainStatus, gi as SegmentConditionGroup, gn as LogDrainBatchStatus, go as ImportSuppressionEntry, gr as DeletedReceivedEmail, gt as ListRiskListEntriesParams, h as ListWebhookDeliveriesParams, ha as DomainRecordStatus, hi as SegmentCondition, hn as LogDrainBatch, ho as ExportSuppressionsParams, hr as ReceivedEmailsResource, ht as ListRiskAssessmentsParams, i as CreateWebhookListenerParams, ia as ListDmarcReportsParams, ii as DeletedSegment, in as ReputationCheck, io as ListEmailsParams, ir as UpdateHookApplicationParams, it as RiskSettingsResource, j as BillingWebhookEvent, ja as InvoiceLineKind, ji as BroadcastStatus, jn as HooksResource, jo as TemplateContent, jr as ContactPropertiesResource, jt as RiskEvent, k as AccountWebhookEventData, ka as Invoice, ki as BroadcastEmailList, kn as HookMessagesResource, ko as ListEmailTemplatesParams, kr as DedicatedIpPoolStatus, kt as RiskEmailCheck, l as WebhookListenerDelivery, la as CreateTrackingDomainParams, li as ListContactsParams, ln as LogDrainsResource, lo as SendEmailParams, lr as TrackingResource, lt as CreateRiskListEntryParams, m as DeletedWebhookEndpoint, ma as DomainRecordPurpose, mi as Segment, mn as LogDrainAttempt, mo as DeletedSuppression, mr as SuppressionResource, mt as ForgottenRiskUser, n as CossOptions, na as DmarcStage, ni as DeletedContact, nn as MarketingStatus, no as EmailTracking, nr as SendHookMessageParams, nt as RiskResource, o as PollWebhookListenerParams, oa as BimiStatus, oi as ExportContactsParams, on as ReputationStatus, oo as RescheduleEmailParams, or as UpdateHookEventTypeParams, ot as AssessRiskParams, p as CreateWebhookEndpointParams, pa as DomainRecord, pi as RemovedAudienceContact, pn as LogDrain, po as CreateSuppressionParams, pr as UpdateTrackingRuleParams, pt as DeletedRiskRule, q as ReceivedEmailWebhookEvent, qa as EmailEventType, qi as DmarcNextStep, qn as HookEventType, qo as FetchLike, qr as ContactStatus, qt as RiskRule, r as WebhookListenersResource, ra as DomainDmarc, ri as DeletedContactProperty, rn as Reputation, ro as List, rr as SendHookTestParams, rt as RiskRulesResource, s as WebhookListener, sa as CreateDomainParams, si as ImportContactEntry, sn as LogsResource, so as SendEmailBaseParams, sr as EnvironmentResource, st as CheckRiskLimitParams, t as Coss, ta as DmarcSource, ti as DeletedAudience, tn as MarketingStanding, to as EmailTag, tr as RollHookEndpointSecretParams, ts as ApiVersion, tt as RiskListsResource, u as WebhookListenerPoll, ua as DeletedDomain, ui as ListParams, un as CreateLogDrainParams, uo as SendEmailTemplateParams, ur as DeletedTrackingRule, ut as CreateRiskRuleParams, v as UpdateWebhookEndpointParams, va as ReceivingDomain, vi as SegmentPropertyOperator, vn as LogDrainSource, vo as ListSuppressionsParams, vr as ListReceivedEmailsParams, vt as RiskCalibration, w as WebhookEndpointRecovery, wa as BillingInvoicesResource, wi as UpdateSegmentParams, wn as LogSource, wo as DeletedEmailTemplate, wr as VerdictStatus, wt as RiskContentClassification, x as WebhookDeliveryStatus, xa as TrackingDomainRecord, xi as UpdateContactPropertyParams, xn as ListLogsParams, xo as SuppressionImport, xr as ReceivedEmailStatus, xt as RiskCardFunding, y as WebhookAttempt, ya as ReceivingDomainRecord, yi as Topic, yn as LogDrainWithSecret, yo as Suppression, yr as ReceivedEmail, yt as RiskCaptchaProvider, z as DomainWebhookEvent, za as Usage, zi as UpdateBroadcastParams, zn as HookAttempt, zo as UpdateEmailTemplateParams, zr as AudienceParams, zt as RiskList } from "./client-Bx6bKUVV.js";
2
2
  //#region src/version.d.ts
3
3
  /** SDK version, sent in the User-Agent. A test keeps it equal to package.json's `version`. */
4
- export declare const VERSION = "0.5.0";
4
+ export declare const VERSION = "0.6.0";
5
5
  //#endregion
6
6
  //#region src/webhooks.d.ts
7
7
  /** A webhook request failed verification: reject it (e.g. respond 400). */
@@ -42,4 +42,4 @@ export declare function verifyWebhook<T = WebhookEvent>(payload: string, headers
42
42
  */
43
43
  export declare function verifyLogDrainBatch(payload: string, headers: WebhookHeaders, secret: string, options?: VerifyWebhookOptions): Promise<LogDrainLine[]>;
44
44
  //#endregion
45
- export { API_VERSION, API_VERSIONS, type AccountEventType, type AccountWebhookEvent, type AccountWebhookEventData, type ApiKeyResource, type ApiVersion, type AssessRiskParams, type AuditActorType, type AuditEvent, type AuditEventsResource, type Billing, type BillingCreditsResource, type BillingEventType, type BillingHoldReason, type BillingInvoicesResource, type BillingResource, type BillingWebhookEvent, type BimiIssueCode, type BimiStatus, type CheckRiskLimitParams, type CheckSuppressionParams, Coss, type CossError, type CossErrorIssue, type CossErrorType, type CossOptions, type CossResult, type CreateDomainParams, type CreateEmailTemplateParams, type CreateHookApplicationParams, type CreateHookEndpointParams, type CreateHookEventTypeParams, type CreateHookPortalSessionParams, type CreateLogDrainParams, type CreateReceivingDomainParams, type CreateRiskLimitBucketParams, type CreateRiskListEntryParams, type CreateRiskRuleParams, type CreateSuppressionParams, type CreateTrackingDomainParams, type CreateWebhookEndpointParams, type CreateWebhookListenerParams, type Credit, type DedicatedIpPool, type DedicatedIpPoolStatus, type DedicatedIpsResource, type DeletedApiKey, type DeletedDomain, type DeletedEmailTemplate, type DeletedHookApplication, type DeletedHookEndpoint, type DeletedLogDrain, type DeletedReceivedEmail, type DeletedRiskLimitBucket, type DeletedRiskListEntry, type DeletedRiskRule, type DeletedSuppression, type DeletedTrackingRule, type DeletedWebhookEndpoint, type DeletedWebhookListener, type DmarcCheck, type DmarcCheckId, type DmarcNextStep, type DmarcNextStepKind, type DmarcPolicy, type DmarcPolicyPublished, type DmarcPublishedRecord, type DmarcReport, type DmarcReportRecord, type DmarcReportSummary, type DmarcReportsResource, type DmarcResource, type DmarcSource, type DmarcStage, type Domain, type DomainBimi, type DomainDmarc, type DomainEventType, type DomainRecord, type DomainRecordPurpose, type DomainRecordStatus, type DomainStatus, type DomainWebhookEvent, type DomainWebhookEventData, type DomainsResource, type Email, type EmailAttachment, type EmailAttachmentParams, type EmailBatch, type EmailEvent, type EmailEventData, type EmailEventType, type EmailFailure, type EmailLink, type EmailRecipient, type EmailRecipientStatus, type EmailResource, type EmailStatus, type EmailSummary, type EmailTag, type EmailTemplate, type EmailTemplateReference, type EmailTemplateVersion, type EmailTemplateVersionsResource, type EmailTemplatesResource, type EmailTracking, type EmailWebhookEvent, type EmailWebhookEventData, type Environment, type EnvironmentResource, type ExportSuppressionsParams, type FetchLike, type ForgottenRiskUser, type HookApplication, type HookApplicationsResource, type HookAttempt, type HookDeliveriesResource, type HookDelivery, type HookDeliveryStatus, type HookEndpoint, type HookEndpointDisabledReason, type HookEndpointRecovery, type HookEndpointSecret, type HookEndpointWebhookEvent, type HookEndpointWebhookEventData, type HookEndpointWithSecret, type HookEndpointsResource, type HookEventType, type HookEventTypesResource, type HookMessage, type HookMessagesResource, type HookOperationalEventType, type HookPortalResource, type HookPortalSession, type HooksResource, type ImportSuppressionEntry, type ImportSuppressionsParams, type InboundAddress, type Invoice, type InvoiceLine, type InvoiceLineKind, type InvoiceStatus, type InvoiceSummary, type List, type ListAuditEventsParams, type ListCreditsParams, type ListDmarcReportsParams, type ListEmailTemplateVersionsParams, type ListEmailTemplatesParams, type ListEmailsParams, type ListHookApplicationsParams, type ListHookDeliveriesParams, type ListHookEventTypesParams, type ListHookMessagesParams, type ListInvoicesParams, type ListLogDrainBatchesParams, type ListLogsParams, type ListReceivedEmailsParams, type ListRiskAssessmentsParams, type ListRiskListEntriesParams, type ListSuppressionsParams, type ListUsageParams, type ListWebhookDeliveriesParams, type Log, type LogDrain, type LogDrainAttempt, type LogDrainBatch, type LogDrainBatchStatus, type LogDrainBatchesResource, type LogDrainLine, type LogDrainSource, type LogDrainWithSecret, type LogDrainsResource, type LogLevel, type LogSource, type LogsResource, type MailFromStatus, type Meter, type NamedResource, type PlanKey, type PollWebhookListenerParams, type PublishEmailTemplateParams, type ReactEmailElement, type ReceivedEmail, type ReceivedEmailAttachment, type ReceivedEmailEventType, type ReceivedEmailStatus, type ReceivedEmailSummary, type ReceivedEmailVerdicts, type ReceivedEmailWebhookEvent, type ReceivedEmailWebhookEventData, type ReceivedEmailsResource, type ReceivingDomain, type ReceivingDomainRecord, type ReceivingDomainsResource, type RecoverHookEndpointParams, type RecoverWebhookEndpointParams, type Reputation, type ReputationCheck, type ReputationCheckSeverity, type ReputationResource, type ReputationStatus, type RequestOptions, type RescheduleEmailParams, type RiskAssessment, type RiskAssessmentsResource, type RiskCalibration, type RiskCaptchaProvider, type RiskCaptchaSignals, type RiskCardFunding, type RiskCheckoutSignals, type RiskContentCategory, type RiskContentClassification, type RiskContentScores, type RiskDecision, type RiskDegradedSignal, type RiskDeviceSignals, type RiskEmailCheck, type RiskEmailSignals, type RiskEvent, type RiskEventType, type RiskFeedbackParams, type RiskIpCheck, type RiskIpPrivacy, type RiskIpSignals, type RiskLimit, type RiskLimitBucket, type RiskLimitBucketsResource, type RiskLimitFailureMode, type RiskList, type RiskListEntry, type RiskListEntryType, type RiskListEntryValue, type RiskListsResource, type RiskLoginSignals, type RiskOutcome, type RiskReason, type RiskReasonCode, type RiskResource, type RiskRule, type RiskRuleCondition, type RiskRuleField, type RiskRulesResource, type RiskSettings, type RiskSettingsResource, type RiskUsersResource, type RiskWebhookEvent, type RiskWebhookEventData, type RollHookEndpointSecretParams, type RollWebhookEndpointSecretParams, type SendEmailBaseParams, type SendEmailContentParams, type SendEmailParams, type SendEmailTemplateParams, type SendHookMessageParams, type SendHookTestParams, type Suppression, type SuppressionCheck, type SuppressionImport, type SuppressionReason, type SuppressionResource, type TemplateContent, type TemplateContentParams, type TemplateProblem, type TemplateScalarType, type TemplateVariable, type TemplateVariableParams, type TemplateVariableType, type TrackingDomain, type TrackingDomainRecord, type TrackingDomainStatus, type TrackingDomainsResource, type TrackingOptions, type TrackingResource, type TrackingRule, type TrackingSettings, type UpdateEmailTemplateDraftParams, type UpdateEmailTemplateParams, type UpdateHookApplicationParams, type UpdateHookEndpointParams, type UpdateHookEventTypeParams, type UpdateLogDrainParams, type UpdateRiskLimitBucketParams, type UpdateRiskRuleParams, type UpdateRiskSettingsParams, type UpdateTrackingRuleParams, type UpdateWebhookEndpointParams, type Usage, type VerdictStatus, type VerifyWebhookOptions, type WebhookAttempt, type WebhookDeliveriesResource, type WebhookDelivery, type WebhookDeliveryStatus, type WebhookEndpoint, type WebhookEndpointDisabledReason, type WebhookEndpointRecovery, type WebhookEndpointWithSecret, type WebhookEndpointsResource, type WebhookEvent, type WebhookEventType, type WebhookHeaders, type WebhookListener, type WebhookListenerAck, type WebhookListenerDelivery, type WebhookListenerPoll, type WebhookListenersResource };
45
+ export { API_VERSION, API_VERSIONS, type AccountEventType, type AccountWebhookEvent, type AccountWebhookEventData, type AddAudienceContactsParams, type ApiKeyResource, type ApiVersion, type AssessRiskParams, type Audience, type AudienceContactsAdded, type AudienceParams, type AudiencesResource, type AuditActorType, type AuditEvent, type AuditEventsResource, type Billing, type BillingCreditsResource, type BillingEventType, type BillingHoldReason, type BillingInvoicesResource, type BillingResource, type BillingWebhookEvent, type BimiIssueCode, type BimiStatus, type Broadcast, type BroadcastEmailList, type BroadcastEventType, type BroadcastStats, type BroadcastStatus, type BroadcastTest, type BroadcastWebhookEvent, type BroadcastWebhookEventData, type BroadcastsResource, type CheckRiskLimitParams, type CheckSuppressionParams, type Contact, type ContactConfirmation, type ContactEventType, type ContactImport, type ContactPropertiesResource, type ContactProperty, type ContactPropertyType, type ContactPropertyValue, type ContactSource, type ContactStatus, type ContactTopicChoice, type ContactTopicStatus, type ContactTopics, type ContactWebhookEvent, type ContactWebhookEventData, type ContactsResource, Coss, type CossError, type CossErrorIssue, type CossErrorType, type CossOptions, type CossResult, type CreateBroadcastParams, type CreateContactPropertyParams, type CreateDomainParams, type CreateEmailTemplateParams, type CreateHookApplicationParams, type CreateHookEndpointParams, type CreateHookEventTypeParams, type CreateHookPortalSessionParams, type CreateLogDrainParams, type CreatePreferenceLinksParams, type CreateReceivingDomainParams, type CreateRiskLimitBucketParams, type CreateRiskListEntryParams, type CreateRiskRuleParams, type CreateSegmentParams, type CreateSuppressionParams, type CreateTopicParams, type CreateTrackingDomainParams, type CreateWebhookEndpointParams, type CreateWebhookListenerParams, type Credit, type DedicatedIpPool, type DedicatedIpPoolStatus, type DedicatedIpsResource, type DeletedApiKey, type DeletedAudience, type DeletedBroadcast, type DeletedContact, type DeletedContactProperty, type DeletedDomain, type DeletedEmailTemplate, type DeletedHookApplication, type DeletedHookEndpoint, type DeletedLogDrain, type DeletedReceivedEmail, type DeletedRiskLimitBucket, type DeletedRiskListEntry, type DeletedRiskRule, type DeletedSegment, type DeletedSuppression, type DeletedTopic, type DeletedTrackingRule, type DeletedWebhookEndpoint, type DeletedWebhookListener, type DmarcCheck, type DmarcCheckId, type DmarcNextStep, type DmarcNextStepKind, type DmarcPolicy, type DmarcPolicyPublished, type DmarcPublishedRecord, type DmarcReport, type DmarcReportRecord, type DmarcReportSummary, type DmarcReportsResource, type DmarcResource, type DmarcSource, type DmarcStage, type Domain, type DomainBimi, type DomainDmarc, type DomainEventType, type DomainRecord, type DomainRecordPurpose, type DomainRecordStatus, type DomainStatus, type DomainWebhookEvent, type DomainWebhookEventData, type DomainsResource, type Email, type EmailAttachment, type EmailAttachmentParams, type EmailBatch, type EmailEvent, type EmailEventData, type EmailEventType, type EmailFailure, type EmailLink, type EmailRecipient, type EmailRecipientStatus, type EmailResource, type EmailStatus, type EmailStream, type EmailSummary, type EmailTag, type EmailTemplate, type EmailTemplateReference, type EmailTemplateVersion, type EmailTemplateVersionsResource, type EmailTemplatesResource, type EmailTracking, type EmailWebhookEvent, type EmailWebhookEventData, type Environment, type EnvironmentResource, type ExportContactsParams, type ExportSuppressionsParams, type FetchLike, type ForgottenRiskUser, type HookApplication, type HookApplicationsResource, type HookAttempt, type HookDeliveriesResource, type HookDelivery, type HookDeliveryStatus, type HookEndpoint, type HookEndpointDisabledReason, type HookEndpointRecovery, type HookEndpointSecret, type HookEndpointWebhookEvent, type HookEndpointWebhookEventData, type HookEndpointWithSecret, type HookEndpointsResource, type HookEventType, type HookEventTypesResource, type HookMessage, type HookMessagesResource, type HookOperationalEventType, type HookPortalResource, type HookPortalSession, type HooksResource, type ImportContactEntry, type ImportContactsParams, type ImportSuppressionEntry, type ImportSuppressionsParams, type InboundAddress, type Invoice, type InvoiceLine, type InvoiceLineKind, type InvoiceStatus, type InvoiceSummary, type List, type ListAuditEventsParams, type ListBroadcastEmailsParams, type ListBroadcastsParams, type ListContactsParams, type ListCreditsParams, type ListDmarcReportsParams, type ListEmailTemplateVersionsParams, type ListEmailTemplatesParams, type ListEmailsParams, type ListHookApplicationsParams, type ListHookDeliveriesParams, type ListHookEventTypesParams, type ListHookMessagesParams, type ListInvoicesParams, type ListLogDrainBatchesParams, type ListLogsParams, type ListParams, type ListReceivedEmailsParams, type ListRiskAssessmentsParams, type ListRiskListEntriesParams, type ListSuppressionsParams, type ListUsageParams, type ListWebhookDeliveriesParams, type Log, type LogDrain, type LogDrainAttempt, type LogDrainBatch, type LogDrainBatchStatus, type LogDrainBatchesResource, type LogDrainLine, type LogDrainSource, type LogDrainWithSecret, type LogDrainsResource, type LogLevel, type LogSource, type LogsResource, type MailFromStatus, type MarketingSettings, type MarketingSettingsResource, type MarketingStanding, type MarketingStatus, type Meter, type NamedResource, type PlanKey, type PollWebhookListenerParams, type PreferenceLinks, type PublishEmailTemplateParams, type ReactEmailElement, type ReceivedEmail, type ReceivedEmailAttachment, type ReceivedEmailEventType, type ReceivedEmailStatus, type ReceivedEmailSummary, type ReceivedEmailVerdicts, type ReceivedEmailWebhookEvent, type ReceivedEmailWebhookEventData, type ReceivedEmailsResource, type ReceivingDomain, type ReceivingDomainRecord, type ReceivingDomainsResource, type RecoverHookEndpointParams, type RecoverWebhookEndpointParams, type RemovedAudienceContact, type Reputation, type ReputationCheck, type ReputationCheckSeverity, type ReputationResource, type ReputationStatus, type RequestOptions, type RescheduleEmailParams, type RiskAssessment, type RiskAssessmentsResource, type RiskCalibration, type RiskCaptchaProvider, type RiskCaptchaSignals, type RiskCardFunding, type RiskCheckoutSignals, type RiskContentCategory, type RiskContentClassification, type RiskContentScores, type RiskDecision, type RiskDegradedSignal, type RiskDeviceSignals, type RiskEmailCheck, type RiskEmailSignals, type RiskEvent, type RiskEventType, type RiskFeedbackParams, type RiskIpCheck, type RiskIpPrivacy, type RiskIpSignals, type RiskLimit, type RiskLimitBucket, type RiskLimitBucketsResource, type RiskLimitFailureMode, type RiskList, type RiskListEntry, type RiskListEntryType, type RiskListEntryValue, type RiskListsResource, type RiskLoginSignals, type RiskOutcome, type RiskReason, type RiskReasonCode, type RiskResource, type RiskRule, type RiskRuleCondition, type RiskRuleField, type RiskRulesResource, type RiskSettings, type RiskSettingsResource, type RiskUsersResource, type RiskWebhookEvent, type RiskWebhookEventData, type RollHookEndpointSecretParams, type RollWebhookEndpointSecretParams, type Segment, type SegmentCondition, type SegmentConditionGroup, type SegmentFilter, type SegmentPropertyOperator, type SegmentsResource, type SendBroadcastParams, type SendEmailBaseParams, type SendEmailContentParams, type SendEmailParams, type SendEmailTemplateParams, type SendHookMessageParams, type SendHookTestParams, type Suppression, type SuppressionCheck, type SuppressionImport, type SuppressionReason, type SuppressionResource, type TemplateContent, type TemplateContentParams, type TemplateProblem, type TemplateScalarType, type TemplateVariable, type TemplateVariableParams, type TemplateVariableType, type TestBroadcastParams, type Topic, type TopicsResource, type TrackingDomain, type TrackingDomainRecord, type TrackingDomainStatus, type TrackingDomainsResource, type TrackingOptions, type TrackingResource, type TrackingRule, type TrackingSettings, type UpdateBroadcastParams, type UpdateContactParams, type UpdateContactPropertyParams, type UpdateContactTopicsParams, type UpdateEmailTemplateDraftParams, type UpdateEmailTemplateParams, type UpdateHookApplicationParams, type UpdateHookEndpointParams, type UpdateHookEventTypeParams, type UpdateLogDrainParams, type UpdateMarketingSettingsParams, type UpdateRiskLimitBucketParams, type UpdateRiskRuleParams, type UpdateRiskSettingsParams, type UpdateSegmentParams, type UpdateTopicParams, type UpdateTrackingRuleParams, type UpdateWebhookEndpointParams, type UpsertContactParams, type Usage, type VerdictStatus, type VerifyWebhookOptions, type WebhookAttempt, type WebhookDeliveriesResource, type WebhookDelivery, type WebhookDeliveryStatus, type WebhookEndpoint, type WebhookEndpointDisabledReason, type WebhookEndpointRecovery, type WebhookEndpointWithSecret, type WebhookEndpointsResource, type WebhookEvent, type WebhookEventType, type WebhookHeaders, type WebhookListener, type WebhookListenerAck, type WebhookListenerDelivery, type WebhookListenerPoll, type WebhookListenersResource };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as API_VERSIONS, i as API_VERSION, r as VERSION, t as Coss } from "./client-CCVBtkpV.js";
1
+ import { a as API_VERSIONS, i as API_VERSION, r as VERSION, t as Coss } from "./client-D1WNvd8c.js";
2
2
  //#region src/webhooks.ts
3
3
  /** A webhook request failed verification: reject it (e.g. respond 400). */
4
4
  var WebhookVerificationError = class extends Error {
@@ -1,4 +1,4 @@
1
- import { Aa as CossError, Oa as FetchLike, t as Coss } from "./client-avnHVMry.js";
1
+ import { Yo as CossError, qo as FetchLike, t as Coss } from "./client-Bx6bKUVV.js";
2
2
  //#region src/core/integration.d.ts
3
3
  /** How an integration reaches coss.com: a client of your own, or the options to create one. */
4
4
  interface IntegrationClientOptions {
@@ -1,4 +1,4 @@
1
- import { n as INTEGRATION, t as Coss } from "./client-CCVBtkpV.js";
1
+ import { n as INTEGRATION, t as Coss } from "./client-D1WNvd8c.js";
2
2
  //#region src/core/integration.ts
3
3
  /** Returns a getter for the client, created (and validated) the first time it is needed. */
4
4
  function lazyClient(integration, options, apiKey) {