sequenzy 2.1.80 → 2.1.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/cjs/api/resources/subscribers/client/Client.d.ts +1 -1
  2. package/dist/cjs/api/resources/subscribers/client/Client.js +1 -1
  3. package/dist/cjs/api/types/FilterLeaf.d.ts +1 -1
  4. package/dist/cjs/api/types/FilterLeafField.d.ts +1 -0
  5. package/dist/cjs/api/types/FilterLeafField.js +1 -0
  6. package/dist/cjs/api/types/FilterLeafOperator.d.ts +3 -1
  7. package/dist/cjs/api/types/FilterLeafOperator.js +3 -1
  8. package/dist/cjs/api/types/SequenceInboundWebhook.d.ts +2 -0
  9. package/dist/cjs/api/types/SequenceInboundWebhookFieldMapping.d.ts +1 -1
  10. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheck.d.ts +7 -0
  11. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheck.js +3 -0
  12. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.d.ts +5 -0
  13. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.js +3 -0
  14. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheckStatus.d.ts +7 -0
  15. package/dist/cjs/api/types/SequenceInboundWebhookMappingCheckStatus.js +10 -0
  16. package/dist/cjs/api/types/SubscriberImport.d.ts +1 -0
  17. package/dist/cjs/api/types/SubscriberImportListQuality.d.ts +20 -0
  18. package/dist/cjs/api/types/SubscriberImportListQuality.js +3 -0
  19. package/dist/cjs/api/types/SubscriberImportListQualityIssuesItem.d.ts +7 -0
  20. package/dist/cjs/api/types/SubscriberImportListQualityIssuesItem.js +3 -0
  21. package/dist/cjs/api/types/SubscriberImportListQualityIssuesItemKind.d.ts +7 -0
  22. package/dist/cjs/api/types/SubscriberImportListQualityIssuesItemKind.js +10 -0
  23. package/dist/cjs/api/types/SubscriberImportListQualityStatus.d.ts +4 -0
  24. package/dist/cjs/api/types/SubscriberImportListQualityStatus.js +7 -0
  25. package/dist/cjs/api/types/index.d.ts +7 -0
  26. package/dist/cjs/api/types/index.js +7 -0
  27. package/dist/cjs/serialization/types/FilterLeafField.d.ts +1 -1
  28. package/dist/cjs/serialization/types/FilterLeafField.js +1 -0
  29. package/dist/cjs/serialization/types/FilterLeafOperator.d.ts +1 -1
  30. package/dist/cjs/serialization/types/FilterLeafOperator.js +2 -0
  31. package/dist/cjs/serialization/types/SequenceInboundWebhook.d.ts +2 -0
  32. package/dist/cjs/serialization/types/SequenceInboundWebhook.js +2 -0
  33. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheck.d.ts +12 -0
  34. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheck.js +34 -0
  35. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.d.ts +10 -0
  36. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.js +32 -0
  37. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheckStatus.d.ts +7 -0
  38. package/dist/cjs/serialization/types/SequenceInboundWebhookMappingCheckStatus.js +29 -0
  39. package/dist/cjs/serialization/types/SubscriberImport.d.ts +2 -0
  40. package/dist/cjs/serialization/types/SubscriberImport.js +2 -0
  41. package/dist/cjs/serialization/types/SubscriberImportListQuality.d.ts +18 -0
  42. package/dist/cjs/serialization/types/SubscriberImportListQuality.js +40 -0
  43. package/dist/cjs/serialization/types/SubscriberImportListQualityIssuesItem.d.ts +11 -0
  44. package/dist/cjs/serialization/types/SubscriberImportListQualityIssuesItem.js +33 -0
  45. package/dist/cjs/serialization/types/SubscriberImportListQualityIssuesItemKind.d.ts +7 -0
  46. package/dist/cjs/serialization/types/SubscriberImportListQualityIssuesItemKind.js +29 -0
  47. package/dist/cjs/serialization/types/SubscriberImportListQualityStatus.d.ts +7 -0
  48. package/dist/cjs/serialization/types/SubscriberImportListQualityStatus.js +29 -0
  49. package/dist/cjs/serialization/types/index.d.ts +7 -0
  50. package/dist/cjs/serialization/types/index.js +7 -0
  51. package/dist/esm/api/resources/subscribers/client/Client.d.ts +1 -1
  52. package/dist/esm/api/resources/subscribers/client/Client.js +1 -1
  53. package/dist/esm/api/types/FilterLeaf.d.ts +1 -1
  54. package/dist/esm/api/types/FilterLeafField.d.ts +1 -0
  55. package/dist/esm/api/types/FilterLeafField.js +1 -0
  56. package/dist/esm/api/types/FilterLeafOperator.d.ts +3 -1
  57. package/dist/esm/api/types/FilterLeafOperator.js +3 -1
  58. package/dist/esm/api/types/SequenceInboundWebhook.d.ts +2 -0
  59. package/dist/esm/api/types/SequenceInboundWebhookFieldMapping.d.ts +1 -1
  60. package/dist/esm/api/types/SequenceInboundWebhookMappingCheck.d.ts +7 -0
  61. package/dist/esm/api/types/SequenceInboundWebhookMappingCheck.js +2 -0
  62. package/dist/esm/api/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.d.ts +5 -0
  63. package/dist/esm/api/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.js +2 -0
  64. package/dist/esm/api/types/SequenceInboundWebhookMappingCheckStatus.d.ts +7 -0
  65. package/dist/esm/api/types/SequenceInboundWebhookMappingCheckStatus.js +7 -0
  66. package/dist/esm/api/types/SubscriberImport.d.ts +1 -0
  67. package/dist/esm/api/types/SubscriberImportListQuality.d.ts +20 -0
  68. package/dist/esm/api/types/SubscriberImportListQuality.js +2 -0
  69. package/dist/esm/api/types/SubscriberImportListQualityIssuesItem.d.ts +7 -0
  70. package/dist/esm/api/types/SubscriberImportListQualityIssuesItem.js +2 -0
  71. package/dist/esm/api/types/SubscriberImportListQualityIssuesItemKind.d.ts +7 -0
  72. package/dist/esm/api/types/SubscriberImportListQualityIssuesItemKind.js +7 -0
  73. package/dist/esm/api/types/SubscriberImportListQualityStatus.d.ts +4 -0
  74. package/dist/esm/api/types/SubscriberImportListQualityStatus.js +4 -0
  75. package/dist/esm/api/types/index.d.ts +7 -0
  76. package/dist/esm/api/types/index.js +7 -0
  77. package/dist/esm/serialization/types/FilterLeafField.d.ts +1 -1
  78. package/dist/esm/serialization/types/FilterLeafField.js +1 -0
  79. package/dist/esm/serialization/types/FilterLeafOperator.d.ts +1 -1
  80. package/dist/esm/serialization/types/FilterLeafOperator.js +2 -0
  81. package/dist/esm/serialization/types/SequenceInboundWebhook.d.ts +2 -0
  82. package/dist/esm/serialization/types/SequenceInboundWebhook.js +2 -0
  83. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheck.d.ts +12 -0
  84. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheck.js +8 -0
  85. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.d.ts +10 -0
  86. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheckMissingFieldsItem.js +6 -0
  87. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheckStatus.d.ts +7 -0
  88. package/dist/esm/serialization/types/SequenceInboundWebhookMappingCheckStatus.js +3 -0
  89. package/dist/esm/serialization/types/SubscriberImport.d.ts +2 -0
  90. package/dist/esm/serialization/types/SubscriberImport.js +2 -0
  91. package/dist/esm/serialization/types/SubscriberImportListQuality.d.ts +18 -0
  92. package/dist/esm/serialization/types/SubscriberImportListQuality.js +14 -0
  93. package/dist/esm/serialization/types/SubscriberImportListQualityIssuesItem.d.ts +11 -0
  94. package/dist/esm/serialization/types/SubscriberImportListQualityIssuesItem.js +7 -0
  95. package/dist/esm/serialization/types/SubscriberImportListQualityIssuesItemKind.d.ts +7 -0
  96. package/dist/esm/serialization/types/SubscriberImportListQualityIssuesItemKind.js +3 -0
  97. package/dist/esm/serialization/types/SubscriberImportListQualityStatus.d.ts +7 -0
  98. package/dist/esm/serialization/types/SubscriberImportListQualityStatus.js +3 -0
  99. package/dist/esm/serialization/types/index.d.ts +7 -0
  100. package/dist/esm/serialization/types/index.js +7 -0
  101. package/package.json +1 -1
