@novu/api 0.0.1-alpha.51 → 0.0.1-alpha.52
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/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/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.52";
|
|
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.52 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.52",
|
|
34
34
|
genVersion: "2.470.1",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.52 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,2BAA2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ACZ,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;IACrC,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;CACnB,CAAC;AA2BX,gBAAgB;AACH,QAAA,uCAAuC,GAEhD,CAAC,CAAC,UAAU,CAAC,iCAAyB,CAAC,CAAC;AAE5C,gBAAgB;AACH,QAAA,wCAAwC,GAEjD,+CAAuC,CAA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C,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"}
|
|
@@ -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,aAAa,EAAE,iBAAiB;IAChC,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,aAAa;IACzB,gBAAgB,EAAE,mBAAmB;IACrC,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAA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,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.52",
|
|
59
59
|
genVersion: "2.470.1",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.52 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(),
|
|
@@ -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
|
});
|