@novu/api 3.15.1-rc.1 → 3.16.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/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/credentialsdto.d.ts +4 -0
- package/models/components/credentialsdto.d.ts.map +1 -1
- package/models/components/credentialsdto.js +4 -0
- package/models/components/credentialsdto.js.map +1 -1
- package/models/components/getchannelconnectionresponsedto.d.ts +1 -0
- package/models/components/getchannelconnectionresponsedto.d.ts.map +1 -1
- package/models/components/getchannelconnectionresponsedto.js +1 -0
- package/models/components/getchannelconnectionresponsedto.js.map +1 -1
- package/models/components/getchannelendpointresponsedto.d.ts +1 -0
- package/models/components/getchannelendpointresponsedto.d.ts.map +1 -1
- package/models/components/getchannelendpointresponsedto.js +1 -0
- package/models/components/getchannelendpointresponsedto.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/providersidenum.d.ts +1 -0
- package/models/components/providersidenum.d.ts.map +1 -1
- package/models/components/providersidenum.js +1 -0
- package/models/components/providersidenum.js.map +1 -1
- 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/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/createintegrationrequestdto.ts +34 -9
- package/src/models/components/credentialsdto.ts +8 -0
- package/src/models/components/getchannelconnectionresponsedto.ts +1 -0
- package/src/models/components/getchannelendpointresponsedto.ts +1 -0
- package/src/models/components/integrationresponsedto.ts +30 -8
- package/src/models/components/providersidenum.ts +1 -0
- package/src/models/components/testdomainrouteresponsedto.ts +2 -21
- package/src/sdk/environmentvariables.ts +1 -1
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.IntegrationResponseDto$inboundSchema = exports.IntegrationResponseDtoChannel$inboundSchema = exports.IntegrationResponseDtoChannel = void 0;
|
|
39
|
+
exports.IntegrationResponseDto$inboundSchema = exports.Kind$inboundSchema = exports.IntegrationResponseDtoChannel$inboundSchema = exports.Kind = exports.IntegrationResponseDtoChannel = void 0;
|
|
40
40
|
exports.integrationResponseDtoFromJSON = integrationResponseDtoFromJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
@@ -45,7 +45,7 @@ const configurationsdto_js_1 = require("./configurationsdto.js");
|
|
|
45
45
|
const credentialsdto_js_1 = require("./credentialsdto.js");
|
|
46
46
|
const stepfilterdto_js_1 = require("./stepfilterdto.js");
|
|
47
47
|
/**
|
|
48
|
-
* The channel type for the integration, which defines how it communicates (e.g., email, SMS).
|
|
48
|
+
* The channel type for the integration, which defines how it communicates (e.g., email, SMS). Not set for agent-kind integrations.
|
|
49
49
|
*/
|
|
50
50
|
exports.IntegrationResponseDtoChannel = {
|
|
51
51
|
InApp: "in_app",
|
|
@@ -54,9 +54,18 @@ exports.IntegrationResponseDtoChannel = {
|
|
|
54
54
|
Chat: "chat",
|
|
55
55
|
Push: "push",
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not have a channel.
|
|
59
|
+
*/
|
|
60
|
+
exports.Kind = {
|
|
61
|
+
Delivery: "delivery",
|
|
62
|
+
Agent: "agent",
|
|
63
|
+
};
|
|
57
64
|
/** @internal */
|
|
58
65
|
exports.IntegrationResponseDtoChannel$inboundSchema = z.nativeEnum(exports.IntegrationResponseDtoChannel);
|
|
59
66
|
/** @internal */
|
|
67
|
+
exports.Kind$inboundSchema = z.nativeEnum(exports.Kind);
|
|
68
|
+
/** @internal */
|
|
60
69
|
exports.IntegrationResponseDto$inboundSchema = z.object({
|
|
61
70
|
_id: z.string().optional(),
|
|
62
71
|
_environmentId: z.string(),
|
|
@@ -64,8 +73,9 @@ exports.IntegrationResponseDto$inboundSchema = z.object({
|
|
|
64
73
|
name: z.string(),
|
|
65
74
|
identifier: z.string(),
|
|
66
75
|
providerId: z.string(),
|
|
67
|
-
channel: exports.IntegrationResponseDtoChannel$inboundSchema,
|
|
68
|
-
|
|
76
|
+
channel: exports.IntegrationResponseDtoChannel$inboundSchema.optional(),
|
|
77
|
+
kind: exports.Kind$inboundSchema.optional(),
|
|
78
|
+
credentials: credentialsdto_js_1.CredentialsDto$inboundSchema.optional(),
|
|
69
79
|
configurations: configurationsdto_js_1.ConfigurationsDto$inboundSchema.optional(),
|
|
70
80
|
active: z.boolean(),
|
|
71
81
|
deleted: z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationresponsedto.js","sourceRoot":"","sources":["../../src/models/components/integrationresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"integrationresponsedto.js","sourceRoot":"","sources":["../../src/models/components/integrationresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0JH,wEAQC;AAhKD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAIjD,iEAGgC;AAChC,2DAG6B;AAC7B,yDAAgF;AAEhF;;GAEG;AACU,QAAA,6BAA6B,GAAG;IAC3C,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAQX;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAyEX,gBAAgB;AACH,QAAA,2CAA2C,GAEpD,CAAC,CAAC,UAAU,CAAC,qCAA6B,CAAC,CAAC;AAEhD,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AAEF,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,OAAO,EAAE,mDAA2C,CAAC,QAAQ,EAAE;IAC/D,IAAI,EAAE,0BAAkB,CAAC,QAAQ,EAAE;IACnC,WAAW,EAAE,gDAA4B,CAAC,QAAQ,EAAE;IACpD,cAAc,EAAE,sDAA+B,CAAC,QAAQ,EAAE;IAC1D,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,8CAA2B,CAAC,CAAC,QAAQ,EAAE;CAC5D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,KAAK,EAAE,IAAI;QACX,gBAAgB,EAAE,eAAe;QACjC,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providersidenum.d.ts","sourceRoot":"","sources":["../../src/models/components/providersidenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"providersidenum.d.ts","sourceRoot":"","sources":["../../src/models/components/providersidenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFlB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,aAAa,CACzD,OAAO,eAAe,CACS,CAAC;AAClC,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,eAAe,CACS,CAAC"}
|
|
@@ -122,6 +122,7 @@ exports.ProvidersIdEnum = {
|
|
|
122
122
|
WhatsappBusiness: "whatsapp-business",
|
|
123
123
|
ChatWebhook: "chat-webhook",
|
|
124
124
|
NovuSlack: "novu-slack",
|
|
125
|
+
Anthropic: "anthropic",
|
|
125
126
|
};
|
|
126
127
|
/** @internal */
|
|
127
128
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;IAClB,YAAY,EAAE,eAAe;IAC7B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,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;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;IAClB,YAAY,EAAE,eAAe;IAC7B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,eAAe;IAC7B,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,kBAAkB;IAClC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,aAAa;IACzB,GAAG,EAAE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a;IACzB,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,WAAW;CACd,CAAC;AAMX,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,CAAC,CAAC,UAAU,CAAC,uBAAe,CAAC,CAAC;AAClC,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,qCAA6B,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,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C,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,gFAQC;AAhFD,0CAA4B;AAC5B,qDAAiD;AAIjD,yFAG4C;AAC5C,6FAG8C;AAEjC,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGE,QAAA,8BAA8B,GAAG;IAC5C,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACV,CAAC;AAuBX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAE7B,gBAAgB;AACH,QAAA,4CAA4C,GAErD,CAAC,CAAC,UAAU,CAAC,sCAA8B,CAAC,CAAC;AAEjD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,YAAY,EAAE,kCAA0B,CAAC,QAAQ,EAAE;IACnD,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC1C,IAAI,EAAE,oDAA4C,CAAC,QAAQ,EAAE;IAC7D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,OAAO,EAAE,kFAA6C,CAAC,QAAQ,EAAE;IACjE,KAAK,EAAE,8EAA2C,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,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.16.0",
|
|
63
|
+
genVersion: "2.884.0",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 3.16.0 2.884.0 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(),
|
|
@@ -59,6 +59,8 @@ export type CredentialsDto = {
|
|
|
59
59
|
appIOBaseUrl?: string | undefined;
|
|
60
60
|
signingSecret?: string | undefined;
|
|
61
61
|
outboundIntegrationId?: string | undefined;
|
|
62
|
+
useFromAddressOverride?: boolean | undefined;
|
|
63
|
+
fromAddressOverride?: string | undefined;
|
|
62
64
|
};
|
|
63
65
|
|
|
64
66
|
/** @internal */
|
|
@@ -144,6 +146,8 @@ export const CredentialsDto$inboundSchema: z.ZodType<
|
|
|
144
146
|
AppIOBaseUrl: z.string().optional(),
|
|
145
147
|
signingSecret: z.string().optional(),
|
|
146
148
|
outboundIntegrationId: z.string().optional(),
|
|
149
|
+
useFromAddressOverride: z.boolean().optional(),
|
|
150
|
+
fromAddressOverride: z.string().optional(),
|
|
147
151
|
}).transform((v) => {
|
|
148
152
|
return remap$(v, {
|
|
149
153
|
"AppIOBaseUrl": "appIOBaseUrl",
|
|
@@ -199,6 +203,8 @@ export type CredentialsDto$Outbound = {
|
|
|
199
203
|
AppIOBaseUrl?: string | undefined;
|
|
200
204
|
signingSecret?: string | undefined;
|
|
201
205
|
outboundIntegrationId?: string | undefined;
|
|
206
|
+
useFromAddressOverride?: boolean | undefined;
|
|
207
|
+
fromAddressOverride?: string | undefined;
|
|
202
208
|
};
|
|
203
209
|
|
|
204
210
|
/** @internal */
|
|
@@ -255,6 +261,8 @@ export const CredentialsDto$outboundSchema: z.ZodType<
|
|
|
255
261
|
appIOBaseUrl: z.string().optional(),
|
|
256
262
|
signingSecret: z.string().optional(),
|
|
257
263
|
outboundIntegrationId: z.string().optional(),
|
|
264
|
+
useFromAddressOverride: z.boolean().optional(),
|
|
265
|
+
fromAddressOverride: z.string().optional(),
|
|
258
266
|
}).transform((v) => {
|
|
259
267
|
return remap$(v, {
|
|
260
268
|
appIOBaseUrl: "AppIOBaseUrl",
|
|
@@ -125,6 +125,7 @@ export const GetChannelEndpointResponseDtoProviderId = {
|
|
|
125
125
|
WhatsappBusiness: "whatsapp-business",
|
|
126
126
|
ChatWebhook: "chat-webhook",
|
|
127
127
|
NovuSlack: "novu-slack",
|
|
128
|
+
Anthropic: "anthropic",
|
|
128
129
|
} as const;
|
|
129
130
|
/**
|
|
130
131
|
* The provider identifier (e.g., sendgrid, twilio, slack, etc.).
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import { StepFilterDto, StepFilterDto$inboundSchema } from "./stepfilterdto.js";
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* The channel type for the integration, which defines how it communicates (e.g., email, SMS).
|
|
22
|
+
* The channel type for the integration, which defines how it communicates (e.g., email, SMS). Not set for agent-kind integrations.
|
|
23
23
|
*/
|
|
24
24
|
export const IntegrationResponseDtoChannel = {
|
|
25
25
|
InApp: "in_app",
|
|
@@ -29,12 +29,24 @@ export const IntegrationResponseDtoChannel = {
|
|
|
29
29
|
Push: "push",
|
|
30
30
|
} as const;
|
|
31
31
|
/**
|
|
32
|
-
* The channel type for the integration, which defines how it communicates (e.g., email, SMS).
|
|
32
|
+
* The channel type for the integration, which defines how it communicates (e.g., email, SMS). Not set for agent-kind integrations.
|
|
33
33
|
*/
|
|
34
34
|
export type IntegrationResponseDtoChannel = ClosedEnum<
|
|
35
35
|
typeof IntegrationResponseDtoChannel
|
|
36
36
|
>;
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not have a channel.
|
|
40
|
+
*/
|
|
41
|
+
export const Kind = {
|
|
42
|
+
Delivery: "delivery",
|
|
43
|
+
Agent: "agent",
|
|
44
|
+
} as const;
|
|
45
|
+
/**
|
|
46
|
+
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not have a channel.
|
|
47
|
+
*/
|
|
48
|
+
export type Kind = ClosedEnum<typeof Kind>;
|
|
49
|
+
|
|
38
50
|
export type IntegrationResponseDto = {
|
|
39
51
|
/**
|
|
40
52
|
* The unique identifier of the integration record in the database. This is automatically generated.
|
|
@@ -61,13 +73,17 @@ export type IntegrationResponseDto = {
|
|
|
61
73
|
*/
|
|
62
74
|
providerId: string;
|
|
63
75
|
/**
|
|
64
|
-
* The channel type for the integration, which defines how it communicates (e.g., email, SMS).
|
|
76
|
+
* The channel type for the integration, which defines how it communicates (e.g., email, SMS). Not set for agent-kind integrations.
|
|
77
|
+
*/
|
|
78
|
+
channel?: IntegrationResponseDtoChannel | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not have a channel.
|
|
65
81
|
*/
|
|
66
|
-
|
|
82
|
+
kind?: Kind | undefined;
|
|
67
83
|
/**
|
|
68
|
-
* The credentials required for the integration to function
|
|
84
|
+
* The decrypted credentials required for the integration to function (e.g. provider API keys, signing secrets). Only returned to dashboard/session-token callers; API-key authenticated callers receive the integration metadata without this field to avoid amplifying API-key leaks into provider-credential leaks.
|
|
69
85
|
*/
|
|
70
|
-
credentials
|
|
86
|
+
credentials?: CredentialsDto | undefined;
|
|
71
87
|
/**
|
|
72
88
|
* The configurations required for enabling the additional configurations of the integration.
|
|
73
89
|
*/
|
|
@@ -103,6 +119,11 @@ export const IntegrationResponseDtoChannel$inboundSchema: z.ZodNativeEnum<
|
|
|
103
119
|
typeof IntegrationResponseDtoChannel
|
|
104
120
|
> = z.nativeEnum(IntegrationResponseDtoChannel);
|
|
105
121
|
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
|
|
124
|
+
Kind,
|
|
125
|
+
);
|
|
126
|
+
|
|
106
127
|
/** @internal */
|
|
107
128
|
export const IntegrationResponseDto$inboundSchema: z.ZodType<
|
|
108
129
|
IntegrationResponseDto,
|
|
@@ -115,8 +136,9 @@ export const IntegrationResponseDto$inboundSchema: z.ZodType<
|
|
|
115
136
|
name: z.string(),
|
|
116
137
|
identifier: z.string(),
|
|
117
138
|
providerId: z.string(),
|
|
118
|
-
channel: IntegrationResponseDtoChannel$inboundSchema,
|
|
119
|
-
|
|
139
|
+
channel: IntegrationResponseDtoChannel$inboundSchema.optional(),
|
|
140
|
+
kind: Kind$inboundSchema.optional(),
|
|
141
|
+
credentials: CredentialsDto$inboundSchema.optional(),
|
|
120
142
|
configurations: ConfigurationsDto$inboundSchema.optional(),
|
|
121
143
|
active: z.boolean(),
|
|
122
144
|
deleted: z.boolean(),
|
|
@@ -30,11 +30,6 @@ export type TestDomainRouteResponseDtoType = ClosedEnum<
|
|
|
30
30
|
typeof TestDomainRouteResponseDtoType
|
|
31
31
|
>;
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* The outbound payload (dry-run only).
|
|
35
|
-
*/
|
|
36
|
-
export type Payload = {};
|
|
37
|
-
|
|
38
33
|
export type TestDomainRouteResponseDto = {
|
|
39
34
|
matched: boolean;
|
|
40
35
|
dryRun: boolean;
|
|
@@ -48,7 +43,7 @@ export type TestDomainRouteResponseDto = {
|
|
|
48
43
|
/**
|
|
49
44
|
* The outbound payload (dry-run only).
|
|
50
45
|
*/
|
|
51
|
-
payload?:
|
|
46
|
+
payload?: { [k: string]: any } | undefined;
|
|
52
47
|
webhook?: TestDomainRouteWebhookResultDto | undefined;
|
|
53
48
|
agent?: TestDomainRouteAgentResultDto | undefined;
|
|
54
49
|
};
|
|
@@ -62,20 +57,6 @@ export const TestDomainRouteResponseDtoType$inboundSchema: z.ZodNativeEnum<
|
|
|
62
57
|
typeof TestDomainRouteResponseDtoType
|
|
63
58
|
> = z.nativeEnum(TestDomainRouteResponseDtoType);
|
|
64
59
|
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown> =
|
|
67
|
-
z.object({});
|
|
68
|
-
|
|
69
|
-
export function payloadFromJSON(
|
|
70
|
-
jsonString: string,
|
|
71
|
-
): SafeParseResult<Payload, SDKValidationError> {
|
|
72
|
-
return safeParse(
|
|
73
|
-
jsonString,
|
|
74
|
-
(x) => Payload$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
-
`Failed to parse 'Payload' from JSON`,
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
60
|
/** @internal */
|
|
80
61
|
export const TestDomainRouteResponseDto$inboundSchema: z.ZodType<
|
|
81
62
|
TestDomainRouteResponseDto,
|
|
@@ -88,7 +69,7 @@ export const TestDomainRouteResponseDto$inboundSchema: z.ZodType<
|
|
|
88
69
|
mxRecordConfigured: z.boolean().optional(),
|
|
89
70
|
type: TestDomainRouteResponseDtoType$inboundSchema.optional(),
|
|
90
71
|
wouldDeliverTo: z.string().optional(),
|
|
91
|
-
payload: z.
|
|
72
|
+
payload: z.record(z.any()).optional(),
|
|
92
73
|
webhook: TestDomainRouteWebhookResultDto$inboundSchema.optional(),
|
|
93
74
|
agent: TestDomainRouteAgentResultDto$inboundSchema.optional(),
|
|
94
75
|
});
|
|
@@ -82,7 +82,7 @@ export class EnvironmentVariables extends ClientSDK {
|
|
|
82
82
|
* Update a variable
|
|
83
83
|
*
|
|
84
84
|
* @remarks
|
|
85
|
-
* Updates an existing environment variable. Providing values
|
|
85
|
+
* 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.
|
|
86
86
|
*/
|
|
87
87
|
async update(
|
|
88
88
|
updateEnvironmentVariableRequestDto:
|