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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.GetMcpDiscoveryResponseTransport = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
exports.GetMcpDiscoveryResponseTransport = core.serialization.enum_(["streamable-http"]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const GetMcpDiscoveryResponseUrl: core.serialization.Schema<serializers.GetMcpDiscoveryResponseUrl.Raw, Sequenzy.GetMcpDiscoveryResponseUrl>;
|
|
5
|
+
export declare namespace GetMcpDiscoveryResponseUrl {
|
|
6
|
+
type Raw = "https://api.sequenzy.com/v1/mcp";
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.GetMcpDiscoveryResponseUrl = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
exports.GetMcpDiscoveryResponseUrl = core.serialization.enum_(["https://api.sequenzy.com/v1/mcp"]);
|
|
@@ -2,10 +2,12 @@ import type * as Sequenzy from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { SequenceKeyDate } from "./SequenceKeyDate.js";
|
|
5
|
+
import { SequenceKeyDatesSendWindow } from "./SequenceKeyDatesSendWindow.js";
|
|
5
6
|
export declare const SequenceKeyDates: core.serialization.ObjectSchema<serializers.SequenceKeyDates.Raw, Sequenzy.SequenceKeyDates>;
|
|
6
7
|
export declare namespace SequenceKeyDates {
|
|
7
8
|
interface Raw {
|
|
8
9
|
dates: SequenceKeyDate.Raw[];
|
|
10
|
+
sendWindow?: (SequenceKeyDatesSendWindow.Raw | null | undefined) | null;
|
|
9
11
|
timezone?: string | null;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -27,7 +27,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.SequenceKeyDates = void 0;
|
|
28
28
|
const core = __importStar(require("../../core/index.js"));
|
|
29
29
|
const SequenceKeyDate_js_1 = require("./SequenceKeyDate.js");
|
|
30
|
+
const SequenceKeyDatesSendWindow_js_1 = require("./SequenceKeyDatesSendWindow.js");
|
|
30
31
|
exports.SequenceKeyDates = core.serialization.object({
|
|
31
32
|
dates: core.serialization.list(SequenceKeyDate_js_1.SequenceKeyDate),
|
|
33
|
+
sendWindow: SequenceKeyDatesSendWindow_js_1.SequenceKeyDatesSendWindow.optionalNullable(),
|
|
32
34
|
timezone: core.serialization.string().optional(),
|
|
33
35
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
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 SequenceKeyDatesSendWindow: core.serialization.ObjectSchema<serializers.SequenceKeyDatesSendWindow.Raw, Sequenzy.SequenceKeyDatesSendWindow>;
|
|
5
|
+
export declare namespace SequenceKeyDatesSendWindow {
|
|
6
|
+
interface Raw {
|
|
7
|
+
spreadOverHours?: number | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.SequenceKeyDatesSendWindow = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
exports.SequenceKeyDatesSendWindow = core.serialization.object({
|
|
30
|
+
spreadOverHours: core.serialization.number().optional(),
|
|
31
|
+
});
|
|
@@ -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
|
+
import { SequenceSummary } from "./SequenceSummary.js";
|
|
5
|
+
export declare const SequenceListItem: core.serialization.ObjectSchema<serializers.SequenceListItem.Raw, Sequenzy.SequenceListItem>;
|
|
6
|
+
export declare namespace SequenceListItem {
|
|
7
|
+
interface Raw extends SequenceSummary.Raw {
|
|
8
|
+
emailCount?: number | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.SequenceListItem = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
const SequenceSummary_js_1 = require("./SequenceSummary.js");
|
|
30
|
+
exports.SequenceListItem = core.serialization
|
|
31
|
+
.object({
|
|
32
|
+
emailCount: core.serialization.number().optional(),
|
|
33
|
+
})
|
|
34
|
+
.extend(SequenceSummary_js_1.SequenceSummary);
|
|
@@ -317,6 +317,13 @@ export * from "./GalleryWatchedBrandEmail.js";
|
|
|
317
317
|
export * from "./GalleryWatchedBrandEmailBrand.js";
|
|
318
318
|
export * from "./GalleryWatchedBrandStatus.js";
|
|
319
319
|
export * from "./GalleryWatchResult.js";
|
|
320
|
+
export * from "./GetMcpDiscoveryResponse.js";
|
|
321
|
+
export * from "./GetMcpDiscoveryResponseDescription.js";
|
|
322
|
+
export * from "./GetMcpDiscoveryResponseDocumentation.js";
|
|
323
|
+
export * from "./GetMcpDiscoveryResponseName.js";
|
|
324
|
+
export * from "./GetMcpDiscoveryResponseRepository.js";
|
|
325
|
+
export * from "./GetMcpDiscoveryResponseTransport.js";
|
|
326
|
+
export * from "./GetMcpDiscoveryResponseUrl.js";
|
|
320
327
|
export * from "./IgnoredFields.js";
|
|
321
328
|
export * from "./IgnoredFieldsItem.js";
|
|
322
329
|
export * from "./IgnoredFieldsItemReason.js";
|
|
@@ -699,7 +706,9 @@ export * from "./SequenceInboundWebhookFieldMapping.js";
|
|
|
699
706
|
export * from "./SequenceInboundWebhookStatus.js";
|
|
700
707
|
export * from "./SequenceKeyDate.js";
|
|
701
708
|
export * from "./SequenceKeyDates.js";
|
|
709
|
+
export * from "./SequenceKeyDatesSendWindow.js";
|
|
702
710
|
export * from "./SequenceLinearStepInsertionInput.js";
|
|
711
|
+
export * from "./SequenceListItem.js";
|
|
703
712
|
export * from "./SequenceNode.js";
|
|
704
713
|
export * from "./SequenceNodeUpdateHints.js";
|
|
705
714
|
export * from "./SequenceNodeUpdateInput.js";
|
|
@@ -333,6 +333,13 @@ __exportStar(require("./GalleryWatchedBrandEmail.js"), exports);
|
|
|
333
333
|
__exportStar(require("./GalleryWatchedBrandEmailBrand.js"), exports);
|
|
334
334
|
__exportStar(require("./GalleryWatchedBrandStatus.js"), exports);
|
|
335
335
|
__exportStar(require("./GalleryWatchResult.js"), exports);
|
|
336
|
+
__exportStar(require("./GetMcpDiscoveryResponse.js"), exports);
|
|
337
|
+
__exportStar(require("./GetMcpDiscoveryResponseDescription.js"), exports);
|
|
338
|
+
__exportStar(require("./GetMcpDiscoveryResponseDocumentation.js"), exports);
|
|
339
|
+
__exportStar(require("./GetMcpDiscoveryResponseName.js"), exports);
|
|
340
|
+
__exportStar(require("./GetMcpDiscoveryResponseRepository.js"), exports);
|
|
341
|
+
__exportStar(require("./GetMcpDiscoveryResponseTransport.js"), exports);
|
|
342
|
+
__exportStar(require("./GetMcpDiscoveryResponseUrl.js"), exports);
|
|
336
343
|
__exportStar(require("./IgnoredFields.js"), exports);
|
|
337
344
|
__exportStar(require("./IgnoredFieldsItem.js"), exports);
|
|
338
345
|
__exportStar(require("./IgnoredFieldsItemReason.js"), exports);
|
|
@@ -715,7 +722,9 @@ __exportStar(require("./SequenceInboundWebhookFieldMapping.js"), exports);
|
|
|
715
722
|
__exportStar(require("./SequenceInboundWebhookStatus.js"), exports);
|
|
716
723
|
__exportStar(require("./SequenceKeyDate.js"), exports);
|
|
717
724
|
__exportStar(require("./SequenceKeyDates.js"), exports);
|
|
725
|
+
__exportStar(require("./SequenceKeyDatesSendWindow.js"), exports);
|
|
718
726
|
__exportStar(require("./SequenceLinearStepInsertionInput.js"), exports);
|
|
727
|
+
__exportStar(require("./SequenceListItem.js"), exports);
|
|
719
728
|
__exportStar(require("./SequenceNode.js"), exports);
|
|
720
729
|
__exportStar(require("./SequenceNodeUpdateHints.js"), exports);
|
|
721
730
|
__exportStar(require("./SequenceNodeUpdateInput.js"), exports);
|
package/dist/esm/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/esm/Client.js
CHANGED
|
@@ -53,7 +53,12 @@ import { WebsitesClient } from "./api/resources/websites/client/Client.js";
|
|
|
53
53
|
import { WebTrackingKeysClient } from "./api/resources/webTrackingKeys/client/Client.js";
|
|
54
54
|
import { WidgetsClient } from "./api/resources/widgets/client/Client.js";
|
|
55
55
|
import { normalizeClientOptionsWithAuth } from "./BaseClient.js";
|
|
56
|
+
import { mergeHeaders } from "./core/headers.js";
|
|
56
57
|
import * as core from "./core/index.js";
|
|
58
|
+
import * as environments from "./environments.js";
|
|
59
|
+
import { handleNonStatusCodeError } from "./errors/handleNonStatusCodeError.js";
|
|
60
|
+
import * as errors from "./errors/index.js";
|
|
61
|
+
import * as serializers from "./serialization/index.js";
|
|
57
62
|
export class SequenzyClient {
|
|
58
63
|
constructor(options = {}) {
|
|
59
64
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
@@ -217,6 +222,56 @@ export class SequenzyClient {
|
|
|
217
222
|
get widgets() {
|
|
218
223
|
return (this._widgets ?? (this._widgets = new WidgetsClient(this._options)));
|
|
219
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* Static public metadata for directory crawlers. This is not an MCP transport. No credentials or parameters are required.
|
|
227
|
+
*
|
|
228
|
+
* @param {SequenzyClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
229
|
+
*
|
|
230
|
+
* @throws {@link errors.SequenzyError}
|
|
231
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* await client.getMcpDiscovery()
|
|
235
|
+
*/
|
|
236
|
+
getMcpDiscovery(requestOptions) {
|
|
237
|
+
return core.HttpResponsePromise.fromPromise(this.__getMcpDiscovery(requestOptions));
|
|
238
|
+
}
|
|
239
|
+
async __getMcpDiscovery(requestOptions) {
|
|
240
|
+
const _headers = mergeHeaders(this._options?.headers, requestOptions?.headers);
|
|
241
|
+
const _response = await core.fetcher({
|
|
242
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
243
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
244
|
+
environments.SequenzyEnvironment.Default, ".well-known/mcp.json"),
|
|
245
|
+
method: "GET",
|
|
246
|
+
headers: _headers,
|
|
247
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
248
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
249
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
250
|
+
abortSignal: requestOptions?.abortSignal,
|
|
251
|
+
fetchFn: this._options?.fetch,
|
|
252
|
+
logging: this._options.logging,
|
|
253
|
+
});
|
|
254
|
+
if (_response.ok) {
|
|
255
|
+
return {
|
|
256
|
+
data: serializers.GetMcpDiscoveryResponse.parseOrThrow(_response.body, {
|
|
257
|
+
unrecognizedObjectKeys: "passthrough",
|
|
258
|
+
allowUnrecognizedUnionMembers: true,
|
|
259
|
+
allowUnrecognizedEnumValues: true,
|
|
260
|
+
skipValidation: true,
|
|
261
|
+
breadcrumbsPrefix: ["response"],
|
|
262
|
+
}),
|
|
263
|
+
rawResponse: _response.rawResponse,
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
if (_response.error.reason === "status-code") {
|
|
267
|
+
throw new errors.SequenzyError({
|
|
268
|
+
statusCode: _response.error.statusCode,
|
|
269
|
+
body: _response.error.body,
|
|
270
|
+
rawResponse: _response.rawResponse,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/.well-known/mcp.json");
|
|
274
|
+
}
|
|
220
275
|
/**
|
|
221
276
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
222
277
|
* 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.
|
|
@@ -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, 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
|
|
83
|
+
* 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.
|
|
84
84
|
*
|
|
85
85
|
* @param {Sequenzy.ConnectIntegrationsRequest} request
|
|
86
86
|
* @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
|
*
|
|
@@ -450,6 +450,69 @@ export class TemplatesClient {
|
|
|
450
450
|
}
|
|
451
451
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/templates/{templateId}");
|
|
452
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* 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.
|
|
455
|
+
*
|
|
456
|
+
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
457
|
+
*
|
|
458
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
459
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
460
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
461
|
+
* @throws {@link errors.SequenzyError}
|
|
462
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
463
|
+
*
|
|
464
|
+
* @example
|
|
465
|
+
* await client.templates.getLocalizationCoverage()
|
|
466
|
+
*/
|
|
467
|
+
getLocalizationCoverage(requestOptions) {
|
|
468
|
+
return core.HttpResponsePromise.fromPromise(this.__getLocalizationCoverage(requestOptions));
|
|
469
|
+
}
|
|
470
|
+
async __getLocalizationCoverage(requestOptions) {
|
|
471
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
472
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
473
|
+
const _response = await core.fetcher({
|
|
474
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
475
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
476
|
+
environments.SequenzyEnvironment.Default, "templates/localizations/coverage"),
|
|
477
|
+
method: "GET",
|
|
478
|
+
headers: _headers,
|
|
479
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
480
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
481
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
482
|
+
abortSignal: requestOptions?.abortSignal,
|
|
483
|
+
fetchFn: this._options?.fetch,
|
|
484
|
+
logging: this._options.logging,
|
|
485
|
+
});
|
|
486
|
+
if (_response.ok) {
|
|
487
|
+
return {
|
|
488
|
+
data: serializers.GetLocalizationCoverageTemplatesResponse.parseOrThrow(_response.body, {
|
|
489
|
+
unrecognizedObjectKeys: "passthrough",
|
|
490
|
+
allowUnrecognizedUnionMembers: true,
|
|
491
|
+
allowUnrecognizedEnumValues: true,
|
|
492
|
+
skipValidation: true,
|
|
493
|
+
breadcrumbsPrefix: ["response"],
|
|
494
|
+
}),
|
|
495
|
+
rawResponse: _response.rawResponse,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
if (_response.error.reason === "status-code") {
|
|
499
|
+
switch (_response.error.statusCode) {
|
|
500
|
+
case 401:
|
|
501
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
502
|
+
case 404:
|
|
503
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
504
|
+
case 503:
|
|
505
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
506
|
+
default:
|
|
507
|
+
throw new errors.SequenzyError({
|
|
508
|
+
statusCode: _response.error.statusCode,
|
|
509
|
+
body: _response.error.body,
|
|
510
|
+
rawResponse: _response.rawResponse,
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/templates/localizations/coverage");
|
|
515
|
+
}
|
|
453
516
|
/**
|
|
454
517
|
* 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.
|
|
455
518
|
*
|
|
@@ -905,6 +968,82 @@ export class TemplatesClient {
|
|
|
905
968
|
}
|
|
906
969
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/templates/{templateId}/localizations/sync");
|
|
907
970
|
}
|
|
971
|
+
/**
|
|
972
|
+
* 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.
|
|
973
|
+
*
|
|
974
|
+
* @param {Sequenzy.TranslateMissingLocalizationsTemplatesRequest} request
|
|
975
|
+
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
976
|
+
*
|
|
977
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
978
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
979
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
980
|
+
* @throws {@link Sequenzy.InternalServerError}
|
|
981
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
982
|
+
* @throws {@link errors.SequenzyError}
|
|
983
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
984
|
+
*
|
|
985
|
+
* @example
|
|
986
|
+
* await client.templates.translateMissingLocalizations()
|
|
987
|
+
*/
|
|
988
|
+
translateMissingLocalizations(request = {}, requestOptions) {
|
|
989
|
+
return core.HttpResponsePromise.fromPromise(this.__translateMissingLocalizations(request, requestOptions));
|
|
990
|
+
}
|
|
991
|
+
async __translateMissingLocalizations(request = {}, requestOptions) {
|
|
992
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
993
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
994
|
+
const _response = await core.fetcher({
|
|
995
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
996
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
997
|
+
environments.SequenzyEnvironment.Default, "templates/localizations/translate-missing"),
|
|
998
|
+
method: "POST",
|
|
999
|
+
headers: _headers,
|
|
1000
|
+
contentType: "application/json",
|
|
1001
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1002
|
+
requestType: "json",
|
|
1003
|
+
body: mergeAdditionalBodyParameters(serializers.TranslateMissingLocalizationsTemplatesRequest.jsonOrThrow(request, {
|
|
1004
|
+
unrecognizedObjectKeys: "strip",
|
|
1005
|
+
omitUndefined: true,
|
|
1006
|
+
}), requestOptions?.additionalBodyParameters),
|
|
1007
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1008
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1009
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1010
|
+
fetchFn: this._options?.fetch,
|
|
1011
|
+
logging: this._options.logging,
|
|
1012
|
+
});
|
|
1013
|
+
if (_response.ok) {
|
|
1014
|
+
return {
|
|
1015
|
+
data: serializers.TranslateMissingLocalizationsTemplatesResponse.parseOrThrow(_response.body, {
|
|
1016
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1017
|
+
allowUnrecognizedUnionMembers: true,
|
|
1018
|
+
allowUnrecognizedEnumValues: true,
|
|
1019
|
+
skipValidation: true,
|
|
1020
|
+
breadcrumbsPrefix: ["response"],
|
|
1021
|
+
}),
|
|
1022
|
+
rawResponse: _response.rawResponse,
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
if (_response.error.reason === "status-code") {
|
|
1026
|
+
switch (_response.error.statusCode) {
|
|
1027
|
+
case 400:
|
|
1028
|
+
throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1029
|
+
case 401:
|
|
1030
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1031
|
+
case 404:
|
|
1032
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1033
|
+
case 500:
|
|
1034
|
+
throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1035
|
+
case 503:
|
|
1036
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1037
|
+
default:
|
|
1038
|
+
throw new errors.SequenzyError({
|
|
1039
|
+
statusCode: _response.error.statusCode,
|
|
1040
|
+
body: _response.error.body,
|
|
1041
|
+
rawResponse: _response.rawResponse,
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/templates/localizations/translate-missing");
|
|
1046
|
+
}
|
|
908
1047
|
/**
|
|
909
1048
|
* Updates template metadata, labels, or content. Transactional email IDs and slugs are also resolved for compatibility.
|
|
910
1049
|
*
|
|
@@ -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";
|