@novu/api 3.15.1-rc.1 → 3.17.0
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/FUNCTIONS.md +2 -2
- package/funcs/environmentVariablesUpdate.d.ts +1 -1
- package/funcs/environmentVariablesUpdate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +4 -4
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +6 -7
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/chatorpushproviderenum.d.ts +1 -0
- package/models/components/chatorpushproviderenum.d.ts.map +1 -1
- package/models/components/chatorpushproviderenum.js +1 -0
- package/models/components/chatorpushproviderenum.js.map +1 -1
- package/models/components/createintegrationrequestdto.d.ts +25 -7
- package/models/components/createintegrationrequestdto.d.ts.map +1 -1
- package/models/components/createintegrationrequestdto.js +14 -4
- package/models/components/createintegrationrequestdto.js.map +1 -1
- package/models/components/createtelegramchatendpointdto.d.ts +75 -0
- package/models/components/createtelegramchatendpointdto.d.ts.map +1 -0
- package/models/components/createtelegramchatendpointdto.js +77 -0
- package/models/components/createtelegramchatendpointdto.js.map +1 -0
- package/models/components/credentialsdto.d.ts +24 -0
- package/models/components/credentialsdto.d.ts.map +1 -1
- package/models/components/credentialsdto.js +12 -0
- package/models/components/credentialsdto.js.map +1 -1
- package/models/components/getchannelconnectionresponsedto.d.ts +4 -0
- package/models/components/getchannelconnectionresponsedto.d.ts.map +1 -1
- package/models/components/getchannelconnectionresponsedto.js +4 -0
- package/models/components/getchannelconnectionresponsedto.js.map +1 -1
- package/models/components/getchannelendpointresponsedto.d.ts +10 -2
- package/models/components/getchannelendpointresponsedto.d.ts.map +1 -1
- package/models/components/getchannelendpointresponsedto.js +14 -0
- package/models/components/getchannelendpointresponsedto.js.map +1 -1
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +23 -6
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +14 -4
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/msteamschannelendpointdto.d.ts +5 -0
- package/models/components/msteamschannelendpointdto.d.ts.map +1 -1
- package/models/components/msteamschannelendpointdto.js +11 -1
- package/models/components/msteamschannelendpointdto.js.map +1 -1
- package/models/components/msteamsuserendpointdto.d.ts +5 -0
- package/models/components/msteamsuserendpointdto.d.ts.map +1 -1
- package/models/components/msteamsuserendpointdto.js +10 -1
- package/models/components/msteamsuserendpointdto.js.map +1 -1
- package/models/components/providersidenum.d.ts +4 -0
- package/models/components/providersidenum.d.ts.map +1 -1
- package/models/components/providersidenum.js +4 -0
- package/models/components/providersidenum.js.map +1 -1
- package/models/components/subscriberchanneldto.d.ts +1 -0
- package/models/components/subscriberchanneldto.d.ts.map +1 -1
- package/models/components/subscriberchanneldto.js +1 -0
- package/models/components/subscriberchanneldto.js.map +1 -1
- package/models/components/telegramchatendpointdto.d.ts +20 -0
- package/models/components/telegramchatendpointdto.d.ts.map +1 -0
- package/models/components/telegramchatendpointdto.js +58 -0
- package/models/components/telegramchatendpointdto.js.map +1 -0
- package/models/components/testdomainrouteresponsedto.d.ts +3 -8
- package/models/components/testdomainrouteresponsedto.d.ts.map +1 -1
- package/models/components/testdomainrouteresponsedto.js +2 -8
- package/models/components/testdomainrouteresponsedto.js.map +1 -1
- package/models/operations/channelendpointscontrollercreatechannelendpoint.d.ts +4 -4
- package/models/operations/channelendpointscontrollercreatechannelendpoint.d.ts.map +1 -1
- package/models/operations/channelendpointscontrollercreatechannelendpoint.js +2 -0
- package/models/operations/channelendpointscontrollercreatechannelendpoint.js.map +1 -1
- package/package.json +1 -1
- package/sdk/environmentvariables.d.ts +1 -1
- package/sdk/environmentvariables.js +1 -1
- package/src/funcs/environmentVariablesUpdate.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/activitynotificationjobresponsedto.ts +9 -19
- package/src/models/components/chatorpushproviderenum.ts +1 -0
- package/src/models/components/createintegrationrequestdto.ts +34 -9
- package/src/models/components/createtelegramchatendpointdto.ts +149 -0
- package/src/models/components/credentialsdto.ts +36 -0
- package/src/models/components/getchannelconnectionresponsedto.ts +4 -0
- package/src/models/components/getchannelendpointresponsedto.ts +31 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/integrationresponsedto.ts +30 -8
- package/src/models/components/msteamschannelendpointdto.ts +21 -0
- package/src/models/components/msteamsuserendpointdto.ts +20 -0
- package/src/models/components/providersidenum.ts +4 -0
- package/src/models/components/subscriberchanneldto.ts +1 -0
- package/src/models/components/telegramchatendpointdto.ts +54 -0
- package/src/models/components/testdomainrouteresponsedto.ts +2 -21
- package/src/models/operations/channelendpointscontrollercreatechannelendpoint.ts +10 -4
- package/src/sdk/environmentvariables.ts +1 -1
- package/src/types/async.ts +8 -7
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
|
@@ -122,6 +122,10 @@ exports.ProvidersIdEnum = {
|
|
|
122
122
|
WhatsappBusiness: "whatsapp-business",
|
|
123
123
|
ChatWebhook: "chat-webhook",
|
|
124
124
|
NovuSlack: "novu-slack",
|
|
125
|
+
Telegram: "telegram",
|
|
126
|
+
Anthropic: "anthropic",
|
|
127
|
+
NovuAnthropic: "novu-anthropic",
|
|
128
|
+
AnthropicAws: "anthropic-aws",
|
|
125
129
|
};
|
|
126
130
|
/** @internal */
|
|
127
131
|
exports.ProvidersIdEnum$inboundSchema = z.nativeEnum(exports.ProvidersIdEnum);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providersidenum.js","sourceRoot":"","sources":["../../src/models/components/providersidenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;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,EAAE,WAAW;IACrB,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,UAAU;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,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;IAC3B,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,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,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"providersidenum.js","sourceRoot":"","sources":["../../src/models/components/providersidenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS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ACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,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,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE,eAAe;CACrB,CAAC;AAMX,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,CAAC,CAAC,UAAU,CAAC,uBAAe,CAAC,CAAC;AAClC,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,qCAA6B,CAAC"}
|
|
@@ -17,6 +17,7 @@ export declare const SubscriberChannelDtoProviderId: {
|
|
|
17
17
|
readonly WhatsappBusiness: "whatsapp-business";
|
|
18
18
|
readonly ChatWebhook: "chat-webhook";
|
|
19
19
|
readonly NovuSlack: "novu-slack";
|
|
20
|
+
readonly Telegram: "telegram";
|
|
20
21
|
readonly Fcm: "fcm";
|
|
21
22
|
readonly Apns: "apns";
|
|
22
23
|
readonly Expo: "expo";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberchanneldto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"subscriberchanneldto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;CAsBjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,UAAU,EAAE,8BAA8B,CAAC;IAC3C;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,WAAW,EAAE,qBAAqB,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,aAAa,CACzE,OAAO,8BAA8B,CACS,CAAC;AAEjD,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,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberchanneldto.js","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"subscriberchanneldto.js","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiFH,gEAMC;AArFD,0CAA4B;AAE5B,yEAIoC;AAEpC;;GAEG;AACU,QAAA,8BAA8B,GAAG;IAC5C,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,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,UAAU;IACpB,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;IAC3B,KAAK,EAAE,OAAO;CACN,CAAC;AAuBX,gBAAgB;AACH,QAAA,6CAA6C,GAEtD,CAAC,CAAC,UAAU,CAAC,sCAA8B,CAAC,CAAC;AASjD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,qDAA6C;IACzD,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,+DAAoC;CAClD,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type TelegramChatEndpointDto = {
|
|
5
|
+
/**
|
|
6
|
+
* Telegram chat ID
|
|
7
|
+
*/
|
|
8
|
+
chatId: string;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const TelegramChatEndpointDto$inboundSchema: z.ZodType<TelegramChatEndpointDto, z.ZodTypeDef, unknown>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type TelegramChatEndpointDto$Outbound = {
|
|
14
|
+
chatId: string;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const TelegramChatEndpointDto$outboundSchema: z.ZodType<TelegramChatEndpointDto$Outbound, z.ZodTypeDef, TelegramChatEndpointDto>;
|
|
18
|
+
export declare function telegramChatEndpointDtoToJSON(telegramChatEndpointDto: TelegramChatEndpointDto): string;
|
|
19
|
+
export declare function telegramChatEndpointDtoFromJSON(jsonString: string): SafeParseResult<TelegramChatEndpointDto, SDKValidationError>;
|
|
20
|
+
//# sourceMappingURL=telegramchatendpointdto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telegramchatendpointdto.d.ts","sourceRoot":"","sources":["../../src/models/components/telegramchatendpointdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAGvB,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AACD,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.TelegramChatEndpointDto$outboundSchema = exports.TelegramChatEndpointDto$inboundSchema = void 0;
|
|
40
|
+
exports.telegramChatEndpointDtoToJSON = telegramChatEndpointDtoToJSON;
|
|
41
|
+
exports.telegramChatEndpointDtoFromJSON = telegramChatEndpointDtoFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.TelegramChatEndpointDto$inboundSchema = z.object({
|
|
46
|
+
chatId: z.string(),
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.TelegramChatEndpointDto$outboundSchema = z.object({
|
|
50
|
+
chatId: z.string(),
|
|
51
|
+
});
|
|
52
|
+
function telegramChatEndpointDtoToJSON(telegramChatEndpointDto) {
|
|
53
|
+
return JSON.stringify(exports.TelegramChatEndpointDto$outboundSchema.parse(telegramChatEndpointDto));
|
|
54
|
+
}
|
|
55
|
+
function telegramChatEndpointDtoFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TelegramChatEndpointDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TelegramChatEndpointDto' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=telegramchatendpointdto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telegramchatendpointdto.js","sourceRoot":"","sources":["../../src/models/components/telegramchatendpointdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,sEAMC;AACD,0EAQC;AAjDD,0CAA4B;AAC5B,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AACD,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -14,10 +14,6 @@ export declare const TestDomainRouteResponseDtoType: {
|
|
|
14
14
|
readonly Webhook: "webhook";
|
|
15
15
|
};
|
|
16
16
|
export type TestDomainRouteResponseDtoType = ClosedEnum<typeof TestDomainRouteResponseDtoType>;
|
|
17
|
-
/**
|
|
18
|
-
* The outbound payload (dry-run only).
|
|
19
|
-
*/
|
|
20
|
-
export type Payload = {};
|
|
21
17
|
export type TestDomainRouteResponseDto = {
|
|
22
18
|
matched: boolean;
|
|
23
19
|
dryRun: boolean;
|
|
@@ -31,7 +27,9 @@ export type TestDomainRouteResponseDto = {
|
|
|
31
27
|
/**
|
|
32
28
|
* The outbound payload (dry-run only).
|
|
33
29
|
*/
|
|
34
|
-
payload?:
|
|
30
|
+
payload?: {
|
|
31
|
+
[k: string]: any;
|
|
32
|
+
} | undefined;
|
|
35
33
|
webhook?: TestDomainRouteWebhookResultDto | undefined;
|
|
36
34
|
agent?: TestDomainRouteAgentResultDto | undefined;
|
|
37
35
|
};
|
|
@@ -40,9 +38,6 @@ export declare const DomainStatus$inboundSchema: z.ZodNativeEnum<typeof DomainSt
|
|
|
40
38
|
/** @internal */
|
|
41
39
|
export declare const TestDomainRouteResponseDtoType$inboundSchema: z.ZodNativeEnum<typeof TestDomainRouteResponseDtoType>;
|
|
42
40
|
/** @internal */
|
|
43
|
-
export declare const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown>;
|
|
44
|
-
export declare function payloadFromJSON(jsonString: string): SafeParseResult<Payload, SDKValidationError>;
|
|
45
|
-
/** @internal */
|
|
46
41
|
export declare const TestDomainRouteResponseDto$inboundSchema: z.ZodType<TestDomainRouteResponseDto, z.ZodTypeDef, unknown>;
|
|
47
42
|
export declare function testDomainRouteResponseDtoFromJSON(jsonString: string): SafeParseResult<TestDomainRouteResponseDto, SDKValidationError>;
|
|
48
43
|
//# sourceMappingURL=testdomainrouteresponsedto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testdomainrouteresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/testdomainrouteresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,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,6BAA6B,EAE9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,+BAA+B,EAEhC,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"testdomainrouteresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/testdomainrouteresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,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,6BAA6B,EAE9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,+BAA+B,EAEhC,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC,kBAAkB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACzC,IAAI,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC3C,OAAO,CAAC,EAAE,+BAA+B,GAAG,SAAS,CAAC;IACtD,KAAK,CAAC,EAAE,6BAA6B,GAAG,SAAS,CAAC;CACnD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,8BAA8B,CACS,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -36,8 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.TestDomainRouteResponseDto$inboundSchema = exports.
|
|
40
|
-
exports.payloadFromJSON = payloadFromJSON;
|
|
39
|
+
exports.TestDomainRouteResponseDto$inboundSchema = exports.TestDomainRouteResponseDtoType$inboundSchema = exports.DomainStatus$inboundSchema = exports.TestDomainRouteResponseDtoType = exports.DomainStatus = void 0;
|
|
41
40
|
exports.testDomainRouteResponseDtoFromJSON = testDomainRouteResponseDtoFromJSON;
|
|
42
41
|
const z = __importStar(require("zod/v3"));
|
|
43
42
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
@@ -56,11 +55,6 @@ exports.DomainStatus$inboundSchema = z.nativeEnum(exports.DomainStatus);
|
|
|
56
55
|
/** @internal */
|
|
57
56
|
exports.TestDomainRouteResponseDtoType$inboundSchema = z.nativeEnum(exports.TestDomainRouteResponseDtoType);
|
|
58
57
|
/** @internal */
|
|
59
|
-
exports.Payload$inboundSchema = z.object({});
|
|
60
|
-
function payloadFromJSON(jsonString) {
|
|
61
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Payload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Payload' from JSON`);
|
|
62
|
-
}
|
|
63
|
-
/** @internal */
|
|
64
58
|
exports.TestDomainRouteResponseDto$inboundSchema = z.object({
|
|
65
59
|
matched: z.boolean(),
|
|
66
60
|
dryRun: z.boolean(),
|
|
@@ -68,7 +62,7 @@ exports.TestDomainRouteResponseDto$inboundSchema = z.object({
|
|
|
68
62
|
mxRecordConfigured: z.boolean().optional(),
|
|
69
63
|
type: exports.TestDomainRouteResponseDtoType$inboundSchema.optional(),
|
|
70
64
|
wouldDeliverTo: z.string().optional(),
|
|
71
|
-
payload: z.
|
|
65
|
+
payload: z.record(z.any()).optional(),
|
|
72
66
|
webhook: testdomainroutewebhookresultdto_js_1.TestDomainRouteWebhookResultDto$inboundSchema.optional(),
|
|
73
67
|
agent: testdomainrouteagentresultdto_js_1.TestDomainRouteAgentResultDto$inboundSchema.optional(),
|
|
74
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testdomainrouteresponsedto.js","sourceRoot":"","sources":["../../src/models/components/testdomainrouteresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"testdomainrouteresponsedto.js","sourceRoot":"","sources":["../../src/models/components/testdomainrouteresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EH,gFAQ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../errors/sdkvalidationerror.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Channel endpoint creation request. The structure varies based on the type field.
|
|
7
7
|
*/
|
|
8
|
-
export type ChannelEndpointsControllerCreateChannelEndpointRequestBody = components.CreateSlackChannelEndpointDto | components.CreateSlackUserEndpointDto | components.CreateWebhookEndpointDto | components.CreatePhoneEndpointDto | components.CreateMsTeamsChannelEndpointDto | components.CreateMsTeamsUserEndpointDto;
|
|
8
|
+
export type ChannelEndpointsControllerCreateChannelEndpointRequestBody = components.CreateSlackChannelEndpointDto | components.CreateSlackUserEndpointDto | components.CreateWebhookEndpointDto | components.CreatePhoneEndpointDto | components.CreateMsTeamsChannelEndpointDto | components.CreateMsTeamsUserEndpointDto | components.CreateTelegramChatEndpointDto;
|
|
9
9
|
export type ChannelEndpointsControllerCreateChannelEndpointRequest = {
|
|
10
10
|
/**
|
|
11
11
|
* A header for idempotency purposes
|
|
@@ -14,7 +14,7 @@ export type ChannelEndpointsControllerCreateChannelEndpointRequest = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Channel endpoint creation request. The structure varies based on the type field.
|
|
16
16
|
*/
|
|
17
|
-
requestBody: components.CreateSlackChannelEndpointDto | components.CreateSlackUserEndpointDto | components.CreateWebhookEndpointDto | components.CreatePhoneEndpointDto | components.CreateMsTeamsChannelEndpointDto | components.CreateMsTeamsUserEndpointDto;
|
|
17
|
+
requestBody: components.CreateSlackChannelEndpointDto | components.CreateSlackUserEndpointDto | components.CreateWebhookEndpointDto | components.CreatePhoneEndpointDto | components.CreateMsTeamsChannelEndpointDto | components.CreateMsTeamsUserEndpointDto | components.CreateTelegramChatEndpointDto;
|
|
18
18
|
};
|
|
19
19
|
export type ChannelEndpointsControllerCreateChannelEndpointResponse = {
|
|
20
20
|
headers: {
|
|
@@ -23,14 +23,14 @@ export type ChannelEndpointsControllerCreateChannelEndpointResponse = {
|
|
|
23
23
|
result: components.GetChannelEndpointResponseDto;
|
|
24
24
|
};
|
|
25
25
|
/** @internal */
|
|
26
|
-
export type ChannelEndpointsControllerCreateChannelEndpointRequestBody$Outbound = components.CreateSlackChannelEndpointDto$Outbound | components.CreateSlackUserEndpointDto$Outbound | components.CreateWebhookEndpointDto$Outbound | components.CreatePhoneEndpointDto$Outbound | components.CreateMsTeamsChannelEndpointDto$Outbound | components.CreateMsTeamsUserEndpointDto$Outbound;
|
|
26
|
+
export type ChannelEndpointsControllerCreateChannelEndpointRequestBody$Outbound = components.CreateSlackChannelEndpointDto$Outbound | components.CreateSlackUserEndpointDto$Outbound | components.CreateWebhookEndpointDto$Outbound | components.CreatePhoneEndpointDto$Outbound | components.CreateMsTeamsChannelEndpointDto$Outbound | components.CreateMsTeamsUserEndpointDto$Outbound | components.CreateTelegramChatEndpointDto$Outbound;
|
|
27
27
|
/** @internal */
|
|
28
28
|
export declare const ChannelEndpointsControllerCreateChannelEndpointRequestBody$outboundSchema: z.ZodType<ChannelEndpointsControllerCreateChannelEndpointRequestBody$Outbound, z.ZodTypeDef, ChannelEndpointsControllerCreateChannelEndpointRequestBody>;
|
|
29
29
|
export declare function channelEndpointsControllerCreateChannelEndpointRequestBodyToJSON(channelEndpointsControllerCreateChannelEndpointRequestBody: ChannelEndpointsControllerCreateChannelEndpointRequestBody): string;
|
|
30
30
|
/** @internal */
|
|
31
31
|
export type ChannelEndpointsControllerCreateChannelEndpointRequest$Outbound = {
|
|
32
32
|
"idempotency-key"?: string | undefined;
|
|
33
|
-
RequestBody: components.CreateSlackChannelEndpointDto$Outbound | components.CreateSlackUserEndpointDto$Outbound | components.CreateWebhookEndpointDto$Outbound | components.CreatePhoneEndpointDto$Outbound | components.CreateMsTeamsChannelEndpointDto$Outbound | components.CreateMsTeamsUserEndpointDto$Outbound;
|
|
33
|
+
RequestBody: components.CreateSlackChannelEndpointDto$Outbound | components.CreateSlackUserEndpointDto$Outbound | components.CreateWebhookEndpointDto$Outbound | components.CreatePhoneEndpointDto$Outbound | components.CreateMsTeamsChannelEndpointDto$Outbound | components.CreateMsTeamsUserEndpointDto$Outbound | components.CreateTelegramChatEndpointDto$Outbound;
|
|
34
34
|
};
|
|
35
35
|
/** @internal */
|
|
36
36
|
export declare const ChannelEndpointsControllerCreateChannelEndpointRequest$outboundSchema: z.ZodType<ChannelEndpointsControllerCreateChannelEndpointRequest$Outbound, z.ZodTypeDef, ChannelEndpointsControllerCreateChannelEndpointRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelendpointscontrollercreatechannelendpoint.d.ts","sourceRoot":"","sources":["../../src/models/operations/channelendpointscontrollercreatechannelendpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,0DAA0D,GAClE,UAAU,CAAC,6BAA6B,GACxC,UAAU,CAAC,0BAA0B,GACrC,UAAU,CAAC,wBAAwB,GACnC,UAAU,CAAC,sBAAsB,GACjC,UAAU,CAAC,+BAA+B,GAC1C,UAAU,CAAC,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"channelendpointscontrollercreatechannelendpoint.d.ts","sourceRoot":"","sources":["../../src/models/operations/channelendpointscontrollercreatechannelendpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,0DAA0D,GAClE,UAAU,CAAC,6BAA6B,GACxC,UAAU,CAAC,0BAA0B,GACrC,UAAU,CAAC,wBAAw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UAAU,CAAC,iCAAiC,GAC5C,UAAU,CAAC,+BAA+B,GAC1C,UAAU,CAAC,wCAAwC,GACnD,UAAU,CAAC,qCAAqC,GAChD,UAAU,CAAC,sCAAsC,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qEAAqE,EAChF,CAAC,CAAC,OAAO,CACP,+DAA+D,EAC/D,CAAC,CAAC,UAAU,EACZ,sDAAsD,CAiBtD,CAAC;AAEL,wBAAgB,4DAA4D,CAC1E,sDAAsD,EACpD,sDAAsD,GACvD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,qEAAqE,EAChF,CAAC,CAAC,OAAO,CACP,uDAAuD,EACvD,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEL,wBAAgB,+DAA+D,CAC7E,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,uDAAuD,EACvD,kBAAkB,CACnB,CAQA"}
|
|
@@ -52,6 +52,7 @@ exports.ChannelEndpointsControllerCreateChannelEndpointRequestBody$outboundSchem
|
|
|
52
52
|
components.CreatePhoneEndpointDto$outboundSchema,
|
|
53
53
|
components.CreateMsTeamsChannelEndpointDto$outboundSchema,
|
|
54
54
|
components.CreateMsTeamsUserEndpointDto$outboundSchema,
|
|
55
|
+
components.CreateTelegramChatEndpointDto$outboundSchema,
|
|
55
56
|
]);
|
|
56
57
|
function channelEndpointsControllerCreateChannelEndpointRequestBodyToJSON(channelEndpointsControllerCreateChannelEndpointRequestBody) {
|
|
57
58
|
return JSON.stringify(exports.ChannelEndpointsControllerCreateChannelEndpointRequestBody$outboundSchema
|
|
@@ -67,6 +68,7 @@ exports.ChannelEndpointsControllerCreateChannelEndpointRequest$outboundSchema =
|
|
|
67
68
|
components.CreatePhoneEndpointDto$outboundSchema,
|
|
68
69
|
components.CreateMsTeamsChannelEndpointDto$outboundSchema,
|
|
69
70
|
components.CreateMsTeamsUserEndpointDto$outboundSchema,
|
|
71
|
+
components.CreateTelegramChatEndpointDto$outboundSchema,
|
|
70
72
|
]),
|
|
71
73
|
}).transform((v) => {
|
|
72
74
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelendpointscontrollercreatechannelendpoint.js","sourceRoot":"","sources":["../../src/models/operations/channelendpointscontrollercreatechannelendpoint.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"channelendpointscontrollercreatechannelendpoint.js","sourceRoot":"","sources":["../../src/models/operations/channelendpointscontrollercreatechannelendpoint.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,4IAQC;AAuCD,oIASC;AAkBD,0IAaC;AA3JD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAgDrD,gBAAgB;AACH,QAAA,yEAAyE,GAKhF,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,4CAA4C;IACvD,UAAU,CAAC,yCAAyC;IACpD,UAAU,CAAC,uCAAuC;IAClD,UAAU,CAAC,qCAAqC;IAChD,UAAU,CAAC,8CAA8C;IACzD,UAAU,CAAC,2CAA2C;IACtD,UAAU,CAAC,4CAA4C;CACxD,CAAC,CAAC;AAEL,SAAgB,gEAAgE,CAC9E,0DAC4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,iFAAyE;SACtE,KAAK,CAAC,0DAA0D,CAAC,CACrE,CAAC;AACJ,CAAC;AAeD,gBAAgB;AACH,QAAA,qEAAqE,GAK5E,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;QACnB,UAAU,CAAC,4CAA4C;QACvD,UAAU,CAAC,yCAAyC;QACpD,UAAU,CAAC,uCAAuC;QAClD,UAAU,CAAC,qCAAqC;QAChD,UAAU,CAAC,8CAA8C;QACzD,UAAU,CAAC,2CAA2C;QACtD,UAAU,CAAC,4CAA4C;KACxD,CAAC;CACH,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,SAAgB,4DAA4D,CAC1E,sDACwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,6EAAqE,CAAC,KAAK,CACzE,sDAAsD,CACvD,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,qEAAqE,GAK5E,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClD,MAAM,EAAE,UAAU,CAAC,2CAA2C;CAC/D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,SAAgB,+DAA+D,CAC7E,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,6EAAqE;SAClE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzB,qFAAqF,CACtF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ export declare class EnvironmentVariables extends ClientSDK {
|
|
|
27
27
|
* Update a variable
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Updates an existing environment variable. Providing values
|
|
30
|
+
* Updates an existing environment variable. Providing `values` merges them into the existing per-environment values by `_environmentId`; envs not present in the request keep their stored value. Submitting the masked secret placeholder (the value returned by read endpoints for secret variables) as a real value is rejected.
|
|
31
31
|
*/
|
|
32
32
|
update(updateEnvironmentVariableRequestDto: components.UpdateEnvironmentVariableRequestDto, variableKey: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.EnvironmentVariablesControllerUpdateEnvironmentVariableResponse>;
|
|
33
33
|
/**
|
|
@@ -44,7 +44,7 @@ class EnvironmentVariables extends sdks_js_1.ClientSDK {
|
|
|
44
44
|
* Update a variable
|
|
45
45
|
*
|
|
46
46
|
* @remarks
|
|
47
|
-
* Updates an existing environment variable. Providing values
|
|
47
|
+
* Updates an existing environment variable. Providing `values` merges them into the existing per-environment values by `_environmentId`; envs not present in the request keep their stored value. Submitting the masked secret placeholder (the value returned by read endpoints for secret variables) as a real value is rejected.
|
|
48
48
|
*/
|
|
49
49
|
async update(updateEnvironmentVariableRequestDto, variableKey, idempotencyKey, options) {
|
|
50
50
|
return (0, fp_js_1.unwrapAsync)((0, environmentVariablesUpdate_js_1.environmentVariablesUpdate)(this, updateEnvironmentVariableRequestDto, variableKey, idempotencyKey, options));
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Update a variable
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Updates an existing environment variable. Providing values
|
|
34
|
+
* Updates an existing environment variable. Providing `values` merges them into the existing per-environment values by `_environmentId`; envs not present in the request keep their stored value. Submitting the masked secret placeholder (the value returned by read endpoints for secret variables) as a real value is rejected.
|
|
35
35
|
*/
|
|
36
36
|
export function environmentVariablesUpdate(
|
|
37
37
|
client: NovuCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -59,7 +59,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
59
59
|
export const SDK_METADATA = {
|
|
60
60
|
language: "typescript",
|
|
61
61
|
openapiDocVersion: "3.15.0",
|
|
62
|
-
sdkVersion: "3.
|
|
63
|
-
genVersion: "2.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 3.
|
|
62
|
+
sdkVersion: "3.17.0",
|
|
63
|
+
genVersion: "2.892.1",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 3.17.0 2.892.1 3.15.0 @novu/api",
|
|
65
65
|
} as const;
|
|
@@ -51,7 +51,7 @@ export type ActivityNotificationJobResponseDtoType = ClosedEnum<
|
|
|
51
51
|
/**
|
|
52
52
|
* Optional payload for the job
|
|
53
53
|
*/
|
|
54
|
-
export type
|
|
54
|
+
export type Payload = {};
|
|
55
55
|
|
|
56
56
|
export type ActivityNotificationJobResponseDto = {
|
|
57
57
|
/**
|
|
@@ -81,7 +81,7 @@ export type ActivityNotificationJobResponseDto = {
|
|
|
81
81
|
/**
|
|
82
82
|
* Optional payload for the job
|
|
83
83
|
*/
|
|
84
|
-
payload?:
|
|
84
|
+
payload?: Payload | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* Provider ID of the job
|
|
87
87
|
*/
|
|
@@ -107,25 +107,16 @@ export const ActivityNotificationJobResponseDtoType$inboundSchema:
|
|
|
107
107
|
);
|
|
108
108
|
|
|
109
109
|
/** @internal */
|
|
110
|
-
export const
|
|
111
|
-
|
|
112
|
-
z.ZodTypeDef,
|
|
113
|
-
unknown
|
|
114
|
-
> = z.object({});
|
|
110
|
+
export const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown> =
|
|
111
|
+
z.object({});
|
|
115
112
|
|
|
116
|
-
export function
|
|
113
|
+
export function payloadFromJSON(
|
|
117
114
|
jsonString: string,
|
|
118
|
-
): SafeParseResult<
|
|
119
|
-
ActivityNotificationJobResponseDtoPayload,
|
|
120
|
-
SDKValidationError
|
|
121
|
-
> {
|
|
115
|
+
): SafeParseResult<Payload, SDKValidationError> {
|
|
122
116
|
return safeParse(
|
|
123
117
|
jsonString,
|
|
124
|
-
(x) =>
|
|
125
|
-
|
|
126
|
-
JSON.parse(x),
|
|
127
|
-
),
|
|
128
|
-
`Failed to parse 'ActivityNotificationJobResponseDtoPayload' from JSON`,
|
|
118
|
+
(x) => Payload$inboundSchema.parse(JSON.parse(x)),
|
|
119
|
+
`Failed to parse 'Payload' from JSON`,
|
|
129
120
|
);
|
|
130
121
|
}
|
|
131
122
|
|
|
@@ -143,8 +134,7 @@ export const ActivityNotificationJobResponseDto$inboundSchema: z.ZodType<
|
|
|
143
134
|
),
|
|
144
135
|
step: ActivityNotificationStepResponseDto$inboundSchema,
|
|
145
136
|
overrides: z.record(z.any()).optional(),
|
|
146
|
-
payload: z.lazy(() =>
|
|
147
|
-
.optional(),
|
|
137
|
+
payload: z.lazy(() => Payload$inboundSchema).optional(),
|
|
148
138
|
providerId: ProvidersIdEnum$inboundSchema,
|
|
149
139
|
status: z.string(),
|
|
150
140
|
updatedAt: z.string().optional(),
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./stepfilterdto.js";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* The channel type for the integration
|
|
20
|
+
* The channel type for the integration. Not required for agent-kind integrations.
|
|
21
21
|
*/
|
|
22
22
|
export const CreateIntegrationRequestDtoChannel = {
|
|
23
23
|
InApp: "in_app",
|
|
@@ -27,12 +27,26 @@ export const CreateIntegrationRequestDtoChannel = {
|
|
|
27
27
|
Push: "push",
|
|
28
28
|
} as const;
|
|
29
29
|
/**
|
|
30
|
-
* The channel type for the integration
|
|
30
|
+
* The channel type for the integration. Not required for agent-kind integrations.
|
|
31
31
|
*/
|
|
32
32
|
export type CreateIntegrationRequestDtoChannel = ClosedEnum<
|
|
33
33
|
typeof CreateIntegrationRequestDtoChannel
|
|
34
34
|
>;
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not require a channel.
|
|
38
|
+
*/
|
|
39
|
+
export const CreateIntegrationRequestDtoKind = {
|
|
40
|
+
Delivery: "delivery",
|
|
41
|
+
Agent: "agent",
|
|
42
|
+
} as const;
|
|
43
|
+
/**
|
|
44
|
+
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not require a channel.
|
|
45
|
+
*/
|
|
46
|
+
export type CreateIntegrationRequestDtoKind = ClosedEnum<
|
|
47
|
+
typeof CreateIntegrationRequestDtoKind
|
|
48
|
+
>;
|
|
49
|
+
|
|
36
50
|
/**
|
|
37
51
|
* Configurations for the integration
|
|
38
52
|
*/
|
|
@@ -54,11 +68,15 @@ export type CreateIntegrationRequestDto = {
|
|
|
54
68
|
/**
|
|
55
69
|
* The provider ID for the integration
|
|
56
70
|
*/
|
|
57
|
-
providerId
|
|
71
|
+
providerId?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* The channel type for the integration. Not required for agent-kind integrations.
|
|
74
|
+
*/
|
|
75
|
+
channel?: CreateIntegrationRequestDtoChannel | undefined;
|
|
58
76
|
/**
|
|
59
|
-
*
|
|
77
|
+
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not require a channel.
|
|
60
78
|
*/
|
|
61
|
-
|
|
79
|
+
kind?: CreateIntegrationRequestDtoKind | undefined;
|
|
62
80
|
/**
|
|
63
81
|
* The credentials for the integration
|
|
64
82
|
*/
|
|
@@ -86,6 +104,11 @@ export const CreateIntegrationRequestDtoChannel$outboundSchema: z.ZodNativeEnum<
|
|
|
86
104
|
typeof CreateIntegrationRequestDtoChannel
|
|
87
105
|
> = z.nativeEnum(CreateIntegrationRequestDtoChannel);
|
|
88
106
|
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const CreateIntegrationRequestDtoKind$outboundSchema: z.ZodNativeEnum<
|
|
109
|
+
typeof CreateIntegrationRequestDtoKind
|
|
110
|
+
> = z.nativeEnum(CreateIntegrationRequestDtoKind);
|
|
111
|
+
|
|
89
112
|
/** @internal */
|
|
90
113
|
export type Configurations$Outbound = {};
|
|
91
114
|
|
|
@@ -105,8 +128,9 @@ export type CreateIntegrationRequestDto$Outbound = {
|
|
|
105
128
|
name?: string | undefined;
|
|
106
129
|
identifier?: string | undefined;
|
|
107
130
|
_environmentId?: string | undefined;
|
|
108
|
-
providerId
|
|
109
|
-
channel
|
|
131
|
+
providerId?: string | undefined;
|
|
132
|
+
channel?: string | undefined;
|
|
133
|
+
kind?: string | undefined;
|
|
110
134
|
credentials?: CredentialsDto$Outbound | undefined;
|
|
111
135
|
active?: boolean | undefined;
|
|
112
136
|
check?: boolean | undefined;
|
|
@@ -123,8 +147,9 @@ export const CreateIntegrationRequestDto$outboundSchema: z.ZodType<
|
|
|
123
147
|
name: z.string().optional(),
|
|
124
148
|
identifier: z.string().optional(),
|
|
125
149
|
environmentId: z.string().optional(),
|
|
126
|
-
providerId: z.string(),
|
|
127
|
-
channel: CreateIntegrationRequestDtoChannel$outboundSchema,
|
|
150
|
+
providerId: z.string().optional(),
|
|
151
|
+
channel: CreateIntegrationRequestDtoChannel$outboundSchema.optional(),
|
|
152
|
+
kind: CreateIntegrationRequestDtoKind$outboundSchema.optional(),
|
|
128
153
|
credentials: CredentialsDto$outboundSchema.optional(),
|
|
129
154
|
active: z.boolean().optional(),
|
|
130
155
|
check: z.boolean().optional(),
|