@novu/api 0.0.1-alpha.52 → 0.0.1-alpha.54
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/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/controlsdto.d.ts +25 -0
- package/models/components/controlsdto.d.ts.map +1 -0
- package/models/components/controlsdto.js +55 -0
- package/models/components/controlsdto.js.map +1 -0
- package/models/components/createintegrationrequestdto.d.ts +31 -1
- package/models/components/createintegrationrequestdto.d.ts.map +1 -1
- package/models/components/createintegrationrequestdto.js +3 -0
- package/models/components/createintegrationrequestdto.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +52 -4
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +7 -4
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +14 -26
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +6 -28
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/controlsdto.ts +54 -0
- package/src/models/components/createintegrationrequestdto.ts +31 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/integrationresponsedto.ts +56 -8
- package/src/models/components/triggereventrequestdto.ts +23 -55
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0";
|
|
30
|
-
readonly sdkVersion: "0.0.1-alpha.
|
|
30
|
+
readonly sdkVersion: "0.0.1-alpha.54";
|
|
31
31
|
readonly genVersion: "2.470.1";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.54 2.470.1 1.0 @novu/api";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -30,8 +30,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
|
|
|
30
30
|
exports.SDK_METADATA = {
|
|
31
31
|
language: "typescript",
|
|
32
32
|
openapiDocVersion: "1.0",
|
|
33
|
-
sdkVersion: "0.0.1-alpha.
|
|
33
|
+
sdkVersion: "0.0.1-alpha.54",
|
|
34
34
|
genVersion: "2.470.1",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.54 2.470.1 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ControlsDto = {};
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare const ControlsDto$inboundSchema: z.ZodType<ControlsDto, z.ZodTypeDef, unknown>;
|
|
7
|
+
/** @internal */
|
|
8
|
+
export type ControlsDto$Outbound = {};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ControlsDto$outboundSchema: z.ZodType<ControlsDto$Outbound, z.ZodTypeDef, ControlsDto>;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
14
|
+
*/
|
|
15
|
+
export declare namespace ControlsDto$ {
|
|
16
|
+
/** @deprecated use `ControlsDto$inboundSchema` instead. */
|
|
17
|
+
const inboundSchema: z.ZodType<ControlsDto, z.ZodTypeDef, unknown>;
|
|
18
|
+
/** @deprecated use `ControlsDto$outboundSchema` instead. */
|
|
19
|
+
const outboundSchema: z.ZodType<ControlsDto$Outbound, z.ZodTypeDef, ControlsDto>;
|
|
20
|
+
/** @deprecated use `ControlsDto$Outbound` instead. */
|
|
21
|
+
type Outbound = ControlsDto$Outbound;
|
|
22
|
+
}
|
|
23
|
+
export declare function controlsDtoToJSON(controlsDto: ControlsDto): string;
|
|
24
|
+
export declare function controlsDtoFromJSON(jsonString: string): SafeParseResult<ControlsDto, SDKValidationError>;
|
|
25
|
+
//# sourceMappingURL=controlsdto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controlsdto.d.ts","sourceRoot":"","sources":["../../src/models/components/controlsdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,EAAE,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CACO,CAAC;AAEjB,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CACG,CAAC;AAEjB;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IAC5B,2DAA2D;IACpD,MAAM,aAAa,+CAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc,4DAA6B,CAAC;IACzD,sDAAsD;IACtD,KAAY,QAAQ,GAAG,oBAAoB,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.controlsDtoFromJSON = exports.controlsDtoToJSON = exports.ControlsDto$ = exports.ControlsDto$outboundSchema = exports.ControlsDto$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
/** @internal */
|
|
33
|
+
exports.ControlsDto$inboundSchema = z.object({});
|
|
34
|
+
/** @internal */
|
|
35
|
+
exports.ControlsDto$outboundSchema = z.object({});
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
39
|
+
*/
|
|
40
|
+
var ControlsDto$;
|
|
41
|
+
(function (ControlsDto$) {
|
|
42
|
+
/** @deprecated use `ControlsDto$inboundSchema` instead. */
|
|
43
|
+
ControlsDto$.inboundSchema = exports.ControlsDto$inboundSchema;
|
|
44
|
+
/** @deprecated use `ControlsDto$outboundSchema` instead. */
|
|
45
|
+
ControlsDto$.outboundSchema = exports.ControlsDto$outboundSchema;
|
|
46
|
+
})(ControlsDto$ || (exports.ControlsDto$ = ControlsDto$ = {}));
|
|
47
|
+
function controlsDtoToJSON(controlsDto) {
|
|
48
|
+
return JSON.stringify(exports.ControlsDto$outboundSchema.parse(controlsDto));
|
|
49
|
+
}
|
|
50
|
+
exports.controlsDtoToJSON = controlsDtoToJSON;
|
|
51
|
+
function controlsDtoFromJSON(jsonString) {
|
|
52
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ControlsDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ControlsDto' from JSON`);
|
|
53
|
+
}
|
|
54
|
+
exports.controlsDtoFromJSON = controlsDtoFromJSON;
|
|
55
|
+
//# sourceMappingURL=controlsdto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controlsdto.js","sourceRoot":"","sources":["../../src/models/components/controlsdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAMjD,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,YAAY,CAO5B;AAPD,WAAiB,YAAY;IAC3B,2DAA2D;IAC9C,0BAAa,GAAG,iCAAyB,CAAC;IACvD,4DAA4D;IAC/C,2BAAc,GAAG,kCAA0B,CAAC;AAG3D,CAAC,EAPgB,YAAY,4BAAZ,YAAY,QAO5B;AAED,SAAgB,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,kCAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AAFD,8CAEC;AAED,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC;AARD,kDAQC"}
|
|
@@ -4,6 +4,9 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
import { CredentialsDto, CredentialsDto$Outbound } from "./credentialsdto.js";
|
|
6
6
|
import { StepFilter, StepFilter$Outbound } from "./stepfilter.js";
|
|
7
|
+
/**
|
|
8
|
+
* The channel type for the integration
|
|
9
|
+
*/
|
|
7
10
|
export declare const CreateIntegrationRequestDtoChannel: {
|
|
8
11
|
readonly InApp: "in_app";
|
|
9
12
|
readonly Email: "email";
|
|
@@ -11,19 +14,46 @@ export declare const CreateIntegrationRequestDtoChannel: {
|
|
|
11
14
|
readonly Chat: "chat";
|
|
12
15
|
readonly Push: "push";
|
|
13
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* The channel type for the integration
|
|
19
|
+
*/
|
|
14
20
|
export type CreateIntegrationRequestDtoChannel = ClosedEnum<typeof CreateIntegrationRequestDtoChannel>;
|
|
15
21
|
export type CreateIntegrationRequestDto = {
|
|
22
|
+
/**
|
|
23
|
+
* The name of the integration
|
|
24
|
+
*/
|
|
16
25
|
name?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The unique identifier for the integration
|
|
28
|
+
*/
|
|
17
29
|
identifier?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the associated environment
|
|
32
|
+
*/
|
|
18
33
|
environmentId?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The provider ID for the integration
|
|
36
|
+
*/
|
|
19
37
|
providerId: string;
|
|
38
|
+
/**
|
|
39
|
+
* The channel type for the integration
|
|
40
|
+
*/
|
|
20
41
|
channel: CreateIntegrationRequestDtoChannel;
|
|
42
|
+
/**
|
|
43
|
+
* The credentials for the integration
|
|
44
|
+
*/
|
|
21
45
|
credentials?: CredentialsDto | undefined;
|
|
22
46
|
/**
|
|
23
|
-
* If the integration is active the validation on the credentials field will run
|
|
47
|
+
* If the integration is active, the validation on the credentials field will run
|
|
24
48
|
*/
|
|
25
49
|
active?: boolean | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Flag to check the integration status
|
|
52
|
+
*/
|
|
26
53
|
check?: boolean | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Conditions for the integration
|
|
56
|
+
*/
|
|
27
57
|
conditions?: Array<StepFilter> | undefined;
|
|
28
58
|
};
|
|
29
59
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createintegrationrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/createintegrationrequestdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CA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AM,MAAM,oCAAoC,GAAG;IACjD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAClD,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAe3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D;AAED,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
1
|
+
{"version":3,"file":"createintegrationrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/createintegrationrequestdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,E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ACrD;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAClD,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAe3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D;AAED,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -32,6 +32,9 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
32
32
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
33
33
|
const credentialsdto_js_1 = require("./credentialsdto.js");
|
|
34
34
|
const stepfilter_js_1 = require("./stepfilter.js");
|
|
35
|
+
/**
|
|
36
|
+
* The channel type for the integration
|
|
37
|
+
*/
|
|
35
38
|
exports.CreateIntegrationRequestDtoChannel = {
|
|
36
39
|
InApp: "in_app",
|
|
37
40
|
Email: "email",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createintegrationrequestdto.js","sourceRoot":"","sources":["../../src/models/components/createintegrationrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,2DAK6B;AAC7B,mDAKyB;
|
|
1
|
+
{"version":3,"file":"createintegrationrequestdto.js","sourceRoot":"","sources":["../../src/models/components/createintegrationrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,2DAK6B;AAC7B,mDAKyB;AAEzB;;GAEG;AACU,QAAA,kCAAkC,GAAG;IAChD,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AA+CX,gBAAgB;AACH,QAAA,gDAAgD,GAEzD,CAAC,CAAC,UAAU,CAAC,0CAAkC,CAAC,CAAC;AAErD,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,wDAAgD,CAAC;AAErD;;;GAGG;AACH,IAAiB,mCAAmC,CAMnD;AAND,WAAiB,mCAAmC;IAClD,kFAAkF;IACrE,iDAAa,GAAG,wDAAgD,CAAC;IAC9E,mFAAmF;IACtE,kDAAc,GACzB,yDAAiD,CAAC;AACtD,CAAC,EANgB,mCAAmC,mDAAnC,mCAAmC,QAMnD;AAED,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC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,EAAE;CAC1D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C;AAED,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AARD,8EAQC;AAED,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC;AARD,kFAQC"}
|
|
@@ -12,6 +12,7 @@ export * from "./channelcredentials.js";
|
|
|
12
12
|
export * from "./channelcredentialsdto.js";
|
|
13
13
|
export * from "./channelpreference.js";
|
|
14
14
|
export * from "./channelsettings.js";
|
|
15
|
+
export * from "./controlsdto.js";
|
|
15
16
|
export * from "./createintegrationrequestdto.js";
|
|
16
17
|
export * from "./createnotificationgrouprequestdto.js";
|
|
17
18
|
export * from "./createsubscriberrequestdto.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAA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zC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC"}
|
|
@@ -31,6 +31,7 @@ __exportStar(require("./channelcredentials.js"), exports);
|
|
|
31
31
|
__exportStar(require("./channelcredentialsdto.js"), exports);
|
|
32
32
|
__exportStar(require("./channelpreference.js"), exports);
|
|
33
33
|
__exportStar(require("./channelsettings.js"), exports);
|
|
34
|
+
__exportStar(require("./controlsdto.js"), exports);
|
|
34
35
|
__exportStar(require("./createintegrationrequestdto.js"), exports);
|
|
35
36
|
__exportStar(require("./createnotificationgrouprequestdto.js"), exports);
|
|
36
37
|
__exportStar(require("./createsubscriberrequestdto.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;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C3D,kEAAgD;AAChD,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,mEAAiD;AACjD,uEAAqD;AACrD,iFAA+D;AAC/D,+EAA6D;AAC7D,gEAA8C;AAC9C,gEAA8C;AAC9C,8CAA4B;AAC5B,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,uDAAqC;AACrC,mDAAiC;AACjC,mEAAiD;AACjD,yEAAuD;AACvD,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,0EAAwD;AACxD,mEAAiD;AACjD,6DAA2C;AAC3C,2DAAyC;AACzC,kDAAgC;AAChC,wDAAsC;AACtC,8DAA4C;AAC5C,mEAAiD;AACjD,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C;AAC7C,2EAAyD;AACzD,2DAAyC;AACzC,8DAA4C;AAC5C,kEAAgD;AAChD,kEAAgD;AAChD,qDAAmC;AACnC,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,oEAAkD;AAClD,wDAAsC;AACtC,+DAA6C;AAC7C,2DAAyC;AACzC,mEAAiD;AACjD,kDAAgC;AAChC,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,8DAA4C;AAC5C,gDAA8B;AAC9B,kDAAgC;AAChC,4DAA0C;AAC1C,4DAA0C;AAC1C,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,2DAAyC;AACzC,mEAAiD;AACjD,yEAAuD;AACvD,mFAAiE;AACjE,4EAA0D;AAC1D,4EAA0D;AAC1D,6EAA2D;AAC3D,kEAAgD;AAChD,wDAAsC"}
|
|
@@ -4,6 +4,9 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
import { CredentialsDto, CredentialsDto$Outbound } from "./credentialsdto.js";
|
|
6
6
|
import { StepFilter, StepFilter$Outbound } from "./stepfilter.js";
|
|
7
|
+
/**
|
|
8
|
+
* The channel type for the integration, which defines how the integration communicates (e.g., email, SMS).
|
|
9
|
+
*/
|
|
7
10
|
export declare const IntegrationResponseDtoChannel: {
|
|
8
11
|
readonly InApp: "in_app";
|
|
9
12
|
readonly Email: "email";
|
|
@@ -11,21 +14,66 @@ export declare const IntegrationResponseDtoChannel: {
|
|
|
11
14
|
readonly Chat: "chat";
|
|
12
15
|
readonly Push: "push";
|
|
13
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* The channel type for the integration, which defines how the integration communicates (e.g., email, SMS).
|
|
19
|
+
*/
|
|
14
20
|
export type IntegrationResponseDtoChannel = ClosedEnum<typeof IntegrationResponseDtoChannel>;
|
|
15
21
|
export type IntegrationResponseDto = {
|
|
22
|
+
/**
|
|
23
|
+
* The unique identifier of the integration record in the database. This is automatically generated.
|
|
24
|
+
*/
|
|
16
25
|
id?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The unique identifier for the environment associated with this integration. This links to the Environment collection.
|
|
28
|
+
*/
|
|
17
29
|
environmentId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The unique identifier for the organization that owns this integration. This links to the Organization collection.
|
|
32
|
+
*/
|
|
18
33
|
organizationId: string;
|
|
34
|
+
/**
|
|
35
|
+
* The name of the integration, which is used to identify it in the user interface.
|
|
36
|
+
*/
|
|
19
37
|
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* A unique string identifier for the integration, often used for API calls or internal references.
|
|
40
|
+
*/
|
|
20
41
|
identifier: string;
|
|
42
|
+
/**
|
|
43
|
+
* The identifier for the provider of the integration (e.g., "mailgun", "twilio").
|
|
44
|
+
*/
|
|
21
45
|
providerId: string;
|
|
46
|
+
/**
|
|
47
|
+
* The channel type for the integration, which defines how the integration communicates (e.g., email, SMS).
|
|
48
|
+
*/
|
|
22
49
|
channel: IntegrationResponseDtoChannel;
|
|
50
|
+
/**
|
|
51
|
+
* The credentials required for the integration to function, including API keys and other sensitive information.
|
|
52
|
+
*/
|
|
23
53
|
credentials: CredentialsDto;
|
|
54
|
+
/**
|
|
55
|
+
* Indicates whether the integration is currently active. An active integration will process events and messages.
|
|
56
|
+
*/
|
|
24
57
|
active: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Indicates whether the integration has been marked as deleted (soft delete).
|
|
60
|
+
*/
|
|
25
61
|
deleted: boolean;
|
|
26
|
-
|
|
27
|
-
|
|
62
|
+
/**
|
|
63
|
+
* The timestamp indicating when the integration was deleted. This is set when the integration is soft deleted.
|
|
64
|
+
*/
|
|
65
|
+
deletedAt?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The identifier of the user who performed the deletion of this integration. Useful for audit trails.
|
|
68
|
+
*/
|
|
69
|
+
deletedBy?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates whether this integration is marked as primary. A primary integration is often the default choice for processing.
|
|
72
|
+
*/
|
|
28
73
|
primary: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* An array of conditions associated with the integration that may influence its behavior or processing logic.
|
|
76
|
+
*/
|
|
29
77
|
conditions?: Array<StepFilter> | undefined;
|
|
30
78
|
};
|
|
31
79
|
/** @internal */
|
|
@@ -68,8 +116,8 @@ export type IntegrationResponseDto$Outbound = {
|
|
|
68
116
|
credentials: CredentialsDto$Outbound;
|
|
69
117
|
active: boolean;
|
|
70
118
|
deleted: boolean;
|
|
71
|
-
deletedAt
|
|
72
|
-
deletedBy
|
|
119
|
+
deletedAt?: string | undefined;
|
|
120
|
+
deletedBy?: string | undefined;
|
|
73
121
|
primary: boolean;
|
|
74
122
|
conditions?: Array<StepFilter$Outbound> | undefined;
|
|
75
123
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/integrationresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,6BAA6B;;;;;;CAMhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,6BAA6B,CAAC;IACvC,WAAW,EAAE,cAAc,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"integrationresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/integrationresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC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AAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD;AAED,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -32,6 +32,9 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
32
32
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
33
33
|
const credentialsdto_js_1 = require("./credentialsdto.js");
|
|
34
34
|
const stepfilter_js_1 = require("./stepfilter.js");
|
|
35
|
+
/**
|
|
36
|
+
* The channel type for the integration, which defines how the integration communicates (e.g., email, SMS).
|
|
37
|
+
*/
|
|
35
38
|
exports.IntegrationResponseDtoChannel = {
|
|
36
39
|
InApp: "in_app",
|
|
37
40
|
Email: "email",
|
|
@@ -66,8 +69,8 @@ exports.IntegrationResponseDto$inboundSchema = z.object({
|
|
|
66
69
|
credentials: credentialsdto_js_1.CredentialsDto$inboundSchema,
|
|
67
70
|
active: z.boolean(),
|
|
68
71
|
deleted: z.boolean(),
|
|
69
|
-
deletedAt: z.string(),
|
|
70
|
-
deletedBy: z.string(),
|
|
72
|
+
deletedAt: z.string().optional(),
|
|
73
|
+
deletedBy: z.string().optional(),
|
|
71
74
|
primary: z.boolean(),
|
|
72
75
|
conditions: z.array(stepfilter_js_1.StepFilter$inboundSchema).optional(),
|
|
73
76
|
}).transform((v) => {
|
|
@@ -89,8 +92,8 @@ exports.IntegrationResponseDto$outboundSchema = z.object({
|
|
|
89
92
|
credentials: credentialsdto_js_1.CredentialsDto$outboundSchema,
|
|
90
93
|
active: z.boolean(),
|
|
91
94
|
deleted: z.boolean(),
|
|
92
|
-
deletedAt: z.string(),
|
|
93
|
-
deletedBy: z.string(),
|
|
95
|
+
deletedAt: z.string().optional(),
|
|
96
|
+
deletedBy: z.string().optional(),
|
|
94
97
|
primary: z.boolean(),
|
|
95
98
|
conditions: z.array(stepfilter_js_1.StepFilter$outboundSchema).optional(),
|
|
96
99
|
}).transform((v) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationresponsedto.js","sourceRoot":"","sources":["../../src/models/components/integrationresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,2DAK6B;AAC7B,mDAKyB;
|
|
1
|
+
{"version":3,"file":"integrationresponsedto.js","sourceRoot":"","sources":["../../src/models/components/integrationresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,2DAK6B;AAC7B,mDAKyB;AAEzB;;GAEG;AACU,QAAA,6BAA6B,GAAG;IAC3C,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAmEX,gBAAgB;AACH,QAAA,2CAA2C,GAEpD,CAAC,CAAC,UAAU,CAAC,qCAA6B,CAAC,CAAC;AAEhD,gBAAgB;AACH,QAAA,4CAA4C,GAErD,mDAA2C,CAAC;AAEhD;;;GAGG;AACH,IAAiB,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAC7E,CAAC,EALgB,8BAA8B,8CAA9B,8BAA8B,QAK9C;AAED,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAA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,CAAC,OAAO,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,yCAAyB,CAAC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,EAAE,EAAE,KAAK;QACT,aAAa,EAAE,gBAAgB;QAC/B,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,4CAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,6CAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC;AAED,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAND,oEAMC;AAED,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC;AARD,wEAQC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { ControlsDto, ControlsDto$Outbound } from "./controlsdto.js";
|
|
4
5
|
import { SubscriberPayloadDto, SubscriberPayloadDto$Outbound } from "./subscriberpayloaddto.js";
|
|
5
6
|
import { TenantPayloadDto, TenantPayloadDto$Outbound } from "./tenantpayloaddto.js";
|
|
6
7
|
import { TopicPayloadDto, TopicPayloadDto$Outbound } from "./topicpayloaddto.js";
|
|
@@ -13,6 +14,7 @@ export type To = TopicPayloadDto | SubscriberPayloadDto | string;
|
|
|
13
14
|
* It is used to display the Avatar of the provided actor's subscriber id or actor object.
|
|
14
15
|
*
|
|
15
16
|
* @remarks
|
|
17
|
+
*
|
|
16
18
|
* If a new actor object is provided, we will create a new subscriber in our system
|
|
17
19
|
*/
|
|
18
20
|
export type Actor = SubscriberPayloadDto | string;
|
|
@@ -23,7 +25,6 @@ export type Actor = SubscriberPayloadDto | string;
|
|
|
23
25
|
* Existing tenants will be updated with the provided details.
|
|
24
26
|
*/
|
|
25
27
|
export type Tenant = TenantPayloadDto | string;
|
|
26
|
-
export type Controls = {};
|
|
27
28
|
export type TriggerEventRequestDto = {
|
|
28
29
|
/**
|
|
29
30
|
* The trigger identifier of the workflow you wish to send. This identifier can be found on the workflow page.
|
|
@@ -38,6 +39,10 @@ export type TriggerEventRequestDto = {
|
|
|
38
39
|
payload?: {
|
|
39
40
|
[k: string]: any;
|
|
40
41
|
} | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* A URL to bridge for additional processing.
|
|
44
|
+
*/
|
|
45
|
+
bridgeUrl?: string | undefined;
|
|
41
46
|
/**
|
|
42
47
|
* This could be used to override provider specific configurations
|
|
43
48
|
*/
|
|
@@ -47,13 +52,14 @@ export type TriggerEventRequestDto = {
|
|
|
47
52
|
*/
|
|
48
53
|
to: Array<TopicPayloadDto | SubscriberPayloadDto | string>;
|
|
49
54
|
/**
|
|
50
|
-
* A unique identifier for this transaction, we will
|
|
55
|
+
* A unique identifier for this transaction, we will generate a UUID if not provided.
|
|
51
56
|
*/
|
|
52
57
|
transactionId?: string | undefined;
|
|
53
58
|
/**
|
|
54
59
|
* It is used to display the Avatar of the provided actor's subscriber id or actor object.
|
|
55
60
|
*
|
|
56
61
|
* @remarks
|
|
62
|
+
*
|
|
57
63
|
* If a new actor object is provided, we will create a new subscriber in our system
|
|
58
64
|
*/
|
|
59
65
|
actor?: SubscriberPayloadDto | string | undefined;
|
|
@@ -64,8 +70,10 @@ export type TriggerEventRequestDto = {
|
|
|
64
70
|
* Existing tenants will be updated with the provided details.
|
|
65
71
|
*/
|
|
66
72
|
tenant?: TenantPayloadDto | string | undefined;
|
|
67
|
-
|
|
68
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Additional control configurations.
|
|
75
|
+
*/
|
|
76
|
+
controls?: ControlsDto | undefined;
|
|
69
77
|
};
|
|
70
78
|
/** @internal */
|
|
71
79
|
export declare const Overrides$inboundSchema: z.ZodType<Overrides, z.ZodTypeDef, unknown>;
|
|
@@ -148,26 +156,6 @@ export declare namespace Tenant$ {
|
|
|
148
156
|
export declare function tenantToJSON(tenant: Tenant): string;
|
|
149
157
|
export declare function tenantFromJSON(jsonString: string): SafeParseResult<Tenant, SDKValidationError>;
|
|
150
158
|
/** @internal */
|
|
151
|
-
export declare const Controls$inboundSchema: z.ZodType<Controls, z.ZodTypeDef, unknown>;
|
|
152
|
-
/** @internal */
|
|
153
|
-
export type Controls$Outbound = {};
|
|
154
|
-
/** @internal */
|
|
155
|
-
export declare const Controls$outboundSchema: z.ZodType<Controls$Outbound, z.ZodTypeDef, Controls>;
|
|
156
|
-
/**
|
|
157
|
-
* @internal
|
|
158
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
159
|
-
*/
|
|
160
|
-
export declare namespace Controls$ {
|
|
161
|
-
/** @deprecated use `Controls$inboundSchema` instead. */
|
|
162
|
-
const inboundSchema: z.ZodType<Controls, z.ZodTypeDef, unknown>;
|
|
163
|
-
/** @deprecated use `Controls$outboundSchema` instead. */
|
|
164
|
-
const outboundSchema: z.ZodType<Controls$Outbound, z.ZodTypeDef, Controls>;
|
|
165
|
-
/** @deprecated use `Controls$Outbound` instead. */
|
|
166
|
-
type Outbound = Controls$Outbound;
|
|
167
|
-
}
|
|
168
|
-
export declare function controlsToJSON(controls: Controls): string;
|
|
169
|
-
export declare function controlsFromJSON(jsonString: string): SafeParseResult<Controls, SDKValidationError>;
|
|
170
|
-
/** @internal */
|
|
171
159
|
export declare const TriggerEventRequestDto$inboundSchema: z.ZodType<TriggerEventRequestDto, z.ZodTypeDef, unknown>;
|
|
172
160
|
/** @internal */
|
|
173
161
|
export type TriggerEventRequestDto$Outbound = {
|
|
@@ -175,13 +163,13 @@ export type TriggerEventRequestDto$Outbound = {
|
|
|
175
163
|
payload?: {
|
|
176
164
|
[k: string]: any;
|
|
177
165
|
} | undefined;
|
|
166
|
+
bridgeUrl?: string | undefined;
|
|
178
167
|
overrides?: Overrides$Outbound | undefined;
|
|
179
168
|
to: Array<TopicPayloadDto$Outbound | SubscriberPayloadDto$Outbound | string>;
|
|
180
169
|
transactionId?: string | undefined;
|
|
181
170
|
actor?: SubscriberPayloadDto$Outbound | string | undefined;
|
|
182
171
|
tenant?: TenantPayloadDto$Outbound | string | undefined;
|
|
183
|
-
|
|
184
|
-
controls?: Controls$Outbound | undefined;
|
|
172
|
+
controls?: ControlsDto$Outbound | undefined;
|
|
185
173
|
};
|
|
186
174
|
/** @internal */
|
|
187
175
|
export declare const TriggerEventRequestDto$outboundSchema: z.ZodType<TriggerEventRequestDto$Outbound, z.ZodTypeDef, TriggerEventRequestDto>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggereventrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/triggereventrequestdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,EAAE,CAAC;AAE3B,MAAM,MAAM,EAAE,GAAG,eAAe,GAAG,oBAAoB,GAAG,MAAM,CAAC;AAEjE
|
|
1
|
+
{"version":3,"file":"triggereventrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/triggereventrequestdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,EAAE,CAAC;AAE3B,MAAM,MAAM,EAAE,GAAG,eAAe,GAAG,oBAAoB,GAAG,MAAM,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,oBAAoB,GAAG,MAAM,CAAC;AAElD;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAE/C,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IAC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AS,CAAC;IAC/B,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC3C,EAAE,EAAE,KAAK,CAAC,wBAAwB,GAAG,6BAA6B,GAAG,MAAM,CAAC,CAAC;IAC7E,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,KAAK,CAAC,EAAE,6BAA6B,GAAG,MAAM,GAAG,SAAS,CAAC;IAC3D,MAAM,CAAC,EAAE,yBAAyB,GAAG,MAAM,GAAG,SAAS,CAAC;IACxD,QAAQ,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAiBtB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD;AAED,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -26,9 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.triggerEventRequestDtoFromJSON = exports.triggerEventRequestDtoToJSON = exports.TriggerEventRequestDto$ = exports.TriggerEventRequestDto$outboundSchema = exports.TriggerEventRequestDto$inboundSchema = exports.
|
|
29
|
+
exports.triggerEventRequestDtoFromJSON = exports.triggerEventRequestDtoToJSON = exports.TriggerEventRequestDto$ = exports.TriggerEventRequestDto$outboundSchema = exports.TriggerEventRequestDto$inboundSchema = exports.tenantFromJSON = exports.tenantToJSON = exports.Tenant$ = exports.Tenant$outboundSchema = exports.Tenant$inboundSchema = exports.actorFromJSON = exports.actorToJSON = exports.Actor$ = exports.Actor$outboundSchema = exports.Actor$inboundSchema = exports.toFromJSON = exports.toToJSON = exports.To$ = exports.To$outboundSchema = exports.To$inboundSchema = exports.overridesFromJSON = exports.overridesToJSON = exports.Overrides$ = exports.Overrides$outboundSchema = exports.Overrides$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
const controlsdto_js_1 = require("./controlsdto.js");
|
|
32
33
|
const subscriberpayloaddto_js_1 = require("./subscriberpayloaddto.js");
|
|
33
34
|
const tenantpayloaddto_js_1 = require("./tenantpayloaddto.js");
|
|
34
35
|
const topicpayloaddto_js_1 = require("./topicpayloaddto.js");
|
|
@@ -136,32 +137,10 @@ function tenantFromJSON(jsonString) {
|
|
|
136
137
|
}
|
|
137
138
|
exports.tenantFromJSON = tenantFromJSON;
|
|
138
139
|
/** @internal */
|
|
139
|
-
exports.Controls$inboundSchema = z.object({});
|
|
140
|
-
/** @internal */
|
|
141
|
-
exports.Controls$outboundSchema = z.object({});
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
145
|
-
*/
|
|
146
|
-
var Controls$;
|
|
147
|
-
(function (Controls$) {
|
|
148
|
-
/** @deprecated use `Controls$inboundSchema` instead. */
|
|
149
|
-
Controls$.inboundSchema = exports.Controls$inboundSchema;
|
|
150
|
-
/** @deprecated use `Controls$outboundSchema` instead. */
|
|
151
|
-
Controls$.outboundSchema = exports.Controls$outboundSchema;
|
|
152
|
-
})(Controls$ || (exports.Controls$ = Controls$ = {}));
|
|
153
|
-
function controlsToJSON(controls) {
|
|
154
|
-
return JSON.stringify(exports.Controls$outboundSchema.parse(controls));
|
|
155
|
-
}
|
|
156
|
-
exports.controlsToJSON = controlsToJSON;
|
|
157
|
-
function controlsFromJSON(jsonString) {
|
|
158
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Controls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Controls' from JSON`);
|
|
159
|
-
}
|
|
160
|
-
exports.controlsFromJSON = controlsFromJSON;
|
|
161
|
-
/** @internal */
|
|
162
140
|
exports.TriggerEventRequestDto$inboundSchema = z.object({
|
|
163
141
|
name: z.string(),
|
|
164
142
|
payload: z.record(z.any()).optional(),
|
|
143
|
+
bridgeUrl: z.string().optional(),
|
|
165
144
|
overrides: z.lazy(() => exports.Overrides$inboundSchema).optional(),
|
|
166
145
|
to: z.array(z.union([
|
|
167
146
|
topicpayloaddto_js_1.TopicPayloadDto$inboundSchema,
|
|
@@ -171,13 +150,13 @@ exports.TriggerEventRequestDto$inboundSchema = z.object({
|
|
|
171
150
|
transactionId: z.string().optional(),
|
|
172
151
|
actor: z.union([subscriberpayloaddto_js_1.SubscriberPayloadDto$inboundSchema, z.string()]).optional(),
|
|
173
152
|
tenant: z.union([tenantpayloaddto_js_1.TenantPayloadDto$inboundSchema, z.string()]).optional(),
|
|
174
|
-
|
|
175
|
-
controls: z.lazy(() => exports.Controls$inboundSchema).optional(),
|
|
153
|
+
controls: controlsdto_js_1.ControlsDto$inboundSchema.optional(),
|
|
176
154
|
});
|
|
177
155
|
/** @internal */
|
|
178
156
|
exports.TriggerEventRequestDto$outboundSchema = z.object({
|
|
179
157
|
name: z.string(),
|
|
180
158
|
payload: z.record(z.any()).optional(),
|
|
159
|
+
bridgeUrl: z.string().optional(),
|
|
181
160
|
overrides: z.lazy(() => exports.Overrides$outboundSchema).optional(),
|
|
182
161
|
to: z.array(z.union([
|
|
183
162
|
topicpayloaddto_js_1.TopicPayloadDto$outboundSchema,
|
|
@@ -187,8 +166,7 @@ exports.TriggerEventRequestDto$outboundSchema = z.object({
|
|
|
187
166
|
transactionId: z.string().optional(),
|
|
188
167
|
actor: z.union([subscriberpayloaddto_js_1.SubscriberPayloadDto$outboundSchema, z.string()]).optional(),
|
|
189
168
|
tenant: z.union([tenantpayloaddto_js_1.TenantPayloadDto$outboundSchema, z.string()]).optional(),
|
|
190
|
-
|
|
191
|
-
controls: z.lazy(() => exports.Controls$outboundSchema).optional(),
|
|
169
|
+
controls: controlsdto_js_1.ControlsDto$outboundSchema.optional(),
|
|
192
170
|
});
|
|
193
171
|
/**
|
|
194
172
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggereventrequestdto.js","sourceRoot":"","sources":["../../src/models/components/triggereventrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AACnC,+DAK+B;AAC/B,6DAK8B;
|
|
1
|
+
{"version":3,"file":"triggereventrequestdto.js","sourceRoot":"","sources":["../../src/models/components/triggereventrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,qDAK0B;AAC1B,uEAKmC;AACnC,+DAK+B;AAC/B,6DAK8B;AA2E9B,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,UAAU,CAO1B;AAPD,WAAiB,UAAU;IACzB,yDAAyD;IAC5C,wBAAa,GAAG,+BAAuB,CAAC;IACrD,0DAA0D;IAC7C,yBAAc,GAAG,gCAAwB,CAAC;AAGzD,CAAC,EAPgB,UAAU,0BAAV,UAAU,QAO1B;AAED,SAAgB,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAA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kB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC;AARD,wEAQC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0",
|
|
58
|
-
sdkVersion: "0.0.1-alpha.
|
|
58
|
+
sdkVersion: "0.0.1-alpha.54",
|
|
59
59
|
genVersion: "2.470.1",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.54 2.470.1 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type ControlsDto = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const ControlsDto$inboundSchema: z.ZodType<
|
|
14
|
+
ControlsDto,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type ControlsDto$Outbound = {};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ControlsDto$outboundSchema: z.ZodType<
|
|
24
|
+
ControlsDto$Outbound,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
ControlsDto
|
|
27
|
+
> = z.object({});
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export namespace ControlsDto$ {
|
|
34
|
+
/** @deprecated use `ControlsDto$inboundSchema` instead. */
|
|
35
|
+
export const inboundSchema = ControlsDto$inboundSchema;
|
|
36
|
+
/** @deprecated use `ControlsDto$outboundSchema` instead. */
|
|
37
|
+
export const outboundSchema = ControlsDto$outboundSchema;
|
|
38
|
+
/** @deprecated use `ControlsDto$Outbound` instead. */
|
|
39
|
+
export type Outbound = ControlsDto$Outbound;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function controlsDtoToJSON(controlsDto: ControlsDto): string {
|
|
43
|
+
return JSON.stringify(ControlsDto$outboundSchema.parse(controlsDto));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function controlsDtoFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<ControlsDto, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => ControlsDto$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'ControlsDto' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -21,6 +21,9 @@ import {
|
|
|
21
21
|
StepFilter$outboundSchema,
|
|
22
22
|
} from "./stepfilter.js";
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* The channel type for the integration
|
|
26
|
+
*/
|
|
24
27
|
export const CreateIntegrationRequestDtoChannel = {
|
|
25
28
|
InApp: "in_app",
|
|
26
29
|
Email: "email",
|
|
@@ -28,22 +31,49 @@ export const CreateIntegrationRequestDtoChannel = {
|
|
|
28
31
|
Chat: "chat",
|
|
29
32
|
Push: "push",
|
|
30
33
|
} as const;
|
|
34
|
+
/**
|
|
35
|
+
* The channel type for the integration
|
|
36
|
+
*/
|
|
31
37
|
export type CreateIntegrationRequestDtoChannel = ClosedEnum<
|
|
32
38
|
typeof CreateIntegrationRequestDtoChannel
|
|
33
39
|
>;
|
|
34
40
|
|
|
35
41
|
export type CreateIntegrationRequestDto = {
|
|
42
|
+
/**
|
|
43
|
+
* The name of the integration
|
|
44
|
+
*/
|
|
36
45
|
name?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The unique identifier for the integration
|
|
48
|
+
*/
|
|
37
49
|
identifier?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The ID of the associated environment
|
|
52
|
+
*/
|
|
38
53
|
environmentId?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* The provider ID for the integration
|
|
56
|
+
*/
|
|
39
57
|
providerId: string;
|
|
58
|
+
/**
|
|
59
|
+
* The channel type for the integration
|
|
60
|
+
*/
|
|
40
61
|
channel: CreateIntegrationRequestDtoChannel;
|
|
62
|
+
/**
|
|
63
|
+
* The credentials for the integration
|
|
64
|
+
*/
|
|
41
65
|
credentials?: CredentialsDto | undefined;
|
|
42
66
|
/**
|
|
43
|
-
* If the integration is active the validation on the credentials field will run
|
|
67
|
+
* If the integration is active, the validation on the credentials field will run
|
|
44
68
|
*/
|
|
45
69
|
active?: boolean | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Flag to check the integration status
|
|
72
|
+
*/
|
|
46
73
|
check?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Conditions for the integration
|
|
76
|
+
*/
|
|
47
77
|
conditions?: Array<StepFilter> | undefined;
|
|
48
78
|
};
|
|
49
79
|
|
|
@@ -16,6 +16,7 @@ export * from "./channelcredentials.js";
|
|
|
16
16
|
export * from "./channelcredentialsdto.js";
|
|
17
17
|
export * from "./channelpreference.js";
|
|
18
18
|
export * from "./channelsettings.js";
|
|
19
|
+
export * from "./controlsdto.js";
|
|
19
20
|
export * from "./createintegrationrequestdto.js";
|
|
20
21
|
export * from "./createnotificationgrouprequestdto.js";
|
|
21
22
|
export * from "./createsubscriberrequestdto.js";
|
|
@@ -21,6 +21,9 @@ import {
|
|
|
21
21
|
StepFilter$outboundSchema,
|
|
22
22
|
} from "./stepfilter.js";
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* The channel type for the integration, which defines how the integration communicates (e.g., email, SMS).
|
|
26
|
+
*/
|
|
24
27
|
export const IntegrationResponseDtoChannel = {
|
|
25
28
|
InApp: "in_app",
|
|
26
29
|
Email: "email",
|
|
@@ -28,24 +31,69 @@ export const IntegrationResponseDtoChannel = {
|
|
|
28
31
|
Chat: "chat",
|
|
29
32
|
Push: "push",
|
|
30
33
|
} as const;
|
|
34
|
+
/**
|
|
35
|
+
* The channel type for the integration, which defines how the integration communicates (e.g., email, SMS).
|
|
36
|
+
*/
|
|
31
37
|
export type IntegrationResponseDtoChannel = ClosedEnum<
|
|
32
38
|
typeof IntegrationResponseDtoChannel
|
|
33
39
|
>;
|
|
34
40
|
|
|
35
41
|
export type IntegrationResponseDto = {
|
|
42
|
+
/**
|
|
43
|
+
* The unique identifier of the integration record in the database. This is automatically generated.
|
|
44
|
+
*/
|
|
36
45
|
id?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The unique identifier for the environment associated with this integration. This links to the Environment collection.
|
|
48
|
+
*/
|
|
37
49
|
environmentId: string;
|
|
50
|
+
/**
|
|
51
|
+
* The unique identifier for the organization that owns this integration. This links to the Organization collection.
|
|
52
|
+
*/
|
|
38
53
|
organizationId: string;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the integration, which is used to identify it in the user interface.
|
|
56
|
+
*/
|
|
39
57
|
name: string;
|
|
58
|
+
/**
|
|
59
|
+
* A unique string identifier for the integration, often used for API calls or internal references.
|
|
60
|
+
*/
|
|
40
61
|
identifier: string;
|
|
62
|
+
/**
|
|
63
|
+
* The identifier for the provider of the integration (e.g., "mailgun", "twilio").
|
|
64
|
+
*/
|
|
41
65
|
providerId: string;
|
|
66
|
+
/**
|
|
67
|
+
* The channel type for the integration, which defines how the integration communicates (e.g., email, SMS).
|
|
68
|
+
*/
|
|
42
69
|
channel: IntegrationResponseDtoChannel;
|
|
70
|
+
/**
|
|
71
|
+
* The credentials required for the integration to function, including API keys and other sensitive information.
|
|
72
|
+
*/
|
|
43
73
|
credentials: CredentialsDto;
|
|
74
|
+
/**
|
|
75
|
+
* Indicates whether the integration is currently active. An active integration will process events and messages.
|
|
76
|
+
*/
|
|
44
77
|
active: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Indicates whether the integration has been marked as deleted (soft delete).
|
|
80
|
+
*/
|
|
45
81
|
deleted: boolean;
|
|
46
|
-
|
|
47
|
-
|
|
82
|
+
/**
|
|
83
|
+
* The timestamp indicating when the integration was deleted. This is set when the integration is soft deleted.
|
|
84
|
+
*/
|
|
85
|
+
deletedAt?: string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* The identifier of the user who performed the deletion of this integration. Useful for audit trails.
|
|
88
|
+
*/
|
|
89
|
+
deletedBy?: string | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Indicates whether this integration is marked as primary. A primary integration is often the default choice for processing.
|
|
92
|
+
*/
|
|
48
93
|
primary: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* An array of conditions associated with the integration that may influence its behavior or processing logic.
|
|
96
|
+
*/
|
|
49
97
|
conditions?: Array<StepFilter> | undefined;
|
|
50
98
|
};
|
|
51
99
|
|
|
@@ -86,8 +134,8 @@ export const IntegrationResponseDto$inboundSchema: z.ZodType<
|
|
|
86
134
|
credentials: CredentialsDto$inboundSchema,
|
|
87
135
|
active: z.boolean(),
|
|
88
136
|
deleted: z.boolean(),
|
|
89
|
-
deletedAt: z.string(),
|
|
90
|
-
deletedBy: z.string(),
|
|
137
|
+
deletedAt: z.string().optional(),
|
|
138
|
+
deletedBy: z.string().optional(),
|
|
91
139
|
primary: z.boolean(),
|
|
92
140
|
conditions: z.array(StepFilter$inboundSchema).optional(),
|
|
93
141
|
}).transform((v) => {
|
|
@@ -110,8 +158,8 @@ export type IntegrationResponseDto$Outbound = {
|
|
|
110
158
|
credentials: CredentialsDto$Outbound;
|
|
111
159
|
active: boolean;
|
|
112
160
|
deleted: boolean;
|
|
113
|
-
deletedAt
|
|
114
|
-
deletedBy
|
|
161
|
+
deletedAt?: string | undefined;
|
|
162
|
+
deletedBy?: string | undefined;
|
|
115
163
|
primary: boolean;
|
|
116
164
|
conditions?: Array<StepFilter$Outbound> | undefined;
|
|
117
165
|
};
|
|
@@ -132,8 +180,8 @@ export const IntegrationResponseDto$outboundSchema: z.ZodType<
|
|
|
132
180
|
credentials: CredentialsDto$outboundSchema,
|
|
133
181
|
active: z.boolean(),
|
|
134
182
|
deleted: z.boolean(),
|
|
135
|
-
deletedAt: z.string(),
|
|
136
|
-
deletedBy: z.string(),
|
|
183
|
+
deletedAt: z.string().optional(),
|
|
184
|
+
deletedBy: z.string().optional(),
|
|
137
185
|
primary: z.boolean(),
|
|
138
186
|
conditions: z.array(StepFilter$outboundSchema).optional(),
|
|
139
187
|
}).transform((v) => {
|
|
@@ -6,6 +6,12 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ControlsDto,
|
|
11
|
+
ControlsDto$inboundSchema,
|
|
12
|
+
ControlsDto$Outbound,
|
|
13
|
+
ControlsDto$outboundSchema,
|
|
14
|
+
} from "./controlsdto.js";
|
|
9
15
|
import {
|
|
10
16
|
SubscriberPayloadDto,
|
|
11
17
|
SubscriberPayloadDto$inboundSchema,
|
|
@@ -36,6 +42,7 @@ export type To = TopicPayloadDto | SubscriberPayloadDto | string;
|
|
|
36
42
|
* It is used to display the Avatar of the provided actor's subscriber id or actor object.
|
|
37
43
|
*
|
|
38
44
|
* @remarks
|
|
45
|
+
*
|
|
39
46
|
* If a new actor object is provided, we will create a new subscriber in our system
|
|
40
47
|
*/
|
|
41
48
|
export type Actor = SubscriberPayloadDto | string;
|
|
@@ -48,8 +55,6 @@ export type Actor = SubscriberPayloadDto | string;
|
|
|
48
55
|
*/
|
|
49
56
|
export type Tenant = TenantPayloadDto | string;
|
|
50
57
|
|
|
51
|
-
export type Controls = {};
|
|
52
|
-
|
|
53
58
|
export type TriggerEventRequestDto = {
|
|
54
59
|
/**
|
|
55
60
|
* The trigger identifier of the workflow you wish to send. This identifier can be found on the workflow page.
|
|
@@ -62,6 +67,10 @@ export type TriggerEventRequestDto = {
|
|
|
62
67
|
* This data will also be available when fetching the notifications feed from the API to display certain parts of the UI.
|
|
63
68
|
*/
|
|
64
69
|
payload?: { [k: string]: any } | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* A URL to bridge for additional processing.
|
|
72
|
+
*/
|
|
73
|
+
bridgeUrl?: string | undefined;
|
|
65
74
|
/**
|
|
66
75
|
* This could be used to override provider specific configurations
|
|
67
76
|
*/
|
|
@@ -71,13 +80,14 @@ export type TriggerEventRequestDto = {
|
|
|
71
80
|
*/
|
|
72
81
|
to: Array<TopicPayloadDto | SubscriberPayloadDto | string>;
|
|
73
82
|
/**
|
|
74
|
-
* A unique identifier for this transaction, we will
|
|
83
|
+
* A unique identifier for this transaction, we will generate a UUID if not provided.
|
|
75
84
|
*/
|
|
76
85
|
transactionId?: string | undefined;
|
|
77
86
|
/**
|
|
78
87
|
* It is used to display the Avatar of the provided actor's subscriber id or actor object.
|
|
79
88
|
*
|
|
80
89
|
* @remarks
|
|
90
|
+
*
|
|
81
91
|
* If a new actor object is provided, we will create a new subscriber in our system
|
|
82
92
|
*/
|
|
83
93
|
actor?: SubscriberPayloadDto | string | undefined;
|
|
@@ -88,8 +98,10 @@ export type TriggerEventRequestDto = {
|
|
|
88
98
|
* Existing tenants will be updated with the provided details.
|
|
89
99
|
*/
|
|
90
100
|
tenant?: TenantPayloadDto | string | undefined;
|
|
91
|
-
|
|
92
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Additional control configurations.
|
|
103
|
+
*/
|
|
104
|
+
controls?: ControlsDto | undefined;
|
|
93
105
|
};
|
|
94
106
|
|
|
95
107
|
/** @internal */
|
|
@@ -266,50 +278,6 @@ export function tenantFromJSON(
|
|
|
266
278
|
);
|
|
267
279
|
}
|
|
268
280
|
|
|
269
|
-
/** @internal */
|
|
270
|
-
export const Controls$inboundSchema: z.ZodType<
|
|
271
|
-
Controls,
|
|
272
|
-
z.ZodTypeDef,
|
|
273
|
-
unknown
|
|
274
|
-
> = z.object({});
|
|
275
|
-
|
|
276
|
-
/** @internal */
|
|
277
|
-
export type Controls$Outbound = {};
|
|
278
|
-
|
|
279
|
-
/** @internal */
|
|
280
|
-
export const Controls$outboundSchema: z.ZodType<
|
|
281
|
-
Controls$Outbound,
|
|
282
|
-
z.ZodTypeDef,
|
|
283
|
-
Controls
|
|
284
|
-
> = z.object({});
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* @internal
|
|
288
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
289
|
-
*/
|
|
290
|
-
export namespace Controls$ {
|
|
291
|
-
/** @deprecated use `Controls$inboundSchema` instead. */
|
|
292
|
-
export const inboundSchema = Controls$inboundSchema;
|
|
293
|
-
/** @deprecated use `Controls$outboundSchema` instead. */
|
|
294
|
-
export const outboundSchema = Controls$outboundSchema;
|
|
295
|
-
/** @deprecated use `Controls$Outbound` instead. */
|
|
296
|
-
export type Outbound = Controls$Outbound;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export function controlsToJSON(controls: Controls): string {
|
|
300
|
-
return JSON.stringify(Controls$outboundSchema.parse(controls));
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export function controlsFromJSON(
|
|
304
|
-
jsonString: string,
|
|
305
|
-
): SafeParseResult<Controls, SDKValidationError> {
|
|
306
|
-
return safeParse(
|
|
307
|
-
jsonString,
|
|
308
|
-
(x) => Controls$inboundSchema.parse(JSON.parse(x)),
|
|
309
|
-
`Failed to parse 'Controls' from JSON`,
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
281
|
/** @internal */
|
|
314
282
|
export const TriggerEventRequestDto$inboundSchema: z.ZodType<
|
|
315
283
|
TriggerEventRequestDto,
|
|
@@ -318,6 +286,7 @@ export const TriggerEventRequestDto$inboundSchema: z.ZodType<
|
|
|
318
286
|
> = z.object({
|
|
319
287
|
name: z.string(),
|
|
320
288
|
payload: z.record(z.any()).optional(),
|
|
289
|
+
bridgeUrl: z.string().optional(),
|
|
321
290
|
overrides: z.lazy(() => Overrides$inboundSchema).optional(),
|
|
322
291
|
to: z.array(
|
|
323
292
|
z.union([
|
|
@@ -329,21 +298,20 @@ export const TriggerEventRequestDto$inboundSchema: z.ZodType<
|
|
|
329
298
|
transactionId: z.string().optional(),
|
|
330
299
|
actor: z.union([SubscriberPayloadDto$inboundSchema, z.string()]).optional(),
|
|
331
300
|
tenant: z.union([TenantPayloadDto$inboundSchema, z.string()]).optional(),
|
|
332
|
-
|
|
333
|
-
controls: z.lazy(() => Controls$inboundSchema).optional(),
|
|
301
|
+
controls: ControlsDto$inboundSchema.optional(),
|
|
334
302
|
});
|
|
335
303
|
|
|
336
304
|
/** @internal */
|
|
337
305
|
export type TriggerEventRequestDto$Outbound = {
|
|
338
306
|
name: string;
|
|
339
307
|
payload?: { [k: string]: any } | undefined;
|
|
308
|
+
bridgeUrl?: string | undefined;
|
|
340
309
|
overrides?: Overrides$Outbound | undefined;
|
|
341
310
|
to: Array<TopicPayloadDto$Outbound | SubscriberPayloadDto$Outbound | string>;
|
|
342
311
|
transactionId?: string | undefined;
|
|
343
312
|
actor?: SubscriberPayloadDto$Outbound | string | undefined;
|
|
344
313
|
tenant?: TenantPayloadDto$Outbound | string | undefined;
|
|
345
|
-
|
|
346
|
-
controls?: Controls$Outbound | undefined;
|
|
314
|
+
controls?: ControlsDto$Outbound | undefined;
|
|
347
315
|
};
|
|
348
316
|
|
|
349
317
|
/** @internal */
|
|
@@ -354,6 +322,7 @@ export const TriggerEventRequestDto$outboundSchema: z.ZodType<
|
|
|
354
322
|
> = z.object({
|
|
355
323
|
name: z.string(),
|
|
356
324
|
payload: z.record(z.any()).optional(),
|
|
325
|
+
bridgeUrl: z.string().optional(),
|
|
357
326
|
overrides: z.lazy(() => Overrides$outboundSchema).optional(),
|
|
358
327
|
to: z.array(
|
|
359
328
|
z.union([
|
|
@@ -365,8 +334,7 @@ export const TriggerEventRequestDto$outboundSchema: z.ZodType<
|
|
|
365
334
|
transactionId: z.string().optional(),
|
|
366
335
|
actor: z.union([SubscriberPayloadDto$outboundSchema, z.string()]).optional(),
|
|
367
336
|
tenant: z.union([TenantPayloadDto$outboundSchema, z.string()]).optional(),
|
|
368
|
-
|
|
369
|
-
controls: z.lazy(() => Controls$outboundSchema).optional(),
|
|
337
|
+
controls: ControlsDto$outboundSchema.optional(),
|
|
370
338
|
});
|
|
371
339
|
|
|
372
340
|
/**
|