@novu/api 0.0.1-alpha.51 → 0.0.1-alpha.53
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/channelsettings.d.ts +8 -8
- package/models/components/channelsettings.d.ts.map +1 -1
- package/models/components/channelsettings.js +13 -14
- package/models/components/channelsettings.js.map +1 -1
- 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/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/subscriberchanneldto.d.ts +79 -2
- package/models/components/subscriberchanneldto.d.ts.map +1 -1
- package/models/components/subscriberchanneldto.js +41 -3
- package/models/components/subscriberchanneldto.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/channelsettings.ts +18 -14
- package/src/models/components/createintegrationrequestdto.ts +31 -1
- package/src/models/components/integrationresponsedto.ts +56 -8
- package/src/models/components/subscriberchanneldto.ts +51 -4
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.53";
|
|
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.53 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.53",
|
|
34
34
|
genVersion: "2.470.1",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.53 2.470.1 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -6,7 +6,7 @@ import { ChannelCredentials, ChannelCredentials$Outbound } from "./channelcreden
|
|
|
6
6
|
/**
|
|
7
7
|
* The provider identifier for the credentials
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const ChannelSettingsProviderId: {
|
|
10
10
|
readonly Slack: "slack";
|
|
11
11
|
readonly Discord: "discord";
|
|
12
12
|
readonly Msteams: "msteams";
|
|
@@ -28,12 +28,12 @@ export declare const ProviderId: {
|
|
|
28
28
|
/**
|
|
29
29
|
* The provider identifier for the credentials
|
|
30
30
|
*/
|
|
31
|
-
export type
|
|
31
|
+
export type ChannelSettingsProviderId = ClosedEnum<typeof ChannelSettingsProviderId>;
|
|
32
32
|
export type ChannelSettings = {
|
|
33
33
|
/**
|
|
34
34
|
* The provider identifier for the credentials
|
|
35
35
|
*/
|
|
36
|
-
providerId:
|
|
36
|
+
providerId: ChannelSettingsProviderId;
|
|
37
37
|
/**
|
|
38
38
|
* The integration identifier
|
|
39
39
|
*/
|
|
@@ -48,15 +48,15 @@ export type ChannelSettings = {
|
|
|
48
48
|
integrationId: string;
|
|
49
49
|
};
|
|
50
50
|
/** @internal */
|
|
51
|
-
export declare const
|
|
51
|
+
export declare const ChannelSettingsProviderId$inboundSchema: z.ZodNativeEnum<typeof ChannelSettingsProviderId>;
|
|
52
52
|
/** @internal */
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const ChannelSettingsProviderId$outboundSchema: z.ZodNativeEnum<typeof ChannelSettingsProviderId>;
|
|
54
54
|
/**
|
|
55
55
|
* @internal
|
|
56
56
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
57
|
*/
|
|
58
|
-
export declare namespace
|
|
59
|
-
/** @deprecated use `
|
|
58
|
+
export declare namespace ChannelSettingsProviderId$ {
|
|
59
|
+
/** @deprecated use `ChannelSettingsProviderId$inboundSchema` instead. */
|
|
60
60
|
const inboundSchema: z.ZodNativeEnum<{
|
|
61
61
|
readonly Slack: "slack";
|
|
62
62
|
readonly Discord: "discord";
|
|
@@ -76,7 +76,7 @@ export declare namespace ProviderId$ {
|
|
|
76
76
|
readonly PushWebhook: "push-webhook";
|
|
77
77
|
readonly PusherBeams: "pusher-beams";
|
|
78
78
|
}>;
|
|
79
|
-
/** @deprecated use `
|
|
79
|
+
/** @deprecated use `ChannelSettingsProviderId$outboundSchema` instead. */
|
|
80
80
|
const outboundSchema: z.ZodNativeEnum<{
|
|
81
81
|
readonly Slack: "slack";
|
|
82
82
|
readonly Discord: "discord";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelsettings.d.ts","sourceRoot":"","sources":["../../src/models/components/channelsettings.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,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"channelsettings.d.ts","sourceRoot":"","sources":["../../src/models/components/channelsettings.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,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;CAkB5B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,UAAU,EAAE,yBAAyB,CAAC;IACtC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,WAAW,EAAE,kBAAkB,CAAC;IAChC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,aAAa,CACnE,OAAO,yBAAyB,CACS,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,aAAa,CACpE,OAAO,yBAAyB,CACS,CAAC;AAE5C;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa;;;;;;;;;;;;;;;;;;MAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc;;;;;;;;;;;;;;;;;;MAA2C,CAAC;CACxE;AAED,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,2BAA2B,CAAC;IACzC,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAUf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.channelSettingsFromJSON = exports.channelSettingsToJSON = exports.ChannelSettings$ = exports.ChannelSettings$outboundSchema = exports.ChannelSettings$inboundSchema = exports.
|
|
29
|
+
exports.channelSettingsFromJSON = exports.channelSettingsToJSON = exports.ChannelSettings$ = exports.ChannelSettings$outboundSchema = exports.ChannelSettings$inboundSchema = exports.ChannelSettingsProviderId$ = exports.ChannelSettingsProviderId$outboundSchema = exports.ChannelSettingsProviderId$inboundSchema = exports.ChannelSettingsProviderId = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
@@ -34,7 +34,7 @@ const channelcredentials_js_1 = require("./channelcredentials.js");
|
|
|
34
34
|
/**
|
|
35
35
|
* The provider identifier for the credentials
|
|
36
36
|
*/
|
|
37
|
-
exports.
|
|
37
|
+
exports.ChannelSettingsProviderId = {
|
|
38
38
|
Slack: "slack",
|
|
39
39
|
Discord: "discord",
|
|
40
40
|
Msteams: "msteams",
|
|
@@ -54,24 +54,23 @@ exports.ProviderId = {
|
|
|
54
54
|
PusherBeams: "pusher-beams",
|
|
55
55
|
};
|
|
56
56
|
/** @internal */
|
|
57
|
-
exports.
|
|
58
|
-
.nativeEnum(exports.ProviderId);
|
|
57
|
+
exports.ChannelSettingsProviderId$inboundSchema = z.nativeEnum(exports.ChannelSettingsProviderId);
|
|
59
58
|
/** @internal */
|
|
60
|
-
exports.
|
|
59
|
+
exports.ChannelSettingsProviderId$outboundSchema = exports.ChannelSettingsProviderId$inboundSchema;
|
|
61
60
|
/**
|
|
62
61
|
* @internal
|
|
63
62
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
63
|
*/
|
|
65
|
-
var
|
|
66
|
-
(function (
|
|
67
|
-
/** @deprecated use `
|
|
68
|
-
|
|
69
|
-
/** @deprecated use `
|
|
70
|
-
|
|
71
|
-
})(
|
|
64
|
+
var ChannelSettingsProviderId$;
|
|
65
|
+
(function (ChannelSettingsProviderId$) {
|
|
66
|
+
/** @deprecated use `ChannelSettingsProviderId$inboundSchema` instead. */
|
|
67
|
+
ChannelSettingsProviderId$.inboundSchema = exports.ChannelSettingsProviderId$inboundSchema;
|
|
68
|
+
/** @deprecated use `ChannelSettingsProviderId$outboundSchema` instead. */
|
|
69
|
+
ChannelSettingsProviderId$.outboundSchema = exports.ChannelSettingsProviderId$outboundSchema;
|
|
70
|
+
})(ChannelSettingsProviderId$ || (exports.ChannelSettingsProviderId$ = ChannelSettingsProviderId$ = {}));
|
|
72
71
|
/** @internal */
|
|
73
72
|
exports.ChannelSettings$inboundSchema = z.object({
|
|
74
|
-
providerId: exports.
|
|
73
|
+
providerId: exports.ChannelSettingsProviderId$inboundSchema,
|
|
75
74
|
integrationIdentifier: z.string().optional(),
|
|
76
75
|
credentials: channelcredentials_js_1.ChannelCredentials$inboundSchema,
|
|
77
76
|
_integrationId: z.string(),
|
|
@@ -82,7 +81,7 @@ exports.ChannelSettings$inboundSchema = z.object({
|
|
|
82
81
|
});
|
|
83
82
|
/** @internal */
|
|
84
83
|
exports.ChannelSettings$outboundSchema = z.object({
|
|
85
|
-
providerId: exports.
|
|
84
|
+
providerId: exports.ChannelSettingsProviderId$outboundSchema,
|
|
86
85
|
integrationIdentifier: z.string().optional(),
|
|
87
86
|
credentials: channelcredentials_js_1.ChannelCredentials$outboundSchema,
|
|
88
87
|
integrationId: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelsettings.js","sourceRoot":"","sources":["../../src/models/components/channelsettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,mEAKiC;AAEjC;;GAEG;AACU,QAAA,
|
|
1
|
+
{"version":3,"file":"channelsettings.js","sourceRoot":"","sources":["../../src/models/components/channelsettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,mEAKiC;AAEjC;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACvC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,iBAAiB;IAChC,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,aAAa;IACzB,gBAAgB,EAAE,mBAAmB;I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C,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAJD,sDAIC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC;AARD,0DAQC"}
|
|
@@ -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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,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"}
|
|
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,CA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|
|
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,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,CAAC,CAAC,QAAQ,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"}
|
|
@@ -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,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;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;CAMhC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OA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EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,uBAAuB,CAAC;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAsBtB,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"}
|
|
@@ -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;;GA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CAAa,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,12 +1,39 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import { ChannelCredentialsDto, ChannelCredentialsDto$Outbound } from "./channelcredentialsdto.js";
|
|
6
|
+
/**
|
|
7
|
+
* The ID of the chat or push provider.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ProviderId: {
|
|
10
|
+
readonly Slack: "slack";
|
|
11
|
+
readonly Discord: "discord";
|
|
12
|
+
readonly Msteams: "msteams";
|
|
13
|
+
readonly Mattermost: "mattermost";
|
|
14
|
+
readonly Ryver: "ryver";
|
|
15
|
+
readonly Zulip: "zulip";
|
|
16
|
+
readonly GrafanaOnCall: "grafana-on-call";
|
|
17
|
+
readonly Getstream: "getstream";
|
|
18
|
+
readonly RocketChat: "rocket-chat";
|
|
19
|
+
readonly WhatsappBusiness: "whatsapp-business";
|
|
20
|
+
readonly Fcm: "fcm";
|
|
21
|
+
readonly Apns: "apns";
|
|
22
|
+
readonly Expo: "expo";
|
|
23
|
+
readonly OneSignal: "one-signal";
|
|
24
|
+
readonly Pushpad: "pushpad";
|
|
25
|
+
readonly PushWebhook: "push-webhook";
|
|
26
|
+
readonly PusherBeams: "pusher-beams";
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the chat or push provider.
|
|
30
|
+
*/
|
|
31
|
+
export type ProviderId = ClosedEnum<typeof ProviderId>;
|
|
5
32
|
export type SubscriberChannelDto = {
|
|
6
33
|
/**
|
|
7
34
|
* The ID of the chat or push provider.
|
|
8
35
|
*/
|
|
9
|
-
providerId:
|
|
36
|
+
providerId: ProviderId;
|
|
10
37
|
/**
|
|
11
38
|
* An optional identifier for the integration.
|
|
12
39
|
*/
|
|
@@ -17,10 +44,60 @@ export type SubscriberChannelDto = {
|
|
|
17
44
|
credentials: ChannelCredentialsDto;
|
|
18
45
|
};
|
|
19
46
|
/** @internal */
|
|
47
|
+
export declare const ProviderId$inboundSchema: z.ZodNativeEnum<typeof ProviderId>;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const ProviderId$outboundSchema: z.ZodNativeEnum<typeof ProviderId>;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export declare namespace ProviderId$ {
|
|
55
|
+
/** @deprecated use `ProviderId$inboundSchema` instead. */
|
|
56
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
57
|
+
readonly Slack: "slack";
|
|
58
|
+
readonly Discord: "discord";
|
|
59
|
+
readonly Msteams: "msteams";
|
|
60
|
+
readonly Mattermost: "mattermost";
|
|
61
|
+
readonly Ryver: "ryver";
|
|
62
|
+
readonly Zulip: "zulip";
|
|
63
|
+
readonly GrafanaOnCall: "grafana-on-call";
|
|
64
|
+
readonly Getstream: "getstream";
|
|
65
|
+
readonly RocketChat: "rocket-chat";
|
|
66
|
+
readonly WhatsappBusiness: "whatsapp-business";
|
|
67
|
+
readonly Fcm: "fcm";
|
|
68
|
+
readonly Apns: "apns";
|
|
69
|
+
readonly Expo: "expo";
|
|
70
|
+
readonly OneSignal: "one-signal";
|
|
71
|
+
readonly Pushpad: "pushpad";
|
|
72
|
+
readonly PushWebhook: "push-webhook";
|
|
73
|
+
readonly PusherBeams: "pusher-beams";
|
|
74
|
+
}>;
|
|
75
|
+
/** @deprecated use `ProviderId$outboundSchema` instead. */
|
|
76
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
77
|
+
readonly Slack: "slack";
|
|
78
|
+
readonly Discord: "discord";
|
|
79
|
+
readonly Msteams: "msteams";
|
|
80
|
+
readonly Mattermost: "mattermost";
|
|
81
|
+
readonly Ryver: "ryver";
|
|
82
|
+
readonly Zulip: "zulip";
|
|
83
|
+
readonly GrafanaOnCall: "grafana-on-call";
|
|
84
|
+
readonly Getstream: "getstream";
|
|
85
|
+
readonly RocketChat: "rocket-chat";
|
|
86
|
+
readonly WhatsappBusiness: "whatsapp-business";
|
|
87
|
+
readonly Fcm: "fcm";
|
|
88
|
+
readonly Apns: "apns";
|
|
89
|
+
readonly Expo: "expo";
|
|
90
|
+
readonly OneSignal: "one-signal";
|
|
91
|
+
readonly Pushpad: "pushpad";
|
|
92
|
+
readonly PushWebhook: "push-webhook";
|
|
93
|
+
readonly PusherBeams: "pusher-beams";
|
|
94
|
+
}>;
|
|
95
|
+
}
|
|
96
|
+
/** @internal */
|
|
20
97
|
export declare const SubscriberChannelDto$inboundSchema: z.ZodType<SubscriberChannelDto, z.ZodTypeDef, unknown>;
|
|
21
98
|
/** @internal */
|
|
22
99
|
export type SubscriberChannelDto$Outbound = {
|
|
23
|
-
providerId:
|
|
100
|
+
providerId: string;
|
|
24
101
|
integrationIdentifier?: string | undefined;
|
|
25
102
|
credentials: ChannelCredentialsDto$Outbound;
|
|
26
103
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberchanneldto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.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,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"subscriberchanneldto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,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,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;CAkBb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,WAAW,EAAE,qBAAqB,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE1B,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE3B;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IAC3B,0DAA0D;IACnD,MAAM,aAAa;;;;;;;;;;;;;;;;;;MAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc;;;;;;;;;;;;;;;;;;MAA4B,CAAC;CACzD;AAED,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,8BAA8B,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAKpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -26,19 +26,57 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.subscriberChannelDtoFromJSON = exports.subscriberChannelDtoToJSON = exports.SubscriberChannelDto$ = exports.SubscriberChannelDto$outboundSchema = exports.SubscriberChannelDto$inboundSchema = void 0;
|
|
29
|
+
exports.subscriberChannelDtoFromJSON = exports.subscriberChannelDtoToJSON = exports.SubscriberChannelDto$ = exports.SubscriberChannelDto$outboundSchema = exports.SubscriberChannelDto$inboundSchema = exports.ProviderId$ = exports.ProviderId$outboundSchema = exports.ProviderId$inboundSchema = exports.ProviderId = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
const channelcredentialsdto_js_1 = require("./channelcredentialsdto.js");
|
|
33
|
+
/**
|
|
34
|
+
* The ID of the chat or push provider.
|
|
35
|
+
*/
|
|
36
|
+
exports.ProviderId = {
|
|
37
|
+
Slack: "slack",
|
|
38
|
+
Discord: "discord",
|
|
39
|
+
Msteams: "msteams",
|
|
40
|
+
Mattermost: "mattermost",
|
|
41
|
+
Ryver: "ryver",
|
|
42
|
+
Zulip: "zulip",
|
|
43
|
+
GrafanaOnCall: "grafana-on-call",
|
|
44
|
+
Getstream: "getstream",
|
|
45
|
+
RocketChat: "rocket-chat",
|
|
46
|
+
WhatsappBusiness: "whatsapp-business",
|
|
47
|
+
Fcm: "fcm",
|
|
48
|
+
Apns: "apns",
|
|
49
|
+
Expo: "expo",
|
|
50
|
+
OneSignal: "one-signal",
|
|
51
|
+
Pushpad: "pushpad",
|
|
52
|
+
PushWebhook: "push-webhook",
|
|
53
|
+
PusherBeams: "pusher-beams",
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
exports.ProviderId$inboundSchema = z
|
|
57
|
+
.nativeEnum(exports.ProviderId);
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.ProviderId$outboundSchema = exports.ProviderId$inboundSchema;
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
var ProviderId$;
|
|
65
|
+
(function (ProviderId$) {
|
|
66
|
+
/** @deprecated use `ProviderId$inboundSchema` instead. */
|
|
67
|
+
ProviderId$.inboundSchema = exports.ProviderId$inboundSchema;
|
|
68
|
+
/** @deprecated use `ProviderId$outboundSchema` instead. */
|
|
69
|
+
ProviderId$.outboundSchema = exports.ProviderId$outboundSchema;
|
|
70
|
+
})(ProviderId$ || (exports.ProviderId$ = ProviderId$ = {}));
|
|
33
71
|
/** @internal */
|
|
34
72
|
exports.SubscriberChannelDto$inboundSchema = z.object({
|
|
35
|
-
providerId:
|
|
73
|
+
providerId: exports.ProviderId$inboundSchema,
|
|
36
74
|
integrationIdentifier: z.string().optional(),
|
|
37
75
|
credentials: channelcredentialsdto_js_1.ChannelCredentialsDto$inboundSchema,
|
|
38
76
|
});
|
|
39
77
|
/** @internal */
|
|
40
78
|
exports.SubscriberChannelDto$outboundSchema = z.object({
|
|
41
|
-
providerId:
|
|
79
|
+
providerId: exports.ProviderId$outboundSchema,
|
|
42
80
|
integrationIdentifier: z.string().optional(),
|
|
43
81
|
credentials: channelcredentialsdto_js_1.ChannelCredentialsDto$outboundSchema,
|
|
44
82
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberchanneldto.js","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;
|
|
1
|
+
{"version":3,"file":"subscriberchanneldto.js","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,yEAKoC;AAEpC;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd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C;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAND,gEAMC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC;AARD,oEAQC"}
|
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.53",
|
|
59
59
|
genVersion: "2.470.1",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.53 2.470.1 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
/**
|
|
19
19
|
* The provider identifier for the credentials
|
|
20
20
|
*/
|
|
21
|
-
export const
|
|
21
|
+
export const ChannelSettingsProviderId = {
|
|
22
22
|
Slack: "slack",
|
|
23
23
|
Discord: "discord",
|
|
24
24
|
Msteams: "msteams",
|
|
@@ -40,13 +40,15 @@ export const ProviderId = {
|
|
|
40
40
|
/**
|
|
41
41
|
* The provider identifier for the credentials
|
|
42
42
|
*/
|
|
43
|
-
export type
|
|
43
|
+
export type ChannelSettingsProviderId = ClosedEnum<
|
|
44
|
+
typeof ChannelSettingsProviderId
|
|
45
|
+
>;
|
|
44
46
|
|
|
45
47
|
export type ChannelSettings = {
|
|
46
48
|
/**
|
|
47
49
|
* The provider identifier for the credentials
|
|
48
50
|
*/
|
|
49
|
-
providerId:
|
|
51
|
+
providerId: ChannelSettingsProviderId;
|
|
50
52
|
/**
|
|
51
53
|
* The integration identifier
|
|
52
54
|
*/
|
|
@@ -62,22 +64,24 @@ export type ChannelSettings = {
|
|
|
62
64
|
};
|
|
63
65
|
|
|
64
66
|
/** @internal */
|
|
65
|
-
export const
|
|
66
|
-
|
|
67
|
+
export const ChannelSettingsProviderId$inboundSchema: z.ZodNativeEnum<
|
|
68
|
+
typeof ChannelSettingsProviderId
|
|
69
|
+
> = z.nativeEnum(ChannelSettingsProviderId);
|
|
67
70
|
|
|
68
71
|
/** @internal */
|
|
69
|
-
export const
|
|
70
|
-
|
|
72
|
+
export const ChannelSettingsProviderId$outboundSchema: z.ZodNativeEnum<
|
|
73
|
+
typeof ChannelSettingsProviderId
|
|
74
|
+
> = ChannelSettingsProviderId$inboundSchema;
|
|
71
75
|
|
|
72
76
|
/**
|
|
73
77
|
* @internal
|
|
74
78
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
79
|
*/
|
|
76
|
-
export namespace
|
|
77
|
-
/** @deprecated use `
|
|
78
|
-
export const inboundSchema =
|
|
79
|
-
/** @deprecated use `
|
|
80
|
-
export const outboundSchema =
|
|
80
|
+
export namespace ChannelSettingsProviderId$ {
|
|
81
|
+
/** @deprecated use `ChannelSettingsProviderId$inboundSchema` instead. */
|
|
82
|
+
export const inboundSchema = ChannelSettingsProviderId$inboundSchema;
|
|
83
|
+
/** @deprecated use `ChannelSettingsProviderId$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema = ChannelSettingsProviderId$outboundSchema;
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
/** @internal */
|
|
@@ -86,7 +90,7 @@ export const ChannelSettings$inboundSchema: z.ZodType<
|
|
|
86
90
|
z.ZodTypeDef,
|
|
87
91
|
unknown
|
|
88
92
|
> = z.object({
|
|
89
|
-
providerId:
|
|
93
|
+
providerId: ChannelSettingsProviderId$inboundSchema,
|
|
90
94
|
integrationIdentifier: z.string().optional(),
|
|
91
95
|
credentials: ChannelCredentials$inboundSchema,
|
|
92
96
|
_integrationId: z.string(),
|
|
@@ -110,7 +114,7 @@ export const ChannelSettings$outboundSchema: z.ZodType<
|
|
|
110
114
|
z.ZodTypeDef,
|
|
111
115
|
ChannelSettings
|
|
112
116
|
> = z.object({
|
|
113
|
-
providerId:
|
|
117
|
+
providerId: ChannelSettingsProviderId$outboundSchema,
|
|
114
118
|
integrationIdentifier: z.string().optional(),
|
|
115
119
|
credentials: ChannelCredentials$outboundSchema,
|
|
116
120
|
integrationId: z.string(),
|
|
@@ -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
|
|
|
@@ -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) => {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
10
|
import {
|
|
@@ -13,11 +14,38 @@ import {
|
|
|
13
14
|
ChannelCredentialsDto$outboundSchema,
|
|
14
15
|
} from "./channelcredentialsdto.js";
|
|
15
16
|
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the chat or push provider.
|
|
19
|
+
*/
|
|
20
|
+
export const ProviderId = {
|
|
21
|
+
Slack: "slack",
|
|
22
|
+
Discord: "discord",
|
|
23
|
+
Msteams: "msteams",
|
|
24
|
+
Mattermost: "mattermost",
|
|
25
|
+
Ryver: "ryver",
|
|
26
|
+
Zulip: "zulip",
|
|
27
|
+
GrafanaOnCall: "grafana-on-call",
|
|
28
|
+
Getstream: "getstream",
|
|
29
|
+
RocketChat: "rocket-chat",
|
|
30
|
+
WhatsappBusiness: "whatsapp-business",
|
|
31
|
+
Fcm: "fcm",
|
|
32
|
+
Apns: "apns",
|
|
33
|
+
Expo: "expo",
|
|
34
|
+
OneSignal: "one-signal",
|
|
35
|
+
Pushpad: "pushpad",
|
|
36
|
+
PushWebhook: "push-webhook",
|
|
37
|
+
PusherBeams: "pusher-beams",
|
|
38
|
+
} as const;
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the chat or push provider.
|
|
41
|
+
*/
|
|
42
|
+
export type ProviderId = ClosedEnum<typeof ProviderId>;
|
|
43
|
+
|
|
16
44
|
export type SubscriberChannelDto = {
|
|
17
45
|
/**
|
|
18
46
|
* The ID of the chat or push provider.
|
|
19
47
|
*/
|
|
20
|
-
providerId:
|
|
48
|
+
providerId: ProviderId;
|
|
21
49
|
/**
|
|
22
50
|
* An optional identifier for the integration.
|
|
23
51
|
*/
|
|
@@ -28,20 +56,39 @@ export type SubscriberChannelDto = {
|
|
|
28
56
|
credentials: ChannelCredentialsDto;
|
|
29
57
|
};
|
|
30
58
|
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const ProviderId$inboundSchema: z.ZodNativeEnum<typeof ProviderId> = z
|
|
61
|
+
.nativeEnum(ProviderId);
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const ProviderId$outboundSchema: z.ZodNativeEnum<typeof ProviderId> =
|
|
65
|
+
ProviderId$inboundSchema;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
+
*/
|
|
71
|
+
export namespace ProviderId$ {
|
|
72
|
+
/** @deprecated use `ProviderId$inboundSchema` instead. */
|
|
73
|
+
export const inboundSchema = ProviderId$inboundSchema;
|
|
74
|
+
/** @deprecated use `ProviderId$outboundSchema` instead. */
|
|
75
|
+
export const outboundSchema = ProviderId$outboundSchema;
|
|
76
|
+
}
|
|
77
|
+
|
|
31
78
|
/** @internal */
|
|
32
79
|
export const SubscriberChannelDto$inboundSchema: z.ZodType<
|
|
33
80
|
SubscriberChannelDto,
|
|
34
81
|
z.ZodTypeDef,
|
|
35
82
|
unknown
|
|
36
83
|
> = z.object({
|
|
37
|
-
providerId:
|
|
84
|
+
providerId: ProviderId$inboundSchema,
|
|
38
85
|
integrationIdentifier: z.string().optional(),
|
|
39
86
|
credentials: ChannelCredentialsDto$inboundSchema,
|
|
40
87
|
});
|
|
41
88
|
|
|
42
89
|
/** @internal */
|
|
43
90
|
export type SubscriberChannelDto$Outbound = {
|
|
44
|
-
providerId:
|
|
91
|
+
providerId: string;
|
|
45
92
|
integrationIdentifier?: string | undefined;
|
|
46
93
|
credentials: ChannelCredentialsDto$Outbound;
|
|
47
94
|
};
|
|
@@ -52,7 +99,7 @@ export const SubscriberChannelDto$outboundSchema: z.ZodType<
|
|
|
52
99
|
z.ZodTypeDef,
|
|
53
100
|
SubscriberChannelDto
|
|
54
101
|
> = z.object({
|
|
55
|
-
providerId:
|
|
102
|
+
providerId: ProviderId$outboundSchema,
|
|
56
103
|
integrationIdentifier: z.string().optional(),
|
|
57
104
|
credentials: ChannelCredentialsDto$outboundSchema,
|
|
58
105
|
});
|