sequenzy 2.1.37 → 2.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +14 -0
- package/dist/cjs/Client.js +55 -0
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/integrations/client/Client.js +1 -1
- package/dist/cjs/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -0
- package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
- package/dist/cjs/api/resources/sequences/types/ListSequencesResponse.d.ts +1 -1
- package/dist/cjs/api/resources/templates/client/Client.d.ts +35 -0
- package/dist/cjs/api/resources/templates/client/Client.js +139 -0
- package/dist/cjs/api/resources/templates/client/requests/TranslateMissingLocalizationsTemplatesRequest.d.ts +8 -0
- package/dist/cjs/api/resources/templates/client/requests/TranslateMissingLocalizationsTemplatesRequest.js +3 -0
- package/dist/cjs/api/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/templates/types/GetLocalizationCoverageTemplatesResponse.d.ts +14 -0
- package/dist/cjs/api/resources/templates/types/GetLocalizationCoverageTemplatesResponse.js +3 -0
- package/dist/cjs/api/resources/templates/types/GetLocalizationCoverageTemplatesResponseLocalesItem.d.ts +18 -0
- package/dist/cjs/api/resources/templates/types/GetLocalizationCoverageTemplatesResponseLocalesItem.js +3 -0
- package/dist/cjs/api/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.js +3 -0
- package/dist/cjs/api/resources/templates/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/templates/types/index.js +3 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponse.d.ts +9 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponse.js +3 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseDescription.d.ts +4 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseDescription.js +7 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseDocumentation.d.ts +4 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseDocumentation.js +7 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseName.d.ts +4 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseName.js +7 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseRepository.d.ts +4 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseRepository.js +7 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseTransport.d.ts +4 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseTransport.js +7 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseUrl.d.ts +4 -0
- package/dist/cjs/api/types/GetMcpDiscoveryResponseUrl.js +7 -0
- package/dist/cjs/api/types/SequenceKeyDates.d.ts +2 -0
- package/dist/cjs/api/types/SequenceKeyDatesSendWindow.d.ts +7 -0
- package/dist/cjs/api/types/SequenceKeyDatesSendWindow.js +3 -0
- package/dist/cjs/api/types/SequenceListItem.d.ts +5 -0
- package/dist/cjs/api/types/SequenceListItem.js +3 -0
- package/dist/cjs/api/types/index.d.ts +9 -0
- package/dist/cjs/api/types/index.js +9 -0
- package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -1
- package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
- package/dist/cjs/serialization/resources/sequences/types/ListSequencesResponse.d.ts +2 -2
- package/dist/cjs/serialization/resources/sequences/types/ListSequencesResponse.js +2 -2
- package/dist/cjs/serialization/resources/templates/client/requests/TranslateMissingLocalizationsTemplatesRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/templates/client/requests/TranslateMissingLocalizationsTemplatesRequest.js +31 -0
- package/dist/cjs/serialization/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/templates/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponse.d.ts +15 -0
- package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponse.js +37 -0
- package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponseLocalesItem.d.ts +16 -0
- package/dist/cjs/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponseLocalesItem.js +38 -0
- package/dist/cjs/serialization/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.d.ts +12 -0
- package/dist/cjs/serialization/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.js +34 -0
- package/dist/cjs/serialization/resources/templates/types/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/templates/types/index.js +3 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponse.d.ts +20 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponse.js +42 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseDescription.d.ts +7 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseDescription.js +29 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseDocumentation.d.ts +7 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseDocumentation.js +29 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseName.d.ts +7 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseName.js +29 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseRepository.d.ts +7 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseRepository.js +29 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseTransport.d.ts +7 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseTransport.js +29 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseUrl.d.ts +7 -0
- package/dist/cjs/serialization/types/GetMcpDiscoveryResponseUrl.js +29 -0
- package/dist/cjs/serialization/types/SequenceKeyDates.d.ts +2 -0
- package/dist/cjs/serialization/types/SequenceKeyDates.js +2 -0
- package/dist/cjs/serialization/types/SequenceKeyDatesSendWindow.d.ts +9 -0
- package/dist/cjs/serialization/types/SequenceKeyDatesSendWindow.js +31 -0
- package/dist/cjs/serialization/types/SequenceListItem.d.ts +10 -0
- package/dist/cjs/serialization/types/SequenceListItem.js +34 -0
- package/dist/cjs/serialization/types/index.d.ts +9 -0
- package/dist/cjs/serialization/types/index.js +9 -0
- package/dist/esm/Client.d.ts +14 -0
- package/dist/esm/Client.js +55 -0
- package/dist/esm/api/resources/integrations/client/Client.d.ts +1 -1
- package/dist/esm/api/resources/integrations/client/Client.js +1 -1
- package/dist/esm/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +2 -2
- package/dist/esm/api/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -0
- package/dist/esm/api/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
- package/dist/esm/api/resources/sequences/types/ListSequencesResponse.d.ts +1 -1
- package/dist/esm/api/resources/templates/client/Client.d.ts +35 -0
- package/dist/esm/api/resources/templates/client/Client.js +139 -0
- package/dist/esm/api/resources/templates/client/requests/TranslateMissingLocalizationsTemplatesRequest.d.ts +8 -0
- package/dist/esm/api/resources/templates/client/requests/TranslateMissingLocalizationsTemplatesRequest.js +2 -0
- package/dist/esm/api/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/templates/types/GetLocalizationCoverageTemplatesResponse.d.ts +14 -0
- package/dist/esm/api/resources/templates/types/GetLocalizationCoverageTemplatesResponse.js +2 -0
- package/dist/esm/api/resources/templates/types/GetLocalizationCoverageTemplatesResponseLocalesItem.d.ts +18 -0
- package/dist/esm/api/resources/templates/types/GetLocalizationCoverageTemplatesResponseLocalesItem.js +2 -0
- package/dist/esm/api/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.d.ts +9 -0
- package/dist/esm/api/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.js +2 -0
- package/dist/esm/api/resources/templates/types/index.d.ts +3 -0
- package/dist/esm/api/resources/templates/types/index.js +3 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponse.d.ts +9 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponse.js +2 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseDescription.d.ts +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseDescription.js +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseDocumentation.d.ts +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseDocumentation.js +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseName.d.ts +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseName.js +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseRepository.d.ts +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseRepository.js +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseTransport.d.ts +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseTransport.js +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseUrl.d.ts +4 -0
- package/dist/esm/api/types/GetMcpDiscoveryResponseUrl.js +4 -0
- package/dist/esm/api/types/SequenceKeyDates.d.ts +2 -0
- package/dist/esm/api/types/SequenceKeyDatesSendWindow.d.ts +7 -0
- package/dist/esm/api/types/SequenceKeyDatesSendWindow.js +2 -0
- package/dist/esm/api/types/SequenceListItem.d.ts +5 -0
- package/dist/esm/api/types/SequenceListItem.js +2 -0
- package/dist/esm/api/types/index.d.ts +9 -0
- package/dist/esm/api/types/index.js +9 -0
- package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -1
- package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
- package/dist/esm/serialization/resources/sequences/types/ListSequencesResponse.d.ts +2 -2
- package/dist/esm/serialization/resources/sequences/types/ListSequencesResponse.js +2 -2
- package/dist/esm/serialization/resources/templates/client/requests/TranslateMissingLocalizationsTemplatesRequest.d.ts +9 -0
- package/dist/esm/serialization/resources/templates/client/requests/TranslateMissingLocalizationsTemplatesRequest.js +5 -0
- package/dist/esm/serialization/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/esm/serialization/resources/templates/client/requests/index.js +1 -0
- package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponse.d.ts +15 -0
- package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponse.js +11 -0
- package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponseLocalesItem.d.ts +16 -0
- package/dist/esm/serialization/resources/templates/types/GetLocalizationCoverageTemplatesResponseLocalesItem.js +12 -0
- package/dist/esm/serialization/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.d.ts +12 -0
- package/dist/esm/serialization/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.js +8 -0
- package/dist/esm/serialization/resources/templates/types/index.d.ts +3 -0
- package/dist/esm/serialization/resources/templates/types/index.js +3 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponse.d.ts +20 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponse.js +16 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseDescription.d.ts +7 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseDescription.js +3 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseDocumentation.d.ts +7 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseDocumentation.js +3 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseName.d.ts +7 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseName.js +3 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseRepository.d.ts +7 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseRepository.js +3 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseTransport.d.ts +7 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseTransport.js +3 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseUrl.d.ts +7 -0
- package/dist/esm/serialization/types/GetMcpDiscoveryResponseUrl.js +3 -0
- package/dist/esm/serialization/types/SequenceKeyDates.d.ts +2 -0
- package/dist/esm/serialization/types/SequenceKeyDates.js +2 -0
- package/dist/esm/serialization/types/SequenceKeyDatesSendWindow.d.ts +9 -0
- package/dist/esm/serialization/types/SequenceKeyDatesSendWindow.js +5 -0
- package/dist/esm/serialization/types/SequenceListItem.d.ts +10 -0
- package/dist/esm/serialization/types/SequenceListItem.js +8 -0
- package/dist/esm/serialization/types/index.d.ts +9 -0
- package/dist/esm/serialization/types/index.js +9 -0
- package/package.json +1 -1
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Sequenzy from "./api/index.js";
|
|
1
2
|
import { AbTestsClient } from "./api/resources/abTests/client/Client.js";
|
|
2
3
|
import { AccountClient } from "./api/resources/account/client/Client.js";
|
|
3
4
|
import { AccountHealthClient } from "./api/resources/accountHealth/client/Client.js";
|
|
@@ -168,6 +169,19 @@ export declare class SequenzyClient {
|
|
|
168
169
|
get websites(): WebsitesClient;
|
|
169
170
|
get webTrackingKeys(): WebTrackingKeysClient;
|
|
170
171
|
get widgets(): WidgetsClient;
|
|
172
|
+
/**
|
|
173
|
+
* Static public metadata for directory crawlers. This is not an MCP transport. No credentials or parameters are required.
|
|
174
|
+
*
|
|
175
|
+
* @param {SequenzyClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
|
+
*
|
|
177
|
+
* @throws {@link errors.SequenzyError}
|
|
178
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* await client.getMcpDiscovery()
|
|
182
|
+
*/
|
|
183
|
+
getMcpDiscovery(requestOptions?: SequenzyClient.RequestOptions): core.HttpResponsePromise<Sequenzy.GetMcpDiscoveryResponse>;
|
|
184
|
+
private __getMcpDiscovery;
|
|
171
185
|
/**
|
|
172
186
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
173
187
|
* This is useful for making requests to endpoints not yet supported in the SDK.
|
package/dist/cjs/Client.js
CHANGED
|
@@ -79,7 +79,12 @@ const Client_js_51 = require("./api/resources/websites/client/Client.js");
|
|
|
79
79
|
const Client_js_52 = require("./api/resources/webTrackingKeys/client/Client.js");
|
|
80
80
|
const Client_js_53 = require("./api/resources/widgets/client/Client.js");
|
|
81
81
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
82
|
+
const headers_js_1 = require("./core/headers.js");
|
|
82
83
|
const core = __importStar(require("./core/index.js"));
|
|
84
|
+
const environments = __importStar(require("./environments.js"));
|
|
85
|
+
const handleNonStatusCodeError_js_1 = require("./errors/handleNonStatusCodeError.js");
|
|
86
|
+
const errors = __importStar(require("./errors/index.js"));
|
|
87
|
+
const serializers = __importStar(require("./serialization/index.js"));
|
|
83
88
|
class SequenzyClient {
|
|
84
89
|
constructor(options = {}) {
|
|
85
90
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -243,6 +248,56 @@ class SequenzyClient {
|
|
|
243
248
|
get widgets() {
|
|
244
249
|
return (this._widgets ?? (this._widgets = new Client_js_53.WidgetsClient(this._options)));
|
|
245
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* Static public metadata for directory crawlers. This is not an MCP transport. No credentials or parameters are required.
|
|
253
|
+
*
|
|
254
|
+
* @param {SequenzyClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
255
|
+
*
|
|
256
|
+
* @throws {@link errors.SequenzyError}
|
|
257
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* await client.getMcpDiscovery()
|
|
261
|
+
*/
|
|
262
|
+
getMcpDiscovery(requestOptions) {
|
|
263
|
+
return core.HttpResponsePromise.fromPromise(this.__getMcpDiscovery(requestOptions));
|
|
264
|
+
}
|
|
265
|
+
async __getMcpDiscovery(requestOptions) {
|
|
266
|
+
const _headers = (0, headers_js_1.mergeHeaders)(this._options?.headers, requestOptions?.headers);
|
|
267
|
+
const _response = await core.fetcher({
|
|
268
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
269
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
270
|
+
environments.SequenzyEnvironment.Default, ".well-known/mcp.json"),
|
|
271
|
+
method: "GET",
|
|
272
|
+
headers: _headers,
|
|
273
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
274
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
275
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
276
|
+
abortSignal: requestOptions?.abortSignal,
|
|
277
|
+
fetchFn: this._options?.fetch,
|
|
278
|
+
logging: this._options.logging,
|
|
279
|
+
});
|
|
280
|
+
if (_response.ok) {
|
|
281
|
+
return {
|
|
282
|
+
data: serializers.GetMcpDiscoveryResponse.parseOrThrow(_response.body, {
|
|
283
|
+
unrecognizedObjectKeys: "passthrough",
|
|
284
|
+
allowUnrecognizedUnionMembers: true,
|
|
285
|
+
allowUnrecognizedEnumValues: true,
|
|
286
|
+
skipValidation: true,
|
|
287
|
+
breadcrumbsPrefix: ["response"],
|
|
288
|
+
}),
|
|
289
|
+
rawResponse: _response.rawResponse,
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
if (_response.error.reason === "status-code") {
|
|
293
|
+
throw new errors.SequenzyError({
|
|
294
|
+
statusCode: _response.error.statusCode,
|
|
295
|
+
body: _response.error.body,
|
|
296
|
+
rawResponse: _response.rawResponse,
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/.well-known/mcp.json");
|
|
300
|
+
}
|
|
246
301
|
/**
|
|
247
302
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
248
303
|
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
@@ -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, 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
|
|
33
|
+
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, adapty, 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, Superwall, and Adapty, 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.
|
|
@@ -106,7 +106,7 @@ class IntegrationsClient {
|
|
|
106
106
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/integrations/{id}/pixel");
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* 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
|
|
109
|
+
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, adapty, 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, Superwall, and Adapty, 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.
|
|
110
110
|
*
|
|
111
111
|
* @param {Sequenzy.ConnectIntegrationsRequest} request
|
|
112
112
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -12,10 +12,10 @@ export interface ConnectIntegrationsRequest {
|
|
|
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
|
|
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 and Adapty do not use one. SparkLoop: the publication ID (pub_...), required only when the account has several publications. */
|
|
16
16
|
providerAccountId?: string;
|
|
17
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 for sparkloop, 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, omit it so Sequenzy authenticates deliveries with a secret in the webhook URL it registers, or pass the account's webhook authentication token to verify the SparkLoop-Token header instead. */
|
|
19
|
+
/** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and for sparkloop, 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 Adapty, pass at least 16 characters: the authorization header value set on the Adapty webhook. For Segment, use 16-153 UTF-8 bytes. For SparkLoop, omit it so Sequenzy authenticates deliveries with a secret in the webhook URL it registers, or pass the account's webhook authentication token to verify the SparkLoop-Token header instead. */
|
|
20
20
|
webhookSecret?: string;
|
|
21
21
|
}
|
|
@@ -7,6 +7,7 @@ export declare const ConnectIntegrationsRequestProvider: {
|
|
|
7
7
|
readonly Whop: "whop";
|
|
8
8
|
readonly Revenuecat: "revenuecat";
|
|
9
9
|
readonly Superwall: "superwall";
|
|
10
|
+
readonly Adapty: "adapty";
|
|
10
11
|
readonly Creem: "creem";
|
|
11
12
|
readonly Chargebee: "chargebee";
|
|
12
13
|
readonly Clerk: "clerk";
|
|
@@ -130,6 +130,22 @@ export declare class TemplatesClient {
|
|
|
130
130
|
*/
|
|
131
131
|
get(request: Sequenzy.GetTemplatesRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.GetTemplatesResponse>;
|
|
132
132
|
private __get;
|
|
133
|
+
/**
|
|
134
|
+
* Counts, per enabled non-primary language, how many emails that keep sending are translated. Covers every email step and A/B variant in sequences that are not archived, plus enabled transactional emails. Personal API keys with the marketer role do not see transactional emails, so they are left out of the counts. Campaigns are not counted.
|
|
135
|
+
*
|
|
136
|
+
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
139
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
140
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
141
|
+
* @throws {@link errors.SequenzyError}
|
|
142
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* await client.templates.getLocalizationCoverage()
|
|
146
|
+
*/
|
|
147
|
+
getLocalizationCoverage(requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.GetLocalizationCoverageTemplatesResponse>;
|
|
148
|
+
private __getLocalizationCoverage;
|
|
133
149
|
/**
|
|
134
150
|
* Lists saved email templates for the authenticated company, optionally filtered by label. Templates are the company's saved email bodies: standalone templates plus the bodies behind campaigns and transactional emails, so dashboard-designed emails appear here too. A campaign's `emailId` points at its entry in this list, and any template ID can be passed as `templateId` when creating a campaign. Bodies are kept when their campaign or transactional email is deleted. Content snapshots of code-managed transactional emails (created by sends with `trackAs`) are not listed and cannot be used as `templateId`. Results are newest first and paginated: 50 per page by default, up to 100. Page with `offset` while `pagination.hasMore` is true.
|
|
135
151
|
*
|
|
@@ -250,6 +266,25 @@ export declare class TemplatesClient {
|
|
|
250
266
|
*/
|
|
251
267
|
syncLocalizations(request: Sequenzy.SyncLocalizationsTemplatesRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SyncLocalizationsTemplatesResponse>;
|
|
252
268
|
private __syncLocalizations;
|
|
269
|
+
/**
|
|
270
|
+
* Queues AI translation for every sequence email (including sequence A/B variants) and enabled transactional email that has no translation in a language yet, or whose last translation failed. Translations someone edited, up-to-date translations and outdated ones are left alone; use Sync template localizations to retranslate one template. Adding a language in the dashboard already does this for the new language. Personal API keys with the marketer role only translate sequence emails.
|
|
271
|
+
*
|
|
272
|
+
* @param {Sequenzy.TranslateMissingLocalizationsTemplatesRequest} request
|
|
273
|
+
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
274
|
+
*
|
|
275
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
276
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
277
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
278
|
+
* @throws {@link Sequenzy.InternalServerError}
|
|
279
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
280
|
+
* @throws {@link errors.SequenzyError}
|
|
281
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* await client.templates.translateMissingLocalizations()
|
|
285
|
+
*/
|
|
286
|
+
translateMissingLocalizations(request?: Sequenzy.TranslateMissingLocalizationsTemplatesRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.TranslateMissingLocalizationsTemplatesResponse>;
|
|
287
|
+
private __translateMissingLocalizations;
|
|
253
288
|
/**
|
|
254
289
|
* Updates template metadata, labels, or content. Transactional email IDs and slugs are also resolved for compatibility.
|
|
255
290
|
*
|
|
@@ -476,6 +476,69 @@ class TemplatesClient {
|
|
|
476
476
|
}
|
|
477
477
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/templates/{templateId}");
|
|
478
478
|
}
|
|
479
|
+
/**
|
|
480
|
+
* Counts, per enabled non-primary language, how many emails that keep sending are translated. Covers every email step and A/B variant in sequences that are not archived, plus enabled transactional emails. Personal API keys with the marketer role do not see transactional emails, so they are left out of the counts. Campaigns are not counted.
|
|
481
|
+
*
|
|
482
|
+
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
483
|
+
*
|
|
484
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
485
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
486
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
487
|
+
* @throws {@link errors.SequenzyError}
|
|
488
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
489
|
+
*
|
|
490
|
+
* @example
|
|
491
|
+
* await client.templates.getLocalizationCoverage()
|
|
492
|
+
*/
|
|
493
|
+
getLocalizationCoverage(requestOptions) {
|
|
494
|
+
return core.HttpResponsePromise.fromPromise(this.__getLocalizationCoverage(requestOptions));
|
|
495
|
+
}
|
|
496
|
+
async __getLocalizationCoverage(requestOptions) {
|
|
497
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
498
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
499
|
+
const _response = await core.fetcher({
|
|
500
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
501
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
502
|
+
environments.SequenzyEnvironment.Default, "templates/localizations/coverage"),
|
|
503
|
+
method: "GET",
|
|
504
|
+
headers: _headers,
|
|
505
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
506
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
507
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
508
|
+
abortSignal: requestOptions?.abortSignal,
|
|
509
|
+
fetchFn: this._options?.fetch,
|
|
510
|
+
logging: this._options.logging,
|
|
511
|
+
});
|
|
512
|
+
if (_response.ok) {
|
|
513
|
+
return {
|
|
514
|
+
data: serializers.GetLocalizationCoverageTemplatesResponse.parseOrThrow(_response.body, {
|
|
515
|
+
unrecognizedObjectKeys: "passthrough",
|
|
516
|
+
allowUnrecognizedUnionMembers: true,
|
|
517
|
+
allowUnrecognizedEnumValues: true,
|
|
518
|
+
skipValidation: true,
|
|
519
|
+
breadcrumbsPrefix: ["response"],
|
|
520
|
+
}),
|
|
521
|
+
rawResponse: _response.rawResponse,
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
if (_response.error.reason === "status-code") {
|
|
525
|
+
switch (_response.error.statusCode) {
|
|
526
|
+
case 401:
|
|
527
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
528
|
+
case 404:
|
|
529
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
530
|
+
case 503:
|
|
531
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
532
|
+
default:
|
|
533
|
+
throw new errors.SequenzyError({
|
|
534
|
+
statusCode: _response.error.statusCode,
|
|
535
|
+
body: _response.error.body,
|
|
536
|
+
rawResponse: _response.rawResponse,
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/templates/localizations/coverage");
|
|
541
|
+
}
|
|
479
542
|
/**
|
|
480
543
|
* Lists saved email templates for the authenticated company, optionally filtered by label. Templates are the company's saved email bodies: standalone templates plus the bodies behind campaigns and transactional emails, so dashboard-designed emails appear here too. A campaign's `emailId` points at its entry in this list, and any template ID can be passed as `templateId` when creating a campaign. Bodies are kept when their campaign or transactional email is deleted. Content snapshots of code-managed transactional emails (created by sends with `trackAs`) are not listed and cannot be used as `templateId`. Results are newest first and paginated: 50 per page by default, up to 100. Page with `offset` while `pagination.hasMore` is true.
|
|
481
544
|
*
|
|
@@ -931,6 +994,82 @@ class TemplatesClient {
|
|
|
931
994
|
}
|
|
932
995
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/templates/{templateId}/localizations/sync");
|
|
933
996
|
}
|
|
997
|
+
/**
|
|
998
|
+
* Queues AI translation for every sequence email (including sequence A/B variants) and enabled transactional email that has no translation in a language yet, or whose last translation failed. Translations someone edited, up-to-date translations and outdated ones are left alone; use Sync template localizations to retranslate one template. Adding a language in the dashboard already does this for the new language. Personal API keys with the marketer role only translate sequence emails.
|
|
999
|
+
*
|
|
1000
|
+
* @param {Sequenzy.TranslateMissingLocalizationsTemplatesRequest} request
|
|
1001
|
+
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1002
|
+
*
|
|
1003
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
1004
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
1005
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
1006
|
+
* @throws {@link Sequenzy.InternalServerError}
|
|
1007
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
1008
|
+
* @throws {@link errors.SequenzyError}
|
|
1009
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* await client.templates.translateMissingLocalizations()
|
|
1013
|
+
*/
|
|
1014
|
+
translateMissingLocalizations(request = {}, requestOptions) {
|
|
1015
|
+
return core.HttpResponsePromise.fromPromise(this.__translateMissingLocalizations(request, requestOptions));
|
|
1016
|
+
}
|
|
1017
|
+
async __translateMissingLocalizations(request = {}, requestOptions) {
|
|
1018
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1019
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1020
|
+
const _response = await core.fetcher({
|
|
1021
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1022
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1023
|
+
environments.SequenzyEnvironment.Default, "templates/localizations/translate-missing"),
|
|
1024
|
+
method: "POST",
|
|
1025
|
+
headers: _headers,
|
|
1026
|
+
contentType: "application/json",
|
|
1027
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1028
|
+
requestType: "json",
|
|
1029
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.TranslateMissingLocalizationsTemplatesRequest.jsonOrThrow(request, {
|
|
1030
|
+
unrecognizedObjectKeys: "strip",
|
|
1031
|
+
omitUndefined: true,
|
|
1032
|
+
}), requestOptions?.additionalBodyParameters),
|
|
1033
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1034
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1035
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1036
|
+
fetchFn: this._options?.fetch,
|
|
1037
|
+
logging: this._options.logging,
|
|
1038
|
+
});
|
|
1039
|
+
if (_response.ok) {
|
|
1040
|
+
return {
|
|
1041
|
+
data: serializers.TranslateMissingLocalizationsTemplatesResponse.parseOrThrow(_response.body, {
|
|
1042
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1043
|
+
allowUnrecognizedUnionMembers: true,
|
|
1044
|
+
allowUnrecognizedEnumValues: true,
|
|
1045
|
+
skipValidation: true,
|
|
1046
|
+
breadcrumbsPrefix: ["response"],
|
|
1047
|
+
}),
|
|
1048
|
+
rawResponse: _response.rawResponse,
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
if (_response.error.reason === "status-code") {
|
|
1052
|
+
switch (_response.error.statusCode) {
|
|
1053
|
+
case 400:
|
|
1054
|
+
throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1055
|
+
case 401:
|
|
1056
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1057
|
+
case 404:
|
|
1058
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1059
|
+
case 500:
|
|
1060
|
+
throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1061
|
+
case 503:
|
|
1062
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1063
|
+
default:
|
|
1064
|
+
throw new errors.SequenzyError({
|
|
1065
|
+
statusCode: _response.error.statusCode,
|
|
1066
|
+
body: _response.error.body,
|
|
1067
|
+
rawResponse: _response.rawResponse,
|
|
1068
|
+
});
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/templates/localizations/translate-missing");
|
|
1072
|
+
}
|
|
934
1073
|
/**
|
|
935
1074
|
* Updates template metadata, labels, or content. Transactional email IDs and slugs are also resolved for compatibility.
|
|
936
1075
|
*
|
|
@@ -10,4 +10,5 @@ export type { RenderTemplatesRequest } from "./RenderTemplatesRequest.js";
|
|
|
10
10
|
export type { RevokeShareLinkTemplatesRequest } from "./RevokeShareLinkTemplatesRequest.js";
|
|
11
11
|
export type { SetLocalizationTemplatesRequest } from "./SetLocalizationTemplatesRequest.js";
|
|
12
12
|
export type { SyncLocalizationsTemplatesRequest } from "./SyncLocalizationsTemplatesRequest.js";
|
|
13
|
+
export type { TranslateMissingLocalizationsTemplatesRequest } from "./TranslateMissingLocalizationsTemplatesRequest.js";
|
|
13
14
|
export type { UpdateTemplatesRequest } from "./UpdateTemplatesRequest.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../../index.js";
|
|
2
|
+
export interface GetLocalizationCoverageTemplatesResponse {
|
|
3
|
+
/** One entry per enabled non-primary locale. Empty when only the primary language is configured. */
|
|
4
|
+
locales?: Sequenzy.GetLocalizationCoverageTemplatesResponseLocalesItem[];
|
|
5
|
+
/** Locale the emails are written in. */
|
|
6
|
+
primaryLocale?: string;
|
|
7
|
+
/** Sequence email steps and sequence A/B variants counted. */
|
|
8
|
+
sequenceEmails?: number;
|
|
9
|
+
success?: boolean;
|
|
10
|
+
/** Sequence and transactional emails counted. */
|
|
11
|
+
totalEmails?: number;
|
|
12
|
+
/** Enabled transactional emails counted. An email used by both a sequence and a transactional email counts once, as a sequence email. */
|
|
13
|
+
transactionalEmails?: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface GetLocalizationCoverageTemplatesResponseLocalesItem {
|
|
2
|
+
/** Translations someone edited by hand that match the current original. */
|
|
3
|
+
edited?: number;
|
|
4
|
+
/** The last translation failed, or one stayed queued for over six hours. Subscribers in this language get the fallback language. */
|
|
5
|
+
failed?: number;
|
|
6
|
+
/** Enabled non-primary locale code. */
|
|
7
|
+
locale?: string;
|
|
8
|
+
/** No translation yet. Subscribers in this language get the fallback language. */
|
|
9
|
+
missing?: number;
|
|
10
|
+
/** Translated before the original changed (status stale). These still send. */
|
|
11
|
+
outdated?: number;
|
|
12
|
+
/** Emails that should have this translation. */
|
|
13
|
+
total?: number;
|
|
14
|
+
/** Queued or being translated (status syncing). */
|
|
15
|
+
translating?: number;
|
|
16
|
+
/** Translated from the current original. */
|
|
17
|
+
upToDate?: number;
|
|
18
|
+
}
|
package/dist/cjs/api/resources/templates/types/TranslateMissingLocalizationsTemplatesResponse.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface TranslateMissingLocalizationsTemplatesResponse {
|
|
2
|
+
/** Locales checked for missing translations. */
|
|
3
|
+
locales?: string[];
|
|
4
|
+
/** Emails with at least one translation queued. 0 when nothing is missing. */
|
|
5
|
+
queuedEmails?: number;
|
|
6
|
+
/** Email and locale pairs queued. */
|
|
7
|
+
queuedTranslations?: number;
|
|
8
|
+
success?: boolean;
|
|
9
|
+
}
|
|
@@ -5,6 +5,8 @@ export * from "./CreateShareLinkTemplatesResponse.js";
|
|
|
5
5
|
export * from "./CreateTemplatesResponse.js";
|
|
6
6
|
export * from "./CreateTemplatesResponseTemplate.js";
|
|
7
7
|
export * from "./DeleteTemplatesResponse.js";
|
|
8
|
+
export * from "./GetLocalizationCoverageTemplatesResponse.js";
|
|
9
|
+
export * from "./GetLocalizationCoverageTemplatesResponseLocalesItem.js";
|
|
8
10
|
export * from "./GetTemplatesResponse.js";
|
|
9
11
|
export * from "./ListTemplatesResponse.js";
|
|
10
12
|
export * from "./ListTemplatesResponsePagination.js";
|
|
@@ -14,5 +16,6 @@ export * from "./PreviewFromExampleTemplatesResponsePreview.js";
|
|
|
14
16
|
export * from "./RevokeShareLinkTemplatesResponse.js";
|
|
15
17
|
export * from "./SetLocalizationTemplatesResponse.js";
|
|
16
18
|
export * from "./SyncLocalizationsTemplatesResponse.js";
|
|
19
|
+
export * from "./TranslateMissingLocalizationsTemplatesResponse.js";
|
|
17
20
|
export * from "./UpdateTemplatesResponse.js";
|
|
18
21
|
export * from "./UpdateTemplatesResponseTemplate.js";
|
|
@@ -21,6 +21,8 @@ __exportStar(require("./CreateShareLinkTemplatesResponse.js"), exports);
|
|
|
21
21
|
__exportStar(require("./CreateTemplatesResponse.js"), exports);
|
|
22
22
|
__exportStar(require("./CreateTemplatesResponseTemplate.js"), exports);
|
|
23
23
|
__exportStar(require("./DeleteTemplatesResponse.js"), exports);
|
|
24
|
+
__exportStar(require("./GetLocalizationCoverageTemplatesResponse.js"), exports);
|
|
25
|
+
__exportStar(require("./GetLocalizationCoverageTemplatesResponseLocalesItem.js"), exports);
|
|
24
26
|
__exportStar(require("./GetTemplatesResponse.js"), exports);
|
|
25
27
|
__exportStar(require("./ListTemplatesResponse.js"), exports);
|
|
26
28
|
__exportStar(require("./ListTemplatesResponsePagination.js"), exports);
|
|
@@ -30,5 +32,6 @@ __exportStar(require("./PreviewFromExampleTemplatesResponsePreview.js"), exports
|
|
|
30
32
|
__exportStar(require("./RevokeShareLinkTemplatesResponse.js"), exports);
|
|
31
33
|
__exportStar(require("./SetLocalizationTemplatesResponse.js"), exports);
|
|
32
34
|
__exportStar(require("./SyncLocalizationsTemplatesResponse.js"), exports);
|
|
35
|
+
__exportStar(require("./TranslateMissingLocalizationsTemplatesResponse.js"), exports);
|
|
33
36
|
__exportStar(require("./UpdateTemplatesResponse.js"), exports);
|
|
34
37
|
__exportStar(require("./UpdateTemplatesResponseTemplate.js"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Sequenzy from "../index.js";
|
|
2
|
+
export interface GetMcpDiscoveryResponse {
|
|
3
|
+
description: Sequenzy.GetMcpDiscoveryResponseDescription;
|
|
4
|
+
documentation: Sequenzy.GetMcpDiscoveryResponseDocumentation;
|
|
5
|
+
name: Sequenzy.GetMcpDiscoveryResponseName;
|
|
6
|
+
repository: Sequenzy.GetMcpDiscoveryResponseRepository;
|
|
7
|
+
transport: Sequenzy.GetMcpDiscoveryResponseTransport;
|
|
8
|
+
url: Sequenzy.GetMcpDiscoveryResponseUrl;
|
|
9
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const GetMcpDiscoveryResponseDescription: {
|
|
2
|
+
readonly EmailMarketingForSaaSAndEcommerce: "Email marketing for SaaS and ecommerce";
|
|
3
|
+
};
|
|
4
|
+
export type GetMcpDiscoveryResponseDescription = (typeof GetMcpDiscoveryResponseDescription)[keyof typeof GetMcpDiscoveryResponseDescription];
|
|
@@ -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.GetMcpDiscoveryResponseDescription = void 0;
|
|
5
|
+
exports.GetMcpDiscoveryResponseDescription = {
|
|
6
|
+
EmailMarketingForSaaSAndEcommerce: "Email marketing for SaaS and ecommerce",
|
|
7
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const GetMcpDiscoveryResponseDocumentation: {
|
|
2
|
+
readonly HttpsDocsSequenzyComConceptsMcp: "https://docs.sequenzy.com/concepts/mcp";
|
|
3
|
+
};
|
|
4
|
+
export type GetMcpDiscoveryResponseDocumentation = (typeof GetMcpDiscoveryResponseDocumentation)[keyof typeof GetMcpDiscoveryResponseDocumentation];
|
|
@@ -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.GetMcpDiscoveryResponseDocumentation = void 0;
|
|
5
|
+
exports.GetMcpDiscoveryResponseDocumentation = {
|
|
6
|
+
HttpsDocsSequenzyComConceptsMcp: "https://docs.sequenzy.com/concepts/mcp",
|
|
7
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const GetMcpDiscoveryResponseRepository: {
|
|
2
|
+
readonly HttpsGithubComSequenzyMcp: "https://github.com/Sequenzy/mcp";
|
|
3
|
+
};
|
|
4
|
+
export type GetMcpDiscoveryResponseRepository = (typeof GetMcpDiscoveryResponseRepository)[keyof typeof GetMcpDiscoveryResponseRepository];
|
|
@@ -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.GetMcpDiscoveryResponseRepository = void 0;
|
|
5
|
+
exports.GetMcpDiscoveryResponseRepository = {
|
|
6
|
+
HttpsGithubComSequenzyMcp: "https://github.com/Sequenzy/mcp",
|
|
7
|
+
};
|
|
@@ -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.GetMcpDiscoveryResponseTransport = void 0;
|
|
5
|
+
exports.GetMcpDiscoveryResponseTransport = {
|
|
6
|
+
StreamableHttp: "streamable-http",
|
|
7
|
+
};
|
|
@@ -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.GetMcpDiscoveryResponseUrl = void 0;
|
|
5
|
+
exports.GetMcpDiscoveryResponseUrl = {
|
|
6
|
+
HttpsApiSequenzyComV1Mcp: "https://api.sequenzy.com/v1/mcp",
|
|
7
|
+
};
|
|
@@ -5,6 +5,8 @@ import type * as Sequenzy from "../index.js";
|
|
|
5
5
|
export interface SequenceKeyDates {
|
|
6
6
|
/** Sorted by time when returned. */
|
|
7
7
|
dates: Sequenzy.SequenceKeyDate[];
|
|
8
|
+
/** How sends timed from these moments are spread out, so a whole audience is not emailed in the same second. Each contact gets their own stable send time within the spread, after the moment for steps at or after it and in the hours leading up to the step's time for steps timed before it, so a "1 hour before Black Friday ends" email never lands after the sale ended. Omit it on update to keep the current spread, and send null to reset it to the default. Responses always include the effective value. */
|
|
9
|
+
sendWindow?: Sequenzy.SequenceKeyDatesSendWindow | null;
|
|
8
10
|
/** IANA timezone the dates are shown and edited in. Required when dates is non-empty. */
|
|
9
11
|
timezone?: string;
|
|
10
12
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How sends timed from these moments are spread out, so a whole audience is not emailed in the same second. Each contact gets their own stable send time within the spread, after the moment for steps at or after it and in the hours leading up to the step's time for steps timed before it, so a "1 hour before Black Friday ends" email never lands after the sale ended. Omit it on update to keep the current spread, and send null to reset it to the default. Responses always include the effective value.
|
|
3
|
+
*/
|
|
4
|
+
export interface SequenceKeyDatesSendWindow {
|
|
5
|
+
/** Spread each email over this many hours. 0 sends everyone at the exact time. */
|
|
6
|
+
spreadOverHours?: number;
|
|
7
|
+
}
|