@@ -124,7 +124,7 @@ export declare class SubscribersClient {
124
124
  create(request?: Sequenzy.CreateSubscribersRequest, requestOptions?: SubscribersClient.RequestOptions): core.HttpResponsePromise<Sequenzy.CreateSubscribersResponse>;
125
125
  private __create;
126
126
  /**
127
- * Queues an asynchronous full-record subscriber import of up to 5,000 contacts.
127
+ * Queues an asynchronous full-record subscriber import of up to 5,000 contacts. If the list has too many addresses that don't exist, the import gets a listQuality recommendation to clean it.
128
128
  *
129
129
  * @param {Sequenzy.CreateImportSubscribersRequest} request
130
130
  * @param {SubscribersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -418,7 +418,7 @@ class SubscribersClient {
418
418
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/subscribers");
419
419
  }
420
420
  /**
421
- * Queues an asynchronous full-record subscriber import of up to 5,000 contacts.
421
+ * Queues an asynchronous full-record subscriber import of up to 5,000 contacts. If the list has too many addresses that don't exist, the import gets a listQuality recommendation to clean it.
422
422
  *
423
423
  * @param {Sequenzy.CreateImportSubscribersRequest} request
424
424
  * @param {SubscribersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -7,7 +7,7 @@ export interface FilterLeaf {
7
7
  id: string;
8
8
  /** Required when the filter is inside a v2 root group. */
9
9
  kind?: Sequenzy.FilterLeafKind;
10
- /** Valid operators depend on the field. status/segment: is, is_not. smsStatus: is, is_not (values: subscribed, unsubscribed, not_subscribed). phone: is_not_empty, is_empty (empty value). tag: contains, not_contains, is_empty, is_not_empty. email: contains, not_contains for domain or substring matching, is, is_not for an exact case-insensitive address. emailProvider/list: is, is_not, is_empty, is_not_empty. firstName/lastName: contains, not_contains, is_empty, is_not_empty. added: less_than, more_than. attribute: is, is_not, is_empty, is_not_empty, gte, lte, gt, lt, contains, not_contains. event and email engagement fields: is, is_not, at_least, less_than_count. emailBounced also supports is_temporary_bounce and is_permanent_bounce. stripeProduct: is, is_not, at_least, less_than_count. stripeCurrentProduct/stripeTrialProduct: is, is_not, gte, lte, gt, lt. commerceProduct/commerceCollection: is, is_not, at_least, less_than_count. pushDevice: is, is_not (values: any, web, ios, android; matches active push devices). pushSent/pushDelivered/pushClicked: is, is_not with a time range such as 30d or all (test sends are ignored). */
10
+ /** Valid operators depend on the field. status/segment: is, is_not. smsStatus: is, is_not (values: subscribed, unsubscribed, not_subscribed). phone: is_not_empty, is_empty (empty value), or starts_with, not_starts_with, contains, not_contains with digits matched against the stored E.164 number (for example +44 or +1 415; negative operators only match contacts with a phone). phoneCountry: is, is_not with ISO 3166-1 alpha-2 codes, comma-separated for several (for example GB or US,CA); only contacts with a phone match. tag: contains, not_contains, is_empty, is_not_empty. email: contains, not_contains for domain or substring matching, is, is_not for an exact case-insensitive address. emailProvider/list: is, is_not, is_empty, is_not_empty. firstName/lastName: contains, not_contains, is_empty, is_not_empty. added: less_than, more_than. attribute: is, is_not, is_empty, is_not_empty, gte, lte, gt, lt, contains, not_contains. event and email engagement fields: is, is_not, at_least, less_than_count. emailBounced also supports is_temporary_bounce and is_permanent_bounce. stripeProduct: is, is_not, at_least, less_than_count. stripeCurrentProduct/stripeTrialProduct: is, is_not, gte, lte, gt, lt. commerceProduct/commerceCollection: is, is_not, at_least, less_than_count. pushDevice: is, is_not (values: any, web, ios, android; matches active push devices). pushSent/pushDelivered/pushClicked: is, is_not with a time range such as 30d or all (test sends are ignored). */
11
11
  operator: Sequenzy.FilterLeafOperator;
12
12
  /** Event filters use `eventName:30d` or `eventName:5:30d`. Segment filters use a segment ID. Email engagement fields use a rolling time window (`24h`, `7d`, `30d`, `90d`, `180d`, `all`; whole hours from `1h` to `8760h` are measured to the exact hour; count filters are exact up to `168h`), a specific campaign via `campaign:<campaign_id>`, an email-type scope via `marketing:<timeRange>` (marketing-policy campaign, automation, and Send API traffic) or `transactional:<timeRange>` (transactional-policy sends; with is/is_not or the emailBounced subtype operators; scopes require a send-time policy snapshot, so ambiguous older events remain unscoped), or `count:timeRange` (such as `10:30d` or `10:all`) with at_least/less_than_count. Stripe product filters use `prod_123` for bought/current/trialing checks, `prod_123:3` for payment thresholds, and product-scoped values such as `prod_123:is_canceled`, `prod_123:cancels_at:2026-05-26`, `prod_123:end_at:2026-05-26`, or `prod_123:start_at:7 days ago`. Commerce product filters use `provider:productId` (provider one of `shopify`, `woocommerce`, `api`), optionally with an order-count threshold (`shopify:42:2`); a bare product ID matches the ID on any provider. Commerce collection filters use a collection ID or handle (`skincare`), optionally provider-prefixed and/or with an order-count threshold (`shopify:skincare:2`), and match anyone whose orders contain any product currently in that collection. Push device filters use `any`, `web`, `ios`, or `android`. Push sent, delivered, and clicked filters use a time range (`7d`, `30d`, `all`). */
13
13
  value: string;
@@ -1,6 +1,7 @@
1
1
  export declare const FilterLeafField: {
2
2
  readonly Status: "status";
3
3
  readonly Phone: "phone";
4
+ readonly PhoneCountry: "phoneCountry";
4
5
  readonly SmsStatus: "smsStatus";
5
6
  readonly Tag: "tag";
6
7
  readonly Email: "email";
@@ -5,6 +5,7 @@ exports.FilterLeafField = void 0;
5
5
  exports.FilterLeafField = {
6
6
  Status: "status",
7
7
  Phone: "phone",
8
+ PhoneCountry: "phoneCountry",
8
9
  SmsStatus: "smsStatus",
9
10
  Tag: "tag",
10
11
  Email: "email",
@@ -1,4 +1,4 @@
1
- /** Valid operators depend on the field. status/segment: is, is_not. smsStatus: is, is_not (values: subscribed, unsubscribed, not_subscribed). phone: is_not_empty, is_empty (empty value). tag: contains, not_contains, is_empty, is_not_empty. email: contains, not_contains for domain or substring matching, is, is_not for an exact case-insensitive address. emailProvider/list: is, is_not, is_empty, is_not_empty. firstName/lastName: contains, not_contains, is_empty, is_not_empty. added: less_than, more_than. attribute: is, is_not, is_empty, is_not_empty, gte, lte, gt, lt, contains, not_contains. event and email engagement fields: is, is_not, at_least, less_than_count. emailBounced also supports is_temporary_bounce and is_permanent_bounce. stripeProduct: is, is_not, at_least, less_than_count. stripeCurrentProduct/stripeTrialProduct: is, is_not, gte, lte, gt, lt. commerceProduct/commerceCollection: is, is_not, at_least, less_than_count. pushDevice: is, is_not (values: any, web, ios, android; matches active push devices). pushSent/pushDelivered/pushClicked: is, is_not with a time range such as 30d or all (test sends are ignored). */
1
+ /** Valid operators depend on the field. status/segment: is, is_not. smsStatus: is, is_not (values: subscribed, unsubscribed, not_subscribed). phone: is_not_empty, is_empty (empty value), or starts_with, not_starts_with, contains, not_contains with digits matched against the stored E.164 number (for example +44 or +1 415; negative operators only match contacts with a phone). phoneCountry: is, is_not with ISO 3166-1 alpha-2 codes, comma-separated for several (for example GB or US,CA); only contacts with a phone match. tag: contains, not_contains, is_empty, is_not_empty. email: contains, not_contains for domain or substring matching, is, is_not for an exact case-insensitive address. emailProvider/list: is, is_not, is_empty, is_not_empty. firstName/lastName: contains, not_contains, is_empty, is_not_empty. added: less_than, more_than. attribute: is, is_not, is_empty, is_not_empty, gte, lte, gt, lt, contains, not_contains. event and email engagement fields: is, is_not, at_least, less_than_count. emailBounced also supports is_temporary_bounce and is_permanent_bounce. stripeProduct: is, is_not, at_least, less_than_count. stripeCurrentProduct/stripeTrialProduct: is, is_not, gte, lte, gt, lt. commerceProduct/commerceCollection: is, is_not, at_least, less_than_count. pushDevice: is, is_not (values: any, web, ios, android; matches active push devices). pushSent/pushDelivered/pushClicked: is, is_not with a time range such as 30d or all (test sends are ignored). */
2
2
  export declare const FilterLeafOperator: {
3
3
  readonly Is: "is";
4
4
  readonly IsNot: "is_not";
@@ -6,6 +6,8 @@ export declare const FilterLeafOperator: {
6
6
  readonly IsNotEmpty: "is_not_empty";
7
7
  readonly Contains: "contains";
8
8
  readonly NotContains: "not_contains";
9
+ readonly StartsWith: "starts_with";
10
+ readonly NotStartsWith: "not_starts_with";
9
11
  readonly LessThan: "less_than";
10
12
  readonly MoreThan: "more_than";
11
13
  readonly IsTemporaryBounce: "is_temporary_bounce";
@@ -2,7 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.FilterLeafOperator = void 0;
5
- /** Valid operators depend on the field. status/segment: is, is_not. smsStatus: is, is_not (values: subscribed, unsubscribed, not_subscribed). phone: is_not_empty, is_empty (empty value). tag: contains, not_contains, is_empty, is_not_empty. email: contains, not_contains for domain or substring matching, is, is_not for an exact case-insensitive address. emailProvider/list: is, is_not, is_empty, is_not_empty. firstName/lastName: contains, not_contains, is_empty, is_not_empty. added: less_than, more_than. attribute: is, is_not, is_empty, is_not_empty, gte, lte, gt, lt, contains, not_contains. event and email engagement fields: is, is_not, at_least, less_than_count. emailBounced also supports is_temporary_bounce and is_permanent_bounce. stripeProduct: is, is_not, at_least, less_than_count. stripeCurrentProduct/stripeTrialProduct: is, is_not, gte, lte, gt, lt. commerceProduct/commerceCollection: is, is_not, at_least, less_than_count. pushDevice: is, is_not (values: any, web, ios, android; matches active push devices). pushSent/pushDelivered/pushClicked: is, is_not with a time range such as 30d or all (test sends are ignored). */
5
+ /** Valid operators depend on the field. status/segment: is, is_not. smsStatus: is, is_not (values: subscribed, unsubscribed, not_subscribed). phone: is_not_empty, is_empty (empty value), or starts_with, not_starts_with, contains, not_contains with digits matched against the stored E.164 number (for example +44 or +1 415; negative operators only match contacts with a phone). phoneCountry: is, is_not with ISO 3166-1 alpha-2 codes, comma-separated for several (for example GB or US,CA); only contacts with a phone match. tag: contains, not_contains, is_empty, is_not_empty. email: contains, not_contains for domain or substring matching, is, is_not for an exact case-insensitive address. emailProvider/list: is, is_not, is_empty, is_not_empty. firstName/lastName: contains, not_contains, is_empty, is_not_empty. added: less_than, more_than. attribute: is, is_not, is_empty, is_not_empty, gte, lte, gt, lt, contains, not_contains. event and email engagement fields: is, is_not, at_least, less_than_count. emailBounced also supports is_temporary_bounce and is_permanent_bounce. stripeProduct: is, is_not, at_least, less_than_count. stripeCurrentProduct/stripeTrialProduct: is, is_not, gte, lte, gt, lt. commerceProduct/commerceCollection: is, is_not, at_least, less_than_count. pushDevice: is, is_not (values: any, web, ios, android; matches active push devices). pushSent/pushDelivered/pushClicked: is, is_not with a time range such as 30d or all (test sends are ignored). */
6
6
  exports.FilterLeafOperator = {
7
7
  Is: "is",
8
8
  IsNot: "is_not",
@@ -10,6 +10,8 @@ exports.FilterLeafOperator = {
10
10
  IsNotEmpty: "is_not_empty",
11
11
  Contains: "contains",
12
12
  NotContains: "not_contains",
13
+ StartsWith: "starts_with",
14
+ NotStartsWith: "not_starts_with",
13
15
  LessThan: "less_than",
14
16
  MoreThan: "more_than",
15
17
  IsTemporaryBounce: "is_temporary_bounce",
@@ -4,6 +4,8 @@ export interface SequenceInboundWebhook {
4
4
  eventName?: string;
5
5
  fieldMapping?: Sequenzy.SequenceInboundWebhookFieldMapping | null;
6
6
  id?: string;
7
+ /** Whether the field mapping finds an email in the last payload received, or in a sample saved through this endpoint. An example sample applied from the integration catalog on first setup is not checked. The endpoint answers 200 to every payload it can parse, but skips one without a valid email and creates no subscriber, so a mapping with status email_not_found means received webhooks are being skipped. Null when no mapping is saved. */
8
+ mappingCheck?: Sequenzy.SequenceInboundWebhookMappingCheck | null;
7
9
  sampleCapturedAt?: Date | null;
8
10
  samplePayload?: Record<string, unknown> | null;
9
11
  /** Secret URL token. Treat it as a credential. */
@@ -1,5 +1,5 @@
1
1
  export interface SequenceInboundWebhookFieldMapping {
2
- /** Dot path to the subscriber email in the webhook payload. */
2
+ /** Dot path to the subscriber email in the webhook payload. A key that itself contains dots, such as `data.user_email`, is matched as one key, so `properties.data.user_email` reads `{"properties": {"data.user_email": "..."}}`. */
3
3
  email: string;
4
4
  firstName?: string;
5
5
  lastName?: string;
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../index.js";
2
+ export interface SequenceInboundWebhookMappingCheck {
3
+ /** Mapped fields whose path does not exist in the saved sample. */
4
+ missingFields: Sequenzy.SequenceInboundWebhookMappingCheckMissingFieldsItem[];
5
+ /** `ok`: the email path holds a valid address. `email_not_found`: it is missing or not a valid address. `no_sample`: no payload has been received or saved yet. */
6
+ status: Sequenzy.SequenceInboundWebhookMappingCheckStatus;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface SequenceInboundWebhookMappingCheckMissingFieldsItem {
2
+ /** `email`, `firstName`, `lastName` or `properties.<name>`. */
3
+ field: string;
4
+ path: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /** `ok`: the email path holds a valid address. `email_not_found`: it is missing or not a valid address. `no_sample`: no payload has been received or saved yet. */
2
+ export declare const SequenceInboundWebhookMappingCheckStatus: {
3
+ readonly Ok: "ok";
4
+ readonly EmailNotFound: "email_not_found";
5
+ readonly NoSample: "no_sample";
6
+ };
7
+ export type SequenceInboundWebhookMappingCheckStatus = (typeof SequenceInboundWebhookMappingCheckStatus)[keyof typeof SequenceInboundWebhookMappingCheckStatus];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SequenceInboundWebhookMappingCheckStatus = void 0;
5
+ /** `ok`: the email path holds a valid address. `email_not_found`: it is missing or not a valid address. `no_sample`: no payload has been received or saved yet. */
6
+ exports.SequenceInboundWebhookMappingCheckStatus = {
7
+ Ok: "ok",
8
+ EmailNotFound: "email_not_found",
9
+ NoSample: "no_sample",
10
+ };
@@ -13,6 +13,7 @@ export interface SubscriberImport {
13
13
  failedReasons?: Record<string, number>;
14
14
  fileName?: string;
15
15
  id?: string;
16
+ listQuality?: Sequenzy.SubscriberImportListQuality | null;
16
17
  processedCount?: number;
17
18
  skippedCount?: number;
18
19
  /** Count per reason a row was skipped. The values sum to skippedCount. */
@@ -0,0 +1,20 @@
1
+ import type * as Sequenzy from "../index.js";
2
+ /**
3
+ * Set when the list has too many addresses that don't exist or look risky; null otherwise. None of its contacts are imported (every row is skipped as list_needs_cleaning). An import stays running, with nothing processed, until its list check is done.
4
+ */
5
+ export interface SubscriberImportListQuality {
6
+ checkedAt?: Date | null;
7
+ /** A list-cleaning service to clean the list with. */
8
+ cleaningUrl?: string;
9
+ /** What needs cleaning, as estimated shares of the list. A list can need cleaning for any of them, not only for addresses that don't exist. */
10
+ issues?: Sequenzy.SubscriberImportListQualityIssuesItem[];
11
+ /** Customer-facing explanation and recommendation. */
12
+ message?: string;
13
+ /** Addresses in the checked sample. */
14
+ sampleSize?: number;
15
+ status?: Sequenzy.SubscriberImportListQualityStatus;
16
+ /** Addresses in the sample that don't exist. */
17
+ undeliverableCount?: number;
18
+ /** Estimated share of the list's addresses that don't exist, from 0 to 1. */
19
+ undeliverableRate?: number;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../index.js";
2
+ export interface SubscriberImportListQualityIssuesItem {
3
+ /** undeliverable: addresses that don't exist. disposable: temporary inboxes. role: shared addresses like info@ or sales@. */
4
+ kind: Sequenzy.SubscriberImportListQualityIssuesItemKind;
5
+ /** Share of the list, from 0 to 1. */
6
+ rate: number;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /** undeliverable: addresses that don't exist. disposable: temporary inboxes. role: shared addresses like info@ or sales@. */
2
+ export declare const SubscriberImportListQualityIssuesItemKind: {
3
+ readonly Undeliverable: "undeliverable";
4
+ readonly Disposable: "disposable";
5
+ readonly Role: "role";
6
+ };
7
+ export type SubscriberImportListQualityIssuesItemKind = (typeof SubscriberImportListQualityIssuesItemKind)[keyof typeof SubscriberImportListQualityIssuesItemKind];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SubscriberImportListQualityIssuesItemKind = void 0;
5
+ /** undeliverable: addresses that don't exist. disposable: temporary inboxes. role: shared addresses like info@ or sales@. */
6
+ exports.SubscriberImportListQualityIssuesItemKind = {
7
+ Undeliverable: "undeliverable",
8
+ Disposable: "disposable",
9
+ Role: "role",
10
+ };
@@ -0,0 +1,4 @@
1
+ export declare const SubscriberImportListQualityStatus: {
2
+ readonly NeedsCleaning: "needs_cleaning";
3
+ };
4
+ export type SubscriberImportListQualityStatus = (typeof SubscriberImportListQualityStatus)[keyof typeof SubscriberImportListQualityStatus];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SubscriberImportListQualityStatus = void 0;
5
+ exports.SubscriberImportListQualityStatus = {
6
+ NeedsCleaning: "needs_cleaning",
7
+ };
@@ -774,6 +774,9 @@ export * from "./SequenceGraphEditInput.js";
774
774
  export * from "./SequenceGraphEditInputAction.js";
775
775
  export * from "./SequenceInboundWebhook.js";
776
776
  export * from "./SequenceInboundWebhookFieldMapping.js";
777
+ export * from "./SequenceInboundWebhookMappingCheck.js";
778
+ export * from "./SequenceInboundWebhookMappingCheckMissingFieldsItem.js";
779
+ export * from "./SequenceInboundWebhookMappingCheckStatus.js";
777
780
  export * from "./SequenceInboundWebhookStatus.js";
778
781
  export * from "./SequenceKeyDate.js";
779
782
  export * from "./SequenceKeyDates.js";
@@ -883,6 +886,10 @@ export * from "./SubscriberActivityEvent.js";
883
886
  export * from "./SubscriberActivityEventEngagementQuality.js";
884
887
  export * from "./SubscriberEmailStats.js";
885
888
  export * from "./SubscriberImport.js";
889
+ export * from "./SubscriberImportListQuality.js";
890
+ export * from "./SubscriberImportListQualityIssuesItem.js";
891
+ export * from "./SubscriberImportListQualityIssuesItemKind.js";
892
+ export * from "./SubscriberImportListQualityStatus.js";
886
893
  export * from "./SubscriberImportRecord.js";
887
894
  export * from "./SubscriberImportRecordCustomAttributesValue.js";
888
895
  export * from "./SubscriberImportRecordCustomAttributesValueThreeItem.js";
@@ -790,6 +790,9 @@ __exportStar(require("./SequenceGraphEditInput.js"), exports);
790
790
  __exportStar(require("./SequenceGraphEditInputAction.js"), exports);
791
791
  __exportStar(require("./SequenceInboundWebhook.js"), exports);
792
792
  __exportStar(require("./SequenceInboundWebhookFieldMapping.js"), exports);
793
+ __exportStar(require("./SequenceInboundWebhookMappingCheck.js"), exports);
794
+ __exportStar(require("./SequenceInboundWebhookMappingCheckMissingFieldsItem.js"), exports);
795
+ __exportStar(require("./SequenceInboundWebhookMappingCheckStatus.js"), exports);
793
796
  __exportStar(require("./SequenceInboundWebhookStatus.js"), exports);
794
797
  __exportStar(require("./SequenceKeyDate.js"), exports);
795
798
  __exportStar(require("./SequenceKeyDates.js"), exports);
@@ -899,6 +902,10 @@ __exportStar(require("./SubscriberActivityEvent.js"), exports);
899
902
  __exportStar(require("./SubscriberActivityEventEngagementQuality.js"), exports);
900
903
  __exportStar(require("./SubscriberEmailStats.js"), exports);
901
904
  __exportStar(require("./SubscriberImport.js"), exports);
905
+ __exportStar(require("./SubscriberImportListQuality.js"), exports);
906
+ __exportStar(require("./SubscriberImportListQualityIssuesItem.js"), exports);
907
+ __exportStar(require("./SubscriberImportListQualityIssuesItemKind.js"), exports);
908
+ __exportStar(require("./SubscriberImportListQualityStatus.js"), exports);
902
909
  __exportStar(require("./SubscriberImportRecord.js"), exports);
903
910
  __exportStar(require("./SubscriberImportRecordCustomAttributesValue.js"), exports);
904
911
  __exportStar(require("./SubscriberImportRecordCustomAttributesValueThreeItem.js"), exports);
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  export declare const FilterLeafField: core.serialization.Schema<serializers.FilterLeafField.Raw, Sequenzy.FilterLeafField>;
5
5
  export declare namespace FilterLeafField {
6
- type Raw = "status" | "phone" | "smsStatus" | "tag" | "email" | "emailProvider" | "added" | "firstName" | "lastName" | "list" | "attribute" | "event" | "segment" | "stripeProduct" | "stripeCurrentProduct" | "stripeTrialProduct" | "commerceProduct" | "commerceCollection" | "emailSent" | "emailDelivered" | "emailOpened" | "emailClicked" | "emailBounced" | "emailComplained" | "pushDevice" | "pushSent" | "pushDelivered" | "pushClicked";
6
+ type Raw = "status" | "phone" | "phoneCountry" | "smsStatus" | "tag" | "email" | "emailProvider" | "added" | "firstName" | "lastName" | "list" | "attribute" | "event" | "segment" | "stripeProduct" | "stripeCurrentProduct" | "stripeTrialProduct" | "commerceProduct" | "commerceCollection" | "emailSent" | "emailDelivered" | "emailOpened" | "emailClicked" | "emailBounced" | "emailComplained" | "pushDevice" | "pushSent" | "pushDelivered" | "pushClicked";
7
7
  }
@@ -29,6 +29,7 @@ const core = __importStar(require("../../core/index.js"));
29
29
  exports.FilterLeafField = core.serialization.enum_([
30
30
  "status",
31
31
  "phone",
32
+ "phoneCountry",
32
33
  "smsStatus",
33
34
  "tag",
34
35
  "email",
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  export declare const FilterLeafOperator: core.serialization.Schema<serializers.FilterLeafOperator.Raw, Sequenzy.FilterLeafOperator>;
5
5
  export declare namespace FilterLeafOperator {
6
- type Raw = "is" | "is_not" | "is_empty" | "is_not_empty" | "contains" | "not_contains" | "less_than" | "more_than" | "is_temporary_bounce" | "is_permanent_bounce" | "at_least" | "less_than_count" | "gte" | "lte" | "gt" | "lt";
6
+ type Raw = "is" | "is_not" | "is_empty" | "is_not_empty" | "contains" | "not_contains" | "starts_with" | "not_starts_with" | "less_than" | "more_than" | "is_temporary_bounce" | "is_permanent_bounce" | "at_least" | "less_than_count" | "gte" | "lte" | "gt" | "lt";
7
7
  }
@@ -33,6 +33,8 @@ exports.FilterLeafOperator = core.serialization.enum_([
33
33
  "is_not_empty",
34
34
  "contains",
35
35
  "not_contains",
36
+ "starts_with",
37
+ "not_starts_with",
36
38
  "less_than",
37
39
  "more_than",
38
40
  "is_temporary_bounce",
@@ -2,6 +2,7 @@ import type * as Sequenzy from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { SequenceInboundWebhookFieldMapping } from "./SequenceInboundWebhookFieldMapping.js";
5
+ import { SequenceInboundWebhookMappingCheck } from "./SequenceInboundWebhookMappingCheck.js";
5
6
  import { SequenceInboundWebhookStatus } from "./SequenceInboundWebhookStatus.js";
6
7
  export declare const SequenceInboundWebhook: core.serialization.ObjectSchema<serializers.SequenceInboundWebhook.Raw, Sequenzy.SequenceInboundWebhook>;
7
8
  export declare namespace SequenceInboundWebhook {
@@ -10,6 +11,7 @@ export declare namespace SequenceInboundWebhook {
10
11
  eventName?: string | null;
11
12
  fieldMapping?: (SequenceInboundWebhookFieldMapping.Raw | null | undefined) | null;
12
13
  id?: string | null;
14
+ mappingCheck?: (SequenceInboundWebhookMappingCheck.Raw | null | undefined) | null;
13
15
  sampleCapturedAt?: (string | null | undefined) | null;
14
16
  samplePayload?: (Record<string, unknown> | null | undefined) | null;
15
17
  secret?: string | null;
@@ -27,12 +27,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.SequenceInboundWebhook = void 0;
28
28
  const core = __importStar(require("../../core/index.js"));
29
29
  const SequenceInboundWebhookFieldMapping_js_1 = require("./SequenceInboundWebhookFieldMapping.js");
30
+ const SequenceInboundWebhookMappingCheck_js_1 = require("./SequenceInboundWebhookMappingCheck.js");
30
31
  const SequenceInboundWebhookStatus_js_1 = require("./SequenceInboundWebhookStatus.js");
31
32
  exports.SequenceInboundWebhook = core.serialization.object({
32
33
  createdAt: core.serialization.date().optional(),
33
34
  eventName: core.serialization.string().optional(),
34
35
  fieldMapping: SequenceInboundWebhookFieldMapping_js_1.SequenceInboundWebhookFieldMapping.optionalNullable(),
35
36
  id: core.serialization.string().optional(),
37
+ mappingCheck: SequenceInboundWebhookMappingCheck_js_1.SequenceInboundWebhookMappingCheck.optionalNullable(),
36
38
  sampleCapturedAt: core.serialization.date().optionalNullable(),
37
39
  samplePayload: core.serialization
38
40
  .record(core.serialization.string(), core.serialization.unknown())
@@ -0,0 +1,12 @@
1
+ import type * as Sequenzy from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { SequenceInboundWebhookMappingCheckMissingFieldsItem } from "./SequenceInboundWebhookMappingCheckMissingFieldsItem.js";
5
+ import { SequenceInboundWebhookMappingCheckStatus } from "./SequenceInboundWebhookMappingCheckStatus.js";
6
+ export declare const SequenceInboundWebhookMappingCheck: core.serialization.ObjectSchema<serializers.SequenceInboundWebhookMappingCheck.Raw, Sequenzy.SequenceInboundWebhookMappingCheck>;
7
+ export declare namespace SequenceInboundWebhookMappingCheck {
8
+ interface Raw {
9
+ missingFields: SequenceInboundWebhookMappingCheckMissingFieldsItem.Raw[];
10
+ status: SequenceInboundWebhookMappingCheckStatus.Raw;
11
+ }
12
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.SequenceInboundWebhookMappingCheck = void 0;
28
+ const core = __importStar(require("../../core/index.js"));
29
+ const SequenceInboundWebhookMappingCheckMissingFieldsItem_js_1 = require("./SequenceInboundWebhookMappingCheckMissingFieldsItem.js");
30
+ const SequenceInboundWebhookMappingCheckStatus_js_1 = require("./SequenceInboundWebhookMappingCheckStatus.js");
31
+ exports.SequenceInboundWebhookMappingCheck = core.serialization.object({
32
+ missingFields: core.serialization.list(SequenceInboundWebhookMappingCheckMissingFieldsItem_js_1.SequenceInboundWebhookMappingCheckMissingFieldsItem),
33
+ status: SequenceInboundWebhookMappingCheckStatus_js_1.SequenceInboundWebhookMappingCheckStatus,
34
+ });
@@ -0,0 +1,10 @@
1
+ import type * as Sequenzy from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const SequenceInboundWebhookMappingCheckMissingFieldsItem: core.serialization.ObjectSchema<serializers.SequenceInboundWebhookMappingCheckMissingFieldsItem.Raw, Sequenzy.SequenceInboundWebhookMappingCheckMissingFieldsItem>;
5
+ export declare namespace SequenceInboundWebhookMappingCheckMissingFieldsItem {
6
+ interface Raw {
7
+ field: string;
8
+ path: string;
9
+ }
10
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.SequenceInboundWebhookMappingCheckMissingFieldsItem = void 0;
28
+ const core = __importStar(require("../../core/index.js"));
29
+ exports.SequenceInboundWebhookMappingCheckMissingFieldsItem = core.serialization.object({
30
+ field: core.serialization.string(),
31
+ path: core.serialization.string(),
32
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const SequenceInboundWebhookMappingCheckStatus: core.serialization.Schema<serializers.SequenceInboundWebhookMappingCheckStatus.Raw, Sequenzy.SequenceInboundWebhookMappingCheckStatus>;
5
+ export declare namespace SequenceInboundWebhookMappingCheckStatus {
6
+ type Raw = "ok" | "email_not_found" | "no_sample";
7
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.SequenceInboundWebhookMappingCheckStatus = void 0;
28
+ const core = __importStar(require("../../core/index.js"));
29
+ exports.SequenceInboundWebhookMappingCheckStatus = core.serialization.enum_(["ok", "email_not_found", "no_sample"]);
@@ -1,6 +1,7 @@
1
1
  import type * as Sequenzy from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
+ import { SubscriberImportListQuality } from "./SubscriberImportListQuality.js";
4
5
  import { SubscriberImportStatus } from "./SubscriberImportStatus.js";
5
6
  export declare const SubscriberImport: core.serialization.ObjectSchema<serializers.SubscriberImport.Raw, Sequenzy.SubscriberImport>;
6
7
  export declare namespace SubscriberImport {
@@ -18,6 +19,7 @@ export declare namespace SubscriberImport {
18
19
  failedReasons?: Record<string, number> | null;
19
20
  fileName?: string | null;
20
21
  id?: string | null;
22
+ listQuality?: (SubscriberImportListQuality.Raw | null | undefined) | null;
21
23
  processedCount?: number | null;
22
24
  skippedCount?: number | null;
23
25
  skippedReasons?: Record<string, number> | null;
@@ -26,6 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.SubscriberImport = void 0;
28
28
  const core = __importStar(require("../../core/index.js"));
29
+ const SubscriberImportListQuality_js_1 = require("./SubscriberImportListQuality.js");
29
30
  const SubscriberImportStatus_js_1 = require("./SubscriberImportStatus.js");
30
31
  exports.SubscriberImport = core.serialization.object({
31
32
  addedCount: core.serialization.number().optional(),
@@ -41,6 +42,7 @@ exports.SubscriberImport = core.serialization.object({
41
42
  failedReasons: core.serialization.record(core.serialization.string(), core.serialization.number()).optional(),
42
43
  fileName: core.serialization.string().optional(),
43
44
  id: core.serialization.string().optional(),
45
+ listQuality: SubscriberImportListQuality_js_1.SubscriberImportListQuality.optionalNullable(),
44
46
  processedCount: core.serialization.number().optional(),
45
47
  skippedCount: core.serialization.number().optional(),
46
48
  skippedReasons: core.serialization.record(core.serialization.string(), core.serialization.number()).optional(),
@@ -0,0 +1,18 @@
1
+ import type * as Sequenzy from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { SubscriberImportListQualityIssuesItem } from "./SubscriberImportListQualityIssuesItem.js";
5
+ import { SubscriberImportListQualityStatus } from "./SubscriberImportListQualityStatus.js";
6
+ export declare const SubscriberImportListQuality: core.serialization.ObjectSchema<serializers.SubscriberImportListQuality.Raw, Sequenzy.SubscriberImportListQuality>;
7
+ export declare namespace SubscriberImportListQuality {
8
+ interface Raw {
9
+ checkedAt?: (string | null | undefined) | null;
10
+ cleaningUrl?: string | null;
11
+ issues?: SubscriberImportListQualityIssuesItem.Raw[] | null;
12
+ message?: string | null;
13
+ sampleSize?: number | null;
14
+ status?: SubscriberImportListQualityStatus.Raw | null;
15
+ undeliverableCount?: number | null;
16
+ undeliverableRate?: number | null;
17
+ }
18
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.SubscriberImportListQuality = void 0;
28
+ const core = __importStar(require("../../core/index.js"));
29
+ const SubscriberImportListQualityIssuesItem_js_1 = require("./SubscriberImportListQualityIssuesItem.js");
30
+ const SubscriberImportListQualityStatus_js_1 = require("./SubscriberImportListQualityStatus.js");
31
+ exports.SubscriberImportListQuality = core.serialization.object({
32
+ checkedAt: core.serialization.date().optionalNullable(),
33
+ cleaningUrl: core.serialization.string().optional(),
34
+ issues: core.serialization.list(SubscriberImportListQualityIssuesItem_js_1.SubscriberImportListQualityIssuesItem).optional(),
35
+ message: core.serialization.string().optional(),
36
+ sampleSize: core.serialization.number().optional(),
37
+ status: SubscriberImportListQualityStatus_js_1.SubscriberImportListQualityStatus.optional(),
38
+ undeliverableCount: core.serialization.number().optional(),
39
+ undeliverableRate: core.serialization.number().optional(),
40
+ });
@@ -0,0 +1,11 @@
1
+ import type * as Sequenzy from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { SubscriberImportListQualityIssuesItemKind } from "./SubscriberImportListQualityIssuesItemKind.js";
5
+ export declare const SubscriberImportListQualityIssuesItem: core.serialization.ObjectSchema<serializers.SubscriberImportListQualityIssuesItem.Raw, Sequenzy.SubscriberImportListQualityIssuesItem>;
6
+ export declare namespace SubscriberImportListQualityIssuesItem {
7
+ interface Raw {
8
+ kind: SubscriberImportListQualityIssuesItemKind.Raw;
9
+ rate: number;
10
+ }
11
+ }