sequenzy 2.1.12 → 2.1.16

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 (107) hide show
  1. package/dist/cjs/api/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivity.d.ts +1 -1
  2. package/dist/cjs/api/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivityBounceType.d.ts +3 -1
  3. package/dist/cjs/api/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivityBounceType.js +3 -1
  4. package/dist/cjs/api/resources/emailSends/client/requests/ListEmailSendsRequest.d.ts +1 -0
  5. package/dist/cjs/api/resources/emailSends/types/ListEmailSendsRequestBounceType.d.ts +2 -0
  6. package/dist/cjs/api/resources/emailSends/types/ListEmailSendsRequestBounceType.js +2 -0
  7. package/dist/cjs/api/resources/integrations/client/Client.d.ts +3 -2
  8. package/dist/cjs/api/resources/integrations/client/Client.js +5 -2
  9. package/dist/cjs/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +4 -4
  10. package/dist/cjs/api/resources/integrations/client/requests/DisconnectIntegrationsRequest.d.ts +1 -1
  11. package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -0
  12. package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
  13. package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsRequestSettings.d.ts +3 -1
  14. package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsResponse.d.ts +3 -1
  15. package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsResponsePublication.d.ts +7 -0
  16. package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsResponsePublication.js +3 -0
  17. package/dist/cjs/api/resources/integrations/types/DisconnectIntegrationsResponse.d.ts +1 -1
  18. package/dist/cjs/api/resources/integrations/types/DisconnectIntegrationsResponseProvider.d.ts +1 -0
  19. package/dist/cjs/api/resources/integrations/types/DisconnectIntegrationsResponseProvider.js +1 -0
  20. package/dist/cjs/api/resources/integrations/types/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/integrations/types/index.js +1 -0
  22. package/dist/cjs/api/resources/websites/client/Client.d.ts +1 -1
  23. package/dist/cjs/api/resources/websites/client/Client.js +1 -1
  24. package/dist/cjs/api/types/BadRequestErrorBody.d.ts +3 -5
  25. package/dist/cjs/api/types/BadRequestErrorBodyPublicationsItem.d.ts +4 -0
  26. package/dist/cjs/api/types/BadRequestErrorBodyPublicationsItem.js +3 -0
  27. package/dist/cjs/api/types/TransactionalMetricsResponseBounceBreakdown.d.ts +3 -0
  28. package/dist/cjs/api/types/index.d.ts +1 -0
  29. package/dist/cjs/api/types/index.js +1 -0
  30. package/dist/cjs/serialization/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivityBounceType.d.ts +1 -1
  31. package/dist/cjs/serialization/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivityBounceType.js +1 -1
  32. package/dist/cjs/serialization/resources/emailSends/types/ListEmailSendsRequestBounceType.d.ts +1 -1
  33. package/dist/cjs/serialization/resources/emailSends/types/ListEmailSendsRequestBounceType.js +1 -1
  34. package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -1
  35. package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
  36. package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsRequestSettings.d.ts +1 -0
  37. package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsRequestSettings.js +1 -0
  38. package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsResponse.d.ts +2 -0
  39. package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsResponse.js +2 -0
  40. package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsResponsePublication.d.ts +10 -0
  41. package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsResponsePublication.js +32 -0
  42. package/dist/cjs/serialization/resources/integrations/types/DisconnectIntegrationsResponseProvider.d.ts +1 -1
  43. package/dist/cjs/serialization/resources/integrations/types/DisconnectIntegrationsResponseProvider.js +1 -1
  44. package/dist/cjs/serialization/resources/integrations/types/index.d.ts +1 -0
  45. package/dist/cjs/serialization/resources/integrations/types/index.js +1 -0
  46. package/dist/cjs/serialization/types/BadRequestErrorBody.d.ts +4 -6
  47. package/dist/cjs/serialization/types/BadRequestErrorBody.js +7 -7
  48. package/dist/cjs/serialization/types/BadRequestErrorBodyPublicationsItem.d.ts +10 -0
  49. package/dist/cjs/serialization/types/BadRequestErrorBodyPublicationsItem.js +32 -0
  50. package/dist/cjs/serialization/types/TransactionalMetricsResponseBounceBreakdown.d.ts +1 -0
  51. package/dist/cjs/serialization/types/TransactionalMetricsResponseBounceBreakdown.js +1 -0
  52. package/dist/cjs/serialization/types/index.d.ts +1 -0
  53. package/dist/cjs/serialization/types/index.js +1 -0
  54. package/dist/esm/api/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivity.d.ts +1 -1
  55. package/dist/esm/api/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivityBounceType.d.ts +3 -1
  56. package/dist/esm/api/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivityBounceType.js +3 -1
  57. package/dist/esm/api/resources/emailSends/client/requests/ListEmailSendsRequest.d.ts +1 -0
  58. package/dist/esm/api/resources/emailSends/types/ListEmailSendsRequestBounceType.d.ts +2 -0
  59. package/dist/esm/api/resources/emailSends/types/ListEmailSendsRequestBounceType.js +2 -0
  60. package/dist/esm/api/resources/integrations/client/Client.d.ts +3 -2
  61. package/dist/esm/api/resources/integrations/client/Client.js +5 -2
  62. package/dist/esm/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +4 -4
  63. package/dist/esm/api/resources/integrations/client/requests/DisconnectIntegrationsRequest.d.ts +1 -1
  64. package/dist/esm/api/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -0
  65. package/dist/esm/api/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
  66. package/dist/esm/api/resources/integrations/types/ConnectIntegrationsRequestSettings.d.ts +3 -1
  67. package/dist/esm/api/resources/integrations/types/ConnectIntegrationsResponse.d.ts +3 -1
  68. package/dist/esm/api/resources/integrations/types/ConnectIntegrationsResponsePublication.d.ts +7 -0
  69. package/dist/esm/api/resources/integrations/types/ConnectIntegrationsResponsePublication.js +2 -0
  70. package/dist/esm/api/resources/integrations/types/DisconnectIntegrationsResponse.d.ts +1 -1
  71. package/dist/esm/api/resources/integrations/types/DisconnectIntegrationsResponseProvider.d.ts +1 -0
  72. package/dist/esm/api/resources/integrations/types/DisconnectIntegrationsResponseProvider.js +1 -0
  73. package/dist/esm/api/resources/integrations/types/index.d.ts +1 -0
  74. package/dist/esm/api/resources/integrations/types/index.js +1 -0
  75. package/dist/esm/api/resources/websites/client/Client.d.ts +1 -1
  76. package/dist/esm/api/resources/websites/client/Client.js +1 -1
  77. package/dist/esm/api/types/BadRequestErrorBody.d.ts +3 -5
  78. package/dist/esm/api/types/BadRequestErrorBodyPublicationsItem.d.ts +4 -0
  79. package/dist/esm/api/types/BadRequestErrorBodyPublicationsItem.js +2 -0
  80. package/dist/esm/api/types/TransactionalMetricsResponseBounceBreakdown.d.ts +3 -0
  81. package/dist/esm/api/types/index.d.ts +1 -0
  82. package/dist/esm/api/types/index.js +1 -0
  83. package/dist/esm/serialization/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivityBounceType.d.ts +1 -1
  84. package/dist/esm/serialization/resources/campaigns/types/CreateForAudienceCampaignsRequestSelectionActivityBounceType.js +1 -1
  85. package/dist/esm/serialization/resources/emailSends/types/ListEmailSendsRequestBounceType.d.ts +1 -1
  86. package/dist/esm/serialization/resources/emailSends/types/ListEmailSendsRequestBounceType.js +1 -1
  87. package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -1
  88. package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
  89. package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsRequestSettings.d.ts +1 -0
  90. package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsRequestSettings.js +1 -0
  91. package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsResponse.d.ts +2 -0
  92. package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsResponse.js +2 -0
  93. package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsResponsePublication.d.ts +10 -0
  94. package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsResponsePublication.js +6 -0
  95. package/dist/esm/serialization/resources/integrations/types/DisconnectIntegrationsResponseProvider.d.ts +1 -1
  96. package/dist/esm/serialization/resources/integrations/types/DisconnectIntegrationsResponseProvider.js +1 -1
  97. package/dist/esm/serialization/resources/integrations/types/index.d.ts +1 -0
  98. package/dist/esm/serialization/resources/integrations/types/index.js +1 -0
  99. package/dist/esm/serialization/types/BadRequestErrorBody.d.ts +4 -6
  100. package/dist/esm/serialization/types/BadRequestErrorBody.js +7 -7
  101. package/dist/esm/serialization/types/BadRequestErrorBodyPublicationsItem.d.ts +10 -0
  102. package/dist/esm/serialization/types/BadRequestErrorBodyPublicationsItem.js +6 -0
  103. package/dist/esm/serialization/types/TransactionalMetricsResponseBounceBreakdown.d.ts +1 -0
  104. package/dist/esm/serialization/types/TransactionalMetricsResponseBounceBreakdown.js +1 -0
  105. package/dist/esm/serialization/types/index.d.ts +1 -0
  106. package/dist/esm/serialization/types/index.js +1 -0
  107. package/package.json +1 -1
