@novu/api 1.4.0 → 1.5.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/README.md +11 -7
- package/bin/mcp-server.js +1464 -1202
- package/bin/mcp-server.js.map +68 -62
- package/docs/sdks/credentials/README.md +6 -6
- package/docs/sdks/environments/README.md +74 -0
- package/docs/sdks/integrations/README.md +1 -1
- package/docs/sdks/novu/README.md +68 -1
- package/examples/README.md +31 -0
- package/examples/package-lock.json +626 -0
- package/examples/package.json +18 -0
- package/examples/trigger.example.ts +36 -0
- package/funcs/environmentsGetTags.d.ts +18 -0
- package/funcs/environmentsGetTags.d.ts.map +1 -0
- package/funcs/environmentsGetTags.js +146 -0
- package/funcs/environmentsGetTags.js.map +1 -0
- package/funcs/retrieve.d.ts +11 -0
- package/funcs/retrieve.d.ts.map +1 -0
- package/funcs/retrieve.js +119 -0
- package/funcs/retrieve.js.map +1 -0
- package/funcs/subscribersCredentialsAppend.d.ts +3 -3
- package/funcs/subscribersCredentialsAppend.js +3 -3
- package/funcs/subscribersCredentialsUpdate.d.ts +3 -3
- package/funcs/subscribersCredentialsUpdate.js +3 -3
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/mcp-server/cli/start/command.d.ts.map +1 -1
- package/mcp-server/cli/start/command.js +0 -12
- package/mcp-server/cli/start/command.js.map +1 -1
- package/mcp-server/cli/start/impl.d.ts +0 -2
- package/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/mcp-server/cli/start/impl.js +0 -2
- package/mcp-server/cli/start/impl.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +9 -5
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/environmentsGetTags.d.ts +9 -0
- package/mcp-server/tools/environmentsGetTags.d.ts.map +1 -0
- package/mcp-server/tools/environmentsGetTags.js +55 -0
- package/mcp-server/tools/environmentsGetTags.js.map +1 -0
- package/mcp-server/tools/retrieve.d.ts +8 -0
- package/mcp-server/tools/retrieve.d.ts.map +1 -0
- package/mcp-server/tools/retrieve.js +52 -0
- package/mcp-server/tools/retrieve.js.map +1 -0
- package/mcp-server/tools/subscribersCredentialsAppend.js +3 -3
- package/mcp-server/tools/subscribersCredentialsAppend.js.map +1 -1
- package/mcp-server/tools/subscribersCredentialsUpdate.js +3 -3
- package/mcp-server/tools/subscribersCredentialsUpdate.js.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.d.ts +2 -2
- package/models/components/activitynotificationtemplateresponsedto.js +3 -3
- package/models/components/chatorpushproviderenum.d.ts +3 -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/chatstepresponsedto.d.ts +2 -2
- package/models/components/chatstepresponsedto.d.ts.map +1 -1
- package/models/components/chatstepresponsedto.js +3 -3
- package/models/components/chatstepresponsedto.js.map +1 -1
- package/models/components/chatstepupsertdto.d.ts +13 -20
- package/models/components/chatstepupsertdto.d.ts.map +1 -1
- package/models/components/chatstepupsertdto.js +7 -10
- package/models/components/chatstepupsertdto.js.map +1 -1
- package/models/components/{stepcontentissueenum.d.ts → contentissueenum.d.ts} +8 -8
- package/models/components/contentissueenum.d.ts.map +1 -0
- package/models/components/{stepcontentissueenum.js → contentissueenum.js} +12 -12
- package/models/components/contentissueenum.js.map +1 -0
- package/models/components/createworkflowdto.d.ts +19 -14
- package/models/components/createworkflowdto.d.ts.map +1 -1
- package/models/components/createworkflowdto.js +6 -4
- package/models/components/createworkflowdto.js.map +1 -1
- package/models/components/customstepresponsedto.d.ts +2 -2
- package/models/components/customstepresponsedto.d.ts.map +1 -1
- package/models/components/customstepresponsedto.js +3 -3
- package/models/components/customstepresponsedto.js.map +1 -1
- package/models/components/customstepupsertdto.d.ts +13 -15
- package/models/components/customstepupsertdto.d.ts.map +1 -1
- package/models/components/customstepupsertdto.js +7 -8
- package/models/components/customstepupsertdto.js.map +1 -1
- package/models/components/delaycontroldto.d.ts +8 -8
- package/models/components/delaycontroldto.d.ts.map +1 -1
- package/models/components/delaycontroldto.js +13 -13
- package/models/components/delaycontroldto.js.map +1 -1
- package/models/components/delaystepresponsedto.d.ts +2 -2
- package/models/components/delaystepresponsedto.d.ts.map +1 -1
- package/models/components/delaystepresponsedto.js +3 -3
- package/models/components/delaystepresponsedto.js.map +1 -1
- package/models/components/delaystepupsertdto.d.ts +13 -102
- package/models/components/delaystepupsertdto.d.ts.map +1 -1
- package/models/components/delaystepupsertdto.js +8 -62
- package/models/components/delaystepupsertdto.js.map +1 -1
- package/models/components/digeststepresponsedto.d.ts +2 -2
- package/models/components/digeststepresponsedto.d.ts.map +1 -1
- package/models/components/digeststepresponsedto.js +3 -3
- package/models/components/digeststepresponsedto.js.map +1 -1
- package/models/components/digeststepupsertdto.d.ts +13 -121
- package/models/components/digeststepupsertdto.d.ts.map +1 -1
- package/models/components/digeststepupsertdto.js +8 -70
- package/models/components/digeststepupsertdto.js.map +1 -1
- package/models/components/emailcontroldto.d.ts +5 -0
- package/models/components/emailcontroldto.d.ts.map +1 -1
- package/models/components/emailcontroldto.js +2 -0
- package/models/components/emailcontroldto.js.map +1 -1
- package/models/components/emailstepresponsedto.d.ts +7 -2
- package/models/components/emailstepresponsedto.d.ts.map +1 -1
- package/models/components/emailstepresponsedto.js +5 -3
- package/models/components/emailstepresponsedto.js.map +1 -1
- package/models/components/emailstepupsertdto.d.ts +13 -67
- package/models/components/emailstepupsertdto.d.ts.map +1 -1
- package/models/components/emailstepupsertdto.js +8 -39
- package/models/components/emailstepupsertdto.js.map +1 -1
- package/models/components/environmentresponsedto.d.ts +37 -0
- package/models/components/environmentresponsedto.d.ts.map +1 -1
- package/models/components/environmentresponsedto.js +25 -1
- package/models/components/environmentresponsedto.js.map +1 -1
- package/models/components/getenvironmenttagsdto.d.ts +29 -0
- package/models/components/getenvironmenttagsdto.d.ts.map +1 -0
- package/models/components/getenvironmenttagsdto.js +59 -0
- package/models/components/getenvironmenttagsdto.js.map +1 -0
- package/models/components/inappstepresponsedto.d.ts +2 -2
- package/models/components/inappstepresponsedto.d.ts.map +1 -1
- package/models/components/inappstepresponsedto.js +3 -3
- package/models/components/inappstepresponsedto.js.map +1 -1
- package/models/components/inappstepupsertdto.d.ts +13 -61
- package/models/components/inappstepupsertdto.d.ts.map +1 -1
- package/models/components/inappstepupsertdto.js +5 -26
- package/models/components/inappstepupsertdto.js.map +1 -1
- package/models/components/index.d.ts +4 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -3
- package/models/components/index.js.map +1 -1
- package/models/components/{stepintegrationissueenum.d.ts → integrationissueenum.d.ts} +8 -8
- package/models/components/integrationissueenum.d.ts.map +1 -0
- package/models/components/{stepintegrationissueenum.js → integrationissueenum.js} +12 -12
- package/models/components/integrationissueenum.js.map +1 -0
- package/models/components/lookbackwindowdto.d.ts +8 -8
- package/models/components/lookbackwindowdto.d.ts.map +1 -1
- package/models/components/lookbackwindowdto.js +13 -13
- package/models/components/lookbackwindowdto.js.map +1 -1
- package/models/components/messageresponsedto.d.ts +6 -6
- package/models/components/messageresponsedto.d.ts.map +1 -1
- package/models/components/messageresponsedto.js +8 -6
- package/models/components/messageresponsedto.js.map +1 -1
- package/models/components/notificationfeeditemdto.d.ts +14 -0
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +4 -0
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/patchworkflowdto.d.ts +7 -2
- package/models/components/patchworkflowdto.d.ts.map +1 -1
- package/models/components/patchworkflowdto.js +4 -2
- package/models/components/patchworkflowdto.js.map +1 -1
- package/models/components/providersidenum.d.ts +3 -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/pushstepresponsedto.d.ts +2 -2
- package/models/components/pushstepresponsedto.d.ts.map +1 -1
- package/models/components/pushstepresponsedto.js +3 -3
- package/models/components/pushstepresponsedto.js.map +1 -1
- package/models/components/pushstepupsertdto.d.ts +13 -25
- package/models/components/pushstepupsertdto.d.ts.map +1 -1
- package/models/components/pushstepupsertdto.js +7 -12
- package/models/components/pushstepupsertdto.js.map +1 -1
- package/models/components/{workfloworiginenum.d.ts → resourceoriginenum.d.ts} +8 -8
- package/models/components/{workfloworiginenum.d.ts.map → resourceoriginenum.d.ts.map} +1 -1
- package/models/components/{workfloworiginenum.js → resourceoriginenum.js} +12 -12
- package/models/components/{workfloworiginenum.js.map → resourceoriginenum.js.map} +1 -1
- package/models/components/smsstepresponsedto.d.ts +2 -2
- package/models/components/smsstepresponsedto.d.ts.map +1 -1
- package/models/components/smsstepresponsedto.js +3 -3
- package/models/components/smsstepresponsedto.js.map +1 -1
- package/models/components/smsstepupsertdto.d.ts +13 -20
- package/models/components/smsstepupsertdto.d.ts.map +1 -1
- package/models/components/smsstepupsertdto.js +7 -10
- package/models/components/smsstepupsertdto.js.map +1 -1
- package/models/components/stepcontentissuedto.d.ts +2 -2
- package/models/components/stepcontentissuedto.d.ts.map +1 -1
- package/models/components/stepcontentissuedto.js +3 -3
- package/models/components/stepcontentissuedto.js.map +1 -1
- package/models/components/stepintegrationissue.d.ts +2 -2
- package/models/components/stepintegrationissue.d.ts.map +1 -1
- package/models/components/stepintegrationissue.js +3 -3
- package/models/components/stepintegrationissue.js.map +1 -1
- package/models/components/stepresponsedto.d.ts +2 -2
- package/models/components/stepresponsedto.d.ts.map +1 -1
- package/models/components/stepresponsedto.js +3 -3
- package/models/components/stepresponsedto.js.map +1 -1
- package/models/components/subscriberchanneldto.d.ts +3 -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/uicomponentenum.d.ts +6 -0
- package/models/components/uicomponentenum.d.ts.map +1 -1
- package/models/components/uicomponentenum.js +2 -0
- package/models/components/uicomponentenum.js.map +1 -1
- package/models/components/uischemagroupenum.d.ts +3 -0
- package/models/components/uischemagroupenum.d.ts.map +1 -1
- package/models/components/uischemagroupenum.js +1 -0
- package/models/components/uischemagroupenum.js.map +1 -1
- package/models/components/uischemaproperty.d.ts +9 -0
- package/models/components/uischemaproperty.d.ts.map +1 -1
- package/models/components/uischemaproperty.js +3 -0
- package/models/components/uischemaproperty.js.map +1 -1
- package/models/components/updateworkflowdto.d.ts +21 -16
- package/models/components/updateworkflowdto.d.ts.map +1 -1
- package/models/components/updateworkflowdto.js +9 -7
- package/models/components/updateworkflowdto.js.map +1 -1
- package/models/components/workflowlistresponsedto.d.ts +82 -2
- package/models/components/workflowlistresponsedto.d.ts.map +1 -1
- package/models/components/workflowlistresponsedto.js +72 -4
- package/models/components/workflowlistresponsedto.js.map +1 -1
- package/models/components/workflowresponsedto.d.ts +96 -16
- package/models/components/workflowresponsedto.d.ts.map +1 -1
- package/models/components/workflowresponsedto.js +76 -8
- package/models/components/workflowresponsedto.js.map +1 -1
- package/models/errors/sdkerror.d.ts.map +1 -1
- package/models/errors/sdkerror.js +8 -2
- package/models/errors/sdkerror.js.map +1 -1
- package/models/operations/environmentscontrollergetenvironmenttags.d.ts +69 -0
- package/models/operations/environmentscontrollergetenvironmenttags.d.ts.map +1 -0
- package/models/operations/environmentscontrollergetenvironmenttags.js +110 -0
- package/models/operations/environmentscontrollergetenvironmenttags.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/logscontrollergetlogs.d.ts +67 -0
- package/models/operations/logscontrollergetlogs.d.ts.map +1 -0
- package/models/operations/logscontrollergetlogs.js +107 -0
- package/models/operations/logscontrollergetlogs.js.map +1 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts +1 -1
- package/package.json +4 -4
- package/sdk/credentials.d.ts +6 -6
- package/sdk/credentials.js +6 -6
- package/sdk/environments.d.ts +7 -0
- package/sdk/environments.d.ts.map +1 -1
- package/sdk/environments.js +10 -0
- package/sdk/environments.js.map +1 -1
- package/sdk/sdk.d.ts +3 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -3
- package/sdk/sdk.js.map +1 -1
- package/sources/json-development.json +2980 -2226
- package/src/funcs/environmentsGetTags.ts +232 -0
- package/src/funcs/retrieve.ts +180 -0
- package/src/funcs/subscribersCredentialsAppend.ts +3 -3
- package/src/funcs/subscribersCredentialsUpdate.ts +3 -3
- package/src/lib/config.ts +4 -4
- package/src/mcp-server/cli/start/command.ts +0 -13
- package/src/mcp-server/cli/start/impl.ts +0 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -5
- package/src/mcp-server/tools/environmentsGetTags.ts +39 -0
- package/src/mcp-server/tools/retrieve.ts +35 -0
- package/src/mcp-server/tools/subscribersCredentialsAppend.ts +3 -3
- package/src/mcp-server/tools/subscribersCredentialsUpdate.ts +3 -3
- package/src/models/components/activitynotificationtemplateresponsedto.ts +7 -7
- package/src/models/components/chatorpushproviderenum.ts +1 -0
- package/src/models/components/chatstepresponsedto.ts +8 -8
- package/src/models/components/chatstepupsertdto.ts +21 -31
- package/src/models/components/contentissueenum.ts +41 -0
- package/src/models/components/createworkflowdto.ts +21 -14
- package/src/models/components/customstepresponsedto.ts +8 -8
- package/src/models/components/customstepupsertdto.ts +21 -24
- package/src/models/components/delaycontroldto.ts +15 -16
- package/src/models/components/delaystepresponsedto.ts +8 -8
- package/src/models/components/delaystepupsertdto.ts +21 -115
- package/src/models/components/digeststepresponsedto.ts +8 -8
- package/src/models/components/digeststepupsertdto.ts +20 -146
- package/src/models/components/emailcontroldto.ts +7 -0
- package/src/models/components/emailstepresponsedto.ts +15 -8
- package/src/models/components/emailstepupsertdto.ts +21 -88
- package/src/models/components/environmentresponsedto.ts +43 -0
- package/src/models/components/getenvironmenttagsdto.ts +66 -0
- package/src/models/components/inappstepresponsedto.ts +8 -8
- package/src/models/components/inappstepupsertdto.ts +16 -87
- package/src/models/components/index.ts +4 -3
- package/src/models/components/integrationissueenum.ts +38 -0
- package/src/models/components/lookbackwindowdto.ts +16 -15
- package/src/models/components/messageresponsedto.ts +14 -12
- package/src/models/components/notificationfeeditemdto.ts +14 -0
- package/src/models/components/patchworkflowdto.ts +11 -4
- package/src/models/components/providersidenum.ts +1 -0
- package/src/models/components/pushstepresponsedto.ts +8 -8
- package/src/models/components/pushstepupsertdto.ts +21 -38
- package/src/models/components/resourceoriginenum.ts +40 -0
- package/src/models/components/smsstepresponsedto.ts +8 -8
- package/src/models/components/smsstepupsertdto.ts +20 -30
- package/src/models/components/stepcontentissuedto.ts +7 -7
- package/src/models/components/stepintegrationissue.ts +7 -7
- package/src/models/components/stepresponsedto.ts +8 -8
- package/src/models/components/subscriberchanneldto.ts +1 -0
- package/src/models/components/uicomponentenum.ts +2 -0
- package/src/models/components/uischemagroupenum.ts +1 -0
- package/src/models/components/uischemaproperty.ts +8 -0
- package/src/models/components/updateworkflowdto.ts +29 -22
- package/src/models/components/workflowlistresponsedto.ts +180 -8
- package/src/models/components/workflowresponsedto.ts +174 -22
- package/src/models/errors/sdkerror.ts +8 -2
- package/src/models/operations/environmentscontrollergetenvironmenttags.ts +186 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/logscontrollergetlogs.ts +163 -0
- package/src/models/operations/notificationscontrollerlistnotifications.ts +1 -1
- package/src/sdk/credentials.ts +6 -6
- package/src/sdk/environments.ts +20 -0
- package/src/sdk/sdk.ts +17 -5
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
- package/models/components/stepcontentissueenum.d.ts.map +0 -1
- package/models/components/stepcontentissueenum.js.map +0 -1
- package/models/components/stepintegrationissueenum.d.ts.map +0 -1
- package/models/components/stepintegrationissueenum.js.map +0 -1
- package/src/models/components/stepcontentissueenum.ts +0 -41
- package/src/models/components/stepintegrationissueenum.ts +0 -40
- package/src/models/components/workfloworiginenum.ts +0 -40
|
@@ -5,9 +5,14 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
EmailControlDto,
|
|
12
|
+
EmailControlDto$inboundSchema,
|
|
13
|
+
EmailControlDto$Outbound,
|
|
14
|
+
EmailControlDto$outboundSchema,
|
|
15
|
+
} from "./emailcontroldto.js";
|
|
11
16
|
import {
|
|
12
17
|
StepTypeEnum,
|
|
13
18
|
StepTypeEnum$inboundSchema,
|
|
@@ -15,43 +20,10 @@ import {
|
|
|
15
20
|
} from "./steptypeenum.js";
|
|
16
21
|
|
|
17
22
|
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export const EmailStepUpsertDtoEditorType = {
|
|
21
|
-
Block: "block",
|
|
22
|
-
Html: "html",
|
|
23
|
-
} as const;
|
|
24
|
-
/**
|
|
25
|
-
* Type of editor to use for the body.
|
|
26
|
-
*/
|
|
27
|
-
export type EmailStepUpsertDtoEditorType = ClosedEnum<
|
|
28
|
-
typeof EmailStepUpsertDtoEditorType
|
|
29
|
-
>;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Control values for the Email step
|
|
23
|
+
* Control values for the Email step.
|
|
33
24
|
*/
|
|
34
|
-
export type EmailStepUpsertDtoControlValues = {
|
|
35
|
-
|
|
36
|
-
* JSONLogic filter conditions for conditionally skipping the step execution. Supports complex logical operations with AND, OR, and comparison operators. See https://jsonlogic.com/ for full typing reference.
|
|
37
|
-
*/
|
|
38
|
-
skip?: { [k: string]: any } | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Subject of the email.
|
|
41
|
-
*/
|
|
42
|
-
subject: string;
|
|
43
|
-
/**
|
|
44
|
-
* Body content of the email, either a valid Maily JSON object, or html string.
|
|
45
|
-
*/
|
|
46
|
-
body?: string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Type of editor to use for the body.
|
|
49
|
-
*/
|
|
50
|
-
editorType?: EmailStepUpsertDtoEditorType | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Disable sanitization of the output.
|
|
53
|
-
*/
|
|
54
|
-
disableOutputSanitization?: boolean | undefined;
|
|
25
|
+
export type EmailStepUpsertDtoControlValues = EmailControlDto | {
|
|
26
|
+
[k: string]: any;
|
|
55
27
|
};
|
|
56
28
|
|
|
57
29
|
export type EmailStepUpsertDto = {
|
|
@@ -68,66 +40,29 @@ export type EmailStepUpsertDto = {
|
|
|
68
40
|
*/
|
|
69
41
|
type: StepTypeEnum;
|
|
70
42
|
/**
|
|
71
|
-
* Control values for the Email step
|
|
43
|
+
* Control values for the Email step.
|
|
72
44
|
*/
|
|
73
|
-
controlValues?:
|
|
45
|
+
controlValues?: EmailControlDto | { [k: string]: any } | undefined;
|
|
74
46
|
};
|
|
75
47
|
|
|
76
|
-
/** @internal */
|
|
77
|
-
export const EmailStepUpsertDtoEditorType$inboundSchema: z.ZodNativeEnum<
|
|
78
|
-
typeof EmailStepUpsertDtoEditorType
|
|
79
|
-
> = z.nativeEnum(EmailStepUpsertDtoEditorType);
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const EmailStepUpsertDtoEditorType$outboundSchema: z.ZodNativeEnum<
|
|
83
|
-
typeof EmailStepUpsertDtoEditorType
|
|
84
|
-
> = EmailStepUpsertDtoEditorType$inboundSchema;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
-
*/
|
|
90
|
-
export namespace EmailStepUpsertDtoEditorType$ {
|
|
91
|
-
/** @deprecated use `EmailStepUpsertDtoEditorType$inboundSchema` instead. */
|
|
92
|
-
export const inboundSchema = EmailStepUpsertDtoEditorType$inboundSchema;
|
|
93
|
-
/** @deprecated use `EmailStepUpsertDtoEditorType$outboundSchema` instead. */
|
|
94
|
-
export const outboundSchema = EmailStepUpsertDtoEditorType$outboundSchema;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
48
|
/** @internal */
|
|
98
49
|
export const EmailStepUpsertDtoControlValues$inboundSchema: z.ZodType<
|
|
99
50
|
EmailStepUpsertDtoControlValues,
|
|
100
51
|
z.ZodTypeDef,
|
|
101
52
|
unknown
|
|
102
|
-
> = z.
|
|
103
|
-
skip: z.record(z.any()).optional(),
|
|
104
|
-
subject: z.string(),
|
|
105
|
-
body: z.string().default(""),
|
|
106
|
-
editorType: EmailStepUpsertDtoEditorType$inboundSchema.default("block"),
|
|
107
|
-
disableOutputSanitization: z.boolean().default(false),
|
|
108
|
-
});
|
|
53
|
+
> = z.union([EmailControlDto$inboundSchema, z.record(z.any())]);
|
|
109
54
|
|
|
110
55
|
/** @internal */
|
|
111
|
-
export type EmailStepUpsertDtoControlValues$Outbound =
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
body: string;
|
|
115
|
-
editorType: string;
|
|
116
|
-
disableOutputSanitization: boolean;
|
|
117
|
-
};
|
|
56
|
+
export type EmailStepUpsertDtoControlValues$Outbound =
|
|
57
|
+
| EmailControlDto$Outbound
|
|
58
|
+
| { [k: string]: any };
|
|
118
59
|
|
|
119
60
|
/** @internal */
|
|
120
61
|
export const EmailStepUpsertDtoControlValues$outboundSchema: z.ZodType<
|
|
121
62
|
EmailStepUpsertDtoControlValues$Outbound,
|
|
122
63
|
z.ZodTypeDef,
|
|
123
64
|
EmailStepUpsertDtoControlValues
|
|
124
|
-
> = z.
|
|
125
|
-
skip: z.record(z.any()).optional(),
|
|
126
|
-
subject: z.string(),
|
|
127
|
-
body: z.string().default(""),
|
|
128
|
-
editorType: EmailStepUpsertDtoEditorType$outboundSchema.default("block"),
|
|
129
|
-
disableOutputSanitization: z.boolean().default(false),
|
|
130
|
-
});
|
|
65
|
+
> = z.union([EmailControlDto$outboundSchema, z.record(z.any())]);
|
|
131
66
|
|
|
132
67
|
/**
|
|
133
68
|
* @internal
|
|
@@ -171,9 +106,8 @@ export const EmailStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
171
106
|
_id: z.string().optional(),
|
|
172
107
|
name: z.string(),
|
|
173
108
|
type: StepTypeEnum$inboundSchema,
|
|
174
|
-
controlValues: z.
|
|
175
|
-
|
|
176
|
-
).optional(),
|
|
109
|
+
controlValues: z.union([EmailControlDto$inboundSchema, z.record(z.any())])
|
|
110
|
+
.optional(),
|
|
177
111
|
}).transform((v) => {
|
|
178
112
|
return remap$(v, {
|
|
179
113
|
"_id": "id",
|
|
@@ -185,7 +119,7 @@ export type EmailStepUpsertDto$Outbound = {
|
|
|
185
119
|
_id?: string | undefined;
|
|
186
120
|
name: string;
|
|
187
121
|
type: string;
|
|
188
|
-
controlValues?:
|
|
122
|
+
controlValues?: EmailControlDto$Outbound | { [k: string]: any } | undefined;
|
|
189
123
|
};
|
|
190
124
|
|
|
191
125
|
/** @internal */
|
|
@@ -197,9 +131,8 @@ export const EmailStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
197
131
|
id: z.string().optional(),
|
|
198
132
|
name: z.string(),
|
|
199
133
|
type: StepTypeEnum$outboundSchema,
|
|
200
|
-
controlValues: z.
|
|
201
|
-
|
|
202
|
-
).optional(),
|
|
134
|
+
controlValues: z.union([EmailControlDto$outboundSchema, z.record(z.any())])
|
|
135
|
+
.optional(),
|
|
203
136
|
}).transform((v) => {
|
|
204
137
|
return remap$(v, {
|
|
205
138
|
id: "_id",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
@@ -14,6 +15,20 @@ import {
|
|
|
14
15
|
ApiKeyDto$outboundSchema,
|
|
15
16
|
} from "./apikeydto.js";
|
|
16
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Type of the environment
|
|
20
|
+
*/
|
|
21
|
+
export const EnvironmentResponseDtoType = {
|
|
22
|
+
Dev: "dev",
|
|
23
|
+
Prod: "prod",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* Type of the environment
|
|
27
|
+
*/
|
|
28
|
+
export type EnvironmentResponseDtoType = ClosedEnum<
|
|
29
|
+
typeof EnvironmentResponseDtoType
|
|
30
|
+
>;
|
|
31
|
+
|
|
17
32
|
export type EnvironmentResponseDto = {
|
|
18
33
|
/**
|
|
19
34
|
* Unique identifier of the environment
|
|
@@ -31,6 +46,10 @@ export type EnvironmentResponseDto = {
|
|
|
31
46
|
* Unique identifier for the environment
|
|
32
47
|
*/
|
|
33
48
|
identifier: string;
|
|
49
|
+
/**
|
|
50
|
+
* Type of the environment
|
|
51
|
+
*/
|
|
52
|
+
type?: EnvironmentResponseDtoType | null | undefined;
|
|
34
53
|
/**
|
|
35
54
|
* List of API keys associated with the environment
|
|
36
55
|
*/
|
|
@@ -45,6 +64,27 @@ export type EnvironmentResponseDto = {
|
|
|
45
64
|
slug?: string | undefined;
|
|
46
65
|
};
|
|
47
66
|
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const EnvironmentResponseDtoType$inboundSchema: z.ZodNativeEnum<
|
|
69
|
+
typeof EnvironmentResponseDtoType
|
|
70
|
+
> = z.nativeEnum(EnvironmentResponseDtoType);
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const EnvironmentResponseDtoType$outboundSchema: z.ZodNativeEnum<
|
|
74
|
+
typeof EnvironmentResponseDtoType
|
|
75
|
+
> = EnvironmentResponseDtoType$inboundSchema;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
export namespace EnvironmentResponseDtoType$ {
|
|
82
|
+
/** @deprecated use `EnvironmentResponseDtoType$inboundSchema` instead. */
|
|
83
|
+
export const inboundSchema = EnvironmentResponseDtoType$inboundSchema;
|
|
84
|
+
/** @deprecated use `EnvironmentResponseDtoType$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema = EnvironmentResponseDtoType$outboundSchema;
|
|
86
|
+
}
|
|
87
|
+
|
|
48
88
|
/** @internal */
|
|
49
89
|
export const EnvironmentResponseDto$inboundSchema: z.ZodType<
|
|
50
90
|
EnvironmentResponseDto,
|
|
@@ -55,6 +95,7 @@ export const EnvironmentResponseDto$inboundSchema: z.ZodType<
|
|
|
55
95
|
name: z.string(),
|
|
56
96
|
_organizationId: z.string(),
|
|
57
97
|
identifier: z.string(),
|
|
98
|
+
type: z.nullable(EnvironmentResponseDtoType$inboundSchema).optional(),
|
|
58
99
|
apiKeys: z.array(ApiKeyDto$inboundSchema).optional(),
|
|
59
100
|
_parentId: z.string().optional(),
|
|
60
101
|
slug: z.string().optional(),
|
|
@@ -72,6 +113,7 @@ export type EnvironmentResponseDto$Outbound = {
|
|
|
72
113
|
name: string;
|
|
73
114
|
_organizationId: string;
|
|
74
115
|
identifier: string;
|
|
116
|
+
type?: string | null | undefined;
|
|
75
117
|
apiKeys?: Array<ApiKeyDto$Outbound> | undefined;
|
|
76
118
|
_parentId?: string | undefined;
|
|
77
119
|
slug?: string | undefined;
|
|
@@ -87,6 +129,7 @@ export const EnvironmentResponseDto$outboundSchema: z.ZodType<
|
|
|
87
129
|
name: z.string(),
|
|
88
130
|
organizationId: z.string(),
|
|
89
131
|
identifier: z.string(),
|
|
132
|
+
type: z.nullable(EnvironmentResponseDtoType$outboundSchema).optional(),
|
|
90
133
|
apiKeys: z.array(ApiKeyDto$outboundSchema).optional(),
|
|
91
134
|
parentId: z.string().optional(),
|
|
92
135
|
slug: z.string().optional(),
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type GetEnvironmentTagsDto = {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const GetEnvironmentTagsDto$inboundSchema: z.ZodType<
|
|
16
|
+
GetEnvironmentTagsDto,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
name: z.string(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type GetEnvironmentTagsDto$Outbound = {
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const GetEnvironmentTagsDto$outboundSchema: z.ZodType<
|
|
30
|
+
GetEnvironmentTagsDto$Outbound,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
GetEnvironmentTagsDto
|
|
33
|
+
> = z.object({
|
|
34
|
+
name: z.string(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export namespace GetEnvironmentTagsDto$ {
|
|
42
|
+
/** @deprecated use `GetEnvironmentTagsDto$inboundSchema` instead. */
|
|
43
|
+
export const inboundSchema = GetEnvironmentTagsDto$inboundSchema;
|
|
44
|
+
/** @deprecated use `GetEnvironmentTagsDto$outboundSchema` instead. */
|
|
45
|
+
export const outboundSchema = GetEnvironmentTagsDto$outboundSchema;
|
|
46
|
+
/** @deprecated use `GetEnvironmentTagsDto$Outbound` instead. */
|
|
47
|
+
export type Outbound = GetEnvironmentTagsDto$Outbound;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function getEnvironmentTagsDtoToJSON(
|
|
51
|
+
getEnvironmentTagsDto: GetEnvironmentTagsDto,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
GetEnvironmentTagsDto$outboundSchema.parse(getEnvironmentTagsDto),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function getEnvironmentTagsDtoFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<GetEnvironmentTagsDto, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => GetEnvironmentTagsDto$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'GetEnvironmentTagsDto' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -28,6 +28,11 @@ import {
|
|
|
28
28
|
RedirectDto$Outbound,
|
|
29
29
|
RedirectDto$outboundSchema,
|
|
30
30
|
} from "./redirectdto.js";
|
|
31
|
+
import {
|
|
32
|
+
ResourceOriginEnum,
|
|
33
|
+
ResourceOriginEnum$inboundSchema,
|
|
34
|
+
ResourceOriginEnum$outboundSchema,
|
|
35
|
+
} from "./resourceoriginenum.js";
|
|
31
36
|
import {
|
|
32
37
|
StepIssuesDto,
|
|
33
38
|
StepIssuesDto$inboundSchema,
|
|
@@ -39,11 +44,6 @@ import {
|
|
|
39
44
|
StepTypeEnum$inboundSchema,
|
|
40
45
|
StepTypeEnum$outboundSchema,
|
|
41
46
|
} from "./steptypeenum.js";
|
|
42
|
-
import {
|
|
43
|
-
WorkflowOriginEnum,
|
|
44
|
-
WorkflowOriginEnum$inboundSchema,
|
|
45
|
-
WorkflowOriginEnum$outboundSchema,
|
|
46
|
-
} from "./workfloworiginenum.js";
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Control values for the in-app step
|
|
@@ -129,7 +129,7 @@ export type InAppStepResponseDto = {
|
|
|
129
129
|
/**
|
|
130
130
|
* Origin of the workflow
|
|
131
131
|
*/
|
|
132
|
-
origin:
|
|
132
|
+
origin: ResourceOriginEnum;
|
|
133
133
|
/**
|
|
134
134
|
* Workflow identifier
|
|
135
135
|
*/
|
|
@@ -301,7 +301,7 @@ export const InAppStepResponseDto$inboundSchema: z.ZodType<
|
|
|
301
301
|
name: z.string(),
|
|
302
302
|
slug: z.lazy(() => InAppStepResponseDtoSlug$inboundSchema),
|
|
303
303
|
type: StepTypeEnum$inboundSchema,
|
|
304
|
-
origin:
|
|
304
|
+
origin: ResourceOriginEnum$inboundSchema,
|
|
305
305
|
workflowId: z.string(),
|
|
306
306
|
workflowDatabaseId: z.string(),
|
|
307
307
|
issues: StepIssuesDto$inboundSchema.optional(),
|
|
@@ -342,7 +342,7 @@ export const InAppStepResponseDto$outboundSchema: z.ZodType<
|
|
|
342
342
|
name: z.string(),
|
|
343
343
|
slug: z.lazy(() => InAppStepResponseDtoSlug$outboundSchema),
|
|
344
344
|
type: StepTypeEnum$outboundSchema,
|
|
345
|
-
origin:
|
|
345
|
+
origin: ResourceOriginEnum$outboundSchema,
|
|
346
346
|
workflowId: z.string(),
|
|
347
347
|
workflowDatabaseId: z.string(),
|
|
348
348
|
issues: StepIssuesDto$outboundSchema.optional(),
|
|
@@ -8,17 +8,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
16
|
-
import {
|
|
17
|
-
RedirectDto,
|
|
18
|
-
RedirectDto$inboundSchema,
|
|
19
|
-
RedirectDto$Outbound,
|
|
20
|
-
RedirectDto$outboundSchema,
|
|
21
|
-
} from "./redirectdto.js";
|
|
11
|
+
InAppControlDto,
|
|
12
|
+
InAppControlDto$inboundSchema,
|
|
13
|
+
InAppControlDto$Outbound,
|
|
14
|
+
InAppControlDto$outboundSchema,
|
|
15
|
+
} from "./inappcontroldto.js";
|
|
22
16
|
import {
|
|
23
17
|
StepTypeEnum,
|
|
24
18
|
StepTypeEnum$inboundSchema,
|
|
@@ -26,46 +20,9 @@ import {
|
|
|
26
20
|
} from "./steptypeenum.js";
|
|
27
21
|
|
|
28
22
|
/**
|
|
29
|
-
* Control values for the In-App step
|
|
23
|
+
* Control values for the In-App step.
|
|
30
24
|
*/
|
|
31
|
-
export type ControlValues = {
|
|
32
|
-
/**
|
|
33
|
-
* JSONLogic filter conditions for conditionally skipping the step execution. Supports complex logical operations with AND, OR, and comparison operators. See https://jsonlogic.com/ for full typing reference.
|
|
34
|
-
*/
|
|
35
|
-
skip?: { [k: string]: any } | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Content/body of the in-app message. Required if subject is empty.
|
|
38
|
-
*/
|
|
39
|
-
body?: string | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Subject/title of the in-app message. Required if body is empty.
|
|
42
|
-
*/
|
|
43
|
-
subject?: string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* URL for an avatar image. Must be a valid URL or start with / or {{"{{"}} variable }}.
|
|
46
|
-
*/
|
|
47
|
-
avatar?: string | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Primary action button details.
|
|
50
|
-
*/
|
|
51
|
-
primaryAction?: ActionDto | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Secondary action button details.
|
|
54
|
-
*/
|
|
55
|
-
secondaryAction?: ActionDto | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Redirection URL configuration for the main content click (if no actions defined/clicked)..
|
|
58
|
-
*/
|
|
59
|
-
redirect?: RedirectDto | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Disable sanitization of the output.
|
|
62
|
-
*/
|
|
63
|
-
disableOutputSanitization?: boolean | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Additional data payload for the step.
|
|
66
|
-
*/
|
|
67
|
-
data?: { [k: string]: any } | undefined;
|
|
68
|
-
};
|
|
25
|
+
export type ControlValues = InAppControlDto | { [k: string]: any };
|
|
69
26
|
|
|
70
27
|
export type InAppStepUpsertDto = {
|
|
71
28
|
/**
|
|
@@ -81,9 +38,9 @@ export type InAppStepUpsertDto = {
|
|
|
81
38
|
*/
|
|
82
39
|
type: StepTypeEnum;
|
|
83
40
|
/**
|
|
84
|
-
* Control values for the In-App step
|
|
41
|
+
* Control values for the In-App step.
|
|
85
42
|
*/
|
|
86
|
-
controlValues?:
|
|
43
|
+
controlValues?: InAppControlDto | { [k: string]: any } | undefined;
|
|
87
44
|
};
|
|
88
45
|
|
|
89
46
|
/** @internal */
|
|
@@ -91,29 +48,11 @@ export const ControlValues$inboundSchema: z.ZodType<
|
|
|
91
48
|
ControlValues,
|
|
92
49
|
z.ZodTypeDef,
|
|
93
50
|
unknown
|
|
94
|
-
> = z.
|
|
95
|
-
skip: z.record(z.any()).optional(),
|
|
96
|
-
body: z.string().optional(),
|
|
97
|
-
subject: z.string().optional(),
|
|
98
|
-
avatar: z.string().optional(),
|
|
99
|
-
primaryAction: ActionDto$inboundSchema.optional(),
|
|
100
|
-
secondaryAction: ActionDto$inboundSchema.optional(),
|
|
101
|
-
redirect: RedirectDto$inboundSchema.optional(),
|
|
102
|
-
disableOutputSanitization: z.boolean().default(false),
|
|
103
|
-
data: z.record(z.any()).optional(),
|
|
104
|
-
});
|
|
51
|
+
> = z.union([InAppControlDto$inboundSchema, z.record(z.any())]);
|
|
105
52
|
|
|
106
53
|
/** @internal */
|
|
107
|
-
export type ControlValues$Outbound = {
|
|
108
|
-
|
|
109
|
-
body?: string | undefined;
|
|
110
|
-
subject?: string | undefined;
|
|
111
|
-
avatar?: string | undefined;
|
|
112
|
-
primaryAction?: ActionDto$Outbound | undefined;
|
|
113
|
-
secondaryAction?: ActionDto$Outbound | undefined;
|
|
114
|
-
redirect?: RedirectDto$Outbound | undefined;
|
|
115
|
-
disableOutputSanitization: boolean;
|
|
116
|
-
data?: { [k: string]: any } | undefined;
|
|
54
|
+
export type ControlValues$Outbound = InAppControlDto$Outbound | {
|
|
55
|
+
[k: string]: any;
|
|
117
56
|
};
|
|
118
57
|
|
|
119
58
|
/** @internal */
|
|
@@ -121,17 +60,7 @@ export const ControlValues$outboundSchema: z.ZodType<
|
|
|
121
60
|
ControlValues$Outbound,
|
|
122
61
|
z.ZodTypeDef,
|
|
123
62
|
ControlValues
|
|
124
|
-
> = z.
|
|
125
|
-
skip: z.record(z.any()).optional(),
|
|
126
|
-
body: z.string().optional(),
|
|
127
|
-
subject: z.string().optional(),
|
|
128
|
-
avatar: z.string().optional(),
|
|
129
|
-
primaryAction: ActionDto$outboundSchema.optional(),
|
|
130
|
-
secondaryAction: ActionDto$outboundSchema.optional(),
|
|
131
|
-
redirect: RedirectDto$outboundSchema.optional(),
|
|
132
|
-
disableOutputSanitization: z.boolean().default(false),
|
|
133
|
-
data: z.record(z.any()).optional(),
|
|
134
|
-
});
|
|
63
|
+
> = z.union([InAppControlDto$outboundSchema, z.record(z.any())]);
|
|
135
64
|
|
|
136
65
|
/**
|
|
137
66
|
* @internal
|
|
@@ -169,7 +98,7 @@ export const InAppStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
169
98
|
_id: z.string().optional(),
|
|
170
99
|
name: z.string(),
|
|
171
100
|
type: StepTypeEnum$inboundSchema,
|
|
172
|
-
controlValues: z.
|
|
101
|
+
controlValues: z.union([InAppControlDto$inboundSchema, z.record(z.any())])
|
|
173
102
|
.optional(),
|
|
174
103
|
}).transform((v) => {
|
|
175
104
|
return remap$(v, {
|
|
@@ -182,7 +111,7 @@ export type InAppStepUpsertDto$Outbound = {
|
|
|
182
111
|
_id?: string | undefined;
|
|
183
112
|
name: string;
|
|
184
113
|
type: string;
|
|
185
|
-
controlValues?:
|
|
114
|
+
controlValues?: InAppControlDto$Outbound | { [k: string]: any } | undefined;
|
|
186
115
|
};
|
|
187
116
|
|
|
188
117
|
/** @internal */
|
|
@@ -194,7 +123,7 @@ export const InAppStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
194
123
|
id: z.string().optional(),
|
|
195
124
|
name: z.string(),
|
|
196
125
|
type: StepTypeEnum$outboundSchema,
|
|
197
|
-
controlValues: z.
|
|
126
|
+
controlValues: z.union([InAppControlDto$outboundSchema, z.record(z.any())])
|
|
198
127
|
.optional(),
|
|
199
128
|
}).transform((v) => {
|
|
200
129
|
return remap$(v, {
|
|
@@ -32,6 +32,7 @@ export * from "./chatorpushproviderenum.js";
|
|
|
32
32
|
export * from "./chatstepresponsedto.js";
|
|
33
33
|
export * from "./chatstepupsertdto.js";
|
|
34
34
|
export * from "./constraintvalidation.js";
|
|
35
|
+
export * from "./contentissueenum.js";
|
|
35
36
|
export * from "./controlsmetadatadto.js";
|
|
36
37
|
export * from "./createdsubscriberdto.js";
|
|
37
38
|
export * from "./createenvironmentrequestdto.js";
|
|
@@ -80,12 +81,14 @@ export * from "./executiondetailsstatusenum.js";
|
|
|
80
81
|
export * from "./failedoperationdto.js";
|
|
81
82
|
export * from "./feedresponsedto.js";
|
|
82
83
|
export * from "./fieldfilterpartdto.js";
|
|
84
|
+
export * from "./getenvironmenttagsdto.js";
|
|
83
85
|
export * from "./getsubscriberpreferencesdto.js";
|
|
84
86
|
export * from "./inappcontroldto.js";
|
|
85
87
|
export * from "./inappcontrolsmetadataresponsedto.js";
|
|
86
88
|
export * from "./inappstepresponsedto.js";
|
|
87
89
|
export * from "./inappstepupsertdto.js";
|
|
88
90
|
export * from "./inboundparsedomaindto.js";
|
|
91
|
+
export * from "./integrationissueenum.js";
|
|
89
92
|
export * from "./integrationresponsedto.js";
|
|
90
93
|
export * from "./listsubscribersresponsedto.js";
|
|
91
94
|
export * from "./listtopicsresponsedto.js";
|
|
@@ -132,6 +135,7 @@ export * from "./pushstepupsertdto.js";
|
|
|
132
135
|
export * from "./redirectdto.js";
|
|
133
136
|
export * from "./removesubscriberresponsedto.js";
|
|
134
137
|
export * from "./replycallback.js";
|
|
138
|
+
export * from "./resourceoriginenum.js";
|
|
135
139
|
export * from "./runtimeissuedto.js";
|
|
136
140
|
export * from "./security.js";
|
|
137
141
|
export * from "./smscontroldto.js";
|
|
@@ -139,10 +143,8 @@ export * from "./smscontrolsmetadataresponsedto.js";
|
|
|
139
143
|
export * from "./smsstepresponsedto.js";
|
|
140
144
|
export * from "./smsstepupsertdto.js";
|
|
141
145
|
export * from "./stepcontentissuedto.js";
|
|
142
|
-
export * from "./stepcontentissueenum.js";
|
|
143
146
|
export * from "./stepfilterdto.js";
|
|
144
147
|
export * from "./stepintegrationissue.js";
|
|
145
|
-
export * from "./stepintegrationissueenum.js";
|
|
146
148
|
export * from "./stepissuesdto.js";
|
|
147
149
|
export * from "./stepresponsedto.js";
|
|
148
150
|
export * from "./stepsoverrides.js";
|
|
@@ -187,7 +189,6 @@ export * from "./updatetopicrequestdto.js";
|
|
|
187
189
|
export * from "./updateworkflowdto.js";
|
|
188
190
|
export * from "./workflowcreationsourceenum.js";
|
|
189
191
|
export * from "./workflowlistresponsedto.js";
|
|
190
|
-
export * from "./workfloworiginenum.js";
|
|
191
192
|
export * from "./workflowpreferencedto.js";
|
|
192
193
|
export * from "./workflowpreferencesdto.js";
|
|
193
194
|
export * from "./workflowpreferencesresponsedto.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Type of integration issue
|
|
10
|
+
*/
|
|
11
|
+
export const IntegrationIssueEnum = {
|
|
12
|
+
MissingIntegration: "MISSING_INTEGRATION",
|
|
13
|
+
} as const;
|
|
14
|
+
/**
|
|
15
|
+
* Type of integration issue
|
|
16
|
+
*/
|
|
17
|
+
export type IntegrationIssueEnum = ClosedEnum<typeof IntegrationIssueEnum>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const IntegrationIssueEnum$inboundSchema: z.ZodNativeEnum<
|
|
21
|
+
typeof IntegrationIssueEnum
|
|
22
|
+
> = z.nativeEnum(IntegrationIssueEnum);
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const IntegrationIssueEnum$outboundSchema: z.ZodNativeEnum<
|
|
26
|
+
typeof IntegrationIssueEnum
|
|
27
|
+
> = IntegrationIssueEnum$inboundSchema;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export namespace IntegrationIssueEnum$ {
|
|
34
|
+
/** @deprecated use `IntegrationIssueEnum$inboundSchema` instead. */
|
|
35
|
+
export const inboundSchema = IntegrationIssueEnum$inboundSchema;
|
|
36
|
+
/** @deprecated use `IntegrationIssueEnum$outboundSchema` instead. */
|
|
37
|
+
export const outboundSchema = IntegrationIssueEnum$outboundSchema;
|
|
38
|
+
}
|