@@ -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.BadRequestErrorBodyPublicationsItem = void 0;
28
+ const core = __importStar(require("../../core/index.js"));
29
+ exports.BadRequestErrorBodyPublicationsItem = core.serialization.object({
30
+ id: core.serialization.string().optional(),
31
+ name: core.serialization.string().optional(),
32
+ });
@@ -5,6 +5,7 @@ import { TransactionalMetricsResponseBounceBreakdownSubtypesItem } from "./Trans
5
5
  export declare const TransactionalMetricsResponseBounceBreakdown: core.serialization.ObjectSchema<serializers.TransactionalMetricsResponseBounceBreakdown.Raw, Sequenzy.TransactionalMetricsResponseBounceBreakdown>;
6
6
  export declare namespace TransactionalMetricsResponseBounceBreakdown {
7
7
  interface Raw {
8
+ blocked?: number | null;
8
9
  permanent?: number | null;
9
10
  subtypes?: TransactionalMetricsResponseBounceBreakdownSubtypesItem.Raw[] | null;
10
11
  transient?: number | null;
@@ -28,6 +28,7 @@ exports.TransactionalMetricsResponseBounceBreakdown = void 0;
28
28
  const core = __importStar(require("../../core/index.js"));
29
29
  const TransactionalMetricsResponseBounceBreakdownSubtypesItem_js_1 = require("./TransactionalMetricsResponseBounceBreakdownSubtypesItem.js");
30
30
  exports.TransactionalMetricsResponseBounceBreakdown = core.serialization.object({
31
+ blocked: core.serialization.number().optional(),
31
32
  permanent: core.serialization.number().optional(),
32
33
  subtypes: core.serialization.list(TransactionalMetricsResponseBounceBreakdownSubtypesItem_js_1.TransactionalMetricsResponseBounceBreakdownSubtypesItem).optional(),
33
34
  transient: core.serialization.number().optional(),
@@ -68,6 +68,7 @@ export * from "./BadRequestErrorBodyCode.js";
68
68
  export * from "./BadRequestErrorBodyDetails.js";
69
69
  export * from "./BadRequestErrorBodyDetailsLimit.js";
70
70
  export * from "./BadRequestErrorBodyError.js";
71
+ export * from "./BadRequestErrorBodyPublicationsItem.js";
71
72
  export * from "./BlockFieldWarnings.js";
72
73
  export * from "./BulkSubscriberTagRequest.js";
73
74
  export * from "./BulkSubscriberTagResponse.js";
@@ -84,6 +84,7 @@ __exportStar(require("./BadRequestErrorBodyCode.js"), exports);
84
84
  __exportStar(require("./BadRequestErrorBodyDetails.js"), exports);
85
85
  __exportStar(require("./BadRequestErrorBodyDetailsLimit.js"), exports);
86
86
  __exportStar(require("./BadRequestErrorBodyError.js"), exports);
87
+ __exportStar(require("./BadRequestErrorBodyPublicationsItem.js"), exports);
87
88
  __exportStar(require("./BlockFieldWarnings.js"), exports);
88
89
  __exportStar(require("./BulkSubscriberTagRequest.js"), exports);
89
90
  __exportStar(require("./BulkSubscriberTagResponse.js"), exports);
@@ -8,7 +8,7 @@ export interface CreateForAudienceCampaignsRequestSelectionActivity {
8
8
  automationNodeId?: string;
9
9
  /** Only for bounce activity. */
10
10
  bounceSubType?: string;
11
- /** Only for bounce activity. */
11
+ /** Only for bounce activity. Transient is every temporary bounce; Blocked is the part the receiver refused over content, policy or reputation, and Soft is the rest. */
12
12
  bounceType?: Sequenzy.CreateForAudienceCampaignsRequestSelectionActivityBounceType;
13
13
  campaignId?: string;
14
14
  eventType: Sequenzy.CreateForAudienceCampaignsRequestSelectionActivityEventType;
@@ -1,6 +1,8 @@
1
- /** Only for bounce activity. */
1
+ /** Only for bounce activity. Transient is every temporary bounce; Blocked is the part the receiver refused over content, policy or reputation, and Soft is the rest. */
2
2
  export declare const CreateForAudienceCampaignsRequestSelectionActivityBounceType: {
3
3
  readonly Permanent: "Permanent";
4
4
  readonly Transient: "Transient";
5
+ readonly Soft: "Soft";
6
+ readonly Blocked: "Blocked";
5
7
  };
6
8
  export type CreateForAudienceCampaignsRequestSelectionActivityBounceType = (typeof CreateForAudienceCampaignsRequestSelectionActivityBounceType)[keyof typeof CreateForAudienceCampaignsRequestSelectionActivityBounceType];
@@ -1,6 +1,8 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** Only for bounce activity. */
2
+ /** Only for bounce activity. Transient is every temporary bounce; Blocked is the part the receiver refused over content, policy or reputation, and Soft is the rest. */
3
3
  export const CreateForAudienceCampaignsRequestSelectionActivityBounceType = {
4
4
  Permanent: "Permanent",
5
5
  Transient: "Transient",
6
+ Soft: "Soft",
7
+ Blocked: "Blocked",
6
8
  };
@@ -7,6 +7,7 @@ export interface ListEmailSendsRequest {
7
7
  automationId?: string;
8
8
  /** Filter to one email step of a sequence. Take the node ID from the `steps` array of the sequence metrics endpoint. Combined with `automationId` the two intersect. */
9
9
  automationNodeId?: string;
10
+ /** Transient is every temporary bounce. Blocked is the part the receiving server refused over content, policy or reputation, and Soft is the rest. */
10
11
  bounceType?: Sequenzy.ListEmailSendsRequestBounceType;
11
12
  campaignId?: string;
12
13
  days?: number;
@@ -1,5 +1,7 @@
1
1
  export declare const ListEmailSendsRequestBounceType: {
2
2
  readonly Permanent: "Permanent";
3
3
  readonly Transient: "Transient";
4
+ readonly Soft: "Soft";
5
+ readonly Blocked: "Blocked";
4
6
  };
5
7
  export type ListEmailSendsRequestBounceType = (typeof ListEmailSendsRequestBounceType)[keyof typeof ListEmailSendsRequestBounceType];
@@ -2,4 +2,6 @@
2
2
  export const ListEmailSendsRequestBounceType = {
3
3
  Permanent: "Permanent",
4
4
  Transient: "Transient",
5
+ Soft: "Soft",
6
+ Blocked: "Blocked",
5
7
  };
@@ -30,7 +30,7 @@ export declare class IntegrationsClient {
30
30
  activatePixel(request: Sequenzy.ActivatePixelIntegrationsRequest, requestOptions?: IntegrationsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ActivatePixelIntegrationsResponse>;
31
31
  private __activatePixel;
32
32
  /**
33
- * Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
33
+ * Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, attio, or sparkloop. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. SparkLoop registers its webhook in SparkLoop during connect and receives partner referrals for one publication (providerAccountId, required only when the account has several). Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
34
34
  *
35
35
  * @param {Sequenzy.ConnectIntegrationsRequest} request
36
36
  * @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -39,6 +39,7 @@ export declare class IntegrationsClient {
39
39
  * @throws {@link Sequenzy.UnauthorizedError}
40
40
  * @throws {@link Sequenzy.ForbiddenError}
41
41
  * @throws {@link Sequenzy.ConflictError}
42
+ * @throws {@link Sequenzy.ServiceUnavailableError}
42
43
  * @throws {@link errors.SequenzyError}
43
44
  * @throws {@link errors.SequenzyTimeoutError}
44
45
  *
@@ -50,7 +51,7 @@ export declare class IntegrationsClient {
50
51
  connect(request: Sequenzy.ConnectIntegrationsRequest, requestOptions?: IntegrationsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ConnectIntegrationsResponse>;
51
52
  private __connect;
52
53
  /**
53
- * Disconnects Lemon Squeezy locally before removing its managed webhook. Manual webhooks remain under your control. Requires integrations:manage; personal keys require owner or admin access. A cleanupWarning means ingestion is stopped but provider cleanup failed; repeat this request to retry cleanup, including when the integration is already inactive. Other providers require the dashboard. Existing subscribers and history are retained. No request body is required.
54
+ * Disconnects Lemon Squeezy or SparkLoop locally before removing its managed webhook. Manual webhooks remain under your control. Requires integrations:manage; personal keys require owner or admin access. A cleanupWarning means ingestion is stopped but provider cleanup failed. For Lemon Squeezy, repeat this request to retry cleanup, including when the integration is already inactive. SparkLoop clears its stored credentials, so delete a leftover webhook in SparkLoop. Other providers require the dashboard. Existing subscribers and history are retained. No request body is required.
54
55
  *
55
56
  * @param {Sequenzy.DisconnectIntegrationsRequest} request
56
57
  * @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -80,7 +80,7 @@ export class IntegrationsClient {
80
80
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/integrations/{id}/pixel");
81
81
  }
82
82
  /**
83
- * Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
83
+ * Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, attio, or sparkloop. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. SparkLoop registers its webhook in SparkLoop during connect and receives partner referrals for one publication (providerAccountId, required only when the account has several). Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
84
84
  *
85
85
  * @param {Sequenzy.ConnectIntegrationsRequest} request
86
86
  * @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -89,6 +89,7 @@ export class IntegrationsClient {
89
89
  * @throws {@link Sequenzy.UnauthorizedError}
90
90
  * @throws {@link Sequenzy.ForbiddenError}
91
91
  * @throws {@link Sequenzy.ConflictError}
92
+ * @throws {@link Sequenzy.ServiceUnavailableError}
92
93
  * @throws {@link errors.SequenzyError}
93
94
  * @throws {@link errors.SequenzyTimeoutError}
94
95
  *
@@ -144,6 +145,8 @@ export class IntegrationsClient {
144
145
  throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
145
146
  case 409:
146
147
  throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
148
+ case 503:
149
+ throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
147
150
  default:
148
151
  throw new errors.SequenzyError({
149
152
  statusCode: _response.error.statusCode,
@@ -155,7 +158,7 @@ export class IntegrationsClient {
155
158
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/integrations/connect");
156
159
  }
157
160
  /**
158
- * Disconnects Lemon Squeezy locally before removing its managed webhook. Manual webhooks remain under your control. Requires integrations:manage; personal keys require owner or admin access. A cleanupWarning means ingestion is stopped but provider cleanup failed; repeat this request to retry cleanup, including when the integration is already inactive. Other providers require the dashboard. Existing subscribers and history are retained. No request body is required.
161
+ * Disconnects Lemon Squeezy or SparkLoop locally before removing its managed webhook. Manual webhooks remain under your control. Requires integrations:manage; personal keys require owner or admin access. A cleanupWarning means ingestion is stopped but provider cleanup failed. For Lemon Squeezy, repeat this request to retry cleanup, including when the integration is already inactive. SparkLoop clears its stored credentials, so delete a leftover webhook in SparkLoop. Other providers require the dashboard. Existing subscribers and history are retained. No request body is required.
159
162
  *
160
163
  * @param {Sequenzy.DisconnectIntegrationsRequest} request
161
164
  * @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -6,16 +6,16 @@ import type * as Sequenzy from "../../../../index.js";
6
6
  * }
7
7
  */
8
8
  export interface ConnectIntegrationsRequest {
9
- /** Provider API key. Required for polar, paddle, dodo, lemon_squeezy, whop, revenuecat, creem, chargebee, affonso, and attio. RevenueCat uses a secret REST API v2 key with Projects read and Customers read permissions. Attio uses the workspace access token. */
9
+ /** Provider API key. Required for polar, paddle, dodo, lemon_squeezy, whop, revenuecat, creem, chargebee, affonso, attio, and sparkloop. RevenueCat uses a secret REST API v2 key with Projects read and Customers read permissions. Attio uses the workspace access token. SparkLoop uses the API key from Settings → Integrations. */
10
10
  apiKey?: string;
11
11
  /** PostHog and Segment only. Imports event history after connecting: PostHog reads the project archive (projectId + personalApiKey); Segment walks your existing contacts' Unify profiles (spaceId + profileApiToken) and covers at most the last 14 days the Profile API serves, because Segment has no bulk event export. */
12
12
  historyImport?: Sequenzy.ConnectIntegrationsRequestHistoryImport;
13
13
  /** Provider to connect. */
14
14
  provider: Sequenzy.ConnectIntegrationsRequestProvider;
15
- /** Provider account id: Paddle seller ID, Dodo business ID, Lemon Squeezy numeric store ID, Whop company ID, Creem store ID, or Chargebee site name. Polar resolves it from the API key. RevenueCat resolves its project ID from the API key; pass it only when the key can access several projects. Superwall does not use one. */
15
+ /** Provider account id: Paddle seller ID, Dodo business ID, Lemon Squeezy numeric store ID, Whop company ID, Creem store ID, or Chargebee site name. Polar resolves it from the API key. RevenueCat resolves its project ID from the API key; pass it only when the key can access several projects. Superwall does not use one. SparkLoop: the publication ID (pub_...), required only when the account has several publications. */
16
16
  providerAccountId?: string;
17
- /** PostHog and Segment: event delivery scope. Attio: listMap (Sequenzy list id to Attio list id or slug) and syncCompanyFromDomain. */
17
+ /** PostHog and Segment: event delivery scope. Attio: listMap (Sequenzy list id to Attio list id or slug) and syncCompanyFromDomain. SparkLoop: listIds for new referrals. */
18
18
  settings?: Sequenzy.ConnectIntegrationsRequestSettings;
19
- /** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and not used by attio; required for other providers. Lemon Squeezy manual secrets use 16-40 characters. For Chargebee, pass username:password. For RevenueCat, pass at least 16 characters: the authorization header value set on the RevenueCat webhook, or its HMAC signing secret. For Superwall, pass the webhook's whsec_ signing secret, the only credential it needs. For Segment, use 16-153 UTF-8 bytes. */
19
+ /** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and not used by attio; required for other providers. Lemon Squeezy manual secrets use 16-40 characters. For Chargebee, pass username:password. For RevenueCat, pass at least 16 characters: the authorization header value set on the RevenueCat webhook, or its HMAC signing secret. For Superwall, pass the webhook's whsec_ signing secret, the only credential it needs. For Segment, use 16-153 UTF-8 bytes. For SparkLoop, pass the webhook authentication token from SparkLoop Settings → Integrations (sent as the SparkLoop-Token header). */
20
20
  webhookSecret?: string;
21
21
  }
@@ -5,6 +5,6 @@
5
5
  * }
6
6
  */
7
7
  export interface DisconnectIntegrationsRequest {
8
- /** Lemon Squeezy integration ID. */
8
+ /** Lemon Squeezy or SparkLoop integration ID. */
9
9
  id: string;
10
10
  }
@@ -14,5 +14,6 @@ export declare const ConnectIntegrationsRequestProvider: {
14
14
  readonly Segment: "segment";
15
15
  readonly Affonso: "affonso";
16
16
  readonly Attio: "attio";
17
+ readonly Sparkloop: "sparkloop";
17
18
  };
18
19
  export type ConnectIntegrationsRequestProvider = (typeof ConnectIntegrationsRequestProvider)[keyof typeof ConnectIntegrationsRequestProvider];
@@ -15,4 +15,5 @@ export const ConnectIntegrationsRequestProvider = {
15
15
  Segment: "segment",
16
16
  Affonso: "affonso",
17
17
  Attio: "attio",
18
+ Sparkloop: "sparkloop",
18
19
  };
@@ -1,8 +1,10 @@
1
1
  /**
2
- * PostHog and Segment: event delivery scope. Attio: listMap (Sequenzy list id to Attio list id or slug) and syncCompanyFromDomain.
2
+ * PostHog and Segment: event delivery scope. Attio: listMap (Sequenzy list id to Attio list id or slug) and syncCompanyFromDomain. SparkLoop: listIds for new referrals.
3
3
  */
4
4
  export interface ConnectIntegrationsRequestSettings {
5
5
  eventAllowlist?: string[];
6
+ /** SparkLoop only. Lists new referrals join. Omit to keep the current choice (the workspace default lists on a first connect), null to reset to the workspace default lists, or an empty array for none. */
7
+ listIds?: string[] | null;
6
8
  /** Attio only. Sequenzy list id to Attio list UUID or slug. */
7
9
  listMap?: Record<string, string>;
8
10
  syncAllEvents?: boolean;
@@ -5,6 +5,8 @@ export interface ConnectIntegrationsResponse {
5
5
  /** PostHog and Segment only. Outcome of the optional history import request. */
6
6
  history?: Sequenzy.ConnectIntegrationsResponseHistory;
7
7
  integration?: Sequenzy.IntegrationSummary;
8
+ /** SparkLoop only. The publication whose partner referrals this workspace receives. */
9
+ publication?: Sequenzy.ConnectIntegrationsResponsePublication;
8
10
  /** Payment providers only. Whether the initial revenue backfill was queued. */
9
11
  revenueSyncQueued?: boolean;
10
12
  success?: boolean;
@@ -12,6 +14,6 @@ export interface ConnectIntegrationsResponse {
12
14
  testMode?: boolean;
13
15
  /** Lemon Squeezy only. Whether Sequenzy manages the provider webhook. */
14
16
  webhookProvisioning?: Sequenzy.ConnectIntegrationsResponseWebhookProvisioning;
15
- /** Provider webhook URL. Lemon Squeezy managed mode installs it automatically; manual mode uses the supplied secret. Empty for Attio. */
17
+ /** Provider webhook URL. Lemon Squeezy managed mode installs it automatically; manual mode uses the supplied secret. SparkLoop's is already registered in SparkLoop. Empty for Attio. */
16
18
  webhookUrl?: string;
17
19
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * SparkLoop only. The publication whose partner referrals this workspace receives.
3
+ */
4
+ export interface ConnectIntegrationsResponsePublication {
5
+ id?: string;
6
+ name?: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type * as Sequenzy from "../../../index.js";
2
2
  export interface DisconnectIntegrationsResponse {
3
- /** Null when cleanup succeeded or no managed webhook exists. Otherwise repeat disconnect to retry provider cleanup. */
3
+ /** Null when cleanup succeeded or no managed webhook exists. Otherwise repeat disconnect to retry Lemon Squeezy cleanup, or delete the SparkLoop webhook in SparkLoop. */
4
4
  cleanupWarning: string | null;
5
5
  integrationId: string;
6
6
  message: string;
@@ -1,4 +1,5 @@
1
1
  export declare const DisconnectIntegrationsResponseProvider: {
2
2
  readonly LemonSqueezy: "lemon_squeezy";
3
+ readonly Sparkloop: "sparkloop";
3
4
  };
4
5
  export type DisconnectIntegrationsResponseProvider = (typeof DisconnectIntegrationsResponseProvider)[keyof typeof DisconnectIntegrationsResponseProvider];
@@ -1,4 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  export const DisconnectIntegrationsResponseProvider = {
3
3
  LemonSqueezy: "lemon_squeezy",
4
+ Sparkloop: "sparkloop",
4
5
  };
@@ -5,6 +5,7 @@ export * from "./ConnectIntegrationsRequestProvider.js";
5
5
  export * from "./ConnectIntegrationsRequestSettings.js";
6
6
  export * from "./ConnectIntegrationsResponse.js";
7
7
  export * from "./ConnectIntegrationsResponseHistory.js";
8
+ export * from "./ConnectIntegrationsResponsePublication.js";
8
9
  export * from "./ConnectIntegrationsResponseWebhookProvisioning.js";
9
10
  export * from "./DisconnectIntegrationsResponse.js";
10
11
  export * from "./DisconnectIntegrationsResponseProvider.js";
@@ -5,6 +5,7 @@ export * from "./ConnectIntegrationsRequestProvider.js";
5
5
  export * from "./ConnectIntegrationsRequestSettings.js";
6
6
  export * from "./ConnectIntegrationsResponse.js";
7
7
  export * from "./ConnectIntegrationsResponseHistory.js";
8
+ export * from "./ConnectIntegrationsResponsePublication.js";
8
9
  export * from "./ConnectIntegrationsResponseWebhookProvisioning.js";
9
10
  export * from "./DisconnectIntegrationsResponse.js";
10
11
  export * from "./DisconnectIntegrationsResponseProvider.js";
@@ -93,7 +93,7 @@ export declare class WebsitesClient {
93
93
  list(requestOptions?: WebsitesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ListWebsitesResponse>;
94
94
  private __list;
95
95
  /**
96
- * Starts moving a verified sending domain onto the current per-domain CNAME record set without removing it. The domain keeps sending on its current records while the upgrade is in progress, and sender profiles, sequences and tracking stay as they are. Publish the CNAMEs in website.dnsUpgrade.records next to your current records; remove nothing yet. About an hour after the required ones (DKIM and the return path) are visible on public DNS (Google and Cloudflare resolvers), the domain switches by itself; the wait lets cached "does not exist" answers expire. Sequenzy prepares the sending setup of the domain separately and switches only once it is confirmed, so sending is normally not interrupted and no emails are held. If that is not possible for a domain, emails sent through Amazon SES can be held for a few minutes while SES confirms the new setup, then they go out. Some domains get a new DKIM key during the upgrade; you still publish the same four CNAMEs. An older SES-only domain needs a working DMARC record first, otherwise the request returns 400. Call POST /websites/{domain}/verify after publishing to check now; it does not skip the wait. After the switch, website.dnsUpgrade lists the old records to delete after deleteOldRecordsAfter; for an older SES-only domain these include the old return path records (MX and TXT at send.<domain>) and the DKIM TXT, and DMARC stays. Requires websites:write.
96
+ * Starts moving a verified sending domain onto the current per-domain CNAME record set without removing it. The domain keeps sending on its current records while the upgrade is in progress, and sender profiles, sequences and tracking stay as they are. Publish the CNAMEs in website.dnsUpgrade.records next to your current records; remove nothing yet. About an hour after the required ones (DKIM and the return path) are visible on public DNS (Google and Cloudflare resolvers), the domain switches by itself; the wait lets cached "does not exist" answers expire. Sequenzy prepares the sending setup of the domain separately and switches only once it is confirmed, so sending is normally not interrupted and no emails are held. If that is not possible for a domain, emails sent through Amazon SES can be held for a few minutes while SES confirms the new setup, then they go out. The domain also gets a new 2048-bit DKIM key; you still publish the same four CNAMEs. An older SES-only domain needs a working DMARC record first, otherwise the request returns 400. Call POST /websites/{domain}/verify after publishing to check now; it does not skip the wait. After the switch, website.dnsUpgrade lists the old records to delete after deleteOldRecordsAfter; for an older SES-only domain these include the old return path records (MX and TXT at send.<domain>) and the DKIM TXT, and DMARC stays. Requires websites:write.
97
97
  *
98
98
  * @param {Sequenzy.StartSendingDomainDnsUpgradeRequest} request
99
99
  * @param {WebsitesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -309,7 +309,7 @@ export class WebsitesClient {
309
309
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/websites");
310
310
  }
311
311
  /**
312
- * Starts moving a verified sending domain onto the current per-domain CNAME record set without removing it. The domain keeps sending on its current records while the upgrade is in progress, and sender profiles, sequences and tracking stay as they are. Publish the CNAMEs in website.dnsUpgrade.records next to your current records; remove nothing yet. About an hour after the required ones (DKIM and the return path) are visible on public DNS (Google and Cloudflare resolvers), the domain switches by itself; the wait lets cached "does not exist" answers expire. Sequenzy prepares the sending setup of the domain separately and switches only once it is confirmed, so sending is normally not interrupted and no emails are held. If that is not possible for a domain, emails sent through Amazon SES can be held for a few minutes while SES confirms the new setup, then they go out. Some domains get a new DKIM key during the upgrade; you still publish the same four CNAMEs. An older SES-only domain needs a working DMARC record first, otherwise the request returns 400. Call POST /websites/{domain}/verify after publishing to check now; it does not skip the wait. After the switch, website.dnsUpgrade lists the old records to delete after deleteOldRecordsAfter; for an older SES-only domain these include the old return path records (MX and TXT at send.<domain>) and the DKIM TXT, and DMARC stays. Requires websites:write.
312
+ * Starts moving a verified sending domain onto the current per-domain CNAME record set without removing it. The domain keeps sending on its current records while the upgrade is in progress, and sender profiles, sequences and tracking stay as they are. Publish the CNAMEs in website.dnsUpgrade.records next to your current records; remove nothing yet. About an hour after the required ones (DKIM and the return path) are visible on public DNS (Google and Cloudflare resolvers), the domain switches by itself; the wait lets cached "does not exist" answers expire. Sequenzy prepares the sending setup of the domain separately and switches only once it is confirmed, so sending is normally not interrupted and no emails are held. If that is not possible for a domain, emails sent through Amazon SES can be held for a few minutes while SES confirms the new setup, then they go out. The domain also gets a new 2048-bit DKIM key; you still publish the same four CNAMEs. An older SES-only domain needs a working DMARC record first, otherwise the request returns 400. Call POST /websites/{domain}/verify after publishing to check now; it does not skip the wait. After the switch, website.dnsUpgrade lists the old records to delete after deleteOldRecordsAfter; for an older SES-only domain these include the old return path records (MX and TXT at send.<domain>) and the DKIM TXT, and DMARC stays. Requires websites:write.
313
313
  *
314
314
  * @param {Sequenzy.StartSendingDomainDnsUpgradeRequest} request
315
315
  * @param {WebsitesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,7 +1,5 @@
1
1
  import type * as Sequenzy from "../index.js";
2
- export interface BadRequestErrorBody {
3
- code?: string;
4
- error?: string;
5
- issues?: Sequenzy.DesignMdIssue[];
6
- success?: boolean;
2
+ export interface BadRequestErrorBody extends Sequenzy.Error_ {
3
+ /** SparkLoop only, with code sparkloop_publication_required. The publications to pass as providerAccountId. */
4
+ publications?: Sequenzy.BadRequestErrorBodyPublicationsItem[];
7
5
  }
@@ -0,0 +1,4 @@
1
+ export interface BadRequestErrorBodyPublicationsItem {
2
+ id?: string;
3
+ name?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,7 +1,10 @@
1
1
  import type * as Sequenzy from "../index.js";
2
2
  export interface TransactionalMetricsResponseBounceBreakdown {
3
+ /** Temporary bounces the receiving server refused over content, policy, reputation or sender authentication (subtypes ContentRejected, AttachmentRejected, ReputationBlocked, NonRecipientFailure and AppleRelayUnregistered). A subset of transient; soft bounces are transient minus blocked. Blocked bounces never suppress the address. */
4
+ blocked?: number;
3
5
  permanent?: number;
4
6
  subtypes?: Sequenzy.TransactionalMetricsResponseBounceBreakdownSubtypesItem[];
7
+ /** Every temporary bounce, including blocked ones. */
5
8
  transient?: number;
6
9
  undetermined?: number;
7
10
  }
@@ -68,6 +68,7 @@ export * from "./BadRequestErrorBodyCode.js";
68
68
  export * from "./BadRequestErrorBodyDetails.js";
69
69
  export * from "./BadRequestErrorBodyDetailsLimit.js";
70
70
  export * from "./BadRequestErrorBodyError.js";
71
+ export * from "./BadRequestErrorBodyPublicationsItem.js";
71
72
  export * from "./BlockFieldWarnings.js";
72
73
  export * from "./BulkSubscriberTagRequest.js";
73
74
  export * from "./BulkSubscriberTagResponse.js";
@@ -68,6 +68,7 @@ export * from "./BadRequestErrorBodyCode.js";
68
68
  export * from "./BadRequestErrorBodyDetails.js";
69
69
  export * from "./BadRequestErrorBodyDetailsLimit.js";
70
70
  export * from "./BadRequestErrorBodyError.js";
71
+ export * from "./BadRequestErrorBodyPublicationsItem.js";
71
72
  export * from "./BlockFieldWarnings.js";
72
73
  export * from "./BulkSubscriberTagRequest.js";
73
74
  export * from "./BulkSubscriberTagResponse.js";
@@ -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 CreateForAudienceCampaignsRequestSelectionActivityBounceType: core.serialization.Schema<serializers.CreateForAudienceCampaignsRequestSelectionActivityBounceType.Raw, Sequenzy.CreateForAudienceCampaignsRequestSelectionActivityBounceType>;
5
5
  export declare namespace CreateForAudienceCampaignsRequestSelectionActivityBounceType {
6
- type Raw = "Permanent" | "Transient";
6
+ type Raw = "Permanent" | "Transient" | "Soft" | "Blocked";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.js";
3
- export const CreateForAudienceCampaignsRequestSelectionActivityBounceType = core.serialization.enum_(["Permanent", "Transient"]);
3
+ export const CreateForAudienceCampaignsRequestSelectionActivityBounceType = core.serialization.enum_(["Permanent", "Transient", "Soft", "Blocked"]);
@@ -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 ListEmailSendsRequestBounceType: core.serialization.Schema<serializers.ListEmailSendsRequestBounceType.Raw, Sequenzy.ListEmailSendsRequestBounceType>;
5
5
  export declare namespace ListEmailSendsRequestBounceType {
6
- type Raw = "Permanent" | "Transient";
6
+ type Raw = "Permanent" | "Transient" | "Soft" | "Blocked";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.js";
3
- export const ListEmailSendsRequestBounceType = core.serialization.enum_(["Permanent", "Transient"]);
3
+ export const ListEmailSendsRequestBounceType = core.serialization.enum_(["Permanent", "Transient", "Soft", "Blocked"]);
@@ -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 ConnectIntegrationsRequestProvider: core.serialization.Schema<serializers.ConnectIntegrationsRequestProvider.Raw, Sequenzy.ConnectIntegrationsRequestProvider>;
5
5
  export declare namespace ConnectIntegrationsRequestProvider {
6
- type Raw = "polar" | "paddle" | "dodo" | "lemon_squeezy" | "whop" | "revenuecat" | "superwall" | "creem" | "chargebee" | "clerk" | "posthog" | "segment" | "affonso" | "attio";
6
+ type Raw = "polar" | "paddle" | "dodo" | "lemon_squeezy" | "whop" | "revenuecat" | "superwall" | "creem" | "chargebee" | "clerk" | "posthog" | "segment" | "affonso" | "attio" | "sparkloop";
7
7
  }
@@ -15,4 +15,5 @@ export const ConnectIntegrationsRequestProvider = core.serialization.enum_([
15
15
  "segment",
16
16
  "affonso",
17
17
  "attio",
18
+ "sparkloop",
18
19
  ]);
@@ -5,6 +5,7 @@ export declare const ConnectIntegrationsRequestSettings: core.serialization.Obje
5
5
  export declare namespace ConnectIntegrationsRequestSettings {
6
6
  interface Raw {
7
7
  eventAllowlist?: string[] | null;
8
+ listIds?: (string[] | null | undefined) | null;
8
9
  listMap?: Record<string, string> | null;
9
10
  syncAllEvents?: boolean | null;
10
11
  syncCompanyFromDomain?: boolean | null;
@@ -2,6 +2,7 @@
2
2
  import * as core from "../../../../core/index.js";
3
3
  export const ConnectIntegrationsRequestSettings = core.serialization.object({
4
4
  eventAllowlist: core.serialization.list(core.serialization.string()).optional(),
5
+ listIds: core.serialization.list(core.serialization.string()).optionalNullable(),
5
6
  listMap: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
6
7
  syncAllEvents: core.serialization.boolean().optional(),
7
8
  syncCompanyFromDomain: core.serialization.boolean().optional(),
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  import { IntegrationSummary } from "../../../types/IntegrationSummary.js";
5
5
  import { ConnectIntegrationsResponseHistory } from "./ConnectIntegrationsResponseHistory.js";
6
+ import { ConnectIntegrationsResponsePublication } from "./ConnectIntegrationsResponsePublication.js";
6
7
  import { ConnectIntegrationsResponseWebhookProvisioning } from "./ConnectIntegrationsResponseWebhookProvisioning.js";
7
8
  export declare const ConnectIntegrationsResponse: core.serialization.ObjectSchema<serializers.ConnectIntegrationsResponse.Raw, Sequenzy.ConnectIntegrationsResponse>;
8
9
  export declare namespace ConnectIntegrationsResponse {
@@ -10,6 +11,7 @@ export declare namespace ConnectIntegrationsResponse {
10
11
  backfillQueued?: boolean | null;
11
12
  history?: ConnectIntegrationsResponseHistory.Raw | null;
12
13
  integration?: IntegrationSummary.Raw | null;
14
+ publication?: ConnectIntegrationsResponsePublication.Raw | null;
13
15
  revenueSyncQueued?: boolean | null;
14
16
  success?: boolean | null;
15
17
  testMode?: boolean | null;
@@ -2,11 +2,13 @@
2
2
  import * as core from "../../../../core/index.js";
3
3
  import { IntegrationSummary } from "../../../types/IntegrationSummary.js";
4
4
  import { ConnectIntegrationsResponseHistory } from "./ConnectIntegrationsResponseHistory.js";
5
+ import { ConnectIntegrationsResponsePublication } from "./ConnectIntegrationsResponsePublication.js";
5
6
  import { ConnectIntegrationsResponseWebhookProvisioning } from "./ConnectIntegrationsResponseWebhookProvisioning.js";
6
7
  export const ConnectIntegrationsResponse = core.serialization.object({
7
8
  backfillQueued: core.serialization.boolean().optional(),
8
9
  history: ConnectIntegrationsResponseHistory.optional(),
9
10
  integration: IntegrationSummary.optional(),
11
+ publication: ConnectIntegrationsResponsePublication.optional(),
10
12
  revenueSyncQueued: core.serialization.boolean().optional(),
11
13
  success: core.serialization.boolean().optional(),
12
14
  testMode: core.serialization.boolean().optional(),
@@ -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 ConnectIntegrationsResponsePublication: core.serialization.ObjectSchema<serializers.ConnectIntegrationsResponsePublication.Raw, Sequenzy.ConnectIntegrationsResponsePublication>;
5
+ export declare namespace ConnectIntegrationsResponsePublication {
6
+ interface Raw {
7
+ id?: string | null;
8
+ name?: string | null;
9
+ }
10
+ }
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const ConnectIntegrationsResponsePublication = core.serialization.object({
4
+ id: core.serialization.string().optional(),
5
+ name: core.serialization.string().optional(),
6
+ });
@@ -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 DisconnectIntegrationsResponseProvider: core.serialization.Schema<serializers.DisconnectIntegrationsResponseProvider.Raw, Sequenzy.DisconnectIntegrationsResponseProvider>;
5
5
  export declare namespace DisconnectIntegrationsResponseProvider {
6
- type Raw = "lemon_squeezy";
6
+ type Raw = "lemon_squeezy" | "sparkloop";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.js";
3
- export const DisconnectIntegrationsResponseProvider = core.serialization.enum_(["lemon_squeezy"]);
3
+ export const DisconnectIntegrationsResponseProvider = core.serialization.enum_(["lemon_squeezy", "sparkloop"]);
@@ -5,6 +5,7 @@ export * from "./ConnectIntegrationsRequestProvider.js";
5
5
  export * from "./ConnectIntegrationsRequestSettings.js";
6
6
  export * from "./ConnectIntegrationsResponse.js";
7
7
  export * from "./ConnectIntegrationsResponseHistory.js";
8
+ export * from "./ConnectIntegrationsResponsePublication.js";
8
9
  export * from "./ConnectIntegrationsResponseWebhookProvisioning.js";
9
10
  export * from "./DisconnectIntegrationsResponse.js";
10
11
  export * from "./DisconnectIntegrationsResponseProvider.js";
@@ -5,6 +5,7 @@ export * from "./ConnectIntegrationsRequestProvider.js";
5
5
  export * from "./ConnectIntegrationsRequestSettings.js";
6
6
  export * from "./ConnectIntegrationsResponse.js";
7
7
  export * from "./ConnectIntegrationsResponseHistory.js";
8
+ export * from "./ConnectIntegrationsResponsePublication.js";
8
9
  export * from "./ConnectIntegrationsResponseWebhookProvisioning.js";
9
10
  export * from "./DisconnectIntegrationsResponse.js";
10
11
  export * from "./DisconnectIntegrationsResponseProvider.js";
@@ -1,13 +1,11 @@
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 { DesignMdIssue } from "./DesignMdIssue.js";
4
+ import { BadRequestErrorBodyPublicationsItem } from "./BadRequestErrorBodyPublicationsItem.js";
5
+ import { Error_ } from "./Error_.js";
5
6
  export declare const BadRequestErrorBody: core.serialization.ObjectSchema<serializers.BadRequestErrorBody.Raw, Sequenzy.BadRequestErrorBody>;
6
7
  export declare namespace BadRequestErrorBody {
7
- interface Raw {
8
- code?: string | null;
9
- error?: string | null;
10
- issues?: DesignMdIssue.Raw[] | null;
11
- success?: boolean | null;
8
+ interface Raw extends Error_.Raw {
9
+ publications?: BadRequestErrorBodyPublicationsItem.Raw[] | null;
12
10
  }
13
11
  }